@volter/world-console 3.0.6 → 3.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/console.tsx +27 -7
- package/dist/client/console.bundle.js +11 -11
- package/dist/client/console.tsx +27 -7
- package/dist/client/main.bundle.js +69 -69
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var qN=Object.create;var{getPrototypeOf:UN,defineProperty:vA,getOwnPropertyNames:GN}=Object;var ZN=Object.prototype.hasOwnProperty;function FN(Q){return this[Q]}var XN,KN,p0=(Q,U,Z)=>{var K=Q!=null&&typeof Q==="object";if(K){var H=U?XN??=new WeakMap:KN??=new WeakMap,Y=H.get(Q);if(Y)return Y}Z=Q!=null?qN(UN(Q)):{};let W=U||!Q||!Q.__esModule?vA(Z,"default",{value:Q,enumerable:!0}):Z;for(let B of GN(Q))if(!ZN.call(W,B))vA(W,B,{get:FN.bind(Q,B),enumerable:!0});if(K)H.set(Q,W);return W};var p4=(Q,U)=>()=>(U||Q((U={exports:{}}).exports,U),U.exports);var VA=p4((HN)=>{(function(){function Q(){if(v=!1,b){var p=HN.unstable_now();$1=p;var c=!0;try{_:{u=!1,C&&(C=!1,h(k),k=-1),f=!0;var a=j;try{J:{Y(p);for(V=Z(O);V!==null&&!(V.expirationTime>p&&B());){var i=V.callback;if(typeof i==="function"){V.callback=null,j=V.priorityLevel;var o=i(V.expirationTime<=p);if(p=HN.unstable_now(),typeof o==="function"){V.callback=o,Y(p),c=!0;break J}V===Z(O)&&K(O),Y(p)}else K(O);V=Z(O)}if(V!==null)c=!0;else{var y=Z(P);y!==null&&T(W,y.startTime-p),c=!1}}break _}finally{V=null,j=a,f=!1}c=void 0}}finally{c?Q1():b=!1}}}function U(p,c){var a=p.length;p.push(c);_:for(;0<a;){var i=a-1>>>1,o=p[i];if(0<H(o,c))p[i]=c,p[a]=o,a=i;else break _}}function Z(p){return p.length===0?null:p[0]}function K(p){if(p.length===0)return null;var c=p[0],a=p.pop();if(a!==c){p[0]=a;_:for(var i=0,o=p.length,y=o>>>1;i<y;){var g=2*(i+1)-1,q1=p[g],t=g+1,W1=p[t];if(0>H(q1,a))t<o&&0>H(W1,q1)?(p[i]=W1,p[t]=a,i=t):(p[i]=q1,p[g]=a,i=g);else if(t<o&&0>H(W1,a))p[i]=W1,p[t]=a,i=t;else break _}}return c}function H(p,c){var a=p.sortIndex-c.sortIndex;return a!==0?a:p.id-c.id}function Y(p){for(var c=Z(P);c!==null;){if(c.callback===null)K(P);else if(c.startTime<=p)K(P),c.sortIndex=c.expirationTime,U(O,c);else break;c=Z(P)}}function W(p){if(C=!1,Y(p),!u)if(Z(O)!==null)u=!0,b||(b=!0,Q1());else{var c=Z(P);c!==null&&T(W,c.startTime-p)}}function B(){return v?!0:HN.unstable_now()-$1<x?!1:!0}function T(p,c){k=D(function(){p(HN.unstable_now())},c)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),HN.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var R=performance;HN.unstable_now=function(){return R.now()}}else{var M=Date,A=M.now();HN.unstable_now=function(){return M.now()-A}}var O=[],P=[],N=1,V=null,j=3,f=!1,u=!1,C=!1,v=!1,D=typeof setTimeout==="function"?setTimeout:null,h=typeof clearTimeout==="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null,b=!1,k=-1,x=5,$1=-1;if(typeof E==="function")var Q1=function(){E(Q)};else if(typeof MessageChannel<"u"){var J1=new MessageChannel,m=J1.port2;J1.port1.onmessage=Q,Q1=function(){m.postMessage(null)}}else Q1=function(){D(Q,0)};HN.unstable_IdlePriority=5,HN.unstable_ImmediatePriority=1,HN.unstable_LowPriority=4,HN.unstable_NormalPriority=3,HN.unstable_Profiling=null,HN.unstable_UserBlockingPriority=2,HN.unstable_cancelCallback=function(p){p.callback=null},HN.unstable_forceFrameRate=function(p){0>p||125<p?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<p?Math.floor(1000/p):5},HN.unstable_getCurrentPriorityLevel=function(){return j},HN.unstable_next=function(p){switch(j){case 1:case 2:case 3:var c=3;break;default:c=j}var a=j;j=c;try{return p()}finally{j=a}},HN.unstable_requestPaint=function(){v=!0},HN.unstable_runWithPriority=function(p,c){switch(p){case 1:case 2:case 3:case 4:case 5:break;default:p=3}var a=j;j=p;try{return c()}finally{j=a}},HN.unstable_scheduleCallback=function(p,c,a){var i=HN.unstable_now();switch(typeof a==="object"&&a!==null?(a=a.delay,a=typeof a==="number"&&0<a?i+a:i):a=i,p){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5000}return o=a+o,p={id:N++,callback:c,priorityLevel:p,startTime:a,expirationTime:o,sortIndex:-1},a>i?(p.sortIndex=a,U(P,p),Z(O)===null&&p===Z(P)&&(C?(h(k),k=-1):C=!0,T(W,a-i))):(p.sortIndex=o,U(O,p),u||f||(u=!0,b||(b=!0,Q1()))),p},HN.unstable_shouldYield=B,HN.unstable_wrapCallback=function(p){var c=j;return function(){var a=j;j=c;try{return p.apply(this,arguments)}finally{j=a}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var G4=p4((YN,Bq)=>{(function(){function Q(I,l){Object.defineProperty(K.prototype,I,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",l[0],l[1])}})}function U(I){if(I===null||typeof I!=="object")return null;return I=j1&&I[j1]||I["@@iterator"],typeof I==="function"?I:null}function Z(I,l){I=(I=I.constructor)&&(I.displayName||I.name)||"ReactClass";var F1=I+"."+l;A1[F1]||(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.",l,I),A1[F1]=!0)}function K(I,l,F1){this.props=I,this.context=l,this.refs=g1,this.updater=F1||k1}function H(){}function Y(I,l,F1){this.props=I,this.context=l,this.refs=g1,this.updater=F1||k1}function W(){}function B(I){return""+I}function T(I){try{B(I);var l=!1}catch(R1){l=!0}if(l){l=console;var F1=l.error,I1=typeof Symbol==="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return F1.call(l,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",I1),B(I)}}function R(I){if(I==null)return null;if(typeof I==="function")return I.$$typeof===r1?null:I.displayName||I.name||null;if(typeof I==="string")return I;switch(I){case o:return"Fragment";case g:return"Profiler";case y:return"StrictMode";case T1:return"Suspense";case O1:return"SuspenseList";case P1:return"Activity"}if(typeof I==="object")switch(typeof I.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case i:return"Portal";case t:return I.displayName||"Context";case q1:return(I._context.displayName||"Context")+".Consumer";case W1:var l=I.render;return I=I.displayName,I||(I=l.displayName||l.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case B1:return l=I.displayName||null,l!==null?l:R(I.type)||"Memo";case U1:l=I._payload,I=I._init;try{return R(I(l))}catch(F1){}}return null}function M(I){if(I===o)return"<>";if(typeof I==="object"&&I!==null&&I.$$typeof===U1)return"<...>";try{var l=R(I);return l?"<"+l+">":"<...>"}catch(F1){return"<...>"}}function A(){var I=u1.A;return I===null?null:I.getOwner()}function O(){return Error("react-stack-top-frame")}function P(I){if(D0.call(I,"key")){var l=Object.getOwnPropertyDescriptor(I,"key").get;if(l&&l.isReactWarning)return!1}return I.key!==void 0}function N(I,l){function F1(){X2||(X2=!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)",l))}F1.isReactWarning=!0,Object.defineProperty(I,"key",{get:F1,configurable:!0})}function V(){var I=R(this.type);return N2[I]||(N2[I]=!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.")),I=this.props.ref,I!==void 0?I:null}function j(I,l,F1,I1,R1,N1){var C1=F1.ref;return I={$$typeof:a,type:I,key:l,props:F1,_owner:I1},(C1!==void 0?C1:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:V}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(I,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:R1}),Object.defineProperty(I,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:N1}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function f(I,l){return l=j(I.type,l,I.props,I._owner,I._debugStack,I._debugTask),I._store&&(l._store.validated=I._store.validated),l}function u(I){C(I)?I._store&&(I._store.validated=1):typeof I==="object"&&I!==null&&I.$$typeof===U1&&(I._payload.status==="fulfilled"?C(I._payload.value)&&I._payload.value._store&&(I._payload.value._store.validated=1):I._store&&(I._store.validated=1))}function C(I){return typeof I==="object"&&I!==null&&I.$$typeof===a}function v(I){var l={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(F1){return l[F1]})}function D(I,l){return typeof I==="object"&&I!==null&&I.key!=null?(T(I.key),v(""+I.key)):l.toString(36)}function h(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status==="string"?I.then(W,W):(I.status="pending",I.then(function(l){I.status==="pending"&&(I.status="fulfilled",I.value=l)},function(l){I.status==="pending"&&(I.status="rejected",I.reason=l)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function E(I,l,F1,I1,R1){var N1=typeof I;if(N1==="undefined"||N1==="boolean")I=null;var C1=!1;if(I===null)C1=!0;else switch(N1){case"bigint":case"string":case"number":C1=!0;break;case"object":switch(I.$$typeof){case a:case i:C1=!0;break;case U1:return C1=I._init,E(C1(I._payload),l,F1,I1,R1)}}if(C1){C1=I,R1=R1(C1);var y1=I1===""?"."+D(C1,0):I1;return M1(R1)?(F1="",y1!=null&&(F1=y1.replace(H2,"$&/")+"/"),E(R1,l,F1,"",function(p1){return p1})):R1!=null&&(C(R1)&&(R1.key!=null&&(C1&&C1.key===R1.key||T(R1.key)),F1=f(R1,F1+(R1.key==null||C1&&C1.key===R1.key?"":(""+R1.key).replace(H2,"$&/")+"/")+y1),I1!==""&&C1!=null&&C(C1)&&C1.key==null&&C1._store&&!C1._store.validated&&(F1._store.validated=2),R1=F1),l.push(R1)),1}if(C1=0,y1=I1===""?".":I1+":",M1(I))for(var v1=0;v1<I.length;v1++)I1=I[v1],N1=y1+D(I1,v1),C1+=E(I1,l,F1,N1,R1);else if(v1=U(I),typeof v1==="function")for(v1===I.entries&&(M2||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),M2=!0),I=v1.call(I),v1=0;!(I1=I.next()).done;)I1=I1.value,N1=y1+D(I1,v1++),C1+=E(I1,l,F1,N1,R1);else if(N1==="object"){if(typeof I.then==="function")return E(h(I),l,F1,I1,R1);throw l=String(I),Error("Objects are not valid as a React child (found: "+(l==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":l)+"). If you meant to render a collection of children, use an array instead.")}return C1}function b(I,l,F1){if(I==null)return I;var I1=[],R1=0;return E(I,I1,"","",function(N1){return l.call(F1,N1,R1++)}),I1}function k(I){if(I._status===-1){var l=I._ioInfo;l!=null&&(l.start=l.end=performance.now()),l=I._result;var F1=l();if(F1.then(function(R1){if(I._status===0||I._status===-1){I._status=1,I._result=R1;var N1=I._ioInfo;N1!=null&&(N1.end=performance.now()),F1.status===void 0&&(F1.status="fulfilled",F1.value=R1)}},function(R1){if(I._status===0||I._status===-1){I._status=2,I._result=R1;var N1=I._ioInfo;N1!=null&&(N1.end=performance.now()),F1.status===void 0&&(F1.status="rejected",F1.reason=R1)}}),l=I._ioInfo,l!=null){l.value=F1;var I1=F1.displayName;typeof I1==="string"&&(l.name=I1)}I._status===-1&&(I._status=0,I._result=F1)}if(I._status===1)return l=I._result,l===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1
|
+
var qN=Object.create;var{getPrototypeOf:UN,defineProperty:jA,getOwnPropertyNames:GN}=Object;var ZN=Object.prototype.hasOwnProperty;function FN(Q){return this[Q]}var XN,KN,p0=(Q,U,Z)=>{var K=Q!=null&&typeof Q==="object";if(K){var H=U?XN??=new WeakMap:KN??=new WeakMap,Y=H.get(Q);if(Y)return Y}Z=Q!=null?qN(UN(Q)):{};let W=U||!Q||!Q.__esModule?jA(Z,"default",{value:Q,enumerable:!0}):Z;for(let L of GN(Q))if(!ZN.call(W,L))jA(W,L,{get:FN.bind(Q,L),enumerable:!0});if(K)H.set(Q,W);return W};var p4=(Q,U)=>()=>(U||Q((U={exports:{}}).exports,U),U.exports);var VA=p4((HN)=>{(function(){function Q(){if(j=!1,b){var p=HN.unstable_now();$1=p;var c=!0;try{_:{u=!1,f&&(f=!1,h(k),k=-1),C=!0;var a=v;try{J:{Y(p);for(V=Z(O);V!==null&&!(V.expirationTime>p&&L());){var i=V.callback;if(typeof i==="function"){V.callback=null,v=V.priorityLevel;var o=i(V.expirationTime<=p);if(p=HN.unstable_now(),typeof o==="function"){V.callback=o,Y(p),c=!0;break J}V===Z(O)&&K(O),Y(p)}else K(O);V=Z(O)}if(V!==null)c=!0;else{var y=Z(P);y!==null&&T(W,y.startTime-p),c=!1}}break _}finally{V=null,v=a,C=!1}c=void 0}}finally{c?Q1():b=!1}}}function U(p,c){var a=p.length;p.push(c);_:for(;0<a;){var i=a-1>>>1,o=p[i];if(0<H(o,c))p[i]=c,p[a]=o,a=i;else break _}}function Z(p){return p.length===0?null:p[0]}function K(p){if(p.length===0)return null;var c=p[0],a=p.pop();if(a!==c){p[0]=a;_:for(var i=0,o=p.length,y=o>>>1;i<y;){var g=2*(i+1)-1,q1=p[g],t=g+1,W1=p[t];if(0>H(q1,a))t<o&&0>H(W1,q1)?(p[i]=W1,p[t]=a,i=t):(p[i]=q1,p[g]=a,i=g);else if(t<o&&0>H(W1,a))p[i]=W1,p[t]=a,i=t;else break _}}return c}function H(p,c){var a=p.sortIndex-c.sortIndex;return a!==0?a:p.id-c.id}function Y(p){for(var c=Z(P);c!==null;){if(c.callback===null)K(P);else if(c.startTime<=p)K(P),c.sortIndex=c.expirationTime,U(O,c);else break;c=Z(P)}}function W(p){if(f=!1,Y(p),!u)if(Z(O)!==null)u=!0,b||(b=!0,Q1());else{var c=Z(P);c!==null&&T(W,c.startTime-p)}}function L(){return j?!0:HN.unstable_now()-$1<x?!1:!0}function T(p,c){k=D(function(){p(HN.unstable_now())},c)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),HN.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var R=performance;HN.unstable_now=function(){return R.now()}}else{var M=Date,A=M.now();HN.unstable_now=function(){return M.now()-A}}var O=[],P=[],N=1,V=null,v=3,C=!1,u=!1,f=!1,j=!1,D=typeof setTimeout==="function"?setTimeout:null,h=typeof clearTimeout==="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null,b=!1,k=-1,x=5,$1=-1;if(typeof E==="function")var Q1=function(){E(Q)};else if(typeof MessageChannel<"u"){var J1=new MessageChannel,m=J1.port2;J1.port1.onmessage=Q,Q1=function(){m.postMessage(null)}}else Q1=function(){D(Q,0)};HN.unstable_IdlePriority=5,HN.unstable_ImmediatePriority=1,HN.unstable_LowPriority=4,HN.unstable_NormalPriority=3,HN.unstable_Profiling=null,HN.unstable_UserBlockingPriority=2,HN.unstable_cancelCallback=function(p){p.callback=null},HN.unstable_forceFrameRate=function(p){0>p||125<p?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<p?Math.floor(1000/p):5},HN.unstable_getCurrentPriorityLevel=function(){return v},HN.unstable_next=function(p){switch(v){case 1:case 2:case 3:var c=3;break;default:c=v}var a=v;v=c;try{return p()}finally{v=a}},HN.unstable_requestPaint=function(){j=!0},HN.unstable_runWithPriority=function(p,c){switch(p){case 1:case 2:case 3:case 4:case 5:break;default:p=3}var a=v;v=p;try{return c()}finally{v=a}},HN.unstable_scheduleCallback=function(p,c,a){var i=HN.unstable_now();switch(typeof a==="object"&&a!==null?(a=a.delay,a=typeof a==="number"&&0<a?i+a:i):a=i,p){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5000}return o=a+o,p={id:N++,callback:c,priorityLevel:p,startTime:a,expirationTime:o,sortIndex:-1},a>i?(p.sortIndex=a,U(P,p),Z(O)===null&&p===Z(P)&&(f?(h(k),k=-1):f=!0,T(W,a-i))):(p.sortIndex=o,U(O,p),u||C||(u=!0,b||(b=!0,Q1()))),p},HN.unstable_shouldYield=L,HN.unstable_wrapCallback=function(p){var c=v;return function(){var a=v;v=c;try{return p.apply(this,arguments)}finally{v=a}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var G4=p4((YN,Lq)=>{(function(){function Q(I,l){Object.defineProperty(K.prototype,I,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",l[0],l[1])}})}function U(I){if(I===null||typeof I!=="object")return null;return I=v1&&I[v1]||I["@@iterator"],typeof I==="function"?I:null}function Z(I,l){I=(I=I.constructor)&&(I.displayName||I.name)||"ReactClass";var F1=I+"."+l;A1[F1]||(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.",l,I),A1[F1]=!0)}function K(I,l,F1){this.props=I,this.context=l,this.refs=g1,this.updater=F1||k1}function H(){}function Y(I,l,F1){this.props=I,this.context=l,this.refs=g1,this.updater=F1||k1}function W(){}function L(I){return""+I}function T(I){try{L(I);var l=!1}catch(R1){l=!0}if(l){l=console;var F1=l.error,I1=typeof Symbol==="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return F1.call(l,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",I1),L(I)}}function R(I){if(I==null)return null;if(typeof I==="function")return I.$$typeof===r1?null:I.displayName||I.name||null;if(typeof I==="string")return I;switch(I){case o:return"Fragment";case g:return"Profiler";case y:return"StrictMode";case T1:return"Suspense";case O1:return"SuspenseList";case P1:return"Activity"}if(typeof I==="object")switch(typeof I.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case i:return"Portal";case t:return I.displayName||"Context";case q1:return(I._context.displayName||"Context")+".Consumer";case W1:var l=I.render;return I=I.displayName,I||(I=l.displayName||l.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case L1:return l=I.displayName||null,l!==null?l:R(I.type)||"Memo";case U1:l=I._payload,I=I._init;try{return R(I(l))}catch(F1){}}return null}function M(I){if(I===o)return"<>";if(typeof I==="object"&&I!==null&&I.$$typeof===U1)return"<...>";try{var l=R(I);return l?"<"+l+">":"<...>"}catch(F1){return"<...>"}}function A(){var I=u1.A;return I===null?null:I.getOwner()}function O(){return Error("react-stack-top-frame")}function P(I){if(D0.call(I,"key")){var l=Object.getOwnPropertyDescriptor(I,"key").get;if(l&&l.isReactWarning)return!1}return I.key!==void 0}function N(I,l){function F1(){X2||(X2=!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)",l))}F1.isReactWarning=!0,Object.defineProperty(I,"key",{get:F1,configurable:!0})}function V(){var I=R(this.type);return N2[I]||(N2[I]=!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.")),I=this.props.ref,I!==void 0?I:null}function v(I,l,F1,I1,R1,N1){var C1=F1.ref;return I={$$typeof:a,type:I,key:l,props:F1,_owner:I1},(C1!==void 0?C1:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:V}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(I,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:R1}),Object.defineProperty(I,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:N1}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function C(I,l){return l=v(I.type,l,I.props,I._owner,I._debugStack,I._debugTask),I._store&&(l._store.validated=I._store.validated),l}function u(I){f(I)?I._store&&(I._store.validated=1):typeof I==="object"&&I!==null&&I.$$typeof===U1&&(I._payload.status==="fulfilled"?f(I._payload.value)&&I._payload.value._store&&(I._payload.value._store.validated=1):I._store&&(I._store.validated=1))}function f(I){return typeof I==="object"&&I!==null&&I.$$typeof===a}function j(I){var l={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(F1){return l[F1]})}function D(I,l){return typeof I==="object"&&I!==null&&I.key!=null?(T(I.key),j(""+I.key)):l.toString(36)}function h(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status==="string"?I.then(W,W):(I.status="pending",I.then(function(l){I.status==="pending"&&(I.status="fulfilled",I.value=l)},function(l){I.status==="pending"&&(I.status="rejected",I.reason=l)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function E(I,l,F1,I1,R1){var N1=typeof I;if(N1==="undefined"||N1==="boolean")I=null;var C1=!1;if(I===null)C1=!0;else switch(N1){case"bigint":case"string":case"number":C1=!0;break;case"object":switch(I.$$typeof){case a:case i:C1=!0;break;case U1:return C1=I._init,E(C1(I._payload),l,F1,I1,R1)}}if(C1){C1=I,R1=R1(C1);var y1=I1===""?"."+D(C1,0):I1;return M1(R1)?(F1="",y1!=null&&(F1=y1.replace(H2,"$&/")+"/"),E(R1,l,F1,"",function(p1){return p1})):R1!=null&&(f(R1)&&(R1.key!=null&&(C1&&C1.key===R1.key||T(R1.key)),F1=C(R1,F1+(R1.key==null||C1&&C1.key===R1.key?"":(""+R1.key).replace(H2,"$&/")+"/")+y1),I1!==""&&C1!=null&&f(C1)&&C1.key==null&&C1._store&&!C1._store.validated&&(F1._store.validated=2),R1=F1),l.push(R1)),1}if(C1=0,y1=I1===""?".":I1+":",M1(I))for(var j1=0;j1<I.length;j1++)I1=I[j1],N1=y1+D(I1,j1),C1+=E(I1,l,F1,N1,R1);else if(j1=U(I),typeof j1==="function")for(j1===I.entries&&(M2||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),M2=!0),I=j1.call(I),j1=0;!(I1=I.next()).done;)I1=I1.value,N1=y1+D(I1,j1++),C1+=E(I1,l,F1,N1,R1);else if(N1==="object"){if(typeof I.then==="function")return E(h(I),l,F1,I1,R1);throw l=String(I),Error("Objects are not valid as a React child (found: "+(l==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":l)+"). If you meant to render a collection of children, use an array instead.")}return C1}function b(I,l,F1){if(I==null)return I;var I1=[],R1=0;return E(I,I1,"","",function(N1){return l.call(F1,N1,R1++)}),I1}function k(I){if(I._status===-1){var l=I._ioInfo;l!=null&&(l.start=l.end=performance.now()),l=I._result;var F1=l();if(F1.then(function(R1){if(I._status===0||I._status===-1){I._status=1,I._result=R1;var N1=I._ioInfo;N1!=null&&(N1.end=performance.now()),F1.status===void 0&&(F1.status="fulfilled",F1.value=R1)}},function(R1){if(I._status===0||I._status===-1){I._status=2,I._result=R1;var N1=I._ioInfo;N1!=null&&(N1.end=performance.now()),F1.status===void 0&&(F1.status="rejected",F1.reason=R1)}}),l=I._ioInfo,l!=null){l.value=F1;var I1=F1.displayName;typeof I1==="string"&&(l.name=I1)}I._status===-1&&(I._status=0,I._result=F1)}if(I._status===1)return l=I._result,l===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'))
|
|
@@ -10,67 +10,67 @@ Your code should look like:
|
|
|
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.`),I}function $1(){u1.asyncTransitions--}function Q1(I){if(m2===null)try{var l=("require"+Math.random()).slice(0,7);m2=(Bq&&Bq[l]).call(Bq,"timers").setImmediate}catch(F1){m2=function(I1){z4===!1&&(z4=!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 R1=new MessageChannel;R1.port1.onmessage=I1,R1.port2.postMessage(void 0)}}return m2(I)}function J1(I){return 1<I.length&&typeof AggregateError==="function"?AggregateError(I):I[0]}function m(I,l){l!==f5-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. "),f5=l}function p(I,l,F1){var I1=u1.actQueue;if(I1!==null)if(I1.length!==0)try{c(I1),Q1(function(){return p(I,l,F1)});return}catch(R1){u1.thrownErrors.push(R1)}else u1.actQueue=null;0<u1.thrownErrors.length?(I1=J1(u1.thrownErrors),u1.thrownErrors.length=0,F1(I1)):l(I)}function c(I){if(!r5){r5=!0;var l=0;try{for(;l<I.length;l++){var F1=I[l];do{u1.didUsePromise=!1;var I1=F1(!1);if(I1!==null){if(u1.didUsePromise){I[l]=F1,I.splice(0,l);return}F1=I1}else break}while(1)}I.length=0}catch(R1){I.splice(0,l+1),u1.thrownErrors.push(R1)}finally{r5=!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"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),q1=Symbol.for("react.consumer"),t=Symbol.for("react.context"),W1=Symbol.for("react.forward_ref"),T1=Symbol.for("react.suspense"),O1=Symbol.for("react.suspense_list"),B1=Symbol.for("react.memo"),U1=Symbol.for("react.lazy"),P1=Symbol.for("react.activity"),j1=Symbol.iterator,A1={},k1={isMounted:function(){return!1},enqueueForceUpdate:function(I){Z(I,"forceUpdate")},enqueueReplaceState:function(I){Z(I,"replaceState")},enqueueSetState:function(I){Z(I,"setState")}},D1=Object.assign,g1={};Object.freeze(g1),K.prototype.isReactComponent={},K.prototype.setState=function(I,l){if(typeof I!=="object"&&typeof I!=="function"&&I!=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,I,l,"setState")},K.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};var h1={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(G1 in h1)h1.hasOwnProperty(G1)&&Q(G1,h1[G1]);H.prototype=K.prototype,h1=Y.prototype=new H,h1.constructor=Y,D1(h1,K.prototype),h1.isPureReactComponent=!0;var M1=Array.isArray,r1=Symbol.for("react.client.reference"),u1={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},D0=Object.prototype.hasOwnProperty,o1=console.createTask?console.createTask:function(){return null};h1={react_stack_bottom_frame:function(I){return I()}};var X2,K2,N2={},A2=h1.react_stack_bottom_frame.bind(h1,O)(),C2=o1(M(O)),M2=!1,H2=/\/+/g,_2=typeof reportError==="function"?reportError:function(I){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I==="object"&&I!==null&&typeof I.message==="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(l))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",I);return}console.error(I)},z4=!1,m2=null,f5=0,S5=!1,r5=!1,o4=typeof queueMicrotask==="function"?function(I){queueMicrotask(function(){return queueMicrotask(I)})}:Q1;h1=Object.freeze({__proto__:null,c:function(I){return x().useMemoCache(I)}});var G1={map:b,forEach:function(I,l,F1){b(I,function(){l.apply(this,arguments)},F1)},count:function(I){var l=0;return b(I,function(){l++}),l},toArray:function(I){return b(I,function(l){return l})||[]},only:function(I){if(!C(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};YN.Activity=P1,YN.Children=G1,YN.Component=K,YN.Fragment=o,YN.Profiler=g,YN.PureComponent=Y,YN.StrictMode=y,YN.Suspense=T1,YN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u1,YN.__COMPILER_RUNTIME=h1,YN.act=function(I){var l=u1.actQueue,F1=f5;f5++;var I1=u1.actQueue=l!==null?l:[],R1=!1;try{var N1=I()}catch(v1){u1.thrownErrors.push(v1)}if(0<u1.thrownErrors.length)throw m(l,F1),I=J1(u1.thrownErrors),u1.thrownErrors.length=0,I;if(N1!==null&&typeof N1==="object"&&typeof N1.then==="function"){var C1=N1;return o4(function(){R1||S5||(S5=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(v1,p1){R1=!0,C1.then(function(S0){if(m(l,F1),F1===0){try{c(I1),Q1(function(){return p(S0,v1,p1)})}catch(n4){u1.thrownErrors.push(n4)}if(0<u1.thrownErrors.length){var w0=J1(u1.thrownErrors);u1.thrownErrors.length=0,p1(w0)}}else v1(S0)},function(S0){m(l,F1),0<u1.thrownErrors.length?(S0=J1(u1.thrownErrors),u1.thrownErrors.length=0,p1(S0)):p1(S0)})}}}var y1=N1;if(m(l,F1),F1===0&&(c(I1),I1.length!==0&&o4(function(){R1||S5||(S5=!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(() => ...)"))}),u1.actQueue=null),0<u1.thrownErrors.length)throw I=J1(u1.thrownErrors),u1.thrownErrors.length=0,I;return{then:function(v1,p1){R1=!0,F1===0?(u1.actQueue=I1,Q1(function(){return p(y1,v1,p1)})):v1(y1)}}},YN.cache=function(I){return function(){return I.apply(null,arguments)}},YN.cacheSignal=function(){return null},YN.captureOwnerStack=function(){var I=u1.getCurrentStack;return I===null?null:I()},YN.cloneElement=function(I,l,F1){if(I===null||I===void 0)throw Error("The argument must be a React element, but you passed "+I+".");var I1=D1({},I.props),R1=I.key,N1=I._owner;if(l!=null){var C1;_:{if(D0.call(l,"ref")&&(C1=Object.getOwnPropertyDescriptor(l,"ref").get)&&C1.isReactWarning){C1=!1;break _}C1=l.ref!==void 0}C1&&(N1=A()),P(l)&&(T(l.key),R1=""+l.key);for(y1 in l)!D0.call(l,y1)||y1==="key"||y1==="__self"||y1==="__source"||y1==="ref"&&l.ref===void 0||(I1[y1]=l[y1])}var y1=arguments.length-2;if(y1===1)I1.children=F1;else if(1<y1){C1=Array(y1);for(var v1=0;v1<y1;v1++)C1[v1]=arguments[v1+2];I1.children=C1}I1=j(I.type,R1,I1,N1,I._debugStack,I._debugTask);for(R1=2;R1<arguments.length;R1++)u(arguments[R1]);return I1},YN.createContext=function(I){return I={$$typeof:t,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:q1,_context:I},I._currentRenderer=null,I._currentRenderer2=null,I},YN.createElement=function(I,l,F1){for(var I1=2;I1<arguments.length;I1++)u(arguments[I1]);I1={};var R1=null;if(l!=null)for(v1 in K2||!("__self"in l)||"key"in l||(K2=!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")),P(l)&&(T(l.key),R1=""+l.key),l)D0.call(l,v1)&&v1!=="key"&&v1!=="__self"&&v1!=="__source"&&(I1[v1]=l[v1]);var N1=arguments.length-2;if(N1===1)I1.children=F1;else if(1<N1){for(var C1=Array(N1),y1=0;y1<N1;y1++)C1[y1]=arguments[y1+2];Object.freeze&&Object.freeze(C1),I1.children=C1}if(I&&I.defaultProps)for(v1 in N1=I.defaultProps,N1)I1[v1]===void 0&&(I1[v1]=N1[v1]);R1&&N(I1,typeof I==="function"?I.displayName||I.name||"Unknown":I);var v1=1e4>u1.recentlyCreatedOwnerStacks++;return j(I,R1,I1,A(),v1?Error("react-stack-top-frame"):A2,v1?o1(M(I)):C2)},YN.createRef=function(){var I={current:null};return Object.seal(I),I},YN.forwardRef=function(I){I!=null&&I.$$typeof===B1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof I!=="function"?console.error("forwardRef requires a render function but was given %s.",I===null?"null":typeof I):I.length!==0&&I.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",I.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),I!=null&&I.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var l={$$typeof:W1,render:I},F1;return Object.defineProperty(l,"displayName",{enumerable:!1,configurable:!0,get:function(){return F1},set:function(I1){F1=I1,I.name||I.displayName||(Object.defineProperty(I,"name",{value:I1}),I.displayName=I1)}}),l},YN.isValidElement=C,YN.lazy=function(I){I={_status:-1,_result:I};var l={$$typeof:U1,_payload:I,_init:k},F1={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return I._ioInfo=F1,l._debugInfo=[{awaited:F1}],l},YN.memo=function(I,l){I==null&&console.error("memo: The first argument must be a component. Instead received: %s",I===null?"null":typeof I),l={$$typeof:B1,type:I,compare:l===void 0?null:l};var F1;return Object.defineProperty(l,"displayName",{enumerable:!1,configurable:!0,get:function(){return F1},set:function(I1){F1=I1,I.name||I.displayName||(Object.defineProperty(I,"name",{value:I1}),I.displayName=I1)}}),l},YN.startTransition=function(I){var l=u1.T,F1={};F1._updatedFibers=new Set,u1.T=F1;try{var I1=I(),R1=u1.S;R1!==null&&R1(F1,I1),typeof I1==="object"&&I1!==null&&typeof I1.then==="function"&&(u1.asyncTransitions++,I1.then($1,$1),I1.then(W,_2))}catch(N1){_2(N1)}finally{l===null&&F1._updatedFibers&&(I=F1._updatedFibers.size,F1._updatedFibers.clear(),10<I&&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.")),l!==null&&F1.types!==null&&(l.types!==null&&l.types!==F1.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."),l.types=F1.types),u1.T=l}},YN.unstable_useCacheRefresh=function(){return x().useCacheRefresh()},YN.use=function(I){return x().use(I)},YN.useActionState=function(I,l,F1){return x().useActionState(I,l,F1)},YN.useCallback=function(I,l){return x().useCallback(I,l)},YN.useContext=function(I){var l=x();return I.$$typeof===q1&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),l.useContext(I)},YN.useDebugValue=function(I,l){return x().useDebugValue(I,l)},YN.useDeferredValue=function(I,l){return x().useDeferredValue(I,l)},YN.useEffect=function(I,l){return I==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),x().useEffect(I,l)},YN.useEffectEvent=function(I){return x().useEffectEvent(I)},YN.useId=function(){return x().useId()},YN.useImperativeHandle=function(I,l,F1){return x().useImperativeHandle(I,l,F1)},YN.useInsertionEffect=function(I,l){return I==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),x().useInsertionEffect(I,l)},YN.useLayoutEffect=function(I,l){return I==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),x().useLayoutEffect(I,l)},YN.useMemo=function(I,l){return x().useMemo(I,l)},YN.useOptimistic=function(I,l){return x().useOptimistic(I,l)},YN.useReducer=function(I,l,F1){return x().useReducer(I,l,F1)},YN.useRef=function(I){return x().useRef(I)},YN.useState=function(I){return x().useState(I)},YN.useSyncExternalStore=function(I,l,F1){return x().useSyncExternalStore(I,l,F1)},YN.useTransition=function(){return x().useTransition()},YN.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=p4((zN)=>{var lF=p0(G4());(function(){function Q(){}function U(M){return""+M}function Z(M,A,O){var P=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{U(P);var N=!1}catch(V){N=!0}return N&&(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&&P[Symbol.toStringTag]||P.constructor.name||"Object"),U(P)),{$$typeof:T,key:P==null?null:""+P,children:M,containerInfo:A,implementation:O}}function K(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:
|
|
13
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),I}function $1(){u1.asyncTransitions--}function Q1(I){if(m2===null)try{var l=("require"+Math.random()).slice(0,7);m2=(Lq&&Lq[l]).call(Lq,"timers").setImmediate}catch(F1){m2=function(I1){z4===!1&&(z4=!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 R1=new MessageChannel;R1.port1.onmessage=I1,R1.port2.postMessage(void 0)}}return m2(I)}function J1(I){return 1<I.length&&typeof AggregateError==="function"?AggregateError(I):I[0]}function m(I,l){l!==f5-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. "),f5=l}function p(I,l,F1){var I1=u1.actQueue;if(I1!==null)if(I1.length!==0)try{c(I1),Q1(function(){return p(I,l,F1)});return}catch(R1){u1.thrownErrors.push(R1)}else u1.actQueue=null;0<u1.thrownErrors.length?(I1=J1(u1.thrownErrors),u1.thrownErrors.length=0,F1(I1)):l(I)}function c(I){if(!r5){r5=!0;var l=0;try{for(;l<I.length;l++){var F1=I[l];do{u1.didUsePromise=!1;var I1=F1(!1);if(I1!==null){if(u1.didUsePromise){I[l]=F1,I.splice(0,l);return}F1=I1}else break}while(1)}I.length=0}catch(R1){I.splice(0,l+1),u1.thrownErrors.push(R1)}finally{r5=!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"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),q1=Symbol.for("react.consumer"),t=Symbol.for("react.context"),W1=Symbol.for("react.forward_ref"),T1=Symbol.for("react.suspense"),O1=Symbol.for("react.suspense_list"),L1=Symbol.for("react.memo"),U1=Symbol.for("react.lazy"),P1=Symbol.for("react.activity"),v1=Symbol.iterator,A1={},k1={isMounted:function(){return!1},enqueueForceUpdate:function(I){Z(I,"forceUpdate")},enqueueReplaceState:function(I){Z(I,"replaceState")},enqueueSetState:function(I){Z(I,"setState")}},D1=Object.assign,g1={};Object.freeze(g1),K.prototype.isReactComponent={},K.prototype.setState=function(I,l){if(typeof I!=="object"&&typeof I!=="function"&&I!=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,I,l,"setState")},K.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};var h1={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(G1 in h1)h1.hasOwnProperty(G1)&&Q(G1,h1[G1]);H.prototype=K.prototype,h1=Y.prototype=new H,h1.constructor=Y,D1(h1,K.prototype),h1.isPureReactComponent=!0;var M1=Array.isArray,r1=Symbol.for("react.client.reference"),u1={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},D0=Object.prototype.hasOwnProperty,o1=console.createTask?console.createTask:function(){return null};h1={react_stack_bottom_frame:function(I){return I()}};var X2,K2,N2={},A2=h1.react_stack_bottom_frame.bind(h1,O)(),C2=o1(M(O)),M2=!1,H2=/\/+/g,_2=typeof reportError==="function"?reportError:function(I){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I==="object"&&I!==null&&typeof I.message==="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(l))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",I);return}console.error(I)},z4=!1,m2=null,f5=0,S5=!1,r5=!1,o4=typeof queueMicrotask==="function"?function(I){queueMicrotask(function(){return queueMicrotask(I)})}:Q1;h1=Object.freeze({__proto__:null,c:function(I){return x().useMemoCache(I)}});var G1={map:b,forEach:function(I,l,F1){b(I,function(){l.apply(this,arguments)},F1)},count:function(I){var l=0;return b(I,function(){l++}),l},toArray:function(I){return b(I,function(l){return l})||[]},only:function(I){if(!f(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};YN.Activity=P1,YN.Children=G1,YN.Component=K,YN.Fragment=o,YN.Profiler=g,YN.PureComponent=Y,YN.StrictMode=y,YN.Suspense=T1,YN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u1,YN.__COMPILER_RUNTIME=h1,YN.act=function(I){var l=u1.actQueue,F1=f5;f5++;var I1=u1.actQueue=l!==null?l:[],R1=!1;try{var N1=I()}catch(j1){u1.thrownErrors.push(j1)}if(0<u1.thrownErrors.length)throw m(l,F1),I=J1(u1.thrownErrors),u1.thrownErrors.length=0,I;if(N1!==null&&typeof N1==="object"&&typeof N1.then==="function"){var C1=N1;return o4(function(){R1||S5||(S5=!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(j1,p1){R1=!0,C1.then(function(S0){if(m(l,F1),F1===0){try{c(I1),Q1(function(){return p(S0,j1,p1)})}catch(n4){u1.thrownErrors.push(n4)}if(0<u1.thrownErrors.length){var w0=J1(u1.thrownErrors);u1.thrownErrors.length=0,p1(w0)}}else j1(S0)},function(S0){m(l,F1),0<u1.thrownErrors.length?(S0=J1(u1.thrownErrors),u1.thrownErrors.length=0,p1(S0)):p1(S0)})}}}var y1=N1;if(m(l,F1),F1===0&&(c(I1),I1.length!==0&&o4(function(){R1||S5||(S5=!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(() => ...)"))}),u1.actQueue=null),0<u1.thrownErrors.length)throw I=J1(u1.thrownErrors),u1.thrownErrors.length=0,I;return{then:function(j1,p1){R1=!0,F1===0?(u1.actQueue=I1,Q1(function(){return p(y1,j1,p1)})):j1(y1)}}},YN.cache=function(I){return function(){return I.apply(null,arguments)}},YN.cacheSignal=function(){return null},YN.captureOwnerStack=function(){var I=u1.getCurrentStack;return I===null?null:I()},YN.cloneElement=function(I,l,F1){if(I===null||I===void 0)throw Error("The argument must be a React element, but you passed "+I+".");var I1=D1({},I.props),R1=I.key,N1=I._owner;if(l!=null){var C1;_:{if(D0.call(l,"ref")&&(C1=Object.getOwnPropertyDescriptor(l,"ref").get)&&C1.isReactWarning){C1=!1;break _}C1=l.ref!==void 0}C1&&(N1=A()),P(l)&&(T(l.key),R1=""+l.key);for(y1 in l)!D0.call(l,y1)||y1==="key"||y1==="__self"||y1==="__source"||y1==="ref"&&l.ref===void 0||(I1[y1]=l[y1])}var y1=arguments.length-2;if(y1===1)I1.children=F1;else if(1<y1){C1=Array(y1);for(var j1=0;j1<y1;j1++)C1[j1]=arguments[j1+2];I1.children=C1}I1=v(I.type,R1,I1,N1,I._debugStack,I._debugTask);for(R1=2;R1<arguments.length;R1++)u(arguments[R1]);return I1},YN.createContext=function(I){return I={$$typeof:t,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:q1,_context:I},I._currentRenderer=null,I._currentRenderer2=null,I},YN.createElement=function(I,l,F1){for(var I1=2;I1<arguments.length;I1++)u(arguments[I1]);I1={};var R1=null;if(l!=null)for(j1 in K2||!("__self"in l)||"key"in l||(K2=!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")),P(l)&&(T(l.key),R1=""+l.key),l)D0.call(l,j1)&&j1!=="key"&&j1!=="__self"&&j1!=="__source"&&(I1[j1]=l[j1]);var N1=arguments.length-2;if(N1===1)I1.children=F1;else if(1<N1){for(var C1=Array(N1),y1=0;y1<N1;y1++)C1[y1]=arguments[y1+2];Object.freeze&&Object.freeze(C1),I1.children=C1}if(I&&I.defaultProps)for(j1 in N1=I.defaultProps,N1)I1[j1]===void 0&&(I1[j1]=N1[j1]);R1&&N(I1,typeof I==="function"?I.displayName||I.name||"Unknown":I);var j1=1e4>u1.recentlyCreatedOwnerStacks++;return v(I,R1,I1,A(),j1?Error("react-stack-top-frame"):A2,j1?o1(M(I)):C2)},YN.createRef=function(){var I={current:null};return Object.seal(I),I},YN.forwardRef=function(I){I!=null&&I.$$typeof===L1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof I!=="function"?console.error("forwardRef requires a render function but was given %s.",I===null?"null":typeof I):I.length!==0&&I.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",I.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),I!=null&&I.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var l={$$typeof:W1,render:I},F1;return Object.defineProperty(l,"displayName",{enumerable:!1,configurable:!0,get:function(){return F1},set:function(I1){F1=I1,I.name||I.displayName||(Object.defineProperty(I,"name",{value:I1}),I.displayName=I1)}}),l},YN.isValidElement=f,YN.lazy=function(I){I={_status:-1,_result:I};var l={$$typeof:U1,_payload:I,_init:k},F1={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return I._ioInfo=F1,l._debugInfo=[{awaited:F1}],l},YN.memo=function(I,l){I==null&&console.error("memo: The first argument must be a component. Instead received: %s",I===null?"null":typeof I),l={$$typeof:L1,type:I,compare:l===void 0?null:l};var F1;return Object.defineProperty(l,"displayName",{enumerable:!1,configurable:!0,get:function(){return F1},set:function(I1){F1=I1,I.name||I.displayName||(Object.defineProperty(I,"name",{value:I1}),I.displayName=I1)}}),l},YN.startTransition=function(I){var l=u1.T,F1={};F1._updatedFibers=new Set,u1.T=F1;try{var I1=I(),R1=u1.S;R1!==null&&R1(F1,I1),typeof I1==="object"&&I1!==null&&typeof I1.then==="function"&&(u1.asyncTransitions++,I1.then($1,$1),I1.then(W,_2))}catch(N1){_2(N1)}finally{l===null&&F1._updatedFibers&&(I=F1._updatedFibers.size,F1._updatedFibers.clear(),10<I&&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.")),l!==null&&F1.types!==null&&(l.types!==null&&l.types!==F1.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."),l.types=F1.types),u1.T=l}},YN.unstable_useCacheRefresh=function(){return x().useCacheRefresh()},YN.use=function(I){return x().use(I)},YN.useActionState=function(I,l,F1){return x().useActionState(I,l,F1)},YN.useCallback=function(I,l){return x().useCallback(I,l)},YN.useContext=function(I){var l=x();return I.$$typeof===q1&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),l.useContext(I)},YN.useDebugValue=function(I,l){return x().useDebugValue(I,l)},YN.useDeferredValue=function(I,l){return x().useDeferredValue(I,l)},YN.useEffect=function(I,l){return I==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),x().useEffect(I,l)},YN.useEffectEvent=function(I){return x().useEffectEvent(I)},YN.useId=function(){return x().useId()},YN.useImperativeHandle=function(I,l,F1){return x().useImperativeHandle(I,l,F1)},YN.useInsertionEffect=function(I,l){return I==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),x().useInsertionEffect(I,l)},YN.useLayoutEffect=function(I,l){return I==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),x().useLayoutEffect(I,l)},YN.useMemo=function(I,l){return x().useMemo(I,l)},YN.useOptimistic=function(I,l){return x().useOptimistic(I,l)},YN.useReducer=function(I,l,F1){return x().useReducer(I,l,F1)},YN.useRef=function(I){return x().useRef(I)},YN.useState=function(I){return x().useState(I)},YN.useSyncExternalStore=function(I,l,F1){return x().useSyncExternalStore(I,l,F1)},YN.useTransition=function(){return x().useTransition()},YN.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=p4((zN)=>{var lF=p0(G4());(function(){function Q(){}function U(M){return""+M}function Z(M,A,O){var P=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{U(P);var N=!1}catch(V){N=!0}return N&&(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&&P[Symbol.toStringTag]||P.constructor.name||"Object"),U(P)),{$$typeof:T,key:P==null?null:""+P,children:M,containerInfo:A,implementation:O}}function K(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.`),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=lF.__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"),zN.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,zN.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)},zN.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.")}},zN.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))},zN.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)},zN.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,P=K(O,A.crossOrigin),N=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:P,integrity:N,fetchPriority:V}):O==="script"&&B.d.X(M,{crossOrigin:P,integrity:N,fetchPriority:V,nonce:typeof A.nonce==="string"?A.nonce:void 0})}},zN.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=K(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)},zN.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 P=K(O,A.crossOrigin);B.d.L(M,O,{crossOrigin:P,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})}},zN.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=K(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))},zN.requestFormReset=function(M){B.d.r(M)},zN.unstable_batchedUpdates=function(M,A){return M(A)},zN.useFormState=function(M,A,O){return W().useFormState(M,A,O)},zN.useFormStatus=function(){return W().useHostTransitionStatus()},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 iF=p4((Zk,kA)=>{var WN=p0(yA());kA.exports=WN});var DA=p4((BN)=>{var W0=p0(VA()),J9=p0(G4()),dF=p0(iF());(function(){function Q(_,J){for(_=_.memoizedState;_!==null&&0<J;)_=_.next,J--;return _}function U(_,J,$,q){if($>=J.length)return q;var G=J[$],X=Y2(_)?_.slice():U0({},_);return X[G]=U(_[G],J,$+1,q),X}function Z(_,J,$){if(J.length!==$.length)console.warn("copyWithRename() expects paths of the same length");else{for(var q=0;q<$.length-1;q++)if(J[q]!==$[q]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return K(_,J,$,0)}}function K(_,J,$,q){var G=J[q],X=Y2(_)?_.slice():U0({},_);return q+1===J.length?(X[$[q]]=X[G],Y2(X)?X.splice(G,1):delete X[G]):X[G]=K(_[G],J,$,q+1),X}function H(_,J,$){var q=J[$],G=Y2(_)?_.slice():U0({},_);if($+1===J.length)return Y2(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 rO(_,J,$,q)}function P(_,J){_.context===Z6&&(KZ(_.current,2,J,_,null,null),Y7())}function N(_,J){if(k5!==null){var $=J.staleFamilies;J=J.updatedFamilies,Q_(),bH(_.current,J,$),Y7()}}function V(_){k5=_}function j(_){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 u(_){if(_.tag===13){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function C(_){if(_.tag===31){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function v(_){if(f(_)!==_)throw Error("Unable to find node on an unmounted component.")}function D(_){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 X=G.alternate;if(X===null){if(q=G.return,q!==null){$=q;continue}break}if(G.child===X.child){for(X=G.child;X;){if(X===$)return v(G),_;if(X===q)return v(G),J;X=X.sibling}throw Error("Unable to find node on an unmounted component.")}if($.return!==q.return)$=G,q=X;else{for(var z=!1,L=G.child;L;){if(L===$){z=!0,$=G,q=X;break}if(L===q){z=!0,q=G,$=X;break}L=L.sibling}if(!z){for(L=X.child;L;){if(L===$){z=!0,$=X,q=G;break}if(L===q){z=!0,q=X,$=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 E(_){if(_===null||typeof _!=="object")return null;return _=cW&&_[cW]||_["@@iterator"],typeof _==="function"?_:null}function b(_){if(_==null)return null;if(typeof _==="function")return _.$$typeof===Ww?null:_.displayName||_.name||null;if(typeof _==="string")return _;switch(_){case T7:return"Fragment";case LZ:return"Profiler";case XQ:return"StrictMode";case MZ:return"Suspense";case TZ:return"SuspenseList";case RZ: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 M7:return"Portal";case V4:return _.displayName||"Context";case AZ:return(_._context.displayName||"Context")+".Consumer";case z_:var J=_.render;return _=_.displayName,_||(_=J.displayName||J.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case KQ:return J=_.displayName||null,J!==null?J:b(_.type)||"Memo";case L5:J=_._payload,_=_._init;try{return b(_(J))}catch($){}}return null}function k(_){return typeof _.tag==="number"?x(_):typeof _.name==="string"?_.name:null}function x(_){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===XQ?"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 x(_.return)}return null}function $1(_){return{current:_}}function Q1(_,J){0>F3?console.error("Unexpected pop."):(J!==IZ[F3]&&console.error("Unexpected Fiber popped."),_.current=OZ[F3],OZ[F3]=null,IZ[F3]=null,F3--)}function J1(_,J,$){F3++,OZ[F3]=_.current,IZ[F3]=$,_.current=J}function m(_){return _===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),_}function p(_,J){J1(J6,J,_),J1(W_,_,_),J1(_6,null,_);var $=J.nodeType;switch($){case 9:case 11:$=$===9?"#document":"#fragment",J=(J=J.documentElement)?(J=J.namespaceURI)?zW(J):I3:I3;break;default:if($=J.tagName,J=J.namespaceURI)J=zW(J),J=WW(J,$);else switch($){case"svg":J=e7;break;case"math":J=Fq;break;default:J=I3}}$=$.toLowerCase(),$=y9(null,$),$={context:J,ancestorInfo:$},Q1(_6,_),J1(_6,$,_)}function c(_){Q1(_6,_),Q1(W_,_),Q1(J6,_)}function a(){return m(_6.current)}function i(_){_.memoizedState!==null&&J1(HQ,_,_);var J=m(_6.current),$=_.type,q=WW(J.context,$);$=y9(J.ancestorInfo,$),q={context:q,ancestorInfo:$},J!==q&&(J1(W_,_,_),J1(_6,q,_))}function o(_){W_.current===_&&(Q1(_6,_),Q1(W_,_)),HQ.current===_&&(Q1(HQ,_),UJ._currentValue=P8)}function y(){}function g(){if(B_===0){lW=console.log,iW=console.info,dW=console.warn,rW=console.error,aW=console.group,sW=console.groupCollapsed,tW=console.groupEnd;var _={configurable:!0,enumerable:!0,value:y,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}B_++}function q1(){if(B_--,B_===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U0({},_,{value:lW}),info:U0({},_,{value:iW}),warn:U0({},_,{value:dW}),error:U0({},_,{value:rW}),group:U0({},_,{value:aW}),groupCollapsed:U0({},_,{value:sW}),groupEnd:U0({},_,{value:tW})})}0>B_&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function t(_){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 L={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=lF.__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"),zN.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,zN.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)},zN.flushSync=function(M){var A=R.T,O=L.p;try{if(R.T=null,L.p=2,M)return M()}finally{R.T=A,L.p=O,L.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.")}},zN.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,L.d.C(M,A))},zN.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"&&L.d.D(M)},zN.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,P=K(O,A.crossOrigin),N=typeof A.integrity==="string"?A.integrity:void 0,V=typeof A.fetchPriority==="string"?A.fetchPriority:void 0;O==="style"?L.d.S(M,typeof A.precedence==="string"?A.precedence:void 0,{crossOrigin:P,integrity:N,fetchPriority:V}):O==="script"&&L.d.X(M,{crossOrigin:P,integrity:N,fetchPriority:V,nonce:typeof A.nonce==="string"?A.nonce:void 0})}},zN.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=K(A.as,A.crossOrigin),L.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&&L.d.M(M)},zN.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 P=K(O,A.crossOrigin);L.d.L(M,O,{crossOrigin:P,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})}},zN.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=K(A.as,A.crossOrigin),L.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})):L.d.m(M))},zN.requestFormReset=function(M){L.d.r(M)},zN.unstable_batchedUpdates=function(M,A){return M(A)},zN.useFormState=function(M,A,O){return W().useFormState(M,A,O)},zN.useFormStatus=function(){return W().useHostTransitionStatus()},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 iF=p4((Zk,kA)=>{var WN=p0(yA());kA.exports=WN});var DA=p4((LN)=>{var W0=p0(VA()),J9=p0(G4()),dF=p0(iF());(function(){function Q(_,J){for(_=_.memoizedState;_!==null&&0<J;)_=_.next,J--;return _}function U(_,J,$,q){if($>=J.length)return q;var G=J[$],X=Y2(_)?_.slice():U0({},_);return X[G]=U(_[G],J,$+1,q),X}function Z(_,J,$){if(J.length!==$.length)console.warn("copyWithRename() expects paths of the same length");else{for(var q=0;q<$.length-1;q++)if(J[q]!==$[q]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return K(_,J,$,0)}}function K(_,J,$,q){var G=J[q],X=Y2(_)?_.slice():U0({},_);return q+1===J.length?(X[$[q]]=X[G],Y2(X)?X.splice(G,1):delete X[G]):X[G]=K(_[G],J,$,q+1),X}function H(_,J,$){var q=J[$],G=Y2(_)?_.slice():U0({},_);if($+1===J.length)return Y2(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 L(){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 rO(_,J,$,q)}function P(_,J){_.context===F6&&(KZ(_.current,2,J,_,null,null),Y7())}function N(_,J){if(k5!==null){var $=J.staleFamilies;J=J.updatedFamilies,Q_(),bH(_.current,J,$),Y7()}}function V(_){k5=_}function v(_){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 u(_){if(_.tag===13){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function f(_){if(_.tag===31){var J=_.memoizedState;if(J===null&&(_=_.alternate,_!==null&&(J=_.memoizedState)),J!==null)return J.dehydrated}return null}function j(_){if(C(_)!==_)throw Error("Unable to find node on an unmounted component.")}function D(_){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 X=G.alternate;if(X===null){if(q=G.return,q!==null){$=q;continue}break}if(G.child===X.child){for(X=G.child;X;){if(X===$)return j(G),_;if(X===q)return j(G),J;X=X.sibling}throw Error("Unable to find node on an unmounted component.")}if($.return!==q.return)$=G,q=X;else{for(var z=!1,B=G.child;B;){if(B===$){z=!0,$=G,q=X;break}if(B===q){z=!0,q=G,$=X;break}B=B.sibling}if(!z){for(B=X.child;B;){if(B===$){z=!0,$=X,q=G;break}if(B===q){z=!0,q=X,$=G;break}B=B.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 E(_){if(_===null||typeof _!=="object")return null;return _=cW&&_[cW]||_["@@iterator"],typeof _==="function"?_:null}function b(_){if(_==null)return null;if(typeof _==="function")return _.$$typeof===Ww?null:_.displayName||_.name||null;if(typeof _==="string")return _;switch(_){case T7:return"Fragment";case BZ:return"Profiler";case XQ:return"StrictMode";case MZ:return"Suspense";case TZ:return"SuspenseList";case RZ: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 M7:return"Portal";case V4:return _.displayName||"Context";case AZ:return(_._context.displayName||"Context")+".Consumer";case z_:var J=_.render;return _=_.displayName,_||(_=J.displayName||J.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case KQ:return J=_.displayName||null,J!==null?J:b(_.type)||"Memo";case B5:J=_._payload,_=_._init;try{return b(_(J))}catch($){}}return null}function k(_){return typeof _.tag==="number"?x(_):typeof _.name==="string"?_.name:null}function x(_){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===XQ?"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 x(_.return)}return null}function $1(_){return{current:_}}function Q1(_,J){0>F3?console.error("Unexpected pop."):(J!==IZ[F3]&&console.error("Unexpected Fiber popped."),_.current=OZ[F3],OZ[F3]=null,IZ[F3]=null,F3--)}function J1(_,J,$){F3++,OZ[F3]=_.current,IZ[F3]=$,_.current=J}function m(_){return _===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),_}function p(_,J){J1($6,J,_),J1(W_,_,_),J1(J6,null,_);var $=J.nodeType;switch($){case 9:case 11:$=$===9?"#document":"#fragment",J=(J=J.documentElement)?(J=J.namespaceURI)?zW(J):I3:I3;break;default:if($=J.tagName,J=J.namespaceURI)J=zW(J),J=WW(J,$);else switch($){case"svg":J=e7;break;case"math":J=Fq;break;default:J=I3}}$=$.toLowerCase(),$=y9(null,$),$={context:J,ancestorInfo:$},Q1(J6,_),J1(J6,$,_)}function c(_){Q1(J6,_),Q1(W_,_),Q1($6,_)}function a(){return m(J6.current)}function i(_){_.memoizedState!==null&&J1(HQ,_,_);var J=m(J6.current),$=_.type,q=WW(J.context,$);$=y9(J.ancestorInfo,$),q={context:q,ancestorInfo:$},J!==q&&(J1(W_,_,_),J1(J6,q,_))}function o(_){W_.current===_&&(Q1(J6,_),Q1(W_,_)),HQ.current===_&&(Q1(HQ,_),UJ._currentValue=P8)}function y(){}function g(){if(L_===0){lW=console.log,iW=console.info,dW=console.warn,rW=console.error,aW=console.group,sW=console.groupCollapsed,tW=console.groupEnd;var _={configurable:!0,enumerable:!0,value:y,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}L_++}function q1(){if(L_--,L_===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U0({},_,{value:lW}),info:U0({},_,{value:iW}),warn:U0({},_,{value:dW}),error:U0({},_,{value:rW}),group:U0({},_,{value:aW}),groupCollapsed:U0({},_,{value:sW}),groupEnd:U0({},_,{value:tW})})}0>L_&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function t(_){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
20
|
`,J)),J!==-1)_=_.slice(0,J);else return"";return _}function W1(_){if(wZ===void 0)try{throw Error()}catch($){var J=$.stack.trim().match(/\n( *(at )?)/);wZ=J&&J[1]||"",oW=-1<$.stack.indexOf(`
|
|
21
21
|
at`)?" (<anonymous>)":-1<$.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
22
|
-
`+wZ+_+oW}function T1(_,J){if(!_||PZ)return"";var $=NZ.get(_);if($!==void 0)return $;PZ=!0,$=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var q=null;q=Y1.H,Y1.H=null,g();try{var G={DetermineComponentFrameRoot:function(){try{if(J){var r=function(){throw Error()};if(Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(f1){var Z1=f1}Reflect.construct(_,[],r)}else{try{r.call()}catch(f1){Z1=f1}_.call(r.prototype)}}else{try{throw Error()}catch(f1){Z1=f1}(r=_())&&typeof r.catch==="function"&&r.catch(function(){})}}catch(f1){if(f1&&Z1&&typeof f1.stack==="string")return[f1.stack,Z1.stack]}return[null,null]}};G.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var X=Object.getOwnPropertyDescriptor(G.DetermineComponentFrameRoot,"name");X&&X.configurable&&Object.defineProperty(G.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var z=G.DetermineComponentFrameRoot(),
|
|
22
|
+
`+wZ+_+oW}function T1(_,J){if(!_||PZ)return"";var $=NZ.get(_);if($!==void 0)return $;PZ=!0,$=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var q=null;q=Y1.H,Y1.H=null,g();try{var G={DetermineComponentFrameRoot:function(){try{if(J){var r=function(){throw Error()};if(Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(f1){var Z1=f1}Reflect.construct(_,[],r)}else{try{r.call()}catch(f1){Z1=f1}_.call(r.prototype)}}else{try{throw Error()}catch(f1){Z1=f1}(r=_())&&typeof r.catch==="function"&&r.catch(function(){})}}catch(f1){if(f1&&Z1&&typeof f1.stack==="string")return[f1.stack,Z1.stack]}return[null,null]}};G.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var X=Object.getOwnPropertyDescriptor(G.DetermineComponentFrameRoot,"name");X&&X.configurable&&Object.defineProperty(G.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var z=G.DetermineComponentFrameRoot(),B=z[0],w=z[1];if(B&&w){var S=B.split(`
|
|
23
23
|
`),e=w.split(`
|
|
24
24
|
`);for(z=X=0;X<S.length&&!S[X].includes("DetermineComponentFrameRoot");)X++;for(;z<e.length&&!e[z].includes("DetermineComponentFrameRoot");)z++;if(X===S.length||z===e.length)for(X=S.length-1,z=e.length-1;1<=X&&0<=z&&S[X]!==e[z];)z--;for(;1<=X&&0<=z;X--,z--)if(S[X]!==e[z]){if(X!==1||z!==1)do if(X--,z--,0>z||S[X]!==e[z]){var _1=`
|
|
25
|
-
`+S[X].replace(" at new "," at ");return _.displayName&&_1.includes("<anonymous>")&&(_1=_1.replace("<anonymous>",_.displayName)),typeof _==="function"&&NZ.set(_,_1),_1}while(1<=X&&0<=z);break}}}finally{PZ=!1,Y1.H=q,q1(),Error.prepareStackTrace=$}return S=(S=_?_.displayName||_.name:"")?W1(S):"",typeof _==="function"&&NZ.set(_,S),S}function O1(_,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 T1(_.type,!1);case 11:return T1(_.type.render,!1);case 1:return T1(_.type,!0);case 31:return W1("Activity");default:return""}}function
|
|
26
|
-
`),r=_1===-1?e:e.slice(_1+1);if(r.indexOf(
|
|
27
|
-
`+r;break _}}Z1=W1(
|
|
25
|
+
`+S[X].replace(" at new "," at ");return _.displayName&&_1.includes("<anonymous>")&&(_1=_1.replace("<anonymous>",_.displayName)),typeof _==="function"&&NZ.set(_,_1),_1}while(1<=X&&0<=z);break}}}finally{PZ=!1,Y1.H=q,q1(),Error.prepareStackTrace=$}return S=(S=_?_.displayName||_.name:"")?W1(S):"",typeof _==="function"&&NZ.set(_,S),S}function O1(_,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 T1(_.type,!1);case 11:return T1(_.type.render,!1);case 1:return T1(_.type,!0);case 31:return W1("Activity");default:return""}}function L1(_){try{var J="",$=null;do{J+=O1(_,$);var q=_._debugInfo;if(q)for(var G=q.length-1;0<=G;G--){var X=q[G];if(typeof X.name==="string"){var z=J;_:{var{name:B,env:w,debugLocation:S}=X;if(S!=null){var e=t(S),_1=e.lastIndexOf(`
|
|
26
|
+
`),r=_1===-1?e:e.slice(_1+1);if(r.indexOf(B)!==-1){var Z1=`
|
|
27
|
+
`+r;break _}}Z1=W1(B+(w?" ["+w+"]":""))}J=z+Z1}}$=_,_=_.return}while(_);return J}catch(f1){return`
|
|
28
28
|
Error generating stack: `+f1.message+`
|
|
29
|
-
`+f1.stack}}function U1(_){return(_=_?_.displayName||_.name:"")?W1(_):""}function P1(){if(A5===null)return null;var _=A5._debugOwner;return _!=null?k(_):null}function
|
|
29
|
+
`+f1.stack}}function U1(_){return(_=_?_.displayName||_.name:"")?W1(_):""}function P1(){if(A5===null)return null;var _=A5._debugOwner;return _!=null?k(_):null}function v1(){if(A5===null)return"";var _=A5;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=t(q);G!==""&&(J+=`
|
|
30
30
|
`+G)}}else if(_.debugStack!=null){var X=_.debugStack;(_=_.owner)&&X&&(J+=`
|
|
31
|
-
`+t(X))}else break;var z=J}catch(
|
|
32
|
-
Error generating stack: `+
|
|
33
|
-
`+L.stack}return z}function A1(_,J,$,q,G,X,z){var L=A5;k1(_);try{return _!==null&&_._debugTask?_._debugTask.run(J.bind(null,$,q,G,X,z)):J($,q,G,X,z)}finally{k1(L)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function k1(_){Y1.getCurrentStack=_===null?null:j1,y4=!1,A5=_}function D1(_){return typeof Symbol==="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object"}function g1(_){try{return h1(_),!1}catch(J){return!0}}function h1(_){return""+_}function M1(_,J){if(g1(_))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,D1(_)),h1(_)}function r1(_,J){if(g1(_))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,D1(_)),h1(_)}function u1(_){if(g1(_))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.",D1(_)),h1(_)}function D0(_){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{O7=J.inject(_),D2=J}catch($){console.error("React instrumentation encountered an error: %o.",$)}return J.checkDCE?!0:!1}function o1(_){if(typeof Ow==="function"&&Iw(_),D2&&typeof D2.setStrictMode==="function")try{D2.setStrictMode(O7,_)}catch(J){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",J))}}function X2(_){return _>>>=0,_===0?32:31-(ww(_)/Pw|0)|0}function K2(_){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 N2(_,J,$){var q=_.pendingLanes;if(q===0)return 0;var G=0,X=_.suspendedLanes,z=_.pingedLanes;_=_.warmLanes;var L=q&134217727;return L!==0?(q=L&~X,q!==0?G=K2(q):(z&=L,z!==0?G=K2(z):$||($=L&~_,$!==0&&(G=K2($))))):(L=q&~X,L!==0?G=K2(L):z!==0?G=K2(z):$||($=q&~_,$!==0&&(G=K2($)))),G===0?0:J!==0&&J!==G&&(J&X)===0&&(X=G&-G,$=J&-J,X>=$||X===32&&($&4194048)!==0)?J:G}function A2(_,J){return(_.pendingLanes&~(_.suspendedLanes&~_.pingedLanes)&J)===0}function C2(_,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 M2(){var _=WQ;return WQ<<=1,(WQ&62914560)===0&&(WQ=4194304),_}function H2(_){for(var J=[],$=0;31>$;$++)J.push(_);return J}function _2(_,J){_.pendingLanes|=J,J!==268435456&&(_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0)}function z4(_,J,$,q,G,X){var z=_.pendingLanes;_.pendingLanes=$,_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0,_.expiredLanes&=$,_.entangledLanes&=$,_.errorRecoveryDisabledLanes&=$,_.shellSuspendCounter=0;var{entanglements:L,expirationTimes:w,hiddenUpdates:S}=_;for($=z&~$;0<$;){var e=31-c2($),_1=1<<e;L[e]=0,w[e]=-1;var r=S[e];if(r!==null)for(S[e]=null,e=0;e<r.length;e++){var Z1=r[e];Z1!==null&&(Z1.lane&=-536870913)}$&=~_1}q!==0&&m2(_,q,0),X!==0&&G===0&&_.tag!==0&&(_.suspendedLanes|=X&~(z&~J))}function m2(_,J,$){_.pendingLanes|=J,_.suspendedLanes&=~J;var q=31-c2(J);_.entangledLanes|=J,_.entanglements[q]=_.entanglements[q]|1073741824|$&261930}function f5(_,J){var $=_.entangledLanes|=J;for(_=_.entanglements;$;){var q=31-c2($),G=1<<q;G&J|_[q]&J&&(_[q]|=J),$&=~G}}function S5(_,J){var $=J&-J;return $=($&42)!==0?1:r5($),($&(_.suspendedLanes|J))!==0?0:$}function r5(_){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 o4(_,J,$){if(D4)for(_=_.pendingUpdatersLaneMap;0<$;){var q=31-c2($),G=1<<q;_[q].add(J),$&=~G}}function G1(_,J){if(D4)for(var{pendingUpdatersLaneMap:$,memoizedUpdaters:q}=_;0<J;){var G=31-c2(J);_=1<<G,G=$[G],0<G.size&&(G.forEach(function(X){var z=X.alternate;z!==null&&q.has(z)||q.add(X)}),G.clear()),J&=~_}}function I(_){return _&=-_,M5!==0&&M5<_?e5!==0&&e5<_?(_&134217727)!==0?u4:BQ:e5:M5}function l(){var _=A0.p;if(_!==0)return _;return _=window.event,_===void 0?u4:bW(_.type)}function F1(_,J){var $=A0.p;try{return A0.p=_,J()}finally{A0.p=$}}function I1(_){delete _[v2],delete _[l2],delete _[vZ],delete _[Nw],delete _[Cw]}function R1(_){var J=_[v2];if(J)return J;for(var $=_.parentNode;$;){if(J=$[Q6]||$[v2]){if($=J.alternate,J.child!==null||$!==null&&$.child!==null)for(_=IW(_);_!==null;){if($=_[v2])return $;_=IW(_)}return J}_=$,$=_.parentNode}return null}function N1(_){if(_=_[v2]||_[Q6]){var J=_.tag;if(J===5||J===6||J===13||J===31||J===26||J===27||J===3)return _}return null}function C1(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function y1(_){var J=_[nW];return J||(J=_[nW]={hoistableStyles:new Map,hoistableScripts:new Map}),J}function v1(_){_[L_]=!0}function p1(_,J){S0(_,J),S0(_+"Capture",J)}function S0(_,J){$8[_]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",_),$8[_]=J;var $=_.toLowerCase();VZ[$]=_,_==="onDoubleClick"&&(VZ.ondblclick=_);for(_=0;_<J.length;_++)eW.add(J[_])}function w0(_,J){fw[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 n4(_){if(n5.call(JB,_))return!0;if(n5.call(_B,_))return!1;if(Sw.test(_))return JB[_]=!0;return _B[_]=!0,console.error("Invalid attribute name: `%s`",_),!1}function j5(_,J,$){if(n4(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 M1($,J),_===""+$?$:_}}function T0(_,J,$){if(n4(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}}M1($,J),_.setAttribute(J,""+$)}}function n8(_,J,$){if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute(J);return}M1($,J),_.setAttribute(J,""+$)}}function a5(_,J,$,q){if(q===null)_.removeAttribute($);else{switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute($);return}M1(q,$),_.setAttributeNS(J,$,""+q)}}function e2(_){switch(typeof _){case"bigint":case"boolean":case"number":case"string":case"undefined":return _;case"object":return u1(_),_;default:return""}}function iJ(_){var J=_.type;return(_=_.nodeName)&&_.toLowerCase()==="input"&&(J==="checkbox"||J==="radio")}function BU(_,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:X}=q;return Object.defineProperty(_,J,{configurable:!0,get:function(){return G.call(this)},set:function(z){u1(z),$=""+z,X.call(this,z)}}),Object.defineProperty(_,J,{enumerable:q.enumerable}),{getValue:function(){return $},setValue:function(z){u1(z),$=""+z},stopTracking:function(){_._valueTracker=null,delete _[J]}}}}function N9(_){if(!_._valueTracker){var J=iJ(_)?"checked":"value";_._valueTracker=BU(_,J,""+_[J])}}function dJ(_){if(!_)return!1;var J=_._valueTracker;if(!J)return!0;var $=J.getValue(),q="";return _&&(q=iJ(_)?_.checked?"true":"false":_.value),_=q,_!==$?(J.setValue(_),!0):!1}function e8(_){if(_=_||(typeof document<"u"?document:void 0),typeof _>"u")return null;try{return _.activeElement||_.body}catch(J){return _.body}}function _5(_){return _.replace(jw,function(J){return"\\"+J.charCodeAt(0).toString(16)+" "})}function rJ(_,J){J.checked===void 0||J.defaultChecked===void 0||QB||(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",P1()||"A component",J.type),QB=!0),J.value===void 0||J.defaultValue===void 0||$B||(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",P1()||"A component",J.type),$B=!0)}function _7(_,J,$,q,G,X,z,L){if(_.name="",z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"?(M1(z,"type"),_.type=z):_.removeAttribute("type"),J!=null)if(z==="number"){if(J===0&&_.value===""||_.value!=J)_.value=""+e2(J)}else _.value!==""+e2(J)&&(_.value=""+e2(J));else z!=="submit"&&z!=="reset"||_.removeAttribute("value");J!=null?J7(_,z,e2(J)):$!=null?J7(_,z,e2($)):q!=null&&_.removeAttribute("value"),G==null&&X!=null&&(_.defaultChecked=!!X),G!=null&&(_.checked=G&&typeof G!=="function"&&typeof G!=="symbol"),L!=null&&typeof L!=="function"&&typeof L!=="symbol"&&typeof L!=="boolean"?(M1(L,"name"),_.name=""+e2(L)):_.removeAttribute("name")}function C9(_,J,$,q,G,X,z,L){if(X!=null&&typeof X!=="function"&&typeof X!=="symbol"&&typeof X!=="boolean"&&(M1(X,"type"),_.type=X),J!=null||$!=null){if(!(X!=="submit"&&X!=="reset"||J!==void 0&&J!==null)){N9(_);return}$=$!=null?""+e2($):"",J=J!=null?""+e2(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"&&(M1(z,"name"),_.name=z),N9(_)}function J7(_,J,$){J==="number"&&e8(_.ownerDocument)===_||_.defaultValue===""+$||(_.defaultValue=""+$)}function aJ(_,J){J.value==null&&(typeof J.children==="object"&&J.children!==null?J9.Children.forEach(J.children,function($){$==null||typeof $==="string"||typeof $==="number"||typeof $==="bigint"||UB||(UB=!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||GB||(GB=!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 sJ(){var _=P1();return _?`
|
|
31
|
+
`+t(X))}else break;var z=J}catch(B){z=`
|
|
32
|
+
Error generating stack: `+B.message+`
|
|
33
|
+
`+B.stack}return z}function A1(_,J,$,q,G,X,z){var B=A5;k1(_);try{return _!==null&&_._debugTask?_._debugTask.run(J.bind(null,$,q,G,X,z)):J($,q,G,X,z)}finally{k1(B)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function k1(_){Y1.getCurrentStack=_===null?null:v1,y4=!1,A5=_}function D1(_){return typeof Symbol==="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object"}function g1(_){try{return h1(_),!1}catch(J){return!0}}function h1(_){return""+_}function M1(_,J){if(g1(_))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,D1(_)),h1(_)}function r1(_,J){if(g1(_))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,D1(_)),h1(_)}function u1(_){if(g1(_))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.",D1(_)),h1(_)}function D0(_){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{O7=J.inject(_),D2=J}catch($){console.error("React instrumentation encountered an error: %o.",$)}return J.checkDCE?!0:!1}function o1(_){if(typeof Ow==="function"&&Iw(_),D2&&typeof D2.setStrictMode==="function")try{D2.setStrictMode(O7,_)}catch(J){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",J))}}function X2(_){return _>>>=0,_===0?32:31-(ww(_)/Pw|0)|0}function K2(_){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 N2(_,J,$){var q=_.pendingLanes;if(q===0)return 0;var G=0,X=_.suspendedLanes,z=_.pingedLanes;_=_.warmLanes;var B=q&134217727;return B!==0?(q=B&~X,q!==0?G=K2(q):(z&=B,z!==0?G=K2(z):$||($=B&~_,$!==0&&(G=K2($))))):(B=q&~X,B!==0?G=K2(B):z!==0?G=K2(z):$||($=q&~_,$!==0&&(G=K2($)))),G===0?0:J!==0&&J!==G&&(J&X)===0&&(X=G&-G,$=J&-J,X>=$||X===32&&($&4194048)!==0)?J:G}function A2(_,J){return(_.pendingLanes&~(_.suspendedLanes&~_.pingedLanes)&J)===0}function C2(_,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 M2(){var _=WQ;return WQ<<=1,(WQ&62914560)===0&&(WQ=4194304),_}function H2(_){for(var J=[],$=0;31>$;$++)J.push(_);return J}function _2(_,J){_.pendingLanes|=J,J!==268435456&&(_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0)}function z4(_,J,$,q,G,X){var z=_.pendingLanes;_.pendingLanes=$,_.suspendedLanes=0,_.pingedLanes=0,_.warmLanes=0,_.expiredLanes&=$,_.entangledLanes&=$,_.errorRecoveryDisabledLanes&=$,_.shellSuspendCounter=0;var{entanglements:B,expirationTimes:w,hiddenUpdates:S}=_;for($=z&~$;0<$;){var e=31-c2($),_1=1<<e;B[e]=0,w[e]=-1;var r=S[e];if(r!==null)for(S[e]=null,e=0;e<r.length;e++){var Z1=r[e];Z1!==null&&(Z1.lane&=-536870913)}$&=~_1}q!==0&&m2(_,q,0),X!==0&&G===0&&_.tag!==0&&(_.suspendedLanes|=X&~(z&~J))}function m2(_,J,$){_.pendingLanes|=J,_.suspendedLanes&=~J;var q=31-c2(J);_.entangledLanes|=J,_.entanglements[q]=_.entanglements[q]|1073741824|$&261930}function f5(_,J){var $=_.entangledLanes|=J;for(_=_.entanglements;$;){var q=31-c2($),G=1<<q;G&J|_[q]&J&&(_[q]|=J),$&=~G}}function S5(_,J){var $=J&-J;return $=($&42)!==0?1:r5($),($&(_.suspendedLanes|J))!==0?0:$}function r5(_){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 o4(_,J,$){if(D4)for(_=_.pendingUpdatersLaneMap;0<$;){var q=31-c2($),G=1<<q;_[q].add(J),$&=~G}}function G1(_,J){if(D4)for(var{pendingUpdatersLaneMap:$,memoizedUpdaters:q}=_;0<J;){var G=31-c2(J);_=1<<G,G=$[G],0<G.size&&(G.forEach(function(X){var z=X.alternate;z!==null&&q.has(z)||q.add(X)}),G.clear()),J&=~_}}function I(_){return _&=-_,M5!==0&&M5<_?e5!==0&&e5<_?(_&134217727)!==0?u4:LQ:e5:M5}function l(){var _=A0.p;if(_!==0)return _;return _=window.event,_===void 0?u4:bW(_.type)}function F1(_,J){var $=A0.p;try{return A0.p=_,J()}finally{A0.p=$}}function I1(_){delete _[j2],delete _[l2],delete _[jZ],delete _[Nw],delete _[Cw]}function R1(_){var J=_[j2];if(J)return J;for(var $=_.parentNode;$;){if(J=$[q6]||$[j2]){if($=J.alternate,J.child!==null||$!==null&&$.child!==null)for(_=IW(_);_!==null;){if($=_[j2])return $;_=IW(_)}return J}_=$,$=_.parentNode}return null}function N1(_){if(_=_[j2]||_[q6]){var J=_.tag;if(J===5||J===6||J===13||J===31||J===26||J===27||J===3)return _}return null}function C1(_){var J=_.tag;if(J===5||J===26||J===27||J===6)return _.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function y1(_){var J=_[nW];return J||(J=_[nW]={hoistableStyles:new Map,hoistableScripts:new Map}),J}function j1(_){_[B_]=!0}function p1(_,J){S0(_,J),S0(_+"Capture",J)}function S0(_,J){$8[_]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",_),$8[_]=J;var $=_.toLowerCase();VZ[$]=_,_==="onDoubleClick"&&(VZ.ondblclick=_);for(_=0;_<J.length;_++)eW.add(J[_])}function w0(_,J){fw[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 n4(_){if(n5.call(JL,_))return!0;if(n5.call(_L,_))return!1;if(Sw.test(_))return JL[_]=!0;return _L[_]=!0,console.error("Invalid attribute name: `%s`",_),!1}function v5(_,J,$){if(n4(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 M1($,J),_===""+$?$:_}}function T0(_,J,$){if(n4(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}}M1($,J),_.setAttribute(J,""+$)}}function n8(_,J,$){if($===null)_.removeAttribute(J);else{switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute(J);return}M1($,J),_.setAttribute(J,""+$)}}function a5(_,J,$,q){if(q===null)_.removeAttribute($);else{switch(typeof q){case"undefined":case"function":case"symbol":case"boolean":_.removeAttribute($);return}M1(q,$),_.setAttributeNS(J,$,""+q)}}function e2(_){switch(typeof _){case"bigint":case"boolean":case"number":case"string":case"undefined":return _;case"object":return u1(_),_;default:return""}}function iJ(_){var J=_.type;return(_=_.nodeName)&&_.toLowerCase()==="input"&&(J==="checkbox"||J==="radio")}function LU(_,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:X}=q;return Object.defineProperty(_,J,{configurable:!0,get:function(){return G.call(this)},set:function(z){u1(z),$=""+z,X.call(this,z)}}),Object.defineProperty(_,J,{enumerable:q.enumerable}),{getValue:function(){return $},setValue:function(z){u1(z),$=""+z},stopTracking:function(){_._valueTracker=null,delete _[J]}}}}function N9(_){if(!_._valueTracker){var J=iJ(_)?"checked":"value";_._valueTracker=LU(_,J,""+_[J])}}function dJ(_){if(!_)return!1;var J=_._valueTracker;if(!J)return!0;var $=J.getValue(),q="";return _&&(q=iJ(_)?_.checked?"true":"false":_.value),_=q,_!==$?(J.setValue(_),!0):!1}function e8(_){if(_=_||(typeof document<"u"?document:void 0),typeof _>"u")return null;try{return _.activeElement||_.body}catch(J){return _.body}}function _5(_){return _.replace(vw,function(J){return"\\"+J.charCodeAt(0).toString(16)+" "})}function rJ(_,J){J.checked===void 0||J.defaultChecked===void 0||QL||(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",P1()||"A component",J.type),QL=!0),J.value===void 0||J.defaultValue===void 0||$L||(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",P1()||"A component",J.type),$L=!0)}function _7(_,J,$,q,G,X,z,B){if(_.name="",z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"?(M1(z,"type"),_.type=z):_.removeAttribute("type"),J!=null)if(z==="number"){if(J===0&&_.value===""||_.value!=J)_.value=""+e2(J)}else _.value!==""+e2(J)&&(_.value=""+e2(J));else z!=="submit"&&z!=="reset"||_.removeAttribute("value");J!=null?J7(_,z,e2(J)):$!=null?J7(_,z,e2($)):q!=null&&_.removeAttribute("value"),G==null&&X!=null&&(_.defaultChecked=!!X),G!=null&&(_.checked=G&&typeof G!=="function"&&typeof G!=="symbol"),B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"?(M1(B,"name"),_.name=""+e2(B)):_.removeAttribute("name")}function C9(_,J,$,q,G,X,z,B){if(X!=null&&typeof X!=="function"&&typeof X!=="symbol"&&typeof X!=="boolean"&&(M1(X,"type"),_.type=X),J!=null||$!=null){if(!(X!=="submit"&&X!=="reset"||J!==void 0&&J!==null)){N9(_);return}$=$!=null?""+e2($):"",J=J!=null?""+e2(J):$,B||J===_.value||(_.value=J),_.defaultValue=J}q=q!=null?q:G,q=typeof q!=="function"&&typeof q!=="symbol"&&!!q,_.checked=B?_.checked:!!q,_.defaultChecked=!!q,z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"&&(M1(z,"name"),_.name=z),N9(_)}function J7(_,J,$){J==="number"&&e8(_.ownerDocument)===_||_.defaultValue===""+$||(_.defaultValue=""+$)}function aJ(_,J){J.value==null&&(typeof J.children==="object"&&J.children!==null?J9.Children.forEach(J.children,function($){$==null||typeof $==="string"||typeof $==="number"||typeof $==="bigint"||UL||(UL=!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||GL||(GL=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),J.selected==null||qL||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),qL=!0)}function sJ(){var _=P1();return _?`
|
|
34
34
|
|
|
35
|
-
Check the render method of \``+_+"`.":""}function
|
|
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)),
|
|
35
|
+
Check the render method of \``+_+"`.":""}function h3(_,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{$=""+e2($),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 tJ(_,J){for(_=0;_<FL.length;_++){var $=FL[_];if(J[$]!=null){var q=Y2(J[$]);J.multiple&&!q?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",$,sJ()):!J.multiple&&q&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",$,sJ())}}J.value===void 0||J.defaultValue===void 0||ZL||(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"),ZL=!0)}function oJ(_,J){J.value===void 0||J.defaultValue===void 0||XL||(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",P1()||"A component"),XL=!0),J.children!=null&&J.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function nJ(_,J,$){if(J!=null&&(J=""+e2(J),J!==_.value&&(_.value=J),$==null)){_.defaultValue!==J&&(_.defaultValue=J);return}_.defaultValue=$!=null?""+e2($):""}function f9(_,J,$,q){if(J==null){if(q!=null){if($!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Y2(q)){if(1<q.length)throw Error("<textarea> can only have at most one child.");q=q[0]}$=q}$==null&&($=""),J=$}$=e2(J),_.defaultValue=$,q=_.textContent,q===$&&q!==""&&q!==null&&(_.value=q),N9(_)}function eJ(_,J){return _.serverProps===void 0&&_.serverTail.length===0&&_.children.length===1&&3<_.distanceFromLeaf&&_.distanceFromLeaf>15-J?eJ(_.children[0],J):_}function g2(_){return" "+" ".repeat(_)}function x3(_){return"+ "+" ".repeat(_)}function e4(_){return"- "+" ".repeat(_)}function _$(_){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 m6(_,J){return KL.test(_)?(_=JSON.stringify(_),_.length>J-2?8>J?'{"..."}':"{"+_.slice(0,J-7)+'..."}':"{"+_+"}"):_.length>J?5>J?'{"..."}':_.slice(0,J-3)+"...":_}function $7(_,J,$){var q=120-2*$;if(J===null)return x3($)+m6(_,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)),x3($)+m6(_,q)+`
|
|
37
37
|
`+e4($)+m6(J,q)+`
|
|
38
38
|
`}return g2($)+m6(_,q)+`
|
|
39
|
-
`}function S9(_){return Object.prototype.toString.call(_).replace(/^\[object (.*)\]$/,function(J,$){return $})}function
|
|
39
|
+
`}function S9(_){return Object.prototype.toString.call(_).replace(/^\[object (.*)\]$/,function(J,$){return $})}function m3(_,J){switch(typeof _){case"string":return _=JSON.stringify(_),_.length>J?5>J?'"..."':_.slice(0,J-4)+'..."':_;case"object":if(_===null)return"null";if(Y2(_))return"[...]";if(_.$$typeof===j4)return(J=b(_.type))?"<"+J+">":"<...>";var $=S9(_);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=m3(_[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 g3(_,J){return typeof _!=="string"||KL.test(_)?"{"+m3(_,J-2)+"}":_.length>J-2?5>J?'"..."':'"'+_.slice(0,J-5)+'..."':'"'+_+'"'}function v9(_,J,$){var q=120-$.length-_.length,G=[],X;for(X in J)if(J.hasOwnProperty(X)&&X!=="children"){var z=g3(J[X],120-$.length-X.length-1);q-=X.length+z.length+2,G.push(X+"="+z)}return G.length===0?$+"<"+_+`>
|
|
40
40
|
`:0<q?$+"<"+_+" "+G.join(" ")+`>
|
|
41
41
|
`:$+"<"+_+`
|
|
42
42
|
`+$+" "+G.join(`
|
|
43
43
|
`+$+" ")+`
|
|
44
44
|
`+$+`>
|
|
45
|
-
`}function
|
|
45
|
+
`}function BU(_,J,$){var q="",G=U0({},J),X;for(X in _)if(_.hasOwnProperty(X)){delete G[X];var z=120-2*$-X.length-2,B=m3(_[X],z);J.hasOwnProperty(X)?(z=m3(J[X],z),q+=x3($)+X+": "+B+`
|
|
46
46
|
`,q+=e4($)+X+": "+z+`
|
|
47
|
-
`):q+=
|
|
48
|
-
`}for(var w in G)G.hasOwnProperty(w)&&(_=
|
|
49
|
-
`);return q}function AU(_,J,$,q){var G="",X=new Map;for(S in $)$.hasOwnProperty(S)&&X.set(S.toLowerCase(),S);if(X.size===1&&X.has("children"))G+=
|
|
50
|
-
`+
|
|
51
|
-
`:(G+=
|
|
52
|
-
`,G+=e4(q+1)+z+"="+
|
|
53
|
-
`)}else G+=g2(q+1)+z+"="+
|
|
54
|
-
`}X.forEach(function(_1){if(_1!=="children"){var r=120-2*(q+1)-_1.length-1;G+=e4(q+1)+_1+"="+
|
|
47
|
+
`):q+=x3($)+X+": "+B+`
|
|
48
|
+
`}for(var w in G)G.hasOwnProperty(w)&&(_=m3(G[w],120-2*$-w.length-2),q+=e4($)+w+": "+_+`
|
|
49
|
+
`);return q}function AU(_,J,$,q){var G="",X=new Map;for(S in $)$.hasOwnProperty(S)&&X.set(S.toLowerCase(),S);if(X.size===1&&X.has("children"))G+=v9(_,J,g2(q));else{for(var z in J)if(J.hasOwnProperty(z)&&z!=="children"){var B=120-2*(q+1)-z.length-1,w=X.get(z.toLowerCase());if(w!==void 0){X.delete(z.toLowerCase());var S=J[z];w=$[w];var e=g3(S,B);B=g3(w,B),typeof S==="object"&&S!==null&&typeof w==="object"&&w!==null&&S9(S)==="Object"&&S9(w)==="Object"&&(2<Object.keys(S).length||2<Object.keys(w).length||-1<e.indexOf("...")||-1<B.indexOf("..."))?G+=g2(q+1)+z+`={{
|
|
50
|
+
`+BU(S,w,q+2)+g2(q+1)+`}}
|
|
51
|
+
`:(G+=x3(q+1)+z+"="+e+`
|
|
52
|
+
`,G+=e4(q+1)+z+"="+B+`
|
|
53
|
+
`)}else G+=g2(q+1)+z+"="+g3(J[z],B)+`
|
|
54
|
+
`}X.forEach(function(_1){if(_1!=="children"){var r=120-2*(q+1)-_1.length-1;G+=e4(q+1)+_1+"="+g3($[_1],r)+`
|
|
55
55
|
`}}),G=G===""?g2(q)+"<"+_+`>
|
|
56
56
|
`:g2(q)+"<"+_+`
|
|
57
57
|
`+G+g2(q)+`>
|
|
58
58
|
`}if(_=$.children,J=J.children,typeof _==="string"||typeof _==="number"||typeof _==="bigint"){if(X="",typeof J==="string"||typeof J==="number"||typeof J==="bigint")X=""+J;G+=$7(X,""+_,q+1)}else if(typeof J==="string"||typeof J==="number"||typeof J==="bigint")G=_==null?G+$7(""+J,null,q+1):G+$7(""+J,void 0,q+1);return G}function J$(_,J){var $=_$(_);if($===null){$="";for(_=_.child;_;)$+=J$(_,J),_=_.sibling;return $}return g2(J)+"<"+$+`>
|
|
59
|
-
`}function
|
|
60
|
-
`+
|
|
61
|
-
`,J++)}if(q="",G=_.fiber.pendingProps,_.fiber.tag===6)q=$7(G,_.serverProps,J),J++;else if(X=_$(_.fiber),X!==null)if(_.serverProps===void 0){q=J;var z=120-2*q-X.length-2,
|
|
62
|
-
`,J++}else _.serverProps===null?(q=
|
|
59
|
+
`}function j9(_,J){var $=eJ(_,J);if($!==_&&(_.children.length!==1||_.children[0]!==$))return g2(J)+`...
|
|
60
|
+
`+j9($,J+1);$="";var q=_.fiber._debugInfo;if(q)for(var G=0;G<q.length;G++){var X=q[G].name;typeof X==="string"&&($+=g2(J)+"<"+X+`>
|
|
61
|
+
`,J++)}if(q="",G=_.fiber.pendingProps,_.fiber.tag===6)q=$7(G,_.serverProps,J),J++;else if(X=_$(_.fiber),X!==null)if(_.serverProps===void 0){q=J;var z=120-2*q-X.length-2,B="";for(S in G)if(G.hasOwnProperty(S)&&S!=="children"){var w=g3(G[S],15);if(z-=S.length+w.length+2,0>z){B+=" ...";break}B+=" "+S+"="+w}q=g2(q)+"<"+X+B+`>
|
|
62
|
+
`,J++}else _.serverProps===null?(q=v9(X,G,x3(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=AU(X,G,_.serverProps,J),J++);var S="";G=_.fiber.child;for(X=0;G&&X<_.children.length;)z=_.children[X],z.fiber===G?(S+=j9(z,J),X++):S+=J$(G,J),G=G.sibling;G&&0<_.children.length&&(S+=g2(J)+`...
|
|
63
63
|
`),G=_.serverTail,_.serverProps===null&&J--;for(_=0;_<G.length;_++)X=G[_],S=typeof X==="string"?S+(e4(J)+m6(X,120-2*J)+`
|
|
64
|
-
`):S+
|
|
64
|
+
`):S+v9(X.type,X.props,e4(J));return $+q+S}function V9(_){try{return`
|
|
65
65
|
|
|
66
|
-
`+
|
|
66
|
+
`+j9(_,0)}catch(J){return""}}function $$(_,J,$){for(var q=J,G=null,X=0;q;)q===_&&(X=0),G={fiber:q,children:G!==null?[G]:[],serverProps:q===J?$:q===_?null:void 0,serverTail:[],distanceFromLeaf:X},X++,q=q.return;return G!==null?V9(G).replaceAll(/^[+-]/gm,">"):""}function y9(_,J){var $=U0({},_||YL),q={tag:J};if(HL.indexOf(J)!==-1&&($.aTagInScope=null,$.buttonTagInScope=null,$.nobrTagInScope=null),Vw.indexOf(J)!==-1&&($.pTagInButtonScope=null),jw.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 Q$(_,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 yw.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 q$(_,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 U$(_,J){for(;_;){switch(_.tag){case 5:case 26:case 27:if(_.type===J)return _}_=_.return}return null}function k9(_,J){J=J||YL;var $=J.current;if(J=($=Q$(_,$&&$.tag,J.implicitRootScope)?null:$)?null:q$(_,J),J=$||J,!J)return!0;var q=J.tag;if(J=String(!!$)+"|"+_+"|"+q,BQ[J])return!1;BQ[J]=!0;var G=(J=A5)?U$(J.return,q):null,X=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,$,X)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
68
68
|
This will cause a hydration error.%s`,z,q,X),J&&(_=J.return,G===null||_===null||G===_&&_._debugOwner===J._debugOwner||A1(G,function(){console.error(`<%s> cannot contain a nested %s.
|
|
69
|
-
See this log for the ancestor stack trace.`,q,z)})),!1}function
|
|
69
|
+
See this log for the ancestor stack trace.`,q,z)})),!1}function p3(_,J,$){if($||Q$("#text",J,!1))return!0;if($="#text|"+J,BQ[$])return!1;BQ[$]=!0;var q=($=A5)?U$($,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 g6(_,J){if(J){var $=_.firstChild;if($&&$===_.lastChild&&$.nodeType===3){$.nodeValue=J;return}}_.textContent=J}function MU(_){return _.replace(uw,function(J,$){return $.toUpperCase()})}function D9(_,J,$){var q=J.indexOf("--")===0;q||(-1<J.indexOf("-")?I7.hasOwnProperty(J)&&I7[J]||(I7[J]=!0,console.error("Unsupported style property %s. Did you mean %s?",J,MU(J.replace(Dw,"ms-")))):kw.test(J)?I7.hasOwnProperty(J)&&I7[J]||(I7[J]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",J,J.charAt(0).toUpperCase()+J.slice(1))):!BB.test($)||kZ.hasOwnProperty($)&&kZ[$]||(kZ[$]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,J,$.replace(BB,""))),typeof $==="number"&&(isNaN($)?LB||(LB=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",J)):isFinite($)||AB||(AB=!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||MB.has(J)?J==="float"?_.cssFloat=$:(r1($,J),_[J]=(""+$).trim()):_[J]=$+"px"}function HH(_,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 X=yZ[G]||[G],z=0;z<X.length;z++)q[X[z]]=G}for(var L in J)if(J.hasOwnProperty(L)&&(!$||$[L]!==J[L]))for(G=yZ[L]||[L],X=0;X<G.length;X++)q[G[X]]=L;L={};for(var w in J)for(G=yZ[w]||[w],X=0;X<G.length;X++)L[G[X]]=w;w={};for(var S in q)if(G=q[S],(X=L[S])&&G!==X&&(z=G+","+X,!w[z])){w[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,X)}}for(var _1 in $)!$.hasOwnProperty(_1)||J!=null&&J.hasOwnProperty(_1)||(_1.indexOf("--")===0?_.setProperty(_1,""):_1==="float"?_.cssFloat="":_[_1]="");for(var r in J)S=J[r],J.hasOwnProperty(r)&&$[r]!==S&&D9(_,r,S)}else for(q in J)J.hasOwnProperty(q)&&D9(_,q,J[q])}function u9(_){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 YH(_){return bw.get(_)||_}function jO(_,J){if(n5.call(P7,J)&&P7[J])return!0;if(hw.test(J)){if(_="aria-"+J.slice(4).toLowerCase(),_=TB.hasOwnProperty(_)?_:null,_==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",J),P7[J]=!0;if(J!==_)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",J,_),P7[J]=!0}if(Ew.test(J)){if(_=J.toLowerCase(),_=TB.hasOwnProperty(_)?_:null,_==null)return P7[J]=!0,!1;J!==_&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",J,_),P7[J]=!0)}return!0}function vO(_,J){var $=[],q;for(q in J)jO(_,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 VO(_,J,$,q){if(n5.call(i2,J)&&i2[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."),i2[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),i2[J]=!0;if(OB.test(J))return console.error("Unknown event handler property `%s`. It will be ignored.",J),i2[J]=!0}else if(OB.test(J))return xw.test(J)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",J),i2[J]=!0;if(mw.test(J)||gw.test(J))return!0;if(G==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),i2[J]=!0;if(G==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),i2[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 $),i2[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),i2[J]=!0;if(MQ.hasOwnProperty(G)){if(G=MQ[G],G!==J)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",J,G),i2[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),i2[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),i2[J]=!0}case"function":case"symbol":return i2[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,$),i2[J]=!0}}return!0}function yO(_,J,$){var q=[],G;for(G in J)VO(_,G,J[G],$)||q.push(G);J=q.map(function(X){return"`"+X+"`"}).join(", "),q.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",J,_):1<q.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",J,_)}function b9(_){return pw.test(""+_)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":_}function _3(){}function TU(_){return _=_.target||_.srcElement||window,_.correspondingUseElement&&(_=_.correspondingUseElement),_.nodeType===3?_.parentNode:_}function zH(_){var J=N1(_);if(J&&(_=J.stateNode)){var $=_[l2]||null;_:switch(_=J.stateNode,J.type){case"input":if(_7(_,$.value,$.defaultValue,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name),J=$.name,$.type==="radio"&&J!=null){for($=_;$.parentNode;)$=$.parentNode;M1(J,"name"),$=$.querySelectorAll('input[name="'+_5(""+J)+'"][type="radio"]');for(J=0;J<$.length;J++){var q=$[J];if(q!==_&&q.form===_.form){var G=q[l2]||null;if(!G)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");_7(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&&dJ(q)}break _;case"textarea":nJ(_,$.value,$.defaultValue);break _;case"select":J=$.value,J!=null&&E3(_,!!$.multiple,J,!1)}}}function WH(_,J,$){if(DZ)return _(J,$);DZ=!0;try{var q=_(J);return q}finally{if(DZ=!1,N7!==null||C7!==null){if(Y7(),N7&&(J=N7,_=C7,C7=N7=null,zH(J),_))for(J=0;J<_.length;J++)zH(_[J])}}}function E9(_,J){var $=_.stateNode;if($===null)return null;var q=$[l2]||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 BH(){if(TQ)return TQ;var _,J=bZ,$=J.length,q,G="value"in q6?q6.value:q6.textContent,X=G.length;for(_=0;_<$&&J[_]===G[_];_++);var z=$-_;for(q=1;q<=z&&J[$-q]===G[X-q];q++);return TQ=G.slice(_,1<q?1-q:void 0)}function G$(_){var J=_.keyCode;return"charCode"in _?(_=_.charCode,_===0&&J===13&&(_=13)):_=J,_===10&&(_=13),32<=_||_===13?_:0}function Z$(){return!0}function LH(){return!1}function J5(_){function J($,q,G,X,z){this._reactName=$,this._targetInst=G,this.type=q,this.nativeEvent=X,this.target=z,this.currentTarget=null;for(var L in _)_.hasOwnProperty(L)&&($=_[L],this[L]=$?$(X):X[L]);return this.isDefaultPrevented=(X.defaultPrevented!=null?X.defaultPrevented:X.returnValue===!1)?Z$:LH,this.isPropagationStopped=LH,this}return U0(J.prototype,{preventDefault:function(){this.defaultPrevented=!0;var $=this.nativeEvent;$&&($.preventDefault?$.preventDefault():typeof $.returnValue!=="unknown"&&($.returnValue=!1),this.isDefaultPrevented=Z$)},stopPropagation:function(){var $=this.nativeEvent;$&&($.stopPropagation?$.stopPropagation():typeof $.cancelBubble!=="unknown"&&($.cancelBubble=!0),this.isPropagationStopped=Z$)},persist:function(){},isPersistent:Z$}),J}function kO(_){var J=this.nativeEvent;return J.getModifierState?J.getModifierState(_):(_=JP[_])?!!J[_]:!1}function RU(){return kO}function AH(_,J){switch(_){case"keyup":return zP.indexOf(J.keyCode)!==-1;case"keydown":return J.keyCode!==NB;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function MH(_){return _=_.detail,typeof _==="object"&&"data"in _?_.data:null}function DO(_,J){switch(_){case"compositionend":return MH(J);case"keypress":if(J.which!==fB)return null;return jB=!0,SB;case"textInput":return _=J.data,_===SB&&jB?null:_;default:return null}}function uO(_,J){if(f7)return _==="compositionend"||!mZ&&AH(_,J)?(_=BH(),TQ=bZ=q6=null,f7=!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 CB&&J.locale!=="ko"?null:J.data;default:return null}}function TH(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J==="input"?!!BP[_.type]:J==="textarea"?!0:!1}function bO(_){if(!b4)return!1;_="on"+_;var J=_ in document;return J||(J=document.createElement("div"),J.setAttribute(_,"return;"),J=typeof J[_]==="function"),J}function RH(_,J,$,q){N7?C7?C7.push(q):C7=[q]:N7=q,J=e$(J,"onChange"),0<J.length&&($=new RQ("onChange","change",null,$,q),_.push({event:$,listeners:J}))}function EO(_){$W(_,0)}function F$(_){var J=C1(_);if(dJ(J))return _}function OH(_,J){if(_==="change")return J}function IH(){I_&&(I_.detachEvent("onpropertychange",wH),w_=I_=null)}function wH(_){if(_.propertyName==="value"&&F$(w_)){var J=[];RH(J,w_,_,TU(_)),WH(EO,J)}}function hO(_,J,$){_==="focusin"?(IH(),I_=J,w_=$,I_.attachEvent("onpropertychange",wH)):_==="focusout"&&IH()}function xO(_){if(_==="selectionchange"||_==="keyup"||_==="keydown")return F$(w_)}function mO(_,J){if(_==="click")return F$(J)}function gO(_,J){if(_==="input"||_==="change")return F$(J)}function pO(_,J){return _===J&&(_!==0||1/_===1/J)||_!==_&&J!==J}function h9(_,J){if(d2(_,J))return!0;if(typeof _!=="object"||_===null||typeof J!=="object"||J===null)return!1;var $=Object.keys(_),q=Object.keys(J);if($.length!==q.length)return!1;for(q=0;q<$.length;q++){var G=$[q];if(!n5.call(J,G)||!d2(_[G],J[G]))return!1}return!0}function PH(_){for(;_&&_.firstChild;)_=_.firstChild;return _}function NH(_,J){var $=PH(_);_=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}$=PH($)}}function CH(_,J){return _&&J?_===J?!0:_&&_.nodeType===3?!1:J&&J.nodeType===3?CH(_,J.parentNode):("contains"in _)?_.contains(J):_.compareDocumentPosition?!!(_.compareDocumentPosition(J)&16):!1:!1}function fH(_){_=_!=null&&_.ownerDocument!=null&&_.ownerDocument.defaultView!=null?_.ownerDocument.defaultView:window;for(var J=e8(_.document);J instanceof _.HTMLIFrameElement;){try{var $=typeof J.contentWindow.location.href==="string"}catch(q){$=!1}if($)_=J.contentWindow;else break;J=e8(_.document)}return J}function OU(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J&&(J==="input"&&(_.type==="text"||_.type==="search"||_.type==="tel"||_.type==="url"||_.type==="password")||J==="textarea"||_.contentEditable==="true")}function SH(_,J,$){var q=$.window===$?$.document:$.nodeType===9?$:$.ownerDocument;pZ||S7==null||S7!==e8(q)||(q=S7,("selectionStart"in q)&&OU(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}),P_&&h9(P_,q)||(P_=q,q=e$(gZ,"onSelect"),0<q.length&&(J=new RQ("onSelect","select",null,J,$),_.push({event:J,listeners:q}),J.target=S7)))}function p6(_,J){var $={};return $[_.toLowerCase()]=J.toLowerCase(),$["Webkit"+_]="webkit"+J,$["Moz"+_]="moz"+J,$}function c6(_){if(cZ[_])return cZ[_];if(!j7[_])return _;var J=j7[_],$;for($ in J)if(J.hasOwnProperty($)&&$ in VB)return cZ[_]=J[$];return _}function s5(_,J){bB.set(_,J),p1(J,[_])}function cO(_){for(var J=IQ,$=0;$<_.length;$++){var q=_[$];if(typeof q==="object"&&q!==null)if(Y2(q)&&q.length===2&&typeof q[0]==="string"){if(J!==IQ&&J!==aZ)return dZ;J=aZ}else return dZ;else{if(typeof q==="function"||typeof q==="string"&&50<q.length||J!==IQ&&J!==rZ)return dZ;J=rZ}}return J}function IU(_,J,$,q){for(var G in _)n5.call(_,G)&&G[0]!=="_"&&W4(G,_[G],J,$,q)}function W4(_,J,$,q,G){switch(typeof J){case"object":if(J===null){J="null";break}else{if(J.$$typeof===v4){var X=b(J.type)||"…",z=J.key;J=J.props;var L=Object.keys(J),w=L.length;if(z==null&&w===0){J="<"+X+" />";break}if(3>q||w===1&&L[0]==="children"&&z==null){J="<"+X+" … />";break}$.push([G+" ".repeat(q)+_,"<"+X]),z!==null&&W4("key",z,$,q+1,G),_=!1;for(var S in J)S==="children"?J.children!=null&&(!Y2(J.children)||0<J.children.length)&&(_=!0):n5.call(J,S)&&S[0]!=="_"&&W4(S,J[S],$,q+1,G);$.push(["",_?">…</"+X+">":"/>"]);return}if(X=Object.prototype.toString.call(J),X=X.slice(8,X.length-1),X==="Array"){if(S=cO(J),S===rZ||S===IQ){J=JSON.stringify(J);break}else if(S===aZ){$.push([G+" ".repeat(q)+_,""]);for(_=0;_<J.length;_++)X=J[_],W4(X[0],X[1],$,q+1,G);return}}if(X==="Promise"){if(J.status==="fulfilled"){if(X=$.length,W4(_,J.value,$,q,G),$.length>X){$=$[X],$[1]="Promise<"+($[1]||"Object")+">";return}}else if(J.status==="rejected"&&(X=$.length,W4(_,J.reason,$,q,G),$.length>X)){$=$[X],$[1]="Rejected Promise<"+$[1]+">";return}$.push([" ".repeat(q)+_,"Promise"]);return}X==="Object"&&(S=Object.getPrototypeOf(J))&&typeof S.constructor==="function"&&(X=S.constructor.name),$.push([G+" ".repeat(q)+_,X==="Object"?3>q?"":"…":X]),3>q&&IU(J,$,q+1,G);return}case"function":J=J.name===""?"() => {}":J.name+"() {}";break;case"string":J=J===IP?"…":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 jH(_,J,$,q){var G=!0;for(z in _)z in J||($.push([wQ+" ".repeat(q)+z,"…"]),G=!1);for(var X in J)if(X in _){var z=_[X],L=J[X];if(z!==L){if(q===0&&X==="children")G=" ".repeat(q)+X,$.push([wQ+G,"…"],[PQ+G,"…"]);else{if(!(3<=q)){if(typeof z==="object"&&typeof L==="object"&&z!==null&&L!==null&&z.$$typeof===L.$$typeof)if(L.$$typeof===v4){if(z.type===L.type&&z.key===L.key){z=b(L.type)||"…",G=" ".repeat(q)+X,z="<"+z+" … />",$.push([wQ+G,z],[PQ+G,z]),G=!1;continue}}else{var w=Object.prototype.toString.call(z),S=Object.prototype.toString.call(L);if(w===S&&(S==="[object Object]"||S==="[object Array]")){w=[xB+" ".repeat(q)+X,S==="[object Array]"?"Array":""],$.push(w),S=$.length,jH(z,L,$,q+1)?S===$.length&&(w[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&&(w=Function.prototype.toString.call(z),S=Function.prototype.toString.call(L),w===S)){z=L.name===""?"() => {}":L.name+"() {}",$.push([xB+" ".repeat(q)+X,z+" Referentially unequal function closure. Consider memoization."]);continue}}W4(X,z,$,q,wQ),W4(X,L,$,q,PQ)}G=!1}}else $.push([PQ+" ".repeat(q)+X,"…"]),G=!1;return G}function X5(_){Z0=_&63?"Blocking":_&64?"Gesture":_&4194176?"Transition":_&62914560?"Suspense":_&2080374784?"Idle":"Other"}function B4(_,J,$,q){V0&&(G6.start=J,G6.end=$,X3.color="warning",X3.tooltipText=q,X3.properties=null,(_=_._debugTask)?_.run(performance.measure.bind(performance,q,G6)):performance.measure(q,G6))}function X$(_,J,$){B4(_,J,$,"Reconnect")}function K$(_,J,$,q,G){var X=x(_);if(X!==null&&V0){var{alternate:z,actualDuration:L}=_;if(z===null||z.child!==_.child)for(var w=_.child;w!==null;w=w.sibling)L-=w.actualDuration;q=0.5>L?q?"tertiary-light":"primary-light":10>L?q?"tertiary":"primary":100>L?q?"tertiary-dark":"primary-dark":"error";var S=_.memoizedProps;L=_._debugTask,S!==null&&z!==null&&z.memoizedProps!==S?(w=[wP],S=jH(z.memoizedProps,S,w,0),1<w.length&&(S&&!U6&&(z.lanes&G)===0&&100<_.actualDuration?(U6=!0,w[0]=PP,X3.color="warning",X3.tooltipText=mB):(X3.color=q,X3.tooltipText=X),X3.properties=w,G6.start=J,G6.end=$,L!=null?L.run(performance.measure.bind(performance,""+X,G6)):performance.measure(""+X,G6))):L!=null?L.run(console.timeStamp.bind(console,X,J,$,V5,void 0,q)):console.timeStamp(X,J,$,V5,void 0,q)}}function wU(_,J,$,q){if(V0){var G=x(_);if(G!==null){for(var X=null,z=[],L=0;L<q.length;L++){var w=q[L];X==null&&w.source!==null&&(X=w.source._debugTask),w=w.value,z.push(["Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}_.key!==null&&W4("key",_.key,z,0,""),_.memoizedProps!==null&&IU(_.memoizedProps,z,0,""),X==null&&(X=_._debugTask),_={start:J,end:$,detail:{devtools:{color:"error",track:V5,tooltipText:_.tag===13?"Hydration failed":"Error boundary caught an error",properties:z}}},X?X.run(performance.measure.bind(performance,""+G,_)):performance.measure(""+G,_)}}}function L4(_,J,$,q,G){if(G!==null){if(V0){var X=x(_);if(X!==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&&W4("key",_.key,q,0,""),_.memoizedProps!==null&&IU(_.memoizedProps,q,0,""),J={start:J,end:$,detail:{devtools:{color:"error",track:V5,tooltipText:"A lifecycle or effect errored",properties:q}}},(_=_._debugTask)?_.run(performance.measure.bind(performance,""+X,J)):performance.measure(""+X,J)}}}else X=x(_),X!==null&&V0&&(G=1>q?"secondary-light":100>q?"secondary":500>q?"secondary-dark":"error",(_=_._debugTask)?_.run(console.timeStamp.bind(console,X,J,$,V5,void 0,G)):console.timeStamp(X,J,$,V5,void 0,G))}function lO(_,J,$,q){if(V0&&!(J<=_)){var G=($&738197653)===$?"tertiary-dark":"primary-dark";$=($&536870912)===$?"Prepared":($&201326741)===$?"Hydrated":"Render",q?q.run(console.timeStamp.bind(console,$,_,J,Z0,G0,G)):console.timeStamp($,_,J,Z0,G0,G)}}function vH(_,J,$,q){!V0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Prewarm",_,J,Z0,G0,$)):console.timeStamp("Prewarm",_,J,Z0,G0,$))}function VH(_,J,$,q){!V0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Suspended",_,J,Z0,G0,$)):console.timeStamp("Suspended",_,J,Z0,G0,$))}function iO(_,J,$,q,G,X){if(V0&&!(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:Z0,trackGroup:G0,tooltipText:G?"Hydration Failed":"Recovered after Error",properties:$}}},X?X.run(performance.measure.bind(performance,"Recovered",_)):performance.measure("Recovered",_)}}function PU(_,J,$,q){!V0||J<=_||(q?q.run(console.timeStamp.bind(console,"Errored",_,J,Z0,G0,"error")):console.timeStamp("Errored",_,J,Z0,G0,"error"))}function dO(_,J,$,q){!V0||J<=_||(q?q.run(console.timeStamp.bind(console,$,_,J,Z0,G0,"secondary-light")):console.timeStamp($,_,J,Z0,G0,"secondary-light"))}function yH(_,J,$,q,G){if(V0&&!(J<=_)){for(var X=[],z=0;z<$.length;z++){var L=$[z].value;X.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}_={start:_,end:J,detail:{devtools:{color:"error",track:Z0,trackGroup:G0,tooltipText:q?"Remaining Effects Errored":"Commit Errored",properties:X}}},G?G.run(performance.measure.bind(performance,"Errored",_)):performance.measure("Errored",_)}}function x9(_,J,$){!V0||J<=_||($?$.run(console.timeStamp.bind(console,"Animating",_,J,Z0,G0,"secondary-dark")):console.timeStamp("Animating",_,J,Z0,G0,"secondary-dark"))}function H$(){for(var _=v7,J=sZ=v7=0;J<_;){var $=y5[J];y5[J++]=null;var q=y5[J];y5[J++]=null;var G=y5[J];y5[J++]=null;var X=y5[J];if(y5[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}X!==0&&kH($,G,X)}}function Y$(_,J,$,q){y5[v7++]=_,y5[v7++]=J,y5[v7++]=$,y5[v7++]=q,sZ|=q,_.lanes|=q,_=_.alternate,_!==null&&(_.lanes|=q)}function NU(_,J,$,q){return Y$(_,J,$,q),z$(_)}function k2(_,J){return Y$(_,null,null,J),z$(_)}function kH(_,J,$){_.lanes|=$;var q=_.alternate;q!==null&&(q.lanes|=$);for(var G=!1,X=_.return;X!==null;)X.childLanes|=$,q=X.alternate,q!==null&&(q.childLanes|=$),X.tag===22&&(_=X.stateNode,_===null||_._visibility&N_||(G=!0)),_=X,X=X.return;return _.tag===3?(X=_.stateNode,G&&J!==null&&(G=31-c2($),_=X.hiddenUpdates,q=_[G],q===null?_[G]=[J]:q.push(J),J.lane=$|536870912),X):null}function z$(_){if(n_>xP)throw M8=n_=0,e_=SF=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.");M8>mP&&(M8=0,e_=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&&sz(_);for(var J=_,$=J.return;$!==null;)J.alternate===null&&(J.flags&4098)!==0&&sz(_),J=$,$=J.return;return J.tag===3?J.stateNode:null}function l6(_){if(k5===null)return _;var J=k5(_);return J===void 0?_:J.current}function CU(_){if(k5===null)return _;var J=k5(_);return J===void 0?_!==null&&_!==void 0&&typeof _.render==="function"&&(J=l6(_.render),_.render!==J)?(J={$$typeof:z_,render:J},_.displayName!==void 0&&(J.displayName=_.displayName),J):_:J.current}function DH(_,J){if(k5===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===L5&&(q=!0);break;case 11:G===z_?q=!0:G===L5&&(q=!0);break;case 14:case 15:G===KQ?q=!0:G===L5&&(q=!0);break;default:return!1}return q&&(_=k5($),_!==void 0&&_===k5(J))?!0:!1}function uH(_){k5!==null&&typeof WeakSet==="function"&&(V7===null&&(V7=new WeakSet),V7.add(_))}function bH(_,J,$){do{var q=_,G=q.alternate,X=q.child,z=q.sibling,L=q.tag;q=q.type;var w=null;switch(L){case 0:case 15:case 1:w=q;break;case 11:w=q.render}if(k5===null)throw Error("Expected resolveFamily to be set during hot reload.");var S=!1;if(q=!1,w!==null&&(w=k5(w),w!==void 0&&($.has(w)?q=!0:J.has(w)&&(L===1?q=!0:S=!0))),V7!==null&&(V7.has(_)||G!==null&&V7.has(G))&&(q=!0),q&&(_._debugNeedsRemount=!0),q||S)G=k2(_,2),G!==null&&c0(G,_,2);if(X===null||q||bH(X,J,$),z===null)break;_=z}while(1)}function rO(_,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,gB||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function fU(_){return _=_.prototype,!(!_||!_.isReactComponent)}function J3(_,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=l6(_.type);break;case 1:$.type=l6(_.type);break;case 11:$.type=CU(_.type)}return $}function EH(_,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 SU(_,J,$,q,G,X){var z=0,L=_;if(typeof _==="function")fU(_)&&(z=1),L=l6(L);else if(typeof _==="string")z=a(),z=$w(_,$,z)?26:_==="html"||_==="head"||_==="body"?27:5;else _:switch(_){case RZ:return J=O(31,$,J,G),J.elementType=RZ,J.lanes=X,J;case T7:return i6($.children,G,X,J);case XQ:z=8,G|=u2,G|=_4;break;case LZ: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|e1),J.elementType=LZ,J.lanes=X,J.stateNode={effectDuration:0,passiveEffectDuration:0},J;case MZ:return J=O(13,$,J,G),J.elementType=MZ,J.lanes=X,J;case TZ:return J=O(19,$,J,G),J.elementType=TZ,J.lanes=X,J;default:if(typeof _==="object"&&_!==null)switch(_.$$typeof){case V4:z=10;break _;case AZ:z=9;break _;case z_:z=11,L=CU(L);break _;case KQ:z=14;break _;case L5: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":Y2(_)?$="array":_!==void 0&&_.$$typeof===v4?($="<"+(b(_.type)||"Unknown")+" />",L=" Did you accidentally export a JSX literal instead of a component?"):$=typeof _,(z=q?k(q):null)&&(L+=`
|
|
71
|
+
This will cause a hydration error.%s`,J,$),!1}function g6(_,J){if(J){var $=_.firstChild;if($&&$===_.lastChild&&$.nodeType===3){$.nodeValue=J;return}}_.textContent=J}function MU(_){return _.replace(uw,function(J,$){return $.toUpperCase()})}function D9(_,J,$){var q=J.indexOf("--")===0;q||(-1<J.indexOf("-")?I7.hasOwnProperty(J)&&I7[J]||(I7[J]=!0,console.error("Unsupported style property %s. Did you mean %s?",J,MU(J.replace(Dw,"ms-")))):kw.test(J)?I7.hasOwnProperty(J)&&I7[J]||(I7[J]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",J,J.charAt(0).toUpperCase()+J.slice(1))):!LL.test($)||kZ.hasOwnProperty($)&&kZ[$]||(kZ[$]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,J,$.replace(LL,""))),typeof $==="number"&&(isNaN($)?BL||(BL=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",J)):isFinite($)||AL||(AL=!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||ML.has(J)?J==="float"?_.cssFloat=$:(r1($,J),_[J]=(""+$).trim()):_[J]=$+"px"}function HH(_,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 X=yZ[G]||[G],z=0;z<X.length;z++)q[X[z]]=G}for(var B in J)if(J.hasOwnProperty(B)&&(!$||$[B]!==J[B]))for(G=yZ[B]||[B],X=0;X<G.length;X++)q[G[X]]=B;B={};for(var w in J)for(G=yZ[w]||[w],X=0;X<G.length;X++)B[G[X]]=w;w={};for(var S in q)if(G=q[S],(X=B[S])&&G!==X&&(z=G+","+X,!w[z])){w[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,X)}}for(var _1 in $)!$.hasOwnProperty(_1)||J!=null&&J.hasOwnProperty(_1)||(_1.indexOf("--")===0?_.setProperty(_1,""):_1==="float"?_.cssFloat="":_[_1]="");for(var r in J)S=J[r],J.hasOwnProperty(r)&&$[r]!==S&&D9(_,r,S)}else for(q in J)J.hasOwnProperty(q)&&D9(_,q,J[q])}function u9(_){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 YH(_){return bw.get(_)||_}function vO(_,J){if(n5.call(P7,J)&&P7[J])return!0;if(hw.test(J)){if(_="aria-"+J.slice(4).toLowerCase(),_=TL.hasOwnProperty(_)?_:null,_==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",J),P7[J]=!0;if(J!==_)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",J,_),P7[J]=!0}if(Ew.test(J)){if(_=J.toLowerCase(),_=TL.hasOwnProperty(_)?_:null,_==null)return P7[J]=!0,!1;J!==_&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",J,_),P7[J]=!0)}return!0}function jO(_,J){var $=[],q;for(q in J)vO(_,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 VO(_,J,$,q){if(n5.call(i2,J)&&i2[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."),i2[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),i2[J]=!0;if(OL.test(J))return console.error("Unknown event handler property `%s`. It will be ignored.",J),i2[J]=!0}else if(OL.test(J))return xw.test(J)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",J),i2[J]=!0;if(mw.test(J)||gw.test(J))return!0;if(G==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),i2[J]=!0;if(G==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),i2[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 $),i2[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),i2[J]=!0;if(MQ.hasOwnProperty(G)){if(G=MQ[G],G!==J)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",J,G),i2[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),i2[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),i2[J]=!0}case"function":case"symbol":return i2[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,$),i2[J]=!0}}return!0}function yO(_,J,$){var q=[],G;for(G in J)VO(_,G,J[G],$)||q.push(G);J=q.map(function(X){return"`"+X+"`"}).join(", "),q.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",J,_):1<q.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",J,_)}function b9(_){return pw.test(""+_)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":_}function _3(){}function TU(_){return _=_.target||_.srcElement||window,_.correspondingUseElement&&(_=_.correspondingUseElement),_.nodeType===3?_.parentNode:_}function zH(_){var J=N1(_);if(J&&(_=J.stateNode)){var $=_[l2]||null;_:switch(_=J.stateNode,J.type){case"input":if(_7(_,$.value,$.defaultValue,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name),J=$.name,$.type==="radio"&&J!=null){for($=_;$.parentNode;)$=$.parentNode;M1(J,"name"),$=$.querySelectorAll('input[name="'+_5(""+J)+'"][type="radio"]');for(J=0;J<$.length;J++){var q=$[J];if(q!==_&&q.form===_.form){var G=q[l2]||null;if(!G)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");_7(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&&dJ(q)}break _;case"textarea":nJ(_,$.value,$.defaultValue);break _;case"select":J=$.value,J!=null&&h3(_,!!$.multiple,J,!1)}}}function WH(_,J,$){if(DZ)return _(J,$);DZ=!0;try{var q=_(J);return q}finally{if(DZ=!1,N7!==null||C7!==null){if(Y7(),N7&&(J=N7,_=C7,C7=N7=null,zH(J),_))for(J=0;J<_.length;J++)zH(_[J])}}}function E9(_,J){var $=_.stateNode;if($===null)return null;var q=$[l2]||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 LH(){if(TQ)return TQ;var _,J=bZ,$=J.length,q,G="value"in U6?U6.value:U6.textContent,X=G.length;for(_=0;_<$&&J[_]===G[_];_++);var z=$-_;for(q=1;q<=z&&J[$-q]===G[X-q];q++);return TQ=G.slice(_,1<q?1-q:void 0)}function G$(_){var J=_.keyCode;return"charCode"in _?(_=_.charCode,_===0&&J===13&&(_=13)):_=J,_===10&&(_=13),32<=_||_===13?_:0}function Z$(){return!0}function BH(){return!1}function J5(_){function J($,q,G,X,z){this._reactName=$,this._targetInst=G,this.type=q,this.nativeEvent=X,this.target=z,this.currentTarget=null;for(var B in _)_.hasOwnProperty(B)&&($=_[B],this[B]=$?$(X):X[B]);return this.isDefaultPrevented=(X.defaultPrevented!=null?X.defaultPrevented:X.returnValue===!1)?Z$:BH,this.isPropagationStopped=BH,this}return U0(J.prototype,{preventDefault:function(){this.defaultPrevented=!0;var $=this.nativeEvent;$&&($.preventDefault?$.preventDefault():typeof $.returnValue!=="unknown"&&($.returnValue=!1),this.isDefaultPrevented=Z$)},stopPropagation:function(){var $=this.nativeEvent;$&&($.stopPropagation?$.stopPropagation():typeof $.cancelBubble!=="unknown"&&($.cancelBubble=!0),this.isPropagationStopped=Z$)},persist:function(){},isPersistent:Z$}),J}function kO(_){var J=this.nativeEvent;return J.getModifierState?J.getModifierState(_):(_=JP[_])?!!J[_]:!1}function RU(){return kO}function AH(_,J){switch(_){case"keyup":return zP.indexOf(J.keyCode)!==-1;case"keydown":return J.keyCode!==NL;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function MH(_){return _=_.detail,typeof _==="object"&&"data"in _?_.data:null}function DO(_,J){switch(_){case"compositionend":return MH(J);case"keypress":if(J.which!==fL)return null;return vL=!0,SL;case"textInput":return _=J.data,_===SL&&vL?null:_;default:return null}}function uO(_,J){if(f7)return _==="compositionend"||!mZ&&AH(_,J)?(_=LH(),TQ=bZ=U6=null,f7=!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 CL&&J.locale!=="ko"?null:J.data;default:return null}}function TH(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J==="input"?!!LP[_.type]:J==="textarea"?!0:!1}function bO(_){if(!b4)return!1;_="on"+_;var J=_ in document;return J||(J=document.createElement("div"),J.setAttribute(_,"return;"),J=typeof J[_]==="function"),J}function RH(_,J,$,q){N7?C7?C7.push(q):C7=[q]:N7=q,J=e$(J,"onChange"),0<J.length&&($=new RQ("onChange","change",null,$,q),_.push({event:$,listeners:J}))}function EO(_){$W(_,0)}function F$(_){var J=C1(_);if(dJ(J))return _}function OH(_,J){if(_==="change")return J}function IH(){I_&&(I_.detachEvent("onpropertychange",wH),w_=I_=null)}function wH(_){if(_.propertyName==="value"&&F$(w_)){var J=[];RH(J,w_,_,TU(_)),WH(EO,J)}}function hO(_,J,$){_==="focusin"?(IH(),I_=J,w_=$,I_.attachEvent("onpropertychange",wH)):_==="focusout"&&IH()}function xO(_){if(_==="selectionchange"||_==="keyup"||_==="keydown")return F$(w_)}function mO(_,J){if(_==="click")return F$(J)}function gO(_,J){if(_==="input"||_==="change")return F$(J)}function pO(_,J){return _===J&&(_!==0||1/_===1/J)||_!==_&&J!==J}function h9(_,J){if(d2(_,J))return!0;if(typeof _!=="object"||_===null||typeof J!=="object"||J===null)return!1;var $=Object.keys(_),q=Object.keys(J);if($.length!==q.length)return!1;for(q=0;q<$.length;q++){var G=$[q];if(!n5.call(J,G)||!d2(_[G],J[G]))return!1}return!0}function PH(_){for(;_&&_.firstChild;)_=_.firstChild;return _}function NH(_,J){var $=PH(_);_=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}$=PH($)}}function CH(_,J){return _&&J?_===J?!0:_&&_.nodeType===3?!1:J&&J.nodeType===3?CH(_,J.parentNode):("contains"in _)?_.contains(J):_.compareDocumentPosition?!!(_.compareDocumentPosition(J)&16):!1:!1}function fH(_){_=_!=null&&_.ownerDocument!=null&&_.ownerDocument.defaultView!=null?_.ownerDocument.defaultView:window;for(var J=e8(_.document);J instanceof _.HTMLIFrameElement;){try{var $=typeof J.contentWindow.location.href==="string"}catch(q){$=!1}if($)_=J.contentWindow;else break;J=e8(_.document)}return J}function OU(_){var J=_&&_.nodeName&&_.nodeName.toLowerCase();return J&&(J==="input"&&(_.type==="text"||_.type==="search"||_.type==="tel"||_.type==="url"||_.type==="password")||J==="textarea"||_.contentEditable==="true")}function SH(_,J,$){var q=$.window===$?$.document:$.nodeType===9?$:$.ownerDocument;pZ||S7==null||S7!==e8(q)||(q=S7,("selectionStart"in q)&&OU(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}),P_&&h9(P_,q)||(P_=q,q=e$(gZ,"onSelect"),0<q.length&&(J=new RQ("onSelect","select",null,J,$),_.push({event:J,listeners:q}),J.target=S7)))}function p6(_,J){var $={};return $[_.toLowerCase()]=J.toLowerCase(),$["Webkit"+_]="webkit"+J,$["Moz"+_]="moz"+J,$}function c6(_){if(cZ[_])return cZ[_];if(!v7[_])return _;var J=v7[_],$;for($ in J)if(J.hasOwnProperty($)&&$ in VL)return cZ[_]=J[$];return _}function s5(_,J){bL.set(_,J),p1(J,[_])}function cO(_){for(var J=IQ,$=0;$<_.length;$++){var q=_[$];if(typeof q==="object"&&q!==null)if(Y2(q)&&q.length===2&&typeof q[0]==="string"){if(J!==IQ&&J!==aZ)return dZ;J=aZ}else return dZ;else{if(typeof q==="function"||typeof q==="string"&&50<q.length||J!==IQ&&J!==rZ)return dZ;J=rZ}}return J}function IU(_,J,$,q){for(var G in _)n5.call(_,G)&&G[0]!=="_"&&W4(G,_[G],J,$,q)}function W4(_,J,$,q,G){switch(typeof J){case"object":if(J===null){J="null";break}else{if(J.$$typeof===j4){var X=b(J.type)||"…",z=J.key;J=J.props;var B=Object.keys(J),w=B.length;if(z==null&&w===0){J="<"+X+" />";break}if(3>q||w===1&&B[0]==="children"&&z==null){J="<"+X+" … />";break}$.push([G+" ".repeat(q)+_,"<"+X]),z!==null&&W4("key",z,$,q+1,G),_=!1;for(var S in J)S==="children"?J.children!=null&&(!Y2(J.children)||0<J.children.length)&&(_=!0):n5.call(J,S)&&S[0]!=="_"&&W4(S,J[S],$,q+1,G);$.push(["",_?">…</"+X+">":"/>"]);return}if(X=Object.prototype.toString.call(J),X=X.slice(8,X.length-1),X==="Array"){if(S=cO(J),S===rZ||S===IQ){J=JSON.stringify(J);break}else if(S===aZ){$.push([G+" ".repeat(q)+_,""]);for(_=0;_<J.length;_++)X=J[_],W4(X[0],X[1],$,q+1,G);return}}if(X==="Promise"){if(J.status==="fulfilled"){if(X=$.length,W4(_,J.value,$,q,G),$.length>X){$=$[X],$[1]="Promise<"+($[1]||"Object")+">";return}}else if(J.status==="rejected"&&(X=$.length,W4(_,J.reason,$,q,G),$.length>X)){$=$[X],$[1]="Rejected Promise<"+$[1]+">";return}$.push([" ".repeat(q)+_,"Promise"]);return}X==="Object"&&(S=Object.getPrototypeOf(J))&&typeof S.constructor==="function"&&(X=S.constructor.name),$.push([G+" ".repeat(q)+_,X==="Object"?3>q?"":"…":X]),3>q&&IU(J,$,q+1,G);return}case"function":J=J.name===""?"() => {}":J.name+"() {}";break;case"string":J=J===IP?"…":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 vH(_,J,$,q){var G=!0;for(z in _)z in J||($.push([wQ+" ".repeat(q)+z,"…"]),G=!1);for(var X in J)if(X in _){var z=_[X],B=J[X];if(z!==B){if(q===0&&X==="children")G=" ".repeat(q)+X,$.push([wQ+G,"…"],[PQ+G,"…"]);else{if(!(3<=q)){if(typeof z==="object"&&typeof B==="object"&&z!==null&&B!==null&&z.$$typeof===B.$$typeof)if(B.$$typeof===j4){if(z.type===B.type&&z.key===B.key){z=b(B.type)||"…",G=" ".repeat(q)+X,z="<"+z+" … />",$.push([wQ+G,z],[PQ+G,z]),G=!1;continue}}else{var w=Object.prototype.toString.call(z),S=Object.prototype.toString.call(B);if(w===S&&(S==="[object Object]"||S==="[object Array]")){w=[xL+" ".repeat(q)+X,S==="[object Array]"?"Array":""],$.push(w),S=$.length,vH(z,B,$,q+1)?S===$.length&&(w[1]="Referentially unequal but deeply equal objects. Consider memoization."):G=!1;continue}}else if(typeof z==="function"&&typeof B==="function"&&z.name===B.name&&z.length===B.length&&(w=Function.prototype.toString.call(z),S=Function.prototype.toString.call(B),w===S)){z=B.name===""?"() => {}":B.name+"() {}",$.push([xL+" ".repeat(q)+X,z+" Referentially unequal function closure. Consider memoization."]);continue}}W4(X,z,$,q,wQ),W4(X,B,$,q,PQ)}G=!1}}else $.push([PQ+" ".repeat(q)+X,"…"]),G=!1;return G}function X5(_){Z0=_&63?"Blocking":_&64?"Gesture":_&4194176?"Transition":_&62914560?"Suspense":_&2080374784?"Idle":"Other"}function L4(_,J,$,q){V0&&(Z6.start=J,Z6.end=$,X3.color="warning",X3.tooltipText=q,X3.properties=null,(_=_._debugTask)?_.run(performance.measure.bind(performance,q,Z6)):performance.measure(q,Z6))}function X$(_,J,$){L4(_,J,$,"Reconnect")}function K$(_,J,$,q,G){var X=x(_);if(X!==null&&V0){var{alternate:z,actualDuration:B}=_;if(z===null||z.child!==_.child)for(var w=_.child;w!==null;w=w.sibling)B-=w.actualDuration;q=0.5>B?q?"tertiary-light":"primary-light":10>B?q?"tertiary":"primary":100>B?q?"tertiary-dark":"primary-dark":"error";var S=_.memoizedProps;B=_._debugTask,S!==null&&z!==null&&z.memoizedProps!==S?(w=[wP],S=vH(z.memoizedProps,S,w,0),1<w.length&&(S&&!G6&&(z.lanes&G)===0&&100<_.actualDuration?(G6=!0,w[0]=PP,X3.color="warning",X3.tooltipText=mL):(X3.color=q,X3.tooltipText=X),X3.properties=w,Z6.start=J,Z6.end=$,B!=null?B.run(performance.measure.bind(performance,""+X,Z6)):performance.measure(""+X,Z6))):B!=null?B.run(console.timeStamp.bind(console,X,J,$,V5,void 0,q)):console.timeStamp(X,J,$,V5,void 0,q)}}function wU(_,J,$,q){if(V0){var G=x(_);if(G!==null){for(var X=null,z=[],B=0;B<q.length;B++){var w=q[B];X==null&&w.source!==null&&(X=w.source._debugTask),w=w.value,z.push(["Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}_.key!==null&&W4("key",_.key,z,0,""),_.memoizedProps!==null&&IU(_.memoizedProps,z,0,""),X==null&&(X=_._debugTask),_={start:J,end:$,detail:{devtools:{color:"error",track:V5,tooltipText:_.tag===13?"Hydration failed":"Error boundary caught an error",properties:z}}},X?X.run(performance.measure.bind(performance,""+G,_)):performance.measure(""+G,_)}}}function B4(_,J,$,q,G){if(G!==null){if(V0){var X=x(_);if(X!==null){q=[];for(var z=0;z<G.length;z++){var B=G[z].value;q.push(["Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}_.key!==null&&W4("key",_.key,q,0,""),_.memoizedProps!==null&&IU(_.memoizedProps,q,0,""),J={start:J,end:$,detail:{devtools:{color:"error",track:V5,tooltipText:"A lifecycle or effect errored",properties:q}}},(_=_._debugTask)?_.run(performance.measure.bind(performance,""+X,J)):performance.measure(""+X,J)}}}else X=x(_),X!==null&&V0&&(G=1>q?"secondary-light":100>q?"secondary":500>q?"secondary-dark":"error",(_=_._debugTask)?_.run(console.timeStamp.bind(console,X,J,$,V5,void 0,G)):console.timeStamp(X,J,$,V5,void 0,G))}function lO(_,J,$,q){if(V0&&!(J<=_)){var G=($&738197653)===$?"tertiary-dark":"primary-dark";$=($&536870912)===$?"Prepared":($&201326741)===$?"Hydrated":"Render",q?q.run(console.timeStamp.bind(console,$,_,J,Z0,G0,G)):console.timeStamp($,_,J,Z0,G0,G)}}function jH(_,J,$,q){!V0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Prewarm",_,J,Z0,G0,$)):console.timeStamp("Prewarm",_,J,Z0,G0,$))}function VH(_,J,$,q){!V0||J<=_||($=($&738197653)===$?"tertiary-dark":"primary-dark",q?q.run(console.timeStamp.bind(console,"Suspended",_,J,Z0,G0,$)):console.timeStamp("Suspended",_,J,Z0,G0,$))}function iO(_,J,$,q,G,X){if(V0&&!(J<=_)){$=[];for(var z=0;z<q.length;z++){var B=q[z].value;$.push(["Recoverable Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}_={start:_,end:J,detail:{devtools:{color:"primary-dark",track:Z0,trackGroup:G0,tooltipText:G?"Hydration Failed":"Recovered after Error",properties:$}}},X?X.run(performance.measure.bind(performance,"Recovered",_)):performance.measure("Recovered",_)}}function PU(_,J,$,q){!V0||J<=_||(q?q.run(console.timeStamp.bind(console,"Errored",_,J,Z0,G0,"error")):console.timeStamp("Errored",_,J,Z0,G0,"error"))}function dO(_,J,$,q){!V0||J<=_||(q?q.run(console.timeStamp.bind(console,$,_,J,Z0,G0,"secondary-light")):console.timeStamp($,_,J,Z0,G0,"secondary-light"))}function yH(_,J,$,q,G){if(V0&&!(J<=_)){for(var X=[],z=0;z<$.length;z++){var B=$[z].value;X.push(["Error",typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B)])}_={start:_,end:J,detail:{devtools:{color:"error",track:Z0,trackGroup:G0,tooltipText:q?"Remaining Effects Errored":"Commit Errored",properties:X}}},G?G.run(performance.measure.bind(performance,"Errored",_)):performance.measure("Errored",_)}}function x9(_,J,$){!V0||J<=_||($?$.run(console.timeStamp.bind(console,"Animating",_,J,Z0,G0,"secondary-dark")):console.timeStamp("Animating",_,J,Z0,G0,"secondary-dark"))}function H$(){for(var _=j7,J=sZ=j7=0;J<_;){var $=y5[J];y5[J++]=null;var q=y5[J];y5[J++]=null;var G=y5[J];y5[J++]=null;var X=y5[J];if(y5[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}X!==0&&kH($,G,X)}}function Y$(_,J,$,q){y5[j7++]=_,y5[j7++]=J,y5[j7++]=$,y5[j7++]=q,sZ|=q,_.lanes|=q,_=_.alternate,_!==null&&(_.lanes|=q)}function NU(_,J,$,q){return Y$(_,J,$,q),z$(_)}function k2(_,J){return Y$(_,null,null,J),z$(_)}function kH(_,J,$){_.lanes|=$;var q=_.alternate;q!==null&&(q.lanes|=$);for(var G=!1,X=_.return;X!==null;)X.childLanes|=$,q=X.alternate,q!==null&&(q.childLanes|=$),X.tag===22&&(_=X.stateNode,_===null||_._visibility&N_||(G=!0)),_=X,X=X.return;return _.tag===3?(X=_.stateNode,G&&J!==null&&(G=31-c2($),_=X.hiddenUpdates,q=_[G],q===null?_[G]=[J]:q.push(J),J.lane=$|536870912),X):null}function z$(_){if(n_>xP)throw M8=n_=0,e_=SF=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.");M8>mP&&(M8=0,e_=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&&sz(_);for(var J=_,$=J.return;$!==null;)J.alternate===null&&(J.flags&4098)!==0&&sz(_),J=$,$=J.return;return J.tag===3?J.stateNode:null}function l6(_){if(k5===null)return _;var J=k5(_);return J===void 0?_:J.current}function CU(_){if(k5===null)return _;var J=k5(_);return J===void 0?_!==null&&_!==void 0&&typeof _.render==="function"&&(J=l6(_.render),_.render!==J)?(J={$$typeof:z_,render:J},_.displayName!==void 0&&(J.displayName=_.displayName),J):_:J.current}function DH(_,J){if(k5===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===B5&&(q=!0);break;case 11:G===z_?q=!0:G===B5&&(q=!0);break;case 14:case 15:G===KQ?q=!0:G===B5&&(q=!0);break;default:return!1}return q&&(_=k5($),_!==void 0&&_===k5(J))?!0:!1}function uH(_){k5!==null&&typeof WeakSet==="function"&&(V7===null&&(V7=new WeakSet),V7.add(_))}function bH(_,J,$){do{var q=_,G=q.alternate,X=q.child,z=q.sibling,B=q.tag;q=q.type;var w=null;switch(B){case 0:case 15:case 1:w=q;break;case 11:w=q.render}if(k5===null)throw Error("Expected resolveFamily to be set during hot reload.");var S=!1;if(q=!1,w!==null&&(w=k5(w),w!==void 0&&($.has(w)?q=!0:J.has(w)&&(B===1?q=!0:S=!0))),V7!==null&&(V7.has(_)||G!==null&&V7.has(G))&&(q=!0),q&&(_._debugNeedsRemount=!0),q||S)G=k2(_,2),G!==null&&c0(G,_,2);if(X===null||q||bH(X,J,$),z===null)break;_=z}while(1)}function rO(_,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,gL||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function fU(_){return _=_.prototype,!(!_||!_.isReactComponent)}function J3(_,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=l6(_.type);break;case 1:$.type=l6(_.type);break;case 11:$.type=CU(_.type)}return $}function EH(_,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 SU(_,J,$,q,G,X){var z=0,B=_;if(typeof _==="function")fU(_)&&(z=1),B=l6(B);else if(typeof _==="string")z=a(),z=$w(_,$,z)?26:_==="html"||_==="head"||_==="body"?27:5;else _:switch(_){case RZ:return J=O(31,$,J,G),J.elementType=RZ,J.lanes=X,J;case T7:return i6($.children,G,X,J);case XQ:z=8,G|=u2,G|=_4;break;case BZ: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|e1),J.elementType=BZ,J.lanes=X,J.stateNode={effectDuration:0,passiveEffectDuration:0},J;case MZ:return J=O(13,$,J,G),J.elementType=MZ,J.lanes=X,J;case TZ:return J=O(19,$,J,G),J.elementType=TZ,J.lanes=X,J;default:if(typeof _==="object"&&_!==null)switch(_.$$typeof){case V4:z=10;break _;case AZ:z=9;break _;case z_:z=11,B=CU(B);break _;case KQ:z=14;break _;case B5:z=16,B=null;break _}if(B="",_===void 0||typeof _==="object"&&_!==null&&Object.keys(_).length===0)B+=" 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":Y2(_)?$="array":_!==void 0&&_.$$typeof===j4?($="<"+(b(_.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):$=typeof _,(z=q?k(q):null)&&(B+=`
|
|
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: "+($+"."+
|
|
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: "+($+"."+B)),B=null}return J=O(z,$,J,G),J.elementType=_,J.type=B,J.lanes=X,J._debugOwner=q,J}function W$(_,J,$){return J=SU(_.type,_.key,_.props,_._owner,J,$),J._debugOwner=_._owner,J._debugStack=_._debugStack,J._debugTask=_._debugTask,J}function i6(_,J,$,q){return _=O(7,_,q,J),_.lanes=$,_}function vU(_,J,$){return _=O(6,_,null,J),_.lanes=$,_}function hH(_){var J=O(18,null,null,i1);return J.stateNode=_,J}function jU(_,J,$){return J=O(4,_.children!==null?_.children:[],_.key,J),J.lanes=$,J.stateNode={containerInfo:_.containerInfo,pendingChildren:null,implementation:_.implementation},J}function K5(_,J){if(typeof _==="object"&&_!==null){var $=tZ.get(_);if($!==void 0)return $;return J={value:_,source:J,stack:L1(J)},tZ.set(_,J),J}return{value:_,source:J,stack:L1(J)}}function $3(_,J){c3(),y7[k7++]=C_,y7[k7++]=NQ,NQ=_,C_=J}function xH(_,J,$){c3(),D5[u5++]=H3,D5[u5++]=Y3,D5[u5++]=q8,q8=_;var q=H3;_=Y3;var G=32-c2(q)-1;q&=~(1<<G),$+=1;var X=32-c2(J)+G;if(30<X){var z=G-G%5;X=(q&(1<<z)-1).toString(32),q>>=z,G-=z,H3=1<<32-c2(J)+G|$<<G|q,Y3=X+_}else H3=1<<X|$<<G|q,Y3=_}function VU(_){c3(),_.return!==null&&($3(_,1),xH(_,1,0))}function yU(_){for(;_===NQ;)NQ=y7[--k7],y7[k7]=null,C_=y7[--k7],y7[k7]=null;for(;_===q8;)q8=D5[--u5],D5[u5]=null,Y3=D5[--u5],D5[u5]=null,H3=D5[--u5],D5[u5]=null}function mH(){return c3(),q8!==null?{id:H3,overflow:Y3}:null}function gH(_,J){c3(),D5[u5++]=H3,D5[u5++]=Y3,D5[u5++]=q8,H3=J.id,Y3=J.overflow,q8=_}function c3(){F0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function d6(_,J){if(_.return===null){if(T5===null)T5={fiber:_,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:J};else{if(T5.fiber!==_)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");T5.distanceFromLeaf>J&&(T5.distanceFromLeaf=J)}return T5}var $=d6(_.return,J+1).children;if(0<$.length&&$[$.length-1].fiber===_)return $=$[$.length-1],$.distanceFromLeaf>J&&($.distanceFromLeaf=J),$;return J={fiber:_,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:J},$.push(J),J}function pH(){F0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function L$(_,J){E4||(_=d6(_,0),_.serverProps=null,J!==null&&(J=RW(J),_.serverTail.push(J)))}function l3(_){var J=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,$="",q=T5;throw q!==null&&(T5=null,$=V9(q)),m9(K5(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`+$),_)),oZ}function cH(_){var{stateNode:J,type:$,memoizedProps:q}=_;switch(J[
|
|
83
|
+
https://react.dev/link/hydration-mismatch`+$),_)),oZ}function cH(_){var{stateNode:J,type:$,memoizedProps:q}=_;switch(J[j2]=_,J[l2]=q,nG($,q),$){case"dialog":X0("cancel",J),X0("close",J);break;case"iframe":case"object":case"embed":X0("load",J);break;case"video":case"audio":for($=0;$<_J.length;$++)X0(_J[$],J);break;case"source":X0("error",J);break;case"img":case"image":case"link":X0("error",J),X0("load",J);break;case"details":X0("toggle",J);break;case"input":w0("input",q),X0("invalid",J),rJ(J,q),C9(J,q.value,q.defaultValue,q.checked,q.defaultChecked,q.type,q.name,!0);break;case"option":aJ(J,q);break;case"select":w0("select",q),X0("invalid",J),tJ(J,q);break;case"textarea":w0("textarea",q),X0("invalid",J),oJ(J,q),f9(J,q.value,q.defaultValue,q.children)}$=q.children,typeof $!=="string"&&typeof $!=="number"&&typeof $!=="bigint"||J.textContent===""+$||q.suppressHydrationWarning===!0||GW(J.textContent,$)?(q.popover!=null&&(X0("beforetoggle",J),X0("toggle",J)),q.onScroll!=null&&X0("scroll",J),q.onScrollEnd!=null&&X0("scrollend",J),q.onClick!=null&&(J.onclick=_3),J=!0):J=!1,J||l3(_,!0)}function lH(_){for(V2=_.return;V2;)switch(V2.tag){case 5:case 31:case 13:b5=!1;return;case 27:case 3:b5=!0;return;default:V2=V2.return}}function Q7(_){if(_!==V2)return!1;if(!F0)return lH(_),F0=!0,!1;var J=_.tag,$;if($=J!==3&&J!==27){if($=J===5)$=_.type,$=!($!=="form"&&$!=="button")||QZ(_.type,_.memoizedProps);$=!$}if($&&y0){for($=y0;$;){var q=d6(_,0),G=RW($);q.serverTail.push(G),$=G.type==="Suspense"?ZZ($):L5($.nextSibling)}l3(_)}if(lH(_),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.");y0=ZZ(_)}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.");y0=ZZ(_)}else J===27?(J=y0,_6(_.type)?(_=mF,mF=null,y0=_):y0=J):y0=V2?L5(_.stateNode.nextSibling):null;return!0}function r6(){y0=V2=null,E4=F0=!1}function kU(){var _=X6;return _!==null&&(t2===null?t2=_:t2.push.apply(t2,_),X6=null),_}function m9(_){X6===null?X6=[_]:X6.push(_)}function DU(){var _=T5;if(_!==null){T5=null;for(var J=V9(_);0<_.children.length;)_=_.children[0];A1(_.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`+$),_)),oZ}function cH(_){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
|
|
93
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",J)})}}function B$(){D7=CQ=null,u7=!1}function i3(_,J,$){J1(nZ,J._currentValue,_),J._currentValue=$,J1(eZ,J._currentRenderer,_),J._currentRenderer!==void 0&&J._currentRenderer!==null&&J._currentRenderer!==cL&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),J._currentRenderer=cL}function Q3(_,J){_._currentValue=nZ.current;var $=eZ.current;Q1(eZ,J),_._currentRenderer=$,Q1(nZ,J)}function uU(_,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 bU(_,J,$,q){var G=_.child;G!==null&&(G.return=_);for(;G!==null;){var X=G.dependencies;if(X!==null){var z=G.child;X=X.firstContext;_:for(;X!==null;){var B=X;X=G;for(var w=0;w<J.length;w++)if(B.context===J[w]){X.lanes|=$,B=X.alternate,B!==null&&(B.lanes|=$),uU(X.return,$,_),q||(z=null);break _}X=B.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|=$,X=z.alternate,X!==null&&(X.lanes|=$),uU(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 q7(_,J,$,q){_=null;for(var G=J,X=!1;G!==null;){if(!X){if((G.flags&524288)!==0)X=!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 B=G.type;d2(G.pendingProps.value,z.value)||(_!==null?_.push(B):_=[B])}}else if(G===HQ.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(UJ):_=[UJ])}G=G.return}_!==null&&bU(J,_,$,q),J.flags|=262144}function A$(_){for(_=_.firstContext;_!==null;){if(!d2(_.context._currentValue,_.memoizedValue))return!0;_=_.next}return!1}function a6(_){CQ=_,D7=null,_=_.dependencies,_!==null&&(_.firstContext=null)}function u0(_){return u7&&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()."),iH(CQ,_)}function M$(_,J){return CQ===null&&a6(_),iH(_,J)}function iH(_,J){var $=J._currentValue;if(J={context:J,memoizedValue:$,next:null},D7===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().");D7=J,_.dependencies={lanes:0,firstContext:J,_debugThenableState:null},_.flags|=524288}else D7=D7.next=J;return $}function EU(){return{controller:new fP,data:new Map,refCount:0}}function s6(_){_.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),_.refCount++}function g9(_){_.refCount--,0>_.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),_.refCount===0&&SP(vP,function(){_.controller.abort()})}function A4(_,J,$){if((_&127)!==0)0>h4&&(h4=$2(),S_=fQ(J),_F=J,$!=null&&(JF=x($)),(Y0&(W2|I5))!==w2&&(l0=!0,Y6=f_),_=F_(),J=Z_(),_!==b7||J!==v_?b7=-1.1:J!==null&&(Y6=f_),G8=_,v_=J);else if((_&4194048)!==0&&0>E5&&(E5=$2(),j_=fQ(J),lL=J,$!=null&&(iL=x($)),0>L3)){if(_=F_(),J=Z_(),_!==W6||J!==Z8)W6=-1.1;z6=_,Z8=J}}function aO(_){if(0>h4){h4=$2(),S_=_._debugTask!=null?_._debugTask:null,(Y0&(W2|I5))!==w2&&(Y6=f_);var J=F_(),$=Z_();J!==b7||$!==v_?b7=-1.1:$!==null&&(Y6=f_),G8=J,v_=$}if(0>E5&&(E5=$2(),j_=_._debugTask!=null?_._debugTask:null,0>L3)){if(_=F_(),J=Z_(),_!==W6||J!==Z8)W6=-1.1;z6=_,Z8=J}}function q3(){var _=U8;return U8=0,_}function T$(_){var J=U8;return U8=_,J}function p9(_){var J=U8;return U8+=_,J}function R$(){l1=m1=-1.1}function H5(){var _=m1;return m1=-1.1,_}function Y5(_){0<=_&&(m1=_)}function M4(){var _=m0;return m0=-0,_}function T4(_){0<=_&&(m0=_)}function R4(){var _=b0;return b0=null,_}function O4(){var _=l0;return l0=!1,_}function hU(_){r2=$2(),0>_.actualStartTime&&(_.actualStartTime=r2)}function xU(_){if(0<=r2){var J=$2()-r2;_.actualDuration+=J,_.selfBaseDuration=J,r2=-1}}function dH(_){if(0<=r2){var J=$2()-r2;_.actualDuration+=J,r2=-1}}function I4(){if(0<=r2){var _=$2(),J=_-r2;r2=-1,U8+=J,m0+=J,l1=_}}function rH(_){b0===null&&(b0=[]),b0.push(_),W3===null&&(W3=[]),W3.push(_)}function w4(){r2=$2(),0>m1&&(m1=r2)}function c9(_){for(var J=_.child;J;)_.actualDuration+=J.actualDuration,J=J.sibling}function sO(_,J){if(y_===null){var $=y_=[];QF=0,F8=aG(),E7={status:"pending",value:void 0,then:function(q){$.push(q)}}}return QF++,J.then(aH,aH),J}function aH(){if(--QF===0&&(-1<E5||(L3=-1.1),y_!==null)){E7!==null&&(E7.status="fulfilled");var _=y_;y_=null,F8=0,E7=null;for(var J=0;J<_.length;J++)(0,_[J])()}}function tO(_,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 mU(){var _=X8.current;return _!==null?_:C0.pooledCache}function O$(_,J){J===null?J1(X8,X8.current,_):J1(X8,J.pool,_)}function sH(){var _=mU();return _===null?null:{parent:J2._currentValue,pool:_}}function tH(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function oH(_){return _=_.status,_==="fulfilled"||_==="rejected"}function nH(_,J,$){Y1.actQueue!==null&&(Y1.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(_3,_3),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,_Y(_),_;default:if(typeof J.status==="string")J.then(_3,_3);else{if(_=C0,_!==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(X){if(J.status==="pending"){var z=J;z.status="fulfilled",z.value=X}},function(X){if(J.status==="pending"){var z=J;z.status="rejected",z.reason=X}})}switch(J.status){case"fulfilled":return J.value;case"rejected":throw _=J.reason,_Y(_),_}throw H8=J,x_=!0,h7}}function d3(_){try{return kP(_)}catch(J){if(J!==null&&typeof J==="object"&&typeof J.then==="function")throw H8=J,x_=!0,h7;throw J}}function eH(){if(H8===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var _=H8;return H8=null,x_=!1,_}function _Y(_){if(_===h7||_===uQ)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function f2(_){var J=_0;return _!=null&&(_0=J===null?_:J.concat(_)),J}function gU(){var _=_0;if(_!=null){for(var J=_.length-1;0<=J;J--)if(_[J].name!=null){var $=_[J].debugTask;if($!=null)return $}}return null}function I$(_,J,$){for(var q=Object.keys(_.props),G=0;G<q.length;G++){var X=q[G];if(X!=="children"&&X!=="key"){J===null&&(J=W$(_,$.mode,0),J._debugInfo=_0,J.return=$),A1(J,function(z){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",z)},X);break}}}function w$(_){var J=m_;return m_+=1,x7===null&&(x7=tH()),nH(x7,_,J)}function l9(_,J){J=J.props.ref,_.ref=J!==void 0?J:null}function JY(_,J){if(J.$$typeof===Yw)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 P$(_,J){var $=gU();$!==null?$.run(JY.bind(null,_,J)):JY(_,J)}function $Y(_,J){var $=x(_)||"Component";
|
|
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 P$(_,J){var $=gU();$!==null?$.run(JY.bind(null,_,J)):JY(_,J)}function $Y(_,J){var $=x(_)||"Component";HB[$]||(HB[$]=!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 N$(_,J){var $=gU();$!==null?$.run($Y.bind(null,_,J)):$Y(_,J)}function QY(_,J){var $=x(_)||"Component";
|
|
98
|
+
<%s>{%s}</%s>`,J,J,$,J,$))}function N$(_,J){var $=gU();$!==null?$.run($Y.bind(null,_,J)):$Y(_,J)}function QY(_,J){var $=x(_)||"Component";YB[$]||(YB[$]=!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 C$(_,J){var $=gU();$!==null?$.run(QY.bind(null,_,J)):QY(_,J)}function qY(_){function J(d,s){if(_){var n=d.deletions;n===null?(d.deletions=[s],d.flags|=16):n.push(s)}}function $(d,s){if(!_)return null;for(;s!==null;)J(d,s),s=s.sibling;return null}function q(d){for(var s=new Map;d!==null;)d.key!==null?s.set(d.key,d):s.set(d.index,d),d=d.sibling;return s}function G(d,s){return d=J3(d,s),d.index=0,d.sibling=null,d}function X(d,s,n){if(d.index=n,!_)return d.flags|=1048576,s;if(n=d.alternate,n!==null)return n=n.index,n<s?(d.flags|=67108866,s):n;return d.flags|=67108866,s}function z(d){return _&&d.alternate===null&&(d.flags|=67108866),d}function L(d,s,n,L1){if(s===null||s.tag!==6)return s=jU(n,d.mode,L1),s.return=d,s._debugOwner=d,s._debugTask=d._debugTask,s._debugInfo=_0,s;return s=G(s,n),s.return=d,s._debugInfo=_0,s}function w(d,s,n,L1){var S1=n.type;if(S1===T7)return s=e(d,s,n.props.children,L1,n.key),I$(n,s,d),s;if(s!==null&&(s.elementType===S1||DH(s,n)||typeof S1==="object"&&S1!==null&&S1.$$typeof===L5&&i3(S1)===s.type))return s=G(s,n.props),l9(s,n),s.return=d,s._debugOwner=n._owner,s._debugInfo=_0,s;return s=W$(n,d.mode,L1),l9(s,n),s.return=d,s._debugInfo=_0,s}function S(d,s,n,L1){if(s===null||s.tag!==4||s.stateNode.containerInfo!==n.containerInfo||s.stateNode.implementation!==n.implementation)return s=vU(n,d.mode,L1),s.return=d,s._debugInfo=_0,s;return s=G(s,n.children||[]),s.return=d,s._debugInfo=_0,s}function e(d,s,n,L1,S1){if(s===null||s.tag!==7)return s=i6(n,d.mode,L1,S1),s.return=d,s._debugOwner=d,s._debugTask=d._debugTask,s._debugInfo=_0,s;return s=G(s,n),s.return=d,s._debugInfo=_0,s}function _1(d,s,n){if(typeof s==="string"&&s!==""||typeof s==="number"||typeof s==="bigint")return s=jU(""+s,d.mode,n),s.return=d,s._debugOwner=d,s._debugTask=d._debugTask,s._debugInfo=_0,s;if(typeof s==="object"&&s!==null){switch(s.$$typeof){case v4:return n=W$(s,d.mode,n),l9(n,s),n.return=d,d=f2(s._debugInfo),n._debugInfo=_0,_0=d,n;case M7:return s=vU(s,d.mode,n),s.return=d,s._debugInfo=_0,s;case L5:var L1=f2(s._debugInfo);return s=i3(s),d=_1(d,s,n),_0=L1,d}if(Y2(s)||E(s))return n=i6(s,d.mode,n,null),n.return=d,n._debugOwner=d,n._debugTask=d._debugTask,d=f2(s._debugInfo),n._debugInfo=_0,_0=d,n;if(typeof s.then==="function")return L1=f2(s._debugInfo),d=_1(d,w$(s),n),_0=L1,d;if(s.$$typeof===V4)return _1(d,M$(d,s),n);P$(d,s)}return typeof s==="function"&&N$(d,s),typeof s==="symbol"&&C$(d,s),null}function r(d,s,n,L1){var S1=s!==null?s.key:null;if(typeof n==="string"&&n!==""||typeof n==="number"||typeof n==="bigint")return S1!==null?null:L(d,s,""+n,L1);if(typeof n==="object"&&n!==null){switch(n.$$typeof){case v4:return n.key===S1?(S1=f2(n._debugInfo),d=w(d,s,n,L1),_0=S1,d):null;case M7:return n.key===S1?S(d,s,n,L1):null;case L5:return S1=f2(n._debugInfo),n=i3(n),d=r(d,s,n,L1),_0=S1,d}if(Y2(n)||E(n)){if(S1!==null)return null;return S1=f2(n._debugInfo),d=e(d,s,n,L1,null),_0=S1,d}if(typeof n.then==="function")return S1=f2(n._debugInfo),d=r(d,s,w$(n),L1),_0=S1,d;if(n.$$typeof===V4)return r(d,s,M$(d,n),L1);P$(d,n)}return typeof n==="function"&&N$(d,n),typeof n==="symbol"&&C$(d,n),null}function Z1(d,s,n,L1,S1){if(typeof L1==="string"&&L1!==""||typeof L1==="number"||typeof L1==="bigint")return d=d.get(n)||null,L(s,d,""+L1,S1);if(typeof L1==="object"&&L1!==null){switch(L1.$$typeof){case v4:return n=d.get(L1.key===null?n:L1.key)||null,d=f2(L1._debugInfo),s=w(s,n,L1,S1),_0=d,s;case M7:return d=d.get(L1.key===null?n:L1.key)||null,S(s,d,L1,S1);case L5:var s1=f2(L1._debugInfo);return L1=i3(L1),s=Z1(d,s,n,L1,S1),_0=s1,s}if(Y2(L1)||E(L1))return n=d.get(n)||null,d=f2(L1._debugInfo),s=e(s,n,L1,S1,null),_0=d,s;if(typeof L1.then==="function")return s1=f2(L1._debugInfo),s=Z1(d,s,n,w$(L1),S1),_0=s1,s;if(L1.$$typeof===V4)return Z1(d,s,n,M$(s,L1),S1);P$(s,L1)}return typeof L1==="function"&&N$(s,L1),typeof L1==="symbol"&&C$(s,L1),null}function f1(d,s,n,L1){if(typeof n!=="object"||n===null)return L1;switch(n.$$typeof){case v4:case M7:M(d,s,n);var S1=n.key;if(typeof S1!=="string")break;if(L1===null){L1=new Set,L1.add(S1);break}if(!L1.has(S1)){L1.add(S1);break}A1(s,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.",S1)});break;case L5:n=i3(n),f1(d,s,n,L1)}return L1}function V1(d,s,n,L1){for(var S1=null,s1=null,x1=null,E1=s,n1=s=0,k0=null;E1!==null&&n1<n.length;n1++){E1.index>n1?(k0=E1,E1=null):k0=E1.sibling;var n0=r(d,E1,n[n1],L1);if(n0===null){E1===null&&(E1=k0);break}S1=f1(d,n0,n[n1],S1),_&&E1&&n0.alternate===null&&J(d,E1),s=X(n0,s,n1),x1===null?s1=n0:x1.sibling=n0,x1=n0,E1=k0}if(n1===n.length)return $(d,E1),F0&&$3(d,n1),s1;if(E1===null){for(;n1<n.length;n1++)E1=_1(d,n[n1],L1),E1!==null&&(S1=f1(d,E1,n[n1],S1),s=X(E1,s,n1),x1===null?s1=E1:x1.sibling=E1,x1=E1);return F0&&$3(d,n1),s1}for(E1=q(E1);n1<n.length;n1++)k0=Z1(E1,d,n1,n[n1],L1),k0!==null&&(S1=f1(d,k0,n[n1],S1),_&&k0.alternate!==null&&E1.delete(k0.key===null?n1:k0.key),s=X(k0,s,n1),x1===null?s1=k0:x1.sibling=k0,x1=k0);return _&&E1.forEach(function(P3){return J(d,P3)}),F0&&$3(d,n1),s1}function v0(d,s,n,L1){if(n==null)throw Error("An iterable object provided no iterator.");for(var S1=null,s1=null,x1=s,E1=s=0,n1=null,k0=null,n0=n.next();x1!==null&&!n0.done;E1++,n0=n.next()){x1.index>E1?(n1=x1,x1=null):n1=x1.sibling;var P3=r(d,x1,n0.value,L1);if(P3===null){x1===null&&(x1=n1);break}k0=f1(d,P3,n0.value,k0),_&&x1&&P3.alternate===null&&J(d,x1),s=X(P3,s,E1),s1===null?S1=P3:s1.sibling=P3,s1=P3,x1=n1}if(n0.done)return $(d,x1),F0&&$3(d,E1),S1;if(x1===null){for(;!n0.done;E1++,n0=n.next())x1=_1(d,n0.value,L1),x1!==null&&(k0=f1(d,x1,n0.value,k0),s=X(x1,s,E1),s1===null?S1=x1:s1.sibling=x1,s1=x1);return F0&&$3(d,E1),S1}for(x1=q(x1);!n0.done;E1++,n0=n.next())n1=Z1(x1,d,E1,n0.value,L1),n1!==null&&(k0=f1(d,n1,n0.value,k0),_&&n1.alternate!==null&&x1.delete(n1.key===null?E1:n1.key),s=X(n1,s,E1),s1===null?S1=n1:s1.sibling=n1,s1=n1);return _&&x1.forEach(function(QN){return J(d,QN)}),F0&&$3(d,E1),S1}function K0(d,s,n,L1){if(typeof n==="object"&&n!==null&&n.type===T7&&n.key===null&&(I$(n,null,d),n=n.props.children),typeof n==="object"&&n!==null){switch(n.$$typeof){case v4:var S1=f2(n._debugInfo);_:{for(var s1=n.key;s!==null;){if(s.key===s1){if(s1=n.type,s1===T7){if(s.tag===7){$(d,s.sibling),L1=G(s,n.props.children),L1.return=d,L1._debugOwner=n._owner,L1._debugInfo=_0,I$(n,L1,d),d=L1;break _}}else if(s.elementType===s1||DH(s,n)||typeof s1==="object"&&s1!==null&&s1.$$typeof===L5&&i3(s1)===s.type){$(d,s.sibling),L1=G(s,n.props),l9(L1,n),L1.return=d,L1._debugOwner=n._owner,L1._debugInfo=_0,d=L1;break _}$(d,s);break}else J(d,s);s=s.sibling}n.type===T7?(L1=i6(n.props.children,d.mode,L1,n.key),L1.return=d,L1._debugOwner=d,L1._debugTask=d._debugTask,L1._debugInfo=_0,I$(n,L1,d),d=L1):(L1=W$(n,d.mode,L1),l9(L1,n),L1.return=d,L1._debugInfo=_0,d=L1)}return d=z(d),_0=S1,d;case M7:_:{S1=n;for(n=S1.key;s!==null;){if(s.key===n)if(s.tag===4&&s.stateNode.containerInfo===S1.containerInfo&&s.stateNode.implementation===S1.implementation){$(d,s.sibling),L1=G(s,S1.children||[]),L1.return=d,d=L1;break _}else{$(d,s);break}else J(d,s);s=s.sibling}L1=vU(S1,d.mode,L1),L1.return=d,d=L1}return z(d);case L5:return S1=f2(n._debugInfo),n=i3(n),d=K0(d,s,n,L1),_0=S1,d}if(Y2(n))return S1=f2(n._debugInfo),d=V1(d,s,n,L1),_0=S1,d;if(E(n)){if(S1=f2(n._debugInfo),s1=E(n),typeof s1!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var x1=s1.call(n);if(x1===n){if(d.tag!==0||Object.prototype.toString.call(d.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(x1)!=="[object Generator]")XL||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."),XL=!0}else n.entries!==s1||ZF||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ZF=!0);return d=v0(d,s,x1,L1),_0=S1,d}if(typeof n.then==="function")return S1=f2(n._debugInfo),d=K0(d,s,w$(n),L1),_0=S1,d;if(n.$$typeof===V4)return K0(d,s,M$(d,n),L1);P$(d,n)}if(typeof n==="string"&&n!==""||typeof n==="number"||typeof n==="bigint")return S1=""+n,s!==null&&s.tag===6?($(d,s.sibling),L1=G(s,S1),L1.return=d,d=L1):($(d,s),L1=jU(S1,d.mode,L1),L1.return=d,L1._debugOwner=d,L1._debugTask=d._debugTask,L1._debugInfo=_0,d=L1),z(d);return typeof n==="function"&&N$(d,n),typeof n==="symbol"&&C$(d,n),$(d,s)}return function(d,s,n,L1){var S1=_0;_0=null;try{m_=0;var s1=K0(d,s,n,L1);return x7=null,s1}catch(k0){if(k0===h7||k0===uQ)throw k0;var x1=O(29,k0,null,d.mode);x1.lanes=L1,x1.return=d;var E1=x1._debugInfo=_0;if(x1._debugOwner=d._debugOwner,x1._debugTask=d._debugTask,E1!=null){for(var n1=E1.length-1;0<=n1;n1--)if(typeof E1[n1].stack==="string"){x1._debugOwner=E1[n1],x1._debugTask=E1[n1].debugTask;break}}return x1}finally{_0=S1}}}function UY(_,J){var $=Y2(_);return _=!$&&typeof E(_)==="function",$||_?($=$?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",$,J,$),!1):!0}function pU(_){_.updateQueue={baseState:_.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cU(_,J){_=_.updateQueue,J.updateQueue===_&&(J.updateQueue={baseState:_.baseState,firstBaseUpdate:_.firstBaseUpdate,lastBaseUpdate:_.lastBaseUpdate,shared:_.shared,callbacks:null})}function d3(_){return{lane:_,tag:WL,payload:null,callback:null,next:null}}function r3(_,J,$){var q=_.updateQueue;if(q===null)return null;if(q=q.shared,XF===q&&!AL){var G=x(_);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 C$(_,J){var $=gU();$!==null?$.run(QY.bind(null,_,J)):QY(_,J)}function qY(_){function J(d,s){if(_){var n=d.deletions;n===null?(d.deletions=[s],d.flags|=16):n.push(s)}}function $(d,s){if(!_)return null;for(;s!==null;)J(d,s),s=s.sibling;return null}function q(d){for(var s=new Map;d!==null;)d.key!==null?s.set(d.key,d):s.set(d.index,d),d=d.sibling;return s}function G(d,s){return d=J3(d,s),d.index=0,d.sibling=null,d}function X(d,s,n){if(d.index=n,!_)return d.flags|=1048576,s;if(n=d.alternate,n!==null)return n=n.index,n<s?(d.flags|=67108866,s):n;return d.flags|=67108866,s}function z(d){return _&&d.alternate===null&&(d.flags|=67108866),d}function B(d,s,n,B1){if(s===null||s.tag!==6)return s=vU(n,d.mode,B1),s.return=d,s._debugOwner=d,s._debugTask=d._debugTask,s._debugInfo=_0,s;return s=G(s,n),s.return=d,s._debugInfo=_0,s}function w(d,s,n,B1){var S1=n.type;if(S1===T7)return s=e(d,s,n.props.children,B1,n.key),I$(n,s,d),s;if(s!==null&&(s.elementType===S1||DH(s,n)||typeof S1==="object"&&S1!==null&&S1.$$typeof===B5&&d3(S1)===s.type))return s=G(s,n.props),l9(s,n),s.return=d,s._debugOwner=n._owner,s._debugInfo=_0,s;return s=W$(n,d.mode,B1),l9(s,n),s.return=d,s._debugInfo=_0,s}function S(d,s,n,B1){if(s===null||s.tag!==4||s.stateNode.containerInfo!==n.containerInfo||s.stateNode.implementation!==n.implementation)return s=jU(n,d.mode,B1),s.return=d,s._debugInfo=_0,s;return s=G(s,n.children||[]),s.return=d,s._debugInfo=_0,s}function e(d,s,n,B1,S1){if(s===null||s.tag!==7)return s=i6(n,d.mode,B1,S1),s.return=d,s._debugOwner=d,s._debugTask=d._debugTask,s._debugInfo=_0,s;return s=G(s,n),s.return=d,s._debugInfo=_0,s}function _1(d,s,n){if(typeof s==="string"&&s!==""||typeof s==="number"||typeof s==="bigint")return s=vU(""+s,d.mode,n),s.return=d,s._debugOwner=d,s._debugTask=d._debugTask,s._debugInfo=_0,s;if(typeof s==="object"&&s!==null){switch(s.$$typeof){case j4:return n=W$(s,d.mode,n),l9(n,s),n.return=d,d=f2(s._debugInfo),n._debugInfo=_0,_0=d,n;case M7:return s=jU(s,d.mode,n),s.return=d,s._debugInfo=_0,s;case B5:var B1=f2(s._debugInfo);return s=d3(s),d=_1(d,s,n),_0=B1,d}if(Y2(s)||E(s))return n=i6(s,d.mode,n,null),n.return=d,n._debugOwner=d,n._debugTask=d._debugTask,d=f2(s._debugInfo),n._debugInfo=_0,_0=d,n;if(typeof s.then==="function")return B1=f2(s._debugInfo),d=_1(d,w$(s),n),_0=B1,d;if(s.$$typeof===V4)return _1(d,M$(d,s),n);P$(d,s)}return typeof s==="function"&&N$(d,s),typeof s==="symbol"&&C$(d,s),null}function r(d,s,n,B1){var S1=s!==null?s.key:null;if(typeof n==="string"&&n!==""||typeof n==="number"||typeof n==="bigint")return S1!==null?null:B(d,s,""+n,B1);if(typeof n==="object"&&n!==null){switch(n.$$typeof){case j4:return n.key===S1?(S1=f2(n._debugInfo),d=w(d,s,n,B1),_0=S1,d):null;case M7:return n.key===S1?S(d,s,n,B1):null;case B5:return S1=f2(n._debugInfo),n=d3(n),d=r(d,s,n,B1),_0=S1,d}if(Y2(n)||E(n)){if(S1!==null)return null;return S1=f2(n._debugInfo),d=e(d,s,n,B1,null),_0=S1,d}if(typeof n.then==="function")return S1=f2(n._debugInfo),d=r(d,s,w$(n),B1),_0=S1,d;if(n.$$typeof===V4)return r(d,s,M$(d,n),B1);P$(d,n)}return typeof n==="function"&&N$(d,n),typeof n==="symbol"&&C$(d,n),null}function Z1(d,s,n,B1,S1){if(typeof B1==="string"&&B1!==""||typeof B1==="number"||typeof B1==="bigint")return d=d.get(n)||null,B(s,d,""+B1,S1);if(typeof B1==="object"&&B1!==null){switch(B1.$$typeof){case j4:return n=d.get(B1.key===null?n:B1.key)||null,d=f2(B1._debugInfo),s=w(s,n,B1,S1),_0=d,s;case M7:return d=d.get(B1.key===null?n:B1.key)||null,S(s,d,B1,S1);case B5:var s1=f2(B1._debugInfo);return B1=d3(B1),s=Z1(d,s,n,B1,S1),_0=s1,s}if(Y2(B1)||E(B1))return n=d.get(n)||null,d=f2(B1._debugInfo),s=e(s,n,B1,S1,null),_0=d,s;if(typeof B1.then==="function")return s1=f2(B1._debugInfo),s=Z1(d,s,n,w$(B1),S1),_0=s1,s;if(B1.$$typeof===V4)return Z1(d,s,n,M$(s,B1),S1);P$(s,B1)}return typeof B1==="function"&&N$(s,B1),typeof B1==="symbol"&&C$(s,B1),null}function f1(d,s,n,B1){if(typeof n!=="object"||n===null)return B1;switch(n.$$typeof){case j4:case M7:M(d,s,n);var S1=n.key;if(typeof S1!=="string")break;if(B1===null){B1=new Set,B1.add(S1);break}if(!B1.has(S1)){B1.add(S1);break}A1(s,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.",S1)});break;case B5:n=d3(n),f1(d,s,n,B1)}return B1}function V1(d,s,n,B1){for(var S1=null,s1=null,x1=null,E1=s,n1=s=0,k0=null;E1!==null&&n1<n.length;n1++){E1.index>n1?(k0=E1,E1=null):k0=E1.sibling;var n0=r(d,E1,n[n1],B1);if(n0===null){E1===null&&(E1=k0);break}S1=f1(d,n0,n[n1],S1),_&&E1&&n0.alternate===null&&J(d,E1),s=X(n0,s,n1),x1===null?s1=n0:x1.sibling=n0,x1=n0,E1=k0}if(n1===n.length)return $(d,E1),F0&&$3(d,n1),s1;if(E1===null){for(;n1<n.length;n1++)E1=_1(d,n[n1],B1),E1!==null&&(S1=f1(d,E1,n[n1],S1),s=X(E1,s,n1),x1===null?s1=E1:x1.sibling=E1,x1=E1);return F0&&$3(d,n1),s1}for(E1=q(E1);n1<n.length;n1++)k0=Z1(E1,d,n1,n[n1],B1),k0!==null&&(S1=f1(d,k0,n[n1],S1),_&&k0.alternate!==null&&E1.delete(k0.key===null?n1:k0.key),s=X(k0,s,n1),x1===null?s1=k0:x1.sibling=k0,x1=k0);return _&&E1.forEach(function(P3){return J(d,P3)}),F0&&$3(d,n1),s1}function j0(d,s,n,B1){if(n==null)throw Error("An iterable object provided no iterator.");for(var S1=null,s1=null,x1=s,E1=s=0,n1=null,k0=null,n0=n.next();x1!==null&&!n0.done;E1++,n0=n.next()){x1.index>E1?(n1=x1,x1=null):n1=x1.sibling;var P3=r(d,x1,n0.value,B1);if(P3===null){x1===null&&(x1=n1);break}k0=f1(d,P3,n0.value,k0),_&&x1&&P3.alternate===null&&J(d,x1),s=X(P3,s,E1),s1===null?S1=P3:s1.sibling=P3,s1=P3,x1=n1}if(n0.done)return $(d,x1),F0&&$3(d,E1),S1;if(x1===null){for(;!n0.done;E1++,n0=n.next())x1=_1(d,n0.value,B1),x1!==null&&(k0=f1(d,x1,n0.value,k0),s=X(x1,s,E1),s1===null?S1=x1:s1.sibling=x1,s1=x1);return F0&&$3(d,E1),S1}for(x1=q(x1);!n0.done;E1++,n0=n.next())n1=Z1(x1,d,E1,n0.value,B1),n1!==null&&(k0=f1(d,n1,n0.value,k0),_&&n1.alternate!==null&&x1.delete(n1.key===null?E1:n1.key),s=X(n1,s,E1),s1===null?S1=n1:s1.sibling=n1,s1=n1);return _&&x1.forEach(function(QN){return J(d,QN)}),F0&&$3(d,E1),S1}function K0(d,s,n,B1){if(typeof n==="object"&&n!==null&&n.type===T7&&n.key===null&&(I$(n,null,d),n=n.props.children),typeof n==="object"&&n!==null){switch(n.$$typeof){case j4:var S1=f2(n._debugInfo);_:{for(var s1=n.key;s!==null;){if(s.key===s1){if(s1=n.type,s1===T7){if(s.tag===7){$(d,s.sibling),B1=G(s,n.props.children),B1.return=d,B1._debugOwner=n._owner,B1._debugInfo=_0,I$(n,B1,d),d=B1;break _}}else if(s.elementType===s1||DH(s,n)||typeof s1==="object"&&s1!==null&&s1.$$typeof===B5&&d3(s1)===s.type){$(d,s.sibling),B1=G(s,n.props),l9(B1,n),B1.return=d,B1._debugOwner=n._owner,B1._debugInfo=_0,d=B1;break _}$(d,s);break}else J(d,s);s=s.sibling}n.type===T7?(B1=i6(n.props.children,d.mode,B1,n.key),B1.return=d,B1._debugOwner=d,B1._debugTask=d._debugTask,B1._debugInfo=_0,I$(n,B1,d),d=B1):(B1=W$(n,d.mode,B1),l9(B1,n),B1.return=d,B1._debugInfo=_0,d=B1)}return d=z(d),_0=S1,d;case M7:_:{S1=n;for(n=S1.key;s!==null;){if(s.key===n)if(s.tag===4&&s.stateNode.containerInfo===S1.containerInfo&&s.stateNode.implementation===S1.implementation){$(d,s.sibling),B1=G(s,S1.children||[]),B1.return=d,d=B1;break _}else{$(d,s);break}else J(d,s);s=s.sibling}B1=jU(S1,d.mode,B1),B1.return=d,d=B1}return z(d);case B5:return S1=f2(n._debugInfo),n=d3(n),d=K0(d,s,n,B1),_0=S1,d}if(Y2(n))return S1=f2(n._debugInfo),d=V1(d,s,n,B1),_0=S1,d;if(E(n)){if(S1=f2(n._debugInfo),s1=E(n),typeof s1!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var x1=s1.call(n);if(x1===n){if(d.tag!==0||Object.prototype.toString.call(d.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(x1)!=="[object Generator]")XB||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."),XB=!0}else n.entries!==s1||ZF||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ZF=!0);return d=j0(d,s,x1,B1),_0=S1,d}if(typeof n.then==="function")return S1=f2(n._debugInfo),d=K0(d,s,w$(n),B1),_0=S1,d;if(n.$$typeof===V4)return K0(d,s,M$(d,n),B1);P$(d,n)}if(typeof n==="string"&&n!==""||typeof n==="number"||typeof n==="bigint")return S1=""+n,s!==null&&s.tag===6?($(d,s.sibling),B1=G(s,S1),B1.return=d,d=B1):($(d,s),B1=vU(S1,d.mode,B1),B1.return=d,B1._debugOwner=d,B1._debugTask=d._debugTask,B1._debugInfo=_0,d=B1),z(d);return typeof n==="function"&&N$(d,n),typeof n==="symbol"&&C$(d,n),$(d,s)}return function(d,s,n,B1){var S1=_0;_0=null;try{m_=0;var s1=K0(d,s,n,B1);return x7=null,s1}catch(k0){if(k0===h7||k0===uQ)throw k0;var x1=O(29,k0,null,d.mode);x1.lanes=B1,x1.return=d;var E1=x1._debugInfo=_0;if(x1._debugOwner=d._debugOwner,x1._debugTask=d._debugTask,E1!=null){for(var n1=E1.length-1;0<=n1;n1--)if(typeof E1[n1].stack==="string"){x1._debugOwner=E1[n1],x1._debugTask=E1[n1].debugTask;break}}return x1}finally{_0=S1}}}function UY(_,J){var $=Y2(_);return _=!$&&typeof E(_)==="function",$||_?($=$?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",$,J,$),!1):!0}function pU(_){_.updateQueue={baseState:_.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cU(_,J){_=_.updateQueue,J.updateQueue===_&&(J.updateQueue={baseState:_.baseState,firstBaseUpdate:_.firstBaseUpdate,lastBaseUpdate:_.lastBaseUpdate,shared:_.shared,callbacks:null})}function r3(_){return{lane:_,tag:WB,payload:null,callback:null,next:null}}function a3(_,J,$){var q=_.updateQueue;if(q===null)return null;if(q=q.shared,XF===q&&!AB){var G=x(_);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),
|
|
102
|
+
Please update the following component: %s`,G),AB=!0}if((Y0&W2)!==w2)return G=q.pending,G===null?J.next=J:(J.next=G.next,G.next=J),q.pending=J,J=z$(_),kH(_,null,$),J;return Y$(_,q,J,$),z$(_)}function i9(_,J,$){if(J=J.updateQueue,J!==null&&(J=J.shared,($&4194048)!==0)){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,f5(_,$)}}function f$(_,J){var{updateQueue:$,alternate:q}=_;if(q!==null&&(q=q.updateQueue,$===q)){var G=null,X=null;if($=$.firstBaseUpdate,$!==null){do{var z={lane:$.lane,tag:$.tag,payload:$.payload,callback:null,next:null};X===null?G=X=z:X=X.next=z,$=$.next}while($!==null);X===null?G=X=J:X=X.next=J}else G=X=J;$={baseState:q.baseState,firstBaseUpdate:G,lastBaseUpdate:X,shared:q.shared,callbacks:q.callbacks},_.updateQueue=$;return}_=$.lastBaseUpdate,_===null?$.firstBaseUpdate=J:_.next=J,$.lastBaseUpdate=J}function d9(){if(KF){var _=E7;if(_!==null)throw _}}function r9(_,J,$,q){KF=!1;var G=_.updateQueue;L6=!1,XF=G.shared;var{firstBaseUpdate:X,lastBaseUpdate:z}=G,B=G.shared.pending;if(B!==null){G.shared.pending=null;var w=B,S=w.next;w.next=null,z===null?X=S:z.next=S,z=w;var e=_.alternate;e!==null&&(e=e.updateQueue,B=e.lastBaseUpdate,B!==z&&(B===null?e.firstBaseUpdate=S:B.next=S,e.lastBaseUpdate=w))}if(X!==null){var _1=G.baseState;z=0,e=S=w=null,B=X;do{var r=B.lane&-536870913,Z1=r!==B.lane;if(Z1?(J0&r)===r:(q&r)===r){r!==0&&r===F8&&(KF=!0),e!==null&&(e=e.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});_:{r=_;var f1=B,V1=J,j0=$;switch(f1.tag){case LB:if(f1=f1.payload,typeof f1==="function"){u7=!0;var K0=f1.call(j0,_1,V1);if(r.mode&u2){o1(!0);try{f1.call(j0,_1,V1)}finally{o1(!1)}}u7=!1,_1=K0;break _}_1=f1;break _;case FF:r.flags=r.flags&-65537|128;case WB:if(K0=f1.payload,typeof K0==="function"){if(u7=!0,f1=K0.call(j0,_1,V1),r.mode&u2){o1(!0);try{K0.call(j0,_1,V1)}finally{o1(!1)}}u7=!1}else f1=K0;if(f1===null||f1===void 0)break _;_1=U0({},_1,f1);break _;case BB:L6=!0}}r=B.callback,r!==null&&(_.flags|=64,Z1&&(_.flags|=8192),Z1=G.callbacks,Z1===null?G.callbacks=[r]:Z1.push(r))}else Z1={lane:r,tag:B.tag,payload:B.payload,callback:B.callback,next:null},e===null?(S=e=Z1,w=_1):e=e.next=Z1,z|=r;if(B=B.next,B===null)if(B=G.shared.pending,B===null)break;else Z1=B,B=Z1.next,Z1.next=null,G.lastBaseUpdate=Z1,G.shared.pending=null}while(1);e===null&&(w=_1),G.baseState=w,G.firstBaseUpdate=S,G.lastBaseUpdate=e,X===null&&(G.shared.lanes=0),M6|=z,_.lanes=z,_.memoizedState=_1}XF=null}function GY(_,J){if(typeof _!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+_);_.call(J)}function oO(_,J){var $=_.shared.hiddenCallbacks;if($!==null)for(_.shared.hiddenCallbacks=null,_=0;_<$.length;_++)GY($[_],J)}function ZY(_,J){var $=_.callbacks;if($!==null)for(_.callbacks=null,_=0;_<$.length;_++)GY($[_],J)}function FY(_,J){var $=g4;J1(EQ,$,_),J1(m7,J,_),g4=$|J.baseLanes}function lU(_){J1(EQ,g4,_),J1(m7,m7.current,_)}function iU(_){g4=EQ.current,Q1(m7,_),Q1(EQ,_)}function s3(_){var J=_.alternate;J1(o0,o0.current&g7,_),J1(R5,_,_),h5===null&&(J===null||m7.current!==null?h5=_:J.memoizedState!==null&&(h5=_))}function dU(_){J1(o0,o0.current,_),J1(R5,_,_),h5===null&&(h5=_)}function XY(_){_.tag===22?(J1(o0,o0.current,_),J1(R5,_,_),h5===null&&(h5=_)):t3(_)}function t3(_){J1(o0,o0.current,_),J1(R5,R5.current,_)}function z5(_){Q1(R5,_),h5===_&&(h5=null),Q1(o0,_)}function S$(_){for(var J=_;J!==null;){if(J.tag===13){var $=J.memoizedState;if($!==null&&($=$.dehydrated,$===null||UZ($)||GZ($)))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 q0(){var _=X1;m5===null?m5=[_]:m5.push(_)}function w1(){var _=X1;if(m5!==null&&(T3++,m5[T3]!==_)){var J=x(a1);if(!MB.has(J)&&(MB.add(J),m5!==null)){for(var $="",q=0;q<=T3;q++){var G=m5[q],X=q===T3?_:G;for(G=q+1+". "+G;30>G.length;)G+=" ";G+=X+`
|
|
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 U7(_){_===void 0||_===null||Y2(_)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",X1,typeof _)}function
|
|
108
|
+
`,J,$)}}}function U7(_){_===void 0||_===null||Y2(_)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",X1,typeof _)}function v$(){var _=x(a1);RB.has(_)||(RB.add(_),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",_))}function r0(){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
112
|
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function rU(_,J){if(c_)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.",X1),!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`,X1,"["+J.join(", ")+"]","["+_.join(", ")+"]");for(var $=0;$<J.length&&$<_.length;$++)if(!d2(_[$],J[$]))return!1;return!0}function aU(_,J,$,q,G,X){if(A3=X,a1=J,m5=_!==null?_._debugHookTypes:null,T3=-1,c_=_!==null&&_.type!==J.type,Object.prototype.toString.call($)==="[object AsyncFunction]"||Object.prototype.toString.call($)==="[object AsyncGeneratorFunction]")X=x(a1),HF.has(X)||(HF.add(X),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.",X===null?"An unknown Component":"<"+X+">"));J.memoizedState=null,J.updateQueue=null,J.lanes=0,Y1.H=_!==null&&_.memoizedState!==null?zF:m5!==null?OL:YF,z8=X=(J.mode&u2)!==i1;var z=qF($,q,G);if(z8=!1,c7&&(z=sU(J,$,q,G)),X){o1(!0);try{z=sU(J,$,q,G)}finally{o1(!1)}}return KY(_,J),z}function KY(_,J){J._debugHookTypes=m5,J.dependencies===null?M3!==null&&(J.dependencies={lanes:0,firstContext:null,_debugThenableState:M3}):J.dependencies._debugThenableState=M3,Y1.H=l_;var $=N0!==null&&N0.next!==null;if(A3=0,m5=X1=Q2=N0=a1=null,T3=-1,_!==null&&(_.flags&65011712)!==(J.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),xQ=!1,p_=0,M3=null,$)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");_===null||q2||(_=_.dependencies,_!==null&&A$(_)&&(q2=!0)),x_?(x_=!1,_=!0):_=!1,_&&(J=x(J)||"Unknown",TL.has(J)||HF.has(J)||(TL.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 sU(_,J,$,q){a1=_;var G=0;do{if(c7&&(M3=null),p_=0,c7=!1,G>=uP)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(G+=1,c_=!1,Q2=N0=null,_.updateQueue!=null){var X=_.updateQueue;X.lastEffect=null,X.events=null,X.stores=null,X.memoCache!=null&&(X.memoCache.index=0)}T3=-1,Y1.H=IL,X=qF(J,$,q)}while(c7);return X}function nO(){var _=Y1.H,J=_.useState()[0];return J=typeof J.then==="function"?a9(J):J,_=_.useState()[0],(N0!==null?N0.memoizedState:null)!==_&&(a1.flags|=1024),J}function tU(){var _=mQ!==0;return mQ=0,_}function oU(_,J,$){J.updateQueue=_.updateQueue,J.flags=(J.mode&_4)!==i1?J.flags&-402655237:J.flags&-2053,_.lanes&=~$}function nU(_){if(xQ){for(_=_.memoizedState;_!==null;){var J=_.queue;J!==null&&(J.pending=null),_=_.next}xQ=!1}A3=0,m5=Q2=N0=a1=null,T3=-1,X1=null,c7=!1,p_=mQ=0,M3=null}function p2(){var _={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Q2===null?a1.memoizedState=Q2=_:Q2=Q2.next=_,Q2}function R0(){if(N0===null){var _=a1.alternate;_=_!==null?_.memoizedState:null}else _=N0.next;var J=Q2===null?a1.memoizedState:Q2.next;if(J!==null)Q2=J,N0=_;else{if(_===null){if(a1.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.")}N0=_,_={memoizedState:N0.memoizedState,baseState:N0.baseState,baseQueue:N0.baseQueue,queue:N0.queue,next:null},Q2===null?a1.memoizedState=Q2=_:Q2=Q2.next=_}return Q2}function v$(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function a9(_){var J=p_;return p_+=1,M3===null&&(M3=tH()),_=nH(M3,_,J),J=a1,(Q2===null?J.memoizedState:Q2.next)===null&&(J=J.alternate,Y1.H=J!==null&&J.memoizedState!==null?zF:YF),_}function t3(_){if(_!==null&&typeof _==="object"){if(typeof _.then==="function")return a9(_);if(_.$$typeof===V4)return u0(_)}throw Error("An unsupported type was passed to use(): "+String(_))}function t6(_){var J=null,$=a1.updateQueue;if($!==null&&(J=$.memoCache),J==null){var q=a1.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&&($=v$(),a1.updateQueue=$),$.memoCache=J,$=J.data[J.index],$===void 0||c_)for($=J.data[J.index]=Array(_),q=0;q<_;q++)$[q]=zw;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 t5(_,J){return typeof J==="function"?J(_):J}function eU(_,J,$){var q=p2();if($!==void 0){var G=$(J);if(z8){o1(!0);try{$(J)}finally{o1(!1)}}}else G=J;return q.memoizedState=q.baseState=G,_={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_,lastRenderedState:G},q.queue=_,_=_.dispatch=QI.bind(null,a1,_),[q.memoizedState,_]}function G7(_){var J=R0();return _G(J,N0,_)}function _G(_,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,X=q.pending;if(X!==null){if(G!==null){var z=G.next;G.next=X.next,X.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=X,q.pending=null}if(X=_.baseState,G===null)_.memoizedState=X;else{J=G.next;var L=z=null,w=null,S=J,e=!1;do{var _1=S.lane&-536870913;if(_1!==S.lane?(J0&_1)===_1:(A3&_1)===_1){var r=S.revertLane;if(r===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),_1===F8&&(e=!0);else if((A3&r)===r){S=S.next,r===F8&&(e=!0);continue}else _1={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},w===null?(L=w=_1,z=X):w=w.next=_1,a1.lanes|=r,A6|=r;_1=S.action,z8&&$(X,_1),X=S.hasEagerState?S.eagerState:$(X,_1)}else r={lane:_1,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},w===null?(L=w=r,z=X):w=w.next=r,a1.lanes|=_1,A6|=_1;S=S.next}while(S!==null&&S!==J);if(w===null?z=X:w.next=L,!d2(X,_.memoizedState)&&(q2=!0,e&&($=E7,$!==null)))throw $;_.memoizedState=X,_.baseState=z,_.baseQueue=w,q.lastRenderedState=X}return G===null&&(q.lanes=0),[_.memoizedState,q.dispatch]}function s9(_){var J=R0(),$=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}=$,X=J.memoizedState;if(G!==null){$.pending=null;var z=G=G.next;do X=_(X,z.action),z=z.next;while(z!==G);d2(X,J.memoizedState)||(q2=!0),J.memoizedState=X,J.baseQueue===null&&(J.baseState=X),$.lastRenderedState=X}return[X,q]}function JG(_,J,$){var q=a1,G=p2();if(F0){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var X=$();p7||X===$()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),p7=!0)}else{if(X=J(),p7||($=J(),d2(X,$)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p7=!0)),C0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(J0&127)!==0||HY(q,J,X)}return G.memoizedState=X,$={value:X,getSnapshot:J},G.queue=$,D$(zY.bind(null,q,$,_),[_]),q.flags|=2048,F7(x5|s2,{destroy:void 0},YY.bind(null,q,$,X,J),null),X}function V$(_,J,$){var q=a1,G=R0(),X=F0;if(X){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");$=$()}else if($=J(),!p7){var z=J();d2($,z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p7=!0)}if(z=!d2((N0||G).memoizedState,$))G.memoizedState=$,q2=!0;G=G.queue;var L=zY.bind(null,q,G,_);if($5(2048,s2,L,[_]),G.getSnapshot!==J||z||Q2!==null&&Q2.memoizedState.tag&x5){if(q.flags|=2048,F7(x5|s2,{destroy:void 0},YY.bind(null,q,G,$,J),null),C0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");X||(A3&127)!==0||HY(q,J,$)}return $}function HY(_,J,$){_.flags|=16384,_={getSnapshot:J,value:$},J=a1.updateQueue,J===null?(J=v$(),a1.updateQueue=J,J.stores=[_]):($=J.stores,$===null?J.stores=[_]:$.push(_))}function YY(_,J,$,q){J.value=$,J.getSnapshot=q,WY(J)&&BY(_)}function zY(_,J,$){return $(function(){WY(J)&&(A4(2,"updateSyncExternalStore()",_),BY(_))})}function WY(_){var J=_.getSnapshot;_=_.value;try{var $=J();return!d2(_,$)}catch(q){return!0}}function BY(_){var J=k2(_,2);J!==null&&c0(J,_,2)}function $G(_){var J=p2();if(typeof _==="function"){var $=_;if(_=$(),z8){o1(!0);try{$()}finally{o1(!1)}}}return J.memoizedState=J.baseState=_,J.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t5,lastRenderedState:_},J}function QG(_){_=$G(_);var J=_.queue,$=DY.bind(null,a1,J);return J.dispatch=$,[_.memoizedState,$]}function qG(_){var J=p2();J.memoizedState=J.baseState=_;var $={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return J.queue=$,J=MG.bind(null,a1,!0,$),$.dispatch=J,[_,J]}function LY(_,J){var $=R0();return AY($,N0,_,J)}function AY(_,J,$,q){return _.baseState=$,_G(_,N0,typeof q==="function"?q:t5)}function MY(_,J){var $=R0();if(N0!==null)return AY($,N0,_,J);return $.baseState=_,[_,$.queue.dispatch]}function eO(_,J,$,q,G){if(m$(_))throw Error("Cannot update form state while rendering.");if(_=J.action,_!==null){var X={payload:G,action:_,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(z){X.listeners.push(z)}};Y1.T!==null?$(!0):X.isTransition=!1,q(X),$=J.pending,$===null?(X.next=J.pending=X,TY(J,X)):(X.next=$.next,J.pending=$.next=X)}}function TY(_,J){var{action:$,payload:q}=J,G=_.state;if(J.isTransition){var X=Y1.T,z={};z._updatedFibers=new Set,Y1.T=z;try{var L=$(G,q),w=Y1.S;w!==null&&w(z,L),RY(_,J,L)}catch(S){UG(_,J,S)}finally{X!==null&&z.types!==null&&(X.types!==null&&X.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."),X.types=z.types),Y1.T=X,X===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),RY(_,J,z)}catch(S){UG(_,J,S)}}function RY(_,J,$){$!==null&&typeof $==="object"&&typeof $.then==="function"?(Y1.asyncTransitions++,$.then(x$,x$),$.then(function(q){OY(_,J,q)},function(q){return UG(_,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.")):OY(_,J,$)}function OY(_,J,$){J.status="fulfilled",J.value=$,IY(J),_.state=$,J=_.pending,J!==null&&($=J.next,$===J?_.pending=null:($=$.next,J.next=$,TY(_,$)))}function UG(_,J,$){var q=_.pending;if(_.pending=null,q!==null){q=q.next;do J.status="rejected",J.reason=$,IY(J),J=J.next;while(J!==q)}_.action=null}function IY(_){_=_.listeners;for(var J=0;J<_.length;J++)(0,_[J])()}function wY(_,J){return J}function Z7(_,J){if(F0){var $=C0.formState;if($!==null){_:{var q=a1;if(F0){if(y0){J:{var G=y0;for(var X=b5;G.nodeType!==8;){if(!X){G=null;break J}if(G=B5(G.nextSibling),G===null){G=null;break J}}X=G.data,G=X===bF||X===ZA?G:null}if(G){y0=B5(G.nextSibling),q=G.data===bF;break _}}c3(q)}q=!1}q&&(J=$[0])}}return $=p2(),$.memoizedState=$.baseState=J,q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wY,lastRenderedState:J},$.queue=q,$=DY.bind(null,a1,q),q.dispatch=$,q=$G(!1),X=MG.bind(null,a1,!1,q.queue),q=p2(),G={state:J,dispatch:null,action:_,pending:null},q.queue=G,$=eO.bind(null,a1,G,X,$),G.dispatch=$,q.memoizedState=_,[J,$,!1]}function y$(_){var J=R0();return PY(J,N0,_)}function PY(_,J,$){if(J=_G(_,J,wY)[0],_=G7(t5)[0],typeof J==="object"&&J!==null&&typeof J.then==="function")try{var q=a9(J)}catch(z){if(z===h7)throw uQ;throw z}else q=J;J=R0();var G=J.queue,X=G.dispatch;return $!==J.memoizedState&&(a1.flags|=2048,F7(x5|s2,{destroy:void 0},_I.bind(null,G,$),null)),[q,X,_]}function _I(_,J){_.action=J}function k$(_){var J=R0(),$=N0;if($!==null)return PY(J,$,_);R0(),J=J.memoizedState,$=R0();var q=$.queue.dispatch;return $.memoizedState=_,[J,q,!1]}function F7(_,J,$,q){return _={tag:_,create:$,deps:q,inst:J,next:null},J=a1.updateQueue,J===null&&(J=v$(),a1.updateQueue=J),$=J.lastEffect,$===null?J.lastEffect=_.next=_:(q=$.next,$.next=_,_.next=q,J.lastEffect=_),_}function GG(_){var J=p2();return _={current:_},J.memoizedState=_}function o6(_,J,$,q){var G=p2();a1.flags|=_,G.memoizedState=F7(x5|J,{destroy:void 0},$,q===void 0?null:q)}function $5(_,J,$,q){var G=R0();q=q===void 0?null:q;var X=G.memoizedState.inst;N0!==null&&q!==null&&rU(q,N0.memoizedState.deps)?G.memoizedState=F7(J,X,$,q):(a1.flags|=_,G.memoizedState=F7(x5|J,X,$,q))}function D$(_,J){(a1.mode&_4)!==i1?o6(276826112,s2,_,J):o6(8390656,s2,_,J)}function JI(_){a1.flags|=4;var J=a1.updateQueue;if(J===null)J=v$(),a1.updateQueue=J,J.events=[_];else{var $=J.events;$===null?J.events=[_]:$.push(_)}}function ZG(_){var J=p2(),$={impl:_};return J.memoizedState=$,function(){if((Y0&W2)!==w2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return $.impl.apply(void 0,arguments)}}function u$(_){var J=R0().memoizedState;return JI({ref:J,nextImpl:_}),function(){if((Y0&W2)!==w2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return J.impl.apply(void 0,arguments)}}function FG(_,J){var $=4194308;return(a1.mode&_4)!==i1&&($|=134217728),o6($,O5,_,J)}function NY(_,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 XG(_,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;(a1.mode&_4)!==i1&&(q|=134217728),o6(q,O5,NY.bind(null,J,_),$)}function b$(_,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,$5(4,O5,NY.bind(null,J,_),$)}function KG(_,J){return p2().memoizedState=[_,J===void 0?null:J],_}function E$(_,J){var $=R0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&rU(J,q[1]))return q[0];return $.memoizedState=[_,J],_}function HG(_,J){var $=p2();J=J===void 0?null:J;var q=_();if(z8){o1(!0);try{_()}finally{o1(!1)}}return $.memoizedState=[q,J],q}function h$(_,J){var $=R0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&rU(J,q[1]))return q[0];if(q=_(),z8){o1(!0);try{_()}finally{o1(!1)}}return $.memoizedState=[q,J],q}function YG(_,J){var $=p2();return zG($,_,J)}function CY(_,J){var $=R0();return SY($,N0.memoizedState,_,J)}function fY(_,J){var $=R0();return N0===null?zG($,_,J):SY($,N0.memoizedState,_,J)}function zG(_,J,$){if($===void 0||(A3&1073741824)!==0&&(J0&261930)===0)return _.memoizedState=J;return _.memoizedState=$,_=jz(),a1.lanes|=_,A6|=_,$}function SY(_,J,$,q){if(d2($,J))return $;if(m7.current!==null)return _=zG(_,$,q),d2(_,J)||(q2=!0),_;if((A3&42)===0||(A3&1073741824)!==0&&(J0&261930)===0)return q2=!0,_.memoizedState=$;return _=jz(),a1.lanes|=_,A6|=_,J}function x$(){Y1.asyncTransitions--}function jY(_,J,$,q,G){var X=A0.p;A0.p=X!==0&&X<e5?X:e5;var z=Y1.T,L={};L._updatedFibers=new Set,Y1.T=L,MG(_,!1,J,$);try{var w=G(),S=Y1.S;if(S!==null&&S(L,w),w!==null&&typeof w==="object"&&typeof w.then==="function"){Y1.asyncTransitions++,w.then(x$,x$);var e=tO(w,q);t9(_,J,e,W5(_))}else t9(_,J,q,W5(_))}catch(_1){t9(_,J,{then:function(){},status:"rejected",reason:_1},W5(_))}finally{A0.p=X,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),Y1.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 WG(_,J,$,q){if(_.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var G=vY(_).queue;aO(_),jY(_,G,J,P8,$===null?R:function(){return VY(_),$(q)})}function vY(_){var J=_.memoizedState;if(J!==null)return J;J={memoizedState:P8,baseState:P8,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:t5,lastRenderedState:P8},next:null};var $={};return J.next={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:t5,lastRenderedState:$},next:null},_.memoizedState=J,_=_.alternate,_!==null&&(_.memoizedState=J),J}function VY(_){Y1.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var J=vY(_);J.next===null&&(J=_.alternate.memoizedState),t9(_,J.next.queue,{},W5(_))}function BG(){var _=$G(!1);return _=jY.bind(null,a1,_.queue,!0,!1),p2().memoizedState=_,[!1,_]}function yY(){var _=G7(t5)[0],J=R0().memoizedState;return[typeof _==="boolean"?_:a9(_),J]}function kY(){var _=s9(t5)[0],J=R0().memoizedState;return[typeof _==="boolean"?_:a9(_),J]}function n6(){return u0(UJ)}function LG(){var _=p2(),J=C0.identifierPrefix;if(F0){var $=Y3,q=H3;$=(q&~(1<<32-c2(q)-1)).toString(32)+$,J="_"+J+"R_"+$,$=mQ++,0<$&&(J+="H"+$.toString(32)),J+="_"}else $=DP++,J="_"+J+"r_"+$.toString(32)+"_";return _.memoizedState=J}function AG(){return p2().memoizedState=$I.bind(null,a1)}function $I(_,J){for(var $=_.return;$!==null;){switch($.tag){case 24:case 3:var q=W5($),G=d3(q),X=r3($,G,q);X!==null&&(A4(q,"refresh()",_),c0(X,$,q),i9(X,$,q)),_=EU(),J!==null&&J!==void 0&&X!==null&&console.error("The seed argument is not enabled outside experimental channels."),G.payload={cache:_};return}$=$.return}}function QI(_,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=W5(_);var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};m$(_)?uY(J,G):(G=NU(_,J,G,q),G!==null&&(A4(q,"dispatch()",_),c0(G,_,q),bY(G,J,q)))}function DY(_,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=W5(_),t9(_,J,$,q)&&A4(q,"setState()",_)}function t9(_,J,$,q){var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};if(m$(_))uY(J,G);else{var X=_.alternate;if(_.lanes===0&&(X===null||X.lanes===0)&&(X=J.lastRenderedReducer,X!==null)){var z=Y1.H;Y1.H=$4;try{var L=J.lastRenderedState,w=X(L,$);if(G.hasEagerState=!0,G.eagerState=w,d2(w,L))return Y$(_,J,G,0),C0===null&&H$(),!1}catch(S){}finally{Y1.H=z}}if($=NU(_,J,G,q),$!==null)return c0($,_,q),bY($,J,q),!0}return!1}function MG(_,J,$,q){if(Y1.T===null&&F8===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:aG(),gesture:null,action:q,hasEagerState:!1,eagerState:null,next:null},m$(_)){if(J)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else J=NU(_,$,q,2),J!==null&&(A4(2,"setOptimistic()",_),c0(J,_,2))}function m$(_){var J=_.alternate;return _===a1||J!==null&&J===a1}function uY(_,J){c7=xQ=!0;var $=_.pending;$===null?J.next=J:(J.next=$.next,$.next=J),_.pending=J}function bY(_,J,$){if(($&4194048)!==0){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,f5(_,$)}}function TG(_){if(_!==null&&typeof _!=="function"){var J=String(_);kL.has(J)||(kL.add(J),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",_))}}function RG(_,J,$,q){var G=_.memoizedState,X=$(q,G);if(_.mode&u2){o1(!0);try{X=$(q,G)}finally{o1(!1)}}X===void 0&&(J=b(J)||"Component",jL.has(J)||(jL.add(J),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",J))),G=X===null||X===void 0?G:U0({},G,X),_.memoizedState=G,_.lanes===0&&(_.updateQueue.baseState=G)}function EY(_,J,$,q,G,X,z){var L=_.stateNode;if(typeof L.shouldComponentUpdate==="function"){if($=L.shouldComponentUpdate(q,X,z),_.mode&u2){o1(!0);try{$=L.shouldComponentUpdate(q,X,z)}finally{o1(!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?!h9($,q)||!h9(G,X):!0}function hY(_,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&&(_=x(_)||"Component",PL.has(_)||(PL.add(_),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",_)),WF.enqueueReplaceState(J,J.state,null))}function e6(_,J){var $=J;if("ref"in J){$={};for(var q in J)q!=="ref"&&($[q]=J[q])}if(_=_.defaultProps){$===J&&($=U0({},$));for(var G in _)$[G]===void 0&&($[G]=_[G])}return $}function xY(_){iZ(_),console.warn(`%s
|
|
115
|
+
Incoming: %s`,X1,"["+J.join(", ")+"]","["+_.join(", ")+"]");for(var $=0;$<J.length&&$<_.length;$++)if(!d2(_[$],J[$]))return!1;return!0}function aU(_,J,$,q,G,X){if(A3=X,a1=J,m5=_!==null?_._debugHookTypes:null,T3=-1,c_=_!==null&&_.type!==J.type,Object.prototype.toString.call($)==="[object AsyncFunction]"||Object.prototype.toString.call($)==="[object AsyncGeneratorFunction]")X=x(a1),HF.has(X)||(HF.add(X),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.",X===null?"An unknown Component":"<"+X+">"));J.memoizedState=null,J.updateQueue=null,J.lanes=0,Y1.H=_!==null&&_.memoizedState!==null?zF:m5!==null?OB:YF,z8=X=(J.mode&u2)!==i1;var z=qF($,q,G);if(z8=!1,c7&&(z=sU(J,$,q,G)),X){o1(!0);try{z=sU(J,$,q,G)}finally{o1(!1)}}return KY(_,J),z}function KY(_,J){J._debugHookTypes=m5,J.dependencies===null?M3!==null&&(J.dependencies={lanes:0,firstContext:null,_debugThenableState:M3}):J.dependencies._debugThenableState=M3,Y1.H=l_;var $=N0!==null&&N0.next!==null;if(A3=0,m5=X1=Q2=N0=a1=null,T3=-1,_!==null&&(_.flags&65011712)!==(J.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),xQ=!1,p_=0,M3=null,$)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");_===null||q2||(_=_.dependencies,_!==null&&A$(_)&&(q2=!0)),x_?(x_=!1,_=!0):_=!1,_&&(J=x(J)||"Unknown",TB.has(J)||HF.has(J)||(TB.add(J),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function sU(_,J,$,q){a1=_;var G=0;do{if(c7&&(M3=null),p_=0,c7=!1,G>=uP)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(G+=1,c_=!1,Q2=N0=null,_.updateQueue!=null){var X=_.updateQueue;X.lastEffect=null,X.events=null,X.stores=null,X.memoCache!=null&&(X.memoCache.index=0)}T3=-1,Y1.H=IB,X=qF(J,$,q)}while(c7);return X}function nO(){var _=Y1.H,J=_.useState()[0];return J=typeof J.then==="function"?a9(J):J,_=_.useState()[0],(N0!==null?N0.memoizedState:null)!==_&&(a1.flags|=1024),J}function tU(){var _=mQ!==0;return mQ=0,_}function oU(_,J,$){J.updateQueue=_.updateQueue,J.flags=(J.mode&_4)!==i1?J.flags&-402655237:J.flags&-2053,_.lanes&=~$}function nU(_){if(xQ){for(_=_.memoizedState;_!==null;){var J=_.queue;J!==null&&(J.pending=null),_=_.next}xQ=!1}A3=0,m5=Q2=N0=a1=null,T3=-1,X1=null,c7=!1,p_=mQ=0,M3=null}function p2(){var _={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Q2===null?a1.memoizedState=Q2=_:Q2=Q2.next=_,Q2}function R0(){if(N0===null){var _=a1.alternate;_=_!==null?_.memoizedState:null}else _=N0.next;var J=Q2===null?a1.memoizedState:Q2.next;if(J!==null)Q2=J,N0=_;else{if(_===null){if(a1.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.")}N0=_,_={memoizedState:N0.memoizedState,baseState:N0.baseState,baseQueue:N0.baseQueue,queue:N0.queue,next:null},Q2===null?a1.memoizedState=Q2=_:Q2=Q2.next=_}return Q2}function j$(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function a9(_){var J=p_;return p_+=1,M3===null&&(M3=tH()),_=nH(M3,_,J),J=a1,(Q2===null?J.memoizedState:Q2.next)===null&&(J=J.alternate,Y1.H=J!==null&&J.memoizedState!==null?zF:YF),_}function o3(_){if(_!==null&&typeof _==="object"){if(typeof _.then==="function")return a9(_);if(_.$$typeof===V4)return u0(_)}throw Error("An unsupported type was passed to use(): "+String(_))}function t6(_){var J=null,$=a1.updateQueue;if($!==null&&(J=$.memoCache),J==null){var q=a1.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&&($=j$(),a1.updateQueue=$),$.memoCache=J,$=J.data[J.index],$===void 0||c_)for($=J.data[J.index]=Array(_),q=0;q<_;q++)$[q]=zw;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 t5(_,J){return typeof J==="function"?J(_):J}function eU(_,J,$){var q=p2();if($!==void 0){var G=$(J);if(z8){o1(!0);try{$(J)}finally{o1(!1)}}}else G=J;return q.memoizedState=q.baseState=G,_={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_,lastRenderedState:G},q.queue=_,_=_.dispatch=QI.bind(null,a1,_),[q.memoizedState,_]}function G7(_){var J=R0();return _G(J,N0,_)}function _G(_,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,X=q.pending;if(X!==null){if(G!==null){var z=G.next;G.next=X.next,X.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=X,q.pending=null}if(X=_.baseState,G===null)_.memoizedState=X;else{J=G.next;var B=z=null,w=null,S=J,e=!1;do{var _1=S.lane&-536870913;if(_1!==S.lane?(J0&_1)===_1:(A3&_1)===_1){var r=S.revertLane;if(r===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),_1===F8&&(e=!0);else if((A3&r)===r){S=S.next,r===F8&&(e=!0);continue}else _1={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},w===null?(B=w=_1,z=X):w=w.next=_1,a1.lanes|=r,M6|=r;_1=S.action,z8&&$(X,_1),X=S.hasEagerState?S.eagerState:$(X,_1)}else r={lane:_1,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},w===null?(B=w=r,z=X):w=w.next=r,a1.lanes|=_1,M6|=_1;S=S.next}while(S!==null&&S!==J);if(w===null?z=X:w.next=B,!d2(X,_.memoizedState)&&(q2=!0,e&&($=E7,$!==null)))throw $;_.memoizedState=X,_.baseState=z,_.baseQueue=w,q.lastRenderedState=X}return G===null&&(q.lanes=0),[_.memoizedState,q.dispatch]}function s9(_){var J=R0(),$=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}=$,X=J.memoizedState;if(G!==null){$.pending=null;var z=G=G.next;do X=_(X,z.action),z=z.next;while(z!==G);d2(X,J.memoizedState)||(q2=!0),J.memoizedState=X,J.baseQueue===null&&(J.baseState=X),$.lastRenderedState=X}return[X,q]}function JG(_,J,$){var q=a1,G=p2();if(F0){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var X=$();p7||X===$()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),p7=!0)}else{if(X=J(),p7||($=J(),d2(X,$)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p7=!0)),C0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(J0&127)!==0||HY(q,J,X)}return G.memoizedState=X,$={value:X,getSnapshot:J},G.queue=$,D$(zY.bind(null,q,$,_),[_]),q.flags|=2048,F7(x5|s2,{destroy:void 0},YY.bind(null,q,$,X,J),null),X}function V$(_,J,$){var q=a1,G=R0(),X=F0;if(X){if($===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");$=$()}else if($=J(),!p7){var z=J();d2($,z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p7=!0)}if(z=!d2((N0||G).memoizedState,$))G.memoizedState=$,q2=!0;G=G.queue;var B=zY.bind(null,q,G,_);if($5(2048,s2,B,[_]),G.getSnapshot!==J||z||Q2!==null&&Q2.memoizedState.tag&x5){if(q.flags|=2048,F7(x5|s2,{destroy:void 0},YY.bind(null,q,G,$,J),null),C0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");X||(A3&127)!==0||HY(q,J,$)}return $}function HY(_,J,$){_.flags|=16384,_={getSnapshot:J,value:$},J=a1.updateQueue,J===null?(J=j$(),a1.updateQueue=J,J.stores=[_]):($=J.stores,$===null?J.stores=[_]:$.push(_))}function YY(_,J,$,q){J.value=$,J.getSnapshot=q,WY(J)&&LY(_)}function zY(_,J,$){return $(function(){WY(J)&&(A4(2,"updateSyncExternalStore()",_),LY(_))})}function WY(_){var J=_.getSnapshot;_=_.value;try{var $=J();return!d2(_,$)}catch(q){return!0}}function LY(_){var J=k2(_,2);J!==null&&c0(J,_,2)}function $G(_){var J=p2();if(typeof _==="function"){var $=_;if(_=$(),z8){o1(!0);try{$()}finally{o1(!1)}}}return J.memoizedState=J.baseState=_,J.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t5,lastRenderedState:_},J}function QG(_){_=$G(_);var J=_.queue,$=DY.bind(null,a1,J);return J.dispatch=$,[_.memoizedState,$]}function qG(_){var J=p2();J.memoizedState=J.baseState=_;var $={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return J.queue=$,J=MG.bind(null,a1,!0,$),$.dispatch=J,[_,J]}function BY(_,J){var $=R0();return AY($,N0,_,J)}function AY(_,J,$,q){return _.baseState=$,_G(_,N0,typeof q==="function"?q:t5)}function MY(_,J){var $=R0();if(N0!==null)return AY($,N0,_,J);return $.baseState=_,[_,$.queue.dispatch]}function eO(_,J,$,q,G){if(m$(_))throw Error("Cannot update form state while rendering.");if(_=J.action,_!==null){var X={payload:G,action:_,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(z){X.listeners.push(z)}};Y1.T!==null?$(!0):X.isTransition=!1,q(X),$=J.pending,$===null?(X.next=J.pending=X,TY(J,X)):(X.next=$.next,J.pending=$.next=X)}}function TY(_,J){var{action:$,payload:q}=J,G=_.state;if(J.isTransition){var X=Y1.T,z={};z._updatedFibers=new Set,Y1.T=z;try{var B=$(G,q),w=Y1.S;w!==null&&w(z,B),RY(_,J,B)}catch(S){UG(_,J,S)}finally{X!==null&&z.types!==null&&(X.types!==null&&X.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."),X.types=z.types),Y1.T=X,X===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),RY(_,J,z)}catch(S){UG(_,J,S)}}function RY(_,J,$){$!==null&&typeof $==="object"&&typeof $.then==="function"?(Y1.asyncTransitions++,$.then(x$,x$),$.then(function(q){OY(_,J,q)},function(q){return UG(_,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.")):OY(_,J,$)}function OY(_,J,$){J.status="fulfilled",J.value=$,IY(J),_.state=$,J=_.pending,J!==null&&($=J.next,$===J?_.pending=null:($=$.next,J.next=$,TY(_,$)))}function UG(_,J,$){var q=_.pending;if(_.pending=null,q!==null){q=q.next;do J.status="rejected",J.reason=$,IY(J),J=J.next;while(J!==q)}_.action=null}function IY(_){_=_.listeners;for(var J=0;J<_.length;J++)(0,_[J])()}function wY(_,J){return J}function Z7(_,J){if(F0){var $=C0.formState;if($!==null){_:{var q=a1;if(F0){if(y0){J:{var G=y0;for(var X=b5;G.nodeType!==8;){if(!X){G=null;break J}if(G=L5(G.nextSibling),G===null){G=null;break J}}X=G.data,G=X===bF||X===ZA?G:null}if(G){y0=L5(G.nextSibling),q=G.data===bF;break _}}l3(q)}q=!1}q&&(J=$[0])}}return $=p2(),$.memoizedState=$.baseState=J,q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wY,lastRenderedState:J},$.queue=q,$=DY.bind(null,a1,q),q.dispatch=$,q=$G(!1),X=MG.bind(null,a1,!1,q.queue),q=p2(),G={state:J,dispatch:null,action:_,pending:null},q.queue=G,$=eO.bind(null,a1,G,X,$),G.dispatch=$,q.memoizedState=_,[J,$,!1]}function y$(_){var J=R0();return PY(J,N0,_)}function PY(_,J,$){if(J=_G(_,J,wY)[0],_=G7(t5)[0],typeof J==="object"&&J!==null&&typeof J.then==="function")try{var q=a9(J)}catch(z){if(z===h7)throw uQ;throw z}else q=J;J=R0();var G=J.queue,X=G.dispatch;return $!==J.memoizedState&&(a1.flags|=2048,F7(x5|s2,{destroy:void 0},_I.bind(null,G,$),null)),[q,X,_]}function _I(_,J){_.action=J}function k$(_){var J=R0(),$=N0;if($!==null)return PY(J,$,_);R0(),J=J.memoizedState,$=R0();var q=$.queue.dispatch;return $.memoizedState=_,[J,q,!1]}function F7(_,J,$,q){return _={tag:_,create:$,deps:q,inst:J,next:null},J=a1.updateQueue,J===null&&(J=j$(),a1.updateQueue=J),$=J.lastEffect,$===null?J.lastEffect=_.next=_:(q=$.next,$.next=_,_.next=q,J.lastEffect=_),_}function GG(_){var J=p2();return _={current:_},J.memoizedState=_}function o6(_,J,$,q){var G=p2();a1.flags|=_,G.memoizedState=F7(x5|J,{destroy:void 0},$,q===void 0?null:q)}function $5(_,J,$,q){var G=R0();q=q===void 0?null:q;var X=G.memoizedState.inst;N0!==null&&q!==null&&rU(q,N0.memoizedState.deps)?G.memoizedState=F7(J,X,$,q):(a1.flags|=_,G.memoizedState=F7(x5|J,X,$,q))}function D$(_,J){(a1.mode&_4)!==i1?o6(276826112,s2,_,J):o6(8390656,s2,_,J)}function JI(_){a1.flags|=4;var J=a1.updateQueue;if(J===null)J=j$(),a1.updateQueue=J,J.events=[_];else{var $=J.events;$===null?J.events=[_]:$.push(_)}}function ZG(_){var J=p2(),$={impl:_};return J.memoizedState=$,function(){if((Y0&W2)!==w2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return $.impl.apply(void 0,arguments)}}function u$(_){var J=R0().memoizedState;return JI({ref:J,nextImpl:_}),function(){if((Y0&W2)!==w2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return J.impl.apply(void 0,arguments)}}function FG(_,J){var $=4194308;return(a1.mode&_4)!==i1&&($|=134217728),o6($,O5,_,J)}function NY(_,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 XG(_,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;(a1.mode&_4)!==i1&&(q|=134217728),o6(q,O5,NY.bind(null,J,_),$)}function b$(_,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,$5(4,O5,NY.bind(null,J,_),$)}function KG(_,J){return p2().memoizedState=[_,J===void 0?null:J],_}function E$(_,J){var $=R0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&rU(J,q[1]))return q[0];return $.memoizedState=[_,J],_}function HG(_,J){var $=p2();J=J===void 0?null:J;var q=_();if(z8){o1(!0);try{_()}finally{o1(!1)}}return $.memoizedState=[q,J],q}function h$(_,J){var $=R0();J=J===void 0?null:J;var q=$.memoizedState;if(J!==null&&rU(J,q[1]))return q[0];if(q=_(),z8){o1(!0);try{_()}finally{o1(!1)}}return $.memoizedState=[q,J],q}function YG(_,J){var $=p2();return zG($,_,J)}function CY(_,J){var $=R0();return SY($,N0.memoizedState,_,J)}function fY(_,J){var $=R0();return N0===null?zG($,_,J):SY($,N0.memoizedState,_,J)}function zG(_,J,$){if($===void 0||(A3&1073741824)!==0&&(J0&261930)===0)return _.memoizedState=J;return _.memoizedState=$,_=vz(),a1.lanes|=_,M6|=_,$}function SY(_,J,$,q){if(d2($,J))return $;if(m7.current!==null)return _=zG(_,$,q),d2(_,J)||(q2=!0),_;if((A3&42)===0||(A3&1073741824)!==0&&(J0&261930)===0)return q2=!0,_.memoizedState=$;return _=vz(),a1.lanes|=_,M6|=_,J}function x$(){Y1.asyncTransitions--}function vY(_,J,$,q,G){var X=A0.p;A0.p=X!==0&&X<e5?X:e5;var z=Y1.T,B={};B._updatedFibers=new Set,Y1.T=B,MG(_,!1,J,$);try{var w=G(),S=Y1.S;if(S!==null&&S(B,w),w!==null&&typeof w==="object"&&typeof w.then==="function"){Y1.asyncTransitions++,w.then(x$,x$);var e=tO(w,q);t9(_,J,e,W5(_))}else t9(_,J,q,W5(_))}catch(_1){t9(_,J,{then:function(){},status:"rejected",reason:_1},W5(_))}finally{A0.p=X,z!==null&&B.types!==null&&(z.types!==null&&z.types!==B.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=B.types),Y1.T=z,z===null&&B._updatedFibers&&(_=B._updatedFibers.size,B._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 WG(_,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;aO(_),vY(_,G,J,P8,$===null?R:function(){return VY(_),$(q)})}function jY(_){var J=_.memoizedState;if(J!==null)return J;J={memoizedState:P8,baseState:P8,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:t5,lastRenderedState:P8},next:null};var $={};return J.next={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:t5,lastRenderedState:$},next:null},_.memoizedState=J,_=_.alternate,_!==null&&(_.memoizedState=J),J}function VY(_){Y1.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),t9(_,J.next.queue,{},W5(_))}function LG(){var _=$G(!1);return _=vY.bind(null,a1,_.queue,!0,!1),p2().memoizedState=_,[!1,_]}function yY(){var _=G7(t5)[0],J=R0().memoizedState;return[typeof _==="boolean"?_:a9(_),J]}function kY(){var _=s9(t5)[0],J=R0().memoizedState;return[typeof _==="boolean"?_:a9(_),J]}function n6(){return u0(UJ)}function BG(){var _=p2(),J=C0.identifierPrefix;if(F0){var $=Y3,q=H3;$=(q&~(1<<32-c2(q)-1)).toString(32)+$,J="_"+J+"R_"+$,$=mQ++,0<$&&(J+="H"+$.toString(32)),J+="_"}else $=DP++,J="_"+J+"r_"+$.toString(32)+"_";return _.memoizedState=J}function AG(){return p2().memoizedState=$I.bind(null,a1)}function $I(_,J){for(var $=_.return;$!==null;){switch($.tag){case 24:case 3:var q=W5($),G=r3(q),X=a3($,G,q);X!==null&&(A4(q,"refresh()",_),c0(X,$,q),i9(X,$,q)),_=EU(),J!==null&&J!==void 0&&X!==null&&console.error("The seed argument is not enabled outside experimental channels."),G.payload={cache:_};return}$=$.return}}function QI(_,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=W5(_);var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};m$(_)?uY(J,G):(G=NU(_,J,G,q),G!==null&&(A4(q,"dispatch()",_),c0(G,_,q),bY(G,J,q)))}function DY(_,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=W5(_),t9(_,J,$,q)&&A4(q,"setState()",_)}function t9(_,J,$,q){var G={lane:q,revertLane:0,gesture:null,action:$,hasEagerState:!1,eagerState:null,next:null};if(m$(_))uY(J,G);else{var X=_.alternate;if(_.lanes===0&&(X===null||X.lanes===0)&&(X=J.lastRenderedReducer,X!==null)){var z=Y1.H;Y1.H=$4;try{var B=J.lastRenderedState,w=X(B,$);if(G.hasEagerState=!0,G.eagerState=w,d2(w,B))return Y$(_,J,G,0),C0===null&&H$(),!1}catch(S){}finally{Y1.H=z}}if($=NU(_,J,G,q),$!==null)return c0($,_,q),bY($,J,q),!0}return!1}function MG(_,J,$,q){if(Y1.T===null&&F8===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:aG(),gesture:null,action:q,hasEagerState:!1,eagerState:null,next:null},m$(_)){if(J)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else J=NU(_,$,q,2),J!==null&&(A4(2,"setOptimistic()",_),c0(J,_,2))}function m$(_){var J=_.alternate;return _===a1||J!==null&&J===a1}function uY(_,J){c7=xQ=!0;var $=_.pending;$===null?J.next=J:(J.next=$.next,$.next=J),_.pending=J}function bY(_,J,$){if(($&4194048)!==0){var q=J.lanes;q&=_.pendingLanes,$|=q,J.lanes=$,f5(_,$)}}function TG(_){if(_!==null&&typeof _!=="function"){var J=String(_);kB.has(J)||(kB.add(J),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",_))}}function RG(_,J,$,q){var G=_.memoizedState,X=$(q,G);if(_.mode&u2){o1(!0);try{X=$(q,G)}finally{o1(!1)}}X===void 0&&(J=b(J)||"Component",vB.has(J)||(vB.add(J),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",J))),G=X===null||X===void 0?G:U0({},G,X),_.memoizedState=G,_.lanes===0&&(_.updateQueue.baseState=G)}function EY(_,J,$,q,G,X,z){var B=_.stateNode;if(typeof B.shouldComponentUpdate==="function"){if($=B.shouldComponentUpdate(q,X,z),_.mode&u2){o1(!0);try{$=B.shouldComponentUpdate(q,X,z)}finally{o1(!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?!h9($,q)||!h9(G,X):!0}function hY(_,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&&(_=x(_)||"Component",PB.has(_)||(PB.add(_),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",_)),WF.enqueueReplaceState(J,J.state,null))}function e6(_,J){var $=J;if("ref"in J){$={};for(var q in J)q!=="ref"&&($[q]=J[q])}if(_=_.defaultProps){$===J&&($=U0({},$));for(var G in _)$[G]===void 0&&($[G]=_[G])}return $}function xY(_){iZ(_),console.warn(`%s
|
|
116
116
|
|
|
117
117
|
%s
|
|
118
118
|
`,l7?"An error occurred in the <"+l7+"> 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 mY(_){var J=l7?"The above error occurred in the <"+l7+"> 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, "+((
|
|
119
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function mY(_){var J=l7?"The above error occurred in the <"+l7+"> 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, "+((LF||"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,
|
|
124
|
+
`,_,J,$].slice(0),typeof _[0]==="string"?_.splice(0,1,LA+" "+_[0],BA,Hq+q+Hq,AA):_.splice(0,0,LA,BA,Hq+q+Hq,AA),_.unshift(console),q=JN.apply(console.error,_),q()}else console.error(`%o
|
|
125
125
|
|
|
126
126
|
%s
|
|
127
127
|
|
|
128
128
|
%s
|
|
129
|
-
`,_,J,$)}function gY(_){iZ(_)}function g$(_,J){try{l7=J.source?x(J.source):null,
|
|
129
|
+
`,_,J,$)}function gY(_){iZ(_)}function g$(_,J){try{l7=J.source?x(J.source):null,LF=null;var $=J.value;if(Y1.actQueue!==null)Y1.thrownErrors.push($);else{var q=_.onUncaughtError;q($,{componentStack:J.stack})}}catch(G){setTimeout(function(){throw G})}}function pY(_,J,$){try{l7=$.source?x($.source):null,LF=x(J);var q=_.onCaughtError;q($.value,{componentStack:$.stack,errorBoundary:J.tag===1?J.stateNode:null})}catch(G){setTimeout(function(){throw G})}}function OG(_,J,$){return $=r3($),$.tag=FF,$.payload={element:null},$.callback=function(){A1(J.source,g$,_,J)},$}function IG(_){return _=r3(_),_.tag=FF,_}function wG(_,J,$,q){var G=$.type.getDerivedStateFromError;if(typeof G==="function"){var X=q.value;_.payload=function(){return G(X)},_.callback=function(){uH($),A1(q.source,pY,J,$,q)}}var z=$.stateNode;z!==null&&typeof z.componentDidCatch==="function"&&(_.callback=function(){uH($),A1(q.source,pY,J,$,q),typeof G!=="function"&&(R6===null?R6=new Set([this]):R6.add(this)),jP(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.",x($)||"Unknown")})}function qI(_,J,$,q,G){if($.flags|=32768,D4&&q_(_,G),q!==null&&typeof q==="object"&&typeof q.then==="function"){if(J=$.alternate,J!==null&&q7(J,$,G,!0),F0&&(E4=!0),$=R5.current,$!==null){switch($.tag){case 31:case 13:return h5===null?t$():$.alternate===null&&g0===O3&&(g0=cQ),$.flags&=-257,$.flags|=65536,$.lanes=G,q===bQ?$.flags|=16384:(J=$.updateQueue,J===null?$.updateQueue=new Set([q]):J.add(q),lG(_,q,G)),!1;case 22:return $.flags|=65536,q===bQ?$.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)),lG(_,q,G)),!1}throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}return lG(_,q,G),t$(),!1}if(F0)return E4=!0,J=R5.current,J!==null?((J.flags&65536)===0&&(J.flags|=256),J.flags|=65536,J.lanes=G,q!==oZ&&m9(K5(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!==oZ&&m9(K5(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=K5(q,$),G=OG(_.stateNode,q,G),f$(_,G),g0!==B6&&(g0=W8)),!1;var X=K5(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:q}),$);if(t_===null?t_=[X]:t_.push(X),g0!==B6&&(g0=W8),J===null)return!0;q=K5(q,$),$=J;do{switch($.tag){case 3:return $.flags|=65536,_=G&-G,$.lanes|=_,_=OG($.stateNode,q,_),f$($,_),!1;case 1:if(J=$.type,X=$.stateNode,($.flags&128)===0&&(typeof J.getDerivedStateFromError==="function"||X!==null&&typeof X.componentDidCatch==="function"&&(R6===null||!R6.has(X))))return $.flags|=65536,G&=-G,$.lanes|=G,G=IG(G),wG(G,_,$,q),f$($,G),!1}$=$.return}while($!==null);return!1}function S2(_,J,$,q){J.child=_===null?zB(J,null,$,q):Y8(J,_.child,$,q)}function cY(_,J,$,q,G){$=$.render;var X=J.ref;if("ref"in q){var z={};for(var B in q)B!=="ref"&&(z[B]=q[B])}else z=q;if(a6(J),q=aU(_,J,$,z,X,G),B=tU(),_!==null&&!q2)return oU(_,J,G),U3(_,J,G);return F0&&B&&VU(J),J.flags|=1,S2(_,J,q,G),J.child}function lY(_,J,$,q,G){if(_===null){var X=$.type;if(typeof X==="function"&&!fU(X)&&X.defaultProps===void 0&&$.compare===null)return $=l6(X),J.tag=15,J.type=$,NG(J,X),iY(_,J,$,q,G);return _=SU($.type,null,q,J,J.mode,G),_.ref=J.ref,_.return=J,J.child=_}if(X=_.child,!VG(_,G)){var z=X.memoizedProps;if($=$.compare,$=$!==null?$:h9,$(z,q)&&_.ref===J.ref)return U3(_,J,G)}return J.flags|=1,_=J3(X,q),_.ref=J.ref,_.return=J,J.child=_}function iY(_,J,$,q,G){if(_!==null){var X=_.memoizedProps;if(h9(X,q)&&_.ref===J.ref&&J.type===_.type)if(q2=!1,J.pendingProps=q=X,VG(_,G))(_.flags&131072)!==0&&(q2=!0);else return J.lanes=_.lanes,U3(_,J,G)}return PG(_,J,$,q,G)}function dY(_,J,$,q){var G=q.children,X=_!==null?_.memoizedState:null;if(_===null&&J.stateNode===null&&(J.stateNode={_visibility:N_,_pendingMarkers:null,_retryCache:null,_transitions:null}),q.mode==="hidden"){if((J.flags&128)!==0){if(X=X!==null?X.baseLanes|$:$,_!==null){q=J.child=_.child;for(G=0;q!==null;)G=G|q.lanes|q.childLanes,q=q.sibling;q=G&~X}else q=0,J.child=null;return rY(_,J,X,$,q)}if(($&536870912)!==0)J.memoizedState={baseLanes:0,cachePool:null},_!==null&&O$(J,X!==null?X.cachePool:null),X!==null?FY(J,X):lU(J),XY(J);else return q=J.lanes=536870912,rY(_,J,X!==null?X.baseLanes|$:$,$,q)}else X!==null?(O$(J,X.cachePool),FY(J,X),t3(J),J.memoizedState=null):(_!==null&&O$(J,null),lU(J),t3(J));return S2(_,J,G,$),J.child}function o9(_,J){return _!==null&&_.tag===22||J.stateNode!==null||(J.stateNode={_visibility:N_,_pendingMarkers:null,_retryCache:null,_transitions:null}),J.sibling}function rY(_,J,$,q,G){var X=mU();return X=X===null?null:{parent:J2._currentValue,pool:X},J.memoizedState={baseLanes:$,cachePool:X},_!==null&&O$(J,null),lU(J),XY(J),_!==null&&q7(_,J,q,!0),J.childLanes=G,null}function p$(_,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=l$({mode:J.mode,children:J.children},_.mode),J.ref=_.ref,_.child=J,J.return=_,J}function aY(_,J,$){return Y8(J,_.child,null,$),_=p$(J,J.pendingProps),_.flags|=2,z5(J),J.memoizedState=null,_}function UI(_,J,$){var q=J.pendingProps,G=(J.flags&128)!==0;if(J.flags&=-129,_===null){if(F0){if(q.mode==="hidden")return _=p$(J,q),J.lanes=536870912,o9(null,_);if(dU(J),(_=y0)?($=TW(_,b5),$=$!==null&&$.data===R8?$:null,$!==null&&(q={dehydrated:$,treeContext:mH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=hH($),q.return=J,J.child=q,V2=J,y0=null)):$=null,$===null)throw
|
|
131
|
+
+ <Activity %s>`,$===!0?"hidden":$===!1?"hidden={false}":"hidden={...}",$?'mode="hidden"':'mode="visible"'),J=l$({mode:J.mode,children:J.children},_.mode),J.ref=_.ref,_.child=J,J.return=_,J}function aY(_,J,$){return Y8(J,_.child,null,$),_=p$(J,J.pendingProps),_.flags|=2,z5(J),J.memoizedState=null,_}function UI(_,J,$){var q=J.pendingProps,G=(J.flags&128)!==0;if(J.flags&=-129,_===null){if(F0){if(q.mode==="hidden")return _=p$(J,q),J.lanes=536870912,o9(null,_);if(dU(J),(_=y0)?($=TW(_,b5),$=$!==null&&$.data===R8?$:null,$!==null&&(q={dehydrated:$,treeContext:mH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=hH($),q.return=J,J.child=q,V2=J,y0=null)):$=null,$===null)throw L$(J,_),l3(J);return J.lanes=536870912,null}return p$(J,q)}var X=_.memoizedState;if(X!==null){var z=X.dehydrated;if(dU(J),G)if(J.flags&256)J.flags&=-257,J=aY(_,J,$);else if(J.memoizedState!==null)J.child=_.child,J.flags|=128,J=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(pH(),($&536870912)!==0&&s$(J),q2||q7(_,J,$,!1),G=($&_.childLanes)!==0,q2||G){if(q=C0,q!==null&&(z=S5(q,$),z!==0&&z!==X.retryLane))throw X.retryLane=z,k2(_,z),c0(q,_,z),BF;t$(),J=aY(_,J,$)}else _=X.treeContext,y0=L5(z.nextSibling),V2=J,F0=!0,X6=null,E4=!1,T5=null,b5=!1,_!==null&&gH(J,_),J=p$(J,q),J.flags|=4096;return J}return X=_.child,q={mode:q.mode,children:q.children},($&536870912)!==0&&($&_.lanes)!==0&&s$(J),_=J3(X,q),_.ref=J.ref,J.child=_,_.return=J,_}function c$(_,J){var $=J.ref;if($===null)_!==null&&_.ref!==null&&(J.flags|=4194816);else{if(typeof $!=="function"&&typeof $!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(_===null||_.ref!==$)J.flags|=4194816}}function PG(_,J,$,q,G){if($.prototype&&typeof $.prototype.render==="function"){var X=b($)||"Unknown";DB[X]||(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.",X,X),DB[X]=!0)}if(J.mode&u2&&J4.recordLegacyContextWarning(J,null),_===null&&(NG(J,J.type),$.contextTypes&&(X=b($)||"Unknown",bB[X]||(bB[X]=!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)",X)))),a6(J),$=aU(_,J,$,q,void 0,G),q=tU(),_!==null&&!q2)return oU(_,J,G),U3(_,J,G);return F0&&q&&VU(J),J.flags|=1,S2(_,J,$,G),J.child}function sY(_,J,$,q,G,X){if(a6(J),T3=-1,c_=_!==null&&_.type!==J.type,J.updateQueue=null,$=sU(J,q,$,G),KY(_,J),q=tU(),_!==null&&!q2)return oU(_,J,X),U3(_,J,X);return F0&&q&&VU(J),J.flags|=1,S2(_,J,$,X),J.child}function tY(_,J,$,q,G){switch(W(J)){case!1:var X=J.stateNode,z=new J.type(J.memoizedProps,X.context).state;X.updater.enqueueSetState(X,z,null);break;case!0:J.flags|=128,J.flags|=65536,X=Error("Simulated error coming from DevTools");var B=G&-G;if(J.lanes|=B,z=C0,z===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B=IG(B),wG(B,z,J,K5(X,J)),f$(J,B)}if(a6(J),J.stateNode===null){if(z=F6,X=$.contextType,"contextType"in $&&X!==null&&(X===void 0||X.$$typeof!==V4)&&!yB.has($)&&(yB.add($),B=X===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 X!=="object"?" However, it is set to a "+typeof X+".":X.$$typeof===AZ?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(X).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",b($)||"Component",B)),typeof X==="object"&&X!==null&&(z=u0(X)),X=new $(q,z),J.mode&u2){o1(!0);try{X=new $(q,z)}finally{o1(!1)}}if(z=J.memoizedState=X.state!==null&&X.state!==void 0?X.state:null,X.updater=WF,J.stateNode=X,X._reactInternals=J,X._reactInternalInstance=wB,typeof $.getDerivedStateFromProps==="function"&&z===null&&(z=b($)||"Component",NB.has(z)||(NB.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,X.state===null?"null":"undefined",z))),typeof $.getDerivedStateFromProps==="function"||typeof X.getSnapshotBeforeUpdate==="function"){var w=B=z=null;if(typeof X.componentWillMount==="function"&&X.componentWillMount.__suppressDeprecationWarning!==!0?z="componentWillMount":typeof X.UNSAFE_componentWillMount==="function"&&(z="UNSAFE_componentWillMount"),typeof X.componentWillReceiveProps==="function"&&X.componentWillReceiveProps.__suppressDeprecationWarning!==!0?B="componentWillReceiveProps":typeof X.UNSAFE_componentWillReceiveProps==="function"&&(B="UNSAFE_componentWillReceiveProps"),typeof X.componentWillUpdate==="function"&&X.componentWillUpdate.__suppressDeprecationWarning!==!0?w="componentWillUpdate":typeof X.UNSAFE_componentWillUpdate==="function"&&(w="UNSAFE_componentWillUpdate"),z!==null||B!==null||w!==null){X=b($)||"Component";var S=typeof $.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";fB.has(X)||(fB.add(X),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
136
|
https://react.dev/link/unsafe-component-lifecycles`,X,S,z!==null?`
|
|
137
|
-
`+z:"",
|
|
138
|
-
`+
|
|
139
|
-
`+w:""))}}X=J.stateNode,z=b($)||"Component",X.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)),!X.getInitialState||X.getInitialState.isReactClassApproved||X.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),X.getDefaultProps&&!X.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),X.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",z),$.childContextTypes&&!
|
|
140
|
-
%s.childContextTypes = ...`,J.displayName||J.name||"Component"),typeof J.getDerivedStateFromProps==="function"&&(_=b(J)||"Unknown",EL[_]||(console.error("%s: Function components do not support getDerivedStateFromProps.",_),EL[_]=!0)),typeof J.contextType==="object"&&J.contextType!==null&&(J=b(J)||"Unknown",uL[J]||(console.error("%s: Function components do not support contextType.",J),uL[J]=!0))}function CG(_){return{baseLanes:_,cachePool:sH()}}function fG(_,J,$){return _=_!==null?_.childLanes&~$:0,J&&(_|=Z5),_}function nY(_,J,$){var q,G=J.pendingProps;Y(J)&&(J.flags|=128);var X=!1,z=(J.flags&128)!==0;if((q=z)||(q=_!==null&&_.memoizedState===null?!1:(o0.current&g_)!==0),q&&(X=!0,J.flags&=-129),q=(J.flags&32)!==0,J.flags&=-33,_===null){if(F0){if(X?a3(J):s3(J),(_=y0)?($=TW(_,b5),$=$!==null&&$.data!==R8?$:null,$!==null&&(q={dehydrated:$,treeContext:mH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=hH($),q.return=J,J.child=q,V2=J,y0=null)):$=null,$===null)throw B$(J,_),c3(J);return GZ($)?J.lanes=32:J.lanes=536870912,null}var L=G.children;if(G=G.fallback,X){s3(J);var w=J.mode;return L=l$({mode:"hidden",children:L},w),G=i6(G,w,$,null),L.return=J,G.return=J,L.sibling=G,J.child=L,G=J.child,G.memoizedState=CG($),G.childLanes=fG(_,q,$),J.memoizedState=AF,o9(null,G)}return a3(J),SG(J,L)}var S=_.memoizedState;if(S!==null){var e=S.dehydrated;if(e!==null){if(z)J.flags&256?(a3(J),J.flags&=-257,J=jG(_,J,$)):J.memoizedState!==null?(s3(J),J.child=_.child,J.flags|=128,J=null):(s3(J),L=G.fallback,w=J.mode,G=l$({mode:"visible",children:G.children},w),L=i6(L,w,$,null),L.flags|=2,G.return=J,L.return=J,G.sibling=L,J.child=G,Y8(J,_.child,null,$),G=J.child,G.memoizedState=CG($),G.childLanes=fG(_,q,$),J.memoizedState=AF,J=o9(null,G));else if(a3(J),pH(),($&536870912)!==0&&s$(J),GZ(e)){if(q=e.nextSibling&&e.nextSibling.dataset,q){L=q.dgst;var _1=q.msg;w=q.stck;var r=q.cstck}X=_1,q=L,G=w,e=r,L=X,w=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=w===void 0?null:w,G={value:L,source:null,stack:q},typeof q==="string"&&tZ.set(L,G),m9(G),J=jG(_,J,$)}else if(q2||q7(_,J,$,!1),q=($&_.childLanes)!==0,q2||q){if(q=C0,q!==null&&(G=S5(q,$),G!==0&&G!==S.retryLane))throw S.retryLane=G,k2(_,G),c0(q,_,G),LF;UZ(e)||t$(),J=jG(_,J,$)}else UZ(e)?(J.flags|=192,J.child=_.child,J=null):(_=S.treeContext,y0=B5(e.nextSibling),V2=J,F0=!0,F6=null,E4=!1,T5=null,b5=!1,_!==null&&gH(J,_),J=SG(J,G.children),J.flags|=4096);return J}}if(X)return s3(J),L=G.fallback,w=J.mode,r=_.child,e=r.sibling,G=J3(r,{mode:"hidden",children:G.children}),G.subtreeFlags=r.subtreeFlags&65011712,e!==null?L=J3(e,L):(L=i6(L,w,$,null),L.flags|=2),L.return=J,G.return=J,G.sibling=L,J.child=G,o9(null,G),G=J.child,L=_.child.memoizedState,L===null?L=CG($):(w=L.cachePool,w!==null?(r=J2._currentValue,w=w.parent!==r?{parent:r,pool:r}:w):w=sH(),L={baseLanes:L.baseLanes|$,cachePool:w}),G.memoizedState=L,G.childLanes=fG(_,q,$),J.memoizedState=AF,o9(_.child,G);return S!==null&&($&62914560)===$&&($&_.lanes)!==0&&s$(J),a3(J),$=_.child,_=$.sibling,$=J3($,{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 SG(_,J){return J=l$({mode:"visible",children:J},_.mode),J.return=_,_.child=J}function l$(_,J){return _=O(22,_,null,J),_.lanes=0,_}function jG(_,J,$){return Y8(J,_.child,null,$),_=SG(J,J.pendingProps.children),_.flags|=2,J.memoizedState=null,_}function eY(_,J,$){_.lanes|=J;var q=_.alternate;q!==null&&(q.lanes|=J),uU(_.return,J,$)}function vG(_,J,$,q,G,X){var z=_.memoizedState;z===null?_.memoizedState={isBackwards:J,rendering:null,renderingStartTime:0,last:q,tail:$,tailMode:G,treeForkCount:X}:(z.isBackwards=J,z.rendering=null,z.renderingStartTime=0,z.last=q,z.tail=$,z.tailMode=G,z.treeForkCount=X)}function _z(_,J,$){var q=J.pendingProps,G=q.revealOrder,X=q.tail,z=q.children,L=o0.current;if((q=(L&g_)!==0)?(L=L&g7|g_,J.flags|=128):L&=g7,J1(o0,L,J),L=G==null?"null":G,G!=="forwards"&&G!=="unstable_legacy-backwards"&&G!=="together"&&G!=="independent"&&!hL[L])if(hL[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=X==null?"null":X,!pQ[L])if(X==null){if(G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")pQ[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 X!=="visible"&&X!=="collapsed"&&X!=="hidden"?(pQ[L]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',X)):G!=="forwards"&&G!=="backwards"&&G!=="unstable_legacy-backwards"&&(pQ[L]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',X));_:if((G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")&&z!==void 0&&z!==null&&z!==!1)if(Y2(z)){for(L=0;L<z.length;L++)if(!UY(z[L],L))break _}else if(L=E(z),typeof L==="function"){if(L=L.call(z))for(var w=L.next(),S=0;!w.done;w=L.next()){if(!UY(w.value,S))break _;S++}}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(S2(_,J,z,$),F0?(p3(),z=C_):z=0,!q&&_!==null&&(_.flags&128)!==0)_:for(_=J.child;_!==null;){if(_.tag===13)_.memoizedState!==null&&eY(_,$,J);else if(_.tag===19)eY(_,$,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&&S$(_)===null&&(G=$),$=$.sibling;$=G,$===null?(G=J.child,J.child=null):(G=$.sibling,$.sibling=null),vG(J,!1,G,$,X,z);break;case"backwards":case"unstable_legacy-backwards":$=null,G=J.child;for(J.child=null;G!==null;){if(_=G.alternate,_!==null&&S$(_)===null){J.child=G;break}_=G.sibling,G.sibling=$,$=G,G=_}vG(J,!0,$,null,X,z);break;case"together":vG(J,!1,null,null,void 0,z);break;default:J.memoizedState=null}return J.child}function U3(_,J,$){if(_!==null&&(J.dependencies=_.dependencies),r2=-1,A6|=J.lanes,($&J.childLanes)===0)if(_!==null){if(q7(_,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,$=J3(_,_.pendingProps),J.child=$;for($.return=J;_.sibling!==null;)_=_.sibling,$=$.sibling=J3(_,_.pendingProps),$.return=J;$.sibling=null}return J.child}function VG(_,J){if((_.lanes&J)!==0)return!0;return _=_.dependencies,_!==null&&A$(_)?!0:!1}function GI(_,J,$){switch(J.tag){case 3:p(J,J.stateNode.containerInfo),l3(J,J2,_.memoizedState.cache),r6();break;case 27:case 5:i(J);break;case 4:p(J,J.stateNode.containerInfo);break;case 10:l3(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,dU(J),null;break;case 13:if(q=J.memoizedState,q!==null){if(q.dehydrated!==null)return a3(J),J.flags|=128,null;if(($&J.child.childLanes)!==0)return nY(_,J,$);return a3(J),_=U3(_,J,$),_!==null?_.sibling:null}a3(J);break;case 19:var G=(_.flags&128)!==0;if(q=($&J.childLanes)!==0,q||(q7(_,J,$,!1),q=($&J.childLanes)!==0),G){if(q)return _z(_,J,$);J.flags|=128}if(G=J.memoizedState,G!==null&&(G.rendering=null,G.tail=null,G.lastEffect=null),J1(o0,o0.current,J),q)break;else return null;case 22:return J.lanes=0,dY(_,J,$,J.pendingProps);case 24:l3(J,J2,_.memoizedState.cache)}return U3(_,J,$)}function yG(_,J,$){if(J._debugNeedsRemount&&_!==null){$=SU(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)q2=!0;else{if(!VG(_,$)&&(J.flags&128)===0)return q2=!1,GI(_,J,$);q2=(_.flags&131072)!==0?!0:!1}else{if(q2=!1,q=F0)p3(),q=(J.flags&1048576)!==0;q&&(q=J.index,p3(),xH(J,C_,q))}switch(J.lanes=0,J.tag){case 16:_:if(q=J.pendingProps,_=i3(J.elementType),J.type=_,typeof _==="function")fU(_)?(q=e6(_,q),J.tag=1,J.type=_=l6(_),J=tY(null,J,_,q,$)):(J.tag=0,NG(J,_),J.type=_=l6(_),J=PG(null,J,_,q,$));else{if(_!==void 0&&_!==null){if(G=_.$$typeof,G===z_){J.tag=11,J.type=_=CU(_),J=cY(null,J,_,q,$);break _}else if(G===KQ){J.tag=14,J=lY(null,J,_,q,$);break _}}throw J="",_!==null&&typeof _==="object"&&_.$$typeof===L5&&(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 PG(_,J,J.type,J.pendingProps,$);case 1:return q=J.type,G=e6(q,J.pendingProps),tY(_,J,q,G,$);case 3:_:{if(p(J,J.stateNode.containerInfo),_===null)throw Error("Should have a current fiber. This is a bug in React.");q=J.pendingProps;var X=J.memoizedState;G=X.element,cU(_,J),r9(J,q,null,$);var z=J.memoizedState;if(q=z.cache,l3(J,J2,q),q!==X.cache&&bU(J,[J2],$,!0),d9(),q=z.element,X.isDehydrated)if(X={element:q,isDehydrated:!1,cache:z.cache},J.updateQueue.baseState=X,J.memoizedState=X,J.flags&256){J=oY(_,J,q,$);break _}else if(q!==G){G=K5(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),J),m9(G),J=oY(_,J,q,$);break _}else{switch(_=J.stateNode.containerInfo,_.nodeType){case 9:_=_.body;break;default:_=_.nodeName==="HTML"?_.ownerDocument.body:_}y0=B5(_.firstChild),V2=J,F0=!0,F6=null,E4=!1,T5=null,b5=!0,$=zL(J,null,q,$);for(J.child=$;$;)$.flags=$.flags&-3|4096,$=$.sibling}else{if(r6(),q===G){J=U3(_,J,$);break _}S2(_,J,q,$)}J=J.child}return J;case 26:return c$(_,J),_===null?($=NW(J.type,null,J.pendingProps,null))?J.memoizedState=$:F0||($=J.type,_=J.pendingProps,q=m(J6.current),q=_Q(q).createElement($),q[v2]=J,q[l2]=_,j2(q,$,_),v1(q),J.stateNode=q):J.memoizedState=NW(J.type,_.memoizedProps,J.pendingProps,_.memoizedState),null;case 27:return i(J),_===null&&F0&&(q=m(J6.current),G=a(),q=J.stateNode=wW(J.type,J.pendingProps,q,G,!1),E4||(G=HW(q,J.type,J.pendingProps,G),G!==null&&(d6(J,0).serverProps=G)),V2=J,b5=!0,G=y0,e3(J.type)?(mF=G,y0=B5(q.firstChild)):y0=G),S2(_,J,J.pendingProps.children,$),c$(_,J),_===null&&(J.flags|=4194304),J.child;case 5:return _===null&&F0&&(X=a(),q=k9(J.type,X.ancestorInfo),G=y0,(z=!G)||(z=aI(G,J.type,J.pendingProps,b5),z!==null?(J.stateNode=z,E4||(X=HW(z,J.type,J.pendingProps,X),X!==null&&(d6(J,0).serverProps=X)),V2=J,y0=B5(z.firstChild),b5=!1,X=!0):X=!1,z=!X),z&&(q&&B$(J,G),c3(J))),i(J),G=J.type,X=J.pendingProps,z=_!==null?_.memoizedProps:null,q=X.children,QZ(G,X)?q=null:z!==null&&QZ(G,z)&&(J.flags|=32),J.memoizedState!==null&&(G=aU(_,J,nO,null,null,$),UJ._currentValue=G),c$(_,J),S2(_,J,q,$),J.child;case 6:return _===null&&F0&&($=J.pendingProps,_=a(),q=_.ancestorInfo.current,$=q!=null?g3($,q.tag,_.ancestorInfo.implicitRootScope):!0,_=y0,(q=!_)||(q=sI(_,J.pendingProps,b5),q!==null?(J.stateNode=q,V2=J,y0=null,q=!0):q=!1,q=!q),q&&($&&B$(J,_),c3(J))),null;case 13:return nY(_,J,$);case 4:return p(J,J.stateNode.containerInfo),q=J.pendingProps,_===null?J.child=Y8(J,null,q,$):S2(_,J,q,$),J.child;case 11:return cY(_,J,J.type,J.pendingProps,$);case 7:return S2(_,J,J.pendingProps,$),J.child;case 8:return S2(_,J,J.pendingProps.children,$),J.child;case 12:return J.flags|=4,J.flags|=2048,q=J.stateNode,q.effectDuration=-0,q.passiveEffectDuration=-0,S2(_,J,J.pendingProps.children,$),J.child;case 10:return q=J.type,G=J.pendingProps,X=G.value,"value"in G||xL||(xL=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),l3(J,q,X),S2(_,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."),a6(J),G=u0(G),q=qF(q,G,void 0),J.flags|=1,S2(_,J,q,$),J.child;case 14:return lY(_,J,J.type,J.pendingProps,$);case 15:return iY(_,J,J.type,J.pendingProps,$);case 19:return _z(_,J,$);case 31:return UI(_,J,$);case 22:return dY(_,J,$,J.pendingProps);case 24:return a6(J),q=u0(J2),_===null?(G=mU(),G===null&&(G=C0,X=EU(),G.pooledCache=X,s6(X),X!==null&&(G.pooledCacheLanes|=$),G=X),J.memoizedState={parent:q,cache:G},pU(J),l3(J,J2,G)):((_.lanes&$)!==0&&(cU(_,J),r9(J,null,null,$),d9()),G=_.memoizedState,X=J.memoizedState,G.parent!==q?(G={parent:q,cache:q},J.memoizedState=G,J.lanes===0&&(J.memoizedState=J.updateQueue.baseState=G),l3(J,J2,q)):(q=X.cache,l3(J,J2,q),q!==G.cache&&bU(J,[J2],$,!0))),S2(_,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 G3(_){_.flags|=4}function kG(_,J,$,q,G){if(J=(_.mode&CP)!==i1)J=!1;if(J){if(_.flags|=16777216,(G&335544128)===G)if(_.stateNode.complete)_.flags|=8192;else if(kz())_.flags|=8192;else throw H8=bQ,GF}else _.flags&=-16777217}function Jz(_,J){if(J.type!=="stylesheet"||(J.state.loading&g5)!==w8)_.flags&=-16777217;else if(_.flags|=16777216,!vW(J))if(kz())_.flags|=8192;else throw H8=bQ,GF}function i$(_,J){J!==null&&(_.flags|=4),_.flags&16384&&(J=_.tag!==22?M2():536870912,_.lanes|=J,A8|=J)}function n9(_,J){if(!F0)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 j0(_){var J=_.alternate!==null&&_.alternate.child===_.child,$=0,q=0;if(J)if((_.mode&e1)!==i1){for(var{selfBaseDuration:G,child:X}=_;X!==null;)$|=X.lanes|X.childLanes,q|=X.subtreeFlags&65011712,q|=X.flags&65011712,G+=X.treeBaseDuration,X=X.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&e1)!==i1){G=_.actualDuration,X=_.selfBaseDuration;for(var z=_.child;z!==null;)$|=z.lanes|z.childLanes,q|=z.subtreeFlags,q|=z.flags,G+=z.actualDuration,X+=z.treeBaseDuration,z=z.sibling;_.actualDuration=G,_.treeBaseDuration=X}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 ZI(_,J,$){var q=J.pendingProps;switch(yU(J),J.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return j0(J),null;case 1:return j0(J),null;case 3:if($=J.stateNode,q=null,_!==null&&(q=_.memoizedState.cache),J.memoizedState.cache!==q&&(J.flags|=2048),Q3(J2,J),c(J),$.pendingContext&&($.context=$.pendingContext,$.pendingContext=null),_===null||_.child===null)Q7(J)?(DU(),G3(J)):_===null||_.memoizedState.isDehydrated&&(J.flags&256)===0||(J.flags|=1024,kU());return j0(J),null;case 26:var{type:G,memoizedState:X}=J;return _===null?(G3(J),X!==null?(j0(J),Jz(J,X)):(j0(J),kG(J,G,null,q,$))):X?X!==_.memoizedState?(G3(J),j0(J),Jz(J,X)):(j0(J),J.flags&=-16777217):(_=_.memoizedProps,_!==q&&G3(J),j0(J),kG(J,G,_,q,$)),null;case 27:if(o(J),$=m(J6.current),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&G3(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 j0(J),null}_=a(),Q7(J)?cH(J,_):(_=wW(G,q,$,_,!0),J.stateNode=_,G3(J))}return j0(J),null;case 5:if(o(J),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&G3(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 j0(J),null}var z=a();if(Q7(J))cH(J,z);else{switch(X=m(J6.current),k9(G,z.ancestorInfo),z=z.context,X=_Q(X),z){case e7:X=X.createElementNS(w7,G);break;case Fq:X=X.createElementNS(AQ,G);break;default:switch(G){case"svg":X=X.createElementNS(w7,G);break;case"math":X=X.createElementNS(AQ,G);break;case"script":X=X.createElement("div"),X.innerHTML="<script></script>",X=X.removeChild(X.firstChild);break;case"select":X=typeof q.is==="string"?X.createElement("select",{is:q.is}):X.createElement("select"),q.multiple?X.multiple=!0:q.size&&(X.size=q.size);break;default:X=typeof q.is==="string"?X.createElement(G,{is:q.is}):X.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(X)!=="[object HTMLUnknownElement]"||n5.call(XA,G)||(XA[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)))}}X[v2]=J,X[l2]=q;_:for(z=J.child;z!==null;){if(z.tag===5||z.tag===6)X.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=X;_:switch(j2(X,G,q),G){case"button":case"input":case"select":case"textarea":q=!!q.autoFocus;break _;case"img":q=!0;break _;default:q=!1}q&&G3(J)}}return j0(J),kG(J,J.type,_===null?null:_.memoizedProps,J.pendingProps,$),null;case 6:if(_&&J.stateNode!=null)_.memoizedProps!==q&&G3(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(_=m(J6.current),$=a(),Q7(J)){if(_=J.stateNode,$=J.memoizedProps,G=!E4,q=null,X=V2,X!==null)switch(X.tag){case 3:G&&(G=OW(_,$,q),G!==null&&(d6(J,0).serverProps=G));break;case 27:case 5:q=X.memoizedProps,G&&(G=OW(_,$,q),G!==null&&(d6(J,0).serverProps=G))}_[v2]=J,_=_.nodeValue===$||q!==null&&q.suppressHydrationWarning===!0||GW(_.nodeValue,$)?!0:!1,_||c3(J,!0)}else G=$.ancestorInfo.current,G!=null&&g3(q,G.tag,$.ancestorInfo.implicitRootScope),_=_Q(_).createTextNode(q),_[v2]=J,J.stateNode=_}return j0(J),null;case 31:if($=J.memoizedState,_===null||_.memoizedState!==null){if(q=Q7(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.");_[v2]=J,j0(J),(J.mode&e1)!==i1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration))}else DU(),r6(),(J.flags&128)===0&&($=J.memoizedState=null),J.flags|=4,j0(J),(J.mode&e1)!==i1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration));_=!1}else $=kU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=$),_=!0;if(!_){if(J.flags&256)return z5(J),J;return z5(J),null}if((J.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return j0(J),null;case 13:if(q=J.memoizedState,_===null||_.memoizedState!==null&&_.memoizedState.dehydrated!==null){if(G=q,X=Q7(J),G!==null&&G.dehydrated!==null){if(_===null){if(!X)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(X=J.memoizedState,X=X!==null?X.dehydrated:null,!X)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");X[v2]=J,j0(J),(J.mode&e1)!==i1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration))}else DU(),r6(),(J.flags&128)===0&&(G=J.memoizedState=null),J.flags|=4,j0(J),(J.mode&e1)!==i1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration));G=!1}else G=kU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=G),G=!0;if(!G){if(J.flags&256)return z5(J),J;return z5(J),null}}if(z5(J),(J.flags&128)!==0)return J.lanes=$,(J.mode&e1)!==i1&&c9(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),X=null,q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(X=q.memoizedState.cachePool.pool),X!==G&&(q.flags|=2048)),$!==_&&$&&(J.child.flags|=8192),i$(J,J.updateQueue),j0(J),(J.mode&e1)!==i1&&$&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration)),null;case 4:return c(J),_===null&&tG(J.stateNode.containerInfo),j0(J),null;case 10:return Q3(J.type,J),j0(J),null;case 19:if(Q1(o0,J),q=J.memoizedState,q===null)return j0(J),null;if(G=(J.flags&128)!==0,X=q.rendering,X===null)if(G)n9(q,!1);else{if(g0!==O3||_!==null&&(_.flags&128)!==0)for(_=J.child;_!==null;){if(X=S$(_),X!==null){J.flags|=128,n9(q,!1),_=X.updateQueue,J.updateQueue=_,i$(J,_),J.subtreeFlags=0,_=$;for($=J.child;$!==null;)EH($,_),$=$.sibling;return J1(o0,o0.current&g7|g_,J),F0&&$3(J,q.treeForkCount),J.child}_=_.sibling}q.tail!==null&&R2()>sQ&&(J.flags|=128,G=!0,n9(q,!1),J.lanes=4194304)}else{if(!G)if(_=S$(X),_!==null){if(J.flags|=128,G=!0,_=_.updateQueue,J.updateQueue=_,i$(J,_),n9(q,!0),q.tail===null&&q.tailMode==="hidden"&&!X.alternate&&!F0)return j0(J),null}else 2*R2()-q.renderingStartTime>sQ&&$!==536870912&&(J.flags|=128,G=!0,n9(q,!1),J.lanes=4194304);q.isBackwards?(X.sibling=J.child,J.child=X):(_=q.last,_!==null?_.sibling=X:J.child=X,q.last=X)}if(q.tail!==null)return _=q.tail,q.rendering=_,q.tail=_.sibling,q.renderingStartTime=R2(),_.sibling=null,$=o0.current,$=G?$&g7|g_:$&g7,J1(o0,$,J),F0&&$3(J,q.treeForkCount),_;return j0(J),null;case 22:case 23:return z5(J),iU(J),q=J.memoizedState!==null,_!==null?_.memoizedState!==null!==q&&(J.flags|=8192):q&&(J.flags|=8192),q?($&536870912)!==0&&(J.flags&128)===0&&(j0(J),J.subtreeFlags&6&&(J.flags|=8192)):j0(J),$=J.updateQueue,$!==null&&i$(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(X8,J),null;case 24:return $=null,_!==null&&($=_.memoizedState.cache),J.memoizedState.cache!==$&&(J.flags|=2048),Q3(J2,J),j0(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 FI(_,J){switch(yU(J),J.tag){case 1:return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&e1)!==i1&&c9(J),J):null;case 3:return Q3(J2,J),c(J),_=J.flags,(_&65536)!==0&&(_&128)===0?(J.flags=_&-65537|128,J):null;case 26:case 27:case 5:return o(J),null;case 31:if(J.memoizedState!==null){if(z5(J),J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");r6()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&e1)!==i1&&c9(J),J):null;case 13:if(z5(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.");r6()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&e1)!==i1&&c9(J),J):null;case 19:return Q1(o0,J),null;case 4:return c(J),null;case 10:return Q3(J.type,J),null;case 22:case 23:return z5(J),iU(J),_!==null&&Q1(X8,J),_=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&e1)!==i1&&c9(J),J):null;case 24:return Q3(J2,J),null;case 25:return null;default:return null}}function $z(_,J){switch(yU(J),J.tag){case 3:Q3(J2,J),c(J);break;case 26:case 27:case 5:o(J);break;case 4:c(J);break;case 31:J.memoizedState!==null&&z5(J);break;case 13:z5(J);break;case 19:Q1(o0,J);break;case 10:Q3(J.type,J);break;case 22:case 23:z5(J),iU(J),_!==null&&Q1(X8,J);break;case 24:Q3(J2,J)}}function P4(_){return(_.mode&e1)!==i1}function Qz(_,J){P4(_)?(w4(),e9(J,_),I4()):e9(J,_)}function DG(_,J,$){P4(_)?(w4(),X7($,_,J),I4()):X7($,_,J)}function e9(_,J){try{var $=J.updateQueue,q=$!==null?$.lastEffect:null;if(q!==null){var G=q.next;$=G;do{if(($.tag&_)===_&&(q=void 0,(_&a2)!==hQ&&(t7=!0),q=A1(J,VP,$),(_&a2)!==hQ&&(t7=!1),q!==void 0&&typeof q!=="function")){var X=void 0;X=($.tag&O5)!==0?"useLayoutEffect":($.tag&a2)!==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"?`
|
|
137
|
+
`+z:"",B!==null?`
|
|
138
|
+
`+B:"",w!==null?`
|
|
139
|
+
`+w:""))}}X=J.stateNode,z=b($)||"Component",X.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)),!X.getInitialState||X.getInitialState.isReactClassApproved||X.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),X.getDefaultProps&&!X.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),X.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",z),$.childContextTypes&&!VB.has($)&&(VB.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&&!jB.has($)&&(jB.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 X.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 X.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 X.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",z),typeof X.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 X.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",z),typeof X.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",z),B=X.props!==q,X.props!==void 0&&B&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",z),X.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 X.getSnapshotBeforeUpdate!=="function"||typeof X.componentDidUpdate==="function"||CB.has($)||(CB.add($),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",b($))),typeof X.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 X.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),(B=X.state)&&(typeof B!=="object"||Y2(B))&&console.error("%s.state: must be set to an object or null",z),typeof X.getChildContext==="function"&&typeof $.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",z),X=J.stateNode,X.props=q,X.state=J.memoizedState,X.refs={},pU(J),z=$.contextType,X.context=typeof z==="object"&&z!==null?u0(z):F6,X.state===q&&(z=b($)||"Component",SB.has(z)||(SB.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&u2&&J4.recordLegacyContextWarning(J,X),J4.recordUnsafeLifecycleWarnings(J,X),X.state=J.memoizedState,z=$.getDerivedStateFromProps,typeof z==="function"&&(RG(J,$,z,q),X.state=J.memoizedState),typeof $.getDerivedStateFromProps==="function"||typeof X.getSnapshotBeforeUpdate==="function"||typeof X.UNSAFE_componentWillMount!=="function"&&typeof X.componentWillMount!=="function"||(z=X.state,typeof X.componentWillMount==="function"&&X.componentWillMount(),typeof X.UNSAFE_componentWillMount==="function"&&X.UNSAFE_componentWillMount(),z!==X.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",x(J)||"Component"),WF.enqueueReplaceState(X,X.state,null)),r9(J,q,X,G),d9(),X.state=J.memoizedState),typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&_4)!==i1&&(J.flags|=134217728),X=!0}else if(_===null){X=J.stateNode;var e=J.memoizedProps;B=e6($,e),X.props=B;var _1=X.context;w=$.contextType,z=F6,typeof w==="object"&&w!==null&&(z=u0(w)),S=$.getDerivedStateFromProps,w=typeof S==="function"||typeof X.getSnapshotBeforeUpdate==="function",e=J.pendingProps!==e,w||typeof X.UNSAFE_componentWillReceiveProps!=="function"&&typeof X.componentWillReceiveProps!=="function"||(e||_1!==z)&&hY(J,X,q,z),L6=!1;var r=J.memoizedState;X.state=r,r9(J,q,X,G),d9(),_1=J.memoizedState,e||r!==_1||L6?(typeof S==="function"&&(RG(J,$,S,q),_1=J.memoizedState),(B=L6||EY(J,$,B,q,r,_1,z))?(w||typeof X.UNSAFE_componentWillMount!=="function"&&typeof X.componentWillMount!=="function"||(typeof X.componentWillMount==="function"&&X.componentWillMount(),typeof X.UNSAFE_componentWillMount==="function"&&X.UNSAFE_componentWillMount()),typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&_4)!==i1&&(J.flags|=134217728)):(typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&_4)!==i1&&(J.flags|=134217728),J.memoizedProps=q,J.memoizedState=_1),X.props=q,X.state=_1,X.context=z,X=B):(typeof X.componentDidMount==="function"&&(J.flags|=4194308),(J.mode&_4)!==i1&&(J.flags|=134217728),X=!1)}else{X=J.stateNode,cU(_,J),z=J.memoizedProps,w=e6($,z),X.props=w,S=J.pendingProps,r=X.context,_1=$.contextType,B=F6,typeof _1==="object"&&_1!==null&&(B=u0(_1)),e=$.getDerivedStateFromProps,(_1=typeof e==="function"||typeof X.getSnapshotBeforeUpdate==="function")||typeof X.UNSAFE_componentWillReceiveProps!=="function"&&typeof X.componentWillReceiveProps!=="function"||(z!==S||r!==B)&&hY(J,X,q,B),L6=!1,r=J.memoizedState,X.state=r,r9(J,q,X,G),d9();var Z1=J.memoizedState;z!==S||r!==Z1||L6||_!==null&&_.dependencies!==null&&A$(_.dependencies)?(typeof e==="function"&&(RG(J,$,e,q),Z1=J.memoizedState),(w=L6||EY(J,$,w,q,r,Z1,B)||_!==null&&_.dependencies!==null&&A$(_.dependencies))?(_1||typeof X.UNSAFE_componentWillUpdate!=="function"&&typeof X.componentWillUpdate!=="function"||(typeof X.componentWillUpdate==="function"&&X.componentWillUpdate(q,Z1,B),typeof X.UNSAFE_componentWillUpdate==="function"&&X.UNSAFE_componentWillUpdate(q,Z1,B)),typeof X.componentDidUpdate==="function"&&(J.flags|=4),typeof X.getSnapshotBeforeUpdate==="function"&&(J.flags|=1024)):(typeof X.componentDidUpdate!=="function"||z===_.memoizedProps&&r===_.memoizedState||(J.flags|=4),typeof X.getSnapshotBeforeUpdate!=="function"||z===_.memoizedProps&&r===_.memoizedState||(J.flags|=1024),J.memoizedProps=q,J.memoizedState=Z1),X.props=q,X.state=Z1,X.context=B,X=w):(typeof X.componentDidUpdate!=="function"||z===_.memoizedProps&&r===_.memoizedState||(J.flags|=4),typeof X.getSnapshotBeforeUpdate!=="function"||z===_.memoizedProps&&r===_.memoizedState||(J.flags|=1024),X=!1)}if(B=X,c$(_,J),z=(J.flags&128)!==0,B||z){if(B=J.stateNode,k1(J),z&&typeof $.getDerivedStateFromError!=="function")$=null,r2=-1;else if($=eL(B),J.mode&u2){o1(!0);try{eL(B)}finally{o1(!1)}}J.flags|=1,_!==null&&z?(J.child=Y8(J,_.child,null,G),J.child=Y8(J,null,$,G)):S2(_,J,$,G),J.memoizedState=B.state,_=J.child}else _=U3(_,J,G);return G=J.stateNode,X&&G.props!==q&&(i7||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",x(J)||"a component"),i7=!0),_}function oY(_,J,$,q){return r6(),J.flags|=256,S2(_,J,$,q),J.child}function NG(_,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",EB[_]||(console.error("%s: Function components do not support getDerivedStateFromProps.",_),EB[_]=!0)),typeof J.contextType==="object"&&J.contextType!==null&&(J=b(J)||"Unknown",uB[J]||(console.error("%s: Function components do not support contextType.",J),uB[J]=!0))}function CG(_){return{baseLanes:_,cachePool:sH()}}function fG(_,J,$){return _=_!==null?_.childLanes&~$:0,J&&(_|=Z5),_}function nY(_,J,$){var q,G=J.pendingProps;Y(J)&&(J.flags|=128);var X=!1,z=(J.flags&128)!==0;if((q=z)||(q=_!==null&&_.memoizedState===null?!1:(o0.current&g_)!==0),q&&(X=!0,J.flags&=-129),q=(J.flags&32)!==0,J.flags&=-33,_===null){if(F0){if(X?s3(J):t3(J),(_=y0)?($=TW(_,b5),$=$!==null&&$.data!==R8?$:null,$!==null&&(q={dehydrated:$,treeContext:mH(),retryLane:536870912,hydrationErrors:null},J.memoizedState=q,q=hH($),q.return=J,J.child=q,V2=J,y0=null)):$=null,$===null)throw L$(J,_),l3(J);return GZ($)?J.lanes=32:J.lanes=536870912,null}var B=G.children;if(G=G.fallback,X){t3(J);var w=J.mode;return B=l$({mode:"hidden",children:B},w),G=i6(G,w,$,null),B.return=J,G.return=J,B.sibling=G,J.child=B,G=J.child,G.memoizedState=CG($),G.childLanes=fG(_,q,$),J.memoizedState=AF,o9(null,G)}return s3(J),SG(J,B)}var S=_.memoizedState;if(S!==null){var e=S.dehydrated;if(e!==null){if(z)J.flags&256?(s3(J),J.flags&=-257,J=vG(_,J,$)):J.memoizedState!==null?(t3(J),J.child=_.child,J.flags|=128,J=null):(t3(J),B=G.fallback,w=J.mode,G=l$({mode:"visible",children:G.children},w),B=i6(B,w,$,null),B.flags|=2,G.return=J,B.return=J,G.sibling=B,J.child=G,Y8(J,_.child,null,$),G=J.child,G.memoizedState=CG($),G.childLanes=fG(_,q,$),J.memoizedState=AF,J=o9(null,G));else if(s3(J),pH(),($&536870912)!==0&&s$(J),GZ(e)){if(q=e.nextSibling&&e.nextSibling.dataset,q){B=q.dgst;var _1=q.msg;w=q.stck;var r=q.cstck}X=_1,q=B,G=w,e=r,B=X,w=e,B=B?Error(B):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),B.stack=G||"",B.digest=q,q=w===void 0?null:w,G={value:B,source:null,stack:q},typeof q==="string"&&tZ.set(B,G),m9(G),J=vG(_,J,$)}else if(q2||q7(_,J,$,!1),q=($&_.childLanes)!==0,q2||q){if(q=C0,q!==null&&(G=S5(q,$),G!==0&&G!==S.retryLane))throw S.retryLane=G,k2(_,G),c0(q,_,G),BF;UZ(e)||t$(),J=vG(_,J,$)}else UZ(e)?(J.flags|=192,J.child=_.child,J=null):(_=S.treeContext,y0=L5(e.nextSibling),V2=J,F0=!0,X6=null,E4=!1,T5=null,b5=!1,_!==null&&gH(J,_),J=SG(J,G.children),J.flags|=4096);return J}}if(X)return t3(J),B=G.fallback,w=J.mode,r=_.child,e=r.sibling,G=J3(r,{mode:"hidden",children:G.children}),G.subtreeFlags=r.subtreeFlags&65011712,e!==null?B=J3(e,B):(B=i6(B,w,$,null),B.flags|=2),B.return=J,G.return=J,G.sibling=B,J.child=G,o9(null,G),G=J.child,B=_.child.memoizedState,B===null?B=CG($):(w=B.cachePool,w!==null?(r=J2._currentValue,w=w.parent!==r?{parent:r,pool:r}:w):w=sH(),B={baseLanes:B.baseLanes|$,cachePool:w}),G.memoizedState=B,G.childLanes=fG(_,q,$),J.memoizedState=AF,o9(_.child,G);return S!==null&&($&62914560)===$&&($&_.lanes)!==0&&s$(J),s3(J),$=_.child,_=$.sibling,$=J3($,{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 SG(_,J){return J=l$({mode:"visible",children:J},_.mode),J.return=_,_.child=J}function l$(_,J){return _=O(22,_,null,J),_.lanes=0,_}function vG(_,J,$){return Y8(J,_.child,null,$),_=SG(J,J.pendingProps.children),_.flags|=2,J.memoizedState=null,_}function eY(_,J,$){_.lanes|=J;var q=_.alternate;q!==null&&(q.lanes|=J),uU(_.return,J,$)}function jG(_,J,$,q,G,X){var z=_.memoizedState;z===null?_.memoizedState={isBackwards:J,rendering:null,renderingStartTime:0,last:q,tail:$,tailMode:G,treeForkCount:X}:(z.isBackwards=J,z.rendering=null,z.renderingStartTime=0,z.last=q,z.tail=$,z.tailMode=G,z.treeForkCount=X)}function _z(_,J,$){var q=J.pendingProps,G=q.revealOrder,X=q.tail,z=q.children,B=o0.current;if((q=(B&g_)!==0)?(B=B&g7|g_,J.flags|=128):B&=g7,J1(o0,B,J),B=G==null?"null":G,G!=="forwards"&&G!=="unstable_legacy-backwards"&&G!=="together"&&G!=="independent"&&!hB[B])if(hB[B]=!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(B=X==null?"null":X,!pQ[B])if(X==null){if(G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")pQ[B]=!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 X!=="visible"&&X!=="collapsed"&&X!=="hidden"?(pQ[B]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',X)):G!=="forwards"&&G!=="backwards"&&G!=="unstable_legacy-backwards"&&(pQ[B]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',X));_:if((G==="forwards"||G==="backwards"||G==="unstable_legacy-backwards")&&z!==void 0&&z!==null&&z!==!1)if(Y2(z)){for(B=0;B<z.length;B++)if(!UY(z[B],B))break _}else if(B=E(z),typeof B==="function"){if(B=B.call(z))for(var w=B.next(),S=0;!w.done;w=B.next()){if(!UY(w.value,S))break _;S++}}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(S2(_,J,z,$),F0?(c3(),z=C_):z=0,!q&&_!==null&&(_.flags&128)!==0)_:for(_=J.child;_!==null;){if(_.tag===13)_.memoizedState!==null&&eY(_,$,J);else if(_.tag===19)eY(_,$,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&&S$(_)===null&&(G=$),$=$.sibling;$=G,$===null?(G=J.child,J.child=null):(G=$.sibling,$.sibling=null),jG(J,!1,G,$,X,z);break;case"backwards":case"unstable_legacy-backwards":$=null,G=J.child;for(J.child=null;G!==null;){if(_=G.alternate,_!==null&&S$(_)===null){J.child=G;break}_=G.sibling,G.sibling=$,$=G,G=_}jG(J,!0,$,null,X,z);break;case"together":jG(J,!1,null,null,void 0,z);break;default:J.memoizedState=null}return J.child}function U3(_,J,$){if(_!==null&&(J.dependencies=_.dependencies),r2=-1,M6|=J.lanes,($&J.childLanes)===0)if(_!==null){if(q7(_,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,$=J3(_,_.pendingProps),J.child=$;for($.return=J;_.sibling!==null;)_=_.sibling,$=$.sibling=J3(_,_.pendingProps),$.return=J;$.sibling=null}return J.child}function VG(_,J){if((_.lanes&J)!==0)return!0;return _=_.dependencies,_!==null&&A$(_)?!0:!1}function GI(_,J,$){switch(J.tag){case 3:p(J,J.stateNode.containerInfo),i3(J,J2,_.memoizedState.cache),r6();break;case 27:case 5:i(J);break;case 4:p(J,J.stateNode.containerInfo);break;case 10:i3(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,dU(J),null;break;case 13:if(q=J.memoizedState,q!==null){if(q.dehydrated!==null)return s3(J),J.flags|=128,null;if(($&J.child.childLanes)!==0)return nY(_,J,$);return s3(J),_=U3(_,J,$),_!==null?_.sibling:null}s3(J);break;case 19:var G=(_.flags&128)!==0;if(q=($&J.childLanes)!==0,q||(q7(_,J,$,!1),q=($&J.childLanes)!==0),G){if(q)return _z(_,J,$);J.flags|=128}if(G=J.memoizedState,G!==null&&(G.rendering=null,G.tail=null,G.lastEffect=null),J1(o0,o0.current,J),q)break;else return null;case 22:return J.lanes=0,dY(_,J,$,J.pendingProps);case 24:i3(J,J2,_.memoizedState.cache)}return U3(_,J,$)}function yG(_,J,$){if(J._debugNeedsRemount&&_!==null){$=SU(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)q2=!0;else{if(!VG(_,$)&&(J.flags&128)===0)return q2=!1,GI(_,J,$);q2=(_.flags&131072)!==0?!0:!1}else{if(q2=!1,q=F0)c3(),q=(J.flags&1048576)!==0;q&&(q=J.index,c3(),xH(J,C_,q))}switch(J.lanes=0,J.tag){case 16:_:if(q=J.pendingProps,_=d3(J.elementType),J.type=_,typeof _==="function")fU(_)?(q=e6(_,q),J.tag=1,J.type=_=l6(_),J=tY(null,J,_,q,$)):(J.tag=0,NG(J,_),J.type=_=l6(_),J=PG(null,J,_,q,$));else{if(_!==void 0&&_!==null){if(G=_.$$typeof,G===z_){J.tag=11,J.type=_=CU(_),J=cY(null,J,_,q,$);break _}else if(G===KQ){J.tag=14,J=lY(null,J,_,q,$);break _}}throw J="",_!==null&&typeof _==="object"&&_.$$typeof===B5&&(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 PG(_,J,J.type,J.pendingProps,$);case 1:return q=J.type,G=e6(q,J.pendingProps),tY(_,J,q,G,$);case 3:_:{if(p(J,J.stateNode.containerInfo),_===null)throw Error("Should have a current fiber. This is a bug in React.");q=J.pendingProps;var X=J.memoizedState;G=X.element,cU(_,J),r9(J,q,null,$);var z=J.memoizedState;if(q=z.cache,i3(J,J2,q),q!==X.cache&&bU(J,[J2],$,!0),d9(),q=z.element,X.isDehydrated)if(X={element:q,isDehydrated:!1,cache:z.cache},J.updateQueue.baseState=X,J.memoizedState=X,J.flags&256){J=oY(_,J,q,$);break _}else if(q!==G){G=K5(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),J),m9(G),J=oY(_,J,q,$);break _}else{switch(_=J.stateNode.containerInfo,_.nodeType){case 9:_=_.body;break;default:_=_.nodeName==="HTML"?_.ownerDocument.body:_}y0=L5(_.firstChild),V2=J,F0=!0,X6=null,E4=!1,T5=null,b5=!0,$=zB(J,null,q,$);for(J.child=$;$;)$.flags=$.flags&-3|4096,$=$.sibling}else{if(r6(),q===G){J=U3(_,J,$);break _}S2(_,J,q,$)}J=J.child}return J;case 26:return c$(_,J),_===null?($=NW(J.type,null,J.pendingProps,null))?J.memoizedState=$:F0||($=J.type,_=J.pendingProps,q=m($6.current),q=_Q(q).createElement($),q[j2]=J,q[l2]=_,v2(q,$,_),j1(q),J.stateNode=q):J.memoizedState=NW(J.type,_.memoizedProps,J.pendingProps,_.memoizedState),null;case 27:return i(J),_===null&&F0&&(q=m($6.current),G=a(),q=J.stateNode=wW(J.type,J.pendingProps,q,G,!1),E4||(G=HW(q,J.type,J.pendingProps,G),G!==null&&(d6(J,0).serverProps=G)),V2=J,b5=!0,G=y0,_6(J.type)?(mF=G,y0=L5(q.firstChild)):y0=G),S2(_,J,J.pendingProps.children,$),c$(_,J),_===null&&(J.flags|=4194304),J.child;case 5:return _===null&&F0&&(X=a(),q=k9(J.type,X.ancestorInfo),G=y0,(z=!G)||(z=aI(G,J.type,J.pendingProps,b5),z!==null?(J.stateNode=z,E4||(X=HW(z,J.type,J.pendingProps,X),X!==null&&(d6(J,0).serverProps=X)),V2=J,y0=L5(z.firstChild),b5=!1,X=!0):X=!1,z=!X),z&&(q&&L$(J,G),l3(J))),i(J),G=J.type,X=J.pendingProps,z=_!==null?_.memoizedProps:null,q=X.children,QZ(G,X)?q=null:z!==null&&QZ(G,z)&&(J.flags|=32),J.memoizedState!==null&&(G=aU(_,J,nO,null,null,$),UJ._currentValue=G),c$(_,J),S2(_,J,q,$),J.child;case 6:return _===null&&F0&&($=J.pendingProps,_=a(),q=_.ancestorInfo.current,$=q!=null?p3($,q.tag,_.ancestorInfo.implicitRootScope):!0,_=y0,(q=!_)||(q=sI(_,J.pendingProps,b5),q!==null?(J.stateNode=q,V2=J,y0=null,q=!0):q=!1,q=!q),q&&($&&L$(J,_),l3(J))),null;case 13:return nY(_,J,$);case 4:return p(J,J.stateNode.containerInfo),q=J.pendingProps,_===null?J.child=Y8(J,null,q,$):S2(_,J,q,$),J.child;case 11:return cY(_,J,J.type,J.pendingProps,$);case 7:return S2(_,J,J.pendingProps,$),J.child;case 8:return S2(_,J,J.pendingProps.children,$),J.child;case 12:return J.flags|=4,J.flags|=2048,q=J.stateNode,q.effectDuration=-0,q.passiveEffectDuration=-0,S2(_,J,J.pendingProps.children,$),J.child;case 10:return q=J.type,G=J.pendingProps,X=G.value,"value"in G||xB||(xB=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),i3(J,q,X),S2(_,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."),a6(J),G=u0(G),q=qF(q,G,void 0),J.flags|=1,S2(_,J,q,$),J.child;case 14:return lY(_,J,J.type,J.pendingProps,$);case 15:return iY(_,J,J.type,J.pendingProps,$);case 19:return _z(_,J,$);case 31:return UI(_,J,$);case 22:return dY(_,J,$,J.pendingProps);case 24:return a6(J),q=u0(J2),_===null?(G=mU(),G===null&&(G=C0,X=EU(),G.pooledCache=X,s6(X),X!==null&&(G.pooledCacheLanes|=$),G=X),J.memoizedState={parent:q,cache:G},pU(J),i3(J,J2,G)):((_.lanes&$)!==0&&(cU(_,J),r9(J,null,null,$),d9()),G=_.memoizedState,X=J.memoizedState,G.parent!==q?(G={parent:q,cache:q},J.memoizedState=G,J.lanes===0&&(J.memoizedState=J.updateQueue.baseState=G),i3(J,J2,q)):(q=X.cache,i3(J,J2,q),q!==G.cache&&bU(J,[J2],$,!0))),S2(_,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 G3(_){_.flags|=4}function kG(_,J,$,q,G){if(J=(_.mode&CP)!==i1)J=!1;if(J){if(_.flags|=16777216,(G&335544128)===G)if(_.stateNode.complete)_.flags|=8192;else if(kz())_.flags|=8192;else throw H8=bQ,GF}else _.flags&=-16777217}function Jz(_,J){if(J.type!=="stylesheet"||(J.state.loading&g5)!==w8)_.flags&=-16777217;else if(_.flags|=16777216,!jW(J))if(kz())_.flags|=8192;else throw H8=bQ,GF}function i$(_,J){J!==null&&(_.flags|=4),_.flags&16384&&(J=_.tag!==22?M2():536870912,_.lanes|=J,A8|=J)}function n9(_,J){if(!F0)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 v0(_){var J=_.alternate!==null&&_.alternate.child===_.child,$=0,q=0;if(J)if((_.mode&e1)!==i1){for(var{selfBaseDuration:G,child:X}=_;X!==null;)$|=X.lanes|X.childLanes,q|=X.subtreeFlags&65011712,q|=X.flags&65011712,G+=X.treeBaseDuration,X=X.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&e1)!==i1){G=_.actualDuration,X=_.selfBaseDuration;for(var z=_.child;z!==null;)$|=z.lanes|z.childLanes,q|=z.subtreeFlags,q|=z.flags,G+=z.actualDuration,X+=z.treeBaseDuration,z=z.sibling;_.actualDuration=G,_.treeBaseDuration=X}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 ZI(_,J,$){var q=J.pendingProps;switch(yU(J),J.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return v0(J),null;case 1:return v0(J),null;case 3:if($=J.stateNode,q=null,_!==null&&(q=_.memoizedState.cache),J.memoizedState.cache!==q&&(J.flags|=2048),Q3(J2,J),c(J),$.pendingContext&&($.context=$.pendingContext,$.pendingContext=null),_===null||_.child===null)Q7(J)?(DU(),G3(J)):_===null||_.memoizedState.isDehydrated&&(J.flags&256)===0||(J.flags|=1024,kU());return v0(J),null;case 26:var{type:G,memoizedState:X}=J;return _===null?(G3(J),X!==null?(v0(J),Jz(J,X)):(v0(J),kG(J,G,null,q,$))):X?X!==_.memoizedState?(G3(J),v0(J),Jz(J,X)):(v0(J),J.flags&=-16777217):(_=_.memoizedProps,_!==q&&G3(J),v0(J),kG(J,G,_,q,$)),null;case 27:if(o(J),$=m($6.current),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&G3(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 v0(J),null}_=a(),Q7(J)?cH(J,_):(_=wW(G,q,$,_,!0),J.stateNode=_,G3(J))}return v0(J),null;case 5:if(o(J),G=J.type,_!==null&&J.stateNode!=null)_.memoizedProps!==q&&G3(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 v0(J),null}var z=a();if(Q7(J))cH(J,z);else{switch(X=m($6.current),k9(G,z.ancestorInfo),z=z.context,X=_Q(X),z){case e7:X=X.createElementNS(w7,G);break;case Fq:X=X.createElementNS(AQ,G);break;default:switch(G){case"svg":X=X.createElementNS(w7,G);break;case"math":X=X.createElementNS(AQ,G);break;case"script":X=X.createElement("div"),X.innerHTML="<script></script>",X=X.removeChild(X.firstChild);break;case"select":X=typeof q.is==="string"?X.createElement("select",{is:q.is}):X.createElement("select"),q.multiple?X.multiple=!0:q.size&&(X.size=q.size);break;default:X=typeof q.is==="string"?X.createElement(G,{is:q.is}):X.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(X)!=="[object HTMLUnknownElement]"||n5.call(XA,G)||(XA[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)))}}X[j2]=J,X[l2]=q;_:for(z=J.child;z!==null;){if(z.tag===5||z.tag===6)X.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=X;_:switch(v2(X,G,q),G){case"button":case"input":case"select":case"textarea":q=!!q.autoFocus;break _;case"img":q=!0;break _;default:q=!1}q&&G3(J)}}return v0(J),kG(J,J.type,_===null?null:_.memoizedProps,J.pendingProps,$),null;case 6:if(_&&J.stateNode!=null)_.memoizedProps!==q&&G3(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(_=m($6.current),$=a(),Q7(J)){if(_=J.stateNode,$=J.memoizedProps,G=!E4,q=null,X=V2,X!==null)switch(X.tag){case 3:G&&(G=OW(_,$,q),G!==null&&(d6(J,0).serverProps=G));break;case 27:case 5:q=X.memoizedProps,G&&(G=OW(_,$,q),G!==null&&(d6(J,0).serverProps=G))}_[j2]=J,_=_.nodeValue===$||q!==null&&q.suppressHydrationWarning===!0||GW(_.nodeValue,$)?!0:!1,_||l3(J,!0)}else G=$.ancestorInfo.current,G!=null&&p3(q,G.tag,$.ancestorInfo.implicitRootScope),_=_Q(_).createTextNode(q),_[j2]=J,J.stateNode=_}return v0(J),null;case 31:if($=J.memoizedState,_===null||_.memoizedState!==null){if(q=Q7(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.");_[j2]=J,v0(J),(J.mode&e1)!==i1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration))}else DU(),r6(),(J.flags&128)===0&&($=J.memoizedState=null),J.flags|=4,v0(J),(J.mode&e1)!==i1&&$!==null&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration));_=!1}else $=kU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=$),_=!0;if(!_){if(J.flags&256)return z5(J),J;return z5(J),null}if((J.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return v0(J),null;case 13:if(q=J.memoizedState,_===null||_.memoizedState!==null&&_.memoizedState.dehydrated!==null){if(G=q,X=Q7(J),G!==null&&G.dehydrated!==null){if(_===null){if(!X)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(X=J.memoizedState,X=X!==null?X.dehydrated:null,!X)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");X[j2]=J,v0(J),(J.mode&e1)!==i1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration))}else DU(),r6(),(J.flags&128)===0&&(G=J.memoizedState=null),J.flags|=4,v0(J),(J.mode&e1)!==i1&&G!==null&&(G=J.child,G!==null&&(J.treeBaseDuration-=G.treeBaseDuration));G=!1}else G=kU(),_!==null&&_.memoizedState!==null&&(_.memoizedState.hydrationErrors=G),G=!0;if(!G){if(J.flags&256)return z5(J),J;return z5(J),null}}if(z5(J),(J.flags&128)!==0)return J.lanes=$,(J.mode&e1)!==i1&&c9(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),X=null,q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(X=q.memoizedState.cachePool.pool),X!==G&&(q.flags|=2048)),$!==_&&$&&(J.child.flags|=8192),i$(J,J.updateQueue),v0(J),(J.mode&e1)!==i1&&$&&(_=J.child,_!==null&&(J.treeBaseDuration-=_.treeBaseDuration)),null;case 4:return c(J),_===null&&tG(J.stateNode.containerInfo),v0(J),null;case 10:return Q3(J.type,J),v0(J),null;case 19:if(Q1(o0,J),q=J.memoizedState,q===null)return v0(J),null;if(G=(J.flags&128)!==0,X=q.rendering,X===null)if(G)n9(q,!1);else{if(g0!==O3||_!==null&&(_.flags&128)!==0)for(_=J.child;_!==null;){if(X=S$(_),X!==null){J.flags|=128,n9(q,!1),_=X.updateQueue,J.updateQueue=_,i$(J,_),J.subtreeFlags=0,_=$;for($=J.child;$!==null;)EH($,_),$=$.sibling;return J1(o0,o0.current&g7|g_,J),F0&&$3(J,q.treeForkCount),J.child}_=_.sibling}q.tail!==null&&R2()>sQ&&(J.flags|=128,G=!0,n9(q,!1),J.lanes=4194304)}else{if(!G)if(_=S$(X),_!==null){if(J.flags|=128,G=!0,_=_.updateQueue,J.updateQueue=_,i$(J,_),n9(q,!0),q.tail===null&&q.tailMode==="hidden"&&!X.alternate&&!F0)return v0(J),null}else 2*R2()-q.renderingStartTime>sQ&&$!==536870912&&(J.flags|=128,G=!0,n9(q,!1),J.lanes=4194304);q.isBackwards?(X.sibling=J.child,J.child=X):(_=q.last,_!==null?_.sibling=X:J.child=X,q.last=X)}if(q.tail!==null)return _=q.tail,q.rendering=_,q.tail=_.sibling,q.renderingStartTime=R2(),_.sibling=null,$=o0.current,$=G?$&g7|g_:$&g7,J1(o0,$,J),F0&&$3(J,q.treeForkCount),_;return v0(J),null;case 22:case 23:return z5(J),iU(J),q=J.memoizedState!==null,_!==null?_.memoizedState!==null!==q&&(J.flags|=8192):q&&(J.flags|=8192),q?($&536870912)!==0&&(J.flags&128)===0&&(v0(J),J.subtreeFlags&6&&(J.flags|=8192)):v0(J),$=J.updateQueue,$!==null&&i$(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(X8,J),null;case 24:return $=null,_!==null&&($=_.memoizedState.cache),J.memoizedState.cache!==$&&(J.flags|=2048),Q3(J2,J),v0(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 FI(_,J){switch(yU(J),J.tag){case 1:return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&e1)!==i1&&c9(J),J):null;case 3:return Q3(J2,J),c(J),_=J.flags,(_&65536)!==0&&(_&128)===0?(J.flags=_&-65537|128,J):null;case 26:case 27:case 5:return o(J),null;case 31:if(J.memoizedState!==null){if(z5(J),J.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");r6()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&e1)!==i1&&c9(J),J):null;case 13:if(z5(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.");r6()}return _=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&e1)!==i1&&c9(J),J):null;case 19:return Q1(o0,J),null;case 4:return c(J),null;case 10:return Q3(J.type,J),null;case 22:case 23:return z5(J),iU(J),_!==null&&Q1(X8,J),_=J.flags,_&65536?(J.flags=_&-65537|128,(J.mode&e1)!==i1&&c9(J),J):null;case 24:return Q3(J2,J),null;case 25:return null;default:return null}}function $z(_,J){switch(yU(J),J.tag){case 3:Q3(J2,J),c(J);break;case 26:case 27:case 5:o(J);break;case 4:c(J);break;case 31:J.memoizedState!==null&&z5(J);break;case 13:z5(J);break;case 19:Q1(o0,J);break;case 10:Q3(J.type,J);break;case 22:case 23:z5(J),iU(J),_!==null&&Q1(X8,J);break;case 24:Q3(J2,J)}}function P4(_){return(_.mode&e1)!==i1}function Qz(_,J){P4(_)?(w4(),e9(J,_),I4()):e9(J,_)}function DG(_,J,$){P4(_)?(w4(),X7($,_,J),I4()):X7($,_,J)}function e9(_,J){try{var $=J.updateQueue,q=$!==null?$.lastEffect:null;if(q!==null){var G=q.next;$=G;do{if(($.tag&_)===_&&(q=void 0,(_&a2)!==hQ&&(t7=!0),q=A1(J,VP,$),(_&a2)!==hQ&&(t7=!1),q!==void 0&&typeof q!=="function")){var X=void 0;X=($.tag&O5)!==0?"useLayoutEffect":($.tag&a2)!==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 `+X+`(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 `+X+`(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,A1(J,function(L,w){console.error("%s must not return anything besides a function, which is used for clean-up.%s",L,w)},X,z)}$=$.next}while($!==G)}}catch(L){L0(J,J.return,L)}}function X7(_,J,$){try{var q=J.updateQueue,G=q!==null?q.lastEffect:null;if(G!==null){var X=G.next;q=X;do{if((q.tag&_)===_){var z=q.inst,L=z.destroy;L!==void 0&&(z.destroy=void 0,(_&a2)!==hQ&&(t7=!0),G=J,A1(G,yP,G,$,L),(_&a2)!==hQ&&(t7=!1))}q=q.next}while(q!==X)}}catch(w){L0(J,J.return,w)}}function qz(_,J){P4(_)?(w4(),e9(J,_),I4()):e9(J,_)}function uG(_,J,$){P4(_)?(w4(),X7($,_,J),I4()):X7($,_,J)}function Uz(_){var J=_.updateQueue;if(J!==null){var $=_.stateNode;_.type.defaultProps||"ref"in _.memoizedProps||i7||($.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.",x(_)||"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.",x(_)||"instance"));try{A1(_,ZY,J,$)}catch(q){L0(_,_.return,q)}}}function XI(_,J,$){return _.getSnapshotBeforeUpdate(J,$)}function KI(_,J){var{memoizedProps:$,memoizedState:q}=J;J=_.stateNode,_.type.defaultProps||"ref"in _.memoizedProps||i7||(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.",x(_)||"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.",x(_)||"instance"));try{var G=e6(_.type,$),X=A1(_,XI,J,G,q);$=mL,X!==void 0||$.has(_.type)||($.add(_.type),A1(_,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",x(_))})),J.__reactInternalSnapshotBeforeUpdate=X}catch(z){L0(_,_.return,z)}}function Gz(_,J,$){$.props=e6(_.type,_.memoizedProps),$.state=_.memoizedState,P4(_)?(w4(),A1(_,UL,_,J,$),I4()):A1(_,UL,_,J,$)}function HI(_){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(P4(_))try{w4(),_.refCleanup=J($)}finally{I4()}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().",x(_)),J.current=$}}function __(_,J){try{A1(_,HI,_)}catch($){L0(_,J,$)}}function N4(_,J){var{ref:$,refCleanup:q}=_;if($!==null)if(typeof q==="function")try{if(P4(_))try{w4(),A1(_,q)}finally{I4(_)}else A1(_,q)}catch(G){L0(_,J,G)}finally{_.refCleanup=null,_=_.alternate,_!=null&&(_.refCleanup=null)}else if(typeof $==="function")try{if(P4(_))try{w4(),A1(_,$,null)}finally{I4(_)}else A1(_,$,null)}catch(G){L0(_,J,G)}else $.current=null}function Zz(_,J,$,q){var G=_.memoizedProps,X=G.id,z=G.onCommit;G=G.onRender,J=J===null?"mount":"update",yQ&&(J="nested-update"),typeof G==="function"&&G(X,J,_.actualDuration,_.treeBaseDuration,_.actualStartTime,$),typeof z==="function"&&z(X,J,q,$)}function YI(_,J,$,q){var G=_.memoizedProps;_=G.id,G=G.onPostCommit,J=J===null?"mount":"update",yQ&&(J="nested-update"),typeof G==="function"&&G(_,J,q,$)}function Fz(_){var{type:J,memoizedProps:$,stateNode:q}=_;try{A1(_,bI,q,J,$,_)}catch(G){L0(_,_.return,G)}}function bG(_,J,$){try{A1(_,hI,_.stateNode,_.type,$,J,_)}catch(q){L0(_,_.return,q)}}function Xz(_){return _.tag===5||_.tag===3||_.tag===26||_.tag===27&&e3(_.type)||_.tag===4}function EG(_){_:for(;;){for(;_.sibling===null;){if(_.return===null||Xz(_.return))return null;_=_.return}_.sibling.return=_.return;for(_=_.sibling;_.tag!==5&&_.tag!==6&&_.tag!==18;){if(_.tag===27&&e3(_.type))continue _;if(_.flags&2)continue _;if(_.child===null||_.tag===4)continue _;else _.child.return=_,_=_.child}if(!(_.flags&2))return _.stateNode}}function hG(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?(LW($),($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).insertBefore(_,J)):(LW($),J=$.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,J.appendChild(_),$=$._reactRootContainer,$!==null&&$!==void 0||J.onclick!==null||(J.onclick=_3));else if(q!==4&&(q===27&&e3(_.type)&&($=_.stateNode,J=null),_=_.child,_!==null))for(hG(_,J,$),_=_.sibling;_!==null;)hG(_,J,$),_=_.sibling}function d$(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?$.insertBefore(_,J):$.appendChild(_);else if(q!==4&&(q===27&&e3(_.type)&&($=_.stateNode),_=_.child,_!==null))for(d$(_,J,$),_=_.sibling;_!==null;)d$(_,J,$),_=_.sibling}function zI(_){for(var J,$=_.return;$!==null;){if(Xz($)){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,$=EG(_),d$(_,$,J);break;case 5:$=J.stateNode,J.flags&32&&(BW($),J.flags&=-33),J=EG(_),d$(_,J,$);break;case 3:case 4:J=J.stateNode.containerInfo,$=EG(_),hG(_,$,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{A1(_,_w,_.type,$,J,_)}catch(q){L0(_,_.return,q)}}function Hz(_,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 WI(_,J){if(_=_.containerInfo,EF=Yq,_=fH(_),OU(_)){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:X}=q;q=q.focusOffset;try{$.nodeType,X.nodeType}catch(f1){$=null;break _}var z=0,L=-1,w=-1,S=0,e=0,_1=_,r=null;J:for(;;){for(var Z1;;){if(_1!==$||G!==0&&_1.nodeType!==3||(L=z+G),_1!==X||q!==0&&_1.nodeType!==3||(w=z+q),_1.nodeType===3&&(z+=_1.nodeValue.length),(Z1=_1.firstChild)===null)break;r=_1,_1=Z1}for(;;){if(_1===_)break J;if(r===$&&++S===G&&(L=z),r===X&&++e===q&&(w=z),(Z1=_1.nextSibling)!==null)break;_1=r,r=_1.parentNode}_1=Z1}$=L===-1||w===-1?null:{start:L,end:w}}else $=null}$=$||{start:0,end:0}}else $=null;hF={focusedElem:_,selectionRange:$},Yq=!1;for(I2=J;I2!==null;)if(J=I2,_=J.child,(J.subtreeFlags&1028)!==0&&_!==null)_.return=J,I2=_;else for(;I2!==null;){switch(_=J=I2,$=_.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&&KI(_,$);break;case 3:if((G&1024)!==0){if(_=_.stateNode.containerInfo,$=_.nodeType,$===9)qZ(_);else if($===1)switch(_.nodeName){case"HEAD":case"HTML":case"BODY":qZ(_);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,I2=_;break}I2=J.return}}function Yz(_,J,$){var q=H5(),G=M4(),X=R4(),z=O4(),L=$.flags;switch($.tag){case 0:case 11:case 15:C4(_,$),L&4&&Qz($,O5|x5);break;case 1:if(C4(_,$),L&4)if(_=$.stateNode,J===null)$.type.defaultProps||"ref"in $.memoizedProps||i7||(_.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.",x($)||"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.",x($)||"instance")),P4($)?(w4(),A1($,UF,$,_),I4()):A1($,UF,$,_);else{var w=e6($.type,J.memoizedProps);J=J.memoizedState,$.type.defaultProps||"ref"in $.memoizedProps||i7||(_.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.",x($)||"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.",x($)||"instance")),P4($)?(w4(),A1($,$L,$,_,w,J,_.__reactInternalSnapshotBeforeUpdate),I4()):A1($,$L,$,_,w,J,_.__reactInternalSnapshotBeforeUpdate)}L&64&&Uz($),L&512&&__($,$.return);break;case 3:if(J=q3(),C4(_,$),L&64&&(L=$.updateQueue,L!==null)){if(w=null,$.child!==null)switch($.child.tag){case 27:case 5:w=$.child.stateNode;break;case 1:w=$.child.stateNode}try{A1($,ZY,L,w)}catch(e){L0($,$.return,e)}}_.effectDuration+=T$(J);break;case 27:J===null&&L&4&&Kz($);case 26:case 5:if(C4(_,$),J===null){if(L&4)Fz($);else if(L&64){_=$.type,J=$.memoizedProps,w=$.stateNode;try{A1($,EI,w,_,J,$)}catch(e){L0($,$.return,e)}}}L&512&&__($,$.return);break;case 12:if(L&4){L=q3(),C4(_,$),_=$.stateNode,_.effectDuration+=p9(L);try{A1($,Zz,$,J,X6,_.effectDuration)}catch(e){L0($,$.return,e)}}else C4(_,$);break;case 31:C4(_,$),L&4&&Bz(_,$);break;case 13:C4(_,$),L&4&&Lz(_,$),L&64&&(_=$.memoizedState,_!==null&&(_=_.dehydrated,_!==null&&(L=wI.bind(null,$),tI(_,L))));break;case 22:if(L=$.memoizedState!==null||R3,!L){J=J!==null&&J.memoizedState!==null||U2,w=R3;var S=U2;R3=L,(U2=J)&&!S?(f4(_,$,($.subtreeFlags&8772)!==0),($.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&X$($,m1,l1)):C4(_,$),R3=w,U2=S}break;case 30:break;default:C4(_,$)}($.mode&e1)!==i1&&0<=m1&&0<=l1&&((l0||0.05<m0)&&L4($,m1,l1,m0,b0),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<l1-m1&&(Hz($.return.alternate,$.return)||B4($,m1,l1,"Mount"))),Y5(q),T4(G),b0=X,l0=z}function zz(_){var J=_.alternate;J!==null&&(_.alternate=null,zz(J)),_.child=null,_.deletions=null,_.sibling=null,_.tag===5&&(J=_.stateNode,J!==null&&I1(J)),_.stateNode=null,_._debugOwner=null,_.return=null,_.dependencies=null,_.memoizedProps=null,_.memoizedState=null,_.pendingProps=null,_.stateNode=null,_.updateQueue=null}function Z3(_,J,$){for($=$.child;$!==null;)Wz(_,J,$),$=$.sibling}function Wz(_,J,$){if(D2&&typeof D2.onCommitFiberUnmount==="function")try{D2.onCommitFiberUnmount(O7,$)}catch(S){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",S))}var q=H5(),G=M4(),X=R4(),z=O4();switch($.tag){case 26:U2||N4($,J),Z3(_,J,$),$.memoizedState?$.memoizedState.count--:$.stateNode&&(_=$.stateNode,_.parentNode.removeChild(_));break;case 27:U2||N4($,J);var L=G2,w=U5;e3($.type)&&(G2=$.stateNode,U5=!1),Z3(_,J,$),A1($,X_,$.stateNode),G2=L,U5=w;break;case 5:U2||N4($,J);case 6:if(L=G2,w=U5,G2=null,Z3(_,J,$),G2=L,U5=w,G2!==null)if(U5)try{A1($,gI,G2,$.stateNode)}catch(S){L0($,J,S)}else try{A1($,mI,G2,$.stateNode)}catch(S){L0($,J,S)}break;case 18:G2!==null&&(U5?(_=G2,AW(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_,$.stateNode),A7(_)):AW(G2,$.stateNode));break;case 4:L=G2,w=U5,G2=$.stateNode.containerInfo,U5=!0,Z3(_,J,$),G2=L,U5=w;break;case 0:case 11:case 14:case 15:X7(a2,$,J),U2||DG($,J,O5),Z3(_,J,$);break;case 1:U2||(N4($,J),L=$.stateNode,typeof L.componentWillUnmount==="function"&&Gz($,J,L)),Z3(_,J,$);break;case 21:Z3(_,J,$);break;case 22:U2=(L=U2)||$.memoizedState!==null,Z3(_,J,$),U2=L;break;default:Z3(_,J,$)}($.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&L4($,m1,l1,m0,b0),Y5(q),T4(G),b0=X,l0=z}function Bz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null))){_=_.dehydrated;try{A1(J,nI,_)}catch($){L0(J,J.return,$)}}}function Lz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null&&(_=_.dehydrated,_!==null))))try{A1(J,eI,_)}catch($){L0(J,J.return,$)}}function BI(_){switch(_.tag){case 31:case 13:case 19:var J=_.stateNode;return J===null&&(J=_.stateNode=new gL),J;case 22:return _=_.stateNode,J=_._retryCache,J===null&&(J=_._retryCache=new gL),J;default:throw Error("Unexpected Suspense handler tag ("+_.tag+"). This is a bug in React.")}}function r$(_,J){var $=BI(_);J.forEach(function(q){if(!$.has(q)){if($.add(q),D4)if(d7!==null&&r7!==null)q_(r7,d7);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var G=PI.bind(null,_,q);q.then(G,G)}})}function Q5(_,J){var $=J.deletions;if($!==null)for(var q=0;q<$.length;q++){var G=_,X=J,z=$[q],L=H5(),w=X;_:for(;w!==null;){switch(w.tag){case 27:if(e3(w.type)){G2=w.stateNode,U5=!1;break _}break;case 5:G2=w.stateNode,U5=!1;break _;case 3:case 4:G2=w.stateNode.containerInfo,U5=!0;break _}w=w.return}if(G2===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Wz(G,X,z),G2=null,U5=!1,(z.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&B4(z,m1,l1,"Unmount"),Y5(L),G=z,X=G.alternate,X!==null&&(X.return=null),G.return=null}if(J.subtreeFlags&13886)for(J=J.child;J!==null;)Az(J,_),J=J.sibling}function Az(_,J){var $=H5(),q=M4(),G=R4(),X=O4(),z=_.alternate,L=_.flags;switch(_.tag){case 0:case 11:case 14:case 15:Q5(J,_),q5(_),L&4&&(X7(a2|x5,_,_.return),e9(a2|x5,_),DG(_,_.return,O5|x5));break;case 1:if(Q5(J,_),q5(_),L&512&&(U2||z===null||N4(z,z.return)),L&64&&R3&&(L=_.updateQueue,L!==null&&(z=L.callbacks,z!==null))){var w=L.shared.hiddenCallbacks;L.shared.hiddenCallbacks=w===null?z:w.concat(z)}break;case 26:if(w=Q4,Q5(J,_),q5(_),L&512&&(U2||z===null||N4(z,z.return)),L&4){var S=z!==null?z.memoizedState:null;if(L=_.memoizedState,z===null)if(L===null)if(_.stateNode===null){_:{L=_.type,z=_.memoizedProps,w=w.ownerDocument||w;J:switch(L){case"title":if(S=w.getElementsByTagName("title")[0],!S||S[L_]||S[v2]||S.namespaceURI===w7||S.hasAttribute("itemprop"))S=w.createElement(L),w.head.insertBefore(S,w.querySelector("head > title"));j2(S,L,z),S[v2]=_,v1(S),L=S;break _;case"link":var e=SW("link","href",w).get(L+(z.href||""));if(e){for(var _1=0;_1<e.length;_1++)if(S=e[_1],S.getAttribute("href")===(z.href==null||z.href===""?null:z.href)&&S.getAttribute("rel")===(z.rel==null?null:z.rel)&&S.getAttribute("title")===(z.title==null?null:z.title)&&S.getAttribute("crossorigin")===(z.crossOrigin==null?null:z.crossOrigin)){e.splice(_1,1);break J}}S=w.createElement(L),j2(S,L,z),w.head.appendChild(S);break;case"meta":if(e=SW("meta","content",w).get(L+(z.content||""))){for(_1=0;_1<e.length;_1++)if(S=e[_1],M1(z.content,"content"),S.getAttribute("content")===(z.content==null?null:""+z.content)&&S.getAttribute("name")===(z.name==null?null:z.name)&&S.getAttribute("property")===(z.property==null?null:z.property)&&S.getAttribute("http-equiv")===(z.httpEquiv==null?null:z.httpEquiv)&&S.getAttribute("charset")===(z.charSet==null?null:z.charSet)){e.splice(_1,1);break J}}S=w.createElement(L),j2(S,L,z),w.head.appendChild(S);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+L+'". This is a bug in React.')}S[v2]=_,v1(S),L=S}_.stateNode=L}else jW(w,_.type,_.stateNode);else _.stateNode=fW(w,L,_.memoizedProps);else S!==L?(S===null?z.stateNode!==null&&(z=z.stateNode,z.parentNode.removeChild(z)):S.count--,L===null?jW(w,_.type,_.stateNode):fW(w,L,_.memoizedProps)):L===null&&_.stateNode!==null&&bG(_,_.memoizedProps,z.memoizedProps)}break;case 27:Q5(J,_),q5(_),L&512&&(U2||z===null||N4(z,z.return)),z!==null&&L&4&&bG(_,_.memoizedProps,z.memoizedProps);break;case 5:if(Q5(J,_),q5(_),L&512&&(U2||z===null||N4(z,z.return)),_.flags&32){w=_.stateNode;try{A1(_,BW,w)}catch(V1){L0(_,_.return,V1)}}L&4&&_.stateNode!=null&&(w=_.memoizedProps,bG(_,w,z!==null?z.memoizedProps:w)),L&1024&&(MF=!0,_.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Q5(J,_),q5(_),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,w=_.stateNode;try{A1(_,xI,w,z,L)}catch(V1){L0(_,_.return,V1)}}break;case 3:if(w=q3(),Xq=null,S=Q4,Q4=JQ(J.containerInfo),Q5(J,_),Q4=S,q5(_),L&4&&z!==null&&z.memoizedState.isDehydrated)try{A1(_,oI,J.containerInfo)}catch(V1){L0(_,_.return,V1)}MF&&(MF=!1,Mz(_)),J.effectDuration+=T$(w);break;case 4:L=Q4,Q4=JQ(_.stateNode.containerInfo),Q5(J,_),q5(_),Q4=L;break;case 12:L=q3(),Q5(J,_),q5(_),_.stateNode.effectDuration+=p9(L);break;case 31:Q5(J,_),q5(_),L&4&&(L=_.updateQueue,L!==null&&(_.updateQueue=null,r$(_,L)));break;case 13:Q5(J,_),q5(_),_.child.flags&8192&&_.memoizedState!==null!==(z!==null&&z.memoizedState!==null)&&(aQ=R2()),L&4&&(L=_.updateQueue,L!==null&&(_.updateQueue=null,r$(_,L)));break;case 22:w=_.memoizedState!==null;var r=z!==null&&z.memoizedState!==null,Z1=R3,f1=U2;if(R3=Z1||w,U2=f1||r,Q5(J,_),U2=f1,R3=Z1,r&&!w&&!Z1&&!f1&&(_.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&X$(_,m1,l1),q5(_),L&8192)_:for(J=_.stateNode,J._visibility=w?J._visibility&~N_:J._visibility|N_,!w||z===null||r||R3||U2||(_8(_),(_.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&B4(_,m1,l1,"Disconnect")),z=null,J=_;;){if(J.tag===5||J.tag===26){if(z===null){r=z=J;try{S=r.stateNode,w?A1(r,cI,S):A1(r,dI,r.stateNode,r.memoizedProps)}catch(V1){L0(r,r.return,V1)}}}else if(J.tag===6){if(z===null){r=J;try{e=r.stateNode,w?A1(r,lI,e):A1(r,rI,e,r.memoizedProps)}catch(V1){L0(r,r.return,V1)}}}else if(J.tag===18){if(z===null){r=J;try{_1=r.stateNode,w?A1(r,pI,_1):A1(r,iI,r.stateNode)}catch(V1){L0(r,r.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,r$(_,z))));break;case 19:Q5(J,_),q5(_),L&4&&(L=_.updateQueue,L!==null&&(_.updateQueue=null,r$(_,L)));break;case 30:break;case 21:break;default:Q5(J,_),q5(_)}(_.mode&e1)!==i1&&0<=m1&&0<=l1&&((l0||0.05<m0)&&L4(_,m1,l1,m0,b0),_.alternate===null&&_.return!==null&&_.return.alternate!==null&&0.05<l1-m1&&(Hz(_.return.alternate,_.return)||B4(_,m1,l1,"Mount"))),Y5($),T4(q),b0=G,l0=X}function q5(_){var J=_.flags;if(J&2){try{A1(_,zI,_)}catch($){L0(_,_.return,$)}_.flags&=-3}J&4096&&(_.flags&=-4097)}function Mz(_){if(_.subtreeFlags&1024)for(_=_.child;_!==null;){var J=_;Mz(J),J.tag===5&&J.flags&1024&&J.stateNode.reset(),_=_.sibling}}function C4(_,J){if(J.subtreeFlags&8772)for(J=J.child;J!==null;)Yz(_,J.alternate,J),J=J.sibling}function Tz(_){var J=H5(),$=M4(),q=R4(),G=O4();switch(_.tag){case 0:case 11:case 14:case 15:DG(_,_.return,O5),_8(_);break;case 1:N4(_,_.return);var X=_.stateNode;typeof X.componentWillUnmount==="function"&&Gz(_,_.return,X),_8(_);break;case 27:A1(_,X_,_.stateNode);case 26:case 5:N4(_,_.return),_8(_);break;case 22:_.memoizedState===null&&_8(_);break;case 30:_8(_);break;default:_8(_)}(_.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&L4(_,m1,l1,m0,b0),Y5(J),T4($),b0=q,l0=G}function _8(_){for(_=_.child;_!==null;)Tz(_),_=_.sibling}function Rz(_,J,$,q){var G=H5(),X=M4(),z=R4(),L=O4(),w=$.flags;switch($.tag){case 0:case 11:case 15:f4(_,$,q),Qz($,O5);break;case 1:if(f4(_,$,q),J=$.stateNode,typeof J.componentDidMount==="function"&&A1($,UF,$,J),J=$.updateQueue,J!==null){_=$.stateNode;try{A1($,oO,J,_)}catch(S){L0($,$.return,S)}}q&&w&64&&Uz($),__($,$.return);break;case 27:Kz($);case 26:case 5:f4(_,$,q),q&&J===null&&w&4&&Fz($),__($,$.return);break;case 12:if(q&&w&4){w=q3(),f4(_,$,q),q=$.stateNode,q.effectDuration+=p9(w);try{A1($,Zz,$,J,X6,q.effectDuration)}catch(S){L0($,$.return,S)}}else f4(_,$,q);break;case 31:f4(_,$,q),q&&w&4&&Bz(_,$);break;case 13:f4(_,$,q),q&&w&4&&Lz(_,$);break;case 22:$.memoizedState===null&&f4(_,$,q),__($,$.return);break;case 30:break;default:f4(_,$,q)}($.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&L4($,m1,l1,m0,b0),Y5(G),T4(X),b0=z,l0=L}function f4(_,J,$){$=$&&(J.subtreeFlags&8772)!==0;for(J=J.child;J!==null;)Rz(_,J.alternate,J,$),J=J.sibling}function xG(_,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&&s6(_),$!=null&&g9($))}function mG(_,J){_=null,J.alternate!==null&&(_=J.alternate.memoizedState.cache),J=J.memoizedState.cache,J!==_&&(s6(J),_!=null&&g9(_))}function o5(_,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 X=J.sibling;Oz(_,J,$,q,X!==null?X.actualStartTime:G),J=X}}function Oz(_,J,$,q,G){var X=H5(),z=M4(),L=R4(),w=O4(),S=U6,e=J.flags;switch(J.tag){case 0:case 11:case 15:(J.mode&e1)!==i1&&0<J.actualStartTime&&(J.flags&1)!==0&&K$(J,J.actualStartTime,G,z2,$),o5(_,J,$,q,G),e&2048&&qz(J,s2|x5);break;case 1:(J.mode&e1)!==i1&&0<J.actualStartTime&&((J.flags&128)!==0?wU(J,J.actualStartTime,G,[]):(J.flags&1)!==0&&K$(J,J.actualStartTime,G,z2,$)),o5(_,J,$,q,G);break;case 3:var _1=q3(),r=z2;z2=J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)===0,o5(_,J,$,q,G),z2=r,e&2048&&($=null,J.alternate!==null&&($=J.alternate.memoizedState.cache),q=J.memoizedState.cache,q!==$&&(s6(q),$!=null&&g9($))),_.passiveEffectDuration+=T$(_1);break;case 12:if(e&2048){e=q3(),o5(_,J,$,q,G),_=J.stateNode,_.passiveEffectDuration+=p9(e);try{A1(J,YI,J,J.alternate,X6,_.passiveEffectDuration)}catch(Z1){L0(J,J.return,Z1)}}else o5(_,J,$,q,G);break;case 31:e=z2,_1=J.alternate!==null?J.alternate.memoizedState:null,r=J.memoizedState,_1!==null&&r===null?(r=J.deletions,r!==null&&0<r.length&&r[0].tag===18?(z2=!1,_1=_1.hydrationErrors,_1!==null&&wU(J,J.actualStartTime,G,_1)):z2=!0):z2=!1,o5(_,J,$,q,G),z2=e;break;case 13:e=z2,_1=J.alternate!==null?J.alternate.memoizedState:null,r=J.memoizedState,_1===null||_1.dehydrated===null||r!==null&&r.dehydrated!==null?z2=!1:(r=J.deletions,r!==null&&0<r.length&&r[0].tag===18?(z2=!1,_1=_1.hydrationErrors,_1!==null&&wU(J,J.actualStartTime,G,_1)):z2=!0),o5(_,J,$,q,G),z2=e;break;case 23:break;case 22:r=J.stateNode,_1=J.alternate,J.memoizedState!==null?r._visibility&K3?o5(_,J,$,q,G):J_(_,J,$,q,G):r._visibility&K3?o5(_,J,$,q,G):(r._visibility|=K3,K7(_,J,$,q,(J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child),G),(J.mode&e1)===i1||z2||(_=J.actualStartTime,0<=_&&0.05<G-_&&X$(J,_,G),0<=m1&&0<=l1&&0.05<l1-m1&&X$(J,m1,l1))),e&2048&&xG(_1,J);break;case 24:o5(_,J,$,q,G),e&2048&&mG(J.alternate,J);break;default:o5(_,J,$,q,G)}if((J.mode&e1)!==i1){if(_=!z2&&J.alternate===null&&J.return!==null&&J.return.alternate!==null)$=J.actualStartTime,0<=$&&0.05<G-$&&B4(J,$,G,"Mount");0<=m1&&0<=l1&&((l0||0.05<m0)&&L4(J,m1,l1,m0,b0),_&&0.05<l1-m1&&B4(J,m1,l1,"Mount"))}Y5(X),T4(z),b0=L,l0=w,U6=S}function K7(_,J,$,q,G,X){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;Iz(_,J,$,q,G,z!==null?z.actualStartTime:X),J=z}}function Iz(_,J,$,q,G,X){var z=H5(),L=M4(),w=R4(),S=O4(),e=U6;G&&(J.mode&e1)!==i1&&0<J.actualStartTime&&(J.flags&1)!==0&&K$(J,J.actualStartTime,X,z2,$);var _1=J.flags;switch(J.tag){case 0:case 11:case 15:K7(_,J,$,q,G,X),qz(J,s2);break;case 23:break;case 22:var r=J.stateNode;J.memoizedState!==null?r._visibility&K3?K7(_,J,$,q,G,X):J_(_,J,$,q,X):(r._visibility|=K3,K7(_,J,$,q,G,X)),G&&_1&2048&&xG(J.alternate,J);break;case 24:K7(_,J,$,q,G,X),G&&_1&2048&&mG(J.alternate,J);break;default:K7(_,J,$,q,G,X)}(J.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&L4(J,m1,l1,m0,b0),Y5(z),T4(L),b0=w,l0=S,U6=e}function J_(_,J,$,q,G){if(J.subtreeFlags&10256||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child))for(var X=J.child;X!==null;){J=X.sibling;var z=_,L=$,w=q,S=J!==null?J.actualStartTime:G,e=U6;(X.mode&e1)!==i1&&0<X.actualStartTime&&(X.flags&1)!==0&&K$(X,X.actualStartTime,S,z2,L);var _1=X.flags;switch(X.tag){case 22:J_(z,X,L,w,S),_1&2048&&xG(X.alternate,X);break;case 24:J_(z,X,L,w,S),_1&2048&&mG(X.alternate,X);break;default:J_(z,X,L,w,S)}U6=e,X=J}}function H7(_,J,$){if(_.subtreeFlags&i_)for(_=_.child;_!==null;)wz(_,J,$),_=_.sibling}function wz(_,J,$){switch(_.tag){case 26:H7(_,J,$),_.flags&i_&&_.memoizedState!==null&&Qw($,Q4,_.memoizedState,_.memoizedProps);break;case 5:H7(_,J,$);break;case 3:case 4:var q=Q4;Q4=JQ(_.stateNode.containerInfo),H7(_,J,$),Q4=q;break;case 22:_.memoizedState===null&&(q=_.alternate,q!==null&&q.memoizedState!==null?(q=i_,i_=16777216,H7(_,J,$),i_=q):H7(_,J,$));break;default:H7(_,J,$)}}function Pz(_){var J=_.alternate;if(J!==null&&(_=J.child,_!==null)){J.child=null;do J=_.sibling,_.sibling=null,_=J;while(_!==null)}}function $_(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=H5();I2=q,fz(q,_),(q.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&B4(q,m1,l1,"Unmount"),Y5(G)}Pz(_)}if(_.subtreeFlags&10256)for(_=_.child;_!==null;)Nz(_),_=_.sibling}function Nz(_){var J=H5(),$=M4(),q=R4(),G=O4();switch(_.tag){case 0:case 11:case 15:$_(_),_.flags&2048&&uG(_,_.return,s2|x5);break;case 3:var X=q3();$_(_),_.stateNode.passiveEffectDuration+=T$(X);break;case 12:X=q3(),$_(_),_.stateNode.passiveEffectDuration+=p9(X);break;case 22:X=_.stateNode,_.memoizedState!==null&&X._visibility&K3&&(_.return===null||_.return.tag!==13)?(X._visibility&=~K3,a$(_),(_.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&B4(_,m1,l1,"Disconnect")):$_(_);break;default:$_(_)}(_.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&L4(_,m1,l1,m0,b0),Y5(J),T4($),l0=G,b0=q}function a$(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=H5();I2=q,fz(q,_),(q.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&B4(q,m1,l1,"Unmount"),Y5(G)}Pz(_)}for(_=_.child;_!==null;)Cz(_),_=_.sibling}function Cz(_){var J=H5(),$=M4(),q=R4(),G=O4();switch(_.tag){case 0:case 11:case 15:uG(_,_.return,s2),a$(_);break;case 22:var X=_.stateNode;X._visibility&K3&&(X._visibility&=~K3,a$(_));break;default:a$(_)}(_.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&L4(_,m1,l1,m0,b0),Y5(J),T4($),l0=G,b0=q}function fz(_,J){for(;I2!==null;){var $=I2,q=$,G=J,X=H5(),z=M4(),L=R4(),w=O4();switch(q.tag){case 0:case 11:case 15:uG(q,G,s2);break;case 23:case 22:q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(G=q.memoizedState.cachePool.pool,G!=null&&s6(G));break;case 24:g9(q.memoizedState.cache)}if((q.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&L4(q,m1,l1,m0,b0),Y5(X),T4(z),l0=w,b0=L,q=$.child,q!==null)q.return=$,I2=q;else _:for($=_;I2!==null;){if(q=I2,X=q.sibling,z=q.return,zz(q),q===$){I2=null;break _}if(X!==null){X.return=z,I2=X;break _}I2=z}}}function LI(){EP.forEach(function(_){return _()})}function Sz(){var _=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return _||Y1.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),_}function W5(_){if((Y0&W2)!==w2&&J0!==0)return J0&-J0;var J=Y1.T;return J!==null?(J._updatedFibers||(J._updatedFibers=new Set),J._updatedFibers.add(_),aG()):l()}function jz(){if(Z5===0)if((J0&536870912)===0||F0){var _=zQ;zQ<<=1,(zQ&3932160)===0&&(zQ=262144),Z5=_}else Z5=536870912;return _=R5.current,_!==null&&(_.flags|=32),Z5}function c0(_,J,$){if(t7&&console.error("useInsertionEffect must not schedule updates."),jF&&(nQ=!0),_===C0&&(O0===B8||O0===L8)||_.cancelPendingCommit!==null)z7(_,0),o3(_,J0,Z5,!1);if(_2(_,$),(Y0&W2)!==w2&&_===C0){if(y4)switch(J.tag){case 0:case 11:case 15:_=$0&&x($0)||"Unknown",$A.has(_)||($A.add(_),J=x(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:JA||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),JA=!0)}}else D4&&o4(_,J,$),CI(J),_===C0&&((Y0&W2)===w2&&(M6|=$),g0===B6&&o3(_,J0,Z5,!1)),S4(_)}function vz(_,J,$){if((Y0&(W2|I5))!==w2)throw Error("Should not already be working.");if(J0!==0&&$0!==null){var q=$0,G=R2();switch(aB){case a_:case B8:var X=V_;V0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Suspended",X,G,V5,void 0,"primary-light")):console.timeStamp("Suspended",X,G,V5,void 0,"primary-light"));break;case L8:X=V_,V0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Action",X,G,V5,void 0,"primary-light")):console.timeStamp("Action",X,G,V5,void 0,"primary-light"));break;default:V0&&(q=G-V_,3>q||console.timeStamp("Blocked",V_,G,V5,void 0,5>q?"primary-light":10>q?"primary":100>q?"primary-dark":"error"))}}X=($=!$&&(J&127)===0&&(J&_.expiredLanes)===0||A2(_,J))?MI(_,J):pG(_,J,!0);var z=$;do{if(X===O3){a7&&!$&&o3(_,J,0,!1),J=O0,V_=$2(),aB=J;break}else{if(q=R2(),G=_.current.alternate,z&&!AI(G)){X5(J),G=O2,X=q,!V0||X<=G||(a0?a0.run(console.timeStamp.bind(console,"Teared Render",G,X,Z0,G0,"error")):console.timeStamp("Teared Render",G,X,Z0,G0,"error")),J8(J,q),X=pG(_,J,!1),z=!1;continue}if(X===W8){if(z=J,_.errorRecoveryDisabledLanes&z)var L=0;else L=_.pendingLanes&-536870913,L=L!==0?L:L&536870912?536870912:0;if(L!==0){X5(J),PU(O2,q,J,a0),J8(J,q),J=L;_:{q=_,X=z,z=t_;var w=q.current.memoizedState.isDehydrated;if(w&&(z7(q,L).flags|=256),L=pG(q,L,!1),L!==W8){if(OF&&!w){q.errorRecoveryDisabledLanes|=X,M6|=X,X=B6;break _}q=t2,t2=z,q!==null&&(t2===null?t2=q:t2.push.apply(t2,q))}X=L}if(z=!1,X!==W8)continue;else q=R2()}}if(X===r_){X5(J),PU(O2,q,J,a0),J8(J,q),z7(_,0),o3(_,J,0,!0);break}_:{switch($=_,X){case O3:case r_:throw Error("Root did not complete. This is a bug in React.");case B6:if((J&4194048)!==J)break;case lQ:X5(J),vH(O2,q,J,a0),J8(J,q),G=J,(G&127)!==0?jQ=q:(G&4194048)!==0&&(vQ=q),o3($,J,Z5,!L6);break _;case W8:t2=null;break;case cQ:case pL:break;default:throw Error("Unknown root exit status.")}if(Y1.actQueue!==null)cG($,G,J,t2,o_,rQ,Z5,M6,A8,X,null,null,O2,q);else{if((J&62914560)===J&&(z=aQ+iL-R2(),10<z)){if(o3($,J,Z5,!L6),N2($,0,!0)!==0)break _;q4=J,$.timeoutHandle=KA(Vz.bind(null,$,G,t2,o_,rQ,J,Z5,M6,A8,L6,X,"Throttled",O2,q),z);break _}Vz($,G,t2,o_,rQ,J,Z5,M6,A8,L6,X,null,O2,q)}}}break}while(1);S4(_)}function Vz(_,J,$,q,G,X,z,L,w,S,e,_1,r,Z1){_.timeoutHandle=I8;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:_3},wz(J,X,V1),f1=(X&62914560)===X?aQ-R2():(X&4194048)===X?lL-R2():0,f1=qw(V1,f1),f1!==null){q4=X,_.cancelPendingCommit=f1(cG.bind(null,_,J,X,$,q,G,z,L,w,e,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,r,Z1)),o3(_,X,z,!S);return}}cG(_,J,X,$,q,G,z,L,w,e,V1,_1,r,Z1)}function AI(_){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],X=G.getSnapshot;G=G.value;try{if(!d2(X(),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 o3(_,J,$,q){J&=~IF,J&=~M6,_.suspendedLanes|=J,_.pingedLanes&=~J,q&&(_.warmLanes|=J),q=_.expirationTimes;for(var G=J;0<G;){var X=31-c2(G),z=1<<X;q[X]=-1,G&=~z}$!==0&&m2(_,$,J)}function Y7(){return(Y0&(W2|I5))===w2?(U_(0,!1),!1):!0}function gG(){if($0!==null){if(O0===G5)var _=$0.return;else _=$0,L$(),nU(_),x7=null,m_=0,_=$0;for(;_!==null;)$z(_.alternate,_),_=_.return;$0=null}}function J8(_,J){(_&127)!==0&&(K6=J),(_&4194048)!==0&&(x4=J),(_&62914560)!==0&&(dB=J),(_&2080374784)!==0&&(rB=J)}function z7(_,J){V0&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",G0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",G0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",G0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",G0,"primary-light"));var $=O2;if(O2=$2(),J0!==0&&0<$){if(X5(J0),g0===cQ||g0===B6)vH($,O2,J,a0);else{var q=O2,G=a0;if(V0&&!(q<=$)){var X=(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,Z0,G0,X)):console.timeStamp(z,$,q,Z0,G0,X)}}J8(J0,O2)}if($=a0,a0=null,(J&127)!==0){a0=S_,G=0<=h4&&h4<K6?K6:h4,q=0<=G8&&G8<K6?K6:G8,X=0<=q?q:0<=G?G:O2,0<=jQ?(X5(2),VH(jQ,X,J,$)):(VQ&127)!==0&&(X5(2),x9(K6,X,L3)),$=G;var L=q,w=j_,S=0<b7,e=H6===f_,_1=H6===SQ;if(G=O2,q=S_,X=_F,z=JF,V0){if(Z0="Blocking",0<$?$>G&&($=G):$=G,0<L?L>$&&(L=$):L=$,w!==null&&$>L){var r=S?"secondary-light":"warning";q?q.run(console.timeStamp.bind(console,S?"Consecutive":"Event: "+w,L,$,Z0,G0,r)):console.timeStamp(S?"Consecutive":"Event: "+w,L,$,Z0,G0,r)}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]),X!=null&&_1.push(["Method name",X]),$={start:$,end:G,detail:{devtools:{properties:_1,track:Z0,trackGroup:G0,color:L}}},q?q.run(performance.measure.bind(performance,e,$)):performance.measure(e,$))}h4=-1.1,H6=0,JF=_F=null,jQ=-1.1,b7=G8,G8=-1.1,K6=$2()}if((J&4194048)!==0&&(a0=v_,G=0<=B3&&B3<x4?x4:B3,$=0<=E5&&E5<x4?x4:E5,q=0<=Y6&&Y6<x4?x4:Y6,X=0<=q?q:0<=$?$:O2,0<=vQ?(X5(256),VH(vQ,X,J,a0)):(VQ&4194048)!==0&&(X5(256),x9(x4,X,L3)),_1=q,L=Z8,w=0<z6,S=$F===SQ,X=O2,q=v_,z=lB,e=iB,V0&&(Z0="Transition",0<$?$>X&&($=X):$=X,0<G?G>$&&(G=$):G=$,0<_1?_1>G&&(_1=G):_1=G,G>_1&&L!==null&&(r=w?"secondary-light":"warning",q?q.run(console.timeStamp.bind(console,w?"Consecutive":"Event: "+L,_1,G,Z0,G0,r)):console.timeStamp(w?"Consecutive":"Event: "+L,_1,G,Z0,G0,r)),$>G&&(q?q.run(console.timeStamp.bind(console,"Action",G,$,Z0,G0,"primary-dark")):console.timeStamp("Action",G,$,Z0,G0,"primary-dark")),X>$&&(G=S?"Promise Resolved":5<X-$?"Update Blocked":"Update",_1=[],e!=null&&_1.push(["Component name",e]),z!=null&&_1.push(["Method name",z]),$={start:$,end:X,detail:{devtools:{properties:_1,track:Z0,trackGroup:G0,color:"primary-light"}}},q?q.run(performance.measure.bind(performance,G,$)):performance.measure(G,$))),E5=B3=-1.1,$F=0,vQ=-1.1,z6=Y6,Y6=-1.1,x4=$2()),(J&62914560)!==0&&(VQ&62914560)!==0&&(X5(4194304),x9(dB,O2,L3)),(J&2080374784)!==0&&(VQ&2080374784)!==0&&(X5(268435456),x9(rB,O2,L3)),$=_.timeoutHandle,$!==I8&&(_.timeoutHandle=I8,tP($)),$=_.cancelPendingCommit,$!==null&&(_.cancelPendingCommit=null,$()),q4=0,gG(),C0=_,$0=$=J3(_.current,null),J0=J,O0=G5,w5=null,L6=!1,a7=A2(_,J),OF=!1,g0=O3,A8=Z5=IF=M6=A6=0,t2=t_=null,rQ=!1,(J&8)!==0&&(J|=J&32),q=_.entangledLanes,q!==0)for(_=_.entanglements,q&=J;0<q;)G=31-c2(q),X=1<<G,J|=_[G],q&=~X;return g4=J,H$(),_=hB(),1000<_-EB&&(Y1.recentlyCreatedOwnerStacks=0,EB=_),J4.discardPendingWarnings(),$}function yz(_,J){a1=null,Y1.H=l_,Y1.getCurrentStack=null,y4=!1,A5=null,J===h7||J===uQ?(J=eH(),O0=a_):J===GF?(J=eH(),O0=cL):O0=J===LF?RF:J!==null&&typeof J==="object"&&typeof J.then==="function"?s_:iQ,w5=J;var $=$0;$===null?(g0=r_,g$(_,K5(J,_.current))):$.mode&e1&&xU($)}function kz(){var _=R5.current;return _===null?!0:(J0&4194048)===J0?h5===null?!0:!1:(J0&62914560)===J0||(J0&536870912)!==0?_===h5:!1}function Dz(){var _=Y1.H;return Y1.H=l_,_===null?l_:_}function uz(){var _=Y1.A;return Y1.A=bP,_}function s$(_){a0===null&&(a0=_._debugTask==null?null:_._debugTask)}function t$(){g0=B6,L6||(J0&4194048)!==J0&&R5.current!==null||(a7=!0),(A6&134217727)===0&&(M6&134217727)===0||C0===null||o3(C0,J0,Z5,!1)}function pG(_,J,$){var q=Y0;Y0|=W2;var G=Dz(),X=uz();if(C0!==_||J0!==J){if(D4){var z=_.memoizedUpdaters;0<z.size&&(q_(_,J0),z.clear()),G1(_,J)}o_=null,z7(_,J)}J=!1,z=g0;_:do try{if(O0!==G5&&$0!==null){var L=$0,w=w5;switch(O0){case RF:gG(),z=lQ;break _;case a_:case B8:case L8:case s_:R5.current===null&&(J=!0);var S=O0;if(O0=G5,w5=null,W7(_,L,w,S),$&&a7){z=O3;break _}break;default:S=O0,O0=G5,w5=null,W7(_,L,w,S)}}bz(),z=g0;break}catch(e){yz(_,e)}while(1);return J&&_.shellSuspendCounter++,L$(),Y0=q,Y1.H=G,Y1.A=X,$0===null&&(C0=null,J0=0,H$()),z}function bz(){for(;$0!==null;)Ez($0)}function MI(_,J){var $=Y0;Y0|=W2;var q=Dz(),G=uz();if(C0!==_||J0!==J){if(D4){var X=_.memoizedUpdaters;0<X.size&&(q_(_,J0),X.clear()),G1(_,J)}o_=null,sQ=R2()+dL,z7(_,J)}else a7=A2(_,J);_:do try{if(O0!==G5&&$0!==null)J:switch(J=$0,X=w5,O0){case iQ:O0=G5,w5=null,W7(_,J,X,iQ);break;case B8:case L8:if(oH(X)){O0=G5,w5=null,hz(J);break}J=function(){O0!==B8&&O0!==L8||C0!==_||(O0=dQ),S4(_)},X.then(J,J);break _;case a_:O0=dQ;break _;case cL:O0=TF;break _;case dQ:oH(X)?(O0=G5,w5=null,hz(J)):(O0=G5,w5=null,W7(_,J,X,dQ));break;case TF:var z=null;switch($0.tag){case 26:z=$0.memoizedState;case 5:case 27:var L=$0;if(z?vW(z):L.stateNode.complete){O0=G5,w5=null;var w=L.sibling;if(w!==null)$0=w;else{var S=L.return;S!==null?($0=S,o$(S)):$0=null}break J}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}O0=G5,w5=null,W7(_,J,X,TF);break;case s_:O0=G5,w5=null,W7(_,J,X,s_);break;case RF:gG(),g0=lQ;break _;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Y1.actQueue!==null?bz():TI();break}catch(e){yz(_,e)}while(1);if(L$(),Y1.H=q,Y1.A=G,Y0=$,$0!==null)return O3;return C0=null,J0=0,H$(),g0}function TI(){for(;$0!==null&&!Aw();)Ez($0)}function Ez(_){var J=_.alternate;(_.mode&e1)!==i1?(hU(_),J=A1(_,yG,J,_,g4),xU(_)):J=A1(_,yG,J,_,g4),_.memoizedProps=_.pendingProps,J===null?o$(_):$0=J}function hz(_){var J=A1(_,RI,_);_.memoizedProps=_.pendingProps,J===null?o$(_):$0=J}function RI(_){var J=_.alternate,$=(_.mode&e1)!==i1;switch($&&hU(_),_.tag){case 15:case 0:J=sY(J,_,_.pendingProps,_.type,void 0,J0);break;case 11:J=sY(J,_,_.pendingProps,_.type.render,_.ref,J0);break;case 5:nU(_);default:$z(J,_),_=$0=EH(_,g4),J=yG(J,_,g4)}return $&&xU(_),J}function W7(_,J,$,q){L$(),nU(J),x7=null,m_=0;var G=J.return;try{if(qI(_,G,J,$,J0)){g0=r_,g$(_,K5($,_.current)),$0=null;return}}catch(X){if(G!==null)throw $0=G,X;g0=r_,g$(_,K5($,_.current)),$0=null;return}if(J.flags&32768){if(F0||q===iQ)_=!0;else if(a7||(J0&536870912)!==0)_=!1;else if(L6=_=!0,q===B8||q===L8||q===a_||q===s_)q=R5.current,q!==null&&q.tag===13&&(q.flags|=16384);xz(J,_)}else o$(J)}function o$(_){var J=_;do{if((J.flags&32768)!==0){xz(J,L6);return}var $=J.alternate;if(_=J.return,hU(J),$=A1(J,ZI,$,J,g4),(J.mode&e1)!==i1&&dH(J),$!==null){$0=$;return}if(J=J.sibling,J!==null){$0=J;return}$0=J=_}while(J!==null);g0===O3&&(g0=pL)}function xz(_,J){do{var $=FI(_.alternate,_);if($!==null){$.flags&=32767,$0=$;return}if((_.mode&e1)!==i1){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)){$0=_;return}$0=_=$}while(_!==null);g0=lQ,$0=null}function cG(_,J,$,q,G,X,z,L,w,S,e,_1,r,Z1){_.cancelPendingCommit=null;do Q_();while(Z2!==R6);if(J4.flushLegacyContextWarning(),J4.flushPendingUnsafeLifecycleWarnings(),(Y0&(W2|I5))!==w2)throw Error("Should not already be working.");if(X5($),S===W8?PU(r,Z1,$,a0):q!==null?iO(r,Z1,$,q,J!==null&&J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)!==0,a0):lO(r,Z1,$,a0),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(X=J.lanes|J.childLanes,X|=sZ,z4(_,$,X,z,L,w),_===C0&&($0=C0=null,J0=0),s7=J,O6=_,q4=$,NF=X,fF=G,nL=q,CF=Z1,eL=_1,U4=tQ,_A=null,J.actualDuration!==0||(J.subtreeFlags&10256)!==0||(J.flags&10256)!==0?(_.callbackNode=null,_.callbackPriority=0,NI(R7,function(){return QJ=window.event,U4===tQ&&(U4=PF),lz(),null})):(_.callbackNode=null,_.callbackPriority=0),W3=null,X6=$2(),_1!==null&&dO(Z1,X6,_1,a0),q=(J.flags&13878)!==0,(J.subtreeFlags&13878)!==0||q){q=Y1.T,Y1.T=null,G=A0.p,A0.p=M5,z=Y0,Y0|=I5;try{WI(_,J,$)}finally{Y0=z,A0.p=G,Y1.T=q}}Z2=aL,mz(),gz(),pz()}}function mz(){if(Z2===aL){Z2=R6;var _=O6,J=s7,$=q4,q=(J.flags&13878)!==0;if((J.subtreeFlags&13878)!==0||q){q=Y1.T,Y1.T=null;var G=A0.p;A0.p=M5;var X=Y0;Y0|=I5;try{d7=$,r7=_,R$(),Az(J,_),r7=d7=null,$=hF;var z=fH(_.containerInfo),L=$.focusedElem,w=$.selectionRange;if(z!==L&&L&&L.ownerDocument&&CH(L.ownerDocument.documentElement,L)){if(w!==null&&OU(L)){var{start:S,end:e}=w;if(e===void 0&&(e=S),"selectionStart"in L)L.selectionStart=S,L.selectionEnd=Math.min(e,L.value.length);else{var _1=L.ownerDocument||document,r=_1&&_1.defaultView||window;if(r.getSelection){var Z1=r.getSelection(),f1=L.textContent.length,V1=Math.min(w.start,f1),v0=w.end===void 0?V1:Math.min(w.end,f1);!Z1.extend&&V1>v0&&(z=v0,v0=V1,V1=z);var K0=NH(L,V1),d=NH(L,v0);if(K0&&d&&(Z1.rangeCount!==1||Z1.anchorNode!==K0.node||Z1.anchorOffset!==K0.offset||Z1.focusNode!==d.node||Z1.focusOffset!==d.offset)){var s=_1.createRange();s.setStart(K0.node,K0.offset),Z1.removeAllRanges(),V1>v0?(Z1.addRange(s),Z1.extend(d.node,d.offset)):(s.setEnd(d.node,d.offset),Z1.addRange(s))}}}}_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 n=_1[L];n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}Yq=!!EF,hF=EF=null}finally{Y0=X,A0.p=G,Y1.T=q}}_.current=J,Z2=sL}}function gz(){if(Z2===sL){Z2=R6;var _=_A;if(_!==null){X6=$2();var J=z3,$=X6;!V0||$<=J||(L3?L3.run(console.timeStamp.bind(console,_,J,$,Z0,G0,"secondary-light")):console.timeStamp(_,J,$,Z0,G0,"secondary-light"))}_=O6,J=s7,$=q4;var q=(J.flags&8772)!==0;if((J.subtreeFlags&8772)!==0||q){q=Y1.T,Y1.T=null;var G=A0.p;A0.p=M5;var X=Y0;Y0|=I5;try{d7=$,r7=_,R$(),Yz(_,J.alternate,J),r7=d7=null}finally{Y0=X,A0.p=G,Y1.T=q}}_=CF,J=eL,z3=$2(),_=J===null?_:X6,J=z3,$=U4===wF,q=a0,W3!==null?yH(_,J,W3,!1,q):!V0||J<=_||(q?q.run(console.timeStamp.bind(console,$?"Commit Interrupted View Transition":"Commit",_,J,Z0,G0,$?"error":"secondary-dark")):console.timeStamp($?"Commit Interrupted View Transition":"Commit",_,J,Z0,G0,$?"error":"secondary-dark")),Z2=tL}}function pz(){if(Z2===oL||Z2===tL){if(Z2===oL){var _=z3;z3=$2();var J=z3,$=U4===wF;!V0||J<=_||(L3?L3.run(console.timeStamp.bind(console,$?"Interrupted View Transition":"Starting Animation",_,J,Z0,G0,$?"error":"secondary-light")):console.timeStamp($?"Interrupted View Transition":"Starting Animation",_,J,Z0,G0,$?" error":"secondary-light")),U4!==wF&&(U4=rL)}Z2=R6,Mw(),_=O6;var q=s7;J=q4,$=nL;var G=q.actualDuration!==0||(q.subtreeFlags&10256)!==0||(q.flags&10256)!==0;G?Z2=oQ:(Z2=R6,s7=O6=null,cz(_,_.pendingLanes),M8=0,e_=null);var X=_.pendingLanes;if(X===0&&(T6=null),G||az(_),X=I(J),q=q.stateNode,D2&&typeof D2.onCommitFiberRoot==="function")try{var z=(q.current.flags&128)===128;switch(X){case M5:var L=fZ;break;case e5:L=SZ;break;case u4:L=R7;break;case BQ:L=jZ;break;default:L=R7}D2.onCommitFiberRoot(O7,q,L,z)}catch(_1){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",_1))}if(D4&&_.memoizedUpdaters.clear(),LI(),$!==null){z=Y1.T,L=A0.p,A0.p=M5,Y1.T=null;try{var w=_.onRecoverableError;for(q=0;q<$.length;q++){var S=$[q],e=OI(S.stack);A1(S.source,w,S.value,e)}}finally{Y1.T=z,A0.p=L}}(q4&3)!==0&&Q_(),S4(_),X=_.pendingLanes,(J&261930)!==0&&(X&42)!==0?(kQ=!0,_===SF?n_++:(n_=0,SF=_)):n_=0,G||J8(J,z3),U_(0,!1)}}function OI(_){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 cz(_,J){(_.pooledCacheLanes&=J)===0&&(J=_.pooledCache,J!=null&&(_.pooledCache=null,g9(J)))}function Q_(){return mz(),gz(),pz(),lz()}function lz(){if(Z2!==oQ)return!1;var _=O6,J=NF;NF=0;var $=I(q4),q=u4===0||u4>$?u4:$;$=Y1.T;var G=A0.p;try{A0.p=q,Y1.T=null;var X=fF;fF=null,q=O6;var z=q4;if(Z2=R6,s7=O6=null,q4=0,(Y0&(W2|I5))!==w2)throw Error("Cannot flush passive effects while already rendering.");X5(z),jF=!0,nQ=!1;var L=0;if(W3=null,L=R2(),U4===rL)x9(z3,L,L3);else{var w=z3,S=L,e=U4===PF;!V0||S<=w||(a0?a0.run(console.timeStamp.bind(console,e?"Waiting for Paint":"Waiting",w,S,Z0,G0,"secondary-light")):console.timeStamp(e?"Waiting for Paint":"Waiting",w,S,Z0,G0,"secondary-light"))}w=Y0,Y0|=I5;var _1=q.current;R$(),Nz(_1);var r=q.current;_1=CF,R$(),Oz(q,r,z,X,_1),az(q),Y0=w;var Z1=R2();if(r=L,_1=a0,W3!==null?yH(r,Z1,W3,!0,_1):!V0||Z1<=r||(_1?_1.run(console.timeStamp.bind(console,"Remaining Effects",r,Z1,Z0,G0,"secondary-dark")):console.timeStamp("Remaining Effects",r,Z1,Z0,G0,"secondary-dark")),J8(z,Z1),U_(0,!1),nQ?q===e_?M8++:(M8=0,e_=q):M8=0,nQ=jF=!1,D2&&typeof D2.onPostCommitFiberRoot==="function")try{D2.onPostCommitFiberRoot(O7,q)}catch(V1){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",V1))}var f1=q.current.stateNode;return f1.effectDuration=0,f1.passiveEffectDuration=0,!0}finally{A0.p=G,Y1.T=$,cz(_,J)}}function iz(_,J,$){J=K5($,J),rH(J),J=OG(_.stateNode,J,2),_=r3(_,J,2),_!==null&&(_2(_,2),S4(_))}function L0(_,J,$){if(t7=!1,_.tag===3)iz(_,_,$);else{for(;J!==null;){if(J.tag===3){iz(J,_,$);return}if(J.tag===1){var q=J.stateNode;if(typeof J.type.getDerivedStateFromError==="function"||typeof q.componentDidCatch==="function"&&(T6===null||!T6.has(q))){_=K5($,_),rH(_),$=IG(2),q=r3(J,$,2),q!==null&&(wG($,q,J,_),_2(q,2),S4(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,A1(J,function(B,w){console.error("%s must not return anything besides a function, which is used for clean-up.%s",B,w)},X,z)}$=$.next}while($!==G)}}catch(B){B0(J,J.return,B)}}function X7(_,J,$){try{var q=J.updateQueue,G=q!==null?q.lastEffect:null;if(G!==null){var X=G.next;q=X;do{if((q.tag&_)===_){var z=q.inst,B=z.destroy;B!==void 0&&(z.destroy=void 0,(_&a2)!==hQ&&(t7=!0),G=J,A1(G,yP,G,$,B),(_&a2)!==hQ&&(t7=!1))}q=q.next}while(q!==X)}}catch(w){B0(J,J.return,w)}}function qz(_,J){P4(_)?(w4(),e9(J,_),I4()):e9(J,_)}function uG(_,J,$){P4(_)?(w4(),X7($,_,J),I4()):X7($,_,J)}function Uz(_){var J=_.updateQueue;if(J!==null){var $=_.stateNode;_.type.defaultProps||"ref"in _.memoizedProps||i7||($.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.",x(_)||"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.",x(_)||"instance"));try{A1(_,ZY,J,$)}catch(q){B0(_,_.return,q)}}}function XI(_,J,$){return _.getSnapshotBeforeUpdate(J,$)}function KI(_,J){var{memoizedProps:$,memoizedState:q}=J;J=_.stateNode,_.type.defaultProps||"ref"in _.memoizedProps||i7||(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.",x(_)||"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.",x(_)||"instance"));try{var G=e6(_.type,$),X=A1(_,XI,J,G,q);$=mB,X!==void 0||$.has(_.type)||($.add(_.type),A1(_,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",x(_))})),J.__reactInternalSnapshotBeforeUpdate=X}catch(z){B0(_,_.return,z)}}function Gz(_,J,$){$.props=e6(_.type,_.memoizedProps),$.state=_.memoizedState,P4(_)?(w4(),A1(_,UB,_,J,$),I4()):A1(_,UB,_,J,$)}function HI(_){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(P4(_))try{w4(),_.refCleanup=J($)}finally{I4()}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().",x(_)),J.current=$}}function __(_,J){try{A1(_,HI,_)}catch($){B0(_,J,$)}}function N4(_,J){var{ref:$,refCleanup:q}=_;if($!==null)if(typeof q==="function")try{if(P4(_))try{w4(),A1(_,q)}finally{I4(_)}else A1(_,q)}catch(G){B0(_,J,G)}finally{_.refCleanup=null,_=_.alternate,_!=null&&(_.refCleanup=null)}else if(typeof $==="function")try{if(P4(_))try{w4(),A1(_,$,null)}finally{I4(_)}else A1(_,$,null)}catch(G){B0(_,J,G)}else $.current=null}function Zz(_,J,$,q){var G=_.memoizedProps,X=G.id,z=G.onCommit;G=G.onRender,J=J===null?"mount":"update",yQ&&(J="nested-update"),typeof G==="function"&&G(X,J,_.actualDuration,_.treeBaseDuration,_.actualStartTime,$),typeof z==="function"&&z(X,J,q,$)}function YI(_,J,$,q){var G=_.memoizedProps;_=G.id,G=G.onPostCommit,J=J===null?"mount":"update",yQ&&(J="nested-update"),typeof G==="function"&&G(_,J,q,$)}function Fz(_){var{type:J,memoizedProps:$,stateNode:q}=_;try{A1(_,bI,q,J,$,_)}catch(G){B0(_,_.return,G)}}function bG(_,J,$){try{A1(_,hI,_.stateNode,_.type,$,J,_)}catch(q){B0(_,_.return,q)}}function Xz(_){return _.tag===5||_.tag===3||_.tag===26||_.tag===27&&_6(_.type)||_.tag===4}function EG(_){_:for(;;){for(;_.sibling===null;){if(_.return===null||Xz(_.return))return null;_=_.return}_.sibling.return=_.return;for(_=_.sibling;_.tag!==5&&_.tag!==6&&_.tag!==18;){if(_.tag===27&&_6(_.type))continue _;if(_.flags&2)continue _;if(_.child===null||_.tag===4)continue _;else _.child.return=_,_=_.child}if(!(_.flags&2))return _.stateNode}}function hG(_,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=_3));else if(q!==4&&(q===27&&_6(_.type)&&($=_.stateNode,J=null),_=_.child,_!==null))for(hG(_,J,$),_=_.sibling;_!==null;)hG(_,J,$),_=_.sibling}function d$(_,J,$){var q=_.tag;if(q===5||q===6)_=_.stateNode,J?$.insertBefore(_,J):$.appendChild(_);else if(q!==4&&(q===27&&_6(_.type)&&($=_.stateNode),_=_.child,_!==null))for(d$(_,J,$),_=_.sibling;_!==null;)d$(_,J,$),_=_.sibling}function zI(_){for(var J,$=_.return;$!==null;){if(Xz($)){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,$=EG(_),d$(_,$,J);break;case 5:$=J.stateNode,J.flags&32&&(LW($),J.flags&=-33),J=EG(_),d$(_,J,$);break;case 3:case 4:J=J.stateNode.containerInfo,$=EG(_),hG(_,$,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{A1(_,_w,_.type,$,J,_)}catch(q){B0(_,_.return,q)}}function Hz(_,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 WI(_,J){if(_=_.containerInfo,EF=Yq,_=fH(_),OU(_)){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:X}=q;q=q.focusOffset;try{$.nodeType,X.nodeType}catch(f1){$=null;break _}var z=0,B=-1,w=-1,S=0,e=0,_1=_,r=null;J:for(;;){for(var Z1;;){if(_1!==$||G!==0&&_1.nodeType!==3||(B=z+G),_1!==X||q!==0&&_1.nodeType!==3||(w=z+q),_1.nodeType===3&&(z+=_1.nodeValue.length),(Z1=_1.firstChild)===null)break;r=_1,_1=Z1}for(;;){if(_1===_)break J;if(r===$&&++S===G&&(B=z),r===X&&++e===q&&(w=z),(Z1=_1.nextSibling)!==null)break;_1=r,r=_1.parentNode}_1=Z1}$=B===-1||w===-1?null:{start:B,end:w}}else $=null}$=$||{start:0,end:0}}else $=null;hF={focusedElem:_,selectionRange:$},Yq=!1;for(I2=J;I2!==null;)if(J=I2,_=J.child,(J.subtreeFlags&1028)!==0&&_!==null)_.return=J,I2=_;else for(;I2!==null;){switch(_=J=I2,$=_.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&&KI(_,$);break;case 3:if((G&1024)!==0){if(_=_.stateNode.containerInfo,$=_.nodeType,$===9)qZ(_);else if($===1)switch(_.nodeName){case"HEAD":case"HTML":case"BODY":qZ(_);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,I2=_;break}I2=J.return}}function Yz(_,J,$){var q=H5(),G=M4(),X=R4(),z=O4(),B=$.flags;switch($.tag){case 0:case 11:case 15:C4(_,$),B&4&&Qz($,O5|x5);break;case 1:if(C4(_,$),B&4)if(_=$.stateNode,J===null)$.type.defaultProps||"ref"in $.memoizedProps||i7||(_.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.",x($)||"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.",x($)||"instance")),P4($)?(w4(),A1($,UF,$,_),I4()):A1($,UF,$,_);else{var w=e6($.type,J.memoizedProps);J=J.memoizedState,$.type.defaultProps||"ref"in $.memoizedProps||i7||(_.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.",x($)||"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.",x($)||"instance")),P4($)?(w4(),A1($,$B,$,_,w,J,_.__reactInternalSnapshotBeforeUpdate),I4()):A1($,$B,$,_,w,J,_.__reactInternalSnapshotBeforeUpdate)}B&64&&Uz($),B&512&&__($,$.return);break;case 3:if(J=q3(),C4(_,$),B&64&&(B=$.updateQueue,B!==null)){if(w=null,$.child!==null)switch($.child.tag){case 27:case 5:w=$.child.stateNode;break;case 1:w=$.child.stateNode}try{A1($,ZY,B,w)}catch(e){B0($,$.return,e)}}_.effectDuration+=T$(J);break;case 27:J===null&&B&4&&Kz($);case 26:case 5:if(C4(_,$),J===null){if(B&4)Fz($);else if(B&64){_=$.type,J=$.memoizedProps,w=$.stateNode;try{A1($,EI,w,_,J,$)}catch(e){B0($,$.return,e)}}}B&512&&__($,$.return);break;case 12:if(B&4){B=q3(),C4(_,$),_=$.stateNode,_.effectDuration+=p9(B);try{A1($,Zz,$,J,K6,_.effectDuration)}catch(e){B0($,$.return,e)}}else C4(_,$);break;case 31:C4(_,$),B&4&&Lz(_,$);break;case 13:C4(_,$),B&4&&Bz(_,$),B&64&&(_=$.memoizedState,_!==null&&(_=_.dehydrated,_!==null&&(B=wI.bind(null,$),tI(_,B))));break;case 22:if(B=$.memoizedState!==null||R3,!B){J=J!==null&&J.memoizedState!==null||U2,w=R3;var S=U2;R3=B,(U2=J)&&!S?(f4(_,$,($.subtreeFlags&8772)!==0),($.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&X$($,m1,l1)):C4(_,$),R3=w,U2=S}break;case 30:break;default:C4(_,$)}($.mode&e1)!==i1&&0<=m1&&0<=l1&&((l0||0.05<m0)&&B4($,m1,l1,m0,b0),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<l1-m1&&(Hz($.return.alternate,$.return)||L4($,m1,l1,"Mount"))),Y5(q),T4(G),b0=X,l0=z}function zz(_){var J=_.alternate;J!==null&&(_.alternate=null,zz(J)),_.child=null,_.deletions=null,_.sibling=null,_.tag===5&&(J=_.stateNode,J!==null&&I1(J)),_.stateNode=null,_._debugOwner=null,_.return=null,_.dependencies=null,_.memoizedProps=null,_.memoizedState=null,_.pendingProps=null,_.stateNode=null,_.updateQueue=null}function Z3(_,J,$){for($=$.child;$!==null;)Wz(_,J,$),$=$.sibling}function Wz(_,J,$){if(D2&&typeof D2.onCommitFiberUnmount==="function")try{D2.onCommitFiberUnmount(O7,$)}catch(S){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",S))}var q=H5(),G=M4(),X=R4(),z=O4();switch($.tag){case 26:U2||N4($,J),Z3(_,J,$),$.memoizedState?$.memoizedState.count--:$.stateNode&&(_=$.stateNode,_.parentNode.removeChild(_));break;case 27:U2||N4($,J);var B=G2,w=U5;_6($.type)&&(G2=$.stateNode,U5=!1),Z3(_,J,$),A1($,X_,$.stateNode),G2=B,U5=w;break;case 5:U2||N4($,J);case 6:if(B=G2,w=U5,G2=null,Z3(_,J,$),G2=B,U5=w,G2!==null)if(U5)try{A1($,gI,G2,$.stateNode)}catch(S){B0($,J,S)}else try{A1($,mI,G2,$.stateNode)}catch(S){B0($,J,S)}break;case 18:G2!==null&&(U5?(_=G2,AW(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_,$.stateNode),A7(_)):AW(G2,$.stateNode));break;case 4:B=G2,w=U5,G2=$.stateNode.containerInfo,U5=!0,Z3(_,J,$),G2=B,U5=w;break;case 0:case 11:case 14:case 15:X7(a2,$,J),U2||DG($,J,O5),Z3(_,J,$);break;case 1:U2||(N4($,J),B=$.stateNode,typeof B.componentWillUnmount==="function"&&Gz($,J,B)),Z3(_,J,$);break;case 21:Z3(_,J,$);break;case 22:U2=(B=U2)||$.memoizedState!==null,Z3(_,J,$),U2=B;break;default:Z3(_,J,$)}($.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&B4($,m1,l1,m0,b0),Y5(q),T4(G),b0=X,l0=z}function Lz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null))){_=_.dehydrated;try{A1(J,nI,_)}catch($){B0(J,J.return,$)}}}function Bz(_,J){if(J.memoizedState===null&&(_=J.alternate,_!==null&&(_=_.memoizedState,_!==null&&(_=_.dehydrated,_!==null))))try{A1(J,eI,_)}catch($){B0(J,J.return,$)}}function LI(_){switch(_.tag){case 31:case 13:case 19:var J=_.stateNode;return J===null&&(J=_.stateNode=new gB),J;case 22:return _=_.stateNode,J=_._retryCache,J===null&&(J=_._retryCache=new gB),J;default:throw Error("Unexpected Suspense handler tag ("+_.tag+"). This is a bug in React.")}}function r$(_,J){var $=LI(_);J.forEach(function(q){if(!$.has(q)){if($.add(q),D4)if(d7!==null&&r7!==null)q_(r7,d7);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var G=PI.bind(null,_,q);q.then(G,G)}})}function Q5(_,J){var $=J.deletions;if($!==null)for(var q=0;q<$.length;q++){var G=_,X=J,z=$[q],B=H5(),w=X;_:for(;w!==null;){switch(w.tag){case 27:if(_6(w.type)){G2=w.stateNode,U5=!1;break _}break;case 5:G2=w.stateNode,U5=!1;break _;case 3:case 4:G2=w.stateNode.containerInfo,U5=!0;break _}w=w.return}if(G2===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Wz(G,X,z),G2=null,U5=!1,(z.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&L4(z,m1,l1,"Unmount"),Y5(B),G=z,X=G.alternate,X!==null&&(X.return=null),G.return=null}if(J.subtreeFlags&13886)for(J=J.child;J!==null;)Az(J,_),J=J.sibling}function Az(_,J){var $=H5(),q=M4(),G=R4(),X=O4(),z=_.alternate,B=_.flags;switch(_.tag){case 0:case 11:case 14:case 15:Q5(J,_),q5(_),B&4&&(X7(a2|x5,_,_.return),e9(a2|x5,_),DG(_,_.return,O5|x5));break;case 1:if(Q5(J,_),q5(_),B&512&&(U2||z===null||N4(z,z.return)),B&64&&R3&&(B=_.updateQueue,B!==null&&(z=B.callbacks,z!==null))){var w=B.shared.hiddenCallbacks;B.shared.hiddenCallbacks=w===null?z:w.concat(z)}break;case 26:if(w=Q4,Q5(J,_),q5(_),B&512&&(U2||z===null||N4(z,z.return)),B&4){var S=z!==null?z.memoizedState:null;if(B=_.memoizedState,z===null)if(B===null)if(_.stateNode===null){_:{B=_.type,z=_.memoizedProps,w=w.ownerDocument||w;J:switch(B){case"title":if(S=w.getElementsByTagName("title")[0],!S||S[B_]||S[j2]||S.namespaceURI===w7||S.hasAttribute("itemprop"))S=w.createElement(B),w.head.insertBefore(S,w.querySelector("head > title"));v2(S,B,z),S[j2]=_,j1(S),B=S;break _;case"link":var e=SW("link","href",w).get(B+(z.href||""));if(e){for(var _1=0;_1<e.length;_1++)if(S=e[_1],S.getAttribute("href")===(z.href==null||z.href===""?null:z.href)&&S.getAttribute("rel")===(z.rel==null?null:z.rel)&&S.getAttribute("title")===(z.title==null?null:z.title)&&S.getAttribute("crossorigin")===(z.crossOrigin==null?null:z.crossOrigin)){e.splice(_1,1);break J}}S=w.createElement(B),v2(S,B,z),w.head.appendChild(S);break;case"meta":if(e=SW("meta","content",w).get(B+(z.content||""))){for(_1=0;_1<e.length;_1++)if(S=e[_1],M1(z.content,"content"),S.getAttribute("content")===(z.content==null?null:""+z.content)&&S.getAttribute("name")===(z.name==null?null:z.name)&&S.getAttribute("property")===(z.property==null?null:z.property)&&S.getAttribute("http-equiv")===(z.httpEquiv==null?null:z.httpEquiv)&&S.getAttribute("charset")===(z.charSet==null?null:z.charSet)){e.splice(_1,1);break J}}S=w.createElement(B),v2(S,B,z),w.head.appendChild(S);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+B+'". This is a bug in React.')}S[j2]=_,j1(S),B=S}_.stateNode=B}else vW(w,_.type,_.stateNode);else _.stateNode=fW(w,B,_.memoizedProps);else S!==B?(S===null?z.stateNode!==null&&(z=z.stateNode,z.parentNode.removeChild(z)):S.count--,B===null?vW(w,_.type,_.stateNode):fW(w,B,_.memoizedProps)):B===null&&_.stateNode!==null&&bG(_,_.memoizedProps,z.memoizedProps)}break;case 27:Q5(J,_),q5(_),B&512&&(U2||z===null||N4(z,z.return)),z!==null&&B&4&&bG(_,_.memoizedProps,z.memoizedProps);break;case 5:if(Q5(J,_),q5(_),B&512&&(U2||z===null||N4(z,z.return)),_.flags&32){w=_.stateNode;try{A1(_,LW,w)}catch(V1){B0(_,_.return,V1)}}B&4&&_.stateNode!=null&&(w=_.memoizedProps,bG(_,w,z!==null?z.memoizedProps:w)),B&1024&&(MF=!0,_.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Q5(J,_),q5(_),B&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.");B=_.memoizedProps,z=z!==null?z.memoizedProps:B,w=_.stateNode;try{A1(_,xI,w,z,B)}catch(V1){B0(_,_.return,V1)}}break;case 3:if(w=q3(),Xq=null,S=Q4,Q4=JQ(J.containerInfo),Q5(J,_),Q4=S,q5(_),B&4&&z!==null&&z.memoizedState.isDehydrated)try{A1(_,oI,J.containerInfo)}catch(V1){B0(_,_.return,V1)}MF&&(MF=!1,Mz(_)),J.effectDuration+=T$(w);break;case 4:B=Q4,Q4=JQ(_.stateNode.containerInfo),Q5(J,_),q5(_),Q4=B;break;case 12:B=q3(),Q5(J,_),q5(_),_.stateNode.effectDuration+=p9(B);break;case 31:Q5(J,_),q5(_),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,r$(_,B)));break;case 13:Q5(J,_),q5(_),_.child.flags&8192&&_.memoizedState!==null!==(z!==null&&z.memoizedState!==null)&&(aQ=R2()),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,r$(_,B)));break;case 22:w=_.memoizedState!==null;var r=z!==null&&z.memoizedState!==null,Z1=R3,f1=U2;if(R3=Z1||w,U2=f1||r,Q5(J,_),U2=f1,R3=Z1,r&&!w&&!Z1&&!f1&&(_.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&X$(_,m1,l1),q5(_),B&8192)_:for(J=_.stateNode,J._visibility=w?J._visibility&~N_:J._visibility|N_,!w||z===null||r||R3||U2||(_8(_),(_.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&L4(_,m1,l1,"Disconnect")),z=null,J=_;;){if(J.tag===5||J.tag===26){if(z===null){r=z=J;try{S=r.stateNode,w?A1(r,cI,S):A1(r,dI,r.stateNode,r.memoizedProps)}catch(V1){B0(r,r.return,V1)}}}else if(J.tag===6){if(z===null){r=J;try{e=r.stateNode,w?A1(r,lI,e):A1(r,rI,e,r.memoizedProps)}catch(V1){B0(r,r.return,V1)}}}else if(J.tag===18){if(z===null){r=J;try{_1=r.stateNode,w?A1(r,pI,_1):A1(r,iI,r.stateNode)}catch(V1){B0(r,r.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}B&4&&(B=_.updateQueue,B!==null&&(z=B.retryQueue,z!==null&&(B.retryQueue=null,r$(_,z))));break;case 19:Q5(J,_),q5(_),B&4&&(B=_.updateQueue,B!==null&&(_.updateQueue=null,r$(_,B)));break;case 30:break;case 21:break;default:Q5(J,_),q5(_)}(_.mode&e1)!==i1&&0<=m1&&0<=l1&&((l0||0.05<m0)&&B4(_,m1,l1,m0,b0),_.alternate===null&&_.return!==null&&_.return.alternate!==null&&0.05<l1-m1&&(Hz(_.return.alternate,_.return)||L4(_,m1,l1,"Mount"))),Y5($),T4(q),b0=G,l0=X}function q5(_){var J=_.flags;if(J&2){try{A1(_,zI,_)}catch($){B0(_,_.return,$)}_.flags&=-3}J&4096&&(_.flags&=-4097)}function Mz(_){if(_.subtreeFlags&1024)for(_=_.child;_!==null;){var J=_;Mz(J),J.tag===5&&J.flags&1024&&J.stateNode.reset(),_=_.sibling}}function C4(_,J){if(J.subtreeFlags&8772)for(J=J.child;J!==null;)Yz(_,J.alternate,J),J=J.sibling}function Tz(_){var J=H5(),$=M4(),q=R4(),G=O4();switch(_.tag){case 0:case 11:case 14:case 15:DG(_,_.return,O5),_8(_);break;case 1:N4(_,_.return);var X=_.stateNode;typeof X.componentWillUnmount==="function"&&Gz(_,_.return,X),_8(_);break;case 27:A1(_,X_,_.stateNode);case 26:case 5:N4(_,_.return),_8(_);break;case 22:_.memoizedState===null&&_8(_);break;case 30:_8(_);break;default:_8(_)}(_.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&B4(_,m1,l1,m0,b0),Y5(J),T4($),b0=q,l0=G}function _8(_){for(_=_.child;_!==null;)Tz(_),_=_.sibling}function Rz(_,J,$,q){var G=H5(),X=M4(),z=R4(),B=O4(),w=$.flags;switch($.tag){case 0:case 11:case 15:f4(_,$,q),Qz($,O5);break;case 1:if(f4(_,$,q),J=$.stateNode,typeof J.componentDidMount==="function"&&A1($,UF,$,J),J=$.updateQueue,J!==null){_=$.stateNode;try{A1($,oO,J,_)}catch(S){B0($,$.return,S)}}q&&w&64&&Uz($),__($,$.return);break;case 27:Kz($);case 26:case 5:f4(_,$,q),q&&J===null&&w&4&&Fz($),__($,$.return);break;case 12:if(q&&w&4){w=q3(),f4(_,$,q),q=$.stateNode,q.effectDuration+=p9(w);try{A1($,Zz,$,J,K6,q.effectDuration)}catch(S){B0($,$.return,S)}}else f4(_,$,q);break;case 31:f4(_,$,q),q&&w&4&&Lz(_,$);break;case 13:f4(_,$,q),q&&w&4&&Bz(_,$);break;case 22:$.memoizedState===null&&f4(_,$,q),__($,$.return);break;case 30:break;default:f4(_,$,q)}($.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&B4($,m1,l1,m0,b0),Y5(G),T4(X),b0=z,l0=B}function f4(_,J,$){$=$&&(J.subtreeFlags&8772)!==0;for(J=J.child;J!==null;)Rz(_,J.alternate,J,$),J=J.sibling}function xG(_,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&&s6(_),$!=null&&g9($))}function mG(_,J){_=null,J.alternate!==null&&(_=J.alternate.memoizedState.cache),J=J.memoizedState.cache,J!==_&&(s6(J),_!=null&&g9(_))}function o5(_,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 X=J.sibling;Oz(_,J,$,q,X!==null?X.actualStartTime:G),J=X}}function Oz(_,J,$,q,G){var X=H5(),z=M4(),B=R4(),w=O4(),S=G6,e=J.flags;switch(J.tag){case 0:case 11:case 15:(J.mode&e1)!==i1&&0<J.actualStartTime&&(J.flags&1)!==0&&K$(J,J.actualStartTime,G,z2,$),o5(_,J,$,q,G),e&2048&&qz(J,s2|x5);break;case 1:(J.mode&e1)!==i1&&0<J.actualStartTime&&((J.flags&128)!==0?wU(J,J.actualStartTime,G,[]):(J.flags&1)!==0&&K$(J,J.actualStartTime,G,z2,$)),o5(_,J,$,q,G);break;case 3:var _1=q3(),r=z2;z2=J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)===0,o5(_,J,$,q,G),z2=r,e&2048&&($=null,J.alternate!==null&&($=J.alternate.memoizedState.cache),q=J.memoizedState.cache,q!==$&&(s6(q),$!=null&&g9($))),_.passiveEffectDuration+=T$(_1);break;case 12:if(e&2048){e=q3(),o5(_,J,$,q,G),_=J.stateNode,_.passiveEffectDuration+=p9(e);try{A1(J,YI,J,J.alternate,K6,_.passiveEffectDuration)}catch(Z1){B0(J,J.return,Z1)}}else o5(_,J,$,q,G);break;case 31:e=z2,_1=J.alternate!==null?J.alternate.memoizedState:null,r=J.memoizedState,_1!==null&&r===null?(r=J.deletions,r!==null&&0<r.length&&r[0].tag===18?(z2=!1,_1=_1.hydrationErrors,_1!==null&&wU(J,J.actualStartTime,G,_1)):z2=!0):z2=!1,o5(_,J,$,q,G),z2=e;break;case 13:e=z2,_1=J.alternate!==null?J.alternate.memoizedState:null,r=J.memoizedState,_1===null||_1.dehydrated===null||r!==null&&r.dehydrated!==null?z2=!1:(r=J.deletions,r!==null&&0<r.length&&r[0].tag===18?(z2=!1,_1=_1.hydrationErrors,_1!==null&&wU(J,J.actualStartTime,G,_1)):z2=!0),o5(_,J,$,q,G),z2=e;break;case 23:break;case 22:r=J.stateNode,_1=J.alternate,J.memoizedState!==null?r._visibility&K3?o5(_,J,$,q,G):J_(_,J,$,q,G):r._visibility&K3?o5(_,J,$,q,G):(r._visibility|=K3,K7(_,J,$,q,(J.subtreeFlags&10256)!==0||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child),G),(J.mode&e1)===i1||z2||(_=J.actualStartTime,0<=_&&0.05<G-_&&X$(J,_,G),0<=m1&&0<=l1&&0.05<l1-m1&&X$(J,m1,l1))),e&2048&&xG(_1,J);break;case 24:o5(_,J,$,q,G),e&2048&&mG(J.alternate,J);break;default:o5(_,J,$,q,G)}if((J.mode&e1)!==i1){if(_=!z2&&J.alternate===null&&J.return!==null&&J.return.alternate!==null)$=J.actualStartTime,0<=$&&0.05<G-$&&L4(J,$,G,"Mount");0<=m1&&0<=l1&&((l0||0.05<m0)&&B4(J,m1,l1,m0,b0),_&&0.05<l1-m1&&L4(J,m1,l1,"Mount"))}Y5(X),T4(z),b0=B,l0=w,G6=S}function K7(_,J,$,q,G,X){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;Iz(_,J,$,q,G,z!==null?z.actualStartTime:X),J=z}}function Iz(_,J,$,q,G,X){var z=H5(),B=M4(),w=R4(),S=O4(),e=G6;G&&(J.mode&e1)!==i1&&0<J.actualStartTime&&(J.flags&1)!==0&&K$(J,J.actualStartTime,X,z2,$);var _1=J.flags;switch(J.tag){case 0:case 11:case 15:K7(_,J,$,q,G,X),qz(J,s2);break;case 23:break;case 22:var r=J.stateNode;J.memoizedState!==null?r._visibility&K3?K7(_,J,$,q,G,X):J_(_,J,$,q,X):(r._visibility|=K3,K7(_,J,$,q,G,X)),G&&_1&2048&&xG(J.alternate,J);break;case 24:K7(_,J,$,q,G,X),G&&_1&2048&&mG(J.alternate,J);break;default:K7(_,J,$,q,G,X)}(J.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&B4(J,m1,l1,m0,b0),Y5(z),T4(B),b0=w,l0=S,G6=e}function J_(_,J,$,q,G){if(J.subtreeFlags&10256||J.actualDuration!==0&&(J.alternate===null||J.alternate.child!==J.child))for(var X=J.child;X!==null;){J=X.sibling;var z=_,B=$,w=q,S=J!==null?J.actualStartTime:G,e=G6;(X.mode&e1)!==i1&&0<X.actualStartTime&&(X.flags&1)!==0&&K$(X,X.actualStartTime,S,z2,B);var _1=X.flags;switch(X.tag){case 22:J_(z,X,B,w,S),_1&2048&&xG(X.alternate,X);break;case 24:J_(z,X,B,w,S),_1&2048&&mG(X.alternate,X);break;default:J_(z,X,B,w,S)}G6=e,X=J}}function H7(_,J,$){if(_.subtreeFlags&i_)for(_=_.child;_!==null;)wz(_,J,$),_=_.sibling}function wz(_,J,$){switch(_.tag){case 26:H7(_,J,$),_.flags&i_&&_.memoizedState!==null&&Qw($,Q4,_.memoizedState,_.memoizedProps);break;case 5:H7(_,J,$);break;case 3:case 4:var q=Q4;Q4=JQ(_.stateNode.containerInfo),H7(_,J,$),Q4=q;break;case 22:_.memoizedState===null&&(q=_.alternate,q!==null&&q.memoizedState!==null?(q=i_,i_=16777216,H7(_,J,$),i_=q):H7(_,J,$));break;default:H7(_,J,$)}}function Pz(_){var J=_.alternate;if(J!==null&&(_=J.child,_!==null)){J.child=null;do J=_.sibling,_.sibling=null,_=J;while(_!==null)}}function $_(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=H5();I2=q,fz(q,_),(q.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&L4(q,m1,l1,"Unmount"),Y5(G)}Pz(_)}if(_.subtreeFlags&10256)for(_=_.child;_!==null;)Nz(_),_=_.sibling}function Nz(_){var J=H5(),$=M4(),q=R4(),G=O4();switch(_.tag){case 0:case 11:case 15:$_(_),_.flags&2048&&uG(_,_.return,s2|x5);break;case 3:var X=q3();$_(_),_.stateNode.passiveEffectDuration+=T$(X);break;case 12:X=q3(),$_(_),_.stateNode.passiveEffectDuration+=p9(X);break;case 22:X=_.stateNode,_.memoizedState!==null&&X._visibility&K3&&(_.return===null||_.return.tag!==13)?(X._visibility&=~K3,a$(_),(_.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&L4(_,m1,l1,"Disconnect")):$_(_);break;default:$_(_)}(_.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&B4(_,m1,l1,m0,b0),Y5(J),T4($),l0=G,b0=q}function a$(_){var J=_.deletions;if((_.flags&16)!==0){if(J!==null)for(var $=0;$<J.length;$++){var q=J[$],G=H5();I2=q,fz(q,_),(q.mode&e1)!==i1&&0<=m1&&0<=l1&&0.05<l1-m1&&L4(q,m1,l1,"Unmount"),Y5(G)}Pz(_)}for(_=_.child;_!==null;)Cz(_),_=_.sibling}function Cz(_){var J=H5(),$=M4(),q=R4(),G=O4();switch(_.tag){case 0:case 11:case 15:uG(_,_.return,s2),a$(_);break;case 22:var X=_.stateNode;X._visibility&K3&&(X._visibility&=~K3,a$(_));break;default:a$(_)}(_.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&B4(_,m1,l1,m0,b0),Y5(J),T4($),l0=G,b0=q}function fz(_,J){for(;I2!==null;){var $=I2,q=$,G=J,X=H5(),z=M4(),B=R4(),w=O4();switch(q.tag){case 0:case 11:case 15:uG(q,G,s2);break;case 23:case 22:q.memoizedState!==null&&q.memoizedState.cachePool!==null&&(G=q.memoizedState.cachePool.pool,G!=null&&s6(G));break;case 24:g9(q.memoizedState.cache)}if((q.mode&e1)!==i1&&0<=m1&&0<=l1&&(l0||0.05<m0)&&B4(q,m1,l1,m0,b0),Y5(X),T4(z),l0=w,b0=B,q=$.child,q!==null)q.return=$,I2=q;else _:for($=_;I2!==null;){if(q=I2,X=q.sibling,z=q.return,zz(q),q===$){I2=null;break _}if(X!==null){X.return=z,I2=X;break _}I2=z}}}function BI(){EP.forEach(function(_){return _()})}function Sz(){var _=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return _||Y1.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),_}function W5(_){if((Y0&W2)!==w2&&J0!==0)return J0&-J0;var J=Y1.T;return J!==null?(J._updatedFibers||(J._updatedFibers=new Set),J._updatedFibers.add(_),aG()):l()}function vz(){if(Z5===0)if((J0&536870912)===0||F0){var _=zQ;zQ<<=1,(zQ&3932160)===0&&(zQ=262144),Z5=_}else Z5=536870912;return _=R5.current,_!==null&&(_.flags|=32),Z5}function c0(_,J,$){if(t7&&console.error("useInsertionEffect must not schedule updates."),vF&&(nQ=!0),_===C0&&(O0===L8||O0===B8)||_.cancelPendingCommit!==null)z7(_,0),n3(_,J0,Z5,!1);if(_2(_,$),(Y0&W2)!==w2&&_===C0){if(y4)switch(J.tag){case 0:case 11:case 15:_=$0&&x($0)||"Unknown",$A.has(_)||($A.add(_),J=x(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:JA||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),JA=!0)}}else D4&&o4(_,J,$),CI(J),_===C0&&((Y0&W2)===w2&&(T6|=$),g0===B6&&n3(_,J0,Z5,!1)),S4(_)}function jz(_,J,$){if((Y0&(W2|I5))!==w2)throw Error("Should not already be working.");if(J0!==0&&$0!==null){var q=$0,G=R2();switch(aL){case a_:case L8:var X=V_;V0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Suspended",X,G,V5,void 0,"primary-light")):console.timeStamp("Suspended",X,G,V5,void 0,"primary-light"));break;case B8:X=V_,V0&&((q=q._debugTask)?q.run(console.timeStamp.bind(console,"Action",X,G,V5,void 0,"primary-light")):console.timeStamp("Action",X,G,V5,void 0,"primary-light"));break;default:V0&&(q=G-V_,3>q||console.timeStamp("Blocked",V_,G,V5,void 0,5>q?"primary-light":10>q?"primary":100>q?"primary-dark":"error"))}}X=($=!$&&(J&127)===0&&(J&_.expiredLanes)===0||A2(_,J))?MI(_,J):pG(_,J,!0);var z=$;do{if(X===O3){a7&&!$&&n3(_,J,0,!1),J=O0,V_=$2(),aL=J;break}else{if(q=R2(),G=_.current.alternate,z&&!AI(G)){X5(J),G=O2,X=q,!V0||X<=G||(a0?a0.run(console.timeStamp.bind(console,"Teared Render",G,X,Z0,G0,"error")):console.timeStamp("Teared Render",G,X,Z0,G0,"error")),J8(J,q),X=pG(_,J,!1),z=!1;continue}if(X===W8){if(z=J,_.errorRecoveryDisabledLanes&z)var B=0;else B=_.pendingLanes&-536870913,B=B!==0?B:B&536870912?536870912:0;if(B!==0){X5(J),PU(O2,q,J,a0),J8(J,q),J=B;_:{q=_,X=z,z=t_;var w=q.current.memoizedState.isDehydrated;if(w&&(z7(q,B).flags|=256),B=pG(q,B,!1),B!==W8){if(OF&&!w){q.errorRecoveryDisabledLanes|=X,T6|=X,X=B6;break _}q=t2,t2=z,q!==null&&(t2===null?t2=q:t2.push.apply(t2,q))}X=B}if(z=!1,X!==W8)continue;else q=R2()}}if(X===r_){X5(J),PU(O2,q,J,a0),J8(J,q),z7(_,0),n3(_,J,0,!0);break}_:{switch($=_,X){case O3:case r_:throw Error("Root did not complete. This is a bug in React.");case B6:if((J&4194048)!==J)break;case lQ:X5(J),jH(O2,q,J,a0),J8(J,q),G=J,(G&127)!==0?vQ=q:(G&4194048)!==0&&(jQ=q),n3($,J,Z5,!A6);break _;case W8:t2=null;break;case cQ:case pB:break;default:throw Error("Unknown root exit status.")}if(Y1.actQueue!==null)cG($,G,J,t2,o_,rQ,Z5,T6,A8,X,null,null,O2,q);else{if((J&62914560)===J&&(z=aQ+iB-R2(),10<z)){if(n3($,J,Z5,!A6),N2($,0,!0)!==0)break _;q4=J,$.timeoutHandle=KA(Vz.bind(null,$,G,t2,o_,rQ,J,Z5,T6,A8,A6,X,"Throttled",O2,q),z);break _}Vz($,G,t2,o_,rQ,J,Z5,T6,A8,A6,X,null,O2,q)}}}break}while(1);S4(_)}function Vz(_,J,$,q,G,X,z,B,w,S,e,_1,r,Z1){_.timeoutHandle=I8;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:_3},wz(J,X,V1),f1=(X&62914560)===X?aQ-R2():(X&4194048)===X?lB-R2():0,f1=qw(V1,f1),f1!==null){q4=X,_.cancelPendingCommit=f1(cG.bind(null,_,J,X,$,q,G,z,B,w,e,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,r,Z1)),n3(_,X,z,!S);return}}cG(_,J,X,$,q,G,z,B,w,e,V1,_1,r,Z1)}function AI(_){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],X=G.getSnapshot;G=G.value;try{if(!d2(X(),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 n3(_,J,$,q){J&=~IF,J&=~T6,_.suspendedLanes|=J,_.pingedLanes&=~J,q&&(_.warmLanes|=J),q=_.expirationTimes;for(var G=J;0<G;){var X=31-c2(G),z=1<<X;q[X]=-1,G&=~z}$!==0&&m2(_,$,J)}function Y7(){return(Y0&(W2|I5))===w2?(U_(0,!1),!1):!0}function gG(){if($0!==null){if(O0===G5)var _=$0.return;else _=$0,B$(),nU(_),x7=null,m_=0,_=$0;for(;_!==null;)$z(_.alternate,_),_=_.return;$0=null}}function J8(_,J){(_&127)!==0&&(H6=J),(_&4194048)!==0&&(x4=J),(_&62914560)!==0&&(dL=J),(_&2080374784)!==0&&(rL=J)}function z7(_,J){V0&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",G0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",G0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",G0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",G0,"primary-light"));var $=O2;if(O2=$2(),J0!==0&&0<$){if(X5(J0),g0===cQ||g0===B6)jH($,O2,J,a0);else{var q=O2,G=a0;if(V0&&!(q<=$)){var X=(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,Z0,G0,X)):console.timeStamp(z,$,q,Z0,G0,X)}}J8(J0,O2)}if($=a0,a0=null,(J&127)!==0){a0=S_,G=0<=h4&&h4<H6?H6:h4,q=0<=G8&&G8<H6?H6:G8,X=0<=q?q:0<=G?G:O2,0<=vQ?(X5(2),VH(vQ,X,J,$)):(VQ&127)!==0&&(X5(2),x9(H6,X,B3)),$=G;var B=q,w=v_,S=0<b7,e=Y6===f_,_1=Y6===SQ;if(G=O2,q=S_,X=_F,z=JF,V0){if(Z0="Blocking",0<$?$>G&&($=G):$=G,0<B?B>$&&(B=$):B=$,w!==null&&$>B){var r=S?"secondary-light":"warning";q?q.run(console.timeStamp.bind(console,S?"Consecutive":"Event: "+w,B,$,Z0,G0,r)):console.timeStamp(S?"Consecutive":"Event: "+w,B,$,Z0,G0,r)}G>$&&(B=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]),X!=null&&_1.push(["Method name",X]),$={start:$,end:G,detail:{devtools:{properties:_1,track:Z0,trackGroup:G0,color:B}}},q?q.run(performance.measure.bind(performance,e,$)):performance.measure(e,$))}h4=-1.1,Y6=0,JF=_F=null,vQ=-1.1,b7=G8,G8=-1.1,H6=$2()}if((J&4194048)!==0&&(a0=j_,G=0<=L3&&L3<x4?x4:L3,$=0<=E5&&E5<x4?x4:E5,q=0<=z6&&z6<x4?x4:z6,X=0<=q?q:0<=$?$:O2,0<=jQ?(X5(256),VH(jQ,X,J,a0)):(VQ&4194048)!==0&&(X5(256),x9(x4,X,B3)),_1=q,B=Z8,w=0<W6,S=$F===SQ,X=O2,q=j_,z=lL,e=iL,V0&&(Z0="Transition",0<$?$>X&&($=X):$=X,0<G?G>$&&(G=$):G=$,0<_1?_1>G&&(_1=G):_1=G,G>_1&&B!==null&&(r=w?"secondary-light":"warning",q?q.run(console.timeStamp.bind(console,w?"Consecutive":"Event: "+B,_1,G,Z0,G0,r)):console.timeStamp(w?"Consecutive":"Event: "+B,_1,G,Z0,G0,r)),$>G&&(q?q.run(console.timeStamp.bind(console,"Action",G,$,Z0,G0,"primary-dark")):console.timeStamp("Action",G,$,Z0,G0,"primary-dark")),X>$&&(G=S?"Promise Resolved":5<X-$?"Update Blocked":"Update",_1=[],e!=null&&_1.push(["Component name",e]),z!=null&&_1.push(["Method name",z]),$={start:$,end:X,detail:{devtools:{properties:_1,track:Z0,trackGroup:G0,color:"primary-light"}}},q?q.run(performance.measure.bind(performance,G,$)):performance.measure(G,$))),E5=L3=-1.1,$F=0,jQ=-1.1,W6=z6,z6=-1.1,x4=$2()),(J&62914560)!==0&&(VQ&62914560)!==0&&(X5(4194304),x9(dL,O2,B3)),(J&2080374784)!==0&&(VQ&2080374784)!==0&&(X5(268435456),x9(rL,O2,B3)),$=_.timeoutHandle,$!==I8&&(_.timeoutHandle=I8,tP($)),$=_.cancelPendingCommit,$!==null&&(_.cancelPendingCommit=null,$()),q4=0,gG(),C0=_,$0=$=J3(_.current,null),J0=J,O0=G5,w5=null,A6=!1,a7=A2(_,J),OF=!1,g0=O3,A8=Z5=IF=T6=M6=0,t2=t_=null,rQ=!1,(J&8)!==0&&(J|=J&32),q=_.entangledLanes,q!==0)for(_=_.entanglements,q&=J;0<q;)G=31-c2(q),X=1<<G,J|=_[G],q&=~X;return g4=J,H$(),_=hL(),1000<_-EL&&(Y1.recentlyCreatedOwnerStacks=0,EL=_),J4.discardPendingWarnings(),$}function yz(_,J){a1=null,Y1.H=l_,Y1.getCurrentStack=null,y4=!1,A5=null,J===h7||J===uQ?(J=eH(),O0=a_):J===GF?(J=eH(),O0=cB):O0=J===BF?RF:J!==null&&typeof J==="object"&&typeof J.then==="function"?s_:iQ,w5=J;var $=$0;$===null?(g0=r_,g$(_,K5(J,_.current))):$.mode&e1&&xU($)}function kz(){var _=R5.current;return _===null?!0:(J0&4194048)===J0?h5===null?!0:!1:(J0&62914560)===J0||(J0&536870912)!==0?_===h5:!1}function Dz(){var _=Y1.H;return Y1.H=l_,_===null?l_:_}function uz(){var _=Y1.A;return Y1.A=bP,_}function s$(_){a0===null&&(a0=_._debugTask==null?null:_._debugTask)}function t$(){g0=B6,A6||(J0&4194048)!==J0&&R5.current!==null||(a7=!0),(M6&134217727)===0&&(T6&134217727)===0||C0===null||n3(C0,J0,Z5,!1)}function pG(_,J,$){var q=Y0;Y0|=W2;var G=Dz(),X=uz();if(C0!==_||J0!==J){if(D4){var z=_.memoizedUpdaters;0<z.size&&(q_(_,J0),z.clear()),G1(_,J)}o_=null,z7(_,J)}J=!1,z=g0;_:do try{if(O0!==G5&&$0!==null){var B=$0,w=w5;switch(O0){case RF:gG(),z=lQ;break _;case a_:case L8:case B8:case s_:R5.current===null&&(J=!0);var S=O0;if(O0=G5,w5=null,W7(_,B,w,S),$&&a7){z=O3;break _}break;default:S=O0,O0=G5,w5=null,W7(_,B,w,S)}}bz(),z=g0;break}catch(e){yz(_,e)}while(1);return J&&_.shellSuspendCounter++,B$(),Y0=q,Y1.H=G,Y1.A=X,$0===null&&(C0=null,J0=0,H$()),z}function bz(){for(;$0!==null;)Ez($0)}function MI(_,J){var $=Y0;Y0|=W2;var q=Dz(),G=uz();if(C0!==_||J0!==J){if(D4){var X=_.memoizedUpdaters;0<X.size&&(q_(_,J0),X.clear()),G1(_,J)}o_=null,sQ=R2()+dB,z7(_,J)}else a7=A2(_,J);_:do try{if(O0!==G5&&$0!==null)J:switch(J=$0,X=w5,O0){case iQ:O0=G5,w5=null,W7(_,J,X,iQ);break;case L8:case B8:if(oH(X)){O0=G5,w5=null,hz(J);break}J=function(){O0!==L8&&O0!==B8||C0!==_||(O0=dQ),S4(_)},X.then(J,J);break _;case a_:O0=dQ;break _;case cB:O0=TF;break _;case dQ:oH(X)?(O0=G5,w5=null,hz(J)):(O0=G5,w5=null,W7(_,J,X,dQ));break;case TF:var z=null;switch($0.tag){case 26:z=$0.memoizedState;case 5:case 27:var B=$0;if(z?jW(z):B.stateNode.complete){O0=G5,w5=null;var w=B.sibling;if(w!==null)$0=w;else{var S=B.return;S!==null?($0=S,o$(S)):$0=null}break J}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}O0=G5,w5=null,W7(_,J,X,TF);break;case s_:O0=G5,w5=null,W7(_,J,X,s_);break;case RF:gG(),g0=lQ;break _;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Y1.actQueue!==null?bz():TI();break}catch(e){yz(_,e)}while(1);if(B$(),Y1.H=q,Y1.A=G,Y0=$,$0!==null)return O3;return C0=null,J0=0,H$(),g0}function TI(){for(;$0!==null&&!Aw();)Ez($0)}function Ez(_){var J=_.alternate;(_.mode&e1)!==i1?(hU(_),J=A1(_,yG,J,_,g4),xU(_)):J=A1(_,yG,J,_,g4),_.memoizedProps=_.pendingProps,J===null?o$(_):$0=J}function hz(_){var J=A1(_,RI,_);_.memoizedProps=_.pendingProps,J===null?o$(_):$0=J}function RI(_){var J=_.alternate,$=(_.mode&e1)!==i1;switch($&&hU(_),_.tag){case 15:case 0:J=sY(J,_,_.pendingProps,_.type,void 0,J0);break;case 11:J=sY(J,_,_.pendingProps,_.type.render,_.ref,J0);break;case 5:nU(_);default:$z(J,_),_=$0=EH(_,g4),J=yG(J,_,g4)}return $&&xU(_),J}function W7(_,J,$,q){B$(),nU(J),x7=null,m_=0;var G=J.return;try{if(qI(_,G,J,$,J0)){g0=r_,g$(_,K5($,_.current)),$0=null;return}}catch(X){if(G!==null)throw $0=G,X;g0=r_,g$(_,K5($,_.current)),$0=null;return}if(J.flags&32768){if(F0||q===iQ)_=!0;else if(a7||(J0&536870912)!==0)_=!1;else if(A6=_=!0,q===L8||q===B8||q===a_||q===s_)q=R5.current,q!==null&&q.tag===13&&(q.flags|=16384);xz(J,_)}else o$(J)}function o$(_){var J=_;do{if((J.flags&32768)!==0){xz(J,A6);return}var $=J.alternate;if(_=J.return,hU(J),$=A1(J,ZI,$,J,g4),(J.mode&e1)!==i1&&dH(J),$!==null){$0=$;return}if(J=J.sibling,J!==null){$0=J;return}$0=J=_}while(J!==null);g0===O3&&(g0=pB)}function xz(_,J){do{var $=FI(_.alternate,_);if($!==null){$.flags&=32767,$0=$;return}if((_.mode&e1)!==i1){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)){$0=_;return}$0=_=$}while(_!==null);g0=lQ,$0=null}function cG(_,J,$,q,G,X,z,B,w,S,e,_1,r,Z1){_.cancelPendingCommit=null;do Q_();while(Z2!==O6);if(J4.flushLegacyContextWarning(),J4.flushPendingUnsafeLifecycleWarnings(),(Y0&(W2|I5))!==w2)throw Error("Should not already be working.");if(X5($),S===W8?PU(r,Z1,$,a0):q!==null?iO(r,Z1,$,q,J!==null&&J.alternate!==null&&J.alternate.memoizedState.isDehydrated&&(J.flags&256)!==0,a0):lO(r,Z1,$,a0),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(X=J.lanes|J.childLanes,X|=sZ,z4(_,$,X,z,B,w),_===C0&&($0=C0=null,J0=0),s7=J,I6=_,q4=$,NF=X,fF=G,nB=q,CF=Z1,eB=_1,U4=tQ,_A=null,J.actualDuration!==0||(J.subtreeFlags&10256)!==0||(J.flags&10256)!==0?(_.callbackNode=null,_.callbackPriority=0,NI(R7,function(){return QJ=window.event,U4===tQ&&(U4=PF),lz(),null})):(_.callbackNode=null,_.callbackPriority=0),W3=null,K6=$2(),_1!==null&&dO(Z1,K6,_1,a0),q=(J.flags&13878)!==0,(J.subtreeFlags&13878)!==0||q){q=Y1.T,Y1.T=null,G=A0.p,A0.p=M5,z=Y0,Y0|=I5;try{WI(_,J,$)}finally{Y0=z,A0.p=G,Y1.T=q}}Z2=aB,mz(),gz(),pz()}}function mz(){if(Z2===aB){Z2=O6;var _=I6,J=s7,$=q4,q=(J.flags&13878)!==0;if((J.subtreeFlags&13878)!==0||q){q=Y1.T,Y1.T=null;var G=A0.p;A0.p=M5;var X=Y0;Y0|=I5;try{d7=$,r7=_,R$(),Az(J,_),r7=d7=null,$=hF;var z=fH(_.containerInfo),B=$.focusedElem,w=$.selectionRange;if(z!==B&&B&&B.ownerDocument&&CH(B.ownerDocument.documentElement,B)){if(w!==null&&OU(B)){var{start:S,end:e}=w;if(e===void 0&&(e=S),"selectionStart"in B)B.selectionStart=S,B.selectionEnd=Math.min(e,B.value.length);else{var _1=B.ownerDocument||document,r=_1&&_1.defaultView||window;if(r.getSelection){var Z1=r.getSelection(),f1=B.textContent.length,V1=Math.min(w.start,f1),j0=w.end===void 0?V1:Math.min(w.end,f1);!Z1.extend&&V1>j0&&(z=j0,j0=V1,V1=z);var K0=NH(B,V1),d=NH(B,j0);if(K0&&d&&(Z1.rangeCount!==1||Z1.anchorNode!==K0.node||Z1.anchorOffset!==K0.offset||Z1.focusNode!==d.node||Z1.focusOffset!==d.offset)){var s=_1.createRange();s.setStart(K0.node,K0.offset),Z1.removeAllRanges(),V1>j0?(Z1.addRange(s),Z1.extend(d.node,d.offset)):(s.setEnd(d.node,d.offset),Z1.addRange(s))}}}}_1=[];for(Z1=B;Z1=Z1.parentNode;)Z1.nodeType===1&&_1.push({element:Z1,left:Z1.scrollLeft,top:Z1.scrollTop});typeof B.focus==="function"&&B.focus();for(B=0;B<_1.length;B++){var n=_1[B];n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}Yq=!!EF,hF=EF=null}finally{Y0=X,A0.p=G,Y1.T=q}}_.current=J,Z2=sB}}function gz(){if(Z2===sB){Z2=O6;var _=_A;if(_!==null){K6=$2();var J=z3,$=K6;!V0||$<=J||(B3?B3.run(console.timeStamp.bind(console,_,J,$,Z0,G0,"secondary-light")):console.timeStamp(_,J,$,Z0,G0,"secondary-light"))}_=I6,J=s7,$=q4;var q=(J.flags&8772)!==0;if((J.subtreeFlags&8772)!==0||q){q=Y1.T,Y1.T=null;var G=A0.p;A0.p=M5;var X=Y0;Y0|=I5;try{d7=$,r7=_,R$(),Yz(_,J.alternate,J),r7=d7=null}finally{Y0=X,A0.p=G,Y1.T=q}}_=CF,J=eB,z3=$2(),_=J===null?_:K6,J=z3,$=U4===wF,q=a0,W3!==null?yH(_,J,W3,!1,q):!V0||J<=_||(q?q.run(console.timeStamp.bind(console,$?"Commit Interrupted View Transition":"Commit",_,J,Z0,G0,$?"error":"secondary-dark")):console.timeStamp($?"Commit Interrupted View Transition":"Commit",_,J,Z0,G0,$?"error":"secondary-dark")),Z2=tB}}function pz(){if(Z2===oB||Z2===tB){if(Z2===oB){var _=z3;z3=$2();var J=z3,$=U4===wF;!V0||J<=_||(B3?B3.run(console.timeStamp.bind(console,$?"Interrupted View Transition":"Starting Animation",_,J,Z0,G0,$?"error":"secondary-light")):console.timeStamp($?"Interrupted View Transition":"Starting Animation",_,J,Z0,G0,$?" error":"secondary-light")),U4!==wF&&(U4=rB)}Z2=O6,Mw(),_=I6;var q=s7;J=q4,$=nB;var G=q.actualDuration!==0||(q.subtreeFlags&10256)!==0||(q.flags&10256)!==0;G?Z2=oQ:(Z2=O6,s7=I6=null,cz(_,_.pendingLanes),M8=0,e_=null);var X=_.pendingLanes;if(X===0&&(R6=null),G||az(_),X=I(J),q=q.stateNode,D2&&typeof D2.onCommitFiberRoot==="function")try{var z=(q.current.flags&128)===128;switch(X){case M5:var B=fZ;break;case e5:B=SZ;break;case u4:B=R7;break;case LQ:B=vZ;break;default:B=R7}D2.onCommitFiberRoot(O7,q,B,z)}catch(_1){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",_1))}if(D4&&_.memoizedUpdaters.clear(),BI(),$!==null){z=Y1.T,B=A0.p,A0.p=M5,Y1.T=null;try{var w=_.onRecoverableError;for(q=0;q<$.length;q++){var S=$[q],e=OI(S.stack);A1(S.source,w,S.value,e)}}finally{Y1.T=z,A0.p=B}}(q4&3)!==0&&Q_(),S4(_),X=_.pendingLanes,(J&261930)!==0&&(X&42)!==0?(kQ=!0,_===SF?n_++:(n_=0,SF=_)):n_=0,G||J8(J,z3),U_(0,!1)}}function OI(_){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 cz(_,J){(_.pooledCacheLanes&=J)===0&&(J=_.pooledCache,J!=null&&(_.pooledCache=null,g9(J)))}function Q_(){return mz(),gz(),pz(),lz()}function lz(){if(Z2!==oQ)return!1;var _=I6,J=NF;NF=0;var $=I(q4),q=u4===0||u4>$?u4:$;$=Y1.T;var G=A0.p;try{A0.p=q,Y1.T=null;var X=fF;fF=null,q=I6;var z=q4;if(Z2=O6,s7=I6=null,q4=0,(Y0&(W2|I5))!==w2)throw Error("Cannot flush passive effects while already rendering.");X5(z),vF=!0,nQ=!1;var B=0;if(W3=null,B=R2(),U4===rB)x9(z3,B,B3);else{var w=z3,S=B,e=U4===PF;!V0||S<=w||(a0?a0.run(console.timeStamp.bind(console,e?"Waiting for Paint":"Waiting",w,S,Z0,G0,"secondary-light")):console.timeStamp(e?"Waiting for Paint":"Waiting",w,S,Z0,G0,"secondary-light"))}w=Y0,Y0|=I5;var _1=q.current;R$(),Nz(_1);var r=q.current;_1=CF,R$(),Oz(q,r,z,X,_1),az(q),Y0=w;var Z1=R2();if(r=B,_1=a0,W3!==null?yH(r,Z1,W3,!0,_1):!V0||Z1<=r||(_1?_1.run(console.timeStamp.bind(console,"Remaining Effects",r,Z1,Z0,G0,"secondary-dark")):console.timeStamp("Remaining Effects",r,Z1,Z0,G0,"secondary-dark")),J8(z,Z1),U_(0,!1),nQ?q===e_?M8++:(M8=0,e_=q):M8=0,nQ=vF=!1,D2&&typeof D2.onPostCommitFiberRoot==="function")try{D2.onPostCommitFiberRoot(O7,q)}catch(V1){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",V1))}var f1=q.current.stateNode;return f1.effectDuration=0,f1.passiveEffectDuration=0,!0}finally{A0.p=G,Y1.T=$,cz(_,J)}}function iz(_,J,$){J=K5($,J),rH(J),J=OG(_.stateNode,J,2),_=a3(_,J,2),_!==null&&(_2(_,2),S4(_))}function B0(_,J,$){if(t7=!1,_.tag===3)iz(_,_,$);else{for(;J!==null;){if(J.tag===3){iz(J,_,$);return}if(J.tag===1){var q=J.stateNode;if(typeof J.type.getDerivedStateFromError==="function"||typeof q.componentDidCatch==="function"&&(R6===null||!R6.has(q))){_=K5($,_),rH(_),$=IG(2),q=a3(J,$,2),q!==null&&(wG($,q,J,_),_2(q,2),S4(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 lG(_,J,$){var q=_.pingCache;if(q===null){q=_.pingCache=new hP;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($)||(OF=!0,G.add($),q=II.bind(null,_,J,$),D4&&q_(_,$),J.then(q,q))}function II(_,J,$){var q=_.pingCache;q!==null&&q.delete(J),_.pingedLanes|=_.suspendedLanes&$,_.warmLanes&=~$,($&127)!==0?0>h4&&(
|
|
157
|
+
%s`,$)}}function lG(_,J,$){var q=_.pingCache;if(q===null){q=_.pingCache=new hP;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($)||(OF=!0,G.add($),q=II.bind(null,_,J,$),D4&&q_(_,$),J.then(q,q))}function II(_,J,$){var q=_.pingCache;q!==null&&q.delete(J),_.pingedLanes|=_.suspendedLanes&$,_.warmLanes&=~$,($&127)!==0?0>h4&&(H6=h4=$2(),S_=fQ("Promise Resolved"),Y6=SQ):($&4194048)!==0&&0>E5&&(x4=E5=$2(),j_=fQ("Promise Resolved"),$F=SQ),Sz()&&Y1.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`),C0===_&&(J0&$)===$&&(g0===B6||g0===cQ&&(J0&62914560)===J0&&R2()-aQ<
|
|
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`),C0===_&&(J0&$)===$&&(g0===B6||g0===cQ&&(J0&62914560)===J0&&R2()-aQ<iB?(Y0&W2)===w2&&z7(_,0):IF|=$,A8===J0&&(A8=0)),S4(_)}function dz(_,J){J===0&&(J=M2()),_=k2(_,J),_!==null&&(_2(_,J),S4(_))}function wI(_){var J=_.memoizedState,$=0;J!==null&&($=J.retryLane),dz(_,$)}function PI(_,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 iG(_,J,$){if((J.subtreeFlags&67117056)!==0)for(J=J.child;J!==null;){var q=_,G=J,X=G.type===XQ;X=$||X,G.tag!==22?G.flags&67108864?X&&A1(G,rz,q,G):iG(q,G,X):G.memoizedState===null&&(X&&G.flags&8192?A1(G,rz,q,G):G.subtreeFlags&67108864&&A1(G,iG,q,G,X)),J=J.sibling}}function rz(_,J){o1(!0);try{Tz(J),Cz(J),Rz(_,J.alternate,J,!1),Iz(_,J,0,null,!1,0)}finally{o1(!1)}}function az(_){var J=!0;_.current.mode&(u2|_4)||(J=!1),iG(_,_.current,J)}function sz(_){if((Y0&W2)===w2){var J=_.tag;if(J===3||J===1||J===0||J===11||J===14||J===15){if(J=x(_)||"ReactComponent",eQ!==null){if(eQ.has(J))return;eQ.add(J)}else eQ=new Set([J]);A1(_,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 q_(_,J){D4&&_.memoizedUpdaters.forEach(function($){o4(_,$,J)})}function NI(_,J){var $=Y1.actQueue;return $!==null?($.push(J),gP):CZ(_,J)}function CI(_){Sz()&&Y1.actQueue===null&&A1(_,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`,x(_))})}function S4(_){_!==o7&&_.next===null&&(o7===null?_q=o7=_:o7=o7.next=_),Jq=!0,Y1.actQueue!==null?VF||(VF=!0,ez()):vF||(vF=!0,ez())}function U_(_,J){if(!yF&&Jq){yF=!0;do{var $=!1;for(var q=_q;q!==null;){if(!J)if(_!==0){var G=q.pendingLanes;if(G===0)var X=0;else{var{suspendedLanes:z,pingedLanes:L}=q;X=(1<<31-c2(42|_)+1)-1,X&=G&~(z&~L),X=X&201326741?X&201326741|1:X?X|2:0}X!==0&&($=!0,nz(q,X))}else X=J0,X=N2(q,q===C0?X:0,q.cancelPendingCommit!==null||q.timeoutHandle!==I8),(X&3)===0||A2(q,X)||($=!0,nz(q,X));q=q.next}}while($);yF=!1}}function fI(){QJ=window.event,dG()}function dG(){Jq=VF=vF=!1;var _=0;I6!==0&&DI()&&(_=I6);for(var J=R2(),$=null,q=_q;q!==null;){var G=q.next,X=tz(q,J);if(X===0)q.next=null,$===null?_q=G:$.next=G,G===null&&(o7=$);else if($=q,_!==0||(X&3)!==0)Jq=!0;q=G}Z2!==R6&&Z2!==oQ||U_(_,!1),I6!==0&&(I6=0)}function tz(_,J){for(var{suspendedLanes:$,pingedLanes:q,expirationTimes:G}=_,X=_.pendingLanes&-62914561;0<X;){var z=31-c2(X),L=1<<z,w=G[z];if(w===-1){if((L&$)===0||(L&q)!==0)G[z]=C2(L,J)}else w<=J&&(_.expiredLanes|=L);X&=~L}if(J=C0,$=J0,$=N2(_,_===J?$:0,_.cancelPendingCommit!==null||_.timeoutHandle!==I8),q=_.callbackNode,$===0||_===J&&(O0===B8||O0===L8)||_.cancelPendingCommit!==null)return q!==null&&rG(q),_.callbackNode=null,_.callbackPriority=0;if(($&3)===0||A2(_,$)){if(J=$&-$,J!==_.callbackPriority||Y1.actQueue!==null&&q!==kF)rG(q);else return J;switch(I($)){case M5:case e5:$=SZ;break;case u4:$=R7;break;case BQ:$=jZ;break;default:$=R7}return q=oz.bind(null,_),Y1.actQueue!==null?(Y1.actQueue.push(q),$=kF):$=CZ($,q),_.callbackPriority=J,_.callbackNode=$,J}return q!==null&&rG(q),_.callbackPriority=2,_.callbackNode=null,2}function oz(_,J){if(kQ=yQ=!1,QJ=window.event,Z2!==R6&&Z2!==oQ)return _.callbackNode=null,_.callbackPriority=0,null;var $=_.callbackNode;if(U4===tQ&&(U4=PF),Q_()&&_.callbackNode!==$)return null;var q=J0;if(q=N2(_,_===C0?q:0,_.cancelPendingCommit!==null||_.timeoutHandle!==I8),q===0)return null;return vz(_,q,J),tz(_,R2()),_.callbackNode!=null&&_.callbackNode===$?oz.bind(null,_):null}function nz(_,J){if(Q_())return null;yQ=kQ,kQ=!1,vz(_,J,!0)}function rG(_){_!==kF&&_!==null&&Lw(_)}function ez(){Y1.actQueue!==null&&Y1.actQueue.push(function(){return dG(),null}),oP(function(){(Y0&(W2|I5))!==w2?CZ(fZ,fI):dG()})}function aG(){if(I6===0){var _=F8;_===0&&(_=YQ,YQ<<=1,(YQ&261888)===0&&(YQ=256)),I6=_}return I6}function _W(_){if(_==null||typeof _==="symbol"||typeof _==="boolean")return null;if(typeof _==="function")return _;return M1(_,"action"),b9(""+_)}function JW(_,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 SI(_,J,$,q,G){if(J==="submit"&&$&&$.stateNode===G){var X=_W((G[l2]||null).action),z=q.submitter;z&&(J=(J=z[l2]||null)?_W(J.formAction):z.getAttribute("formAction"),J!==null&&(X=J,z=null));var L=new RQ("action","action",null,q,G);_.push({event:L,listeners:[{instance:null,listener:function(){if(q.defaultPrevented){if(I6!==0){var w=z?JW(G,z):new FormData(G),S={pending:!0,data:w,method:G.method,action:X};Object.freeze(S),WG($,S,null,w)}}else typeof X==="function"&&(L.preventDefault(),w=z?JW(G,z):new FormData(G),S={pending:!0,data:w,method:G.method,action:X},Object.freeze(S),WG($,S,X,w))},currentTarget:G}]})}}function n$(_,J,$){_.currentTarget=$;try{J(_)}catch(q){iZ(q)}_.currentTarget=null}function $W(_,J){J=(J&4)!==0;for(var $=0;$<_.length;$++){var q=_[$];_:{var G=void 0,X=q.event;if(q=q.listeners,J)for(var z=q.length-1;0<=z;z--){var L=q[z],w=L.instance,S=L.currentTarget;if(L=L.listener,w!==G&&X.isPropagationStopped())break _;w!==null?A1(w,n$,X,L,S):n$(X,L,S),G=w}else for(z=0;z<q.length;z++){if(L=q[z],w=L.instance,S=L.currentTarget,L=L.listener,w!==G&&X.isPropagationStopped())break _;w!==null?A1(w,n$,X,L,S):n$(X,L,S),G=w}}}}function X0(_,J){DF.has(_)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',_);var $=J[vZ];$===void 0&&($=J[vZ]=new Set);var q=_+"__bubble";$.has(q)||(QW(J,_,2,!1),$.add(q))}function sG(_,J,$){DF.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),QW($,_,q,J)}function tG(_){if(!_[$q]){_[$q]=!0,eW.forEach(function($){$!=="selectionchange"&&(DF.has($)||sG($,!1,_),sG($,!0,_))});var J=_.nodeType===9?_:_.ownerDocument;J===null||J[$q]||(J[$q]=!0,sG("selectionchange",!1,J))}}function QW(_,J,$,q){switch(bW(J)){case M5:var G=Fw;break;case e5:G=Xw;break;default:G=YZ}$=G.bind(null,J,$,_),G=void 0,!uZ||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 oG(_,J,$,q,G){var X=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 w=z.tag;if((w===3||w===4)&&z.stateNode.containerInfo===G)return;z=z.return}for(;L!==null;){if(z=R1(L),z===null)return;if(w=z.tag,w===5||w===6||w===26||w===27){q=X=z;continue _}L=L.parentNode}}q=q.return}WH(function(){var S=X,e=TU($),_1=[];_:{var r=bB.get(_);if(r!==void 0){var Z1=RQ,f1=_;switch(_){case"keypress":if(G$($)===0)break _;case"keydown":case"keyup":Z1=QP;break;case"focusin":f1="focus",Z1=xZ;break;case"focusout":f1="blur",Z1=xZ;break;case"beforeblur":case"afterblur":Z1=xZ;break;case"click":if($.button===2)break _;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z1=IB;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z1=iw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z1=GP;break;case yB:case kB:case DB:Z1=aw;break;case uB:Z1=FP;break;case"scroll":case"scrollend":Z1=cw;break;case"wheel":Z1=KP;break;case"copy":case"cut":case"paste":Z1=tw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z1=PB;break;case"toggle":case"beforetoggle":Z1=YP}var V1=(J&4)!==0,v0=!V1&&(_==="scroll"||_==="scrollend"),K0=V1?r!==null?r+"Capture":null:r;V1=[];for(var d=S,s;d!==null;){var n=d;if(s=n.stateNode,n=n.tag,n!==5&&n!==26&&n!==27||s===null||K0===null||(n=E9(d,K0),n!=null&&V1.push(G_(d,n,s))),v0)break;d=d.return}0<V1.length&&(r=new Z1(r,f1,null,$,e),_1.push({event:r,listeners:V1}))}}if((J&7)===0){_:{if(r=_==="mouseover"||_==="pointerover",Z1=_==="mouseout"||_==="pointerout",r&&$!==A_&&(f1=$.relatedTarget||$.fromElement)&&(R1(f1)||f1[Q6]))break _;if(Z1||r){if(r=e.window===e?e:(r=e.ownerDocument)?r.defaultView||r.parentWindow:window,Z1){if(f1=$.relatedTarget||$.toElement,Z1=S,f1=f1?R1(f1):null,f1!==null&&(v0=f(f1),V1=f1.tag,f1!==v0||V1!==5&&V1!==27&&V1!==6))f1=null}else Z1=null,f1=S;if(Z1!==f1){if(V1=IB,n="onMouseLeave",K0="onMouseEnter",d="mouse",_==="pointerout"||_==="pointerover")V1=PB,n="onPointerLeave",K0="onPointerEnter",d="pointer";if(v0=Z1==null?r:C1(Z1),s=f1==null?r:C1(f1),r=new V1(n,d+"leave",Z1,$,e),r.target=v0,r.relatedTarget=s,n=null,R1(e)===S&&(V1=new V1(K0,d+"enter",f1,$,e),V1.target=s,V1.relatedTarget=v0,n=V1),v0=n,Z1&&f1)J:{V1=jI,K0=Z1,d=f1,s=0;for(n=K0;n;n=V1(n))s++;n=0;for(var L1=d;L1;L1=V1(L1))n++;for(;0<s-n;)K0=V1(K0),s--;for(;0<n-s;)d=V1(d),n--;for(;s--;){if(K0===d||d!==null&&K0===d.alternate){V1=K0;break J}K0=V1(K0),d=V1(d)}V1=null}else V1=null;Z1!==null&&qW(_1,r,Z1,V1,!1),f1!==null&&v0!==null&&qW(_1,v0,f1,V1,!0)}}}_:{if(r=S?C1(S):window,Z1=r.nodeName&&r.nodeName.toLowerCase(),Z1==="select"||Z1==="input"&&r.type==="file")var S1=OH;else if(TH(r))if(vB)S1=gO;else{S1=xO;var s1=hO}else Z1=r.nodeName,!Z1||Z1.toLowerCase()!=="input"||r.type!=="checkbox"&&r.type!=="radio"?S&&u9(S.elementType)&&(S1=OH):S1=mO;if(S1&&(S1=S1(_,S))){RH(_1,S1,$,e);break _}s1&&s1(_,r,S),_==="focusout"&&S&&r.type==="number"&&S.memoizedProps.value!=null&&J7(r,"number",r.value)}switch(s1=S?C1(S):window,_){case"focusin":if(TH(s1)||s1.contentEditable==="true")S7=s1,gZ=S,P_=null;break;case"focusout":P_=gZ=S7=null;break;case"mousedown":pZ=!0;break;case"contextmenu":case"mouseup":case"dragend":pZ=!1,SH(_1,$,e);break;case"selectionchange":if(LP)break;case"keydown":case"keyup":SH(_1,$,e)}var x1;if(mZ)_:{switch(_){case"compositionstart":var E1="onCompositionStart";break _;case"compositionend":E1="onCompositionEnd";break _;case"compositionupdate":E1="onCompositionUpdate";break _}E1=void 0}else f7?AH(_,$)&&(E1="onCompositionEnd"):_==="keydown"&&$.keyCode===NB&&(E1="onCompositionStart");if(E1&&(CB&&$.locale!=="ko"&&(f7||E1!=="onCompositionStart"?E1==="onCompositionEnd"&&f7&&(x1=BH()):(q6=e,bZ=("value"in q6)?q6.value:q6.textContent,f7=!0)),s1=e$(S,E1),0<s1.length&&(E1=new wB(E1,_,null,$,e),_1.push({event:E1,listeners:s1}),x1?E1.data=x1:(x1=MH($),x1!==null&&(E1.data=x1)))),x1=WP?DO(_,$):uO(_,$))E1=e$(S,"onBeforeInput"),0<E1.length&&(s1=new nw("onBeforeInput","beforeinput",null,$,e),_1.push({event:s1,listeners:E1}),s1.data=x1);SI(_1,_,S,$,e)}$W(_1,J)})}function G_(_,J,$){return{instance:_,listener:J,currentTarget:$}}function e$(_,J){for(var $=J+"Capture",q=[];_!==null;){var G=_,X=G.stateNode;if(G=G.tag,G!==5&&G!==26&&G!==27||X===null||(G=E9(_,$),G!=null&&q.unshift(G_(_,G,X)),G=E9(_,J),G!=null&&q.push(G_(_,G,X))),_.tag===3)return q;_=_.return}return[]}function jI(_){if(_===null)return null;do _=_.return;while(_&&_.tag!==5&&_.tag!==27);return _?_:null}function qW(_,J,$,q,G){for(var X=J._reactName,z=[];$!==null&&$!==q;){var L=$,w=L.alternate,S=L.stateNode;if(L=L.tag,w!==null&&w===q)break;L!==5&&L!==26&&L!==27||S===null||(w=S,G?(S=E9($,X),S!=null&&z.unshift(G_($,S,w))):G||(S=E9($,X),S!=null&&z.push(G_($,S,w)))),$=$.return}z.length!==0&&_.push({event:J,listeners:z})}function nG(_,J){vO(_,J),_!=="input"&&_!=="textarea"&&_!=="select"||J==null||J.value!==null||RB||(RB=!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:$8,possibleRegistrationNames:VZ};u9(_)||typeof J.is==="string"||yO(_,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 T2(_,J,$,q){J!==$&&($=n3($),n3(J)!==$&&(q[_]=J))}function vI(_,J,$){J.forEach(function(q){$[ZW(q)]=q==="style"?_Z(_):_.getAttribute(q)})}function j4(_,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 UW(_,J){return _=_.namespaceURI===AQ||_.namespaceURI===w7?_.ownerDocument.createElementNS(_.namespaceURI,_.tagName):_.ownerDocument.createElement(_.tagName),_.innerHTML=J,_.innerHTML}function n3(_){return g1(_)&&(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.",D1(_)),h1(_)),(typeof _==="string"?_:""+_).replace(pP,`
|
|
176
|
-
`).replace(cP,"")}function GW(_,J){return J=n3(J),n3(_)===J?!0:!1}function P0(_,J,$,q,G,X){switch($){case"children":if(typeof q==="string")g3(q,J,!1),J==="body"||J==="textarea"&&q===""||g6(_,q);else if(typeof q==="number"||typeof q==="bigint")g3(""+q,J,!1),J!=="body"&&g6(_,""+q);break;case"className":n8(_,"class",q);break;case"tabIndex":n8(_,"tabindex",q);break;case"dir":case"role":case"viewBox":case"width":case"height":n8(_,$,q);break;case"style":HH(_,q,X);break;case"data":if(J!=="object"){n8(_,"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}M1(q,$),q=b9(""+q),_.setAttribute($,q);break;case"action":case"formAction":if(q!=null&&(J==="form"?$==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof q==="function"&&(G.encType==null&&G.method==null||Uq||(Uq=!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||qq||(qq=!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"||Qq?J!=="button"||G.type==null||G.type==="submit"||Qq?typeof q==="function"&&(G.name==null||UA||(UA=!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||Uq||(Uq=!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||qq||(qq=!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."))):(Qq=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Qq=!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 X==="function"&&($==="formAction"?(J!=="input"&&P0(_,J,"name",G.name,G,null),P0(_,J,"formEncType",G.formEncType,G,null),P0(_,J,"formMethod",G.formMethod,G,null),P0(_,J,"formTarget",G.formTarget,G,null)):(P0(_,J,"encType",G.encType,G,null),P0(_,J,"method",G.method,G,null),P0(_,J,"target",G.target,G,null)));if(q==null||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}M1(q,$),q=b9(""+q),_.setAttribute($,q);break;case"onClick":q!=null&&(typeof q!=="function"&&j4($,q),_.onclick=_3);break;case"onScroll":q!=null&&(typeof q!=="function"&&j4($,q),X0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&j4($,q),X0("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}M1(q,$),$=b9(""+q),_.setAttributeNS(T8,"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"?(M1(q,$),_.setAttribute($,""+q)):_.removeAttribute($);break;case"inert":q!==""||Gq[$]||(Gq[$]=!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"?(M1(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?(M1(q,$),_.setAttribute($,q)):_.removeAttribute($);break;case"rowSpan":case"start":q==null||typeof q==="function"||typeof q==="symbol"||isNaN(q)?_.removeAttribute($):(M1(q,$),_.setAttribute($,q));break;case"popover":X0("beforetoggle",_),X0("toggle",_),T0(_,"popover",q);break;case"xlinkActuate":a5(_,T8,"xlink:actuate",q);break;case"xlinkArcrole":a5(_,T8,"xlink:arcrole",q);break;case"xlinkRole":a5(_,T8,"xlink:role",q);break;case"xlinkShow":a5(_,T8,"xlink:show",q);break;case"xlinkTitle":a5(_,T8,"xlink:title",q);break;case"xlinkType":a5(_,T8,"xlink:type",q);break;case"xmlBase":a5(_,uF,"xml:base",q);break;case"xmlLang":a5(_,uF,"xml:lang",q);break;case"xmlSpace":a5(_,uF,"xml:space",q);break;case"is":X!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),T0(_,"is",q);break;case"innerText":case"textContent":break;case"popoverTarget":GA||q==null||typeof q!=="object"||(GA=!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"?($=YH($),T0(_,$,q)):$8.hasOwnProperty($)&&q!=null&&typeof q!=="function"&&j4($,q)}}function eG(_,J,$,q,G,X){switch($){case"style":HH(_,q,X);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"?g6(_,q):(typeof q==="number"||typeof q==="bigint")&&g6(_,""+q);break;case"onScroll":q!=null&&(typeof q!=="function"&&j4($,q),X0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&j4($,q),X0("scrollend",_));break;case"onClick":q!=null&&(typeof q!=="function"&&j4($,q),_.onclick=_3);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if($8.hasOwnProperty($))q!=null&&typeof q!=="function"&&j4($,q);else _:{if($[0]==="o"&&$[1]==="n"&&(G=$.endsWith("Capture"),J=$.slice(2,G?$.length-7:void 0),X=_[l2]||null,X=X!=null?X[$]:null,typeof X==="function"&&_.removeEventListener(J,X,G),typeof q==="function")){typeof X!=="function"&&X!==null&&($ in _?_[$]=null:_.hasAttribute($)&&_.removeAttribute($)),_.addEventListener(J,q,G);break _}$ in _?_[$]=q:q===!0?_.setAttribute($,""):T0(_,$,q)}}}function j2(_,J,$){switch(nG(J,$),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":X0("error",_),X0("load",_);var q=!1,G=!1,X;for(X in $)if($.hasOwnProperty(X)){var z=$[X];if(z!=null)switch(X){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:P0(_,J,X,z,$,null)}}G&&P0(_,J,"srcSet",$.srcSet,$,null),q&&P0(_,J,"src",$.src,$,null);return;case"input":w0("input",$),X0("invalid",_);var L=X=z=G=null,w=null,S=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":w=e;break;case"defaultChecked":S=e;break;case"value":X=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:P0(_,J,q,e,$,null)}}rJ(_,$),C9(_,X,L,w,S,z,G,!1);return;case"select":w0("select",$),X0("invalid",_),q=z=X=null;for(G in $)if($.hasOwnProperty(G)&&(L=$[G],L!=null))switch(G){case"value":X=L;break;case"defaultValue":z=L;break;case"multiple":q=L;default:P0(_,J,G,L,$,null)}tJ(_,$),J=X,$=z,_.multiple=!!q,J!=null?E3(_,!!q,J,!1):$!=null&&E3(_,!!q,$,!0);return;case"textarea":w0("textarea",$),X0("invalid",_),X=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":X=L;break;case"dangerouslySetInnerHTML":if(L!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:P0(_,J,z,L,$,null)}oJ(_,$),f9(_,q,G,X);return;case"option":aJ(_,$);for(w in $)if($.hasOwnProperty(w)&&(q=$[w],q!=null))switch(w){case"selected":_.selected=q&&typeof q!=="function"&&typeof q!=="symbol";break;default:P0(_,J,w,q,$,null)}return;case"dialog":X0("beforetoggle",_),X0("toggle",_),X0("cancel",_),X0("close",_);break;case"iframe":case"object":X0("load",_);break;case"video":case"audio":for(q=0;q<_J.length;q++)X0(_J[q],_);break;case"image":X0("error",_),X0("load",_);break;case"details":X0("toggle",_);break;case"embed":case"source":case"link":X0("error",_),X0("load",_);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(S in $)if($.hasOwnProperty(S)&&(q=$[S],q!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:P0(_,J,S,q,$,null)}return;default:if(u9(J)){for(e in $)$.hasOwnProperty(e)&&(q=$[e],q!==void 0&&eG(_,J,e,q,$,void 0));return}}for(L in $)$.hasOwnProperty(L)&&(q=$[L],q!=null&&P0(_,J,L,q,$,null))}function VI(_,J,$,q){switch(nG(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,X=null,z=null,L=null,w=null,S=null,e=null;for(Z1 in $){var _1=$[Z1];if($.hasOwnProperty(Z1)&&_1!=null)switch(Z1){case"checked":break;case"value":break;case"defaultValue":w=_1;default:q.hasOwnProperty(Z1)||P0(_,J,Z1,null,q,_1)}}for(var r in q){var Z1=q[r];if(_1=$[r],q.hasOwnProperty(r)&&(Z1!=null||_1!=null))switch(r){case"type":X=Z1;break;case"name":G=Z1;break;case"checked":S=Z1;break;case"defaultChecked":e=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&&P0(_,J,r,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||QA||(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"),QA=!0),_7(_,z,L,w,S,e,X,G);return;case"select":Z1=z=L=r=null;for(X in $)if(w=$[X],$.hasOwnProperty(X)&&w!=null)switch(X){case"value":break;case"multiple":Z1=w;default:q.hasOwnProperty(X)||P0(_,J,X,null,q,w)}for(G in q)if(X=q[G],w=$[G],q.hasOwnProperty(G)&&(X!=null||w!=null))switch(G){case"value":r=X;break;case"defaultValue":L=X;break;case"multiple":z=X;default:X!==w&&P0(_,J,G,X,q,w)}q=L,J=z,$=Z1,r!=null?E3(_,!!J,r,!1):!!$!==!!J&&(q!=null?E3(_,!!J,q,!0):E3(_,!!J,J?[]:"",!1));return;case"textarea":Z1=r=null;for(L in $)if(G=$[L],$.hasOwnProperty(L)&&G!=null&&!q.hasOwnProperty(L))switch(L){case"value":break;case"children":break;default:P0(_,J,L,null,q,G)}for(z in q)if(G=q[z],X=$[z],q.hasOwnProperty(z)&&(G!=null||X!=null))switch(z){case"value":r=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!==X&&P0(_,J,z,G,q,X)}nJ(_,r,Z1);return;case"option":for(var f1 in $)if(r=$[f1],$.hasOwnProperty(f1)&&r!=null&&!q.hasOwnProperty(f1))switch(f1){case"selected":_.selected=!1;break;default:P0(_,J,f1,null,q,r)}for(w in q)if(r=q[w],Z1=$[w],q.hasOwnProperty(w)&&r!==Z1&&(r!=null||Z1!=null))switch(w){case"selected":_.selected=r&&typeof r!=="function"&&typeof r!=="symbol";break;default:P0(_,J,w,r,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 $)r=$[V1],$.hasOwnProperty(V1)&&r!=null&&!q.hasOwnProperty(V1)&&P0(_,J,V1,null,q,r);for(S in q)if(r=q[S],Z1=$[S],q.hasOwnProperty(S)&&r!==Z1&&(r!=null||Z1!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(r!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:P0(_,J,S,r,q,Z1)}return;default:if(u9(J)){for(var v0 in $)r=$[v0],$.hasOwnProperty(v0)&&r!==void 0&&!q.hasOwnProperty(v0)&&eG(_,J,v0,void 0,q,r);for(e in q)r=q[e],Z1=$[e],!q.hasOwnProperty(e)||r===Z1||r===void 0&&Z1===void 0||eG(_,J,e,r,q,Z1);return}}for(var K0 in $)r=$[K0],$.hasOwnProperty(K0)&&r!=null&&!q.hasOwnProperty(K0)&&P0(_,J,K0,null,q,r);for(_1 in q)r=q[_1],Z1=$[_1],!q.hasOwnProperty(_1)||r===Z1||r==null&&Z1==null||P0(_,J,_1,r,q,Z1)}function ZW(_){switch(_){case"class":return"className";case"for":return"htmlFor";default:return _}}function _Z(_){var J={};_=_.style;for(var $=0;$<_.length;$++){var q=_[$];J[q]=_.getPropertyValue(q)}return J}function FW(_,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="",X;for(X in J)if(J.hasOwnProperty(X)){var z=J[X];z!=null&&typeof z!=="boolean"&&z!==""&&(X.indexOf("--")===0?(r1(z,X),q+=G+X+":"+(""+z).trim()):typeof z!=="number"||z===0||MB.has(X)?(r1(z,X),q+=G+X.replace(zB,"-$1").toLowerCase().replace(WB,"-ms-")+":"+(""+z).trim()):q+=G+X.replace(zB,"-$1").toLowerCase().replace(WB,"-ms-")+":"+z+"px",G=";")}q=q||null,J=_.getAttribute("style"),J!==q&&(q=n3(q),n3(J)!==q&&($.style=_Z(_)))}}function v5(_,J,$,q,G,X){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(M1(q,J),_===""+q)return}T2(J,_,q,X)}function XW(_,J,$,q,G,X){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}T2(J,_,q,X)}function JZ(_,J,$,q,G,X){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(M1(q,$),_===""+q)return}T2(J,_,q,X)}function KW(_,J,$,q,G,X){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)&&(M1(q,J),_===""+q))return}T2(J,_,q,X)}function $Z(_,J,$,q,G,X){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(M1(q,J),$=b9(""+q),_===$)return}T2(J,_,q,X)}function HW(_,J,$,q){for(var G={},X=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:X.add(z[L].name)}if(u9(J)){for(var w in $)if($.hasOwnProperty(w)){var S=$[w];if(S!=null){if($8.hasOwnProperty(w))typeof S!=="function"&&j4(w,S);else if($.suppressHydrationWarning!==!0)switch(w){case"children":typeof S!=="string"&&typeof S!=="number"||T2("children",_.textContent,S,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=_.innerHTML,S=S?S.__html:void 0,S!=null&&(S=UW(_,S),T2(w,z,S,G));continue;case"style":X.delete(w),FW(_,S,G);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":X.delete(w.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",w);continue;case"className":X.delete("class"),z=j5(_,"class",S),T2("className",z,S,G);continue;default:q.context===I3&&J!=="svg"&&J!=="math"?X.delete(w.toLowerCase()):X.delete(w),z=j5(_,w,S),T2(w,z,S,G)}}}}else for(S in $)if($.hasOwnProperty(S)&&(w=$[S],w!=null)){if($8.hasOwnProperty(S))typeof w!=="function"&&j4(S,w);else if($.suppressHydrationWarning!==!0)switch(S){case"children":typeof w!=="string"&&typeof w!=="number"||T2("children",_.textContent,w,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=_.innerHTML,w=w?w.__html:void 0,w!=null&&(w=UW(_,w),z!==w&&(G[S]={__html:z}));continue;case"className":v5(_,S,"class",w,X,G);continue;case"tabIndex":v5(_,S,"tabindex",w,X,G);continue;case"style":X.delete(S),FW(_,w,G);continue;case"multiple":X.delete(S),T2(S,_.multiple,w,G);continue;case"muted":X.delete(S),T2(S,_.muted,w,G);continue;case"autoFocus":X.delete("autofocus"),T2(S,_.autofocus,w,G);continue;case"data":if(J!=="object"){X.delete(S),z=_.getAttribute("data"),T2(S,z,w,G);continue}case"src":case"href":if(!(w!==""||J==="a"&&S==="href"||J==="object"&&S==="data")){S==="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.',S,S):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.',S,S);continue}$Z(_,S,S,w,X,G);continue;case"action":case"formAction":if(z=_.getAttribute(S),typeof w==="function"){X.delete(S.toLowerCase()),S==="formAction"?(X.delete("name"),X.delete("formenctype"),X.delete("formmethod"),X.delete("formtarget")):(X.delete("enctype"),X.delete("method"),X.delete("target"));continue}else if(z===lP){X.delete(S.toLowerCase()),T2(S,"function",w,G);continue}$Z(_,S,S.toLowerCase(),w,X,G);continue;case"xlinkHref":$Z(_,S,"xlink:href",w,X,G);continue;case"contentEditable":JZ(_,S,"contenteditable",w,X,G);continue;case"spellCheck":JZ(_,S,"spellcheck",w,X,G);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":JZ(_,S,S,w,X,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":XW(_,S,S.toLowerCase(),w,X,G);continue;case"capture":case"download":_:{L=_;var e=z=S,_1=G;if(X.delete(e),L=L.getAttribute(e),L===null)switch(typeof w){case"undefined":case"function":case"symbol":break _;default:if(w===!1)break _}else if(w!=null)switch(typeof w){case"function":case"symbol":break;case"boolean":if(w===!0&&L==="")break _;break;default:if(M1(w,z),L===""+w)break _}T2(z,L,w,_1)}continue;case"cols":case"rows":case"size":case"span":_:{if(L=_,e=z=S,_1=G,X.delete(e),L=L.getAttribute(e),L===null)switch(typeof w){case"undefined":case"function":case"symbol":case"boolean":break _;default:if(isNaN(w)||1>w)break _}else if(w!=null)switch(typeof w){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(w)||1>w)&&(M1(w,z),L===""+w))break _}T2(z,L,w,_1)}continue;case"rowSpan":KW(_,S,"rowspan",w,X,G);continue;case"start":KW(_,S,S,w,X,G);continue;case"xHeight":v5(_,S,"x-height",w,X,G);continue;case"xlinkActuate":v5(_,S,"xlink:actuate",w,X,G);continue;case"xlinkArcrole":v5(_,S,"xlink:arcrole",w,X,G);continue;case"xlinkRole":v5(_,S,"xlink:role",w,X,G);continue;case"xlinkShow":v5(_,S,"xlink:show",w,X,G);continue;case"xlinkTitle":v5(_,S,"xlink:title",w,X,G);continue;case"xlinkType":v5(_,S,"xlink:type",w,X,G);continue;case"xmlBase":v5(_,S,"xml:base",w,X,G);continue;case"xmlLang":v5(_,S,"xml:lang",w,X,G);continue;case"xmlSpace":v5(_,S,"xml:space",w,X,G);continue;case"inert":w!==""||Gq[S]||(Gq[S]=!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.",S)),XW(_,S,S,w,X,G);continue;default:if(!(2<S.length)||S[0]!=="o"&&S[0]!=="O"||S[1]!=="n"&&S[1]!=="N"){L=YH(S),z=!1,q.context===I3&&J!=="svg"&&J!=="math"?X.delete(L.toLowerCase()):(e=S.toLowerCase(),e=MQ.hasOwnProperty(e)?MQ[e]||null:null,e!==null&&e!==S&&(z=!0,X.delete(e)),X.delete(L));_:if(e=_,_1=L,L=w,n4(_1))if(e.hasAttribute(_1))e=e.getAttribute(_1),M1(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||T2(S,L,w,G)}}}return 0<X.size&&$.suppressHydrationWarning!==!0&&vI(_,X,G),Object.keys(G).length===0?null:G}function yI(_,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 YW(_){switch(_){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function kI(){if(typeof performance.getEntriesByType==="function"){for(var _=0,J=0,$=performance.getEntriesByType("resource"),q=0;q<$.length;q++){var G=$[q],X=G.transferSize,z=G.initiatorType,L=G.duration;if(X&&L&&YW(z)){z=0,L=G.responseEnd;for(q+=1;q<$.length;q++){var w=$[q],S=w.startTime;if(S>L)break;var{transferSize:e,initiatorType:_1}=w;e&&YW(_1)&&(w=w.responseEnd,z+=e*(w<L?1:(L-S)/(w-S)))}if(--q,J+=8*(X+z)/(G.duration/1000),_++,10<_)break}}if(0<_)return J/_/1e6}return navigator.connection&&(_=navigator.connection.downlink,typeof _==="number")?_:5}function _Q(_){return _.nodeType===9?_:_.ownerDocument}function zW(_){switch(_){case w7:return e7;case AQ:return Fq;default:return I3}}function WW(_,J){if(_===I3)switch(J){case"svg":return e7;case"math":return Fq;default:return I3}return _===e7&&J==="foreignObject"?I3:_}function QZ(_,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 DI(){var _=window.event;if(_&&_.type==="popstate"){if(_===xF)return!1;return xF=_,!0}return xF=null,!1}function Z_(){var _=window.event;return _&&_!==QJ?_.type:null}function F_(){var _=window.event;return _&&_!==QJ?_.timeStamp:-1.1}function uI(_){setTimeout(function(){throw _})}function bI(_,J,$){switch(J){case"button":case"input":case"select":case"textarea":$.autoFocus&&_.focus();break;case"img":$.src?_.src=$.src:$.srcSet&&(_.srcset=$.srcSet)}}function EI(){}function hI(_,J,$,q){VI(_,J,$,q),_[l2]=q}function BW(_){g6(_,"")}function xI(_,J,$){_.nodeValue=$}function LW(_){if(!_.__reactWarnedAboutChildrenConflict){var J=_[l2]||null;if(J!==null){var $=N1(_);$!==null&&(typeof J.children==="string"||typeof J.children==="number"?(_.__reactWarnedAboutChildrenConflict=!0,A1($,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,A1($,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function e3(_){return _==="head"}function mI(_,J){_.removeChild(J)}function gI(_,J){(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_).removeChild(J)}function AW(_,J){var $=J,q=0;do{var G=$.nextSibling;if(_.removeChild($),G&&G.nodeType===8)if($=G.data,$===$J||$===Zq){if(q===0){_.removeChild(G),A7(J);return}q--}else if($===JJ||$===w6||$===O8||$===n7||$===R8)q++;else if($===dP)X_(_.ownerDocument.documentElement);else if($===aP){$=_.ownerDocument.head,X_($);for(var X=$.firstChild;X;){var{nextSibling:z,nodeName:L}=X;X[L_]||L==="SCRIPT"||L==="STYLE"||L==="LINK"&&X.rel.toLowerCase()==="stylesheet"||$.removeChild(X),X=z}}else $===rP&&X_(_.ownerDocument.body);$=G}while($);A7(J)}function MW(_,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,$===$J)if(_===0)break;else _--;else $!==JJ&&$!==w6&&$!==O8&&$!==n7||_++;$=q}while($)}function pI(_){MW(_,!0)}function cI(_){_=_.style,typeof _.setProperty==="function"?_.setProperty("display","none","important"):_.display="none"}function lI(_){_.nodeValue=""}function iI(_){MW(_,!1)}function dI(_,J){J=J[sP],J=J!==void 0&&J!==null&&J.hasOwnProperty("display")?J.display:null,_.style.display=J==null||typeof J==="boolean"?"":(""+J).trim()}function rI(_,J){_.nodeValue=J}function qZ(_){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":qZ($),I1($);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if($.rel.toLowerCase()==="stylesheet")continue}_.removeChild($)}}function aI(_,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"){M1(G.name,"name");var X=G.name==null?null:""+G.name;if(G.type==="hidden"&&_.getAttribute("name")===X)return _}else return _;else if(!_[L_])switch(J){case"meta":if(!_.hasAttribute("itemprop"))break;return _;case"link":if(X=_.getAttribute("rel"),X==="stylesheet"&&_.hasAttribute("data-precedence"))break;else if(X!==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(X=_.getAttribute("src"),(X!==(G.src==null?null:G.src)||_.getAttribute("type")!==(G.type==null?null:G.type)||_.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin))&&X&&_.hasAttribute("async")&&!_.hasAttribute("itemprop"))break;return _;default:return _}if(_=B5(_.nextSibling),_===null)break}return null}function sI(_,J,$){if(J==="")return null;for(;_.nodeType!==3;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!$)return null;if(_=B5(_.nextSibling),_===null)return null}return _}function TW(_,J){for(;_.nodeType!==8;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!J)return null;if(_=B5(_.nextSibling),_===null)return null}return _}function UZ(_){return _.data===w6||_.data===O8}function GZ(_){return _.data===n7||_.data===w6&&_.ownerDocument.readyState!==FA}function tI(_,J){var $=_.ownerDocument;if(_.data===O8)_._reactRetry=J;else if(_.data!==w6||$.readyState!==FA)J();else{var q=function(){J(),$.removeEventListener("DOMContentLoaded",q)};$.addEventListener("DOMContentLoaded",q),_._reactRetry=q}}function B5(_){for(;_!=null;_=_.nextSibling){var J=_.nodeType;if(J===1||J===3)break;if(J===8){if(J=_.data,J===JJ||J===n7||J===w6||J===O8||J===R8||J===bF||J===ZA)break;if(J===$J||J===Zq)return null}}return _}function RW(_){if(_.nodeType===1){for(var J=_.nodeName.toLowerCase(),$={},q=_.attributes,G=0;G<q.length;G++){var X=q[G];$[ZW(X.name)]=X.name.toLowerCase()==="style"?_Z(_):X.value}return{type:J,props:$}}return _.nodeType===8?_.data===R8?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:_.nodeValue}function OW(_,J,$){return $===null||$[iP]!==!0?(_.nodeValue===J?_=null:(J=n3(J),_=n3(_.nodeValue)===J?null:_.nodeValue),_):null}function ZZ(_){_=_.nextSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===$J||$===Zq){if(J===0)return B5(_.nextSibling);J--}else $!==JJ&&$!==n7&&$!==w6&&$!==O8&&$!==R8||J++}_=_.nextSibling}return null}function IW(_){_=_.previousSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===JJ||$===n7||$===w6||$===O8||$===R8){if(J===0)return _;J--}else $!==$J&&$!==Zq||J++}_=_.previousSibling}return null}function oI(_){A7(_)}function nI(_){A7(_)}function eI(_){A7(_)}function wW(_,J,$,q,G){switch(G&&k9(_,q.ancestorInfo),J=_Q($),_){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 _w(_,J,$,q){if(!$[Q6]&&N1($)){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]);j2($,_,J),$[v2]=q,$[l2]=J}function X_(_){for(var J=_.attributes;J.length;)_.removeAttributeNode(J[0]);I1(_)}function JQ(_){return typeof _.getRootNode==="function"?_.getRootNode():_.nodeType===9?_:_.ownerDocument}function PW(_,J,$){var q=_9;if(q&&typeof J==="string"&&J){var G=_5(J);G='link[rel="'+_+'"][href="'+G+'"]',typeof $==="string"&&(G+='[crossorigin="'+$+'"]'),WA.has(G)||(WA.add(G),_={rel:_,crossOrigin:$,href:J},q.querySelector(G)===null&&(J=q.createElement("link"),j2(J,"link",_),v1(J),q.head.appendChild(J)))}}function NW(_,J,$,q){var G=(G=J6.current)?JQ(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"?($=B7($.href),J=y1(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"){_=B7($.href);var X=y1(G).hoistableStyles,z=X.get(_);if(!z&&(G=G.ownerDocument||G,z={type:"stylesheet",instance:null,count:0,state:{loading:w8,preload:null}},X.set(_,z),(X=G.querySelector(K_(_)))&&!X._p&&(z.instance=X,z.state.loading=qJ|g5),!p5.has(_))){var L={rel:"preload",as:"style",href:$.href,crossOrigin:$.crossOrigin,integrity:$.integrity,media:$.media,hrefLang:$.hrefLang,referrerPolicy:$.referrerPolicy};p5.set(_,L),X||Jw(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`,x(_))})}function S4(_){_!==o7&&_.next===null&&(o7===null?_q=o7=_:o7=o7.next=_),Jq=!0,Y1.actQueue!==null?VF||(VF=!0,ez()):jF||(jF=!0,ez())}function U_(_,J){if(!yF&&Jq){yF=!0;do{var $=!1;for(var q=_q;q!==null;){if(!J)if(_!==0){var G=q.pendingLanes;if(G===0)var X=0;else{var{suspendedLanes:z,pingedLanes:B}=q;X=(1<<31-c2(42|_)+1)-1,X&=G&~(z&~B),X=X&201326741?X&201326741|1:X?X|2:0}X!==0&&($=!0,nz(q,X))}else X=J0,X=N2(q,q===C0?X:0,q.cancelPendingCommit!==null||q.timeoutHandle!==I8),(X&3)===0||A2(q,X)||($=!0,nz(q,X));q=q.next}}while($);yF=!1}}function fI(){QJ=window.event,dG()}function dG(){Jq=VF=jF=!1;var _=0;w6!==0&&DI()&&(_=w6);for(var J=R2(),$=null,q=_q;q!==null;){var G=q.next,X=tz(q,J);if(X===0)q.next=null,$===null?_q=G:$.next=G,G===null&&(o7=$);else if($=q,_!==0||(X&3)!==0)Jq=!0;q=G}Z2!==O6&&Z2!==oQ||U_(_,!1),w6!==0&&(w6=0)}function tz(_,J){for(var{suspendedLanes:$,pingedLanes:q,expirationTimes:G}=_,X=_.pendingLanes&-62914561;0<X;){var z=31-c2(X),B=1<<z,w=G[z];if(w===-1){if((B&$)===0||(B&q)!==0)G[z]=C2(B,J)}else w<=J&&(_.expiredLanes|=B);X&=~B}if(J=C0,$=J0,$=N2(_,_===J?$:0,_.cancelPendingCommit!==null||_.timeoutHandle!==I8),q=_.callbackNode,$===0||_===J&&(O0===L8||O0===B8)||_.cancelPendingCommit!==null)return q!==null&&rG(q),_.callbackNode=null,_.callbackPriority=0;if(($&3)===0||A2(_,$)){if(J=$&-$,J!==_.callbackPriority||Y1.actQueue!==null&&q!==kF)rG(q);else return J;switch(I($)){case M5:case e5:$=SZ;break;case u4:$=R7;break;case LQ:$=vZ;break;default:$=R7}return q=oz.bind(null,_),Y1.actQueue!==null?(Y1.actQueue.push(q),$=kF):$=CZ($,q),_.callbackPriority=J,_.callbackNode=$,J}return q!==null&&rG(q),_.callbackPriority=2,_.callbackNode=null,2}function oz(_,J){if(kQ=yQ=!1,QJ=window.event,Z2!==O6&&Z2!==oQ)return _.callbackNode=null,_.callbackPriority=0,null;var $=_.callbackNode;if(U4===tQ&&(U4=PF),Q_()&&_.callbackNode!==$)return null;var q=J0;if(q=N2(_,_===C0?q:0,_.cancelPendingCommit!==null||_.timeoutHandle!==I8),q===0)return null;return jz(_,q,J),tz(_,R2()),_.callbackNode!=null&&_.callbackNode===$?oz.bind(null,_):null}function nz(_,J){if(Q_())return null;yQ=kQ,kQ=!1,jz(_,J,!0)}function rG(_){_!==kF&&_!==null&&Bw(_)}function ez(){Y1.actQueue!==null&&Y1.actQueue.push(function(){return dG(),null}),oP(function(){(Y0&(W2|I5))!==w2?CZ(fZ,fI):dG()})}function aG(){if(w6===0){var _=F8;_===0&&(_=YQ,YQ<<=1,(YQ&261888)===0&&(YQ=256)),w6=_}return w6}function _W(_){if(_==null||typeof _==="symbol"||typeof _==="boolean")return null;if(typeof _==="function")return _;return M1(_,"action"),b9(""+_)}function JW(_,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 SI(_,J,$,q,G){if(J==="submit"&&$&&$.stateNode===G){var X=_W((G[l2]||null).action),z=q.submitter;z&&(J=(J=z[l2]||null)?_W(J.formAction):z.getAttribute("formAction"),J!==null&&(X=J,z=null));var B=new RQ("action","action",null,q,G);_.push({event:B,listeners:[{instance:null,listener:function(){if(q.defaultPrevented){if(w6!==0){var w=z?JW(G,z):new FormData(G),S={pending:!0,data:w,method:G.method,action:X};Object.freeze(S),WG($,S,null,w)}}else typeof X==="function"&&(B.preventDefault(),w=z?JW(G,z):new FormData(G),S={pending:!0,data:w,method:G.method,action:X},Object.freeze(S),WG($,S,X,w))},currentTarget:G}]})}}function n$(_,J,$){_.currentTarget=$;try{J(_)}catch(q){iZ(q)}_.currentTarget=null}function $W(_,J){J=(J&4)!==0;for(var $=0;$<_.length;$++){var q=_[$];_:{var G=void 0,X=q.event;if(q=q.listeners,J)for(var z=q.length-1;0<=z;z--){var B=q[z],w=B.instance,S=B.currentTarget;if(B=B.listener,w!==G&&X.isPropagationStopped())break _;w!==null?A1(w,n$,X,B,S):n$(X,B,S),G=w}else for(z=0;z<q.length;z++){if(B=q[z],w=B.instance,S=B.currentTarget,B=B.listener,w!==G&&X.isPropagationStopped())break _;w!==null?A1(w,n$,X,B,S):n$(X,B,S),G=w}}}}function X0(_,J){DF.has(_)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',_);var $=J[jZ];$===void 0&&($=J[jZ]=new Set);var q=_+"__bubble";$.has(q)||(QW(J,_,2,!1),$.add(q))}function sG(_,J,$){DF.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),QW($,_,q,J)}function tG(_){if(!_[$q]){_[$q]=!0,eW.forEach(function($){$!=="selectionchange"&&(DF.has($)||sG($,!1,_),sG($,!0,_))});var J=_.nodeType===9?_:_.ownerDocument;J===null||J[$q]||(J[$q]=!0,sG("selectionchange",!1,J))}}function QW(_,J,$,q){switch(bW(J)){case M5:var G=Fw;break;case e5:G=Xw;break;default:G=YZ}$=G.bind(null,J,$,_),G=void 0,!uZ||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 oG(_,J,$,q,G){var X=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 B=q.stateNode.containerInfo;if(B===G)break;if(z===4)for(z=q.return;z!==null;){var w=z.tag;if((w===3||w===4)&&z.stateNode.containerInfo===G)return;z=z.return}for(;B!==null;){if(z=R1(B),z===null)return;if(w=z.tag,w===5||w===6||w===26||w===27){q=X=z;continue _}B=B.parentNode}}q=q.return}WH(function(){var S=X,e=TU($),_1=[];_:{var r=bL.get(_);if(r!==void 0){var Z1=RQ,f1=_;switch(_){case"keypress":if(G$($)===0)break _;case"keydown":case"keyup":Z1=QP;break;case"focusin":f1="focus",Z1=xZ;break;case"focusout":f1="blur",Z1=xZ;break;case"beforeblur":case"afterblur":Z1=xZ;break;case"click":if($.button===2)break _;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z1=IL;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z1=iw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z1=GP;break;case yL:case kL:case DL:Z1=aw;break;case uL:Z1=FP;break;case"scroll":case"scrollend":Z1=cw;break;case"wheel":Z1=KP;break;case"copy":case"cut":case"paste":Z1=tw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z1=PL;break;case"toggle":case"beforetoggle":Z1=YP}var V1=(J&4)!==0,j0=!V1&&(_==="scroll"||_==="scrollend"),K0=V1?r!==null?r+"Capture":null:r;V1=[];for(var d=S,s;d!==null;){var n=d;if(s=n.stateNode,n=n.tag,n!==5&&n!==26&&n!==27||s===null||K0===null||(n=E9(d,K0),n!=null&&V1.push(G_(d,n,s))),j0)break;d=d.return}0<V1.length&&(r=new Z1(r,f1,null,$,e),_1.push({event:r,listeners:V1}))}}if((J&7)===0){_:{if(r=_==="mouseover"||_==="pointerover",Z1=_==="mouseout"||_==="pointerout",r&&$!==A_&&(f1=$.relatedTarget||$.fromElement)&&(R1(f1)||f1[q6]))break _;if(Z1||r){if(r=e.window===e?e:(r=e.ownerDocument)?r.defaultView||r.parentWindow:window,Z1){if(f1=$.relatedTarget||$.toElement,Z1=S,f1=f1?R1(f1):null,f1!==null&&(j0=C(f1),V1=f1.tag,f1!==j0||V1!==5&&V1!==27&&V1!==6))f1=null}else Z1=null,f1=S;if(Z1!==f1){if(V1=IL,n="onMouseLeave",K0="onMouseEnter",d="mouse",_==="pointerout"||_==="pointerover")V1=PL,n="onPointerLeave",K0="onPointerEnter",d="pointer";if(j0=Z1==null?r:C1(Z1),s=f1==null?r:C1(f1),r=new V1(n,d+"leave",Z1,$,e),r.target=j0,r.relatedTarget=s,n=null,R1(e)===S&&(V1=new V1(K0,d+"enter",f1,$,e),V1.target=s,V1.relatedTarget=j0,n=V1),j0=n,Z1&&f1)J:{V1=vI,K0=Z1,d=f1,s=0;for(n=K0;n;n=V1(n))s++;n=0;for(var B1=d;B1;B1=V1(B1))n++;for(;0<s-n;)K0=V1(K0),s--;for(;0<n-s;)d=V1(d),n--;for(;s--;){if(K0===d||d!==null&&K0===d.alternate){V1=K0;break J}K0=V1(K0),d=V1(d)}V1=null}else V1=null;Z1!==null&&qW(_1,r,Z1,V1,!1),f1!==null&&j0!==null&&qW(_1,j0,f1,V1,!0)}}}_:{if(r=S?C1(S):window,Z1=r.nodeName&&r.nodeName.toLowerCase(),Z1==="select"||Z1==="input"&&r.type==="file")var S1=OH;else if(TH(r))if(jL)S1=gO;else{S1=xO;var s1=hO}else Z1=r.nodeName,!Z1||Z1.toLowerCase()!=="input"||r.type!=="checkbox"&&r.type!=="radio"?S&&u9(S.elementType)&&(S1=OH):S1=mO;if(S1&&(S1=S1(_,S))){RH(_1,S1,$,e);break _}s1&&s1(_,r,S),_==="focusout"&&S&&r.type==="number"&&S.memoizedProps.value!=null&&J7(r,"number",r.value)}switch(s1=S?C1(S):window,_){case"focusin":if(TH(s1)||s1.contentEditable==="true")S7=s1,gZ=S,P_=null;break;case"focusout":P_=gZ=S7=null;break;case"mousedown":pZ=!0;break;case"contextmenu":case"mouseup":case"dragend":pZ=!1,SH(_1,$,e);break;case"selectionchange":if(BP)break;case"keydown":case"keyup":SH(_1,$,e)}var x1;if(mZ)_:{switch(_){case"compositionstart":var E1="onCompositionStart";break _;case"compositionend":E1="onCompositionEnd";break _;case"compositionupdate":E1="onCompositionUpdate";break _}E1=void 0}else f7?AH(_,$)&&(E1="onCompositionEnd"):_==="keydown"&&$.keyCode===NL&&(E1="onCompositionStart");if(E1&&(CL&&$.locale!=="ko"&&(f7||E1!=="onCompositionStart"?E1==="onCompositionEnd"&&f7&&(x1=LH()):(U6=e,bZ=("value"in U6)?U6.value:U6.textContent,f7=!0)),s1=e$(S,E1),0<s1.length&&(E1=new wL(E1,_,null,$,e),_1.push({event:E1,listeners:s1}),x1?E1.data=x1:(x1=MH($),x1!==null&&(E1.data=x1)))),x1=WP?DO(_,$):uO(_,$))E1=e$(S,"onBeforeInput"),0<E1.length&&(s1=new nw("onBeforeInput","beforeinput",null,$,e),_1.push({event:s1,listeners:E1}),s1.data=x1);SI(_1,_,S,$,e)}$W(_1,J)})}function G_(_,J,$){return{instance:_,listener:J,currentTarget:$}}function e$(_,J){for(var $=J+"Capture",q=[];_!==null;){var G=_,X=G.stateNode;if(G=G.tag,G!==5&&G!==26&&G!==27||X===null||(G=E9(_,$),G!=null&&q.unshift(G_(_,G,X)),G=E9(_,J),G!=null&&q.push(G_(_,G,X))),_.tag===3)return q;_=_.return}return[]}function vI(_){if(_===null)return null;do _=_.return;while(_&&_.tag!==5&&_.tag!==27);return _?_:null}function qW(_,J,$,q,G){for(var X=J._reactName,z=[];$!==null&&$!==q;){var B=$,w=B.alternate,S=B.stateNode;if(B=B.tag,w!==null&&w===q)break;B!==5&&B!==26&&B!==27||S===null||(w=S,G?(S=E9($,X),S!=null&&z.unshift(G_($,S,w))):G||(S=E9($,X),S!=null&&z.push(G_($,S,w)))),$=$.return}z.length!==0&&_.push({event:J,listeners:z})}function nG(_,J){jO(_,J),_!=="input"&&_!=="textarea"&&_!=="select"||J==null||J.value!==null||RL||(RL=!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:$8,possibleRegistrationNames:VZ};u9(_)||typeof J.is==="string"||yO(_,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 T2(_,J,$,q){J!==$&&($=e3($),e3(J)!==$&&(q[_]=J))}function jI(_,J,$){J.forEach(function(q){$[ZW(q)]=q==="style"?_Z(_):_.getAttribute(q)})}function v4(_,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 UW(_,J){return _=_.namespaceURI===AQ||_.namespaceURI===w7?_.ownerDocument.createElementNS(_.namespaceURI,_.tagName):_.ownerDocument.createElement(_.tagName),_.innerHTML=J,_.innerHTML}function e3(_){return g1(_)&&(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.",D1(_)),h1(_)),(typeof _==="string"?_:""+_).replace(pP,`
|
|
176
|
+
`).replace(cP,"")}function GW(_,J){return J=e3(J),e3(_)===J?!0:!1}function P0(_,J,$,q,G,X){switch($){case"children":if(typeof q==="string")p3(q,J,!1),J==="body"||J==="textarea"&&q===""||g6(_,q);else if(typeof q==="number"||typeof q==="bigint")p3(""+q,J,!1),J!=="body"&&g6(_,""+q);break;case"className":n8(_,"class",q);break;case"tabIndex":n8(_,"tabindex",q);break;case"dir":case"role":case"viewBox":case"width":case"height":n8(_,$,q);break;case"style":HH(_,q,X);break;case"data":if(J!=="object"){n8(_,"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}M1(q,$),q=b9(""+q),_.setAttribute($,q);break;case"action":case"formAction":if(q!=null&&(J==="form"?$==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof q==="function"&&(G.encType==null&&G.method==null||Uq||(Uq=!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||qq||(qq=!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"||Qq?J!=="button"||G.type==null||G.type==="submit"||Qq?typeof q==="function"&&(G.name==null||UA||(UA=!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||Uq||(Uq=!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||qq||(qq=!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."))):(Qq=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Qq=!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 X==="function"&&($==="formAction"?(J!=="input"&&P0(_,J,"name",G.name,G,null),P0(_,J,"formEncType",G.formEncType,G,null),P0(_,J,"formMethod",G.formMethod,G,null),P0(_,J,"formTarget",G.formTarget,G,null)):(P0(_,J,"encType",G.encType,G,null),P0(_,J,"method",G.method,G,null),P0(_,J,"target",G.target,G,null)));if(q==null||typeof q==="symbol"||typeof q==="boolean"){_.removeAttribute($);break}M1(q,$),q=b9(""+q),_.setAttribute($,q);break;case"onClick":q!=null&&(typeof q!=="function"&&v4($,q),_.onclick=_3);break;case"onScroll":q!=null&&(typeof q!=="function"&&v4($,q),X0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&v4($,q),X0("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}M1(q,$),$=b9(""+q),_.setAttributeNS(T8,"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"?(M1(q,$),_.setAttribute($,""+q)):_.removeAttribute($);break;case"inert":q!==""||Gq[$]||(Gq[$]=!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"?(M1(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?(M1(q,$),_.setAttribute($,q)):_.removeAttribute($);break;case"rowSpan":case"start":q==null||typeof q==="function"||typeof q==="symbol"||isNaN(q)?_.removeAttribute($):(M1(q,$),_.setAttribute($,q));break;case"popover":X0("beforetoggle",_),X0("toggle",_),T0(_,"popover",q);break;case"xlinkActuate":a5(_,T8,"xlink:actuate",q);break;case"xlinkArcrole":a5(_,T8,"xlink:arcrole",q);break;case"xlinkRole":a5(_,T8,"xlink:role",q);break;case"xlinkShow":a5(_,T8,"xlink:show",q);break;case"xlinkTitle":a5(_,T8,"xlink:title",q);break;case"xlinkType":a5(_,T8,"xlink:type",q);break;case"xmlBase":a5(_,uF,"xml:base",q);break;case"xmlLang":a5(_,uF,"xml:lang",q);break;case"xmlSpace":a5(_,uF,"xml:space",q);break;case"is":X!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),T0(_,"is",q);break;case"innerText":case"textContent":break;case"popoverTarget":GA||q==null||typeof q!=="object"||(GA=!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"?($=YH($),T0(_,$,q)):$8.hasOwnProperty($)&&q!=null&&typeof q!=="function"&&v4($,q)}}function eG(_,J,$,q,G,X){switch($){case"style":HH(_,q,X);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"?g6(_,q):(typeof q==="number"||typeof q==="bigint")&&g6(_,""+q);break;case"onScroll":q!=null&&(typeof q!=="function"&&v4($,q),X0("scroll",_));break;case"onScrollEnd":q!=null&&(typeof q!=="function"&&v4($,q),X0("scrollend",_));break;case"onClick":q!=null&&(typeof q!=="function"&&v4($,q),_.onclick=_3);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if($8.hasOwnProperty($))q!=null&&typeof q!=="function"&&v4($,q);else _:{if($[0]==="o"&&$[1]==="n"&&(G=$.endsWith("Capture"),J=$.slice(2,G?$.length-7:void 0),X=_[l2]||null,X=X!=null?X[$]:null,typeof X==="function"&&_.removeEventListener(J,X,G),typeof q==="function")){typeof X!=="function"&&X!==null&&($ in _?_[$]=null:_.hasAttribute($)&&_.removeAttribute($)),_.addEventListener(J,q,G);break _}$ in _?_[$]=q:q===!0?_.setAttribute($,""):T0(_,$,q)}}}function v2(_,J,$){switch(nG(J,$),J){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":X0("error",_),X0("load",_);var q=!1,G=!1,X;for(X in $)if($.hasOwnProperty(X)){var z=$[X];if(z!=null)switch(X){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:P0(_,J,X,z,$,null)}}G&&P0(_,J,"srcSet",$.srcSet,$,null),q&&P0(_,J,"src",$.src,$,null);return;case"input":w0("input",$),X0("invalid",_);var B=X=z=G=null,w=null,S=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":w=e;break;case"defaultChecked":S=e;break;case"value":X=e;break;case"defaultValue":B=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:P0(_,J,q,e,$,null)}}rJ(_,$),C9(_,X,B,w,S,z,G,!1);return;case"select":w0("select",$),X0("invalid",_),q=z=X=null;for(G in $)if($.hasOwnProperty(G)&&(B=$[G],B!=null))switch(G){case"value":X=B;break;case"defaultValue":z=B;break;case"multiple":q=B;default:P0(_,J,G,B,$,null)}tJ(_,$),J=X,$=z,_.multiple=!!q,J!=null?h3(_,!!q,J,!1):$!=null&&h3(_,!!q,$,!0);return;case"textarea":w0("textarea",$),X0("invalid",_),X=G=q=null;for(z in $)if($.hasOwnProperty(z)&&(B=$[z],B!=null))switch(z){case"value":q=B;break;case"defaultValue":G=B;break;case"children":X=B;break;case"dangerouslySetInnerHTML":if(B!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:P0(_,J,z,B,$,null)}oJ(_,$),f9(_,q,G,X);return;case"option":aJ(_,$);for(w in $)if($.hasOwnProperty(w)&&(q=$[w],q!=null))switch(w){case"selected":_.selected=q&&typeof q!=="function"&&typeof q!=="symbol";break;default:P0(_,J,w,q,$,null)}return;case"dialog":X0("beforetoggle",_),X0("toggle",_),X0("cancel",_),X0("close",_);break;case"iframe":case"object":X0("load",_);break;case"video":case"audio":for(q=0;q<_J.length;q++)X0(_J[q],_);break;case"image":X0("error",_),X0("load",_);break;case"details":X0("toggle",_);break;case"embed":case"source":case"link":X0("error",_),X0("load",_);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(S in $)if($.hasOwnProperty(S)&&(q=$[S],q!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:P0(_,J,S,q,$,null)}return;default:if(u9(J)){for(e in $)$.hasOwnProperty(e)&&(q=$[e],q!==void 0&&eG(_,J,e,q,$,void 0));return}}for(B in $)$.hasOwnProperty(B)&&(q=$[B],q!=null&&P0(_,J,B,q,$,null))}function VI(_,J,$,q){switch(nG(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,X=null,z=null,B=null,w=null,S=null,e=null;for(Z1 in $){var _1=$[Z1];if($.hasOwnProperty(Z1)&&_1!=null)switch(Z1){case"checked":break;case"value":break;case"defaultValue":w=_1;default:q.hasOwnProperty(Z1)||P0(_,J,Z1,null,q,_1)}}for(var r in q){var Z1=q[r];if(_1=$[r],q.hasOwnProperty(r)&&(Z1!=null||_1!=null))switch(r){case"type":X=Z1;break;case"name":G=Z1;break;case"checked":S=Z1;break;case"defaultChecked":e=Z1;break;case"value":z=Z1;break;case"defaultValue":B=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&&P0(_,J,r,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||QA||(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"),QA=!0),_7(_,z,B,w,S,e,X,G);return;case"select":Z1=z=B=r=null;for(X in $)if(w=$[X],$.hasOwnProperty(X)&&w!=null)switch(X){case"value":break;case"multiple":Z1=w;default:q.hasOwnProperty(X)||P0(_,J,X,null,q,w)}for(G in q)if(X=q[G],w=$[G],q.hasOwnProperty(G)&&(X!=null||w!=null))switch(G){case"value":r=X;break;case"defaultValue":B=X;break;case"multiple":z=X;default:X!==w&&P0(_,J,G,X,q,w)}q=B,J=z,$=Z1,r!=null?h3(_,!!J,r,!1):!!$!==!!J&&(q!=null?h3(_,!!J,q,!0):h3(_,!!J,J?[]:"",!1));return;case"textarea":Z1=r=null;for(B in $)if(G=$[B],$.hasOwnProperty(B)&&G!=null&&!q.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:P0(_,J,B,null,q,G)}for(z in q)if(G=q[z],X=$[z],q.hasOwnProperty(z)&&(G!=null||X!=null))switch(z){case"value":r=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!==X&&P0(_,J,z,G,q,X)}nJ(_,r,Z1);return;case"option":for(var f1 in $)if(r=$[f1],$.hasOwnProperty(f1)&&r!=null&&!q.hasOwnProperty(f1))switch(f1){case"selected":_.selected=!1;break;default:P0(_,J,f1,null,q,r)}for(w in q)if(r=q[w],Z1=$[w],q.hasOwnProperty(w)&&r!==Z1&&(r!=null||Z1!=null))switch(w){case"selected":_.selected=r&&typeof r!=="function"&&typeof r!=="symbol";break;default:P0(_,J,w,r,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 $)r=$[V1],$.hasOwnProperty(V1)&&r!=null&&!q.hasOwnProperty(V1)&&P0(_,J,V1,null,q,r);for(S in q)if(r=q[S],Z1=$[S],q.hasOwnProperty(S)&&r!==Z1&&(r!=null||Z1!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(r!=null)throw Error(J+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:P0(_,J,S,r,q,Z1)}return;default:if(u9(J)){for(var j0 in $)r=$[j0],$.hasOwnProperty(j0)&&r!==void 0&&!q.hasOwnProperty(j0)&&eG(_,J,j0,void 0,q,r);for(e in q)r=q[e],Z1=$[e],!q.hasOwnProperty(e)||r===Z1||r===void 0&&Z1===void 0||eG(_,J,e,r,q,Z1);return}}for(var K0 in $)r=$[K0],$.hasOwnProperty(K0)&&r!=null&&!q.hasOwnProperty(K0)&&P0(_,J,K0,null,q,r);for(_1 in q)r=q[_1],Z1=$[_1],!q.hasOwnProperty(_1)||r===Z1||r==null&&Z1==null||P0(_,J,_1,r,q,Z1)}function ZW(_){switch(_){case"class":return"className";case"for":return"htmlFor";default:return _}}function _Z(_){var J={};_=_.style;for(var $=0;$<_.length;$++){var q=_[$];J[q]=_.getPropertyValue(q)}return J}function FW(_,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="",X;for(X in J)if(J.hasOwnProperty(X)){var z=J[X];z!=null&&typeof z!=="boolean"&&z!==""&&(X.indexOf("--")===0?(r1(z,X),q+=G+X+":"+(""+z).trim()):typeof z!=="number"||z===0||ML.has(X)?(r1(z,X),q+=G+X.replace(zL,"-$1").toLowerCase().replace(WL,"-ms-")+":"+(""+z).trim()):q+=G+X.replace(zL,"-$1").toLowerCase().replace(WL,"-ms-")+":"+z+"px",G=";")}q=q||null,J=_.getAttribute("style"),J!==q&&(q=e3(q),e3(J)!==q&&($.style=_Z(_)))}}function j5(_,J,$,q,G,X){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(M1(q,J),_===""+q)return}T2(J,_,q,X)}function XW(_,J,$,q,G,X){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}T2(J,_,q,X)}function JZ(_,J,$,q,G,X){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(M1(q,$),_===""+q)return}T2(J,_,q,X)}function KW(_,J,$,q,G,X){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)&&(M1(q,J),_===""+q))return}T2(J,_,q,X)}function $Z(_,J,$,q,G,X){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(M1(q,J),$=b9(""+q),_===$)return}T2(J,_,q,X)}function HW(_,J,$,q){for(var G={},X=new Set,z=_.attributes,B=0;B<z.length;B++)switch(z[B].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:X.add(z[B].name)}if(u9(J)){for(var w in $)if($.hasOwnProperty(w)){var S=$[w];if(S!=null){if($8.hasOwnProperty(w))typeof S!=="function"&&v4(w,S);else if($.suppressHydrationWarning!==!0)switch(w){case"children":typeof S!=="string"&&typeof S!=="number"||T2("children",_.textContent,S,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=_.innerHTML,S=S?S.__html:void 0,S!=null&&(S=UW(_,S),T2(w,z,S,G));continue;case"style":X.delete(w),FW(_,S,G);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":X.delete(w.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",w);continue;case"className":X.delete("class"),z=v5(_,"class",S),T2("className",z,S,G);continue;default:q.context===I3&&J!=="svg"&&J!=="math"?X.delete(w.toLowerCase()):X.delete(w),z=v5(_,w,S),T2(w,z,S,G)}}}}else for(S in $)if($.hasOwnProperty(S)&&(w=$[S],w!=null)){if($8.hasOwnProperty(S))typeof w!=="function"&&v4(S,w);else if($.suppressHydrationWarning!==!0)switch(S){case"children":typeof w!=="string"&&typeof w!=="number"||T2("children",_.textContent,w,G);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=_.innerHTML,w=w?w.__html:void 0,w!=null&&(w=UW(_,w),z!==w&&(G[S]={__html:z}));continue;case"className":j5(_,S,"class",w,X,G);continue;case"tabIndex":j5(_,S,"tabindex",w,X,G);continue;case"style":X.delete(S),FW(_,w,G);continue;case"multiple":X.delete(S),T2(S,_.multiple,w,G);continue;case"muted":X.delete(S),T2(S,_.muted,w,G);continue;case"autoFocus":X.delete("autofocus"),T2(S,_.autofocus,w,G);continue;case"data":if(J!=="object"){X.delete(S),z=_.getAttribute("data"),T2(S,z,w,G);continue}case"src":case"href":if(!(w!==""||J==="a"&&S==="href"||J==="object"&&S==="data")){S==="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.',S,S):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.',S,S);continue}$Z(_,S,S,w,X,G);continue;case"action":case"formAction":if(z=_.getAttribute(S),typeof w==="function"){X.delete(S.toLowerCase()),S==="formAction"?(X.delete("name"),X.delete("formenctype"),X.delete("formmethod"),X.delete("formtarget")):(X.delete("enctype"),X.delete("method"),X.delete("target"));continue}else if(z===lP){X.delete(S.toLowerCase()),T2(S,"function",w,G);continue}$Z(_,S,S.toLowerCase(),w,X,G);continue;case"xlinkHref":$Z(_,S,"xlink:href",w,X,G);continue;case"contentEditable":JZ(_,S,"contenteditable",w,X,G);continue;case"spellCheck":JZ(_,S,"spellcheck",w,X,G);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":JZ(_,S,S,w,X,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":XW(_,S,S.toLowerCase(),w,X,G);continue;case"capture":case"download":_:{B=_;var e=z=S,_1=G;if(X.delete(e),B=B.getAttribute(e),B===null)switch(typeof w){case"undefined":case"function":case"symbol":break _;default:if(w===!1)break _}else if(w!=null)switch(typeof w){case"function":case"symbol":break;case"boolean":if(w===!0&&B==="")break _;break;default:if(M1(w,z),B===""+w)break _}T2(z,B,w,_1)}continue;case"cols":case"rows":case"size":case"span":_:{if(B=_,e=z=S,_1=G,X.delete(e),B=B.getAttribute(e),B===null)switch(typeof w){case"undefined":case"function":case"symbol":case"boolean":break _;default:if(isNaN(w)||1>w)break _}else if(w!=null)switch(typeof w){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(w)||1>w)&&(M1(w,z),B===""+w))break _}T2(z,B,w,_1)}continue;case"rowSpan":KW(_,S,"rowspan",w,X,G);continue;case"start":KW(_,S,S,w,X,G);continue;case"xHeight":j5(_,S,"x-height",w,X,G);continue;case"xlinkActuate":j5(_,S,"xlink:actuate",w,X,G);continue;case"xlinkArcrole":j5(_,S,"xlink:arcrole",w,X,G);continue;case"xlinkRole":j5(_,S,"xlink:role",w,X,G);continue;case"xlinkShow":j5(_,S,"xlink:show",w,X,G);continue;case"xlinkTitle":j5(_,S,"xlink:title",w,X,G);continue;case"xlinkType":j5(_,S,"xlink:type",w,X,G);continue;case"xmlBase":j5(_,S,"xml:base",w,X,G);continue;case"xmlLang":j5(_,S,"xml:lang",w,X,G);continue;case"xmlSpace":j5(_,S,"xml:space",w,X,G);continue;case"inert":w!==""||Gq[S]||(Gq[S]=!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.",S)),XW(_,S,S,w,X,G);continue;default:if(!(2<S.length)||S[0]!=="o"&&S[0]!=="O"||S[1]!=="n"&&S[1]!=="N"){B=YH(S),z=!1,q.context===I3&&J!=="svg"&&J!=="math"?X.delete(B.toLowerCase()):(e=S.toLowerCase(),e=MQ.hasOwnProperty(e)?MQ[e]||null:null,e!==null&&e!==S&&(z=!0,X.delete(e)),X.delete(B));_:if(e=_,_1=B,B=w,n4(_1))if(e.hasAttribute(_1))e=e.getAttribute(_1),M1(B,_1),B=e===""+B?B:e;else{switch(typeof B){case"function":case"symbol":break _;case"boolean":if(e=_1.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-")break _}B=B===void 0?void 0:null}else B=void 0;z||T2(S,B,w,G)}}}return 0<X.size&&$.suppressHydrationWarning!==!0&&jI(_,X,G),Object.keys(G).length===0?null:G}function yI(_,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 YW(_){switch(_){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function kI(){if(typeof performance.getEntriesByType==="function"){for(var _=0,J=0,$=performance.getEntriesByType("resource"),q=0;q<$.length;q++){var G=$[q],X=G.transferSize,z=G.initiatorType,B=G.duration;if(X&&B&&YW(z)){z=0,B=G.responseEnd;for(q+=1;q<$.length;q++){var w=$[q],S=w.startTime;if(S>B)break;var{transferSize:e,initiatorType:_1}=w;e&&YW(_1)&&(w=w.responseEnd,z+=e*(w<B?1:(B-S)/(w-S)))}if(--q,J+=8*(X+z)/(G.duration/1000),_++,10<_)break}}if(0<_)return J/_/1e6}return navigator.connection&&(_=navigator.connection.downlink,typeof _==="number")?_:5}function _Q(_){return _.nodeType===9?_:_.ownerDocument}function zW(_){switch(_){case w7:return e7;case AQ:return Fq;default:return I3}}function WW(_,J){if(_===I3)switch(J){case"svg":return e7;case"math":return Fq;default:return I3}return _===e7&&J==="foreignObject"?I3:_}function QZ(_,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 DI(){var _=window.event;if(_&&_.type==="popstate"){if(_===xF)return!1;return xF=_,!0}return xF=null,!1}function Z_(){var _=window.event;return _&&_!==QJ?_.type:null}function F_(){var _=window.event;return _&&_!==QJ?_.timeStamp:-1.1}function uI(_){setTimeout(function(){throw _})}function bI(_,J,$){switch(J){case"button":case"input":case"select":case"textarea":$.autoFocus&&_.focus();break;case"img":$.src?_.src=$.src:$.srcSet&&(_.srcset=$.srcSet)}}function EI(){}function hI(_,J,$,q){VI(_,J,$,q),_[l2]=q}function LW(_){g6(_,"")}function xI(_,J,$){_.nodeValue=$}function BW(_){if(!_.__reactWarnedAboutChildrenConflict){var J=_[l2]||null;if(J!==null){var $=N1(_);$!==null&&(typeof J.children==="string"||typeof J.children==="number"?(_.__reactWarnedAboutChildrenConflict=!0,A1($,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,A1($,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 _6(_){return _==="head"}function mI(_,J){_.removeChild(J)}function gI(_,J){(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_).removeChild(J)}function AW(_,J){var $=J,q=0;do{var G=$.nextSibling;if(_.removeChild($),G&&G.nodeType===8)if($=G.data,$===$J||$===Zq){if(q===0){_.removeChild(G),A7(J);return}q--}else if($===JJ||$===P6||$===O8||$===n7||$===R8)q++;else if($===dP)X_(_.ownerDocument.documentElement);else if($===aP){$=_.ownerDocument.head,X_($);for(var X=$.firstChild;X;){var{nextSibling:z,nodeName:B}=X;X[B_]||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&X.rel.toLowerCase()==="stylesheet"||$.removeChild(X),X=z}}else $===rP&&X_(_.ownerDocument.body);$=G}while($);A7(J)}function MW(_,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,$===$J)if(_===0)break;else _--;else $!==JJ&&$!==P6&&$!==O8&&$!==n7||_++;$=q}while($)}function pI(_){MW(_,!0)}function cI(_){_=_.style,typeof _.setProperty==="function"?_.setProperty("display","none","important"):_.display="none"}function lI(_){_.nodeValue=""}function iI(_){MW(_,!1)}function dI(_,J){J=J[sP],J=J!==void 0&&J!==null&&J.hasOwnProperty("display")?J.display:null,_.style.display=J==null||typeof J==="boolean"?"":(""+J).trim()}function rI(_,J){_.nodeValue=J}function qZ(_){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":qZ($),I1($);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if($.rel.toLowerCase()==="stylesheet")continue}_.removeChild($)}}function aI(_,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"){M1(G.name,"name");var X=G.name==null?null:""+G.name;if(G.type==="hidden"&&_.getAttribute("name")===X)return _}else return _;else if(!_[B_])switch(J){case"meta":if(!_.hasAttribute("itemprop"))break;return _;case"link":if(X=_.getAttribute("rel"),X==="stylesheet"&&_.hasAttribute("data-precedence"))break;else if(X!==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(X=_.getAttribute("src"),(X!==(G.src==null?null:G.src)||_.getAttribute("type")!==(G.type==null?null:G.type)||_.getAttribute("crossorigin")!==(G.crossOrigin==null?null:G.crossOrigin))&&X&&_.hasAttribute("async")&&!_.hasAttribute("itemprop"))break;return _;default:return _}if(_=L5(_.nextSibling),_===null)break}return null}function sI(_,J,$){if(J==="")return null;for(;_.nodeType!==3;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!$)return null;if(_=L5(_.nextSibling),_===null)return null}return _}function TW(_,J){for(;_.nodeType!==8;){if((_.nodeType!==1||_.nodeName!=="INPUT"||_.type!=="hidden")&&!J)return null;if(_=L5(_.nextSibling),_===null)return null}return _}function UZ(_){return _.data===P6||_.data===O8}function GZ(_){return _.data===n7||_.data===P6&&_.ownerDocument.readyState!==FA}function tI(_,J){var $=_.ownerDocument;if(_.data===O8)_._reactRetry=J;else if(_.data!==P6||$.readyState!==FA)J();else{var q=function(){J(),$.removeEventListener("DOMContentLoaded",q)};$.addEventListener("DOMContentLoaded",q),_._reactRetry=q}}function L5(_){for(;_!=null;_=_.nextSibling){var J=_.nodeType;if(J===1||J===3)break;if(J===8){if(J=_.data,J===JJ||J===n7||J===P6||J===O8||J===R8||J===bF||J===ZA)break;if(J===$J||J===Zq)return null}}return _}function RW(_){if(_.nodeType===1){for(var J=_.nodeName.toLowerCase(),$={},q=_.attributes,G=0;G<q.length;G++){var X=q[G];$[ZW(X.name)]=X.name.toLowerCase()==="style"?_Z(_):X.value}return{type:J,props:$}}return _.nodeType===8?_.data===R8?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:_.nodeValue}function OW(_,J,$){return $===null||$[iP]!==!0?(_.nodeValue===J?_=null:(J=e3(J),_=e3(_.nodeValue)===J?null:_.nodeValue),_):null}function ZZ(_){_=_.nextSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===$J||$===Zq){if(J===0)return L5(_.nextSibling);J--}else $!==JJ&&$!==n7&&$!==P6&&$!==O8&&$!==R8||J++}_=_.nextSibling}return null}function IW(_){_=_.previousSibling;for(var J=0;_;){if(_.nodeType===8){var $=_.data;if($===JJ||$===n7||$===P6||$===O8||$===R8){if(J===0)return _;J--}else $!==$J&&$!==Zq||J++}_=_.previousSibling}return null}function oI(_){A7(_)}function nI(_){A7(_)}function eI(_){A7(_)}function wW(_,J,$,q,G){switch(G&&k9(_,q.ancestorInfo),J=_Q($),_){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 _w(_,J,$,q){if(!$[q6]&&N1($)){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]);v2($,_,J),$[j2]=q,$[l2]=J}function X_(_){for(var J=_.attributes;J.length;)_.removeAttributeNode(J[0]);I1(_)}function JQ(_){return typeof _.getRootNode==="function"?_.getRootNode():_.nodeType===9?_:_.ownerDocument}function PW(_,J,$){var q=_9;if(q&&typeof J==="string"&&J){var G=_5(J);G='link[rel="'+_+'"][href="'+G+'"]',typeof $==="string"&&(G+='[crossorigin="'+$+'"]'),WA.has(G)||(WA.add(G),_={rel:_,crossOrigin:$,href:J},q.querySelector(G)===null&&(J=q.createElement("link"),v2(J,"link",_),j1(J),q.head.appendChild(J)))}}function NW(_,J,$,q){var G=(G=$6.current)?JQ(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"?($=L7($.href),J=y1(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"){_=L7($.href);var X=y1(G).hoistableStyles,z=X.get(_);if(!z&&(G=G.ownerDocument||G,z={type:"stylesheet",instance:null,count:0,state:{loading:w8,preload:null}},X.set(_,z),(X=G.querySelector(K_(_)))&&!X._p&&(z.instance=X,z.state.loading=qJ|g5),!p5.has(_))){var B={rel:"preload",as:"style",href:$.href,crossOrigin:$.crossOrigin,integrity:$.integrity,media:$.media,hrefLang:$.hrefLang,referrerPolicy:$.referrerPolicy};p5.set(_,B),X||Jw(G,_,B,z.state)}if(J&&q===null)throw $=`
|
|
177
177
|
|
|
178
178
|
- `+$Q(J)+`
|
|
179
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
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"?($=L7($),J=y1(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+'"'):n5.call(_,"rel")&&(J++,$+=' rel="'+(_.rel===null?"null":"invalid type "+typeof _.rel)+'"'),typeof _.href==="string"?(J++,$+=' href="'+_.href+'"'):n5.call(_,"href")&&(J++,$+=' href="'+(_.href===null?"null":"invalid type "+typeof _.href)+'"'),typeof _.precedence==="string"?(J++,$+=' precedence="'+_.precedence+'"'):n5.call(_,"precedence")&&(J++,$+=" precedence={"+(_.precedence===null?"null":"invalid type "+typeof _.precedence)+"}"),Object.getOwnPropertyNames(_).length>J&&($+=" ..."),$+" />"}function B7(_){return'href="'+_5(_)+'"'}function K_(_){return'link[rel="stylesheet"]['+_+"]"}function CW(_){return U0({},_,{"data-precedence":_.precedence,precedence:null})}function Jw(_,J,$,q){_.querySelector('link[rel="preload"][as="style"]['+J+"]")?q.loading=qJ:(J=_.createElement("link"),q.preload=J,J.addEventListener("load",function(){return q.loading|=qJ}),J.addEventListener("error",function(){return q.loading|=YA}),j2(J,"link",$),v1(J),_.head.appendChild(J))}function L7(_){return'[src="'+_5(_)+'"]'}function H_(_){return"script[async]"+_}function fW(_,J,$){if(J.count++,J.instance===null)switch(J.type){case"style":var q=_.querySelector('style[data-href~="'+_5($.href)+'"]');if(q)return J.instance=q,v1(q),q;var G=U0({},$,{"data-href":$.href,"data-precedence":$.precedence,href:null,precedence:null});return q=(_.ownerDocument||_).createElement("style"),v1(q),j2(q,"style",G),QQ(q,$.precedence,_),J.instance=q;case"stylesheet":G=B7($.href);var X=_.querySelector(K_(G));if(X)return J.state.loading|=g5,J.instance=X,v1(X),X;q=CW($),(G=p5.get(G))&&FZ(q,G),X=(_.ownerDocument||_).createElement("link"),v1(X);var z=X;return z._p=new Promise(function(L,w){z.onload=L,z.onerror=w}),j2(X,"link",q),J.state.loading|=g5,QQ(X,$.precedence,_),J.instance=X;case"script":if(X=L7($.src),G=_.querySelector(H_(X)))return J.instance=G,v1(G),G;if(q=$,G=p5.get(X))q=U0({},$),XZ(q,G);return _=_.ownerDocument||_,G=_.createElement("script"),v1(G),j2(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&g5)===w8&&(q=J.instance,J.state.loading|=g5,QQ(q,$.precedence,_));return J.instance}function QQ(_,J,$){for(var q=$.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),G=q.length?q[q.length-1]:null,X=G,z=0;z<q.length;z++){var L=q[z];if(L.dataset.precedence===J)X=L;else if(X!==G)break}X?X.parentNode.insertBefore(_,X.nextSibling):(J=$.nodeType===9?$.head:$,J.insertBefore(_,J.firstChild))}function FZ(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.title==null&&(_.title=J.title)}function XZ(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.integrity==null&&(_.integrity=J.integrity)}function SW(_,J,$){if(Xq===null){var q=new Map,G=Xq=new Map;G.set($,q)}else G=Xq,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 X=$[G];if(!(X[L_]||X[v2]||_==="link"&&X.getAttribute("rel")==="stylesheet")&&X.namespaceURI!==w7){var z=X.getAttribute(J)||"";z=_+z;var L=q.get(z);L?L.push(X):q.set(z,[X])}}return q}function jW(_,J,$){_=_.ownerDocument||_,_.head.insertBefore($,J==="title"?_.querySelector("head > title"):null)}function $w(_,J,$){var q=!$.ancestorInfo.containerTagInScope;if($.context===e7||J.itemProp!=null)return!q||J.itemProp==null||_!=="meta"&&_!=="title"&&_!=="style"&&_!=="link"&&_!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",_,_),!1;switch(_){case"meta":case"title":return!0;case"style":if(typeof J.precedence!=="string"||typeof J.href!=="string"||J.href===""){q&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof J.rel!=="string"||typeof J.href!=="string"||J.href===""||J.onLoad||J.onError){if(J.rel==="stylesheet"&&typeof J.precedence==="string"){_=J.href;var{onError:G,disabled:X}=J;$=[],J.onLoad&&$.push("`onLoad`"),G&&$.push("`onError`"),X!=null&&$.push("`disabled`"),G=yI($,"and"),G+=$.length===1?" prop":" props",X=$.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.',_,X,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 vW(_){return _.type==="stylesheet"&&(_.state.loading&zA)===w8?!1:!0}function Qw(_,J,$,q){if($.type==="stylesheet"&&(typeof q.media!=="string"||matchMedia(q.media).matches!==!1)&&($.state.loading&g5)===w8){if($.instance===null){var G=B7(q.href),X=J.querySelector(K_(G));if(X){J=X._p,J!==null&&typeof J==="object"&&typeof J.then==="function"&&(_.count++,_=qQ.bind(_),J.then(_,_)),$.state.loading|=g5,$.instance=X,v1(X);return}X=J.ownerDocument||J,q=CW(q),(G=p5.get(G))&&FZ(q,G),X=X.createElement("link"),v1(X);var z=X;z._p=new Promise(function(L,w){z.onload=L,z.onerror=w}),j2(X,"link",q),$.instance=X}_.stylesheets===null&&(_.stylesheets=new Map),_.stylesheets.set($,J),(J=$.state.preload)&&($.state.loading&zA)===w8&&(_.count++,$=qQ.bind(_),J.addEventListener("load",$),J.addEventListener("error",$))}}function qw(_,J){return _.stylesheets&&_.count===0&&UQ(_,_.stylesheets),0<_.count||0<_.imgCount?function($){var q=setTimeout(function(){if(_.stylesheets&&UQ(_,_.stylesheets),_.unsuspend){var X=_.unsuspend;_.unsuspend=null,X()}},nP+J);0<_.imgBytes&&gF===0&&(gF=125*kI()*_N);var G=setTimeout(function(){if(_.waitingForImages=!1,_.count===0&&(_.stylesheets&&UQ(_,_.stylesheets),_.unsuspend)){var X=_.unsuspend;_.unsuspend=null,X()}},(_.imgBytes>gF?50:eP)+J);return _.unsuspend=$,function(){_.unsuspend=null,clearTimeout(q),clearTimeout(G)}}:null}function qQ(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)UQ(this,this.stylesheets);else if(this.unsuspend){var _=this.unsuspend;this.unsuspend=null,_()}}}function UQ(_,J){_.stylesheets=null,_.unsuspend!==null&&(_.count++,Kq=new Map,J.forEach(Uw,_),Kq=null,qQ.call(_))}function Uw(_,J){if(!(J.state.loading&g5)){var $=Kq.get(_);if($)var q=$.get(pF);else{$=new Map,Kq.set(_,$);for(var G=_.querySelectorAll("link[data-precedence],style[data-precedence]"),X=0;X<G.length;X++){var z=G[X];if(z.nodeName==="LINK"||z.getAttribute("media")!=="not all")$.set(z.dataset.precedence,z),q=z}q&&$.set(pF,q)}G=J.instance,z=G.getAttribute("data-precedence"),X=$.get(z)||q,X===q&&$.set(pF,G),$.set(z,G),this.count++,q=qQ.bind(this),G.addEventListener("load",q),G.addEventListener("error",q),X?X.parentNode.insertBefore(G,X.nextSibling):(_=_.nodeType===9?_.head:_,_.insertBefore(G,_.firstChild)),J.state.loading|=g5}}function Gw(_,J,$,q,G,X,z,L,w){this.tag=1,this.containerInfo=_,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=I8,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=H2(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=H2(0),this.hiddenUpdates=H2(null),this.identifierPrefix=q,this.onUncaughtError=G,this.onCaughtError=X,this.onRecoverableError=z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,_=this.pendingUpdatersLaneMap=[];for(J=0;31>J;J++)_.push(new Set);this._debugRootType=$?"hydrateRoot()":"createRoot()"}function VW(_,J,$,q,G,X,z,L,w,S,e,_1){return _=new Gw(_,J,$,z,w,S,e,_1,L),J=NP,X===!0&&(J|=u2|_4),J|=e1,X=O(3,null,null,J),_.current=X,X.stateNode=_,J=EU(),s6(J),_.pooledCache=J,s6(J),X.memoizedState={element:q,isDehydrated:$,cache:J},pU(X),_}function yW(_){if(!_)return Z6;return _=Z6,_}function KZ(_,J,$,q,G,X){if(D2&&typeof D2.onScheduleFiberRoot==="function")try{D2.onScheduleFiberRoot(O7,q,$)}catch(z){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",z))}G=yW(G),q.context===null?q.context=G:q.pendingContext=G,y4&&A5!==null&&!MA&&(MA=!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.
|
|
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"?($=B7($),J=y1(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+'"'):n5.call(_,"rel")&&(J++,$+=' rel="'+(_.rel===null?"null":"invalid type "+typeof _.rel)+'"'),typeof _.href==="string"?(J++,$+=' href="'+_.href+'"'):n5.call(_,"href")&&(J++,$+=' href="'+(_.href===null?"null":"invalid type "+typeof _.href)+'"'),typeof _.precedence==="string"?(J++,$+=' precedence="'+_.precedence+'"'):n5.call(_,"precedence")&&(J++,$+=" precedence={"+(_.precedence===null?"null":"invalid type "+typeof _.precedence)+"}"),Object.getOwnPropertyNames(_).length>J&&($+=" ..."),$+" />"}function L7(_){return'href="'+_5(_)+'"'}function K_(_){return'link[rel="stylesheet"]['+_+"]"}function CW(_){return U0({},_,{"data-precedence":_.precedence,precedence:null})}function Jw(_,J,$,q){_.querySelector('link[rel="preload"][as="style"]['+J+"]")?q.loading=qJ:(J=_.createElement("link"),q.preload=J,J.addEventListener("load",function(){return q.loading|=qJ}),J.addEventListener("error",function(){return q.loading|=YA}),v2(J,"link",$),j1(J),_.head.appendChild(J))}function B7(_){return'[src="'+_5(_)+'"]'}function H_(_){return"script[async]"+_}function fW(_,J,$){if(J.count++,J.instance===null)switch(J.type){case"style":var q=_.querySelector('style[data-href~="'+_5($.href)+'"]');if(q)return J.instance=q,j1(q),q;var G=U0({},$,{"data-href":$.href,"data-precedence":$.precedence,href:null,precedence:null});return q=(_.ownerDocument||_).createElement("style"),j1(q),v2(q,"style",G),QQ(q,$.precedence,_),J.instance=q;case"stylesheet":G=L7($.href);var X=_.querySelector(K_(G));if(X)return J.state.loading|=g5,J.instance=X,j1(X),X;q=CW($),(G=p5.get(G))&&FZ(q,G),X=(_.ownerDocument||_).createElement("link"),j1(X);var z=X;return z._p=new Promise(function(B,w){z.onload=B,z.onerror=w}),v2(X,"link",q),J.state.loading|=g5,QQ(X,$.precedence,_),J.instance=X;case"script":if(X=B7($.src),G=_.querySelector(H_(X)))return J.instance=G,j1(G),G;if(q=$,G=p5.get(X))q=U0({},$),XZ(q,G);return _=_.ownerDocument||_,G=_.createElement("script"),j1(G),v2(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&g5)===w8&&(q=J.instance,J.state.loading|=g5,QQ(q,$.precedence,_));return J.instance}function QQ(_,J,$){for(var q=$.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),G=q.length?q[q.length-1]:null,X=G,z=0;z<q.length;z++){var B=q[z];if(B.dataset.precedence===J)X=B;else if(X!==G)break}X?X.parentNode.insertBefore(_,X.nextSibling):(J=$.nodeType===9?$.head:$,J.insertBefore(_,J.firstChild))}function FZ(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.title==null&&(_.title=J.title)}function XZ(_,J){_.crossOrigin==null&&(_.crossOrigin=J.crossOrigin),_.referrerPolicy==null&&(_.referrerPolicy=J.referrerPolicy),_.integrity==null&&(_.integrity=J.integrity)}function SW(_,J,$){if(Xq===null){var q=new Map,G=Xq=new Map;G.set($,q)}else G=Xq,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 X=$[G];if(!(X[B_]||X[j2]||_==="link"&&X.getAttribute("rel")==="stylesheet")&&X.namespaceURI!==w7){var z=X.getAttribute(J)||"";z=_+z;var B=q.get(z);B?B.push(X):q.set(z,[X])}}return q}function vW(_,J,$){_=_.ownerDocument||_,_.head.insertBefore($,J==="title"?_.querySelector("head > title"):null)}function $w(_,J,$){var q=!$.ancestorInfo.containerTagInScope;if($.context===e7||J.itemProp!=null)return!q||J.itemProp==null||_!=="meta"&&_!=="title"&&_!=="style"&&_!=="link"&&_!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",_,_),!1;switch(_){case"meta":case"title":return!0;case"style":if(typeof J.precedence!=="string"||typeof J.href!=="string"||J.href===""){q&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof J.rel!=="string"||typeof J.href!=="string"||J.href===""||J.onLoad||J.onError){if(J.rel==="stylesheet"&&typeof J.precedence==="string"){_=J.href;var{onError:G,disabled:X}=J;$=[],J.onLoad&&$.push("`onLoad`"),G&&$.push("`onError`"),X!=null&&$.push("`disabled`"),G=yI($,"and"),G+=$.length===1?" prop":" props",X=$.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.',_,X,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&zA)===w8?!1:!0}function Qw(_,J,$,q){if($.type==="stylesheet"&&(typeof q.media!=="string"||matchMedia(q.media).matches!==!1)&&($.state.loading&g5)===w8){if($.instance===null){var G=L7(q.href),X=J.querySelector(K_(G));if(X){J=X._p,J!==null&&typeof J==="object"&&typeof J.then==="function"&&(_.count++,_=qQ.bind(_),J.then(_,_)),$.state.loading|=g5,$.instance=X,j1(X);return}X=J.ownerDocument||J,q=CW(q),(G=p5.get(G))&&FZ(q,G),X=X.createElement("link"),j1(X);var z=X;z._p=new Promise(function(B,w){z.onload=B,z.onerror=w}),v2(X,"link",q),$.instance=X}_.stylesheets===null&&(_.stylesheets=new Map),_.stylesheets.set($,J),(J=$.state.preload)&&($.state.loading&zA)===w8&&(_.count++,$=qQ.bind(_),J.addEventListener("load",$),J.addEventListener("error",$))}}function qw(_,J){return _.stylesheets&&_.count===0&&UQ(_,_.stylesheets),0<_.count||0<_.imgCount?function($){var q=setTimeout(function(){if(_.stylesheets&&UQ(_,_.stylesheets),_.unsuspend){var X=_.unsuspend;_.unsuspend=null,X()}},nP+J);0<_.imgBytes&&gF===0&&(gF=125*kI()*_N);var G=setTimeout(function(){if(_.waitingForImages=!1,_.count===0&&(_.stylesheets&&UQ(_,_.stylesheets),_.unsuspend)){var X=_.unsuspend;_.unsuspend=null,X()}},(_.imgBytes>gF?50:eP)+J);return _.unsuspend=$,function(){_.unsuspend=null,clearTimeout(q),clearTimeout(G)}}:null}function qQ(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)UQ(this,this.stylesheets);else if(this.unsuspend){var _=this.unsuspend;this.unsuspend=null,_()}}}function UQ(_,J){_.stylesheets=null,_.unsuspend!==null&&(_.count++,Kq=new Map,J.forEach(Uw,_),Kq=null,qQ.call(_))}function Uw(_,J){if(!(J.state.loading&g5)){var $=Kq.get(_);if($)var q=$.get(pF);else{$=new Map,Kq.set(_,$);for(var G=_.querySelectorAll("link[data-precedence],style[data-precedence]"),X=0;X<G.length;X++){var z=G[X];if(z.nodeName==="LINK"||z.getAttribute("media")!=="not all")$.set(z.dataset.precedence,z),q=z}q&&$.set(pF,q)}G=J.instance,z=G.getAttribute("data-precedence"),X=$.get(z)||q,X===q&&$.set(pF,G),$.set(z,G),this.count++,q=qQ.bind(this),G.addEventListener("load",q),G.addEventListener("error",q),X?X.parentNode.insertBefore(G,X.nextSibling):(_=_.nodeType===9?_.head:_,_.insertBefore(G,_.firstChild)),J.state.loading|=g5}}function Gw(_,J,$,q,G,X,z,B,w){this.tag=1,this.containerInfo=_,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=I8,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=H2(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=H2(0),this.hiddenUpdates=H2(null),this.identifierPrefix=q,this.onUncaughtError=G,this.onCaughtError=X,this.onRecoverableError=z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,_=this.pendingUpdatersLaneMap=[];for(J=0;31>J;J++)_.push(new Set);this._debugRootType=$?"hydrateRoot()":"createRoot()"}function VW(_,J,$,q,G,X,z,B,w,S,e,_1){return _=new Gw(_,J,$,z,w,S,e,_1,B),J=NP,X===!0&&(J|=u2|_4),J|=e1,X=O(3,null,null,J),_.current=X,X.stateNode=_,J=EU(),s6(J),_.pooledCache=J,s6(J),X.memoizedState={element:q,isDehydrated:$,cache:J},pU(X),_}function yW(_){if(!_)return F6;return _=F6,_}function KZ(_,J,$,q,G,X){if(D2&&typeof D2.onScheduleFiberRoot==="function")try{D2.onScheduleFiberRoot(O7,q,$)}catch(z){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",z))}G=yW(G),q.context===null?q.context=G:q.pendingContext=G,y4&&A5!==null&&!MA&&(MA=!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.`,x(A5)||"Unknown")),q=d3(J),q.payload={element:$},X=X===void 0?null:X,X!==null&&(typeof X!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",X),q.callback=X),$=r3(_,q,J),$!==null&&(A4(J,"root.render()",null),c0($,_,J),i9($,_,J))}function kW(_,J){if(_=_.memoizedState,_!==null&&_.dehydrated!==null){var $=_.retryLane;_.retryLane=$!==0&&$<J?$:J}}function HZ(_,J){kW(_,J),(_=_.alternate)&&kW(_,J)}function DW(_){if(_.tag===13||_.tag===31){var J=k2(_,67108864);J!==null&&c0(J,_,67108864),HZ(_,67108864)}}function uW(_){if(_.tag===13||_.tag===31){var J=W5(_);J=r5(J);var $=k2(_,J);$!==null&&c0($,_,J),HZ(_,J)}}function Zw(){return A5}function Fw(_,J,$,q){var G=Y1.T;Y1.T=null;var X=A0.p;try{A0.p=M5,YZ(_,J,$,q)}finally{A0.p=X,Y1.T=G}}function Xw(_,J,$,q){var G=Y1.T;Y1.T=null;var X=A0.p;try{A0.p=e5,YZ(_,J,$,q)}finally{A0.p=X,Y1.T=G}}function YZ(_,J,$,q){if(Yq){var G=zZ(q);if(G===null)oG(_,J,q,zq,$),EW(_,q);else if(Kw(G,_,J,$,q))q.stopPropagation();else if(EW(_,q),J&4&&-1<$N.indexOf(_)){for(;G!==null;){var X=N1(G);if(X!==null)switch(X.tag){case 3:if(X=X.stateNode,X.current.memoizedState.isDehydrated){var z=K2(X.pendingLanes);if(z!==0){var L=X;L.pendingLanes|=2;for(L.entangledLanes|=2;z;){var w=1<<31-c2(z);L.entanglements[1]|=w,z&=~w}S4(X),(Y0&(W2|I5))===w2&&(sQ=R2()+dL,U_(0,!1))}}break;case 31:case 13:L=k2(X,2),L!==null&&c0(L,X,2),Y7(),HZ(X,2)}if(X=zZ(q),X===null&&oG(_,J,q,zq,$),X===G)break;G=X}G!==null&&q.stopPropagation()}else oG(_,J,q,null,$)}}function zZ(_){return _=TU(_),WZ(_)}function WZ(_){if(zq=null,_=R1(_),_!==null){var J=f(_);if(J===null)_=null;else{var $=J.tag;if($===13){if(_=u(J),_!==null)return _;_=null}else if($===31){if(_=C(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 zq=_,null}function bW(_){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 M5;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 e5;case"message":switch(Tw()){case fZ:return M5;case SZ:return e5;case R7:case Rw:return u4;case jZ:return BQ;default:return u4}default:return u4}}function EW(_,J){switch(_){case"focusin":case"focusout":P6=null;break;case"dragenter":case"dragleave":N6=null;break;case"mouseover":case"mouseout":C6=null;break;case"pointerover":case"pointerout":GJ.delete(J.pointerId);break;case"gotpointercapture":case"lostpointercapture":ZJ.delete(J.pointerId)}}function Y_(_,J,$,q,G,X){if(_===null||_.nativeEvent!==X)return _={blockedOn:J,domEventName:$,eventSystemFlags:q,nativeEvent:X,targetContainers:[G]},J!==null&&(J=N1(J),J!==null&&DW(J)),_;return _.eventSystemFlags|=q,J=_.targetContainers,G!==null&&J.indexOf(G)===-1&&J.push(G),_}function Kw(_,J,$,q,G){switch(J){case"focusin":return P6=Y_(P6,_,J,$,q,G),!0;case"dragenter":return N6=Y_(N6,_,J,$,q,G),!0;case"mouseover":return C6=Y_(C6,_,J,$,q,G),!0;case"pointerover":var X=G.pointerId;return GJ.set(X,Y_(GJ.get(X)||null,_,J,$,q,G)),!0;case"gotpointercapture":return X=G.pointerId,ZJ.set(X,Y_(ZJ.get(X)||null,_,J,$,q,G)),!0}return!1}function hW(_){var J=R1(_.target);if(J!==null){var $=f(J);if($!==null){if(J=$.tag,J===13){if(J=u($),J!==null){_.blockedOn=J,F1(_.priority,function(){uW($)});return}}else if(J===31){if(J=C($),J!==null){_.blockedOn=J,F1(_.priority,function(){uW($)});return}}else if(J===3&&$.stateNode.current.memoizedState.isDehydrated){_.blockedOn=$.tag===3?$.stateNode.containerInfo:null;return}}}_.blockedOn=null}function GQ(_){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;A_!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),A_=G,$.target.dispatchEvent(q),A_===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."),A_=null}else return J=N1($),J!==null&&DW(J),_.blockedOn=$,!1;J.shift()}return!0}function xW(_,J,$){GQ(_)&&$.delete(J)}function Hw(){cF=!1,P6!==null&&GQ(P6)&&(P6=null),N6!==null&&GQ(N6)&&(N6=null),C6!==null&&GQ(C6)&&(C6=null),GJ.forEach(xW),ZJ.forEach(xW)}function ZQ(_,J){_.blockedOn===J&&(_.blockedOn=null,cF||(cF=!0,W0.unstable_scheduleCallback(W0.unstable_NormalPriority,Hw)))}function mW(_){Wq!==_&&(Wq=_,W0.unstable_scheduleCallback(W0.unstable_NormalPriority,function(){Wq===_&&(Wq=null);for(var J=0;J<_.length;J+=3){var $=_[J],q=_[J+1],G=_[J+2];if(typeof q!=="function")if(WZ(q||$)===null)continue;else break;var X=N1($);X!==null&&(_.splice(J,3),J-=3,$={pending:!0,data:G,method:$.method,action:q},Object.freeze($),WG(X,$,q,G))}}))}function A7(_){function J(w){return ZQ(w,_)}P6!==null&&ZQ(P6,_),N6!==null&&ZQ(N6,_),C6!==null&&ZQ(C6,_),GJ.forEach(J),ZJ.forEach(J);for(var $=0;$<f6.length;$++){var q=f6[$];q.blockedOn===_&&(q.blockedOn=null)}for(;0<f6.length&&($=f6[0],$.blockedOn===null);)hW($),$.blockedOn===null&&f6.shift();if($=(_.ownerDocument||_).$$reactFormReplay,$!=null)for(q=0;q<$.length;q+=3){var G=$[q],X=$[q+1],z=G[l2]||null;if(typeof X==="function")z||mW($);else if(z){var L=null;if(X&&X.hasAttribute("formAction")){if(G=X,z=X[l2]||null)L=z.formAction;else if(WZ(G)!==null)continue}else L=z.action;typeof L==="function"?$[q+1]=L:($.splice(q,3),q-=3),mW($)}}}function gW(){function _(X){X.canIntercept&&X.info==="react-transition"&&X.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 X=navigation.currentEntry;X&&X.url!=null&&navigation.navigate(X.url,{state:X.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 BZ(_){this._internalRoot=_}function FQ(_){this._internalRoot=_}function pW(_){_[Q6]&&(_._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 U0=Object.assign,Yw=Symbol.for("react.element"),v4=Symbol.for("react.transitional.element"),M7=Symbol.for("react.portal"),T7=Symbol.for("react.fragment"),XQ=Symbol.for("react.strict_mode"),LZ=Symbol.for("react.profiler"),AZ=Symbol.for("react.consumer"),V4=Symbol.for("react.context"),z_=Symbol.for("react.forward_ref"),MZ=Symbol.for("react.suspense"),TZ=Symbol.for("react.suspense_list"),KQ=Symbol.for("react.memo"),L5=Symbol.for("react.lazy"),RZ=Symbol.for("react.activity"),zw=Symbol.for("react.memo_cache_sentinel"),cW=Symbol.iterator,Ww=Symbol.for("react.client.reference"),Y2=Array.isArray,Y1=J9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A0=dF.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Bw=Object.freeze({pending:!1,data:null,method:null,action:null}),OZ=[],IZ=[],F3=-1,_6=$1(null),W_=$1(null),J6=$1(null),HQ=$1(null),B_=0,lW,iW,dW,rW,aW,sW,tW;y.__reactDisabledLog=!0;var wZ,oW,PZ=!1,NZ=new(typeof WeakMap==="function"?WeakMap:Map),A5=null,y4=!1,n5=Object.prototype.hasOwnProperty,CZ=W0.unstable_scheduleCallback,Lw=W0.unstable_cancelCallback,Aw=W0.unstable_shouldYield,Mw=W0.unstable_requestPaint,R2=W0.unstable_now,Tw=W0.unstable_getCurrentPriorityLevel,fZ=W0.unstable_ImmediatePriority,SZ=W0.unstable_UserBlockingPriority,R7=W0.unstable_NormalPriority,Rw=W0.unstable_LowPriority,jZ=W0.unstable_IdlePriority,Ow=W0.log,Iw=W0.unstable_setDisableYieldValue,O7=null,D2=null,k4=!1,D4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",c2=Math.clz32?Math.clz32:X2,ww=Math.log,Pw=Math.LN2,YQ=256,zQ=262144,WQ=4194304,M5=2,e5=8,u4=32,BQ=268435456,$6=Math.random().toString(36).slice(2),v2="__reactFiber$"+$6,l2="__reactProps$"+$6,Q6="__reactContainer$"+$6,vZ="__reactEvents$"+$6,Nw="__reactListeners$"+$6,Cw="__reactHandles$"+$6,nW="__reactResources$"+$6,L_="__reactMarker$"+$6,eW=new Set,$8={},VZ={},fw={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Sw=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]*$"),_B={},JB={},jw=/[\n"\\]/g,$B=!1,QB=!1,qB=!1,UB=!1,GB=!1,ZB=!1,FB=["value","defaultValue"],XB=!1,KB=/["'&<>\n\t]|^\s|\s$/,vw="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(" "),HB="applet caption html table td th marquee object template foreignObject desc title".split(" "),Vw=HB.concat(["button"]),yw="dd dt li option optgroup p rp rt".split(" "),YB={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},LQ={},yZ={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"]},zB=/([A-Z])/g,WB=/^ms-/,kw=/^(?:webkit|moz|o)[A-Z]/,Dw=/^-ms-/,uw=/-(.)/g,BB=/;\s*$/,I7={},kZ={},LB=!1,AB=!1,MB=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(" ")),AQ="http://www.w3.org/1998/Math/MathML",w7="http://www.w3.org/2000/svg",bw=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"]]),MQ={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"},TB={"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},P7={},Ew=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]*$"),hw=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]*$"),RB=!1,i2={},OB=/^on./,xw=/^on[^A-Z]/,mw=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]*$"),gw=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]*$"),pw=/^[\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,A_=null,N7=null,C7=null,DZ=!1,b4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uZ=!1;if(b4)try{var M_={};Object.defineProperty(M_,"passive",{get:function(){uZ=!0}}),window.addEventListener("test",M_,M_),window.removeEventListener("test",M_,M_)}catch(_){uZ=!1}var q6=null,bZ=null,TQ=null,Q8={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(_){return _.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},RQ=J5(Q8),T_=U0({},Q8,{view:0,detail:0}),cw=J5(T_),EZ,hZ,R_,OQ=U0({},T_,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:RU,button:0,buttons:0,relatedTarget:function(_){return _.relatedTarget===void 0?_.fromElement===_.srcElement?_.toElement:_.fromElement:_.relatedTarget},movementX:function(_){if("movementX"in _)return _.movementX;return _!==R_&&(R_&&_.type==="mousemove"?(EZ=_.screenX-R_.screenX,hZ=_.screenY-R_.screenY):hZ=EZ=0,R_=_),EZ},movementY:function(_){return"movementY"in _?_.movementY:hZ}}),IB=J5(OQ),lw=U0({},OQ,{dataTransfer:0}),iw=J5(lw),dw=U0({},T_,{relatedTarget:0}),xZ=J5(dw),rw=U0({},Q8,{animationName:0,elapsedTime:0,pseudoElement:0}),aw=J5(rw),sw=U0({},Q8,{clipboardData:function(_){return"clipboardData"in _?_.clipboardData:window.clipboardData}}),tw=J5(sw),ow=U0({},Q8,{data:0}),wB=J5(ow),nw=wB,ew={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_P={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"},JP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},$P=U0({},T_,{key:function(_){if(_.key){var J=ew[_.key]||_.key;if(J!=="Unidentified")return J}return _.type==="keypress"?(_=G$(_),_===13?"Enter":String.fromCharCode(_)):_.type==="keydown"||_.type==="keyup"?_P[_.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:RU,charCode:function(_){return _.type==="keypress"?G$(_):0},keyCode:function(_){return _.type==="keydown"||_.type==="keyup"?_.keyCode:0},which:function(_){return _.type==="keypress"?G$(_):_.type==="keydown"||_.type==="keyup"?_.keyCode:0}}),QP=J5($P),qP=U0({},OQ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),PB=J5(qP),UP=U0({},T_,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:RU}),GP=J5(UP),ZP=U0({},Q8,{propertyName:0,elapsedTime:0,pseudoElement:0}),FP=J5(ZP),XP=U0({},OQ,{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}),KP=J5(XP),HP=U0({},Q8,{newState:0,oldState:0}),YP=J5(HP),zP=[9,13,27,32],NB=229,mZ=b4&&"CompositionEvent"in window,O_=null;b4&&"documentMode"in document&&(O_=document.documentMode);var WP=b4&&"TextEvent"in window&&!O_,CB=b4&&(!mZ||O_&&8<O_&&11>=O_),fB=32,SB=String.fromCharCode(fB),jB=!1,f7=!1,BP={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},I_=null,w_=null,vB=!1;b4&&(vB=bO("input")&&(!document.documentMode||9<document.documentMode));var d2=typeof Object.is==="function"?Object.is:pO,LP=b4&&"documentMode"in document&&11>=document.documentMode,S7=null,gZ=null,P_=null,pZ=!1,j7={animationend:p6("Animation","AnimationEnd"),animationiteration:p6("Animation","AnimationIteration"),animationstart:p6("Animation","AnimationStart"),transitionrun:p6("Transition","TransitionRun"),transitionstart:p6("Transition","TransitionStart"),transitioncancel:p6("Transition","TransitionCancel"),transitionend:p6("Transition","TransitionEnd")},cZ={},VB={};b4&&(VB=document.createElement("div").style,("AnimationEvent"in window)||(delete j7.animationend.animation,delete j7.animationiteration.animation,delete j7.animationstart.animation),("TransitionEvent"in window)||delete j7.transitionend.transition);var yB=c6("animationend"),kB=c6("animationiteration"),DB=c6("animationstart"),AP=c6("transitionrun"),MP=c6("transitionstart"),TP=c6("transitioncancel"),uB=c6("transitionend"),bB=new Map,lZ="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(" ");lZ.push("scrollEnd");var EB=0;if(typeof performance==="object"&&typeof performance.now==="function")var RP=performance,hB=function(){return RP.now()};else{var OP=Date;hB=function(){return OP.now()}}var iZ=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(_)},IP="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.",IQ=0,dZ=1,rZ=2,aZ=3,wQ="– ",PQ="+ ",xB=" ",V0=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",V5="Components ⚛",G0="Scheduler ⚛",Z0="Blocking",U6=!1,X3={color:"primary",properties:null,tooltipText:"",track:V5},G6={start:-0,end:-0,detail:{devtools:X3}},wP=["Changed Props",""],mB="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",PP=["Changed Props",mB],N_=1,K3=2,y5=[],v7=0,sZ=0,Z6={};Object.freeze(Z6);var k5=null,V7=null,i1=0,NP=1,e1=2,u2=8,_4=16,CP=32,gB=!1;try{var pB=Object.preventExtensions({})}catch(_){gB=!0}var tZ=new WeakMap,y7=[],k7=0,NQ=null,C_=0,D5=[],u5=0,q8=null,H3=1,Y3="",V2=null,y0=null,F0=!1,E4=!1,T5=null,F6=null,b5=!1,oZ=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."),nZ=$1(null),eZ=$1(null),cB={},CQ=null,D7=null,u7=!1,fP=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 $()})}},SP=W0.unstable_scheduleCallback,jP=W0.unstable_NormalPriority,J2={$$typeof:V4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},$2=W0.unstable_now,fQ=console.createTask?console.createTask:function(){return null},f_=1,SQ=2,O2=-0,X6=-0,z3=-0,W3=null,r2=-1.1,U8=-0,m0=-0,m1=-1.1,l1=-1.1,b0=null,l0=!1,K6=-0,h4=-1.1,S_=null,H6=0,_F=null,JF=null,G8=-1.1,j_=null,b7=-1.1,jQ=-1.1,x4=-0,B3=-1.1,E5=-1.1,$F=0,v_=null,lB=null,iB=null,Y6=-1.1,Z8=null,z6=-1.1,vQ=-1.1,dB=-0,rB=-0,VQ=0,L3=null,aB=0,V_=-1.1,yQ=!1,kQ=!1,y_=null,QF=0,F8=0,E7=null,sB=Y1.S;Y1.S=function(_,J){if(lL=R2(),typeof J==="object"&&J!==null&&typeof J.then==="function"){if(0>B3&&0>E5){B3=$2();var $=F_(),q=Z_();if($!==z6||q!==Z8)z6=-1.1;Y6=$,Z8=q}sO(_,J)}sB!==null&&sB(_,J)};var X8=$1(null),J4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},k_=[],D_=[],u_=[],b_=[],E_=[],h_=[],K8=new Set;J4.recordUnsafeLifecycleWarnings=function(_,J){K8.has(_.type)||(typeof J.componentWillMount==="function"&&J.componentWillMount.__suppressDeprecationWarning!==!0&&k_.push(_),_.mode&u2&&typeof J.UNSAFE_componentWillMount==="function"&&D_.push(_),typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&u_.push(_),_.mode&u2&&typeof J.UNSAFE_componentWillReceiveProps==="function"&&b_.push(_),typeof J.componentWillUpdate==="function"&&J.componentWillUpdate.__suppressDeprecationWarning!==!0&&E_.push(_),_.mode&u2&&typeof J.UNSAFE_componentWillUpdate==="function"&&h_.push(_))},J4.flushPendingUnsafeLifecycleWarnings=function(){var _=new Set;0<k_.length&&(k_.forEach(function(L){_.add(x(L)||"Component"),K8.add(L.type)}),k_=[]);var J=new Set;0<D_.length&&(D_.forEach(function(L){J.add(x(L)||"Component"),K8.add(L.type)}),D_=[]);var $=new Set;0<u_.length&&(u_.forEach(function(L){$.add(x(L)||"Component"),K8.add(L.type)}),u_=[]);var q=new Set;0<b_.length&&(b_.forEach(function(L){q.add(x(L)||"Component"),K8.add(L.type)}),b_=[]);var G=new Set;0<E_.length&&(E_.forEach(function(L){G.add(x(L)||"Component"),K8.add(L.type)}),E_=[]);var X=new Set;if(0<h_.length&&(h_.forEach(function(L){X.add(x(L)||"Component"),K8.add(L.type)}),h_=[]),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.`,x(A5)||"Unknown")),q=r3(J),q.payload={element:$},X=X===void 0?null:X,X!==null&&(typeof X!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",X),q.callback=X),$=a3(_,q,J),$!==null&&(A4(J,"root.render()",null),c0($,_,J),i9($,_,J))}function kW(_,J){if(_=_.memoizedState,_!==null&&_.dehydrated!==null){var $=_.retryLane;_.retryLane=$!==0&&$<J?$:J}}function HZ(_,J){kW(_,J),(_=_.alternate)&&kW(_,J)}function DW(_){if(_.tag===13||_.tag===31){var J=k2(_,67108864);J!==null&&c0(J,_,67108864),HZ(_,67108864)}}function uW(_){if(_.tag===13||_.tag===31){var J=W5(_);J=r5(J);var $=k2(_,J);$!==null&&c0($,_,J),HZ(_,J)}}function Zw(){return A5}function Fw(_,J,$,q){var G=Y1.T;Y1.T=null;var X=A0.p;try{A0.p=M5,YZ(_,J,$,q)}finally{A0.p=X,Y1.T=G}}function Xw(_,J,$,q){var G=Y1.T;Y1.T=null;var X=A0.p;try{A0.p=e5,YZ(_,J,$,q)}finally{A0.p=X,Y1.T=G}}function YZ(_,J,$,q){if(Yq){var G=zZ(q);if(G===null)oG(_,J,q,zq,$),EW(_,q);else if(Kw(G,_,J,$,q))q.stopPropagation();else if(EW(_,q),J&4&&-1<$N.indexOf(_)){for(;G!==null;){var X=N1(G);if(X!==null)switch(X.tag){case 3:if(X=X.stateNode,X.current.memoizedState.isDehydrated){var z=K2(X.pendingLanes);if(z!==0){var B=X;B.pendingLanes|=2;for(B.entangledLanes|=2;z;){var w=1<<31-c2(z);B.entanglements[1]|=w,z&=~w}S4(X),(Y0&(W2|I5))===w2&&(sQ=R2()+dB,U_(0,!1))}}break;case 31:case 13:B=k2(X,2),B!==null&&c0(B,X,2),Y7(),HZ(X,2)}if(X=zZ(q),X===null&&oG(_,J,q,zq,$),X===G)break;G=X}G!==null&&q.stopPropagation()}else oG(_,J,q,null,$)}}function zZ(_){return _=TU(_),WZ(_)}function WZ(_){if(zq=null,_=R1(_),_!==null){var J=C(_);if(J===null)_=null;else{var $=J.tag;if($===13){if(_=u(J),_!==null)return _;_=null}else if($===31){if(_=f(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 zq=_,null}function bW(_){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 M5;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 e5;case"message":switch(Tw()){case fZ:return M5;case SZ:return e5;case R7:case Rw:return u4;case vZ:return LQ;default:return u4}default:return u4}}function EW(_,J){switch(_){case"focusin":case"focusout":N6=null;break;case"dragenter":case"dragleave":C6=null;break;case"mouseover":case"mouseout":f6=null;break;case"pointerover":case"pointerout":GJ.delete(J.pointerId);break;case"gotpointercapture":case"lostpointercapture":ZJ.delete(J.pointerId)}}function Y_(_,J,$,q,G,X){if(_===null||_.nativeEvent!==X)return _={blockedOn:J,domEventName:$,eventSystemFlags:q,nativeEvent:X,targetContainers:[G]},J!==null&&(J=N1(J),J!==null&&DW(J)),_;return _.eventSystemFlags|=q,J=_.targetContainers,G!==null&&J.indexOf(G)===-1&&J.push(G),_}function Kw(_,J,$,q,G){switch(J){case"focusin":return N6=Y_(N6,_,J,$,q,G),!0;case"dragenter":return C6=Y_(C6,_,J,$,q,G),!0;case"mouseover":return f6=Y_(f6,_,J,$,q,G),!0;case"pointerover":var X=G.pointerId;return GJ.set(X,Y_(GJ.get(X)||null,_,J,$,q,G)),!0;case"gotpointercapture":return X=G.pointerId,ZJ.set(X,Y_(ZJ.get(X)||null,_,J,$,q,G)),!0}return!1}function hW(_){var J=R1(_.target);if(J!==null){var $=C(J);if($!==null){if(J=$.tag,J===13){if(J=u($),J!==null){_.blockedOn=J,F1(_.priority,function(){uW($)});return}}else if(J===31){if(J=f($),J!==null){_.blockedOn=J,F1(_.priority,function(){uW($)});return}}else if(J===3&&$.stateNode.current.memoizedState.isDehydrated){_.blockedOn=$.tag===3?$.stateNode.containerInfo:null;return}}}_.blockedOn=null}function GQ(_){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;A_!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),A_=G,$.target.dispatchEvent(q),A_===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."),A_=null}else return J=N1($),J!==null&&DW(J),_.blockedOn=$,!1;J.shift()}return!0}function xW(_,J,$){GQ(_)&&$.delete(J)}function Hw(){cF=!1,N6!==null&&GQ(N6)&&(N6=null),C6!==null&&GQ(C6)&&(C6=null),f6!==null&&GQ(f6)&&(f6=null),GJ.forEach(xW),ZJ.forEach(xW)}function ZQ(_,J){_.blockedOn===J&&(_.blockedOn=null,cF||(cF=!0,W0.unstable_scheduleCallback(W0.unstable_NormalPriority,Hw)))}function mW(_){Wq!==_&&(Wq=_,W0.unstable_scheduleCallback(W0.unstable_NormalPriority,function(){Wq===_&&(Wq=null);for(var J=0;J<_.length;J+=3){var $=_[J],q=_[J+1],G=_[J+2];if(typeof q!=="function")if(WZ(q||$)===null)continue;else break;var X=N1($);X!==null&&(_.splice(J,3),J-=3,$={pending:!0,data:G,method:$.method,action:q},Object.freeze($),WG(X,$,q,G))}}))}function A7(_){function J(w){return ZQ(w,_)}N6!==null&&ZQ(N6,_),C6!==null&&ZQ(C6,_),f6!==null&&ZQ(f6,_),GJ.forEach(J),ZJ.forEach(J);for(var $=0;$<S6.length;$++){var q=S6[$];q.blockedOn===_&&(q.blockedOn=null)}for(;0<S6.length&&($=S6[0],$.blockedOn===null);)hW($),$.blockedOn===null&&S6.shift();if($=(_.ownerDocument||_).$$reactFormReplay,$!=null)for(q=0;q<$.length;q+=3){var G=$[q],X=$[q+1],z=G[l2]||null;if(typeof X==="function")z||mW($);else if(z){var B=null;if(X&&X.hasAttribute("formAction")){if(G=X,z=X[l2]||null)B=z.formAction;else if(WZ(G)!==null)continue}else B=z.action;typeof B==="function"?$[q+1]=B:($.splice(q,3),q-=3),mW($)}}}function gW(){function _(X){X.canIntercept&&X.info==="react-transition"&&X.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 X=navigation.currentEntry;X&&X.url!=null&&navigation.navigate(X.url,{state:X.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 LZ(_){this._internalRoot=_}function FQ(_){this._internalRoot=_}function pW(_){_[q6]&&(_._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 U0=Object.assign,Yw=Symbol.for("react.element"),j4=Symbol.for("react.transitional.element"),M7=Symbol.for("react.portal"),T7=Symbol.for("react.fragment"),XQ=Symbol.for("react.strict_mode"),BZ=Symbol.for("react.profiler"),AZ=Symbol.for("react.consumer"),V4=Symbol.for("react.context"),z_=Symbol.for("react.forward_ref"),MZ=Symbol.for("react.suspense"),TZ=Symbol.for("react.suspense_list"),KQ=Symbol.for("react.memo"),B5=Symbol.for("react.lazy"),RZ=Symbol.for("react.activity"),zw=Symbol.for("react.memo_cache_sentinel"),cW=Symbol.iterator,Ww=Symbol.for("react.client.reference"),Y2=Array.isArray,Y1=J9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A0=dF.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Lw=Object.freeze({pending:!1,data:null,method:null,action:null}),OZ=[],IZ=[],F3=-1,J6=$1(null),W_=$1(null),$6=$1(null),HQ=$1(null),L_=0,lW,iW,dW,rW,aW,sW,tW;y.__reactDisabledLog=!0;var wZ,oW,PZ=!1,NZ=new(typeof WeakMap==="function"?WeakMap:Map),A5=null,y4=!1,n5=Object.prototype.hasOwnProperty,CZ=W0.unstable_scheduleCallback,Bw=W0.unstable_cancelCallback,Aw=W0.unstable_shouldYield,Mw=W0.unstable_requestPaint,R2=W0.unstable_now,Tw=W0.unstable_getCurrentPriorityLevel,fZ=W0.unstable_ImmediatePriority,SZ=W0.unstable_UserBlockingPriority,R7=W0.unstable_NormalPriority,Rw=W0.unstable_LowPriority,vZ=W0.unstable_IdlePriority,Ow=W0.log,Iw=W0.unstable_setDisableYieldValue,O7=null,D2=null,k4=!1,D4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",c2=Math.clz32?Math.clz32:X2,ww=Math.log,Pw=Math.LN2,YQ=256,zQ=262144,WQ=4194304,M5=2,e5=8,u4=32,LQ=268435456,Q6=Math.random().toString(36).slice(2),j2="__reactFiber$"+Q6,l2="__reactProps$"+Q6,q6="__reactContainer$"+Q6,jZ="__reactEvents$"+Q6,Nw="__reactListeners$"+Q6,Cw="__reactHandles$"+Q6,nW="__reactResources$"+Q6,B_="__reactMarker$"+Q6,eW=new Set,$8={},VZ={},fw={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Sw=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]*$"),_L={},JL={},vw=/[\n"\\]/g,$L=!1,QL=!1,qL=!1,UL=!1,GL=!1,ZL=!1,FL=["value","defaultValue"],XL=!1,KL=/["'&<>\n\t]|^\s|\s$/,jw="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(" "),HL="applet caption html table td th marquee object template foreignObject desc title".split(" "),Vw=HL.concat(["button"]),yw="dd dt li option optgroup p rp rt".split(" "),YL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},BQ={},yZ={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"]},zL=/([A-Z])/g,WL=/^ms-/,kw=/^(?:webkit|moz|o)[A-Z]/,Dw=/^-ms-/,uw=/-(.)/g,LL=/;\s*$/,I7={},kZ={},BL=!1,AL=!1,ML=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(" ")),AQ="http://www.w3.org/1998/Math/MathML",w7="http://www.w3.org/2000/svg",bw=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"]]),MQ={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"},TL={"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},P7={},Ew=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]*$"),hw=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]*$"),RL=!1,i2={},OL=/^on./,xw=/^on[^A-Z]/,mw=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]*$"),gw=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]*$"),pw=/^[\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,A_=null,N7=null,C7=null,DZ=!1,b4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uZ=!1;if(b4)try{var M_={};Object.defineProperty(M_,"passive",{get:function(){uZ=!0}}),window.addEventListener("test",M_,M_),window.removeEventListener("test",M_,M_)}catch(_){uZ=!1}var U6=null,bZ=null,TQ=null,Q8={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(_){return _.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},RQ=J5(Q8),T_=U0({},Q8,{view:0,detail:0}),cw=J5(T_),EZ,hZ,R_,OQ=U0({},T_,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:RU,button:0,buttons:0,relatedTarget:function(_){return _.relatedTarget===void 0?_.fromElement===_.srcElement?_.toElement:_.fromElement:_.relatedTarget},movementX:function(_){if("movementX"in _)return _.movementX;return _!==R_&&(R_&&_.type==="mousemove"?(EZ=_.screenX-R_.screenX,hZ=_.screenY-R_.screenY):hZ=EZ=0,R_=_),EZ},movementY:function(_){return"movementY"in _?_.movementY:hZ}}),IL=J5(OQ),lw=U0({},OQ,{dataTransfer:0}),iw=J5(lw),dw=U0({},T_,{relatedTarget:0}),xZ=J5(dw),rw=U0({},Q8,{animationName:0,elapsedTime:0,pseudoElement:0}),aw=J5(rw),sw=U0({},Q8,{clipboardData:function(_){return"clipboardData"in _?_.clipboardData:window.clipboardData}}),tw=J5(sw),ow=U0({},Q8,{data:0}),wL=J5(ow),nw=wL,ew={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_P={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"},JP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},$P=U0({},T_,{key:function(_){if(_.key){var J=ew[_.key]||_.key;if(J!=="Unidentified")return J}return _.type==="keypress"?(_=G$(_),_===13?"Enter":String.fromCharCode(_)):_.type==="keydown"||_.type==="keyup"?_P[_.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:RU,charCode:function(_){return _.type==="keypress"?G$(_):0},keyCode:function(_){return _.type==="keydown"||_.type==="keyup"?_.keyCode:0},which:function(_){return _.type==="keypress"?G$(_):_.type==="keydown"||_.type==="keyup"?_.keyCode:0}}),QP=J5($P),qP=U0({},OQ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),PL=J5(qP),UP=U0({},T_,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:RU}),GP=J5(UP),ZP=U0({},Q8,{propertyName:0,elapsedTime:0,pseudoElement:0}),FP=J5(ZP),XP=U0({},OQ,{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}),KP=J5(XP),HP=U0({},Q8,{newState:0,oldState:0}),YP=J5(HP),zP=[9,13,27,32],NL=229,mZ=b4&&"CompositionEvent"in window,O_=null;b4&&"documentMode"in document&&(O_=document.documentMode);var WP=b4&&"TextEvent"in window&&!O_,CL=b4&&(!mZ||O_&&8<O_&&11>=O_),fL=32,SL=String.fromCharCode(fL),vL=!1,f7=!1,LP={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},I_=null,w_=null,jL=!1;b4&&(jL=bO("input")&&(!document.documentMode||9<document.documentMode));var d2=typeof Object.is==="function"?Object.is:pO,BP=b4&&"documentMode"in document&&11>=document.documentMode,S7=null,gZ=null,P_=null,pZ=!1,v7={animationend:p6("Animation","AnimationEnd"),animationiteration:p6("Animation","AnimationIteration"),animationstart:p6("Animation","AnimationStart"),transitionrun:p6("Transition","TransitionRun"),transitionstart:p6("Transition","TransitionStart"),transitioncancel:p6("Transition","TransitionCancel"),transitionend:p6("Transition","TransitionEnd")},cZ={},VL={};b4&&(VL=document.createElement("div").style,("AnimationEvent"in window)||(delete v7.animationend.animation,delete v7.animationiteration.animation,delete v7.animationstart.animation),("TransitionEvent"in window)||delete v7.transitionend.transition);var yL=c6("animationend"),kL=c6("animationiteration"),DL=c6("animationstart"),AP=c6("transitionrun"),MP=c6("transitionstart"),TP=c6("transitioncancel"),uL=c6("transitionend"),bL=new Map,lZ="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(" ");lZ.push("scrollEnd");var EL=0;if(typeof performance==="object"&&typeof performance.now==="function")var RP=performance,hL=function(){return RP.now()};else{var OP=Date;hL=function(){return OP.now()}}var iZ=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(_)},IP="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.",IQ=0,dZ=1,rZ=2,aZ=3,wQ="– ",PQ="+ ",xL=" ",V0=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",V5="Components ⚛",G0="Scheduler ⚛",Z0="Blocking",G6=!1,X3={color:"primary",properties:null,tooltipText:"",track:V5},Z6={start:-0,end:-0,detail:{devtools:X3}},wP=["Changed Props",""],mL="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",PP=["Changed Props",mL],N_=1,K3=2,y5=[],j7=0,sZ=0,F6={};Object.freeze(F6);var k5=null,V7=null,i1=0,NP=1,e1=2,u2=8,_4=16,CP=32,gL=!1;try{var pL=Object.preventExtensions({})}catch(_){gL=!0}var tZ=new WeakMap,y7=[],k7=0,NQ=null,C_=0,D5=[],u5=0,q8=null,H3=1,Y3="",V2=null,y0=null,F0=!1,E4=!1,T5=null,X6=null,b5=!1,oZ=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."),nZ=$1(null),eZ=$1(null),cL={},CQ=null,D7=null,u7=!1,fP=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 $()})}},SP=W0.unstable_scheduleCallback,vP=W0.unstable_NormalPriority,J2={$$typeof:V4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},$2=W0.unstable_now,fQ=console.createTask?console.createTask:function(){return null},f_=1,SQ=2,O2=-0,K6=-0,z3=-0,W3=null,r2=-1.1,U8=-0,m0=-0,m1=-1.1,l1=-1.1,b0=null,l0=!1,H6=-0,h4=-1.1,S_=null,Y6=0,_F=null,JF=null,G8=-1.1,v_=null,b7=-1.1,vQ=-1.1,x4=-0,L3=-1.1,E5=-1.1,$F=0,j_=null,lL=null,iL=null,z6=-1.1,Z8=null,W6=-1.1,jQ=-1.1,dL=-0,rL=-0,VQ=0,B3=null,aL=0,V_=-1.1,yQ=!1,kQ=!1,y_=null,QF=0,F8=0,E7=null,sL=Y1.S;Y1.S=function(_,J){if(lB=R2(),typeof J==="object"&&J!==null&&typeof J.then==="function"){if(0>L3&&0>E5){L3=$2();var $=F_(),q=Z_();if($!==W6||q!==Z8)W6=-1.1;z6=$,Z8=q}sO(_,J)}sL!==null&&sL(_,J)};var X8=$1(null),J4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},k_=[],D_=[],u_=[],b_=[],E_=[],h_=[],K8=new Set;J4.recordUnsafeLifecycleWarnings=function(_,J){K8.has(_.type)||(typeof J.componentWillMount==="function"&&J.componentWillMount.__suppressDeprecationWarning!==!0&&k_.push(_),_.mode&u2&&typeof J.UNSAFE_componentWillMount==="function"&&D_.push(_),typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&u_.push(_),_.mode&u2&&typeof J.UNSAFE_componentWillReceiveProps==="function"&&b_.push(_),typeof J.componentWillUpdate==="function"&&J.componentWillUpdate.__suppressDeprecationWarning!==!0&&E_.push(_),_.mode&u2&&typeof J.UNSAFE_componentWillUpdate==="function"&&h_.push(_))},J4.flushPendingUnsafeLifecycleWarnings=function(){var _=new Set;0<k_.length&&(k_.forEach(function(B){_.add(x(B)||"Component"),K8.add(B.type)}),k_=[]);var J=new Set;0<D_.length&&(D_.forEach(function(B){J.add(x(B)||"Component"),K8.add(B.type)}),D_=[]);var $=new Set;0<u_.length&&(u_.forEach(function(B){$.add(x(B)||"Component"),K8.add(B.type)}),u_=[]);var q=new Set;0<b_.length&&(b_.forEach(function(B){q.add(x(B)||"Component"),K8.add(B.type)}),b_=[]);var G=new Set;0<E_.length&&(E_.forEach(function(B){G.add(x(B)||"Component"),K8.add(B.type)}),E_=[]);var X=new Set;if(0<h_.length&&(h_.forEach(function(B){X.add(x(B)||"Component"),K8.add(B.type)}),h_=[]),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 DQ=new Map,
|
|
213
|
+
Please update the following components: %s`,z))};var DQ=new Map,tL=new Set;J4.recordLegacyContextWarning=function(_,J){var $=null;for(var q=_;q!==null;)q.mode&u2&&($=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."):!tL.has(_.type)&&(q=DQ.get($),_.type.contextTypes!=null||_.type.childContextTypes!=null||J!==null&&typeof J.getChildContext==="function")&&(q===void 0&&(q=[],DQ.set($,q)),q.push(_))},J4.flushLegacyContextWarning=function(){DQ.forEach(function(_){if(_.length!==0){var J=_[0],$=new Set;_.forEach(function(G){$.add(x(G)||"Component"),tL.add(G.type)});var q=A($);A1(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)})}})},J4.discardPendingWarnings=function(){k_=[],D_=[],u_=[],b_=[],E_=[],h_=[],DQ=new Map};var
|
|
219
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,q)})}})},J4.discardPendingWarnings=function(){k_=[],D_=[],u_=[],b_=[],E_=[],h_=[],DQ=new Map};var oL={react_stack_bottom_frame:function(_,J,$){var q=y4;y4=!0;try{return _(J,$)}finally{y4=q}}},qF=oL.react_stack_bottom_frame.bind(oL),nL={react_stack_bottom_frame:function(_){var J=y4;y4=!0;try{return _.render()}finally{y4=J}}},eL=nL.react_stack_bottom_frame.bind(nL),_B={react_stack_bottom_frame:function(_,J){try{J.componentDidMount()}catch($){B0(_,_.return,$)}}},UF=_B.react_stack_bottom_frame.bind(_B),JB={react_stack_bottom_frame:function(_,J,$,q,G){try{J.componentDidUpdate($,q,G)}catch(X){B0(_,_.return,X)}}},$B=JB.react_stack_bottom_frame.bind(JB),QB={react_stack_bottom_frame:function(_,J){var $=J.stack;_.componentDidCatch(J.value,{componentStack:$!==null?$:""})}},jP=QB.react_stack_bottom_frame.bind(QB),qB={react_stack_bottom_frame:function(_,J,$){try{$.componentWillUnmount()}catch(q){B0(_,J,q)}}},UB=qB.react_stack_bottom_frame.bind(qB),GB={react_stack_bottom_frame:function(_){var J=_.create;return _=_.inst,J=J(),_.destroy=J}},VP=GB.react_stack_bottom_frame.bind(GB),ZB={react_stack_bottom_frame:function(_,J,$){try{$()}catch(q){B0(_,J,q)}}},yP=ZB.react_stack_bottom_frame.bind(ZB),FB={react_stack_bottom_frame:function(_){var J=_._init;return J(_._payload)}},kP=FB.react_stack_bottom_frame.bind(FB),h7=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`."),GF=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."),uQ=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."),bQ={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.')}},H8=null,x_=!1,x7=null,m_=0,_0=null,ZF,XB=ZF=!1,KB={},HB={},YB={};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=x(_),G=q||"null";if(!KB[G]){KB[G]=!0,$=$._owner,_=_._debugOwner;var X="";_&&typeof _.tag==="number"&&(G=x(_))&&(X=`
|
|
220
220
|
|
|
221
221
|
Check the render method of \``+G+"`."),X||q&&(X=`
|
|
222
222
|
|
|
223
|
-
Check the top-level render call using <`+q+">.");var z="";$!=null&&_!==$&&(q=null,typeof $.tag==="number"?q=x($):typeof $.name==="string"&&(q=$.name),q&&(z=" It was passed a child from "+q+".")),A1(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.',X,z)})}}};var Y8=qY(!0),zL=qY(!1),WL=0,BL=1,LL=2,FF=3,W6=!1,AL=!1,XF=null,KF=!1,m7=$1(null),EQ=$1(0),R5=$1(null),h5=null,g7=1,g_=2,o0=$1(0),hQ=0,x5=1,a2=2,O5=4,s2=8,p7,ML=new Set,TL=new Set,HF=new Set,RL=new Set,A3=0,a1=null,N0=null,Q2=null,xQ=!1,c7=!1,z8=!1,mQ=0,p_=0,M3=null,DP=0,uP=25,X1=null,m5=null,T3=-1,c_=!1,l_={readContext:u0,use:t3,useCallback:r0,useContext:r0,useEffect:r0,useImperativeHandle:r0,useLayoutEffect:r0,useInsertionEffect:r0,useMemo:r0,useReducer:r0,useRef:r0,useState:r0,useDebugValue:r0,useDeferredValue:r0,useTransition:r0,useSyncExternalStore:r0,useId:r0,useHostTransitionStatus:r0,useFormState:r0,useActionState:r0,useOptimistic:r0,useMemoCache:r0,useCacheRefresh:r0};l_.useEffectEvent=r0;var YF=null,OL=null,zF=null,IL=null,m4=null,$4=null,gQ=null;YF={readContext:function(_){return u0(_)},use:t3,useCallback:function(_,J){return X1="useCallback",q0(),U7(J),KG(_,J)},useContext:function(_){return X1="useContext",q0(),u0(_)},useEffect:function(_,J){return X1="useEffect",q0(),U7(J),D$(_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",q0(),U7($),XG(_,J,$)},useInsertionEffect:function(_,J){X1="useInsertionEffect",q0(),U7(J),o6(4,a2,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",q0(),U7(J),FG(_,J)},useMemo:function(_,J){X1="useMemo",q0(),U7(J);var $=Y1.H;Y1.H=m4;try{return HG(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",q0();var q=Y1.H;Y1.H=m4;try{return eU(_,J,$)}finally{Y1.H=q}},useRef:function(_){return X1="useRef",q0(),GG(_)},useState:function(_){X1="useState",q0();var J=Y1.H;Y1.H=m4;try{return QG(_)}finally{Y1.H=J}},useDebugValue:function(){X1="useDebugValue",q0()},useDeferredValue:function(_,J){return X1="useDeferredValue",q0(),YG(_,J)},useTransition:function(){return X1="useTransition",q0(),BG()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",q0(),JG(_,J,$)},useId:function(){return X1="useId",q0(),LG()},useFormState:function(_,J){return X1="useFormState",q0(),j$(),Z7(_,J)},useActionState:function(_,J){return X1="useActionState",q0(),Z7(_,J)},useOptimistic:function(_){return X1="useOptimistic",q0(),qG(_)},useHostTransitionStatus:n6,useMemoCache:t6,useCacheRefresh:function(){return X1="useCacheRefresh",q0(),AG()},useEffectEvent:function(_){return X1="useEffectEvent",q0(),ZG(_)}},OL={readContext:function(_){return u0(_)},use:t3,useCallback:function(_,J){return X1="useCallback",w1(),KG(_,J)},useContext:function(_){return X1="useContext",w1(),u0(_)},useEffect:function(_,J){return X1="useEffect",w1(),D$(_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",w1(),XG(_,J,$)},useInsertionEffect:function(_,J){X1="useInsertionEffect",w1(),o6(4,a2,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",w1(),FG(_,J)},useMemo:function(_,J){X1="useMemo",w1();var $=Y1.H;Y1.H=m4;try{return HG(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",w1();var q=Y1.H;Y1.H=m4;try{return eU(_,J,$)}finally{Y1.H=q}},useRef:function(_){return X1="useRef",w1(),GG(_)},useState:function(_){X1="useState",w1();var J=Y1.H;Y1.H=m4;try{return QG(_)}finally{Y1.H=J}},useDebugValue:function(){X1="useDebugValue",w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",w1(),YG(_,J)},useTransition:function(){return X1="useTransition",w1(),BG()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",w1(),JG(_,J,$)},useId:function(){return X1="useId",w1(),LG()},useActionState:function(_,J){return X1="useActionState",w1(),Z7(_,J)},useFormState:function(_,J){return X1="useFormState",w1(),j$(),Z7(_,J)},useOptimistic:function(_){return X1="useOptimistic",w1(),qG(_)},useHostTransitionStatus:n6,useMemoCache:t6,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),AG()},useEffectEvent:function(_){return X1="useEffectEvent",w1(),ZG(_)}},zF={readContext:function(_){return u0(_)},use:t3,useCallback:function(_,J){return X1="useCallback",w1(),E$(_,J)},useContext:function(_){return X1="useContext",w1(),u0(_)},useEffect:function(_,J){X1="useEffect",w1(),$5(2048,s2,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",w1(),b$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",w1(),$5(4,a2,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",w1(),$5(4,O5,_,J)},useMemo:function(_,J){X1="useMemo",w1();var $=Y1.H;Y1.H=$4;try{return h$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",w1();var q=Y1.H;Y1.H=$4;try{return G7(_,J,$)}finally{Y1.H=q}},useRef:function(){return X1="useRef",w1(),R0().memoizedState},useState:function(){X1="useState",w1();var _=Y1.H;Y1.H=$4;try{return G7(t5)}finally{Y1.H=_}},useDebugValue:function(){X1="useDebugValue",w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",w1(),CY(_,J)},useTransition:function(){return X1="useTransition",w1(),yY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",w1(),V$(_,J,$)},useId:function(){return X1="useId",w1(),R0().memoizedState},useFormState:function(_){return X1="useFormState",w1(),j$(),y$(_)},useActionState:function(_){return X1="useActionState",w1(),y$(_)},useOptimistic:function(_,J){return X1="useOptimistic",w1(),LY(_,J)},useHostTransitionStatus:n6,useMemoCache:t6,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),R0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",w1(),u$(_)}},IL={readContext:function(_){return u0(_)},use:t3,useCallback:function(_,J){return X1="useCallback",w1(),E$(_,J)},useContext:function(_){return X1="useContext",w1(),u0(_)},useEffect:function(_,J){X1="useEffect",w1(),$5(2048,s2,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",w1(),b$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",w1(),$5(4,a2,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",w1(),$5(4,O5,_,J)},useMemo:function(_,J){X1="useMemo",w1();var $=Y1.H;Y1.H=gQ;try{return h$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",w1();var q=Y1.H;Y1.H=gQ;try{return s9(_,J,$)}finally{Y1.H=q}},useRef:function(){return X1="useRef",w1(),R0().memoizedState},useState:function(){X1="useState",w1();var _=Y1.H;Y1.H=gQ;try{return s9(t5)}finally{Y1.H=_}},useDebugValue:function(){X1="useDebugValue",w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",w1(),fY(_,J)},useTransition:function(){return X1="useTransition",w1(),kY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",w1(),V$(_,J,$)},useId:function(){return X1="useId",w1(),R0().memoizedState},useFormState:function(_){return X1="useFormState",w1(),j$(),k$(_)},useActionState:function(_){return X1="useActionState",w1(),k$(_)},useOptimistic:function(_,J){return X1="useOptimistic",w1(),MY(_,J)},useHostTransitionStatus:n6,useMemoCache:t6,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),R0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",w1(),u$(_)}},m4={readContext:function(_){return T(),u0(_)},use:function(_){return B(),t3(_)},useCallback:function(_,J){return X1="useCallback",B(),q0(),KG(_,J)},useContext:function(_){return X1="useContext",B(),q0(),u0(_)},useEffect:function(_,J){return X1="useEffect",B(),q0(),D$(_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",B(),q0(),XG(_,J,$)},useInsertionEffect:function(_,J){X1="useInsertionEffect",B(),q0(),o6(4,a2,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",B(),q0(),FG(_,J)},useMemo:function(_,J){X1="useMemo",B(),q0();var $=Y1.H;Y1.H=m4;try{return HG(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",B(),q0();var q=Y1.H;Y1.H=m4;try{return eU(_,J,$)}finally{Y1.H=q}},useRef:function(_){return X1="useRef",B(),q0(),GG(_)},useState:function(_){X1="useState",B(),q0();var J=Y1.H;Y1.H=m4;try{return QG(_)}finally{Y1.H=J}},useDebugValue:function(){X1="useDebugValue",B(),q0()},useDeferredValue:function(_,J){return X1="useDeferredValue",B(),q0(),YG(_,J)},useTransition:function(){return X1="useTransition",B(),q0(),BG()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",B(),q0(),JG(_,J,$)},useId:function(){return X1="useId",B(),q0(),LG()},useFormState:function(_,J){return X1="useFormState",B(),q0(),Z7(_,J)},useActionState:function(_,J){return X1="useActionState",B(),q0(),Z7(_,J)},useOptimistic:function(_){return X1="useOptimistic",B(),q0(),qG(_)},useMemoCache:function(_){return B(),t6(_)},useHostTransitionStatus:n6,useCacheRefresh:function(){return X1="useCacheRefresh",q0(),AG()},useEffectEvent:function(_){return X1="useEffectEvent",B(),q0(),ZG(_)}},$4={readContext:function(_){return T(),u0(_)},use:function(_){return B(),t3(_)},useCallback:function(_,J){return X1="useCallback",B(),w1(),E$(_,J)},useContext:function(_){return X1="useContext",B(),w1(),u0(_)},useEffect:function(_,J){X1="useEffect",B(),w1(),$5(2048,s2,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",B(),w1(),b$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",B(),w1(),$5(4,a2,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",B(),w1(),$5(4,O5,_,J)},useMemo:function(_,J){X1="useMemo",B(),w1();var $=Y1.H;Y1.H=$4;try{return h$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",B(),w1();var q=Y1.H;Y1.H=$4;try{return G7(_,J,$)}finally{Y1.H=q}},useRef:function(){return X1="useRef",B(),w1(),R0().memoizedState},useState:function(){X1="useState",B(),w1();var _=Y1.H;Y1.H=$4;try{return G7(t5)}finally{Y1.H=_}},useDebugValue:function(){X1="useDebugValue",B(),w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",B(),w1(),CY(_,J)},useTransition:function(){return X1="useTransition",B(),w1(),yY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",B(),w1(),V$(_,J,$)},useId:function(){return X1="useId",B(),w1(),R0().memoizedState},useFormState:function(_){return X1="useFormState",B(),w1(),y$(_)},useActionState:function(_){return X1="useActionState",B(),w1(),y$(_)},useOptimistic:function(_,J){return X1="useOptimistic",B(),w1(),LY(_,J)},useMemoCache:function(_){return B(),t6(_)},useHostTransitionStatus:n6,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),R0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",B(),w1(),u$(_)}},gQ={readContext:function(_){return T(),u0(_)},use:function(_){return B(),t3(_)},useCallback:function(_,J){return X1="useCallback",B(),w1(),E$(_,J)},useContext:function(_){return X1="useContext",B(),w1(),u0(_)},useEffect:function(_,J){X1="useEffect",B(),w1(),$5(2048,s2,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",B(),w1(),b$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",B(),w1(),$5(4,a2,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",B(),w1(),$5(4,O5,_,J)},useMemo:function(_,J){X1="useMemo",B(),w1();var $=Y1.H;Y1.H=$4;try{return h$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",B(),w1();var q=Y1.H;Y1.H=$4;try{return s9(_,J,$)}finally{Y1.H=q}},useRef:function(){return X1="useRef",B(),w1(),R0().memoizedState},useState:function(){X1="useState",B(),w1();var _=Y1.H;Y1.H=$4;try{return s9(t5)}finally{Y1.H=_}},useDebugValue:function(){X1="useDebugValue",B(),w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",B(),w1(),fY(_,J)},useTransition:function(){return X1="useTransition",B(),w1(),kY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",B(),w1(),V$(_,J,$)},useId:function(){return X1="useId",B(),w1(),R0().memoizedState},useFormState:function(_){return X1="useFormState",B(),w1(),k$(_)},useActionState:function(_){return X1="useActionState",B(),w1(),k$(_)},useOptimistic:function(_,J){return X1="useOptimistic",B(),w1(),MY(_,J)},useMemoCache:function(_){return B(),t6(_)},useHostTransitionStatus:n6,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),R0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",B(),w1(),u$(_)}};var wL={},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,kL=new Set;Object.freeze(wL);var WF={enqueueSetState:function(_,J,$){_=_._reactInternals;var q=W5(_),G=d3(q);G.payload=J,$!==void 0&&$!==null&&(TG($),G.callback=$),J=r3(_,G,q),J!==null&&(A4(q,"this.setState()",_),c0(J,_,q),i9(J,_,q))},enqueueReplaceState:function(_,J,$){_=_._reactInternals;var q=W5(_),G=d3(q);G.tag=BL,G.payload=J,$!==void 0&&$!==null&&(TG($),G.callback=$),J=r3(_,G,q),J!==null&&(A4(q,"this.replaceState()",_),c0(J,_,q),i9(J,_,q))},enqueueForceUpdate:function(_,J){_=_._reactInternals;var $=W5(_),q=d3($);q.tag=LL,J!==void 0&&J!==null&&(TG(J),q.callback=J),J=r3(_,q,$),J!==null&&(A4($,"this.forceUpdate()",_),c0(J,_,$),i9(J,_,$))}},l7=null,BF=null,LF=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."),q2=!1,DL={},uL={},bL={},EL={},i7=!1,hL={},pQ={},AF={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},xL=!1,mL=null;mL=new Set;var R3=!1,U2=!1,MF=!1,gL=typeof WeakSet==="function"?WeakSet:Set,I2=null,d7=null,r7=null,G2=null,U5=!1,Q4=null,z2=!1,i_=8192,bP={getCacheForType:function(_){var J=u0(J2),$=J.data.get(_);return $===void 0&&($=_(),J.data.set(_,$)),$},cacheSignal:function(){return u0(J2).controller.signal},getOwner:function(){return A5}};if(typeof Symbol==="function"&&Symbol.for){var d_=Symbol.for;d_("selector.component"),d_("selector.has_pseudo_class"),d_("selector.role"),d_("selector.test_id"),d_("selector.text")}var EP=[],hP=typeof WeakMap==="function"?WeakMap:Map,w2=0,W2=2,I5=4,O3=0,r_=1,W8=2,cQ=3,B6=4,lQ=6,pL=5,Y0=w2,C0=null,$0=null,J0=0,G5=0,iQ=1,B8=2,a_=3,cL=4,TF=5,s_=6,dQ=7,RF=8,L8=9,O0=G5,w5=null,L6=!1,a7=!1,OF=!1,g4=0,g0=O3,A6=0,M6=0,IF=0,Z5=0,A8=0,t_=null,t2=null,rQ=!1,aQ=0,lL=0,iL=300,sQ=1/0,dL=500,o_=null,a0=null,T6=null,tQ=0,wF=1,PF=2,rL=3,R6=0,aL=1,sL=2,tL=3,oL=4,oQ=5,Z2=0,O6=null,s7=null,q4=0,NF=0,CF=-0,fF=null,nL=null,eL=null,U4=tQ,_A=null,xP=50,n_=0,SF=null,jF=!1,nQ=!1,mP=50,M8=0,e_=null,t7=!1,eQ=null,JA=!1,$A=new Set,gP={},_q=null,o7=null,vF=!1,VF=!1,Jq=!1,yF=!1,I6=0,kF={};(function(){for(var _=0;_<lZ.length;_++){var J=lZ[_],$=J.toLowerCase();J=J[0].toUpperCase()+J.slice(1),s5($,"on"+J)}s5(yB,"onAnimationEnd"),s5(kB,"onAnimationIteration"),s5(DB,"onAnimationStart"),s5("dblclick","onDoubleClick"),s5("focusin","onFocus"),s5("focusout","onBlur"),s5(AP,"onTransitionRun"),s5(MP,"onTransitionStart"),s5(TP,"onTransitionCancel"),s5(uB,"onTransitionEnd")})(),S0("onMouseEnter",["mouseout","mouseover"]),S0("onMouseLeave",["mouseout","mouseover"]),S0("onPointerEnter",["pointerout","pointerover"]),S0("onPointerLeave",["pointerout","pointerover"]),p1("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p1("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p1("onBeforeInput",["compositionend","keypress","textInput","paste"]),p1("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p1("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p1("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _J="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(" "),DF=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_J)),$q="_reactListening"+Math.random().toString(36).slice(2),QA=!1,qA=!1,Qq=!1,UA=!1,qq=!1,Uq=!1,GA=!1,Gq={},pP=/\r\n?/g,cP=/\u0000|\uFFFD/g,T8="http://www.w3.org/1999/xlink",uF="http://www.w3.org/XML/1998/namespace",lP="javascript:throw new Error('React form unexpectedly submitted.')",iP="suppressHydrationWarning",R8="&",Zq="/&",JJ="$",$J="/$",w6="$?",O8="$~",n7="$!",dP="html",rP="body",aP="head",bF="F!",ZA="F",FA="loading",sP="style",I3=0,e7=1,Fq=2,EF=null,hF=null,XA={dialog:!0,webview:!0},xF=null,QJ=void 0,KA=typeof setTimeout==="function"?setTimeout:void 0,tP=typeof clearTimeout==="function"?clearTimeout:void 0,I8=-1,HA=typeof Promise==="function"?Promise:void 0,oP=typeof queueMicrotask==="function"?queueMicrotask:typeof HA<"u"?function(_){return HA.resolve(null).then(_).catch(uI)}:KA,mF=null,w8=0,qJ=1,YA=2,zA=3,g5=4,p5=new Map,WA=new Set,w3=A0.d;A0.d={f:function(){var _=w3.f(),J=Y7();return _||J},r:function(_){var J=N1(_);J!==null&&J.tag===5&&J.type==="form"?VY(J):w3.r(_)},D:function(_){w3.D(_),PW("dns-prefetch",_,null)},C:function(_,J){w3.C(_,J),PW("preconnect",_,J)},L:function(_,J,$){w3.L(_,J,$);var q=_9;if(q&&_&&J){var G='link[rel="preload"][as="'+_5(J)+'"]';J==="image"?$&&$.imageSrcSet?(G+='[imagesrcset="'+_5($.imageSrcSet)+'"]',typeof $.imageSizes==="string"&&(G+='[imagesizes="'+_5($.imageSizes)+'"]')):G+='[href="'+_5(_)+'"]':G+='[href="'+_5(_)+'"]';var X=G;switch(J){case"style":X=B7(_);break;case"script":X=L7(_)}p5.has(X)||(_=U0({rel:"preload",href:J==="image"&&$&&$.imageSrcSet?void 0:_,as:J},$),p5.set(X,_),q.querySelector(G)!==null||J==="style"&&q.querySelector(K_(X))||J==="script"&&q.querySelector(H_(X))||(J=q.createElement("link"),j2(J,"link",_),v1(J),q.head.appendChild(J)))}},m:function(_,J){w3.m(_,J);var $=_9;if($&&_){var q=J&&typeof J.as==="string"?J.as:"script",G='link[rel="modulepreload"][as="'+_5(q)+'"][href="'+_5(_)+'"]',X=G;switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":X=L7(_)}if(!p5.has(X)&&(_=U0({rel:"modulepreload",href:_},J),p5.set(X,_),$.querySelector(G)===null)){switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if($.querySelector(H_(X)))return}q=$.createElement("link"),j2(q,"link",_),v1(q),$.head.appendChild(q)}}},X:function(_,J){w3.X(_,J);var $=_9;if($&&_){var q=y1($).hoistableScripts,G=L7(_),X=q.get(G);X||(X=$.querySelector(H_(G)),X||(_=U0({src:_,async:!0},J),(J=p5.get(G))&&XZ(_,J),X=$.createElement("script"),v1(X),j2(X,"link",_),$.head.appendChild(X)),X={type:"script",instance:X,count:1,state:null},q.set(G,X))}},S:function(_,J,$){w3.S(_,J,$);var q=_9;if(q&&_){var G=y1(q).hoistableStyles,X=B7(_);J=J||"default";var z=G.get(X);if(!z){var L={loading:w8,preload:null};if(z=q.querySelector(K_(X)))L.loading=qJ|g5;else{_=U0({rel:"stylesheet",href:_,"data-precedence":J},$),($=p5.get(X))&&FZ(_,$);var w=z=q.createElement("link");v1(w),j2(w,"link",_),w._p=new Promise(function(S,e){w.onload=S,w.onerror=e}),w.addEventListener("load",function(){L.loading|=qJ}),w.addEventListener("error",function(){L.loading|=YA}),L.loading|=g5,QQ(z,J,q)}z={type:"stylesheet",instance:z,count:1,state:L},G.set(X,z)}}},M:function(_,J){w3.M(_,J);var $=_9;if($&&_){var q=y1($).hoistableScripts,G=L7(_),X=q.get(G);X||(X=$.querySelector(H_(G)),X||(_=U0({src:_,async:!0,type:"module"},J),(J=p5.get(G))&&XZ(_,J),X=$.createElement("script"),v1(X),j2(X,"link",_),$.head.appendChild(X)),X={type:"script",instance:X,count:1,state:null},q.set(G,X))}}};var _9=typeof document>"u"?null:document,Xq=null,nP=60000,eP=800,_N=500,gF=0,pF=null,Kq=null,P8=Bw,UJ={$$typeof:V4,Provider:null,Consumer:null,_currentValue:P8,_currentValue2:P8,_threadCount:0},BA="%c%s%c",LA="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",AA="",Hq=" ",JN=Function.prototype.bind,MA=!1,TA=null,RA=null,OA=null,IA=null,wA=null,PA=null,NA=null,CA=null,fA=null,SA=null;TA=function(_,J,$,q){J=Q(_,J),J!==null&&($=U(J.memoizedState,$,0,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=U0({},_.memoizedProps),$=k2(_,2),$!==null&&c0($,_,2))},RA=function(_,J,$){J=Q(_,J),J!==null&&($=H(J.memoizedState,$,0),J.memoizedState=$,J.baseState=$,_.memoizedProps=U0({},_.memoizedProps),$=k2(_,2),$!==null&&c0($,_,2))},OA=function(_,J,$,q){J=Q(_,J),J!==null&&($=Z(J.memoizedState,$,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=U0({},_.memoizedProps),$=k2(_,2),$!==null&&c0($,_,2))},IA=function(_,J,$){_.pendingProps=U(_.memoizedProps,J,0,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=k2(_,2),J!==null&&c0(J,_,2)},wA=function(_,J){_.pendingProps=H(_.memoizedProps,J,0),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=k2(_,2),J!==null&&c0(J,_,2)},PA=function(_,J,$){_.pendingProps=Z(_.memoizedProps,J,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=k2(_,2),J!==null&&c0(J,_,2)},NA=function(_){var J=k2(_,2);J!==null&&c0(J,_,2)},CA=function(_){var J=M2(),$=k2(_,J);$!==null&&c0($,_,J)},fA=function(_){W=_},SA=function(_){Y=_};var Yq=!0,zq=null,cF=!1,P6=null,N6=null,C6=null,GJ=new Map,ZJ=new Map,f6=[],$N="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(" "),Wq=null;if(FQ.prototype.render=BZ.prototype.render=function(_){var J=this._internalRoot;if(J===null)throw Error("Cannot update an unmounted root.");var $=arguments;typeof $[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):j($[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof $[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),$=_;var q=J.current,G=W5(q);KZ(q,G,$,J,null,null)},FQ.prototype.unmount=BZ.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;(Y0&(W2|I5))!==w2&&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."),KZ(_.current,2,null,_,null,null),Y7(),J[Q6]=null}},FQ.prototype.unstable_scheduleHydration=function(_){if(_){var J=l();_={blockedOn:null,target:_,priority:J};for(var $=0;$<f6.length&&J!==0&&J<f6[$].priority;$++);f6.splice($,0,_),$===0&&hW(_)}},function(){var _=J9.version;if(_!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
223
|
+
Check the top-level render call using <`+q+">.");var z="";$!=null&&_!==$&&(q=null,typeof $.tag==="number"?q=x($):typeof $.name==="string"&&(q=$.name),q&&(z=" It was passed a child from "+q+".")),A1(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.',X,z)})}}};var Y8=qY(!0),zB=qY(!1),WB=0,LB=1,BB=2,FF=3,L6=!1,AB=!1,XF=null,KF=!1,m7=$1(null),EQ=$1(0),R5=$1(null),h5=null,g7=1,g_=2,o0=$1(0),hQ=0,x5=1,a2=2,O5=4,s2=8,p7,MB=new Set,TB=new Set,HF=new Set,RB=new Set,A3=0,a1=null,N0=null,Q2=null,xQ=!1,c7=!1,z8=!1,mQ=0,p_=0,M3=null,DP=0,uP=25,X1=null,m5=null,T3=-1,c_=!1,l_={readContext:u0,use:o3,useCallback:r0,useContext:r0,useEffect:r0,useImperativeHandle:r0,useLayoutEffect:r0,useInsertionEffect:r0,useMemo:r0,useReducer:r0,useRef:r0,useState:r0,useDebugValue:r0,useDeferredValue:r0,useTransition:r0,useSyncExternalStore:r0,useId:r0,useHostTransitionStatus:r0,useFormState:r0,useActionState:r0,useOptimistic:r0,useMemoCache:r0,useCacheRefresh:r0};l_.useEffectEvent=r0;var YF=null,OB=null,zF=null,IB=null,m4=null,$4=null,gQ=null;YF={readContext:function(_){return u0(_)},use:o3,useCallback:function(_,J){return X1="useCallback",q0(),U7(J),KG(_,J)},useContext:function(_){return X1="useContext",q0(),u0(_)},useEffect:function(_,J){return X1="useEffect",q0(),U7(J),D$(_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",q0(),U7($),XG(_,J,$)},useInsertionEffect:function(_,J){X1="useInsertionEffect",q0(),U7(J),o6(4,a2,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",q0(),U7(J),FG(_,J)},useMemo:function(_,J){X1="useMemo",q0(),U7(J);var $=Y1.H;Y1.H=m4;try{return HG(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",q0();var q=Y1.H;Y1.H=m4;try{return eU(_,J,$)}finally{Y1.H=q}},useRef:function(_){return X1="useRef",q0(),GG(_)},useState:function(_){X1="useState",q0();var J=Y1.H;Y1.H=m4;try{return QG(_)}finally{Y1.H=J}},useDebugValue:function(){X1="useDebugValue",q0()},useDeferredValue:function(_,J){return X1="useDeferredValue",q0(),YG(_,J)},useTransition:function(){return X1="useTransition",q0(),LG()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",q0(),JG(_,J,$)},useId:function(){return X1="useId",q0(),BG()},useFormState:function(_,J){return X1="useFormState",q0(),v$(),Z7(_,J)},useActionState:function(_,J){return X1="useActionState",q0(),Z7(_,J)},useOptimistic:function(_){return X1="useOptimistic",q0(),qG(_)},useHostTransitionStatus:n6,useMemoCache:t6,useCacheRefresh:function(){return X1="useCacheRefresh",q0(),AG()},useEffectEvent:function(_){return X1="useEffectEvent",q0(),ZG(_)}},OB={readContext:function(_){return u0(_)},use:o3,useCallback:function(_,J){return X1="useCallback",w1(),KG(_,J)},useContext:function(_){return X1="useContext",w1(),u0(_)},useEffect:function(_,J){return X1="useEffect",w1(),D$(_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",w1(),XG(_,J,$)},useInsertionEffect:function(_,J){X1="useInsertionEffect",w1(),o6(4,a2,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",w1(),FG(_,J)},useMemo:function(_,J){X1="useMemo",w1();var $=Y1.H;Y1.H=m4;try{return HG(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",w1();var q=Y1.H;Y1.H=m4;try{return eU(_,J,$)}finally{Y1.H=q}},useRef:function(_){return X1="useRef",w1(),GG(_)},useState:function(_){X1="useState",w1();var J=Y1.H;Y1.H=m4;try{return QG(_)}finally{Y1.H=J}},useDebugValue:function(){X1="useDebugValue",w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",w1(),YG(_,J)},useTransition:function(){return X1="useTransition",w1(),LG()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",w1(),JG(_,J,$)},useId:function(){return X1="useId",w1(),BG()},useActionState:function(_,J){return X1="useActionState",w1(),Z7(_,J)},useFormState:function(_,J){return X1="useFormState",w1(),v$(),Z7(_,J)},useOptimistic:function(_){return X1="useOptimistic",w1(),qG(_)},useHostTransitionStatus:n6,useMemoCache:t6,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),AG()},useEffectEvent:function(_){return X1="useEffectEvent",w1(),ZG(_)}},zF={readContext:function(_){return u0(_)},use:o3,useCallback:function(_,J){return X1="useCallback",w1(),E$(_,J)},useContext:function(_){return X1="useContext",w1(),u0(_)},useEffect:function(_,J){X1="useEffect",w1(),$5(2048,s2,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",w1(),b$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",w1(),$5(4,a2,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",w1(),$5(4,O5,_,J)},useMemo:function(_,J){X1="useMemo",w1();var $=Y1.H;Y1.H=$4;try{return h$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",w1();var q=Y1.H;Y1.H=$4;try{return G7(_,J,$)}finally{Y1.H=q}},useRef:function(){return X1="useRef",w1(),R0().memoizedState},useState:function(){X1="useState",w1();var _=Y1.H;Y1.H=$4;try{return G7(t5)}finally{Y1.H=_}},useDebugValue:function(){X1="useDebugValue",w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",w1(),CY(_,J)},useTransition:function(){return X1="useTransition",w1(),yY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",w1(),V$(_,J,$)},useId:function(){return X1="useId",w1(),R0().memoizedState},useFormState:function(_){return X1="useFormState",w1(),v$(),y$(_)},useActionState:function(_){return X1="useActionState",w1(),y$(_)},useOptimistic:function(_,J){return X1="useOptimistic",w1(),BY(_,J)},useHostTransitionStatus:n6,useMemoCache:t6,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),R0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",w1(),u$(_)}},IB={readContext:function(_){return u0(_)},use:o3,useCallback:function(_,J){return X1="useCallback",w1(),E$(_,J)},useContext:function(_){return X1="useContext",w1(),u0(_)},useEffect:function(_,J){X1="useEffect",w1(),$5(2048,s2,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",w1(),b$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",w1(),$5(4,a2,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",w1(),$5(4,O5,_,J)},useMemo:function(_,J){X1="useMemo",w1();var $=Y1.H;Y1.H=gQ;try{return h$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",w1();var q=Y1.H;Y1.H=gQ;try{return s9(_,J,$)}finally{Y1.H=q}},useRef:function(){return X1="useRef",w1(),R0().memoizedState},useState:function(){X1="useState",w1();var _=Y1.H;Y1.H=gQ;try{return s9(t5)}finally{Y1.H=_}},useDebugValue:function(){X1="useDebugValue",w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",w1(),fY(_,J)},useTransition:function(){return X1="useTransition",w1(),kY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",w1(),V$(_,J,$)},useId:function(){return X1="useId",w1(),R0().memoizedState},useFormState:function(_){return X1="useFormState",w1(),v$(),k$(_)},useActionState:function(_){return X1="useActionState",w1(),k$(_)},useOptimistic:function(_,J){return X1="useOptimistic",w1(),MY(_,J)},useHostTransitionStatus:n6,useMemoCache:t6,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),R0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",w1(),u$(_)}},m4={readContext:function(_){return T(),u0(_)},use:function(_){return L(),o3(_)},useCallback:function(_,J){return X1="useCallback",L(),q0(),KG(_,J)},useContext:function(_){return X1="useContext",L(),q0(),u0(_)},useEffect:function(_,J){return X1="useEffect",L(),q0(),D$(_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",L(),q0(),XG(_,J,$)},useInsertionEffect:function(_,J){X1="useInsertionEffect",L(),q0(),o6(4,a2,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",L(),q0(),FG(_,J)},useMemo:function(_,J){X1="useMemo",L(),q0();var $=Y1.H;Y1.H=m4;try{return HG(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",L(),q0();var q=Y1.H;Y1.H=m4;try{return eU(_,J,$)}finally{Y1.H=q}},useRef:function(_){return X1="useRef",L(),q0(),GG(_)},useState:function(_){X1="useState",L(),q0();var J=Y1.H;Y1.H=m4;try{return QG(_)}finally{Y1.H=J}},useDebugValue:function(){X1="useDebugValue",L(),q0()},useDeferredValue:function(_,J){return X1="useDeferredValue",L(),q0(),YG(_,J)},useTransition:function(){return X1="useTransition",L(),q0(),LG()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",L(),q0(),JG(_,J,$)},useId:function(){return X1="useId",L(),q0(),BG()},useFormState:function(_,J){return X1="useFormState",L(),q0(),Z7(_,J)},useActionState:function(_,J){return X1="useActionState",L(),q0(),Z7(_,J)},useOptimistic:function(_){return X1="useOptimistic",L(),q0(),qG(_)},useMemoCache:function(_){return L(),t6(_)},useHostTransitionStatus:n6,useCacheRefresh:function(){return X1="useCacheRefresh",q0(),AG()},useEffectEvent:function(_){return X1="useEffectEvent",L(),q0(),ZG(_)}},$4={readContext:function(_){return T(),u0(_)},use:function(_){return L(),o3(_)},useCallback:function(_,J){return X1="useCallback",L(),w1(),E$(_,J)},useContext:function(_){return X1="useContext",L(),w1(),u0(_)},useEffect:function(_,J){X1="useEffect",L(),w1(),$5(2048,s2,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",L(),w1(),b$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",L(),w1(),$5(4,a2,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",L(),w1(),$5(4,O5,_,J)},useMemo:function(_,J){X1="useMemo",L(),w1();var $=Y1.H;Y1.H=$4;try{return h$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",L(),w1();var q=Y1.H;Y1.H=$4;try{return G7(_,J,$)}finally{Y1.H=q}},useRef:function(){return X1="useRef",L(),w1(),R0().memoizedState},useState:function(){X1="useState",L(),w1();var _=Y1.H;Y1.H=$4;try{return G7(t5)}finally{Y1.H=_}},useDebugValue:function(){X1="useDebugValue",L(),w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",L(),w1(),CY(_,J)},useTransition:function(){return X1="useTransition",L(),w1(),yY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",L(),w1(),V$(_,J,$)},useId:function(){return X1="useId",L(),w1(),R0().memoizedState},useFormState:function(_){return X1="useFormState",L(),w1(),y$(_)},useActionState:function(_){return X1="useActionState",L(),w1(),y$(_)},useOptimistic:function(_,J){return X1="useOptimistic",L(),w1(),BY(_,J)},useMemoCache:function(_){return L(),t6(_)},useHostTransitionStatus:n6,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),R0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",L(),w1(),u$(_)}},gQ={readContext:function(_){return T(),u0(_)},use:function(_){return L(),o3(_)},useCallback:function(_,J){return X1="useCallback",L(),w1(),E$(_,J)},useContext:function(_){return X1="useContext",L(),w1(),u0(_)},useEffect:function(_,J){X1="useEffect",L(),w1(),$5(2048,s2,_,J)},useImperativeHandle:function(_,J,$){return X1="useImperativeHandle",L(),w1(),b$(_,J,$)},useInsertionEffect:function(_,J){return X1="useInsertionEffect",L(),w1(),$5(4,a2,_,J)},useLayoutEffect:function(_,J){return X1="useLayoutEffect",L(),w1(),$5(4,O5,_,J)},useMemo:function(_,J){X1="useMemo",L(),w1();var $=Y1.H;Y1.H=$4;try{return h$(_,J)}finally{Y1.H=$}},useReducer:function(_,J,$){X1="useReducer",L(),w1();var q=Y1.H;Y1.H=$4;try{return s9(_,J,$)}finally{Y1.H=q}},useRef:function(){return X1="useRef",L(),w1(),R0().memoizedState},useState:function(){X1="useState",L(),w1();var _=Y1.H;Y1.H=$4;try{return s9(t5)}finally{Y1.H=_}},useDebugValue:function(){X1="useDebugValue",L(),w1()},useDeferredValue:function(_,J){return X1="useDeferredValue",L(),w1(),fY(_,J)},useTransition:function(){return X1="useTransition",L(),w1(),kY()},useSyncExternalStore:function(_,J,$){return X1="useSyncExternalStore",L(),w1(),V$(_,J,$)},useId:function(){return X1="useId",L(),w1(),R0().memoizedState},useFormState:function(_){return X1="useFormState",L(),w1(),k$(_)},useActionState:function(_){return X1="useActionState",L(),w1(),k$(_)},useOptimistic:function(_,J){return X1="useOptimistic",L(),w1(),MY(_,J)},useMemoCache:function(_){return L(),t6(_)},useHostTransitionStatus:n6,useCacheRefresh:function(){return X1="useCacheRefresh",w1(),R0().memoizedState},useEffectEvent:function(_){return X1="useEffectEvent",L(),w1(),u$(_)}};var wB={},PB=new Set,NB=new Set,CB=new Set,fB=new Set,SB=new Set,vB=new Set,jB=new Set,VB=new Set,yB=new Set,kB=new Set;Object.freeze(wB);var WF={enqueueSetState:function(_,J,$){_=_._reactInternals;var q=W5(_),G=r3(q);G.payload=J,$!==void 0&&$!==null&&(TG($),G.callback=$),J=a3(_,G,q),J!==null&&(A4(q,"this.setState()",_),c0(J,_,q),i9(J,_,q))},enqueueReplaceState:function(_,J,$){_=_._reactInternals;var q=W5(_),G=r3(q);G.tag=LB,G.payload=J,$!==void 0&&$!==null&&(TG($),G.callback=$),J=a3(_,G,q),J!==null&&(A4(q,"this.replaceState()",_),c0(J,_,q),i9(J,_,q))},enqueueForceUpdate:function(_,J){_=_._reactInternals;var $=W5(_),q=r3($);q.tag=BB,J!==void 0&&J!==null&&(TG(J),q.callback=J),J=a3(_,q,$),J!==null&&(A4($,"this.forceUpdate()",_),c0(J,_,$),i9(J,_,$))}},l7=null,LF=null,BF=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."),q2=!1,DB={},uB={},bB={},EB={},i7=!1,hB={},pQ={},AF={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},xB=!1,mB=null;mB=new Set;var R3=!1,U2=!1,MF=!1,gB=typeof WeakSet==="function"?WeakSet:Set,I2=null,d7=null,r7=null,G2=null,U5=!1,Q4=null,z2=!1,i_=8192,bP={getCacheForType:function(_){var J=u0(J2),$=J.data.get(_);return $===void 0&&($=_(),J.data.set(_,$)),$},cacheSignal:function(){return u0(J2).controller.signal},getOwner:function(){return A5}};if(typeof Symbol==="function"&&Symbol.for){var d_=Symbol.for;d_("selector.component"),d_("selector.has_pseudo_class"),d_("selector.role"),d_("selector.test_id"),d_("selector.text")}var EP=[],hP=typeof WeakMap==="function"?WeakMap:Map,w2=0,W2=2,I5=4,O3=0,r_=1,W8=2,cQ=3,B6=4,lQ=6,pB=5,Y0=w2,C0=null,$0=null,J0=0,G5=0,iQ=1,L8=2,a_=3,cB=4,TF=5,s_=6,dQ=7,RF=8,B8=9,O0=G5,w5=null,A6=!1,a7=!1,OF=!1,g4=0,g0=O3,M6=0,T6=0,IF=0,Z5=0,A8=0,t_=null,t2=null,rQ=!1,aQ=0,lB=0,iB=300,sQ=1/0,dB=500,o_=null,a0=null,R6=null,tQ=0,wF=1,PF=2,rB=3,O6=0,aB=1,sB=2,tB=3,oB=4,oQ=5,Z2=0,I6=null,s7=null,q4=0,NF=0,CF=-0,fF=null,nB=null,eB=null,U4=tQ,_A=null,xP=50,n_=0,SF=null,vF=!1,nQ=!1,mP=50,M8=0,e_=null,t7=!1,eQ=null,JA=!1,$A=new Set,gP={},_q=null,o7=null,jF=!1,VF=!1,Jq=!1,yF=!1,w6=0,kF={};(function(){for(var _=0;_<lZ.length;_++){var J=lZ[_],$=J.toLowerCase();J=J[0].toUpperCase()+J.slice(1),s5($,"on"+J)}s5(yL,"onAnimationEnd"),s5(kL,"onAnimationIteration"),s5(DL,"onAnimationStart"),s5("dblclick","onDoubleClick"),s5("focusin","onFocus"),s5("focusout","onBlur"),s5(AP,"onTransitionRun"),s5(MP,"onTransitionStart"),s5(TP,"onTransitionCancel"),s5(uL,"onTransitionEnd")})(),S0("onMouseEnter",["mouseout","mouseover"]),S0("onMouseLeave",["mouseout","mouseover"]),S0("onPointerEnter",["pointerout","pointerover"]),S0("onPointerLeave",["pointerout","pointerover"]),p1("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p1("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p1("onBeforeInput",["compositionend","keypress","textInput","paste"]),p1("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p1("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p1("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _J="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(" "),DF=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_J)),$q="_reactListening"+Math.random().toString(36).slice(2),QA=!1,qA=!1,Qq=!1,UA=!1,qq=!1,Uq=!1,GA=!1,Gq={},pP=/\r\n?/g,cP=/\u0000|\uFFFD/g,T8="http://www.w3.org/1999/xlink",uF="http://www.w3.org/XML/1998/namespace",lP="javascript:throw new Error('React form unexpectedly submitted.')",iP="suppressHydrationWarning",R8="&",Zq="/&",JJ="$",$J="/$",P6="$?",O8="$~",n7="$!",dP="html",rP="body",aP="head",bF="F!",ZA="F",FA="loading",sP="style",I3=0,e7=1,Fq=2,EF=null,hF=null,XA={dialog:!0,webview:!0},xF=null,QJ=void 0,KA=typeof setTimeout==="function"?setTimeout:void 0,tP=typeof clearTimeout==="function"?clearTimeout:void 0,I8=-1,HA=typeof Promise==="function"?Promise:void 0,oP=typeof queueMicrotask==="function"?queueMicrotask:typeof HA<"u"?function(_){return HA.resolve(null).then(_).catch(uI)}:KA,mF=null,w8=0,qJ=1,YA=2,zA=3,g5=4,p5=new Map,WA=new Set,w3=A0.d;A0.d={f:function(){var _=w3.f(),J=Y7();return _||J},r:function(_){var J=N1(_);J!==null&&J.tag===5&&J.type==="form"?VY(J):w3.r(_)},D:function(_){w3.D(_),PW("dns-prefetch",_,null)},C:function(_,J){w3.C(_,J),PW("preconnect",_,J)},L:function(_,J,$){w3.L(_,J,$);var q=_9;if(q&&_&&J){var G='link[rel="preload"][as="'+_5(J)+'"]';J==="image"?$&&$.imageSrcSet?(G+='[imagesrcset="'+_5($.imageSrcSet)+'"]',typeof $.imageSizes==="string"&&(G+='[imagesizes="'+_5($.imageSizes)+'"]')):G+='[href="'+_5(_)+'"]':G+='[href="'+_5(_)+'"]';var X=G;switch(J){case"style":X=L7(_);break;case"script":X=B7(_)}p5.has(X)||(_=U0({rel:"preload",href:J==="image"&&$&&$.imageSrcSet?void 0:_,as:J},$),p5.set(X,_),q.querySelector(G)!==null||J==="style"&&q.querySelector(K_(X))||J==="script"&&q.querySelector(H_(X))||(J=q.createElement("link"),v2(J,"link",_),j1(J),q.head.appendChild(J)))}},m:function(_,J){w3.m(_,J);var $=_9;if($&&_){var q=J&&typeof J.as==="string"?J.as:"script",G='link[rel="modulepreload"][as="'+_5(q)+'"][href="'+_5(_)+'"]',X=G;switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":X=B7(_)}if(!p5.has(X)&&(_=U0({rel:"modulepreload",href:_},J),p5.set(X,_),$.querySelector(G)===null)){switch(q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if($.querySelector(H_(X)))return}q=$.createElement("link"),v2(q,"link",_),j1(q),$.head.appendChild(q)}}},X:function(_,J){w3.X(_,J);var $=_9;if($&&_){var q=y1($).hoistableScripts,G=B7(_),X=q.get(G);X||(X=$.querySelector(H_(G)),X||(_=U0({src:_,async:!0},J),(J=p5.get(G))&&XZ(_,J),X=$.createElement("script"),j1(X),v2(X,"link",_),$.head.appendChild(X)),X={type:"script",instance:X,count:1,state:null},q.set(G,X))}},S:function(_,J,$){w3.S(_,J,$);var q=_9;if(q&&_){var G=y1(q).hoistableStyles,X=L7(_);J=J||"default";var z=G.get(X);if(!z){var B={loading:w8,preload:null};if(z=q.querySelector(K_(X)))B.loading=qJ|g5;else{_=U0({rel:"stylesheet",href:_,"data-precedence":J},$),($=p5.get(X))&&FZ(_,$);var w=z=q.createElement("link");j1(w),v2(w,"link",_),w._p=new Promise(function(S,e){w.onload=S,w.onerror=e}),w.addEventListener("load",function(){B.loading|=qJ}),w.addEventListener("error",function(){B.loading|=YA}),B.loading|=g5,QQ(z,J,q)}z={type:"stylesheet",instance:z,count:1,state:B},G.set(X,z)}}},M:function(_,J){w3.M(_,J);var $=_9;if($&&_){var q=y1($).hoistableScripts,G=B7(_),X=q.get(G);X||(X=$.querySelector(H_(G)),X||(_=U0({src:_,async:!0,type:"module"},J),(J=p5.get(G))&&XZ(_,J),X=$.createElement("script"),j1(X),v2(X,"link",_),$.head.appendChild(X)),X={type:"script",instance:X,count:1,state:null},q.set(G,X))}}};var _9=typeof document>"u"?null:document,Xq=null,nP=60000,eP=800,_N=500,gF=0,pF=null,Kq=null,P8=Lw,UJ={$$typeof:V4,Provider:null,Consumer:null,_currentValue:P8,_currentValue2:P8,_threadCount:0},LA="%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",AA="",Hq=" ",JN=Function.prototype.bind,MA=!1,TA=null,RA=null,OA=null,IA=null,wA=null,PA=null,NA=null,CA=null,fA=null,SA=null;TA=function(_,J,$,q){J=Q(_,J),J!==null&&($=U(J.memoizedState,$,0,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=U0({},_.memoizedProps),$=k2(_,2),$!==null&&c0($,_,2))},RA=function(_,J,$){J=Q(_,J),J!==null&&($=H(J.memoizedState,$,0),J.memoizedState=$,J.baseState=$,_.memoizedProps=U0({},_.memoizedProps),$=k2(_,2),$!==null&&c0($,_,2))},OA=function(_,J,$,q){J=Q(_,J),J!==null&&($=Z(J.memoizedState,$,q),J.memoizedState=$,J.baseState=$,_.memoizedProps=U0({},_.memoizedProps),$=k2(_,2),$!==null&&c0($,_,2))},IA=function(_,J,$){_.pendingProps=U(_.memoizedProps,J,0,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=k2(_,2),J!==null&&c0(J,_,2)},wA=function(_,J){_.pendingProps=H(_.memoizedProps,J,0),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=k2(_,2),J!==null&&c0(J,_,2)},PA=function(_,J,$){_.pendingProps=Z(_.memoizedProps,J,$),_.alternate&&(_.alternate.pendingProps=_.pendingProps),J=k2(_,2),J!==null&&c0(J,_,2)},NA=function(_){var J=k2(_,2);J!==null&&c0(J,_,2)},CA=function(_){var J=M2(),$=k2(_,J);$!==null&&c0($,_,J)},fA=function(_){W=_},SA=function(_){Y=_};var Yq=!0,zq=null,cF=!1,N6=null,C6=null,f6=null,GJ=new Map,ZJ=new Map,S6=[],$N="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(" "),Wq=null;if(FQ.prototype.render=LZ.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()."):v($[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=W5(q);KZ(q,G,$,J,null,null)},FQ.prototype.unmount=LZ.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;(Y0&(W2|I5))!==w2&&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."),KZ(_.current,2,null,_,null,null),Y7(),J[q6]=null}},FQ.prototype.unstable_scheduleHydration=function(_){if(_){var J=l();_={blockedOn:null,target:_,priority:J};for(var $=0;$<S6.length&&J!==0&&J<S6[$].priority;$++);S6.splice($,0,_),$===0&&hW(_)}},function(){var _=J9.version;if(_!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
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"),A0.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 _=D(J),_=_!==null?h(_):null,_=_===null?null:_.stateNode,_},!function(){var _={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:Y1,reconcilerVersion:"19.2.7"};return _.overrideHookState=TA,_.overrideHookStateDeletePath=RA,_.overrideHookStateRenamePath=OA,_.overrideProps=IA,_.overridePropsDeletePath=wA,_.overridePropsRenamePath=PA,_.scheduleUpdate=NA,_.scheduleRetry=CA,_.setErrorHandler=fA,_.setSuspenseHandler=SA,_.scheduleRefresh=N,_.scheduleRoot=P,_.setRefreshHandler=V,_.getCurrentFiber=Zw,D0(_)}()&&b4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var
|
|
227
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}
|
|
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"),A0.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 _=D(J),_=_!==null?h(_):null,_=_===null?null:_.stateNode,_},!function(){var _={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:Y1,reconcilerVersion:"19.2.7"};return _.overrideHookState=TA,_.overrideHookStateDeletePath=RA,_.overrideHookStateRenamePath=OA,_.overrideProps=IA,_.overridePropsDeletePath=wA,_.overridePropsRenamePath=PA,_.scheduleUpdate=NA,_.scheduleRetry=CA,_.setErrorHandler=fA,_.setSuspenseHandler=SA,_.scheduleRefresh=N,_.scheduleRoot=P,_.setRefreshHandler=V,_.getCurrentFiber=Zw,D0(_)}()&&b4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var vA=window.location.protocol;/^(https?|file):$/.test(vA)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(vA==="file:"?`
|
|
227
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}LN.createRoot=function(_,J){if(!v(_))throw Error("Target container is not a DOM element.");pW(_);var $=!1,q="",G=xY,X=mY,z=gY;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===j4&&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&&(X=J.onCaughtError),J.onRecoverableError!==void 0&&(z=J.onRecoverableError)),J=VW(_,1,!1,null,null,$,q,null,G,X,z,gW),_[
|
|
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&&(X=J.onCaughtError),J.onRecoverableError!==void 0&&(z=J.onRecoverableError)),J=VW(_,1,!1,null,null,$,q,null,G,X,z,gW),_[q6]=J.current,tG(_),new LZ(J)},LN.hydrateRoot=function(_,J,$){if(!v(_))throw Error("Target container is not a DOM element.");pW(_),J===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var q=!1,G="",X=xY,z=mY,B=gY,w=null;return $!==null&&$!==void 0&&($.unstable_strictMode===!0&&(q=!0),$.identifierPrefix!==void 0&&(G=$.identifierPrefix),$.onUncaughtError!==void 0&&(X=$.onUncaughtError),$.onCaughtError!==void 0&&(z=$.onCaughtError),$.onRecoverableError!==void 0&&(B=$.onRecoverableError),$.formState!==void 0&&(w=$.formState)),J=VW(_,1,!0,J,$!=null?$:null,q,G,w,X,z,B,gW),J.context=yW(null),$=J.current,q=W5($),q=r5(q),G=r3(q),G.callback=null,a3($,G,q),A4(q,"hydrateRoot()",null),$=q,J.current.lanes=$,_2(J,$),S4(J),_[q6]=J.current,tG(_),new FQ(J)},LN.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var bA=p4((Lk,uA)=>{var BN=p0(DA());uA.exports=BN});var f8=p4((AN)=>{var C8=p0(G4());(function(){function Q(y){if(y==null)return null;if(typeof y==="function")return y.$$typeof===x?null:y.displayName||y.name||null;if(typeof y==="string")return y;switch(y){case V:return"Fragment";case C:return"Profiler";case v:return"StrictMode";case D:return"Suspense";case h:return"SuspenseList";case k: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 N:return"Portal";case f:return y.displayName||"Context";case u:return(y._context.displayName||"Context")+".Consumer";case j:var g=y.render;return y=y.displayName,y||(y=g.displayName||g.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case E:return g=y.displayName||null,g!==null?g:Q(y.type)||"Memo";case b:g=y._payload,y=y._init;try{return Q(y(g))}catch(q1){}}return null}function U(y){return""+y}function Z(y){try{U(y);var g=!1}catch(W1){g=!0}if(g){g=console;var q1=g.error,t=typeof Symbol==="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return q1.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",t),U(y)}}function K(y){if(y===V)return"<>";if(typeof y==="object"&&y!==null&&y.$$typeof===b)return"<...>";try{var g=Q(y);return g?"<"+g+">":"<...>"}catch(q1){return"<...>"}}function H(){var y=$1.A;return y===null?null:y.getOwner()}function Y(){return Error("react-stack-top-frame")}function W(y){if(Q1.call(y,"key")){var g=Object.getOwnPropertyDescriptor(y,"key").get;if(g&&g.isReactWarning)return!1}return y.key!==void 0}function L(y,g){function q1(){p||(p=!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)",g))}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,g,q1,t,W1,T1){var O1=q1.ref;return y={$$typeof:P,type:y,key:g,props:q1,_owner:t},(O1!==void 0?O1: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:T1}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function M(y,g,q1,t,W1,T1){var O1=g.children;if(O1!==void 0)if(t)if(J1(O1)){for(t=0;t<O1.length;t++)A(O1[t]);Object.freeze&&Object.freeze(O1)}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(O1);if(Q1.call(g,"key")){O1=Q(y);var L1=Object.keys(g).filter(function(P1){return P1!=="key"});t=0<L1.length?"{key: someKey, "+L1.join(": ..., ")+": ...}":"{key: someKey}",o[O1+t]||(L1=0<L1.length?"{"+L1.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} />`,t,O1,
|
|
235
|
+
<%s key={someKey} {...props} />`,t,O1,L1,O1),o[O1+t]=!0)}if(O1=null,q1!==void 0&&(Z(q1),O1=""+q1),W(g)&&(Z(g.key),O1=""+g.key),"key"in g){q1={};for(var U1 in g)U1!=="key"&&(q1[U1]=g[U1])}else q1=g;return O1&&L(q1,typeof y==="function"?y.displayName||y.name||"Unknown":y),R(y,O1,q1,H(),W1,T1)}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===P}var P=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),x=Symbol.for("react.client.reference"),$1=C8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q1=Object.prototype.hasOwnProperty,J1=Array.isArray,m=console.createTask?console.createTask:function(){return null};C8={react_stack_bottom_frame:function(y){return y()}};var p,c={},a=C8.react_stack_bottom_frame.bind(C8,Y)(),i=m(K(Y)),o={};AN.Fragment=V,AN.jsxDEV=function(y,g,q1,t){var W1=1e4>$1.recentlyCreatedOwnerStacks++;return M(y,g,q1,t,W1?Error("react-stack-top-frame"):a,W1?m(K(y)):i)}})()});var iA=p4((wN)=>{var v8=p0(G4());(function(){function Q(y){if(y==null)return null;if(typeof y==="function")return y.$$typeof===x?null:y.displayName||y.name||null;if(typeof y==="string")return y;switch(y){case V:return"Fragment";case C:return"Profiler";case v:return"StrictMode";case D:return"Suspense";case h:return"SuspenseList";case k: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 N:return"Portal";case f:return y.displayName||"Context";case u:return(y._context.displayName||"Context")+".Consumer";case j:var g=y.render;return y=y.displayName,y||(y=g.displayName||g.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case E:return g=y.displayName||null,g!==null?g:Q(y.type)||"Memo";case b:g=y._payload,y=y._init;try{return Q(y(g))}catch(q1){}}return null}function U(y){return""+y}function Z(y){try{U(y);var g=!1}catch(W1){g=!0}if(g){g=console;var q1=g.error,t=typeof Symbol==="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return q1.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",t),U(y)}}function K(y){if(y===V)return"<>";if(typeof y==="object"&&y!==null&&y.$$typeof===b)return"<...>";try{var g=Q(y);return g?"<"+g+">":"<...>"}catch(q1){return"<...>"}}function H(){var y=$1.A;return y===null?null:y.getOwner()}function Y(){return Error("react-stack-top-frame")}function W(y){if(Q1.call(y,"key")){var g=Object.getOwnPropertyDescriptor(y,"key").get;if(g&&g.isReactWarning)return!1}return y.key!==void 0}function L(y,g){function q1(){p||(p=!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)",g))}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,g,q1,t,W1,T1){var O1=q1.ref;return y={$$typeof:P,type:y,key:g,props:q1,_owner:t},(O1!==void 0?O1: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:T1}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function M(y,g,q1,t,W1,T1){var O1=g.children;if(O1!==void 0)if(t)if(J1(O1)){for(t=0;t<O1.length;t++)A(O1[t]);Object.freeze&&Object.freeze(O1)}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(O1);if(Q1.call(g,"key")){O1=Q(y);var L1=Object.keys(g).filter(function(P1){return P1!=="key"});t=0<L1.length?"{key: someKey, "+L1.join(": ..., ")+": ...}":"{key: someKey}",o[O1+t]||(L1=0<L1.length?"{"+L1.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} />`,t,O1,B1,O1),o[O1+t]=!0)}if(O1=null,q1!==void 0&&(Z(q1),O1=""+q1),W(g)&&(Z(g.key),O1=""+g.key),"key"in g){q1={};for(var U1 in g)U1!=="key"&&(q1[U1]=g[U1])}else q1=g;return O1&&B(q1,typeof y==="function"?y.displayName||y.name||"Unknown":y),R(y,O1,q1,H(),W1,T1)}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===P}var P=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),C=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),x=Symbol.for("react.client.reference"),$1=j8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q1=Object.prototype.hasOwnProperty,J1=Array.isArray,m=console.createTask?console.createTask:function(){return null};j8={react_stack_bottom_frame:function(y){return y()}};var p,c={},a=j8.react_stack_bottom_frame.bind(j8,Y)(),i=m(K(Y)),o={};wN.Fragment=V,wN.jsx=function(y,g,q1){var t=1e4>$1.recentlyCreatedOwnerStacks++;return M(y,g,q1,!1,t?Error("react-stack-top-frame"):a,t?m(K(y)):i)},wN.jsxs=function(y,g,q1){var t=1e4>$1.recentlyCreatedOwnerStacks++;return M(y,g,q1,!0,t?Error("react-stack-top-frame"):a,t?m(K(y)):i)}})()});var PT=p4((TS)=>{var N5=p0(G4());(function(){function Q(O,P){return O===P&&(O!==0||1/O===1/P)||O!==O&&P!==P}function U(O,P){R||N5.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 N=P();if(!M){var V=P();H(N,V)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),M=!0)}V=Y({inst:{value:N,getSnapshot:P}});var j=V[0].inst,f=V[1];return B(function(){j.value=N,j.getSnapshot=P,Z(j)&&f({inst:j})},[O,N,P]),W(function(){return Z(j)&&f({inst:j}),O(function(){Z(j)&&f({inst:j})})},[O]),T(N),N}function Z(O){var P=O.getSnapshot;O=O.value;try{var N=P();return!H(O,N)}catch(V){return!0}}function K(O,P){return P()}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=N5.useState,W=N5.useEffect,B=N5.useLayoutEffect,T=N5.useDebugValue,R=!1,M=!1,A=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?K:U;TS.useSyncExternalStore=N5.useSyncExternalStore!==void 0?N5.useSyncExternalStore:A,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var NT=p4((RS)=>{var y3=p0(G4());(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=PT(),Z=typeof Object.is==="function"?Object.is:Q,K=U.useSyncExternalStore,H=y3.useRef,Y=y3.useEffect,W=y3.useMemo,B=y3.useDebugValue;RS.useSyncExternalStoreWithSelector=function(T,R,M,A,O){var P=H(null);if(P.current===null){var N={hasValue:!1,value:null};P.current=N}else N=P.current;P=W(function(){function j(D){if(!f){if(f=!0,u=D,D=A(D),O!==void 0&&N.hasValue){var h=N.value;if(O(h,D))return C=h}return C=D}if(h=C,Z(u,D))return h;var E=A(D);if(O!==void 0&&O(h,E))return u=D,h;return u=D,C=E}var f=!1,u,C,v=M===void 0?null:M;return[function(){return j(R())},v===null?void 0:function(){return j(v())}]},[R,M,A,O]);var V=K(T,P[0],P[1]);return Y(function(){N.hasValue=!0,N.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 fO=p0(bA(),1);var P2=p0(G4(),1);var EA={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 c1=p0(f8(),1),MN="https://brand.volter.ai/logo/twin-world/svg?size=64&variant=mono";function FJ({href:Q,onClick:U}){return c1.jsxDEV("h1",{children:c1.jsxDEV("a",{href:Q,onClick:U,children:[c1.jsxDEV("img",{src:MN,alt:"",width:24,height:24,style:{verticalAlign:"middle"}},void 0,!1,void 0,this),c1.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 N3(Q){return(await Q.json().catch(()=>({}))).error??`answered ${Q.status}`}function xA(Q,U,Z=0,K=""){let[H,Y]=P2.useState({state:"loading"});return P2.useEffect(()=>{Y({state:"loading"})},[K,U]),P2.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 N3(B)};if(W)Y(T)}catch(B){if(W)Y({state:"error",status:0,error:String(B)})}})(),()=>{W=!1}},[K,U,Z]),H}function b2({load:Q,what:U,retry:Z,lines:K=3}){if(Q.state==="loading")return c1.jsxDEV(TN,{lines:K,label:`Loading ${U}…`},void 0,!1,void 0,this);if(Q.state==="error")return c1.jsxDEV("div",{role:"alert",className:"error-state",children:[c1.jsxDEV("span",{children:["Could not read ",U,": ",Q.error]},void 0,!0,void 0,this),Z?c1.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 TN({lines:Q=3,label:U="Loading…"}){return c1.jsxDEV("div",{className:"skeleton",role:"status","aria-label":U,children:Array.from({length:Q},(Z,K)=>c1.jsxDEV("span",{style:{width:`${[92,76,84,64,88][K%5]}%`}},K,!1,void 0,this))},void 0,!1,void 0,this)}function I0({iso:Q,time:U}){if(!Q)return c1.jsxDEV("span",{children:"—"},void 0,!1,void 0,this);let Z=new Date(Q);return c1.jsxDEV("time",{dateTime:Q,title:Q,children:Number.isNaN(Z.getTime())?Q:U?Z.toLocaleTimeString():Z.toLocaleString()},void 0,!1,void 0,this)}var $9=(Q)=>Q?new Date(Q).toLocaleString():"—";function sF(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 E0(Q,U){let Z=U.replace(/[_-]+/g," "),K=Z.endsWith("s")?Z:/[^aeiou]y$/.test(Z)?`${Z.slice(0,-1)}ies`:/(ch|sh|x)$/.test(Z)?`${Z}es`:`${Z}s`;return`${Q} ${Q===1?Z:K}`}var S8=(Q)=>Q.length<=1?Q.join(""):`${Q.slice(0,-1).join(", ")} and ${Q[Q.length-1]}`,RN={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"},d1=(Q)=>RN[Q]??Q.charAt(0).toUpperCase()+Q.slice(1);function s0({vendor:Q}){let U=EA[Q];return c1.jsxDEV("span",{className:U?"mark logo":"mark","aria-hidden":"true",children:U?c1.jsxDEV("svg",{viewBox:"0 0 24 24",children:c1.jsxDEV("path",{d:U.d,fill:U.fill},void 0,!1,void 0,this)},void 0,!1,void 0,this):d1(Q).charAt(0)},void 0,!1,void 0,this)}var hA=(Q)=>{Q.currentTarget.closest("details")?.removeAttribute("open")},ON="volter.theme",tF=()=>{try{let Q=localStorage.getItem(ON);return Q==="light"||Q==="dark"?Q:"system"}catch{return"system"}};function Lq(Q=tF()){let U=document.documentElement;if(Q==="system")U.removeAttribute("data-theme");else U.setAttribute("data-theme",Q)}function mA(){return P2.useEffect(()=>{let Q=()=>[...document.querySelectorAll("details.menu[open], details.clock-more[open]")],U=(K)=>{if(K.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=(K)=>{let H=K.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 P5({open:Q,onClose:U,title:Z,children:K,footer:H,wide:Y}){let W=P2.useRef(null),B=P2.useId();return P2.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]),c1.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?c1.jsxDEV(c1.Fragment,{children:[c1.jsxDEV("div",{className:"dialog-head",children:[c1.jsxDEV("h2",{id:B,children:Z},void 0,!1,void 0,this),c1.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),c1.jsxDEV("div",{className:"dialog-body",children:K},void 0,!1,void 0,this),H?c1.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 rF="volter:confirm";function c4(Q){return new Promise((U)=>{window.dispatchEvent(new CustomEvent(rF,{detail:{ask:Q,resolve:U}}))})}function gA(){let[Q,U]=P2.useState(null),[Z,K]=P2.useState("");P2.useEffect(()=>{let B=(T)=>{K(""),U(T.detail)};return window.addEventListener(rF,B),()=>window.removeEventListener(rF,B)},[]);let H=(B)=>{Q?.resolve(B),U(null)},Y=Q?.ask,W=!Y?.typed||Z===Y.typed;return c1.jsxDEV(P5,{open:Boolean(Q),onClose:()=>H(!1),title:Y?.title??"",footer:c1.jsxDEV(c1.Fragment,{children:[c1.jsxDEV("button",{type:"button",onClick:()=>H(!1),children:"Cancel"},void 0,!1,void 0,this),c1.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?c1.jsxDEV("div",{className:"confirm-body",children:Y.body},void 0,!1,void 0,this):null,Y?.typed?c1.jsxDEV("div",{className:"typed-confirm",children:[c1.jsxDEV("p",{children:["Type ",c1.jsxDEV("code",{children:Y.typed},void 0,!1,void 0,this)," to confirm."]},void 0,!0,void 0,this),c1.jsxDEV("input",{autoFocus:!0,"aria-label":`Type ${Y.typed} to confirm`,value:Z,onChange:(B)=>K(B.target.value),onKeyDown:(B)=>{if(B.key==="Enter"&&W)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 aF="volter:toast";function i0(Q,U="ok"){window.dispatchEvent(new CustomEvent(aF,{detail:{text:Q,kind:U}}))}function pA(){let[Q,U]=P2.useState([]);return P2.useEffect(()=>{let Z=0,K=(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(aF,K),()=>window.removeEventListener(aF,K)},[]),c1.jsxDEV("div",{className:"toasts",role:"region","aria-label":"Notifications",children:Q.map((Z)=>c1.jsxDEV("div",{className:`toast ${Z.kind}`,role:Z.kind==="error"?"alert":"status",children:[c1.jsxDEV("span",{children:Z.text},void 0,!1,void 0,this),c1.jsxDEV("button",{type:"button",className:"icon-button","aria-label":"Dismiss",onClick:()=>U((K)=>K.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 oF({value:Q,label:U,secret:Z}){let[K,H]=P2.useState(!1);return c1.jsxDEV("div",{className:"copy-field",children:[U?c1.jsxDEV("span",{className:"copy-label",children:U},void 0,!1,void 0,this):null,c1.jsxDEV("div",{className:"copy-row",children:[c1.jsxDEV("input",{readOnly:!0,value:Q,"aria-label":U??"Value",onFocus:(W)=>W.currentTarget.select(),spellCheck:!1},void 0,!1,void 0,this),c1.jsxDEV("button",{type:"button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>{H(!0),setTimeout(()=>H(!1),1600),i0(Z?"Copied. Keep it somewhere safe":"Copied")}).catch(()=>i0("Your browser would not copy it: select it and copy","error"))},children:K?"Copied":"Copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function cA({label:Q,items:U}){return c1.jsxDEV("details",{className:"menu row-menu",children:[c1.jsxDEV("summary",{className:"icon-button",role:"button","aria-haspopup":"menu","aria-label":Q,title:Q,children:"⋯"},void 0,!1,void 0,this),c1.jsxDEV("div",{className:"popover menu-list",role:"menu",children:U.filter((Z)=>Boolean(Z)).map((Z)=>Z.href?c1.jsxDEV("a",{role:"menuitem",href:Z.href,className:Z.danger?"danger-item":void 0,onClick:hA,children:Z.label},Z.label,!1,void 0,this):c1.jsxDEV("button",{type:"button",role:"menuitem",disabled:Z.disabled,className:Z.danger?"danger-item":void 0,onClick:(K)=>{hA(K),Z.onSelect?.()},children:Z.label},Z.label,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Q9({title:Q,children:U,action:Z}){return c1.jsxDEV("div",{className:"empty-state",children:[c1.jsxDEV("p",{className:"empty-title",children:Q},void 0,!1,void 0,this),U?c1.jsxDEV("div",{className:"empty-body",children:U},void 0,!1,void 0,this):null,Z?c1.jsxDEV("div",{className:"empty-action",children:Z},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function lA(){return P2.useEffect(()=>{let Q=(Z)=>{let K=document.querySelector("main.app"),H=Z.target;if(K?.hasAttribute("data-drawer")&&H&&!H.closest(".side")&&!H.closest(".drawer-button"))K.removeAttribute("data-drawer")},U=(Z)=>{if(Z.key==="Escape")IN()};return document.addEventListener("click",Q),document.addEventListener("keydown",U),()=>{document.removeEventListener("click",Q),document.removeEventListener("keydown",U)}},[]),c1.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 IN=()=>{document.querySelector("main.app")?.removeAttribute("data-drawer")};var K1=p0(G4(),1);var H1=p0(iA(),1),z1=p0(G4(),1);function d0(Q){if(typeof Q==="string"||typeof Q==="number")return""+Q;let U="";if(Array.isArray(Q)){for(let Z=0,K;Z<Q.length;Z++)if((K=d0(Q[Z]))!=="")U+=(U&&" ")+K}else for(let Z in Q)if(Q[Z])U+=(U&&" ")+Z;return U}var PN={value:()=>{}};function rA(){for(var Q=0,U=arguments.length,Z={},K;Q<U;++Q){if(!(K=arguments[Q]+"")||K in Z||/[\s.]/.test(K))throw Error("illegal type: "+K);Z[K]=[]}return new Aq(Z)}function Aq(Q){this._=Q}function NN(Q,U){return Q.trim().split(/^|\s+/).map(function(Z){var K="",H=Z.indexOf(".");if(H>=0)K=Z.slice(H+1),Z=Z.slice(0,H);if(Z&&!U.hasOwnProperty(Z))throw Error("unknown type: "+Z);return{type:Z,name:K}})}Aq.prototype=rA.prototype={constructor:Aq,on:function(Q,U){var Z=this._,K=NN(Q+"",Z),H,Y=-1,W=K.length;if(arguments.length<2){while(++Y<W)if((H=(Q=K[Y]).type)&&(H=CN(Z[H],Q.name)))return H;return}if(U!=null&&typeof U!=="function")throw Error("invalid callback: "+U);while(++Y<W)if(H=(Q=K[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 Aq(Q)},call:function(Q,U){if((H=arguments.length-2)>0)for(var Z=Array(H),K=0,H,Y;K<H;++K)Z[K]=arguments[K+2];if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(Y=this._[Q],K=0,H=Y.length;K<H;++K)Y[K].value.apply(U,Z)},apply:function(Q,U,Z){if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(var K=this._[Q],H=0,Y=K.length;H<Y;++H)K[H].value.apply(U,Z)}};function CN(Q,U){for(var Z=0,K=Q.length,H;Z<K;++Z)if((H=Q[Z]).name===U)return H.value}function dA(Q,U,Z){for(var K=0,H=Q.length;K<H;++K)if(Q[K].name===U){Q[K]=PN,Q=Q.slice(0,K).concat(Q.slice(K+1));break}if(Z!=null)Q.push({name:U,value:Z});return Q}var v8=rA;function q9(Q){return function(){return this.matches(Q)}}function Mq(Q){return function(U){return U.matches(Q)}}var Tq="http://www.w3.org/1999/xhtml",nF={svg:"http://www.w3.org/2000/svg",xhtml:Tq,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function l4(Q){var U=Q+="",Z=U.indexOf(":");if(Z>=0&&(U=Q.slice(0,Z))!=="xmlns")Q=Q.slice(Z+1);return nF.hasOwnProperty(U)?{space:nF[U],local:Q}:Q}function eF(Q){let U;while(U=Q.sourceEvent)Q=U;return Q}function E2(Q,U){if(Q=eF(Q),U===void 0)U=Q.currentTarget;if(U){var Z=U.ownerSVGElement||U;if(Z.createSVGPoint){var K=Z.createSVGPoint();return K.x=Q.clientX,K.y=Q.clientY,K=K.matrixTransform(U.getScreenCTM().inverse()),[K.x,K.y]}if(U.getBoundingClientRect){var H=U.getBoundingClientRect();return[Q.clientX-H.left-U.clientLeft,Q.clientY-H.top-U.clientTop]}}return[Q.pageX,Q.pageY]}function fN(){}function S6(Q){return Q==null?fN:function(){return this.querySelector(Q)}}function _X(Q){if(typeof Q!=="function")Q=S6(Q);for(var U=this._groups,Z=U.length,K=Array(Z),H=0;H<Z;++H)for(var Y=U[H],W=Y.length,B=K[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 t0(K,this._parents)}function JX(Q){return Q==null?[]:Array.isArray(Q)?Q:Array.from(Q)}function SN(){return[]}function U9(Q){return Q==null?SN:function(){return this.querySelectorAll(Q)}}function jN(Q){return function(){return JX(Q.apply(this,arguments))}}function $X(Q){if(typeof Q==="function")Q=jN(Q);else Q=U9(Q);for(var U=this._groups,Z=U.length,K=[],H=[],Y=0;Y<Z;++Y)for(var W=U[Y],B=W.length,T,R=0;R<B;++R)if(T=W[R])K.push(Q.call(T,T.__data__,R,W)),H.push(T);return new t0(K,H)}var vN=Array.prototype.find;function VN(Q){return function(){return vN.call(this.children,Q)}}function yN(){return this.firstElementChild}function QX(Q){return this.select(Q==null?yN:VN(typeof Q==="function"?Q:Mq(Q)))}var kN=Array.prototype.filter;function DN(){return Array.from(this.children)}function uN(Q){return function(){return kN.call(this.children,Q)}}function qX(Q){return this.selectAll(Q==null?DN:uN(typeof Q==="function"?Q:Mq(Q)))}function UX(Q){if(typeof Q!=="function")Q=q9(Q);for(var U=this._groups,Z=U.length,K=Array(Z),H=0;H<Z;++H)for(var Y=U[H],W=Y.length,B=K[H]=[],T,R=0;R<W;++R)if((T=Y[R])&&Q.call(T,T.__data__,R,Y))B.push(T);return new t0(K,this._parents)}function XJ(Q){return Array(Q.length)}function GX(){return new t0(this._enter||this._groups.map(XJ),this._parents)}function KJ(Q,U){this.ownerDocument=Q.ownerDocument,this.namespaceURI=Q.namespaceURI,this._next=null,this._parent=Q,this.__data__=U}KJ.prototype={constructor:KJ,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 ZX(Q){return function(){return Q}}function bN(Q,U,Z,K,H,Y){var W=0,B,T=U.length,R=Y.length;for(;W<R;++W)if(B=U[W])B.__data__=Y[W],K[W]=B;else Z[W]=new KJ(Q,Y[W]);for(;W<T;++W)if(B=U[W])H[W]=B}function EN(Q,U,Z,K,H,Y,W){var B,T,R=new Map,M=U.length,A=Y.length,O=Array(M),P;for(B=0;B<M;++B)if(T=U[B])if(O[B]=P=W.call(T,T.__data__,B,U)+"",R.has(P))H[B]=T;else R.set(P,T);for(B=0;B<A;++B)if(P=W.call(Q,Y[B],B,Y)+"",T=R.get(P))K[B]=T,T.__data__=Y[B],R.delete(P);else Z[B]=new KJ(Q,Y[B]);for(B=0;B<M;++B)if((T=U[B])&&R.get(O[B])===T)H[B]=T}function hN(Q){return Q.__data__}function FX(Q,U){if(!arguments.length)return Array.from(this,hN);var Z=U?EN:bN,K=this._parents,H=this._groups;if(typeof Q!=="function")Q=ZX(Q);for(var Y=H.length,W=Array(Y),B=Array(Y),T=Array(Y),R=0;R<Y;++R){var M=K[R],A=H[R],O=A.length,P=xN(Q.call(M,M&&M.__data__,R,K)),N=P.length,V=B[R]=Array(N),j=W[R]=Array(N),f=T[R]=Array(O);Z(M,A,V,j,f,P,U);for(var u=0,C=0,v,D;u<N;++u)if(v=V[u]){if(u>=C)C=u+1;while(!(D=j[C])&&++C<N);v._next=D||null}}return W=new t0(W,K),W._enter=B,W._exit=T,W}function xN(Q){return typeof Q==="object"&&"length"in Q?Q:Array.from(Q)}function XX(){return new t0(this._exit||this._groups.map(XJ),this._parents)}function KX(Q,U,Z){var K=this.enter(),H=this,Y=this.exit();if(typeof Q==="function"){if(K=Q(K),K)K=K.selection()}else K=K.append(Q+"");if(U!=null){if(H=U(H),H)H=H.selection()}if(Z==null)Y.remove();else Z(Y);return K&&H?K.merge(H).order():H}function HX(Q){var U=Q.selection?Q.selection():Q;for(var Z=this._groups,K=U._groups,H=Z.length,Y=K.length,W=Math.min(H,Y),B=Array(H),T=0;T<W;++T)for(var R=Z[T],M=K[T],A=R.length,O=B[T]=Array(A),P,N=0;N<A;++N)if(P=R[N]||M[N])O[N]=P;for(;T<H;++T)B[T]=Z[T];return new t0(B,this._parents)}function YX(){for(var Q=this._groups,U=-1,Z=Q.length;++U<Z;)for(var K=Q[U],H=K.length-1,Y=K[H],W;--H>=0;)if(W=K[H]){if(Y&&W.compareDocumentPosition(Y)^4)Y.parentNode.insertBefore(W,Y);Y=W}return this}function zX(Q){if(!Q)Q=mN;function U(A,O){return A&&O?Q(A.__data__,O.__data__):!A-!O}for(var Z=this._groups,K=Z.length,H=Array(K),Y=0;Y<K;++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 t0(H,this._parents).order()}function mN(Q,U){return Q<U?-1:Q>U?1:Q>=U?0:NaN}function WX(){var Q=arguments[0];return arguments[0]=this,Q.apply(null,arguments),this}function BX(){return Array.from(this)}function LX(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var K=Q[U],H=0,Y=K.length;H<Y;++H){var W=K[H];if(W)return W}return null}function AX(){let Q=0;for(let U of this)++Q;return Q}function MX(){return!this.node()}function TX(Q){for(var U=this._groups,Z=0,K=U.length;Z<K;++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 gN(Q){return function(){this.removeAttribute(Q)}}function pN(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function cN(Q,U){return function(){this.setAttribute(Q,U)}}function lN(Q,U){return function(){this.setAttributeNS(Q.space,Q.local,U)}}function iN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)this.removeAttribute(Q);else this.setAttribute(Q,Z)}}function dN(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 RX(Q,U){var Z=l4(Q);if(arguments.length<2){var K=this.node();return Z.local?K.getAttributeNS(Z.space,Z.local):K.getAttribute(Z)}return this.each((U==null?Z.local?pN:gN:typeof U==="function"?Z.local?dN:iN:Z.local?lN:cN)(Z,U))}function HJ(Q){return Q.ownerDocument&&Q.ownerDocument.defaultView||Q.document&&Q||Q.defaultView}function rN(Q){return function(){this.style.removeProperty(Q)}}function aN(Q,U,Z){return function(){this.style.setProperty(Q,U,Z)}}function sN(Q,U,Z){return function(){var K=U.apply(this,arguments);if(K==null)this.style.removeProperty(Q);else this.style.setProperty(Q,K,Z)}}function OX(Q,U,Z){return arguments.length>1?this.each((U==null?rN:typeof U==="function"?sN:aN)(Q,U,Z==null?"":Z)):j6(this.node(),Q)}function j6(Q,U){return Q.style.getPropertyValue(U)||HJ(Q).getComputedStyle(Q,null).getPropertyValue(U)}function tN(Q){return function(){delete this[Q]}}function oN(Q,U){return function(){this[Q]=U}}function nN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)delete this[Q];else this[Q]=Z}}function IX(Q,U){return arguments.length>1?this.each((U==null?tN:typeof U==="function"?nN:oN)(Q,U)):this.node()[Q]}function aA(Q){return Q.trim().split(/^|\s+/)}function wX(Q){return Q.classList||new sA(Q)}function sA(Q){this._node=Q,this._names=aA(Q.getAttribute("class")||"")}sA.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 tA(Q,U){var Z=wX(Q),K=-1,H=U.length;while(++K<H)Z.add(U[K])}function oA(Q,U){var Z=wX(Q),K=-1,H=U.length;while(++K<H)Z.remove(U[K])}function eN(Q){return function(){tA(this,Q)}}function _C(Q){return function(){oA(this,Q)}}function JC(Q,U){return function(){(U.apply(this,arguments)?tA:oA)(this,Q)}}function PX(Q,U){var Z=aA(Q+"");if(arguments.length<2){var K=wX(this.node()),H=-1,Y=Z.length;while(++H<Y)if(!K.contains(Z[H]))return!1;return!0}return this.each((typeof U==="function"?JC:U?eN:_C)(Z,U))}function $C(){this.textContent=""}function QC(Q){return function(){this.textContent=Q}}function qC(Q){return function(){var U=Q.apply(this,arguments);this.textContent=U==null?"":U}}function NX(Q){return arguments.length?this.each(Q==null?$C:(typeof Q==="function"?qC:QC)(Q)):this.node().textContent}function UC(){this.innerHTML=""}function GC(Q){return function(){this.innerHTML=Q}}function ZC(Q){return function(){var U=Q.apply(this,arguments);this.innerHTML=U==null?"":U}}function CX(Q){return arguments.length?this.each(Q==null?UC:(typeof Q==="function"?ZC:GC)(Q)):this.node().innerHTML}function FC(){if(this.nextSibling)this.parentNode.appendChild(this)}function fX(){return this.each(FC)}function XC(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function SX(){return this.each(XC)}function KC(Q){return function(){var U=this.ownerDocument,Z=this.namespaceURI;return Z===Tq&&U.documentElement.namespaceURI===Tq?U.createElement(Q):U.createElementNS(Z,Q)}}function HC(Q){return function(){return this.ownerDocument.createElementNS(Q.space,Q.local)}}function YJ(Q){var U=l4(Q);return(U.local?HC:KC)(U)}function jX(Q){var U=typeof Q==="function"?Q:YJ(Q);return this.select(function(){return this.appendChild(U.apply(this,arguments))})}function YC(){return null}function vX(Q,U){var Z=typeof Q==="function"?Q:YJ(Q),K=U==null?YC:typeof U==="function"?U:S6(U);return this.select(function(){return this.insertBefore(Z.apply(this,arguments),K.apply(this,arguments)||null)})}function zC(){var Q=this.parentNode;if(Q)Q.removeChild(this)}function VX(){return this.each(zC)}function WC(){var Q=this.cloneNode(!1),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function BC(){var Q=this.cloneNode(!0),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function yX(Q){return this.select(Q?BC:WC)}function kX(Q){return arguments.length?this.property("__data__",Q):this.node().__data__}function LC(Q){return function(U){Q.call(this,U,this.__data__)}}function AC(Q){return Q.trim().split(/^|\s+/).map(function(U){var Z="",K=U.indexOf(".");if(K>=0)Z=U.slice(K+1),U=U.slice(0,K);return{type:U,name:Z}})}function MC(Q){return function(){var U=this.__on;if(!U)return;for(var Z=0,K=-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[++K]=Y;if(++K)U.length=K;else delete this.__on}}function TC(Q,U,Z){return function(){var K=this.__on,H,Y=LC(U);if(K){for(var W=0,B=K.length;W<B;++W)if((H=K[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},!K)this.__on=[H];else K.push(H)}}function DX(Q,U,Z){var K=AC(Q+""),H,Y=K.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=K[H]).type===M.type&&W.name===M.name)return M.value}return}B=U?TC:MC;for(H=0;H<Y;++H)this.each(B(K[H],U,Z));return this}function nA(Q,U,Z){var K=HJ(Q),H=K.CustomEvent;if(typeof H==="function")H=new H(U,Z);else if(H=K.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 RC(Q,U){return function(){return nA(this,Q,U)}}function OC(Q,U){return function(){return nA(this,Q,U.apply(this,arguments))}}function uX(Q,U){return this.each((typeof U==="function"?OC:RC)(Q,U))}function*bX(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var K=Q[U],H=0,Y=K.length,W;H<Y;++H)if(W=K[H])yield W}var EX=[null];function t0(Q,U){this._groups=Q,this._parents=U}function eA(){return new t0([[document.documentElement]],EX)}function IC(){return this}t0.prototype=eA.prototype={constructor:t0,select:_X,selectAll:$X,selectChild:QX,selectChildren:qX,filter:UX,data:FX,enter:GX,exit:XX,join:KX,merge:HX,selection:IC,order:YX,sort:zX,call:WX,nodes:BX,node:LX,size:AX,empty:MX,each:TX,attr:RX,style:OX,property:IX,classed:PX,text:NX,html:CX,raise:fX,lower:SX,append:jX,insert:vX,remove:VX,clone:yX,datum:kX,on:DX,dispatch:uX,[Symbol.iterator]:bX};var C3=eA;function B2(Q){return typeof Q==="string"?new t0([[document.querySelector(Q)]],[document.documentElement]):new t0([[Q]],EX)}var _M={passive:!1},V8={capture:!0,passive:!1};function Rq(Q){Q.stopImmediatePropagation()}function f3(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function G9(Q){var U=Q.document.documentElement,Z=B2(Q).on("dragstart.drag",f3,V8);if("onselectstart"in U)Z.on("selectstart.drag",f3,V8);else U.__noselect=U.style.MozUserSelect,U.style.MozUserSelect="none"}function zJ(Q,U){var Z=Q.document.documentElement,K=B2(Q).on("dragstart.drag",null);if(U)K.on("click.drag",f3,V8),setTimeout(function(){K.on("click.drag",null)},0);if("onselectstart"in Z)K.on("selectstart.drag",null);else Z.style.MozUserSelect=Z.__noselect,delete Z.__noselect}var WJ=(Q)=>()=>Q;function BJ(Q,{sourceEvent:U,subject:Z,target:K,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:K,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}})}BJ.prototype.on=function(){var Q=this._.on.apply(this._,arguments);return Q===this._?this:Q};function wC(Q){return!Q.ctrlKey&&!Q.button}function PC(){return this.parentNode}function NC(Q,U){return U==null?{x:Q.x,y:Q.y}:U}function CC(){return navigator.maxTouchPoints||"ontouchstart"in this}function LJ(){var Q=wC,U=PC,Z=NC,K=CC,H={},Y=v8("start","drag","end"),W=0,B,T,R,M,A=0;function O(v){v.on("mousedown.drag",P).filter(K).on("touchstart.drag",j).on("touchmove.drag",f,_M).on("touchend.drag touchcancel.drag",u).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function P(v,D){if(M||!Q.call(this,v,D))return;var h=C(this,U.call(this,v,D),v,D,"mouse");if(!h)return;B2(v.view).on("mousemove.drag",N,V8).on("mouseup.drag",V,V8),G9(v.view),Rq(v),R=!1,B=v.clientX,T=v.clientY,h("start",v)}function N(v){if(f3(v),!R){var D=v.clientX-B,h=v.clientY-T;R=D*D+h*h>A}H.mouse("drag",v)}function V(v){B2(v.view).on("mousemove.drag mouseup.drag",null),zJ(v.view,R),f3(v),H.mouse("end",v)}function j(v,D){if(!Q.call(this,v,D))return;var h=v.changedTouches,E=U.call(this,v,D),b=h.length,k,x;for(k=0;k<b;++k)if(x=C(this,E,v,D,h[k].identifier,h[k]))Rq(v),x("start",v,h[k])}function f(v){var D=v.changedTouches,h=D.length,E,b;for(E=0;E<h;++E)if(b=H[D[E].identifier])f3(v),b("drag",v,D[E])}function u(v){var D=v.changedTouches,h=D.length,E,b;if(M)clearTimeout(M);M=setTimeout(function(){M=null},500);for(E=0;E<h;++E)if(b=H[D[E].identifier])Rq(v),b("end",v,D[E])}function C(v,D,h,E,b,k){var x=Y.copy(),$1=E2(k||h,D),Q1,J1,m;if((m=Z.call(v,new BJ("beforestart",{sourceEvent:h,target:O,identifier:b,active:W,x:$1[0],y:$1[1],dx:0,dy:0,dispatch:x}),E))==null)return;return Q1=m.x-$1[0]||0,J1=m.y-$1[1]||0,function p(c,a,i){var o=$1,y;switch(c){case"start":H[b]=p,y=W++;break;case"end":delete H[b],--W;case"drag":$1=E2(i||a,D),y=W;break}x.call(c,v,new BJ(c,{sourceEvent:a,subject:m,target:O,identifier:b,active:y,x:$1[0]+Q1,y:$1[1]+J1,dx:$1[0]-o[0],dy:$1[1]-o[1],dispatch:x}),E)}}return O.filter=function(v){return arguments.length?(Q=typeof v==="function"?v:WJ(!!v),O):Q},O.container=function(v){return arguments.length?(U=typeof v==="function"?v:WJ(v),O):U},O.subject=function(v){return arguments.length?(Z=typeof v==="function"?v:WJ(v),O):Z},O.touchable=function(v){return arguments.length?(K=typeof v==="function"?v:WJ(!!v),O):K},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 AJ(Q,U,Z){Q.prototype=U.prototype=Z,Z.constructor=Q}function hX(Q,U){var Z=Object.create(Q.prototype);for(var K in U)Z[K]=U[K];return Z}function RJ(){}var MJ=0.7,wq=1/MJ,Z9="\\s*([+-]?\\d+)\\s*",TJ="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",i4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fC=/^#([0-9a-f]{3,8})$/,SC=new RegExp(`^rgb\\(${Z9},${Z9},${Z9}\\)$`),jC=new RegExp(`^rgb\\(${i4},${i4},${i4}\\)$`),vC=new RegExp(`^rgba\\(${Z9},${Z9},${Z9},${TJ}\\)$`),VC=new RegExp(`^rgba\\(${i4},${i4},${i4},${TJ}\\)$`),yC=new RegExp(`^hsl\\(${TJ},${i4},${i4}\\)$`),kC=new RegExp(`^hsla\\(${TJ},${i4},${i4},${TJ}\\)$`),JM={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};AJ(RJ,F4,{copy(Q){return Object.assign(new this.constructor,this,Q)},displayable(){return this.rgb().displayable()},hex:$M,formatHex:$M,formatHex8:DC,formatHsl:uC,formatRgb:QM,toString:QM});function $M(){return this.rgb().formatHex()}function DC(){return this.rgb().formatHex8()}function uC(){return XM(this).formatHsl()}function QM(){return this.rgb().formatRgb()}function F4(Q){var U,Z;return Q=(Q+"").trim().toLowerCase(),(U=fC.exec(Q))?(Z=U[1].length,U=parseInt(U[1],16),Z===6?qM(U):Z===3?new F5(U>>8&15|U>>4&240,U>>4&15|U&240,(U&15)<<4|U&15,1):Z===8?Oq(U>>24&255,U>>16&255,U>>8&255,(U&255)/255):Z===4?Oq(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=SC.exec(Q))?new F5(U[1],U[2],U[3],1):(U=jC.exec(Q))?new F5(U[1]*255/100,U[2]*255/100,U[3]*255/100,1):(U=vC.exec(Q))?Oq(U[1],U[2],U[3],U[4]):(U=VC.exec(Q))?Oq(U[1]*255/100,U[2]*255/100,U[3]*255/100,U[4]):(U=yC.exec(Q))?ZM(U[1],U[2]/100,U[3]/100,1):(U=kC.exec(Q))?ZM(U[1],U[2]/100,U[3]/100,U[4]):JM.hasOwnProperty(Q)?qM(JM[Q]):Q==="transparent"?new F5(NaN,NaN,NaN,0):null}function qM(Q){return new F5(Q>>16&255,Q>>8&255,Q&255,1)}function Oq(Q,U,Z,K){if(K<=0)Q=U=Z=NaN;return new F5(Q,U,Z,K)}function bC(Q){if(!(Q instanceof RJ))Q=F4(Q);if(!Q)return new F5;return Q=Q.rgb(),new F5(Q.r,Q.g,Q.b,Q.opacity)}function F9(Q,U,Z,K){return arguments.length===1?bC(Q):new F5(Q,U,Z,K==null?1:K)}function F5(Q,U,Z,K){this.r=+Q,this.g=+U,this.b=+Z,this.opacity=+K}AJ(F5,F9,hX(RJ,{brighter(Q){return Q=Q==null?wq:Math.pow(wq,Q),new F5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},darker(Q){return Q=Q==null?MJ:Math.pow(MJ,Q),new F5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},rgb(){return this},clamp(){return new F5(k8(this.r),k8(this.g),k8(this.b),Pq(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:UM,formatHex:UM,formatHex8:EC,formatRgb:GM,toString:GM}));function UM(){return`#${y8(this.r)}${y8(this.g)}${y8(this.b)}`}function EC(){return`#${y8(this.r)}${y8(this.g)}${y8(this.b)}${y8((isNaN(this.opacity)?1:this.opacity)*255)}`}function GM(){let Q=Pq(this.opacity);return`${Q===1?"rgb(":"rgba("}${k8(this.r)}, ${k8(this.g)}, ${k8(this.b)}${Q===1?")":`, ${Q})`}`}function Pq(Q){return isNaN(Q)?1:Math.max(0,Math.min(1,Q))}function k8(Q){return Math.max(0,Math.min(255,Math.round(Q)||0))}function y8(Q){return Q=k8(Q),(Q<16?"0":"")+Q.toString(16)}function ZM(Q,U,Z,K){if(K<=0)Q=U=Z=NaN;else if(Z<=0||Z>=1)Q=U=NaN;else if(U<=0)Q=NaN;return new Z4(Q,U,Z,K)}function XM(Q){if(Q instanceof Z4)return new Z4(Q.h,Q.s,Q.l,Q.opacity);if(!(Q instanceof RJ))Q=F4(Q);if(!Q)return new Z4;if(Q instanceof Z4)return Q;Q=Q.rgb();var U=Q.r/255,Z=Q.g/255,K=Q.b/255,H=Math.min(U,Z,K),Y=Math.max(U,Z,K),W=NaN,B=Y-H,T=(Y+H)/2;if(B){if(U===Y)W=(Z-K)/B+(Z<K)*6;else if(Z===Y)W=(K-U)/B+2;else W=(U-Z)/B+4;B/=T<0.5?Y+H:2-Y-H,W*=60}else B=T>0&&T<1?0:W;return new Z4(W,B,T,Q.opacity)}function KM(Q,U,Z,K){return arguments.length===1?XM(Q):new Z4(Q,U,Z,K==null?1:K)}function Z4(Q,U,Z,K){this.h=+Q,this.s=+U,this.l=+Z,this.opacity=+K}AJ(Z4,KM,hX(RJ,{brighter(Q){return Q=Q==null?wq:Math.pow(wq,Q),new Z4(this.h,this.s,this.l*Q,this.opacity)},darker(Q){return Q=Q==null?MJ:Math.pow(MJ,Q),new Z4(this.h,this.s,this.l*Q,this.opacity)},rgb(){var Q=this.h%360+(this.h<0)*360,U=isNaN(Q)||isNaN(this.s)?0:this.s,Z=this.l,K=Z+(Z<0.5?Z:1-Z)*U,H=2*Z-K;return new F5(xX(Q>=240?Q-240:Q+120,H,K),xX(Q,H,K),xX(Q<120?Q+240:Q-120,H,K),this.opacity)},clamp(){return new Z4(FM(this.h),Iq(this.s),Iq(this.l),Pq(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=Pq(this.opacity);return`${Q===1?"hsl(":"hsla("}${FM(this.h)}, ${Iq(this.s)*100}%, ${Iq(this.l)*100}%${Q===1?")":`, ${Q})`}`}}));function FM(Q){return Q=(Q||0)%360,Q<0?Q+360:Q}function Iq(Q){return Math.max(0,Math.min(1,Q||0))}function xX(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 mX(Q,U,Z,K,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)*K+W*H)/6}function gX(Q){var U=Q.length-1;return function(Z){var K=Z<=0?Z=0:Z>=1?(Z=1,U-1):Math.floor(Z*U),H=Q[K],Y=Q[K+1],W=K>0?Q[K-1]:2*H-Y,B=K<U-1?Q[K+2]:2*Y-H;return mX((Z-K/U)*U,W,H,Y,B)}}function pX(Q){var U=Q.length;return function(Z){var K=Math.floor(((Z%=1)<0?++Z:Z)*U),H=Q[(K+U-1)%U],Y=Q[K%U],W=Q[(K+1)%U],B=Q[(K+2)%U];return mX((Z-K/U)*U,H,Y,W,B)}}var OJ=(Q)=>()=>Q;function hC(Q,U){return function(Z){return Q+Z*U}}function xC(Q,U,Z){return Q=Math.pow(Q,Z),U=Math.pow(U,Z)-Q,Z=1/Z,function(K){return Math.pow(Q+K*U,Z)}}function HM(Q){return(Q=+Q)===1?Nq:function(U,Z){return Z-U?xC(U,Z,Q):OJ(isNaN(U)?Z:U)}}function Nq(Q,U){var Z=U-Q;return Z?hC(Q,Z):OJ(isNaN(Q)?U:Q)}var D8=function Q(U){var Z=HM(U);function K(H,Y){var W=Z((H=F9(H)).r,(Y=F9(Y)).r),B=Z(H.g,Y.g),T=Z(H.b,Y.b),R=Nq(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 K.gamma=Q,K}(1);function YM(Q){return function(U){var Z=U.length,K=Array(Z),H=Array(Z),Y=Array(Z),W,B;for(W=0;W<Z;++W)B=F9(U[W]),K[W]=B.r||0,H[W]=B.g||0,Y[W]=B.b||0;return K=Q(K),H=Q(H),Y=Q(Y),B.opacity=1,function(T){return B.r=K(T),B.g=H(T),B.b=Y(T),B+""}}}var mC=YM(gX),gC=YM(pX);function cX(Q,U){if(!U)U=[];var Z=Q?Math.min(U.length,Q.length):0,K=U.slice(),H;return function(Y){for(H=0;H<Z;++H)K[H]=Q[H]*(1-Y)+U[H]*Y;return K}}function zM(Q){return ArrayBuffer.isView(Q)&&!(Q instanceof DataView)}function WM(Q,U){var Z=U?U.length:0,K=Q?Math.min(Z,Q.length):0,H=Array(K),Y=Array(Z),W;for(W=0;W<K;++W)H[W]=d4(Q[W],U[W]);for(;W<Z;++W)Y[W]=U[W];return function(B){for(W=0;W<K;++W)Y[W]=H[W](B);return Y}}function lX(Q,U){var Z=new Date;return Q=+Q,U=+U,function(K){return Z.setTime(Q*(1-K)+U*K),Z}}function h2(Q,U){return Q=+Q,U=+U,function(Z){return Q*(1-Z)+U*Z}}function iX(Q,U){var Z={},K={},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]=d4(Q[H],U[H]);else K[H]=U[H];return function(Y){for(H in Z)K[H]=Z[H](Y);return K}}var rX=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dX=new RegExp(rX.source,"g");function pC(Q){return function(){return Q}}function cC(Q){return function(U){return Q(U)+""}}function X9(Q,U){var Z=rX.lastIndex=dX.lastIndex=0,K,H,Y,W=-1,B=[],T=[];Q=Q+"",U=U+"";while((K=rX.exec(Q))&&(H=dX.exec(U))){if((Y=H.index)>Z)if(Y=U.slice(Z,Y),B[W])B[W]+=Y;else B[++W]=Y;if((K=K[0])===(H=H[0]))if(B[W])B[W]+=H;else B[++W]=H;else B[++W]=null,T.push({i:W,x:h2(K,H)});Z=dX.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]?cC(T[0].x):pC(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 d4(Q,U){var Z=typeof U,K;return U==null||Z==="boolean"?OJ(U):(Z==="number"?h2:Z==="string"?(K=F4(U))?(U=K,D8):X9:U instanceof F4?D8:U instanceof Date?lX:zM(U)?cX:Array.isArray(U)?WM:typeof U.valueOf!=="function"&&typeof U.toString!=="function"||isNaN(U)?iX:h2)(Q,U)}var BM=180/Math.PI,Cq={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fq(Q,U,Z,K,H,Y){var W,B,T;if(W=Math.sqrt(Q*Q+U*U))Q/=W,U/=W;if(T=Q*Z+U*K)Z-=Q*T,K-=U*T;if(B=Math.sqrt(Z*Z+K*K))Z/=B,K/=B,T/=B;if(Q*K<U*Z)Q=-Q,U=-U,T=-T,W=-W;return{translateX:H,translateY:Y,rotate:Math.atan2(U,Q)*BM,skewX:Math.atan(T)*BM,scaleX:W,scaleY:B}}var Sq;function LM(Q){let U=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(Q+"");return U.isIdentity?Cq:fq(U.a,U.b,U.c,U.d,U.e,U.f)}function AM(Q){if(Q==null)return Cq;if(!Sq)Sq=document.createElementNS("http://www.w3.org/2000/svg","g");if(Sq.setAttribute("transform",Q),!(Q=Sq.transform.baseVal.consolidate()))return Cq;return Q=Q.matrix,fq(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)}function MM(Q,U,Z,K){function H(R){return R.length?R.pop()+" ":""}function Y(R,M,A,O,P,N){if(R!==A||M!==O){var V=P.push("translate(",null,U,null,Z);N.push({i:V-4,x:h2(R,A)},{i:V-2,x:h2(M,O)})}else if(A||O)P.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,K)-2,x:h2(R,M)})}else if(M)A.push(H(A)+"rotate("+M+K)}function B(R,M,A,O){if(R!==M)O.push({i:A.push(H(A)+"skewX(",null,K)-2,x:h2(R,M)});else if(M)A.push(H(A)+"skewX("+M+K)}function T(R,M,A,O,P,N){if(R!==A||M!==O){var V=P.push(H(P)+"scale(",null,",",null,")");N.push({i:V-4,x:h2(R,A)},{i:V-2,x:h2(M,O)})}else if(A!==1||O!==1)P.push(H(P)+"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(P){var N=-1,V=O.length,j;while(++N<V)A[(j=O[N]).i]=j.x(P);return A.join("")}}}var aX=MM(LM,"px, ","px)","deg)"),sX=MM(AM,", ",")",")");var lC=0.000000000001;function TM(Q){return((Q=Math.exp(Q))+1/Q)/2}function iC(Q){return((Q=Math.exp(Q))-1/Q)/2}function dC(Q){return((Q=Math.exp(2*Q))-1)/(Q+1)}var u8=function Q(U,Z,K){function H(Y,W){var B=Y[0],T=Y[1],R=Y[2],M=W[0],A=W[1],O=W[2],P=M-B,N=A-T,V=P*P+N*N,j,f;if(V<lC)f=Math.log(O/R)/U,j=function(E){return[B+E*P,T+E*N,R*Math.exp(U*E*f)]};else{var u=Math.sqrt(V),C=(O*O-R*R+K*V)/(2*R*Z*u),v=(O*O-R*R-K*V)/(2*O*Z*u),D=Math.log(Math.sqrt(C*C+1)-C),h=Math.log(Math.sqrt(v*v+1)-v);f=(h-D)/U,j=function(E){var b=E*f,k=TM(D),x=R/(Z*u)*(k*dC(U*b+D)-iC(D));return[B+x*P,T+x*N,R*k/TM(U*b+D)]}}return j.duration=f*1000*U/Math.SQRT2,j}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 K9=0,wJ=0,IJ=0,OM=1000,jq,PJ,vq=0,b8=0,Vq=0,NJ=typeof performance==="object"&&performance.now?performance:Date,IM=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};function fJ(){return b8||(IM(rC),b8=NJ.now()+Vq)}function rC(){b8=0}function CJ(){this._call=this._time=this._next=null}CJ.prototype=yq.prototype={constructor:CJ,restart:function(Q,U,Z){if(typeof Q!=="function")throw TypeError("callback is not a function");if(Z=(Z==null?fJ():+Z)+(U==null?0:+U),!this._next&&PJ!==this){if(PJ)PJ._next=this;else jq=this;PJ=this}this._call=Q,this._time=Z,tX()},stop:function(){if(this._call)this._call=null,this._time=1/0,tX()}};function yq(Q,U,Z){var K=new CJ;return K.restart(Q,U,Z),K}function wM(){fJ(),++K9;var Q=jq,U;while(Q){if((U=b8-Q._time)>=0)Q._call.call(void 0,U);Q=Q._next}--K9}function RM(){b8=(vq=NJ.now())+Vq,K9=wJ=0;try{wM()}finally{K9=0,sC(),b8=0}}function aC(){var Q=NJ.now(),U=Q-vq;if(U>OM)Vq-=U,vq=Q}function sC(){var Q,U=jq,Z,K=1/0;while(U)if(U._call){if(K>U._time)K=U._time;Q=U,U=U._next}else Z=U._next,U._next=null,U=Q?Q._next=Z:jq=Z;PJ=Q,tX(K)}function tX(Q){if(K9)return;if(wJ)wJ=clearTimeout(wJ);var U=Q-b8;if(U>24){if(Q<1/0)wJ=setTimeout(RM,Q-NJ.now()-Vq);if(IJ)IJ=clearInterval(IJ)}else{if(!IJ)vq=NJ.now(),IJ=setInterval(aC,OM);K9=1,IM(RM)}}function SJ(Q,U,Z){var K=new CJ;return U=U==null?0:+U,K.restart((H)=>{K.stop(),Q(H+U)},U,Z),K}var tC=v8("start","end","cancel","interrupt"),oC=[],CM=0,PM=1,Dq=2,kq=3,NM=4,uq=5,jJ=6;function S3(Q,U,Z,K,H,Y){var W=Q.__transition;if(!W)Q.__transition={};else if(Z in W)return;nC(Q,Z,{name:U,index:K,group:H,on:tC,tween:oC,time:Y.time,delay:Y.delay,duration:Y.duration,ease:Y.ease,timer:null,state:CM})}function vJ(Q,U){var Z=L2(Q,U);if(Z.state>CM)throw Error("too late; already scheduled");return Z}function y2(Q,U){var Z=L2(Q,U);if(Z.state>kq)throw Error("too late; already running");return Z}function L2(Q,U){var Z=Q.__transition;if(!Z||!(Z=Z[U]))throw Error("transition not found");return Z}function nC(Q,U,Z){var K=Q.__transition,H;K[U]=Z,Z.timer=yq(Y,0,Z.time);function Y(R){if(Z.state=PM,Z.timer.restart(W,Z.delay,Z.time),Z.delay<=R)W(R-Z.delay)}function W(R){var M,A,O,P;if(Z.state!==PM)return T();for(M in K){if(P=K[M],P.name!==Z.name)continue;if(P.state===kq)return SJ(W);if(P.state===NM)P.state=jJ,P.timer.stop(),P.on.call("interrupt",Q,Q.__data__,P.index,P.group),delete K[M];else if(+M<U)P.state=jJ,P.timer.stop(),P.on.call("cancel",Q,Q.__data__,P.index,P.group),delete K[M]}if(SJ(function(){if(Z.state===kq)Z.state=NM,Z.timer.restart(B,Z.delay,Z.time),B(R)}),Z.state=Dq,Z.on.call("start",Q,Q.__data__,Z.index,Z.group),Z.state!==Dq)return;Z.state=kq,H=Array(O=Z.tween.length);for(M=0,A=-1;M<O;++M)if(P=Z.tween[M].value.call(Q,Q.__data__,Z.index,Z.group))H[++A]=P;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=uq,1),A=-1,O=H.length;while(++A<O)H[A].call(Q,M);if(Z.state===uq)Z.on.call("end",Q,Q.__data__,Z.index,Z.group),T()}function T(){Z.state=jJ,Z.timer.stop(),delete K[U];for(var R in K)return;delete Q.__transition}}function v6(Q,U){var Z=Q.__transition,K,H,Y=!0,W;if(!Z)return;U=U==null?null:U+"";for(W in Z){if((K=Z[W]).name!==U){Y=!1;continue}H=K.state>Dq&&K.state<uq,K.state=jJ,K.timer.stop(),K.on.call(H?"interrupt":"cancel",Q,Q.__data__,K.index,K.group),delete Z[W]}if(Y)delete Q.__transition}function oX(Q){return this.each(function(){v6(this,Q)})}function eC(Q,U){var Z,K;return function(){var H=y2(this,Q),Y=H.tween;if(Y!==Z){K=Z=Y;for(var W=0,B=K.length;W<B;++W)if(K[W].name===U){K=K.slice(),K.splice(W,1);break}}H.tween=K}}function _f(Q,U,Z){var K,H;if(typeof Z!=="function")throw Error();return function(){var Y=y2(this,Q),W=Y.tween;if(W!==K){H=(K=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 nX(Q,U){var Z=this._id;if(Q+="",arguments.length<2){var K=L2(this.node(),Z).tween;for(var H=0,Y=K.length,W;H<Y;++H)if((W=K[H]).name===Q)return W.value;return null}return this.each((U==null?eC:_f)(Z,Q,U))}function H9(Q,U,Z){var K=Q._id;return Q.each(function(){var H=y2(this,K);(H.value||(H.value={}))[U]=Z.apply(this,arguments)}),function(H){return L2(H,K).value[U]}}function VJ(Q,U){var Z;return(typeof U==="number"?h2:U instanceof F4?D8:(Z=F4(U))?(U=Z,D8):X9)(Q,U)}function Jf(Q){return function(){this.removeAttribute(Q)}}function $f(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function Qf(Q,U,Z){var K,H=Z+"",Y;return function(){var W=this.getAttribute(Q);return W===H?null:W===K?Y:Y=U(K=W,Z)}}function qf(Q,U,Z){var K,H=Z+"",Y;return function(){var W=this.getAttributeNS(Q.space,Q.local);return W===H?null:W===K?Y:Y=U(K=W,Z)}}function Uf(Q,U,Z){var K,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===K&&T===H?Y:(H=T,Y=U(K=W,B))}}function Gf(Q,U,Z){var K,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===K&&T===H?Y:(H=T,Y=U(K=W,B))}}function eX(Q,U){var Z=l4(Q),K=Z==="transform"?sX:VJ;return this.attrTween(Q,typeof U==="function"?(Z.local?Gf:Uf)(Z,K,H9(this,"attr."+Q,U)):U==null?(Z.local?$f:Jf)(Z):(Z.local?qf:Qf)(Z,K,U))}function Zf(Q,U){return function(Z){this.setAttribute(Q,U.call(this,Z))}}function Ff(Q,U){return function(Z){this.setAttributeNS(Q.space,Q.local,U.call(this,Z))}}function Xf(Q,U){var Z,K;function H(){var Y=U.apply(this,arguments);if(Y!==K)Z=(K=Y)&&Ff(Q,Y);return Z}return H._value=U,H}function Kf(Q,U){var Z,K;function H(){var Y=U.apply(this,arguments);if(Y!==K)Z=(K=Y)&&Zf(Q,Y);return Z}return H._value=U,H}function _K(Q,U){var Z="attr."+Q;if(arguments.length<2)return(Z=this.tween(Z))&&Z._value;if(U==null)return this.tween(Z,null);if(typeof U!=="function")throw Error();var K=l4(Q);return this.tween(Z,(K.local?Xf:Kf)(K,U))}function Hf(Q,U){return function(){vJ(this,Q).delay=+U.apply(this,arguments)}}function Yf(Q,U){return U=+U,function(){vJ(this,Q).delay=U}}function JK(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?Hf:Yf)(U,Q)):L2(this.node(),U).delay}function zf(Q,U){return function(){y2(this,Q).duration=+U.apply(this,arguments)}}function Wf(Q,U){return U=+U,function(){y2(this,Q).duration=U}}function $K(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?zf:Wf)(U,Q)):L2(this.node(),U).duration}function Bf(Q,U){if(typeof U!=="function")throw Error();return function(){y2(this,Q).ease=U}}function QK(Q){var U=this._id;return arguments.length?this.each(Bf(U,Q)):L2(this.node(),U).ease}function Lf(Q,U){return function(){var Z=U.apply(this,arguments);if(typeof Z!=="function")throw Error();y2(this,Q).ease=Z}}function qK(Q){if(typeof Q!=="function")throw Error();return this.each(Lf(this._id,Q))}function UK(Q){if(typeof Q!=="function")Q=q9(Q);for(var U=this._groups,Z=U.length,K=Array(Z),H=0;H<Z;++H)for(var Y=U[H],W=Y.length,B=K[H]=[],T,R=0;R<W;++R)if((T=Y[R])&&Q.call(T,T.__data__,R,Y))B.push(T);return new o2(K,this._parents,this._name,this._id)}function GK(Q){if(Q._id!==this._id)throw Error();for(var U=this._groups,Z=Q._groups,K=U.length,H=Z.length,Y=Math.min(K,H),W=Array(K),B=0;B<Y;++B)for(var T=U[B],R=Z[B],M=T.length,A=W[B]=Array(M),O,P=0;P<M;++P)if(O=T[P]||R[P])A[P]=O;for(;B<K;++B)W[B]=U[B];return new o2(W,this._parents,this._name,this._id)}function Af(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 Mf(Q,U,Z){var K,H,Y=Af(U)?vJ:y2;return function(){var W=Y(this,Q),B=W.on;if(B!==K)(H=(K=B).copy()).on(U,Z);W.on=H}}function ZK(Q,U){var Z=this._id;return arguments.length<2?L2(this.node(),Z).on.on(Q):this.each(Mf(Z,Q,U))}function Tf(Q){return function(){var U=this.parentNode;for(var Z in this.__transition)if(+Z!==Q)return;if(U)U.removeChild(this)}}function FK(){return this.on("end.remove",Tf(this._id))}function XK(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=S6(Q);for(var K=this._groups,H=K.length,Y=Array(H),W=0;W<H;++W)for(var B=K[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,S3(R[O],U,Z,O,R,L2(M,Z))}return new o2(Y,this._parents,U,Z)}function KK(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=U9(Q);for(var K=this._groups,H=K.length,Y=[],W=[],B=0;B<H;++B)for(var T=K[B],R=T.length,M,A=0;A<R;++A)if(M=T[A]){for(var O=Q.call(M,M.__data__,A,T),P,N=L2(M,Z),V=0,j=O.length;V<j;++V)if(P=O[V])S3(P,U,Z,V,O,N);Y.push(O),W.push(M)}return new o2(Y,W,U,Z)}var Rf=C3.prototype.constructor;function HK(){return new Rf(this._groups,this._parents)}function Of(Q,U){var Z,K,H;return function(){var Y=j6(this,Q),W=(this.style.removeProperty(Q),j6(this,Q));return Y===W?null:Y===Z&&W===K?H:H=U(Z=Y,K=W)}}function fM(Q){return function(){this.style.removeProperty(Q)}}function If(Q,U,Z){var K,H=Z+"",Y;return function(){var W=j6(this,Q);return W===H?null:W===K?Y:Y=U(K=W,Z)}}function wf(Q,U,Z){var K,H,Y;return function(){var W=j6(this,Q),B=Z(this),T=B+"";if(B==null)T=B=(this.style.removeProperty(Q),j6(this,Q));return W===T?null:W===K&&T===H?Y:(H=T,Y=U(K=W,B))}}function Pf(Q,U){var Z,K,H,Y="style."+U,W="end."+Y,B;return function(){var T=y2(this,Q),R=T.on,M=T.value[Y]==null?B||(B=fM(U)):void 0;if(R!==Z||H!==M)(K=(Z=R).copy()).on(W,H=M);T.on=K}}function YK(Q,U,Z){var K=(Q+="")==="transform"?aX:VJ;return U==null?this.styleTween(Q,Of(Q,K)).on("end.style."+Q,fM(Q)):typeof U==="function"?this.styleTween(Q,wf(Q,K,H9(this,"style."+Q,U))).each(Pf(this._id,Q)):this.styleTween(Q,If(Q,K,U),Z).on("end.style."+Q,null)}function Nf(Q,U,Z){return function(K){this.style.setProperty(Q,U.call(this,K),Z)}}function Cf(Q,U,Z){var K,H;function Y(){var W=U.apply(this,arguments);if(W!==H)K=(H=W)&&Nf(Q,W,Z);return K}return Y._value=U,Y}function zK(Q,U,Z){var K="style."+(Q+="");if(arguments.length<2)return(K=this.tween(K))&&K._value;if(U==null)return this.tween(K,null);if(typeof U!=="function")throw Error();return this.tween(K,Cf(Q,U,Z==null?"":Z))}function ff(Q){return function(){this.textContent=Q}}function Sf(Q){return function(){var U=Q(this);this.textContent=U==null?"":U}}function WK(Q){return this.tween("text",typeof Q==="function"?Sf(H9(this,"text",Q)):ff(Q==null?"":Q+""))}function jf(Q){return function(U){this.textContent=Q.call(this,U)}}function vf(Q){var U,Z;function K(){var H=Q.apply(this,arguments);if(H!==Z)U=(Z=H)&&jf(H);return U}return K._value=Q,K}function BK(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,vf(Q))}function LK(){var Q=this._name,U=this._id,Z=bq();for(var K=this._groups,H=K.length,Y=0;Y<H;++Y)for(var W=K[Y],B=W.length,T,R=0;R<B;++R)if(T=W[R]){var M=L2(T,U);S3(T,Q,Z,R,W,{time:M.time+M.delay+M.duration,delay:0,duration:M.duration,ease:M.ease})}return new o2(K,this._parents,Q,Z)}function AK(){var Q,U,Z=this,K=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=y2(this,K),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 Vf=0;function o2(Q,U,Z,K){this._groups=Q,this._parents=U,this._name=Z,this._id=K}function SM(Q){return C3().transition(Q)}function bq(){return++Vf}var j3=C3.prototype;o2.prototype=SM.prototype={constructor:o2,select:XK,selectAll:KK,selectChild:j3.selectChild,selectChildren:j3.selectChildren,filter:UK,merge:GK,selection:HK,transition:LK,call:j3.call,nodes:j3.nodes,node:j3.node,size:j3.size,empty:j3.empty,each:j3.each,on:ZK,attr:eX,attrTween:_K,style:YK,styleTween:zK,text:WK,textTween:BK,remove:FK,tween:nX,delay:JK,duration:$K,ease:QK,easeVarying:qK,end:AK,[Symbol.iterator]:j3[Symbol.iterator]};function Eq(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}var yf={time:null,delay:0,duration:250,ease:Eq};function kf(Q,U){var Z;while(!(Z=Q.__transition)||!(Z=Z[U]))if(!(Q=Q.parentNode))throw Error(`transition ${U} not found`);return Z}function MK(Q){var U,Z;if(Q instanceof o2)U=Q._id,Q=Q._name;else U=bq(),(Z=yf).time=fJ(),Q=Q==null?null:Q+"";for(var K=this._groups,H=K.length,Y=0;Y<H;++Y)for(var W=K[Y],B=W.length,T,R=0;R<B;++R)if(T=W[R])S3(T,Q,U,R,W,Z||kf(T,U));return new o2(K,this._parents,Q,U)}C3.prototype.interrupt=oX;C3.prototype.transition=MK;var yJ=(Q)=>()=>Q;function TK(Q,{sourceEvent:U,target:Z,transform:K,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:K,enumerable:!0,configurable:!0},_:{value:H}})}function X4(Q,U,Z){this.k=Q,this.x=U,this.y=Z}X4.prototype={constructor:X4,scale:function(Q){return Q===1?this:new X4(this.k*Q,this.x,this.y)},translate:function(Q,U){return Q===0&U===0?this:new X4(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 E8=new X4(1,0,0);kJ.prototype=X4.prototype;function kJ(Q){while(!Q.__zoom)if(!(Q=Q.parentNode))return E8;return Q.__zoom}function hq(Q){Q.stopImmediatePropagation()}function h8(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function Df(Q){return(!Q.ctrlKey||Q.type==="wheel")&&!Q.button}function uf(){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 jM(){return this.__zoom||E8}function bf(Q){return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*(Q.ctrlKey?10:1)}function Ef(){return navigator.maxTouchPoints||"ontouchstart"in this}function hf(Q,U,Z){var K=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>K?(K+H)/2:Math.min(0,K)||Math.max(0,H),W>Y?(Y+W)/2:Math.min(0,Y)||Math.max(0,W))}function DJ(){var Q=Df,U=uf,Z=hf,K=bf,H=Ef,Y=[0,1/0],W=[[-1/0,-1/0],[1/0,1/0]],B=250,T=u8,R=v8("start","zoom","end"),M,A,O,P=500,N=150,V=0,j=10;function f(m){m.property("__zoom",jM).on("wheel.zoom",b,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",x).filter(H).on("touchstart.zoom",$1).on("touchmove.zoom",Q1).on("touchend.zoom touchcancel.zoom",J1).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}f.transform=function(m,p,c,a){var i=m.selection?m.selection():m;if(i.property("__zoom",jM),m!==i)D(m,p,c,a);else i.interrupt().each(function(){h(this,arguments).event(a).start().zoom(null,typeof p==="function"?p.apply(this,arguments):p).end()})},f.scaleBy=function(m,p,c,a){f.scaleTo(m,function(){var i=this.__zoom.k,o=typeof p==="function"?p.apply(this,arguments):p;return i*o},c,a)},f.scaleTo=function(m,p,c,a){f.transform(m,function(){var i=U.apply(this,arguments),o=this.__zoom,y=c==null?v(i):typeof c==="function"?c.apply(this,arguments):c,g=o.invert(y),q1=typeof p==="function"?p.apply(this,arguments):p;return Z(C(u(o,q1),y,g),i,W)},c,a)},f.translateBy=function(m,p,c,a){f.transform(m,function(){return Z(this.__zoom.translate(typeof p==="function"?p.apply(this,arguments):p,typeof c==="function"?c.apply(this,arguments):c),U.apply(this,arguments),W)},null,a)},f.translateTo=function(m,p,c,a,i){f.transform(m,function(){var o=U.apply(this,arguments),y=this.__zoom,g=a==null?v(o):typeof a==="function"?a.apply(this,arguments):a;return Z(E8.translate(g[0],g[1]).scale(y.k).translate(typeof p==="function"?-p.apply(this,arguments):-p,typeof c==="function"?-c.apply(this,arguments):-c),o,W)},a,i)};function u(m,p){return p=Math.max(Y[0],Math.min(Y[1],p)),p===m.k?m:new X4(p,m.x,m.y)}function C(m,p,c){var a=p[0]-c[0]*m.k,i=p[1]-c[1]*m.k;return a===m.x&&i===m.y?m:new X4(m.k,a,i)}function v(m){return[(+m[0][0]+ +m[1][0])/2,(+m[0][1]+ +m[1][1])/2]}function D(m,p,c,a){m.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 i=this,o=arguments,y=h(i,o).event(a),g=U.apply(i,o),q1=c==null?v(g):typeof c==="function"?c.apply(i,o):c,t=Math.max(g[1][0]-g[0][0],g[1][1]-g[0][1]),W1=i.__zoom,T1=typeof p==="function"?p.apply(i,o):p,O1=T(W1.invert(q1).concat(t/W1.k),T1.invert(q1).concat(t/T1.k));return function(B1){if(B1===1)B1=T1;else{var U1=O1(B1),P1=t/U1[2];B1=new X4(P1,q1[0]-U1[0]*P1,q1[1]-U1[1]*P1)}y.zoom(null,B1)}})}function h(m,p,c){return!c&&m.__zooming||new E(m,p)}function E(m,p){this.that=m,this.args=p,this.active=0,this.sourceEvent=null,this.extent=U.apply(m,p),this.taps=0}E.prototype={event:function(m){if(m)this.sourceEvent=m;return this},start:function(){if(++this.active===1)this.that.__zooming=this,this.emit("start");return this},zoom:function(m,p){if(this.mouse&&m!=="mouse")this.mouse[1]=p.invert(this.mouse[0]);if(this.touch0&&m!=="touch")this.touch0[1]=p.invert(this.touch0[0]);if(this.touch1&&m!=="touch")this.touch1[1]=p.invert(this.touch1[0]);return this.that.__zoom=p,this.emit("zoom"),this},end:function(){if(--this.active===0)delete this.that.__zooming,this.emit("end");return this},emit:function(m){var p=B2(this.that).datum();R.call(m,this.that,new TK(m,{sourceEvent:this.sourceEvent,target:f,type:m,transform:this.that.__zoom,dispatch:R}),p)}};function b(m,...p){if(!Q.apply(this,arguments))return;var c=h(this,p).event(m),a=this.__zoom,i=Math.max(Y[0],Math.min(Y[1],a.k*Math.pow(2,K.apply(this,arguments)))),o=E2(m);if(c.wheel){if(c.mouse[0][0]!==o[0]||c.mouse[0][1]!==o[1])c.mouse[1]=a.invert(c.mouse[0]=o);clearTimeout(c.wheel)}else if(a.k===i)return;else c.mouse=[o,a.invert(o)],v6(this),c.start();h8(m),c.wheel=setTimeout(y,N),c.zoom("mouse",Z(C(u(a,i),c.mouse[0],c.mouse[1]),c.extent,W));function y(){c.wheel=null,c.end()}}function k(m,...p){if(O||!Q.apply(this,arguments))return;var c=m.currentTarget,a=h(this,p,!0).event(m),i=B2(m.view).on("mousemove.zoom",q1,!0).on("mouseup.zoom",t,!0),o=E2(m,c),y=m.clientX,g=m.clientY;G9(m.view),hq(m),a.mouse=[o,this.__zoom.invert(o)],v6(this),a.start();function q1(W1){if(h8(W1),!a.moved){var T1=W1.clientX-y,O1=W1.clientY-g;a.moved=T1*T1+O1*O1>V}a.event(W1).zoom("mouse",Z(C(a.that.__zoom,a.mouse[0]=E2(W1,c),a.mouse[1]),a.extent,W))}function t(W1){i.on("mousemove.zoom mouseup.zoom",null),zJ(W1.view,a.moved),h8(W1),a.event(W1).end()}}function x(m,...p){if(!Q.apply(this,arguments))return;var c=this.__zoom,a=E2(m.changedTouches?m.changedTouches[0]:m,this),i=c.invert(a),o=c.k*(m.shiftKey?0.5:2),y=Z(C(u(c,o),a,i),U.apply(this,p),W);if(h8(m),B>0)B2(this).transition().duration(B).call(D,y,a,m);else B2(this).call(f.transform,y,a,m)}function $1(m,...p){if(!Q.apply(this,arguments))return;var c=m.touches,a=c.length,i=h(this,p,m.changedTouches.length===a).event(m),o,y,g,q1;hq(m);for(y=0;y<a;++y)if(g=c[y],q1=E2(g,this),q1=[q1,this.__zoom.invert(q1),g.identifier],!i.touch0)i.touch0=q1,o=!0,i.taps=1+!!M;else if(!i.touch1&&i.touch0[2]!==q1[2])i.touch1=q1,i.taps=0;if(M)M=clearTimeout(M);if(o){if(i.taps<2)A=q1[0],M=setTimeout(function(){M=null},P);v6(this),i.start()}}function Q1(m,...p){if(!this.__zooming)return;var c=h(this,p).event(m),a=m.changedTouches,i=a.length,o,y,g,q1;h8(m);for(o=0;o<i;++o)if(y=a[o],g=E2(y,this),c.touch0&&c.touch0[2]===y.identifier)c.touch0[0]=g;else if(c.touch1&&c.touch1[2]===y.identifier)c.touch1[0]=g;if(y=c.that.__zoom,c.touch1){var t=c.touch0[0],W1=c.touch0[1],T1=c.touch1[0],O1=c.touch1[1],B1=(B1=T1[0]-t[0])*B1+(B1=T1[1]-t[1])*B1,U1=(U1=O1[0]-W1[0])*U1+(U1=O1[1]-W1[1])*U1;y=u(y,Math.sqrt(B1/U1)),g=[(t[0]+T1[0])/2,(t[1]+T1[1])/2],q1=[(W1[0]+O1[0])/2,(W1[1]+O1[1])/2]}else if(c.touch0)g=c.touch0[0],q1=c.touch0[1];else return;c.zoom("touch",Z(C(y,g,q1),c.extent,W))}function J1(m,...p){if(!this.__zooming)return;var c=h(this,p).event(m),a=m.changedTouches,i=a.length,o,y;if(hq(m),O)clearTimeout(O);O=setTimeout(function(){O=null},P);for(o=0;o<i;++o)if(y=a[o],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=E2(y,this),Math.hypot(A[0]-y[0],A[1]-y[1])<j){var g=B2(this).on("dblclick.zoom");if(g)g.apply(this,arguments)}}}return f.wheelDelta=function(m){return arguments.length?(K=typeof m==="function"?m:yJ(+m),f):K},f.filter=function(m){return arguments.length?(Q=typeof m==="function"?m:yJ(!!m),f):Q},f.touchable=function(m){return arguments.length?(H=typeof m==="function"?m:yJ(!!m),f):H},f.extent=function(m){return arguments.length?(U=typeof m==="function"?m:yJ([[+m[0][0],+m[0][1]],[+m[1][0],+m[1][1]]]),f):U},f.scaleExtent=function(m){return arguments.length?(Y[0]=+m[0],Y[1]=+m[1],f):[Y[0],Y[1]]},f.translateExtent=function(m){return arguments.length?(W[0][0]=+m[0][0],W[1][0]=+m[1][0],W[0][1]=+m[0][1],W[1][1]=+m[1][1],f):[[W[0][0],W[0][1]],[W[1][0],W[1][1]]]},f.constrain=function(m){return arguments.length?(Z=m,f):Z},f.duration=function(m){return arguments.length?(B=+m,f):B},f.interpolate=function(m){return arguments.length?(T=m,f):T},f.on=function(){var m=R.on.apply(R,arguments);return m===R?f:m},f.clickDistance=function(m){return arguments.length?(V=(m=+m)*m,f):Math.sqrt(V)},f.tapDistance=function(m){return arguments.length?(j=+m,f):j},f}var n2={error001:(Q="react")=>`Seems like you have not used ${Q==="svelte"?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${Q}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:(Q)=>`Node type "${Q}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:(Q)=>`The old edge with id=${Q} does not exist.`,error009:(Q)=>`Marker type "${Q}" doesn't exist.`,error008:(Q,{id:U,sourceHandle:Z,targetHandle:K})=>`Couldn't create edge for ${Q} handle id: "${Q==="source"?Z:K}", edge id: ${U}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:(Q)=>`Edge type "${Q}" not found. Using fallback type "default".`,error012:(Q)=>`Node with id "${Q}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(Q="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${Q}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:(Q)=>`Edge with id "${Q}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},B9=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],PK=["Enter"," ","Escape"],NK={"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"},D6;(function(Q){Q.Strict="strict",Q.Loose="loose"})(D6||(D6={}));var v3;(function(Q){Q.Free="free",Q.Vertical="vertical",Q.Horizontal="horizontal"})(v3||(v3={}));var x8;(function(Q){Q.Partial="partial",Q.Full="full"})(x8||(x8={}));var CK={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null},r4;(function(Q){Q.Bezier="default",Q.Straight="straight",Q.Step="step",Q.SmoothStep="smoothstep",Q.SimpleBezier="simplebezier"})(r4||(r4={}));var z9;(function(Q){Q.Arrow="arrow",Q.ArrowClosed="arrowclosed"})(z9||(z9={}));var b1;(function(Q){Q.Left="left",Q.Top="top",Q.Right="right",Q.Bottom="bottom"})(b1||(b1={}));var vM={[b1.Left]:b1.Right,[b1.Right]:b1.Left,[b1.Top]:b1.Bottom,[b1.Bottom]:b1.Top},fK=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("source"in Q)&&("target"in Q),lM=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("position"in Q)&&!("source"in Q)&&!("target"in Q),SK=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("internals"in Q)&&!("source"in Q)&&!("target"in Q);var bJ=(Q,U=[0,0])=>{let{width:Z,height:K}=i5(Q),H=Q.origin??U,Y=Z*H[0],W=K*H[1];return{x:Q.position.x-Y,y:Q.position.y-W}},jK=(Q,U={nodeOrigin:[0,0]})=>{if(!U.nodeLookup)console.warn("Please use `getNodesBounds` from `useReactFlow`/`useSvelteFlow` hook to ensure correct values for sub flows. If not possible, you have to provide a nodeLookup to support sub flows.");if(Q.length===0)return{x:0,y:0,width:0,height:0};let Z=!1,K=Q.reduce((H,Y)=>{let W=typeof Y==="string",B=!U.nodeLookup&&!W?Y:void 0;if(U.nodeLookup)B=W?U.nodeLookup.get(Y):!SK(Y)?U.nodeLookup.get(Y.id):Y;if(!B)return H;return Z=!0,lq(H,gq(B,U.nodeOrigin))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Z?iq(K):{x:0,y:0,width:0,height:0}},c8=(Q,U={})=>{let Z={x:1/0,y:1/0,x2:-1/0,y2:-1/0},K=!1;return Q.forEach((H)=>{if(U.filter===void 0||U.filter(H))Z=lq(Z,gq(H)),K=!0}),K?iq(Z):{x:0,y:0,width:0,height:0}},pq=(Q,U,[Z,K,H]=[0,0,1],Y=!1,W=!1)=>{let B=(U.x-Z)/H,T=(U.y-K)/H,R=U.width/H,M=U.height/H,A=[];for(let O of Q.values()){let{measured:P,selectable:N=!0,hidden:V=!1}=O;if(W&&!N||V)continue;let j=P.width??O.width??O.initialWidth??0,f=P.height??O.height??O.initialHeight??0,{x:u,y:C}=O.internals.positionAbsolute,v=sM(B,T,R,M,u,C,j,f),D=j*f,h=Y&&v>0;if(!O.internals.handleBounds||h||v>=D||O.dragging)A.push(O)}return A},iM=(Q,U)=>{let Z=new Set;return Q.forEach((K)=>{Z.add(K.id)}),U.filter((K)=>Z.has(K.source)||Z.has(K.target))};function xf(Q,U){let Z=new Map,K=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}=i5(H);Y=W>0&&B>0}else Y=Boolean(H.measured.width&&H.measured.height&&!H.hidden);if(Y&&(!K||K.has(H.id)))Z.set(H.id,H)}),Z}async function dM({nodes:Q,width:U,height:Z,panZoom:K,minZoom:H,maxZoom:Y},W){if(Q.size===0)return!0;let B=xf(Q,W),T=c8(B),R=hJ(T,U,Z,W?.minZoom??H,W?.maxZoom??Y,W?.padding??0.1);return await K.setViewport(R,{duration:W?.duration,ease:W?.ease,interpolate:W?.interpolate}),!0}function vK({nodeId:Q,nextPosition:U,nodeLookup:Z,nodeOrigin:K=[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??K,A=W.extent||H;if(W.extent==="parent"&&!W.expandParent)if(!B)Y?.("005",n2.error005());else{let{width:P,height:N}=i5(B);if(P&&N)A=[[T,R],[T+P,R+N]]}else if(B&&p8(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=p8(A)?m8(U,A,W.measured):U;if(W.measured.width===void 0||W.measured.height===void 0)Y?.("015",n2.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 rM({nodesToRemove:Q=[],edgesToRemove:U=[],nodes:Z,edges:K,onBeforeDelete:H}){let Y=new Set(Q.map((O)=>O.id)),W=[];for(let O of Z){if(O.deletable===!1)continue;let P=Y.has(O.id),N=!P&&O.parentId&&W.find((V)=>V.id===O.parentId);if(P||N)W.push(O)}let B=new Set(U.map((O)=>O.id)),T=K.filter((O)=>O.deletable!==!1),M=iM(W,T);for(let O of T)if(B.has(O.id)&&!M.find((N)=>N.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 W9=(Q,U=0,Z=1)=>Math.min(Math.max(Q,U),Z),m8=(Q={x:0,y:0},U,Z)=>({x:W9(Q.x,U[0][0],U[1][0]-(Z?.width??0)),y:W9(Q.y,U[0][1],U[1][1]-(Z?.height??0))});function aM(Q,U,Z){let{width:K,height:H}=i5(Z),{x:Y,y:W}=Z.internals.positionAbsolute;return m8(Q,[[Y,W],[Y+K,W+H]],U)}var VM=(Q,U,Z)=>{if(Q<U)return W9(Math.abs(Q-U),1,U)/U;else if(Q>Z)return-W9(Math.abs(Q-Z),1,U)/U;return 0},cq=(Q,U,Z=15,K=40)=>{let H=VM(Q.x,K,U.width-K)*Z,Y=VM(Q.y,K,U.height-K)*Z;return[H,Y]},lq=(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)}),wK=({x:Q,y:U,width:Z,height:K})=>({x:Q,y:U,x2:Q+Z,y2:U+K}),iq=({x:Q,y:U,x2:Z,y2:K})=>({x:Q,y:U,width:Z-Q,height:K-U}),L9=(Q,U=[0,0])=>{let{x:Z,y:K}=SK(Q)?Q.internals.positionAbsolute:bJ(Q,U);return{x:Z,y:K,width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}},gq=(Q,U=[0,0])=>{let{x:Z,y:K}=SK(Q)?Q.internals.positionAbsolute:bJ(Q,U);return{x:Z,y:K,x2:Z+(Q.measured?.width??Q.width??Q.initialWidth??0),y2:K+(Q.measured?.height??Q.height??Q.initialHeight??0)}},VK=(Q,U)=>iq(lq(wK(Q),wK(U))),sM=(Q,U,Z,K,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+K,Y+B)-Math.max(U,Y));return Math.ceil(T*R)},EJ=(Q,U)=>sM(Q.x,Q.y,Q.width,Q.height,U.x,U.y,U.width,U.height),yK=(Q)=>c5(Q.width)&&c5(Q.height)&&c5(Q.x)&&c5(Q.y),c5=(Q)=>!isNaN(Q)&&isFinite(Q),kK=(Q,U)=>(Z,K)=>{console.warn(`[${Q}]: ${K} Help: ${U}error#${Z}`)},A9=(Q,U=[1,1])=>{return{x:U[0]*Math.round(Q.x/U[0]),y:U[1]*Math.round(Q.y/U[1])}},M9=({x:Q,y:U},[Z,K,H],Y=!1,W=[1,1])=>{let B={x:(Q-Z)/H,y:(U-K)/H};return Y?A9(B,W):B},g8=({x:Q,y:U},[Z,K,H])=>{return{x:Q*H+Z,y:U*H+K}};function Y9(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 mf(Q,U,Z){if(typeof Q==="string"||typeof Q==="number"){let K=Y9(Q,Z),H=Y9(Q,U);return{top:K,right:H,bottom:K,left:H,x:H*2,y:K*2}}if(typeof Q==="object"){let K=Y9(Q.top??Q.y??0,Z),H=Y9(Q.bottom??Q.y??0,Z),Y=Y9(Q.left??Q.x??0,U),W=Y9(Q.right??Q.x??0,U);return{top:K,right:W,bottom:H,left:Y,x:Y+W,y:K+H}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function gf(Q,U,Z,K,H,Y){let{x:W,y:B}=g8(Q,[U,Z,K]),{x:T,y:R}=g8({x:Q.x+Q.width,y:Q.y+Q.height},[U,Z,K]),M=H-T,A=Y-R;return{left:Math.floor(W),top:Math.floor(B),right:Math.floor(M),bottom:Math.floor(A)}}var hJ=(Q,U,Z,K,H,Y)=>{let W=mf(Y,U,Z),B=(U-W.x)/Q.width,T=(Z-W.y)/Q.height,R=Math.min(B,T),M=W9(R,K,H),A=Q.x+Q.width/2,O=Q.y+Q.height/2,P=U/2-A*M,N=Z/2-O*M,V=gf(Q,P,N,M,U,Z),j={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:P-j.left+j.right,y:N-j.top+j.bottom,zoom:M}},T9=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function p8(Q){return Q!==void 0&&Q!==null&&Q!=="parent"}function i5(Q){return{width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}}function DK(Q){return(Q.measured?.width??Q.width??Q.initialWidth)!==void 0&&(Q.measured?.height??Q.height??Q.initialHeight)!==void 0}function uK(Q,U={width:0,height:0},Z,K,H){let Y={...Q},W=K.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 bK(Q,U){if(Q.size!==U.size)return!1;for(let Z of Q)if(!U.has(Z))return!1;return!0}function tM(){let Q,U;return{promise:new Promise((K,H)=>{Q=K,U=H}),resolve:Q,reject:U}}function oM(Q){return{...NK,...Q||{}}}function pf(Q){if(typeof document>"u")return!0;let U=document.querySelector(`.${Q}-flow__pane`);if(!U||!U.isConnected)return!0;let Z=getComputedStyle(U);if(Z.display==="none")return!0;if(Z.visibility==="hidden"||Z.visibility==="collapse")return!0;if(Z.opacity==="0")return!0;if(Z.width==="0"&&Z.height==="0")return!0;let K=U.getBoundingClientRect();if(K.width===0&&K.height===0)return!0;let 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 yM=!1;function nM(Q){if(yM)return;yM=!0;let U=`${Q.charAt(0).toUpperCase()+Q.slice(1)} Flow`;setTimeout(()=>{if(!pf(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 EK(Q){return Q===null?null:Q?"valid":"invalid"}function uJ(Q,{snapGrid:U=[0,0],snapToGrid:Z=!1,transform:K,containerBounds:H}){let{x:Y,y:W}=l5(Q),B=M9({x:Y-(H?.left??0),y:W-(H?.top??0)},K),{x:T,y:R}=Z?A9(B,U):B;return{xSnapped:T,ySnapped:R,...B}}var dq=(Q)=>({width:Q.offsetWidth,height:Q.offsetHeight}),hK=(Q)=>Q?.getRootNode?.()||window?.document,cf=["INPUT","SELECT","TEXTAREA"];function xK(Q){let U=Q.composedPath?.()?.[0]||Q.target;if(U?.nodeType!==1)return!1;return cf.includes(U.nodeName)||U.hasAttribute("contenteditable")||!!U.closest(".nokey")}var mK=(Q)=>("clientX"in Q),l5=(Q,U)=>{let Z=mK(Q),K=Z?Q.clientX:Q.touches?.[0].clientX,H=Z?Q.clientY:Q.touches?.[0].clientY;return{x:K-(U?.left??0),y:H-(U?.top??0)}},kM=(Q,U,Z,K,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)/K,y:(B.top-Z.top)/K,...dq(W)}})};function rq({sourceX:Q,sourceY:U,targetX:Z,targetY:K,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+K*0.125,M=Math.abs(T-Q),A=Math.abs(R-U);return[T,R,M,A]}function xq(Q,U){if(Q>=0)return 0.5*Q;return U*25*Math.sqrt(-Q)}function DM({pos:Q,x1:U,y1:Z,x2:K,y2:H,c:Y}){switch(Q){case b1.Left:return[U-xq(U-K,Y),Z];case b1.Right:return[U+xq(K-U,Y),Z];case b1.Top:return[U,Z-xq(Z-H,Y)];case b1.Bottom:return[U,Z+xq(H-Z,Y)]}}function aq({sourceX:Q,sourceY:U,sourcePosition:Z=b1.Bottom,targetX:K,targetY:H,targetPosition:Y=b1.Top,curvature:W=0.25}){let[B,T]=DM({pos:Z,x1:Q,y1:U,x2:K,y2:H,c:W}),[R,M]=DM({pos:Y,x1:K,y1:H,x2:Q,y2:U,c:W}),[A,O,P,N]=rq({sourceX:Q,sourceY:U,targetX:K,targetY:H,sourceControlX:B,sourceControlY:T,targetControlX:R,targetControlY:M});return[`M${Q},${U} C${B},${T} ${R},${M} ${K},${H}`,A,O,P,N]}function gK({sourceX:Q,sourceY:U,targetX:Z,targetY:K}){let H=Math.abs(Z-Q)/2,Y=Z<Q?Z+H:Z-H,W=Math.abs(K-U)/2,B=K<U?K+W:K-W;return[Y,B,H,W]}function eM({sourceNode:Q,targetNode:U,selected:Z=!1,zIndex:K=0,elevateOnSelect:H=!1,zIndexMode:Y="basic"}){if(Y==="manual")return K;let W=H&&Z?K+1000:K,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 _T({sourceNode:Q,targetNode:U,width:Z,height:K,transform:H}){let Y=lq(gq(Q),gq(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:K/H[2]};return EJ(W,iq(Y))>0}var lf=({source:Q,sourceHandle:U,target:Z,targetHandle:K})=>`xy-edge__${Q}${U||""}-${Z}${K||""}`,df=(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))},JT=(Q,U,Z={})=>{if(!Q.source||!Q.target)return Z.onError?.("006",n2.error006()),U;let K=Z.getEdgeId||lf,H;if(fK(Q))H={...Q};else H={...Q,id:K(Q)};if(df(H,U))return U;if(H.sourceHandle===null)delete H.sourceHandle;if(H.targetHandle===null)delete H.targetHandle;return U.concat(H)};function sq({sourceX:Q,sourceY:U,targetX:Z,targetY:K}){let[H,Y,W,B]=gK({sourceX:Q,sourceY:U,targetX:Z,targetY:K});return[`M ${Q},${U}L ${Z},${K}`,H,Y,W,B]}var uM={[b1.Left]:{x:-1,y:0},[b1.Right]:{x:1,y:0},[b1.Top]:{x:0,y:-1},[b1.Bottom]:{x:0,y:1}},rf=({source:Q,sourcePosition:U=b1.Bottom,target:Z})=>{if(U===b1.Left||U===b1.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}},bM=(Q,U)=>Math.sqrt(Math.pow(U.x-Q.x,2)+Math.pow(U.y-Q.y,2));function af({source:Q,sourcePosition:U=b1.Bottom,target:Z,targetPosition:K=b1.Top,center:H,offset:Y,stepPosition:W}){let B=uM[U],T=uM[K],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=rf({source:R,sourcePosition:U,target:M}),O=A.x!==0?"x":"y",P=A[O],N=[],V,j,f={x:0,y:0},u={x:0,y:0},[,,C,v]=gK({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,j=H.y??(R.y+M.y)/2;else V=H.x??(R.x+M.x)/2,j=H.y??R.y+(M.y-R.y)*W;let b=[{x:V,y:R.y},{x:V,y:M.y}],k=[{x:R.x,y:j},{x:M.x,y:j}];if(B[O]===P)N=O==="x"?b:k;else N=O==="x"?k:b}else{let b=[{x:R.x,y:M.y}],k=[{x:M.x,y:R.y}];if(O==="x")N=B.x===P?k:b;else N=B.y===P?b:k;if(U===K){let m=Math.abs(Q[O]-Z[O]);if(m<=Y){let p=Math.min(Y-1,Y-m);if(B[O]===P)f[O]=(R[O]>Q[O]?-1:1)*p;else u[O]=(M[O]>Z[O]?-1:1)*p}}if(U!==K){let m=O==="x"?"y":"x",p=B[O]===T[m],c=R[m]>M[m],a=R[m]<M[m];if(B[O]===1&&(!p&&c||p&&a)||B[O]!==1&&(!p&&a||p&&c))N=O==="x"?b:k}let x={x:R.x+f.x,y:R.y+f.y},$1={x:M.x+u.x,y:M.y+u.y},Q1=Math.max(Math.abs(x.x-N[0].x),Math.abs($1.x-N[0].x)),J1=Math.max(Math.abs(x.y-N[0].y),Math.abs($1.y-N[0].y));if(Q1>=J1)V=(x.x+$1.x)/2,j=N[0].y;else V=N[0].x,j=(x.y+$1.y)/2}let D={x:R.x+f.x,y:R.y+f.y},h={x:M.x+u.x,y:M.y+u.y};return[[Q,...D.x!==N[0].x||D.y!==N[0].y?[D]:[],...N,...h.x!==N[N.length-1].x||h.y!==N[N.length-1].y?[h]:[],Z],V,j,C,v]}function sf(Q,U,Z,K){let H=Math.min(bM(Q,U)/2,bM(U,Z)/2,K),{x:Y,y:W}=U;if(Q.x===Y&&Y===Z.x||Q.y===W&&W===Z.y)return`L${Y} ${W}`;if(Q.y===W){let 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 xJ({sourceX:Q,sourceY:U,sourcePosition:Z=b1.Bottom,targetX:K,targetY:H,targetPosition:Y=b1.Top,borderRadius:W=5,centerX:B,centerY:T,offset:R=20,stepPosition:M=0.5}){let[A,O,P,N,V]=af({source:{x:Q,y:U},sourcePosition:Z,target:{x:K,y:H},targetPosition:Y,center:{x:B,y:T},offset:R,stepPosition:M}),j=`M${A[0].x} ${A[0].y}`;for(let f=1;f<A.length-1;f++)j+=sf(A[f-1],A[f],A[f+1],W);return j+=`L${A[A.length-1].x} ${A[A.length-1].y}`,[j,O,P,N,V]}function EM(Q){return Q&&!!(Q.internals.handleBounds||Q.handles?.length)&&!!(Q.measured.width||Q.width||Q.initialWidth)}function $T(Q){let{sourceNode:U,targetNode:Z}=Q;if(!EM(U)||!EM(Z))return null;let K=U.internals.handleBounds||hM(U.handles),H=Z.internals.handleBounds||hM(Z.handles),Y=xM(K?.source??[],Q.sourceHandle),W=xM(Q.connectionMode===D6.Strict?H?.target??[]:(H?.target??[]).concat(H?.source??[]),Q.targetHandle);if(!Y||!W)return Q.onError?.("008",n2.error008(!Y?"source":"target",{id:Q.id,sourceHandle:Q.sourceHandle,targetHandle:Q.targetHandle})),null;let B=Y?.position||b1.Bottom,T=W?.position||b1.Top,R=u6(U,Y,B),M=u6(Z,W,T);return{sourceX:R.x,sourceY:R.y,targetX:M.x,targetY:M.y,sourcePosition:B,targetPosition:T}}function hM(Q){if(!Q)return null;let U=[],Z=[];for(let K of Q)if(K.width=K.width??1,K.height=K.height??1,K.type==="source")U.push(K);else if(K.type==="target")Z.push(K);return{source:U,target:Z}}function u6(Q,U,Z=b1.Left,K=!1){let H=(U?.x??0)+Q.internals.positionAbsolute.x,Y=(U?.y??0)+Q.internals.positionAbsolute.y,{width:W,height:B}=U??i5(Q);if(K)return{x:H+W/2,y:Y+B/2};switch(U?.position??Z){case b1.Top:return{x:H+W/2,y:Y};case b1.Right:return{x:H+W,y:Y+B/2};case b1.Bottom:return{x:H+W/2,y:Y+B};case b1.Left:return{x:H,y:Y+B/2}}}function xM(Q,U){if(!Q)return null;return(!U?Q[0]:Q.find((Z)=>Z.id===U))||null}function tq(Q,U){if(!Q)return"";if(typeof Q==="string")return Q;return`${U?`${U}__`:""}${Object.keys(Q).sort().map((K)=>`${K}=${Q[K]}`).join("&")}`}function QT(Q,{id:U,defaultColor:Z,defaultMarkerStart:K,defaultMarkerEnd:H}){let Y=new Set;return Q.reduce((W,B)=>{return[B.markerStart||K,B.markerEnd||H].forEach((T)=>{if(T&&typeof T==="object"){let R=tq(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,K,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-K],B=[-100*Y,-100];switch(Z){case b1.Right:W=[(Q.x+Q.width)*U.zoom+U.x+K,(Q.y+Q.height*Y)*U.zoom+U.y],B=[0,-100*Y];break;case b1.Bottom:W[1]=(Q.y+Q.height)*U.zoom+U.y+K,B[1]=0;break;case b1.Left:W=[Q.x*U.zoom+U.x-K,(Q.y+Q.height*Y)*U.zoom+U.y],B=[-100,-100*Y];break}return`translate(${W[0]}px, ${W[1]}px) translate(${B[0]}%, ${B[1]}%)`}var UT=1000,tf=10,pK={nodeOrigin:[0,0],nodeExtent:B9,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},of={...pK,checkEquality:!0};function cK(Q,U){let Z={...Q};for(let K in U)if(U[K]!==void 0)Z[K]=U[K];return Z}function GT(Q,U,Z){let K=cK(pK,Z);for(let H of Q.values())if(H.parentId)iK(H,Q,U,K);else{let Y=bJ(H,K.nodeOrigin),W=p8(H.extent)?H.extent:K.nodeExtent,B=m8(Y,W,i5(H));H.internals.positionAbsolute=B}}function nf(Q,U){if(!Q.handles)return!Q.measured?void 0:U?.internals.handleBounds;let Z=[],K=[];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")K.push(Y)}return{source:Z,target:K}}function lK(Q){return Q==="manual"}function oq(Q,U,Z,K={}){let H=cK(of,K),Y={i:0},W=new Map(U),B=H?.elevateNodesOnSelect&&!lK(H.zIndexMode)?UT: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=bJ(M,H.nodeOrigin),P=p8(M.extent)?M.extent:H.nodeExtent,N=m8(O,P,i5(M));A={...H.defaults,...M,measured:{width:M.measured?.width,height:M.measured?.height},internals:{positionAbsolute:N,handleBounds:nf(M,A),z:ZT(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)iK(A,U,Z,K,Y);R||=M.selected??!1}return{nodesInitialized:T,hasSelectedNodes:R}}function ef(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 iK(Q,U,Z,K,H){let{elevateNodesOnSelect:Y,nodeOrigin:W,nodeExtent:B,zIndexMode:T}=cK(pK,K),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(ef(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*tf;if(H&&M.internals.rootParentIndex!==void 0)H.i=M.internals.rootParentIndex;let A=Y&&!lK(T)?UT:0,{x:O,y:P,z:N}=_S(Q,M,W,B,A,T),{positionAbsolute:V}=Q.internals,j=O!==V.x||P!==V.y;if(j||N!==Q.internals.z)U.set(Q.id,{...Q,internals:{...Q.internals,positionAbsolute:j?{x:O,y:P}:V,z:N}})}function ZT(Q,U,Z){let K=c5(Q.zIndex)?Q.zIndex:0;if(lK(Z))return K;return K+(Q.selected?U:0)}function _S(Q,U,Z,K,H,Y){let{x:W,y:B}=U.internals.positionAbsolute,T=i5(Q),R=bJ(Q,Z),M=p8(Q.extent)?m8(R,Q.extent,T):R,A=m8({x:W+M.x,y:B+M.y},K,T);if(Q.extent==="parent")A=aM(A,T,U);let O=ZT(Q,H,Y),P=U.internals.z??0;return{x:A.x,y:A.y,z:P>=O?P+1:O}}function nq(Q,U,Z,K=[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??L9(B),R=VK(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=i5(B),A=B.origin??K,O=W.x<R.x?Math.round(Math.abs(R.x-W.x)):0,P=W.y<R.y?Math.round(Math.abs(R.y-W.y)):0,N=Math.max(M.width,Math.round(W.width)),V=Math.max(M.height,Math.round(W.height)),j=(N-M.width)*A[0],f=(V-M.height)*A[1];if(O>0||P>0||j||f)H.push({id:T,type:"position",position:{x:B.position.x-O+j,y:B.position.y-P+f}}),Z.get(T)?.forEach((u)=>{if(!Q.some((C)=>C.id===u.id))H.push({id:u.id,type:"position",position:{x:u.position.x+O,y:u.position.y+P}})});if(M.width<W.width||M.height<W.height||O||P)H.push({id:T,type:"dimensions",setAttributes:!0,dimensions:{width:N+(O?A[0]*O-j:0),height:V+(P?A[1]*P-f:0)}})});return H}function FT(Q,U,Z,K,H,Y,W){let B=K?.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 P of Q.values()){let N=U.get(P.id);if(!N)continue;if(N.hidden){U.set(N.id,{...N,internals:{...N.internals,handleBounds:void 0}}),T=!0;continue}let V=dq(P.nodeElement),j=N.measured.width!==V.width||N.measured.height!==V.height;if(!!(V.width&&V.height&&(j||!N.internals.handleBounds||P.force))){let u=P.nodeElement.getBoundingClientRect(),C=p8(N.extent)?N.extent:Y,{positionAbsolute:v}=N.internals;if(N.parentId&&N.extent==="parent"){let h=U.get(N.parentId);if(h)v=aM(v,V,h)}else if(C)v=m8(v,C,V);let D={...N,measured:V,internals:{...N.internals,positionAbsolute:v,handleBounds:{source:kM("source",P.nodeElement,u,A,N.id),target:kM("target",P.nodeElement,u,A,N.id)}}};if(U.set(N.id,D),N.parentId)iK(D,U,Z,{nodeOrigin:H,zIndexMode:W});if(T=!0,j){if(R.push({id:N.id,type:"dimensions",dimensions:V}),N.expandParent&&N.parentId)O.push({id:N.id,parentId:N.parentId,rect:L9(D,H)})}}}if(O.length>0){let P=nq(O,U,Z,H);R.push(...P)}return{changes:R,updatedInternals:T}}async function XT({delta:Q,panZoom:U,transform:Z,translateExtent:K,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]],K);return!!W&&(W.x!==Z[0]||W.y!==Z[1]||W.k!==Z[2])}function mM(Q,U,Z,K,H,Y){let W=H,B=K.get(W)||new Map;K.set(W,B.set(Z,U)),W=`${H}-${Q}`;let T=K.get(W)||new Map;if(K.set(W,T.set(Z,U)),Y){W=`${H}-${Q}-${Y}`;let R=K.get(W)||new Map;K.set(W,R.set(Z,U))}}function dK(Q,U,Z){Q.clear(),U.clear();for(let K of Z){let{source:H,target:Y,sourceHandle:W=null,targetHandle:B=null}=K,T={edgeId:K.id,source:H,target:Y,sourceHandle:W,targetHandle:B},R=`${H}-${W}--${Y}-${B}`,M=`${Y}-${B}--${H}-${W}`;mM("source",T,M,Q,H,W),mM("target",T,R,Q,Y,B),U.set(K.id,K)}}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 gM(Q,U,Z){let K=Q;do{if(K?.matches?.(U))return!0;if(K===Z)return!1;K=K?.parentElement}while(K);return!1}function JS(Q,U,Z,K){let H=new Map;for(let[Y,W]of Q)if((W.selected||W.id===K)&&(!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 RK({nodeId:Q,dragItems:U,nodeLookup:Z,dragging:K=!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:K})}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:K},H]}function $S({dragItems:Q,snapGrid:U,x:Z,y:K}){let H=Q.values().next().value;if(!H)return null;let Y={x:Z-H.distance.x,y:K-H.distance.y},W=A9(Y,U);return{x:W.x-Y.x,y:W.y-Y.y}}function HT({onNodeMouseDown:Q,getStoreItems:U,onDragStart:Z,onDrag:K,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,P=!1,N=!1,V=null;function j({noDragClassName:u,handleSelector:C,domNode:v,isSelectable:D,nodeId:h,nodeClickDistance:E=0}){O=B2(v);function b({x:Q1,y:J1}){let{nodeLookup:m,nodeExtent:p,snapGrid:c,snapToGrid:a,nodeOrigin:i,onNodeDrag:o,onSelectionDrag:y,onError:g,updateNodePositions:q1}=U();Y={x:Q1,y:J1};let t=!1,W1=B.size>1,T1=W1&&p?wK(c8(B)):null,O1=W1&&a?$S({dragItems:B,snapGrid:c,x:Q1,y:J1}):null;for(let[B1,U1]of B){if(!m.has(B1))continue;let P1={x:Q1-U1.distance.x,y:J1-U1.distance.y};if(a)P1=O1?{x:Math.round(P1.x+O1.x),y:Math.round(P1.y+O1.y)}:A9(P1,c);let j1=null;if(W1&&p&&!U1.extent&&T1){let{positionAbsolute:D1}=U1.internals,g1=D1.x-T1.x+p[0][0],h1=D1.x+U1.measured.width-T1.x2+p[1][0],M1=D1.y-T1.y+p[0][1],r1=D1.y+U1.measured.height-T1.y2+p[1][1];j1=[[g1,M1],[h1,r1]]}let{position:A1,positionAbsolute:k1}=vK({nodeId:B1,nextPosition:P1,nodeLookup:m,nodeExtent:j1?j1:p,nodeOrigin:i,onError:g});t=t||U1.position.x!==A1.x||U1.position.y!==A1.y,U1.position=A1,U1.internals.positionAbsolute=k1}if(N=N||t,!t)return;if(q1(B,!0),V&&(K||o||!h&&y)){let[B1,U1]=RK({nodeId:h,dragItems:B,nodeLookup:m});if(K?.(V,B,B1,U1),o?.(V,B1,U1),!h)y?.(V,U1)}}async function k(){if(!M)return;let{transform:Q1,panBy:J1,autoPanSpeed:m,autoPanOnNodeDrag:p}=U();if(!p){T=!1,cancelAnimationFrame(W);return}let[c,a]=cq(R,M,m);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(k)}function x(Q1){let{nodeLookup:J1,multiSelectionActive:m,nodesDraggable:p,transform:c,snapGrid:a,snapToGrid:i,selectNodesOnDrag:o,onNodeDragStart:y,onSelectionDragStart:g,unselectNodesAndEdges:q1}=U();if(A=!0,(!o||!D)&&!m&&h){if(!J1.get(h)?.selected)q1()}if(D&&o&&h)Q?.(h);let t=uJ(Q1.sourceEvent,{transform:c,snapGrid:a,snapToGrid:i,containerBounds:M});if(Y=t,B=JS(J1,p,t,h),B.size>0&&(Z||y||!h&&g)){let[W1,T1]=RK({nodeId:h,dragItems:B,nodeLookup:J1});if(Z?.(Q1.sourceEvent,B,W1,T1),y?.(Q1.sourceEvent,W1,T1),!h)g?.(Q1.sourceEvent,T1)}}let $1=LJ().clickDistance(E).on("start",(Q1)=>{let{domNode:J1,nodeDragThreshold:m,transform:p,snapGrid:c,snapToGrid:a}=U();if(M=J1?.getBoundingClientRect()||null,P=!1,N=!1,V=Q1.sourceEvent,m===0)x(Q1);Y=uJ(Q1.sourceEvent,{transform:p,snapGrid:c,snapToGrid:a,containerBounds:M}),R=l5(Q1.sourceEvent,M)}).on("drag",(Q1)=>{let{autoPanOnNodeDrag:J1,transform:m,snapGrid:p,snapToGrid:c,nodeDragThreshold:a,nodeLookup:i}=U(),o=uJ(Q1.sourceEvent,{transform:m,snapGrid:p,snapToGrid:c,containerBounds:M});if(V=Q1.sourceEvent,Q1.sourceEvent.type==="touchmove"&&Q1.sourceEvent.touches.length>1||h&&!i.has(h))P=!0;if(P)return;if(!T&&J1&&A)T=!0,k();if(!A){let y=l5(Q1.sourceEvent,M),g=y.x-R.x,q1=y.y-R.y;if(Math.sqrt(g*g+q1*q1)>a)x(Q1)}if((Y.x!==o.xSnapped||Y.y!==o.ySnapped)&&B&&A)R=l5(Q1.sourceEvent,M),b(o)}).on("end",(Q1)=>{if(!A||P){if(P&&B.size>0)U().updateNodePositions(B,!1);return}if(T=!1,A=!1,cancelAnimationFrame(W),B.size>0){let{nodeLookup:J1,updateNodePositions:m,onNodeDragStop:p,onSelectionDragStop:c}=U();if(N)m(B,!1),N=!1;if(H||p||!h&&c){let[a,i]=RK({nodeId:h,dragItems:B,nodeLookup:J1,dragging:!1});if(H?.(Q1.sourceEvent,B,a,i),p?.(Q1.sourceEvent,a,i),!h)c?.(Q1.sourceEvent,i)}}}).filter((Q1)=>{let J1=Q1.target;return!Q1.button&&(!u||!gM(J1,`.${u}`,v))&&(!C||gM(J1,C,v))});O.call($1)}function f(){O?.on(".drag",null)}return{update:j,destroy:f}}function QS(Q,U,Z){let K=[],H={x:Q.x-Z,y:Q.y-Z,width:Z*2,height:Z*2};for(let Y of U.values())if(EJ(H,L9(Y))>0)K.push(Y);return K}var qS=250;function US(Q,U,Z,K){let H=[],Y=1/0,W=QS(Q,Z,U+qS);for(let B of W){let T=[...B.internals.handleBounds?.source??[],...B.internals.handleBounds?.target??[]];for(let R of T){if(K.nodeId===R.nodeId&&K.type===R.type&&K.id===R.id)continue;let{x:M,y:A}=u6(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=K.type==="source"?"target":"source";return H.find((T)=>T.type===B)??H[0]}return H[0]}function YT(Q,U,Z,K,H,Y=!1){let W=K.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,...u6(W,T,T.position,!0)}:T}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 GS(Q,U){let Z=null;if(U)Z=!0;else if(Q&&!U)Z=!1;return Z}var WT=()=>!0;function ZS(Q,{connectionMode:U,connectionRadius:Z,handleId:K,nodeId:H,edgeUpdaterType:Y,isTarget:W,domNode:B,nodeLookup:T,lib:R,autoPanOnConnect:M,flowId:A,panBy:O,cancelConnection:P,onConnectStart:N,onConnect:V,onConnectEnd:j,isValidConnection:f=WT,onReconnectEnd:u,updateConnection:C,getTransform:v,getFromHandle:D,autoPanSpeed:h,dragThreshold:E=1,handleDomNode:b}){let k=hK(Q.target),x=0,$1,{x:Q1,y:J1}=l5(Q),m=zT(Y,b),p=B?.getBoundingClientRect(),c=!1;if(!p||!m)return;let a=YT(H,m,K,T,U);if(!a)return;let i=l5(Q,p),o=!1,y=null,g=!1,q1=null;function t(){if(!M||!p)return;let[A1,k1]=cq(i,p,h);O({x:A1,y:k1}),x=requestAnimationFrame(t)}let W1={...a,nodeId:H,type:m,position:a.position},T1=T.get(H),B1={inProgress:!0,isValid:null,from:u6(T1,W1,b1.Left,!0),fromHandle:W1,fromPosition:W1.position,fromNode:T1,to:i,toHandle:null,toPosition:vM[W1.position],toNode:null,pointer:i};function U1(){c=!0,C(B1),N?.(Q,{nodeId:H,handleId:K,handleType:m})}if(E===0)U1();function P1(A1){if(!c){let{x:r1,y:u1}=l5(A1),D0=r1-Q1,o1=u1-J1;if(!(D0*D0+o1*o1>E*E))return;U1()}if(!D()||!W1){j1(A1);return}let k1=v();if(i=l5(A1,p),$1=US(M9(i,k1,!1,[1,1]),Z,T,W1),!o)t(),o=!0;let D1=BT(A1,{handle:$1,connectionMode:U,fromNodeId:H,fromHandleId:K,fromType:W?"target":"source",isValidConnection:f,doc:k,lib:R,flowId:A,nodeLookup:T});q1=D1.handleDomNode,y=D1.connection,g=GS(!!$1,D1.isValid);let g1=T.get(H),h1=g1?u6(g1,W1,b1.Left,!0):B1.from,M1={...B1,from:h1,isValid:g,to:D1.toHandle&&g?g8({x:D1.toHandle.x,y:D1.toHandle.y},k1):i,toHandle:D1.toHandle,toPosition:g&&D1.toHandle?D1.toHandle.position:vM[W1.position],toNode:D1.toHandle?T.get(D1.toHandle.nodeId):null,pointer:i};C(M1),B1=M1}function j1(A1){if("touches"in A1&&A1.touches.length>0)return;if(c){if(($1||q1)&&y&&g)V?.(y);let{inProgress:k1,...D1}=B1,g1={...D1,toPosition:B1.toHandle?B1.toPosition:null};if(j?.(A1,g1),Y)u?.(A1,g1)}P(),cancelAnimationFrame(x),o=!1,g=!1,y=null,q1=null,k.removeEventListener("mousemove",P1),k.removeEventListener("mouseup",j1),k.removeEventListener("touchmove",P1),k.removeEventListener("touchend",j1)}k.addEventListener("mousemove",P1),k.addEventListener("mouseup",j1),k.addEventListener("touchmove",P1),k.addEventListener("touchend",j1)}function BT(Q,{handle:U,connectionMode:Z,fromNodeId:K,fromHandleId:H,fromType:Y,doc:W,lib:B,flowId:T,isValidConnection:R=WT,nodeLookup:M}){let A=Y==="target",O=U?W.querySelector(`.${B}-flow__handle[data-id="${T}-${U?.nodeId}-${U?.id}-${U?.type}"]`):null,{x:P,y:N}=l5(Q),V=W.elementFromPoint(P,N),j=V?.classList.contains(`${B}-flow__handle`)?V:O,f={handleDomNode:j,isValid:!1,connection:null,toHandle:null};if(j){let u=zT(void 0,j),C=j.getAttribute("data-nodeid"),v=j.getAttribute("data-handleid"),D=j.classList.contains("connectable"),h=j.classList.contains("connectableend");if(!C||!u)return f;let E={source:A?C:K,sourceHandle:A?v:H,target:A?K:C,targetHandle:A?H:v};f.connection=E;let k=D&&h&&(Z===D6.Strict?A&&u==="source"||!A&&u==="target":C!==K||v!==H);f.isValid=k&&R(E),f.toHandle=YT(C,u,v,M,Z,!0)}return f}var eq={onPointerDown:ZS,isValid:BT};function LT({domNode:Q,panZoom:U,getTransform:Z,getViewScale:K}){let H=B2(Q);function Y({translateExtent:B,width:T,height:R,zoomStep:M=1,pannable:A=!0,zoomable:O=!0,inversePan:P=!1}){let N=(C)=>{if(C.sourceEvent.type!=="wheel"||!U)return;let v=Z(),D=C.sourceEvent.ctrlKey&&T9()?10:1,h=-C.sourceEvent.deltaY*(C.sourceEvent.deltaMode===1?0.05:C.sourceEvent.deltaMode?1:0.002)*M,E=v[2]*Math.pow(2,h*D);U.scaleTo(E)},V=[0,0],j=(C)=>{if(C.sourceEvent.type==="mousedown"||C.sourceEvent.type==="touchstart")V=[C.sourceEvent.clientX??C.sourceEvent.touches[0].clientX,C.sourceEvent.clientY??C.sourceEvent.touches[0].clientY]},f=(C)=>{let v=Z();if(C.sourceEvent.type!=="mousemove"&&C.sourceEvent.type!=="touchmove"||!U)return;let D=[C.sourceEvent.clientX??C.sourceEvent.touches[0].clientX,C.sourceEvent.clientY??C.sourceEvent.touches[0].clientY],h=[D[0]-V[0],D[1]-V[1]];V=D;let E=K()*Math.max(v[2],Math.log(v[2]))*(P?-1:1),b={x:v[0]-h[0]*E,y:v[1]-h[1]*E},k=[[0,0],[T,R]];U.setViewportConstrained({x:b.x,y:b.y,zoom:v[2]},k,B)},u=DJ().on("start",j).on("zoom",A?f:null).on("zoom.wheel",O?N:null);H.call(u,{})}function W(){H.on("zoom",null)}return{update:Y,destroy:W,pointer:E2}}var _U=(Q)=>({x:Q.x,y:Q.y,zoom:Q.k}),OK=({x:Q,y:U,zoom:Z})=>E8.translate(Q,U).scale(Z),k6=(Q,U)=>Q.target.closest(`.${U}`),AT=(Q,U)=>U===2&&Array.isArray(Q)&&Q.includes(2),FS=(Q)=>((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2,IK=(Q,U=0,Z=FS,K=()=>{})=>{let H=typeof U==="number"&&U>0;if(!H)K();return H?Q.transition().duration(U).ease(Z).on("end",K):Q},MT=(Q)=>{let U=Q.ctrlKey&&T9()?10:1;return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*U};function XS({zoomPanValues:Q,noWheelClassName:U,d3Selection:Z,d3Zoom:K,panOnScrollMode:H,panOnScrollSpeed:Y,zoomOnPinch:W,onPanZoomStart:B,onPanZoom:T,onPanZoomEnd:R}){return(M)=>{if(k6(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 j=E2(M),f=MT(M),u=A*Math.pow(2,f);K.scaleTo(Z,u,j,M);return}let O=M.deltaMode===1?20:1,P=H===v3.Vertical?0:M.deltaX*O,N=H===v3.Horizontal?0:M.deltaY*O;if(!T9()&&M.shiftKey&&H!==v3.Vertical)P=M.deltaY*O,N=0;K.translateBy(Z,-(P/A)*Y,-(N/A)*Y,{internal:!0});let V=_U(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 KS({noWheelClassName:Q,preventScrolling:U,d3ZoomHandler:Z}){return function(K,H){let Y=K.type==="wheel",W=!U&&Y&&!K.ctrlKey,B=k6(K,Q);if(K.ctrlKey&&Y&&B)K.preventDefault();if(W||B)return null;K.preventDefault(),Z.call(this,K,H)}}function HS({zoomPanValues:Q,onDraggingChange:U,onPanZoomStart:Z}){return(K)=>{if(K.sourceEvent?.internal)return;let H=_U(K.transform);if(Q.mouseButton=K.sourceEvent?.button||0,Q.isZoomingOrPanning=!0,Q.prevViewport=H,K.sourceEvent?.type==="mousedown")U(!0);if(Z)Z?.(K.sourceEvent,H)}}function YS({zoomPanValues:Q,panOnDrag:U,onPaneContextMenu:Z,onTransformChange:K,onPanZoom:H}){return(Y)=>{if(Q.usedRightMouseButton=!!(Z&&AT(U,Q.mouseButton??0)),!Y.sourceEvent?.sync)K([Y.transform.x,Y.transform.y,Y.transform.k]);if(H&&!Y.sourceEvent?.internal)H?.(Y.sourceEvent,_U(Y.transform))}}function zS({zoomPanValues:Q,panOnDrag:U,panOnScroll:Z,onDraggingChange:K,onPanZoomEnd:H,onPaneContextMenu:Y}){return(W)=>{if(W.sourceEvent?.internal)return;if(Q.isZoomingOrPanning=!1,Y&&AT(U,Q.mouseButton??0)&&!Q.usedRightMouseButton&&W.sourceEvent)Y(W.sourceEvent);if(Q.usedRightMouseButton=!1,K(!1),H){let B=_U(W.transform);Q.prevViewport=B,clearTimeout(Q.timerId),Q.timerId=setTimeout(()=>{H?.(W.sourceEvent,B)},Z?150:0)}}}function WS({panActivationKeyPressed:Q,zoomActivationKeyPressed:U,zoomOnScroll:Z,zoomOnPinch:K,panOnDrag:H,panOnScroll:Y,zoomOnDoubleClick:W,userSelectionActive:B,noWheelClassName:T,noPanClassName:R,lib:M,connectionInProgress:A}){return(O)=>{let P=U||Z,N=K&&O.ctrlKey,V=O.type==="wheel";if(O.button===1&&O.type==="mousedown"&&(k6(O,`${M}-flow__node`)||k6(O,`${M}-flow__edge`)||k6(O,`${M}-flow__selection`)||k6(O,`${M}-flow__nodesselection`)))return!0;if(!H&&!P&&!Y&&!W&&!K)return!1;if(B)return!1;if(A&&!V)return!1;if(k6(O,T)&&V)return!1;if(k6(O,R)&&(!V||Y&&V&&!U))return!1;if(!K&&O.ctrlKey&&V)return!1;if(!K&&O.type==="touchstart"&&O.touches?.length>1)return O.preventDefault(),!1;if(!P&&!Y&&!N&&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 j=Array.isArray(H)&&H.includes(O.button)||!O.button||O.button<=1;return(!O.ctrlKey||V||Q)&&j}}function TT({domNode:Q,minZoom:U,maxZoom:Z,translateExtent:K,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 m=J1[0];if(m)A=[[0,0],[m.contentRect.width,m.contentRect.height]]}):null)?.observe(Q);let P=DJ().extent(()=>A).scaleExtent([U,Z]).translateExtent(K),N=B2(Q).call(P);v({x:H.x,y:H.y,zoom:W9(H.zoom,U,Z)},[[0,0],[M.width,M.height]],K);let V=N.on("wheel.zoom"),j=N.on("dblclick.zoom");P.wheelDelta(MT);async function f(J1,m){if(N)return new Promise((p)=>{P?.interpolate(m?.interpolate==="linear"?d4:u8).transform(IK(N,m?.duration,m?.ease,()=>p(!0)),J1)});return!1}function u({noWheelClassName:J1,noPanClassName:m,onPaneContextMenu:p,userSelectionActive:c,panOnScroll:a,panOnDrag:i,panOnScrollMode:o,panOnScrollSpeed:y,preventScrolling:g,zoomOnPinch:q1,zoomOnScroll:t,zoomOnDoubleClick:W1,panActivationKeyPressed:T1=!1,zoomActivationKeyPressed:O1,lib:B1,onTransformChange:U1,connectionInProgress:P1,paneClickDistance:j1,selectionOnDrag:A1}){if(c&&!R.isZoomingOrPanning)C();let k1=a&&!O1&&!c;P.clickDistance(A1?1/0:!c5(j1)||j1<0?0:j1);let D1=k1?XS({zoomPanValues:R,noWheelClassName:J1,d3Selection:N,d3Zoom:P,panOnScrollMode:o,panOnScrollSpeed:y,zoomOnPinch:q1,onPanZoomStart:W,onPanZoom:Y,onPanZoomEnd:B}):KS({noWheelClassName:J1,preventScrolling:g,d3ZoomHandler:V});N.on("wheel.zoom",D1,{passive:!1});let g1=HS({zoomPanValues:R,onDraggingChange:T,onPanZoomStart:W});P.on("start",g1);let h1=YS({zoomPanValues:R,panOnDrag:i,onPaneContextMenu:!!p,onPanZoom:Y,onTransformChange:U1});P.on("zoom",h1);let M1=zS({zoomPanValues:R,panOnDrag:i,panOnScroll:a,onPaneContextMenu:p,onPanZoomEnd:B,onDraggingChange:T});P.on("end",M1);let r1=WS({panActivationKeyPressed:T1,zoomActivationKeyPressed:O1,panOnDrag:i,zoomOnScroll:t,panOnScroll:a,zoomOnDoubleClick:W1,zoomOnPinch:q1,userSelectionActive:c,noPanClassName:m,noWheelClassName:J1,lib:B1,connectionInProgress:P1});if(P.filter(r1),W1)N.on("dblclick.zoom",j);else N.on("dblclick.zoom",null)}function C(){P.on("zoom",null)}async function v(J1,m,p){let c=OK(J1),a=P?.constrain()(c,m,p);if(a)await f(a);return a}async function D(J1,m){let p=OK(J1);return await f(p,m),p}function h(J1){if(N){let m=OK(J1),p=N.property("__zoom");if(p.k!==J1.zoom||p.x!==J1.x||p.y!==J1.y)P?.transform(N,m,null,{sync:!0})}}function E(){let J1=N?kJ(N.node()):{x:0,y:0,k:1};return{x:J1.x,y:J1.y,zoom:J1.k}}async function b(J1,m){if(N)return new Promise((p)=>{P?.interpolate(m?.interpolate==="linear"?d4:u8).scaleTo(IK(N,m?.duration,m?.ease,()=>p(!0)),J1)});return!1}async function k(J1,m){if(N)return new Promise((p)=>{P?.interpolate(m?.interpolate==="linear"?d4:u8).scaleBy(IK(N,m?.duration,m?.ease,()=>p(!0)),J1)});return!1}function x(J1){P?.scaleExtent(J1)}function $1(J1){P?.translateExtent(J1)}function Q1(J1){let m=!c5(J1)||J1<0?0:J1;P?.clickDistance(m)}return{update:u,destroy:C,setViewport:D,setViewportConstrained:v,getViewport:E,scaleTo:b,scaleBy:k,setScaleExtent:x,setTranslateExtent:$1,syncViewport:h,setClickDistance:Q1}}var V3;(function(Q){Q.Line="line",Q.Handle="handle"})(V3||(V3={}));var RT=["top-left","top-right","bottom-left","bottom-right"],OT=["top","right","bottom","left"];function BS({width:Q,prevWidth:U,height:Z,prevHeight:K,affectsX:H,affectsY:Y}){let W=Q-U,B=Z-K,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 pM(Q){let U=Q.includes("right")||Q.includes("left"),Z=Q.includes("bottom")||Q.includes("top"),K=Q.includes("left"),H=Q.includes("top");return{isHorizontal:U,isVertical:Z,affectsX:K,affectsY:H}}function V6(Q,U){return Math.max(0,U-Q)}function y6(Q,U){return Math.max(0,Q-U)}function mq(Q,U,Z){return Math.max(0,U-Q,Q-Z)}function cM(Q,U){return Q?!U:U}function LS(Q,U,Z,K,H,Y,W,B){let{affectsX:T,affectsY:R}=U,{isHorizontal:M,isVertical:A}=U,O=M&&A,{xSnapped:P,ySnapped:N}=Z,{minWidth:V,maxWidth:j,minHeight:f,maxHeight:u}=K,{x:C,y:v,width:D,height:h,aspectRatio:E}=Q,b=Math.floor(M?P-Q.pointerX:0),k=Math.floor(A?N-Q.pointerY:0),x=D+(T?-b:b),$1=h+(R?-k:k),Q1=-Y[0]*D,J1=-Y[1]*h,m=mq(x,V,j),p=mq($1,f,u);if(W){let i=0,o=0;if(T&&b<0)i=V6(C+b+Q1,W[0][0]);else if(!T&&b>0)i=y6(C+x+Q1,W[1][0]);if(R&&k<0)o=V6(v+k+J1,W[0][1]);else if(!R&&k>0)o=y6(v+$1+J1,W[1][1]);m=Math.max(m,i),p=Math.max(p,o)}if(B){let i=0,o=0;if(T&&b>0)i=y6(C+b,B[0][0]);else if(!T&&b<0)i=V6(C+x,B[1][0]);if(R&&k>0)o=y6(v+k,B[0][1]);else if(!R&&k<0)o=V6(v+$1,B[1][1]);m=Math.max(m,i),p=Math.max(p,o)}if(H){if(M){let i=mq(x/E,f,u)*E;if(m=Math.max(m,i),W){let o=0;if(!T&&!R||T&&!R&&O)o=y6(v+J1+x/E,W[1][1])*E;else o=V6(v+J1+(T?b:-b)/E,W[0][1])*E;m=Math.max(m,o)}if(B){let o=0;if(!T&&!R||T&&!R&&O)o=V6(v+x/E,B[1][1])*E;else o=y6(v+(T?b:-b)/E,B[0][1])*E;m=Math.max(m,o)}}if(A){let i=mq($1*E,V,j)/E;if(p=Math.max(p,i),W){let o=0;if(!T&&!R||R&&!T&&O)o=y6(C+$1*E+Q1,W[1][0])/E;else o=V6(C+(R?k:-k)*E+Q1,W[0][0])/E;p=Math.max(p,o)}if(B){let o=0;if(!T&&!R||R&&!T&&O)o=V6(C+$1*E,B[1][0])/E;else o=y6(C+(R?k:-k)*E,B[0][0])/E;p=Math.max(p,o)}}}if(k=k+(k<0?p:-p),b=b+(b<0?m:-m),H)if(O)if(x>$1*E)k=(cM(T,R)?-b:b)/E;else b=(cM(T,R)?-k:k)*E;else if(M)k=b/E,R=T;else b=k*E,T=R;let c=T?C+b:C,a=R?v+k:v;return{width:D+(T?-b:b),height:h+(R?-k:k),x:Y[0]*b*(!T?1:-1)+c,y:Y[1]*k*(!R?1:-1)+a}}var IT={width:0,height:0,x:0,y:0},AS={...IT,pointerX:0,pointerY:0,aspectRatio:1};function MS(Q,U,Z){let K=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[[K-B,H-T],[K+Y-B,H+W-T]]}function wT({domNode:Q,nodeId:U,getStoreItems:Z,onChange:K,onEnd:H}){let Y=B2(Q),W={controlDirection:pM("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:P,onResize:N,onResizeEnd:V,shouldResize:j}){let f={...IT},u={...AS};W={boundaries:M,resizeDirection:O,keepAspectRatio:A,controlDirection:pM(R)};let C=void 0,v=null,D=[],h=void 0,E=void 0,b=void 0,k=LJ().on("start",(x)=>{let{nodeLookup:$1,transform:Q1,snapGrid:J1,snapToGrid:m,nodeOrigin:p,paneDomNode:c}=Z();if(C=$1.get(U),!C)return;v=c?.getBoundingClientRect()??null;let{xSnapped:a,ySnapped:i}=uJ(x.sourceEvent,{transform:Q1,snapGrid:J1,snapToGrid:m,containerBounds:v});if(f={width:C.measured.width??0,height:C.measured.height??0,x:C.position.x??0,y:C.position.y??0},u={...f,pointerX:a,pointerY:i,aspectRatio:f.width/f.height},h=void 0,E=p8(C.extent)?C.extent:void 0,C.parentId&&(C.extent==="parent"||C.expandParent))h=$1.get(C.parentId);if(h&&C.extent==="parent")E=[[0,0],[h.measured.width,h.measured.height]];D=[],b=void 0;for(let[o,y]of $1)if(y.parentId===U){if(D.push({id:o,position:{...y.position},extent:y.extent}),y.extent==="parent"||y.expandParent){let g=MS(y,C,y.origin??p);if(b)b=[[Math.min(g[0][0],b[0][0]),Math.min(g[0][1],b[0][1])],[Math.max(g[1][0],b[1][0]),Math.max(g[1][1],b[1][1])]];else b=g}}P?.(x,{...f})}).on("drag",(x)=>{let{transform:$1,snapGrid:Q1,snapToGrid:J1,nodeOrigin:m}=Z(),p=uJ(x.sourceEvent,{transform:$1,snapGrid:Q1,snapToGrid:J1,containerBounds:v}),c=[];if(!C)return;let{x:a,y:i,width:o,height:y}=f,g={},q1=C.origin??m,{width:t,height:W1,x:T1,y:O1}=LS(u,W.controlDirection,p,W.boundaries,W.keepAspectRatio,q1,E,b),B1=t!==o,U1=W1!==y,P1=T1!==a&&B1,j1=O1!==i&&U1;if(!P1&&!j1&&!B1&&!U1)return;let A1={prevValues:{...f},startX:u.x,startY:u.y,childNodes:D.map((h1)=>({...h1,position:{...h1.position}}))};if(P1||j1||q1[0]===1||q1[1]===1){if(g.x=P1?T1:f.x,g.y=j1?O1:f.y,f.x=g.x,f.y=g.y,D.length>0){let h1=T1-a,M1=O1-i;for(let r1 of D)r1.position={x:r1.position.x-h1+q1[0]*(t-o),y:r1.position.y-M1+q1[1]*(W1-y)},c.push(r1)}}if(B1||U1)g.width=B1&&(!W.resizeDirection||W.resizeDirection==="horizontal")?t:f.width,g.height=U1&&(!W.resizeDirection||W.resizeDirection==="vertical")?W1:f.height,f.width=g.width,f.height=g.height;if(h&&C.expandParent){let h1=q1[0]*(g.width??0);if(g.x&&g.x<h1)f.x=h1,u.x=u.x-(g.x-h1);let M1=q1[1]*(g.height??0);if(g.y&&g.y<M1)f.y=M1,u.y=u.y-(g.y-M1)}let k1=BS({width:f.width,prevWidth:o,height:f.height,prevHeight:y,affectsX:W.controlDirection.affectsX,affectsY:W.controlDirection.affectsY}),D1={...f,direction:k1};if(j?.(x,D1)===!1){f=A1.prevValues,u.x=A1.startX,u.y=A1.startY,D.forEach((h1,M1)=>{h1.position=A1.childNodes[M1].position});return}N?.(x,D1),K(g,c)}).on("end",(x)=>{V?.(x,{...f}),H?.({...f})});Y.call(k)}function T(){Y.on(".drag",null)}return{update:B,destroy:T}}var jT=p0(G4(),1),vT=p0(NT(),1);var CT=(Q)=>{let U,Z=new Set,K=(M,A)=>{let O=typeof M==="function"?M(U):M;if(!Object.is(O,U)){let P=U;U=(A!=null?A:typeof O!=="object"||O===null)?O:Object.assign({},U,O),Z.forEach((N)=>N(U,P))}},H=()=>U,T={setState:K,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(K,H,T);return T},fT=(Q)=>Q?CT(Q):CT;var{useDebugValue:OS}=jT.default,{useSyncExternalStoreWithSelector:IS}=vT.default,wS=(Q)=>Q;function rK(Q,U=wS,Z){let K=IS(Q.subscribe,Q.getState,Q.getServerState||Q.getInitialState,U,Z);return OS(K),K}var ST=(Q,U)=>{let Z=fT(Q),K=(H,Y=U)=>rK(Z,H,Y);return Object.assign(K,Z),K},VT=(Q,U)=>Q?ST(Q,U):ST;function h0(Q,U){if(Object.is(Q,U))return!0;if(typeof Q!=="object"||Q===null||typeof U!=="object"||U===null)return!1;if(Q instanceof Map&&U instanceof Map){if(Q.size!==U.size)return!1;for(let[K,H]of Q)if(!Object.is(H,U.get(K)))return!1;return!0}if(Q instanceof Set&&U instanceof Set){if(Q.size!==U.size)return!1;for(let K of Q)if(!U.has(K))return!1;return!0}let Z=Object.keys(Q);if(Z.length!==Object.keys(U).length)return!1;for(let K of Z)if(!Object.prototype.hasOwnProperty.call(U,K)||!Object.is(Q[K],U[K]))return!1;return!0}var UR=p0(iF(),1),UU=z1.createContext(null),PS=UU.Provider,GR=n2.error001("react");function H0(Q,U){let Z=z1.useContext(UU);if(Z===null)throw Error(GR);return rK(Z,Q,U)}function x0(){let Q=z1.useContext(UU);if(Q===null)throw Error(GR);return z1.useMemo(()=>({getState:Q.getState,setState:Q.setState,subscribe:Q.subscribe}),[Q])}var yT={display:"none"},NS={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},ZR="react-flow__node-desc",FR="react-flow__edge-desc",CS="react-flow__aria-live",fS=(Q)=>Q.ariaLiveMessage,SS=(Q)=>Q.ariaLabelConfig;function jS({rfId:Q}){let U=H0(fS);return H1.jsx("div",{id:`${CS}-${Q}`,"aria-live":"assertive","aria-atomic":"true",style:NS,children:U})}function vS({rfId:Q,disableKeyboardA11y:U}){let Z=H0(SS);return H1.jsxs(H1.Fragment,{children:[H1.jsx("div",{id:`${ZR}-${Q}`,style:yT,children:U?Z["node.a11yDescription.default"]:Z["node.a11yDescription.keyboardDisabled"]}),H1.jsx("div",{id:`${FR}-${Q}`,style:yT,children:Z["edge.a11yDescription.default"]}),!U&&H1.jsx(jS,{rfId:Q})]})}var s4=z1.forwardRef(({position:Q="top-left",children:U,className:Z,style:K,...H},Y)=>{let W=`${Q}`.split("-");return H1.jsx("div",{className:d0(["react-flow__panel",Z,...W]),style:K,ref:Y,...H,children:U})});s4.displayName="Panel";var kT="https://reactflow.dev/attribution";function VS({proOptions:Q,position:U="bottom-right"}){if(z1.useEffect(()=>{nM("react")},[]),Q?.hideAttribution)return null;return H1.jsx(s4,{position:U,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${kT}`,children:H1.jsx("a",{href:kT,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}var yS=(Q)=>{let U=[],Z=[];for(let[,K]of Q.nodeLookup)if(K.selected)U.push(K.internals.userNode);for(let[,K]of Q.edgeLookup)if(K.selected)Z.push(K);return{selectedNodes:U,selectedEdges:Z}},JU=(Q)=>Q.id;function kS(Q,U){return h0(Q.selectedNodes.map(JU),U.selectedNodes.map(JU))&&h0(Q.selectedEdges.map(JU),U.selectedEdges.map(JU))}function DS({onSelectionChange:Q}){let U=x0(),{selectedNodes:Z,selectedEdges:K}=H0(yS,kS);return z1.useEffect(()=>{let H={nodes:Z,edges:K};Q?.(H),U.getState().onSelectionChangeHandlers.forEach((Y)=>Y(H))},[Z,K,Q]),null}var uS=(Q)=>!!Q.onSelectionChangeHandlers;function bS({onSelectionChange:Q}){let U=H0(uS);if(Q||U)return H1.jsx(DS,{onSelectionChange:Q});return null}var XR=[0,0],ES={x:0,y:0,zoom:1},hS=["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"],DT=[...hS,"rfId"],xS=(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}),uT={translateExtent:B9,nodeOrigin:XR,minZoom:0.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function mS(Q){let{setNodes:U,setEdges:Z,setMinZoom:K,setMaxZoom:H,setTranslateExtent:Y,setNodeExtent:W,reset:B,setDefaultNodesAndEdges:T}=H0(xS,h0),R=x0();z1.useEffect(()=>{return T(Q.defaultNodes,Q.defaultEdges),()=>{M.current=uT,B()}},[]);let M=z1.useRef(uT);return z1.useEffect(()=>{for(let A of DT){let O=Q[A],P=M.current[A];if(O===P)continue;if(typeof Q[A]>"u")continue;if(A==="nodes")U(O);else if(A==="edges")Z(O);else if(A==="minZoom")K(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:oM(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},DT.map((A)=>Q[A])),null}function bT(){if(typeof window>"u"||!window.matchMedia)return null;return window.matchMedia("(prefers-color-scheme: dark)")}function gS(Q){let[U,Z]=z1.useState(Q==="system"?null:Q);return z1.useEffect(()=>{if(Q!=="system"){Z(Q);return}let K=bT(),H=()=>Z(K?.matches?"dark":"light");return H(),K?.addEventListener("change",H),()=>{K?.removeEventListener("change",H)}},[Q]),U!==null?U:bT()?.matches?"dark":"light"}var ET=typeof document<"u"?document:null;function mJ(Q=null,U={target:ET,actInsideInputWithModifier:!0}){let[Z,K]=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,`
|
|
240
|
+
<%s key={someKey} {...props} />`,t,O1,L1,O1),o[O1+t]=!0)}if(O1=null,q1!==void 0&&(Z(q1),O1=""+q1),W(g)&&(Z(g.key),O1=""+g.key),"key"in g){q1={};for(var U1 in g)U1!=="key"&&(q1[U1]=g[U1])}else q1=g;return O1&&L(q1,typeof y==="function"?y.displayName||y.name||"Unknown":y),R(y,O1,q1,H(),W1,T1)}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===P}var P=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),x=Symbol.for("react.client.reference"),$1=v8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q1=Object.prototype.hasOwnProperty,J1=Array.isArray,m=console.createTask?console.createTask:function(){return null};v8={react_stack_bottom_frame:function(y){return y()}};var p,c={},a=v8.react_stack_bottom_frame.bind(v8,Y)(),i=m(K(Y)),o={};wN.Fragment=V,wN.jsx=function(y,g,q1){var t=1e4>$1.recentlyCreatedOwnerStacks++;return M(y,g,q1,!1,t?Error("react-stack-top-frame"):a,t?m(K(y)):i)},wN.jsxs=function(y,g,q1){var t=1e4>$1.recentlyCreatedOwnerStacks++;return M(y,g,q1,!0,t?Error("react-stack-top-frame"):a,t?m(K(y)):i)}})()});var PT=p4((TS)=>{var N5=p0(G4());(function(){function Q(O,P){return O===P&&(O!==0||1/O===1/P)||O!==O&&P!==P}function U(O,P){R||N5.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 N=P();if(!M){var V=P();H(N,V)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),M=!0)}V=Y({inst:{value:N,getSnapshot:P}});var v=V[0].inst,C=V[1];return L(function(){v.value=N,v.getSnapshot=P,Z(v)&&C({inst:v})},[O,N,P]),W(function(){return Z(v)&&C({inst:v}),O(function(){Z(v)&&C({inst:v})})},[O]),T(N),N}function Z(O){var P=O.getSnapshot;O=O.value;try{var N=P();return!H(O,N)}catch(V){return!0}}function K(O,P){return P()}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=N5.useState,W=N5.useEffect,L=N5.useLayoutEffect,T=N5.useDebugValue,R=!1,M=!1,A=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?K:U;TS.useSyncExternalStore=N5.useSyncExternalStore!==void 0?N5.useSyncExternalStore:A,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var NT=p4((RS)=>{var y3=p0(G4());(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=PT(),Z=typeof Object.is==="function"?Object.is:Q,K=U.useSyncExternalStore,H=y3.useRef,Y=y3.useEffect,W=y3.useMemo,L=y3.useDebugValue;RS.useSyncExternalStoreWithSelector=function(T,R,M,A,O){var P=H(null);if(P.current===null){var N={hasValue:!1,value:null};P.current=N}else N=P.current;P=W(function(){function v(D){if(!C){if(C=!0,u=D,D=A(D),O!==void 0&&N.hasValue){var h=N.value;if(O(h,D))return f=h}return f=D}if(h=f,Z(u,D))return h;var E=A(D);if(O!==void 0&&O(h,E))return u=D,h;return u=D,f=E}var C=!1,u,f,j=M===void 0?null:M;return[function(){return v(R())},j===null?void 0:function(){return v(j())}]},[R,M,A,O]);var V=K(T,P[0],P[1]);return Y(function(){N.hasValue=!0,N.value=V},[V]),L(V),V},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var fO=p0(bA(),1);var P2=p0(G4(),1);var EA={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 c1=p0(f8(),1),MN="https://brand.volter.ai/logo/twin-world/svg?size=64&variant=mono";function FJ({href:Q,onClick:U}){return c1.jsxDEV("h1",{children:c1.jsxDEV("a",{href:Q,onClick:U,children:[c1.jsxDEV("img",{src:MN,alt:"",width:24,height:24,style:{verticalAlign:"middle"}},void 0,!1,void 0,this),c1.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 N3(Q){return(await Q.json().catch(()=>({}))).error??`answered ${Q.status}`}function xA(Q,U,Z=0,K=""){let[H,Y]=P2.useState({state:"loading"});return P2.useEffect(()=>{Y({state:"loading"})},[K,U]),P2.useEffect(()=>{if(!U)return;let W=!0;return(async()=>{try{let L=await Q(U),T=L.ok?{state:"ok",data:await L.json()}:{state:"error",status:L.status,error:await N3(L)};if(W)Y(T)}catch(L){if(W)Y({state:"error",status:0,error:String(L)})}})(),()=>{W=!1}},[K,U,Z]),H}function b2({load:Q,what:U,retry:Z,lines:K=3}){if(Q.state==="loading")return c1.jsxDEV(TN,{lines:K,label:`Loading ${U}…`},void 0,!1,void 0,this);if(Q.state==="error")return c1.jsxDEV("div",{role:"alert",className:"error-state",children:[c1.jsxDEV("span",{children:["Could not read ",U,": ",Q.error]},void 0,!0,void 0,this),Z?c1.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 TN({lines:Q=3,label:U="Loading…"}){return c1.jsxDEV("div",{className:"skeleton",role:"status","aria-label":U,children:Array.from({length:Q},(Z,K)=>c1.jsxDEV("span",{style:{width:`${[92,76,84,64,88][K%5]}%`}},K,!1,void 0,this))},void 0,!1,void 0,this)}function I0({iso:Q,time:U}){if(!Q)return c1.jsxDEV("span",{children:"—"},void 0,!1,void 0,this);let Z=new Date(Q);return c1.jsxDEV("time",{dateTime:Q,title:Q,children:Number.isNaN(Z.getTime())?Q:U?Z.toLocaleTimeString():Z.toLocaleString()},void 0,!1,void 0,this)}var $9=(Q)=>Q?new Date(Q).toLocaleString():"—";function sF(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 E0(Q,U){let Z=U.replace(/[_-]+/g," "),K=Z.endsWith("s")?Z:/[^aeiou]y$/.test(Z)?`${Z.slice(0,-1)}ies`:/(ch|sh|x)$/.test(Z)?`${Z}es`:`${Z}s`;return`${Q} ${Q===1?Z:K}`}var S8=(Q)=>Q.length<=1?Q.join(""):`${Q.slice(0,-1).join(", ")} and ${Q[Q.length-1]}`,RN={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"},d1=(Q)=>RN[Q]??Q.charAt(0).toUpperCase()+Q.slice(1);function s0({vendor:Q}){let U=EA[Q];return c1.jsxDEV("span",{className:U?"mark logo":"mark","aria-hidden":"true",children:U?c1.jsxDEV("svg",{viewBox:"0 0 24 24",children:c1.jsxDEV("path",{d:U.d,fill:U.fill},void 0,!1,void 0,this)},void 0,!1,void 0,this):d1(Q).charAt(0)},void 0,!1,void 0,this)}var hA=(Q)=>{Q.currentTarget.closest("details")?.removeAttribute("open")},ON="volter.theme",tF=()=>{try{let Q=localStorage.getItem(ON);return Q==="light"||Q==="dark"?Q:"system"}catch{return"system"}};function Bq(Q=tF()){let U=document.documentElement;if(Q==="system")U.removeAttribute("data-theme");else U.setAttribute("data-theme",Q)}function mA(){return P2.useEffect(()=>{let Q=()=>[...document.querySelectorAll("details.menu[open], details.clock-more[open]")],U=(K)=>{if(K.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=(K)=>{let H=K.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 P5({open:Q,onClose:U,title:Z,children:K,footer:H,wide:Y}){let W=P2.useRef(null),L=P2.useId();return P2.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]),c1.jsxDEV("dialog",{ref:W,className:Y==="window"?"dialog window":Y?"dialog wide":"dialog","aria-labelledby":L,onClose:U,onCancel:(T)=>{T.preventDefault(),U()},onMouseDown:(T)=>{if(T.target===W.current)U()},children:Q?c1.jsxDEV(c1.Fragment,{children:[c1.jsxDEV("div",{className:"dialog-head",children:[c1.jsxDEV("h2",{id:L,children:Z},void 0,!1,void 0,this),c1.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),c1.jsxDEV("div",{className:"dialog-body",children:K},void 0,!1,void 0,this),H?c1.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 rF="volter:confirm";function c4(Q){return new Promise((U)=>{window.dispatchEvent(new CustomEvent(rF,{detail:{ask:Q,resolve:U}}))})}function gA(){let[Q,U]=P2.useState(null),[Z,K]=P2.useState("");P2.useEffect(()=>{let L=(T)=>{K(""),U(T.detail)};return window.addEventListener(rF,L),()=>window.removeEventListener(rF,L)},[]);let H=(L)=>{Q?.resolve(L),U(null)},Y=Q?.ask,W=!Y?.typed||Z===Y.typed;return c1.jsxDEV(P5,{open:Boolean(Q),onClose:()=>H(!1),title:Y?.title??"",footer:c1.jsxDEV(c1.Fragment,{children:[c1.jsxDEV("button",{type:"button",onClick:()=>H(!1),children:"Cancel"},void 0,!1,void 0,this),c1.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?c1.jsxDEV("div",{className:"confirm-body",children:Y.body},void 0,!1,void 0,this):null,Y?.typed?c1.jsxDEV("div",{className:"typed-confirm",children:[c1.jsxDEV("p",{children:["Type ",c1.jsxDEV("code",{children:Y.typed},void 0,!1,void 0,this)," to confirm."]},void 0,!0,void 0,this),c1.jsxDEV("input",{autoFocus:!0,"aria-label":`Type ${Y.typed} to confirm`,value:Z,onChange:(L)=>K(L.target.value),onKeyDown:(L)=>{if(L.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 aF="volter:toast";function i0(Q,U="ok"){window.dispatchEvent(new CustomEvent(aF,{detail:{text:Q,kind:U}}))}function pA(){let[Q,U]=P2.useState([]);return P2.useEffect(()=>{let Z=0,K=(H)=>{let{text:Y,kind:W}=H.detail,L=++Z;if(U((T)=>[...T.slice(-3),{id:L,text:Y,kind:W}]),W!=="error")setTimeout(()=>U((T)=>T.filter((R)=>R.id!==L)),4500)};return window.addEventListener(aF,K),()=>window.removeEventListener(aF,K)},[]),c1.jsxDEV("div",{className:"toasts",role:"region","aria-label":"Notifications",children:Q.map((Z)=>c1.jsxDEV("div",{className:`toast ${Z.kind}`,role:Z.kind==="error"?"alert":"status",children:[c1.jsxDEV("span",{children:Z.text},void 0,!1,void 0,this),c1.jsxDEV("button",{type:"button",className:"icon-button","aria-label":"Dismiss",onClick:()=>U((K)=>K.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 oF({value:Q,label:U,secret:Z}){let[K,H]=P2.useState(!1);return c1.jsxDEV("div",{className:"copy-field",children:[U?c1.jsxDEV("span",{className:"copy-label",children:U},void 0,!1,void 0,this):null,c1.jsxDEV("div",{className:"copy-row",children:[c1.jsxDEV("input",{readOnly:!0,value:Q,"aria-label":U??"Value",onFocus:(W)=>W.currentTarget.select(),spellCheck:!1},void 0,!1,void 0,this),c1.jsxDEV("button",{type:"button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>{H(!0),setTimeout(()=>H(!1),1600),i0(Z?"Copied. Keep it somewhere safe":"Copied")}).catch(()=>i0("Your browser would not copy it: select it and copy","error"))},children:K?"Copied":"Copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function cA({label:Q,items:U}){return c1.jsxDEV("details",{className:"menu row-menu",children:[c1.jsxDEV("summary",{className:"icon-button",role:"button","aria-haspopup":"menu","aria-label":Q,title:Q,children:"⋯"},void 0,!1,void 0,this),c1.jsxDEV("div",{className:"popover menu-list",role:"menu",children:U.filter((Z)=>Boolean(Z)).map((Z)=>Z.href?c1.jsxDEV("a",{role:"menuitem",href:Z.href,className:Z.danger?"danger-item":void 0,onClick:hA,children:Z.label},Z.label,!1,void 0,this):c1.jsxDEV("button",{type:"button",role:"menuitem",disabled:Z.disabled,className:Z.danger?"danger-item":void 0,onClick:(K)=>{hA(K),Z.onSelect?.()},children:Z.label},Z.label,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Q9({title:Q,children:U,action:Z}){return c1.jsxDEV("div",{className:"empty-state",children:[c1.jsxDEV("p",{className:"empty-title",children:Q},void 0,!1,void 0,this),U?c1.jsxDEV("div",{className:"empty-body",children:U},void 0,!1,void 0,this):null,Z?c1.jsxDEV("div",{className:"empty-action",children:Z},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function lA(){return P2.useEffect(()=>{let Q=(Z)=>{let K=document.querySelector("main.app"),H=Z.target;if(K?.hasAttribute("data-drawer")&&H&&!H.closest(".side")&&!H.closest(".drawer-button"))K.removeAttribute("data-drawer")},U=(Z)=>{if(Z.key==="Escape")IN()};return document.addEventListener("click",Q),document.addEventListener("keydown",U),()=>{document.removeEventListener("click",Q),document.removeEventListener("keydown",U)}},[]),c1.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 IN=()=>{document.querySelector("main.app")?.removeAttribute("data-drawer")};var K1=p0(G4(),1);var H1=p0(iA(),1),z1=p0(G4(),1);function d0(Q){if(typeof Q==="string"||typeof Q==="number")return""+Q;let U="";if(Array.isArray(Q)){for(let Z=0,K;Z<Q.length;Z++)if((K=d0(Q[Z]))!=="")U+=(U&&" ")+K}else for(let Z in Q)if(Q[Z])U+=(U&&" ")+Z;return U}var PN={value:()=>{}};function rA(){for(var Q=0,U=arguments.length,Z={},K;Q<U;++Q){if(!(K=arguments[Q]+"")||K in Z||/[\s.]/.test(K))throw Error("illegal type: "+K);Z[K]=[]}return new Aq(Z)}function Aq(Q){this._=Q}function NN(Q,U){return Q.trim().split(/^|\s+/).map(function(Z){var K="",H=Z.indexOf(".");if(H>=0)K=Z.slice(H+1),Z=Z.slice(0,H);if(Z&&!U.hasOwnProperty(Z))throw Error("unknown type: "+Z);return{type:Z,name:K}})}Aq.prototype=rA.prototype={constructor:Aq,on:function(Q,U){var Z=this._,K=NN(Q+"",Z),H,Y=-1,W=K.length;if(arguments.length<2){while(++Y<W)if((H=(Q=K[Y]).type)&&(H=CN(Z[H],Q.name)))return H;return}if(U!=null&&typeof U!=="function")throw Error("invalid callback: "+U);while(++Y<W)if(H=(Q=K[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 Aq(Q)},call:function(Q,U){if((H=arguments.length-2)>0)for(var Z=Array(H),K=0,H,Y;K<H;++K)Z[K]=arguments[K+2];if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(Y=this._[Q],K=0,H=Y.length;K<H;++K)Y[K].value.apply(U,Z)},apply:function(Q,U,Z){if(!this._.hasOwnProperty(Q))throw Error("unknown type: "+Q);for(var K=this._[Q],H=0,Y=K.length;H<Y;++H)K[H].value.apply(U,Z)}};function CN(Q,U){for(var Z=0,K=Q.length,H;Z<K;++Z)if((H=Q[Z]).name===U)return H.value}function dA(Q,U,Z){for(var K=0,H=Q.length;K<H;++K)if(Q[K].name===U){Q[K]=PN,Q=Q.slice(0,K).concat(Q.slice(K+1));break}if(Z!=null)Q.push({name:U,value:Z});return Q}var j8=rA;function q9(Q){return function(){return this.matches(Q)}}function Mq(Q){return function(U){return U.matches(Q)}}var Tq="http://www.w3.org/1999/xhtml",nF={svg:"http://www.w3.org/2000/svg",xhtml:Tq,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function l4(Q){var U=Q+="",Z=U.indexOf(":");if(Z>=0&&(U=Q.slice(0,Z))!=="xmlns")Q=Q.slice(Z+1);return nF.hasOwnProperty(U)?{space:nF[U],local:Q}:Q}function eF(Q){let U;while(U=Q.sourceEvent)Q=U;return Q}function E2(Q,U){if(Q=eF(Q),U===void 0)U=Q.currentTarget;if(U){var Z=U.ownerSVGElement||U;if(Z.createSVGPoint){var K=Z.createSVGPoint();return K.x=Q.clientX,K.y=Q.clientY,K=K.matrixTransform(U.getScreenCTM().inverse()),[K.x,K.y]}if(U.getBoundingClientRect){var H=U.getBoundingClientRect();return[Q.clientX-H.left-U.clientLeft,Q.clientY-H.top-U.clientTop]}}return[Q.pageX,Q.pageY]}function fN(){}function v6(Q){return Q==null?fN:function(){return this.querySelector(Q)}}function _X(Q){if(typeof Q!=="function")Q=v6(Q);for(var U=this._groups,Z=U.length,K=Array(Z),H=0;H<Z;++H)for(var Y=U[H],W=Y.length,L=K[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__;L[M]=R}return new t0(K,this._parents)}function JX(Q){return Q==null?[]:Array.isArray(Q)?Q:Array.from(Q)}function SN(){return[]}function U9(Q){return Q==null?SN:function(){return this.querySelectorAll(Q)}}function vN(Q){return function(){return JX(Q.apply(this,arguments))}}function $X(Q){if(typeof Q==="function")Q=vN(Q);else Q=U9(Q);for(var U=this._groups,Z=U.length,K=[],H=[],Y=0;Y<Z;++Y)for(var W=U[Y],L=W.length,T,R=0;R<L;++R)if(T=W[R])K.push(Q.call(T,T.__data__,R,W)),H.push(T);return new t0(K,H)}var jN=Array.prototype.find;function VN(Q){return function(){return jN.call(this.children,Q)}}function yN(){return this.firstElementChild}function QX(Q){return this.select(Q==null?yN:VN(typeof Q==="function"?Q:Mq(Q)))}var kN=Array.prototype.filter;function DN(){return Array.from(this.children)}function uN(Q){return function(){return kN.call(this.children,Q)}}function qX(Q){return this.selectAll(Q==null?DN:uN(typeof Q==="function"?Q:Mq(Q)))}function UX(Q){if(typeof Q!=="function")Q=q9(Q);for(var U=this._groups,Z=U.length,K=Array(Z),H=0;H<Z;++H)for(var Y=U[H],W=Y.length,L=K[H]=[],T,R=0;R<W;++R)if((T=Y[R])&&Q.call(T,T.__data__,R,Y))L.push(T);return new t0(K,this._parents)}function XJ(Q){return Array(Q.length)}function GX(){return new t0(this._enter||this._groups.map(XJ),this._parents)}function KJ(Q,U){this.ownerDocument=Q.ownerDocument,this.namespaceURI=Q.namespaceURI,this._next=null,this._parent=Q,this.__data__=U}KJ.prototype={constructor:KJ,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 ZX(Q){return function(){return Q}}function bN(Q,U,Z,K,H,Y){var W=0,L,T=U.length,R=Y.length;for(;W<R;++W)if(L=U[W])L.__data__=Y[W],K[W]=L;else Z[W]=new KJ(Q,Y[W]);for(;W<T;++W)if(L=U[W])H[W]=L}function EN(Q,U,Z,K,H,Y,W){var L,T,R=new Map,M=U.length,A=Y.length,O=Array(M),P;for(L=0;L<M;++L)if(T=U[L])if(O[L]=P=W.call(T,T.__data__,L,U)+"",R.has(P))H[L]=T;else R.set(P,T);for(L=0;L<A;++L)if(P=W.call(Q,Y[L],L,Y)+"",T=R.get(P))K[L]=T,T.__data__=Y[L],R.delete(P);else Z[L]=new KJ(Q,Y[L]);for(L=0;L<M;++L)if((T=U[L])&&R.get(O[L])===T)H[L]=T}function hN(Q){return Q.__data__}function FX(Q,U){if(!arguments.length)return Array.from(this,hN);var Z=U?EN:bN,K=this._parents,H=this._groups;if(typeof Q!=="function")Q=ZX(Q);for(var Y=H.length,W=Array(Y),L=Array(Y),T=Array(Y),R=0;R<Y;++R){var M=K[R],A=H[R],O=A.length,P=xN(Q.call(M,M&&M.__data__,R,K)),N=P.length,V=L[R]=Array(N),v=W[R]=Array(N),C=T[R]=Array(O);Z(M,A,V,v,C,P,U);for(var u=0,f=0,j,D;u<N;++u)if(j=V[u]){if(u>=f)f=u+1;while(!(D=v[f])&&++f<N);j._next=D||null}}return W=new t0(W,K),W._enter=L,W._exit=T,W}function xN(Q){return typeof Q==="object"&&"length"in Q?Q:Array.from(Q)}function XX(){return new t0(this._exit||this._groups.map(XJ),this._parents)}function KX(Q,U,Z){var K=this.enter(),H=this,Y=this.exit();if(typeof Q==="function"){if(K=Q(K),K)K=K.selection()}else K=K.append(Q+"");if(U!=null){if(H=U(H),H)H=H.selection()}if(Z==null)Y.remove();else Z(Y);return K&&H?K.merge(H).order():H}function HX(Q){var U=Q.selection?Q.selection():Q;for(var Z=this._groups,K=U._groups,H=Z.length,Y=K.length,W=Math.min(H,Y),L=Array(H),T=0;T<W;++T)for(var R=Z[T],M=K[T],A=R.length,O=L[T]=Array(A),P,N=0;N<A;++N)if(P=R[N]||M[N])O[N]=P;for(;T<H;++T)L[T]=Z[T];return new t0(L,this._parents)}function YX(){for(var Q=this._groups,U=-1,Z=Q.length;++U<Z;)for(var K=Q[U],H=K.length-1,Y=K[H],W;--H>=0;)if(W=K[H]){if(Y&&W.compareDocumentPosition(Y)^4)Y.parentNode.insertBefore(W,Y);Y=W}return this}function zX(Q){if(!Q)Q=mN;function U(A,O){return A&&O?Q(A.__data__,O.__data__):!A-!O}for(var Z=this._groups,K=Z.length,H=Array(K),Y=0;Y<K;++Y){for(var W=Z[Y],L=W.length,T=H[Y]=Array(L),R,M=0;M<L;++M)if(R=W[M])T[M]=R;T.sort(U)}return new t0(H,this._parents).order()}function mN(Q,U){return Q<U?-1:Q>U?1:Q>=U?0:NaN}function WX(){var Q=arguments[0];return arguments[0]=this,Q.apply(null,arguments),this}function LX(){return Array.from(this)}function BX(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var K=Q[U],H=0,Y=K.length;H<Y;++H){var W=K[H];if(W)return W}return null}function AX(){let Q=0;for(let U of this)++Q;return Q}function MX(){return!this.node()}function TX(Q){for(var U=this._groups,Z=0,K=U.length;Z<K;++Z)for(var H=U[Z],Y=0,W=H.length,L;Y<W;++Y)if(L=H[Y])Q.call(L,L.__data__,Y,H);return this}function gN(Q){return function(){this.removeAttribute(Q)}}function pN(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function cN(Q,U){return function(){this.setAttribute(Q,U)}}function lN(Q,U){return function(){this.setAttributeNS(Q.space,Q.local,U)}}function iN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)this.removeAttribute(Q);else this.setAttribute(Q,Z)}}function dN(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 RX(Q,U){var Z=l4(Q);if(arguments.length<2){var K=this.node();return Z.local?K.getAttributeNS(Z.space,Z.local):K.getAttribute(Z)}return this.each((U==null?Z.local?pN:gN:typeof U==="function"?Z.local?dN:iN:Z.local?lN:cN)(Z,U))}function HJ(Q){return Q.ownerDocument&&Q.ownerDocument.defaultView||Q.document&&Q||Q.defaultView}function rN(Q){return function(){this.style.removeProperty(Q)}}function aN(Q,U,Z){return function(){this.style.setProperty(Q,U,Z)}}function sN(Q,U,Z){return function(){var K=U.apply(this,arguments);if(K==null)this.style.removeProperty(Q);else this.style.setProperty(Q,K,Z)}}function OX(Q,U,Z){return arguments.length>1?this.each((U==null?rN:typeof U==="function"?sN:aN)(Q,U,Z==null?"":Z)):j6(this.node(),Q)}function j6(Q,U){return Q.style.getPropertyValue(U)||HJ(Q).getComputedStyle(Q,null).getPropertyValue(U)}function tN(Q){return function(){delete this[Q]}}function oN(Q,U){return function(){this[Q]=U}}function nN(Q,U){return function(){var Z=U.apply(this,arguments);if(Z==null)delete this[Q];else this[Q]=Z}}function IX(Q,U){return arguments.length>1?this.each((U==null?tN:typeof U==="function"?nN:oN)(Q,U)):this.node()[Q]}function aA(Q){return Q.trim().split(/^|\s+/)}function wX(Q){return Q.classList||new sA(Q)}function sA(Q){this._node=Q,this._names=aA(Q.getAttribute("class")||"")}sA.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 tA(Q,U){var Z=wX(Q),K=-1,H=U.length;while(++K<H)Z.add(U[K])}function oA(Q,U){var Z=wX(Q),K=-1,H=U.length;while(++K<H)Z.remove(U[K])}function eN(Q){return function(){tA(this,Q)}}function _C(Q){return function(){oA(this,Q)}}function JC(Q,U){return function(){(U.apply(this,arguments)?tA:oA)(this,Q)}}function PX(Q,U){var Z=aA(Q+"");if(arguments.length<2){var K=wX(this.node()),H=-1,Y=Z.length;while(++H<Y)if(!K.contains(Z[H]))return!1;return!0}return this.each((typeof U==="function"?JC:U?eN:_C)(Z,U))}function $C(){this.textContent=""}function QC(Q){return function(){this.textContent=Q}}function qC(Q){return function(){var U=Q.apply(this,arguments);this.textContent=U==null?"":U}}function NX(Q){return arguments.length?this.each(Q==null?$C:(typeof Q==="function"?qC:QC)(Q)):this.node().textContent}function UC(){this.innerHTML=""}function GC(Q){return function(){this.innerHTML=Q}}function ZC(Q){return function(){var U=Q.apply(this,arguments);this.innerHTML=U==null?"":U}}function CX(Q){return arguments.length?this.each(Q==null?UC:(typeof Q==="function"?ZC:GC)(Q)):this.node().innerHTML}function FC(){if(this.nextSibling)this.parentNode.appendChild(this)}function fX(){return this.each(FC)}function XC(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function SX(){return this.each(XC)}function KC(Q){return function(){var U=this.ownerDocument,Z=this.namespaceURI;return Z===Tq&&U.documentElement.namespaceURI===Tq?U.createElement(Q):U.createElementNS(Z,Q)}}function HC(Q){return function(){return this.ownerDocument.createElementNS(Q.space,Q.local)}}function YJ(Q){var U=l4(Q);return(U.local?HC:KC)(U)}function vX(Q){var U=typeof Q==="function"?Q:YJ(Q);return this.select(function(){return this.appendChild(U.apply(this,arguments))})}function YC(){return null}function jX(Q,U){var Z=typeof Q==="function"?Q:YJ(Q),K=U==null?YC:typeof U==="function"?U:v6(U);return this.select(function(){return this.insertBefore(Z.apply(this,arguments),K.apply(this,arguments)||null)})}function zC(){var Q=this.parentNode;if(Q)Q.removeChild(this)}function VX(){return this.each(zC)}function WC(){var Q=this.cloneNode(!1),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function LC(){var Q=this.cloneNode(!0),U=this.parentNode;return U?U.insertBefore(Q,this.nextSibling):Q}function yX(Q){return this.select(Q?LC:WC)}function kX(Q){return arguments.length?this.property("__data__",Q):this.node().__data__}function BC(Q){return function(U){Q.call(this,U,this.__data__)}}function AC(Q){return Q.trim().split(/^|\s+/).map(function(U){var Z="",K=U.indexOf(".");if(K>=0)Z=U.slice(K+1),U=U.slice(0,K);return{type:U,name:Z}})}function MC(Q){return function(){var U=this.__on;if(!U)return;for(var Z=0,K=-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[++K]=Y;if(++K)U.length=K;else delete this.__on}}function TC(Q,U,Z){return function(){var K=this.__on,H,Y=BC(U);if(K){for(var W=0,L=K.length;W<L;++W)if((H=K[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},!K)this.__on=[H];else K.push(H)}}function DX(Q,U,Z){var K=AC(Q+""),H,Y=K.length,W;if(arguments.length<2){var L=this.node().__on;if(L){for(var T=0,R=L.length,M;T<R;++T)for(H=0,M=L[T];H<Y;++H)if((W=K[H]).type===M.type&&W.name===M.name)return M.value}return}L=U?TC:MC;for(H=0;H<Y;++H)this.each(L(K[H],U,Z));return this}function nA(Q,U,Z){var K=HJ(Q),H=K.CustomEvent;if(typeof H==="function")H=new H(U,Z);else if(H=K.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 RC(Q,U){return function(){return nA(this,Q,U)}}function OC(Q,U){return function(){return nA(this,Q,U.apply(this,arguments))}}function uX(Q,U){return this.each((typeof U==="function"?OC:RC)(Q,U))}function*bX(){for(var Q=this._groups,U=0,Z=Q.length;U<Z;++U)for(var K=Q[U],H=0,Y=K.length,W;H<Y;++H)if(W=K[H])yield W}var EX=[null];function t0(Q,U){this._groups=Q,this._parents=U}function eA(){return new t0([[document.documentElement]],EX)}function IC(){return this}t0.prototype=eA.prototype={constructor:t0,select:_X,selectAll:$X,selectChild:QX,selectChildren:qX,filter:UX,data:FX,enter:GX,exit:XX,join:KX,merge:HX,selection:IC,order:YX,sort:zX,call:WX,nodes:LX,node:BX,size:AX,empty:MX,each:TX,attr:RX,style:OX,property:IX,classed:PX,text:NX,html:CX,raise:fX,lower:SX,append:vX,insert:jX,remove:VX,clone:yX,datum:kX,on:DX,dispatch:uX,[Symbol.iterator]:bX};var C3=eA;function L2(Q){return typeof Q==="string"?new t0([[document.querySelector(Q)]],[document.documentElement]):new t0([[Q]],EX)}var _M={passive:!1},V8={capture:!0,passive:!1};function Rq(Q){Q.stopImmediatePropagation()}function f3(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function G9(Q){var U=Q.document.documentElement,Z=L2(Q).on("dragstart.drag",f3,V8);if("onselectstart"in U)Z.on("selectstart.drag",f3,V8);else U.__noselect=U.style.MozUserSelect,U.style.MozUserSelect="none"}function zJ(Q,U){var Z=Q.document.documentElement,K=L2(Q).on("dragstart.drag",null);if(U)K.on("click.drag",f3,V8),setTimeout(function(){K.on("click.drag",null)},0);if("onselectstart"in Z)K.on("selectstart.drag",null);else Z.style.MozUserSelect=Z.__noselect,delete Z.__noselect}var WJ=(Q)=>()=>Q;function LJ(Q,{sourceEvent:U,subject:Z,target:K,identifier:H,active:Y,x:W,y:L,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:K,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:L,enumerable:!0,configurable:!0},dx:{value:T,enumerable:!0,configurable:!0},dy:{value:R,enumerable:!0,configurable:!0},_:{value:M}})}LJ.prototype.on=function(){var Q=this._.on.apply(this._,arguments);return Q===this._?this:Q};function wC(Q){return!Q.ctrlKey&&!Q.button}function PC(){return this.parentNode}function NC(Q,U){return U==null?{x:Q.x,y:Q.y}:U}function CC(){return navigator.maxTouchPoints||"ontouchstart"in this}function BJ(){var Q=wC,U=PC,Z=NC,K=CC,H={},Y=j8("start","drag","end"),W=0,L,T,R,M,A=0;function O(j){j.on("mousedown.drag",P).filter(K).on("touchstart.drag",v).on("touchmove.drag",C,_M).on("touchend.drag touchcancel.drag",u).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function P(j,D){if(M||!Q.call(this,j,D))return;var h=f(this,U.call(this,j,D),j,D,"mouse");if(!h)return;L2(j.view).on("mousemove.drag",N,V8).on("mouseup.drag",V,V8),G9(j.view),Rq(j),R=!1,L=j.clientX,T=j.clientY,h("start",j)}function N(j){if(f3(j),!R){var D=j.clientX-L,h=j.clientY-T;R=D*D+h*h>A}H.mouse("drag",j)}function V(j){L2(j.view).on("mousemove.drag mouseup.drag",null),zJ(j.view,R),f3(j),H.mouse("end",j)}function v(j,D){if(!Q.call(this,j,D))return;var h=j.changedTouches,E=U.call(this,j,D),b=h.length,k,x;for(k=0;k<b;++k)if(x=f(this,E,j,D,h[k].identifier,h[k]))Rq(j),x("start",j,h[k])}function C(j){var D=j.changedTouches,h=D.length,E,b;for(E=0;E<h;++E)if(b=H[D[E].identifier])f3(j),b("drag",j,D[E])}function u(j){var D=j.changedTouches,h=D.length,E,b;if(M)clearTimeout(M);M=setTimeout(function(){M=null},500);for(E=0;E<h;++E)if(b=H[D[E].identifier])Rq(j),b("end",j,D[E])}function f(j,D,h,E,b,k){var x=Y.copy(),$1=E2(k||h,D),Q1,J1,m;if((m=Z.call(j,new LJ("beforestart",{sourceEvent:h,target:O,identifier:b,active:W,x:$1[0],y:$1[1],dx:0,dy:0,dispatch:x}),E))==null)return;return Q1=m.x-$1[0]||0,J1=m.y-$1[1]||0,function p(c,a,i){var o=$1,y;switch(c){case"start":H[b]=p,y=W++;break;case"end":delete H[b],--W;case"drag":$1=E2(i||a,D),y=W;break}x.call(c,j,new LJ(c,{sourceEvent:a,subject:m,target:O,identifier:b,active:y,x:$1[0]+Q1,y:$1[1]+J1,dx:$1[0]-o[0],dy:$1[1]-o[1],dispatch:x}),E)}}return O.filter=function(j){return arguments.length?(Q=typeof j==="function"?j:WJ(!!j),O):Q},O.container=function(j){return arguments.length?(U=typeof j==="function"?j:WJ(j),O):U},O.subject=function(j){return arguments.length?(Z=typeof j==="function"?j:WJ(j),O):Z},O.touchable=function(j){return arguments.length?(K=typeof j==="function"?j:WJ(!!j),O):K},O.on=function(){var j=Y.on.apply(Y,arguments);return j===Y?O:j},O.clickDistance=function(j){return arguments.length?(A=(j=+j)*j,O):Math.sqrt(A)},O}function AJ(Q,U,Z){Q.prototype=U.prototype=Z,Z.constructor=Q}function hX(Q,U){var Z=Object.create(Q.prototype);for(var K in U)Z[K]=U[K];return Z}function RJ(){}var MJ=0.7,wq=1/MJ,Z9="\\s*([+-]?\\d+)\\s*",TJ="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",i4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fC=/^#([0-9a-f]{3,8})$/,SC=new RegExp(`^rgb\\(${Z9},${Z9},${Z9}\\)$`),vC=new RegExp(`^rgb\\(${i4},${i4},${i4}\\)$`),jC=new RegExp(`^rgba\\(${Z9},${Z9},${Z9},${TJ}\\)$`),VC=new RegExp(`^rgba\\(${i4},${i4},${i4},${TJ}\\)$`),yC=new RegExp(`^hsl\\(${TJ},${i4},${i4}\\)$`),kC=new RegExp(`^hsla\\(${TJ},${i4},${i4},${TJ}\\)$`),JM={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};AJ(RJ,F4,{copy(Q){return Object.assign(new this.constructor,this,Q)},displayable(){return this.rgb().displayable()},hex:$M,formatHex:$M,formatHex8:DC,formatHsl:uC,formatRgb:QM,toString:QM});function $M(){return this.rgb().formatHex()}function DC(){return this.rgb().formatHex8()}function uC(){return XM(this).formatHsl()}function QM(){return this.rgb().formatRgb()}function F4(Q){var U,Z;return Q=(Q+"").trim().toLowerCase(),(U=fC.exec(Q))?(Z=U[1].length,U=parseInt(U[1],16),Z===6?qM(U):Z===3?new F5(U>>8&15|U>>4&240,U>>4&15|U&240,(U&15)<<4|U&15,1):Z===8?Oq(U>>24&255,U>>16&255,U>>8&255,(U&255)/255):Z===4?Oq(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=SC.exec(Q))?new F5(U[1],U[2],U[3],1):(U=vC.exec(Q))?new F5(U[1]*255/100,U[2]*255/100,U[3]*255/100,1):(U=jC.exec(Q))?Oq(U[1],U[2],U[3],U[4]):(U=VC.exec(Q))?Oq(U[1]*255/100,U[2]*255/100,U[3]*255/100,U[4]):(U=yC.exec(Q))?ZM(U[1],U[2]/100,U[3]/100,1):(U=kC.exec(Q))?ZM(U[1],U[2]/100,U[3]/100,U[4]):JM.hasOwnProperty(Q)?qM(JM[Q]):Q==="transparent"?new F5(NaN,NaN,NaN,0):null}function qM(Q){return new F5(Q>>16&255,Q>>8&255,Q&255,1)}function Oq(Q,U,Z,K){if(K<=0)Q=U=Z=NaN;return new F5(Q,U,Z,K)}function bC(Q){if(!(Q instanceof RJ))Q=F4(Q);if(!Q)return new F5;return Q=Q.rgb(),new F5(Q.r,Q.g,Q.b,Q.opacity)}function F9(Q,U,Z,K){return arguments.length===1?bC(Q):new F5(Q,U,Z,K==null?1:K)}function F5(Q,U,Z,K){this.r=+Q,this.g=+U,this.b=+Z,this.opacity=+K}AJ(F5,F9,hX(RJ,{brighter(Q){return Q=Q==null?wq:Math.pow(wq,Q),new F5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},darker(Q){return Q=Q==null?MJ:Math.pow(MJ,Q),new F5(this.r*Q,this.g*Q,this.b*Q,this.opacity)},rgb(){return this},clamp(){return new F5(k8(this.r),k8(this.g),k8(this.b),Pq(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:UM,formatHex:UM,formatHex8:EC,formatRgb:GM,toString:GM}));function UM(){return`#${y8(this.r)}${y8(this.g)}${y8(this.b)}`}function EC(){return`#${y8(this.r)}${y8(this.g)}${y8(this.b)}${y8((isNaN(this.opacity)?1:this.opacity)*255)}`}function GM(){let Q=Pq(this.opacity);return`${Q===1?"rgb(":"rgba("}${k8(this.r)}, ${k8(this.g)}, ${k8(this.b)}${Q===1?")":`, ${Q})`}`}function Pq(Q){return isNaN(Q)?1:Math.max(0,Math.min(1,Q))}function k8(Q){return Math.max(0,Math.min(255,Math.round(Q)||0))}function y8(Q){return Q=k8(Q),(Q<16?"0":"")+Q.toString(16)}function ZM(Q,U,Z,K){if(K<=0)Q=U=Z=NaN;else if(Z<=0||Z>=1)Q=U=NaN;else if(U<=0)Q=NaN;return new Z4(Q,U,Z,K)}function XM(Q){if(Q instanceof Z4)return new Z4(Q.h,Q.s,Q.l,Q.opacity);if(!(Q instanceof RJ))Q=F4(Q);if(!Q)return new Z4;if(Q instanceof Z4)return Q;Q=Q.rgb();var U=Q.r/255,Z=Q.g/255,K=Q.b/255,H=Math.min(U,Z,K),Y=Math.max(U,Z,K),W=NaN,L=Y-H,T=(Y+H)/2;if(L){if(U===Y)W=(Z-K)/L+(Z<K)*6;else if(Z===Y)W=(K-U)/L+2;else W=(U-Z)/L+4;L/=T<0.5?Y+H:2-Y-H,W*=60}else L=T>0&&T<1?0:W;return new Z4(W,L,T,Q.opacity)}function KM(Q,U,Z,K){return arguments.length===1?XM(Q):new Z4(Q,U,Z,K==null?1:K)}function Z4(Q,U,Z,K){this.h=+Q,this.s=+U,this.l=+Z,this.opacity=+K}AJ(Z4,KM,hX(RJ,{brighter(Q){return Q=Q==null?wq:Math.pow(wq,Q),new Z4(this.h,this.s,this.l*Q,this.opacity)},darker(Q){return Q=Q==null?MJ:Math.pow(MJ,Q),new Z4(this.h,this.s,this.l*Q,this.opacity)},rgb(){var Q=this.h%360+(this.h<0)*360,U=isNaN(Q)||isNaN(this.s)?0:this.s,Z=this.l,K=Z+(Z<0.5?Z:1-Z)*U,H=2*Z-K;return new F5(xX(Q>=240?Q-240:Q+120,H,K),xX(Q,H,K),xX(Q<120?Q+240:Q-120,H,K),this.opacity)},clamp(){return new Z4(FM(this.h),Iq(this.s),Iq(this.l),Pq(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=Pq(this.opacity);return`${Q===1?"hsl(":"hsla("}${FM(this.h)}, ${Iq(this.s)*100}%, ${Iq(this.l)*100}%${Q===1?")":`, ${Q})`}`}}));function FM(Q){return Q=(Q||0)%360,Q<0?Q+360:Q}function Iq(Q){return Math.max(0,Math.min(1,Q||0))}function xX(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 mX(Q,U,Z,K,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)*K+W*H)/6}function gX(Q){var U=Q.length-1;return function(Z){var K=Z<=0?Z=0:Z>=1?(Z=1,U-1):Math.floor(Z*U),H=Q[K],Y=Q[K+1],W=K>0?Q[K-1]:2*H-Y,L=K<U-1?Q[K+2]:2*Y-H;return mX((Z-K/U)*U,W,H,Y,L)}}function pX(Q){var U=Q.length;return function(Z){var K=Math.floor(((Z%=1)<0?++Z:Z)*U),H=Q[(K+U-1)%U],Y=Q[K%U],W=Q[(K+1)%U],L=Q[(K+2)%U];return mX((Z-K/U)*U,H,Y,W,L)}}var OJ=(Q)=>()=>Q;function hC(Q,U){return function(Z){return Q+Z*U}}function xC(Q,U,Z){return Q=Math.pow(Q,Z),U=Math.pow(U,Z)-Q,Z=1/Z,function(K){return Math.pow(Q+K*U,Z)}}function HM(Q){return(Q=+Q)===1?Nq:function(U,Z){return Z-U?xC(U,Z,Q):OJ(isNaN(U)?Z:U)}}function Nq(Q,U){var Z=U-Q;return Z?hC(Q,Z):OJ(isNaN(Q)?U:Q)}var D8=function Q(U){var Z=HM(U);function K(H,Y){var W=Z((H=F9(H)).r,(Y=F9(Y)).r),L=Z(H.g,Y.g),T=Z(H.b,Y.b),R=Nq(H.opacity,Y.opacity);return function(M){return H.r=W(M),H.g=L(M),H.b=T(M),H.opacity=R(M),H+""}}return K.gamma=Q,K}(1);function YM(Q){return function(U){var Z=U.length,K=Array(Z),H=Array(Z),Y=Array(Z),W,L;for(W=0;W<Z;++W)L=F9(U[W]),K[W]=L.r||0,H[W]=L.g||0,Y[W]=L.b||0;return K=Q(K),H=Q(H),Y=Q(Y),L.opacity=1,function(T){return L.r=K(T),L.g=H(T),L.b=Y(T),L+""}}}var mC=YM(gX),gC=YM(pX);function cX(Q,U){if(!U)U=[];var Z=Q?Math.min(U.length,Q.length):0,K=U.slice(),H;return function(Y){for(H=0;H<Z;++H)K[H]=Q[H]*(1-Y)+U[H]*Y;return K}}function zM(Q){return ArrayBuffer.isView(Q)&&!(Q instanceof DataView)}function WM(Q,U){var Z=U?U.length:0,K=Q?Math.min(Z,Q.length):0,H=Array(K),Y=Array(Z),W;for(W=0;W<K;++W)H[W]=d4(Q[W],U[W]);for(;W<Z;++W)Y[W]=U[W];return function(L){for(W=0;W<K;++W)Y[W]=H[W](L);return Y}}function lX(Q,U){var Z=new Date;return Q=+Q,U=+U,function(K){return Z.setTime(Q*(1-K)+U*K),Z}}function h2(Q,U){return Q=+Q,U=+U,function(Z){return Q*(1-Z)+U*Z}}function iX(Q,U){var Z={},K={},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]=d4(Q[H],U[H]);else K[H]=U[H];return function(Y){for(H in Z)K[H]=Z[H](Y);return K}}var rX=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dX=new RegExp(rX.source,"g");function pC(Q){return function(){return Q}}function cC(Q){return function(U){return Q(U)+""}}function X9(Q,U){var Z=rX.lastIndex=dX.lastIndex=0,K,H,Y,W=-1,L=[],T=[];Q=Q+"",U=U+"";while((K=rX.exec(Q))&&(H=dX.exec(U))){if((Y=H.index)>Z)if(Y=U.slice(Z,Y),L[W])L[W]+=Y;else L[++W]=Y;if((K=K[0])===(H=H[0]))if(L[W])L[W]+=H;else L[++W]=H;else L[++W]=null,T.push({i:W,x:h2(K,H)});Z=dX.lastIndex}if(Z<U.length)if(Y=U.slice(Z),L[W])L[W]+=Y;else L[++W]=Y;return L.length<2?T[0]?cC(T[0].x):pC(U):(U=T.length,function(R){for(var M=0,A;M<U;++M)L[(A=T[M]).i]=A.x(R);return L.join("")})}function d4(Q,U){var Z=typeof U,K;return U==null||Z==="boolean"?OJ(U):(Z==="number"?h2:Z==="string"?(K=F4(U))?(U=K,D8):X9:U instanceof F4?D8:U instanceof Date?lX:zM(U)?cX:Array.isArray(U)?WM:typeof U.valueOf!=="function"&&typeof U.toString!=="function"||isNaN(U)?iX:h2)(Q,U)}var LM=180/Math.PI,Cq={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fq(Q,U,Z,K,H,Y){var W,L,T;if(W=Math.sqrt(Q*Q+U*U))Q/=W,U/=W;if(T=Q*Z+U*K)Z-=Q*T,K-=U*T;if(L=Math.sqrt(Z*Z+K*K))Z/=L,K/=L,T/=L;if(Q*K<U*Z)Q=-Q,U=-U,T=-T,W=-W;return{translateX:H,translateY:Y,rotate:Math.atan2(U,Q)*LM,skewX:Math.atan(T)*LM,scaleX:W,scaleY:L}}var Sq;function BM(Q){let U=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(Q+"");return U.isIdentity?Cq:fq(U.a,U.b,U.c,U.d,U.e,U.f)}function AM(Q){if(Q==null)return Cq;if(!Sq)Sq=document.createElementNS("http://www.w3.org/2000/svg","g");if(Sq.setAttribute("transform",Q),!(Q=Sq.transform.baseVal.consolidate()))return Cq;return Q=Q.matrix,fq(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f)}function MM(Q,U,Z,K){function H(R){return R.length?R.pop()+" ":""}function Y(R,M,A,O,P,N){if(R!==A||M!==O){var V=P.push("translate(",null,U,null,Z);N.push({i:V-4,x:h2(R,A)},{i:V-2,x:h2(M,O)})}else if(A||O)P.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,K)-2,x:h2(R,M)})}else if(M)A.push(H(A)+"rotate("+M+K)}function L(R,M,A,O){if(R!==M)O.push({i:A.push(H(A)+"skewX(",null,K)-2,x:h2(R,M)});else if(M)A.push(H(A)+"skewX("+M+K)}function T(R,M,A,O,P,N){if(R!==A||M!==O){var V=P.push(H(P)+"scale(",null,",",null,")");N.push({i:V-4,x:h2(R,A)},{i:V-2,x:h2(M,O)})}else if(A!==1||O!==1)P.push(H(P)+"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),L(R.skewX,M.skewX,A,O),T(R.scaleX,R.scaleY,M.scaleX,M.scaleY,A,O),R=M=null,function(P){var N=-1,V=O.length,v;while(++N<V)A[(v=O[N]).i]=v.x(P);return A.join("")}}}var aX=MM(BM,"px, ","px)","deg)"),sX=MM(AM,", ",")",")");var lC=0.000000000001;function TM(Q){return((Q=Math.exp(Q))+1/Q)/2}function iC(Q){return((Q=Math.exp(Q))-1/Q)/2}function dC(Q){return((Q=Math.exp(2*Q))-1)/(Q+1)}var u8=function Q(U,Z,K){function H(Y,W){var L=Y[0],T=Y[1],R=Y[2],M=W[0],A=W[1],O=W[2],P=M-L,N=A-T,V=P*P+N*N,v,C;if(V<lC)C=Math.log(O/R)/U,v=function(E){return[L+E*P,T+E*N,R*Math.exp(U*E*C)]};else{var u=Math.sqrt(V),f=(O*O-R*R+K*V)/(2*R*Z*u),j=(O*O-R*R-K*V)/(2*O*Z*u),D=Math.log(Math.sqrt(f*f+1)-f),h=Math.log(Math.sqrt(j*j+1)-j);C=(h-D)/U,v=function(E){var b=E*C,k=TM(D),x=R/(Z*u)*(k*dC(U*b+D)-iC(D));return[L+x*P,T+x*N,R*k/TM(U*b+D)]}}return v.duration=C*1000*U/Math.SQRT2,v}return H.rho=function(Y){var W=Math.max(0.001,+Y),L=W*W,T=L*L;return Q(W,L,T)},H}(Math.SQRT2,2,4);var K9=0,wJ=0,IJ=0,OM=1000,vq,PJ,jq=0,b8=0,Vq=0,NJ=typeof performance==="object"&&performance.now?performance:Date,IM=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Q){setTimeout(Q,17)};function fJ(){return b8||(IM(rC),b8=NJ.now()+Vq)}function rC(){b8=0}function CJ(){this._call=this._time=this._next=null}CJ.prototype=yq.prototype={constructor:CJ,restart:function(Q,U,Z){if(typeof Q!=="function")throw TypeError("callback is not a function");if(Z=(Z==null?fJ():+Z)+(U==null?0:+U),!this._next&&PJ!==this){if(PJ)PJ._next=this;else vq=this;PJ=this}this._call=Q,this._time=Z,tX()},stop:function(){if(this._call)this._call=null,this._time=1/0,tX()}};function yq(Q,U,Z){var K=new CJ;return K.restart(Q,U,Z),K}function wM(){fJ(),++K9;var Q=vq,U;while(Q){if((U=b8-Q._time)>=0)Q._call.call(void 0,U);Q=Q._next}--K9}function RM(){b8=(jq=NJ.now())+Vq,K9=wJ=0;try{wM()}finally{K9=0,sC(),b8=0}}function aC(){var Q=NJ.now(),U=Q-jq;if(U>OM)Vq-=U,jq=Q}function sC(){var Q,U=vq,Z,K=1/0;while(U)if(U._call){if(K>U._time)K=U._time;Q=U,U=U._next}else Z=U._next,U._next=null,U=Q?Q._next=Z:vq=Z;PJ=Q,tX(K)}function tX(Q){if(K9)return;if(wJ)wJ=clearTimeout(wJ);var U=Q-b8;if(U>24){if(Q<1/0)wJ=setTimeout(RM,Q-NJ.now()-Vq);if(IJ)IJ=clearInterval(IJ)}else{if(!IJ)jq=NJ.now(),IJ=setInterval(aC,OM);K9=1,IM(RM)}}function SJ(Q,U,Z){var K=new CJ;return U=U==null?0:+U,K.restart((H)=>{K.stop(),Q(H+U)},U,Z),K}var tC=j8("start","end","cancel","interrupt"),oC=[],CM=0,PM=1,Dq=2,kq=3,NM=4,uq=5,vJ=6;function S3(Q,U,Z,K,H,Y){var W=Q.__transition;if(!W)Q.__transition={};else if(Z in W)return;nC(Q,Z,{name:U,index:K,group:H,on:tC,tween:oC,time:Y.time,delay:Y.delay,duration:Y.duration,ease:Y.ease,timer:null,state:CM})}function jJ(Q,U){var Z=B2(Q,U);if(Z.state>CM)throw Error("too late; already scheduled");return Z}function y2(Q,U){var Z=B2(Q,U);if(Z.state>kq)throw Error("too late; already running");return Z}function B2(Q,U){var Z=Q.__transition;if(!Z||!(Z=Z[U]))throw Error("transition not found");return Z}function nC(Q,U,Z){var K=Q.__transition,H;K[U]=Z,Z.timer=yq(Y,0,Z.time);function Y(R){if(Z.state=PM,Z.timer.restart(W,Z.delay,Z.time),Z.delay<=R)W(R-Z.delay)}function W(R){var M,A,O,P;if(Z.state!==PM)return T();for(M in K){if(P=K[M],P.name!==Z.name)continue;if(P.state===kq)return SJ(W);if(P.state===NM)P.state=vJ,P.timer.stop(),P.on.call("interrupt",Q,Q.__data__,P.index,P.group),delete K[M];else if(+M<U)P.state=vJ,P.timer.stop(),P.on.call("cancel",Q,Q.__data__,P.index,P.group),delete K[M]}if(SJ(function(){if(Z.state===kq)Z.state=NM,Z.timer.restart(L,Z.delay,Z.time),L(R)}),Z.state=Dq,Z.on.call("start",Q,Q.__data__,Z.index,Z.group),Z.state!==Dq)return;Z.state=kq,H=Array(O=Z.tween.length);for(M=0,A=-1;M<O;++M)if(P=Z.tween[M].value.call(Q,Q.__data__,Z.index,Z.group))H[++A]=P;H.length=A+1}function L(R){var M=R<Z.duration?Z.ease.call(null,R/Z.duration):(Z.timer.restart(T),Z.state=uq,1),A=-1,O=H.length;while(++A<O)H[A].call(Q,M);if(Z.state===uq)Z.on.call("end",Q,Q.__data__,Z.index,Z.group),T()}function T(){Z.state=vJ,Z.timer.stop(),delete K[U];for(var R in K)return;delete Q.__transition}}function V6(Q,U){var Z=Q.__transition,K,H,Y=!0,W;if(!Z)return;U=U==null?null:U+"";for(W in Z){if((K=Z[W]).name!==U){Y=!1;continue}H=K.state>Dq&&K.state<uq,K.state=vJ,K.timer.stop(),K.on.call(H?"interrupt":"cancel",Q,Q.__data__,K.index,K.group),delete Z[W]}if(Y)delete Q.__transition}function oX(Q){return this.each(function(){V6(this,Q)})}function eC(Q,U){var Z,K;return function(){var H=y2(this,Q),Y=H.tween;if(Y!==Z){K=Z=Y;for(var W=0,L=K.length;W<L;++W)if(K[W].name===U){K=K.slice(),K.splice(W,1);break}}H.tween=K}}function _f(Q,U,Z){var K,H;if(typeof Z!=="function")throw Error();return function(){var Y=y2(this,Q),W=Y.tween;if(W!==K){H=(K=W).slice();for(var L={name:U,value:Z},T=0,R=H.length;T<R;++T)if(H[T].name===U){H[T]=L;break}if(T===R)H.push(L)}Y.tween=H}}function nX(Q,U){var Z=this._id;if(Q+="",arguments.length<2){var K=B2(this.node(),Z).tween;for(var H=0,Y=K.length,W;H<Y;++H)if((W=K[H]).name===Q)return W.value;return null}return this.each((U==null?eC:_f)(Z,Q,U))}function H9(Q,U,Z){var K=Q._id;return Q.each(function(){var H=y2(this,K);(H.value||(H.value={}))[U]=Z.apply(this,arguments)}),function(H){return B2(H,K).value[U]}}function VJ(Q,U){var Z;return(typeof U==="number"?h2:U instanceof F4?D8:(Z=F4(U))?(U=Z,D8):X9)(Q,U)}function Jf(Q){return function(){this.removeAttribute(Q)}}function $f(Q){return function(){this.removeAttributeNS(Q.space,Q.local)}}function Qf(Q,U,Z){var K,H=Z+"",Y;return function(){var W=this.getAttribute(Q);return W===H?null:W===K?Y:Y=U(K=W,Z)}}function qf(Q,U,Z){var K,H=Z+"",Y;return function(){var W=this.getAttributeNS(Q.space,Q.local);return W===H?null:W===K?Y:Y=U(K=W,Z)}}function Uf(Q,U,Z){var K,H,Y;return function(){var W,L=Z(this),T;if(L==null)return void this.removeAttribute(Q);return W=this.getAttribute(Q),T=L+"",W===T?null:W===K&&T===H?Y:(H=T,Y=U(K=W,L))}}function Gf(Q,U,Z){var K,H,Y;return function(){var W,L=Z(this),T;if(L==null)return void this.removeAttributeNS(Q.space,Q.local);return W=this.getAttributeNS(Q.space,Q.local),T=L+"",W===T?null:W===K&&T===H?Y:(H=T,Y=U(K=W,L))}}function eX(Q,U){var Z=l4(Q),K=Z==="transform"?sX:VJ;return this.attrTween(Q,typeof U==="function"?(Z.local?Gf:Uf)(Z,K,H9(this,"attr."+Q,U)):U==null?(Z.local?$f:Jf)(Z):(Z.local?qf:Qf)(Z,K,U))}function Zf(Q,U){return function(Z){this.setAttribute(Q,U.call(this,Z))}}function Ff(Q,U){return function(Z){this.setAttributeNS(Q.space,Q.local,U.call(this,Z))}}function Xf(Q,U){var Z,K;function H(){var Y=U.apply(this,arguments);if(Y!==K)Z=(K=Y)&&Ff(Q,Y);return Z}return H._value=U,H}function Kf(Q,U){var Z,K;function H(){var Y=U.apply(this,arguments);if(Y!==K)Z=(K=Y)&&Zf(Q,Y);return Z}return H._value=U,H}function _K(Q,U){var Z="attr."+Q;if(arguments.length<2)return(Z=this.tween(Z))&&Z._value;if(U==null)return this.tween(Z,null);if(typeof U!=="function")throw Error();var K=l4(Q);return this.tween(Z,(K.local?Xf:Kf)(K,U))}function Hf(Q,U){return function(){jJ(this,Q).delay=+U.apply(this,arguments)}}function Yf(Q,U){return U=+U,function(){jJ(this,Q).delay=U}}function JK(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?Hf:Yf)(U,Q)):B2(this.node(),U).delay}function zf(Q,U){return function(){y2(this,Q).duration=+U.apply(this,arguments)}}function Wf(Q,U){return U=+U,function(){y2(this,Q).duration=U}}function $K(Q){var U=this._id;return arguments.length?this.each((typeof Q==="function"?zf:Wf)(U,Q)):B2(this.node(),U).duration}function Lf(Q,U){if(typeof U!=="function")throw Error();return function(){y2(this,Q).ease=U}}function QK(Q){var U=this._id;return arguments.length?this.each(Lf(U,Q)):B2(this.node(),U).ease}function Bf(Q,U){return function(){var Z=U.apply(this,arguments);if(typeof Z!=="function")throw Error();y2(this,Q).ease=Z}}function qK(Q){if(typeof Q!=="function")throw Error();return this.each(Bf(this._id,Q))}function UK(Q){if(typeof Q!=="function")Q=q9(Q);for(var U=this._groups,Z=U.length,K=Array(Z),H=0;H<Z;++H)for(var Y=U[H],W=Y.length,L=K[H]=[],T,R=0;R<W;++R)if((T=Y[R])&&Q.call(T,T.__data__,R,Y))L.push(T);return new o2(K,this._parents,this._name,this._id)}function GK(Q){if(Q._id!==this._id)throw Error();for(var U=this._groups,Z=Q._groups,K=U.length,H=Z.length,Y=Math.min(K,H),W=Array(K),L=0;L<Y;++L)for(var T=U[L],R=Z[L],M=T.length,A=W[L]=Array(M),O,P=0;P<M;++P)if(O=T[P]||R[P])A[P]=O;for(;L<K;++L)W[L]=U[L];return new o2(W,this._parents,this._name,this._id)}function Af(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 Mf(Q,U,Z){var K,H,Y=Af(U)?jJ:y2;return function(){var W=Y(this,Q),L=W.on;if(L!==K)(H=(K=L).copy()).on(U,Z);W.on=H}}function ZK(Q,U){var Z=this._id;return arguments.length<2?B2(this.node(),Z).on.on(Q):this.each(Mf(Z,Q,U))}function Tf(Q){return function(){var U=this.parentNode;for(var Z in this.__transition)if(+Z!==Q)return;if(U)U.removeChild(this)}}function FK(){return this.on("end.remove",Tf(this._id))}function XK(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=v6(Q);for(var K=this._groups,H=K.length,Y=Array(H),W=0;W<H;++W)for(var L=K[W],T=L.length,R=Y[W]=Array(T),M,A,O=0;O<T;++O)if((M=L[O])&&(A=Q.call(M,M.__data__,O,L))){if("__data__"in M)A.__data__=M.__data__;R[O]=A,S3(R[O],U,Z,O,R,B2(M,Z))}return new o2(Y,this._parents,U,Z)}function KK(Q){var U=this._name,Z=this._id;if(typeof Q!=="function")Q=U9(Q);for(var K=this._groups,H=K.length,Y=[],W=[],L=0;L<H;++L)for(var T=K[L],R=T.length,M,A=0;A<R;++A)if(M=T[A]){for(var O=Q.call(M,M.__data__,A,T),P,N=B2(M,Z),V=0,v=O.length;V<v;++V)if(P=O[V])S3(P,U,Z,V,O,N);Y.push(O),W.push(M)}return new o2(Y,W,U,Z)}var Rf=C3.prototype.constructor;function HK(){return new Rf(this._groups,this._parents)}function Of(Q,U){var Z,K,H;return function(){var Y=j6(this,Q),W=(this.style.removeProperty(Q),j6(this,Q));return Y===W?null:Y===Z&&W===K?H:H=U(Z=Y,K=W)}}function fM(Q){return function(){this.style.removeProperty(Q)}}function If(Q,U,Z){var K,H=Z+"",Y;return function(){var W=j6(this,Q);return W===H?null:W===K?Y:Y=U(K=W,Z)}}function wf(Q,U,Z){var K,H,Y;return function(){var W=j6(this,Q),L=Z(this),T=L+"";if(L==null)T=L=(this.style.removeProperty(Q),j6(this,Q));return W===T?null:W===K&&T===H?Y:(H=T,Y=U(K=W,L))}}function Pf(Q,U){var Z,K,H,Y="style."+U,W="end."+Y,L;return function(){var T=y2(this,Q),R=T.on,M=T.value[Y]==null?L||(L=fM(U)):void 0;if(R!==Z||H!==M)(K=(Z=R).copy()).on(W,H=M);T.on=K}}function YK(Q,U,Z){var K=(Q+="")==="transform"?aX:VJ;return U==null?this.styleTween(Q,Of(Q,K)).on("end.style."+Q,fM(Q)):typeof U==="function"?this.styleTween(Q,wf(Q,K,H9(this,"style."+Q,U))).each(Pf(this._id,Q)):this.styleTween(Q,If(Q,K,U),Z).on("end.style."+Q,null)}function Nf(Q,U,Z){return function(K){this.style.setProperty(Q,U.call(this,K),Z)}}function Cf(Q,U,Z){var K,H;function Y(){var W=U.apply(this,arguments);if(W!==H)K=(H=W)&&Nf(Q,W,Z);return K}return Y._value=U,Y}function zK(Q,U,Z){var K="style."+(Q+="");if(arguments.length<2)return(K=this.tween(K))&&K._value;if(U==null)return this.tween(K,null);if(typeof U!=="function")throw Error();return this.tween(K,Cf(Q,U,Z==null?"":Z))}function ff(Q){return function(){this.textContent=Q}}function Sf(Q){return function(){var U=Q(this);this.textContent=U==null?"":U}}function WK(Q){return this.tween("text",typeof Q==="function"?Sf(H9(this,"text",Q)):ff(Q==null?"":Q+""))}function vf(Q){return function(U){this.textContent=Q.call(this,U)}}function jf(Q){var U,Z;function K(){var H=Q.apply(this,arguments);if(H!==Z)U=(Z=H)&&vf(H);return U}return K._value=Q,K}function LK(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,jf(Q))}function BK(){var Q=this._name,U=this._id,Z=bq();for(var K=this._groups,H=K.length,Y=0;Y<H;++Y)for(var W=K[Y],L=W.length,T,R=0;R<L;++R)if(T=W[R]){var M=B2(T,U);S3(T,Q,Z,R,W,{time:M.time+M.delay+M.duration,delay:0,duration:M.duration,ease:M.ease})}return new o2(K,this._parents,Q,Z)}function AK(){var Q,U,Z=this,K=Z._id,H=Z.size();return new Promise(function(Y,W){var L={value:W},T={value:function(){if(--H===0)Y()}};if(Z.each(function(){var R=y2(this,K),M=R.on;if(M!==Q)U=(Q=M).copy(),U._.cancel.push(L),U._.interrupt.push(L),U._.end.push(T);R.on=U}),H===0)Y()})}var Vf=0;function o2(Q,U,Z,K){this._groups=Q,this._parents=U,this._name=Z,this._id=K}function SM(Q){return C3().transition(Q)}function bq(){return++Vf}var v3=C3.prototype;o2.prototype=SM.prototype={constructor:o2,select:XK,selectAll:KK,selectChild:v3.selectChild,selectChildren:v3.selectChildren,filter:UK,merge:GK,selection:HK,transition:BK,call:v3.call,nodes:v3.nodes,node:v3.node,size:v3.size,empty:v3.empty,each:v3.each,on:ZK,attr:eX,attrTween:_K,style:YK,styleTween:zK,text:WK,textTween:LK,remove:FK,tween:nX,delay:JK,duration:$K,ease:QK,easeVarying:qK,end:AK,[Symbol.iterator]:v3[Symbol.iterator]};function Eq(Q){return((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2}var yf={time:null,delay:0,duration:250,ease:Eq};function kf(Q,U){var Z;while(!(Z=Q.__transition)||!(Z=Z[U]))if(!(Q=Q.parentNode))throw Error(`transition ${U} not found`);return Z}function MK(Q){var U,Z;if(Q instanceof o2)U=Q._id,Q=Q._name;else U=bq(),(Z=yf).time=fJ(),Q=Q==null?null:Q+"";for(var K=this._groups,H=K.length,Y=0;Y<H;++Y)for(var W=K[Y],L=W.length,T,R=0;R<L;++R)if(T=W[R])S3(T,Q,U,R,W,Z||kf(T,U));return new o2(K,this._parents,Q,U)}C3.prototype.interrupt=oX;C3.prototype.transition=MK;var yJ=(Q)=>()=>Q;function TK(Q,{sourceEvent:U,target:Z,transform:K,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:K,enumerable:!0,configurable:!0},_:{value:H}})}function X4(Q,U,Z){this.k=Q,this.x=U,this.y=Z}X4.prototype={constructor:X4,scale:function(Q){return Q===1?this:new X4(this.k*Q,this.x,this.y)},translate:function(Q,U){return Q===0&U===0?this:new X4(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 E8=new X4(1,0,0);kJ.prototype=X4.prototype;function kJ(Q){while(!Q.__zoom)if(!(Q=Q.parentNode))return E8;return Q.__zoom}function hq(Q){Q.stopImmediatePropagation()}function h8(Q){Q.preventDefault(),Q.stopImmediatePropagation()}function Df(Q){return(!Q.ctrlKey||Q.type==="wheel")&&!Q.button}function uf(){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 vM(){return this.__zoom||E8}function bf(Q){return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*(Q.ctrlKey?10:1)}function Ef(){return navigator.maxTouchPoints||"ontouchstart"in this}function hf(Q,U,Z){var K=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>K?(K+H)/2:Math.min(0,K)||Math.max(0,H),W>Y?(Y+W)/2:Math.min(0,Y)||Math.max(0,W))}function DJ(){var Q=Df,U=uf,Z=hf,K=bf,H=Ef,Y=[0,1/0],W=[[-1/0,-1/0],[1/0,1/0]],L=250,T=u8,R=j8("start","zoom","end"),M,A,O,P=500,N=150,V=0,v=10;function C(m){m.property("__zoom",vM).on("wheel.zoom",b,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",x).filter(H).on("touchstart.zoom",$1).on("touchmove.zoom",Q1).on("touchend.zoom touchcancel.zoom",J1).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}C.transform=function(m,p,c,a){var i=m.selection?m.selection():m;if(i.property("__zoom",vM),m!==i)D(m,p,c,a);else i.interrupt().each(function(){h(this,arguments).event(a).start().zoom(null,typeof p==="function"?p.apply(this,arguments):p).end()})},C.scaleBy=function(m,p,c,a){C.scaleTo(m,function(){var i=this.__zoom.k,o=typeof p==="function"?p.apply(this,arguments):p;return i*o},c,a)},C.scaleTo=function(m,p,c,a){C.transform(m,function(){var i=U.apply(this,arguments),o=this.__zoom,y=c==null?j(i):typeof c==="function"?c.apply(this,arguments):c,g=o.invert(y),q1=typeof p==="function"?p.apply(this,arguments):p;return Z(f(u(o,q1),y,g),i,W)},c,a)},C.translateBy=function(m,p,c,a){C.transform(m,function(){return Z(this.__zoom.translate(typeof p==="function"?p.apply(this,arguments):p,typeof c==="function"?c.apply(this,arguments):c),U.apply(this,arguments),W)},null,a)},C.translateTo=function(m,p,c,a,i){C.transform(m,function(){var o=U.apply(this,arguments),y=this.__zoom,g=a==null?j(o):typeof a==="function"?a.apply(this,arguments):a;return Z(E8.translate(g[0],g[1]).scale(y.k).translate(typeof p==="function"?-p.apply(this,arguments):-p,typeof c==="function"?-c.apply(this,arguments):-c),o,W)},a,i)};function u(m,p){return p=Math.max(Y[0],Math.min(Y[1],p)),p===m.k?m:new X4(p,m.x,m.y)}function f(m,p,c){var a=p[0]-c[0]*m.k,i=p[1]-c[1]*m.k;return a===m.x&&i===m.y?m:new X4(m.k,a,i)}function j(m){return[(+m[0][0]+ +m[1][0])/2,(+m[0][1]+ +m[1][1])/2]}function D(m,p,c,a){m.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 i=this,o=arguments,y=h(i,o).event(a),g=U.apply(i,o),q1=c==null?j(g):typeof c==="function"?c.apply(i,o):c,t=Math.max(g[1][0]-g[0][0],g[1][1]-g[0][1]),W1=i.__zoom,T1=typeof p==="function"?p.apply(i,o):p,O1=T(W1.invert(q1).concat(t/W1.k),T1.invert(q1).concat(t/T1.k));return function(L1){if(L1===1)L1=T1;else{var U1=O1(L1),P1=t/U1[2];L1=new X4(P1,q1[0]-U1[0]*P1,q1[1]-U1[1]*P1)}y.zoom(null,L1)}})}function h(m,p,c){return!c&&m.__zooming||new E(m,p)}function E(m,p){this.that=m,this.args=p,this.active=0,this.sourceEvent=null,this.extent=U.apply(m,p),this.taps=0}E.prototype={event:function(m){if(m)this.sourceEvent=m;return this},start:function(){if(++this.active===1)this.that.__zooming=this,this.emit("start");return this},zoom:function(m,p){if(this.mouse&&m!=="mouse")this.mouse[1]=p.invert(this.mouse[0]);if(this.touch0&&m!=="touch")this.touch0[1]=p.invert(this.touch0[0]);if(this.touch1&&m!=="touch")this.touch1[1]=p.invert(this.touch1[0]);return this.that.__zoom=p,this.emit("zoom"),this},end:function(){if(--this.active===0)delete this.that.__zooming,this.emit("end");return this},emit:function(m){var p=L2(this.that).datum();R.call(m,this.that,new TK(m,{sourceEvent:this.sourceEvent,target:C,type:m,transform:this.that.__zoom,dispatch:R}),p)}};function b(m,...p){if(!Q.apply(this,arguments))return;var c=h(this,p).event(m),a=this.__zoom,i=Math.max(Y[0],Math.min(Y[1],a.k*Math.pow(2,K.apply(this,arguments)))),o=E2(m);if(c.wheel){if(c.mouse[0][0]!==o[0]||c.mouse[0][1]!==o[1])c.mouse[1]=a.invert(c.mouse[0]=o);clearTimeout(c.wheel)}else if(a.k===i)return;else c.mouse=[o,a.invert(o)],V6(this),c.start();h8(m),c.wheel=setTimeout(y,N),c.zoom("mouse",Z(f(u(a,i),c.mouse[0],c.mouse[1]),c.extent,W));function y(){c.wheel=null,c.end()}}function k(m,...p){if(O||!Q.apply(this,arguments))return;var c=m.currentTarget,a=h(this,p,!0).event(m),i=L2(m.view).on("mousemove.zoom",q1,!0).on("mouseup.zoom",t,!0),o=E2(m,c),y=m.clientX,g=m.clientY;G9(m.view),hq(m),a.mouse=[o,this.__zoom.invert(o)],V6(this),a.start();function q1(W1){if(h8(W1),!a.moved){var T1=W1.clientX-y,O1=W1.clientY-g;a.moved=T1*T1+O1*O1>V}a.event(W1).zoom("mouse",Z(f(a.that.__zoom,a.mouse[0]=E2(W1,c),a.mouse[1]),a.extent,W))}function t(W1){i.on("mousemove.zoom mouseup.zoom",null),zJ(W1.view,a.moved),h8(W1),a.event(W1).end()}}function x(m,...p){if(!Q.apply(this,arguments))return;var c=this.__zoom,a=E2(m.changedTouches?m.changedTouches[0]:m,this),i=c.invert(a),o=c.k*(m.shiftKey?0.5:2),y=Z(f(u(c,o),a,i),U.apply(this,p),W);if(h8(m),L>0)L2(this).transition().duration(L).call(D,y,a,m);else L2(this).call(C.transform,y,a,m)}function $1(m,...p){if(!Q.apply(this,arguments))return;var c=m.touches,a=c.length,i=h(this,p,m.changedTouches.length===a).event(m),o,y,g,q1;hq(m);for(y=0;y<a;++y)if(g=c[y],q1=E2(g,this),q1=[q1,this.__zoom.invert(q1),g.identifier],!i.touch0)i.touch0=q1,o=!0,i.taps=1+!!M;else if(!i.touch1&&i.touch0[2]!==q1[2])i.touch1=q1,i.taps=0;if(M)M=clearTimeout(M);if(o){if(i.taps<2)A=q1[0],M=setTimeout(function(){M=null},P);V6(this),i.start()}}function Q1(m,...p){if(!this.__zooming)return;var c=h(this,p).event(m),a=m.changedTouches,i=a.length,o,y,g,q1;h8(m);for(o=0;o<i;++o)if(y=a[o],g=E2(y,this),c.touch0&&c.touch0[2]===y.identifier)c.touch0[0]=g;else if(c.touch1&&c.touch1[2]===y.identifier)c.touch1[0]=g;if(y=c.that.__zoom,c.touch1){var t=c.touch0[0],W1=c.touch0[1],T1=c.touch1[0],O1=c.touch1[1],L1=(L1=T1[0]-t[0])*L1+(L1=T1[1]-t[1])*L1,U1=(U1=O1[0]-W1[0])*U1+(U1=O1[1]-W1[1])*U1;y=u(y,Math.sqrt(L1/U1)),g=[(t[0]+T1[0])/2,(t[1]+T1[1])/2],q1=[(W1[0]+O1[0])/2,(W1[1]+O1[1])/2]}else if(c.touch0)g=c.touch0[0],q1=c.touch0[1];else return;c.zoom("touch",Z(f(y,g,q1),c.extent,W))}function J1(m,...p){if(!this.__zooming)return;var c=h(this,p).event(m),a=m.changedTouches,i=a.length,o,y;if(hq(m),O)clearTimeout(O);O=setTimeout(function(){O=null},P);for(o=0;o<i;++o)if(y=a[o],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=E2(y,this),Math.hypot(A[0]-y[0],A[1]-y[1])<v){var g=L2(this).on("dblclick.zoom");if(g)g.apply(this,arguments)}}}return C.wheelDelta=function(m){return arguments.length?(K=typeof m==="function"?m:yJ(+m),C):K},C.filter=function(m){return arguments.length?(Q=typeof m==="function"?m:yJ(!!m),C):Q},C.touchable=function(m){return arguments.length?(H=typeof m==="function"?m:yJ(!!m),C):H},C.extent=function(m){return arguments.length?(U=typeof m==="function"?m:yJ([[+m[0][0],+m[0][1]],[+m[1][0],+m[1][1]]]),C):U},C.scaleExtent=function(m){return arguments.length?(Y[0]=+m[0],Y[1]=+m[1],C):[Y[0],Y[1]]},C.translateExtent=function(m){return arguments.length?(W[0][0]=+m[0][0],W[1][0]=+m[1][0],W[0][1]=+m[0][1],W[1][1]=+m[1][1],C):[[W[0][0],W[0][1]],[W[1][0],W[1][1]]]},C.constrain=function(m){return arguments.length?(Z=m,C):Z},C.duration=function(m){return arguments.length?(L=+m,C):L},C.interpolate=function(m){return arguments.length?(T=m,C):T},C.on=function(){var m=R.on.apply(R,arguments);return m===R?C:m},C.clickDistance=function(m){return arguments.length?(V=(m=+m)*m,C):Math.sqrt(V)},C.tapDistance=function(m){return arguments.length?(v=+m,C):v},C}var n2={error001:(Q="react")=>`Seems like you have not used ${Q==="svelte"?"SvelteFlowProvider":"ReactFlowProvider"} as an ancestor. Help: https://${Q}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:(Q)=>`Node type "${Q}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:(Q)=>`The old edge with id=${Q} does not exist.`,error009:(Q)=>`Marker type "${Q}" doesn't exist.`,error008:(Q,{id:U,sourceHandle:Z,targetHandle:K})=>`Couldn't create edge for ${Q} handle id: "${Q==="source"?Z:K}", edge id: ${U}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:(Q)=>`Edge type "${Q}" not found. Using fallback type "default".`,error012:(Q)=>`Node with id "${Q}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(Q="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${Q}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:(Q)=>`Edge with id "${Q}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},L9=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],PK=["Enter"," ","Escape"],NK={"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"},u6;(function(Q){Q.Strict="strict",Q.Loose="loose"})(u6||(u6={}));var j3;(function(Q){Q.Free="free",Q.Vertical="vertical",Q.Horizontal="horizontal"})(j3||(j3={}));var x8;(function(Q){Q.Partial="partial",Q.Full="full"})(x8||(x8={}));var CK={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null},r4;(function(Q){Q.Bezier="default",Q.Straight="straight",Q.Step="step",Q.SmoothStep="smoothstep",Q.SimpleBezier="simplebezier"})(r4||(r4={}));var z9;(function(Q){Q.Arrow="arrow",Q.ArrowClosed="arrowclosed"})(z9||(z9={}));var b1;(function(Q){Q.Left="left",Q.Top="top",Q.Right="right",Q.Bottom="bottom"})(b1||(b1={}));var jM={[b1.Left]:b1.Right,[b1.Right]:b1.Left,[b1.Top]:b1.Bottom,[b1.Bottom]:b1.Top},fK=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("source"in Q)&&("target"in Q),lM=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("position"in Q)&&!("source"in Q)&&!("target"in Q),SK=(Q)=>!!Q&&typeof Q==="object"&&("id"in Q)&&("internals"in Q)&&!("source"in Q)&&!("target"in Q);var bJ=(Q,U=[0,0])=>{let{width:Z,height:K}=i5(Q),H=Q.origin??U,Y=Z*H[0],W=K*H[1];return{x:Q.position.x-Y,y:Q.position.y-W}},vK=(Q,U={nodeOrigin:[0,0]})=>{if(!U.nodeLookup)console.warn("Please use `getNodesBounds` from `useReactFlow`/`useSvelteFlow` hook to ensure correct values for sub flows. If not possible, you have to provide a nodeLookup to support sub flows.");if(Q.length===0)return{x:0,y:0,width:0,height:0};let Z=!1,K=Q.reduce((H,Y)=>{let W=typeof Y==="string",L=!U.nodeLookup&&!W?Y:void 0;if(U.nodeLookup)L=W?U.nodeLookup.get(Y):!SK(Y)?U.nodeLookup.get(Y.id):Y;if(!L)return H;return Z=!0,lq(H,gq(L,U.nodeOrigin))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Z?iq(K):{x:0,y:0,width:0,height:0}},c8=(Q,U={})=>{let Z={x:1/0,y:1/0,x2:-1/0,y2:-1/0},K=!1;return Q.forEach((H)=>{if(U.filter===void 0||U.filter(H))Z=lq(Z,gq(H)),K=!0}),K?iq(Z):{x:0,y:0,width:0,height:0}},pq=(Q,U,[Z,K,H]=[0,0,1],Y=!1,W=!1)=>{let L=(U.x-Z)/H,T=(U.y-K)/H,R=U.width/H,M=U.height/H,A=[];for(let O of Q.values()){let{measured:P,selectable:N=!0,hidden:V=!1}=O;if(W&&!N||V)continue;let v=P.width??O.width??O.initialWidth??0,C=P.height??O.height??O.initialHeight??0,{x:u,y:f}=O.internals.positionAbsolute,j=sM(L,T,R,M,u,f,v,C),D=v*C,h=Y&&j>0;if(!O.internals.handleBounds||h||j>=D||O.dragging)A.push(O)}return A},iM=(Q,U)=>{let Z=new Set;return Q.forEach((K)=>{Z.add(K.id)}),U.filter((K)=>Z.has(K.source)||Z.has(K.target))};function xf(Q,U){let Z=new Map,K=U?.nodes?new Set(U.nodes.map((H)=>H.id)):null;return Q.forEach((H)=>{let Y;if(U?.includeHiddenNodes){let{width:W,height:L}=i5(H);Y=W>0&&L>0}else Y=Boolean(H.measured.width&&H.measured.height&&!H.hidden);if(Y&&(!K||K.has(H.id)))Z.set(H.id,H)}),Z}async function dM({nodes:Q,width:U,height:Z,panZoom:K,minZoom:H,maxZoom:Y},W){if(Q.size===0)return!0;let L=xf(Q,W),T=c8(L),R=hJ(T,U,Z,W?.minZoom??H,W?.maxZoom??Y,W?.padding??0.1);return await K.setViewport(R,{duration:W?.duration,ease:W?.ease,interpolate:W?.interpolate}),!0}function jK({nodeId:Q,nextPosition:U,nodeLookup:Z,nodeOrigin:K=[0,0],nodeExtent:H,onError:Y}){let W=Z.get(Q),L=W.parentId?Z.get(W.parentId):void 0,{x:T,y:R}=L?L.internals.positionAbsolute:{x:0,y:0},M=W.origin??K,A=W.extent||H;if(W.extent==="parent"&&!W.expandParent)if(!L)Y?.("005",n2.error005());else{let{width:P,height:N}=i5(L);if(P&&N)A=[[T,R],[T+P,R+N]]}else if(L&&p8(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=p8(A)?m8(U,A,W.measured):U;if(W.measured.width===void 0||W.measured.height===void 0)Y?.("015",n2.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 rM({nodesToRemove:Q=[],edgesToRemove:U=[],nodes:Z,edges:K,onBeforeDelete:H}){let Y=new Set(Q.map((O)=>O.id)),W=[];for(let O of Z){if(O.deletable===!1)continue;let P=Y.has(O.id),N=!P&&O.parentId&&W.find((V)=>V.id===O.parentId);if(P||N)W.push(O)}let L=new Set(U.map((O)=>O.id)),T=K.filter((O)=>O.deletable!==!1),M=iM(W,T);for(let O of T)if(L.has(O.id)&&!M.find((N)=>N.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 W9=(Q,U=0,Z=1)=>Math.min(Math.max(Q,U),Z),m8=(Q={x:0,y:0},U,Z)=>({x:W9(Q.x,U[0][0],U[1][0]-(Z?.width??0)),y:W9(Q.y,U[0][1],U[1][1]-(Z?.height??0))});function aM(Q,U,Z){let{width:K,height:H}=i5(Z),{x:Y,y:W}=Z.internals.positionAbsolute;return m8(Q,[[Y,W],[Y+K,W+H]],U)}var VM=(Q,U,Z)=>{if(Q<U)return W9(Math.abs(Q-U),1,U)/U;else if(Q>Z)return-W9(Math.abs(Q-Z),1,U)/U;return 0},cq=(Q,U,Z=15,K=40)=>{let H=VM(Q.x,K,U.width-K)*Z,Y=VM(Q.y,K,U.height-K)*Z;return[H,Y]},lq=(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)}),wK=({x:Q,y:U,width:Z,height:K})=>({x:Q,y:U,x2:Q+Z,y2:U+K}),iq=({x:Q,y:U,x2:Z,y2:K})=>({x:Q,y:U,width:Z-Q,height:K-U}),B9=(Q,U=[0,0])=>{let{x:Z,y:K}=SK(Q)?Q.internals.positionAbsolute:bJ(Q,U);return{x:Z,y:K,width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}},gq=(Q,U=[0,0])=>{let{x:Z,y:K}=SK(Q)?Q.internals.positionAbsolute:bJ(Q,U);return{x:Z,y:K,x2:Z+(Q.measured?.width??Q.width??Q.initialWidth??0),y2:K+(Q.measured?.height??Q.height??Q.initialHeight??0)}},VK=(Q,U)=>iq(lq(wK(Q),wK(U))),sM=(Q,U,Z,K,H,Y,W,L)=>{let T=Math.max(0,Math.min(Q+Z,H+W)-Math.max(Q,H)),R=Math.max(0,Math.min(U+K,Y+L)-Math.max(U,Y));return Math.ceil(T*R)},EJ=(Q,U)=>sM(Q.x,Q.y,Q.width,Q.height,U.x,U.y,U.width,U.height),yK=(Q)=>c5(Q.width)&&c5(Q.height)&&c5(Q.x)&&c5(Q.y),c5=(Q)=>!isNaN(Q)&&isFinite(Q),kK=(Q,U)=>(Z,K)=>{console.warn(`[${Q}]: ${K} Help: ${U}error#${Z}`)},A9=(Q,U=[1,1])=>{return{x:U[0]*Math.round(Q.x/U[0]),y:U[1]*Math.round(Q.y/U[1])}},M9=({x:Q,y:U},[Z,K,H],Y=!1,W=[1,1])=>{let L={x:(Q-Z)/H,y:(U-K)/H};return Y?A9(L,W):L},g8=({x:Q,y:U},[Z,K,H])=>{return{x:Q*H+Z,y:U*H+K}};function Y9(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 mf(Q,U,Z){if(typeof Q==="string"||typeof Q==="number"){let K=Y9(Q,Z),H=Y9(Q,U);return{top:K,right:H,bottom:K,left:H,x:H*2,y:K*2}}if(typeof Q==="object"){let K=Y9(Q.top??Q.y??0,Z),H=Y9(Q.bottom??Q.y??0,Z),Y=Y9(Q.left??Q.x??0,U),W=Y9(Q.right??Q.x??0,U);return{top:K,right:W,bottom:H,left:Y,x:Y+W,y:K+H}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function gf(Q,U,Z,K,H,Y){let{x:W,y:L}=g8(Q,[U,Z,K]),{x:T,y:R}=g8({x:Q.x+Q.width,y:Q.y+Q.height},[U,Z,K]),M=H-T,A=Y-R;return{left:Math.floor(W),top:Math.floor(L),right:Math.floor(M),bottom:Math.floor(A)}}var hJ=(Q,U,Z,K,H,Y)=>{let W=mf(Y,U,Z),L=(U-W.x)/Q.width,T=(Z-W.y)/Q.height,R=Math.min(L,T),M=W9(R,K,H),A=Q.x+Q.width/2,O=Q.y+Q.height/2,P=U/2-A*M,N=Z/2-O*M,V=gf(Q,P,N,M,U,Z),v={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:P-v.left+v.right,y:N-v.top+v.bottom,zoom:M}},T9=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function p8(Q){return Q!==void 0&&Q!==null&&Q!=="parent"}function i5(Q){return{width:Q.measured?.width??Q.width??Q.initialWidth??0,height:Q.measured?.height??Q.height??Q.initialHeight??0}}function DK(Q){return(Q.measured?.width??Q.width??Q.initialWidth)!==void 0&&(Q.measured?.height??Q.height??Q.initialHeight)!==void 0}function uK(Q,U={width:0,height:0},Z,K,H){let Y={...Q},W=K.get(Z);if(W){let L=W.origin||H;Y.x+=W.internals.positionAbsolute.x-(U.width??0)*L[0],Y.y+=W.internals.positionAbsolute.y-(U.height??0)*L[1]}return Y}function bK(Q,U){if(Q.size!==U.size)return!1;for(let Z of Q)if(!U.has(Z))return!1;return!0}function tM(){let Q,U;return{promise:new Promise((K,H)=>{Q=K,U=H}),resolve:Q,reject:U}}function oM(Q){return{...NK,...Q||{}}}function pf(Q){if(typeof document>"u")return!0;let U=document.querySelector(`.${Q}-flow__pane`);if(!U||!U.isConnected)return!0;let Z=getComputedStyle(U);if(Z.display==="none")return!0;if(Z.visibility==="hidden"||Z.visibility==="collapse")return!0;if(Z.opacity==="0")return!0;if(Z.width==="0"&&Z.height==="0")return!0;let K=U.getBoundingClientRect();if(K.width===0&&K.height===0)return!0;let 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 yM=!1;function nM(Q){if(yM)return;yM=!0;let U=`${Q.charAt(0).toUpperCase()+Q.slice(1)} Flow`;setTimeout(()=>{if(!pf(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 EK(Q){return Q===null?null:Q?"valid":"invalid"}function uJ(Q,{snapGrid:U=[0,0],snapToGrid:Z=!1,transform:K,containerBounds:H}){let{x:Y,y:W}=l5(Q),L=M9({x:Y-(H?.left??0),y:W-(H?.top??0)},K),{x:T,y:R}=Z?A9(L,U):L;return{xSnapped:T,ySnapped:R,...L}}var dq=(Q)=>({width:Q.offsetWidth,height:Q.offsetHeight}),hK=(Q)=>Q?.getRootNode?.()||window?.document,cf=["INPUT","SELECT","TEXTAREA"];function xK(Q){let U=Q.composedPath?.()?.[0]||Q.target;if(U?.nodeType!==1)return!1;return cf.includes(U.nodeName)||U.hasAttribute("contenteditable")||!!U.closest(".nokey")}var mK=(Q)=>("clientX"in Q),l5=(Q,U)=>{let Z=mK(Q),K=Z?Q.clientX:Q.touches?.[0].clientX,H=Z?Q.clientY:Q.touches?.[0].clientY;return{x:K-(U?.left??0),y:H-(U?.top??0)}},kM=(Q,U,Z,K,H)=>{let Y=U.querySelectorAll(`.${Q}`);if(!Y||!Y.length)return null;return Array.from(Y).map((W)=>{let L=W.getBoundingClientRect();return{id:W.getAttribute("data-handleid"),type:Q,nodeId:H,position:W.getAttribute("data-handlepos"),x:(L.left-Z.left)/K,y:(L.top-Z.top)/K,...dq(W)}})};function rq({sourceX:Q,sourceY:U,targetX:Z,targetY:K,sourceControlX:H,sourceControlY:Y,targetControlX:W,targetControlY:L}){let T=Q*0.125+H*0.375+W*0.375+Z*0.125,R=U*0.125+Y*0.375+L*0.375+K*0.125,M=Math.abs(T-Q),A=Math.abs(R-U);return[T,R,M,A]}function xq(Q,U){if(Q>=0)return 0.5*Q;return U*25*Math.sqrt(-Q)}function DM({pos:Q,x1:U,y1:Z,x2:K,y2:H,c:Y}){switch(Q){case b1.Left:return[U-xq(U-K,Y),Z];case b1.Right:return[U+xq(K-U,Y),Z];case b1.Top:return[U,Z-xq(Z-H,Y)];case b1.Bottom:return[U,Z+xq(H-Z,Y)]}}function aq({sourceX:Q,sourceY:U,sourcePosition:Z=b1.Bottom,targetX:K,targetY:H,targetPosition:Y=b1.Top,curvature:W=0.25}){let[L,T]=DM({pos:Z,x1:Q,y1:U,x2:K,y2:H,c:W}),[R,M]=DM({pos:Y,x1:K,y1:H,x2:Q,y2:U,c:W}),[A,O,P,N]=rq({sourceX:Q,sourceY:U,targetX:K,targetY:H,sourceControlX:L,sourceControlY:T,targetControlX:R,targetControlY:M});return[`M${Q},${U} C${L},${T} ${R},${M} ${K},${H}`,A,O,P,N]}function gK({sourceX:Q,sourceY:U,targetX:Z,targetY:K}){let H=Math.abs(Z-Q)/2,Y=Z<Q?Z+H:Z-H,W=Math.abs(K-U)/2,L=K<U?K+W:K-W;return[Y,L,H,W]}function eM({sourceNode:Q,targetNode:U,selected:Z=!1,zIndex:K=0,elevateOnSelect:H=!1,zIndexMode:Y="basic"}){if(Y==="manual")return K;let W=H&&Z?K+1000:K,L=Math.max(Q.parentId||H&&Q.selected?Q.internals.z:0,U.parentId||H&&U.selected?U.internals.z:0);return W+L}function _T({sourceNode:Q,targetNode:U,width:Z,height:K,transform:H}){let Y=lq(gq(Q),gq(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:K/H[2]};return EJ(W,iq(Y))>0}var lf=({source:Q,sourceHandle:U,target:Z,targetHandle:K})=>`xy-edge__${Q}${U||""}-${Z}${K||""}`,df=(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))},JT=(Q,U,Z={})=>{if(!Q.source||!Q.target)return Z.onError?.("006",n2.error006()),U;let K=Z.getEdgeId||lf,H;if(fK(Q))H={...Q};else H={...Q,id:K(Q)};if(df(H,U))return U;if(H.sourceHandle===null)delete H.sourceHandle;if(H.targetHandle===null)delete H.targetHandle;return U.concat(H)};function sq({sourceX:Q,sourceY:U,targetX:Z,targetY:K}){let[H,Y,W,L]=gK({sourceX:Q,sourceY:U,targetX:Z,targetY:K});return[`M ${Q},${U}L ${Z},${K}`,H,Y,W,L]}var uM={[b1.Left]:{x:-1,y:0},[b1.Right]:{x:1,y:0},[b1.Top]:{x:0,y:-1},[b1.Bottom]:{x:0,y:1}},rf=({source:Q,sourcePosition:U=b1.Bottom,target:Z})=>{if(U===b1.Left||U===b1.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}},bM=(Q,U)=>Math.sqrt(Math.pow(U.x-Q.x,2)+Math.pow(U.y-Q.y,2));function af({source:Q,sourcePosition:U=b1.Bottom,target:Z,targetPosition:K=b1.Top,center:H,offset:Y,stepPosition:W}){let L=uM[U],T=uM[K],R={x:Q.x+L.x*Y,y:Q.y+L.y*Y},M={x:Z.x+T.x*Y,y:Z.y+T.y*Y},A=rf({source:R,sourcePosition:U,target:M}),O=A.x!==0?"x":"y",P=A[O],N=[],V,v,C={x:0,y:0},u={x:0,y:0},[,,f,j]=gK({sourceX:Q.x,sourceY:Q.y,targetX:Z.x,targetY:Z.y});if(L[O]*T[O]===-1){if(O==="x")V=H.x??R.x+(M.x-R.x)*W,v=H.y??(R.y+M.y)/2;else V=H.x??(R.x+M.x)/2,v=H.y??R.y+(M.y-R.y)*W;let b=[{x:V,y:R.y},{x:V,y:M.y}],k=[{x:R.x,y:v},{x:M.x,y:v}];if(L[O]===P)N=O==="x"?b:k;else N=O==="x"?k:b}else{let b=[{x:R.x,y:M.y}],k=[{x:M.x,y:R.y}];if(O==="x")N=L.x===P?k:b;else N=L.y===P?b:k;if(U===K){let m=Math.abs(Q[O]-Z[O]);if(m<=Y){let p=Math.min(Y-1,Y-m);if(L[O]===P)C[O]=(R[O]>Q[O]?-1:1)*p;else u[O]=(M[O]>Z[O]?-1:1)*p}}if(U!==K){let m=O==="x"?"y":"x",p=L[O]===T[m],c=R[m]>M[m],a=R[m]<M[m];if(L[O]===1&&(!p&&c||p&&a)||L[O]!==1&&(!p&&a||p&&c))N=O==="x"?b:k}let x={x:R.x+C.x,y:R.y+C.y},$1={x:M.x+u.x,y:M.y+u.y},Q1=Math.max(Math.abs(x.x-N[0].x),Math.abs($1.x-N[0].x)),J1=Math.max(Math.abs(x.y-N[0].y),Math.abs($1.y-N[0].y));if(Q1>=J1)V=(x.x+$1.x)/2,v=N[0].y;else V=N[0].x,v=(x.y+$1.y)/2}let D={x:R.x+C.x,y:R.y+C.y},h={x:M.x+u.x,y:M.y+u.y};return[[Q,...D.x!==N[0].x||D.y!==N[0].y?[D]:[],...N,...h.x!==N[N.length-1].x||h.y!==N[N.length-1].y?[h]:[],Z],V,v,f,j]}function sf(Q,U,Z,K){let H=Math.min(bM(Q,U)/2,bM(U,Z)/2,K),{x:Y,y:W}=U;if(Q.x===Y&&Y===Z.x||Q.y===W&&W===Z.y)return`L${Y} ${W}`;if(Q.y===W){let 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 L=Q.x<Z.x?1:-1,T=Q.y<Z.y?-1:1;return`L ${Y},${W+H*T}Q ${Y},${W} ${Y+H*L},${W}`}function xJ({sourceX:Q,sourceY:U,sourcePosition:Z=b1.Bottom,targetX:K,targetY:H,targetPosition:Y=b1.Top,borderRadius:W=5,centerX:L,centerY:T,offset:R=20,stepPosition:M=0.5}){let[A,O,P,N,V]=af({source:{x:Q,y:U},sourcePosition:Z,target:{x:K,y:H},targetPosition:Y,center:{x:L,y:T},offset:R,stepPosition:M}),v=`M${A[0].x} ${A[0].y}`;for(let C=1;C<A.length-1;C++)v+=sf(A[C-1],A[C],A[C+1],W);return v+=`L${A[A.length-1].x} ${A[A.length-1].y}`,[v,O,P,N,V]}function EM(Q){return Q&&!!(Q.internals.handleBounds||Q.handles?.length)&&!!(Q.measured.width||Q.width||Q.initialWidth)}function $T(Q){let{sourceNode:U,targetNode:Z}=Q;if(!EM(U)||!EM(Z))return null;let K=U.internals.handleBounds||hM(U.handles),H=Z.internals.handleBounds||hM(Z.handles),Y=xM(K?.source??[],Q.sourceHandle),W=xM(Q.connectionMode===u6.Strict?H?.target??[]:(H?.target??[]).concat(H?.source??[]),Q.targetHandle);if(!Y||!W)return Q.onError?.("008",n2.error008(!Y?"source":"target",{id:Q.id,sourceHandle:Q.sourceHandle,targetHandle:Q.targetHandle})),null;let L=Y?.position||b1.Bottom,T=W?.position||b1.Top,R=b6(U,Y,L),M=b6(Z,W,T);return{sourceX:R.x,sourceY:R.y,targetX:M.x,targetY:M.y,sourcePosition:L,targetPosition:T}}function hM(Q){if(!Q)return null;let U=[],Z=[];for(let K of Q)if(K.width=K.width??1,K.height=K.height??1,K.type==="source")U.push(K);else if(K.type==="target")Z.push(K);return{source:U,target:Z}}function b6(Q,U,Z=b1.Left,K=!1){let H=(U?.x??0)+Q.internals.positionAbsolute.x,Y=(U?.y??0)+Q.internals.positionAbsolute.y,{width:W,height:L}=U??i5(Q);if(K)return{x:H+W/2,y:Y+L/2};switch(U?.position??Z){case b1.Top:return{x:H+W/2,y:Y};case b1.Right:return{x:H+W,y:Y+L/2};case b1.Bottom:return{x:H+W/2,y:Y+L};case b1.Left:return{x:H,y:Y+L/2}}}function xM(Q,U){if(!Q)return null;return(!U?Q[0]:Q.find((Z)=>Z.id===U))||null}function tq(Q,U){if(!Q)return"";if(typeof Q==="string")return Q;return`${U?`${U}__`:""}${Object.keys(Q).sort().map((K)=>`${K}=${Q[K]}`).join("&")}`}function QT(Q,{id:U,defaultColor:Z,defaultMarkerStart:K,defaultMarkerEnd:H}){let Y=new Set;return Q.reduce((W,L)=>{return[L.markerStart||K,L.markerEnd||H].forEach((T)=>{if(T&&typeof T==="object"){let R=tq(T,U);if(!Y.has(R))W.push({id:R,color:T.color||Z,...T}),Y.add(R)}}),W},[]).sort((W,L)=>W.id.localeCompare(L.id))}function qT(Q,U,Z,K,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-K],L=[-100*Y,-100];switch(Z){case b1.Right:W=[(Q.x+Q.width)*U.zoom+U.x+K,(Q.y+Q.height*Y)*U.zoom+U.y],L=[0,-100*Y];break;case b1.Bottom:W[1]=(Q.y+Q.height)*U.zoom+U.y+K,L[1]=0;break;case b1.Left:W=[Q.x*U.zoom+U.x-K,(Q.y+Q.height*Y)*U.zoom+U.y],L=[-100,-100*Y];break}return`translate(${W[0]}px, ${W[1]}px) translate(${L[0]}%, ${L[1]}%)`}var UT=1000,tf=10,pK={nodeOrigin:[0,0],nodeExtent:L9,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},of={...pK,checkEquality:!0};function cK(Q,U){let Z={...Q};for(let K in U)if(U[K]!==void 0)Z[K]=U[K];return Z}function GT(Q,U,Z){let K=cK(pK,Z);for(let H of Q.values())if(H.parentId)iK(H,Q,U,K);else{let Y=bJ(H,K.nodeOrigin),W=p8(H.extent)?H.extent:K.nodeExtent,L=m8(Y,W,i5(H));H.internals.positionAbsolute=L}}function nf(Q,U){if(!Q.handles)return!Q.measured?void 0:U?.internals.handleBounds;let Z=[],K=[];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")K.push(Y)}return{source:Z,target:K}}function lK(Q){return Q==="manual"}function oq(Q,U,Z,K={}){let H=cK(of,K),Y={i:0},W=new Map(U),L=H?.elevateNodesOnSelect&&!lK(H.zIndexMode)?UT: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=bJ(M,H.nodeOrigin),P=p8(M.extent)?M.extent:H.nodeExtent,N=m8(O,P,i5(M));A={...H.defaults,...M,measured:{width:M.measured?.width,height:M.measured?.height},internals:{positionAbsolute:N,handleBounds:nf(M,A),z:ZT(M,L,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)iK(A,U,Z,K,Y);R||=M.selected??!1}return{nodesInitialized:T,hasSelectedNodes:R}}function ef(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 iK(Q,U,Z,K,H){let{elevateNodesOnSelect:Y,nodeOrigin:W,nodeExtent:L,zIndexMode:T}=cK(pK,K),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(ef(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*tf;if(H&&M.internals.rootParentIndex!==void 0)H.i=M.internals.rootParentIndex;let A=Y&&!lK(T)?UT:0,{x:O,y:P,z:N}=_S(Q,M,W,L,A,T),{positionAbsolute:V}=Q.internals,v=O!==V.x||P!==V.y;if(v||N!==Q.internals.z)U.set(Q.id,{...Q,internals:{...Q.internals,positionAbsolute:v?{x:O,y:P}:V,z:N}})}function ZT(Q,U,Z){let K=c5(Q.zIndex)?Q.zIndex:0;if(lK(Z))return K;return K+(Q.selected?U:0)}function _S(Q,U,Z,K,H,Y){let{x:W,y:L}=U.internals.positionAbsolute,T=i5(Q),R=bJ(Q,Z),M=p8(Q.extent)?m8(R,Q.extent,T):R,A=m8({x:W+M.x,y:L+M.y},K,T);if(Q.extent==="parent")A=aM(A,T,U);let O=ZT(Q,H,Y),P=U.internals.z??0;return{x:A.x,y:A.y,z:P>=O?P+1:O}}function nq(Q,U,Z,K=[0,0]){let H=[],Y=new Map;for(let W of Q){let L=U.get(W.parentId);if(!L)continue;let T=Y.get(W.parentId)?.expandedRect??B9(L),R=VK(T,W.rect);Y.set(W.parentId,{expandedRect:R,parent:L})}if(Y.size>0)Y.forEach(({expandedRect:W,parent:L},T)=>{let R=L.internals.positionAbsolute,M=i5(L),A=L.origin??K,O=W.x<R.x?Math.round(Math.abs(R.x-W.x)):0,P=W.y<R.y?Math.round(Math.abs(R.y-W.y)):0,N=Math.max(M.width,Math.round(W.width)),V=Math.max(M.height,Math.round(W.height)),v=(N-M.width)*A[0],C=(V-M.height)*A[1];if(O>0||P>0||v||C)H.push({id:T,type:"position",position:{x:L.position.x-O+v,y:L.position.y-P+C}}),Z.get(T)?.forEach((u)=>{if(!Q.some((f)=>f.id===u.id))H.push({id:u.id,type:"position",position:{x:u.position.x+O,y:u.position.y+P}})});if(M.width<W.width||M.height<W.height||O||P)H.push({id:T,type:"dimensions",setAttributes:!0,dimensions:{width:N+(O?A[0]*O-v:0),height:V+(P?A[1]*P-C:0)}})});return H}function FT(Q,U,Z,K,H,Y,W){let L=K?.querySelector(".xyflow__viewport"),T=!1;if(!L)return{changes:[],updatedInternals:T};let R=[],M=window.getComputedStyle(L),{m22:A}=new window.DOMMatrixReadOnly(M.transform),O=[];for(let P of Q.values()){let N=U.get(P.id);if(!N)continue;if(N.hidden){U.set(N.id,{...N,internals:{...N.internals,handleBounds:void 0}}),T=!0;continue}let V=dq(P.nodeElement),v=N.measured.width!==V.width||N.measured.height!==V.height;if(!!(V.width&&V.height&&(v||!N.internals.handleBounds||P.force))){let u=P.nodeElement.getBoundingClientRect(),f=p8(N.extent)?N.extent:Y,{positionAbsolute:j}=N.internals;if(N.parentId&&N.extent==="parent"){let h=U.get(N.parentId);if(h)j=aM(j,V,h)}else if(f)j=m8(j,f,V);let D={...N,measured:V,internals:{...N.internals,positionAbsolute:j,handleBounds:{source:kM("source",P.nodeElement,u,A,N.id),target:kM("target",P.nodeElement,u,A,N.id)}}};if(U.set(N.id,D),N.parentId)iK(D,U,Z,{nodeOrigin:H,zIndexMode:W});if(T=!0,v){if(R.push({id:N.id,type:"dimensions",dimensions:V}),N.expandParent&&N.parentId)O.push({id:N.id,parentId:N.parentId,rect:B9(D,H)})}}}if(O.length>0){let P=nq(O,U,Z,H);R.push(...P)}return{changes:R,updatedInternals:T}}async function XT({delta:Q,panZoom:U,transform:Z,translateExtent:K,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]],K);return!!W&&(W.x!==Z[0]||W.y!==Z[1]||W.k!==Z[2])}function mM(Q,U,Z,K,H,Y){let W=H,L=K.get(W)||new Map;K.set(W,L.set(Z,U)),W=`${H}-${Q}`;let T=K.get(W)||new Map;if(K.set(W,T.set(Z,U)),Y){W=`${H}-${Q}-${Y}`;let R=K.get(W)||new Map;K.set(W,R.set(Z,U))}}function dK(Q,U,Z){Q.clear(),U.clear();for(let K of Z){let{source:H,target:Y,sourceHandle:W=null,targetHandle:L=null}=K,T={edgeId:K.id,source:H,target:Y,sourceHandle:W,targetHandle:L},R=`${H}-${W}--${Y}-${L}`,M=`${Y}-${L}--${H}-${W}`;mM("source",T,M,Q,H,W),mM("target",T,R,Q,Y,L),U.set(K.id,K)}}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 gM(Q,U,Z){let K=Q;do{if(K?.matches?.(U))return!0;if(K===Z)return!1;K=K?.parentElement}while(K);return!1}function JS(Q,U,Z,K){let H=new Map;for(let[Y,W]of Q)if((W.selected||W.id===K)&&(!W.parentId||!KT(W,Q))&&(W.draggable||U&&typeof W.draggable>"u")){let L=Q.get(Y);if(L)H.set(Y,{id:Y,position:L.position||{x:0,y:0},distance:{x:Z.x-L.internals.positionAbsolute.x,y:Z.y-L.internals.positionAbsolute.y},extent:L.extent,parentId:L.parentId,origin:L.origin,expandParent:L.expandParent,internals:{positionAbsolute:L.internals.positionAbsolute||{x:0,y:0}},measured:{width:L.measured.width??0,height:L.measured.height??0}})}return H}function RK({nodeId:Q,dragItems:U,nodeLookup:Z,dragging:K=!0}){let H=[];for(let[W,L]of U){let T=Z.get(W)?.internals.userNode;if(T)H.push({...T,position:L.position,dragging:K})}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:K},H]}function $S({dragItems:Q,snapGrid:U,x:Z,y:K}){let H=Q.values().next().value;if(!H)return null;let Y={x:Z-H.distance.x,y:K-H.distance.y},W=A9(Y,U);return{x:W.x-Y.x,y:W.y-Y.y}}function HT({onNodeMouseDown:Q,getStoreItems:U,onDragStart:Z,onDrag:K,onDragStop:H}){let Y={x:null,y:null},W=0,L=new Map,T=!1,R={x:0,y:0},M=null,A=!1,O=null,P=!1,N=!1,V=null;function v({noDragClassName:u,handleSelector:f,domNode:j,isSelectable:D,nodeId:h,nodeClickDistance:E=0}){O=L2(j);function b({x:Q1,y:J1}){let{nodeLookup:m,nodeExtent:p,snapGrid:c,snapToGrid:a,nodeOrigin:i,onNodeDrag:o,onSelectionDrag:y,onError:g,updateNodePositions:q1}=U();Y={x:Q1,y:J1};let t=!1,W1=L.size>1,T1=W1&&p?wK(c8(L)):null,O1=W1&&a?$S({dragItems:L,snapGrid:c,x:Q1,y:J1}):null;for(let[L1,U1]of L){if(!m.has(L1))continue;let P1={x:Q1-U1.distance.x,y:J1-U1.distance.y};if(a)P1=O1?{x:Math.round(P1.x+O1.x),y:Math.round(P1.y+O1.y)}:A9(P1,c);let v1=null;if(W1&&p&&!U1.extent&&T1){let{positionAbsolute:D1}=U1.internals,g1=D1.x-T1.x+p[0][0],h1=D1.x+U1.measured.width-T1.x2+p[1][0],M1=D1.y-T1.y+p[0][1],r1=D1.y+U1.measured.height-T1.y2+p[1][1];v1=[[g1,M1],[h1,r1]]}let{position:A1,positionAbsolute:k1}=jK({nodeId:L1,nextPosition:P1,nodeLookup:m,nodeExtent:v1?v1:p,nodeOrigin:i,onError:g});t=t||U1.position.x!==A1.x||U1.position.y!==A1.y,U1.position=A1,U1.internals.positionAbsolute=k1}if(N=N||t,!t)return;if(q1(L,!0),V&&(K||o||!h&&y)){let[L1,U1]=RK({nodeId:h,dragItems:L,nodeLookup:m});if(K?.(V,L,L1,U1),o?.(V,L1,U1),!h)y?.(V,U1)}}async function k(){if(!M)return;let{transform:Q1,panBy:J1,autoPanSpeed:m,autoPanOnNodeDrag:p}=U();if(!p){T=!1,cancelAnimationFrame(W);return}let[c,a]=cq(R,M,m);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(k)}function x(Q1){let{nodeLookup:J1,multiSelectionActive:m,nodesDraggable:p,transform:c,snapGrid:a,snapToGrid:i,selectNodesOnDrag:o,onNodeDragStart:y,onSelectionDragStart:g,unselectNodesAndEdges:q1}=U();if(A=!0,(!o||!D)&&!m&&h){if(!J1.get(h)?.selected)q1()}if(D&&o&&h)Q?.(h);let t=uJ(Q1.sourceEvent,{transform:c,snapGrid:a,snapToGrid:i,containerBounds:M});if(Y=t,L=JS(J1,p,t,h),L.size>0&&(Z||y||!h&&g)){let[W1,T1]=RK({nodeId:h,dragItems:L,nodeLookup:J1});if(Z?.(Q1.sourceEvent,L,W1,T1),y?.(Q1.sourceEvent,W1,T1),!h)g?.(Q1.sourceEvent,T1)}}let $1=BJ().clickDistance(E).on("start",(Q1)=>{let{domNode:J1,nodeDragThreshold:m,transform:p,snapGrid:c,snapToGrid:a}=U();if(M=J1?.getBoundingClientRect()||null,P=!1,N=!1,V=Q1.sourceEvent,m===0)x(Q1);Y=uJ(Q1.sourceEvent,{transform:p,snapGrid:c,snapToGrid:a,containerBounds:M}),R=l5(Q1.sourceEvent,M)}).on("drag",(Q1)=>{let{autoPanOnNodeDrag:J1,transform:m,snapGrid:p,snapToGrid:c,nodeDragThreshold:a,nodeLookup:i}=U(),o=uJ(Q1.sourceEvent,{transform:m,snapGrid:p,snapToGrid:c,containerBounds:M});if(V=Q1.sourceEvent,Q1.sourceEvent.type==="touchmove"&&Q1.sourceEvent.touches.length>1||h&&!i.has(h))P=!0;if(P)return;if(!T&&J1&&A)T=!0,k();if(!A){let y=l5(Q1.sourceEvent,M),g=y.x-R.x,q1=y.y-R.y;if(Math.sqrt(g*g+q1*q1)>a)x(Q1)}if((Y.x!==o.xSnapped||Y.y!==o.ySnapped)&&L&&A)R=l5(Q1.sourceEvent,M),b(o)}).on("end",(Q1)=>{if(!A||P){if(P&&L.size>0)U().updateNodePositions(L,!1);return}if(T=!1,A=!1,cancelAnimationFrame(W),L.size>0){let{nodeLookup:J1,updateNodePositions:m,onNodeDragStop:p,onSelectionDragStop:c}=U();if(N)m(L,!1),N=!1;if(H||p||!h&&c){let[a,i]=RK({nodeId:h,dragItems:L,nodeLookup:J1,dragging:!1});if(H?.(Q1.sourceEvent,L,a,i),p?.(Q1.sourceEvent,a,i),!h)c?.(Q1.sourceEvent,i)}}}).filter((Q1)=>{let J1=Q1.target;return!Q1.button&&(!u||!gM(J1,`.${u}`,j))&&(!f||gM(J1,f,j))});O.call($1)}function C(){O?.on(".drag",null)}return{update:v,destroy:C}}function QS(Q,U,Z){let K=[],H={x:Q.x-Z,y:Q.y-Z,width:Z*2,height:Z*2};for(let Y of U.values())if(EJ(H,B9(Y))>0)K.push(Y);return K}var qS=250;function US(Q,U,Z,K){let H=[],Y=1/0,W=QS(Q,Z,U+qS);for(let L of W){let T=[...L.internals.handleBounds?.source??[],...L.internals.handleBounds?.target??[]];for(let R of T){if(K.nodeId===R.nodeId&&K.type===R.type&&K.id===R.id)continue;let{x:M,y:A}=b6(L,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 L=K.type==="source"?"target":"source";return H.find((T)=>T.type===L)??H[0]}return H[0]}function YT(Q,U,Z,K,H,Y=!1){let W=K.get(Q);if(!W)return null;let L=H==="strict"?W.internals.handleBounds?.[U]:[...W.internals.handleBounds?.source??[],...W.internals.handleBounds?.target??[]],T=(Z?L?.find((R)=>R.id===Z):L?.[0])??null;return T&&Y?{...T,...b6(W,T,T.position,!0)}:T}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 GS(Q,U){let Z=null;if(U)Z=!0;else if(Q&&!U)Z=!1;return Z}var WT=()=>!0;function ZS(Q,{connectionMode:U,connectionRadius:Z,handleId:K,nodeId:H,edgeUpdaterType:Y,isTarget:W,domNode:L,nodeLookup:T,lib:R,autoPanOnConnect:M,flowId:A,panBy:O,cancelConnection:P,onConnectStart:N,onConnect:V,onConnectEnd:v,isValidConnection:C=WT,onReconnectEnd:u,updateConnection:f,getTransform:j,getFromHandle:D,autoPanSpeed:h,dragThreshold:E=1,handleDomNode:b}){let k=hK(Q.target),x=0,$1,{x:Q1,y:J1}=l5(Q),m=zT(Y,b),p=L?.getBoundingClientRect(),c=!1;if(!p||!m)return;let a=YT(H,m,K,T,U);if(!a)return;let i=l5(Q,p),o=!1,y=null,g=!1,q1=null;function t(){if(!M||!p)return;let[A1,k1]=cq(i,p,h);O({x:A1,y:k1}),x=requestAnimationFrame(t)}let W1={...a,nodeId:H,type:m,position:a.position},T1=T.get(H),L1={inProgress:!0,isValid:null,from:b6(T1,W1,b1.Left,!0),fromHandle:W1,fromPosition:W1.position,fromNode:T1,to:i,toHandle:null,toPosition:jM[W1.position],toNode:null,pointer:i};function U1(){c=!0,f(L1),N?.(Q,{nodeId:H,handleId:K,handleType:m})}if(E===0)U1();function P1(A1){if(!c){let{x:r1,y:u1}=l5(A1),D0=r1-Q1,o1=u1-J1;if(!(D0*D0+o1*o1>E*E))return;U1()}if(!D()||!W1){v1(A1);return}let k1=j();if(i=l5(A1,p),$1=US(M9(i,k1,!1,[1,1]),Z,T,W1),!o)t(),o=!0;let D1=LT(A1,{handle:$1,connectionMode:U,fromNodeId:H,fromHandleId:K,fromType:W?"target":"source",isValidConnection:C,doc:k,lib:R,flowId:A,nodeLookup:T});q1=D1.handleDomNode,y=D1.connection,g=GS(!!$1,D1.isValid);let g1=T.get(H),h1=g1?b6(g1,W1,b1.Left,!0):L1.from,M1={...L1,from:h1,isValid:g,to:D1.toHandle&&g?g8({x:D1.toHandle.x,y:D1.toHandle.y},k1):i,toHandle:D1.toHandle,toPosition:g&&D1.toHandle?D1.toHandle.position:jM[W1.position],toNode:D1.toHandle?T.get(D1.toHandle.nodeId):null,pointer:i};f(M1),L1=M1}function v1(A1){if("touches"in A1&&A1.touches.length>0)return;if(c){if(($1||q1)&&y&&g)V?.(y);let{inProgress:k1,...D1}=L1,g1={...D1,toPosition:L1.toHandle?L1.toPosition:null};if(v?.(A1,g1),Y)u?.(A1,g1)}P(),cancelAnimationFrame(x),o=!1,g=!1,y=null,q1=null,k.removeEventListener("mousemove",P1),k.removeEventListener("mouseup",v1),k.removeEventListener("touchmove",P1),k.removeEventListener("touchend",v1)}k.addEventListener("mousemove",P1),k.addEventListener("mouseup",v1),k.addEventListener("touchmove",P1),k.addEventListener("touchend",v1)}function LT(Q,{handle:U,connectionMode:Z,fromNodeId:K,fromHandleId:H,fromType:Y,doc:W,lib:L,flowId:T,isValidConnection:R=WT,nodeLookup:M}){let A=Y==="target",O=U?W.querySelector(`.${L}-flow__handle[data-id="${T}-${U?.nodeId}-${U?.id}-${U?.type}"]`):null,{x:P,y:N}=l5(Q),V=W.elementFromPoint(P,N),v=V?.classList.contains(`${L}-flow__handle`)?V:O,C={handleDomNode:v,isValid:!1,connection:null,toHandle:null};if(v){let u=zT(void 0,v),f=v.getAttribute("data-nodeid"),j=v.getAttribute("data-handleid"),D=v.classList.contains("connectable"),h=v.classList.contains("connectableend");if(!f||!u)return C;let E={source:A?f:K,sourceHandle:A?j:H,target:A?K:f,targetHandle:A?H:j};C.connection=E;let k=D&&h&&(Z===u6.Strict?A&&u==="source"||!A&&u==="target":f!==K||j!==H);C.isValid=k&&R(E),C.toHandle=YT(f,u,j,M,Z,!0)}return C}var eq={onPointerDown:ZS,isValid:LT};function BT({domNode:Q,panZoom:U,getTransform:Z,getViewScale:K}){let H=L2(Q);function Y({translateExtent:L,width:T,height:R,zoomStep:M=1,pannable:A=!0,zoomable:O=!0,inversePan:P=!1}){let N=(f)=>{if(f.sourceEvent.type!=="wheel"||!U)return;let j=Z(),D=f.sourceEvent.ctrlKey&&T9()?10:1,h=-f.sourceEvent.deltaY*(f.sourceEvent.deltaMode===1?0.05:f.sourceEvent.deltaMode?1:0.002)*M,E=j[2]*Math.pow(2,h*D);U.scaleTo(E)},V=[0,0],v=(f)=>{if(f.sourceEvent.type==="mousedown"||f.sourceEvent.type==="touchstart")V=[f.sourceEvent.clientX??f.sourceEvent.touches[0].clientX,f.sourceEvent.clientY??f.sourceEvent.touches[0].clientY]},C=(f)=>{let j=Z();if(f.sourceEvent.type!=="mousemove"&&f.sourceEvent.type!=="touchmove"||!U)return;let D=[f.sourceEvent.clientX??f.sourceEvent.touches[0].clientX,f.sourceEvent.clientY??f.sourceEvent.touches[0].clientY],h=[D[0]-V[0],D[1]-V[1]];V=D;let E=K()*Math.max(j[2],Math.log(j[2]))*(P?-1:1),b={x:j[0]-h[0]*E,y:j[1]-h[1]*E},k=[[0,0],[T,R]];U.setViewportConstrained({x:b.x,y:b.y,zoom:j[2]},k,L)},u=DJ().on("start",v).on("zoom",A?C:null).on("zoom.wheel",O?N:null);H.call(u,{})}function W(){H.on("zoom",null)}return{update:Y,destroy:W,pointer:E2}}var _U=(Q)=>({x:Q.x,y:Q.y,zoom:Q.k}),OK=({x:Q,y:U,zoom:Z})=>E8.translate(Q,U).scale(Z),D6=(Q,U)=>Q.target.closest(`.${U}`),AT=(Q,U)=>U===2&&Array.isArray(Q)&&Q.includes(2),FS=(Q)=>((Q*=2)<=1?Q*Q*Q:(Q-=2)*Q*Q+2)/2,IK=(Q,U=0,Z=FS,K=()=>{})=>{let H=typeof U==="number"&&U>0;if(!H)K();return H?Q.transition().duration(U).ease(Z).on("end",K):Q},MT=(Q)=>{let U=Q.ctrlKey&&T9()?10:1;return-Q.deltaY*(Q.deltaMode===1?0.05:Q.deltaMode?1:0.002)*U};function XS({zoomPanValues:Q,noWheelClassName:U,d3Selection:Z,d3Zoom:K,panOnScrollMode:H,panOnScrollSpeed:Y,zoomOnPinch:W,onPanZoomStart:L,onPanZoom:T,onPanZoomEnd:R}){return(M)=>{if(D6(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 v=E2(M),C=MT(M),u=A*Math.pow(2,C);K.scaleTo(Z,u,v,M);return}let O=M.deltaMode===1?20:1,P=H===j3.Vertical?0:M.deltaX*O,N=H===j3.Horizontal?0:M.deltaY*O;if(!T9()&&M.shiftKey&&H!==j3.Vertical)P=M.deltaY*O,N=0;K.translateBy(Z,-(P/A)*Y,-(N/A)*Y,{internal:!0});let V=_U(Z.property("__zoom"));if(clearTimeout(Q.panScrollTimeout),!Q.isPanScrolling)Q.isPanScrolling=!0,L?.(M,V);else T?.(M,V);Q.panScrollTimeout=setTimeout(()=>{R?.(M,V),Q.isPanScrolling=!1},150)}}function KS({noWheelClassName:Q,preventScrolling:U,d3ZoomHandler:Z}){return function(K,H){let Y=K.type==="wheel",W=!U&&Y&&!K.ctrlKey,L=D6(K,Q);if(K.ctrlKey&&Y&&L)K.preventDefault();if(W||L)return null;K.preventDefault(),Z.call(this,K,H)}}function HS({zoomPanValues:Q,onDraggingChange:U,onPanZoomStart:Z}){return(K)=>{if(K.sourceEvent?.internal)return;let H=_U(K.transform);if(Q.mouseButton=K.sourceEvent?.button||0,Q.isZoomingOrPanning=!0,Q.prevViewport=H,K.sourceEvent?.type==="mousedown")U(!0);if(Z)Z?.(K.sourceEvent,H)}}function YS({zoomPanValues:Q,panOnDrag:U,onPaneContextMenu:Z,onTransformChange:K,onPanZoom:H}){return(Y)=>{if(Q.usedRightMouseButton=!!(Z&&AT(U,Q.mouseButton??0)),!Y.sourceEvent?.sync)K([Y.transform.x,Y.transform.y,Y.transform.k]);if(H&&!Y.sourceEvent?.internal)H?.(Y.sourceEvent,_U(Y.transform))}}function zS({zoomPanValues:Q,panOnDrag:U,panOnScroll:Z,onDraggingChange:K,onPanZoomEnd:H,onPaneContextMenu:Y}){return(W)=>{if(W.sourceEvent?.internal)return;if(Q.isZoomingOrPanning=!1,Y&&AT(U,Q.mouseButton??0)&&!Q.usedRightMouseButton&&W.sourceEvent)Y(W.sourceEvent);if(Q.usedRightMouseButton=!1,K(!1),H){let L=_U(W.transform);Q.prevViewport=L,clearTimeout(Q.timerId),Q.timerId=setTimeout(()=>{H?.(W.sourceEvent,L)},Z?150:0)}}}function WS({panActivationKeyPressed:Q,zoomActivationKeyPressed:U,zoomOnScroll:Z,zoomOnPinch:K,panOnDrag:H,panOnScroll:Y,zoomOnDoubleClick:W,userSelectionActive:L,noWheelClassName:T,noPanClassName:R,lib:M,connectionInProgress:A}){return(O)=>{let P=U||Z,N=K&&O.ctrlKey,V=O.type==="wheel";if(O.button===1&&O.type==="mousedown"&&(D6(O,`${M}-flow__node`)||D6(O,`${M}-flow__edge`)||D6(O,`${M}-flow__selection`)||D6(O,`${M}-flow__nodesselection`)))return!0;if(!H&&!P&&!Y&&!W&&!K)return!1;if(L)return!1;if(A&&!V)return!1;if(D6(O,T)&&V)return!1;if(D6(O,R)&&(!V||Y&&V&&!U))return!1;if(!K&&O.ctrlKey&&V)return!1;if(!K&&O.type==="touchstart"&&O.touches?.length>1)return O.preventDefault(),!1;if(!P&&!Y&&!N&&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 v=Array.isArray(H)&&H.includes(O.button)||!O.button||O.button<=1;return(!O.ctrlKey||V||Q)&&v}}function TT({domNode:Q,minZoom:U,maxZoom:Z,translateExtent:K,viewport:H,onPanZoom:Y,onPanZoomStart:W,onPanZoomEnd:L,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 m=J1[0];if(m)A=[[0,0],[m.contentRect.width,m.contentRect.height]]}):null)?.observe(Q);let P=DJ().extent(()=>A).scaleExtent([U,Z]).translateExtent(K),N=L2(Q).call(P);j({x:H.x,y:H.y,zoom:W9(H.zoom,U,Z)},[[0,0],[M.width,M.height]],K);let V=N.on("wheel.zoom"),v=N.on("dblclick.zoom");P.wheelDelta(MT);async function C(J1,m){if(N)return new Promise((p)=>{P?.interpolate(m?.interpolate==="linear"?d4:u8).transform(IK(N,m?.duration,m?.ease,()=>p(!0)),J1)});return!1}function u({noWheelClassName:J1,noPanClassName:m,onPaneContextMenu:p,userSelectionActive:c,panOnScroll:a,panOnDrag:i,panOnScrollMode:o,panOnScrollSpeed:y,preventScrolling:g,zoomOnPinch:q1,zoomOnScroll:t,zoomOnDoubleClick:W1,panActivationKeyPressed:T1=!1,zoomActivationKeyPressed:O1,lib:L1,onTransformChange:U1,connectionInProgress:P1,paneClickDistance:v1,selectionOnDrag:A1}){if(c&&!R.isZoomingOrPanning)f();let k1=a&&!O1&&!c;P.clickDistance(A1?1/0:!c5(v1)||v1<0?0:v1);let D1=k1?XS({zoomPanValues:R,noWheelClassName:J1,d3Selection:N,d3Zoom:P,panOnScrollMode:o,panOnScrollSpeed:y,zoomOnPinch:q1,onPanZoomStart:W,onPanZoom:Y,onPanZoomEnd:L}):KS({noWheelClassName:J1,preventScrolling:g,d3ZoomHandler:V});N.on("wheel.zoom",D1,{passive:!1});let g1=HS({zoomPanValues:R,onDraggingChange:T,onPanZoomStart:W});P.on("start",g1);let h1=YS({zoomPanValues:R,panOnDrag:i,onPaneContextMenu:!!p,onPanZoom:Y,onTransformChange:U1});P.on("zoom",h1);let M1=zS({zoomPanValues:R,panOnDrag:i,panOnScroll:a,onPaneContextMenu:p,onPanZoomEnd:L,onDraggingChange:T});P.on("end",M1);let r1=WS({panActivationKeyPressed:T1,zoomActivationKeyPressed:O1,panOnDrag:i,zoomOnScroll:t,panOnScroll:a,zoomOnDoubleClick:W1,zoomOnPinch:q1,userSelectionActive:c,noPanClassName:m,noWheelClassName:J1,lib:L1,connectionInProgress:P1});if(P.filter(r1),W1)N.on("dblclick.zoom",v);else N.on("dblclick.zoom",null)}function f(){P.on("zoom",null)}async function j(J1,m,p){let c=OK(J1),a=P?.constrain()(c,m,p);if(a)await C(a);return a}async function D(J1,m){let p=OK(J1);return await C(p,m),p}function h(J1){if(N){let m=OK(J1),p=N.property("__zoom");if(p.k!==J1.zoom||p.x!==J1.x||p.y!==J1.y)P?.transform(N,m,null,{sync:!0})}}function E(){let J1=N?kJ(N.node()):{x:0,y:0,k:1};return{x:J1.x,y:J1.y,zoom:J1.k}}async function b(J1,m){if(N)return new Promise((p)=>{P?.interpolate(m?.interpolate==="linear"?d4:u8).scaleTo(IK(N,m?.duration,m?.ease,()=>p(!0)),J1)});return!1}async function k(J1,m){if(N)return new Promise((p)=>{P?.interpolate(m?.interpolate==="linear"?d4:u8).scaleBy(IK(N,m?.duration,m?.ease,()=>p(!0)),J1)});return!1}function x(J1){P?.scaleExtent(J1)}function $1(J1){P?.translateExtent(J1)}function Q1(J1){let m=!c5(J1)||J1<0?0:J1;P?.clickDistance(m)}return{update:u,destroy:f,setViewport:D,setViewportConstrained:j,getViewport:E,scaleTo:b,scaleBy:k,setScaleExtent:x,setTranslateExtent:$1,syncViewport:h,setClickDistance:Q1}}var V3;(function(Q){Q.Line="line",Q.Handle="handle"})(V3||(V3={}));var RT=["top-left","top-right","bottom-left","bottom-right"],OT=["top","right","bottom","left"];function LS({width:Q,prevWidth:U,height:Z,prevHeight:K,affectsX:H,affectsY:Y}){let W=Q-U,L=Z-K,T=[W>0?1:W<0?-1:0,L>0?1:L<0?-1:0];if(W&&H)T[0]=T[0]*-1;if(L&&Y)T[1]=T[1]*-1;return T}function pM(Q){let U=Q.includes("right")||Q.includes("left"),Z=Q.includes("bottom")||Q.includes("top"),K=Q.includes("left"),H=Q.includes("top");return{isHorizontal:U,isVertical:Z,affectsX:K,affectsY:H}}function y6(Q,U){return Math.max(0,U-Q)}function k6(Q,U){return Math.max(0,Q-U)}function mq(Q,U,Z){return Math.max(0,U-Q,Q-Z)}function cM(Q,U){return Q?!U:U}function BS(Q,U,Z,K,H,Y,W,L){let{affectsX:T,affectsY:R}=U,{isHorizontal:M,isVertical:A}=U,O=M&&A,{xSnapped:P,ySnapped:N}=Z,{minWidth:V,maxWidth:v,minHeight:C,maxHeight:u}=K,{x:f,y:j,width:D,height:h,aspectRatio:E}=Q,b=Math.floor(M?P-Q.pointerX:0),k=Math.floor(A?N-Q.pointerY:0),x=D+(T?-b:b),$1=h+(R?-k:k),Q1=-Y[0]*D,J1=-Y[1]*h,m=mq(x,V,v),p=mq($1,C,u);if(W){let i=0,o=0;if(T&&b<0)i=y6(f+b+Q1,W[0][0]);else if(!T&&b>0)i=k6(f+x+Q1,W[1][0]);if(R&&k<0)o=y6(j+k+J1,W[0][1]);else if(!R&&k>0)o=k6(j+$1+J1,W[1][1]);m=Math.max(m,i),p=Math.max(p,o)}if(L){let i=0,o=0;if(T&&b>0)i=k6(f+b,L[0][0]);else if(!T&&b<0)i=y6(f+x,L[1][0]);if(R&&k>0)o=k6(j+k,L[0][1]);else if(!R&&k<0)o=y6(j+$1,L[1][1]);m=Math.max(m,i),p=Math.max(p,o)}if(H){if(M){let i=mq(x/E,C,u)*E;if(m=Math.max(m,i),W){let o=0;if(!T&&!R||T&&!R&&O)o=k6(j+J1+x/E,W[1][1])*E;else o=y6(j+J1+(T?b:-b)/E,W[0][1])*E;m=Math.max(m,o)}if(L){let o=0;if(!T&&!R||T&&!R&&O)o=y6(j+x/E,L[1][1])*E;else o=k6(j+(T?b:-b)/E,L[0][1])*E;m=Math.max(m,o)}}if(A){let i=mq($1*E,V,v)/E;if(p=Math.max(p,i),W){let o=0;if(!T&&!R||R&&!T&&O)o=k6(f+$1*E+Q1,W[1][0])/E;else o=y6(f+(R?k:-k)*E+Q1,W[0][0])/E;p=Math.max(p,o)}if(L){let o=0;if(!T&&!R||R&&!T&&O)o=y6(f+$1*E,L[1][0])/E;else o=k6(f+(R?k:-k)*E,L[0][0])/E;p=Math.max(p,o)}}}if(k=k+(k<0?p:-p),b=b+(b<0?m:-m),H)if(O)if(x>$1*E)k=(cM(T,R)?-b:b)/E;else b=(cM(T,R)?-k:k)*E;else if(M)k=b/E,R=T;else b=k*E,T=R;let c=T?f+b:f,a=R?j+k:j;return{width:D+(T?-b:b),height:h+(R?-k:k),x:Y[0]*b*(!T?1:-1)+c,y:Y[1]*k*(!R?1:-1)+a}}var IT={width:0,height:0,x:0,y:0},AS={...IT,pointerX:0,pointerY:0,aspectRatio:1};function MS(Q,U,Z){let K=U.position.x+Q.position.x,H=U.position.y+Q.position.y,Y=Q.measured.width??0,W=Q.measured.height??0,L=Z[0]*Y,T=Z[1]*W;return[[K-L,H-T],[K+Y-L,H+W-T]]}function wT({domNode:Q,nodeId:U,getStoreItems:Z,onChange:K,onEnd:H}){let Y=L2(Q),W={controlDirection:pM("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function L({controlPosition:R,boundaries:M,keepAspectRatio:A,resizeDirection:O,onResizeStart:P,onResize:N,onResizeEnd:V,shouldResize:v}){let C={...IT},u={...AS};W={boundaries:M,resizeDirection:O,keepAspectRatio:A,controlDirection:pM(R)};let f=void 0,j=null,D=[],h=void 0,E=void 0,b=void 0,k=BJ().on("start",(x)=>{let{nodeLookup:$1,transform:Q1,snapGrid:J1,snapToGrid:m,nodeOrigin:p,paneDomNode:c}=Z();if(f=$1.get(U),!f)return;j=c?.getBoundingClientRect()??null;let{xSnapped:a,ySnapped:i}=uJ(x.sourceEvent,{transform:Q1,snapGrid:J1,snapToGrid:m,containerBounds:j});if(C={width:f.measured.width??0,height:f.measured.height??0,x:f.position.x??0,y:f.position.y??0},u={...C,pointerX:a,pointerY:i,aspectRatio:C.width/C.height},h=void 0,E=p8(f.extent)?f.extent:void 0,f.parentId&&(f.extent==="parent"||f.expandParent))h=$1.get(f.parentId);if(h&&f.extent==="parent")E=[[0,0],[h.measured.width,h.measured.height]];D=[],b=void 0;for(let[o,y]of $1)if(y.parentId===U){if(D.push({id:o,position:{...y.position},extent:y.extent}),y.extent==="parent"||y.expandParent){let g=MS(y,f,y.origin??p);if(b)b=[[Math.min(g[0][0],b[0][0]),Math.min(g[0][1],b[0][1])],[Math.max(g[1][0],b[1][0]),Math.max(g[1][1],b[1][1])]];else b=g}}P?.(x,{...C})}).on("drag",(x)=>{let{transform:$1,snapGrid:Q1,snapToGrid:J1,nodeOrigin:m}=Z(),p=uJ(x.sourceEvent,{transform:$1,snapGrid:Q1,snapToGrid:J1,containerBounds:j}),c=[];if(!f)return;let{x:a,y:i,width:o,height:y}=C,g={},q1=f.origin??m,{width:t,height:W1,x:T1,y:O1}=BS(u,W.controlDirection,p,W.boundaries,W.keepAspectRatio,q1,E,b),L1=t!==o,U1=W1!==y,P1=T1!==a&&L1,v1=O1!==i&&U1;if(!P1&&!v1&&!L1&&!U1)return;let A1={prevValues:{...C},startX:u.x,startY:u.y,childNodes:D.map((h1)=>({...h1,position:{...h1.position}}))};if(P1||v1||q1[0]===1||q1[1]===1){if(g.x=P1?T1:C.x,g.y=v1?O1:C.y,C.x=g.x,C.y=g.y,D.length>0){let h1=T1-a,M1=O1-i;for(let r1 of D)r1.position={x:r1.position.x-h1+q1[0]*(t-o),y:r1.position.y-M1+q1[1]*(W1-y)},c.push(r1)}}if(L1||U1)g.width=L1&&(!W.resizeDirection||W.resizeDirection==="horizontal")?t:C.width,g.height=U1&&(!W.resizeDirection||W.resizeDirection==="vertical")?W1:C.height,C.width=g.width,C.height=g.height;if(h&&f.expandParent){let h1=q1[0]*(g.width??0);if(g.x&&g.x<h1)C.x=h1,u.x=u.x-(g.x-h1);let M1=q1[1]*(g.height??0);if(g.y&&g.y<M1)C.y=M1,u.y=u.y-(g.y-M1)}let k1=LS({width:C.width,prevWidth:o,height:C.height,prevHeight:y,affectsX:W.controlDirection.affectsX,affectsY:W.controlDirection.affectsY}),D1={...C,direction:k1};if(v?.(x,D1)===!1){C=A1.prevValues,u.x=A1.startX,u.y=A1.startY,D.forEach((h1,M1)=>{h1.position=A1.childNodes[M1].position});return}N?.(x,D1),K(g,c)}).on("end",(x)=>{V?.(x,{...C}),H?.({...C})});Y.call(k)}function T(){Y.on(".drag",null)}return{update:L,destroy:T}}var vT=p0(G4(),1),jT=p0(NT(),1);var CT=(Q)=>{let U,Z=new Set,K=(M,A)=>{let O=typeof M==="function"?M(U):M;if(!Object.is(O,U)){let P=U;U=(A!=null?A:typeof O!=="object"||O===null)?O:Object.assign({},U,O),Z.forEach((N)=>N(U,P))}},H=()=>U,T={setState:K,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(K,H,T);return T},fT=(Q)=>Q?CT(Q):CT;var{useDebugValue:OS}=vT.default,{useSyncExternalStoreWithSelector:IS}=jT.default,wS=(Q)=>Q;function rK(Q,U=wS,Z){let K=IS(Q.subscribe,Q.getState,Q.getServerState||Q.getInitialState,U,Z);return OS(K),K}var ST=(Q,U)=>{let Z=fT(Q),K=(H,Y=U)=>rK(Z,H,Y);return Object.assign(K,Z),K},VT=(Q,U)=>Q?ST(Q,U):ST;function h0(Q,U){if(Object.is(Q,U))return!0;if(typeof Q!=="object"||Q===null||typeof U!=="object"||U===null)return!1;if(Q instanceof Map&&U instanceof Map){if(Q.size!==U.size)return!1;for(let[K,H]of Q)if(!Object.is(H,U.get(K)))return!1;return!0}if(Q instanceof Set&&U instanceof Set){if(Q.size!==U.size)return!1;for(let K of Q)if(!U.has(K))return!1;return!0}let Z=Object.keys(Q);if(Z.length!==Object.keys(U).length)return!1;for(let K of Z)if(!Object.prototype.hasOwnProperty.call(U,K)||!Object.is(Q[K],U[K]))return!1;return!0}var UR=p0(iF(),1),UU=z1.createContext(null),PS=UU.Provider,GR=n2.error001("react");function H0(Q,U){let Z=z1.useContext(UU);if(Z===null)throw Error(GR);return rK(Z,Q,U)}function x0(){let Q=z1.useContext(UU);if(Q===null)throw Error(GR);return z1.useMemo(()=>({getState:Q.getState,setState:Q.setState,subscribe:Q.subscribe}),[Q])}var yT={display:"none"},NS={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},ZR="react-flow__node-desc",FR="react-flow__edge-desc",CS="react-flow__aria-live",fS=(Q)=>Q.ariaLiveMessage,SS=(Q)=>Q.ariaLabelConfig;function vS({rfId:Q}){let U=H0(fS);return H1.jsx("div",{id:`${CS}-${Q}`,"aria-live":"assertive","aria-atomic":"true",style:NS,children:U})}function jS({rfId:Q,disableKeyboardA11y:U}){let Z=H0(SS);return H1.jsxs(H1.Fragment,{children:[H1.jsx("div",{id:`${ZR}-${Q}`,style:yT,children:U?Z["node.a11yDescription.default"]:Z["node.a11yDescription.keyboardDisabled"]}),H1.jsx("div",{id:`${FR}-${Q}`,style:yT,children:Z["edge.a11yDescription.default"]}),!U&&H1.jsx(vS,{rfId:Q})]})}var s4=z1.forwardRef(({position:Q="top-left",children:U,className:Z,style:K,...H},Y)=>{let W=`${Q}`.split("-");return H1.jsx("div",{className:d0(["react-flow__panel",Z,...W]),style:K,ref:Y,...H,children:U})});s4.displayName="Panel";var kT="https://reactflow.dev/attribution";function VS({proOptions:Q,position:U="bottom-right"}){if(z1.useEffect(()=>{nM("react")},[]),Q?.hideAttribution)return null;return H1.jsx(s4,{position:U,className:"react-flow__attribution","data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${kT}`,children:H1.jsx("a",{href:kT,target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}var yS=(Q)=>{let U=[],Z=[];for(let[,K]of Q.nodeLookup)if(K.selected)U.push(K.internals.userNode);for(let[,K]of Q.edgeLookup)if(K.selected)Z.push(K);return{selectedNodes:U,selectedEdges:Z}},JU=(Q)=>Q.id;function kS(Q,U){return h0(Q.selectedNodes.map(JU),U.selectedNodes.map(JU))&&h0(Q.selectedEdges.map(JU),U.selectedEdges.map(JU))}function DS({onSelectionChange:Q}){let U=x0(),{selectedNodes:Z,selectedEdges:K}=H0(yS,kS);return z1.useEffect(()=>{let H={nodes:Z,edges:K};Q?.(H),U.getState().onSelectionChangeHandlers.forEach((Y)=>Y(H))},[Z,K,Q]),null}var uS=(Q)=>!!Q.onSelectionChangeHandlers;function bS({onSelectionChange:Q}){let U=H0(uS);if(Q||U)return H1.jsx(DS,{onSelectionChange:Q});return null}var XR=[0,0],ES={x:0,y:0,zoom:1},hS=["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"],DT=[...hS,"rfId"],xS=(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}),uT={translateExtent:L9,nodeOrigin:XR,minZoom:0.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function mS(Q){let{setNodes:U,setEdges:Z,setMinZoom:K,setMaxZoom:H,setTranslateExtent:Y,setNodeExtent:W,reset:L,setDefaultNodesAndEdges:T}=H0(xS,h0),R=x0();z1.useEffect(()=>{return T(Q.defaultNodes,Q.defaultEdges),()=>{M.current=uT,L()}},[]);let M=z1.useRef(uT);return z1.useEffect(()=>{for(let A of DT){let O=Q[A],P=M.current[A];if(O===P)continue;if(typeof Q[A]>"u")continue;if(A==="nodes")U(O);else if(A==="edges")Z(O);else if(A==="minZoom")K(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:oM(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},DT.map((A)=>Q[A])),null}function bT(){if(typeof window>"u"||!window.matchMedia)return null;return window.matchMedia("(prefers-color-scheme: dark)")}function gS(Q){let[U,Z]=z1.useState(Q==="system"?null:Q);return z1.useEffect(()=>{if(Q!=="system"){Z(Q);return}let K=bT(),H=()=>Z(K?.matches?"dark":"light");return H(),K?.addEventListener("change",H),()=>{K?.removeEventListener("change",H)}},[Q]),U!==null?U:bT()?.matches?"dark":"light"}var ET=typeof document<"u"?document:null;function mJ(Q=null,U={target:ET,actInsideInputWithModifier:!0}){let[Z,K]=z1.useState(!1),H=z1.useRef(!1),Y=z1.useRef(new Set([])),[W,L]=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
|
-
`)),M=R.reduce((A,O)=>A.concat(...O),[]);return[R,M]}return[[],[]]},[Q]);return z1.useEffect(()=>{let T=U?.target??ET,R=U?.actInsideInputWithModifier??!0;if(Q!==null){let M=(P)=>{if(H.current=P.ctrlKey||P.metaKey||P.shiftKey||P.altKey,(!H.current||H.current&&!R)&&xK(P))return!1;let V=xT(P.code,B);if(Y.current.add(P[V]),hT(W,Y.current,!1)){let j=P.composedPath?.()?.[0]||P.target,f=j?.nodeName==="BUTTON"||j?.nodeName==="A";if(U.preventDefault!==!1&&(H.current||!f))P.preventDefault();K(!0)}},A=(P)=>{let N=xT(P.code,B);if(hT(W,Y.current,!0))K(!1),Y.current.clear();else Y.current.delete(P[N]);if(P.key==="Meta")Y.current.clear();H.current=!1},O=()=>{Y.current.clear(),K(!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,K]),Z}function hT(Q,U,Z){return Q.filter((K)=>Z||K.length===U.size).some((K)=>K.every((H)=>U.has(H)))}function xT(Q,U){return U.includes(Q)?"code":"key"}var pS=()=>{let Q=x0();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:K}=Q.getState();return K?K.scaleTo(U,Z):!1},getZoom:()=>Q.getState().transform[2],setViewport:async(U,Z)=>{let{transform:[K,H,Y],panZoom:W}=Q.getState();if(!W)return!1;return await W.setViewport({x:U.x??K,y:U.y??H,zoom:U.zoom??Y},Z),!0},getViewport:()=>{let[U,Z,K]=Q.getState().transform;return{x:U,y:Z,zoom:K}},setCenter:async(U,Z,K)=>{return Q.getState().setCenter(U,Z,K)},fitBounds:async(U,Z)=>{let{width:K,height:H,minZoom:Y,maxZoom:W,panZoom:B}=Q.getState(),T=hJ(U,K,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:K,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 M9(R,K,A,M)},flowToScreenPosition:(U)=>{let{transform:Z,domNode:K}=Q.getState();if(!K)return U;let{x:H,y:Y}=K.getBoundingClientRect(),W=g8(U,Z);return{x:W.x+H,y:W.y+Y}}}},[])};function KR(Q,U){let Z=[],K=new Map,H=[];for(let Y of Q)if(Y.type==="add"){H.push(Y);continue}else if(Y.type==="remove"||Y.type==="replace")K.set(Y.id,[Y]);else{let W=K.get(Y.id);if(W)W.push(Y);else K.set(Y.id,[Y])}for(let Y of U){let W=K.get(Y.id);if(!W){Z.push(Y);continue}if(W[0].type==="remove")continue;if(W[0].type==="replace"){Z.push({...W[0].item});continue}let B={...Y};for(let T of W)cS(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 cS(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 HR(Q,U){return KR(Q,U)}function lS(Q,U){return KR(Q,U)}function l8(Q,U){return{id:Q,type:"select",selected:U}}function R9(Q,U=new Set,Z=!1){let K=[];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;K.push(l8(Y.id,W))}}return K}function mT({items:Q=[],lookup:U}){let Z=[],K=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(K.get(H)===void 0)Z.push({id:H,type:"remove"});return Z}function gT(Q){return{id:Q.id,type:"remove"}}var iS=kK("React Flow","https://reactflow.dev/");function dS(Q,U,Z={}){return JT(Q,U,{...Z,onError:Z.onError??iS})}var pT=(Q)=>lM(Q),rS=(Q)=>fK(Q);function YR(Q){return z1.forwardRef(Q)}var zR=typeof window<"u"?z1.useLayoutEffect:z1.useEffect;function cT(Q){let[U,Z]=z1.useState(BigInt(0)),[K]=z1.useState(()=>aS(()=>Z((H)=>H+BigInt(1))));return zR(()=>{let H=K.get();if(H.length)Q(H),K.reset()},[U]),K}function aS(Q){let U=[];return{get:()=>U,reset:()=>{U=[]},push:(Z)=>{U.push(Z),Q()}}}var WR=z1.createContext(null);function sS({children:Q}){let U=x0(),Z=z1.useCallback((B)=>{let{nodes:T=[],setNodes:R,hasDefaultNodes:M,onNodesChange:A,nodeLookup:O,fitViewQueued:P,onNodesChangeMiddlewareMap:N}=U.getState(),V=T;for(let f of B)V=typeof f==="function"?f(V):f;let j=mT({items:V,lookup:O});for(let f of N.values())j=f(j);if(M)R(V);if(j.length>0)A?.(j);else if(P)window.requestAnimationFrame(()=>{let{fitViewQueued:f,nodes:u,setNodes:C}=U.getState();if(f)C(u)})},[]),K=cT(Z),H=z1.useCallback((B)=>{let{edges:T=[],setEdges:R,hasDefaultEdges:M,onEdgesChange:A,edgeLookup:O}=U.getState(),P=T;for(let N of B)P=typeof N==="function"?N(P):N;if(M)R(P);else if(A)A(mT({items:P,lookup:O}))},[]),Y=cT(H),W=z1.useMemo(()=>({nodeQueue:K,edgeQueue:Y}),[]);return H1.jsx(WR.Provider,{value:W,children:Q})}function tS(){let Q=z1.useContext(WR);if(!Q)throw Error("useBatchContext must be used within a BatchProvider");return Q}var oS=(Q)=>!!Q.panZoom;function gJ(){let Q=pS(),U=x0(),Z=tS(),K=H0(oS),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:P}=U.getState(),N=pT(A)?A:O.get(A.id),V=N.parentId?uK(N.position,N.measured,N.parentId,O,P):N.position,j={...N,position:V,width:N.measured?.width??N.width,height:N.measured?.height??N.height};return L9(j)},R=(A,O,P={replace:!1})=>{W((N)=>N.map((V)=>{if(V.id===A){let j=typeof O==="function"?O(V):O;return P.replace&&pT(j)?j:{...V,...j}}return V}))},M=(A,O,P={replace:!1})=>{B((N)=>N.map((V)=>{if(V.id===A){let j=typeof O==="function"?O(V):O;return P.replace&&rS(j)?j:{...V,...j}}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((P)=>[...P,...O])},addEdges:(A)=>{let O=Array.isArray(A)?A:[A];Z.edgeQueue.push((P)=>[...P,...O])},toObject:()=>{let{nodes:A=[],edges:O=[],transform:P}=U.getState(),[N,V,j]=P;return{nodes:A.map((f)=>({...f})),edges:O.map((f)=>({...f})),viewport:{x:N,y:V,zoom:j}}},deleteElements:async({nodes:A=[],edges:O=[]})=>{let{nodes:P,edges:N,onNodesDelete:V,onEdgesDelete:j,triggerNodeChanges:f,triggerEdgeChanges:u,onDelete:C,onBeforeDelete:v}=U.getState(),{nodes:D,edges:h}=await rM({nodesToRemove:A,edgesToRemove:O,nodes:P,edges:N,onBeforeDelete:v}),E=h.length>0,b=D.length>0;if(E){let k=h.map(gT);j?.(h),u(k)}if(b){let k=D.map(gT);V?.(D),f(k)}if(b||E)C?.({nodes:D,edges:h});return{deletedNodes:D,deletedEdges:h}},getIntersectingNodes:(A,O=!0,P)=>{let N=yK(A),V=N?A:T(A),j=P!==void 0;if(!V)return[];return(P||U.getState().nodes).filter((f)=>{let u=U.getState().nodeLookup.get(f.id);if(u&&!N&&(f.id===A.id||!u.internals.positionAbsolute))return!1;let C=L9(j?f:u),v=EJ(C,V);return O&&v>0||v>=C.width*C.height||v>=V.width*V.height})},isNodeIntersecting:(A,O,P=!0)=>{let V=yK(A)?A:T(A);if(!V)return!1;let j=EJ(V,O);return P&&j>0||j>=O.width*O.height||j>=V.width*V.height},updateNode:R,updateNodeData:(A,O,P={replace:!1})=>{R(A,(N)=>{let V=typeof O==="function"?O(N):O;return P.replace?{...N,data:V}:{...N,data:{...N.data,...V}}},P)},updateEdge:M,updateEdgeData:(A,O,P={replace:!1})=>{M(A,(N)=>{let V=typeof O==="function"?O(N):O;return P.replace?{...N,data:V}:{...N,data:{...N.data,...V}}},P)},getNodesBounds:(A)=>{let{nodeLookup:O,nodeOrigin:P}=U.getState();return jK(A,{nodeLookup:O,nodeOrigin:P})},getHandleConnections:({type:A,id:O,nodeId:P})=>Array.from(U.getState().connectionLookup.get(`${P}-${A}${O?`-${O}`:""}`)?.values()??[]),getNodeConnections:({type:A,handleId:O,nodeId:P})=>Array.from(U.getState().connectionLookup.get(`${P}${A?O?`-${A}-${O}`:`-${A}`:""}`)?.values()??[]),fitView:async(A)=>{let O=U.getState().fitViewResolver??tM();return U.setState({fitViewQueued:!0,fitViewOptions:A,fitViewResolver:O}),Z.nodeQueue.push((P)=>[...P]),O.promise}}},[]);return z1.useMemo(()=>{return{...H,...Q,viewportInitialized:K}},[K])}var lT=(Q)=>Q.selected,nS=typeof window<"u"?window:void 0;function eS({deleteKeyCode:Q,multiSelectionKeyCode:U}){let Z=x0(),{deleteElements:K}=gJ(),H=mJ(Q,{actInsideInputWithModifier:!1}),Y=mJ(U,{target:nS});z1.useEffect(()=>{if(H){let{edges:W,nodes:B}=Z.getState();K({nodes:B.filter(lT),edges:W.filter(lT)}),Z.setState({nodesSelectionActive:!1})}},[H]),z1.useEffect(()=>{Z.setState({multiSelectionActive:Y})},[Y])}function _j(Q){let U=x0();z1.useEffect(()=>{let Z=()=>{if(!Q.current||!(Q.current.checkVisibility?.()??!0))return!1;let K=dq(Q.current);if(K.height===0||K.width===0)U.getState().onError?.("004",n2.error004());U.setState({width:K.width||500,height:K.height||500})};if(Q.current){Z(),window.addEventListener("resize",Z);let K=new ResizeObserver(()=>Z());return K.observe(Q.current),()=>{if(window.removeEventListener("resize",Z),K&&Q.current)K.unobserve(Q.current)}}},[])}var GU={position:"absolute",width:"100%",height:"100%",top:0,left:0},Jj=(Q)=>({userSelectionActive:Q.userSelectionActive,lib:Q.lib,connectionInProgress:Q.connection.inProgress});function $j({onPaneContextMenu:Q,zoomOnScroll:U=!0,zoomOnPinch:Z=!0,panOnScroll:K=!1,panActivationKeyPressed:H,panOnScrollSpeed:Y=0.5,panOnScrollMode:W=v3.Free,zoomOnDoubleClick:B=!0,panOnDrag:T=!0,defaultViewport:R,translateExtent:M,minZoom:A,maxZoom:O,zoomActivationKeyCode:P,preventScrolling:N=!0,children:V,noWheelClassName:j,noPanClassName:f,onViewportChange:u,isControlledViewport:C,paneClickDistance:v,selectionOnDrag:D}){let h=x0(),E=z1.useRef(null),{userSelectionActive:b,lib:k,connectionInProgress:x}=H0(Jj,h0),$1=mJ(P),Q1=z1.useRef();_j(E);let J1=z1.useCallback((m)=>{if(u?.({x:m[0],y:m[1],zoom:m[2]}),!C)h.setState({transform:m})},[u,C]);return z1.useEffect(()=>{if(E.current){Q1.current=TT({domNode:E.current,minZoom:A,maxZoom:O,translateExtent:M,viewport:R,onDraggingChange:(a)=>h.setState((i)=>i.paneDragging===a?i:{paneDragging:a}),onPanZoomStart:(a,i)=>{let{onViewportChangeStart:o,onMoveStart:y}=h.getState();y?.(a,i),o?.(i)},onPanZoom:(a,i)=>{let{onViewportChange:o,onMove:y}=h.getState();y?.(a,i),o?.(i)},onPanZoomEnd:(a,i)=>{let{onViewportChangeEnd:o,onMoveEnd:y}=h.getState();y?.(a,i),o?.(i)}});let{x:m,y:p,zoom:c}=Q1.current.getViewport();return h.setState({panZoom:Q1.current,transform:[m,p,c],domNode:E.current.closest(".react-flow")}),()=>{Q1.current?.destroy()}}},[]),z1.useEffect(()=>{Q1.current?.update({onPaneContextMenu:Q,zoomOnScroll:U,zoomOnPinch:Z,panOnScroll:K,panActivationKeyPressed:H,panOnScrollSpeed:Y,panOnScrollMode:W,zoomOnDoubleClick:B,panOnDrag:T,zoomActivationKeyPressed:$1,preventScrolling:N,noPanClassName:f,userSelectionActive:b,noWheelClassName:j,lib:k,onTransformChange:J1,connectionInProgress:x,selectionOnDrag:D,paneClickDistance:v})},[Q,U,Z,K,H,Y,W,B,T,$1,N,f,b,j,k,J1,x,D,v]),H1.jsx("div",{className:"react-flow__renderer",ref:E,style:GU,children:V})}var Qj=(Q)=>({userSelectionActive:Q.userSelectionActive,userSelectionRect:Q.userSelectionRect});function qj(){let{userSelectionActive:Q,userSelectionRect:U}=H0(Qj,h0);if(!(Q&&U))return null;return H1.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 aK=(Q,U)=>{return(Z)=>{if(Z.target!==U.current)return;Q?.(Z)}},Uj=(Q)=>({userSelectionActive:Q.userSelectionActive,elementsSelectable:Q.elementsSelectable,dragging:Q.paneDragging,panBy:Q.panBy,autoPanSpeed:Q.autoPanSpeed});function Gj({isSelecting:Q,selectionKeyPressed:U,selectionMode:Z=x8.Full,panOnDrag:K,autoPanOnSelection:H,paneClickDistance:Y,selectionOnDrag:W,onSelectionStart:B,onSelectionEnd:T,onPaneClick:R,onPaneContextMenu:M,onPaneScroll:A,onPaneMouseEnter:O,onPaneMouseMove:P,onPaneMouseLeave:N,children:V}){let j=z1.useRef(0),f=x0(),{userSelectionActive:u,elementsSelectable:C,dragging:v,panBy:D,autoPanSpeed:h}=H0(Uj,h0),E=C&&(Q||u),b=z1.useRef(null),k=z1.useRef(),x=z1.useRef(new Set),$1=z1.useRef(new Set),Q1=z1.useRef(!1),J1=z1.useRef(!1),m=z1.useRef({x:0,y:0}),p=z1.useRef(!1),c=(U1)=>{if(J1.current||Q1.current||f.getState().connection.inProgress){J1.current=!1,Q1.current=!1;return}R?.(U1),f.getState().resetSelectedElements(),f.setState({nodesSelectionActive:!1})},a=(U1)=>{if(Array.isArray(K)&&K?.includes(2)){U1.preventDefault();return}M?.(U1)},i=A?(U1)=>A(U1):void 0,o=(U1)=>{if(J1.current)U1.stopPropagation(),J1.current=!1},y=(U1)=>{if(U1.pointerType==="touch"&&K!==!1&&!U)return;let{domNode:P1,transform:j1}=f.getState();if(k.current=P1?.getBoundingClientRect(),!k.current)return;let A1=U1.target===b.current;if(!A1&&!!U1.target.closest(".nokey")||!Q||!(W&&A1||U)||U1.button!==0||!U1.isPrimary)return;U1.target?.setPointerCapture?.(U1.pointerId),J1.current=!1;let{x:g1,y:h1}=l5(U1.nativeEvent,k.current),M1=M9({x:g1,y:h1},j1);if(f.setState({userSelectionRect:{width:0,height:0,startX:M1.x,startY:M1.y,x:g1,y:h1}}),!A1)U1.stopPropagation(),U1.preventDefault()};function g(U1,P1){let{userSelectionRect:j1}=f.getState();if(!j1)return;let{transform:A1,nodeLookup:k1,edgeLookup:D1,connectionLookup:g1,triggerNodeChanges:h1,triggerEdgeChanges:M1,defaultEdgeOptions:r1}=f.getState(),u1={x:j1.startX,y:j1.startY},{x:D0,y:o1}=g8(u1,A1),X2={startX:u1.x,startY:u1.y,x:U1<D0?U1:D0,y:P1<o1?P1:o1,width:Math.abs(U1-D0),height:Math.abs(P1-o1)},K2=x.current,N2=$1.current;x.current=new Set(pq(k1,X2,A1,Z===x8.Partial,!0).map((C2)=>C2.id)),$1.current=new Set;let A2=r1?.selectable??!0;for(let C2 of x.current){let M2=g1.get(C2);if(!M2)continue;for(let{edgeId:H2}of M2.values()){let _2=D1.get(H2);if(_2&&(_2.selectable??A2))$1.current.add(H2)}}if(!bK(K2,x.current)){let C2=R9(k1,x.current,!0);h1(C2)}if(!bK(N2,$1.current)){let C2=R9(D1,$1.current);M1(C2)}f.setState({userSelectionRect:X2,userSelectionActive:!0,nodesSelectionActive:!1})}function q1(){if(!H||!k.current)return;let[U1,P1]=cq(m.current,k.current,h);D({x:U1,y:P1}).then((j1)=>{if(!J1.current||!j1){j.current=requestAnimationFrame(q1);return}let{x:A1,y:k1}=m.current;g(A1,k1),j.current=requestAnimationFrame(q1)})}let t=()=>{cancelAnimationFrame(j.current),j.current=0,p.current=!1};z1.useEffect(()=>{return()=>t()},[]);let W1=(U1)=>{let{userSelectionRect:P1,transform:j1,resetSelectedElements:A1}=f.getState();if(!k.current||!P1)return;let{x:k1,y:D1}=l5(U1.nativeEvent,k.current);m.current={x:k1,y:D1};let g1=g8({x:P1.startX,y:P1.startY},j1);if(!J1.current){let h1=U?0:Y;if(Math.hypot(k1-g1.x,D1-g1.y)<=h1)return;A1(),B?.(U1)}if(J1.current=!0,!p.current)q1(),p.current=!0;g(k1,D1)},T1=(U1)=>{if(!E){if(U1.target===b.current&&f.getState().connection.inProgress)Q1.current=!0;return}if(U1.button!==0)return;if(U1.target?.releasePointerCapture?.(U1.pointerId),!u&&U1.target===b.current&&f.getState().userSelectionRect)c?.(U1);if(f.setState({userSelectionActive:!1,userSelectionRect:null}),J1.current)T?.(U1),f.setState({nodesSelectionActive:x.current.size>0});t()},O1=(U1)=>{U1.target?.releasePointerCapture?.(U1.pointerId),t()},B1=K===!0||Array.isArray(K)&&K.includes(0);return H1.jsxs("div",{className:d0(["react-flow__pane",{draggable:B1,dragging:v,selection:Q}]),onClick:E?void 0:aK(c,b),onContextMenu:aK(a,b),onWheel:aK(i,b),onPointerEnter:E?void 0:O,onPointerMove:E?W1:P,onPointerUp:T1,onPointerCancel:E?O1:void 0,onPointerDownCapture:E?y:void 0,onClickCapture:E?o:void 0,onPointerLeave:N,ref:b,style:GU,children:[V,H1.jsx(qj,{})]})}function tK({id:Q,store:U,unselect:Z=!1,nodeRef:K}){let{addSelectedNodes:H,unselectNodesAndEdges:Y,multiSelectionActive:W,nodeLookup:B,onError:T}=U.getState(),R=B.get(Q);if(!R){T?.("012",n2.error012(Q));return}if(U.setState({nodesSelectionActive:!1}),!R.selected)H([Q]);else if(Z||R.selected&&W)Y({nodes:[R],edges:[]}),requestAnimationFrame(()=>K?.current?.blur())}function BR({nodeRef:Q,disabled:U=!1,noDragClassName:Z,handleSelector:K,nodeId:H,isSelectable:Y,nodeClickDistance:W}){let B=x0(),[T,R]=z1.useState(!1),M=z1.useRef();return z1.useEffect(()=>{if(U)return;return M.current=HT({getStoreItems:()=>B.getState(),onNodeMouseDown:(A)=>{tK({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:K,domNode:Q.current,isSelectable:Y,nodeId:H,nodeClickDistance:W})},[Z,K,U,Y,Q,H,W]),T}var Zj=(Q)=>(U)=>U.selected&&(U.draggable||Q&&typeof U.draggable>"u");function LR(){let Q=x0();return z1.useCallback((Z)=>{let{nodeExtent:K,snapToGrid:H,snapGrid:Y,nodesDraggable:W,onError:B,updateNodePositions:T,nodeLookup:R,nodeOrigin:M}=Q.getState(),A=new Map,O=Zj(W),P=H?Y[0]:5,N=H?Y[1]:5,V=Z.direction.x*P*Z.factor,j=Z.direction.y*N*Z.factor;for(let[,f]of R){if(!O(f))continue;let u={x:f.internals.positionAbsolute.x+V,y:f.internals.positionAbsolute.y+j};if(H)u=A9(u,Y);let{position:C,positionAbsolute:v}=vK({nodeId:f.id,nextPosition:u,nodeLookup:R,nodeExtent:K,nodeOrigin:M,onError:B});f.position=C,f.internals.positionAbsolute=v,A.set(f.id,f)}T(A)},[])}var oK=z1.createContext(null),Fj=oK.Provider;oK.Consumer;var nK=()=>{return z1.useContext(oK)},Xj=(Q)=>({connectOnClick:Q.connectOnClick,noPanClassName:Q.noPanClassName,rfId:Q.rfId}),AR=z1.createContext(null);function Kj({children:Q}){let U=H0(Xj,h0);return H1.jsx(AR.Provider,{value:U,children:Q})}function Hj(){let Q=z1.useContext(AR);if(!Q)throw Error("useHandleConfig must be used within a HandleConfigProvider");return Q}var Yj={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},zj=(Q,U,Z)=>(K)=>{let{connectionClickStartHandle:H,connectionMode:Y,connection:W}=K,{fromHandle:B,toHandle:T,isValid:R}=W;if(!B&&!H)return Yj;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===D6.Strict?B?.type!==Z:Q!==B?.nodeId||U!==B?.id,connectionInProcess:!!B,clickConnectionInProcess:!!H,valid:M&&R}};function Wj({type:Q="source",position:U=b1.Top,isValidConnection:Z,isConnectable:K=!0,isConnectableStart:H=!0,isConnectableEnd:Y=!0,id:W,onConnect:B,children:T,className:R,onMouseDown:M,onTouchStart:A,...O},P){let N=W||null,V=Q==="target",j=x0(),f=nK(),{connectOnClick:u,noPanClassName:C,rfId:v}=Hj(),{connectingFrom:D,connectingTo:h,clickConnecting:E,isPossibleEndHandle:b,connectionInProcess:k,clickConnectionInProcess:x,valid:$1}=H0(zj(f,N,Q),h0);if(!f)j.getState().onError?.("010",n2.error010());let Q1=(p)=>{let{defaultEdgeOptions:c,onConnect:a,hasDefaultEdges:i}=j.getState(),o={...c,...p};if(i){let{edges:y,setEdges:g,onError:q1}=j.getState();g(dS(o,y,{onError:q1}))}a?.(o),B?.(o)},J1=(p)=>{if(!f)return;let c=mK(p.nativeEvent);if(H&&(c&&p.button===0||!c)){let a=j.getState();eq.onPointerDown(p.nativeEvent,{handleDomNode:p.currentTarget,autoPanOnConnect:a.autoPanOnConnect,connectionMode:a.connectionMode,connectionRadius:a.connectionRadius,domNode:a.domNode,nodeLookup:a.nodeLookup,lib:a.lib,isTarget:V,handleId:N,nodeId:f,flowId:a.rfId,panBy:a.panBy,cancelConnection:a.cancelConnection,onConnectStart:a.onConnectStart,onConnectEnd:(...i)=>j.getState().onConnectEnd?.(...i),updateConnection:a.updateConnection,onConnect:Q1,isValidConnection:Z||((...i)=>j.getState().isValidConnection?.(...i)??!0),getTransform:()=>j.getState().transform,getFromHandle:()=>j.getState().connection.fromHandle,autoPanSpeed:a.autoPanSpeed,dragThreshold:a.connectionDragThreshold})}if(c)M?.(p);else A?.(p)},m=(p)=>{let{onClickConnectStart:c,onClickConnectEnd:a,connectionClickStartHandle:i,connectionMode:o,isValidConnection:y,lib:g,rfId:q1,nodeLookup:t,connection:W1}=j.getState();if(!f||!i&&!H)return;if(!i){c?.(p.nativeEvent,{nodeId:f,handleId:N,handleType:Q}),j.setState({connectionClickStartHandle:{nodeId:f,type:Q,id:N}});return}let T1=hK(p.target),O1=Z||y,{connection:B1,isValid:U1}=eq.isValid(p.nativeEvent,{handle:{nodeId:f,id:N,type:Q},connectionMode:o,fromNodeId:i.nodeId,fromHandleId:i.id||null,fromType:i.type,isValidConnection:O1,flowId:q1,doc:T1,lib:g,nodeLookup:t});if(U1&&B1)Q1(B1);let P1=structuredClone(W1);delete P1.inProgress,P1.toPosition=P1.toHandle?P1.toHandle.position:null,a?.(p,P1),j.setState({connectionClickStartHandle:null})};return H1.jsx("div",{"data-handleid":N,"data-nodeid":f,"data-handlepos":U,"data-id":`${v}-${f}-${N}-${Q}`,className:d0(["react-flow__handle",`react-flow__handle-${U}`,"nodrag",C,R,{source:!V,target:V,connectable:K,connectablestart:H,connectableend:Y,clickconnecting:E,connectingfrom:D,connectingto:h,valid:$1,connectionindicator:K&&(!k||b)&&(k||x?Y:H)}]),onMouseDown:J1,onTouchStart:J1,onClick:u?m:void 0,ref:P,...O,children:T})}var QU=z1.memo(YR(Wj));function Bj({data:Q,isConnectable:U,sourcePosition:Z=b1.Bottom}){return H1.jsxs(H1.Fragment,{children:[Q?.label,H1.jsx(QU,{type:"source",position:Z,isConnectable:U})]})}function Lj({data:Q,isConnectable:U,targetPosition:Z=b1.Top,sourcePosition:K=b1.Bottom}){return H1.jsxs(H1.Fragment,{children:[H1.jsx(QU,{type:"target",position:Z,isConnectable:U}),Q?.label,H1.jsx(QU,{type:"source",position:K,isConnectable:U})]})}function Aj(){return null}function Mj({data:Q,isConnectable:U,targetPosition:Z=b1.Top}){return H1.jsxs(H1.Fragment,{children:[H1.jsx(QU,{type:"target",position:Z,isConnectable:U}),Q?.label]})}var qU={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},iT={input:Bj,default:Lj,output:Mj,group:Aj};function Tj(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 Rj=(Q)=>{let{width:U,height:Z,x:K,y:H}=c8(Q.nodeLookup,{filter:(Y)=>!!Y.selected});return{width:c5(U)?U:null,height:c5(Z)?Z:null,userSelectionActive:Q.userSelectionActive,transformString:`translate(${Q.transform[0]}px,${Q.transform[1]}px) scale(${Q.transform[2]}) translate(${K}px,${H}px)`}};function Oj({onSelectionContextMenu:Q,noPanClassName:U,disableKeyboardA11y:Z}){let K=x0(),{width:H,height:Y,transformString:W,userSelectionActive:B}=H0(Rj,h0),T=LR(),R=z1.useRef(null);z1.useEffect(()=>{if(!Z)R.current?.focus({preventScroll:!0})},[Z]);let M=!B&&H!==null&&Y!==null;if(BR({nodeRef:R,disabled:!M}),!M)return null;let A=Q?(P)=>{let N=K.getState().nodes.filter((V)=>V.selected);Q(P,N)}:void 0,O=(P)=>{if(Object.prototype.hasOwnProperty.call(qU,P.key))P.preventDefault(),T({direction:qU[P.key],factor:P.shiftKey?4:1})};return H1.jsx("div",{className:d0(["react-flow__nodesselection","react-flow__container",U]),style:{transform:W},children:H1.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 dT=typeof window<"u"?window:void 0,Ij=(Q)=>{return{nodesSelectionActive:Q.nodesSelectionActive,userSelectionActive:Q.userSelectionActive}};function MR({children:Q,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:K,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:W,paneClickDistance:B,deleteKeyCode:T,selectionKeyCode:R,selectionOnDrag:M,selectionMode:A,onSelectionStart:O,onSelectionEnd:P,multiSelectionKeyCode:N,panActivationKeyCode:V,zoomActivationKeyCode:j,elementsSelectable:f,zoomOnScroll:u,zoomOnPinch:C,panOnScroll:v,panOnScrollSpeed:D,panOnScrollMode:h,zoomOnDoubleClick:E,panOnDrag:b,autoPanOnSelection:k,defaultViewport:x,translateExtent:$1,minZoom:Q1,maxZoom:J1,preventScrolling:m,onSelectionContextMenu:p,noWheelClassName:c,noPanClassName:a,disableKeyboardA11y:i,onViewportChange:o,isControlledViewport:y}){let{nodesSelectionActive:g,userSelectionActive:q1}=H0(Ij,h0),t=mJ(R,{target:dT}),W1=mJ(V,{target:dT}),T1=W1||b,O1=W1||v,B1=M&&T1!==!0,U1=t||q1||B1;return eS({deleteKeyCode:T,multiSelectionKeyCode:N}),H1.jsx($j,{onPaneContextMenu:Y,elementsSelectable:f,zoomOnScroll:u,zoomOnPinch:C,panOnScroll:O1,panActivationKeyPressed:W1,panOnScrollSpeed:D,panOnScrollMode:h,zoomOnDoubleClick:E,panOnDrag:!t&&T1,defaultViewport:x,translateExtent:$1,minZoom:Q1,maxZoom:J1,zoomActivationKeyCode:j,preventScrolling:m,noWheelClassName:c,noPanClassName:a,onViewportChange:o,isControlledViewport:y,paneClickDistance:B,selectionOnDrag:B1,children:H1.jsxs(Gj,{onSelectionStart:O,onSelectionEnd:P,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:K,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:W,panOnDrag:T1,autoPanOnSelection:k,isSelecting:!!U1,selectionMode:A,selectionKeyPressed:t,paneClickDistance:B,selectionOnDrag:B1,children:[Q,g&&H1.jsx(Oj,{onSelectionContextMenu:p,noPanClassName:a,disableKeyboardA11y:i})]})})}MR.displayName="FlowRenderer";var wj=z1.memo(MR),Pj=(Q)=>(U)=>{return Q?pq(U.nodeLookup,{x:0,y:0,width:U.width,height:U.height},U.transform,!0).map((Z)=>Z.id):Array.from(U.nodeLookup.keys())};function Nj(Q){return H0(z1.useCallback(Pj(Q),[Q]),h0)}var Cj=(Q)=>Q.updateNodeInternals;function fj(){let Q=H0(Cj),[U]=z1.useState(()=>{if(typeof ResizeObserver>"u")return null;return new ResizeObserver((Z)=>{let K=new Map;Z.forEach((H)=>{let Y=H.target.getAttribute("data-id");K.set(Y,{id:Y,nodeElement:H.target,force:!0})}),Q(K)})});return z1.useEffect(()=>{return()=>{U?.disconnect()}},[U]),U}function Sj({node:Q,nodeType:U,hasDimensions:Z,resizeObserver:K}){let H=x0(),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)K?.unobserve(W.current);K?.observe(Y.current),W.current=Y.current}},[M,Q.hidden]),z1.useEffect(()=>{return()=>{if(W.current)K?.unobserve(W.current),W.current=null}},[]),z1.useEffect(()=>{if(Y.current){let A=R.current!==U,O=B.current!==Q.sourcePosition,P=T.current!==Q.targetPosition;if(A||O||P)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 jj({id:Q,onClick:U,onMouseEnter:Z,onMouseMove:K,onMouseLeave:H,onContextMenu:Y,onDoubleClick:W,nodesDraggable:B,elementsSelectable:T,nodesConnectable:R,nodesFocusable:M,resizeObserver:A,noDragClassName:O,noPanClassName:P,disableKeyboardA11y:N,rfId:V,nodeTypes:j,nodeClickDistance:f,onError:u}){let{node:C,internals:v,isParent:D}=H0((U1)=>{let P1=U1.nodeLookup.get(Q),j1=U1.parentLookup.has(Q);return{node:P1,internals:P1.internals,isParent:j1}},h0),h=C.type||"default",E=j?.[h]||iT[h];if(E===void 0)u?.("003",n2.error003(h)),h="default",E=j?.default||iT.default;let b=!!(C.draggable||B&&typeof C.draggable>"u"),k=!!(C.selectable||T&&typeof C.selectable>"u"),x=!!(C.connectable||R&&typeof C.connectable>"u"),$1=!!(C.focusable||M&&typeof C.focusable>"u"),Q1=x0(),J1=DK(C),m=Sj({node:C,nodeType:h,hasDimensions:J1,resizeObserver:A}),p=BR({nodeRef:m,disabled:C.hidden||!b,noDragClassName:O,handleSelector:C.dragHandle,nodeId:Q,isSelectable:k,nodeClickDistance:f}),c=LR();if(C.hidden)return null;let a=i5(C),i=Tj(C),o=k||b||U||Z||K||H,y=Z?(U1)=>Z(U1,{...v.userNode}):void 0,g=K?(U1)=>K(U1,{...v.userNode}):void 0,q1=H?(U1)=>H(U1,{...v.userNode}):void 0,t=Y?(U1)=>Y(U1,{...v.userNode}):void 0,W1=W?(U1)=>W(U1,{...v.userNode}):void 0,T1=(U1)=>{let{selectNodesOnDrag:P1,nodeDragThreshold:j1}=Q1.getState();if(k&&(!P1||!b||j1>0))tK({id:Q,store:Q1,nodeRef:m});if(U)U(U1,{...v.userNode})},O1=(U1)=>{if(xK(U1.nativeEvent)||N)return;if(PK.includes(U1.key)&&k){let P1=U1.key==="Escape";tK({id:Q,store:Q1,unselect:P1,nodeRef:m})}else if(b&&C.selected&&Object.prototype.hasOwnProperty.call(qU,U1.key)){U1.preventDefault();let{ariaLabelConfig:P1}=Q1.getState();Q1.setState({ariaLiveMessage:P1["node.a11yDescription.ariaLiveMessage"]({direction:U1.key.replace("Arrow","").toLowerCase(),x:~~v.positionAbsolute.x,y:~~v.positionAbsolute.y})}),c({direction:qU[U1.key],factor:U1.shiftKey?4:1})}},B1=()=>{if(N||!m.current?.matches(":focus-visible"))return;let{transform:U1,width:P1,height:j1,autoPanOnNodeFocus:A1,setCenter:k1}=Q1.getState();if(!A1)return;if(!(pq(new Map([[Q,C]]),{x:0,y:0,width:P1,height:j1},U1,!0).length>0))k1(C.position.x+a.width/2,C.position.y+a.height/2,{zoom:U1[2]})};return H1.jsx("div",{className:d0(["react-flow__node",`react-flow__node-${h}`,{[P]:b},C.className,{selected:C.selected,selectable:k,parent:D,draggable:b,dragging:p}]),ref:m,style:{zIndex:v.z,transform:`translate(${v.positionAbsolute.x}px,${v.positionAbsolute.y}px)`,pointerEvents:o?"all":"none",visibility:J1?"visible":"hidden",...C.style,...i},"data-id":Q,"data-testid":`rf__node-${Q}`,onMouseEnter:y,onMouseMove:g,onMouseLeave:q1,onContextMenu:t,onClick:T1,onDoubleClick:W1,onKeyDown:$1?O1:void 0,tabIndex:$1?0:void 0,onFocus:$1?B1:void 0,role:C.ariaRole??($1?"group":void 0),"aria-roledescription":"node","aria-describedby":N?void 0:`${ZR}-${V}`,"aria-label":C.ariaLabel,...C.domAttributes,children:H1.jsx(Fj,{value:Q,children:H1.jsx(E,{id:Q,data:C.data,type:h,positionAbsoluteX:v.positionAbsolute.x,positionAbsoluteY:v.positionAbsolute.y,selected:C.selected??!1,selectable:k,draggable:b,deletable:C.deletable??!0,isConnectable:x,sourcePosition:C.sourcePosition,targetPosition:C.targetPosition,dragging:p,dragHandle:C.dragHandle,zIndex:v.z,parentId:C.parentId,...a})})})}var vj=z1.memo(jj),Vj=(Q)=>({nodesConnectable:Q.nodesConnectable,nodesFocusable:Q.nodesFocusable,elementsSelectable:Q.elementsSelectable,onError:Q.onError});function TR(Q){let{nodesConnectable:U,nodesFocusable:Z,elementsSelectable:K,onError:H}=H0(Vj,h0),Y=Nj(Q.onlyRenderVisibleElements),W=fj();return H1.jsx("div",{className:"react-flow__nodes",style:GU,children:Y.map((B)=>{return H1.jsx(vj,{id:B,nodeTypes:Q.nodeTypes,nodeExtent:Q.nodeExtent,onClick:Q.onNodeClick,onMouseEnter:Q.onNodeMouseEnter,onMouseMove:Q.onNodeMouseMove,onMouseLeave:Q.onNodeMouseLeave,onContextMenu:Q.onNodeContextMenu,onDoubleClick:Q.onNodeDoubleClick,noDragClassName:Q.noDragClassName,noPanClassName:Q.noPanClassName,rfId:Q.rfId,disableKeyboardA11y:Q.disableKeyboardA11y,resizeObserver:W,nodesDraggable:Q.nodesDraggable??!0,nodesConnectable:U,nodesFocusable:Z,elementsSelectable:K,nodeClickDistance:Q.nodeClickDistance,onError:H},B)})})}TR.displayName="NodeRenderer";var yj=z1.memo(TR);function kj(Q){return H0(z1.useCallback((Z)=>{if(!Q)return Z.edges.map((H)=>H.id);let K=[];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&&_T({sourceNode:Y,targetNode:W,width:Z.width,height:Z.height,transform:Z.transform}))K.push(H.id)}return K},[Q]),h0)}var Dj=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q}};return H1.jsx("polyline",{className:"arrow",style:Z,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},uj=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q,fill:Q}};return H1.jsx("polyline",{className:"arrowclosed",style:Z,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},rT={[z9.Arrow]:Dj,[z9.ArrowClosed]:uj};function bj(Q){let U=x0();return z1.useMemo(()=>{if(!Object.prototype.hasOwnProperty.call(rT,Q))return U.getState().onError?.("009",n2.error009(Q)),null;return rT[Q]},[Q])}var Ej=({id:Q,type:U,color:Z,width:K=12.5,height:H=12.5,markerUnits:Y="strokeWidth",strokeWidth:W,orient:B="auto-start-reverse"})=>{let T=bj(U);if(!T)return null;return H1.jsx("marker",{className:"react-flow__arrowhead",id:Q,markerWidth:`${K}`,markerHeight:`${H}`,viewBox:"-10 -10 20 20",markerUnits:Y,orient:B,refX:"0",refY:"0",children:H1.jsx(T,{color:Z,strokeWidth:W})})},RR=({defaultColor:Q,rfId:U})=>{let Z=H0((Y)=>Y.edges),K=H0((Y)=>Y.defaultEdgeOptions),H=z1.useMemo(()=>{return QT(Z,{id:U,defaultColor:Q,defaultMarkerStart:K?.markerStart,defaultMarkerEnd:K?.markerEnd})},[Z,K,U,Q]);if(!H.length)return null;return H1.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:H1.jsx("defs",{children:H.map((Y)=>H1.jsx(Ej,{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))})})};RR.displayName="MarkerDefinitions";var hj=z1.memo(RR);function OR({x:Q,y:U,label:Z,labelStyle:K,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}),P=d0(["react-flow__edge-textwrapper",R]),N=z1.useRef(null);if(z1.useEffect(()=>{if(N.current){let V=N.current.getBBox();O({x:V.x,y:V.y,width:V.width,height:V.height})}},[Z]),!Z)return null;return H1.jsxs("g",{transform:`translate(${Q-A.width/2} ${U-A.height/2})`,className:P,visibility:A.width?"visible":"hidden",...M,children:[H&&H1.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}),H1.jsx("text",{className:"react-flow__edge-text",y:A.height/2,dy:"0.3em",ref:N,style:K,children:Z}),T]})}OR.displayName="EdgeText";var xj=z1.memo(OR);function ZU({path:Q,labelX:U,labelY:Z,label:K,labelStyle:H,labelShowBg:Y,labelBgStyle:W,labelBgPadding:B,labelBgBorderRadius:T,interactionWidth:R=20,...M}){return H1.jsxs(H1.Fragment,{children:[H1.jsx("path",{...M,d:Q,fill:"none",className:d0(["react-flow__edge-path",M.className])}),R?H1.jsx("path",{d:Q,fill:"none",strokeOpacity:0,strokeWidth:R,className:"react-flow__edge-interaction"}):null,K&&c5(U)&&c5(Z)?H1.jsx(xj,{x:U,y:Z,label:K,labelStyle:H,labelShowBg:Y,labelBgStyle:W,labelBgPadding:B,labelBgBorderRadius:T}):null]})}function aT({pos:Q,x1:U,y1:Z,x2:K,y2:H}){if(Q===b1.Left||Q===b1.Right)return[0.5*(U+K),Z];return[U,0.5*(Z+H)]}function IR({sourceX:Q,sourceY:U,sourcePosition:Z=b1.Bottom,targetX:K,targetY:H,targetPosition:Y=b1.Top}){let[W,B]=aT({pos:Z,x1:Q,y1:U,x2:K,y2:H}),[T,R]=aT({pos:Y,x1:K,y1:H,x2:Q,y2:U}),[M,A,O,P]=rq({sourceX:Q,sourceY:U,targetX:K,targetY:H,sourceControlX:W,sourceControlY:B,targetControlX:T,targetControlY:R});return[`M${Q},${U} C${W},${B} ${T},${R} ${K},${H}`,M,A,O,P]}function wR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,sourcePosition:W,targetPosition:B,label:T,labelStyle:R,labelShowBg:M,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:P,style:N,markerEnd:V,markerStart:j,interactionWidth:f})=>{let[u,C,v]=IR({sourceX:Z,sourceY:K,sourcePosition:W,targetX:H,targetY:Y,targetPosition:B}),D=Q.isInternal?void 0:U;return H1.jsx(ZU,{id:D,path:u,labelX:C,labelY:v,label:T,labelStyle:R,labelShowBg:M,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:P,style:N,markerEnd:V,markerStart:j,interactionWidth:f})})}var mj=wR({isInternal:!1}),PR=wR({isInternal:!0});mj.displayName="SimpleBezierEdge";PR.displayName="SimpleBezierEdgeInternal";function NR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,label:W,labelStyle:B,labelShowBg:T,labelBgStyle:R,labelBgPadding:M,labelBgBorderRadius:A,style:O,sourcePosition:P=b1.Bottom,targetPosition:N=b1.Top,markerEnd:V,markerStart:j,pathOptions:f,interactionWidth:u})=>{let[C,v,D]=xJ({sourceX:Z,sourceY:K,sourcePosition:P,targetX:H,targetY:Y,targetPosition:N,borderRadius:f?.borderRadius,offset:f?.offset,stepPosition:f?.stepPosition}),h=Q.isInternal?void 0:U;return H1.jsx(ZU,{id:h,path:C,labelX:v,labelY:D,label:W,labelStyle:B,labelShowBg:T,labelBgStyle:R,labelBgPadding:M,labelBgBorderRadius:A,style:O,markerEnd:V,markerStart:j,interactionWidth:u})})}var CR=NR({isInternal:!1}),fR=NR({isInternal:!0});CR.displayName="SmoothStepEdge";fR.displayName="SmoothStepEdgeInternal";function SR(Q){return z1.memo(({id:U,...Z})=>{let K=Q.isInternal?void 0:U;return H1.jsx(CR,{...Z,id:K,pathOptions:z1.useMemo(()=>({borderRadius:0,offset:Z.pathOptions?.offset}),[Z.pathOptions?.offset])})})}var gj=SR({isInternal:!1}),jR=SR({isInternal:!0});gj.displayName="StepEdge";jR.displayName="StepEdgeInternal";function vR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,label:W,labelStyle:B,labelShowBg:T,labelBgStyle:R,labelBgPadding:M,labelBgBorderRadius:A,style:O,markerEnd:P,markerStart:N,interactionWidth:V})=>{let[j,f,u]=sq({sourceX:Z,sourceY:K,targetX:H,targetY:Y}),C=Q.isInternal?void 0:U;return H1.jsx(ZU,{id:C,path:j,labelX:f,labelY:u,label:W,labelStyle:B,labelShowBg:T,labelBgStyle:R,labelBgPadding:M,labelBgBorderRadius:A,style:O,markerEnd:P,markerStart:N,interactionWidth:V})})}var pj=vR({isInternal:!1}),VR=vR({isInternal:!0});pj.displayName="StraightEdge";VR.displayName="StraightEdgeInternal";function yR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,sourcePosition:W=b1.Bottom,targetPosition:B=b1.Top,label:T,labelStyle:R,labelShowBg:M,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:P,style:N,markerEnd:V,markerStart:j,pathOptions:f,interactionWidth:u})=>{let[C,v,D]=aq({sourceX:Z,sourceY:K,sourcePosition:W,targetX:H,targetY:Y,targetPosition:B,curvature:f?.curvature}),h=Q.isInternal?void 0:U;return H1.jsx(ZU,{id:h,path:C,labelX:v,labelY:D,label:T,labelStyle:R,labelShowBg:M,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:P,style:N,markerEnd:V,markerStart:j,interactionWidth:u})})}var cj=yR({isInternal:!1}),kR=yR({isInternal:!0});cj.displayName="BezierEdge";kR.displayName="BezierEdgeInternal";var sT={default:kR,straight:VR,step:jR,smoothstep:fR,simplebezier:PR},tT={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},lj=(Q,U,Z)=>{if(Z===b1.Left)return Q-U;if(Z===b1.Right)return Q+U;return Q},ij=(Q,U,Z)=>{if(Z===b1.Top)return Q-U;if(Z===b1.Bottom)return Q+U;return Q},oT="react-flow__edgeupdater";function nT({position:Q,centerX:U,centerY:Z,radius:K=10,onMouseDown:H,onMouseEnter:Y,onMouseOut:W,type:B}){return H1.jsx("circle",{onMouseDown:H,onMouseEnter:Y,onMouseOut:W,className:d0([oT,`${oT}-${B}`]),cx:lj(U,K,Q),cy:ij(Z,K,Q),r:K,stroke:"transparent",fill:"transparent"})}function dj({isReconnectable:Q,reconnectRadius:U,edge:Z,sourceX:K,sourceY:H,targetX:Y,targetY:W,sourcePosition:B,targetPosition:T,onReconnect:R,onReconnectStart:M,onReconnectEnd:A,setReconnecting:O,setUpdateHover:P}){let N=x0(),V=(v,D)=>{if(v.button!==0)return;let{autoPanOnConnect:h,domNode:E,connectionMode:b,connectionRadius:k,lib:x,onConnectStart:$1,cancelConnection:Q1,nodeLookup:J1,rfId:m,panBy:p,updateConnection:c}=N.getState(),a=D.type==="target",i=(g,q1)=>{O(!1),A?.(g,Z,D.type,q1)},o=(g)=>R?.(Z,g),y=(g,q1)=>{O(!0),M?.(v,Z,D.type),$1?.(g,q1)};eq.onPointerDown(v.nativeEvent,{autoPanOnConnect:h,connectionMode:b,connectionRadius:k,domNode:E,handleId:D.id,nodeId:D.nodeId,nodeLookup:J1,isTarget:a,edgeUpdaterType:D.type,lib:x,flowId:m,cancelConnection:Q1,panBy:p,isValidConnection:(...g)=>N.getState().isValidConnection?.(...g)??!0,onConnect:o,onConnectStart:y,onConnectEnd:(...g)=>N.getState().onConnectEnd?.(...g),onReconnectEnd:i,updateConnection:c,getTransform:()=>N.getState().transform,getFromHandle:()=>N.getState().connection.fromHandle,dragThreshold:N.getState().connectionDragThreshold,handleDomNode:v.currentTarget})},j=(v)=>V(v,{nodeId:Z.target,id:Z.targetHandle??null,type:"target"}),f=(v)=>V(v,{nodeId:Z.source,id:Z.sourceHandle??null,type:"source"}),u=()=>P(!0),C=()=>P(!1);return H1.jsxs(H1.Fragment,{children:[(Q===!0||Q==="source")&&H1.jsx(nT,{position:B,centerX:K,centerY:H,radius:U,onMouseDown:j,onMouseEnter:u,onMouseOut:C,type:"source"}),(Q===!0||Q==="target")&&H1.jsx(nT,{position:T,centerX:Y,centerY:W,radius:U,onMouseDown:f,onMouseEnter:u,onMouseOut:C,type:"target"})]})}function rj({id:Q,edgesFocusable:U,edgesReconnectable:Z,elementsSelectable:K,onClick:H,onDoubleClick:Y,onContextMenu:W,onMouseEnter:B,onMouseMove:T,onMouseLeave:R,reconnectRadius:M,onReconnect:A,onReconnectStart:O,onReconnectEnd:P,rfId:N,edgeTypes:V,noPanClassName:j,onError:f,disableKeyboardA11y:u}){let C=H0((k1)=>k1.edgeLookup.get(Q)),v=H0((k1)=>k1.defaultEdgeOptions);C=v?{...v,...C}:C;let D=C.type||"default",h=V?.[D]||sT[D];if(h===void 0)f?.("011",n2.error011(D)),D="default",h=V?.default||sT.default;let E=!!(C.focusable||U&&typeof C.focusable>"u"),b=typeof A<"u"&&(C.reconnectable||Z&&typeof C.reconnectable>"u"),k=!!(C.selectable||K&&typeof C.selectable>"u"),x=z1.useRef(null),[$1,Q1]=z1.useState(!1),[J1,m]=z1.useState(!1),p=x0(),{zIndex:c=C.zIndex,sourceX:a,sourceY:i,targetX:o,targetY:y,sourcePosition:g,targetPosition:q1}=H0(z1.useCallback((k1)=>{let D1=k1.nodeLookup.get(C.source),g1=k1.nodeLookup.get(C.target);if(!D1||!g1)return tT;let h1=$T({id:Q,sourceNode:D1,targetNode:g1,sourceHandle:C.sourceHandle||null,targetHandle:C.targetHandle||null,connectionMode:k1.connectionMode,onError:f}),M1=eM({selected:C.selected,zIndex:C.zIndex,sourceNode:D1,targetNode:g1,elevateOnSelect:k1.elevateEdgesOnSelect,zIndexMode:k1.zIndexMode});return{...h1||tT,zIndex:M1}},[C.source,C.target,C.sourceHandle,C.targetHandle,C.selected,C.zIndex,f]),h0),t=z1.useMemo(()=>C.markerStart?`url('#${tq(C.markerStart,N)}')`:void 0,[C.markerStart,N]),W1=z1.useMemo(()=>C.markerEnd?`url('#${tq(C.markerEnd,N)}')`:void 0,[C.markerEnd,N]);if(C.hidden||a===null||i===null||o===null||y===null)return null;let T1=(k1)=>{let{addSelectedEdges:D1,unselectNodesAndEdges:g1,multiSelectionActive:h1}=p.getState();if(k)if(p.setState({nodesSelectionActive:!1}),C.selected&&h1)g1({nodes:[],edges:[C]}),x.current?.blur();else D1([Q]);if(H)H(k1,C)},O1=Y?(k1)=>{Y(k1,{...C})}:void 0,B1=W?(k1)=>{W(k1,{...C})}:void 0,U1=B?(k1)=>{B(k1,{...C})}:void 0,P1=T?(k1)=>{T(k1,{...C})}:void 0,j1=R?(k1)=>{R(k1,{...C})}:void 0,A1=(k1)=>{if(!u&&PK.includes(k1.key)&&k){let{unselectNodesAndEdges:D1,addSelectedEdges:g1}=p.getState();if(k1.key==="Escape")x.current?.blur(),D1({edges:[C]});else g1([Q])}};return H1.jsx("svg",{style:{zIndex:c},children:H1.jsxs("g",{className:d0(["react-flow__edge",`react-flow__edge-${D}`,C.className,j,{selected:C.selected,animated:C.animated,inactive:!k&&!H,updating:$1,selectable:k}]),onClick:T1,onDoubleClick:O1,onContextMenu:B1,onMouseEnter:U1,onMouseMove:P1,onMouseLeave:j1,onKeyDown:E?A1:void 0,tabIndex:E?0:void 0,role:C.ariaRole??(E?"group":"img"),"aria-roledescription":"edge","data-id":Q,"data-testid":`rf__edge-${Q}`,"aria-label":C.ariaLabel===null?void 0:C.ariaLabel||`Edge from ${C.source} to ${C.target}`,"aria-describedby":E?`${FR}-${N}`:void 0,ref:x,...C.domAttributes,children:[!J1&&H1.jsx(h,{id:Q,source:C.source,target:C.target,type:C.type,selected:C.selected,animated:C.animated,selectable:k,deletable:C.deletable??!0,label:C.label,labelStyle:C.labelStyle,labelShowBg:C.labelShowBg,labelBgStyle:C.labelBgStyle,labelBgPadding:C.labelBgPadding,labelBgBorderRadius:C.labelBgBorderRadius,sourceX:a,sourceY:i,targetX:o,targetY:y,sourcePosition:g,targetPosition:q1,data:C.data,style:C.style,sourceHandleId:C.sourceHandle,targetHandleId:C.targetHandle,markerStart:t,markerEnd:W1,pathOptions:"pathOptions"in C?C.pathOptions:void 0,interactionWidth:C.interactionWidth}),b&&H1.jsx(dj,{edge:C,isReconnectable:b,reconnectRadius:M,onReconnect:A,onReconnectStart:O,onReconnectEnd:P,sourceX:a,sourceY:i,targetX:o,targetY:y,sourcePosition:g,targetPosition:q1,setUpdateHover:Q1,setReconnecting:m})]})})}var aj=z1.memo(rj),sj=(Q)=>({edgesFocusable:Q.edgesFocusable,edgesReconnectable:Q.edgesReconnectable,elementsSelectable:Q.elementsSelectable,connectionMode:Q.connectionMode,onError:Q.onError});function DR({defaultMarkerColor:Q,onlyRenderVisibleElements:U,rfId:Z,edgeTypes:K,noPanClassName:H,onReconnect:Y,onEdgeContextMenu:W,onEdgeMouseEnter:B,onEdgeMouseMove:T,onEdgeMouseLeave:R,onEdgeClick:M,reconnectRadius:A,onEdgeDoubleClick:O,onReconnectStart:P,onReconnectEnd:N,disableKeyboardA11y:V}){let{edgesFocusable:j,edgesReconnectable:f,elementsSelectable:u,onError:C}=H0(sj,h0),v=kj(U);return H1.jsxs("div",{className:"react-flow__edges",children:[H1.jsx(hj,{defaultColor:Q,rfId:Z}),v.map((D)=>{return H1.jsx(aj,{id:D,edgesFocusable:j,edgesReconnectable:f,elementsSelectable:u,noPanClassName:H,onReconnect:Y,onContextMenu:W,onMouseEnter:B,onMouseMove:T,onMouseLeave:R,onClick:M,reconnectRadius:A,onDoubleClick:O,onReconnectStart:P,onReconnectEnd:N,rfId:Z,onError:C,edgeTypes:K,disableKeyboardA11y:V},D)})]})}DR.displayName="EdgeRenderer";var tj=z1.memo(DR),eT=(Q)=>`translate(${Q[0]}px,${Q[1]}px) scale(${Q[2]})`;function oj({children:Q}){let U=x0(),Z=z1.useRef(null),[K]=z1.useState(()=>U.getState().transform);return zR(()=>{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=eT(W)};return Y(),U.subscribe(Y)},[U]),H1.jsx("div",{ref:Z,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:eT(K)},children:Q})}function nj(Q){let U=gJ(),Z=z1.useRef(!1);z1.useEffect(()=>{if(!Z.current&&U.viewportInitialized&&Q)setTimeout(()=>Q(U),1),Z.current=!0},[Q,U.viewportInitialized])}var ej=(Q)=>Q.panZoom?.syncViewport;function _v(Q){let U=H0(ej),Z=x0();return z1.useEffect(()=>{if(Q)U?.(Q),Z.setState({transform:[Q.x,Q.y,Q.zoom]})},[Q,U]),null}function _R(Q){return Q.connection.inProgress?{...Q.connection,to:M9(Q.connection.to,Q.transform)}:{...Q.connection}}function Jv(Q){if(Q)return(Z)=>{let K=_R(Z);return Q(K)};return _R}function $v(Q){let U=Jv(Q);return H0(U,h0)}var Qv=(Q)=>({nodesConnectable:Q.nodesConnectable,isValid:Q.connection.isValid,inProgress:Q.connection.inProgress,width:Q.width,height:Q.height});function qv({containerStyle:Q,style:U,type:Z,component:K}){let{nodesConnectable:H,width:Y,height:W,isValid:B,inProgress:T}=H0(Qv,h0);if(!(Y&&H&&T))return null;return H1.jsx("svg",{style:Q,width:Y,height:W,className:"react-flow__connectionline react-flow__container",children:H1.jsx("g",{className:d0(["react-flow__connection",EK(B)]),children:H1.jsx(uR,{style:U,type:Z,CustomComponent:K,isValid:B})})})}var uR=({style:Q,type:U=r4.Bezier,CustomComponent:Z,isValid:K})=>{let{inProgress:H,from:Y,fromNode:W,fromHandle:B,fromPosition:T,to:R,toNode:M,toHandle:A,toPosition:O,pointer:P}=$v();if(!H)return;if(Z)return H1.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:EK(K),toNode:M,toHandle:A,pointer:P});let N="",V={sourceX:Y.x,sourceY:Y.y,sourcePosition:T,targetX:R.x,targetY:R.y,targetPosition:O};switch(U){case r4.Bezier:[N]=aq(V);break;case r4.SimpleBezier:[N]=IR(V);break;case r4.Step:[N]=xJ({...V,borderRadius:0});break;case r4.SmoothStep:[N]=xJ(V);break;default:[N]=sq(V)}return H1.jsx("path",{d:N,fill:"none",className:"react-flow__connection-path",style:Q})};uR.displayName="ConnectionLine";var Uv={};function JR(Q=Uv){let U=z1.useRef(Q),Z=x0();z1.useEffect(()=>{{let K=new Set([...Object.keys(U.current),...Object.keys(Q)]);for(let H of K)if(U.current[H]!==Q[H]){Z.getState().onError?.("002",n2.error002());break}U.current=Q}},[Q])}function Gv(){let Q=x0(),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",n2.error013("react"));U.current=!0}},[])}function bR({nodeTypes:Q,edgeTypes:U,onInit:Z,onNodeClick:K,onEdgeClick:H,onNodeDoubleClick:Y,onEdgeDoubleClick:W,onNodeMouseEnter:B,onNodeMouseMove:T,onNodeMouseLeave:R,onNodeContextMenu:M,onSelectionContextMenu:A,onSelectionStart:O,onSelectionEnd:P,connectionLineType:N,connectionLineStyle:V,connectionLineComponent:j,connectionLineContainerStyle:f,selectionKeyCode:u,selectionOnDrag:C,selectionMode:v,multiSelectionKeyCode:D,panActivationKeyCode:h,zoomActivationKeyCode:E,deleteKeyCode:b,onlyRenderVisibleElements:k,elementsSelectable:x,defaultViewport:$1,translateExtent:Q1,minZoom:J1,maxZoom:m,preventScrolling:p,defaultMarkerColor:c,zoomOnScroll:a,zoomOnPinch:i,panOnScroll:o,panOnScrollSpeed:y,panOnScrollMode:g,zoomOnDoubleClick:q1,panOnDrag:t,autoPanOnSelection:W1,onPaneClick:T1,onPaneMouseEnter:O1,onPaneMouseMove:B1,onPaneMouseLeave:U1,onPaneScroll:P1,onPaneContextMenu:j1,paneClickDistance:A1,nodeClickDistance:k1,onEdgeContextMenu:D1,onEdgeMouseEnter:g1,onEdgeMouseMove:h1,onEdgeMouseLeave:M1,reconnectRadius:r1,onReconnect:u1,onReconnectStart:D0,onReconnectEnd:o1,noDragClassName:X2,noWheelClassName:K2,noPanClassName:N2,disableKeyboardA11y:A2,nodeExtent:C2,rfId:M2,viewport:H2,onViewportChange:_2,nodesDraggable:z4}){return JR(Q),JR(U),Gv(),nj(Z),_v(H2),H1.jsx(wj,{onPaneClick:T1,onPaneMouseEnter:O1,onPaneMouseMove:B1,onPaneMouseLeave:U1,onPaneContextMenu:j1,onPaneScroll:P1,paneClickDistance:A1,deleteKeyCode:b,selectionKeyCode:u,selectionOnDrag:C,selectionMode:v,onSelectionStart:O,onSelectionEnd:P,multiSelectionKeyCode:D,panActivationKeyCode:h,zoomActivationKeyCode:E,elementsSelectable:x,zoomOnScroll:a,zoomOnPinch:i,zoomOnDoubleClick:q1,panOnScroll:o,panOnScrollSpeed:y,panOnScrollMode:g,panOnDrag:t,autoPanOnSelection:W1,defaultViewport:$1,translateExtent:Q1,minZoom:J1,maxZoom:m,onSelectionContextMenu:A,preventScrolling:p,noDragClassName:X2,noWheelClassName:K2,noPanClassName:N2,disableKeyboardA11y:A2,onViewportChange:_2,isControlledViewport:!!H2,children:H1.jsxs(oj,{children:[H1.jsx(tj,{edgeTypes:U,onEdgeClick:H,onEdgeDoubleClick:W,onReconnect:u1,onReconnectStart:D0,onReconnectEnd:o1,onlyRenderVisibleElements:k,onEdgeContextMenu:D1,onEdgeMouseEnter:g1,onEdgeMouseMove:h1,onEdgeMouseLeave:M1,reconnectRadius:r1,defaultMarkerColor:c,noPanClassName:N2,disableKeyboardA11y:A2,rfId:M2}),H1.jsx(qv,{style:V,type:N,component:j,containerStyle:f}),H1.jsx("div",{className:"react-flow__edgelabel-renderer"}),H1.jsx(yj,{nodeTypes:Q,onNodeClick:K,onNodeDoubleClick:Y,onNodeMouseEnter:B,onNodeMouseMove:T,onNodeMouseLeave:R,onNodeContextMenu:M,nodeClickDistance:k1,onlyRenderVisibleElements:k,noPanClassName:N2,noDragClassName:X2,disableKeyboardA11y:A2,nodeExtent:C2,rfId:M2,nodesDraggable:z4}),H1.jsx("div",{className:"react-flow__viewport-portal"})]})})}bR.displayName="GraphView";var Zv=z1.memo(bR),Fv=kK("React Flow","https://reactflow.dev/"),$R=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:H,height:Y,fitView:W,fitViewOptions:B,minZoom:T=0.5,maxZoom:R=2,nodeOrigin:M,nodeExtent:A,zIndexMode:O="basic"}={})=>{let P=new Map,N=new Map,V=new Map,j=new Map,f=K??U??[],u=Z??Q??[],C=M??[0,0],v=A??B9;dK(V,j,f);let{nodesInitialized:D}=oq(u,P,N,{nodeOrigin:C,nodeExtent:v,zIndexMode:O}),h=[0,0,1];if(W&&H&&Y){let E=c8(P,{filter:($1)=>!!(($1.width||$1.initialWidth)&&($1.height||$1.initialHeight))}),{x:b,y:k,zoom:x}=hJ(E,H,Y,T,R,B?.padding??0.1);h=[b,k,x]}return{rfId:"1",width:H??0,height:Y??0,transform:h,nodes:u,nodesInitialized:D,nodeLookup:P,parentLookup:N,edges:f,edgeLookup:j,connectionLookup:V,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:Z!==void 0,hasDefaultEdges:K!==void 0,panZoom:null,minZoom:T,maxZoom:R,translateExtent:B9,nodeExtent:v,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:D6.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:C,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:{...CK},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:Fv,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:NK,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}},Xv=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:H,height:Y,fitView:W,fitViewOptions:B,minZoom:T,maxZoom:R,nodeOrigin:M,nodeExtent:A,zIndexMode:O})=>VT((P,N)=>{async function V(){let{nodeLookup:j,panZoom:f,fitViewOptions:u,fitViewResolver:C,width:v,height:D,minZoom:h,maxZoom:E}=N();if(!f)return;await dM({nodes:j,width:v,height:D,panZoom:f,minZoom:h,maxZoom:E},u),C?.resolve(!0),P({fitViewResolver:null})}return{...$R({nodes:Q,edges:U,width:H,height:Y,fitView:W,fitViewOptions:B,minZoom:T,maxZoom:R,nodeOrigin:M,nodeExtent:A,defaultNodes:Z,defaultEdges:K,zIndexMode:O}),setNodes:(j)=>{let{nodeLookup:f,parentLookup:u,nodeOrigin:C,nodeExtent:v,elevateNodesOnSelect:D,fitViewQueued:h,zIndexMode:E,nodesSelectionActive:b}=N(),{nodesInitialized:k,hasSelectedNodes:x}=oq(j,f,u,{nodeOrigin:C,nodeExtent:v,elevateNodesOnSelect:D,checkEquality:!0,zIndexMode:E}),$1=b&&x;if(h&&k)V(),P({nodes:j,nodesInitialized:k,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:$1});else P({nodes:j,nodesInitialized:k,nodesSelectionActive:$1})},setEdges:(j)=>{let{connectionLookup:f,edgeLookup:u}=N();dK(f,u,j),P({edges:j})},setDefaultNodesAndEdges:(j,f)=>{if(j){let{setNodes:u}=N();u(j),P({hasDefaultNodes:!0})}if(f){let{setEdges:u}=N();u(f),P({hasDefaultEdges:!0})}},updateNodeInternals:(j)=>{let{triggerNodeChanges:f,nodeLookup:u,parentLookup:C,domNode:v,nodeOrigin:D,nodeExtent:h,debug:E,fitViewQueued:b,zIndexMode:k}=N(),{changes:x,updatedInternals:$1}=FT(j,u,C,v,D,h,k);if(!$1)return;if(GT(u,C,{nodeOrigin:D,nodeExtent:h,zIndexMode:k}),b)V(),P({fitViewQueued:!1,fitViewOptions:void 0});else P({});if(x?.length>0){if(E)console.log("React Flow: trigger node changes",x);f?.(x)}},updateNodePositions:(j,f=!1)=>{let u=[],C=[],{nodeLookup:v,triggerNodeChanges:D,connection:h,updateConnection:E,onNodesChangeMiddlewareMap:b}=N();for(let[k,x]of j){let $1=v.get(k),Q1=!!($1?.expandParent&&$1?.parentId&&x?.position),J1={id:k,type:"position",position:Q1?{x:Math.max(0,x.position.x),y:Math.max(0,x.position.y)}:x.position,dragging:f};if($1&&h.inProgress&&h.fromNode.id===$1.id){let m=u6($1,h.fromHandle,b1.Left,!0);E({...h,from:m})}if(Q1&&$1.parentId)u.push({id:k,parentId:$1.parentId,rect:{...x.internals.positionAbsolute,width:x.measured.width??0,height:x.measured.height??0}});C.push(J1)}if(u.length>0){let{parentLookup:k,nodeOrigin:x}=N(),$1=nq(u,v,k,x);C.push(...$1)}for(let k of b.values())C=k(C);D(C)},triggerNodeChanges:(j)=>{let{onNodesChange:f,setNodes:u,nodes:C,hasDefaultNodes:v,debug:D}=N();if(j?.length){if(v){let h=HR(j,C);u(h)}if(D)console.log("React Flow: trigger node changes",j);f?.(j)}},triggerEdgeChanges:(j)=>{let{onEdgesChange:f,setEdges:u,edges:C,hasDefaultEdges:v,debug:D}=N();if(j?.length){if(v){let h=lS(j,C);u(h)}if(D)console.log("React Flow: trigger edge changes",j);f?.(j)}},addSelectedNodes:(j)=>{let{multiSelectionActive:f,edgeLookup:u,nodeLookup:C,triggerNodeChanges:v,triggerEdgeChanges:D}=N();if(f){let h=j.map((E)=>l8(E,!0));v(h);return}v(R9(C,new Set([...j]),!0)),D(R9(u))},addSelectedEdges:(j)=>{let{multiSelectionActive:f,edgeLookup:u,nodeLookup:C,triggerNodeChanges:v,triggerEdgeChanges:D}=N();if(f){let h=j.map((E)=>l8(E,!0));D(h);return}D(R9(u,new Set([...j]))),v(R9(C,new Set,!0))},unselectNodesAndEdges:({nodes:j,edges:f}={})=>{let{edges:u,nodes:C,nodeLookup:v,triggerNodeChanges:D,triggerEdgeChanges:h}=N(),E=j?j:C,b=f?f:u,k=[];for(let $1 of E){if(!$1.selected)continue;let Q1=v.get($1.id);if(Q1)Q1.selected=!1;k.push(l8($1.id,!1))}let x=[];for(let $1 of b){if(!$1.selected)continue;x.push(l8($1.id,!1))}D(k),h(x)},setMinZoom:(j)=>{let{panZoom:f,maxZoom:u}=N();f?.setScaleExtent([j,u]),P({minZoom:j})},setMaxZoom:(j)=>{let{panZoom:f,minZoom:u}=N();f?.setScaleExtent([u,j]),P({maxZoom:j})},setTranslateExtent:(j)=>{N().panZoom?.setTranslateExtent(j),P({translateExtent:j})},resetSelectedElements:()=>{let{edges:j,nodes:f,triggerNodeChanges:u,triggerEdgeChanges:C,elementsSelectable:v}=N();if(!v)return;let D=f.reduce((E,b)=>b.selected?[...E,l8(b.id,!1)]:E,[]),h=j.reduce((E,b)=>b.selected?[...E,l8(b.id,!1)]:E,[]);u(D),C(h)},setNodeExtent:(j)=>{let{nodes:f,nodeLookup:u,parentLookup:C,nodeOrigin:v,elevateNodesOnSelect:D,nodeExtent:h,zIndexMode:E}=N();if(j[0][0]===h[0][0]&&j[0][1]===h[0][1]&&j[1][0]===h[1][0]&&j[1][1]===h[1][1])return;oq(f,u,C,{nodeOrigin:v,nodeExtent:j,elevateNodesOnSelect:D,checkEquality:!1,zIndexMode:E}),P({nodeExtent:j})},panBy:(j)=>{let{transform:f,width:u,height:C,panZoom:v,translateExtent:D}=N();return XT({delta:j,panZoom:v,transform:f,translateExtent:D,width:u,height:C})},setCenter:async(j,f,u)=>{let{width:C,height:v,maxZoom:D,panZoom:h}=N();if(!h)return!1;let E=typeof u?.zoom<"u"?u.zoom:D;return await h.setViewport({x:C/2-j*E,y:v/2-f*E,zoom:E},{duration:u?.duration,ease:u?.ease,interpolate:u?.interpolate}),!0},cancelConnection:()=>{P({connection:{...CK}})},updateConnection:(j)=>{P({connection:j})},reset:()=>P({...$R()})}},Object.is);function eK({initialNodes:Q,initialEdges:U,defaultNodes:Z,defaultEdges:K,initialWidth:H,initialHeight:Y,initialMinZoom:W,initialMaxZoom:B,initialFitViewOptions:T,fitView:R,nodeOrigin:M,nodeExtent:A,zIndexMode:O,children:P}){let[N]=z1.useState(()=>Xv({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:H,height:Y,fitView:R,minZoom:W,maxZoom:B,fitViewOptions:T,nodeOrigin:M,nodeExtent:A,zIndexMode:O}));return H1.jsx(PS,{value:N,children:H1.jsx(sS,{children:H1.jsx(Kj,{children:P})})})}function Kv({children:Q,nodes:U,edges:Z,defaultNodes:K,defaultEdges:H,width:Y,height:W,fitView:B,fitViewOptions:T,minZoom:R,maxZoom:M,nodeOrigin:A,nodeExtent:O,zIndexMode:P}){if(z1.useContext(UU))return H1.jsx(H1.Fragment,{children:Q});return H1.jsx(eK,{initialNodes:U,initialEdges:Z,defaultNodes:K,defaultEdges:H,initialWidth:Y,initialHeight:W,fitView:B,initialFitViewOptions:T,initialMinZoom:R,initialMaxZoom:M,nodeOrigin:A,nodeExtent:O,zIndexMode:P,children:Q})}var Hv={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function Yv({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,className:H,nodeTypes:Y,edgeTypes:W,onNodeClick:B,onEdgeClick:T,onInit:R,onMove:M,onMoveStart:A,onMoveEnd:O,onConnect:P,onConnectStart:N,onConnectEnd:V,onClickConnectStart:j,onClickConnectEnd:f,onNodeMouseEnter:u,onNodeMouseMove:C,onNodeMouseLeave:v,onNodeContextMenu:D,onNodeDoubleClick:h,onNodeDragStart:E,onNodeDrag:b,onNodeDragStop:k,onNodesDelete:x,onEdgesDelete:$1,onDelete:Q1,onSelectionChange:J1,onSelectionDragStart:m,onSelectionDrag:p,onSelectionDragStop:c,onSelectionContextMenu:a,onSelectionStart:i,onSelectionEnd:o,onBeforeDelete:y,connectionMode:g,connectionLineType:q1=r4.Bezier,connectionLineStyle:t,connectionLineComponent:W1,connectionLineContainerStyle:T1,deleteKeyCode:O1="Backspace",selectionKeyCode:B1="Shift",selectionOnDrag:U1=!1,selectionMode:P1=x8.Full,panActivationKeyCode:j1="Space",multiSelectionKeyCode:A1=T9()?"Meta":"Control",zoomActivationKeyCode:k1=T9()?"Meta":"Control",snapToGrid:D1,snapGrid:g1,onlyRenderVisibleElements:h1=!1,selectNodesOnDrag:M1,nodesDraggable:r1,autoPanOnNodeFocus:u1,nodesConnectable:D0,nodesFocusable:o1,nodeOrigin:X2=XR,edgesFocusable:K2,edgesReconnectable:N2,elementsSelectable:A2=!0,defaultViewport:C2=ES,minZoom:M2=0.5,maxZoom:H2=2,translateExtent:_2=B9,preventScrolling:z4=!0,nodeExtent:m2,defaultMarkerColor:f5="#b1b1b7",zoomOnScroll:S5=!0,zoomOnPinch:r5=!0,panOnScroll:o4=!1,panOnScrollSpeed:G1=0.5,panOnScrollMode:I=v3.Free,zoomOnDoubleClick:l=!0,panOnDrag:F1=!0,onPaneClick:I1,onPaneMouseEnter:R1,onPaneMouseMove:N1,onPaneMouseLeave:C1,onPaneScroll:y1,onPaneContextMenu:v1,paneClickDistance:p1=1,nodeClickDistance:S0=0,children:w0,onReconnect:n4,onReconnectStart:j5,onReconnectEnd:T0,onEdgeContextMenu:n8,onEdgeDoubleClick:a5,onEdgeMouseEnter:e2,onEdgeMouseMove:iJ,onEdgeMouseLeave:BU,reconnectRadius:N9=10,onNodesChange:dJ,onEdgesChange:e8,noDragClassName:_5="nodrag",noWheelClassName:rJ="nowheel",noPanClassName:_7="nopan",fitView:C9,fitViewOptions:J7,connectOnClick:aJ,attributionPosition:sJ,proOptions:E3,defaultEdgeOptions:tJ,elevateNodesOnSelect:oJ=!0,elevateEdgesOnSelect:nJ=!1,disableKeyboardA11y:f9=!1,autoPanOnConnect:eJ,autoPanOnNodeDrag:g2,autoPanOnSelection:h3=!0,autoPanSpeed:e4,connectionRadius:_$,isValidConnection:m6,onError:$7,style:S9,id:x3,nodeDragThreshold:m3,connectionDragThreshold:j9,viewport:LU,onViewportChange:AU,width:J$,height:v9,colorMode:V9="light",debug:$$,onScroll:y9,ariaLabelConfig:Q$,zIndexMode:q$="basic",...U$},k9){let g3=x3||"1",g6=gS(V9),MU=z1.useCallback((D9)=>{D9.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),y9?.(D9)},[y9]);return H1.jsx("div",{"data-testid":"rf__wrapper",...U$,onScroll:MU,style:{...S9,...Hv},ref:k9,className:d0(["react-flow",H,g6]),id:x3,role:"application",children:H1.jsxs(Kv,{nodes:Q,edges:U,width:J$,height:v9,fitView:C9,fitViewOptions:J7,minZoom:M2,maxZoom:H2,nodeOrigin:X2,nodeExtent:m2,zIndexMode:q$,children:[H1.jsx(mS,{nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,onConnect:P,onConnectStart:N,onConnectEnd:V,onClickConnectStart:j,onClickConnectEnd:f,nodesDraggable:r1,autoPanOnNodeFocus:u1,nodesConnectable:D0,nodesFocusable:o1,edgesFocusable:K2,edgesReconnectable:N2,elementsSelectable:A2,elevateNodesOnSelect:oJ,elevateEdgesOnSelect:nJ,minZoom:M2,maxZoom:H2,nodeExtent:m2,onNodesChange:dJ,onEdgesChange:e8,snapToGrid:D1,snapGrid:g1,connectionMode:g,translateExtent:_2,connectOnClick:aJ,defaultEdgeOptions:tJ,fitView:C9,fitViewOptions:J7,onNodesDelete:x,onEdgesDelete:$1,onDelete:Q1,onNodeDragStart:E,onNodeDrag:b,onNodeDragStop:k,onSelectionDrag:p,onSelectionDragStart:m,onSelectionDragStop:c,onMove:M,onMoveStart:A,onMoveEnd:O,noPanClassName:_7,nodeOrigin:X2,rfId:g3,autoPanOnConnect:eJ,autoPanOnNodeDrag:g2,autoPanSpeed:e4,onError:$7,connectionRadius:_$,isValidConnection:m6,selectNodesOnDrag:M1,nodeDragThreshold:m3,connectionDragThreshold:j9,onBeforeDelete:y,debug:$$,ariaLabelConfig:Q$,zIndexMode:q$}),H1.jsx(Zv,{onInit:R,onNodeClick:B,onEdgeClick:T,onNodeMouseEnter:u,onNodeMouseMove:C,onNodeMouseLeave:v,onNodeContextMenu:D,onNodeDoubleClick:h,nodeTypes:Y,edgeTypes:W,connectionLineType:q1,connectionLineStyle:t,connectionLineComponent:W1,connectionLineContainerStyle:T1,selectionKeyCode:B1,selectionOnDrag:U1,selectionMode:P1,deleteKeyCode:O1,multiSelectionKeyCode:A1,panActivationKeyCode:j1,zoomActivationKeyCode:k1,onlyRenderVisibleElements:h1,defaultViewport:C2,translateExtent:_2,minZoom:M2,maxZoom:H2,preventScrolling:z4,zoomOnScroll:S5,zoomOnPinch:r5,zoomOnDoubleClick:l,panOnScroll:o4,panOnScrollSpeed:G1,panOnScrollMode:I,panOnDrag:F1,autoPanOnSelection:h3,onPaneClick:I1,onPaneMouseEnter:R1,onPaneMouseMove:N1,onPaneMouseLeave:C1,onPaneScroll:y1,onPaneContextMenu:v1,paneClickDistance:p1,nodeClickDistance:S0,onSelectionContextMenu:a,onSelectionStart:i,onSelectionEnd:o,onReconnect:n4,onReconnectStart:j5,onReconnectEnd:T0,onEdgeContextMenu:n8,onEdgeDoubleClick:a5,onEdgeMouseEnter:e2,onEdgeMouseMove:iJ,onEdgeMouseLeave:BU,reconnectRadius:N9,defaultMarkerColor:f5,noDragClassName:_5,noWheelClassName:rJ,noPanClassName:_7,rfId:g3,disableKeyboardA11y:f9,nodeExtent:m2,viewport:LU,onViewportChange:AU,nodesDraggable:r1}),H1.jsx(bS,{onSelectionChange:J1}),w0,H1.jsx(VS,{proOptions:E3,position:sJ}),H1.jsx(vS,{rfId:g3,disableKeyboardA11y:f9})]})})}var ER=YR(Yv);function hR(Q){let[U,Z]=z1.useState(Q),K=z1.useCallback((H)=>Z((Y)=>HR(H,Y)),[]);return[U,Z,K]}var Vg=n2.error014();function zv({dimensions:Q,lineWidth:U,variant:Z,className:K}){return H1.jsx("path",{strokeWidth:U,d:`M${Q[0]/2} 0 V${Q[1]} M0 ${Q[1]/2} H${Q[0]}`,className:d0(["react-flow__background-pattern",Z,K])})}function Wv({radius:Q,className:U}){return H1.jsx("circle",{cx:Q,cy:Q,r:Q,className:d0(["react-flow__background-pattern","dots",U])})}var a4;(function(Q){Q.Lines="lines",Q.Dots="dots",Q.Cross="cross"})(a4||(a4={}));var Bv={[a4.Dots]:1,[a4.Lines]:1,[a4.Cross]:6},Lv=(Q)=>({transform:Q.transform,patternId:`pattern-${Q.rfId}`});function xR({id:Q,variant:U=a4.Dots,gap:Z=20,size:K,lineWidth:H=1,offset:Y=0,color:W,bgColor:B,style:T,className:R,patternClassName:M}){let A=z1.useRef(null),{transform:O,patternId:P}=H0(Lv,h0),N=K||Bv[U],V=U===a4.Dots,j=U===a4.Cross,f=Array.isArray(Z)?Z:[Z,Z],u=[f[0]*O[2]||1,f[1]*O[2]||1],C=N*O[2],v=Array.isArray(Y)?Y:[Y,Y],D=j?[C,C]:u,h=[v[0]*O[2]+D[0]/2,v[1]*O[2]+D[1]/2],E=`${P}${Q?Q:""}`;return H1.jsxs("svg",{className:d0(["react-flow__background",R]),style:{...T,...GU,"--xy-background-color-props":B,"--xy-background-pattern-color-props":W},ref:A,"data-testid":"rf__background",children:[H1.jsx("pattern",{id:E,x:O[0]%u[0],y:O[1]%u[1],width:u[0],height:u[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${h[0]},-${h[1]})`,children:V?H1.jsx(Wv,{radius:C/2,className:M}):H1.jsx(zv,{dimensions:D,lineWidth:H,variant:U,className:M})}),H1.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${E})`})]})}xR.displayName="Background";var mR=z1.memo(xR);function Av(){return H1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:H1.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function Mv(){return H1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:H1.jsx("path",{d:"M0 0h32v4.2H0z"})})}function Tv(){return H1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:H1.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 Rv(){return H1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:H1.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 Ov(){return H1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:H1.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 H1.jsx("button",{type:"button",className:d0(["react-flow__controls-button",U]),...Z,children:Q})}var Iv=(Q)=>({isInteractive:Q.nodesDraggable||Q.nodesConnectable||Q.elementsSelectable,minZoomReached:Q.transform[2]<=Q.minZoom,maxZoomReached:Q.transform[2]>=Q.maxZoom,ariaLabelConfig:Q.ariaLabelConfig});function gR({style:Q,showZoom:U=!0,showFitView:Z=!0,showInteractive:K=!0,fitViewOptions:H,onZoomIn:Y,onZoomOut:W,onFitView:B,onInteractiveChange:T,className:R,children:M,position:A="bottom-left",orientation:O="vertical","aria-label":P}){let N=x0(),{isInteractive:V,minZoomReached:j,maxZoomReached:f,ariaLabelConfig:u}=H0(Iv,h0),{zoomIn:C,zoomOut:v,fitView:D}=gJ(),h=()=>{C(),Y?.()},E=()=>{v(),W?.()},b=()=>{D(H),B?.()},k=()=>{N.setState({nodesDraggable:!V,nodesConnectable:!V,elementsSelectable:!V}),T?.(!V)};return H1.jsxs(s4,{className:d0(["react-flow__controls",O==="horizontal"?"horizontal":"vertical",R]),position:A,style:Q,"data-testid":"rf__controls","aria-label":P??u["controls.ariaLabel"],children:[U&&H1.jsxs(H1.Fragment,{children:[H1.jsx($U,{onClick:h,className:"react-flow__controls-zoomin",title:u["controls.zoomIn.ariaLabel"],"aria-label":u["controls.zoomIn.ariaLabel"],disabled:f,children:H1.jsx(Av,{})}),H1.jsx($U,{onClick:E,className:"react-flow__controls-zoomout",title:u["controls.zoomOut.ariaLabel"],"aria-label":u["controls.zoomOut.ariaLabel"],disabled:j,children:H1.jsx(Mv,{})})]}),Z&&H1.jsx($U,{className:"react-flow__controls-fitview",onClick:b,title:u["controls.fitView.ariaLabel"],"aria-label":u["controls.fitView.ariaLabel"],children:H1.jsx(Tv,{})}),K&&H1.jsx($U,{className:"react-flow__controls-interactive",onClick:k,title:u["controls.interactive.ariaLabel"],"aria-label":u["controls.interactive.ariaLabel"],children:V?H1.jsx(Ov,{}):H1.jsx(Rv,{})}),M]})}gR.displayName="Controls";var pR=z1.memo(gR);function wv({id:Q,x:U,y:Z,width:K,height:H,style:Y,color:W,strokeColor:B,strokeWidth:T,className:R,borderRadius:M,shapeRendering:A,selected:O,onClick:P}){let{background:N,backgroundColor:V}=Y||{},j=W||N||V;return H1.jsx("rect",{className:d0(["react-flow__minimap-node",{selected:O},R]),x:U,y:Z,rx:M,ry:M,width:K,height:H,style:{fill:j,stroke:B,strokeWidth:T},shapeRendering:A,onClick:P?(f)=>P(f,Q):void 0})}var Pv=z1.memo(wv),Nv=(Q)=>Q.nodes.map((U)=>U.id),sK=(Q)=>Q instanceof Function?Q:()=>Q;function Cv({nodeStrokeColor:Q,nodeColor:U,nodeClassName:Z="",nodeBorderRadius:K=5,nodeStrokeWidth:H,nodeComponent:Y=Pv,onClick:W}){let B=H0(Nv,h0),T=sK(U),R=sK(Q),M=sK(Z),A=typeof window>"u"||!!window.chrome?"crispEdges":"geometricPrecision";return H1.jsx(H1.Fragment,{children:B.map((O)=>H1.jsx(Sv,{id:O,nodeColorFunc:T,nodeStrokeColorFunc:R,nodeClassNameFunc:M,nodeBorderRadius:K,nodeStrokeWidth:H,NodeComponent:Y,onClick:W,shapeRendering:A},O))})}function fv({id:Q,nodeColorFunc:U,nodeStrokeColorFunc:Z,nodeClassNameFunc:K,nodeBorderRadius:H,nodeStrokeWidth:Y,shapeRendering:W,NodeComponent:B,onClick:T}){let{node:R,x:M,y:A,width:O,height:P}=H0((N)=>{let V=N.nodeLookup.get(Q);if(!V)return{node:void 0,x:0,y:0,width:0,height:0};let j=V.internals.userNode,{x:f,y:u}=V.internals.positionAbsolute,{width:C,height:v}=i5(j);return{node:j,x:f,y:u,width:C,height:v}},h0);if(!R||R.hidden||!DK(R))return null;return H1.jsx(B,{x:M,y:A,width:O,height:P,style:R.style,selected:!!R.selected,className:K(R),color:U(R),borderRadius:H,strokeColor:Z(R),strokeWidth:Y,shapeRendering:W,onClick:T,id:R.id})}var Sv=z1.memo(fv),jv=z1.memo(Cv),vv=200,Vv=150,yv=(Q)=>!Q.hidden,kv=(Q)=>{let U={x:-Q.transform[0]/Q.transform[2],y:-Q.transform[1]/Q.transform[2],width:Q.width/Q.transform[2],height:Q.height/Q.transform[2]},Z=!1;for(let K of Q.nodeLookup.values())if(!K.hidden){Z=!0;break}return{viewBB:U,boundingRect:Z?VK(c8(Q.nodeLookup,{filter:yv}),U):U,rfId:Q.rfId,panZoom:Q.panZoom,translateExtent:Q.translateExtent,flowWidth:Q.width,flowHeight:Q.height,ariaLabelConfig:Q.ariaLabelConfig}},QR=(Q,U)=>Q.x===U.x&&Q.y===U.y&&Q.width===U.width&&Q.height===U.height,Dv=(Q,U)=>QR(Q.viewBB,U.viewBB)&&QR(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,uv="react-flow__minimap-desc";function cR({style:Q,className:U,nodeStrokeColor:Z,nodeColor:K,nodeClassName:H="",nodeBorderRadius:Y=5,nodeStrokeWidth:W,nodeComponent:B,bgColor:T,maskColor:R,maskStrokeColor:M,maskStrokeWidth:A,position:O="bottom-right",onClick:P,onNodeClick:N,pannable:V=!1,zoomable:j=!1,ariaLabel:f,inversePan:u,zoomStep:C=1,offsetScale:v=5}){let D=x0(),h=z1.useRef(null),{boundingRect:E,panZoom:b,viewBB:k,rfId:x,translateExtent:$1,flowWidth:Q1,flowHeight:J1,ariaLabelConfig:m}=H0(kv,Dv),p=Q?.width??vv,c=Q?.height??Vv,a=E.width/p,i=E.height/c,o=Math.max(a,i),y=o*p,g=o*c,q1=v*o,t=E.x-(y-E.width)/2-q1,W1=E.y-(g-E.height)/2-q1,T1=y+q1*2,O1=g+q1*2,B1=`${uv}-${x}`,U1=z1.useRef(0),P1=z1.useRef();U1.current=o,z1.useEffect(()=>{let g1=D.getState().panZoom;if(h.current&&g1)return P1.current=LT({domNode:h.current,panZoom:g1,getTransform:()=>D.getState().transform,getViewScale:()=>U1.current}),()=>{P1.current?.destroy()}},[b]),z1.useEffect(()=>{P1.current?.update({translateExtent:$1,width:Q1,height:J1,inversePan:u,pannable:V,zoomStep:C,zoomable:j})},[V,j,u,C,$1,Q1,J1]);let j1=P?(g1)=>{let[h1,M1]=P1.current?.pointer(g1)||[0,0];P(g1,{x:h1,y:M1})}:void 0,A1=z1.useCallback((g1,h1)=>{let M1=D.getState().nodeLookup.get(h1).internals.userNode;N?.(g1,M1)},[N]),k1=N?A1:void 0,D1=f??m["minimap.ariaLabel"];return H1.jsx(s4,{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*o:void 0,"--xy-minimap-node-background-color-props":typeof K==="string"?K:void 0,"--xy-minimap-node-stroke-color-props":typeof Z==="string"?Z:void 0,"--xy-minimap-node-stroke-width-props":typeof W==="number"?W:void 0},className:d0(["react-flow__minimap",U]),"data-testid":"rf__minimap",children:H1.jsxs("svg",{width:p,height:c,viewBox:`${t} ${W1} ${T1} ${O1}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":B1,ref:h,onClick:j1,children:[D1&&H1.jsx("title",{id:B1,children:D1}),H1.jsx(jv,{onClick:k1,nodeColor:K,nodeStrokeColor:Z,nodeBorderRadius:Y,nodeClassName:H,nodeStrokeWidth:W,nodeComponent:B}),H1.jsx("path",{className:"react-flow__minimap-mask",d:`M${t-q1},${W1-q1}h${T1+q1*2}v${O1+q1*2}h${-T1-q1*2}z
|
|
247
|
-
M${k.x},${k.y}h${k.width}v${k.height}h${-k.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}cR.displayName="MiniMap";var lR=z1.memo(cR),
|
|
248
|
-
`)}var dR={"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=p0(f8(),1),KU="volter.console.token",t8=document.getElementById("root"),t1=t8.dataset.base??"/-/console",B0=window.location.origin,h6=(t8.dataset.worlds??B0).replace(/\/+$/,""),JO=(t8.dataset.names??"").split(",").filter((Q)=>Q!==""),b6=t8.dataset.worldOrigin==="1",s8=window.fetch.bind(window),E6="(session)",$O="(pass)",pJ=(Q)=>{try{if(Q&&!b6)sessionStorage.setItem(KU,Q);else sessionStorage.removeItem(KU);localStorage.removeItem(KU)}catch{}},QO="volter.console.portal",qO=(Q)=>{try{if(typeof Q==="string"&&/^https?:$/.test(new URL(Q).protocol))sessionStorage.setItem(QO,new URL(Q).origin)}catch{}},lv=()=>{return o8.get("token")??""},x2=()=>{try{let Q=sessionStorage.getItem(QO)??"";return Q&&/^https?:$/.test(new URL(Q).protocol)?new URL(Q).origin:""}catch{return""}},iv=()=>{let Q=lv();if(b6){if(pJ(""),o8.get("pass"))return $O;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?"":E6)}if(Q)return pJ(Q),Q;try{return sessionStorage.getItem(KU)??""}catch{return""}};function F2(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: ${S8(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 ${d1(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 K=/the ([a-z0-9_-]+) twin has no root/i.exec(U)??/:\s*([a-z0-9_, -]+?) (?:has|have) no root/i.exec(U);if(K){let Y=K[1].split(/,\s*/).filter(Boolean).map(d1);return{text:`${S8(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 C5=async(Q)=>F2(await N3(Q)).text,dv={vault:["vault","Open Vault"],remote:["remote","Open Remote"],settings:["settings/services","Open Real services"]};function UO({name:Q,acts:U}){let Z=U.map((K)=>dv[K]).filter((K)=>Boolean(K));if(Z.length===0)return null;return F.jsxDEV(F.Fragment,{children:Z.map(([K,H])=>F.jsxDEV(K1.default.Fragment,{children:[" ",F.jsxDEV("a",{href:`${t1}/${Q}/~/${K}`,onClick:(Y)=>{Y.preventDefault(),M0([...Q.split("/"),"~",...K.split("/")])},children:H},void 0,!1,void 0,this)]},K,!0,void 0,this))},void 0,!1,void 0,this)}async function z0(Q,U,Z={}){return s8(`${B0}${U}`,{...Z,headers:{...Z.headers??{},...Q===E6?{}:{"x-volter-token":Q},...Z.body&&!Z.headers?.["content-type"]?{"content-type":"application/json"}:{}}})}function f0(Q,U,Z=0){let K=xA((H)=>z0(Q,H),U,Z,Q);return K.state==="error"?{...K,error:F2(K.error).text}:K}var w9=(Q)=>{let U=new Date(Q),Z=(K)=>String(K).padStart(2,"0");return`${U.getFullYear()}-${Z(U.getMonth()+1)}-${Z(U.getDate())}T${Z(U.getHours())}:${Z(U.getMinutes())}`},rR=(Q)=>new Date(Math.ceil(Date.parse(Q)/60000)*60000).toISOString(),GO=(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",rv=(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},UH="volter.console.snapshots",D3=()=>{try{return JSON.parse(sessionStorage.getItem(UH)??"{}")}catch{return{}}},ZO=new Map,GH=(Q)=>{if(b6){if(Q.token||Q.readToken)ZO.set(Q.name,{token:Q.token,readToken:Q.readToken});Q={...Q,token:"",readToken:""}}try{sessionStorage.setItem(UH,JSON.stringify({...D3(),[Q.name]:Q}))}catch{}},ZH=(Q)=>ZO.get(Q)?.readToken||D3()[Q]?.readToken||"",HU=(Q)=>{try{let U=D3();delete U[Q],sessionStorage.setItem(UH,JSON.stringify(U))}catch{}},o8=new URLSearchParams(window.location.hash.slice(1)),O9=o8.get("close")??"";function P9(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 FH(Q){let U=P9(Q);if(!U)return null;let Z=new URL(B0);if(U.protocol!==Z.protocol||U.port!==Z.port)return null;if(U.hostname===Z.hostname)return U.origin;let K=/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./;if(!K.test(U.hostname))return null;let H=U.hostname.replace(K,"");return H===Z.hostname||K.test(Z.hostname)&&H===Z.hostname.replace(K,"")?U.origin:null}function av(Q){let U;try{U=JSON.parse(Q)}catch{return null}let Z=/^[a-z0-9][a-z0-9-]*\/[a-z0-9][a-z0-9-]*$/i;if(typeof U.name!=="string"||!Z.test(U.name)||typeof U.parent!=="string"||!Z.test(U.parent)||typeof U.at!=="string")return null;let K=U.parentOrigin===void 0?void 0:FH(U.parentOrigin);return{name:U.name,parent:U.parent,token:typeof U.token==="string"?U.token:"",readToken:typeof U.readToken==="string"?U.readToken:"",at:U.at,expiresAt:typeof U.expiresAt==="string"?U.expiresAt:null,...K?{parentOrigin:K}:{}}}{let Q=o8.get("snapshot");if(Q){let U=av(Q);if(U&&!D3()[U.name])GH(U)}}var FO="volter.console.home",XO=(Q)=>{let U=P9(Q);if(!U)return null;let Z=new URL(B0).hostname,K=Z.replace(/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./,"");return U.hostname===Z||U.hostname===K?U.origin:null};{let Q=XO(o8.get("home"));if(Q)try{sessionStorage.setItem(FO,Q)}catch{}}if(["token","pass","portal","snapshot","home","close"].some((Q)=>o8.has(Q)))try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}var Y4=()=>{try{return XO(sessionStorage.getItem(FO))??""}catch{return""}};function XH(Q,U,Z,K){let H=new URLSearchParams({token:U,home:Y4()||B0}),Y=D3()[Z];if(Y)H.set("snapshot",JSON.stringify(Y));window.location.replace(`${Q}${K??`${window.location.pathname}${window.location.search}`}#${H.toString()}`)}var qH=t8.dataset.route==="memory"?"":null;function d8(){return(qH??window.location.pathname.slice(t1.length)).split("/").filter(Boolean).map((Q)=>{try{return decodeURIComponent(Q)}catch{return""}})}var aR=/^[a-z0-9](?:[a-z0-9]|-(?!-))*$/i,k3=(Q,U)=>Q&&U&&aR.test(Q)&&aR.test(U)?`${Q}/${U}`:"";function M0(Q){let U=`/${Q.map(encodeURIComponent).join("/")}`;if(qH!==null)qH=U;else window.history.pushState(null,"",`${t1}${U}`);window.dispatchEvent(new PopStateEvent("popstate"))}function KO(Q,U){let Z=FH(D3()[Q]?.origin);if(Z&&Z!==B0){XH(Z,ZH(Q),Q,`${t1}/${U.map(encodeURIComponent).join("/")}`);return}M0(U)}async function sR(){let[Q,U]=d8(),Z=k3(Q,U),K=Z?[Z]:JO;if(K.length===0){let H=await s8(`${B0}/-/ping`).catch(()=>null);K=H?.ok?(await H.json().catch(()=>({}))).worlds??[]:[]}K=K.filter((H)=>{let[Y,W,...B]=H.split("/");return B.length===0&&k3(Y,W)===H});for(let H of K){let Y=await s8(`${B0}/-/${H}/session`,{method:"POST"}).catch(()=>null);if(!Y)continue;let W=await Y.json().catch(()=>({})),B=P9(W.origin)?.origin;if(Y.status===409&&B&&B!==B0)return window.location.replace(`${B}${t1}/${H}`),"moved";if(Y.ok&&W.local)return{token:typeof W.token==="string"&&W.token?W.token:E6}}return null}function sv(){let[Q,U]=K1.useState(tF),Z=(K)=>()=>{try{if(K==="system")localStorage.removeItem("volter.theme");else localStorage.setItem("volter.theme",K)}catch{}Lq(K),U(K)};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((K)=>F.jsxDEV("button",{type:"button",role:"radio","aria-checked":Q===K,onClick:Z(K),children:K==="system"?"System":K==="light"?"Light":"Dark"},K,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function tv(){let[Q,U]=K1.useState(iv()),[Z,K]=K1.useState(!1),[H,Y]=K1.useState(!1),[W,B]=K1.useState(""),[T,R]=K1.useState(null),[M,A]=K1.useState(null),[O,P]=K1.useState(d8());K1.useEffect(()=>{let g=()=>P(d8());return window.addEventListener("popstate",g),()=>window.removeEventListener("popstate",g)},[]),K1.useEffect(()=>{let[g,q1]=d8(),t=k3(g,q1),[W1,T1]=t?t.split("/"):[],O1=D3()[O9];if(!O9||!Q||!W1||!T1||!O1?.made||O1.parent!==`${W1}/${T1}`||k3(...O9.split("/"))!==O9)return;try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}z0(Q,`/-/${W1}/${T1}/branches/${O9}`,{method:"DELETE"}).catch(()=>null).then(()=>HU(O9))},[Q]);let N=K1.useCallback(async(g)=>{if(A(null),!g){let T1=await sR();if(T1==="moved")return;if(T1){if(K(!0),T1.token!==E6)pJ(T1.token);U(T1.token);return}R(null),Y(!0);return}if(b6&&g===E6){let T1=await sR();if(T1==="moved")return;if(T1)K(!0)}if(b6&&g===$O){let[T1,O1]=d8(),B1=k3(T1,O1),[U1,P1]=B1?B1.split("/"):[],j1=U1&&P1?await s8(`${B0}/-/${U1}/${P1}/session`,{method:"POST",headers:{"x-volter-pass":o8.get("pass")??""}}).catch(()=>null):null;if(!j1){A(`${B0} did not answer: no session was opened`),R(null);return}if(!j1.ok){A(`${await C5(j1)}. Open it again from the platform.`),R(null);return}qO((await j1.json().catch(()=>({}))).issuer),U(E6);return}if(b6&&g!==E6){let[T1,O1]=d8(),B1=k3(T1,O1),[U1,P1]=B1?B1.split("/"):[],j1=U1&&P1?await s8(`${B0}/-/${U1}/${P1}/session`,{method:"POST",headers:{"x-volter-token":g}}).catch(()=>null):null;if(!j1){A(`${B0} did not answer: no session was opened`),R(null);return}if(!j1.ok){let A1=await C5(j1);A(j1.status===401||j1.status===403?`That token does not open ${U1}/${P1}.`:j1.status===409?`${U1}/${P1}'s session lives at another origin: ${A1}`:`The World could not open a session (${j1.status}): ${A1}`),R(null);return}U(E6);return}let q1=b6?new Response(null,{status:404}):await z0(g,"/-/worlds");if(q1.ok){let{worlds:T1}=await q1.json();R({kind:"admin",worlds:T1});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 T1=await q1.json().catch(()=>({}));A(`The platform could not list your worlds${T1.error?`: ${T1.error}`:""}. Reload; if it stays, the status page says what is wrong.`),R(null);return}let t=JO;if(t.length===0){let T1=await s8(`${B0}/-/ping`);if(!T1.ok){A(`${B0} does not answer as a host`),R(null);return}if(t=(await T1.json()).worlds??[],t.length===0){A(`${B0} does not list its Worlds: open a World at its own address, ${B0}${t1}/<org>/<world>`),R(null);return}}let W1=[];for(let T1 of t){let O1=await z0(g,`/-/${T1}/twins`);if(O1.ok){let B1=await O1.json();W1.push({name:T1,base:`${h6}/${T1}`,twins:(B1.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})},[]);K1.useEffect(()=>{N(Q)},[Q,N]);let V=(g)=>T?.kind==="admin"?T.worlds.find((q1)=>q1.name===g)?.token??Q:Q,[j,f]=K1.useState("");if(!Q||!T&&!M)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(FJ,{href:`${t1}/`},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:(g)=>{g.preventDefault(),pJ(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:(g)=>B(g.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 u=()=>{if(Z){window.location.reload();return}if(b6){let[g,q1]=d8(),t=k3(g,q1),[W1,T1]=t?t.split("/"):[],O1=()=>window.location.replace(x2()?`${x2()}/`:`${B0}${t1}/${W1&&T1?`${W1}/${T1}`:""}?signin`);if(setTimeout(O1,2000),W1&&T1)s8(`${B0}/-/${W1}/${T1}/session/end`,{method:"POST"}).catch(()=>null).then(O1);else O1();return}if(T)for(let g of T.worlds)navigator.sendBeacon(`${g.base.replace(/\/[^/]+\/[^/]+$/,"")}/-/${g.name}/session/end`);pJ(""),U(""),B(""),R(null),M0([])};if(M||!T)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(FJ,{href:`${t1}/`},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),x2()?F.jsxDEV("a",{className:"button primary",href:`${x2()}/`,children:["Back to ",new URL(x2()).host]},void 0,!0,void 0,this):F.jsxDEV("button",{type:"button",className:"primary",onClick:u,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[C,v,D,h,E,b,k]=O,x=D==="~",$1=/^[A-Za-z0-9_-]+$/,Q1=/^[^\u0000-\u001f\u007f]{1,200}$/,J1=x||!D||!$1.test(D)?void 0:D,m=E&&$1.test(E)?b!==void 0&&h!=="changes"&&h!=="screens"?k3(E,b)||void 0:E:void 0,p=h==="changes"&&E==="changesets"&&b&&$1.test(b)?b:h==="screens"&&b&&k&&/^[A-Za-z0-9_.-]+$/.test(b)&&Q1.test(k)?`${b}:${k}`:void 0,c=k3(C,v),a=c?D3()[c]??null:null,i=(g)=>ZH(g)||V(g),o=a?T.kind==="admin"?T.worlds.find((g)=>g.name===a.parent)?.token??null:T.worlds.some((g)=>g.name===a.parent)?Q:null:null,y=async(g)=>{let q1=FH(g.parentOrigin);if(q1&&q1!==B0){HU(g.name),window.location.assign(`${q1}${t1}/${g.parent}#close=${encodeURIComponent(g.name)}`);return}if(g.made)await z0(V(g.parent),`/-/${g.parent}/branches/${g.name}`,{method:"DELETE"}).catch(()=>null),HU(g.name);M0(g.parent.split("/"))};return F.jsxDEV("main",{className:c?"app workspace":"app home",children:[c?null:F.jsxDEV("header",{children:[c?F.jsxDEV(lA,{},void 0,!1,void 0,this):null,F.jsxDEV(FJ,{href:`${Y4()&&Y4()!==B0?Y4():""}${t1}/`,onClick:(g)=>{if(Y4()&&Y4()!==B0)return;g.preventDefault(),M0([])}},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:`${t1}/${c}`,className:"crumb-world",onClick:(g)=>{g.preventDefault(),M0(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,x&&h==="trace"?F.jsxDEV("span",{children:" / trace"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),x2()?F.jsxDEV("a",{href:`${x2()}/${c?encodeURIComponent(c.split("/")[0]):""}`,title:`Back to the platform at ${new URL(x2()).host}`,className:"back-link",children:["← ",F.jsxDEV("span",{className:"back-text",children:c?`${c.split("/")[0]}'s Worlds`:new URL(x2()).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":j?`signed in as ${j}`:T.kind==="admin"?"host: admin":"opened with a link or key"},void 0,!1,void 0,this),c||Z?null:F.jsxDEV("button",{onClick:u,children:"Sign out"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c?F.jsxDEV(_V,{name:c,token:i(c),twin:J1,tab:x?h??"overview":"overview",arg:x?m:void 0,...x&&p?{sub:p}:{},admin:a?null:T.kind==="admin"?Q:null,snapshot:a,parentToken:o,who:{local:Z,person:j||null,admin:T.kind==="admin"},onSignOut:u,onReturn:y,opens:(g)=>!!D3()[g]||T.kind==="admin"&&T.worlds.some((q1)=>q1.name===g),onRemoved:()=>{N(Q),M0([])},onWho:f,worlds:T.worlds.map((g)=>g.name)},c,!1,void 0,this):F.jsxDEV(ov,{mode:T,admin:T.kind==="admin"?Q:null,reload:()=>N(Q)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ov({mode:Q,admin:U,reload:Z}){let[K,H]=K1.useState(""),[Y,W]=K1.useState(""),[B,T]=K1.useState(""),[R,M]=K1.useState(null),A=async(E)=>{if(!await c4({title:`Rotate the tokens of ${E}?`,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 z0(U,`/-/worlds/${E}/rotate`,{method:"POST"}),k=await b.json().catch(()=>({}));M(b.ok?`rotated ${E}: the new tokens are shown once — token ${k.token} · read token ${k.readToken}`:k.error?F2(k.error).text:`answered ${b.status}`),await Z()},O=async(E)=>{let b=await z0(U,`/-/worlds/${E}`,{method:"DELETE"}),k=await b.json().catch(()=>({}));M(b.ok?`removed ${E}`:k.error?F2(k.error).text:`answered ${b.status}`),await Z()},[P,N]=K1.useState(!1),[V,j]=K1.useState(!1),[f,u]=K1.useState(""),C=async(E)=>{E.preventDefault(),M(null),N(!0);try{let b=await z0(U,"/-/worlds",{method:"POST",body:JSON.stringify({org:K,world:Y,vendors:B.split(",").map((x)=>x.trim()).filter(Boolean)})}),k=await b.json();if(!b.ok){M(k.error?F2(k.error).text:`the host answered ${b.status}`);return}M(`provisioned ${k.name}`),W(""),T(""),j(!1),await Z()}finally{N(!1)}},v=f.trim().toLowerCase(),D=Q.worlds.filter((E)=>!v||E.name.toLowerCase().includes(v)||E.twins.some((b)=>b.vendor.includes(v))),h=[...new Set(D.map((E)=>E.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:[E0(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),j(!0)},children:[F.jsxDEV(Q0,{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:(E)=>u(E.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((E)=>F.jsxDEV(K1.default.Fragment,{children:[F.jsxDEV("p",{className:"menu-label home-org",children:E},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"home-list",children:D.filter((b)=>b.name.split("/")[0]===E).map((b)=>F.jsxDEV("li",{children:[F.jsxDEV("a",{href:`${t1}/${b.name}`,onClick:(k)=>{k.preventDefault(),M0(b.name.split("/"))},children:[F.jsxDEV(Q0,{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((k)=>F.jsxDEV("span",{title:d1(k.vendor),children:F.jsxDEV(s0,{vendor:k.vendor},void 0,!1,void 0,this)},k.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:(k)=>{k.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:(k)=>{k.currentTarget.closest("details")?.removeAttribute("open"),c4({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((x)=>{if(x)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)]},E,!0,void 0,this)),D.length===0?F.jsxDEV("p",{className:"mode home-note",children:v?`No World matches ${f}.`:"No Worlds here yet."},void 0,!1,void 0,this):null,F.jsxDEV(P5,{open:V,onClose:()=>{if(!P)j(!1)},title:"New World",footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>j(!1),disabled:P,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"provision",className:"primary",disabled:P,children:P?"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:C,className:"stack",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Org"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"org",value:K,onChange:(E)=>H(E.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:(E)=>W(E.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:(E)=>T(E.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 nv=["changes","events","trace","vendors","screens","canvas","branches","settings","remote","vault"],ev=(Q,U)=>{let Z=U?.screens?.find((K)=>K.path.replace(/\/+$/,"")==="")??U?.screens?.find((K)=>!/[{<]/.test(K.path));return U&&Z?`${h6}/${Q}/${U.twin}${Z.path.startsWith("/")?Z.path:`/${Z.path}`}`:null},tR={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 d5(Q){let U=Q.operation??Q.op,Z=(U.includes(".")?U.slice(U.lastIndexOf(".")+1):U).toLowerCase(),K=Q.subject.type.replace(/[_-]+/g," ").trim(),H=`${K.charAt(0).toUpperCase()}${K.slice(1)}`,Y=/(^|\.)twin\./.test(U)||/^seed_/.test(Z),W=U.replace(/[._]+/g," ").trim(),B=Y?`${H} seeded`:tR[Z]?`${H} ${tR[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,P)=>`${O==="!"?"@":O}${P}`).replace(/<(?:https?:[^|>]+)\|([^>]+)>/g,"$1").replace(/<(https?:[^>]+)>/g,"$1");return{what:B,label:M===null?null:M.length>80?`${M.slice(0,79)}…`:M}}var u3=(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 _V({name:Q,token:U,twin:Z,tab:K,arg:H,sub:Y,admin:W,snapshot:B,parentToken:T,who:R,onSignOut:M,onReturn:A,opens:O,onRemoved:P,onWho:N,worlds:V=[]}){let[j,f]=K1.useState("pending"),[u,C]=K1.useState(null),[v,D]=K1.useState(0),[h,E]=K1.useState(null);K1.useEffect(()=>{let B1=!0;return C(null),z0(U,`/-/${Q}/session`,{method:"POST"}).then(async(U1)=>{let P1=await U1.json().catch(()=>({}));if(qO(P1.issuer),P1.who)N?.(P1.who);E(typeof P1.signsAs==="string"?P1.signsAs:null);let j1=P9(P1.origin)?.origin;if(U1.status===409&&j1&&j1!==B0){XH(j1,U,Q);return}if(!B1)return;if(f(!U1.ok?"unknown":P1.scope==="read"?"read":P1.scope==="write"?"write":"unknown"),!U1.ok)C(P1.error?F2(P1.error).text:`answered ${U1.status}`)}).catch((U1)=>{if(B1)f("unknown"),C(`the World did not answer: ${U1 instanceof Error?U1.message:String(U1)}`)}),()=>{B1=!1}},[Q,U,v]);let b=u?{state:"error",error:u}:j==="pending"?{state:"pending"}:{state:"ok",scope:j},k=j==="write",x=(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,Q1]=K1.useState(0);K1.useEffect(()=>{let B1=setInterval(()=>{if(!document.hidden)Q1((U1)=>U1+1)},5000);return()=>clearInterval(B1)},[]);let[J1,m]=K1.useState(0),p=f0(U,`/-/${Q}/clock`,$1+J1),c=f0(U,`/-/${Q}/twins`),a=f0(U,`/-/${Q}/branches`,J1),i=f0(U,`/-/${Q}/map`,Math.floor($1/2)),o=!(a.state==="error"&&(a.status===404||a.status===405)),y=nv.includes(K)?K:"overview",g=c.state==="ok"?c.data.twins.map((B1)=>B1.twin):[];if(Z&&c.state==="ok"&&!g.includes(Z))return F.jsxDEV("main",{className:"center",children:F.jsxDEV(Q9,{title:`${Q} has no ${Z}`,action:F.jsxDEV("a",{href:`${t1}/${Q}`,onClick:(B1)=>{B1.preventDefault(),M0(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,t=()=>{f("pending"),D((B1)=>B1+1)};if(y==="canvas"||y==="vendors"&&!q1||K==="screens"&&!H)return F.jsxDEV(jV,{name:Q,token:U,twins:c,session:b,retry:t,snapshot:B,back:()=>M0(Q.split("/")),canWrite:k&&!B},void 0,!1,void 0,this);let T1=K==="settings"?{kind:"settings",tab:((B1)=>HO.find(([U1])=>U1===B1)?.[0]??"account")(H)}:K==="remote"?{kind:"settings",tab:"remote"}:K==="vault"?{kind:"settings",tab:"vault"}:K==="branches"?{kind:"branches",...H?{open:H}:{}}:null,O1=Z?"vendor":K==="screens"&&H?"screen":y==="vendors"&&q1?"vendor":K==="trace"?"trace":K==="events"?"events":K==="changes"&&H==="changesets"?"history":"changes";return F.jsxDEV(KV,{name:Q,token:U,view:O1,win:T1,who:R,snapshot:B,onReturn:A,onSignOut:M,worlds:V,session:b,retry:t,...O1==="vendor"?{arg:Z??q1}:O1==="events"||O1==="trace"||O1==="screen"?H?{arg:H}:{}:{},...Y?{sub:Y}:{},twins:c,map:i,branches:o?a:null,clock:p,canWrite:k&&!B,refused:x,signsAs:h,opens:O,tick:$1,admin:W,onRemoved:P,onClock:()=>m((B1)=>B1+1),scope:B?"read":j},void 0,!1,void 0,this)}function Q0({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:(dR[Q]??[]).map(([Z,K],H)=>K1.default.createElement(Z,{key:H,...K}))},void 0,!1,void 0,this)}function zU(Q){let U=(Z)=>{let K=(Z.operation??Z.op).toLowerCase();return K.includes(".")?K.slice(K.lastIndexOf(".")+1):K};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 HO=[["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"]],JV=(Q,U)=>{let Z=U.split("/").pop()??U,K=Q.split("/").pop()??"";return Z.startsWith(`${K}-`)?Z.slice(K.length+1):Z},r8=(Q)=>Q.replace(/^_+/,"").replace(/[_-]+/g," ");function YO({record:Q,history:U}){let Z=Q.writes[Q.writes.length-1],K=d5(Z),H=zU(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)=>!PO(B[A],T[A]));return F.jsxDEV("div",{className:"ws-diff","aria-label":`${K.label??u3(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(Q0,{name:H.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(s0,{vendor:Q.twin},void 0,!1,void 0,this),F.jsxDEV("div",{className:"cell-label",children:[F.jsxDEV("b",{children:K.label??u3(Z)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[d1(Q.twin)," · ",Z.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")," ",F.jsxDEV("code",{children:u3(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:d5(A).what},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(I0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",cJ(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(b3,{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(b3,{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 zO({records:Q,selected:U,onPick:Z,label:K}){let[H,Y]=K1.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=d5(A),P=zU(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(s0,{vendor:R.twin},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:O.label??u3(A)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[r8(A.subject.type)," · ",O.what.split(" ").slice(-1)[0],R.writes.length>1?` · ${E0(R.writes.length,"write")}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:`ws-kind ${P.tone}`,title:P.word,"aria-label":P.word,children:F.jsxDEV(Q0,{name:P.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":K,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(s0,{vendor:R},void 0,!1,void 0,this),F.jsxDEV("b",{children:d1(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 $V({name:Q,token:U,branches:Z,opens:K,refused:H,onChanged:Y}){let[W,B]=K1.useState(""),[T,R]=K1.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:[],P=W.trim().toLowerCase(),N=(j)=>!P||j.toLowerCase().includes(P),V=(j)=>{j.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(Q0,{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(Q0,{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:(j)=>B(j.target.value)},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:(j)=>{V(j),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((j)=>N(j.name)).map((j)=>F.jsxDEV("li",{className:j.name===M?"current":void 0,children:[F.jsxDEV("span",{className:"tick",children:j.name===M?F.jsxDEV(Q0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(Q0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:j.name},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:j.name===M?"served here":j.running?"running":"stopped"},void 0,!1,void 0,this)]},j.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((j)=>N(j.name)).map((j)=>{let f=F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"tick",children:F.jsxDEV(Q0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:JV(Q,j.name)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:j.at?.instant?F.jsxDEV(F.Fragment,{children:["as of ",F.jsxDEV(I0,{iso:j.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),u=j.expiresAt?`Goes away ${new Date(j.expiresAt).toLocaleString()}`:"Kept";return F.jsxDEV("li",{children:K(j.name)?F.jsxDEV("a",{href:`${t1}/${j.name}`,title:u,onClick:(C)=>{C.preventDefault(),V(C),KO(j.name,j.name.split("/"))},children:f},void 0,!1,void 0,this):F.jsxDEV("span",{title:`${u}. Its tokens went to whoever made it; it opens from their page.`,children:f},void 0,!1,void 0,this)},j.name,!1,void 0,this)})},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-branch-foot",children:F.jsxDEV("a",{href:`${t1}/${Q}/~/branches`,onClick:(j)=>{j.preventDefault(),V(j),M0([...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(LO,{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 WO({name:Q,view:U,changes:Z,changesets:K}){let H=(Y)=>(W)=>{W.preventDefault(),M0([...Q.split("/"),"~",...Y])};return F.jsxDEV("nav",{className:"tabs ws-pane-tabs","aria-label":"Changes and history",children:[F.jsxDEV("a",{href:`${t1}/${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:`${t1}/${Q}/~/changes/changesets`,className:U==="history"?"on":void 0,"aria-current":U==="history"?"page":void 0,onClick:H(["changes","changesets"]),children:["History",K?F.jsxDEV("span",{className:"count",children:K},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function QV({name:Q,token:U,sets:Z,sub:K,signsAs:H,canWrite:Y,rooted:W,refused:B,onChanged:T,changes:R,withScreens:M,required:A}){let[O,P]=K1.useState(null),[N,V]=K1.useState(!1),j=Z.state==="ok"?[...Z.data.changesets].sort((b,k)=>k.createdAt.localeCompare(b.createdAt)):[],f=j.find((b)=>b.name===K)??j[0],u=K1.useMemo(()=>{let b=new Map;for(let k of f?IO(f):[]){let x=`${k.twin}:${k.entry.subject.type}:${k.entry.subject.id}`,$1=b.get(x)??{key:x,twin:k.twin,writes:[]};$1.writes.push(k.entry),b.set(x,$1)}return[...b.values()]},[f]),C=u.find((b)=>b.key===O)??u[0],v=f0(U,C?`/-/${Q}/log/${C.twin}`:null),D={added:0,removed:0,changed:0};for(let b of u)D[zU(b.writes).tone]=(D[zU(b.writes).tone]??0)+1;let h=f?WU(f):null,E=f?wO(f,A):null;return F.jsxDEV("div",{className:"ws-two",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(WO,{name:Q,view:"history",changes:R,changesets:j.length},void 0,!1,void 0,this),F.jsxDEV(b2,{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:j.map((b)=>{let k=f?.name===b.name,x=WU(b).label==="Not sent";return F.jsxDEV("li",{children:F.jsxDEV("a",{href:`${t1}/${Q}/~/changes/changesets/${b.name}`,className:k?"on":void 0,"aria-current":k?"true":void 0,onClick:($1)=>{$1.preventDefault(),P(null),M0([...Q.split("/"),"~","changes","changesets",b.name])},children:[F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:QH(b)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[b.owner??(b.cutBy?YU(b.cutBy):"unrecorded")," • ",F.jsxDEV(I0,{iso:b.createdAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),x?F.jsxDEV("span",{className:"ws-unpushed",title:"Not pushed to the remote yet",children:F.jsxDEV(Q0,{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(Q9,{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&&E?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:QH(f)},void 0,!1,void 0,this),F.jsxDEV("p",{className:"ws-commit-stat",children:[F.jsxDEV(Q0,{name:"file-diff",size:16},void 0,!1,void 0,this)," ",E0(u.length,"changed record"),D.added?F.jsxDEV("span",{className:"plus",children:[" +",D.added]},void 0,!0,void 0,this):null,D.removed?F.jsxDEV("span",{className:"minus",children:[" −",D.removed]},void 0,!0,void 0,this):null,D.changed?F.jsxDEV("span",{className:"dot",children:[" •",D.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(I0,{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":YU(f.cutBy):"unrecorded"],...f.pushedBy?[["Pushed by",YU(f.pushedBy)]]:[]].map(([b,k])=>F.jsxDEV("span",{children:[F.jsxDEV("span",{className:"mode",children:b},void 0,!1,void 0,this)," ",k]},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-${E.tone}`,children:E.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(zO,{records:u,...C?{selected:C.key}:{},onPick:P,label:"Records it changed"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:C?F.jsxDEV(YO,{record:C,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(P5,{open:N,onClose:()=>V(!1),title:`Review: ${QH(f)}`,wide:!0,children:[F.jsxDEV(_O,{name:Q,token:U,signsAs:H,c:f,canWrite:Y,rooted:W,refused:B,onChanged:T,part:"head",required:A},`h:${f.name}`,!1,void 0,this),F.jsxDEV(_O,{name:Q,token:U,signsAs:H,c:f,canWrite:Y,rooted:W,refused:B,onChanged:T,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 qV({name:Q,token:U,vendors:Z,vendor:K,tick:H}){let[Y,W]=K1.useState(oR*4),[B,T]=K1.useState(""),[R,M]=K1.useState(null),A=f0(U,`/-/${Q}/timeline?limit=${Y}${K?`&twin=${encodeURIComponent(K)}`:""}`,Math.floor(H/2)),O=A.state==="ok"?IV(A.data.entries):[],P=[...new Set(O.map((D)=>d5(D.entry).what))].sort(),N=O.filter((D)=>!B||d5(D.entry).what===B),V=N.find((D)=>I9(D)===R)??N[0],j=(D)=>(h)=>{h.preventDefault(),M(null),M0([...Q.split("/"),"~","events",...D?[D]:[]])},f=V?.entry.input&&typeof V.entry.input==="object"?V.entry.input.body:void 0,u=V?rv(V.entry.traceparent):null,C=V?nR(V):null,v=V?MV(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:`${t1}/${Q}/~/events`,className:!K?"on":void 0,"aria-current":!K?"page":void 0,onClick:j(),children:"All"},void 0,!1,void 0,this),Z.map((D)=>F.jsxDEV("a",{href:`${t1}/${Q}/~/events/${D}`,className:K===D?"on":void 0,"aria-current":K===D?"page":void 0,onClick:j(D),children:[F.jsxDEV(s0,{vendor:D},void 0,!1,void 0,this),d1(D)]},D,!0,void 0,this))]},void 0,!0,void 0,this),F.jsxDEV("select",{"aria-label":"Operation",value:B,onChange:(D)=>{T(D.target.value),M(null)},children:[F.jsxDEV("option",{value:"",children:"Every operation"},void 0,!1,void 0,this),P.map((D)=>F.jsxDEV("option",{value:D,children:D},D,!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(b2,{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:N.map((D)=>{let h=d5(D.entry),E=nR(D),b=V&&I9(D)===I9(V);return F.jsxDEV("tr",{className:b?"on":void 0,"aria-selected":b,onClick:()=>M(I9(D)),children:[F.jsxDEV("td",{className:"mono",children:F.jsxDEV(I0,{iso:D.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(s0,{vendor:D.twin},void 0,!1,void 0,this),d1(D.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:u3(D.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:cJ(D.entry,D.caller)},void 0,!1,void 0,this),F.jsxDEV("td",{children:E?F.jsxDEV("span",{className:E.bad?"badge cs-bad":E.status==="deployed"?"badge cs-done":"badge",children:E.status},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:GO(D.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},I9(D),!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:MO(V.entry)},void 0,!1,void 0,this),C?F.jsxDEV("span",{className:C.bad?"badge cs-bad":"badge cs-good",children:C.status},void 0,!1,void 0,this):null,F.jsxDEV("code",{children:[V.entry.subject.type,":",u3(V.entry)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(I0,{iso:V.entry.occurredAt},void 0,!1,void 0,this)," · ",cJ(V.entry,V.caller)]},void 0,!0,void 0,this),u?F.jsxDEV("a",{href:`${t1}/${Q}/~/trace/${u.trace}`,onClick:(D)=>{D.preventDefault(),M0([...Q.split("/"),"~","trace",u.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(RV,{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),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(([D,h])=>F.jsxDEV(K1.default.Fragment,{children:[F.jsxDEV("dt",{children:D},void 0,!1,void 0,this),F.jsxDEV("dd",{children:h},void 0,!1,void 0,this)]},D,!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(RO,{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((D)=>D.entry.receipt?.status??"landed copy").join(" · "):OV(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?`${N.indexOf(V)+1} of ${N.length}`:N.length," events",K?` at ${d1(K)}`:""]},void 0,!0,void 0,this),A.state==="ok"&&A.data.next?F.jsxDEV("button",{type:"button",onClick:()=>W((D)=>D+oR*4),children:"Load older"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function UV({name:Q,token:U,id:Z}){let K=/^[0-9a-f]{32}$/.test(Z),H=f0(U,K?`/-/${Q}/timeline?trace=${Z}&limit=500`:null),Y=H.state==="ok"?[...H.data.entries].sort((A,O)=>-AO(A,O)):[],[W,B]=K1.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:`${t1}/${Q}/~/events`,onClick:(A)=>{A.preventDefault(),M0([...Q.split("/"),"~","events"])},children:[F.jsxDEV(Q0,{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]?`${d5(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),!K?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(b2,{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(I0,{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(d1).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(Q9,{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,P=I9(A),N=d5(A.entry);return F.jsxDEV(K1.default.Fragment,{children:[F.jsxDEV("div",{className:W===P?"ws-span on":"ws-span",role:"row",onClick:()=>B(W===P?null:P),children:[F.jsxDEV("span",{role:"cell",className:"ws-span-name",children:[F.jsxDEV(s0,{vendor:A.twin},void 0,!1,void 0,this),F.jsxDEV("b",{children:d1(A.twin)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[N.what,N.label?` “${N.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===P?F.jsxDEV("div",{className:"ws-span-detail",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("code",{children:MO(A.entry)},void 0,!1,void 0,this)," on ",F.jsxDEV("code",{children:[A.entry.subject.type,":",u3(A.entry)]},void 0,!0,void 0,this)," · ",cJ(A.entry,A.caller)," · ",GO(A.entry)]},void 0,!0,void 0,this),F.jsxDEV(RO,{fields:A.entry.fields},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},P,!0,void 0,this)})]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function GV({name:Q,token:U,vendor:Z,withScreens:K,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((D)=>D.type===v).length})).sort((v,D)=>Number(v.type.startsWith("_"))-Number(D.type.startsWith("_"))||r8(v.type).localeCompare(r8(D.type))),[T,R]=K1.useState(null),[M,A]=K1.useState(null),O=B.some((v)=>v.type===T)?T:B[0]?.type,P=W.filter((v)=>v.type===O),N=P.find((v)=>v.id===M)??P[0],V=["name","email","title","text","description","subject","amount","percent_off","unit_amount","currency","status","channel","customer","product"],j=new Set(["id","type","object","livemode","created","updated","updatedAt","deleted"]),f=(v)=>!j.has(v)&&P.some((D)=>D[v]!==void 0&&D[v]!==null&&typeof D[v]!=="object"),u=[...new Set(P.flatMap((v)=>Object.keys(v)))],C=[...V.filter(f),...u.filter((v)=>!V.includes(v)&&f(v))].slice(0,4);return F.jsxDEV("div",{className:"ws-table-app",children:[F.jsxDEV("nav",{className:"ws-tables","aria-label":`${d1(Z)}'s records`,children:[F.jsxDEV("div",{className:"ws-list-head",children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(s0,{vendor:Z},void 0,!1,void 0,this),d1(Z)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(b2,{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:(D)=>{D.preventDefault(),R(v.type),A(null)},children:[F.jsxDEV(Q0,{name:"table-2",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:r8(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:`${t1}/${Q}/~/events/${Z}`,onClick:(v)=>{v.preventDefault(),M0([...Q.split("/"),"~","events",Z])},children:[F.jsxDEV(Q0,{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),K?F.jsxDEV("a",{href:`${t1}/${Q}/~/screens/${Z}`,onClick:(v)=>{v.preventDefault(),M0([...Q.split("/"),"~","screens",Z])},children:[F.jsxDEV(Q0,{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(Q9,{title:`${d1(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,P.length?F.jsxDEV("table",{className:"ws-grid","aria-label":`${r8(O??"")} records`,children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"id"},void 0,!1,void 0,this),C.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:P.map((v)=>F.jsxDEV("tr",{className:N?.id===v.id?"on":void 0,"aria-selected":N?.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),C.map((D)=>F.jsxDEV("td",{className:"ws-cell-clip",children:v[D]===void 0||v[D]===null?F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this):String(v[D])},D,!1,void 0,this)),F.jsxDEV("td",{className:"mode",children:typeof v.updatedAt==="string"?F.jsxDEV(I0,{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:N?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-list-head",children:[F.jsxDEV("span",{children:r8(N.type)},void 0,!1,void 0,this),F.jsxDEV("code",{children:N.id},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("dl",{className:"ws-record-fields",children:Object.entries(N).filter(([v])=>v!=="type"&&v!=="id").map(([v,D])=>F.jsxDEV(K1.default.Fragment,{children:[F.jsxDEV("dt",{children:v},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(b3,{v:D},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:N?`${P.indexOf(N)+1} of ${E0(P.length,r8(O??"record"))}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ZV({name:Q,vendor:U,url:Z,mapError:K,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(s0,{vendor:U},void 0,!1,void 0,this),F.jsxDEV("b",{children:d1(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:`${t1}/${Q}/~/vendors/${U}`,onClick:(B)=>{B.preventDefault(),M0([...Q.split("/"),"~","vendors",U])},children:[F.jsxDEV(Q0,{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(Q0,{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,K?F.jsxDEV("p",{role:"alert",className:"ws-screens-note",children:["The World did not say where its screens are: ",K]},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:[d1(U),"'s pack lists no screens."]},void 0,!0,void 0,this):null,Y.state==="ok"&&Z?F.jsxDEV("iframe",{title:`${d1(U)}, as this World shows it`,src:Z},U,!1,void 0,this):null]},void 0,!0,void 0,this)}function FV({name:Q,token:U,who:Z,scope:K}){let[H,Y]=K1.useState(0),W=f0(U,`/-/${Q}/twins`),B=f0(U,`/-/${Q}/rules`,H),T=B.state==="ok"?B.data.changesets:null,[R,M]=K1.useState(null),[A,O]=K1.useState(null),[P,N]=K1.useState(!1),[V,j]=K1.useState([]),f=R??T?.approvals??1,u=A??T?.summary??"required",C=T!==null&&(f!==(T.approvals??1)||u!==(T.summary??"required")),v=(x,$1)=>{if(j((Q1)=>[{ok:x,text:$1,at:new Date().toISOString(),n:++lJ},...Q1].slice(0,3)),!x)i0($1,"error")},D=async(x)=>{x.preventDefault(),N(!0);try{let $1=await z0(U,`/-/${Q}/rules`,{method:"PUT",body:JSON.stringify({changesets:{approvals:f,summary:u}})});if(!$1.ok){v(!1,`Save: ${await C5($1)}`);return}v(!0,`Saved: ${f===0?"no approval":E0(f,"approval")} before a deploy; a summary ${u==="required"?"required":"generated when none is given"}.`),M(null),O(null),Y((Q1)=>Q1+1)}finally{N(!1)}},h={gated:"a person deploys an approved changeset",auto:"a push deploys at once",hold:"nothing deploys"},E=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((x)=>x.root?.url):[],k=K!=="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(b2,{load:B,what:"the rules",lines:2},void 0,!1,void 0,this),F.jsxDEV("form",{className:"ws-rules",onSubmit:(x)=>void D(x),"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 ",E,". 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(k)||T===null,children:[F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"summary",checked:u==="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:u==="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(Q0,{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:(x)=>M(Number(x.target.value)),disabled:Boolean(k)||T===null,"aria-label":"Approvals required",children:[0,1,2,3,4,5].map((x)=>F.jsxDEV("option",{value:x,children:x===0?"no one: verified is enough":x===1?"1 person":`${x} different people`},x,!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((x)=>F.jsxDEV("li",{children:[F.jsxDEV(s0,{vendor:x.twin},void 0,!1,void 0,this),d1(x.twin),": ",h[x.root.deploy??"gated"]??"gated"]},x.twin,!0,void 0,this))},void 0,!1,void 0,this):null,F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("a",{href:`${t1}/${Q}/~/settings/services`,onClick:(x)=>{x.preventDefault(),M0([...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(x6,{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(k)||P||!C,title:k??void 0,children:P?"Saving…":"Save"},void 0,!1,void 0,this),C?F.jsxDEV("button",{type:"button",onClick:()=>{M(null),O(null)},children:"Cancel"},void 0,!1,void 0,this):null,k?F.jsxDEV("span",{className:"mode",children:[k,"."]},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 XV({who:Q,scope:U,snapshot:Z,portal:K,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,K?`Signed in through ${new URL(K).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(Q0,{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(Q0,{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),K&&Q.person?F.jsxDEV("p",{className:"mode",children:["Your profile, orgs and keys are on ",F.jsxDEV("a",{href:`${K}/`,children:new URL(K).host},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function KV({name:Q,token:U,view:Z,sub:K,arg:H,win:Y,who:W,snapshot:B,onReturn:T,onSignOut:R,worlds:M,session:A,retry:O,twins:P,map:N,branches:V,clock:j,canWrite:f,refused:u,signsAs:C,opens:v,tick:D,admin:h,onRemoved:E,onClock:b,scope:k}){let x=NO(Q,U,D,u),[$1,Q1]=K1.useState(0),J1=$1*1e5+Math.floor(D/2),m=f0(U,`/-/${Q}/diff`,J1),p=f0(U,`/-/${Q}/changesets`,J1),c=f0(U,`/-/${Q}/rules`,J1),[a,i]=K1.useState(null),o=(M1)=>(r1)=>{r1?.preventDefault(),M0([...Q.split("/"),"~",...M1])},y=P.state==="ok"?P.data.twins.map((M1)=>M1.twin):[],g=new Map((N.state==="ok"?N.data.twins:[]).flatMap((M1)=>{let r1=ev(Q,M1);return r1?[[M1.twin,r1]]:[]})),q1=[...g.keys()],t=N.state==="ok"?N.data.twins.filter((M1)=>M1.root).map((M1)=>M1.twin):[],W1=(M1)=>N.state==="ok"?(N.data.twins.find((r1)=>r1.twin===M1)?.resources??[]).reduce((r1,u1)=>r1+u1.count,0):0,T1=V?.state==="ok"&&V.data.checkedOut||Q.split("/")[1],O1=K1.useMemo(()=>{if(m.state!=="ok")return[];let M1=new Map;for(let r1 of m.data.changes){let u1=`${r1.twin}:${r1.entry.subject.type}:${r1.entry.subject.id}`,D0=M1.get(u1)??{key:u1,twin:r1.twin,writes:[]};D0.writes.push(r1.entry),M1.set(u1,D0)}return[...M1.values()]},[m]),B1=O1.find((M1)=>M1.key===a)??O1[0],U1=f0(U,Z==="changes"&&B1?`/-/${Q}/log/${B1.twin}`:null,J1),P1=m.state==="ok"?m.data.changes.length:0,j1=x.waiting.length,A1=x.there,k1=x.origin.state==="ok"?x.origin.data.origin:null,D1=!f?"This session reads the World; it changes nothing":!A1?"No remote: name one in Settings › Remote":null,g1=(M1,r1,u1,D0,o1,X2)=>F.jsxDEV("a",{href:`${t1}/${Q}/~/${D0}`,className:M1?"on":void 0,"aria-current":M1?"page":void 0,onClick:o1,children:[r1,F.jsxDEV("span",{children:u1},void 0,!1,void 0,this),X2?F.jsxDEV("span",{className:"count",children:X2},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),h1=(M1)=>{M1.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(FJ,{href:`${t1}/${Q}`,onClick:(M1)=>{M1.preventDefault(),o(["changes"])()}},void 0,!1,void 0,this),F.jsxDEV("details",{className:"menu ws-pick",children:[F.jsxDEV("summary",{title:"This World",children:[F.jsxDEV(Q0,{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(Q0,{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((M1)=>F.jsxDEV("a",{href:`${t1}/${M1}`,className:M1===Q?"on":void 0,onClick:(r1)=>{r1.preventDefault(),h1(r1),M0(M1.split("/"))},children:[M1===Q?F.jsxDEV(Q0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(Q0,{name:"globe",size:16},void 0,!1,void 0,this),M1]},M1,!0,void 0,this)),F.jsxDEV("a",{href:`${Y4()&&Y4()!==B0?Y4():""}${t1}/`,onClick:(M1)=>{if(Y4()&&Y4()!==B0)return;M1.preventDefault(),h1(M1),M0([])},children:[F.jsxDEV(Q0,{name:"layout-grid",size:16},void 0,!1,void 0,this),"All Worlds",x2()?` on ${new URL(x2()).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),x2()?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:[h6,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(JH,{text:FU({platform:x2(),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:[h6,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(JH,{text:FU()},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:[h6,"/",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(JH,{text:FU()},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:`${t1}/${Q}/~/settings`,onClick:(M1)=>{h1(M1),o(["settings"])(M1)},children:[F.jsxDEV(Q0,{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($V,{name:Q,token:U,branches:V,opens:v,refused:u,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:T1},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),k1?F.jsxDEV("a",{href:`${t1}/${Q}/~/remote`,onClick:o(["remote"]),children:["origin ",k1.namespace,j1?F.jsxDEV("b",{children:[" ↑",j1]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):F.jsxDEV("a",{href:`${t1}/${Q}/~/remote`,onClick:o(["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:`${t1}/${Q}/~/settings/clock`,onClick:o(["settings","clock"]),children:j.state==="ok"?F.jsxDEV(F.Fragment,{children:[j.data.frozen?"stopped at ":"",F.jsxDEV(I0,{iso:j.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 x.pull(),disabled:Boolean(D1)||x.busy!==null,title:D1??`Fetch what ${A1} has and move this branch onto it`,children:[F.jsxDEV(Q0,{name:"arrow-down-to-line",size:16},void 0,!1,void 0,this),x.busy==="Pull"?"Pulling…":"Pull"]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ws-btn",onClick:()=>void x.push(),disabled:Boolean(D1)||x.busy!==null||j1===0,title:D1??(j1?`Push ${E0(j1,"changeset")} to ${A1}`:`Every changeset is at ${A1}`),children:[F.jsxDEV(Q0,{name:"arrow-up-from-line",size:16},void 0,!1,void 0,this),x.busy==="Push"?"Pushing…":"Push",j1?F.jsxDEV("span",{className:"ws-btn-count",children:j1},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:()=>o(["settings"])(),children:F.jsxDEV(Q0,{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(Q0,{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(I0,{iso:B.at},void 0,!1,void 0,this),": a read-only snapshot",B.expiresAt?F.jsxDEV(F.Fragment,{children:[", gone ",F.jsxDEV(I0,{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,x.log.length?F.jsxDEV("div",{className:"ws-said",children:F.jsxDEV(x6,{log:x.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:`${t1}/${Q}/~/screens`,className:Z==="screen"?"ws-screens-entry on":"ws-screens-entry",onClick:o(["screens"]),title:`The board: ${S8(y.map(d1))}`,children:[F.jsxDEV(Q0,{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((M1)=>F.jsxDEV(s0,{vendor:M1},M1,!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),g1(Z==="changes"||Z==="history",F.jsxDEV(Q0,{name:"file-diff",size:16},void 0,!1,void 0,this),"Changes","changes",o(["changes"]),O1.length?String(O1.length):void 0),g1(Z==="events"&&!H||Z==="trace",F.jsxDEV(Q0,{name:"activity",size:16},void 0,!1,void 0,this),"Events","events",o(["events"])),F.jsxDEV("p",{className:"side-group",children:"Records"},void 0,!1,void 0,this),y.map((M1)=>F.jsxDEV(K1.default.Fragment,{children:g1(Z==="vendor"&&H===M1,F.jsxDEV(s0,{vendor:M1},void 0,!1,void 0,this),d1(M1),`vendors/${M1}`,o(["vendors",M1]),W1(M1)?String(W1(M1)):void 0)},M1,!1,void 0,this)),F.jsxDEV("p",{className:"side-group",children:"Remote"},void 0,!1,void 0,this),g1(!1,F.jsxDEV(Q0,{name:"cloud",size:16},void 0,!1,void 0,this),A1?"origin":"Name a remote…","remote",o(["remote"]),j1?`↑${j1}`: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(WO,{name:Q,view:"changes",changes:O1.length,changesets:p.state==="ok"?p.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:m.state==="ok"?`${E0(O1.length,"record")} · ${E0(P1,"write")}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(b2,{load:m,what:"the changes",lines:4},void 0,!1,void 0,this),F.jsxDEV(zO,{records:O1,...B1?{selected:B1.key}:{},onPick:i,label:"Changed records"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:[m.state==="ok"&&!B1?F.jsxDEV(Q9,{title:"No changes on this branch",action:j1>0&&A1?F.jsxDEV("button",{type:"button",className:"primary",disabled:Boolean(D1)||x.busy!==null,onClick:()=>void x.push(),children:["Push ",E0(j1,"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 ",m.data.base.at?F.jsxDEV(I0,{iso:m.data.base.at},void 0,!1,void 0,this):F.jsxDEV("code",{children:m.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(YO,{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(kV,{pinned:!0,generated:c.state==="ok"&&c.data.changesets.summary==="generated",author:{face:F.jsxDEV(Q0,{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:`${t1}/${Q}/~/settings/account`,branch:T1},name:Q,token:U,changes:P1,canWrite:f,refused:u,onCut:()=>{Q1((M1)=>M1+1),i(null)}},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Z==="history"?F.jsxDEV(QV,{name:Q,token:U,sets:p,changes:O1.length,withScreens:q1,required:c.state==="ok"?c.data.changesets.approvals??1:1,...K?{sub:K}:{},signsAs:C,canWrite:f,rooted:t,refused:u,onChanged:()=>Q1((M1)=>M1+1)},void 0,!1,void 0,this):null,Z==="events"?F.jsxDEV(qV,{name:Q,token:U,vendors:y,...H&&y.includes(H)?{vendor:H}:{},tick:D},H??"",!1,void 0,this):null,Z==="trace"?F.jsxDEV(UV,{name:Q,token:U,id:H??""},void 0,!1,void 0,this):null,Z==="vendor"&&H?F.jsxDEV(GV,{name:Q,token:U,vendor:H,withScreens:q1.includes(H),tick:D},H,!1,void 0,this):null,Z==="screen"&&H?F.jsxDEV(ZV,{name:Q,vendor:H,url:N.state==="ok"?g.get(H)??null:void 0,...N.state==="error"?{mapError:N.error}:{},holding:YV(N.state==="ok"?N.data.twins.find((M1)=>M1.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(P5,{open:Y?.kind==="settings",onClose:()=>o(["changes"])(),title:"Settings",wide:"window",children:Y?.kind==="settings"?F.jsxDEV("div",{className:"ws-settings",children:[F.jsxDEV("nav",{"aria-label":"Settings",children:HO.map(([M1,r1,u1])=>F.jsxDEV("a",{href:`${t1}/${Q}/~/settings/${M1}`,className:Y.tab===M1?"on":void 0,"aria-current":Y.tab===M1?"page":void 0,onClick:o(["settings",M1]),children:[F.jsxDEV(Q0,{name:u1,size:16},void 0,!1,void 0,this),r1]},M1,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-settings-pane",children:[k==="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(XV,{who:W,scope:k,snapshot:B,portal:x2(),onSignOut:R},void 0,!1,void 0,this):null,Y.tab==="changesets"?F.jsxDEV(FV,{name:Q,token:U,who:W,scope:k},void 0,!1,void 0,this):null,Y.tab==="remote"?F.jsxDEV(uV,{name:Q,token:U,canWrite:f,tick:D,refused:u},void 0,!1,void 0,this):null,Y.tab==="access"||Y.tab==="services"||Y.tab==="checks"||Y.tab==="clock"?F.jsxDEV(EV,{name:Q,token:U,admin:h,canWrite:f,refused:u,onRemoved:E,only:Y.tab},void 0,!1,void 0,this):null,Y.tab==="vault"?F.jsxDEV(bV,{name:Q,token:U,canWrite:f,refused:u},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(sv,{},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(P5,{open:Y?.kind==="branches",onClose:()=>o(["changes"])(),title:"Branches",wide:!0,children:Y?.kind==="branches"?F.jsxDEV(BV,{name:Q,token:U,canWrite:f,branches:V,opens:v,...Y.open?{open:Y.open}:{},onChanged:b,refused:u},void 0,!1,void 0,this):null},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function JH({text:Q}){return F.jsxDEV("button",{type:"button",className:"agent-prompt-button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>i0("Copied the prompt: paste it into your coding agent"),()=>i0("Could not copy the prompt","error"))},children:"Copy a prompt for your coding agent"},void 0,!1,void 0,this)}var KH=(Q)=>`${Q.url.replace(/\/+$/,"")}/${Q.namespace}`,HV=(Q)=>Q.filter((U)=>U.applied===null||U.applied.outcome==="refused"),YV=(Q,U=4)=>{let Z=[...Q].filter((K)=>K.count>0).sort((K,H)=>H.count-K.count);return Z.length?Z.slice(0,U).map((K)=>E0(K.count,K.type.replace(/^_+/,""))).join(" · ")+(Z.length>U?` · +${Z.length-U} more`:""):"nothing yet"},BO=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 zV({name:Q,token:U,clock:Z,canWrite:K,onChanged:H,refused:Y,open:W}){let[B,T]=K1.useState(!1),[R,M]=K1.useState(""),[A,O]=K1.useState(""),[P,N]=K1.useState(null),[V,j]=K1.useState(!1),f=Z.state==="ok"?Z.data:null,u=async(h,E,b)=>{j(!0),N(null);try{let k=await z0(U,`/-/${Q}/${E}`,{method:E==="clock"?"PUT":"POST",body:JSON.stringify(b)});if(!k.ok){Y(k),N({ok:!1,text:await C5(k)});return}let x=await k.json();N({ok:!0,text:`${h} — the World is at ${new Date(x.at).toLocaleString()}`}),T(!1),H()}catch(k){N({ok:!1,text:`the World did not answer: ${k instanceof Error?k.message:String(k)}`})}finally{j(!1)}},C=(h)=>{h.preventDefault();let E=new Date(R);if(Number.isNaN(E.getTime())){N({ok:!1,text:"Pick a date and time."});return}if(f&&E.getTime()<Date.parse(f.at)){N({ok:!1,text:`The World's clock only moves forward: pick a time after ${new Date(f.at).toLocaleString()}.`});return}u("Clock set","clock",{at:E.toISOString()})},v=(h,E)=>{u(`Advanced ${E}`,"clock/advance",{by:h})},D=[["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(I0,{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(I0,{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),K&&f?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(w9(rR(f.at))),N(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),D.map(([h,E])=>F.jsxDEV("button",{type:"button","aria-label":`Advance ${E}`,disabled:V||!f.frozen,title:f.frozen?void 0:"Set the time first: advancing moves a set clock",onClick:()=>v(h,E),children:E},h,!1,void 0,this)),F.jsxDEV("form",{className:"inline",onSubmit:(h)=>{if(h.preventDefault(),!/^\d+[smhd]$/.test(A.trim())){N({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:!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,B?F.jsxDEV("form",{className:"inline","aria-label":"Set the World time",onSubmit:C,noValidate:!0,children:[F.jsxDEV("label",{children:["World time ",F.jsxDEV("input",{name:"worldTime",type:"datetime-local",value:R,min:w9(rR(f.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,P?F.jsxDEV("p",{role:P.ok?"status":"alert",children:P.text},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function WV({name:Q,token:U,clock:Z,refused:K}){let[H,Y]=K1.useState(!1),[W,B]=K1.useState(""),[T,R]=K1.useState(null),[M,A]=K1.useState(!1),O=Z.state==="ok"?Z.data.at:new Date().toISOString(),P=K1.useRef(null);return K1.useEffect(()=>{if(!H)return;let V=(f)=>{if(f.key==="Escape"&&!document.querySelector("dialog[open]"))Y(!1),P.current?.querySelector("button")?.focus()},j=(f)=>{if(!P.current?.contains(f.target))Y(!1)};return document.addEventListener("keydown",V),document.addEventListener("click",j),()=>{document.removeEventListener("keydown",V),document.removeEventListener("click",j)}},[H]),F.jsxDEV("div",{className:"as-of",ref:P,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(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 j=new Date(W);if(Number.isNaN(j.getTime())){R("Pick a date and time.");return}if(j.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 z0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:j.toISOString()},ttl:3600})});if(!f.ok){K(f),R(await C5(f));return}let u=await f.json();GH({name:u.name,parent:Q,token:u.token,readToken:u.readToken,at:j.toISOString(),expiresAt:u.expiresAt??null,parentOrigin:B0,made:!0});let C=P9(u.origin)?.origin;if(C&&C!==B0){XH(C,u.readToken,u.name,`${t1}/${u.name}`);return}M0(u.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:W,max:w9(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 LO({name:Q,token:U,open:Z,onClose:K,onMade:H,refused:Y}){let W=(E)=>E.split("/").pop()??E,[B,T]=K1.useState(!1),[R,M]=K1.useState(null),[A,O]=K1.useState(""),[P,N]=K1.useState("now"),[V,j]=K1.useState(""),[f,u]=K1.useState("24"),[C,v]=K1.useState(!0);K1.useEffect(()=>{if(Z)M(null),j(w9(new Date().toISOString()))},[Z]);let D=async(E)=>{E.preventDefault(),M(null);let b=P==="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 k=await z0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({ttl:Math.round(Number(f)*3600),...b?{at:{instant:b.toISOString()}}:C?{live:!0}:{},...A.trim()?{label:A.trim()}:{}})}).catch(()=>null);if(T(!1),!k){M(`${B0} did not answer`);return}if(!k.ok){Y(k),M(await C5(k));return}let x=await k.json();GH({name:x.name,parent:Q,token:x.token??"",readToken:x.readToken,at:(b??new Date).toISOString(),expiresAt:x.expiresAt??null,parentOrigin:B0,...x.origin?{origin:x.origin}:{}}),K(),O(""),i0(`Made ${W(x.name)}`),H()};return F.jsxDEV(P5,{open:Z,onClose:()=>{if(!B)K()},title:`New branch of ${W(Q)}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>K(),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:(E)=>void D(E),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:(E)=>O(E.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:P==="now",onChange:()=>N("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),P==="now"?F.jsxDEV("label",{className:"check sub",children:[F.jsxDEV("input",{type:"checkbox",name:"branchLive",checked:C,onChange:(E)=>v(E.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:P==="at",onChange:()=>N("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),P==="at"?F.jsxDEV("input",{type:"datetime-local","aria-label":"As of",value:V,max:w9(new Date().toISOString()),onChange:(E)=>j(E.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:(E)=>u(E.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 BV({name:Q,token:U,canWrite:Z,branches:K,opens:H,open:Y,onChanged:W,refused:B,snapshotOf:T}){let R=f0(U,`/-/${Q}/clock`),M=(u)=>u.split("/").pop()??u,[A,O]=K1.useState(!1),P=(u)=>(C)=>{C.preventDefault(),M0([...Q.split("/"),"~","branches",...u?u.split("/"):[]])};if(!K)return F.jsxDEV("p",{className:"mode",children:"This host makes no branches of a World."},void 0,!1,void 0,this);let N=K.state==="ok"?K.data.branches:[],V=K.state==="ok"&&(K.data.named?.length??0)>0?K.data.named:[{name:M(Q),running:!0}],j=K.state==="ok"?K.data.checkedOut??M(Q):M(Q),f=async(u)=>{if(!await c4({title:`Remove the branch ${M(u)}?`,body:"Whoever holds its tokens loses it, and its history goes with it.",action:"Remove branch",danger:!0}))return;let C=await z0(U,`/-/${Q}/branches/${u}`,{method:"DELETE"}).catch((v)=>v);if(C instanceof Error){i0(`Remove ${M(u)}: the World did not answer (${C.message})`,"error");return}if(!C.ok){B(C),i0(`Remove ${M(u)}: ${await C5(C)}`,"error");return}HU(u),i0(`Removed ${M(u)}`),W(),M0([...Q.split("/"),"~","branches"])};if(Y){let u=Y.includes("/")?N.find((v)=>v.name===Y):void 0,C=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:`${t1}/${Q}/~/branches`,onClick:P(),children:"← Branches"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(b2,{load:K,what:"the branches"},void 0,!1,void 0,this),K.state==="ok"&&!u&&!C?F.jsxDEV("p",{className:"mode",children:["This World has no branch named ",Y,"."]},void 0,!0,void 0,this):null,u?F.jsxDEV(LV,{name:Q,b:u,canWrite:Z,opens:H(u.name),remove:()=>void f(u.name)},void 0,!1,void 0,this):null,C&&!u?F.jsxDEV(AV,{name:Q,token:U,b:C,served:C.name===j,canWrite:Z,canServe:K.state==="ok"&&Boolean(K.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:j},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(WV,{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(b2,{load:K,what:"the branches"},void 0,!1,void 0,this),K.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((u)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:[F.jsxDEV("a",{href:`${t1}/${Q}/~/branches/${u.name}`,onClick:P(u.name),children:F.jsxDEV("b",{children:u.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.name===j?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):u.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:${u.name}`,!0,void 0,this)),N.map((u)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("a",{href:`${t1}/${Q}/~/branches/${u.name}`,onClick:P(u.name),children:F.jsxDEV("b",{children:M(u.name)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:M(u.from??Q)},void 0,!1,void 0,this),F.jsxDEV("td",{children:u.at?.instant?F.jsxDEV(I0,{iso:u.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(I0,{iso:u.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:u.expiresAt?F.jsxDEV(I0,{iso:u.expiresAt},void 0,!1,void 0,this):"kept"},void 0,!1,void 0,this)]},u.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(LO,{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 LV({name:Q,b:U,canWrite:Z,opens:K,remove:H}){let Y=(T)=>T.split("/").pop()??T,W=ZH(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:[BO," ",Y(U.name)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:[K?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>KO(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(I0,{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(I0,{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(I0,{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),!K?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(yV,{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 AV({name:Q,token:U,b:Z,served:K,canWrite:H,canServe:Y}){let[W,B]=K1.useState(!1),[T,R]=K1.useState(null),M=async()=>{B(!0),R(null);let A=await z0(U,`/-/${Q}/branches/${encodeURIComponent(Z.name)}/serve`,{method:"POST"}).catch(()=>null);if(A?.ok){location.reload();return}B(!1),R(A?await C5(A):`${B0} did not answer`)};return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[BO," ",Z.name," ",K?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&&!K?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),K?F.jsxDEV("p",{className:"mode",children:["This is the branch these pages show: its changes are on ",F.jsxDEV("a",{href:`${t1}/${Q}/~/changes`,onClick:(A)=>{A.preventDefault(),M0([...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 oR=50,I9=(Q)=>`${Q.twin}:${Q.position}`,AO=(Q,U)=>Date.parse(U.entry.occurredAt)-Date.parse(Q.entry.occurredAt)||Q.twin.localeCompare(U.twin)||U.position-Q.position,YU=(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},cJ=(Q,U)=>{let Z=typeof U==="string"?U:typeof Q.caller==="string"?Q.caller:"";if(Z.startsWith("key:")&&Z.length>4)return`by ${YU(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"},MO=(Q)=>Q.operation??Q.op;function MV(Q){let U=Q.fields??{},Z=U.usage!==null&&typeof U.usage==="object"?U.usage:U,K=(...R)=>R.map((M)=>Z[M]??U[M]).find((M)=>typeof M==="number"),H=[],Y=K("prompt_tokens","input_tokens"),W=K("completion_tokens","output_tokens"),B=K("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=K("cost_usd","cost");if(T!==void 0)H.push(["cost",`$${T<0.01?T.toPrecision(2):T.toFixed(2)}`]);return H}function TO({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 b3({v:Q}){if(typeof Q==="string")return F.jsxDEV(TO,{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 TV=(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 RV({body:Q}){if(Q===null||typeof Q!=="object"||Array.isArray(Q))return F.jsxDEV(b3,{v:Q},void 0,!1,void 0,this);let U=Q,Z=Array.isArray(U.messages)?U.messages:null,K=Object.entries(U).filter(([H])=>!(Z&&H==="messages"));return F.jsxDEV(F.Fragment,{children:[K.length?F.jsxDEV("dl",{className:"fields",children:K.map(([H,Y])=>F.jsxDEV(K1.default.Fragment,{children:[F.jsxDEV("dt",{children:H},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(b3,{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(TO,{text:TV(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 RO({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,K])=>F.jsxDEV(K1.default.Fragment,{children:[F.jsxDEV("dt",{children:Z},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(b3,{v:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},Z,!0,void 0,this))},void 0,!1,void 0,this)}var OV=(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 IV(Q){let U=new Map,Z=[],K=[],H=new Map;for(let Y of Q){if(Y.entry.landsId||Y.entry.aliasOf){K.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 K){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(AO)}var $H={deployed:5,confirmed:4,landed:3,replayed:2,skipped:1};function nR(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"),K=[...U].sort((H,Y)=>($H[Y.status]??0)-($H[H.status]??0))[0];return Z&&!($H[K.status]>=5)?{status:Z.status,bad:!0}:{status:K.status,bad:!1}}var H4=1280,t4=820,XU=160,K4=72,wV=72,e0=(Q)=>`${Q.vendor}:${Q.id}`,i8=(Q)=>`${Q.vendor}:section:${Q.section.id}`,a8=(Q)=>[Q.section.id,...Q.section.aka??[]].map((U)=>`${Q.vendor}:section:${U}`),OO=(Q,U)=>U.at&&("site"in U.at)?U.at.site:U.at?`${h6}/${Q}/${U.vendor}${U.at.screen}`:null,PV=(Q,U)=>Q.include?U.filter((Z)=>Q.include.includes(e0(Z))||a8(Z).some((K)=>Q.include.includes(K))):U.filter((Z)=>!(Q.hidden??[]).includes(e0(Z)));function NV({data:Q}){let{frame:U,url:Z,active:K,picked:H,boards:Y,addTo:W,remove:B,compare:T}=Q,R=e0(U),M=Y.filter((A)=>A.include&&!A.include.includes(R)&&!a8(U).some((O)=>A.include.includes(O)));return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(_H,{isVisible:!0,position:b1.Top,align:"start",className:"frame-label",children:[F.jsxDEV(s0,{vendor:U.vendor},void 0,!1,void 0,this),F.jsxDEV("span",{children:U.title},void 0,!1,void 0,this),U.changes?F.jsxDEV("button",{type:"button",className:"frame-changed nodrag",onClick:()=>T(R),title:`${E0(U.changes,"change")} here, not in a changeset: compare before and now`,children:[F.jsxDEV(Q0,{name:"square-dot",size:14},void 0,!1,void 0,this),U.changes]},void 0,!0,void 0,this):null,H&&M.length?F.jsxDEV("select",{className:"nodrag frame-add",value:"","aria-label":`Add ${U.title} to a board`,onChange:(A)=>{if(A.target.value)W(A.target.value,R)},children:[F.jsxDEV("option",{value:"",children:"Add to board…"},void 0,!1,void 0,this),M.map((A)=>F.jsxDEV("option",{value:A.id,children:A.name},A.id,!1,void 0,this))]},void 0,!0,void 0,this):null,H&&B?F.jsxDEV("button",{type:"button",className:"ghost nodrag",onClick:()=>B.act(R),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:K?"frame on":H?"frame picked":"frame",style:{width:H4,height:t4},children:[F.jsxDEV("div",{className:"frame-bar",title:"Drag to move · double-click to use",children:[F.jsxDEV(s0,{vendor:U.vendor},void 0,!1,void 0,this),F.jsxDEV("strong",{children:[d1(U.vendor)," · ",U.kind]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"frame-url",children:U.url.replace(/^https?:\/\//,"")},void 0,!1,void 0,this),Z?F.jsxDEV("a",{className:"nodrag",href:Z,target:"_blank",rel:"noopener noreferrer","aria-label":`Open ${U.title} in a new tab`,children:"↗"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:K?"frame-body nodrag nopan nowheel":"frame-body",children:Z?F.jsxDEV("iframe",{title:U.title,src:Z,loading:"lazy",style:{pointerEvents:K?"auto":"none"}},void 0,!1,void 0,this):F.jsxDEV("div",{className:"frame-none",children:[F.jsxDEV("p",{children:F.jsxDEV("strong",{children:U.unseen==="sites-not-routed"?`This World shows ${U.title} only at its own local address.`:`${d1(U.vendor)}'s twin draws no page for this ${U.kind} yet.`},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:U.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 CV({data:Q}){return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(iR,{isVisible:Q.picked&&Q.editable,minWidth:480,minHeight:360,color:"var(--accent)",onResizeEnd:Q.resized},void 0,!1,void 0,this),F.jsxDEV(_H,{isVisible:!0,position:b1.Top,align:"start",offset:6,className:"section-tag",children:[F.jsxDEV("button",{type:"button",className:Q.picked?"nodrag on":"nodrag",onClick:()=>Q.pick(Q.key),onDoubleClick:()=>{if(Q.editable)Q.rename(Q.key)},title:Q.editable?"Double-click to rename":void 0,children:[Q.vendor?F.jsxDEV(s0,{vendor:Q.vendor},void 0,!1,void 0,this):null,F.jsxDEV("span",{children:Q.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q.picked&&Q.editable?F.jsxDEV("button",{type:"button",className:"ghost nodrag",onClick:()=>Q.remove(Q.key),"aria-label":`Remove the section ${Q.name}`,title:"Remove the section (its frames stay)",children:"✕"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:Q.picked?"section-box on":"section-box"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function eR({url:Q,title:U}){return F.jsxDEV("div",{className:"compare-thumb",style:{width:420,height:420*t4/H4},children:F.jsxDEV("iframe",{title:U,src:Q,loading:"lazy",style:{width:H4,height:t4,transform:`scale(${420/H4})`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function fV({name:Q,token:U,frame:Z,onClose:K,reads:H}){let[Y,W]=K1.useState({state:"opening"}),B=f0(U,`/-/${Q}/board/changes?frame=${encodeURIComponent(e0(Z))}`,H);K1.useEffect(()=>{if(!Z.since){W({state:"none",why:"Nothing here has changed since the World was last cut."});return}if(!Z.at||!("site"in Z.at)){W({state:"none",why:`A ${d1(Z.vendor)} page as it was needs a signed-in copy of the World; its changes are listed below.`});return}let R=new Date(Date.parse(Z.since)-1).toISOString(),M=null,A=!1,O=setTimeout(()=>void(async()=>{let P=await z0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:R},ttl:3600}),signal:AbortSignal.timeout(60000)}).catch(()=>null);if(!P?.ok){W({state:"none",why:`The World made no copy of itself as it was then${P?`: ${await C5(P)}`:""}.`});return}let N=await P.json();if(M=N.name,A){z0(U,`/-/${Q}/branches/${N.name}`,{method:"DELETE"}).catch(()=>null);return}let V=P9(N.origin);if(!V){W({state:"none",why:"This World shows sites only at its own local address."});return}let j=new URL(Z.url);W({state:"ok",url:`${V.protocol}//${j.hostname}.${V.host}${j.pathname}${j.search}`,at:R})})(),500);return()=>{if(A=!0,clearTimeout(O),M)z0(U,`/-/${Q}/branches/${M}`,{method:"DELETE"}).catch(()=>null)}},[Q,U,Z.vendor,Z.id,Z.since]);let T=OO(Q,Z);return F.jsxDEV("div",{className:"compare",role:"dialog","aria-label":`Changes to ${Z.title}`,children:[F.jsxDEV("div",{className:"compare-head",children:[F.jsxDEV(s0,{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:"mode",children:[E0(Z.changes,"change")," not yet cut",Z.since?`, since ${$9(Z.since)}`:""]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ghost",onClick:K,"aria-label":"Close the comparison",children:"✕"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"compare-sides",children:[F.jsxDEV("figure",{children:[F.jsxDEV("figcaption",{children:["Before",Y.state==="ok"?` · as of ${$9(Y.at)}`:""]},void 0,!0,void 0,this),Y.state==="ok"?F.jsxDEV(eR,{url:Y.url,title:`${Z.title} before`},void 0,!1,void 0,this):Y.state==="opening"?F.jsxDEV("p",{className:"mode compare-note",role:"status",children:"Opening the World as it was…"},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode compare-note",children:Y.why},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("figure",{children:[F.jsxDEV("figcaption",{children:"Now"},void 0,!1,void 0,this),T?F.jsxDEV(eR,{url:T,title:`${Z.title} now`},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode compare-note",children:[d1(Z.vendor),"'s twin draws no page for this ",Z.kind," yet."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),B.state==="error"?F.jsxDEV("p",{role:"alert",className:"mode",children:["Its changes could not be read: ",B.error]},void 0,!0,void 0,this):null,F.jsxDEV("ol",{className:"compare-acts",children:(B.state==="ok"?B.data.acts:[]).map((R)=>{let M=R.entries[0],A=d5({...M,service:Z.vendor,id:"",occurredAt:R.at});return F.jsxDEV("li",{children:[F.jsxDEV("span",{className:"mode",children:$9(R.at)},void 0,!1,void 0,this),F.jsxDEV("details",{children:[F.jsxDEV("summary",{children:[F.jsxDEV("strong",{children:A.what},void 0,!1,void 0,this),A.label?` · ${A.label}`:"",R.writes>1?F.jsxDEV("span",{className:"mode",children:[" and ",E0(R.writes-1,"more write")]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:[R.entries.map((O,P)=>F.jsxDEV("li",{children:[F.jsxDEV("code",{children:O.operation??O.op},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[O.subject.type," ",u3(O)]},void 0,!0,void 0,this)]},P,!0,void 0,this)),R.writes>R.entries.length?F.jsxDEV("li",{className:"mode",children:["and ",E0(R.writes-R.entries.length,"more write")]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},`${R.at}:${M.subject.type}:${M.subject.id}`,!0,void 0,this)})},void 0,!1,void 0,this),B.state==="ok"&&B.data.total>B.data.acts.length?F.jsxDEV("p",{className:"mode",children:["and ",E0(B.data.total-B.data.acts.length,"earlier change"),", in Changes"]},void 0,!0,void 0,this):null,F.jsxDEV("a",{className:"compare-all",href:`${t1}/${Q}/~/changes`,onClick:(R)=>{R.preventDefault(),M0([...Q.split("/"),"~","changes"])},children:"Every change in the World →"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var SV={screen:NV,section:CV};function jV(Q){return F.jsxDEV(eK,{children:F.jsxDEV(vV,{...Q},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function vV({name:Q,token:U,session:Z,retry:K,snapshot:H,back:Y,canWrite:W}){let B=K1.useRef(null),T=K1.useRef(0),R=K1.useRef(Promise.resolve()),M=K1.useRef(0),[,A]=K1.useState(0),[O,P]=K1.useState({state:"loading"}),[N,V]=K1.useState(null),[j,f]=K1.useState(0),u=K1.useRef(0),C=K1.useRef(0),v=K1.useCallback(async()=>{let G1=M.current,I=++u.current,l=await z0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),F1=l?.ok?await l.json().catch(()=>null):null;if(I<C.current)return;if(C.current=I,!F1?.frames||!F1.boards||!F1.version){let I1=l?`the World answered ${l.status}`:"the World did not answer";P((R1)=>R1.state==="ok"?R1:{state:"error",status:l?.status??0,error:I1}),V(I1);return}if(V(null),f((I1)=>I1+1),G1===M.current&&T.current===0)B.current={boards:F1.boards,version:F1.version};P({state:"ok",data:F1})},[U,Q]);K1.useEffect(()=>{v();let G1=setInterval(()=>{if(!document.hidden)v()},1e4);return()=>clearInterval(G1)},[v]);let D=O.state==="ok"?O.data.frames:[],h=B.current?.boards??[{id:"everything",name:"Everything"}],[E,b]=K1.useState("everything"),k=h.find((G1)=>G1.id===E)??h[0],x=W&&!H,$1=K1.useCallback((G1)=>{if(!B.current)return i0("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((l)=>l+1);let I=R.current.then(async()=>{let l=B.current;if(!l)return;try{let F1=await z0(U,`/-/${Q}/board`,{method:"PUT",body:JSON.stringify({boards:l.boards,version:l.version}),signal:AbortSignal.timeout(15000)}),I1=await F1.json().catch(()=>null);if(F1.ok&&I1?.boards&&I1.version)B.current={boards:T.current>1&&B.current?B.current.boards:I1.boards,version:I1.version};else if(F1.status===409&&I1?.boards&&I1.version)B.current={boards:I1.boards,version:I1.version},i0("Someone else changed the board first: it is shown as they left it","error");else throw Error(I1?.error??`the World answered ${F1.status}`)}catch(F1){i0(`The board was not kept: ${F1 instanceof Error?F1.message:String(F1)}`,"error"),B.current=null;let I1=await z0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),R1=I1?.ok?await I1.json().catch(()=>null):null;if(R1?.boards&&R1.version)B.current={boards:R1.boards,version:R1.version}}}).finally(()=>{if(T.current-=1,M.current+=1,A((l)=>l+1),T.current===0&&!B.current)v()});return R.current=I,I},[U,Q,v]),Q1=(G1,I)=>{$1((l)=>l.map((F1)=>F1.id===G1?I(F1):F1))},J1=PV(k,D),m=D.filter((G1)=>G1.changes&&!J1.includes(G1)).reduce((G1,I)=>G1+I.changes,0),[p,c]=K1.useState(null),[a,i]=K1.useState(null),[o,y]=K1.useState(null),g=gJ(),q1=h.filter((G1)=>G1.include),t=(G1,I)=>Q1(G1,(l)=>({...l,include:[...l.include??[],I]})),W1={label:k.include?"Take it off this board":"Hide it",act:(G1)=>{i(null),Q1(k.id,(I)=>I.include?{...I,include:I.include.filter((l)=>l!==G1)}:{...I,hidden:[...I.hidden??[],G1]})}},T1=(G1)=>({x:G1.position.x,y:G1.position.y,w:G1.width??G1.measured?.width??H4,h:G1.height??G1.measured?.height??t4}),O1=(G1,I)=>{let l=T1(G1),F1=l.x+l.w/2,I1=l.y+l.h/2;return I.filter((R1)=>R1.type==="section").map((R1,N1)=>({s:R1,i:N1})).filter(({s:R1})=>{let N1=T1(R1);return F1>=N1.x&&F1<=N1.x+N1.w&&I1>=N1.y&&I1<=N1.y+N1.h}).sort((R1,N1)=>T1(R1.s).w*T1(R1.s).h-T1(N1.s).w*T1(N1.s).h||N1.i-R1.i)[0]?.s},B1=K1.useCallback(()=>{let G1=new Map;for(let C1 of J1){let y1=k.placed?.[e0(C1)];if(y1)G1.set(e0(C1),y1)}let I=Math.max(-XU,...[...G1.values()].map((C1)=>C1.y+t4)),l=[...new Set(J1.map(i8))];for(let C1 of l){let y1=J1.filter((w0)=>i8(w0)===C1),v1=y1.filter((w0)=>G1.has(e0(w0))).map((w0)=>G1.get(e0(w0))),p1=v1.length?Math.max(...v1.map((w0)=>w0.x))+H4+XU:0,S0=v1.length?Math.min(...v1.map((w0)=>w0.y)):I+XU+K4*2+wV;for(let w0 of y1)if(!G1.has(e0(w0)))G1.set(e0(w0),{x:p1,y:S0}),p1+=H4+XU;I=Math.max(I,S0+t4)}let F1=k.sections??{},I1=(C1,y1,v1,p1,S0)=>({id:`sec:${C1}`,type:"section",position:{x:y1.x,y:y1.y},width:y1.w,height:y1.h,zIndex:0,draggable:x,data:{key:C1,name:v1,vendor:p1,named:S0}}),R1=[];for(let C1 of l){let y1=J1.find((T0)=>i8(T0)===C1),v1=a8(y1).find((T0)=>F1[T0])??C1,p1=F1[v1];if(p1?.gone)continue;let S0=J1.filter((T0)=>i8(T0)===C1).map((T0)=>G1.get(e0(T0))),w0={x:Math.min(...S0.map((T0)=>T0.x))-K4,y:Math.min(...S0.map((T0)=>T0.y))-K4,w:0,h:0};w0.w=Math.max(...S0.map((T0)=>T0.x))+H4+K4-w0.x,w0.h=Math.max(...S0.map((T0)=>T0.y))+t4+K4-w0.y;let n4=J1.filter((T0)=>i8(T0)===C1&&!k.placed?.[e0(T0)]).map((T0)=>G1.get(e0(T0))),j5=p1?{...p1}:w0;if(p1)for(let T0 of n4)j5.w=Math.max(j5.w,T0.x+H4+K4-j5.x),j5.h=Math.max(j5.h,T0.y+t4+K4-j5.y);R1.push(I1(v1,j5,p1?.name??`${d1(y1.vendor)} · ${y1.section.title}`,y1.vendor,Boolean(p1?.name)))}for(let[C1,y1]of Object.entries(F1))if(C1.startsWith("user:")&&!y1.gone)R1.push(I1(C1,y1,y1.name??"Section",null,!0));let N1=J1.map((C1)=>({id:e0(C1),type:"screen",zIndex:1,width:H4,height:t4,dragHandle:".frame-bar",draggable:x,position:G1.get(e0(C1)),data:{world:Q,frame:C1,url:OO(Q,C1)}}));return[...R1,...N1]},[JSON.stringify(J1),JSON.stringify(k),Q,x]),[U1,P1,j1]=hR([]),A1=K1.useRef("");K1.useEffect(()=>{let G1=B1();if(P1(G1),G1.length&&A1.current!==k.id)A1.current=k.id,requestAnimationFrame(()=>{g.fitView({padding:{top:"72px",left:"272px",right:"40px",bottom:"72px"},duration:0})})},[B1,P1]);let k1=(G1,I=[],l={})=>{let F1=Object.fromEntries(I.map((R1)=>{let N1=g.getNode(`sec:${R1}`);if(!N1)return[R1,void 0];let C1=T1(N1),y1=N1.data,v1=l[R1]??(y1.named?y1.name:void 0);return[R1,{x:Math.round(C1.x),y:Math.round(C1.y),w:Math.round(C1.w),h:Math.round(C1.h),...v1?{name:v1.slice(0,80)}:{}}]}).filter(([,R1])=>R1!==void 0)),I1=Object.fromEntries(Object.entries(G1).map(([R1,N1])=>[R1,{x:Math.round(N1.x),y:Math.round(N1.y)}]));Q1(k.id,(R1)=>({...R1,placed:{...R1.placed??{},...I1},sections:{...R1.sections??{},...F1}}))},D1=K1.useRef(null),g1=(G1,I)=>{if(I.type!=="section"){D1.current=null;return}let l=g.getNodes(),F1=T1(I),I1=(R1)=>{let N1=T1(R1);if(R1.type==="screen"){let C1=N1.x+N1.w/2,y1=N1.y+N1.h/2;return C1>=F1.x&&C1<=F1.x+F1.w&&y1>=F1.y&&y1<=F1.y+F1.h}return R1.id!==I.id&&N1.x>=F1.x&&N1.y>=F1.y&&N1.x+N1.w<=F1.x+F1.w&&N1.y+N1.h<=F1.y+F1.h};D1.current={id:I.id,from:{...I.position},members:l.filter(I1).map((R1)=>({id:R1.id,x:R1.position.x,y:R1.position.y}))}},h1=(G1,I)=>{let l=D1.current;if(!l||l.id!==I.id)return;let F1=I.position.x-l.from.x,I1=I.position.y-l.from.y,R1=new Map(l.members.map((N1)=>[N1.id,N1]));P1((N1)=>N1.map((C1)=>{let y1=R1.get(C1.id);return y1?{...C1,position:{x:y1.x+F1,y:y1.y+I1}}:C1}))},M1=(G1,I)=>{let l=D1.current;D1.current=null;let F1=I.position.x-(l?.from.x??I.position.x),I1=I.position.y-(l?.from.y??I.position.y),R1=I.type==="screen"?[{id:I.id,x:I.position.x,y:I.position.y}]:(l?.members??[]).map((N1)=>({...N1,x:N1.x+F1,y:N1.y+I1}));requestAnimationFrame(()=>{let N1=g.getNodes(),C1=new Map(R1.filter((p1)=>!p1.id.startsWith("sec:")).map((p1)=>[p1.id,{x:p1.x,y:p1.y}])),y1=new Set([...I.type==="section"?[I.data.key]:[],...R1.filter((p1)=>p1.id.startsWith("sec:")).map((p1)=>p1.id.slice(4))]),v1=new Set(N1.filter((p1)=>C1.has(p1.id)).flatMap((p1)=>a8(p1.data.frame)));for(let p1 of N1){if(p1.type==="screen"&&a8(p1.data.frame).some((S0)=>v1.has(S0))&&!C1.has(p1.id))C1.set(p1.id,{x:p1.position.x,y:p1.position.y});if(p1.type==="section"&&v1.has(p1.data.key))y1.add(p1.data.key)}k1(Object.fromEntries(C1),[...y1])})},r1=(G1)=>Object.fromEntries(g.getNodes().filter((I)=>I.type==="screen"&&a8(I.data.frame).includes(G1)).map((I)=>[I.id,{x:I.position.x,y:I.position.y}])),u1=(G1)=>{let l=g.getNode(`sec:${G1}`)?.data?.name??"Section",F1=window.prompt("Name this section",l)?.trim();if(!F1)return;P1((I1)=>I1.map((R1)=>R1.id===`sec:${G1}`?{...R1,data:{...R1.data,name:F1.slice(0,80),named:!0}}:R1)),requestAnimationFrame(()=>k1(r1(G1),[G1],{[G1]:F1}))},D0=(G1)=>{i(null);let I=g.getNode(`sec:${G1}`);Q1(k.id,(l)=>{let F1=Object.fromEntries(Object.entries(l.sections??{}).filter(([I1])=>I1!==G1));return{...l,sections:G1.startsWith("user:")?F1:{...F1,[G1]:{...I?{x:Math.round(I.position.x),y:Math.round(I.position.y),w:Math.round(T1(I).w),h:Math.round(T1(I).h)}:{x:0,y:0,w:0,h:0},gone:!0}}}})},o1=()=>{let G1=a?g.getNode(a):void 0,I=g.screenToFlowPosition({x:window.innerWidth/2,y:window.innerHeight/2}),l=G1?.type==="screen"?{x:G1.position.x-K4,y:G1.position.y-K4,w:H4+K4*2,h:t4+K4*2}:{x:I.x-900,y:I.y-600,w:1800,h:1200},F1=`user:${Date.now().toString(36)}`,I1=Object.keys(k.sections??{}).filter((R1)=>R1.startsWith("user:")).length+1;i(`sec:${F1}`),Q1(k.id,(R1)=>({...R1,sections:{...R1.sections??{},[F1]:{x:Math.round(l.x),y:Math.round(l.y),w:Math.round(l.w),h:Math.round(l.h),name:`Section ${I1}`}}}))},X2=U1.map((G1)=>G1.type==="section"?{...G1,data:{...G1.data,picked:a===G1.id,editable:x,pick:(I)=>i(`sec:${I}`),rename:u1,remove:D0,resized:()=>requestAnimationFrame(()=>{let I=G1.data.key;k1(r1(I),[I])})}}:{...G1,data:{...G1.data,active:p===G1.id,picked:a===G1.id,boards:x?q1:[],addTo:t,remove:!x||k.include&&!k.include.includes(G1.id)?null:W1,compare:(I)=>{i(I),y(I)}}});K1.useEffect(()=>{let G1=(I)=>{if(I.target?.closest("input, textarea, select, [contenteditable]"))return;if(I.key==="Escape"){if(p)c(null);else i(null);return}if(!x||p)return;if((I.key==="Delete"||I.key==="Backspace")&&a){if(I.preventDefault(),a.startsWith("sec:"))D0(a.slice(4));else if(!k.include||k.include.includes(a))W1.act(a);else i0("It is on this board with its whole group: take the group off in the list to remove it","error");return}if(I.key==="S"&&I.shiftKey&&!I.metaKey&&!I.ctrlKey)I.preventDefault(),o1()};return document.addEventListener("keydown",G1),()=>document.removeEventListener("keydown",G1)});let K2=(G1)=>{i(G1);let I=g.getNode(G1);if(!I)return;let l=T1(I);g.fitBounds({x:l.x,y:l.y,width:l.w,height:l.h},{padding:0.15,duration:400})},N2=()=>{let G1=`board-${Date.now().toString(36)}`;b(G1),$1((I)=>[...I,{id:G1,name:`Board ${I.length}`,include:[]}])},A2=()=>{let G1=window.prompt("Name this board",k.name)?.trim();if(G1)Q1(k.id,(I)=>({...I,name:G1.slice(0,80)}))},C2=()=>{let G1=k.id;b("everything"),$1((I)=>I.filter((l)=>l.id!==G1))},M2=[...new Map(D.map((G1)=>[i8(G1),G1])).values()],H2=k.include?[...M2.filter((G1)=>!a8(G1).some((I)=>k.include.includes(I))).map((G1)=>({key:i8(G1),label:`${d1(G1.vendor)} · ${G1.section.title} (all)`})),...D.filter((G1)=>!J1.includes(G1)).map((G1)=>({key:e0(G1),label:G1.title}))]:[],_2=k.include?[]:D.filter((G1)=>!J1.includes(G1)),z4=U1.filter((G1)=>G1.type==="section"),m2=U1.filter((G1)=>G1.type==="screen"),f5=new Map(m2.map((G1)=>[G1.id,O1(G1,U1)?.id??null])),S5=(G1)=>{let I=G1.data.frame;return F.jsxDEV("li",{children:F.jsxDEV("button",{type:"button",className:a===G1.id?"on":void 0,onClick:()=>K2(G1.id),onDoubleClick:()=>c(G1.id),children:[F.jsxDEV(s0,{vendor:I.vendor},void 0,!1,void 0,this),F.jsxDEV("span",{children:I.title},void 0,!1,void 0,this),I.changes?F.jsxDEV("span",{className:"layer-changed",title:`${E0(I.changes,"change")}, not in a changeset: its mark on the board compares before and now`,children:[F.jsxDEV(Q0,{name:"square-dot",size:14},void 0,!1,void 0,this),I.changes]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)},G1.id,!1,void 0,this)},r5=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches,o4=Z.state==="ok"&&O.state==="ok";return F.jsxDEV("div",{className:"canvas full",role:"region","aria-label":"The World's board",children:F.jsxDEV(ER,{nodes:o4?X2:[],onNodesChange:j1,nodeTypes:SV,onNodeDragStart:g1,onNodeDrag:h1,onNodeDragStop:M1,onNodeClick:(G1,I)=>{if(I.id!==p)i(I.id)},onNodeDoubleClick:(G1,I)=>{if(I.type==="screen")i(I.id),c(I.id)},onPaneClick:()=>{c(null),i(null)},minZoom:0.03,maxZoom:1.5,nodesConnectable:!1,elementsSelectable:!1,panOnScroll:!0,zoomOnPinch:!0,zoomOnScroll:!1,zoomOnDoubleClick:!1,colorMode:r5?"dark":"light",proOptions:{hideAttribution:!0},children:[F.jsxDEV(mR,{variant:a4.Dots,gap:28,size:1.4},void 0,!1,void 0,this),F.jsxDEV(s4,{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:[h.map((G1)=>F.jsxDEV("button",{type:"button",role:"tab","aria-selected":G1.id===k.id,className:G1.id===k.id?"on":void 0,onClick:()=>{i(null),c(null),b(G1.id)},onDoubleClick:x&&G1.id===k.id&&G1.include?A2:void 0,children:G1.name},G1.id,!1,void 0,this)),x?F.jsxDEV("button",{type:"button",className:"ghost",onClick:N2,"aria-label":"A new board",children:"+"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),k.include&&x?F.jsxDEV("div",{className:"board-acts",children:[F.jsxDEV("button",{type:"button",className:"ghost",onClick:A2,children:"Rename"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"ghost",onClick:C2,children:"Delete board"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("ul",{className:"layer-list","aria-label":"Layers",children:[z4.map((G1)=>{let I=G1.data;return F.jsxDEV("li",{children:[F.jsxDEV("button",{type:"button",className:a===G1.id?"layer-section on":"layer-section",onClick:()=>K2(G1.id),onDoubleClick:()=>{if(x)u1(I.key)},children:[I.vendor?F.jsxDEV(s0,{vendor:I.vendor},void 0,!1,void 0,this):F.jsxDEV(Q0,{name:"layout-grid",size:14},void 0,!1,void 0,this),F.jsxDEV("span",{children:I.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"layer-list inner",children:m2.filter((l)=>f5.get(l.id)===G1.id).map(S5)},void 0,!1,void 0,this)]},G1.id,!0,void 0,this)}),m2.filter((G1)=>!f5.get(G1.id)).map(S5)]},void 0,!0,void 0,this),k.include&&!J1.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,H2.length&&x?F.jsxDEV("select",{className:"board-add",value:"","aria-label":"Add to this board",onChange:(G1)=>{let I=G1.target.value;if(I)Q1(k.id,(l)=>({...l,include:[...l.include??[],I]}))},children:[F.jsxDEV("option",{value:"",children:"Add to this board…"},void 0,!1,void 0,this),H2.map((G1)=>F.jsxDEV("option",{value:G1.key,children:G1.label},G1.key,!1,void 0,this))]},void 0,!0,void 0,this):null,_2.length?F.jsxDEV("details",{className:"board-hidden",children:[F.jsxDEV("summary",{children:["Hidden (",_2.length,")"]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"layer-list",children:_2.map((G1)=>F.jsxDEV("li",{children:x?F.jsxDEV("button",{type:"button",onClick:()=>Q1(k.id,(I)=>({...I,hidden:(I.hidden??[]).filter((l)=>l!==e0(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)},e0(G1),!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,m?F.jsxDEV("button",{type:"button",className:"board-elsewhere",onClick:()=>b("everything"),children:[F.jsxDEV(Q0,{name:"square-dot",size:14},void 0,!1,void 0,this),E0(m,"change")," not on this board"]},void 0,!0,void 0,this):null,F.jsxDEV(b2,{load:O,what:"the board"},void 0,!1,void 0,this),N&&O.state==="ok"?F.jsxDEV("p",{role:"alert",className:"pad-s",children:["The board could not be read again (",N,"): 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:K,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),p?F.jsxDEV(s4,{position:"top-center",className:"float hint using",children:[F.jsxDEV("span",{className:"mode",children:["Using ",J1.find((G1)=>e0(G1)===p)?.title??p]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>c(null),children:["Done ",F.jsxDEV("kbd",{children:"Esc"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(s4,{position:"top-center",className:"float hint mode",children:"Scroll to pan · pinch or ⌘ scroll to zoom · double-click a frame to use it"},void 0,!1,void 0,this),x?F.jsxDEV(s4,{position:"bottom-center",className:"float board-tools",children:F.jsxDEV("button",{type:"button",className:"ghost",onClick:o1,title:"Section (⇧S): around the selected frame, else in the middle",children:[F.jsxDEV(Q0,{name:"layout-grid",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Section"},void 0,!1,void 0,this),F.jsxDEV("kbd",{children:"⇧S"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,o&&J1.some((G1)=>e0(G1)===o)?F.jsxDEV(s4,{position:"top-right",className:"float compare-panel",children:F.jsxDEV(fV,{name:Q,token:U,frame:J1.find((G1)=>e0(G1)===o),onClose:()=>y(null),reads:j},o,!1,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV(pR,{showInteractive:!1,position:"bottom-left"},void 0,!1,void 0,this),F.jsxDEV(lR,{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 IO=(Q)=>Q.actions.map((U)=>({twin:U.service,entry:{...U.action,service:U.service,op:U.action.op??U.action.operation??""}})),VV=(Q)=>{let U=Q.action.input??{};return!(typeof U.operationId==="string"||U.graphql!==void 0&&U.graphql!==null)};function WU(Q){let U=Q.actions.filter(VV).length,Z=Q.actions.length-U,K=Q.applied?.receipts??[],H=Q.deployed??[],Y=new Set([...H.filter((T)=>T.status==="deployed"),...K.filter((T)=>T.status==="confirmed")].map((T)=>T.actionId)).size,W=new Set([...H.filter((T)=>T.status==="refused"||T.status==="failed"),...K.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(K.some((T)=>T.status==="replayed")&&K.every((T)=>T.status==="replayed"||T.status==="skipped"))return{label:"Pushed",tone:"good",...B};return{label:"Not sent",tone:"plain",...B}}var QH=(Q)=>Q.message??Q.narration?.split(`
|
|
250
|
-
`)[0]?.replace(/ setting .*$/,"")??Q.name;function wO(Q,U=1){let Z=Q.currentHash??Q.contentHash,K=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(K>0&&K<U)return{label:`Approved by ${K} of ${U}`,tone:"plain"};if(K>0)return{label:`Approved by ${K}`,tone:"good"};if(H)return{label:"Verified",tone:"good"};return{label:"Not verified",tone:"plain"}}function _O({name:Q,token:U,signsAs:Z,c:K,canWrite:H,rooted:Y,refused:W,onChanged:B,part:T,required:R}){let M=T==="head",A=T==="review",[O,P]=K1.useState(null),[N,V]=K1.useState(!1),[j,f]=K1.useState(""),[u,C]=K1.useState(""),[v,D]=K1.useState(null),h=f0(U,`/-/${Q}/origin`),E=WU(K),b=wO(K,R),k=IO(K),x=[...new Set(k.map((t)=>t.twin))],$1=x.some((t)=>Y.includes(t)),Q1=(t)=>t===(K.currentHash??K.contentHash),J1=K.applied?.receipts??[],m=(K.deployed??[]).filter((t)=>t.status!=="landed"),p=J1.filter((t)=>t.status==="confirmed").length,c=m.filter((t)=>t.status==="deployed"),a=async(t,W1,T1,O1)=>{P(t),D(null);try{let B1=await z0(U,W1,{method:"POST",...T1===void 0?{}:{body:JSON.stringify(T1)}});if(!B1.ok)return W(B1),D({what:t,...F2(await N3(B1))}),!1;if(O1)i0(O1);return B(),!0}catch(B1){return D({what:t,text:`the World did not answer (${B1 instanceof Error?B1.message:String(B1)})`,acts:[]}),!1}finally{P(null)}},i=()=>{a("Verify",`/-/${Q}/changesets/${K.name}/verify`,void 0,"Verified: the checks ran over it")},o=async(t)=>{if(t.preventDefault(),await a("Approve",`/-/${Q}/changesets/${K.name}/approve`,{...j.trim()?{note:j.trim()}:{},...Z===null&&u.trim()?{as:u.trim()}:{}},"Approved"))V(!1),f("")},y=async()=>{let t=x.filter((W1)=>Y.includes(W1));if(!await c4({title:`Deploy ${K.name} to the real vendors?`,body:F.jsxDEV(F.Fragment,{children:["It performs its ",K.actions.length," change",K.actions.length===1?"":"s"," against the real account",t.length===1?"":"s"," behind ",S8(t.map(d1)),". This cannot be taken back here."]},void 0,!0,void 0,this),action:"Deploy",danger:!0,typed:K.name}))return;P("Deploy"),D(null);try{let W1=await z0(U,`/-/${Q}/deploy/${K.name}`,{method:"POST",body:JSON.stringify({confirm:K.name})});if(!W1.ok){W(W1),D({what:"Deploy",...F2(await N3(W1))});return}let T1=await z0(U,`/-/${Q}/changesets/${K.name}`),O1=T1.ok?await T1.json():null;if(!O1){i0("Deploy: sent; reading its receipts failed","info"),B();return}let B1=WU(O1);i0(`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"),B()}catch(W1){D({what:"Deploy",text:`the World did not answer (${W1 instanceof Error?W1.message:String(W1)})`,acts:[]})}finally{P(null)}},g=!H?"This session reads the World; it changes nothing":E.label==="Deployed"?"Already deployed: every change was performed at the vendor":null,q1=h.state==="ok"&&h.data.origin?KH(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:[K.message??K.name," ",F.jsxDEV("span",{className:`badge cs-${E.tone}`,children:E.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:K.name},void 0,!1,void 0,this)," · made ",F.jsxDEV(I0,{iso:K.createdAt},void 0,!1,void 0,this)," · ",K.actions.length," change",K.actions.length===1?"":"s"," at ",S8(x.map(d1))||"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:i,disabled:Boolean(g)||O!==null,title:g??"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(g)||O!==null,title:g??"Sign its current contents as yourself",children:"Approve…"},void 0,!1,void 0,this),$1?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>void y(),disabled:Boolean(g)||O!==null,title:g??"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),g&&E.label!=="Deployed"?F.jsxDEV("p",{className:"mode",children:[g,"."]},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:i,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(UO,{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:[K.narration?F.jsxDEV("p",{className:"narration",children:K.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:[E.performed>0?F.jsxDEV("p",{className:"pad",children:[E.performed>=E.total?"Deployed":"Partly deployed",": ",E.performed," of ",E.total," change",E.total===1?"":"s",E.own?` (and ${E.own} of the World's own, which stay in it)`:""," performed at ",S8([...new Set([...c.map((t)=>t.service),...J1.filter((t)=>t.status==="confirmed").map((t)=>t.service)].map(d1))]),c.length?` (${c.length} from here`:" (",c.length&&p?", ":"",p?`${p} by the remote`:"",")."]},void 0,!0,void 0,this):E.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,K.applied?F.jsxDEV(F.Fragment,{children:[" · ",F.jsxDEV(I0,{iso:K.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):E.failed===0?F.jsxDEV("p",{className:"pad",children:["Not sent: it is only in this World.",K.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,E.failed>0?F.jsxDEV("p",{className:"pad failed",role:"alert",children:[E.failed," change",E.failed===1?" was":"s were"," refused or failed at the vendor",[...m.filter((t)=>t.reason&&(t.status==="refused"||t.status==="failed")).map((t)=>t.reason),...J1.filter((t)=>t.status==="failed"&&t.error).map((t)=>t.error)].slice(0,3).map((t)=>`: ${F2(t).text}`).join(""),"."]},void 0,!0,void 0,this):null,K.applied?.refusal?.length?F.jsxDEV("ul",{className:"checks pad",children:K.applied.refusal.map((t,W1)=>F.jsxDEV("li",{className:"mode",children:F2(t).text},W1,!1,void 0,this))},void 0,!1,void 0,this):null,m.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:m.map((t)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:t.status==="refused"||t.status==="failed"?"badge cs-bad":t.status==="deployed"?"badge cs-done":"badge",children:t.status},void 0,!1,void 0,this)," ",d1(t.service)," ",t.status==="deployed"?t.url?F.jsxDEV("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",children:t.externalId??t.url},void 0,!1,void 0,this):t.externalId?F.jsxDEV("code",{children:t.externalId},void 0,!1,void 0,this):null:null,t.reason?F.jsxDEV("span",{className:"mode",children:[" · ",F2(t.reason).text]},void 0,!0,void 0,this):null," ",F.jsxDEV("span",{className:"mode",children:["· ",F.jsxDEV(I0,{iso:t.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},`v:${t.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((t)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:t.status==="failed"?"badge cs-bad":t.status==="confirmed"?"badge cs-done":"badge",children:t.status},void 0,!1,void 0,this)," ",d1(t.service)," ",F.jsxDEV("span",{className:"mode",children:t.status==="replayed"?"replayed at the remote World":t.status==="confirmed"?"performed at the vendor by the remote":""},void 0,!1,void 0,this),t.status==="confirmed"&&t.externalId?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("code",{children:t.externalId},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,t.error?F.jsxDEV("span",{className:"mode",children:[" · ",F2(t.error).text]},void 0,!0,void 0,this):null]},`r:${t.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&&E.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:`${t1}/${Q}/~/settings/services`,onClick:(t)=>{t.preventDefault(),M0([...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),!K.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(K.verification.contentHash)?"":"stale",children:[F.jsxDEV("p",{children:[K.verification.passed?"✓ Passed":"✗ Failed"," · ",F.jsxDEV(I0,{iso:K.verification.at},void 0,!1,void 0,this),Q1(K.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),K.verification.results.length?F.jsxDEV("ul",{className:"checks",children:K.verification.results.map((t)=>F.jsxDEV("li",{children:[t.passed?"✓":"✗"," ",F.jsxDEV("code",{children:t.id},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:d1(t.service)},void 0,!1,void 0,this)]},t.id,!0,void 0,this))},void 0,!1,void 0,this):null,K.verification.refusals?.length?F.jsxDEV("ul",{className:"checks",children:K.verification.refusals.map((t,W1)=>F.jsxDEV("li",{children:["✗ ",F.jsxDEV("code",{children:t.check},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[d1(t.service),": ",t.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),K.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:K.approvals.map((t,W1)=>F.jsxDEV("li",{children:[F.jsxDEV("b",{children:t.principal},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(I0,{iso:t.at},void 0,!1,void 0,this),Q1(t.contentHash)?"":" · signed an earlier version"]},void 0,!0,void 0,this),t.note?F.jsxDEV("div",{className:"mode",children:["“",t.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(P5,{open:N,onClose:()=>{if(!O)V(!1)},title:`Approve ${K.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:(t)=>void o(t),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:u,onChange:(t)=>C(t.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:j,onChange:(t)=>f(t.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 PO=(Q,U)=>JSON.stringify(Q)===JSON.stringify(U);function yV({changes:Q,idPrefix:U}){let Z=[...new Set(Q.map((K)=>K.twin))];return F.jsxDEV(F.Fragment,{children:Z.map((K)=>{let H=Q.filter((W)=>W.twin===K).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}-${K}`,children:[F.jsxDEV("h3",{id:`${U}-${K}`,className:"vendor-cell",children:[F.jsxDEV(s0,{vendor:K},void 0,!1,void 0,this),d1(K)," ",F.jsxDEV("span",{className:"mode",children:["· ",E0(Y.length,"record"),", ",E0(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=d5(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:u3(T)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B.map((A)=>{let O=A.fields??{},P=Object.entries(O).filter(([V,j])=>!(V in M)||!PO(M[V],j)),N=M;return M={...M,...O},F.jsxDEV("div",{className:"write",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("span",{className:"op",children:d5(A).what},void 0,!1,void 0,this)," · ",F.jsxDEV(I0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",cJ(A)]},void 0,!0,void 0,this),P.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 ${d5(A).what} set`,children:P.map(([V,j])=>F.jsxDEV(K1.default.Fragment,{children:[F.jsxDEV("dt",{children:V},void 0,!1,void 0,this),F.jsxDEV("dd",{children:V in N?F.jsxDEV("span",{className:"changed",children:[F.jsxDEV("del",{children:F.jsxDEV(b3,{v:N[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(b3,{v:j},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(b3,{v:j},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)]},K,!0,void 0,this)})},void 0,!1,void 0,this)}function kV({name:Q,token:U,changes:Z,canWrite:K,refused:H,onCut:Y,pinned:W,generated:B,inputRef:T,author:R}){let[M,A]=K1.useState(""),[O,P]=K1.useState(!1),[N,V]=K1.useState([]),j=(u,C,v)=>{V((D)=>[{ok:u,text:C,at:new Date().toISOString(),n:++lJ,...v?.length?{acts:v}:{}},...D].slice(0,4))},f=async(u)=>{u.preventDefault(),P(!0);try{let C=await z0(U,`/-/${Q}/changesets`,{method:"POST",body:JSON.stringify(M.trim()?{message:M.trim()}:{})});if(!C.ok){H(C);let D=F2(await N3(C));j(!1,`Cut a changeset: ${D.text}`,D.acts);return}let v=await C.json();j(!0,`Cut ${v.name??"a changeset"}: ${E0(v.actions?.length??0,"change")}, ready to review in History and push.`),A(""),Y()}catch(C){j(!1,`Cut a changeset: the World did not answer (${C instanceof Error?C.message:String(C)})`)}finally{P(!1)}};if(W){let u=!K?"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(x6,{log:N,name:Q},void 0,!1,void 0,this),F.jsxDEV("form",{onSubmit:(C)=>void f(C),"aria-label":"Cut a changeset",children:[R?F.jsxDEV("a",{className:"ws-author",href:R.account,title:`${R.who}: your account`,onClick:(C)=>{C.preventDefault(),M0(R.account.slice(t1.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:(C)=>A(C.target.value),placeholder:Z===0?"Nothing to cut":B?"Summary (optional)":"Summary (required)",required:!B,maxLength:200,disabled:Boolean(u),title:u??void 0},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",disabled:Boolean(u)||O,title:u??void 0,children:O?"Cutting…":Z===0?"Cut a changeset":F.jsxDEV(F.Fragment,{children:["Cut ",E0(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(!K||Z===0)return F.jsxDEV(x6,{log:N,name:Q},void 0,!1,void 0,this);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("form",{className:"block cut pad",onSubmit:(u)=>void f(u),"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:(u)=>A(u.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(x6,{log:N,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function DV({name:Q,token:U}){let[Z,K]=K1.useState(0),H=f0(U,`/-/${Q}/keys`,Z),[Y,W]=K1.useState(!1),[B,T]=K1.useState(""),[R,M]=K1.useState("write"),[A,O]=K1.useState(!1),[P,N]=K1.useState(null),[V,j]=K1.useState(null),[f,u]=K1.useState(null),C=async()=>{let h=`Read-only link · ${new Date().toLocaleDateString(void 0,{month:"short",day:"numeric"})}`,E=await z0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:h,scope:"read"})}).catch(()=>null),b=E?await E.json().catch(()=>({})):{error:`${B0} did not answer`};if(!E?.ok||!b.key){i0(b.error?F2(b.error).text:"refused","error");return}u(`${window.location.origin}${t1}/${Q}#${new URLSearchParams({token:b.key}).toString()}`),K((k)=>k+1)},v=async(h)=>{h.preventDefault(),O(!0),N(null);let E=await z0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:B.trim(),scope:R})}).catch(()=>null);O(!1);let b=E?await E.json().catch(()=>({})):{error:`${B0} did not answer`};if(!E?.ok||!b.key){N(b.error?F2(b.error).text:"refused");return}W(!1),j({key:b.key,name:B.trim()}),T(""),K((k)=>k+1)},D=async(h)=>{if(!await c4({title:`Revoke ${h.name}?`,body:"Whatever holds it loses this World at once.",action:"Revoke key",danger:!0}))return;let E=await z0(U,`/-/${Q}/keys/${h.id}`,{method:"DELETE"});if(E.ok)i0(`Revoked ${h.name}`);else i0(await C5(E),"error");K((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),x2()?F.jsxDEV("a",{className:"button primary",href:`${x2()}/${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 C(),children:"Share a read-only link"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>{N(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(b2,{load:H,what:"the keys",retry:()=>K((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:$9(h.createdAt),children:sF(h.createdAt)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:h.lastUsedAt?sF(h.lastUsedAt):"never"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:F.jsxDEV(cA,{label:`More for ${h.name}`,items:[{label:"Revoke…",danger:!0,onSelect:()=>void D(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(P5,{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),P?F.jsxDEV("p",{role:"alert",children:P},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(P5,{open:Boolean(V),onClose:()=>j(null),title:`${V?.name??"The key"} is ready`,footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>j(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(oF,{label:"Key",value:V.key,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(P5,{open:Boolean(f),onClose:()=>u(null),title:"A read-only link",footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>u(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(oF,{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 lJ=0;function x6({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(I0,{iso:Z.at,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",Z.text,Z.acts?F.jsxDEV(UO,{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 NO(Q,U,Z,K){let[H,Y]=K1.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]=K1.useState([]),[O,P]=K1.useState(null),N=(D,h,E)=>{if(A((b)=>[{ok:D,text:h,at:new Date().toISOString(),n:++lJ,...E?.length?{acts:E}:{}},...b].slice(0,8)),!D)i0(h,"error")},V=async(D,h,E)=>{P(D);try{let b=await z0(U,`/-/${Q}/${h}`,E);if(!b.ok){K(b);let k=F2(await N3(b));return N(!1,`${D}: ${k.text}`,k.acts),null}return await b.json()}catch(b){return N(!1,`${D}: the World did not answer (${b instanceof Error?b.message:String(b)})`),null}finally{P(null),Y((b)=>b+1)}},j=B.state==="ok"&&B.data.origin?KH(B.data.origin):null,f=T.state==="ok"?T.data.changes.length:null,u=R.state==="ok"&&j?HV(R.data.changesets.filter((D)=>!D.pushedBy)).sort((D,h)=>D.createdAt.localeCompare(h.createdAt)):[];return{origin:B,diff:T,sets:R,there:j,changes:f,waiting:u,log:M,busy:O,say:N,send:V,push:async()=>{let D=await V("Push","origin/push",{method:"POST"});if(!D)return;if(D.pushed.length===0){N(!0,"Nothing to push: every changeset is already at the remote.");return}for(let h of D.pushed){let E=h.receipts??[],b=E.filter((J1)=>J1.status==="replayed").length,k=E.filter((J1)=>J1.status==="confirmed").length,x=E.filter((J1)=>J1.status==="failed").length,$1=h.outcome==="applied"&&x===0;if(h.outcome==="refused"){N(!1,`Push of ${h.changeset} was refused${h.refusal?.length?`: ${h.refusal.map((J1)=>F2(J1).text).join("; ")}`:""}.`);continue}let Q1=[`${b} of ${E0(E.length,"change")} replayed there`,...k?[`${k} performed at the vendor by the remote`]:[],...x?[`${x} failed`]:[]];N($1,`${h.outcome==="partial"?"Partly pushed":"Pushed"} ${h.changeset} to ${j??"the remote"}: ${Q1.join("; ")}${h.refusal?.length?` (${h.refusal.map((J1)=>F2(J1).text).join("; ")})`:""}.`)}},pull:async()=>{let D=await V("Pull","origin/pull",{method:"POST"});if(!D)return;let h=Object.entries(D.appended).filter(([,b])=>b>0),E=D.rebased.flatMap((b)=>b.conflicts.map((k)=>`${d1(b.twin)} ${k.subject.type}:${k.subject.id} ${k.field}`));N(E.length===0,`Pulled from ${j??"the remote"}: ${h.length?h.map(([b,k])=>`${E0(k,"entry")} at ${d1(b)}`).join(", "):"nothing new"}${E.length?`; conflicts at ${E.join(", ")}`:""}.`)}}}function uV({name:Q,token:U,canWrite:Z,tick:K,refused:H}){let{origin:Y,there:W,changes:B,log:T,busy:R,say:M,send:A,push:O,pull:P}=NO(Q,U,K,H),[N,V]=K1.useState(""),[j,f]=K1.useState(""),[u,C]=K1.useState(!1),v=async(h)=>{h.preventDefault();let E=await A("Name the remote","origin",{method:"PUT",body:JSON.stringify({url:N.trim(),token:j.trim()})});if(E){let b=Object.values(E.appended??{}).reduce((k,x)=>k+x,0);M(!0,`The remote is ${KH(E.origin)}: its history came in (${E0(b,"entry")}).`),f(""),C(!1)}},D=!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??""),C(!u)},"aria-expanded":u,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(I0,{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(b2,{load:Y,what:"the remote",lines:1},void 0,!1,void 0,this),u?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:N,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:j,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:()=>C(!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(x6,{log:T,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function bV({name:Q,token:U,canWrite:Z,refused:K}){let[H,Y]=K1.useState(0),W=f0(U,`/-/${Q}/twins`,H),B=f0(U,`/-/${Q}/links`,H),T=f0(U,`/-/${Q}/requests?hours=24`,H),[R,M]=K1.useState({}),[A,O]=K1.useState(null),[P,N]=K1.useState(""),[V,j]=K1.useState(!1),[f,u]=K1.useState([]),C=(k,x,$1)=>{if(u((Q1)=>[{ok:k,text:x,at:new Date().toISOString(),n:++lJ,...$1?.length?{acts:$1}:{}},...Q1].slice(0,6)),!k)i0(x,"error")},v=B.state==="ok"?Object.keys(B.data.links).sort():[];K1.useEffect(()=>{let k=!0;return Promise.all(v.map(async(x)=>{let $1=await z0(U,`/-/${Q}/twins/${x}/credential`).catch(()=>null),Q1=$1?.ok?await $1.json():null;return[x,Q1?.credential??null]})).then((x)=>{if(k)M(Object.fromEntries(x))}),()=>{k=!1}},[Q,U,v.join(","),H]);let D=async(k)=>{if(k.preventDefault(),!A||!P)return;j(!0);let x=await z0(U,`/-/${Q}/twins/${A.vendor}/credential`,{method:"PUT",body:P,headers:{"content-type":"text/plain"}}).catch(()=>null);if(j(!1),!x){C(!1,`Seal ${A.vendor}: ${B0} did not answer`);return}if(!x.ok){K(x);let Q1=F2(await N3(x));C(!1,`Seal ${d1(A.vendor)}: ${Q1.text}`,Q1.acts);return}let $1=await x.json().catch(()=>({}));C(!0,`Sealed a credential for ${d1(A.vendor)}${$1.fingerprint?` (${$1.fingerprint})`:""}: it opens for ${$1.boundTo??A.to} only, and is never shown again.`),N(""),O(null),Y((Q1)=>Q1+1)},h=async(k)=>{if(!await c4({title:`Remove the link ${k}?`,body:`Requests to ${h6}/${Q}/${k}/… stop being forwarded to ${B.state==="ok"?B.data.links[k]?.origin:"its origin"}.`,action:"Remove link",danger:!0}))return;let x=await z0(U,`/-/${Q}/links/${k}`,{method:"DELETE"}).catch(()=>null);if(!x?.ok){if(x)K(x);C(!1,`Remove ${k}: ${x?await C5(x):"the World did not answer"}`);return}C(!0,`Removed the link ${k}.`),Y(($1)=>$1+1)},E=(k)=>k?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:[k.fingerprint?F.jsxDEV("code",{children:k.fingerprint},void 0,!1,void 0,this):null," · ",F.jsxDEV(I0,{iso:k.placedAt},void 0,!1,void 0,this),k.sealedBy?` · by ${k.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(x6,{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(b2,{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((k)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(s0,{vendor:k.twin},void 0,!1,void 0,this),d1(k.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:E(k.credential)},void 0,!1,void 0,this),F.jsxDEV("td",{children:k.credential?.boundTo?F.jsxDEV("code",{children:k.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:k.root?.url?F.jsxDEV("code",{children:k.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:!k.root?.url,title:k.root?.url?`Seal ${d1(k.twin)}'s real credential for ${k.root.url}`:"Connect it to its real service first (Settings › Real services): a credential is sealed for where it goes",onClick:()=>{N(""),O({vendor:k.twin,to:k.root.url})},children:k.credential?"Replace…":"Seal a credential…"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},k.twin,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,W.state==="ok"&&b.every((k)=>!k.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(b2,{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:[h6,"/",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((k)=>{let x=B.state==="ok"?B.data.links[k].origin:"",$1=T.state==="ok"?T.data.twins.find((Q1)=>Q1.twin===k):void 0;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("b",{children:k},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("code",{children:x},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(([Q1,J1])=>`${Q1}: ${J1}`).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:[E(R[k]??null),R[k]?.boundTo?F.jsxDEV("div",{className:"mode",children:["bound to ",F.jsxDEV("code",{children:R[k].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:()=>{N(""),O({vendor:k,to:x})},children:R[k]?"Replace…":"Seal a credential…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>void h(k),children:"Remove…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},k,!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(P5,{open:Boolean(A),onClose:()=>{if(!V)O(null)},title:`Seal ${A?d1(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||!P,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:(k)=>void D(k),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:P,onChange:(k)=>N(k.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 EV({name:Q,token:U,admin:Z,canWrite:K,refused:H,onRemoved:Y,only:W}){let B=(i)=>!W||W===i,[T,R]=K1.useState(0),M=f0(U,`/-/${Q}/twins`,T),A=f0(U,`/-/${Q}/checks`,T),[O,P]=K1.useState(0),N=f0(U,`/-/${Q}/clock`,O),[V,j]=K1.useState([]),[f,u]=K1.useState(null),[C,v]=K1.useState(null),[D,h]=K1.useState(""),[E,b]=K1.useState("gated"),[k,x]=K1.useState(!1),$1=(i,o,y)=>{if(j((g)=>[{ok:i,text:o,at:new Date().toISOString(),n:++lJ,...y?.length?{acts:y}:{}},...g].slice(0,6)),!i)i0(o,"error")},Q1=async(i,o,y)=>{let g=await z0(U,o,y).catch(()=>null);if(!g)return $1(!1,`${i}: the World did not answer`),!1;if(!g.ok){H(g);let q1=F2(await N3(g));return $1(!1,`${i}: ${q1.text}`,q1.acts),!1}return $1(!0,`${i}: done.`),R((q1)=>q1+1),!0},J1=async(i)=>{if(i.preventDefault(),!C)return;x(!0);let o=C.root??{},y=await Q1(D.trim()?`Connect ${d1(C.twin)} to ${D.trim()}`:`Disconnect ${d1(C.twin)}`,`/-/${Q}/twins/${C.twin}/root`,{method:"PUT",body:JSON.stringify(D.trim()?{...o,url:D.trim(),deploy:E}:null)});if(x(!1),y)v(null)},m=async()=>{if(!await c4({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 i=await z0(Z,`/-/worlds/${Q}/rotate`,{method:"POST"});if(i.ok)u(await i.json()),$1(!0,"Rotated: the new tokens are shown once, below.");else $1(!1,`Rotate: ${await C5(i)}`)},p=async()=>{if(!await c4({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 i=await z0(Z,`/-/worlds/${Q}`,{method:"DELETE"}).catch((o)=>o);if(i instanceof Error){$1(!1,`Remove: the host did not answer (${i.message})`);return}if(i.ok)Y();else $1(!1,`Remove: ${await C5(i)}`)},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(x6,{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),K?F.jsxDEV(DV,{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((i)=>i.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(b2,{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),K?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((i)=>{let o=i.root;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(s0,{vendor:i.twin},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${t1}/${Q}/${i.twin}`,title:`Its log and stored state · ${i.position??0} entries`,onClick:(y)=>{y.preventDefault(),M0([...Q.split("/"),i.twin])},children:d1(i.twin)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:o?.url?F.jsxDEV("code",{children:o.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:o?.url?a[o.deploy??""]??o.deploy??"—":"—"},void 0,!1,void 0,this),F.jsxDEV("td",{children:i.refresh?.failed?F.jsxDEV("span",{role:"alert",children:["failed ×",i.refresh.failed.count??1,": ",i.refresh.failed.reason??""]},void 0,!0,void 0,this):o?.url?$9(i.refresh?.observedAt??i.refresh?.at):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),K?F.jsxDEV("td",{className:"num row-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>{h(o?.url??""),b(o?.deploy==="auto"||o?.deploy==="hold"?o.deploy:"gated"),v(i)},children:o?.url?"Change…":"Connect…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",disabled:!o?.url,title:o?.url?"Read the real service's current state into this World":"Connect it first",onClick:()=>void c4({title:`Read ${d1(i.twin)} now?`,body:`The real ${d1(i.twin)}'s current state is read into this World. Nothing is written to ${d1(i.twin)}.`,action:"Read from it"}).then((y)=>{if(y)Q1(`Read from ${d1(i.twin)}`,`/-/${Q}/twins/${i.twin}/refresh`,{method:"POST"})}),children:"Read from it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},i.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(zV,{name:Q,token:U,clock:N,canWrite:K,onChanged:()=>P((i)=>i+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(b2,{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((i)=>F.jsxDEV("tr",{children:F.jsxDEV("td",{children:F.jsxDEV("code",{children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this)},i,!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),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 m(),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 p(),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(P5,{open:Boolean(C),onClose:()=>{if(!k)v(null)},title:`Connect ${C?d1(C.twin):""} to its real service`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>v(null),disabled:k,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"connect-root",className:"primary",disabled:k,children:k?"Saving…":D.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:(i)=>void J1(i),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:D,onChange:(i)=>h(i.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:E,onChange:(i)=>b(i.target.value==="auto"?"auto":i.target.value==="hold"?"hold":"gated"),children:["gated","auto","hold"].map((i)=>F.jsxDEV("option",{value:i,children:a[i]},i,!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 CO(){return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(tv,{},void 0,!1,void 0,this),F.jsxDEV(pA,{},void 0,!1,void 0,this),F.jsxDEV(gA,{},void 0,!1,void 0,this),F.jsxDEV(mA,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var SO=p0(f8(),1);Lq();fO.createRoot(t8).render(SO.jsxDEV(CO,{},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??ET,R=U?.actInsideInputWithModifier??!0;if(Q!==null){let M=(P)=>{if(H.current=P.ctrlKey||P.metaKey||P.shiftKey||P.altKey,(!H.current||H.current&&!R)&&xK(P))return!1;let V=xT(P.code,L);if(Y.current.add(P[V]),hT(W,Y.current,!1)){let v=P.composedPath?.()?.[0]||P.target,C=v?.nodeName==="BUTTON"||v?.nodeName==="A";if(U.preventDefault!==!1&&(H.current||!C))P.preventDefault();K(!0)}},A=(P)=>{let N=xT(P.code,L);if(hT(W,Y.current,!0))K(!1),Y.current.clear();else Y.current.delete(P[N]);if(P.key==="Meta")Y.current.clear();H.current=!1},O=()=>{Y.current.clear(),K(!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,K]),Z}function hT(Q,U,Z){return Q.filter((K)=>Z||K.length===U.size).some((K)=>K.every((H)=>U.has(H)))}function xT(Q,U){return U.includes(Q)?"code":"key"}var pS=()=>{let Q=x0();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:K}=Q.getState();return K?K.scaleTo(U,Z):!1},getZoom:()=>Q.getState().transform[2],setViewport:async(U,Z)=>{let{transform:[K,H,Y],panZoom:W}=Q.getState();if(!W)return!1;return await W.setViewport({x:U.x??K,y:U.y??H,zoom:U.zoom??Y},Z),!0},getViewport:()=>{let[U,Z,K]=Q.getState().transform;return{x:U,y:Z,zoom:K}},setCenter:async(U,Z,K)=>{return Q.getState().setCenter(U,Z,K)},fitBounds:async(U,Z)=>{let{width:K,height:H,minZoom:Y,maxZoom:W,panZoom:L}=Q.getState(),T=hJ(U,K,H,Y,W,Z?.padding??0.1);if(!L)return!1;return await L.setViewport(T,{duration:Z?.duration,ease:Z?.ease,interpolate:Z?.interpolate}),!0},screenToFlowPosition:(U,Z={})=>{let{transform:K,snapGrid:H,snapToGrid:Y,domNode:W}=Q.getState();if(!W)return U;let{x:L,y:T}=W.getBoundingClientRect(),R={x:U.x-L,y:U.y-T},M=Z.snapGrid??H,A=Z.snapToGrid??Y;return M9(R,K,A,M)},flowToScreenPosition:(U)=>{let{transform:Z,domNode:K}=Q.getState();if(!K)return U;let{x:H,y:Y}=K.getBoundingClientRect(),W=g8(U,Z);return{x:W.x+H,y:W.y+Y}}}},[])};function KR(Q,U){let Z=[],K=new Map,H=[];for(let Y of Q)if(Y.type==="add"){H.push(Y);continue}else if(Y.type==="remove"||Y.type==="replace")K.set(Y.id,[Y]);else{let W=K.get(Y.id);if(W)W.push(Y);else K.set(Y.id,[Y])}for(let Y of U){let W=K.get(Y.id);if(!W){Z.push(Y);continue}if(W[0].type==="remove")continue;if(W[0].type==="replace"){Z.push({...W[0].item});continue}let L={...Y};for(let T of W)cS(T,L);Z.push(L)}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 cS(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 HR(Q,U){return KR(Q,U)}function lS(Q,U){return KR(Q,U)}function l8(Q,U){return{id:Q,type:"select",selected:U}}function R9(Q,U=new Set,Z=!1){let K=[];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;K.push(l8(Y.id,W))}}return K}function mT({items:Q=[],lookup:U}){let Z=[],K=new Map(Q.map((H)=>[H.id,H]));for(let[H,Y]of Q.entries()){let W=U.get(Y.id),L=W?.internals?.userNode??W;if(L!==void 0&&L!==Y)Z.push({id:Y.id,item:Y,type:"replace"});if(L===void 0)Z.push({item:Y,type:"add",index:H})}for(let[H]of U)if(K.get(H)===void 0)Z.push({id:H,type:"remove"});return Z}function gT(Q){return{id:Q.id,type:"remove"}}var iS=kK("React Flow","https://reactflow.dev/");function dS(Q,U,Z={}){return JT(Q,U,{...Z,onError:Z.onError??iS})}var pT=(Q)=>lM(Q),rS=(Q)=>fK(Q);function YR(Q){return z1.forwardRef(Q)}var zR=typeof window<"u"?z1.useLayoutEffect:z1.useEffect;function cT(Q){let[U,Z]=z1.useState(BigInt(0)),[K]=z1.useState(()=>aS(()=>Z((H)=>H+BigInt(1))));return zR(()=>{let H=K.get();if(H.length)Q(H),K.reset()},[U]),K}function aS(Q){let U=[];return{get:()=>U,reset:()=>{U=[]},push:(Z)=>{U.push(Z),Q()}}}var WR=z1.createContext(null);function sS({children:Q}){let U=x0(),Z=z1.useCallback((L)=>{let{nodes:T=[],setNodes:R,hasDefaultNodes:M,onNodesChange:A,nodeLookup:O,fitViewQueued:P,onNodesChangeMiddlewareMap:N}=U.getState(),V=T;for(let C of L)V=typeof C==="function"?C(V):C;let v=mT({items:V,lookup:O});for(let C of N.values())v=C(v);if(M)R(V);if(v.length>0)A?.(v);else if(P)window.requestAnimationFrame(()=>{let{fitViewQueued:C,nodes:u,setNodes:f}=U.getState();if(C)f(u)})},[]),K=cT(Z),H=z1.useCallback((L)=>{let{edges:T=[],setEdges:R,hasDefaultEdges:M,onEdgesChange:A,edgeLookup:O}=U.getState(),P=T;for(let N of L)P=typeof N==="function"?N(P):N;if(M)R(P);else if(A)A(mT({items:P,lookup:O}))},[]),Y=cT(H),W=z1.useMemo(()=>({nodeQueue:K,edgeQueue:Y}),[]);return H1.jsx(WR.Provider,{value:W,children:Q})}function tS(){let Q=z1.useContext(WR);if(!Q)throw Error("useBatchContext must be used within a BatchProvider");return Q}var oS=(Q)=>!!Q.panZoom;function gJ(){let Q=pS(),U=x0(),Z=tS(),K=H0(oS),H=z1.useMemo(()=>{let Y=(A)=>U.getState().nodeLookup.get(A),W=(A)=>{Z.nodeQueue.push(A)},L=(A)=>{Z.edgeQueue.push(A)},T=(A)=>{let{nodeLookup:O,nodeOrigin:P}=U.getState(),N=pT(A)?A:O.get(A.id),V=N.parentId?uK(N.position,N.measured,N.parentId,O,P):N.position,v={...N,position:V,width:N.measured?.width??N.width,height:N.measured?.height??N.height};return B9(v)},R=(A,O,P={replace:!1})=>{W((N)=>N.map((V)=>{if(V.id===A){let v=typeof O==="function"?O(V):O;return P.replace&&pT(v)?v:{...V,...v}}return V}))},M=(A,O,P={replace:!1})=>{L((N)=>N.map((V)=>{if(V.id===A){let v=typeof O==="function"?O(V):O;return P.replace&&rS(v)?v:{...V,...v}}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:L,addNodes:(A)=>{let O=Array.isArray(A)?A:[A];Z.nodeQueue.push((P)=>[...P,...O])},addEdges:(A)=>{let O=Array.isArray(A)?A:[A];Z.edgeQueue.push((P)=>[...P,...O])},toObject:()=>{let{nodes:A=[],edges:O=[],transform:P}=U.getState(),[N,V,v]=P;return{nodes:A.map((C)=>({...C})),edges:O.map((C)=>({...C})),viewport:{x:N,y:V,zoom:v}}},deleteElements:async({nodes:A=[],edges:O=[]})=>{let{nodes:P,edges:N,onNodesDelete:V,onEdgesDelete:v,triggerNodeChanges:C,triggerEdgeChanges:u,onDelete:f,onBeforeDelete:j}=U.getState(),{nodes:D,edges:h}=await rM({nodesToRemove:A,edgesToRemove:O,nodes:P,edges:N,onBeforeDelete:j}),E=h.length>0,b=D.length>0;if(E){let k=h.map(gT);v?.(h),u(k)}if(b){let k=D.map(gT);V?.(D),C(k)}if(b||E)f?.({nodes:D,edges:h});return{deletedNodes:D,deletedEdges:h}},getIntersectingNodes:(A,O=!0,P)=>{let N=yK(A),V=N?A:T(A),v=P!==void 0;if(!V)return[];return(P||U.getState().nodes).filter((C)=>{let u=U.getState().nodeLookup.get(C.id);if(u&&!N&&(C.id===A.id||!u.internals.positionAbsolute))return!1;let f=B9(v?C:u),j=EJ(f,V);return O&&j>0||j>=f.width*f.height||j>=V.width*V.height})},isNodeIntersecting:(A,O,P=!0)=>{let V=yK(A)?A:T(A);if(!V)return!1;let v=EJ(V,O);return P&&v>0||v>=O.width*O.height||v>=V.width*V.height},updateNode:R,updateNodeData:(A,O,P={replace:!1})=>{R(A,(N)=>{let V=typeof O==="function"?O(N):O;return P.replace?{...N,data:V}:{...N,data:{...N.data,...V}}},P)},updateEdge:M,updateEdgeData:(A,O,P={replace:!1})=>{M(A,(N)=>{let V=typeof O==="function"?O(N):O;return P.replace?{...N,data:V}:{...N,data:{...N.data,...V}}},P)},getNodesBounds:(A)=>{let{nodeLookup:O,nodeOrigin:P}=U.getState();return vK(A,{nodeLookup:O,nodeOrigin:P})},getHandleConnections:({type:A,id:O,nodeId:P})=>Array.from(U.getState().connectionLookup.get(`${P}-${A}${O?`-${O}`:""}`)?.values()??[]),getNodeConnections:({type:A,handleId:O,nodeId:P})=>Array.from(U.getState().connectionLookup.get(`${P}${A?O?`-${A}-${O}`:`-${A}`:""}`)?.values()??[]),fitView:async(A)=>{let O=U.getState().fitViewResolver??tM();return U.setState({fitViewQueued:!0,fitViewOptions:A,fitViewResolver:O}),Z.nodeQueue.push((P)=>[...P]),O.promise}}},[]);return z1.useMemo(()=>{return{...H,...Q,viewportInitialized:K}},[K])}var lT=(Q)=>Q.selected,nS=typeof window<"u"?window:void 0;function eS({deleteKeyCode:Q,multiSelectionKeyCode:U}){let Z=x0(),{deleteElements:K}=gJ(),H=mJ(Q,{actInsideInputWithModifier:!1}),Y=mJ(U,{target:nS});z1.useEffect(()=>{if(H){let{edges:W,nodes:L}=Z.getState();K({nodes:L.filter(lT),edges:W.filter(lT)}),Z.setState({nodesSelectionActive:!1})}},[H]),z1.useEffect(()=>{Z.setState({multiSelectionActive:Y})},[Y])}function _v(Q){let U=x0();z1.useEffect(()=>{let Z=()=>{if(!Q.current||!(Q.current.checkVisibility?.()??!0))return!1;let K=dq(Q.current);if(K.height===0||K.width===0)U.getState().onError?.("004",n2.error004());U.setState({width:K.width||500,height:K.height||500})};if(Q.current){Z(),window.addEventListener("resize",Z);let K=new ResizeObserver(()=>Z());return K.observe(Q.current),()=>{if(window.removeEventListener("resize",Z),K&&Q.current)K.unobserve(Q.current)}}},[])}var GU={position:"absolute",width:"100%",height:"100%",top:0,left:0},Jv=(Q)=>({userSelectionActive:Q.userSelectionActive,lib:Q.lib,connectionInProgress:Q.connection.inProgress});function $v({onPaneContextMenu:Q,zoomOnScroll:U=!0,zoomOnPinch:Z=!0,panOnScroll:K=!1,panActivationKeyPressed:H,panOnScrollSpeed:Y=0.5,panOnScrollMode:W=j3.Free,zoomOnDoubleClick:L=!0,panOnDrag:T=!0,defaultViewport:R,translateExtent:M,minZoom:A,maxZoom:O,zoomActivationKeyCode:P,preventScrolling:N=!0,children:V,noWheelClassName:v,noPanClassName:C,onViewportChange:u,isControlledViewport:f,paneClickDistance:j,selectionOnDrag:D}){let h=x0(),E=z1.useRef(null),{userSelectionActive:b,lib:k,connectionInProgress:x}=H0(Jv,h0),$1=mJ(P),Q1=z1.useRef();_v(E);let J1=z1.useCallback((m)=>{if(u?.({x:m[0],y:m[1],zoom:m[2]}),!f)h.setState({transform:m})},[u,f]);return z1.useEffect(()=>{if(E.current){Q1.current=TT({domNode:E.current,minZoom:A,maxZoom:O,translateExtent:M,viewport:R,onDraggingChange:(a)=>h.setState((i)=>i.paneDragging===a?i:{paneDragging:a}),onPanZoomStart:(a,i)=>{let{onViewportChangeStart:o,onMoveStart:y}=h.getState();y?.(a,i),o?.(i)},onPanZoom:(a,i)=>{let{onViewportChange:o,onMove:y}=h.getState();y?.(a,i),o?.(i)},onPanZoomEnd:(a,i)=>{let{onViewportChangeEnd:o,onMoveEnd:y}=h.getState();y?.(a,i),o?.(i)}});let{x:m,y:p,zoom:c}=Q1.current.getViewport();return h.setState({panZoom:Q1.current,transform:[m,p,c],domNode:E.current.closest(".react-flow")}),()=>{Q1.current?.destroy()}}},[]),z1.useEffect(()=>{Q1.current?.update({onPaneContextMenu:Q,zoomOnScroll:U,zoomOnPinch:Z,panOnScroll:K,panActivationKeyPressed:H,panOnScrollSpeed:Y,panOnScrollMode:W,zoomOnDoubleClick:L,panOnDrag:T,zoomActivationKeyPressed:$1,preventScrolling:N,noPanClassName:C,userSelectionActive:b,noWheelClassName:v,lib:k,onTransformChange:J1,connectionInProgress:x,selectionOnDrag:D,paneClickDistance:j})},[Q,U,Z,K,H,Y,W,L,T,$1,N,C,b,v,k,J1,x,D,j]),H1.jsx("div",{className:"react-flow__renderer",ref:E,style:GU,children:V})}var Qv=(Q)=>({userSelectionActive:Q.userSelectionActive,userSelectionRect:Q.userSelectionRect});function qv(){let{userSelectionActive:Q,userSelectionRect:U}=H0(Qv,h0);if(!(Q&&U))return null;return H1.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 aK=(Q,U)=>{return(Z)=>{if(Z.target!==U.current)return;Q?.(Z)}},Uv=(Q)=>({userSelectionActive:Q.userSelectionActive,elementsSelectable:Q.elementsSelectable,dragging:Q.paneDragging,panBy:Q.panBy,autoPanSpeed:Q.autoPanSpeed});function Gv({isSelecting:Q,selectionKeyPressed:U,selectionMode:Z=x8.Full,panOnDrag:K,autoPanOnSelection:H,paneClickDistance:Y,selectionOnDrag:W,onSelectionStart:L,onSelectionEnd:T,onPaneClick:R,onPaneContextMenu:M,onPaneScroll:A,onPaneMouseEnter:O,onPaneMouseMove:P,onPaneMouseLeave:N,children:V}){let v=z1.useRef(0),C=x0(),{userSelectionActive:u,elementsSelectable:f,dragging:j,panBy:D,autoPanSpeed:h}=H0(Uv,h0),E=f&&(Q||u),b=z1.useRef(null),k=z1.useRef(),x=z1.useRef(new Set),$1=z1.useRef(new Set),Q1=z1.useRef(!1),J1=z1.useRef(!1),m=z1.useRef({x:0,y:0}),p=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(K)&&K?.includes(2)){U1.preventDefault();return}M?.(U1)},i=A?(U1)=>A(U1):void 0,o=(U1)=>{if(J1.current)U1.stopPropagation(),J1.current=!1},y=(U1)=>{if(U1.pointerType==="touch"&&K!==!1&&!U)return;let{domNode:P1,transform:v1}=C.getState();if(k.current=P1?.getBoundingClientRect(),!k.current)return;let A1=U1.target===b.current;if(!A1&&!!U1.target.closest(".nokey")||!Q||!(W&&A1||U)||U1.button!==0||!U1.isPrimary)return;U1.target?.setPointerCapture?.(U1.pointerId),J1.current=!1;let{x:g1,y:h1}=l5(U1.nativeEvent,k.current),M1=M9({x:g1,y:h1},v1);if(C.setState({userSelectionRect:{width:0,height:0,startX:M1.x,startY:M1.y,x:g1,y:h1}}),!A1)U1.stopPropagation(),U1.preventDefault()};function g(U1,P1){let{userSelectionRect:v1}=C.getState();if(!v1)return;let{transform:A1,nodeLookup:k1,edgeLookup:D1,connectionLookup:g1,triggerNodeChanges:h1,triggerEdgeChanges:M1,defaultEdgeOptions:r1}=C.getState(),u1={x:v1.startX,y:v1.startY},{x:D0,y:o1}=g8(u1,A1),X2={startX:u1.x,startY:u1.y,x:U1<D0?U1:D0,y:P1<o1?P1:o1,width:Math.abs(U1-D0),height:Math.abs(P1-o1)},K2=x.current,N2=$1.current;x.current=new Set(pq(k1,X2,A1,Z===x8.Partial,!0).map((C2)=>C2.id)),$1.current=new Set;let A2=r1?.selectable??!0;for(let C2 of x.current){let M2=g1.get(C2);if(!M2)continue;for(let{edgeId:H2}of M2.values()){let _2=D1.get(H2);if(_2&&(_2.selectable??A2))$1.current.add(H2)}}if(!bK(K2,x.current)){let C2=R9(k1,x.current,!0);h1(C2)}if(!bK(N2,$1.current)){let C2=R9(D1,$1.current);M1(C2)}C.setState({userSelectionRect:X2,userSelectionActive:!0,nodesSelectionActive:!1})}function q1(){if(!H||!k.current)return;let[U1,P1]=cq(m.current,k.current,h);D({x:U1,y:P1}).then((v1)=>{if(!J1.current||!v1){v.current=requestAnimationFrame(q1);return}let{x:A1,y:k1}=m.current;g(A1,k1),v.current=requestAnimationFrame(q1)})}let t=()=>{cancelAnimationFrame(v.current),v.current=0,p.current=!1};z1.useEffect(()=>{return()=>t()},[]);let W1=(U1)=>{let{userSelectionRect:P1,transform:v1,resetSelectedElements:A1}=C.getState();if(!k.current||!P1)return;let{x:k1,y:D1}=l5(U1.nativeEvent,k.current);m.current={x:k1,y:D1};let g1=g8({x:P1.startX,y:P1.startY},v1);if(!J1.current){let h1=U?0:Y;if(Math.hypot(k1-g1.x,D1-g1.y)<=h1)return;A1(),L?.(U1)}if(J1.current=!0,!p.current)q1(),p.current=!0;g(k1,D1)},T1=(U1)=>{if(!E){if(U1.target===b.current&&C.getState().connection.inProgress)Q1.current=!0;return}if(U1.button!==0)return;if(U1.target?.releasePointerCapture?.(U1.pointerId),!u&&U1.target===b.current&&C.getState().userSelectionRect)c?.(U1);if(C.setState({userSelectionActive:!1,userSelectionRect:null}),J1.current)T?.(U1),C.setState({nodesSelectionActive:x.current.size>0});t()},O1=(U1)=>{U1.target?.releasePointerCapture?.(U1.pointerId),t()},L1=K===!0||Array.isArray(K)&&K.includes(0);return H1.jsxs("div",{className:d0(["react-flow__pane",{draggable:L1,dragging:j,selection:Q}]),onClick:E?void 0:aK(c,b),onContextMenu:aK(a,b),onWheel:aK(i,b),onPointerEnter:E?void 0:O,onPointerMove:E?W1:P,onPointerUp:T1,onPointerCancel:E?O1:void 0,onPointerDownCapture:E?y:void 0,onClickCapture:E?o:void 0,onPointerLeave:N,ref:b,style:GU,children:[V,H1.jsx(qv,{})]})}function tK({id:Q,store:U,unselect:Z=!1,nodeRef:K}){let{addSelectedNodes:H,unselectNodesAndEdges:Y,multiSelectionActive:W,nodeLookup:L,onError:T}=U.getState(),R=L.get(Q);if(!R){T?.("012",n2.error012(Q));return}if(U.setState({nodesSelectionActive:!1}),!R.selected)H([Q]);else if(Z||R.selected&&W)Y({nodes:[R],edges:[]}),requestAnimationFrame(()=>K?.current?.blur())}function LR({nodeRef:Q,disabled:U=!1,noDragClassName:Z,handleSelector:K,nodeId:H,isSelectable:Y,nodeClickDistance:W}){let L=x0(),[T,R]=z1.useState(!1),M=z1.useRef();return z1.useEffect(()=>{if(U)return;return M.current=HT({getStoreItems:()=>L.getState(),onNodeMouseDown:(A)=>{tK({id:A,store:L,nodeRef:Q})},onDragStart:()=>{R(!0)},onDragStop:()=>{R(!1)}}),()=>{M.current?.destroy(),M.current=void 0}},[U,L,Q]),z1.useEffect(()=>{if(U||!Q.current||!M.current)return;M.current.update({noDragClassName:Z,handleSelector:K,domNode:Q.current,isSelectable:Y,nodeId:H,nodeClickDistance:W})},[Z,K,U,Y,Q,H,W]),T}var Zv=(Q)=>(U)=>U.selected&&(U.draggable||Q&&typeof U.draggable>"u");function BR(){let Q=x0();return z1.useCallback((Z)=>{let{nodeExtent:K,snapToGrid:H,snapGrid:Y,nodesDraggable:W,onError:L,updateNodePositions:T,nodeLookup:R,nodeOrigin:M}=Q.getState(),A=new Map,O=Zv(W),P=H?Y[0]:5,N=H?Y[1]:5,V=Z.direction.x*P*Z.factor,v=Z.direction.y*N*Z.factor;for(let[,C]of R){if(!O(C))continue;let u={x:C.internals.positionAbsolute.x+V,y:C.internals.positionAbsolute.y+v};if(H)u=A9(u,Y);let{position:f,positionAbsolute:j}=jK({nodeId:C.id,nextPosition:u,nodeLookup:R,nodeExtent:K,nodeOrigin:M,onError:L});C.position=f,C.internals.positionAbsolute=j,A.set(C.id,C)}T(A)},[])}var oK=z1.createContext(null),Fv=oK.Provider;oK.Consumer;var nK=()=>{return z1.useContext(oK)},Xv=(Q)=>({connectOnClick:Q.connectOnClick,noPanClassName:Q.noPanClassName,rfId:Q.rfId}),AR=z1.createContext(null);function Kv({children:Q}){let U=H0(Xv,h0);return H1.jsx(AR.Provider,{value:U,children:Q})}function Hv(){let Q=z1.useContext(AR);if(!Q)throw Error("useHandleConfig must be used within a HandleConfigProvider");return Q}var Yv={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},zv=(Q,U,Z)=>(K)=>{let{connectionClickStartHandle:H,connectionMode:Y,connection:W}=K,{fromHandle:L,toHandle:T,isValid:R}=W;if(!L&&!H)return Yv;let M=T?.nodeId===Q&&T?.id===U&&T?.type===Z;return{connectingFrom:L?.nodeId===Q&&L?.id===U&&L?.type===Z,connectingTo:M,clickConnecting:H?.nodeId===Q&&H?.id===U&&H?.type===Z,isPossibleEndHandle:Y===u6.Strict?L?.type!==Z:Q!==L?.nodeId||U!==L?.id,connectionInProcess:!!L,clickConnectionInProcess:!!H,valid:M&&R}};function Wv({type:Q="source",position:U=b1.Top,isValidConnection:Z,isConnectable:K=!0,isConnectableStart:H=!0,isConnectableEnd:Y=!0,id:W,onConnect:L,children:T,className:R,onMouseDown:M,onTouchStart:A,...O},P){let N=W||null,V=Q==="target",v=x0(),C=nK(),{connectOnClick:u,noPanClassName:f,rfId:j}=Hv(),{connectingFrom:D,connectingTo:h,clickConnecting:E,isPossibleEndHandle:b,connectionInProcess:k,clickConnectionInProcess:x,valid:$1}=H0(zv(C,N,Q),h0);if(!C)v.getState().onError?.("010",n2.error010());let Q1=(p)=>{let{defaultEdgeOptions:c,onConnect:a,hasDefaultEdges:i}=v.getState(),o={...c,...p};if(i){let{edges:y,setEdges:g,onError:q1}=v.getState();g(dS(o,y,{onError:q1}))}a?.(o),L?.(o)},J1=(p)=>{if(!C)return;let c=mK(p.nativeEvent);if(H&&(c&&p.button===0||!c)){let a=v.getState();eq.onPointerDown(p.nativeEvent,{handleDomNode:p.currentTarget,autoPanOnConnect:a.autoPanOnConnect,connectionMode:a.connectionMode,connectionRadius:a.connectionRadius,domNode:a.domNode,nodeLookup:a.nodeLookup,lib:a.lib,isTarget:V,handleId:N,nodeId:C,flowId:a.rfId,panBy:a.panBy,cancelConnection:a.cancelConnection,onConnectStart:a.onConnectStart,onConnectEnd:(...i)=>v.getState().onConnectEnd?.(...i),updateConnection:a.updateConnection,onConnect:Q1,isValidConnection:Z||((...i)=>v.getState().isValidConnection?.(...i)??!0),getTransform:()=>v.getState().transform,getFromHandle:()=>v.getState().connection.fromHandle,autoPanSpeed:a.autoPanSpeed,dragThreshold:a.connectionDragThreshold})}if(c)M?.(p);else A?.(p)},m=(p)=>{let{onClickConnectStart:c,onClickConnectEnd:a,connectionClickStartHandle:i,connectionMode:o,isValidConnection:y,lib:g,rfId:q1,nodeLookup:t,connection:W1}=v.getState();if(!C||!i&&!H)return;if(!i){c?.(p.nativeEvent,{nodeId:C,handleId:N,handleType:Q}),v.setState({connectionClickStartHandle:{nodeId:C,type:Q,id:N}});return}let T1=hK(p.target),O1=Z||y,{connection:L1,isValid:U1}=eq.isValid(p.nativeEvent,{handle:{nodeId:C,id:N,type:Q},connectionMode:o,fromNodeId:i.nodeId,fromHandleId:i.id||null,fromType:i.type,isValidConnection:O1,flowId:q1,doc:T1,lib:g,nodeLookup:t});if(U1&&L1)Q1(L1);let P1=structuredClone(W1);delete P1.inProgress,P1.toPosition=P1.toHandle?P1.toHandle.position:null,a?.(p,P1),v.setState({connectionClickStartHandle:null})};return H1.jsx("div",{"data-handleid":N,"data-nodeid":C,"data-handlepos":U,"data-id":`${j}-${C}-${N}-${Q}`,className:d0(["react-flow__handle",`react-flow__handle-${U}`,"nodrag",f,R,{source:!V,target:V,connectable:K,connectablestart:H,connectableend:Y,clickconnecting:E,connectingfrom:D,connectingto:h,valid:$1,connectionindicator:K&&(!k||b)&&(k||x?Y:H)}]),onMouseDown:J1,onTouchStart:J1,onClick:u?m:void 0,ref:P,...O,children:T})}var QU=z1.memo(YR(Wv));function Lv({data:Q,isConnectable:U,sourcePosition:Z=b1.Bottom}){return H1.jsxs(H1.Fragment,{children:[Q?.label,H1.jsx(QU,{type:"source",position:Z,isConnectable:U})]})}function Bv({data:Q,isConnectable:U,targetPosition:Z=b1.Top,sourcePosition:K=b1.Bottom}){return H1.jsxs(H1.Fragment,{children:[H1.jsx(QU,{type:"target",position:Z,isConnectable:U}),Q?.label,H1.jsx(QU,{type:"source",position:K,isConnectable:U})]})}function Av(){return null}function Mv({data:Q,isConnectable:U,targetPosition:Z=b1.Top}){return H1.jsxs(H1.Fragment,{children:[H1.jsx(QU,{type:"target",position:Z,isConnectable:U}),Q?.label]})}var qU={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},iT={input:Lv,default:Bv,output:Mv,group:Av};function Tv(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 Rv=(Q)=>{let{width:U,height:Z,x:K,y:H}=c8(Q.nodeLookup,{filter:(Y)=>!!Y.selected});return{width:c5(U)?U:null,height:c5(Z)?Z:null,userSelectionActive:Q.userSelectionActive,transformString:`translate(${Q.transform[0]}px,${Q.transform[1]}px) scale(${Q.transform[2]}) translate(${K}px,${H}px)`}};function Ov({onSelectionContextMenu:Q,noPanClassName:U,disableKeyboardA11y:Z}){let K=x0(),{width:H,height:Y,transformString:W,userSelectionActive:L}=H0(Rv,h0),T=BR(),R=z1.useRef(null);z1.useEffect(()=>{if(!Z)R.current?.focus({preventScroll:!0})},[Z]);let M=!L&&H!==null&&Y!==null;if(LR({nodeRef:R,disabled:!M}),!M)return null;let A=Q?(P)=>{let N=K.getState().nodes.filter((V)=>V.selected);Q(P,N)}:void 0,O=(P)=>{if(Object.prototype.hasOwnProperty.call(qU,P.key))P.preventDefault(),T({direction:qU[P.key],factor:P.shiftKey?4:1})};return H1.jsx("div",{className:d0(["react-flow__nodesselection","react-flow__container",U]),style:{transform:W},children:H1.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 dT=typeof window<"u"?window:void 0,Iv=(Q)=>{return{nodesSelectionActive:Q.nodesSelectionActive,userSelectionActive:Q.userSelectionActive}};function MR({children:Q,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:K,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:W,paneClickDistance:L,deleteKeyCode:T,selectionKeyCode:R,selectionOnDrag:M,selectionMode:A,onSelectionStart:O,onSelectionEnd:P,multiSelectionKeyCode:N,panActivationKeyCode:V,zoomActivationKeyCode:v,elementsSelectable:C,zoomOnScroll:u,zoomOnPinch:f,panOnScroll:j,panOnScrollSpeed:D,panOnScrollMode:h,zoomOnDoubleClick:E,panOnDrag:b,autoPanOnSelection:k,defaultViewport:x,translateExtent:$1,minZoom:Q1,maxZoom:J1,preventScrolling:m,onSelectionContextMenu:p,noWheelClassName:c,noPanClassName:a,disableKeyboardA11y:i,onViewportChange:o,isControlledViewport:y}){let{nodesSelectionActive:g,userSelectionActive:q1}=H0(Iv,h0),t=mJ(R,{target:dT}),W1=mJ(V,{target:dT}),T1=W1||b,O1=W1||j,L1=M&&T1!==!0,U1=t||q1||L1;return eS({deleteKeyCode:T,multiSelectionKeyCode:N}),H1.jsx($v,{onPaneContextMenu:Y,elementsSelectable:C,zoomOnScroll:u,zoomOnPinch:f,panOnScroll:O1,panActivationKeyPressed:W1,panOnScrollSpeed:D,panOnScrollMode:h,zoomOnDoubleClick:E,panOnDrag:!t&&T1,defaultViewport:x,translateExtent:$1,minZoom:Q1,maxZoom:J1,zoomActivationKeyCode:v,preventScrolling:m,noWheelClassName:c,noPanClassName:a,onViewportChange:o,isControlledViewport:y,paneClickDistance:L,selectionOnDrag:L1,children:H1.jsxs(Gv,{onSelectionStart:O,onSelectionEnd:P,onPaneClick:U,onPaneMouseEnter:Z,onPaneMouseMove:K,onPaneMouseLeave:H,onPaneContextMenu:Y,onPaneScroll:W,panOnDrag:T1,autoPanOnSelection:k,isSelecting:!!U1,selectionMode:A,selectionKeyPressed:t,paneClickDistance:L,selectionOnDrag:L1,children:[Q,g&&H1.jsx(Ov,{onSelectionContextMenu:p,noPanClassName:a,disableKeyboardA11y:i})]})})}MR.displayName="FlowRenderer";var wv=z1.memo(MR),Pv=(Q)=>(U)=>{return Q?pq(U.nodeLookup,{x:0,y:0,width:U.width,height:U.height},U.transform,!0).map((Z)=>Z.id):Array.from(U.nodeLookup.keys())};function Nv(Q){return H0(z1.useCallback(Pv(Q),[Q]),h0)}var Cv=(Q)=>Q.updateNodeInternals;function fv(){let Q=H0(Cv),[U]=z1.useState(()=>{if(typeof ResizeObserver>"u")return null;return new ResizeObserver((Z)=>{let K=new Map;Z.forEach((H)=>{let Y=H.target.getAttribute("data-id");K.set(Y,{id:Y,nodeElement:H.target,force:!0})}),Q(K)})});return z1.useEffect(()=>{return()=>{U?.disconnect()}},[U]),U}function Sv({node:Q,nodeType:U,hasDimensions:Z,resizeObserver:K}){let H=x0(),Y=z1.useRef(null),W=z1.useRef(null),L=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)K?.unobserve(W.current);K?.observe(Y.current),W.current=Y.current}},[M,Q.hidden]),z1.useEffect(()=>{return()=>{if(W.current)K?.unobserve(W.current),W.current=null}},[]),z1.useEffect(()=>{if(Y.current){let A=R.current!==U,O=L.current!==Q.sourcePosition,P=T.current!==Q.targetPosition;if(A||O||P)R.current=U,L.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 vv({id:Q,onClick:U,onMouseEnter:Z,onMouseMove:K,onMouseLeave:H,onContextMenu:Y,onDoubleClick:W,nodesDraggable:L,elementsSelectable:T,nodesConnectable:R,nodesFocusable:M,resizeObserver:A,noDragClassName:O,noPanClassName:P,disableKeyboardA11y:N,rfId:V,nodeTypes:v,nodeClickDistance:C,onError:u}){let{node:f,internals:j,isParent:D}=H0((U1)=>{let P1=U1.nodeLookup.get(Q),v1=U1.parentLookup.has(Q);return{node:P1,internals:P1.internals,isParent:v1}},h0),h=f.type||"default",E=v?.[h]||iT[h];if(E===void 0)u?.("003",n2.error003(h)),h="default",E=v?.default||iT.default;let b=!!(f.draggable||L&&typeof f.draggable>"u"),k=!!(f.selectable||T&&typeof f.selectable>"u"),x=!!(f.connectable||R&&typeof f.connectable>"u"),$1=!!(f.focusable||M&&typeof f.focusable>"u"),Q1=x0(),J1=DK(f),m=Sv({node:f,nodeType:h,hasDimensions:J1,resizeObserver:A}),p=LR({nodeRef:m,disabled:f.hidden||!b,noDragClassName:O,handleSelector:f.dragHandle,nodeId:Q,isSelectable:k,nodeClickDistance:C}),c=BR();if(f.hidden)return null;let a=i5(f),i=Tv(f),o=k||b||U||Z||K||H,y=Z?(U1)=>Z(U1,{...j.userNode}):void 0,g=K?(U1)=>K(U1,{...j.userNode}):void 0,q1=H?(U1)=>H(U1,{...j.userNode}):void 0,t=Y?(U1)=>Y(U1,{...j.userNode}):void 0,W1=W?(U1)=>W(U1,{...j.userNode}):void 0,T1=(U1)=>{let{selectNodesOnDrag:P1,nodeDragThreshold:v1}=Q1.getState();if(k&&(!P1||!b||v1>0))tK({id:Q,store:Q1,nodeRef:m});if(U)U(U1,{...j.userNode})},O1=(U1)=>{if(xK(U1.nativeEvent)||N)return;if(PK.includes(U1.key)&&k){let P1=U1.key==="Escape";tK({id:Q,store:Q1,unselect:P1,nodeRef:m})}else if(b&&f.selected&&Object.prototype.hasOwnProperty.call(qU,U1.key)){U1.preventDefault();let{ariaLabelConfig:P1}=Q1.getState();Q1.setState({ariaLiveMessage:P1["node.a11yDescription.ariaLiveMessage"]({direction:U1.key.replace("Arrow","").toLowerCase(),x:~~j.positionAbsolute.x,y:~~j.positionAbsolute.y})}),c({direction:qU[U1.key],factor:U1.shiftKey?4:1})}},L1=()=>{if(N||!m.current?.matches(":focus-visible"))return;let{transform:U1,width:P1,height:v1,autoPanOnNodeFocus:A1,setCenter:k1}=Q1.getState();if(!A1)return;if(!(pq(new Map([[Q,f]]),{x:0,y:0,width:P1,height:v1},U1,!0).length>0))k1(f.position.x+a.width/2,f.position.y+a.height/2,{zoom:U1[2]})};return H1.jsx("div",{className:d0(["react-flow__node",`react-flow__node-${h}`,{[P]:b},f.className,{selected:f.selected,selectable:k,parent:D,draggable:b,dragging:p}]),ref:m,style:{zIndex:j.z,transform:`translate(${j.positionAbsolute.x}px,${j.positionAbsolute.y}px)`,pointerEvents:o?"all":"none",visibility:J1?"visible":"hidden",...f.style,...i},"data-id":Q,"data-testid":`rf__node-${Q}`,onMouseEnter:y,onMouseMove:g,onMouseLeave:q1,onContextMenu:t,onClick:T1,onDoubleClick:W1,onKeyDown:$1?O1:void 0,tabIndex:$1?0:void 0,onFocus:$1?L1:void 0,role:f.ariaRole??($1?"group":void 0),"aria-roledescription":"node","aria-describedby":N?void 0:`${ZR}-${V}`,"aria-label":f.ariaLabel,...f.domAttributes,children:H1.jsx(Fv,{value:Q,children:H1.jsx(E,{id:Q,data:f.data,type:h,positionAbsoluteX:j.positionAbsolute.x,positionAbsoluteY:j.positionAbsolute.y,selected:f.selected??!1,selectable:k,draggable:b,deletable:f.deletable??!0,isConnectable:x,sourcePosition:f.sourcePosition,targetPosition:f.targetPosition,dragging:p,dragHandle:f.dragHandle,zIndex:j.z,parentId:f.parentId,...a})})})}var jv=z1.memo(vv),Vv=(Q)=>({nodesConnectable:Q.nodesConnectable,nodesFocusable:Q.nodesFocusable,elementsSelectable:Q.elementsSelectable,onError:Q.onError});function TR(Q){let{nodesConnectable:U,nodesFocusable:Z,elementsSelectable:K,onError:H}=H0(Vv,h0),Y=Nv(Q.onlyRenderVisibleElements),W=fv();return H1.jsx("div",{className:"react-flow__nodes",style:GU,children:Y.map((L)=>{return H1.jsx(jv,{id:L,nodeTypes:Q.nodeTypes,nodeExtent:Q.nodeExtent,onClick:Q.onNodeClick,onMouseEnter:Q.onNodeMouseEnter,onMouseMove:Q.onNodeMouseMove,onMouseLeave:Q.onNodeMouseLeave,onContextMenu:Q.onNodeContextMenu,onDoubleClick:Q.onNodeDoubleClick,noDragClassName:Q.noDragClassName,noPanClassName:Q.noPanClassName,rfId:Q.rfId,disableKeyboardA11y:Q.disableKeyboardA11y,resizeObserver:W,nodesDraggable:Q.nodesDraggable??!0,nodesConnectable:U,nodesFocusable:Z,elementsSelectable:K,nodeClickDistance:Q.nodeClickDistance,onError:H},L)})})}TR.displayName="NodeRenderer";var yv=z1.memo(TR);function kv(Q){return H0(z1.useCallback((Z)=>{if(!Q)return Z.edges.map((H)=>H.id);let K=[];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&&_T({sourceNode:Y,targetNode:W,width:Z.width,height:Z.height,transform:Z.transform}))K.push(H.id)}return K},[Q]),h0)}var Dv=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q}};return H1.jsx("polyline",{className:"arrow",style:Z,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},uv=({color:Q="none",strokeWidth:U=1})=>{let Z={strokeWidth:U,...Q&&{stroke:Q,fill:Q}};return H1.jsx("polyline",{className:"arrowclosed",style:Z,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},rT={[z9.Arrow]:Dv,[z9.ArrowClosed]:uv};function bv(Q){let U=x0();return z1.useMemo(()=>{if(!Object.prototype.hasOwnProperty.call(rT,Q))return U.getState().onError?.("009",n2.error009(Q)),null;return rT[Q]},[Q])}var Ev=({id:Q,type:U,color:Z,width:K=12.5,height:H=12.5,markerUnits:Y="strokeWidth",strokeWidth:W,orient:L="auto-start-reverse"})=>{let T=bv(U);if(!T)return null;return H1.jsx("marker",{className:"react-flow__arrowhead",id:Q,markerWidth:`${K}`,markerHeight:`${H}`,viewBox:"-10 -10 20 20",markerUnits:Y,orient:L,refX:"0",refY:"0",children:H1.jsx(T,{color:Z,strokeWidth:W})})},RR=({defaultColor:Q,rfId:U})=>{let Z=H0((Y)=>Y.edges),K=H0((Y)=>Y.defaultEdgeOptions),H=z1.useMemo(()=>{return QT(Z,{id:U,defaultColor:Q,defaultMarkerStart:K?.markerStart,defaultMarkerEnd:K?.markerEnd})},[Z,K,U,Q]);if(!H.length)return null;return H1.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:H1.jsx("defs",{children:H.map((Y)=>H1.jsx(Ev,{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))})})};RR.displayName="MarkerDefinitions";var hv=z1.memo(RR);function OR({x:Q,y:U,label:Z,labelStyle:K,labelShowBg:H=!0,labelBgStyle:Y,labelBgPadding:W=[2,4],labelBgBorderRadius:L=2,children:T,className:R,...M}){let[A,O]=z1.useState({x:1,y:0,width:0,height:0}),P=d0(["react-flow__edge-textwrapper",R]),N=z1.useRef(null);if(z1.useEffect(()=>{if(N.current){let V=N.current.getBBox();O({x:V.x,y:V.y,width:V.width,height:V.height})}},[Z]),!Z)return null;return H1.jsxs("g",{transform:`translate(${Q-A.width/2} ${U-A.height/2})`,className:P,visibility:A.width?"visible":"hidden",...M,children:[H&&H1.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:L,ry:L}),H1.jsx("text",{className:"react-flow__edge-text",y:A.height/2,dy:"0.3em",ref:N,style:K,children:Z}),T]})}OR.displayName="EdgeText";var xv=z1.memo(OR);function ZU({path:Q,labelX:U,labelY:Z,label:K,labelStyle:H,labelShowBg:Y,labelBgStyle:W,labelBgPadding:L,labelBgBorderRadius:T,interactionWidth:R=20,...M}){return H1.jsxs(H1.Fragment,{children:[H1.jsx("path",{...M,d:Q,fill:"none",className:d0(["react-flow__edge-path",M.className])}),R?H1.jsx("path",{d:Q,fill:"none",strokeOpacity:0,strokeWidth:R,className:"react-flow__edge-interaction"}):null,K&&c5(U)&&c5(Z)?H1.jsx(xv,{x:U,y:Z,label:K,labelStyle:H,labelShowBg:Y,labelBgStyle:W,labelBgPadding:L,labelBgBorderRadius:T}):null]})}function aT({pos:Q,x1:U,y1:Z,x2:K,y2:H}){if(Q===b1.Left||Q===b1.Right)return[0.5*(U+K),Z];return[U,0.5*(Z+H)]}function IR({sourceX:Q,sourceY:U,sourcePosition:Z=b1.Bottom,targetX:K,targetY:H,targetPosition:Y=b1.Top}){let[W,L]=aT({pos:Z,x1:Q,y1:U,x2:K,y2:H}),[T,R]=aT({pos:Y,x1:K,y1:H,x2:Q,y2:U}),[M,A,O,P]=rq({sourceX:Q,sourceY:U,targetX:K,targetY:H,sourceControlX:W,sourceControlY:L,targetControlX:T,targetControlY:R});return[`M${Q},${U} C${W},${L} ${T},${R} ${K},${H}`,M,A,O,P]}function wR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,sourcePosition:W,targetPosition:L,label:T,labelStyle:R,labelShowBg:M,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:P,style:N,markerEnd:V,markerStart:v,interactionWidth:C})=>{let[u,f,j]=IR({sourceX:Z,sourceY:K,sourcePosition:W,targetX:H,targetY:Y,targetPosition:L}),D=Q.isInternal?void 0:U;return H1.jsx(ZU,{id:D,path:u,labelX:f,labelY:j,label:T,labelStyle:R,labelShowBg:M,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:P,style:N,markerEnd:V,markerStart:v,interactionWidth:C})})}var mv=wR({isInternal:!1}),PR=wR({isInternal:!0});mv.displayName="SimpleBezierEdge";PR.displayName="SimpleBezierEdgeInternal";function NR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,label:W,labelStyle:L,labelShowBg:T,labelBgStyle:R,labelBgPadding:M,labelBgBorderRadius:A,style:O,sourcePosition:P=b1.Bottom,targetPosition:N=b1.Top,markerEnd:V,markerStart:v,pathOptions:C,interactionWidth:u})=>{let[f,j,D]=xJ({sourceX:Z,sourceY:K,sourcePosition:P,targetX:H,targetY:Y,targetPosition:N,borderRadius:C?.borderRadius,offset:C?.offset,stepPosition:C?.stepPosition}),h=Q.isInternal?void 0:U;return H1.jsx(ZU,{id:h,path:f,labelX:j,labelY:D,label:W,labelStyle:L,labelShowBg:T,labelBgStyle:R,labelBgPadding:M,labelBgBorderRadius:A,style:O,markerEnd:V,markerStart:v,interactionWidth:u})})}var CR=NR({isInternal:!1}),fR=NR({isInternal:!0});CR.displayName="SmoothStepEdge";fR.displayName="SmoothStepEdgeInternal";function SR(Q){return z1.memo(({id:U,...Z})=>{let K=Q.isInternal?void 0:U;return H1.jsx(CR,{...Z,id:K,pathOptions:z1.useMemo(()=>({borderRadius:0,offset:Z.pathOptions?.offset}),[Z.pathOptions?.offset])})})}var gv=SR({isInternal:!1}),vR=SR({isInternal:!0});gv.displayName="StepEdge";vR.displayName="StepEdgeInternal";function jR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,label:W,labelStyle:L,labelShowBg:T,labelBgStyle:R,labelBgPadding:M,labelBgBorderRadius:A,style:O,markerEnd:P,markerStart:N,interactionWidth:V})=>{let[v,C,u]=sq({sourceX:Z,sourceY:K,targetX:H,targetY:Y}),f=Q.isInternal?void 0:U;return H1.jsx(ZU,{id:f,path:v,labelX:C,labelY:u,label:W,labelStyle:L,labelShowBg:T,labelBgStyle:R,labelBgPadding:M,labelBgBorderRadius:A,style:O,markerEnd:P,markerStart:N,interactionWidth:V})})}var pv=jR({isInternal:!1}),VR=jR({isInternal:!0});pv.displayName="StraightEdge";VR.displayName="StraightEdgeInternal";function yR(Q){return z1.memo(({id:U,sourceX:Z,sourceY:K,targetX:H,targetY:Y,sourcePosition:W=b1.Bottom,targetPosition:L=b1.Top,label:T,labelStyle:R,labelShowBg:M,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:P,style:N,markerEnd:V,markerStart:v,pathOptions:C,interactionWidth:u})=>{let[f,j,D]=aq({sourceX:Z,sourceY:K,sourcePosition:W,targetX:H,targetY:Y,targetPosition:L,curvature:C?.curvature}),h=Q.isInternal?void 0:U;return H1.jsx(ZU,{id:h,path:f,labelX:j,labelY:D,label:T,labelStyle:R,labelShowBg:M,labelBgStyle:A,labelBgPadding:O,labelBgBorderRadius:P,style:N,markerEnd:V,markerStart:v,interactionWidth:u})})}var cv=yR({isInternal:!1}),kR=yR({isInternal:!0});cv.displayName="BezierEdge";kR.displayName="BezierEdgeInternal";var sT={default:kR,straight:VR,step:vR,smoothstep:fR,simplebezier:PR},tT={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},lv=(Q,U,Z)=>{if(Z===b1.Left)return Q-U;if(Z===b1.Right)return Q+U;return Q},iv=(Q,U,Z)=>{if(Z===b1.Top)return Q-U;if(Z===b1.Bottom)return Q+U;return Q},oT="react-flow__edgeupdater";function nT({position:Q,centerX:U,centerY:Z,radius:K=10,onMouseDown:H,onMouseEnter:Y,onMouseOut:W,type:L}){return H1.jsx("circle",{onMouseDown:H,onMouseEnter:Y,onMouseOut:W,className:d0([oT,`${oT}-${L}`]),cx:lv(U,K,Q),cy:iv(Z,K,Q),r:K,stroke:"transparent",fill:"transparent"})}function dv({isReconnectable:Q,reconnectRadius:U,edge:Z,sourceX:K,sourceY:H,targetX:Y,targetY:W,sourcePosition:L,targetPosition:T,onReconnect:R,onReconnectStart:M,onReconnectEnd:A,setReconnecting:O,setUpdateHover:P}){let N=x0(),V=(j,D)=>{if(j.button!==0)return;let{autoPanOnConnect:h,domNode:E,connectionMode:b,connectionRadius:k,lib:x,onConnectStart:$1,cancelConnection:Q1,nodeLookup:J1,rfId:m,panBy:p,updateConnection:c}=N.getState(),a=D.type==="target",i=(g,q1)=>{O(!1),A?.(g,Z,D.type,q1)},o=(g)=>R?.(Z,g),y=(g,q1)=>{O(!0),M?.(j,Z,D.type),$1?.(g,q1)};eq.onPointerDown(j.nativeEvent,{autoPanOnConnect:h,connectionMode:b,connectionRadius:k,domNode:E,handleId:D.id,nodeId:D.nodeId,nodeLookup:J1,isTarget:a,edgeUpdaterType:D.type,lib:x,flowId:m,cancelConnection:Q1,panBy:p,isValidConnection:(...g)=>N.getState().isValidConnection?.(...g)??!0,onConnect:o,onConnectStart:y,onConnectEnd:(...g)=>N.getState().onConnectEnd?.(...g),onReconnectEnd:i,updateConnection:c,getTransform:()=>N.getState().transform,getFromHandle:()=>N.getState().connection.fromHandle,dragThreshold:N.getState().connectionDragThreshold,handleDomNode:j.currentTarget})},v=(j)=>V(j,{nodeId:Z.target,id:Z.targetHandle??null,type:"target"}),C=(j)=>V(j,{nodeId:Z.source,id:Z.sourceHandle??null,type:"source"}),u=()=>P(!0),f=()=>P(!1);return H1.jsxs(H1.Fragment,{children:[(Q===!0||Q==="source")&&H1.jsx(nT,{position:L,centerX:K,centerY:H,radius:U,onMouseDown:v,onMouseEnter:u,onMouseOut:f,type:"source"}),(Q===!0||Q==="target")&&H1.jsx(nT,{position:T,centerX:Y,centerY:W,radius:U,onMouseDown:C,onMouseEnter:u,onMouseOut:f,type:"target"})]})}function rv({id:Q,edgesFocusable:U,edgesReconnectable:Z,elementsSelectable:K,onClick:H,onDoubleClick:Y,onContextMenu:W,onMouseEnter:L,onMouseMove:T,onMouseLeave:R,reconnectRadius:M,onReconnect:A,onReconnectStart:O,onReconnectEnd:P,rfId:N,edgeTypes:V,noPanClassName:v,onError:C,disableKeyboardA11y:u}){let f=H0((k1)=>k1.edgeLookup.get(Q)),j=H0((k1)=>k1.defaultEdgeOptions);f=j?{...j,...f}:f;let D=f.type||"default",h=V?.[D]||sT[D];if(h===void 0)C?.("011",n2.error011(D)),D="default",h=V?.default||sT.default;let E=!!(f.focusable||U&&typeof f.focusable>"u"),b=typeof A<"u"&&(f.reconnectable||Z&&typeof f.reconnectable>"u"),k=!!(f.selectable||K&&typeof f.selectable>"u"),x=z1.useRef(null),[$1,Q1]=z1.useState(!1),[J1,m]=z1.useState(!1),p=x0(),{zIndex:c=f.zIndex,sourceX:a,sourceY:i,targetX:o,targetY:y,sourcePosition:g,targetPosition:q1}=H0(z1.useCallback((k1)=>{let D1=k1.nodeLookup.get(f.source),g1=k1.nodeLookup.get(f.target);if(!D1||!g1)return tT;let h1=$T({id:Q,sourceNode:D1,targetNode:g1,sourceHandle:f.sourceHandle||null,targetHandle:f.targetHandle||null,connectionMode:k1.connectionMode,onError:C}),M1=eM({selected:f.selected,zIndex:f.zIndex,sourceNode:D1,targetNode:g1,elevateOnSelect:k1.elevateEdgesOnSelect,zIndexMode:k1.zIndexMode});return{...h1||tT,zIndex:M1}},[f.source,f.target,f.sourceHandle,f.targetHandle,f.selected,f.zIndex,C]),h0),t=z1.useMemo(()=>f.markerStart?`url('#${tq(f.markerStart,N)}')`:void 0,[f.markerStart,N]),W1=z1.useMemo(()=>f.markerEnd?`url('#${tq(f.markerEnd,N)}')`:void 0,[f.markerEnd,N]);if(f.hidden||a===null||i===null||o===null||y===null)return null;let T1=(k1)=>{let{addSelectedEdges:D1,unselectNodesAndEdges:g1,multiSelectionActive:h1}=p.getState();if(k)if(p.setState({nodesSelectionActive:!1}),f.selected&&h1)g1({nodes:[],edges:[f]}),x.current?.blur();else D1([Q]);if(H)H(k1,f)},O1=Y?(k1)=>{Y(k1,{...f})}:void 0,L1=W?(k1)=>{W(k1,{...f})}:void 0,U1=L?(k1)=>{L(k1,{...f})}:void 0,P1=T?(k1)=>{T(k1,{...f})}:void 0,v1=R?(k1)=>{R(k1,{...f})}:void 0,A1=(k1)=>{if(!u&&PK.includes(k1.key)&&k){let{unselectNodesAndEdges:D1,addSelectedEdges:g1}=p.getState();if(k1.key==="Escape")x.current?.blur(),D1({edges:[f]});else g1([Q])}};return H1.jsx("svg",{style:{zIndex:c},children:H1.jsxs("g",{className:d0(["react-flow__edge",`react-flow__edge-${D}`,f.className,v,{selected:f.selected,animated:f.animated,inactive:!k&&!H,updating:$1,selectable:k}]),onClick:T1,onDoubleClick:O1,onContextMenu:L1,onMouseEnter:U1,onMouseMove:P1,onMouseLeave:v1,onKeyDown:E?A1:void 0,tabIndex:E?0:void 0,role:f.ariaRole??(E?"group":"img"),"aria-roledescription":"edge","data-id":Q,"data-testid":`rf__edge-${Q}`,"aria-label":f.ariaLabel===null?void 0:f.ariaLabel||`Edge from ${f.source} to ${f.target}`,"aria-describedby":E?`${FR}-${N}`:void 0,ref:x,...f.domAttributes,children:[!J1&&H1.jsx(h,{id:Q,source:f.source,target:f.target,type:f.type,selected:f.selected,animated:f.animated,selectable:k,deletable:f.deletable??!0,label:f.label,labelStyle:f.labelStyle,labelShowBg:f.labelShowBg,labelBgStyle:f.labelBgStyle,labelBgPadding:f.labelBgPadding,labelBgBorderRadius:f.labelBgBorderRadius,sourceX:a,sourceY:i,targetX:o,targetY:y,sourcePosition:g,targetPosition:q1,data:f.data,style:f.style,sourceHandleId:f.sourceHandle,targetHandleId:f.targetHandle,markerStart:t,markerEnd:W1,pathOptions:"pathOptions"in f?f.pathOptions:void 0,interactionWidth:f.interactionWidth}),b&&H1.jsx(dv,{edge:f,isReconnectable:b,reconnectRadius:M,onReconnect:A,onReconnectStart:O,onReconnectEnd:P,sourceX:a,sourceY:i,targetX:o,targetY:y,sourcePosition:g,targetPosition:q1,setUpdateHover:Q1,setReconnecting:m})]})})}var av=z1.memo(rv),sv=(Q)=>({edgesFocusable:Q.edgesFocusable,edgesReconnectable:Q.edgesReconnectable,elementsSelectable:Q.elementsSelectable,connectionMode:Q.connectionMode,onError:Q.onError});function DR({defaultMarkerColor:Q,onlyRenderVisibleElements:U,rfId:Z,edgeTypes:K,noPanClassName:H,onReconnect:Y,onEdgeContextMenu:W,onEdgeMouseEnter:L,onEdgeMouseMove:T,onEdgeMouseLeave:R,onEdgeClick:M,reconnectRadius:A,onEdgeDoubleClick:O,onReconnectStart:P,onReconnectEnd:N,disableKeyboardA11y:V}){let{edgesFocusable:v,edgesReconnectable:C,elementsSelectable:u,onError:f}=H0(sv,h0),j=kv(U);return H1.jsxs("div",{className:"react-flow__edges",children:[H1.jsx(hv,{defaultColor:Q,rfId:Z}),j.map((D)=>{return H1.jsx(av,{id:D,edgesFocusable:v,edgesReconnectable:C,elementsSelectable:u,noPanClassName:H,onReconnect:Y,onContextMenu:W,onMouseEnter:L,onMouseMove:T,onMouseLeave:R,onClick:M,reconnectRadius:A,onDoubleClick:O,onReconnectStart:P,onReconnectEnd:N,rfId:Z,onError:f,edgeTypes:K,disableKeyboardA11y:V},D)})]})}DR.displayName="EdgeRenderer";var tv=z1.memo(DR),eT=(Q)=>`translate(${Q[0]}px,${Q[1]}px) scale(${Q[2]})`;function ov({children:Q}){let U=x0(),Z=z1.useRef(null),[K]=z1.useState(()=>U.getState().transform);return zR(()=>{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=eT(W)};return Y(),U.subscribe(Y)},[U]),H1.jsx("div",{ref:Z,className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:eT(K)},children:Q})}function nv(Q){let U=gJ(),Z=z1.useRef(!1);z1.useEffect(()=>{if(!Z.current&&U.viewportInitialized&&Q)setTimeout(()=>Q(U),1),Z.current=!0},[Q,U.viewportInitialized])}var ev=(Q)=>Q.panZoom?.syncViewport;function _j(Q){let U=H0(ev),Z=x0();return z1.useEffect(()=>{if(Q)U?.(Q),Z.setState({transform:[Q.x,Q.y,Q.zoom]})},[Q,U]),null}function _R(Q){return Q.connection.inProgress?{...Q.connection,to:M9(Q.connection.to,Q.transform)}:{...Q.connection}}function Jj(Q){if(Q)return(Z)=>{let K=_R(Z);return Q(K)};return _R}function $j(Q){let U=Jj(Q);return H0(U,h0)}var Qj=(Q)=>({nodesConnectable:Q.nodesConnectable,isValid:Q.connection.isValid,inProgress:Q.connection.inProgress,width:Q.width,height:Q.height});function qj({containerStyle:Q,style:U,type:Z,component:K}){let{nodesConnectable:H,width:Y,height:W,isValid:L,inProgress:T}=H0(Qj,h0);if(!(Y&&H&&T))return null;return H1.jsx("svg",{style:Q,width:Y,height:W,className:"react-flow__connectionline react-flow__container",children:H1.jsx("g",{className:d0(["react-flow__connection",EK(L)]),children:H1.jsx(uR,{style:U,type:Z,CustomComponent:K,isValid:L})})})}var uR=({style:Q,type:U=r4.Bezier,CustomComponent:Z,isValid:K})=>{let{inProgress:H,from:Y,fromNode:W,fromHandle:L,fromPosition:T,to:R,toNode:M,toHandle:A,toPosition:O,pointer:P}=$j();if(!H)return;if(Z)return H1.jsx(Z,{connectionLineType:U,connectionLineStyle:Q,fromNode:W,fromHandle:L,fromX:Y.x,fromY:Y.y,toX:R.x,toY:R.y,fromPosition:T,toPosition:O,connectionStatus:EK(K),toNode:M,toHandle:A,pointer:P});let N="",V={sourceX:Y.x,sourceY:Y.y,sourcePosition:T,targetX:R.x,targetY:R.y,targetPosition:O};switch(U){case r4.Bezier:[N]=aq(V);break;case r4.SimpleBezier:[N]=IR(V);break;case r4.Step:[N]=xJ({...V,borderRadius:0});break;case r4.SmoothStep:[N]=xJ(V);break;default:[N]=sq(V)}return H1.jsx("path",{d:N,fill:"none",className:"react-flow__connection-path",style:Q})};uR.displayName="ConnectionLine";var Uj={};function JR(Q=Uj){let U=z1.useRef(Q),Z=x0();z1.useEffect(()=>{{let K=new Set([...Object.keys(U.current),...Object.keys(Q)]);for(let H of K)if(U.current[H]!==Q[H]){Z.getState().onError?.("002",n2.error002());break}U.current=Q}},[Q])}function Gj(){let Q=x0(),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",n2.error013("react"));U.current=!0}},[])}function bR({nodeTypes:Q,edgeTypes:U,onInit:Z,onNodeClick:K,onEdgeClick:H,onNodeDoubleClick:Y,onEdgeDoubleClick:W,onNodeMouseEnter:L,onNodeMouseMove:T,onNodeMouseLeave:R,onNodeContextMenu:M,onSelectionContextMenu:A,onSelectionStart:O,onSelectionEnd:P,connectionLineType:N,connectionLineStyle:V,connectionLineComponent:v,connectionLineContainerStyle:C,selectionKeyCode:u,selectionOnDrag:f,selectionMode:j,multiSelectionKeyCode:D,panActivationKeyCode:h,zoomActivationKeyCode:E,deleteKeyCode:b,onlyRenderVisibleElements:k,elementsSelectable:x,defaultViewport:$1,translateExtent:Q1,minZoom:J1,maxZoom:m,preventScrolling:p,defaultMarkerColor:c,zoomOnScroll:a,zoomOnPinch:i,panOnScroll:o,panOnScrollSpeed:y,panOnScrollMode:g,zoomOnDoubleClick:q1,panOnDrag:t,autoPanOnSelection:W1,onPaneClick:T1,onPaneMouseEnter:O1,onPaneMouseMove:L1,onPaneMouseLeave:U1,onPaneScroll:P1,onPaneContextMenu:v1,paneClickDistance:A1,nodeClickDistance:k1,onEdgeContextMenu:D1,onEdgeMouseEnter:g1,onEdgeMouseMove:h1,onEdgeMouseLeave:M1,reconnectRadius:r1,onReconnect:u1,onReconnectStart:D0,onReconnectEnd:o1,noDragClassName:X2,noWheelClassName:K2,noPanClassName:N2,disableKeyboardA11y:A2,nodeExtent:C2,rfId:M2,viewport:H2,onViewportChange:_2,nodesDraggable:z4}){return JR(Q),JR(U),Gj(),nv(Z),_j(H2),H1.jsx(wv,{onPaneClick:T1,onPaneMouseEnter:O1,onPaneMouseMove:L1,onPaneMouseLeave:U1,onPaneContextMenu:v1,onPaneScroll:P1,paneClickDistance:A1,deleteKeyCode:b,selectionKeyCode:u,selectionOnDrag:f,selectionMode:j,onSelectionStart:O,onSelectionEnd:P,multiSelectionKeyCode:D,panActivationKeyCode:h,zoomActivationKeyCode:E,elementsSelectable:x,zoomOnScroll:a,zoomOnPinch:i,zoomOnDoubleClick:q1,panOnScroll:o,panOnScrollSpeed:y,panOnScrollMode:g,panOnDrag:t,autoPanOnSelection:W1,defaultViewport:$1,translateExtent:Q1,minZoom:J1,maxZoom:m,onSelectionContextMenu:A,preventScrolling:p,noDragClassName:X2,noWheelClassName:K2,noPanClassName:N2,disableKeyboardA11y:A2,onViewportChange:_2,isControlledViewport:!!H2,children:H1.jsxs(ov,{children:[H1.jsx(tv,{edgeTypes:U,onEdgeClick:H,onEdgeDoubleClick:W,onReconnect:u1,onReconnectStart:D0,onReconnectEnd:o1,onlyRenderVisibleElements:k,onEdgeContextMenu:D1,onEdgeMouseEnter:g1,onEdgeMouseMove:h1,onEdgeMouseLeave:M1,reconnectRadius:r1,defaultMarkerColor:c,noPanClassName:N2,disableKeyboardA11y:A2,rfId:M2}),H1.jsx(qj,{style:V,type:N,component:v,containerStyle:C}),H1.jsx("div",{className:"react-flow__edgelabel-renderer"}),H1.jsx(yv,{nodeTypes:Q,onNodeClick:K,onNodeDoubleClick:Y,onNodeMouseEnter:L,onNodeMouseMove:T,onNodeMouseLeave:R,onNodeContextMenu:M,nodeClickDistance:k1,onlyRenderVisibleElements:k,noPanClassName:N2,noDragClassName:X2,disableKeyboardA11y:A2,nodeExtent:C2,rfId:M2,nodesDraggable:z4}),H1.jsx("div",{className:"react-flow__viewport-portal"})]})})}bR.displayName="GraphView";var Zj=z1.memo(bR),Fj=kK("React Flow","https://reactflow.dev/"),$R=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:H,height:Y,fitView:W,fitViewOptions:L,minZoom:T=0.5,maxZoom:R=2,nodeOrigin:M,nodeExtent:A,zIndexMode:O="basic"}={})=>{let P=new Map,N=new Map,V=new Map,v=new Map,C=K??U??[],u=Z??Q??[],f=M??[0,0],j=A??L9;dK(V,v,C);let{nodesInitialized:D}=oq(u,P,N,{nodeOrigin:f,nodeExtent:j,zIndexMode:O}),h=[0,0,1];if(W&&H&&Y){let E=c8(P,{filter:($1)=>!!(($1.width||$1.initialWidth)&&($1.height||$1.initialHeight))}),{x:b,y:k,zoom:x}=hJ(E,H,Y,T,R,L?.padding??0.1);h=[b,k,x]}return{rfId:"1",width:H??0,height:Y??0,transform:h,nodes:u,nodesInitialized:D,nodeLookup:P,parentLookup:N,edges:C,edgeLookup:v,connectionLookup:V,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:Z!==void 0,hasDefaultEdges:K!==void 0,panZoom:null,minZoom:T,maxZoom:R,translateExtent:L9,nodeExtent:j,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:u6.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:f,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:L,fitViewResolver:null,connection:{...CK},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:Fj,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:NK,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}},Xj=({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:H,height:Y,fitView:W,fitViewOptions:L,minZoom:T,maxZoom:R,nodeOrigin:M,nodeExtent:A,zIndexMode:O})=>VT((P,N)=>{async function V(){let{nodeLookup:v,panZoom:C,fitViewOptions:u,fitViewResolver:f,width:j,height:D,minZoom:h,maxZoom:E}=N();if(!C)return;await dM({nodes:v,width:j,height:D,panZoom:C,minZoom:h,maxZoom:E},u),f?.resolve(!0),P({fitViewResolver:null})}return{...$R({nodes:Q,edges:U,width:H,height:Y,fitView:W,fitViewOptions:L,minZoom:T,maxZoom:R,nodeOrigin:M,nodeExtent:A,defaultNodes:Z,defaultEdges:K,zIndexMode:O}),setNodes:(v)=>{let{nodeLookup:C,parentLookup:u,nodeOrigin:f,nodeExtent:j,elevateNodesOnSelect:D,fitViewQueued:h,zIndexMode:E,nodesSelectionActive:b}=N(),{nodesInitialized:k,hasSelectedNodes:x}=oq(v,C,u,{nodeOrigin:f,nodeExtent:j,elevateNodesOnSelect:D,checkEquality:!0,zIndexMode:E}),$1=b&&x;if(h&&k)V(),P({nodes:v,nodesInitialized:k,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:$1});else P({nodes:v,nodesInitialized:k,nodesSelectionActive:$1})},setEdges:(v)=>{let{connectionLookup:C,edgeLookup:u}=N();dK(C,u,v),P({edges:v})},setDefaultNodesAndEdges:(v,C)=>{if(v){let{setNodes:u}=N();u(v),P({hasDefaultNodes:!0})}if(C){let{setEdges:u}=N();u(C),P({hasDefaultEdges:!0})}},updateNodeInternals:(v)=>{let{triggerNodeChanges:C,nodeLookup:u,parentLookup:f,domNode:j,nodeOrigin:D,nodeExtent:h,debug:E,fitViewQueued:b,zIndexMode:k}=N(),{changes:x,updatedInternals:$1}=FT(v,u,f,j,D,h,k);if(!$1)return;if(GT(u,f,{nodeOrigin:D,nodeExtent:h,zIndexMode:k}),b)V(),P({fitViewQueued:!1,fitViewOptions:void 0});else P({});if(x?.length>0){if(E)console.log("React Flow: trigger node changes",x);C?.(x)}},updateNodePositions:(v,C=!1)=>{let u=[],f=[],{nodeLookup:j,triggerNodeChanges:D,connection:h,updateConnection:E,onNodesChangeMiddlewareMap:b}=N();for(let[k,x]of v){let $1=j.get(k),Q1=!!($1?.expandParent&&$1?.parentId&&x?.position),J1={id:k,type:"position",position:Q1?{x:Math.max(0,x.position.x),y:Math.max(0,x.position.y)}:x.position,dragging:C};if($1&&h.inProgress&&h.fromNode.id===$1.id){let m=b6($1,h.fromHandle,b1.Left,!0);E({...h,from:m})}if(Q1&&$1.parentId)u.push({id:k,parentId:$1.parentId,rect:{...x.internals.positionAbsolute,width:x.measured.width??0,height:x.measured.height??0}});f.push(J1)}if(u.length>0){let{parentLookup:k,nodeOrigin:x}=N(),$1=nq(u,j,k,x);f.push(...$1)}for(let k of b.values())f=k(f);D(f)},triggerNodeChanges:(v)=>{let{onNodesChange:C,setNodes:u,nodes:f,hasDefaultNodes:j,debug:D}=N();if(v?.length){if(j){let h=HR(v,f);u(h)}if(D)console.log("React Flow: trigger node changes",v);C?.(v)}},triggerEdgeChanges:(v)=>{let{onEdgesChange:C,setEdges:u,edges:f,hasDefaultEdges:j,debug:D}=N();if(v?.length){if(j){let h=lS(v,f);u(h)}if(D)console.log("React Flow: trigger edge changes",v);C?.(v)}},addSelectedNodes:(v)=>{let{multiSelectionActive:C,edgeLookup:u,nodeLookup:f,triggerNodeChanges:j,triggerEdgeChanges:D}=N();if(C){let h=v.map((E)=>l8(E,!0));j(h);return}j(R9(f,new Set([...v]),!0)),D(R9(u))},addSelectedEdges:(v)=>{let{multiSelectionActive:C,edgeLookup:u,nodeLookup:f,triggerNodeChanges:j,triggerEdgeChanges:D}=N();if(C){let h=v.map((E)=>l8(E,!0));D(h);return}D(R9(u,new Set([...v]))),j(R9(f,new Set,!0))},unselectNodesAndEdges:({nodes:v,edges:C}={})=>{let{edges:u,nodes:f,nodeLookup:j,triggerNodeChanges:D,triggerEdgeChanges:h}=N(),E=v?v:f,b=C?C:u,k=[];for(let $1 of E){if(!$1.selected)continue;let Q1=j.get($1.id);if(Q1)Q1.selected=!1;k.push(l8($1.id,!1))}let x=[];for(let $1 of b){if(!$1.selected)continue;x.push(l8($1.id,!1))}D(k),h(x)},setMinZoom:(v)=>{let{panZoom:C,maxZoom:u}=N();C?.setScaleExtent([v,u]),P({minZoom:v})},setMaxZoom:(v)=>{let{panZoom:C,minZoom:u}=N();C?.setScaleExtent([u,v]),P({maxZoom:v})},setTranslateExtent:(v)=>{N().panZoom?.setTranslateExtent(v),P({translateExtent:v})},resetSelectedElements:()=>{let{edges:v,nodes:C,triggerNodeChanges:u,triggerEdgeChanges:f,elementsSelectable:j}=N();if(!j)return;let D=C.reduce((E,b)=>b.selected?[...E,l8(b.id,!1)]:E,[]),h=v.reduce((E,b)=>b.selected?[...E,l8(b.id,!1)]:E,[]);u(D),f(h)},setNodeExtent:(v)=>{let{nodes:C,nodeLookup:u,parentLookup:f,nodeOrigin:j,elevateNodesOnSelect:D,nodeExtent:h,zIndexMode:E}=N();if(v[0][0]===h[0][0]&&v[0][1]===h[0][1]&&v[1][0]===h[1][0]&&v[1][1]===h[1][1])return;oq(C,u,f,{nodeOrigin:j,nodeExtent:v,elevateNodesOnSelect:D,checkEquality:!1,zIndexMode:E}),P({nodeExtent:v})},panBy:(v)=>{let{transform:C,width:u,height:f,panZoom:j,translateExtent:D}=N();return XT({delta:v,panZoom:j,transform:C,translateExtent:D,width:u,height:f})},setCenter:async(v,C,u)=>{let{width:f,height:j,maxZoom:D,panZoom:h}=N();if(!h)return!1;let E=typeof u?.zoom<"u"?u.zoom:D;return await h.setViewport({x:f/2-v*E,y:j/2-C*E,zoom:E},{duration:u?.duration,ease:u?.ease,interpolate:u?.interpolate}),!0},cancelConnection:()=>{P({connection:{...CK}})},updateConnection:(v)=>{P({connection:v})},reset:()=>P({...$R()})}},Object.is);function eK({initialNodes:Q,initialEdges:U,defaultNodes:Z,defaultEdges:K,initialWidth:H,initialHeight:Y,initialMinZoom:W,initialMaxZoom:L,initialFitViewOptions:T,fitView:R,nodeOrigin:M,nodeExtent:A,zIndexMode:O,children:P}){let[N]=z1.useState(()=>Xj({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,width:H,height:Y,fitView:R,minZoom:W,maxZoom:L,fitViewOptions:T,nodeOrigin:M,nodeExtent:A,zIndexMode:O}));return H1.jsx(PS,{value:N,children:H1.jsx(sS,{children:H1.jsx(Kv,{children:P})})})}function Kj({children:Q,nodes:U,edges:Z,defaultNodes:K,defaultEdges:H,width:Y,height:W,fitView:L,fitViewOptions:T,minZoom:R,maxZoom:M,nodeOrigin:A,nodeExtent:O,zIndexMode:P}){if(z1.useContext(UU))return H1.jsx(H1.Fragment,{children:Q});return H1.jsx(eK,{initialNodes:U,initialEdges:Z,defaultNodes:K,defaultEdges:H,initialWidth:Y,initialHeight:W,fitView:L,initialFitViewOptions:T,initialMinZoom:R,initialMaxZoom:M,nodeOrigin:A,nodeExtent:O,zIndexMode:P,children:Q})}var Hj={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function Yj({nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,className:H,nodeTypes:Y,edgeTypes:W,onNodeClick:L,onEdgeClick:T,onInit:R,onMove:M,onMoveStart:A,onMoveEnd:O,onConnect:P,onConnectStart:N,onConnectEnd:V,onClickConnectStart:v,onClickConnectEnd:C,onNodeMouseEnter:u,onNodeMouseMove:f,onNodeMouseLeave:j,onNodeContextMenu:D,onNodeDoubleClick:h,onNodeDragStart:E,onNodeDrag:b,onNodeDragStop:k,onNodesDelete:x,onEdgesDelete:$1,onDelete:Q1,onSelectionChange:J1,onSelectionDragStart:m,onSelectionDrag:p,onSelectionDragStop:c,onSelectionContextMenu:a,onSelectionStart:i,onSelectionEnd:o,onBeforeDelete:y,connectionMode:g,connectionLineType:q1=r4.Bezier,connectionLineStyle:t,connectionLineComponent:W1,connectionLineContainerStyle:T1,deleteKeyCode:O1="Backspace",selectionKeyCode:L1="Shift",selectionOnDrag:U1=!1,selectionMode:P1=x8.Full,panActivationKeyCode:v1="Space",multiSelectionKeyCode:A1=T9()?"Meta":"Control",zoomActivationKeyCode:k1=T9()?"Meta":"Control",snapToGrid:D1,snapGrid:g1,onlyRenderVisibleElements:h1=!1,selectNodesOnDrag:M1,nodesDraggable:r1,autoPanOnNodeFocus:u1,nodesConnectable:D0,nodesFocusable:o1,nodeOrigin:X2=XR,edgesFocusable:K2,edgesReconnectable:N2,elementsSelectable:A2=!0,defaultViewport:C2=ES,minZoom:M2=0.5,maxZoom:H2=2,translateExtent:_2=L9,preventScrolling:z4=!0,nodeExtent:m2,defaultMarkerColor:f5="#b1b1b7",zoomOnScroll:S5=!0,zoomOnPinch:r5=!0,panOnScroll:o4=!1,panOnScrollSpeed:G1=0.5,panOnScrollMode:I=j3.Free,zoomOnDoubleClick:l=!0,panOnDrag:F1=!0,onPaneClick:I1,onPaneMouseEnter:R1,onPaneMouseMove:N1,onPaneMouseLeave:C1,onPaneScroll:y1,onPaneContextMenu:j1,paneClickDistance:p1=1,nodeClickDistance:S0=0,children:w0,onReconnect:n4,onReconnectStart:v5,onReconnectEnd:T0,onEdgeContextMenu:n8,onEdgeDoubleClick:a5,onEdgeMouseEnter:e2,onEdgeMouseMove:iJ,onEdgeMouseLeave:LU,reconnectRadius:N9=10,onNodesChange:dJ,onEdgesChange:e8,noDragClassName:_5="nodrag",noWheelClassName:rJ="nowheel",noPanClassName:_7="nopan",fitView:C9,fitViewOptions:J7,connectOnClick:aJ,attributionPosition:sJ,proOptions:h3,defaultEdgeOptions:tJ,elevateNodesOnSelect:oJ=!0,elevateEdgesOnSelect:nJ=!1,disableKeyboardA11y:f9=!1,autoPanOnConnect:eJ,autoPanOnNodeDrag:g2,autoPanOnSelection:x3=!0,autoPanSpeed:e4,connectionRadius:_$,isValidConnection:m6,onError:$7,style:S9,id:m3,nodeDragThreshold:g3,connectionDragThreshold:v9,viewport:BU,onViewportChange:AU,width:J$,height:j9,colorMode:V9="light",debug:$$,onScroll:y9,ariaLabelConfig:Q$,zIndexMode:q$="basic",...U$},k9){let p3=m3||"1",g6=gS(V9),MU=z1.useCallback((D9)=>{D9.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),y9?.(D9)},[y9]);return H1.jsx("div",{"data-testid":"rf__wrapper",...U$,onScroll:MU,style:{...S9,...Hj},ref:k9,className:d0(["react-flow",H,g6]),id:m3,role:"application",children:H1.jsxs(Kj,{nodes:Q,edges:U,width:J$,height:j9,fitView:C9,fitViewOptions:J7,minZoom:M2,maxZoom:H2,nodeOrigin:X2,nodeExtent:m2,zIndexMode:q$,children:[H1.jsx(mS,{nodes:Q,edges:U,defaultNodes:Z,defaultEdges:K,onConnect:P,onConnectStart:N,onConnectEnd:V,onClickConnectStart:v,onClickConnectEnd:C,nodesDraggable:r1,autoPanOnNodeFocus:u1,nodesConnectable:D0,nodesFocusable:o1,edgesFocusable:K2,edgesReconnectable:N2,elementsSelectable:A2,elevateNodesOnSelect:oJ,elevateEdgesOnSelect:nJ,minZoom:M2,maxZoom:H2,nodeExtent:m2,onNodesChange:dJ,onEdgesChange:e8,snapToGrid:D1,snapGrid:g1,connectionMode:g,translateExtent:_2,connectOnClick:aJ,defaultEdgeOptions:tJ,fitView:C9,fitViewOptions:J7,onNodesDelete:x,onEdgesDelete:$1,onDelete:Q1,onNodeDragStart:E,onNodeDrag:b,onNodeDragStop:k,onSelectionDrag:p,onSelectionDragStart:m,onSelectionDragStop:c,onMove:M,onMoveStart:A,onMoveEnd:O,noPanClassName:_7,nodeOrigin:X2,rfId:p3,autoPanOnConnect:eJ,autoPanOnNodeDrag:g2,autoPanSpeed:e4,onError:$7,connectionRadius:_$,isValidConnection:m6,selectNodesOnDrag:M1,nodeDragThreshold:g3,connectionDragThreshold:v9,onBeforeDelete:y,debug:$$,ariaLabelConfig:Q$,zIndexMode:q$}),H1.jsx(Zj,{onInit:R,onNodeClick:L,onEdgeClick:T,onNodeMouseEnter:u,onNodeMouseMove:f,onNodeMouseLeave:j,onNodeContextMenu:D,onNodeDoubleClick:h,nodeTypes:Y,edgeTypes:W,connectionLineType:q1,connectionLineStyle:t,connectionLineComponent:W1,connectionLineContainerStyle:T1,selectionKeyCode:L1,selectionOnDrag:U1,selectionMode:P1,deleteKeyCode:O1,multiSelectionKeyCode:A1,panActivationKeyCode:v1,zoomActivationKeyCode:k1,onlyRenderVisibleElements:h1,defaultViewport:C2,translateExtent:_2,minZoom:M2,maxZoom:H2,preventScrolling:z4,zoomOnScroll:S5,zoomOnPinch:r5,zoomOnDoubleClick:l,panOnScroll:o4,panOnScrollSpeed:G1,panOnScrollMode:I,panOnDrag:F1,autoPanOnSelection:x3,onPaneClick:I1,onPaneMouseEnter:R1,onPaneMouseMove:N1,onPaneMouseLeave:C1,onPaneScroll:y1,onPaneContextMenu:j1,paneClickDistance:p1,nodeClickDistance:S0,onSelectionContextMenu:a,onSelectionStart:i,onSelectionEnd:o,onReconnect:n4,onReconnectStart:v5,onReconnectEnd:T0,onEdgeContextMenu:n8,onEdgeDoubleClick:a5,onEdgeMouseEnter:e2,onEdgeMouseMove:iJ,onEdgeMouseLeave:LU,reconnectRadius:N9,defaultMarkerColor:f5,noDragClassName:_5,noWheelClassName:rJ,noPanClassName:_7,rfId:p3,disableKeyboardA11y:f9,nodeExtent:m2,viewport:BU,onViewportChange:AU,nodesDraggable:r1}),H1.jsx(bS,{onSelectionChange:J1}),w0,H1.jsx(VS,{proOptions:h3,position:sJ}),H1.jsx(jS,{rfId:p3,disableKeyboardA11y:f9})]})})}var ER=YR(Yj);function hR(Q){let[U,Z]=z1.useState(Q),K=z1.useCallback((H)=>Z((Y)=>HR(H,Y)),[]);return[U,Z,K]}var Vg=n2.error014();function zj({dimensions:Q,lineWidth:U,variant:Z,className:K}){return H1.jsx("path",{strokeWidth:U,d:`M${Q[0]/2} 0 V${Q[1]} M0 ${Q[1]/2} H${Q[0]}`,className:d0(["react-flow__background-pattern",Z,K])})}function Wj({radius:Q,className:U}){return H1.jsx("circle",{cx:Q,cy:Q,r:Q,className:d0(["react-flow__background-pattern","dots",U])})}var a4;(function(Q){Q.Lines="lines",Q.Dots="dots",Q.Cross="cross"})(a4||(a4={}));var Lj={[a4.Dots]:1,[a4.Lines]:1,[a4.Cross]:6},Bj=(Q)=>({transform:Q.transform,patternId:`pattern-${Q.rfId}`});function xR({id:Q,variant:U=a4.Dots,gap:Z=20,size:K,lineWidth:H=1,offset:Y=0,color:W,bgColor:L,style:T,className:R,patternClassName:M}){let A=z1.useRef(null),{transform:O,patternId:P}=H0(Bj,h0),N=K||Lj[U],V=U===a4.Dots,v=U===a4.Cross,C=Array.isArray(Z)?Z:[Z,Z],u=[C[0]*O[2]||1,C[1]*O[2]||1],f=N*O[2],j=Array.isArray(Y)?Y:[Y,Y],D=v?[f,f]:u,h=[j[0]*O[2]+D[0]/2,j[1]*O[2]+D[1]/2],E=`${P}${Q?Q:""}`;return H1.jsxs("svg",{className:d0(["react-flow__background",R]),style:{...T,...GU,"--xy-background-color-props":L,"--xy-background-pattern-color-props":W},ref:A,"data-testid":"rf__background",children:[H1.jsx("pattern",{id:E,x:O[0]%u[0],y:O[1]%u[1],width:u[0],height:u[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${h[0]},-${h[1]})`,children:V?H1.jsx(Wj,{radius:f/2,className:M}):H1.jsx(zj,{dimensions:D,lineWidth:H,variant:U,className:M})}),H1.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${E})`})]})}xR.displayName="Background";var mR=z1.memo(xR);function Aj(){return H1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:H1.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function Mj(){return H1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:H1.jsx("path",{d:"M0 0h32v4.2H0z"})})}function Tj(){return H1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:H1.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 Rj(){return H1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:H1.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 Oj(){return H1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:H1.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 H1.jsx("button",{type:"button",className:d0(["react-flow__controls-button",U]),...Z,children:Q})}var Ij=(Q)=>({isInteractive:Q.nodesDraggable||Q.nodesConnectable||Q.elementsSelectable,minZoomReached:Q.transform[2]<=Q.minZoom,maxZoomReached:Q.transform[2]>=Q.maxZoom,ariaLabelConfig:Q.ariaLabelConfig});function gR({style:Q,showZoom:U=!0,showFitView:Z=!0,showInteractive:K=!0,fitViewOptions:H,onZoomIn:Y,onZoomOut:W,onFitView:L,onInteractiveChange:T,className:R,children:M,position:A="bottom-left",orientation:O="vertical","aria-label":P}){let N=x0(),{isInteractive:V,minZoomReached:v,maxZoomReached:C,ariaLabelConfig:u}=H0(Ij,h0),{zoomIn:f,zoomOut:j,fitView:D}=gJ(),h=()=>{f(),Y?.()},E=()=>{j(),W?.()},b=()=>{D(H),L?.()},k=()=>{N.setState({nodesDraggable:!V,nodesConnectable:!V,elementsSelectable:!V}),T?.(!V)};return H1.jsxs(s4,{className:d0(["react-flow__controls",O==="horizontal"?"horizontal":"vertical",R]),position:A,style:Q,"data-testid":"rf__controls","aria-label":P??u["controls.ariaLabel"],children:[U&&H1.jsxs(H1.Fragment,{children:[H1.jsx($U,{onClick:h,className:"react-flow__controls-zoomin",title:u["controls.zoomIn.ariaLabel"],"aria-label":u["controls.zoomIn.ariaLabel"],disabled:C,children:H1.jsx(Aj,{})}),H1.jsx($U,{onClick:E,className:"react-flow__controls-zoomout",title:u["controls.zoomOut.ariaLabel"],"aria-label":u["controls.zoomOut.ariaLabel"],disabled:v,children:H1.jsx(Mj,{})})]}),Z&&H1.jsx($U,{className:"react-flow__controls-fitview",onClick:b,title:u["controls.fitView.ariaLabel"],"aria-label":u["controls.fitView.ariaLabel"],children:H1.jsx(Tj,{})}),K&&H1.jsx($U,{className:"react-flow__controls-interactive",onClick:k,title:u["controls.interactive.ariaLabel"],"aria-label":u["controls.interactive.ariaLabel"],children:V?H1.jsx(Oj,{}):H1.jsx(Rj,{})}),M]})}gR.displayName="Controls";var pR=z1.memo(gR);function wj({id:Q,x:U,y:Z,width:K,height:H,style:Y,color:W,strokeColor:L,strokeWidth:T,className:R,borderRadius:M,shapeRendering:A,selected:O,onClick:P}){let{background:N,backgroundColor:V}=Y||{},v=W||N||V;return H1.jsx("rect",{className:d0(["react-flow__minimap-node",{selected:O},R]),x:U,y:Z,rx:M,ry:M,width:K,height:H,style:{fill:v,stroke:L,strokeWidth:T},shapeRendering:A,onClick:P?(C)=>P(C,Q):void 0})}var Pj=z1.memo(wj),Nj=(Q)=>Q.nodes.map((U)=>U.id),sK=(Q)=>Q instanceof Function?Q:()=>Q;function Cj({nodeStrokeColor:Q,nodeColor:U,nodeClassName:Z="",nodeBorderRadius:K=5,nodeStrokeWidth:H,nodeComponent:Y=Pj,onClick:W}){let L=H0(Nj,h0),T=sK(U),R=sK(Q),M=sK(Z),A=typeof window>"u"||!!window.chrome?"crispEdges":"geometricPrecision";return H1.jsx(H1.Fragment,{children:L.map((O)=>H1.jsx(Sj,{id:O,nodeColorFunc:T,nodeStrokeColorFunc:R,nodeClassNameFunc:M,nodeBorderRadius:K,nodeStrokeWidth:H,NodeComponent:Y,onClick:W,shapeRendering:A},O))})}function fj({id:Q,nodeColorFunc:U,nodeStrokeColorFunc:Z,nodeClassNameFunc:K,nodeBorderRadius:H,nodeStrokeWidth:Y,shapeRendering:W,NodeComponent:L,onClick:T}){let{node:R,x:M,y:A,width:O,height:P}=H0((N)=>{let V=N.nodeLookup.get(Q);if(!V)return{node:void 0,x:0,y:0,width:0,height:0};let v=V.internals.userNode,{x:C,y:u}=V.internals.positionAbsolute,{width:f,height:j}=i5(v);return{node:v,x:C,y:u,width:f,height:j}},h0);if(!R||R.hidden||!DK(R))return null;return H1.jsx(L,{x:M,y:A,width:O,height:P,style:R.style,selected:!!R.selected,className:K(R),color:U(R),borderRadius:H,strokeColor:Z(R),strokeWidth:Y,shapeRendering:W,onClick:T,id:R.id})}var Sj=z1.memo(fj),vj=z1.memo(Cj),jj=200,Vj=150,yj=(Q)=>!Q.hidden,kj=(Q)=>{let U={x:-Q.transform[0]/Q.transform[2],y:-Q.transform[1]/Q.transform[2],width:Q.width/Q.transform[2],height:Q.height/Q.transform[2]},Z=!1;for(let K of Q.nodeLookup.values())if(!K.hidden){Z=!0;break}return{viewBB:U,boundingRect:Z?VK(c8(Q.nodeLookup,{filter:yj}),U):U,rfId:Q.rfId,panZoom:Q.panZoom,translateExtent:Q.translateExtent,flowWidth:Q.width,flowHeight:Q.height,ariaLabelConfig:Q.ariaLabelConfig}},QR=(Q,U)=>Q.x===U.x&&Q.y===U.y&&Q.width===U.width&&Q.height===U.height,Dj=(Q,U)=>QR(Q.viewBB,U.viewBB)&&QR(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,uj="react-flow__minimap-desc";function cR({style:Q,className:U,nodeStrokeColor:Z,nodeColor:K,nodeClassName:H="",nodeBorderRadius:Y=5,nodeStrokeWidth:W,nodeComponent:L,bgColor:T,maskColor:R,maskStrokeColor:M,maskStrokeWidth:A,position:O="bottom-right",onClick:P,onNodeClick:N,pannable:V=!1,zoomable:v=!1,ariaLabel:C,inversePan:u,zoomStep:f=1,offsetScale:j=5}){let D=x0(),h=z1.useRef(null),{boundingRect:E,panZoom:b,viewBB:k,rfId:x,translateExtent:$1,flowWidth:Q1,flowHeight:J1,ariaLabelConfig:m}=H0(kj,Dj),p=Q?.width??jj,c=Q?.height??Vj,a=E.width/p,i=E.height/c,o=Math.max(a,i),y=o*p,g=o*c,q1=j*o,t=E.x-(y-E.width)/2-q1,W1=E.y-(g-E.height)/2-q1,T1=y+q1*2,O1=g+q1*2,L1=`${uj}-${x}`,U1=z1.useRef(0),P1=z1.useRef();U1.current=o,z1.useEffect(()=>{let g1=D.getState().panZoom;if(h.current&&g1)return P1.current=BT({domNode:h.current,panZoom:g1,getTransform:()=>D.getState().transform,getViewScale:()=>U1.current}),()=>{P1.current?.destroy()}},[b]),z1.useEffect(()=>{P1.current?.update({translateExtent:$1,width:Q1,height:J1,inversePan:u,pannable:V,zoomStep:f,zoomable:v})},[V,v,u,f,$1,Q1,J1]);let v1=P?(g1)=>{let[h1,M1]=P1.current?.pointer(g1)||[0,0];P(g1,{x:h1,y:M1})}:void 0,A1=z1.useCallback((g1,h1)=>{let M1=D.getState().nodeLookup.get(h1).internals.userNode;N?.(g1,M1)},[N]),k1=N?A1:void 0,D1=C??m["minimap.ariaLabel"];return H1.jsx(s4,{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*o:void 0,"--xy-minimap-node-background-color-props":typeof K==="string"?K:void 0,"--xy-minimap-node-stroke-color-props":typeof Z==="string"?Z:void 0,"--xy-minimap-node-stroke-width-props":typeof W==="number"?W:void 0},className:d0(["react-flow__minimap",U]),"data-testid":"rf__minimap",children:H1.jsxs("svg",{width:p,height:c,viewBox:`${t} ${W1} ${T1} ${O1}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":L1,ref:h,onClick:v1,children:[D1&&H1.jsx("title",{id:L1,children:D1}),H1.jsx(vj,{onClick:k1,nodeColor:K,nodeStrokeColor:Z,nodeBorderRadius:Y,nodeClassName:H,nodeStrokeWidth:W,nodeComponent:L}),H1.jsx("path",{className:"react-flow__minimap-mask",d:`M${t-q1},${W1-q1}h${T1+q1*2}v${O1+q1*2}h${-T1-q1*2}z
|
|
247
|
+
M${k.x},${k.y}h${k.width}v${k.height}h${-k.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}cR.displayName="MiniMap";var lR=z1.memo(cR),bj=(Q)=>(U)=>Q?`${Math.max(1/U.transform[2],1)}`:void 0,Ej={[V3.Line]:"right",[V3.Handle]:"bottom-right"};function hj({nodeId:Q,position:U,variant:Z=V3.Handle,className:K,style:H=void 0,children:Y,color:W,minWidth:L=10,minHeight:T=10,maxWidth:R=Number.MAX_VALUE,maxHeight:M=Number.MAX_VALUE,keepAspectRatio:A=!1,resizeDirection:O,autoScale:P=!0,shouldResize:N,onResizeStart:V,onResize:v,onResizeEnd:C}){let u=nK(),f=typeof Q==="string"?Q:u,j=x0(),D=z1.useRef(null),h=Z===V3.Handle,E=H0(z1.useCallback(bj(h&&P),[h,P]),h0),b=z1.useRef(null),k=U??Ej[Z];z1.useEffect(()=>{if(!D.current||!f)return;if(!b.current)b.current=wT({domNode:D.current,nodeId:f,getStoreItems:()=>{let{nodeLookup:$1,transform:Q1,snapGrid:J1,snapToGrid:m,nodeOrigin:p,domNode:c}=j.getState();return{nodeLookup:$1,transform:Q1,snapGrid:J1,snapToGrid:m,nodeOrigin:p,paneDomNode:c}},onChange:($1,Q1)=>{let{triggerNodeChanges:J1,nodeLookup:m,parentLookup:p,nodeOrigin:c}=j.getState(),a=[],i={x:$1.x,y:$1.y},o=m.get(f);if(o&&o.expandParent&&o.parentId){let y=o.origin??c,g=$1.width??o.measured.width??0,q1=$1.height??o.measured.height??0,t={id:o.id,parentId:o.parentId,rect:{width:g,height:q1,...uK({x:$1.x??o.position.x,y:$1.y??o.position.y},{width:g,height:q1},o.parentId,m,y)}},W1=nq([t],m,p,c);a.push(...W1),i.x=$1.x?Math.max(y[0]*g,$1.x):void 0,i.y=$1.y?Math.max(y[1]*q1,$1.y):void 0}if(i.x!==void 0&&i.y!==void 0){let y={id:f,type:"position",position:{...i}};a.push(y)}if($1.width!==void 0&&$1.height!==void 0){let g={id:f,type:"dimensions",resizing:!0,setAttributes:!O?!0:O==="horizontal"?"width":"height",dimensions:{width:$1.width,height:$1.height}};a.push(g)}for(let y of Q1){let g={...y,type:"position"};a.push(g)}J1(a)},onEnd:({width:$1,height:Q1})=>{let J1={id:f,type:"dimensions",resizing:!1,dimensions:{width:$1,height:Q1}};j.getState().triggerNodeChanges([J1])}});return b.current.update({controlPosition:k,boundaries:{minWidth:L,minHeight:T,maxWidth:R,maxHeight:M},keepAspectRatio:A,resizeDirection:O,onResizeStart:V,onResize:v,onResizeEnd:C,shouldResize:N}),()=>{b.current?.destroy()}},[k,L,T,R,M,A,V,v,C,N]);let x=k.split("-");return H1.jsx("div",{className:d0(["react-flow__resize-control","nodrag",...x,Z,K]),ref:D,style:{...H,scale:E,...W&&{[h?"backgroundColor":"borderColor"]:W}},children:Y})}var qR=z1.memo(hj);function iR({nodeId:Q,isVisible:U=!0,handleClassName:Z,handleStyle:K,lineClassName:H,lineStyle:Y,color:W,minWidth:L=10,minHeight:T=10,maxWidth:R=Number.MAX_VALUE,maxHeight:M=Number.MAX_VALUE,keepAspectRatio:A=!1,autoScale:O=!0,shouldResize:P,onResizeStart:N,onResize:V,onResizeEnd:v}){if(!U)return null;return H1.jsxs(H1.Fragment,{children:[OT.map((C)=>H1.jsx(qR,{className:H,style:Y,nodeId:Q,position:C,variant:V3.Line,color:W,minWidth:L,minHeight:T,maxWidth:R,maxHeight:M,onResizeStart:N,keepAspectRatio:A,autoScale:O,shouldResize:P,onResize:V,onResizeEnd:v},C)),RT.map((C)=>H1.jsx(qR,{className:Z,style:K,nodeId:Q,position:C,color:W,minWidth:L,minHeight:T,maxWidth:R,maxHeight:M,onResizeStart:N,keepAspectRatio:A,autoScale:O,shouldResize:P,onResize:V,onResizeEnd:v},C))]})}var xj=(Q)=>Q.domNode?.querySelector(".react-flow__renderer");function mj({children:Q}){let U=H0(xj);if(!U)return null;return UR.createPortal(Q,U)}var gj=(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,pj=(Q,U)=>{if(Q.size!==U.size)return!1;for(let[Z,K]of Q)if(gj(K,U.get(Z)))return!1;return!0},cj=(Q)=>({x:Q.transform[0],y:Q.transform[1],zoom:Q.transform[2],selectedNodesCount:Q.nodes.filter((U)=>U.selected).length});function _H({nodeId:Q,children:U,className:Z,style:K,isVisible:H,position:Y=b1.Top,offset:W=10,align:L="center",...T}){let R=nK(),M=z1.useCallback((D)=>{return(Array.isArray(Q)?Q:[Q||R||""]).reduce((b,k)=>{let x=D.nodeLookup.get(k);if(x)b.set(x.id,x);return b},new Map)},[Q,R]),A=H0(M,pj),{x:O,y:P,zoom:N,selectedNodesCount:V}=H0(cj,h0);if(!(typeof H==="boolean"?H:A.size===1&&A.values().next().value?.selected&&V===1)||!A.size)return null;let C=c8(A),u=Array.from(A.values()),f=Math.max(...u.map((D)=>D.internals.z+1)),j={position:"absolute",transform:qT(C,{x:O,y:P,zoom:N},Y,W,L),zIndex:f,...K};return H1.jsx(mj,{children:H1.jsx("div",{style:j,className:d0(["react-flow__node-toolbar",Z]),...T,"data-id":u.reduce((D,h)=>`${D}${h.id} `,"").trim(),children:U})})}function FU(Q={}){let U=(K,H)=>Q.tools?`${H} (\`${K}\`)`:`\`${K}\``,Z=["Set up Volter World for this app, so its calls to Stripe, Slack, GitHub, OpenAI and the other services it uses go to local twins instead of the real APIs. The app keeps its real SDKs and code.","",Q.tools?"1. You have the Volter World tools (volter mcp). If the `volter` command is missing, install it: `npm install -g @volter/world`.":"1. Install the command and your agent tooling: `npm install -g @volter/world`, then `volter agents install --yes`.",`2. In the app's folder, ${U("volter world init --install","world_init")}: it detects the vendors the app calls and installs their twins. Show me the vendors it detected and why, before keeping them.`,`3. ${Q.tools?"Start it with world_up":"Start it: `volter world up`"}, then run the tests inside it: ${U("volter world run -- <the test command>","world_run")}. Fix anything that fails because a call went to the real service.`,`4. Tell me what the app did at each vendor (${U("volter world log","world_log")}), and give me the dashboard link (${Q.tools?"world_view":"`volter world view --no-open`, started in the background: it keeps running"}).`];if(Q.platform){let K=Q.world??"<org>/<world>";Z.push(`5. Share it with my team on ${Q.platform}: ${U(`volter login ${Q.platform}`,"platform_login")} gives a link and a code for me to approve in my browser. Once I have, link it with ${U(`volter remote add origin ${K} --create`,"remote_link with create: true")}${Q.world?"":" (ask me for <org>/<world>)"}, then send what the app did: ${U('volter world changeset -m "<what and why>"',"world_changeset")} and ${U("volter world push","world_push")}.`)}return Z.push("","The guide: https://world.volter.ai/docs/guides/use-with-a-coding-agent.md"),Z.join(`
|
|
248
|
+
`)}var dR={"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=p0(f8(),1),KU="volter.console.token",t8=document.getElementById("root"),t1=t8.dataset.base??"/-/console",L0=window.location.origin,D3=(t8.dataset.worlds??L0).replace(/\/+$/,""),JO=(t8.dataset.names??"").split(",").filter((Q)=>Q!==""),E6=t8.dataset.worldOrigin==="1",s8=window.fetch.bind(window),h6="(session)",$O="(pass)",pJ=(Q)=>{try{if(Q&&!E6)sessionStorage.setItem(KU,Q);else sessionStorage.removeItem(KU);localStorage.removeItem(KU)}catch{}},QO="volter.console.portal",qO=(Q)=>{try{if(typeof Q==="string"&&/^https?:$/.test(new URL(Q).protocol))sessionStorage.setItem(QO,new URL(Q).origin)}catch{}},lj=()=>{return o8.get("token")??""},x2=()=>{try{let Q=sessionStorage.getItem(QO)??"";return Q&&/^https?:$/.test(new URL(Q).protocol)?new URL(Q).origin:""}catch{return""}},ij=()=>{let Q=lj();if(E6){if(pJ(""),o8.get("pass"))return $O;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?"":h6)}if(Q)return pJ(Q),Q;try{return sessionStorage.getItem(KU)??""}catch{return""}};function F2(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: ${S8(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 ${d1(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 K=/the ([a-z0-9_-]+) twin has no root/i.exec(U)??/:\s*([a-z0-9_, -]+?) (?:has|have) no root/i.exec(U);if(K){let Y=K[1].split(/,\s*/).filter(Boolean).map(d1);return{text:`${S8(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 C5=async(Q)=>F2(await N3(Q)).text,dj={vault:["vault","Open Vault"],remote:["remote","Open Remote"],settings:["settings/services","Open Real services"]};function UO({name:Q,acts:U}){let Z=U.map((K)=>dj[K]).filter((K)=>Boolean(K));if(Z.length===0)return null;return F.jsxDEV(F.Fragment,{children:Z.map(([K,H])=>F.jsxDEV(K1.default.Fragment,{children:[" ",F.jsxDEV("a",{href:`${t1}/${Q}/~/${K}`,onClick:(Y)=>{Y.preventDefault(),M0([...Q.split("/"),"~",...K.split("/")])},children:H},void 0,!1,void 0,this)]},K,!0,void 0,this))},void 0,!1,void 0,this)}async function z0(Q,U,Z={}){return s8(`${L0}${U}`,{...Z,headers:{...Z.headers??{},...Q===h6?{}:{"x-volter-token":Q},...Z.body&&!Z.headers?.["content-type"]?{"content-type":"application/json"}:{}}})}function f0(Q,U,Z=0){let K=xA((H)=>z0(Q,H),U,Z,Q);return K.state==="error"?{...K,error:F2(K.error).text}:K}var w9=(Q)=>{let U=new Date(Q),Z=(K)=>String(K).padStart(2,"0");return`${U.getFullYear()}-${Z(U.getMonth()+1)}-${Z(U.getDate())}T${Z(U.getHours())}:${Z(U.getMinutes())}`},rR=(Q)=>new Date(Math.ceil(Date.parse(Q)/60000)*60000).toISOString(),GO=(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",rj=(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},UH="volter.console.snapshots",u3=()=>{try{return JSON.parse(sessionStorage.getItem(UH)??"{}")}catch{return{}}},ZO=new Map,GH=(Q)=>{if(E6){if(Q.token||Q.readToken)ZO.set(Q.name,{token:Q.token,readToken:Q.readToken});Q={...Q,token:"",readToken:""}}try{sessionStorage.setItem(UH,JSON.stringify({...u3(),[Q.name]:Q}))}catch{}},ZH=(Q)=>ZO.get(Q)?.readToken||u3()[Q]?.readToken||"",HU=(Q)=>{try{let U=u3();delete U[Q],sessionStorage.setItem(UH,JSON.stringify(U))}catch{}},o8=new URLSearchParams(window.location.hash.slice(1)),O9=o8.get("close")??"";function P9(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 FH(Q){let U=P9(Q);if(!U)return null;let Z=new URL(L0);if(U.protocol!==Z.protocol||U.port!==Z.port)return null;if(U.hostname===Z.hostname)return U.origin;let K=/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./;if(!K.test(U.hostname))return null;let H=U.hostname.replace(K,"");return H===Z.hostname||K.test(Z.hostname)&&H===Z.hostname.replace(K,"")?U.origin:null}function aj(Q){let U;try{U=JSON.parse(Q)}catch{return null}let Z=/^[a-z0-9][a-z0-9-]*\/[a-z0-9][a-z0-9-]*$/i;if(typeof U.name!=="string"||!Z.test(U.name)||typeof U.parent!=="string"||!Z.test(U.parent)||typeof U.at!=="string")return null;let K=U.parentOrigin===void 0?void 0:FH(U.parentOrigin);return{name:U.name,parent:U.parent,token:typeof U.token==="string"?U.token:"",readToken:typeof U.readToken==="string"?U.readToken:"",at:U.at,expiresAt:typeof U.expiresAt==="string"?U.expiresAt:null,...K?{parentOrigin:K}:{}}}{let Q=o8.get("snapshot");if(Q){let U=aj(Q);if(U&&!u3()[U.name])GH(U)}}var FO="volter.console.home",XO=(Q)=>{let U=P9(Q);if(!U)return null;let Z=new URL(L0).hostname,K=Z.replace(/^[a-z0-9](?:[a-z0-9]|-(?!-))*--[a-z0-9](?:[a-z0-9]|-(?!-))*\./,"");return U.hostname===Z||U.hostname===K?U.origin:null};{let Q=XO(o8.get("home"));if(Q)try{sessionStorage.setItem(FO,Q)}catch{}}if(["token","pass","portal","snapshot","home","close"].some((Q)=>o8.has(Q)))try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}var Y4=()=>{try{return XO(sessionStorage.getItem(FO))??""}catch{return""}};function XH(Q,U,Z,K){let H=new URLSearchParams({token:U,home:Y4()||L0}),Y=u3()[Z];if(Y)H.set("snapshot",JSON.stringify(Y));window.location.replace(`${Q}${K??`${window.location.pathname}${window.location.search}`}#${H.toString()}`)}var qH=t8.dataset.route==="memory"?"":null;function d8(){return(qH??window.location.pathname.slice(t1.length)).split("/").filter(Boolean).map((Q)=>{try{return decodeURIComponent(Q)}catch{return""}})}var aR=/^[a-z0-9](?:[a-z0-9]|-(?!-))*$/i,k3=(Q,U)=>Q&&U&&aR.test(Q)&&aR.test(U)?`${Q}/${U}`:"";function M0(Q){let U=`/${Q.map(encodeURIComponent).join("/")}`;if(qH!==null)qH=U;else window.history.pushState(null,"",`${t1}${U}`);window.dispatchEvent(new PopStateEvent("popstate"))}function KO(Q,U){let Z=FH(u3()[Q]?.origin);if(Z&&Z!==L0){XH(Z,ZH(Q),Q,`${t1}/${U.map(encodeURIComponent).join("/")}`);return}M0(U)}async function sR(){let[Q,U]=d8(),Z=k3(Q,U),K=Z?[Z]:JO;if(K.length===0){let H=await s8(`${L0}/-/ping`).catch(()=>null);K=H?.ok?(await H.json().catch(()=>({}))).worlds??[]:[]}K=K.filter((H)=>{let[Y,W,...L]=H.split("/");return L.length===0&&k3(Y,W)===H});for(let H of K){let Y=await s8(`${L0}/-/${H}/session`,{method:"POST"}).catch(()=>null);if(!Y)continue;let W=await Y.json().catch(()=>({})),L=P9(W.origin)?.origin;if(Y.status===409&&L&&L!==L0)return window.location.replace(`${L}${t1}/${H}`),"moved";if(Y.ok&&W.local)return{token:typeof W.token==="string"&&W.token?W.token:h6}}return null}function sj(){let[Q,U]=K1.useState(tF),Z=(K)=>()=>{try{if(K==="system")localStorage.removeItem("volter.theme");else localStorage.setItem("volter.theme",K)}catch{}Bq(K),U(K)};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((K)=>F.jsxDEV("button",{type:"button",role:"radio","aria-checked":Q===K,onClick:Z(K),children:K==="system"?"System":K==="light"?"Light":"Dark"},K,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function tj(){let[Q,U]=K1.useState(ij()),[Z,K]=K1.useState(!1),[H,Y]=K1.useState(!1),[W,L]=K1.useState(""),[T,R]=K1.useState(null),[M,A]=K1.useState(null),[O,P]=K1.useState(d8());K1.useEffect(()=>{let g=()=>P(d8());return window.addEventListener("popstate",g),()=>window.removeEventListener("popstate",g)},[]),K1.useEffect(()=>{let[g,q1]=d8(),t=k3(g,q1),[W1,T1]=t?t.split("/"):[],O1=u3()[O9];if(!O9||!Q||!W1||!T1||!O1?.made||O1.parent!==`${W1}/${T1}`||k3(...O9.split("/"))!==O9)return;try{window.history.replaceState(null,"",window.location.pathname+window.location.search)}catch{}z0(Q,`/-/${W1}/${T1}/branches/${O9}`,{method:"DELETE"}).catch(()=>null).then(()=>HU(O9))},[Q]);let N=K1.useCallback(async(g)=>{if(A(null),!g){let T1=await sR();if(T1==="moved")return;if(T1){if(K(!0),T1.token!==h6)pJ(T1.token);U(T1.token);return}R(null),Y(!0);return}if(E6&&g===h6){let T1=await sR();if(T1==="moved")return;if(T1)K(!0)}if(E6&&g===$O){let[T1,O1]=d8(),L1=k3(T1,O1),[U1,P1]=L1?L1.split("/"):[],v1=U1&&P1?await s8(`${L0}/-/${U1}/${P1}/session`,{method:"POST",headers:{"x-volter-pass":o8.get("pass")??""}}).catch(()=>null):null;if(!v1){A(`${L0} did not answer: no session was opened`),R(null);return}if(!v1.ok){A(`${await C5(v1)}. Open it again from the platform.`),R(null);return}qO((await v1.json().catch(()=>({}))).issuer),U(h6);return}if(E6&&g!==h6){let[T1,O1]=d8(),L1=k3(T1,O1),[U1,P1]=L1?L1.split("/"):[],v1=U1&&P1?await s8(`${L0}/-/${U1}/${P1}/session`,{method:"POST",headers:{"x-volter-token":g}}).catch(()=>null):null;if(!v1){A(`${L0} did not answer: no session was opened`),R(null);return}if(!v1.ok){let A1=await C5(v1);A(v1.status===401||v1.status===403?`That token does not open ${U1}/${P1}.`:v1.status===409?`${U1}/${P1}'s session lives at another origin: ${A1}`:`The World could not open a session (${v1.status}): ${A1}`),R(null);return}U(h6);return}let q1=E6?new Response(null,{status:404}):await z0(g,"/-/worlds");if(q1.ok){let{worlds:T1}=await q1.json();R({kind:"admin",worlds:T1});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 T1=await q1.json().catch(()=>({}));A(`The platform could not list your worlds${T1.error?`: ${T1.error}`:""}. Reload; if it stays, the status page says what is wrong.`),R(null);return}let t=JO;if(t.length===0){let T1=await s8(`${L0}/-/ping`);if(!T1.ok){A(`${L0} does not answer as a host`),R(null);return}if(t=(await T1.json()).worlds??[],t.length===0){A(`${L0} does not list its Worlds: open a World at its own address, ${L0}${t1}/<org>/<world>`),R(null);return}}let W1=[];for(let T1 of t){let O1=await z0(g,`/-/${T1}/twins`);if(O1.ok){let L1=await O1.json();W1.push({name:T1,base:`${D3}/${T1}`,twins:(L1.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})},[]);K1.useEffect(()=>{N(Q)},[Q,N]);let V=(g)=>T?.kind==="admin"?T.worlds.find((q1)=>q1.name===g)?.token??Q:Q,[v,C]=K1.useState("");if(!Q||!T&&!M)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(FJ,{href:`${t1}/`},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:(g)=>{g.preventDefault(),pJ(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:(g)=>L(g.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 u=()=>{if(Z){window.location.reload();return}if(E6){let[g,q1]=d8(),t=k3(g,q1),[W1,T1]=t?t.split("/"):[],O1=()=>window.location.replace(x2()?`${x2()}/`:`${L0}${t1}/${W1&&T1?`${W1}/${T1}`:""}?signin`);if(setTimeout(O1,2000),W1&&T1)s8(`${L0}/-/${W1}/${T1}/session/end`,{method:"POST"}).catch(()=>null).then(O1);else O1();return}if(T)for(let g of T.worlds)navigator.sendBeacon(`${g.base.replace(/\/[^/]+\/[^/]+$/,"")}/-/${g.name}/session/end`);pJ(""),U(""),L(""),R(null),M0([])};if(M||!T)return F.jsxDEV("main",{className:"app gate",children:F.jsxDEV("div",{className:"gate-window",children:[F.jsxDEV(FJ,{href:`${t1}/`},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),x2()?F.jsxDEV("a",{className:"button primary",href:`${x2()}/`,children:["Back to ",new URL(x2()).host]},void 0,!0,void 0,this):F.jsxDEV("button",{type:"button",className:"primary",onClick:u,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[f,j,D,h,E,b,k]=O,x=D==="~",$1=/^[A-Za-z0-9_-]+$/,Q1=/^[^\u0000-\u001f\u007f]{1,200}$/,J1=x||!D||!$1.test(D)?void 0:D,m=E&&$1.test(E)?b!==void 0&&h!=="changes"&&h!=="screens"?k3(E,b)||void 0:E:void 0,p=h==="changes"&&E==="changesets"&&b&&$1.test(b)?b:h==="screens"&&b&&k&&/^[A-Za-z0-9_.-]+$/.test(b)&&Q1.test(k)?`${b}:${k}`:void 0,c=k3(f,j),a=c?u3()[c]??null:null,i=(g)=>ZH(g)||V(g),o=a?T.kind==="admin"?T.worlds.find((g)=>g.name===a.parent)?.token??null:T.worlds.some((g)=>g.name===a.parent)?Q:null:null,y=async(g)=>{let q1=FH(g.parentOrigin);if(q1&&q1!==L0){HU(g.name),window.location.assign(`${q1}${t1}/${g.parent}#close=${encodeURIComponent(g.name)}`);return}if(g.made)await z0(V(g.parent),`/-/${g.parent}/branches/${g.name}`,{method:"DELETE"}).catch(()=>null),HU(g.name);M0(g.parent.split("/"))};return F.jsxDEV("main",{className:c?"app workspace":"app home",children:[c?null:F.jsxDEV("header",{children:[c?F.jsxDEV(lA,{},void 0,!1,void 0,this):null,F.jsxDEV(FJ,{href:`${Y4()&&Y4()!==L0?Y4():""}${t1}/`,onClick:(g)=>{if(Y4()&&Y4()!==L0)return;g.preventDefault(),M0([])}},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:`${t1}/${c}`,className:"crumb-world",onClick:(g)=>{g.preventDefault(),M0(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,x&&h==="trace"?F.jsxDEV("span",{children:" / trace"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),x2()?F.jsxDEV("a",{href:`${x2()}/${c?encodeURIComponent(c.split("/")[0]):""}`,title:`Back to the platform at ${new URL(x2()).host}`,className:"back-link",children:["← ",F.jsxDEV("span",{className:"back-text",children:c?`${c.split("/")[0]}'s Worlds`:new URL(x2()).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":v?`signed in as ${v}`:T.kind==="admin"?"host: admin":"opened with a link or key"},void 0,!1,void 0,this),c||Z?null:F.jsxDEV("button",{onClick:u,children:"Sign out"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c?F.jsxDEV(_V,{name:c,token:i(c),twin:J1,tab:x?h??"overview":"overview",arg:x?m:void 0,...x&&p?{sub:p}:{},admin:a?null:T.kind==="admin"?Q:null,snapshot:a,parentToken:o,who:{local:Z,person:v||null,admin:T.kind==="admin"},onSignOut:u,onReturn:y,opens:(g)=>!!u3()[g]||T.kind==="admin"&&T.worlds.some((q1)=>q1.name===g),onRemoved:()=>{N(Q),M0([])},onWho:C,worlds:T.worlds.map((g)=>g.name)},c,!1,void 0,this):F.jsxDEV(oj,{mode:T,admin:T.kind==="admin"?Q:null,reload:()=>N(Q)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function oj({mode:Q,admin:U,reload:Z}){let[K,H]=K1.useState(""),[Y,W]=K1.useState(""),[L,T]=K1.useState(""),[R,M]=K1.useState(null),A=async(E)=>{if(!await c4({title:`Rotate the tokens of ${E}?`,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 z0(U,`/-/worlds/${E}/rotate`,{method:"POST"}),k=await b.json().catch(()=>({}));M(b.ok?`rotated ${E}: the new tokens are shown once — token ${k.token} · read token ${k.readToken}`:k.error?F2(k.error).text:`answered ${b.status}`),await Z()},O=async(E)=>{let b=await z0(U,`/-/worlds/${E}`,{method:"DELETE"}),k=await b.json().catch(()=>({}));M(b.ok?`removed ${E}`:k.error?F2(k.error).text:`answered ${b.status}`),await Z()},[P,N]=K1.useState(!1),[V,v]=K1.useState(!1),[C,u]=K1.useState(""),f=async(E)=>{E.preventDefault(),M(null),N(!0);try{let b=await z0(U,"/-/worlds",{method:"POST",body:JSON.stringify({org:K,world:Y,vendors:L.split(",").map((x)=>x.trim()).filter(Boolean)})}),k=await b.json();if(!b.ok){M(k.error?F2(k.error).text:`the host answered ${b.status}`);return}M(`provisioned ${k.name}`),W(""),T(""),v(!1),await Z()}finally{N(!1)}},j=C.trim().toLowerCase(),D=Q.worlds.filter((E)=>!j||E.name.toLowerCase().includes(j)||E.twins.some((b)=>b.vendor.includes(j))),h=[...new Set(D.map((E)=>E.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:[E0(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),v(!0)},children:[F.jsxDEV(Q0,{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:(E)=>u(E.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((E)=>F.jsxDEV(K1.default.Fragment,{children:[F.jsxDEV("p",{className:"menu-label home-org",children:E},void 0,!1,void 0,this),F.jsxDEV("ul",{className:"home-list",children:D.filter((b)=>b.name.split("/")[0]===E).map((b)=>F.jsxDEV("li",{children:[F.jsxDEV("a",{href:`${t1}/${b.name}`,onClick:(k)=>{k.preventDefault(),M0(b.name.split("/"))},children:[F.jsxDEV(Q0,{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((k)=>F.jsxDEV("span",{title:d1(k.vendor),children:F.jsxDEV(s0,{vendor:k.vendor},void 0,!1,void 0,this)},k.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:(k)=>{k.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:(k)=>{k.currentTarget.closest("details")?.removeAttribute("open"),c4({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((x)=>{if(x)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)]},E,!0,void 0,this)),D.length===0?F.jsxDEV("p",{className:"mode home-note",children:j?`No World matches ${C}.`:"No Worlds here yet."},void 0,!1,void 0,this):null,F.jsxDEV(P5,{open:V,onClose:()=>{if(!P)v(!1)},title:"New World",footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>v(!1),disabled:P,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"provision",className:"primary",disabled:P,children:P?"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:f,className:"stack",children:[F.jsxDEV("label",{children:[F.jsxDEV("span",{children:"Org"},void 0,!1,void 0,this),F.jsxDEV("input",{name:"org",value:K,onChange:(E)=>H(E.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:(E)=>W(E.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:L,onChange:(E)=>T(E.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 nj=["changes","events","trace","vendors","screens","canvas","branches","settings","remote","vault"],ej=(Q,U)=>{let Z=U?.screens?.find((K)=>K.path.replace(/\/+$/,"")==="")??U?.screens?.find((K)=>!/[{<]/.test(K.path));return U&&Z?`${D3}/${Q}/${U.twin}${Z.path.startsWith("/")?Z.path:`/${Z.path}`}`:null},tR={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 d5(Q){let U=Q.operation??Q.op,Z=(U.includes(".")?U.slice(U.lastIndexOf(".")+1):U).toLowerCase(),K=Q.subject.type.replace(/[_-]+/g," ").trim(),H=`${K.charAt(0).toUpperCase()}${K.slice(1)}`,Y=/(^|\.)twin\./.test(U)||/^seed_/.test(Z),W=U.replace(/[._]+/g," ").trim(),L=Y?`${H} seeded`:tR[Z]?`${H} ${tR[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,P)=>`${O==="!"?"@":O}${P}`).replace(/<(?:https?:[^|>]+)\|([^>]+)>/g,"$1").replace(/<(https?:[^>]+)>/g,"$1");return{what:L,label:M===null?null:M.length>80?`${M.slice(0,79)}…`:M}}var b3=(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 _V({name:Q,token:U,twin:Z,tab:K,arg:H,sub:Y,admin:W,snapshot:L,parentToken:T,who:R,onSignOut:M,onReturn:A,opens:O,onRemoved:P,onWho:N,worlds:V=[]}){let[v,C]=K1.useState("pending"),[u,f]=K1.useState(null),[j,D]=K1.useState(0),[h,E]=K1.useState(null);K1.useEffect(()=>{let L1=!0;return f(null),z0(U,`/-/${Q}/session`,{method:"POST"}).then(async(U1)=>{let P1=await U1.json().catch(()=>({}));if(qO(P1.issuer),P1.who)N?.(P1.who);E(typeof P1.signsAs==="string"?P1.signsAs:null);let v1=P9(P1.origin)?.origin;if(U1.status===409&&v1&&v1!==L0){XH(v1,U,Q);return}if(!L1)return;if(C(!U1.ok?"unknown":P1.scope==="read"?"read":P1.scope==="write"?"write":"unknown"),!U1.ok)f(P1.error?F2(P1.error).text:`answered ${U1.status}`)}).catch((U1)=>{if(L1)C("unknown"),f(`the World did not answer: ${U1 instanceof Error?U1.message:String(U1)}`)}),()=>{L1=!1}},[Q,U,j]);let b=u?{state:"error",error:u}:v==="pending"?{state:"pending"}:{state:"ok",scope:v},k=v==="write",x=(L1)=>{if(L1.status!==403)return;L1.clone().json().then((U1)=>{if(/read token|opens only reads|write access|reads only/i.test(U1?.error??""))C("read")},()=>null)},[$1,Q1]=K1.useState(0);K1.useEffect(()=>{let L1=setInterval(()=>{if(!document.hidden)Q1((U1)=>U1+1)},5000);return()=>clearInterval(L1)},[]);let[J1,m]=K1.useState(0),p=f0(U,`/-/${Q}/clock`,$1+J1),c=f0(U,`/-/${Q}/twins`),a=f0(U,`/-/${Q}/branches`,J1),i=f0(U,`/-/${Q}/map`,Math.floor($1/2)),o=!(a.state==="error"&&(a.status===404||a.status===405)),y=nj.includes(K)?K:"overview",g=c.state==="ok"?c.data.twins.map((L1)=>L1.twin):[];if(Z&&c.state==="ok"&&!g.includes(Z))return F.jsxDEV("main",{className:"center",children:F.jsxDEV(Q9,{title:`${Q} has no ${Z}`,action:F.jsxDEV("a",{href:`${t1}/${Q}`,onClick:(L1)=>{L1.preventDefault(),M0(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,t=()=>{C("pending"),D((L1)=>L1+1)};if(y==="canvas"||y==="vendors"&&!q1||K==="screens"&&!H)return F.jsxDEV(vV,{name:Q,token:U,twins:c,session:b,retry:t,snapshot:L,back:()=>M0(Q.split("/")),canWrite:k&&!L},void 0,!1,void 0,this);let T1=K==="settings"?{kind:"settings",tab:((L1)=>HO.find(([U1])=>U1===L1)?.[0]??"account")(H)}:K==="remote"?{kind:"settings",tab:"remote"}:K==="vault"?{kind:"settings",tab:"vault"}:K==="branches"?{kind:"branches",...H?{open:H}:{}}:null,O1=Z?"vendor":K==="screens"&&H?"screen":y==="vendors"&&q1?"vendor":K==="trace"?"trace":K==="events"?"events":K==="changes"&&H==="changesets"?"history":"changes";return F.jsxDEV(KV,{name:Q,token:U,view:O1,win:T1,who:R,snapshot:L,onReturn:A,onSignOut:M,worlds:V,session:b,retry:t,...O1==="vendor"?{arg:Z??q1}:O1==="events"||O1==="trace"||O1==="screen"?H?{arg:H}:{}:{},...Y?{sub:Y}:{},twins:c,map:i,branches:o?a:null,clock:p,canWrite:k&&!L,refused:x,signsAs:h,opens:O,tick:$1,admin:W,onRemoved:P,onClock:()=>m((L1)=>L1+1),scope:L?"read":v},void 0,!1,void 0,this)}function Q0({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:(dR[Q]??[]).map(([Z,K],H)=>K1.default.createElement(Z,{key:H,...K}))},void 0,!1,void 0,this)}function zU(Q){let U=(Z)=>{let K=(Z.operation??Z.op).toLowerCase();return K.includes(".")?K.slice(K.lastIndexOf(".")+1):K};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 HO=[["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"]],JV=(Q,U)=>{let Z=U.split("/").pop()??U,K=Q.split("/").pop()??"";return Z.startsWith(`${K}-`)?Z.slice(K.length+1):Z},r8=(Q)=>Q.replace(/^_+/,"").replace(/[_-]+/g," ");function YO({record:Q,history:U}){let Z=Q.writes[Q.writes.length-1],K=d5(Z),H=zU(Q.writes),Y=new Set(Q.writes.map((A)=>A.id)),W=Q.writes[0].occurredAt,L={};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(L,A.fields??{})}let T={...L};for(let A of Q.writes)Object.assign(T,A.fields??{});let R=H.tone==="added"&&Object.keys(L).length===0,M=[...new Set([...Object.keys(L),...Object.keys(T)])].filter((A)=>!PO(L[A],T[A]));return F.jsxDEV("div",{className:"ws-diff","aria-label":`${K.label??b3(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(Q0,{name:H.icon,size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(s0,{vendor:Q.twin},void 0,!1,void 0,this),F.jsxDEV("div",{className:"cell-label",children:[F.jsxDEV("b",{children:K.label??b3(Z)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[d1(Q.twin)," · ",Z.subject.type.replace(/^_+/,"").replace(/[_-]+/g," ")," ",F.jsxDEV("code",{children:b3(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:d5(A).what},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(I0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",cJ(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 L?"was":"none",children:A in L?F.jsxDEV(E3,{v:L[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(E3,{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 zO({records:Q,selected:U,onPick:Z,label:K}){let[H,Y]=K1.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{}},L=(R,M)=>{let A=R.writes[R.writes.length-1],O=d5(A),P=zU(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(s0,{vendor:R.twin},void 0,!1,void 0,this),F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:O.label??b3(A)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[r8(A.subject.type)," · ",O.what.split(" ").slice(-1)[0],R.writes.length>1?` · ${E0(R.writes.length,"write")}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:`ws-kind ${P.tone}`,title:P.word,"aria-label":P.word,children:F.jsxDEV(Q0,{name:P.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":K,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(s0,{vendor:R},void 0,!1,void 0,this),F.jsxDEV("b",{children:d1(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)=>L(A,!0))},void 0,!1,void 0,this)]},R,!0,void 0,this)}):Q.map((R)=>L(R,!1))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function $V({name:Q,token:U,branches:Z,opens:K,refused:H,onChanged:Y}){let[W,L]=K1.useState(""),[T,R]=K1.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:[],P=W.trim().toLowerCase(),N=(v)=>!P||v.toLowerCase().includes(P),V=(v)=>{v.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(Q0,{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(Q0,{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:(v)=>L(v.target.value)},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:(v)=>{V(v),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((v)=>N(v.name)).map((v)=>F.jsxDEV("li",{className:v.name===M?"current":void 0,children:[F.jsxDEV("span",{className:"tick",children:v.name===M?F.jsxDEV(Q0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(Q0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:v.name},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:v.name===M?"served here":v.running?"running":"stopped"},void 0,!1,void 0,this)]},v.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((v)=>N(v.name)).map((v)=>{let C=F.jsxDEV(F.Fragment,{children:[F.jsxDEV("span",{className:"tick",children:F.jsxDEV(Q0,{name:"git-branch",size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"name",children:JV(Q,v.name)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"mode",children:v.at?.instant?F.jsxDEV(F.Fragment,{children:["as of ",F.jsxDEV(I0,{iso:v.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),u=v.expiresAt?`Goes away ${new Date(v.expiresAt).toLocaleString()}`:"Kept";return F.jsxDEV("li",{children:K(v.name)?F.jsxDEV("a",{href:`${t1}/${v.name}`,title:u,onClick:(f)=>{f.preventDefault(),V(f),KO(v.name,v.name.split("/"))},children:C},void 0,!1,void 0,this):F.jsxDEV("span",{title:`${u}. Its tokens went to whoever made it; it opens from their page.`,children:C},void 0,!1,void 0,this)},v.name,!1,void 0,this)})},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-branch-foot",children:F.jsxDEV("a",{href:`${t1}/${Q}/~/branches`,onClick:(v)=>{v.preventDefault(),V(v),M0([...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(BO,{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 WO({name:Q,view:U,changes:Z,changesets:K}){let H=(Y)=>(W)=>{W.preventDefault(),M0([...Q.split("/"),"~",...Y])};return F.jsxDEV("nav",{className:"tabs ws-pane-tabs","aria-label":"Changes and history",children:[F.jsxDEV("a",{href:`${t1}/${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:`${t1}/${Q}/~/changes/changesets`,className:U==="history"?"on":void 0,"aria-current":U==="history"?"page":void 0,onClick:H(["changes","changesets"]),children:["History",K?F.jsxDEV("span",{className:"count",children:K},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function QV({name:Q,token:U,sets:Z,sub:K,signsAs:H,canWrite:Y,rooted:W,refused:L,onChanged:T,changes:R,withScreens:M,required:A}){let[O,P]=K1.useState(null),[N,V]=K1.useState(!1),v=Z.state==="ok"?[...Z.data.changesets].sort((b,k)=>k.createdAt.localeCompare(b.createdAt)):[],C=v.find((b)=>b.name===K)??v[0],u=K1.useMemo(()=>{let b=new Map;for(let k of C?IO(C):[]){let x=`${k.twin}:${k.entry.subject.type}:${k.entry.subject.id}`,$1=b.get(x)??{key:x,twin:k.twin,writes:[]};$1.writes.push(k.entry),b.set(x,$1)}return[...b.values()]},[C]),f=u.find((b)=>b.key===O)??u[0],j=f0(U,f?`/-/${Q}/log/${f.twin}`:null),D={added:0,removed:0,changed:0};for(let b of u)D[zU(b.writes).tone]=(D[zU(b.writes).tone]??0)+1;let h=C?WU(C):null,E=C?wO(C,A):null;return F.jsxDEV("div",{className:"ws-two",children:[F.jsxDEV("div",{className:"ws-files",children:[F.jsxDEV(WO,{name:Q,view:"history",changes:R,changesets:v.length},void 0,!1,void 0,this),F.jsxDEV(b2,{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:v.map((b)=>{let k=C?.name===b.name,x=WU(b).label==="Not sent";return F.jsxDEV("li",{children:F.jsxDEV("a",{href:`${t1}/${Q}/~/changes/changesets/${b.name}`,className:k?"on":void 0,"aria-current":k?"true":void 0,onClick:($1)=>{$1.preventDefault(),P(null),M0([...Q.split("/"),"~","changes","changesets",b.name])},children:[F.jsxDEV("span",{className:"ws-row-text",children:[F.jsxDEV("b",{children:QH(b)},void 0,!1,void 0,this),F.jsxDEV("small",{children:[b.owner??(b.cutBy?YU(b.cutBy):"unrecorded")," • ",F.jsxDEV(I0,{iso:b.createdAt},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),x?F.jsxDEV("span",{className:"ws-unpushed",title:"Not pushed to the remote yet",children:F.jsxDEV(Q0,{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(Q9,{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&&E?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:QH(C)},void 0,!1,void 0,this),F.jsxDEV("p",{className:"ws-commit-stat",children:[F.jsxDEV(Q0,{name:"file-diff",size:16},void 0,!1,void 0,this)," ",E0(u.length,"changed record"),D.added?F.jsxDEV("span",{className:"plus",children:[" +",D.added]},void 0,!0,void 0,this):null,D.removed?F.jsxDEV("span",{className:"minus",children:[" −",D.removed]},void 0,!0,void 0,this):null,D.changed?F.jsxDEV("span",{className:"dot",children:[" •",D.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(I0,{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":YU(C.cutBy):"unrecorded"],...C.pushedBy?[["Pushed by",YU(C.pushedBy)]]:[]].map(([b,k])=>F.jsxDEV("span",{children:[F.jsxDEV("span",{className:"mode",children:b},void 0,!1,void 0,this)," ",k]},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-${E.tone}`,children:E.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(zO,{records:u,...f?{selected:f.key}:{},onPick:P,label:"Records it changed"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:f?F.jsxDEV(YO,{record:f,history:j.state==="ok"?j.data.entries:j.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(P5,{open:N,onClose:()=>V(!1),title:`Review: ${QH(C)}`,wide:!0,children:[F.jsxDEV(_O,{name:Q,token:U,signsAs:H,c:C,canWrite:Y,rooted:W,refused:L,onChanged:T,part:"head",required:A},`h:${C.name}`,!1,void 0,this),F.jsxDEV(_O,{name:Q,token:U,signsAs:H,c:C,canWrite:Y,rooted:W,refused:L,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 qV({name:Q,token:U,vendors:Z,vendor:K,tick:H}){let[Y,W]=K1.useState(oR*4),[L,T]=K1.useState(""),[R,M]=K1.useState(null),A=f0(U,`/-/${Q}/timeline?limit=${Y}${K?`&twin=${encodeURIComponent(K)}`:""}`,Math.floor(H/2)),O=A.state==="ok"?IV(A.data.entries):[],P=[...new Set(O.map((D)=>d5(D.entry).what))].sort(),N=O.filter((D)=>!L||d5(D.entry).what===L),V=N.find((D)=>I9(D)===R)??N[0],v=(D)=>(h)=>{h.preventDefault(),M(null),M0([...Q.split("/"),"~","events",...D?[D]:[]])},C=V?.entry.input&&typeof V.entry.input==="object"?V.entry.input.body:void 0,u=V?rj(V.entry.traceparent):null,f=V?nR(V):null,j=V?MV(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:`${t1}/${Q}/~/events`,className:!K?"on":void 0,"aria-current":!K?"page":void 0,onClick:v(),children:"All"},void 0,!1,void 0,this),Z.map((D)=>F.jsxDEV("a",{href:`${t1}/${Q}/~/events/${D}`,className:K===D?"on":void 0,"aria-current":K===D?"page":void 0,onClick:v(D),children:[F.jsxDEV(s0,{vendor:D},void 0,!1,void 0,this),d1(D)]},D,!0,void 0,this))]},void 0,!0,void 0,this),F.jsxDEV("select",{"aria-label":"Operation",value:L,onChange:(D)=>{T(D.target.value),M(null)},children:[F.jsxDEV("option",{value:"",children:"Every operation"},void 0,!1,void 0,this),P.map((D)=>F.jsxDEV("option",{value:D,children:D},D,!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(b2,{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:N.map((D)=>{let h=d5(D.entry),E=nR(D),b=V&&I9(D)===I9(V);return F.jsxDEV("tr",{className:b?"on":void 0,"aria-selected":b,onClick:()=>M(I9(D)),children:[F.jsxDEV("td",{className:"mono",children:F.jsxDEV(I0,{iso:D.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(s0,{vendor:D.twin},void 0,!1,void 0,this),d1(D.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:b3(D.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:cJ(D.entry,D.caller)},void 0,!1,void 0,this),F.jsxDEV("td",{children:E?F.jsxDEV("span",{className:E.bad?"badge cs-bad":E.status==="deployed"?"badge cs-done":"badge",children:E.status},void 0,!1,void 0,this):F.jsxDEV("span",{className:"mode",children:GO(D.entry)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},I9(D),!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:MO(V.entry)},void 0,!1,void 0,this),f?F.jsxDEV("span",{className:f.bad?"badge cs-bad":"badge cs-good",children:f.status},void 0,!1,void 0,this):null,F.jsxDEV("code",{children:[V.entry.subject.type,":",b3(V.entry)]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(I0,{iso:V.entry.occurredAt},void 0,!1,void 0,this)," · ",cJ(V.entry,V.caller)]},void 0,!0,void 0,this),u?F.jsxDEV("a",{href:`${t1}/${Q}/~/trace/${u.trace}`,onClick:(D)=>{D.preventDefault(),M0([...Q.split("/"),"~","trace",u.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(RV,{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),j.length?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h4",{children:"Usage"},void 0,!1,void 0,this),F.jsxDEV("dl",{className:"fields",children:j.map(([D,h])=>F.jsxDEV(K1.default.Fragment,{children:[F.jsxDEV("dt",{children:D},void 0,!1,void 0,this),F.jsxDEV("dd",{children:h},void 0,!1,void 0,this)]},D,!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(RO,{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((D)=>D.entry.receipt?.status??"landed copy").join(" · "):OV(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?`${N.indexOf(V)+1} of ${N.length}`:N.length," events",K?` at ${d1(K)}`:""]},void 0,!0,void 0,this),A.state==="ok"&&A.data.next?F.jsxDEV("button",{type:"button",onClick:()=>W((D)=>D+oR*4),children:"Load older"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function UV({name:Q,token:U,id:Z}){let K=/^[0-9a-f]{32}$/.test(Z),H=f0(U,K?`/-/${Q}/timeline?trace=${Z}&limit=500`:null),Y=H.state==="ok"?[...H.data.entries].sort((A,O)=>-AO(A,O)):[],[W,L]=K1.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:`${t1}/${Q}/~/events`,onClick:(A)=>{A.preventDefault(),M0([...Q.split("/"),"~","events"])},children:[F.jsxDEV(Q0,{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]?`${d5(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),!K?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(b2,{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(I0,{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(d1).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(Q9,{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,P=I9(A),N=d5(A.entry);return F.jsxDEV(K1.default.Fragment,{children:[F.jsxDEV("div",{className:W===P?"ws-span on":"ws-span",role:"row",onClick:()=>L(W===P?null:P),children:[F.jsxDEV("span",{role:"cell",className:"ws-span-name",children:[F.jsxDEV(s0,{vendor:A.twin},void 0,!1,void 0,this),F.jsxDEV("b",{children:d1(A.twin)},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[N.what,N.label?` “${N.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===P?F.jsxDEV("div",{className:"ws-span-detail",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("code",{children:MO(A.entry)},void 0,!1,void 0,this)," on ",F.jsxDEV("code",{children:[A.entry.subject.type,":",b3(A.entry)]},void 0,!0,void 0,this)," · ",cJ(A.entry,A.caller)," · ",GO(A.entry)]},void 0,!0,void 0,this),F.jsxDEV(RO,{fields:A.entry.fields},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},P,!0,void 0,this)})]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function GV({name:Q,token:U,vendor:Z,withScreens:K,tick:H}){let Y=f0(U,`/-/${Q}/checkpoint/${Z}`,Math.floor(H/6)),W=Y.state==="ok"?Y.data.tree.filter((j)=>j.deleted!==!0):[],L=[...new Set(W.map((j)=>j.type))].map((j)=>({type:j,count:W.filter((D)=>D.type===j).length})).sort((j,D)=>Number(j.type.startsWith("_"))-Number(D.type.startsWith("_"))||r8(j.type).localeCompare(r8(D.type))),[T,R]=K1.useState(null),[M,A]=K1.useState(null),O=L.some((j)=>j.type===T)?T:L[0]?.type,P=W.filter((j)=>j.type===O),N=P.find((j)=>j.id===M)??P[0],V=["name","email","title","text","description","subject","amount","percent_off","unit_amount","currency","status","channel","customer","product"],v=new Set(["id","type","object","livemode","created","updated","updatedAt","deleted"]),C=(j)=>!v.has(j)&&P.some((D)=>D[j]!==void 0&&D[j]!==null&&typeof D[j]!=="object"),u=[...new Set(P.flatMap((j)=>Object.keys(j)))],f=[...V.filter(C),...u.filter((j)=>!V.includes(j)&&C(j))].slice(0,4);return F.jsxDEV("div",{className:"ws-table-app",children:[F.jsxDEV("nav",{className:"ws-tables","aria-label":`${d1(Z)}'s records`,children:[F.jsxDEV("div",{className:"ws-list-head",children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(s0,{vendor:Z},void 0,!1,void 0,this),d1(Z)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(b2,{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),L.map((j)=>F.jsxDEV("a",{href:`#${j.type}`,className:O===j.type?"on":void 0,"aria-current":O===j.type?"true":void 0,onClick:(D)=>{D.preventDefault(),R(j.type),A(null)},children:[F.jsxDEV(Q0,{name:"table-2",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:r8(j.type)},void 0,!1,void 0,this),F.jsxDEV("span",{className:"count",children:j.count},void 0,!1,void 0,this)]},j.type,!0,void 0,this)),F.jsxDEV("p",{className:"menu-label",children:"Also"},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${t1}/${Q}/~/events/${Z}`,onClick:(j)=>{j.preventDefault(),M0([...Q.split("/"),"~","events",Z])},children:[F.jsxDEV(Q0,{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),K?F.jsxDEV("a",{href:`${t1}/${Q}/~/screens/${Z}`,onClick:(j)=>{j.preventDefault(),M0([...Q.split("/"),"~","screens",Z])},children:[F.jsxDEV(Q0,{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"&&L.length===0?F.jsxDEV(Q9,{title:`${d1(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,P.length?F.jsxDEV("table",{className:"ws-grid","aria-label":`${r8(O??"")} records`,children:[F.jsxDEV("thead",{children:F.jsxDEV("tr",{children:[F.jsxDEV("th",{children:"id"},void 0,!1,void 0,this),f.map((j)=>F.jsxDEV("th",{children:j},j,!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:P.map((j)=>F.jsxDEV("tr",{className:N?.id===j.id?"on":void 0,"aria-selected":N?.id===j.id,onClick:()=>A(j.id),children:[F.jsxDEV("td",{children:F.jsxDEV("code",{children:j.id},void 0,!1,void 0,this)},void 0,!1,void 0,this),f.map((D)=>F.jsxDEV("td",{className:"ws-cell-clip",children:j[D]===void 0||j[D]===null?F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this):String(j[D])},D,!1,void 0,this)),F.jsxDEV("td",{className:"mode",children:typeof j.updatedAt==="string"?F.jsxDEV(I0,{iso:j.updatedAt},void 0,!1,void 0,this):"—"},void 0,!1,void 0,this)]},j.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:N?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("div",{className:"ws-list-head",children:[F.jsxDEV("span",{children:r8(N.type)},void 0,!1,void 0,this),F.jsxDEV("code",{children:N.id},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("dl",{className:"ws-record-fields",children:Object.entries(N).filter(([j])=>j!=="type"&&j!=="id").map(([j,D])=>F.jsxDEV(K1.default.Fragment,{children:[F.jsxDEV("dt",{children:j},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(E3,{v:D},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},j,!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:N?`${P.indexOf(N)+1} of ${E0(P.length,r8(O??"record"))}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ZV({name:Q,vendor:U,url:Z,mapError:K,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(s0,{vendor:U},void 0,!1,void 0,this),F.jsxDEV("b",{children:d1(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:`${t1}/${Q}/~/vendors/${U}`,onClick:(L)=>{L.preventDefault(),M0([...Q.split("/"),"~","vendors",U])},children:[F.jsxDEV(Q0,{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(Q0,{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,K?F.jsxDEV("p",{role:"alert",className:"ws-screens-note",children:["The World did not say where its screens are: ",K]},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:[d1(U),"'s pack lists no screens."]},void 0,!0,void 0,this):null,Y.state==="ok"&&Z?F.jsxDEV("iframe",{title:`${d1(U)}, as this World shows it`,src:Z},U,!1,void 0,this):null]},void 0,!0,void 0,this)}function FV({name:Q,token:U,who:Z,scope:K}){let[H,Y]=K1.useState(0),W=f0(U,`/-/${Q}/twins`),L=f0(U,`/-/${Q}/rules`,H),T=L.state==="ok"?L.data.changesets:null,[R,M]=K1.useState(null),[A,O]=K1.useState(null),[P,N]=K1.useState(!1),[V,v]=K1.useState([]),C=R??T?.approvals??1,u=A??T?.summary??"required",f=T!==null&&(C!==(T.approvals??1)||u!==(T.summary??"required")),j=(x,$1)=>{if(v((Q1)=>[{ok:x,text:$1,at:new Date().toISOString(),n:++lJ},...Q1].slice(0,3)),!x)i0($1,"error")},D=async(x)=>{x.preventDefault(),N(!0);try{let $1=await z0(U,`/-/${Q}/rules`,{method:"PUT",body:JSON.stringify({changesets:{approvals:C,summary:u}})});if(!$1.ok){j(!1,`Save: ${await C5($1)}`);return}j(!0,`Saved: ${C===0?"no approval":E0(C,"approval")} before a deploy; a summary ${u==="required"?"required":"generated when none is given"}.`),M(null),O(null),Y((Q1)=>Q1+1)}finally{N(!1)}},h={gated:"a person deploys an approved changeset",auto:"a push deploys at once",hold:"nothing deploys"},E=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((x)=>x.root?.url):[],k=K!=="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(b2,{load:L,what:"the rules",lines:2},void 0,!1,void 0,this),F.jsxDEV("form",{className:"ws-rules",onSubmit:(x)=>void D(x),"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 ",E,". 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(k)||T===null,children:[F.jsxDEV("label",{className:"check",children:[F.jsxDEV("input",{type:"radio",name:"summary",checked:u==="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:u==="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(Q0,{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:(x)=>M(Number(x.target.value)),disabled:Boolean(k)||T===null,"aria-label":"Approvals required",children:[0,1,2,3,4,5].map((x)=>F.jsxDEV("option",{value:x,children:x===0?"no one: verified is enough":x===1?"1 person":`${x} different people`},x,!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((x)=>F.jsxDEV("li",{children:[F.jsxDEV(s0,{vendor:x.twin},void 0,!1,void 0,this),d1(x.twin),": ",h[x.root.deploy??"gated"]??"gated"]},x.twin,!0,void 0,this))},void 0,!1,void 0,this):null,F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("a",{href:`${t1}/${Q}/~/settings/services`,onClick:(x)=>{x.preventDefault(),M0([...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(x6,{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(k)||P||!f,title:k??void 0,children:P?"Saving…":"Save"},void 0,!1,void 0,this),f?F.jsxDEV("button",{type:"button",onClick:()=>{M(null),O(null)},children:"Cancel"},void 0,!1,void 0,this):null,k?F.jsxDEV("span",{className:"mode",children:[k,"."]},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 XV({who:Q,scope:U,snapshot:Z,portal:K,onSignOut:H}){let Y=U==="write"?"Reads and changes this World":U==="read"?"Reads this World; changes nothing":"…",[W,L]=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,K?`Signed in through ${new URL(K).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(Q0,{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:L},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(Q0,{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),K&&Q.person?F.jsxDEV("p",{className:"mode",children:["Your profile, orgs and keys are on ",F.jsxDEV("a",{href:`${K}/`,children:new URL(K).host},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)}function KV({name:Q,token:U,view:Z,sub:K,arg:H,win:Y,who:W,snapshot:L,onReturn:T,onSignOut:R,worlds:M,session:A,retry:O,twins:P,map:N,branches:V,clock:v,canWrite:C,refused:u,signsAs:f,opens:j,tick:D,admin:h,onRemoved:E,onClock:b,scope:k}){let x=NO(Q,U,D,u),[$1,Q1]=K1.useState(0),J1=$1*1e5+Math.floor(D/2),m=f0(U,`/-/${Q}/diff`,J1),p=f0(U,`/-/${Q}/changesets`,J1),c=f0(U,`/-/${Q}/rules`,J1),[a,i]=K1.useState(null),o=(M1)=>(r1)=>{r1?.preventDefault(),M0([...Q.split("/"),"~",...M1])},y=P.state==="ok"?P.data.twins.map((M1)=>M1.twin):[],g=new Map((N.state==="ok"?N.data.twins:[]).flatMap((M1)=>{let r1=ej(Q,M1);return r1?[[M1.twin,r1]]:[]})),q1=[...g.keys()],t=N.state==="ok"?N.data.twins.filter((M1)=>M1.root).map((M1)=>M1.twin):[],W1=(M1)=>N.state==="ok"?(N.data.twins.find((r1)=>r1.twin===M1)?.resources??[]).reduce((r1,u1)=>r1+u1.count,0):0,T1=V?.state==="ok"&&V.data.checkedOut||Q.split("/")[1],O1=K1.useMemo(()=>{if(m.state!=="ok")return[];let M1=new Map;for(let r1 of m.data.changes){let u1=`${r1.twin}:${r1.entry.subject.type}:${r1.entry.subject.id}`,D0=M1.get(u1)??{key:u1,twin:r1.twin,writes:[]};D0.writes.push(r1.entry),M1.set(u1,D0)}return[...M1.values()]},[m]),L1=O1.find((M1)=>M1.key===a)??O1[0],U1=f0(U,Z==="changes"&&L1?`/-/${Q}/log/${L1.twin}`:null,J1),P1=m.state==="ok"?m.data.changes.length:0,v1=x.waiting.length,A1=x.there,k1=x.origin.state==="ok"?x.origin.data.origin:null,D1=!C?"This session reads the World; it changes nothing":!A1?"No remote: name one in Settings › Remote":null,g1=(M1,r1,u1,D0,o1,X2)=>F.jsxDEV("a",{href:`${t1}/${Q}/~/${D0}`,className:M1?"on":void 0,"aria-current":M1?"page":void 0,onClick:o1,children:[r1,F.jsxDEV("span",{children:u1},void 0,!1,void 0,this),X2?F.jsxDEV("span",{className:"count",children:X2},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),h1=(M1)=>{M1.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(FJ,{href:`${t1}/${Q}`,onClick:(M1)=>{M1.preventDefault(),o(["changes"])()}},void 0,!1,void 0,this),F.jsxDEV("details",{className:"menu ws-pick",children:[F.jsxDEV("summary",{title:"This World",children:[F.jsxDEV(Q0,{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(Q0,{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((M1)=>F.jsxDEV("a",{href:`${t1}/${M1}`,className:M1===Q?"on":void 0,onClick:(r1)=>{r1.preventDefault(),h1(r1),M0(M1.split("/"))},children:[M1===Q?F.jsxDEV(Q0,{name:"check",size:16},void 0,!1,void 0,this):F.jsxDEV(Q0,{name:"globe",size:16},void 0,!1,void 0,this),M1]},M1,!0,void 0,this)),F.jsxDEV("a",{href:`${Y4()&&Y4()!==L0?Y4():""}${t1}/`,onClick:(M1)=>{if(Y4()&&Y4()!==L0)return;M1.preventDefault(),h1(M1),M0([])},children:[F.jsxDEV(Q0,{name:"layout-grid",size:16},void 0,!1,void 0,this),"All Worlds",x2()?` on ${new URL(x2()).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),x2()?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:[D3,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(JH,{text:FU({platform:x2(),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:[D3,"/",Q,"/<vendor>"]},void 0,!0,void 0,this),F.jsxDEV(JH,{text:FU()},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:[D3,"/",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(JH,{text:FU()},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:`${t1}/${Q}/~/settings`,onClick:(M1)=>{h1(M1),o(["settings"])(M1)},children:[F.jsxDEV(Q0,{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($V,{name:Q,token:U,branches:V,opens:j,refused:u,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:T1},void 0,!1,void 0,this),F.jsxDEV("span",{className:"sep",children:":"},void 0,!1,void 0,this),k1?F.jsxDEV("a",{href:`${t1}/${Q}/~/remote`,onClick:o(["remote"]),children:["origin ",k1.namespace,v1?F.jsxDEV("b",{children:[" ↑",v1]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):F.jsxDEV("a",{href:`${t1}/${Q}/~/remote`,onClick:o(["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:`${t1}/${Q}/~/settings/clock`,onClick:o(["settings","clock"]),children:v.state==="ok"?F.jsxDEV(F.Fragment,{children:[v.data.frozen?"stopped at ":"",F.jsxDEV(I0,{iso:v.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 x.pull(),disabled:Boolean(D1)||x.busy!==null,title:D1??`Fetch what ${A1} has and move this branch onto it`,children:[F.jsxDEV(Q0,{name:"arrow-down-to-line",size:16},void 0,!1,void 0,this),x.busy==="Pull"?"Pulling…":"Pull"]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ws-btn",onClick:()=>void x.push(),disabled:Boolean(D1)||x.busy!==null||v1===0,title:D1??(v1?`Push ${E0(v1,"changeset")} to ${A1}`:`Every changeset is at ${A1}`),children:[F.jsxDEV(Q0,{name:"arrow-up-from-line",size:16},void 0,!1,void 0,this),x.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:()=>o(["settings"])(),children:F.jsxDEV(Q0,{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),L?F.jsxDEV("div",{className:"ws-banner",role:"region","aria-label":"Snapshot",children:[F.jsxDEV(Q0,{name:"clock",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:["You are looking at ",F.jsxDEV("b",{children:L.parent},void 0,!1,void 0,this)," as it was at ",F.jsxDEV(I0,{iso:L.at},void 0,!1,void 0,this),": a read-only snapshot",L.expiresAt?F.jsxDEV(F.Fragment,{children:[", gone ",F.jsxDEV(I0,{iso:L.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(L),children:"Return to live"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,x.log.length?F.jsxDEV("div",{className:"ws-said",children:F.jsxDEV(x6,{log:x.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:`${t1}/${Q}/~/screens`,className:Z==="screen"?"ws-screens-entry on":"ws-screens-entry",onClick:o(["screens"]),title:`The board: ${S8(y.map(d1))}`,children:[F.jsxDEV(Q0,{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((M1)=>F.jsxDEV(s0,{vendor:M1},M1,!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),g1(Z==="changes"||Z==="history",F.jsxDEV(Q0,{name:"file-diff",size:16},void 0,!1,void 0,this),"Changes","changes",o(["changes"]),O1.length?String(O1.length):void 0),g1(Z==="events"&&!H||Z==="trace",F.jsxDEV(Q0,{name:"activity",size:16},void 0,!1,void 0,this),"Events","events",o(["events"])),F.jsxDEV("p",{className:"side-group",children:"Records"},void 0,!1,void 0,this),y.map((M1)=>F.jsxDEV(K1.default.Fragment,{children:g1(Z==="vendor"&&H===M1,F.jsxDEV(s0,{vendor:M1},void 0,!1,void 0,this),d1(M1),`vendors/${M1}`,o(["vendors",M1]),W1(M1)?String(W1(M1)):void 0)},M1,!1,void 0,this)),F.jsxDEV("p",{className:"side-group",children:"Remote"},void 0,!1,void 0,this),g1(!1,F.jsxDEV(Q0,{name:"cloud",size:16},void 0,!1,void 0,this),A1?"origin":"Name a remote…","remote",o(["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(WO,{name:Q,view:"changes",changes:O1.length,changesets:p.state==="ok"?p.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:m.state==="ok"?`${E0(O1.length,"record")} · ${E0(P1,"write")}`:""},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV(b2,{load:m,what:"the changes",lines:4},void 0,!1,void 0,this),F.jsxDEV(zO,{records:O1,...L1?{selected:L1.key}:{},onPick:i,label:"Changed records"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"ws-detail",children:[m.state==="ok"&&!L1?F.jsxDEV(Q9,{title:"No changes on this branch",action:v1>0&&A1?F.jsxDEV("button",{type:"button",className:"primary",disabled:Boolean(D1)||x.busy!==null,onClick:()=>void x.push(),children:["Push ",E0(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 ",m.data.base.at?F.jsxDEV(I0,{iso:m.data.base.at},void 0,!1,void 0,this):F.jsxDEV("code",{children:m.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,L1?F.jsxDEV(YO,{record:L1,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(kV,{pinned:!0,generated:c.state==="ok"&&c.data.changesets.summary==="generated",author:{face:F.jsxDEV(Q0,{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:`${t1}/${Q}/~/settings/account`,branch:T1},name:Q,token:U,changes:P1,canWrite:C,refused:u,onCut:()=>{Q1((M1)=>M1+1),i(null)}},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,Z==="history"?F.jsxDEV(QV,{name:Q,token:U,sets:p,changes:O1.length,withScreens:q1,required:c.state==="ok"?c.data.changesets.approvals??1:1,...K?{sub:K}:{},signsAs:f,canWrite:C,rooted:t,refused:u,onChanged:()=>Q1((M1)=>M1+1)},void 0,!1,void 0,this):null,Z==="events"?F.jsxDEV(qV,{name:Q,token:U,vendors:y,...H&&y.includes(H)?{vendor:H}:{},tick:D},H??"",!1,void 0,this):null,Z==="trace"?F.jsxDEV(UV,{name:Q,token:U,id:H??""},void 0,!1,void 0,this):null,Z==="vendor"&&H?F.jsxDEV(GV,{name:Q,token:U,vendor:H,withScreens:q1.includes(H),tick:D},H,!1,void 0,this):null,Z==="screen"&&H?F.jsxDEV(ZV,{name:Q,vendor:H,url:N.state==="ok"?g.get(H)??null:void 0,...N.state==="error"?{mapError:N.error}:{},holding:YV(N.state==="ok"?N.data.twins.find((M1)=>M1.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(P5,{open:Y?.kind==="settings",onClose:()=>o(["changes"])(),title:"Settings",wide:"window",children:Y?.kind==="settings"?F.jsxDEV("div",{className:"ws-settings",children:[F.jsxDEV("nav",{"aria-label":"Settings",children:HO.map(([M1,r1,u1])=>F.jsxDEV("a",{href:`${t1}/${Q}/~/settings/${M1}`,className:Y.tab===M1?"on":void 0,"aria-current":Y.tab===M1?"page":void 0,onClick:o(["settings",M1]),children:[F.jsxDEV(Q0,{name:u1,size:16},void 0,!1,void 0,this),r1]},M1,!0,void 0,this))},void 0,!1,void 0,this),F.jsxDEV("div",{className:"ws-settings-pane",children:[k==="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(XV,{who:W,scope:k,snapshot:L,portal:x2(),onSignOut:R},void 0,!1,void 0,this):null,Y.tab==="changesets"?F.jsxDEV(FV,{name:Q,token:U,who:W,scope:k},void 0,!1,void 0,this):null,Y.tab==="remote"?F.jsxDEV(uV,{name:Q,token:U,canWrite:C,tick:D,refused:u},void 0,!1,void 0,this):null,Y.tab==="access"||Y.tab==="services"||Y.tab==="checks"||Y.tab==="clock"?F.jsxDEV(EV,{name:Q,token:U,admin:h,canWrite:C,refused:u,onRemoved:E,only:Y.tab},void 0,!1,void 0,this):null,Y.tab==="vault"?F.jsxDEV(bV,{name:Q,token:U,canWrite:C,refused:u},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(sj,{},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(P5,{open:Y?.kind==="branches",onClose:()=>o(["changes"])(),title:"Branches",wide:!0,children:Y?.kind==="branches"?F.jsxDEV(LV,{name:Q,token:U,canWrite:C,branches:V,opens:j,...Y.open?{open:Y.open}:{},onChanged:b,refused:u},void 0,!1,void 0,this):null},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function JH({text:Q}){return F.jsxDEV("button",{type:"button",className:"agent-prompt-button",onClick:()=>{navigator.clipboard?.writeText(Q).then(()=>i0("Copied the prompt: paste it into your coding agent"),()=>i0("Could not copy the prompt","error"))},children:"Copy a prompt for your coding agent"},void 0,!1,void 0,this)}var KH=(Q)=>`${Q.url.replace(/\/+$/,"")}/${Q.namespace}`,HV=(Q)=>Q.filter((U)=>U.applied===null||U.applied.outcome==="refused"),YV=(Q,U=4)=>{let Z=[...Q].filter((K)=>K.count>0).sort((K,H)=>H.count-K.count);return Z.length?Z.slice(0,U).map((K)=>E0(K.count,K.type.replace(/^_+/,""))).join(" · ")+(Z.length>U?` · +${Z.length-U} more`:""):"nothing yet"},LO=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 zV({name:Q,token:U,clock:Z,canWrite:K,onChanged:H,refused:Y,open:W}){let[L,T]=K1.useState(!1),[R,M]=K1.useState(""),[A,O]=K1.useState(""),[P,N]=K1.useState(null),[V,v]=K1.useState(!1),C=Z.state==="ok"?Z.data:null,u=async(h,E,b)=>{v(!0),N(null);try{let k=await z0(U,`/-/${Q}/${E}`,{method:E==="clock"?"PUT":"POST",body:JSON.stringify(b)});if(!k.ok){Y(k),N({ok:!1,text:await C5(k)});return}let x=await k.json();N({ok:!0,text:`${h} — the World is at ${new Date(x.at).toLocaleString()}`}),T(!1),H()}catch(k){N({ok:!1,text:`the World did not answer: ${k instanceof Error?k.message:String(k)}`})}finally{v(!1)}},f=(h)=>{h.preventDefault();let E=new Date(R);if(Number.isNaN(E.getTime())){N({ok:!1,text:"Pick a date and time."});return}if(C&&E.getTime()<Date.parse(C.at)){N({ok:!1,text:`The World's clock only moves forward: pick a time after ${new Date(C.at).toLocaleString()}.`});return}u("Clock set","clock",{at:E.toISOString()})},j=(h,E)=>{u(`Advanced ${E}`,"clock/advance",{by:h})},D=[["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(I0,{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(I0,{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),K&&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":L,onClick:()=>{T(!L),M(w9(rR(C.at))),N(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),D.map(([h,E])=>F.jsxDEV("button",{type:"button","aria-label":`Advance ${E}`,disabled:V||!C.frozen,title:C.frozen?void 0:"Set the time first: advancing moves a set clock",onClick:()=>j(h,E),children:E},h,!1,void 0,this)),F.jsxDEV("form",{className:"inline",onSubmit:(h)=>{if(h.preventDefault(),!/^\d+[smhd]$/.test(A.trim())){N({ok:!1,text:"Advance by a number and a unit: 90m, 12h, 3d."});return}j(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,L?F.jsxDEV("form",{className:"inline","aria-label":"Set the World time",onSubmit:f,noValidate:!0,children:[F.jsxDEV("label",{children:["World time ",F.jsxDEV("input",{name:"worldTime",type:"datetime-local",value:R,min:w9(rR(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,P?F.jsxDEV("p",{role:P.ok?"status":"alert",children:P.text},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function WV({name:Q,token:U,clock:Z,refused:K}){let[H,Y]=K1.useState(!1),[W,L]=K1.useState(""),[T,R]=K1.useState(null),[M,A]=K1.useState(!1),O=Z.state==="ok"?Z.data.at:new Date().toISOString(),P=K1.useRef(null);return K1.useEffect(()=>{if(!H)return;let V=(C)=>{if(C.key==="Escape"&&!document.querySelector("dialog[open]"))Y(!1),P.current?.querySelector("button")?.focus()},v=(C)=>{if(!P.current?.contains(C.target))Y(!1)};return document.addEventListener("keydown",V),document.addEventListener("click",v),()=>{document.removeEventListener("keydown",V),document.removeEventListener("click",v)}},[H]),F.jsxDEV("div",{className:"as-of",ref:P,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),L(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 v=new Date(W);if(Number.isNaN(v.getTime())){R("Pick a date and time.");return}if(v.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 z0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:v.toISOString()},ttl:3600})});if(!C.ok){K(C),R(await C5(C));return}let u=await C.json();GH({name:u.name,parent:Q,token:u.token,readToken:u.readToken,at:v.toISOString(),expiresAt:u.expiresAt??null,parentOrigin:L0,made:!0});let f=P9(u.origin)?.origin;if(f&&f!==L0){XH(f,u.readToken,u.name,`${t1}/${u.name}`);return}M0(u.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:w9(O),onChange:(V)=>L(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 BO({name:Q,token:U,open:Z,onClose:K,onMade:H,refused:Y}){let W=(E)=>E.split("/").pop()??E,[L,T]=K1.useState(!1),[R,M]=K1.useState(null),[A,O]=K1.useState(""),[P,N]=K1.useState("now"),[V,v]=K1.useState(""),[C,u]=K1.useState("24"),[f,j]=K1.useState(!0);K1.useEffect(()=>{if(Z)M(null),v(w9(new Date().toISOString()))},[Z]);let D=async(E)=>{E.preventDefault(),M(null);let b=P==="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 k=await z0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({ttl:Math.round(Number(C)*3600),...b?{at:{instant:b.toISOString()}}:f?{live:!0}:{},...A.trim()?{label:A.trim()}:{}})}).catch(()=>null);if(T(!1),!k){M(`${L0} did not answer`);return}if(!k.ok){Y(k),M(await C5(k));return}let x=await k.json();GH({name:x.name,parent:Q,token:x.token??"",readToken:x.readToken,at:(b??new Date).toISOString(),expiresAt:x.expiresAt??null,parentOrigin:L0,...x.origin?{origin:x.origin}:{}}),K(),O(""),i0(`Made ${W(x.name)}`),H()};return F.jsxDEV(P5,{open:Z,onClose:()=>{if(!L)K()},title:`New branch of ${W(Q)}`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>K(),disabled:L,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"new-branch",className:"primary",disabled:L,children:L?"Making…":"Make branch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:F.jsxDEV("form",{id:"new-branch",onSubmit:(E)=>void D(E),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:(E)=>O(E.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:P==="now",onChange:()=>N("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),P==="now"?F.jsxDEV("label",{className:"check sub",children:[F.jsxDEV("input",{type:"checkbox",name:"branchLive",checked:f,onChange:(E)=>j(E.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:P==="at",onChange:()=>N("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),P==="at"?F.jsxDEV("input",{type:"datetime-local","aria-label":"As of",value:V,max:w9(new Date().toISOString()),onChange:(E)=>v(E.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:(E)=>u(E.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 LV({name:Q,token:U,canWrite:Z,branches:K,opens:H,open:Y,onChanged:W,refused:L,snapshotOf:T}){let R=f0(U,`/-/${Q}/clock`),M=(u)=>u.split("/").pop()??u,[A,O]=K1.useState(!1),P=(u)=>(f)=>{f.preventDefault(),M0([...Q.split("/"),"~","branches",...u?u.split("/"):[]])};if(!K)return F.jsxDEV("p",{className:"mode",children:"This host makes no branches of a World."},void 0,!1,void 0,this);let N=K.state==="ok"?K.data.branches:[],V=K.state==="ok"&&(K.data.named?.length??0)>0?K.data.named:[{name:M(Q),running:!0}],v=K.state==="ok"?K.data.checkedOut??M(Q):M(Q),C=async(u)=>{if(!await c4({title:`Remove the branch ${M(u)}?`,body:"Whoever holds its tokens loses it, and its history goes with it.",action:"Remove branch",danger:!0}))return;let f=await z0(U,`/-/${Q}/branches/${u}`,{method:"DELETE"}).catch((j)=>j);if(f instanceof Error){i0(`Remove ${M(u)}: the World did not answer (${f.message})`,"error");return}if(!f.ok){L(f),i0(`Remove ${M(u)}: ${await C5(f)}`,"error");return}HU(u),i0(`Removed ${M(u)}`),W(),M0([...Q.split("/"),"~","branches"])};if(Y){let u=Y.includes("/")?N.find((j)=>j.name===Y):void 0,f=Y.includes("/")?void 0:V.find((j)=>j.name===Y);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("p",{className:"crumbs-line",children:F.jsxDEV("a",{href:`${t1}/${Q}/~/branches`,onClick:P(),children:"← Branches"},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(b2,{load:K,what:"the branches"},void 0,!1,void 0,this),K.state==="ok"&&!u&&!f?F.jsxDEV("p",{className:"mode",children:["This World has no branch named ",Y,"."]},void 0,!0,void 0,this):null,u?F.jsxDEV(BV,{name:Q,b:u,canWrite:Z,opens:H(u.name),remove:()=>void C(u.name)},void 0,!1,void 0,this):null,f&&!u?F.jsxDEV(AV,{name:Q,token:U,b:f,served:f.name===v,canWrite:Z,canServe:K.state==="ok"&&Boolean(K.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:v},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(WV,{name:Q,token:U,clock:R,refused:L},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(b2,{load:K,what:"the branches"},void 0,!1,void 0,this),K.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((u)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:[F.jsxDEV("a",{href:`${t1}/${Q}/~/branches/${u.name}`,onClick:P(u.name),children:F.jsxDEV("b",{children:u.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),u.name===v?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):u.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:${u.name}`,!0,void 0,this)),N.map((u)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("a",{href:`${t1}/${Q}/~/branches/${u.name}`,onClick:P(u.name),children:F.jsxDEV("b",{children:M(u.name)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:M(u.from??Q)},void 0,!1,void 0,this),F.jsxDEV("td",{children:u.at?.instant?F.jsxDEV(I0,{iso:u.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(I0,{iso:u.createdAt},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:u.expiresAt?F.jsxDEV(I0,{iso:u.expiresAt},void 0,!1,void 0,this):"kept"},void 0,!1,void 0,this)]},u.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(BO,{name:Q,token:U,open:A,onClose:()=>O(!1),onMade:W,refused:L},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function BV({name:Q,b:U,canWrite:Z,opens:K,remove:H}){let Y=(T)=>T.split("/").pop()??T,W=ZH(U.name),L=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:[LO," ",Y(U.name)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"changeset-actions",children:[K?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>KO(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(I0,{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(I0,{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(I0,{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),!K?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,L.state==="ok"?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h4",{children:"Its changes"},void 0,!1,void 0,this),L.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(yV,{changes:L.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 AV({name:Q,token:U,b:Z,served:K,canWrite:H,canServe:Y}){let[W,L]=K1.useState(!1),[T,R]=K1.useState(null),M=async()=>{L(!0),R(null);let A=await z0(U,`/-/${Q}/branches/${encodeURIComponent(Z.name)}/serve`,{method:"POST"}).catch(()=>null);if(A?.ok){location.reload();return}L(!1),R(A?await C5(A):`${L0} did not answer`)};return F.jsxDEV("div",{className:"branch-page",children:[F.jsxDEV("div",{className:"changeset-head",children:[F.jsxDEV("h3",{children:[LO," ",Z.name," ",K?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&&!K?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),K?F.jsxDEV("p",{className:"mode",children:["This is the branch these pages show: its changes are on ",F.jsxDEV("a",{href:`${t1}/${Q}/~/changes`,onClick:(A)=>{A.preventDefault(),M0([...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 oR=50,I9=(Q)=>`${Q.twin}:${Q.position}`,AO=(Q,U)=>Date.parse(U.entry.occurredAt)-Date.parse(Q.entry.occurredAt)||Q.twin.localeCompare(U.twin)||U.position-Q.position,YU=(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},cJ=(Q,U)=>{let Z=typeof U==="string"?U:typeof Q.caller==="string"?Q.caller:"";if(Z.startsWith("key:")&&Z.length>4)return`by ${YU(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"},MO=(Q)=>Q.operation??Q.op;function MV(Q){let U=Q.fields??{},Z=U.usage!==null&&typeof U.usage==="object"?U.usage:U,K=(...R)=>R.map((M)=>Z[M]??U[M]).find((M)=>typeof M==="number"),H=[],Y=K("prompt_tokens","input_tokens"),W=K("completion_tokens","output_tokens"),L=K("total_tokens");if(Y!==void 0)H.push(["tokens in",Y.toLocaleString()]);if(W!==void 0)H.push(["tokens out",W.toLocaleString()]);if(L!==void 0)H.push(["tokens in all",L.toLocaleString()]);let T=K("cost_usd","cost");if(T!==void 0)H.push(["cost",`$${T<0.01?T.toPrecision(2):T.toFixed(2)}`]);return H}function TO({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 E3({v:Q}){if(typeof Q==="string")return F.jsxDEV(TO,{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 TV=(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 RV({body:Q}){if(Q===null||typeof Q!=="object"||Array.isArray(Q))return F.jsxDEV(E3,{v:Q},void 0,!1,void 0,this);let U=Q,Z=Array.isArray(U.messages)?U.messages:null,K=Object.entries(U).filter(([H])=>!(Z&&H==="messages"));return F.jsxDEV(F.Fragment,{children:[K.length?F.jsxDEV("dl",{className:"fields",children:K.map(([H,Y])=>F.jsxDEV(K1.default.Fragment,{children:[F.jsxDEV("dt",{children:H},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(E3,{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(TO,{text:TV(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 RO({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,K])=>F.jsxDEV(K1.default.Fragment,{children:[F.jsxDEV("dt",{children:Z},void 0,!1,void 0,this),F.jsxDEV("dd",{children:F.jsxDEV(E3,{v:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},Z,!0,void 0,this))},void 0,!1,void 0,this)}var OV=(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 IV(Q){let U=new Map,Z=[],K=[],H=new Map;for(let Y of Q){if(Y.entry.landsId||Y.entry.aliasOf){K.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 K){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(AO)}var $H={deployed:5,confirmed:4,landed:3,replayed:2,skipped:1};function nR(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"),K=[...U].sort((H,Y)=>($H[Y.status]??0)-($H[H.status]??0))[0];return Z&&!($H[K.status]>=5)?{status:Z.status,bad:!0}:{status:K.status,bad:!1}}var H4=1280,t4=820,XU=160,K4=72,wV=72,e0=(Q)=>`${Q.vendor}:${Q.id}`,i8=(Q)=>`${Q.vendor}:section:${Q.section.id}`,a8=(Q)=>[Q.section.id,...Q.section.aka??[]].map((U)=>`${Q.vendor}:section:${U}`),OO=(Q,U)=>U.at&&("site"in U.at)?U.at.site:U.at?`${D3}/${Q}/${U.vendor}${U.at.screen}`:null,PV=(Q,U)=>Q.include?U.filter((Z)=>Q.include.includes(e0(Z))||a8(Z).some((K)=>Q.include.includes(K))):U.filter((Z)=>!(Q.hidden??[]).includes(e0(Z)));function NV({data:Q}){let{frame:U,url:Z,active:K,picked:H,boards:Y,addTo:W,remove:L,compare:T}=Q,R=e0(U),M=Y.filter((A)=>A.include&&!A.include.includes(R)&&!a8(U).some((O)=>A.include.includes(O)));return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(_H,{isVisible:!0,position:b1.Top,align:"start",className:"frame-label",children:[F.jsxDEV(s0,{vendor:U.vendor},void 0,!1,void 0,this),F.jsxDEV("span",{children:U.title},void 0,!1,void 0,this),U.changes?F.jsxDEV("button",{type:"button",className:"frame-changed nodrag",onClick:()=>T(R),title:`${E0(U.changes,"change")} here, not in a changeset: compare before and now`,children:[F.jsxDEV(Q0,{name:"square-dot",size:14},void 0,!1,void 0,this),U.changes]},void 0,!0,void 0,this):null,H&&M.length?F.jsxDEV("select",{className:"nodrag frame-add",value:"","aria-label":`Add ${U.title} to a board`,onChange:(A)=>{if(A.target.value)W(A.target.value,R)},children:[F.jsxDEV("option",{value:"",children:"Add to board…"},void 0,!1,void 0,this),M.map((A)=>F.jsxDEV("option",{value:A.id,children:A.name},A.id,!1,void 0,this))]},void 0,!0,void 0,this):null,H&&L?F.jsxDEV("button",{type:"button",className:"ghost nodrag",onClick:()=>L.act(R),title:L.label,"aria-label":L.label,children:"✕"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:K?"frame on":H?"frame picked":"frame",style:{width:H4,height:t4},children:[F.jsxDEV("div",{className:"frame-bar",title:"Drag to move · double-click to use",children:[F.jsxDEV(s0,{vendor:U.vendor},void 0,!1,void 0,this),F.jsxDEV("strong",{children:[d1(U.vendor)," · ",U.kind]},void 0,!0,void 0,this),F.jsxDEV("span",{className:"frame-url",children:U.url.replace(/^https?:\/\//,"")},void 0,!1,void 0,this),Z?F.jsxDEV("a",{className:"nodrag",href:Z,target:"_blank",rel:"noopener noreferrer","aria-label":`Open ${U.title} in a new tab`,children:"↗"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:K?"frame-body nodrag nopan nowheel":"frame-body",children:Z?F.jsxDEV("iframe",{title:U.title,src:Z,loading:"lazy",style:{pointerEvents:K?"auto":"none"}},void 0,!1,void 0,this):F.jsxDEV("div",{className:"frame-none",children:[F.jsxDEV("p",{children:F.jsxDEV("strong",{children:U.unseen==="sites-not-routed"?`This World shows ${U.title} only at its own local address.`:`${d1(U.vendor)}'s twin draws no page for this ${U.kind} yet.`},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("p",{className:"mode",children:U.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 CV({data:Q}){return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(iR,{isVisible:Q.picked&&Q.editable,minWidth:480,minHeight:360,color:"var(--accent)",onResizeEnd:Q.resized},void 0,!1,void 0,this),F.jsxDEV(_H,{isVisible:!0,position:b1.Top,align:"start",offset:6,className:"section-tag",children:[F.jsxDEV("button",{type:"button",className:Q.picked?"nodrag on":"nodrag",onClick:()=>Q.pick(Q.key),onDoubleClick:()=>{if(Q.editable)Q.rename(Q.key)},title:Q.editable?"Double-click to rename":void 0,children:[Q.vendor?F.jsxDEV(s0,{vendor:Q.vendor},void 0,!1,void 0,this):null,F.jsxDEV("span",{children:Q.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q.picked&&Q.editable?F.jsxDEV("button",{type:"button",className:"ghost nodrag",onClick:()=>Q.remove(Q.key),"aria-label":`Remove the section ${Q.name}`,title:"Remove the section (its frames stay)",children:"✕"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("div",{className:Q.picked?"section-box on":"section-box"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function eR({url:Q,title:U}){return F.jsxDEV("div",{className:"compare-thumb",style:{width:420,height:420*t4/H4},children:F.jsxDEV("iframe",{title:U,src:Q,loading:"lazy",style:{width:H4,height:t4,transform:`scale(${420/H4})`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function fV({name:Q,token:U,frame:Z,onClose:K,reads:H}){let[Y,W]=K1.useState({state:"opening"}),L=f0(U,`/-/${Q}/board/changes?frame=${encodeURIComponent(e0(Z))}`,H);K1.useEffect(()=>{if(!Z.since){W({state:"none",why:"Nothing here has changed since the World was last cut."});return}if(!Z.at){W({state:"none",why:`${d1(Z.vendor)}'s twin draws no page for this ${Z.kind} yet; its changes are listed below.`});return}let R=Z.at,M=new Date(Date.parse(Z.since)-1).toISOString(),A=null,O=!1,P=setTimeout(()=>void(async()=>{let v=await z0(U,`/-/${Q}/branches`,{method:"POST",body:JSON.stringify({at:{instant:M},ttl:3600}),signal:AbortSignal.timeout(60000)}).catch(()=>null);if(!v?.ok){W({state:"none",why:`The World made no copy of itself as it was then${v?`: ${await C5(v)}`:""}.`});return}let C=await v.json();if(A=C.name,O){z0(U,`/-/${Q}/branches/${C.name}`,{method:"DELETE"}).catch(()=>null);return}let u=P9(C.origin);if(!u){W({state:"none",why:"This World shows sites only at its own local address."});return}if("site"in R){let h=new URL(Z.url);W({state:"ok",url:`${u.protocol}//${h.hostname}.${u.host}${h.pathname}${h.search}`,at:M});return}let f=C.name.slice(C.name.indexOf("/")+1),j=`${D3}/-/${Q}/copies/${f}/${Z.vendor}${R.screen}`,D=await fetch(j,{method:"HEAD",credentials:"same-origin"}).then((h)=>![401,403,501,503].includes(h.status),()=>!1);if(O)return;if(D){W({state:"ok",url:j,at:M});return}if(!C.readToken){W({state:"none",why:"The copy of the World gave no read token to open its pages with."});return}W({state:"ok",url:`${u.origin}/-/${C.name}/session/hand-off#${new URLSearchParams({token:C.readToken,land:`/${C.name}/${Z.vendor}${R.screen}`}).toString()}`,at:M,opens:!0})})(),500),N=()=>{if(A)z0(U,`/-/${Q}/branches/${A}`,{method:"DELETE",keepalive:!0}).catch(()=>null);A=null},V=(v)=>{if(!v.persisted)N()};return window.addEventListener("pagehide",V),()=>{O=!0,clearTimeout(P),window.removeEventListener("pagehide",V),N()}},[Q,U,Z.vendor,Z.id,Z.since]);let T=OO(Q,Z);return F.jsxDEV("div",{className:"compare",role:"dialog","aria-label":`Changes to ${Z.title}`,children:[F.jsxDEV("div",{className:"compare-head",children:[F.jsxDEV(s0,{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:"mode",children:[E0(Z.changes,"change")," not yet cut",Z.since?`, since ${$9(Z.since)}`:""]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",className:"ghost",onClick:K,"aria-label":"Close the comparison",children:"✕"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("div",{className:"compare-sides",children:[F.jsxDEV("figure",{children:[F.jsxDEV("figcaption",{children:["Before",Y.state==="ok"?` · as of ${$9(Y.at)}`:""]},void 0,!0,void 0,this),Y.state==="ok"?Y.opens?F.jsxDEV("p",{className:"mode compare-note",children:[F.jsxDEV("a",{href:Y.url,target:"_blank",rel:"noopener noreferrer",children:["Open ",Z.title," as it was →"]},void 0,!0,void 0,this),F.jsxDEV("br",{},void 0,!1,void 0,this),"A read-only copy of the World, kept while this comparison is open."]},void 0,!0,void 0,this):F.jsxDEV(eR,{url:Y.url,title:`${Z.title} before`},void 0,!1,void 0,this):Y.state==="opening"?F.jsxDEV("p",{className:"mode compare-note",role:"status",children:"Opening the World as it was…"},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode compare-note",children:Y.why},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("figure",{children:[F.jsxDEV("figcaption",{children:"Now"},void 0,!1,void 0,this),T?F.jsxDEV(eR,{url:T,title:`${Z.title} now`},void 0,!1,void 0,this):F.jsxDEV("p",{className:"mode compare-note",children:[d1(Z.vendor),"'s twin draws no page for this ",Z.kind," yet."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),L.state==="error"?F.jsxDEV("p",{role:"alert",className:"mode",children:["Its changes could not be read: ",L.error]},void 0,!0,void 0,this):null,F.jsxDEV("ol",{className:"compare-acts",children:(L.state==="ok"?L.data.acts:[]).map((R)=>{let M=R.entries[0],A=d5({...M,service:Z.vendor,id:"",occurredAt:R.at});return F.jsxDEV("li",{children:[F.jsxDEV("span",{className:"mode",children:$9(R.at)},void 0,!1,void 0,this),F.jsxDEV("details",{children:[F.jsxDEV("summary",{children:[F.jsxDEV("strong",{children:A.what},void 0,!1,void 0,this),A.label?` · ${A.label}`:"",R.writes>1?F.jsxDEV("span",{className:"mode",children:[" and ",E0(R.writes-1,"more write")]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:[R.entries.map((O,P)=>F.jsxDEV("li",{children:[F.jsxDEV("code",{children:O.operation??O.op},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[O.subject.type," ",b3(O)]},void 0,!0,void 0,this)]},P,!0,void 0,this)),R.writes>R.entries.length?F.jsxDEV("li",{className:"mode",children:["and ",E0(R.writes-R.entries.length,"more write")]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},`${R.at}:${M.subject.type}:${M.subject.id}`,!0,void 0,this)})},void 0,!1,void 0,this),L.state==="ok"&&L.data.total>L.data.acts.length?F.jsxDEV("p",{className:"mode",children:["and ",E0(L.data.total-L.data.acts.length,"earlier change"),", in Changes"]},void 0,!0,void 0,this):null,F.jsxDEV("a",{className:"compare-all",href:`${t1}/${Q}/~/changes`,onClick:(R)=>{R.preventDefault(),M0([...Q.split("/"),"~","changes"])},children:"Every change in the World →"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var SV={screen:NV,section:CV};function vV(Q){return F.jsxDEV(eK,{children:F.jsxDEV(jV,{...Q},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function jV({name:Q,token:U,session:Z,retry:K,snapshot:H,back:Y,canWrite:W}){let L=K1.useRef(null),T=K1.useRef(0),R=K1.useRef(Promise.resolve()),M=K1.useRef(0),[,A]=K1.useState(0),[O,P]=K1.useState({state:"loading"}),[N,V]=K1.useState(null),[v,C]=K1.useState(0),u=K1.useRef(0),f=K1.useRef(0),j=K1.useCallback(async()=>{let G1=M.current,I=++u.current,l=await z0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),F1=l?.ok?await l.json().catch(()=>null):null;if(I<f.current)return;if(f.current=I,!F1?.frames||!F1.boards||!F1.version){let I1=l?`the World answered ${l.status}`:"the World did not answer";P((R1)=>R1.state==="ok"?R1:{state:"error",status:l?.status??0,error:I1}),V(I1);return}if(V(null),C((I1)=>I1+1),G1===M.current&&T.current===0)L.current={boards:F1.boards,version:F1.version};P({state:"ok",data:F1})},[U,Q]);K1.useEffect(()=>{j();let G1=setInterval(()=>{if(!document.hidden)j()},1e4);return()=>clearInterval(G1)},[j]);let D=O.state==="ok"?O.data.frames:[],h=L.current?.boards??[{id:"everything",name:"Everything"}],[E,b]=K1.useState("everything"),k=h.find((G1)=>G1.id===E)??h[0],x=W&&!H,$1=K1.useCallback((G1)=>{if(!L.current)return i0("The board is being read again: make that change once it shows","error"),Promise.resolve();L.current={...L.current,boards:G1(L.current.boards)},T.current+=1,M.current+=1,A((l)=>l+1);let I=R.current.then(async()=>{let l=L.current;if(!l)return;try{let F1=await z0(U,`/-/${Q}/board`,{method:"PUT",body:JSON.stringify({boards:l.boards,version:l.version}),signal:AbortSignal.timeout(15000)}),I1=await F1.json().catch(()=>null);if(F1.ok&&I1?.boards&&I1.version)L.current={boards:T.current>1&&L.current?L.current.boards:I1.boards,version:I1.version};else if(F1.status===409&&I1?.boards&&I1.version)L.current={boards:I1.boards,version:I1.version},i0("Someone else changed the board first: it is shown as they left it","error");else throw Error(I1?.error??`the World answered ${F1.status}`)}catch(F1){i0(`The board was not kept: ${F1 instanceof Error?F1.message:String(F1)}`,"error"),L.current=null;let I1=await z0(U,`/-/${Q}/board`,{signal:AbortSignal.timeout(15000)}).catch(()=>null),R1=I1?.ok?await I1.json().catch(()=>null):null;if(R1?.boards&&R1.version)L.current={boards:R1.boards,version:R1.version}}}).finally(()=>{if(T.current-=1,M.current+=1,A((l)=>l+1),T.current===0&&!L.current)j()});return R.current=I,I},[U,Q,j]),Q1=(G1,I)=>{$1((l)=>l.map((F1)=>F1.id===G1?I(F1):F1))},J1=PV(k,D),m=D.filter((G1)=>G1.changes&&!J1.includes(G1)).reduce((G1,I)=>G1+I.changes,0),[p,c]=K1.useState(null),[a,i]=K1.useState(null),[o,y]=K1.useState(null),g=gJ(),q1=h.filter((G1)=>G1.include),t=(G1,I)=>Q1(G1,(l)=>({...l,include:[...l.include??[],I]})),W1={label:k.include?"Take it off this board":"Hide it",act:(G1)=>{i(null),Q1(k.id,(I)=>I.include?{...I,include:I.include.filter((l)=>l!==G1)}:{...I,hidden:[...I.hidden??[],G1]})}},T1=(G1)=>({x:G1.position.x,y:G1.position.y,w:G1.width??G1.measured?.width??H4,h:G1.height??G1.measured?.height??t4}),O1=(G1,I)=>{let l=T1(G1),F1=l.x+l.w/2,I1=l.y+l.h/2;return I.filter((R1)=>R1.type==="section").map((R1,N1)=>({s:R1,i:N1})).filter(({s:R1})=>{let N1=T1(R1);return F1>=N1.x&&F1<=N1.x+N1.w&&I1>=N1.y&&I1<=N1.y+N1.h}).sort((R1,N1)=>T1(R1.s).w*T1(R1.s).h-T1(N1.s).w*T1(N1.s).h||N1.i-R1.i)[0]?.s},L1=K1.useCallback(()=>{let G1=new Map;for(let C1 of J1){let y1=k.placed?.[e0(C1)];if(y1)G1.set(e0(C1),y1)}let I=Math.max(-XU,...[...G1.values()].map((C1)=>C1.y+t4)),l=[...new Set(J1.map(i8))];for(let C1 of l){let y1=J1.filter((w0)=>i8(w0)===C1),j1=y1.filter((w0)=>G1.has(e0(w0))).map((w0)=>G1.get(e0(w0))),p1=j1.length?Math.max(...j1.map((w0)=>w0.x))+H4+XU:0,S0=j1.length?Math.min(...j1.map((w0)=>w0.y)):I+XU+K4*2+wV;for(let w0 of y1)if(!G1.has(e0(w0)))G1.set(e0(w0),{x:p1,y:S0}),p1+=H4+XU;I=Math.max(I,S0+t4)}let F1=k.sections??{},I1=(C1,y1,j1,p1,S0)=>({id:`sec:${C1}`,type:"section",position:{x:y1.x,y:y1.y},width:y1.w,height:y1.h,zIndex:0,draggable:x,data:{key:C1,name:j1,vendor:p1,named:S0}}),R1=[];for(let C1 of l){let y1=J1.find((T0)=>i8(T0)===C1),j1=a8(y1).find((T0)=>F1[T0])??C1,p1=F1[j1];if(p1?.gone)continue;let S0=J1.filter((T0)=>i8(T0)===C1).map((T0)=>G1.get(e0(T0))),w0={x:Math.min(...S0.map((T0)=>T0.x))-K4,y:Math.min(...S0.map((T0)=>T0.y))-K4,w:0,h:0};w0.w=Math.max(...S0.map((T0)=>T0.x))+H4+K4-w0.x,w0.h=Math.max(...S0.map((T0)=>T0.y))+t4+K4-w0.y;let n4=J1.filter((T0)=>i8(T0)===C1&&!k.placed?.[e0(T0)]).map((T0)=>G1.get(e0(T0))),v5=p1?{...p1}:w0;if(p1)for(let T0 of n4)v5.w=Math.max(v5.w,T0.x+H4+K4-v5.x),v5.h=Math.max(v5.h,T0.y+t4+K4-v5.y);R1.push(I1(j1,v5,p1?.name??`${d1(y1.vendor)} · ${y1.section.title}`,y1.vendor,Boolean(p1?.name)))}for(let[C1,y1]of Object.entries(F1))if(C1.startsWith("user:")&&!y1.gone)R1.push(I1(C1,y1,y1.name??"Section",null,!0));let N1=J1.map((C1)=>({id:e0(C1),type:"screen",zIndex:1,width:H4,height:t4,dragHandle:".frame-bar",draggable:x,position:G1.get(e0(C1)),data:{world:Q,frame:C1,url:OO(Q,C1)}}));return[...R1,...N1]},[JSON.stringify(J1),JSON.stringify(k),Q,x]),[U1,P1,v1]=hR([]),A1=K1.useRef("");K1.useEffect(()=>{let G1=L1();if(P1(G1),G1.length&&A1.current!==k.id)A1.current=k.id,requestAnimationFrame(()=>{g.fitView({padding:{top:"72px",left:"272px",right:"40px",bottom:"72px"},duration:0})})},[L1,P1]);let k1=(G1,I=[],l={})=>{let F1=Object.fromEntries(I.map((R1)=>{let N1=g.getNode(`sec:${R1}`);if(!N1)return[R1,void 0];let C1=T1(N1),y1=N1.data,j1=l[R1]??(y1.named?y1.name:void 0);return[R1,{x:Math.round(C1.x),y:Math.round(C1.y),w:Math.round(C1.w),h:Math.round(C1.h),...j1?{name:j1.slice(0,80)}:{}}]}).filter(([,R1])=>R1!==void 0)),I1=Object.fromEntries(Object.entries(G1).map(([R1,N1])=>[R1,{x:Math.round(N1.x),y:Math.round(N1.y)}]));Q1(k.id,(R1)=>({...R1,placed:{...R1.placed??{},...I1},sections:{...R1.sections??{},...F1}}))},D1=K1.useRef(null),g1=(G1,I)=>{if(I.type!=="section"){D1.current=null;return}let l=g.getNodes(),F1=T1(I),I1=(R1)=>{let N1=T1(R1);if(R1.type==="screen"){let C1=N1.x+N1.w/2,y1=N1.y+N1.h/2;return C1>=F1.x&&C1<=F1.x+F1.w&&y1>=F1.y&&y1<=F1.y+F1.h}return R1.id!==I.id&&N1.x>=F1.x&&N1.y>=F1.y&&N1.x+N1.w<=F1.x+F1.w&&N1.y+N1.h<=F1.y+F1.h};D1.current={id:I.id,from:{...I.position},members:l.filter(I1).map((R1)=>({id:R1.id,x:R1.position.x,y:R1.position.y}))}},h1=(G1,I)=>{let l=D1.current;if(!l||l.id!==I.id)return;let F1=I.position.x-l.from.x,I1=I.position.y-l.from.y,R1=new Map(l.members.map((N1)=>[N1.id,N1]));P1((N1)=>N1.map((C1)=>{let y1=R1.get(C1.id);return y1?{...C1,position:{x:y1.x+F1,y:y1.y+I1}}:C1}))},M1=(G1,I)=>{let l=D1.current;D1.current=null;let F1=I.position.x-(l?.from.x??I.position.x),I1=I.position.y-(l?.from.y??I.position.y),R1=I.type==="screen"?[{id:I.id,x:I.position.x,y:I.position.y}]:(l?.members??[]).map((N1)=>({...N1,x:N1.x+F1,y:N1.y+I1}));requestAnimationFrame(()=>{let N1=g.getNodes(),C1=new Map(R1.filter((p1)=>!p1.id.startsWith("sec:")).map((p1)=>[p1.id,{x:p1.x,y:p1.y}])),y1=new Set([...I.type==="section"?[I.data.key]:[],...R1.filter((p1)=>p1.id.startsWith("sec:")).map((p1)=>p1.id.slice(4))]),j1=new Set(N1.filter((p1)=>C1.has(p1.id)).flatMap((p1)=>a8(p1.data.frame)));for(let p1 of N1){if(p1.type==="screen"&&a8(p1.data.frame).some((S0)=>j1.has(S0))&&!C1.has(p1.id))C1.set(p1.id,{x:p1.position.x,y:p1.position.y});if(p1.type==="section"&&j1.has(p1.data.key))y1.add(p1.data.key)}k1(Object.fromEntries(C1),[...y1])})},r1=(G1)=>Object.fromEntries(g.getNodes().filter((I)=>I.type==="screen"&&a8(I.data.frame).includes(G1)).map((I)=>[I.id,{x:I.position.x,y:I.position.y}])),u1=(G1)=>{let l=g.getNode(`sec:${G1}`)?.data?.name??"Section",F1=window.prompt("Name this section",l)?.trim();if(!F1)return;P1((I1)=>I1.map((R1)=>R1.id===`sec:${G1}`?{...R1,data:{...R1.data,name:F1.slice(0,80),named:!0}}:R1)),requestAnimationFrame(()=>k1(r1(G1),[G1],{[G1]:F1}))},D0=(G1)=>{i(null);let I=g.getNode(`sec:${G1}`);Q1(k.id,(l)=>{let F1=Object.fromEntries(Object.entries(l.sections??{}).filter(([I1])=>I1!==G1));return{...l,sections:G1.startsWith("user:")?F1:{...F1,[G1]:{...I?{x:Math.round(I.position.x),y:Math.round(I.position.y),w:Math.round(T1(I).w),h:Math.round(T1(I).h)}:{x:0,y:0,w:0,h:0},gone:!0}}}})},o1=()=>{let G1=a?g.getNode(a):void 0,I=g.screenToFlowPosition({x:window.innerWidth/2,y:window.innerHeight/2}),l=G1?.type==="screen"?{x:G1.position.x-K4,y:G1.position.y-K4,w:H4+K4*2,h:t4+K4*2}:{x:I.x-900,y:I.y-600,w:1800,h:1200},F1=`user:${Date.now().toString(36)}`,I1=Object.keys(k.sections??{}).filter((R1)=>R1.startsWith("user:")).length+1;i(`sec:${F1}`),Q1(k.id,(R1)=>({...R1,sections:{...R1.sections??{},[F1]:{x:Math.round(l.x),y:Math.round(l.y),w:Math.round(l.w),h:Math.round(l.h),name:`Section ${I1}`}}}))},X2=U1.map((G1)=>G1.type==="section"?{...G1,data:{...G1.data,picked:a===G1.id,editable:x,pick:(I)=>i(`sec:${I}`),rename:u1,remove:D0,resized:()=>requestAnimationFrame(()=>{let I=G1.data.key;k1(r1(I),[I])})}}:{...G1,data:{...G1.data,active:p===G1.id,picked:a===G1.id,boards:x?q1:[],addTo:t,remove:!x||k.include&&!k.include.includes(G1.id)?null:W1,compare:(I)=>{i(I),y(I)}}});K1.useEffect(()=>{let G1=(I)=>{if(I.target?.closest("input, textarea, select, [contenteditable]"))return;if(I.key==="Escape"){if(p)c(null);else i(null);return}if(!x||p)return;if((I.key==="Delete"||I.key==="Backspace")&&a){if(I.preventDefault(),a.startsWith("sec:"))D0(a.slice(4));else if(!k.include||k.include.includes(a))W1.act(a);else i0("It is on this board with its whole group: take the group off in the list to remove it","error");return}if(I.key==="S"&&I.shiftKey&&!I.metaKey&&!I.ctrlKey)I.preventDefault(),o1()};return document.addEventListener("keydown",G1),()=>document.removeEventListener("keydown",G1)});let K2=(G1)=>{i(G1);let I=g.getNode(G1);if(!I)return;let l=T1(I);g.fitBounds({x:l.x,y:l.y,width:l.w,height:l.h},{padding:0.15,duration:400})},N2=()=>{let G1=`board-${Date.now().toString(36)}`;b(G1),$1((I)=>[...I,{id:G1,name:`Board ${I.length}`,include:[]}])},A2=()=>{let G1=window.prompt("Name this board",k.name)?.trim();if(G1)Q1(k.id,(I)=>({...I,name:G1.slice(0,80)}))},C2=()=>{let G1=k.id;b("everything"),$1((I)=>I.filter((l)=>l.id!==G1))},M2=[...new Map(D.map((G1)=>[i8(G1),G1])).values()],H2=k.include?[...M2.filter((G1)=>!a8(G1).some((I)=>k.include.includes(I))).map((G1)=>({key:i8(G1),label:`${d1(G1.vendor)} · ${G1.section.title} (all)`})),...D.filter((G1)=>!J1.includes(G1)).map((G1)=>({key:e0(G1),label:G1.title}))]:[],_2=k.include?[]:D.filter((G1)=>!J1.includes(G1)),z4=U1.filter((G1)=>G1.type==="section"),m2=U1.filter((G1)=>G1.type==="screen"),f5=new Map(m2.map((G1)=>[G1.id,O1(G1,U1)?.id??null])),S5=(G1)=>{let I=G1.data.frame;return F.jsxDEV("li",{children:F.jsxDEV("button",{type:"button",className:a===G1.id?"on":void 0,onClick:()=>K2(G1.id),onDoubleClick:()=>c(G1.id),children:[F.jsxDEV(s0,{vendor:I.vendor},void 0,!1,void 0,this),F.jsxDEV("span",{children:I.title},void 0,!1,void 0,this),I.changes?F.jsxDEV("span",{className:"layer-changed",title:`${E0(I.changes,"change")}, not in a changeset: its mark on the board compares before and now`,children:[F.jsxDEV(Q0,{name:"square-dot",size:14},void 0,!1,void 0,this),I.changes]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)},G1.id,!1,void 0,this)},r5=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches,o4=Z.state==="ok"&&O.state==="ok";return F.jsxDEV("div",{className:"canvas full",role:"region","aria-label":"The World's board",children:F.jsxDEV(ER,{nodes:o4?X2:[],onNodesChange:v1,nodeTypes:SV,onNodeDragStart:g1,onNodeDrag:h1,onNodeDragStop:M1,onNodeClick:(G1,I)=>{if(I.id!==p)i(I.id)},onNodeDoubleClick:(G1,I)=>{if(I.type==="screen")i(I.id),c(I.id)},onPaneClick:()=>{c(null),i(null)},minZoom:0.03,maxZoom:1.5,nodesConnectable:!1,elementsSelectable:!1,panOnScroll:!0,zoomOnPinch:!0,zoomOnScroll:!1,zoomOnDoubleClick:!1,colorMode:r5?"dark":"light",proOptions:{hideAttribution:!0},children:[F.jsxDEV(mR,{variant:a4.Dots,gap:28,size:1.4},void 0,!1,void 0,this),F.jsxDEV(s4,{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:[h.map((G1)=>F.jsxDEV("button",{type:"button",role:"tab","aria-selected":G1.id===k.id,className:G1.id===k.id?"on":void 0,onClick:()=>{i(null),c(null),b(G1.id)},onDoubleClick:x&&G1.id===k.id&&G1.include?A2:void 0,children:G1.name},G1.id,!1,void 0,this)),x?F.jsxDEV("button",{type:"button",className:"ghost",onClick:N2,"aria-label":"A new board",children:"+"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),k.include&&x?F.jsxDEV("div",{className:"board-acts",children:[F.jsxDEV("button",{type:"button",className:"ghost",onClick:A2,children:"Rename"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"ghost",onClick:C2,children:"Delete board"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,F.jsxDEV("ul",{className:"layer-list","aria-label":"Layers",children:[z4.map((G1)=>{let I=G1.data;return F.jsxDEV("li",{children:[F.jsxDEV("button",{type:"button",className:a===G1.id?"layer-section on":"layer-section",onClick:()=>K2(G1.id),onDoubleClick:()=>{if(x)u1(I.key)},children:[I.vendor?F.jsxDEV(s0,{vendor:I.vendor},void 0,!1,void 0,this):F.jsxDEV(Q0,{name:"layout-grid",size:14},void 0,!1,void 0,this),F.jsxDEV("span",{children:I.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"layer-list inner",children:m2.filter((l)=>f5.get(l.id)===G1.id).map(S5)},void 0,!1,void 0,this)]},G1.id,!0,void 0,this)}),m2.filter((G1)=>!f5.get(G1.id)).map(S5)]},void 0,!0,void 0,this),k.include&&!J1.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,H2.length&&x?F.jsxDEV("select",{className:"board-add",value:"","aria-label":"Add to this board",onChange:(G1)=>{let I=G1.target.value;if(I)Q1(k.id,(l)=>({...l,include:[...l.include??[],I]}))},children:[F.jsxDEV("option",{value:"",children:"Add to this board…"},void 0,!1,void 0,this),H2.map((G1)=>F.jsxDEV("option",{value:G1.key,children:G1.label},G1.key,!1,void 0,this))]},void 0,!0,void 0,this):null,_2.length?F.jsxDEV("details",{className:"board-hidden",children:[F.jsxDEV("summary",{children:["Hidden (",_2.length,")"]},void 0,!0,void 0,this),F.jsxDEV("ul",{className:"layer-list",children:_2.map((G1)=>F.jsxDEV("li",{children:x?F.jsxDEV("button",{type:"button",onClick:()=>Q1(k.id,(I)=>({...I,hidden:(I.hidden??[]).filter((l)=>l!==e0(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)},e0(G1),!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,m?F.jsxDEV("button",{type:"button",className:"board-elsewhere",onClick:()=>b("everything"),children:[F.jsxDEV(Q0,{name:"square-dot",size:14},void 0,!1,void 0,this),E0(m,"change")," not on this board"]},void 0,!0,void 0,this):null,F.jsxDEV(b2,{load:O,what:"the board"},void 0,!1,void 0,this),N&&O.state==="ok"?F.jsxDEV("p",{role:"alert",className:"pad-s",children:["The board could not be read again (",N,"): 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:K,children:"Try again"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),p?F.jsxDEV(s4,{position:"top-center",className:"float hint using",children:[F.jsxDEV("span",{className:"mode",children:["Using ",J1.find((G1)=>e0(G1)===p)?.title??p]},void 0,!0,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>c(null),children:["Done ",F.jsxDEV("kbd",{children:"Esc"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(s4,{position:"top-center",className:"float hint mode",children:"Scroll to pan · pinch or ⌘ scroll to zoom · double-click a frame to use it"},void 0,!1,void 0,this),x?F.jsxDEV(s4,{position:"bottom-center",className:"float board-tools",children:F.jsxDEV("button",{type:"button",className:"ghost",onClick:o1,title:"Section (⇧S): around the selected frame, else in the middle",children:[F.jsxDEV(Q0,{name:"layout-grid",size:16},void 0,!1,void 0,this),F.jsxDEV("span",{children:"Section"},void 0,!1,void 0,this),F.jsxDEV("kbd",{children:"⇧S"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null,o&&J1.some((G1)=>e0(G1)===o)?F.jsxDEV(s4,{position:"top-right",className:"float compare-panel",children:F.jsxDEV(fV,{name:Q,token:U,frame:J1.find((G1)=>e0(G1)===o),onClose:()=>y(null),reads:v},o,!1,void 0,this)},void 0,!1,void 0,this):null,F.jsxDEV(pR,{showInteractive:!1,position:"bottom-left"},void 0,!1,void 0,this),F.jsxDEV(lR,{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 IO=(Q)=>Q.actions.map((U)=>({twin:U.service,entry:{...U.action,service:U.service,op:U.action.op??U.action.operation??""}})),VV=(Q)=>{let U=Q.action.input??{};return!(typeof U.operationId==="string"||U.graphql!==void 0&&U.graphql!==null)};function WU(Q){let U=Q.actions.filter(VV).length,Z=Q.actions.length-U,K=Q.applied?.receipts??[],H=Q.deployed??[],Y=new Set([...H.filter((T)=>T.status==="deployed"),...K.filter((T)=>T.status==="confirmed")].map((T)=>T.actionId)).size,W=new Set([...H.filter((T)=>T.status==="refused"||T.status==="failed"),...K.filter((T)=>T.status==="failed")].map((T)=>T.actionId)).size,L={performed:Y,failed:W,total:Z,own:U};if(Z>0&&Y>=Z)return{label:"Deployed",tone:"done",...L};if(Y>0)return{label:`Partly deployed: ${Y} of ${Z}`,tone:"warn",...L};if(W>0)return{label:`${W} refused or failed`,tone:"bad",...L};if(K.some((T)=>T.status==="replayed")&&K.every((T)=>T.status==="replayed"||T.status==="skipped"))return{label:"Pushed",tone:"good",...L};return{label:"Not sent",tone:"plain",...L}}var QH=(Q)=>Q.message??Q.narration?.split(`
|
|
250
|
+
`)[0]?.replace(/ setting .*$/,"")??Q.name;function wO(Q,U=1){let Z=Q.currentHash??Q.contentHash,K=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(K>0&&K<U)return{label:`Approved by ${K} of ${U}`,tone:"plain"};if(K>0)return{label:`Approved by ${K}`,tone:"good"};if(H)return{label:"Verified",tone:"good"};return{label:"Not verified",tone:"plain"}}function _O({name:Q,token:U,signsAs:Z,c:K,canWrite:H,rooted:Y,refused:W,onChanged:L,part:T,required:R}){let M=T==="head",A=T==="review",[O,P]=K1.useState(null),[N,V]=K1.useState(!1),[v,C]=K1.useState(""),[u,f]=K1.useState(""),[j,D]=K1.useState(null),h=f0(U,`/-/${Q}/origin`),E=WU(K),b=wO(K,R),k=IO(K),x=[...new Set(k.map((t)=>t.twin))],$1=x.some((t)=>Y.includes(t)),Q1=(t)=>t===(K.currentHash??K.contentHash),J1=K.applied?.receipts??[],m=(K.deployed??[]).filter((t)=>t.status!=="landed"),p=J1.filter((t)=>t.status==="confirmed").length,c=m.filter((t)=>t.status==="deployed"),a=async(t,W1,T1,O1)=>{P(t),D(null);try{let L1=await z0(U,W1,{method:"POST",...T1===void 0?{}:{body:JSON.stringify(T1)}});if(!L1.ok)return W(L1),D({what:t,...F2(await N3(L1))}),!1;if(O1)i0(O1);return L(),!0}catch(L1){return D({what:t,text:`the World did not answer (${L1 instanceof Error?L1.message:String(L1)})`,acts:[]}),!1}finally{P(null)}},i=()=>{a("Verify",`/-/${Q}/changesets/${K.name}/verify`,void 0,"Verified: the checks ran over it")},o=async(t)=>{if(t.preventDefault(),await a("Approve",`/-/${Q}/changesets/${K.name}/approve`,{...v.trim()?{note:v.trim()}:{},...Z===null&&u.trim()?{as:u.trim()}:{}},"Approved"))V(!1),C("")},y=async()=>{let t=x.filter((W1)=>Y.includes(W1));if(!await c4({title:`Deploy ${K.name} to the real vendors?`,body:F.jsxDEV(F.Fragment,{children:["It performs its ",K.actions.length," change",K.actions.length===1?"":"s"," against the real account",t.length===1?"":"s"," behind ",S8(t.map(d1)),". This cannot be taken back here."]},void 0,!0,void 0,this),action:"Deploy",danger:!0,typed:K.name}))return;P("Deploy"),D(null);try{let W1=await z0(U,`/-/${Q}/deploy/${K.name}`,{method:"POST",body:JSON.stringify({confirm:K.name})});if(!W1.ok){W(W1),D({what:"Deploy",...F2(await N3(W1))});return}let T1=await z0(U,`/-/${Q}/changesets/${K.name}`),O1=T1.ok?await T1.json():null;if(!O1){i0("Deploy: sent; reading its receipts failed","info"),L();return}let L1=WU(O1);i0(`Deploy: ${L1.performed} of ${L1.total} change${L1.total===1?"":"s"} performed at the vendor${L1.failed?`; ${L1.failed} refused or failed`:""}`,L1.failed?"error":L1.performed?"ok":"info"),L()}catch(W1){D({what:"Deploy",text:`the World did not answer (${W1 instanceof Error?W1.message:String(W1)})`,acts:[]})}finally{P(null)}},g=!H?"This session reads the World; it changes nothing":E.label==="Deployed"?"Already deployed: every change was performed at the vendor":null,q1=h.state==="ok"&&h.data.origin?KH(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:[K.message??K.name," ",F.jsxDEV("span",{className:`badge cs-${E.tone}`,children:E.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:K.name},void 0,!1,void 0,this)," · made ",F.jsxDEV(I0,{iso:K.createdAt},void 0,!1,void 0,this)," · ",K.actions.length," change",K.actions.length===1?"":"s"," at ",S8(x.map(d1))||"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:i,disabled:Boolean(g)||O!==null,title:g??"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(g)||O!==null,title:g??"Sign its current contents as yourself",children:"Approve…"},void 0,!1,void 0,this),$1?F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>void y(),disabled:Boolean(g)||O!==null,title:g??"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),g&&E.label!=="Deployed"?F.jsxDEV("p",{className:"mode",children:[g,"."]},void 0,!0,void 0,this):null,j?F.jsxDEV("div",{role:"alert",className:"refusal",children:[F.jsxDEV("span",{children:[F.jsxDEV("b",{children:j.what},void 0,!1,void 0,this),": ",j.text]},void 0,!0,void 0,this),j.acts.includes("verify")&&H?F.jsxDEV("button",{type:"button",onClick:i,disabled:O!==null,children:"Verify"},void 0,!1,void 0,this):null,j.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(UO,{name:Q,acts:j.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:[K.narration?F.jsxDEV("p",{className:"narration",children:K.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:[E.performed>0?F.jsxDEV("p",{className:"pad",children:[E.performed>=E.total?"Deployed":"Partly deployed",": ",E.performed," of ",E.total," change",E.total===1?"":"s",E.own?` (and ${E.own} of the World's own, which stay in it)`:""," performed at ",S8([...new Set([...c.map((t)=>t.service),...J1.filter((t)=>t.status==="confirmed").map((t)=>t.service)].map(d1))]),c.length?` (${c.length} from here`:" (",c.length&&p?", ":"",p?`${p} by the remote`:"",")."]},void 0,!0,void 0,this):E.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,K.applied?F.jsxDEV(F.Fragment,{children:[" · ",F.jsxDEV(I0,{iso:K.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):E.failed===0?F.jsxDEV("p",{className:"pad",children:["Not sent: it is only in this World.",K.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,E.failed>0?F.jsxDEV("p",{className:"pad failed",role:"alert",children:[E.failed," change",E.failed===1?" was":"s were"," refused or failed at the vendor",[...m.filter((t)=>t.reason&&(t.status==="refused"||t.status==="failed")).map((t)=>t.reason),...J1.filter((t)=>t.status==="failed"&&t.error).map((t)=>t.error)].slice(0,3).map((t)=>`: ${F2(t).text}`).join(""),"."]},void 0,!0,void 0,this):null,K.applied?.refusal?.length?F.jsxDEV("ul",{className:"checks pad",children:K.applied.refusal.map((t,W1)=>F.jsxDEV("li",{className:"mode",children:F2(t).text},W1,!1,void 0,this))},void 0,!1,void 0,this):null,m.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:m.map((t)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:t.status==="refused"||t.status==="failed"?"badge cs-bad":t.status==="deployed"?"badge cs-done":"badge",children:t.status},void 0,!1,void 0,this)," ",d1(t.service)," ",t.status==="deployed"?t.url?F.jsxDEV("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",children:t.externalId??t.url},void 0,!1,void 0,this):t.externalId?F.jsxDEV("code",{children:t.externalId},void 0,!1,void 0,this):null:null,t.reason?F.jsxDEV("span",{className:"mode",children:[" · ",F2(t.reason).text]},void 0,!0,void 0,this):null," ",F.jsxDEV("span",{className:"mode",children:["· ",F.jsxDEV(I0,{iso:t.at},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},`v:${t.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((t)=>F.jsxDEV("li",{children:[F.jsxDEV("span",{className:t.status==="failed"?"badge cs-bad":t.status==="confirmed"?"badge cs-done":"badge",children:t.status},void 0,!1,void 0,this)," ",d1(t.service)," ",F.jsxDEV("span",{className:"mode",children:t.status==="replayed"?"replayed at the remote World":t.status==="confirmed"?"performed at the vendor by the remote":""},void 0,!1,void 0,this),t.status==="confirmed"&&t.externalId?F.jsxDEV(F.Fragment,{children:[" ",F.jsxDEV("code",{children:t.externalId},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,t.error?F.jsxDEV("span",{className:"mode",children:[" · ",F2(t.error).text]},void 0,!0,void 0,this):null]},`r:${t.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&&E.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:`${t1}/${Q}/~/settings/services`,onClick:(t)=>{t.preventDefault(),M0([...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),!K.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(K.verification.contentHash)?"":"stale",children:[F.jsxDEV("p",{children:[K.verification.passed?"✓ Passed":"✗ Failed"," · ",F.jsxDEV(I0,{iso:K.verification.at},void 0,!1,void 0,this),Q1(K.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),K.verification.results.length?F.jsxDEV("ul",{className:"checks",children:K.verification.results.map((t)=>F.jsxDEV("li",{children:[t.passed?"✓":"✗"," ",F.jsxDEV("code",{children:t.id},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:d1(t.service)},void 0,!1,void 0,this)]},t.id,!0,void 0,this))},void 0,!1,void 0,this):null,K.verification.refusals?.length?F.jsxDEV("ul",{className:"checks",children:K.verification.refusals.map((t,W1)=>F.jsxDEV("li",{children:["✗ ",F.jsxDEV("code",{children:t.check},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[d1(t.service),": ",t.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),K.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:K.approvals.map((t,W1)=>F.jsxDEV("li",{children:[F.jsxDEV("b",{children:t.principal},void 0,!1,void 0,this)," ",F.jsxDEV("span",{className:"mode",children:[F.jsxDEV(I0,{iso:t.at},void 0,!1,void 0,this),Q1(t.contentHash)?"":" · signed an earlier version"]},void 0,!0,void 0,this),t.note?F.jsxDEV("div",{className:"mode",children:["“",t.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(P5,{open:N,onClose:()=>{if(!O)V(!1)},title:`Approve ${K.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:(t)=>void o(t),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:u,onChange:(t)=>f(t.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:v,onChange:(t)=>C(t.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 PO=(Q,U)=>JSON.stringify(Q)===JSON.stringify(U);function yV({changes:Q,idPrefix:U}){let Z=[...new Set(Q.map((K)=>K.twin))];return F.jsxDEV(F.Fragment,{children:Z.map((K)=>{let H=Q.filter((W)=>W.twin===K).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}-${K}`,children:[F.jsxDEV("h3",{id:`${U}-${K}`,className:"vendor-cell",children:[F.jsxDEV(s0,{vendor:K},void 0,!1,void 0,this),d1(K)," ",F.jsxDEV("span",{className:"mode",children:["· ",E0(Y.length,"record"),", ",E0(H.length,"write")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.jsxDEV("ul",{children:Y.map((W)=>{let L=H.filter((A)=>`${A.subject.type}:${A.subject.id}`===W),T=L[L.length-1],R=d5(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:b3(T)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L.map((A)=>{let O=A.fields??{},P=Object.entries(O).filter(([V,v])=>!(V in M)||!PO(M[V],v)),N=M;return M={...M,...O},F.jsxDEV("div",{className:"write",children:[F.jsxDEV("p",{className:"mode",children:[F.jsxDEV("span",{className:"op",children:d5(A).what},void 0,!1,void 0,this)," · ",F.jsxDEV(I0,{iso:A.occurredAt},void 0,!1,void 0,this)," · ",cJ(A)]},void 0,!0,void 0,this),P.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 ${d5(A).what} set`,children:P.map(([V,v])=>F.jsxDEV(K1.default.Fragment,{children:[F.jsxDEV("dt",{children:V},void 0,!1,void 0,this),F.jsxDEV("dd",{children:V in N?F.jsxDEV("span",{className:"changed",children:[F.jsxDEV("del",{children:F.jsxDEV(E3,{v:N[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(E3,{v},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):F.jsxDEV(E3,{v},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)]},K,!0,void 0,this)})},void 0,!1,void 0,this)}function kV({name:Q,token:U,changes:Z,canWrite:K,refused:H,onCut:Y,pinned:W,generated:L,inputRef:T,author:R}){let[M,A]=K1.useState(""),[O,P]=K1.useState(!1),[N,V]=K1.useState([]),v=(u,f,j)=>{V((D)=>[{ok:u,text:f,at:new Date().toISOString(),n:++lJ,...j?.length?{acts:j}:{}},...D].slice(0,4))},C=async(u)=>{u.preventDefault(),P(!0);try{let f=await z0(U,`/-/${Q}/changesets`,{method:"POST",body:JSON.stringify(M.trim()?{message:M.trim()}:{})});if(!f.ok){H(f);let D=F2(await N3(f));v(!1,`Cut a changeset: ${D.text}`,D.acts);return}let j=await f.json();v(!0,`Cut ${j.name??"a changeset"}: ${E0(j.actions?.length??0,"change")}, ready to review in History and push.`),A(""),Y()}catch(f){v(!1,`Cut a changeset: the World did not answer (${f instanceof Error?f.message:String(f)})`)}finally{P(!1)}};if(W){let u=!K?"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(x6,{log:N,name:Q},void 0,!1,void 0,this),F.jsxDEV("form",{onSubmit:(f)=>void C(f),"aria-label":"Cut a changeset",children:[R?F.jsxDEV("a",{className:"ws-author",href:R.account,title:`${R.who}: your account`,onClick:(f)=>{f.preventDefault(),M0(R.account.slice(t1.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:(f)=>A(f.target.value),placeholder:Z===0?"Nothing to cut":L?"Summary (optional)":"Summary (required)",required:!L,maxLength:200,disabled:Boolean(u),title:u??void 0},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",className:"primary",disabled:Boolean(u)||O,title:u??void 0,children:O?"Cutting…":Z===0?"Cut a changeset":F.jsxDEV(F.Fragment,{children:["Cut ",E0(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(!K||Z===0)return F.jsxDEV(x6,{log:N,name:Q},void 0,!1,void 0,this);return F.jsxDEV(F.Fragment,{children:[F.jsxDEV("form",{className:"block cut pad",onSubmit:(u)=>void C(u),"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:(u)=>A(u.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(x6,{log:N,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function DV({name:Q,token:U}){let[Z,K]=K1.useState(0),H=f0(U,`/-/${Q}/keys`,Z),[Y,W]=K1.useState(!1),[L,T]=K1.useState(""),[R,M]=K1.useState("write"),[A,O]=K1.useState(!1),[P,N]=K1.useState(null),[V,v]=K1.useState(null),[C,u]=K1.useState(null),f=async()=>{let h=`Read-only link · ${new Date().toLocaleDateString(void 0,{month:"short",day:"numeric"})}`,E=await z0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:h,scope:"read"})}).catch(()=>null),b=E?await E.json().catch(()=>({})):{error:`${L0} did not answer`};if(!E?.ok||!b.key){i0(b.error?F2(b.error).text:"refused","error");return}u(`${window.location.origin}${t1}/${Q}#${new URLSearchParams({token:b.key}).toString()}`),K((k)=>k+1)},j=async(h)=>{h.preventDefault(),O(!0),N(null);let E=await z0(U,`/-/${Q}/keys`,{method:"POST",body:JSON.stringify({name:L.trim(),scope:R})}).catch(()=>null);O(!1);let b=E?await E.json().catch(()=>({})):{error:`${L0} did not answer`};if(!E?.ok||!b.key){N(b.error?F2(b.error).text:"refused");return}W(!1),v({key:b.key,name:L.trim()}),T(""),K((k)=>k+1)},D=async(h)=>{if(!await c4({title:`Revoke ${h.name}?`,body:"Whatever holds it loses this World at once.",action:"Revoke key",danger:!0}))return;let E=await z0(U,`/-/${Q}/keys/${h.id}`,{method:"DELETE"});if(E.ok)i0(`Revoked ${h.name}`);else i0(await C5(E),"error");K((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),x2()?F.jsxDEV("a",{className:"button primary",href:`${x2()}/${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 f(),children:"Share a read-only link"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>{N(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(b2,{load:H,what:"the keys",retry:()=>K((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:$9(h.createdAt),children:sF(h.createdAt)},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{className:"mode",children:h.lastUsedAt?sF(h.lastUsedAt):"never"},void 0,!1,void 0,this),F.jsxDEV("td",{className:"num",children:F.jsxDEV(cA,{label:`More for ${h.name}`,items:[{label:"Revoke…",danger:!0,onSelect:()=>void D(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(P5,{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||!L.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:j,"aria-label":"Make a key",children:[F.jsxDEV("label",{children:["Name ",F.jsxDEV("input",{autoFocus:!0,name:"keyName",value:L,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),P?F.jsxDEV("p",{role:"alert",children:P},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(P5,{open:Boolean(V),onClose:()=>v(null),title:`${V?.name??"The key"} is ready`,footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>v(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(oF,{label:"Key",value:V.key,secret:!0},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),F.jsxDEV(P5,{open:Boolean(C),onClose:()=>u(null),title:"A read-only link",footer:F.jsxDEV("button",{type:"button",className:"primary",onClick:()=>u(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(oF,{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 lJ=0;function x6({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(I0,{iso:Z.at,time:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)," ",Z.text,Z.acts?F.jsxDEV(UO,{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 NO(Q,U,Z,K){let[H,Y]=K1.useState(0),W=H*1e5+Math.floor(Z/2),L=f0(U,`/-/${Q}/origin`,W),T=f0(U,`/-/${Q}/diff`,W),R=f0(U,`/-/${Q}/changesets`,W),[M,A]=K1.useState([]),[O,P]=K1.useState(null),N=(D,h,E)=>{if(A((b)=>[{ok:D,text:h,at:new Date().toISOString(),n:++lJ,...E?.length?{acts:E}:{}},...b].slice(0,8)),!D)i0(h,"error")},V=async(D,h,E)=>{P(D);try{let b=await z0(U,`/-/${Q}/${h}`,E);if(!b.ok){K(b);let k=F2(await N3(b));return N(!1,`${D}: ${k.text}`,k.acts),null}return await b.json()}catch(b){return N(!1,`${D}: the World did not answer (${b instanceof Error?b.message:String(b)})`),null}finally{P(null),Y((b)=>b+1)}},v=L.state==="ok"&&L.data.origin?KH(L.data.origin):null,C=T.state==="ok"?T.data.changes.length:null,u=R.state==="ok"&&v?HV(R.data.changesets.filter((D)=>!D.pushedBy)).sort((D,h)=>D.createdAt.localeCompare(h.createdAt)):[];return{origin:L,diff:T,sets:R,there:v,changes:C,waiting:u,log:M,busy:O,say:N,send:V,push:async()=>{let D=await V("Push","origin/push",{method:"POST"});if(!D)return;if(D.pushed.length===0){N(!0,"Nothing to push: every changeset is already at the remote.");return}for(let h of D.pushed){let E=h.receipts??[],b=E.filter((J1)=>J1.status==="replayed").length,k=E.filter((J1)=>J1.status==="confirmed").length,x=E.filter((J1)=>J1.status==="failed").length,$1=h.outcome==="applied"&&x===0;if(h.outcome==="refused"){N(!1,`Push of ${h.changeset} was refused${h.refusal?.length?`: ${h.refusal.map((J1)=>F2(J1).text).join("; ")}`:""}.`);continue}let Q1=[`${b} of ${E0(E.length,"change")} replayed there`,...k?[`${k} performed at the vendor by the remote`]:[],...x?[`${x} failed`]:[]];N($1,`${h.outcome==="partial"?"Partly pushed":"Pushed"} ${h.changeset} to ${v??"the remote"}: ${Q1.join("; ")}${h.refusal?.length?` (${h.refusal.map((J1)=>F2(J1).text).join("; ")})`:""}.`)}},pull:async()=>{let D=await V("Pull","origin/pull",{method:"POST"});if(!D)return;let h=Object.entries(D.appended).filter(([,b])=>b>0),E=D.rebased.flatMap((b)=>b.conflicts.map((k)=>`${d1(b.twin)} ${k.subject.type}:${k.subject.id} ${k.field}`));N(E.length===0,`Pulled from ${v??"the remote"}: ${h.length?h.map(([b,k])=>`${E0(k,"entry")} at ${d1(b)}`).join(", "):"nothing new"}${E.length?`; conflicts at ${E.join(", ")}`:""}.`)}}}function uV({name:Q,token:U,canWrite:Z,tick:K,refused:H}){let{origin:Y,there:W,changes:L,log:T,busy:R,say:M,send:A,push:O,pull:P}=NO(Q,U,K,H),[N,V]=K1.useState(""),[v,C]=K1.useState(""),[u,f]=K1.useState(!1),j=async(h)=>{h.preventDefault();let E=await A("Name the remote","origin",{method:"PUT",body:JSON.stringify({url:N.trim(),token:v.trim()})});if(E){let b=Object.values(E.appended??{}).reduce((k,x)=>k+x,0);M(!0,`The remote is ${KH(E.origin)}: its history came in (${E0(b,"entry")}).`),C(""),f(!1)}},D=!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??""),f(!u)},"aria-expanded":u,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(I0,{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(b2,{load:Y,what:"the remote",lines:1},void 0,!1,void 0,this),u?F.jsxDEV("form",{className:"stack origin-form",onSubmit:(h)=>void j(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:N,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:v,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:()=>f(!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(x6,{log:T,name:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function bV({name:Q,token:U,canWrite:Z,refused:K}){let[H,Y]=K1.useState(0),W=f0(U,`/-/${Q}/twins`,H),L=f0(U,`/-/${Q}/links`,H),T=f0(U,`/-/${Q}/requests?hours=24`,H),[R,M]=K1.useState({}),[A,O]=K1.useState(null),[P,N]=K1.useState(""),[V,v]=K1.useState(!1),[C,u]=K1.useState([]),f=(k,x,$1)=>{if(u((Q1)=>[{ok:k,text:x,at:new Date().toISOString(),n:++lJ,...$1?.length?{acts:$1}:{}},...Q1].slice(0,6)),!k)i0(x,"error")},j=L.state==="ok"?Object.keys(L.data.links).sort():[];K1.useEffect(()=>{let k=!0;return Promise.all(j.map(async(x)=>{let $1=await z0(U,`/-/${Q}/twins/${x}/credential`).catch(()=>null),Q1=$1?.ok?await $1.json():null;return[x,Q1?.credential??null]})).then((x)=>{if(k)M(Object.fromEntries(x))}),()=>{k=!1}},[Q,U,j.join(","),H]);let D=async(k)=>{if(k.preventDefault(),!A||!P)return;v(!0);let x=await z0(U,`/-/${Q}/twins/${A.vendor}/credential`,{method:"PUT",body:P,headers:{"content-type":"text/plain"}}).catch(()=>null);if(v(!1),!x){f(!1,`Seal ${A.vendor}: ${L0} did not answer`);return}if(!x.ok){K(x);let Q1=F2(await N3(x));f(!1,`Seal ${d1(A.vendor)}: ${Q1.text}`,Q1.acts);return}let $1=await x.json().catch(()=>({}));f(!0,`Sealed a credential for ${d1(A.vendor)}${$1.fingerprint?` (${$1.fingerprint})`:""}: it opens for ${$1.boundTo??A.to} only, and is never shown again.`),N(""),O(null),Y((Q1)=>Q1+1)},h=async(k)=>{if(!await c4({title:`Remove the link ${k}?`,body:`Requests to ${D3}/${Q}/${k}/… stop being forwarded to ${L.state==="ok"?L.data.links[k]?.origin:"its origin"}.`,action:"Remove link",danger:!0}))return;let x=await z0(U,`/-/${Q}/links/${k}`,{method:"DELETE"}).catch(()=>null);if(!x?.ok){if(x)K(x);f(!1,`Remove ${k}: ${x?await C5(x):"the World did not answer"}`);return}f(!0,`Removed the link ${k}.`),Y(($1)=>$1+1)},E=(k)=>k?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:[k.fingerprint?F.jsxDEV("code",{children:k.fingerprint},void 0,!1,void 0,this):null," · ",F.jsxDEV(I0,{iso:k.placedAt},void 0,!1,void 0,this),k.sealedBy?` · by ${k.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(x6,{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(b2,{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((k)=>F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(s0,{vendor:k.twin},void 0,!1,void 0,this),d1(k.twin)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:E(k.credential)},void 0,!1,void 0,this),F.jsxDEV("td",{children:k.credential?.boundTo?F.jsxDEV("code",{children:k.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:k.root?.url?F.jsxDEV("code",{children:k.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:!k.root?.url,title:k.root?.url?`Seal ${d1(k.twin)}'s real credential for ${k.root.url}`:"Connect it to its real service first (Settings › Real services): a credential is sealed for where it goes",onClick:()=>{N(""),O({vendor:k.twin,to:k.root.url})},children:k.credential?"Replace…":"Seal a credential…"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},k.twin,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,W.state==="ok"&&b.every((k)=>!k.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(b2,{load:L,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,L.state==="ok"&&j.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:[D3,"/",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,j.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:j.map((k)=>{let x=L.state==="ok"?L.data.links[k].origin:"",$1=T.state==="ok"?T.data.twins.find((Q1)=>Q1.twin===k):void 0;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("b",{children:k},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:F.jsxDEV("code",{children:x},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(([Q1,J1])=>`${Q1}: ${J1}`).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:[E(R[k]??null),R[k]?.boundTo?F.jsxDEV("div",{className:"mode",children:["bound to ",F.jsxDEV("code",{children:R[k].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:()=>{N(""),O({vendor:k,to:x})},children:R[k]?"Replace…":"Seal a credential…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",onClick:()=>void h(k),children:"Remove…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},k,!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(P5,{open:Boolean(A),onClose:()=>{if(!V)O(null)},title:`Seal ${A?d1(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||!P,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:(k)=>void D(k),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:P,onChange:(k)=>N(k.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 EV({name:Q,token:U,admin:Z,canWrite:K,refused:H,onRemoved:Y,only:W}){let L=(i)=>!W||W===i,[T,R]=K1.useState(0),M=f0(U,`/-/${Q}/twins`,T),A=f0(U,`/-/${Q}/checks`,T),[O,P]=K1.useState(0),N=f0(U,`/-/${Q}/clock`,O),[V,v]=K1.useState([]),[C,u]=K1.useState(null),[f,j]=K1.useState(null),[D,h]=K1.useState(""),[E,b]=K1.useState("gated"),[k,x]=K1.useState(!1),$1=(i,o,y)=>{if(v((g)=>[{ok:i,text:o,at:new Date().toISOString(),n:++lJ,...y?.length?{acts:y}:{}},...g].slice(0,6)),!i)i0(o,"error")},Q1=async(i,o,y)=>{let g=await z0(U,o,y).catch(()=>null);if(!g)return $1(!1,`${i}: the World did not answer`),!1;if(!g.ok){H(g);let q1=F2(await N3(g));return $1(!1,`${i}: ${q1.text}`,q1.acts),!1}return $1(!0,`${i}: done.`),R((q1)=>q1+1),!0},J1=async(i)=>{if(i.preventDefault(),!f)return;x(!0);let o=f.root??{},y=await Q1(D.trim()?`Connect ${d1(f.twin)} to ${D.trim()}`:`Disconnect ${d1(f.twin)}`,`/-/${Q}/twins/${f.twin}/root`,{method:"PUT",body:JSON.stringify(D.trim()?{...o,url:D.trim(),deploy:E}:null)});if(x(!1),y)j(null)},m=async()=>{if(!await c4({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 i=await z0(Z,`/-/worlds/${Q}/rotate`,{method:"POST"});if(i.ok)u(await i.json()),$1(!0,"Rotated: the new tokens are shown once, below.");else $1(!1,`Rotate: ${await C5(i)}`)},p=async()=>{if(!await c4({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 i=await z0(Z,`/-/worlds/${Q}`,{method:"DELETE"}).catch((o)=>o);if(i instanceof Error){$1(!1,`Remove: the host did not answer (${i.message})`);return}if(i.ok)Y();else $1(!1,`Remove: ${await C5(i)}`)},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(x6,{log:V,name:Q},void 0,!1,void 0,this),L("access")?F.jsxDEV(F.Fragment,{children:[F.jsxDEV("h3",{className:"settings-head",children:"Access"},void 0,!1,void 0,this),K?F.jsxDEV(DV,{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,L("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((i)=>i.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(b2,{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),K?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((i)=>{let o=i.root;return F.jsxDEV("tr",{children:[F.jsxDEV("td",{children:F.jsxDEV("span",{className:"vendor-cell",children:[F.jsxDEV(s0,{vendor:i.twin},void 0,!1,void 0,this),F.jsxDEV("a",{href:`${t1}/${Q}/${i.twin}`,title:`Its log and stored state · ${i.position??0} entries`,onClick:(y)=>{y.preventDefault(),M0([...Q.split("/"),i.twin])},children:d1(i.twin)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV("td",{children:o?.url?F.jsxDEV("code",{children:o.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:o?.url?a[o.deploy??""]??o.deploy??"—":"—"},void 0,!1,void 0,this),F.jsxDEV("td",{children:i.refresh?.failed?F.jsxDEV("span",{role:"alert",children:["failed ×",i.refresh.failed.count??1,": ",i.refresh.failed.reason??""]},void 0,!0,void 0,this):o?.url?$9(i.refresh?.observedAt??i.refresh?.at):F.jsxDEV("span",{className:"mode",children:"—"},void 0,!1,void 0,this)},void 0,!1,void 0,this),K?F.jsxDEV("td",{className:"num row-actions",children:[F.jsxDEV("button",{type:"button",onClick:()=>{h(o?.url??""),b(o?.deploy==="auto"||o?.deploy==="hold"?o.deploy:"gated"),j(i)},children:o?.url?"Change…":"Connect…"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"button",disabled:!o?.url,title:o?.url?"Read the real service's current state into this World":"Connect it first",onClick:()=>void c4({title:`Read ${d1(i.twin)} now?`,body:`The real ${d1(i.twin)}'s current state is read into this World. Nothing is written to ${d1(i.twin)}.`,action:"Read from it"}).then((y)=>{if(y)Q1(`Read from ${d1(i.twin)}`,`/-/${Q}/twins/${i.twin}/refresh`,{method:"POST"})}),children:"Read from it"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},i.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,L("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(zV,{name:Q,token:U,clock:N,canWrite:K,onChanged:()=>P((i)=>i+1),refused:H,open:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,L("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(b2,{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((i)=>F.jsxDEV("tr",{children:F.jsxDEV("td",{children:F.jsxDEV("code",{children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this)},i,!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 m(),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 p(),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(P5,{open:Boolean(f),onClose:()=>{if(!k)j(null)},title:`Connect ${f?d1(f.twin):""} to its real service`,footer:F.jsxDEV(F.Fragment,{children:[F.jsxDEV("button",{type:"button",onClick:()=>j(null),disabled:k,children:"Cancel"},void 0,!1,void 0,this),F.jsxDEV("button",{type:"submit",form:"connect-root",className:"primary",disabled:k,children:k?"Saving…":D.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:(i)=>void J1(i),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:D,onChange:(i)=>h(i.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:E,onChange:(i)=>b(i.target.value==="auto"?"auto":i.target.value==="hold"?"hold":"gated"),children:["gated","auto","hold"].map((i)=>F.jsxDEV("option",{value:i,children:a[i]},i,!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 CO(){return F.jsxDEV(F.Fragment,{children:[F.jsxDEV(tj,{},void 0,!1,void 0,this),F.jsxDEV(pA,{},void 0,!1,void 0,this),F.jsxDEV(gA,{},void 0,!1,void 0,this),F.jsxDEV(mA,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var SO=p0(f8(),1);Bq();fO.createRoot(t8).render(SO.jsxDEV(CO,{},void 0,!1,void 0,this));
|