@leostera/evalkit 0.0.2 → 0.1.0
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/README.md +1 -1
- package/dist/cli.mjs +4 -5
- package/dist/cli.mjs.map +1 -1
- package/dist/dashboard/assets/index-BYSEeNaZ.js +30 -0
- package/dist/dashboard/assets/index-fUDsY6z-.css +2 -0
- package/dist/dashboard/index.html +2 -2
- package/dist/{index-BwNYw4-_.d.mts → index-M5eRlMfd.d.mts} +5 -3
- package/dist/index-M5eRlMfd.d.mts.map +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/runner.d.mts +1 -1
- package/dist/runner.mjs +1 -1
- package/dist/{src-DJDem6nZ.mjs → src-DluldGKn.mjs} +3 -3
- package/dist/{src-DJDem6nZ.mjs.map → src-DluldGKn.mjs.map} +1 -1
- package/dist/{src-CopGdrwX.mjs → src-DrwwgaPn.mjs} +5 -3
- package/dist/src-DrwwgaPn.mjs.map +1 -0
- package/package.json +4 -2
- package/dist/dashboard/assets/index-B2P48MWY.css +0 -1
- package/dist/dashboard/assets/index-Z5UamLUC.js +0 -261
- package/dist/index-BwNYw4-_.d.mts.map +0 -1
- package/dist/src-CopGdrwX.mjs.map +0 -1
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=o((e=>{(function(){function t(){if(b=!1,ie){var t=e.unstable_now();x=t;var n=!0;try{a:{y=!1,ee&&(ee=!1,ne(ae),ae=-1),v=!0;var a=_;try{b:{for(o(t),g=r(p);g!==null&&!(g.expirationTime>t&&c());){var u=g.callback;if(typeof u==`function`){g.callback=null,_=g.priorityLevel;var d=u(g.expirationTime<=t);if(t=e.unstable_now(),typeof d==`function`){g.callback=d,o(t),n=!0;break b}g===r(p)&&i(p),o(t)}else i(p);g=r(p)}if(g!==null)n=!0;else{var f=r(m);f!==null&&l(s,f.startTime-t),n=!1}}break a}finally{g=null,_=a,v=!1}n=void 0}}finally{n?se():ie=!1}}}function n(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,i=e[r];if(0<a(i,t))e[r]=t,e[n]=i,n=r;else break a}}function r(e){return e.length===0?null:e[0]}function i(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>a(c,n))l<i&&0>a(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<i&&0>a(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}function o(e){for(var t=r(m);t!==null;){if(t.callback===null)i(m);else if(t.startTime<=e)i(m),t.sortIndex=t.expirationTime,n(p,t);else break;t=r(m)}}function s(e){if(ee=!1,o(e),!y){if(r(p)!==null)y=!0,ie||(ie=!0,se());else{var t=r(m);t!==null&&l(s,t.startTime-e)}}}function c(){return b?!0:!(e.unstable_now()-x<oe)}function l(t,n){ae=te(function(){t(e.unstable_now())},n)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var p=[],m=[],h=1,g=null,_=3,v=!1,y=!1,ee=!1,b=!1,te=typeof setTimeout==`function`?setTimeout:null,ne=typeof clearTimeout==`function`?clearTimeout:null,re=typeof setImmediate<`u`?setImmediate:null,ie=!1,ae=-1,oe=5,x=-1;if(typeof re==`function`)var se=function(){re(t)};else if(typeof MessageChannel<`u`){var ce=new MessageChannel,le=ce.port2;ce.port1.onmessage=t,se=function(){le.postMessage(null)}}else se=function(){te(t,0)};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):oe=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_next=function(e){switch(_){case 1:case 2:case 3:var t=3;break;default:t=_}var n=_;_=t;try{return e()}finally{_=n}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=_;_=e;try{return t()}finally{_=n}},e.unstable_scheduleCallback=function(t,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,t){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return c=a+c,t={id:h++,callback:i,priorityLevel:t,startTime:a,expirationTime:c,sortIndex:-1},a>o?(t.sortIndex=a,n(m,t),r(p)===null&&t===r(m)&&(ee?(ne(ae),ae=-1):ee=!0,l(s,a-o))):(t.sortIndex=c,n(p,t),y||v||(y=!0,ie||(ie=!0,se()))),t},e.unstable_shouldYield=c,e.unstable_wrapCallback=function(e){var t=_;return function(){var n=_;_=t;try{return e.apply(this,arguments)}finally{_=n}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),u=o(((e,t)=>{t.exports=l()})),d=o(((e,t)=>{(function(){function n(e,t){Object.defineProperty(a.prototype,e,{get:function(){console.warn(`%s(...) is deprecated in plain JavaScript React classes. %s`,t[0],t[1])}})}function r(e){return typeof e!=`object`||!e?null:(e=Oe&&e[Oe]||e[`@@iterator`],typeof e==`function`?e:null)}function i(e,t){e=(e=e.constructor)&&(e.displayName||e.name)||`ReactClass`;var n=e+`.`+t;ke[n]||(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.",t,e),ke[n]=!0)}function a(e,t,n){this.props=e,this.context=t,this.refs=Me,this.updater=n||Ae}function o(){}function s(e,t,n){this.props=e,this.context=t,this.refs=Me,this.updater=n||Ae}function c(){}function l(e){return``+e}function u(e){try{l(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,r=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,r),l(e)}}function d(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Fe?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _e:return`Fragment`;case S:return`Profiler`;case ve:return`StrictMode`;case Se:return`Suspense`;case Ce:return`SuspenseList`;case Ee:return`Activity`;case De:return`ViewTransition`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case ge:return`Portal`;case be:return e.displayName||`Context`;case ye:return(e._context.displayName||`Context`)+`.Consumer`;case xe:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case we:return t=e.displayName||null,t===null?d(e.type)||`Memo`:t;case Te:t=e._payload,e=e._init;try{return d(e(t))}catch{}}return null}function f(e){if(e===_e)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===Te)return`<...>`;try{var t=d(e);return t?`<`+t+`>`:`<...>`}catch{return`<...>`}}function p(){var e=C.A;return e===null?null:e.getOwner()}function m(){return Error(`react-stack-top-frame`)}function h(e){if(Ie.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function g(e,t){function n(){w||(w=!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)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function _(){var e=d(this.type);return ze[e]||(ze[e]=!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.`)),e=this.props.ref,e===void 0?null:e}function v(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:he,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:_}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function y(e,t){return t=v(e.type,t,e.props,e._owner,e._debugStack,e._debugTask),e._store&&(t._store.validated=e._store.validated),t}function ee(e){b(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===Te&&(e._payload.status===`fulfilled`?b(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function b(e){return typeof e==`object`&&!!e&&e.$$typeof===he}function te(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}function ne(e,t){return typeof e==`object`&&e&&e.key!=null?(u(e.key),te(``+e.key)):t.toString(36)}function re(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(c,c):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ie(e,t,n,i,a){var o=typeof e;(o===`undefined`||o===`boolean`)&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case`bigint`:case`string`:case`number`:s=!0;break;case`object`:switch(e.$$typeof){case he:case ge:s=!0;break;case Te:return s=e._init,ie(s(e._payload),t,n,i,a)}}if(s){s=e,a=a(s);var c=i===``?`.`+ne(s,0):i;return Pe(a)?(n=``,c!=null&&(n=c.replace(Ue,`$&/`)+`/`),ie(a,t,n,``,function(e){return e})):a!=null&&(b(a)&&(a.key!=null&&(s&&s.key===a.key||u(a.key)),n=y(a,n+(a.key==null||s&&s.key===a.key?``:(``+a.key).replace(Ue,`$&/`)+`/`)+c),i!==``&&s!=null&&b(s)&&s.key==null&&s._store&&!s._store.validated&&(n._store.validated=2),a=n),t.push(a)),1}if(s=0,c=i===``?`.`:i+`:`,Pe(e))for(var l=0;l<e.length;l++)i=e[l],o=c+ne(i,l),s+=ie(i,t,n,o,a);else if(l=r(e),typeof l==`function`)for(l===e.entries&&(He||console.warn(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),He=!0),e=l.call(e),l=0;!(i=e.next()).done;)i=i.value,o=c+ne(i,l++),s+=ie(i,t,n,o,a);else if(o===`object`){if(typeof e.then==`function`)return ie(re(e),t,n,i,a);throw t=String(e),Error(`Objects are not valid as a React child (found: `+(t===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:t)+`). If you meant to render a collection of children, use an array instead.`)}return s}function ae(e,t,n){if(e==null)return e;var r=[],i=0;return ie(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function oe(e){if(e._status===-1){var t=null,n=null,r=e._ioInfo;r!=null&&(r.start=r.end=performance.now(),r.value=new Promise(function(e,r){t=e,n=r})),r=e._result;var i=r();if(i.then(function(n){if(e._status===0||e._status===-1){e._status=1,e._result=n;var r=e._ioInfo;if(r!=null){r.end=performance.now();var a=n?.default;t(a),r.value.status=`fulfilled`,r.value.value=a}i.status===void 0&&(i.status=`fulfilled`,i.value=n)}},function(t){if(e._status===0||e._status===-1){e._status=2,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now(),r.value.then(c,c),n(t),r.value.status=`rejected`,r.value.reason=t),i.status===void 0&&(i.status=`rejected`,i.reason=t)}}),r=e._ioInfo,r!=null){var a=i.displayName;typeof a==`string`&&(r.name=a)}e._status===-1&&(e._status=0,e._result=i)}if(e._status===1)return r=e._result,r===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
|
-
|
|
3
|
-
Your code should look like:
|
|
4
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
5
|
-
|
|
6
|
-
Did you accidentally put curly braces around the import?`,r),`default`in r||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
7
|
-
|
|
8
|
-
Your code should look like:
|
|
9
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,r),r.default;throw e._result}function x(){var e=C.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
10
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
|
-
2. You might be breaking the Rules of Hooks
|
|
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.`),e}function se(){C.asyncTransitions--}function ce(e){var t=C.T,n={};n.types=t===null?null:t.types,n._updatedFibers=new Set,C.T=n;try{var r=e(),i=C.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&(C.asyncTransitions++,r.then(se,se),r.then(c,We))}catch(e){We(e)}finally{t===null&&n._updatedFibers&&(e=n._updatedFibers.size,n._updatedFibers.clear(),10<e&&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.`)),t!==null&&n.types!==null&&(t.types!==null&&t.types!==n.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.`),t.types=n.types),C.T=t}}function le(e){var t=C.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else C.asyncTransitions===0&&console.error("addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition."),ce(le.bind(null,e))}function ue(e){if(Ke===null)try{var n=(`require`+Math.random()).slice(0,7);Ke=(t&&t[n]).call(t,`timers`).setImmediate}catch{Ke=function(e){!1===Ge&&(Ge=!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 t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return Ke(e)}function de(e){return 1<e.length&&typeof AggregateError==`function`?AggregateError(e):e[0]}function fe(e,t){t!==qe-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. `),qe=t}function pe(e,t,n){var r=C.actQueue;if(r!==null){if(r.length!==0)try{me(r),ue(function(){return pe(e,t,n)});return}catch(e){C.thrownErrors.push(e)}else C.actQueue=null}0<C.thrownErrors.length?(r=de(C.thrownErrors),C.thrownErrors.length=0,n(r)):t(e)}function me(e){if(!Ye){Ye=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{C.didUsePromise=!1;var r=n(!1);if(r!==null){if(C.didUsePromise){e[t]=n,e.splice(0,t);return}n=r}else break}while(1)}e.length=0}catch(n){e.splice(0,t+1),C.thrownErrors.push(n)}finally{Ye=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var he=Symbol.for(`react.transitional.element`),ge=Symbol.for(`react.portal`),_e=Symbol.for(`react.fragment`),ve=Symbol.for(`react.strict_mode`),S=Symbol.for(`react.profiler`),ye=Symbol.for(`react.consumer`),be=Symbol.for(`react.context`),xe=Symbol.for(`react.forward_ref`),Se=Symbol.for(`react.suspense`),Ce=Symbol.for(`react.suspense_list`),we=Symbol.for(`react.memo`),Te=Symbol.for(`react.lazy`),Ee=Symbol.for(`react.activity`),De=Symbol.for(`react.view_transition`),Oe=Symbol.iterator,ke={},Ae={isMounted:function(){return!1},enqueueForceUpdate:function(e){i(e,`forceUpdate`)},enqueueReplaceState:function(e){i(e,`replaceState`)},enqueueSetState:function(e){i(e,`setState`)}},je=Object.assign,Me={};Object.freeze(Me),a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};var Ne={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(Ze in Ne)Ne.hasOwnProperty(Ze)&&n(Ze,Ne[Ze]);o.prototype=a.prototype,Ne=s.prototype=new o,Ne.constructor=s,je(Ne,a.prototype),Ne.isPureReactComponent=!0;var Pe=Array.isArray,Fe=Symbol.for(`react.client.reference`),C={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Ie=Object.prototype.hasOwnProperty,Le=console.createTask?console.createTask:function(){return null};Ne={react_stack_bottom_frame:function(e){return e()}};var w,Re,ze={},Be=Ne.react_stack_bottom_frame.bind(Ne,m)(),Ve=Le(f(m)),He=!1,Ue=/\/+/g,We=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Ge=!1,Ke=null,qe=0,Je=!1,Ye=!1,Xe=typeof queueMicrotask==`function`?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:ue;Ne=Object.freeze({__proto__:null,c:function(e){return x().useMemoCache(e)}});var Ze={map:ae,forEach:function(e,t,n){ae(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ae(e,function(){t++}),t},toArray:function(e){return ae(e,function(e){return e})||[]},only:function(e){if(!b(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=Ee,e.Children=Ze,e.Component=a,e.Fragment=_e,e.Profiler=S,e.PureComponent=s,e.StrictMode=ve,e.Suspense=Se,e.ViewTransition=De,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,e.__COMPILER_RUNTIME=Ne,e.act=function(e){var t=C.actQueue,n=qe;qe++;var r=C.actQueue=t===null?[]:t,i=!1;try{var a=e()}catch(e){C.thrownErrors.push(e)}if(0<C.thrownErrors.length)throw fe(t,n),e=de(C.thrownErrors),C.thrownErrors.length=0,e;if(typeof a==`object`&&a&&typeof a.then==`function`){var o=a;return Xe(function(){i||Je||(Je=!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(e,a){i=!0,o.then(function(i){if(fe(t,n),n===0){try{me(r),ue(function(){return pe(i,e,a)})}catch(e){C.thrownErrors.push(e)}if(0<C.thrownErrors.length){var o=de(C.thrownErrors);C.thrownErrors.length=0,a(o)}}else e(i)},function(e){fe(t,n),0<C.thrownErrors.length?(e=de(C.thrownErrors),C.thrownErrors.length=0,a(e)):a(e)})}}}var s=a;if(fe(t,n),n===0&&(me(r),r.length!==0&&Xe(function(){i||Je||(Je=!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(() => ...)"))}),C.actQueue=null),0<C.thrownErrors.length)throw e=de(C.thrownErrors),C.thrownErrors.length=0,e;return{then:function(e,t){i=!0,n===0?(C.actQueue=r,ue(function(){return pe(s,e,t)})):e(s)}}},e.addTransitionType=le,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.captureOwnerStack=function(){var e=C.getCurrentStack;return e===null?null:e()},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=je({},e.props),i=e.key,a=e._owner;if(t!=null){var o;a:{if(Ie.call(t,`ref`)&&(o=Object.getOwnPropertyDescriptor(t,`ref`).get)&&o.isReactWarning){o=!1;break a}o=t.ref!==void 0}for(s in o&&(a=p()),h(t)&&(u(t.key),i=``+t.key),t)!Ie.call(t,s)||s===`key`||s===`__self`||s===`__source`||s===`ref`&&t.ref===void 0||(r[s]=t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){o=Array(s);for(var c=0;c<s;c++)o[c]=arguments[c+2];r.children=o}for(r=v(e.type,i,r,a,e._debugStack,e._debugTask),i=2;i<arguments.length;i++)ee(arguments[i]);return r},e.createContext=function(e){return e={$$typeof:be,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:ye,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},e.createElement=function(e,t,n){for(var r=2;r<arguments.length;r++)ee(arguments[r]);var i;r={};var a=null;if(t!=null)for(i in Re||!(`__self`in t)||`key`in t||(Re=!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`)),h(t)&&(u(t.key),a=``+t.key),t)Ie.call(t,i)&&i!==`key`&&i!==`__self`&&i!==`__source`&&(r[i]=t[i]);var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];Object.freeze&&Object.freeze(s),r.children=s}if(e&&e.defaultProps)for(i in o=e.defaultProps,o)r[i]===void 0&&(r[i]=o[i]);return a&&g(r,typeof e==`function`?e.displayName||e.name||`Unknown`:e),(i=1e4>C.recentlyCreatedOwnerStacks++)?(s=Error.stackTraceLimit,Error.stackTraceLimit=10,o=Error(`react-stack-top-frame`),Error.stackTraceLimit=s):o=Be,v(e,a,r,p(),o,i?Le(f(e)):Ve)},e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){e!=null&&e.$$typeof===we?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e==`function`?e.length!==0&&e.length!==2&&console.error(`forwardRef render functions accept exactly two parameters: props and ref. %s`,e.length===1?`Did you forget to use the ref parameter?`:`Any additional parameter will be undefined.`):console.error(`forwardRef requires a render function but was given %s.`,e===null?`null`:typeof e),e!=null&&e.defaultProps!=null&&console.error(`forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?`);var t={$$typeof:xe,render:e},n;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},e.isValidElement=b,e.lazy=function(e){e={_status:-1,_result:e};var t={$$typeof:Te,_payload:e,_init:oe},n={name:`lazy`,start:-1,end:-1,value:null,owner:null,debugStack:Error(`react-stack-top-frame`),debugTask:console.createTask?console.createTask(`lazy()`):null};return e._ioInfo=n,t._debugInfo=[{awaited:n}],t},e.memo=function(e,t){e??console.error(`memo: The first argument must be a component. Instead received: %s`,e===null?`null`:typeof e),t={$$typeof:we,type:e,compare:t===void 0?null:t};var n;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},e.startTransition=ce,e.unstable_useCacheRefresh=function(){return x().useCacheRefresh()},e.use=function(e){return x().use(e)},e.useActionState=function(e,t,n){return x().useActionState(e,t,n)},e.useCallback=function(e,t){return x().useCallback(e,t)},e.useContext=function(e){var t=x();return e.$$typeof===ye&&console.error(`Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?`),t.useContext(e)},e.useDebugValue=function(e,t){return x().useDebugValue(e,t)},e.useDeferredValue=function(e,t){return x().useDeferredValue(e,t)},e.useEffect=function(e,t){return e??console.warn(`React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?`),x().useEffect(e,t)},e.useEffectEvent=function(e){return x().useEffectEvent(e)},e.useId=function(){return x().useId()},e.useImperativeHandle=function(e,t,n){return x().useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return e??console.warn(`React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?`),x().useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return e??console.warn(`React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?`),x().useLayoutEffect(e,t)},e.useMemo=function(e,t){return x().useMemo(e,t)},e.useOptimistic=function(e,t){return x().useOptimistic(e,t)},e.useReducer=function(e,t,n){return x().useReducer(e,t,n)},e.useRef=function(e){return x().useRef(e)},e.useState=function(e){return x().useState(e)},e.useSyncExternalStore=function(e,t,n){return x().useSyncExternalStore(e,t,n)},e.useTransition=function(){return x().useTransition()},e.version=`19.3.0`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{(function(){function t(){}function n(e){return``+e}function r(e,t,r){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;if(i==null)i=null;else if(i===p)i=p;else{try{n(i);var a=!1}catch{a=!0}a&&(console.error(`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,typeof Symbol==`function`&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||`Object`),n(i)),i=``+i}return{$$typeof:u,key:i,children:e,containerInfo:t,implementation:r}}function i(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}function a(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:`something with type "`+typeof e+`"`}function o(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:typeof e==`string`?JSON.stringify(e):typeof e==`number`?"`"+e+"`":`something with type "`+typeof e+`"`}function s(){var e=m.H;return e===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
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
15
|
-
2. You might be breaking the Rules of Hooks
|
|
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.`),e}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=f(),l={d:{f:t,r:function(){throw Error(`Invalid form element. requestFormReset must be passed a form that was rendered by React.`)},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},u=Symbol.for(`react.portal`),d=Symbol.for(`react.recoverable`),p=Symbol.for(`react.optimistic_key`),m=c.__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`),e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,e.browser=function(e){return{$$typeof:d,_reason:e}},e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(`Target container is not a DOM element.`);return r(e,t,null,n)},e.flushSync=function(e){var t=m.T,n=l.p;try{if(m.T=null,l.p=2,e)return e()}finally{m.T=t,l.p=n,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.`)}},e.preconnect=function(e,t){typeof e==`string`&&e?t!=null&&typeof t!=`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.",o(t)):t!=null&&typeof t.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.",a(t.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,l.d.C(e,t))},e.prefetchDNS=function(e){if(typeof e!=`string`||!e)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e));else if(1<arguments.length){var t=arguments[1];typeof t==`object`&&t.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`.",o(t)):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`.",o(t))}typeof e==`string`&&l.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&e?typeof t!=`object`||!t?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.",o(t)):t.as!==`style`&&t.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".',o(t.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=i(n,t.crossOrigin),s=typeof t.integrity==`string`?t.integrity:void 0,c=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?l.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:s,fetchPriority:c}):n===`script`&&l.d.X(e,{crossOrigin:r,integrity:s,fetchPriority:c,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&t.as!==`script`&&(n+=" The `as` option encountered was "+o(t.as)+`.`),n)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",n);else switch(n=t&&typeof t.as==`string`?t.as:`script`,n){case`script`:break;default:n=o(n),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)',n,e)}typeof e==`string`&&(typeof t==`object`&&t?(t.as==null||t.as===`script`)&&(n=i(t.as,t.crossOrigin),l.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})):t??l.d.M(e))},e.preload=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),typeof t!=`object`||!t?n+=" The `options` argument encountered was "+a(t)+`.`:typeof t.as==`string`&&t.as||(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&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',n),typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){n=t.as;var r=i(n,t.crossOrigin);l.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){var n=``;typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&typeof t.as!=`string`&&(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&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',n),typeof e==`string`&&(t?(n=i(t.as,t.crossOrigin),l.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})):l.d.m(e))},e.requestFormReset=function(e){l.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s().useFormState(e,t,n)},e.useFormStatus=function(){return s().useHostTransitionStatus()},e.version=`19.3.0`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),m=o(((e,t)=>{t.exports=p()})),h=o((e=>{(function(){function t(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function n(e,t,r,i){if(r>=t.length)return i;var a=t[r],o=Ym(e)?e.slice():I({},e);return o[a]=n(e[a],t,r+1,i),o}function r(e,t,n){if(t.length!==n.length)console.warn(`copyWithRename() expects paths of the same length`);else{for(var r=0;r<n.length-1;r++)if(t[r]!==n[r]){console.warn(`copyWithRename() expects paths to be the same except for the deepest key`);return}return i(e,t,n,0)}}function i(e,t,n,r){var a=t[r],o=Ym(e)?e.slice():I({},e);return r+1===t.length?(o[n[r]]=o[a],Ym(o)?o.splice(a,1):delete o[a]):o[a]=i(e[a],t,n,r+1),o}function a(e,t,n){var r=t[n],i=Ym(e)?e.slice():I({},e);return n+1===t.length?(Ym(i)?i.splice(r,1):delete i[r],i):(i[r]=a(e[r],t,n+1),i)}function o(){return!1}function s(){return null}function c(){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 l(){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 d(){}function p(){}function h(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(`, `)}function g(e,t,n,r){return new Br(e,t,n,r)}function _(e,t){e.context===Bv&&(Qp(e.current,2,t,e,null,null),cu())}function v(e,t){if(Vv!==null){var n=t.staleFamilies;t=t.updatedFamilies,zu(),zr(e.current,t,n),cu()}}function y(e){Vv=e}function ee(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function b(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function te(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ne(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function re(e){if(b(e)!==e)throw Error(`Unable to find node on an unmounted component.`)}function ie(e){var t=e.alternate;if(!t){if(t=b(e),t===null)throw Error(`Unable to find node on an unmounted component.`);return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return re(i),e;if(a===r)return re(i),t;a=a.sibling}throw Error(`Unable to find node on an unmounted component.`)}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)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(n.alternate!==r)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(n.tag!==3)throw Error(`Unable to find node on an unmounted component.`);return n.stateNode.current===n?e:t}function ae(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=ae(e),t!==null)return t;e=e.sibling}return null}function oe(e,t,n,r,i){x(e.child,!1,t,n,r,i)}function x(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&x(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function se(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function ce(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function le(e){var t=[null,null],n=se(e);return n===null||ue(t,e,n.child,{foundSelf:!1}),t}function ue(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&ue(e,t,n.child,r))return!0;n=n.sibling}return!1}function de(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(`Expected to find a host node. This is a bug in React.`)}}function fe(e,t,n){return e===n||e===t&&(Dm=e,!0)}function pe(e,t,n){return e===n?(Om=e,!1):e===t&&(Om!==null&&(Dm=e),!0)}function me(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function he(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}function ge(e){return typeof e!=`object`||!e?null:(e=qm&&e[qm]||e[`@@iterator`],typeof e==`function`?e:null)}function _e(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Jm?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case Mm:return`Fragment`;case Pm:return`Profiler`;case Nm:return`StrictMode`;case Rm:return`Suspense`;case zm:return`SuspenseList`;case Hm:return`Activity`;case Gm:return`ViewTransition`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case jm:return`Portal`;case Im:return e.displayName||`Context`;case Fm:return(e._context.displayName||`Context`)+`.Consumer`;case Lm:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case Bm:return t=e.displayName||null,t===null?_e(e.type)||`Memo`:t;case Vm:t=e._payload,e=e._init;try{return _e(e(t))}catch{}}return null}function ve(e){return typeof e.tag==`number`?S(e):typeof e.name==`string`?e.name:null}function S(e){var t=e.type;switch(e.tag){case 31:return`Activity`;case 24:return`Cache`;case 9:return(t._context.displayName||`Context`)+`.Consumer`;case 10:return t.displayName||`Context`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 26:case 27:case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return _e(t);case 8:return t===Nm?`StrictMode`:`Mode`;case 22:if(e.return!==null)return S(e.return);break;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 30:return`ViewTransition`;case 1:case 0:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name==`string`)return t[n].name}if(e.return!==null)return S(e.return)}return null}function ye(e){return{current:e}}function be(e,t){0>z?console.error(`Unexpected pop.`):(t!==Qm[z]&&console.error(`Unexpected Fiber popped.`),e.current=Zm[z],Zm[z]=null,Qm[z]=null,z--)}function xe(e,t,n){z++,Zm[z]=e.current,Qm[z]=n,e.current=t}function Se(e){return e===null&&console.error(`Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.`),e}function Ce(e,t){xe(th,t,e),xe(eh,e,e),xe($m,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?`#document`:`#fragment`,t=(t=t.documentElement)&&(t=t.namespaceURI)?Xd(t):ST;break;default:if(n=t.tagName,t=t.namespaceURI)t=Xd(t),t=Zd(t,n);else switch(n){case`svg`:t=CT;break;case`math`:t=wT;break;default:t=ST}}n=n.toLowerCase(),n=ln(null,n),n={context:t,ancestorInfo:n},be($m,e),xe($m,n,e)}function we(e){be($m,e),be(eh,e),be(th,e)}function Te(){return Se($m.current)}function Ee(e){var t=e.memoizedState;t!==null&&(iE._currentValue=t.memoizedState,xe(nh,e,e)),t=Se($m.current);var n=e.type,r=Zd(t.context,n);n=ln(t.ancestorInfo,n),r={context:r,ancestorInfo:n},t!==r&&(xe(eh,e,e),xe($m,r,e))}function De(e){eh.current===e&&(be($m,e),be(eh,e)),nh.current===e&&(be(nh,e),iE._currentValue=rE)}function Oe(){}function ke(){if(rh===0){ih=console.log,ah=console.info,oh=console.warn,sh=console.error,ch=console.group,lh=console.groupCollapsed,uh=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Oe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}rh++}function Ae(){if(rh--,rh===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:ih}),info:I({},e,{value:ah}),warn:I({},e,{value:oh}),error:I({},e,{value:sh}),group:I({},e,{value:ch}),groupCollapsed:I({},e,{value:lh}),groupEnd:I({},e,{value:uh})})}0>rh&&console.error(`disabledDepth fell below zero. This is a bug in React. Please file an issue.`)}function je(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
18
|
-
`)&&(e=e.slice(29)),t=e.indexOf(`
|
|
19
|
-
`),t!==-1&&(e=e.slice(t+1)),t=e.indexOf(`react_stack_bottom_frame`),t!==-1&&(t=e.lastIndexOf(`
|
|
20
|
-
`,t)),t!==-1)e=e.slice(0,t);else return``;return e}function Me(e){if(dh===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);dh=t&&t[1]||``,fh=-1<e.stack.indexOf(`
|
|
21
|
-
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
22
|
-
`+dh+e+fh}function Ne(e,t){if(!e||ph)return``;var n=B.get(e);if(n!==void 0)return n;ph=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var r=null;r=L.H,L.H=null,ke();try{var i={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,`name`);a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var o=i.DetermineComponentFrameRoot(),s=o[0],c=o[1];if(s&&c){var l=s.split(`
|
|
23
|
-
`),u=c.split(`
|
|
24
|
-
`);for(o=a=0;a<l.length&&!l[a].includes(`DetermineComponentFrameRoot`);)a++;for(;o<u.length&&!u[o].includes(`DetermineComponentFrameRoot`);)o++;if(a===l.length||o===u.length)for(a=l.length-1,o=u.length-1;1<=a&&0<=o&&l[a]!==u[o];)o--;for(;1<=a&&0<=o;a--,o--)if(l[a]!==u[o]){if(a!==1||o!==1)do if(a--,o--,0>o||l[a]!==u[o]){var d=`
|
|
25
|
-
`+l[a].replace(` at new `,` at `);return e.displayName&&d.includes(`<anonymous>`)&&(d=d.replace(`<anonymous>`,e.displayName)),typeof e==`function`&&B.set(e,d),d}while(1<=a&&0<=o);break}}}finally{ph=!1,L.H=r,Ae(),Error.prepareStackTrace=n}return l=(l=e?e.displayName||e.name:``)?Me(l):``,typeof e==`function`&&B.set(e,l),l}function Pe(e,t){switch(e.tag){case 26:case 27:case 5:return Me(e.type);case 16:return Me(`Lazy`);case 13:return e.child!==t&&t!==null?Me(`Suspense Fallback`):Me(`Suspense`);case 19:return Me(`SuspenseList`);case 0:case 15:return Ne(e.type,!1);case 11:return Ne(e.type.render,!1);case 1:return Ne(e.type,!0);case 31:return Me(`Activity`);case 30:return Me(`ViewTransition`);default:return``}}function Fe(e){try{var t=``,n=null;do{t+=Pe(e,n);var r=e._debugInfo;if(r)for(var i=r.length-1;0<=i;i--){var a=r[i];if(typeof a.name==`string`){var o=t;a:{var s=a.name,c=a.env,l=a.debugLocation;if(l!=null){var u=je(l),d=u.lastIndexOf(`
|
|
26
|
-
`),f=d===-1?u:u.slice(d+1);if(f.indexOf(s)!==-1){var p=`
|
|
27
|
-
`+f;break a}}p=Me(s+(c?` [`+c+`]`:``))}t=o+p}}n=e,e=e.return}while(e);return t}catch(e){return`
|
|
28
|
-
Error generating stack: `+e.message+`
|
|
29
|
-
`+e.stack}}function C(e){return(e=e?e.displayName||e.name:``)?Me(e):``}function Ie(){if(mh===null)return null;var e=mh._debugOwner;return e==null?null:ve(e)}function Le(){if(mh===null)return``;var e=mh;try{var t=``;switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=Me(e.type);break;case 13:t+=Me(`Suspense`);break;case 19:t+=Me(`SuspenseList`);break;case 31:t+=Me(`Activity`);break;case 30:t+=Me(`ViewTransition`);break;case 0:case 15:case 1:e._debugOwner||t!==``||(t+=C(e.type));break;case 11:e._debugOwner||t!==``||(t+=C(e.type.render))}for(;e;)if(typeof e.tag==`number`){var n=e;e=n._debugOwner;var r=n._debugStack;if(e&&r){var i=je(r);i!==``&&(t+=`
|
|
30
|
-
`+i)}}else if(e.debugStack!=null){var a=e.debugStack;(e=e.owner)&&a&&(t+=`
|
|
31
|
-
`+je(a))}else break;var o=t}catch(e){o=`
|
|
32
|
-
Error generating stack: `+e.message+`
|
|
33
|
-
`+e.stack}return o}function w(e,t,n,r,i,a,o){var s=mh;Re(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,n,r,i,a,o)):t(n,r,i,a,o)}finally{Re(s)}throw Error(`runWithFiberInDEV should never be called in production. This is a bug in React.`)}function Re(e){L.getCurrentStack=e===null?null:Le,hh=!1,mh=e}function ze(e){return typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`}function Be(e){try{return Ve(e),!1}catch{return!0}}function Ve(e){return``+e}function He(e,t){if(Be(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,ze(e)),Ve(e)}function Ue(e,t){if(Be(e))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.",t,ze(e)),Ve(e)}function We(e){if(Be(e))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.`,ze(e)),Ve(e)}function Ge(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.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{Ah=t.inject(e),jh=t}catch(e){console.error(`React instrumentation encountered an error: %o.`,e)}return!!t.checkDCE}function Ke(e){if(typeof Oh==`function`&&kh(e),jh&&typeof jh.setStrictMode==`function`)try{jh.setStrictMode(Ah,e)}catch(e){Mh||(Mh=!0,console.error(`React instrumentation encountered an error: %o`,e))}}function qe(e){return e>>>=0,e===0?32:31-(Fh(e)/Ih|0)|0}function Je(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&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.`),e}}function Ye(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Je(n))):i=Je(o):i=Je(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Je(n))):i=Je(o)):i=Je(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Xe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ze(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Ph(n),i=1<<r;t|=e[r],n&=~i}return t}function Qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+5e3;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 $e(){var e=zh;return zh<<=1,!(zh&62914560)&&(zh=4194304),e}function et(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function nt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ph(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&rt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function rt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ph(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function it(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ph(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function at(e,t){var n=t&-t;return n=n&42?1:ot(n),(n&(e.suspendedLanes|t))===0?n:0}function ot(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function st(e,t,n){if(Nh)for(e=e.pendingUpdatersLaneMap;0<n;){var r=31-Ph(n),i=1<<r;e[r].add(t),n&=~i}}function ct(e,t){if(Nh)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;0<t;){var i=31-Ph(t);e=1<<i,i=n[i],0<i.size&&(i.forEach(function(e){var t=e.alternate;t!==null&&r.has(t)||r.add(e)}),i.clear()),t&=~e}}function lt(e){return e&=-e,Bh!==0&&Bh<e?Vh!==0&&Vh<e?e&134217727?Hh:Uh:Vh:Bh}function ut(){var e=R.p;return e===0?(e=window.event,e===void 0?Hh:lm(e.type)):e}function dt(e,t){var n=R.p;try{return R.p=e,t()}finally{R.p=n}}function ft(e){delete e[Gh],delete e[Kh],delete e[Yh],delete e[Xh]}function pt(e){var t;if(t=e[Gh])return t;for(var n=e.parentNode;n;){if(t=n[qh]||n[Gh]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=dp(e);e!==null;){if(n=e[Gh])return n;e=dp(e)}return t}e=n,n=e.parentNode}return null}function mt(e){if(e=e[Gh]||e[qh]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ht(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(`getNodeFromInstance: Invalid argument.`)}function gt(e){var t=e[Zh];return t||=e[Zh]={hoistableStyles:new Map,hoistableScripts:new Map},t}function _t(e){e[Qh]=!0}function vt(e){e[$h]=void 0}function yt(e,t){bt(e,t),bt(e+`Capture`,t)}function bt(e,t){tg[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),tg[e]=t;var n=e.toLowerCase();for(ng[n]=e,e===`onDoubleClick`&&(ng.ondblclick=e),e=0;e<t.length;e++)eg.add(t[e])}function xt(e,t){rg[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e===`select`?"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`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||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 St(e){return gh.call(og,e)?!0:gh.call(ag,e)?!1:ig.test(e)?og[e]=!0:(ag[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Ct(){var e=sg;return sg=!1,e}function wt(e,t,n){if(St(t)){if(!e.hasAttribute(t)){switch(typeof n){case`symbol`:case`object`:return n;case`function`:return n;case`boolean`:if(!1===n)return n}return n===void 0?void 0:null}return e=t.toLowerCase()===`nonce`?e.nonce:e.getAttribute(t),e===``&&!0===n||(He(n,t),e===``+n?n:e)}}function Tt(e,t,n){if(St(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}He(n,t),e.setAttribute(t,n)}}}function Et(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}He(n,t),e.setAttribute(t,n)}}function Dt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}He(r,n),e.setAttributeNS(t,n,r)}}function Ot(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return We(e),e;default:return``}}function kt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function At(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){We(e),n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){We(e),n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jt(e){if(!e._valueTracker){var t=kt(e)?`checked`:`value`;e._valueTracker=At(e,t,``+e[t])}}function Mt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=kt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Nt(e){return e.replace(cg,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Pt(e,t){t.checked===void 0||t.defaultChecked===void 0||ug||(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`,Ie()||`A component`,t.type),ug=!0),t.value===void 0||t.defaultValue===void 0||lg||(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`,Ie()||`A component`,t.type),lg=!0)}function Ft(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?(He(o,`type`),e.type=o):e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Ot(t)):e.value!==``+Ot(t)&&(e.value=``+Ot(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Lt(e,Ot(n)):o===`number`&&e.value==t?Lt(e,Ot(e.value)):Lt(e,Ot(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?(He(s,`name`),e.name=``+Ot(s)):e.removeAttribute(`name`)}function It(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(He(a,`type`),e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){jt(e);return}n=n==null?``:``+Ot(n),t=t==null?n:``+Ot(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(He(o,`name`),e.name=o),jt(e)}function Lt(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function Rt(e,t){t.value??(typeof t.children==`object`&&t.children!==null?Tm.Children.forEach(t.children,function(e){e==null||typeof e==`string`||typeof e==`number`||typeof e==`bigint`||fg||(fg=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||pg||(pg=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||dg||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),dg=!0)}function zt(){var e=Ie();return e?`
|
|
34
|
-
|
|
35
|
-
Check the render method of \``+e+"`.":``}function Bt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Ot(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Vt(e,t){for(e=0;e<hg.length;e++){var n=hg[e];if(t[n]!=null){var r=Ym(t[n]);t.multiple&&!r?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,zt()):!t.multiple&&r&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,zt())}}t.value===void 0||t.defaultValue===void 0||mg||(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`),mg=!0)}function Ht(e,t){t.value===void 0||t.defaultValue===void 0||gg||(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`,Ie()||`A component`),gg=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Ut(e,t,n){if(t!=null&&(t=``+Ot(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Ot(n)}function Wt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ym(r)){if(1<r.length)throw Error(`<textarea> can only have at most one child.`);r=r[0]}n=r}n??=``,t=n}n=Ot(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),jt(e)}function Gt(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Gt(e.children[0],t):e}function Kt(e){return` `+` `.repeat(e)}function qt(e){return`+ `+` `.repeat(e)}function Jt(e){return`- `+` `.repeat(e)}function Yt(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return`Lazy`;case 31:return`Activity`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Xt(e,t){return _g.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?`{"..."}`:`{`+e.slice(0,t-7)+`..."}`:`{`+e+`}`):e.length>t?5>t?`{"..."}`:e.slice(0,t-3)+`...`:e}function Zt(e,t,n){var r=120-2*n;if(t===null)return qt(n)+Xt(e,r)+`
|
|
36
|
-
`;if(typeof t==`string`){for(var i=0;i<t.length&&i<e.length&&t.charCodeAt(i)===e.charCodeAt(i);i++);return i>r-8&&10<i&&(e=`...`+e.slice(i-8),t=`...`+t.slice(i-8)),qt(n)+Xt(e,r)+`
|
|
37
|
-
`+Jt(n)+Xt(t,r)+`
|
|
38
|
-
`}return Kt(n)+Xt(e,r)+`
|
|
39
|
-
`}function Qt(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(e,t){return t})}function $t(e,t){switch(typeof e){case`string`:return e=JSON.stringify(e),e.length>t?5>t?`"..."`:e.slice(0,t-4)+`..."`:e;case`object`:if(e===null)return`null`;if(Ym(e))return`[...]`;if(e.$$typeof===Am)return(t=_e(e.type))?`<`+t+`>`:`<...>`;var n=Qt(e);if(n===`Object`){for(var r in n=``,t-=2,e)if(e.hasOwnProperty(r)){var i=JSON.stringify(r);if(i!==`"`+r+`"`&&(r=i),t-=r.length-2,i=$t(e[r],15>t?t:15),t-=i.length,0>t){n+=n===``?`...`:`, ...`;break}n+=(n===``?``:`,`)+r+`:`+i}return`{`+n+`}`}return n;case`function`:return(t=e.displayName||e.name)?`function `+t:`function`;default:return String(e)}}function en(e,t){return typeof e!=`string`||_g.test(e)?`{`+$t(e,t-2)+`}`:e.length>t-2?5>t?`"..."`:`"`+e.slice(0,t-5)+`..."`:`"`+e+`"`}function tn(e,t,n){var r=120-n.length-e.length,i=[],a;for(a in t)if(t.hasOwnProperty(a)&&a!==`children`){var o=en(t[a],120-n.length-a.length-1);r-=a.length+o.length+2,i.push(a+`=`+o)}return i.length===0?n+`<`+e+`>
|
|
40
|
-
`:0<r?n+`<`+e+` `+i.join(` `)+`>
|
|
41
|
-
`:n+`<`+e+`
|
|
42
|
-
`+n+` `+i.join(`
|
|
43
|
-
`+n+` `)+`
|
|
44
|
-
`+n+`>
|
|
45
|
-
`}function nn(e,t,n){var r=``,i=I({},t),a;for(a in e)if(e.hasOwnProperty(a)){delete i[a];var o=120-2*n-a.length-2,s=$t(e[a],o);t.hasOwnProperty(a)?(o=$t(t[a],o),r+=qt(n)+a+`: `+s+`
|
|
46
|
-
`,r+=Jt(n)+a+`: `+o+`
|
|
47
|
-
`):r+=qt(n)+a+`: `+s+`
|
|
48
|
-
`}for(var c in i)i.hasOwnProperty(c)&&(e=$t(i[c],120-2*n-c.length-2),r+=Jt(n)+c+`: `+e+`
|
|
49
|
-
`);return r}function rn(e,t,n,r){var i=``,a=new Map;for(l in n)n.hasOwnProperty(l)&&a.set(l.toLowerCase(),l);if(a.size===1&&a.has(`children`))i+=tn(e,t,Kt(r));else{for(var o in t)if(t.hasOwnProperty(o)&&o!==`children`){var s=120-2*(r+1)-o.length-1,c=a.get(o.toLowerCase());if(c!==void 0){a.delete(o.toLowerCase());var l=t[o];c=n[c];var u=en(l,s);s=en(c,s),typeof l==`object`&&l&&typeof c==`object`&&c&&Qt(l)===`Object`&&Qt(c)===`Object`&&(2<Object.keys(l).length||2<Object.keys(c).length||-1<u.indexOf(`...`)||-1<s.indexOf(`...`))?i+=Kt(r+1)+o+`={{
|
|
50
|
-
`+nn(l,c,r+2)+Kt(r+1)+`}}
|
|
51
|
-
`:(i+=qt(r+1)+o+`=`+u+`
|
|
52
|
-
`,i+=Jt(r+1)+o+`=`+s+`
|
|
53
|
-
`)}else i+=Kt(r+1)+o+`=`+en(t[o],s)+`
|
|
54
|
-
`}a.forEach(function(e){if(e!==`children`){var t=120-2*(r+1)-e.length-1;i+=Jt(r+1)+e+`=`+en(n[e],t)+`
|
|
55
|
-
`}}),i=i===``?Kt(r)+`<`+e+`>
|
|
56
|
-
`:Kt(r)+`<`+e+`
|
|
57
|
-
`+i+Kt(r)+`>
|
|
58
|
-
`}return e=n.children,t=t.children,typeof e==`string`||typeof e==`number`||typeof e==`bigint`?(a=``,(typeof t==`string`||typeof t==`number`||typeof t==`bigint`)&&(a=``+t),i+=Zt(a,``+e,r+1)):(typeof t==`string`||typeof t==`number`||typeof t==`bigint`)&&(i=e==null?i+Zt(``+t,null,r+1):i+Zt(``+t,void 0,r+1)),i}function an(e,t){var n=Yt(e);if(n===null){for(n=``,e=e.child;e;)n+=an(e,t),e=e.sibling;return n}return Kt(t)+`<`+n+`>
|
|
59
|
-
`}function on(e,t){var n=Gt(e,t);if(n!==e&&(e.children.length!==1||e.children[0]!==n))return Kt(t)+`...
|
|
60
|
-
`+on(n,t+1);n=``;var r=e.fiber._debugInfo;if(r)for(var i=0;i<r.length;i++){var a=r[i].name;typeof a==`string`&&(n+=Kt(t)+`<`+a+`>
|
|
61
|
-
`,t++)}if(r=``,i=e.fiber.pendingProps,e.fiber.tag===6)r=Zt(i,e.serverProps,t),t++;else if(a=Yt(e.fiber),a!==null){if(e.serverProps===void 0){r=t;var o=120-2*r-a.length-2,s=``;for(l in i)if(i.hasOwnProperty(l)&&l!==`children`){var c=en(i[l],15);if(o-=l.length+c.length+2,0>o){s+=` ...`;break}s+=` `+l+`=`+c}r=Kt(r)+`<`+a+s+`>
|
|
62
|
-
`,t++}else e.serverProps===null?(r=tn(a,i,qt(t)),t++):typeof e.serverProps==`string`?console.error(`Should not have matched a non HostText fiber to a Text node. This is a bug in React.`):(r=rn(a,i,e.serverProps,t),t++)}var l=``;for(i=e.fiber.child,a=0;i&&a<e.children.length;)o=e.children[a],o.fiber===i?(l+=on(o,t),a++):l+=an(i,t),i=i.sibling;for(i&&0<e.children.length&&(l+=Kt(t)+`...
|
|
63
|
-
`),i=e.serverTail,e.serverProps===null&&t--,e=0;e<i.length;e++)a=i[e],l=typeof a==`string`?l+(Jt(t)+Xt(a,120-2*t)+`
|
|
64
|
-
`):l+tn(a.type,a.props,Jt(t));return n+r+l}function sn(e){try{return`
|
|
65
|
-
|
|
66
|
-
`+on(e,0)}catch{return``}}function cn(e,t,n){for(var r=t,i=null,a=0;r;)r===e&&(a=0),i={fiber:r,children:i===null?[]:[i],serverProps:r===t?n:r===e?null:void 0,serverTail:[],distanceFromLeaf:a},a++,r=r.return;return i===null?``:sn(i).replaceAll(/^[+-]/gm,`>`)}function ln(e,t){var n=I({},e||Sg),r={tag:t};return yg.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),bg.indexOf(t)!==-1&&(n.pTagInButtonScope=null),vg.indexOf(t)!==-1&&t!==`address`&&t!==`div`&&t!==`p`&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,t===`form`&&(n.formTag=r),t===`a`&&(n.aTagInScope=r),t===`button`&&(n.buttonTagInScope=r),t===`nobr`&&(n.nobrTagInScope=r),t===`p`&&(n.pTagInButtonScope=r),t===`li`&&(n.listItemTagAutoclosing=r),(t===`dd`||t===`dt`)&&(n.dlItemTagAutoclosing=r),t===`#document`||t===`html`?n.containerTagInScope=null:n.containerTagInScope||=r,e!==null||t!==`#document`&&t!==`html`&&t!==`body`?!0===n.implicitRootScope&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function un(e,t,n){switch(t){case`tr`:return e===`th`||e===`td`||e===`style`||e===`script`||e===`template`;case`tbody`:case`thead`:case`tfoot`:return e===`tr`||e===`style`||e===`script`||e===`template`;case`colgroup`:return e===`col`||e===`template`;case`table`:return e===`caption`||e===`colgroup`||e===`tbody`||e===`tfoot`||e===`thead`||e===`style`||e===`script`||e===`template`;case`head`:return e===`base`||e===`basefont`||e===`bgsound`||e===`link`||e===`meta`||e===`title`||e===`noscript`||e===`noframes`||e===`style`||e===`script`||e===`template`;case`html`:if(n)break;return e===`head`||e===`body`||e===`frameset`;case`frameset`:return e===`frame`;case`#document`:if(!n)return e===`html`}switch(e){case`h1`:case`h2`:case`h3`:case`h4`:case`h5`:case`h6`:return t!==`h1`&&t!==`h2`&&t!==`h3`&&t!==`h4`&&t!==`h5`&&t!==`h6`;case`rp`:case`rt`:return xg.indexOf(t)===-1;case`caption`:case`col`:case`colgroup`:case`input`:return t!==`select`;case`frameset`:case`frame`:case`tbody`:case`td`:case`tfoot`:case`th`:case`thead`:case`tr`:return t==null;case`head`:return n||t===null;case`html`:return n&&t===`#document`||t===null;case`body`:return n&&(t===`#document`||t===`html`)||t===null}return!0}function dn(e,t){switch(e){case`address`:case`article`:case`aside`:case`blockquote`:case`center`:case`details`:case`dialog`:case`dir`:case`div`:case`dl`:case`fieldset`:case`figcaption`:case`figure`:case`footer`:case`header`:case`hgroup`:case`main`:case`menu`:case`nav`:case`ol`:case`p`:case`section`:case`summary`:case`ul`:case`pre`:case`listing`:case`table`:case`hr`:case`xmp`:case`h1`:case`h2`:case`h3`:case`h4`:case`h5`:case`h6`:return t.pTagInButtonScope;case`form`:return t.formTag||t.pTagInButtonScope;case`li`:return t.listItemTagAutoclosing;case`dd`:case`dt`:return t.dlItemTagAutoclosing;case`button`:return t.buttonTagInScope;case`a`:return t.aTagInScope;case`nobr`:return t.nobrTagInScope}return null}function fn(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function pn(e,t){t||=Sg;var n=t.current;if(t=(n=un(e,n&&n.tag,t.implicitRootScope)?null:n)?null:dn(e,t),t=n||t,!t)return!0;var r=t.tag;if(t=String(!!n)+`|`+e+`|`+r,Cg[t])return!1;Cg[t]=!0;var i=(t=mh)?fn(t.return,r):null,a=t!==null&&i!==null?cn(i,t,null):``,o=`<`+e+`>`;return n?(n=``,r===`table`&&e===`tr`&&(n+=` 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
|
-
This will cause a hydration error.%s`,o,r,n,a)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
68
|
-
This will cause a hydration error.%s`,o,r,a),t&&(e=t.return,i===null||e===null||i===e&&e._debugOwner===t._debugOwner||w(i,function(){console.error(`<%s> cannot contain a nested %s.
|
|
69
|
-
See this log for the ancestor stack trace.`,r,o)})),!1}function mn(e,t,n){if(n||un(`#text`,t,!1))return!0;if(n=`#text|`+t,Cg[n])return!1;Cg[n]=!0;var r=(n=mh)?fn(n,t):null;return n=n!==null&&r!==null?cn(r,n,n.tag===6?null:{children:null}):``,/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
70
|
-
This will cause a hydration error.%s`,t,n):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`,t,n),!1}function hn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}function gn(e){return e.replace(kg,function(e,t){return t.toUpperCase()})}function _n(e,t,n){var r=t.indexOf(`--`)===0;r||(-1<t.indexOf(`-`)?jg.hasOwnProperty(t)&&jg[t]||(jg[t]=!0,console.error(`Unsupported style property %s. Did you mean %s?`,t,gn(t.replace(Og,`ms-`)))):Dg.test(t)?jg.hasOwnProperty(t)&&jg[t]||(jg[t]=!0,console.error(`Unsupported vendor-prefixed style property %s. Did you mean %s?`,t,t.charAt(0).toUpperCase()+t.slice(1))):!Ag.test(n)||Mg.hasOwnProperty(n)&&Mg[n]||(Mg[n]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(Ag,``))),typeof n==`number`&&(isNaN(n)?Ng||(Ng=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||Pg||(Pg=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Fg.has(t)?t===`float`?e.cssFloat=n:(Ue(n,t),e[t]=(``+n).trim()):e[t]=n+`px`}function vn(e,t,n){if(t!=null&&typeof t!=`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(t&&Object.freeze(t),e=e.style,n!=null){if(t){var r={};if(n){for(var i in n)if(n.hasOwnProperty(i)&&!t.hasOwnProperty(i))for(var a=wg[i]||[i],o=0;o<a.length;o++)r[a[o]]=i}for(var s in t)if(t.hasOwnProperty(s)&&(!n||n[s]!==t[s]))for(i=wg[s]||[s],a=0;a<i.length;a++)r[i[a]]=s;for(var c in s={},t)for(i=wg[c]||[c],a=0;a<i.length;a++)s[i[a]]=c;for(var l in c={},r)if(i=r[l],(a=s[l])&&i!==a&&(o=i+`,`+a,!c[o])){c[o]=!0,o=console;var u=t[i];o.error.call(o,`%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.`,u==null||typeof u==`boolean`||u===``?`Removing`:`Updating`,i,a)}}for(var d in n)!n.hasOwnProperty(d)||t!=null&&t.hasOwnProperty(d)||(d.indexOf(`--`)===0?e.setProperty(d,``):d===`float`?e.cssFloat=``:e[d]=``,sg=!0);for(var f in t)l=t[f],t.hasOwnProperty(f)&&n[f]!==l&&(_n(e,f,l),sg=!0)}else for(r in t)t.hasOwnProperty(r)&&_n(e,r,t[r])}function yn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}function bn(e){return Rg.get(e)||e}function xn(e,t){if(gh.call(Vg,t)&&Vg[t])return!0;if(Ug.test(t)){if(e=`aria-`+t.slice(4).toLowerCase(),e=Bg.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Vg[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Vg[t]=!0}if(Hg.test(t)){if(e=t.toLowerCase(),e=Bg.hasOwnProperty(e)?e:null,e==null)return Vg[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Vg[t]=!0)}return!0}function Sn(e,t){var n=[],r;for(r in t)xn(e,r)||n.push(r);t=n.map(function(e){return"`"+e+"`"}).join(`, `),n.length===1?console.error(`Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e):1<n.length&&console.error(`Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e)}function Cn(e,t,n,r){if(gh.call(Gg,t)&&Gg[t])return!0;var i=t.toLowerCase();if(i===`onfocusin`||i===`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.`),Gg[t]=!0;if(typeof n==`function`&&(e===`form`&&t===`action`||e===`input`&&t===`formAction`||e===`button`&&t===`formAction`))return!0;if(r!=null){if(e=r.possibleRegistrationNames,r.registrationNameDependencies.hasOwnProperty(t))return!0;if(r=e.hasOwnProperty(i)?e[i]:null,r!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,r),Gg[t]=!0;if(Kg.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Gg[t]=!0}else if(Kg.test(t))return qg.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Gg[t]=!0;if(Jg.test(t)||Yg.test(t))return!0;if(i===`innerhtml`)return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Gg[t]=!0;if(i===`aria`)return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Gg[t]=!0;if(i===`is`&&n!=null&&typeof n!=`string`)return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Gg[t]=!0;if(typeof n==`number`&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Gg[t]=!0;if(zg.hasOwnProperty(i)){if(i=zg[i],i!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,i),Gg[t]=!0}else if(t!==i)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.",t,i),Gg[t]=!0;switch(t){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 n){case`boolean`:switch(t){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`credentialless`: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:return i=t.toLowerCase().slice(0,5),i===`data-`||i===`aria-`||(n?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,t,t,n,t):console.error(`Received \`%s\` for a non-boolean attribute \`%s\`.
|
|
72
|
-
|
|
73
|
-
If you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.
|
|
74
|
-
|
|
75
|
-
If you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.`,n,t,t,n,t,t,t),Gg[t]=!0)}case`function`:case`symbol`:return Gg[t]=!0,!1;case`string`:if(n===`false`||n===`true`){switch(t){case`checked`:case`selected`:case`multiple`:case`muted`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`: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}?",n,t,n===`false`?`The browser will interpret it as a truthy value.`:`Although this works, it will not work as expected if you pass the string "false".`,t,n),Gg[t]=!0}}return!0}function wn(e,t,n){var r=[],i;for(i in t)Cn(e,i,t[i],n)||r.push(i);t=r.map(function(e){return"`"+e+"`"}).join(`, `),r.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 `,t,e):1<r.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 `,t,e)}function Tn(e){return Xg.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function En(){}function Dn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function On(e){var t=mt(e);if(t&&(e=t.stateNode)){var n=e[Kh]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Ft(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(He(t,`name`),n=n.querySelectorAll(`input[name="`+Nt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Kh]||null;if(!i)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Ft(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Mt(r)}break a;case`textarea`:Ut(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Bt(e,!!n.multiple,t,!1)}}}function kn(e,t,n){if(e_)return e(t,n);e_=!0;try{return e(t)}finally{if(e_=!1,(Qg!==null||$g!==null)&&(cu(),Qg&&(t=Qg,e=$g,$g=Qg=null,On(t),e)))for(t=0;t<e.length;t++)On(e[t])}}function An(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Kh]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function jn(){if(o_)return o_;var e,t=a_,n=t.length,r,i=`value`in i_?i_.value:i_.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return o_=i.slice(e,1<r?1-r:void 0)}function Mn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Nn(){return!0}function Pn(){return!1}function Fn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Nn:Pn,this.isPropagationStopped=Pn,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Nn)},persist:function(){},isPersistent:Nn}),t}function In(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=w_[e])?!!t[e]:!1}function Ln(){return In}function Rn(e,t){switch(e){case`keyup`:return M_.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==N_;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function zn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}function Bn(e,t){switch(e){case`compositionend`:return zn(t);case`keypress`:return t.which===R_?(B_=!0,z_):null;case`textInput`:return e=t.data,e===z_&&B_?null:e;default:return null}}function Vn(e,t){if(V_)return e===`compositionend`||!P_&&Rn(e,t)?(e=jn(),o_=a_=i_=null,V_=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return L_&&t.locale!==`ko`?null:t.data;default:return null}}function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!H_[e.type]:t===`textarea`}function Un(e){if(!t_)return!1;e=`on`+e;var t=e in document;return t||=(t=document.createElement(`div`),t.setAttribute(e,`return;`),typeof t[e]==`function`),t}function Wn(e,t,n,r){Qg?$g?$g.push(r):$g=[r]:Qg=r,t=xd(t,`onChange`),0<t.length&&(n=new c_(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}function Gn(e){md(e,0)}function Kn(e){if(Mt(ht(e)))return e}function qn(e,t){if(e===`change`)return t}function Jn(){U_&&(U_.detachEvent(`onpropertychange`,Yn),W_=U_=null)}function Yn(e){if(e.propertyName===`value`&&Kn(W_)){var t=[];Wn(t,W_,e,Dn(e)),kn(Gn,t)}}function Xn(e,t,n){e===`focusin`?(Jn(),U_=t,W_=n,U_.attachEvent(`onpropertychange`,Yn)):e===`focusout`&&Jn()}function Zn(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Kn(W_)}function Qn(e,t){if(e===`click`)return Kn(t)}function $n(e,t){if(e===`input`||e===`change`)return Kn(t)}function er(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function T(e,t){if(K_(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!gh.call(t,i)||!K_(e[i],t[i]))return!1}return!0}function tr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function nr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rr(e,t){var n=nr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=nr(n)}}function ir(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ir(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ar(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=tr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=tr(e.document)}return t}function or(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function sr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Z_||J_==null||J_!==tr(r)||(r=J_,`selectionStart`in r&&or(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),X_&&T(X_,r)||(X_=r,r=xd(Y_,`onSelect`),0<r.length&&(t=new c_(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=J_)))}function cr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}function lr(e){if($_[e])return $_[e];if(!Q_[e])return e;var t=Q_[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ev)return $_[e]=t[n];return e}function ur(e,t){cv.set(e,t),yt(t,[e])}function dr(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=lw.identifierPrefix;var n=uv++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function fr(e){if(e==null||typeof e==`string`)return e;var t=null,n=vw;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function pr(e,t){return e=fr(e),t=fr(t),t==null?e===`auto`?null:e:t===`auto`?null:t}function mr(e){for(var t=_v,n=0;n<e.length&&n<xv;n++){var r=e[n];if(typeof r==`object`&&r){if(Ym(r)&&r.length===2&&typeof r[0]==`string`){if(t!==_v&&t!==bv)return vv;t=bv}else return vv}else{if(typeof r==`function`||typeof r==`string`&&50<r.length||t!==_v&&t!==yv||typeof r==`bigint`)return vv;t=yv}}return t}function hr(e,t,n,r){if(!ArrayBuffer.isView(e)){var i=0,a;for(a in e)if(gh.call(e,a)&&a[0]!==`_`&&(i++,_r(a,e[a],t,n,r),i>=xv)){t.push([r+`\xA0\xA0`.repeat(n)+`Only `+xv+` properties are shown. React will not log more properties of this object.`,``]);break}}}function gr(e){return`$$typeof`in e&&gh.call(e,`$$typeof`)?e.$$typeof:void 0}function _r(e,t,n,r,i){switch(typeof t){case`object`:if(t===null){t=`null`;break}if(gr(t)===Am){var a=_e(t.type)||`…`,o=t.key;t=t.props;var s=Object.keys(t),c=s.length;if(o==null&&c===0){t=`<`+a+` />`;break}if(3>r||c===1&&s[0]===`children`&&o==null){t=`<`+a+` … />`;break}for(var l in n.push([i+`\xA0\xA0`.repeat(r)+e,`<`+a]),o!==null&&_r(`key`,o,n,r+1,i),e=!1,o=0,t)if(o++,l===`children`?t.children!=null&&(!Ym(t.children)||0<t.children.length)&&(e=!0):gh.call(t,l)&&l[0]!==`_`&&_r(l,t[l],n,r+1,i),o>=xv)break;n.push([``,e?`>…</`+a+`>`:`/>`]);return}if(a=Object.prototype.toString.call(t),a=a.slice(8,a.length-1),ArrayBuffer.isView(t)){t=t.length,t=typeof t==`number`?a+`(`+t+`)`:a;break}if(a===`Array`){if(l=t.length>xv,o=mr(t),o===yv||o===_v){t=JSON.stringify(l?t.slice(0,xv).concat(`…`):t);break}if(o===bv){for(n.push([i+`\xA0\xA0`.repeat(r)+e,``]),e=0;e<t.length&&e<xv;e++)a=t[e],_r(a[0],a[1],n,r+1,i);l&&_r(xv.toString(),`…`,n,r+1,i);return}}if(a===`Promise`){if(t.status===`fulfilled`){if(a=n.length,_r(e,t.value,n,r,i),n.length>a){n=n[a],n[1]=`Promise<`+(n[1]||`Object`)+`>`;return}}else if(t.status===`rejected`&&(a=n.length,_r(e,t.reason,n,r,i),n.length>a)){n=n[a],n[1]=`Rejected Promise<`+n[1]+`>`;return}n.push([`\xA0\xA0`.repeat(r)+e,`Promise`]);return}a===`Object`&&(l=Object.getPrototypeOf(t))&&typeof l.constructor==`function`&&(a=l.constructor.name),n.push([i+`\xA0\xA0`.repeat(r)+e,a===`Object`?3>r?``:`…`:a]),3>r&&hr(t,n,r+1,i);return;case`function`:t=t.name,t=t===``||typeof t!=`string`?`() => {}`:t+`() {}`;break;case`string`:t=t===gv?`…`:JSON.stringify(1024<=t.length?t.slice(0,1023)+`…`:t);break;case`undefined`:t=`undefined`;break;case`boolean`:t=t?`true`:`false`;break;default:t=String(t)}n.push([i+`\xA0\xA0`.repeat(r)+e,t])}function vr(e,t,n,r){var i=!0,a=0;for(s in e){if(a>xv){n.push([`Previous object has more than `+xv+` properties. React will not attempt to diff objects with too many properties.`,``]),i=!1;break}s in t||(n.push([Sv+`\xA0\xA0`.repeat(r)+s,`…`]),i=!1),a++}for(var o in a=0,t){if(a>xv){n.push([`Next object has more than `+xv+` properties. React will not attempt to diff objects with too many properties.`,``]),i=!1;break}if(o in e){var s=e[o],c=t[o];if(s!==c){if(r===0&&o===`children`){i=`\xA0\xA0`.repeat(r)+o,n.push([Sv+i,`…`],[Cv+i,`…`]),i=!1;continue}if(!(3<=r)){if(typeof s==`object`&&typeof c==`object`&&s!==null&&c!==null&&gr(s)===gr(c)){if(gr(c)===Am){if(s.type===c.type&&s.key===c.key){s=_e(c.type)||`…`,i=`\xA0\xA0`.repeat(r)+o,s=`<`+s+` … />`,n.push([Sv+i,s],[Cv+i,s]),i=!1;continue}}else{var l=Object.prototype.toString.call(s),u=Object.prototype.toString.call(c);if(l===u&&(u===`[object Object]`||u===`[object Array]`)){l=[wv+`\xA0\xA0`.repeat(r)+o,u===`[object Array]`?`Array`:``],n.push(l),u=n.length,vr(s,c,n,r+1)?u===n.length&&(l[1]=`Referentially unequal but deeply equal objects. Consider memoization.`):i=!1;continue}}}else if(typeof s==`function`&&typeof c==`function`&&s.name===c.name&&s.length===c.length&&(l=Function.prototype.toString.call(s),u=Function.prototype.toString.call(c),l===u)){s=c.name===``?`() => {}`:c.name+`() {}`,n.push([wv+`\xA0\xA0`.repeat(r)+o,s+` Referentially unequal function closure. Consider memoization.`]);continue}}_r(o,s,n,r,Sv),_r(o,c,n,r,Cv),i=!1}}else n.push([Cv+`\xA0\xA0`.repeat(r)+o,`…`]),i=!1;a++}return i}function E(e){Ov=e&63?`Blocking`:e&64?`Gesture`:e&4194176?`Transition`:e&62914560?`Suspense`:e&2080374784?`Idle`:`Other`}function yr(e,t,n,r){Tv&&(jv.start=t,jv.end=n,Av.color=`warning`,Av.tooltipText=r,Av.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,r,jv)):performance.measure(r,jv),performance.clearMeasures(r))}function br(e,t,n){yr(e,t,n,`Reconnect`)}function xr(e,t,n,r,i){var a=S(e);if(a!==null&&Tv){var o=e.alternate,s=e.actualDuration;if(o===null||o.child!==e.child)for(var c=e.child;c!==null;c=c.sibling)s-=c.actualDuration;s=.5>s?r?`tertiary-light`:`primary-light`:10>s?r?`tertiary`:`primary`:100>s?r?`tertiary-dark`:`primary-dark`:`error`;var l=e.memoizedProps;r=e._debugTask,l!==null&&o!==null&&o.memoizedProps!==l?(c=[Mv],l=vr(o.memoizedProps,l,c,0),1<c.length?(l&&!kv&&(o.lanes&i)===0&&100<e.actualDuration?(kv=!0,c[0]=Pv,Av.color=`warning`,Av.tooltipText=Nv):(Av.color=s,Av.tooltipText=a),Av.properties=c,jv.start=t,jv.end=n,e=``+a,r==null?performance.measure(e,jv):r.run(performance.measure.bind(performance,e,jv)),performance.clearMeasures(e)):r==null?console.timeStamp(a,t,n,Ev,void 0,s):r.run(console.timeStamp.bind(console,a,t,n,Ev,void 0,s))):r==null?console.timeStamp(a,t,n,Ev,void 0,s):r.run(console.timeStamp.bind(console,a,t,n,Ev,void 0,s))}}function Sr(e,t,n,r){if(Tv){var i=S(e);if(i!==null){for(var a=null,o=[],s=0;s<r.length;s++){var c=r[s];a==null&&c.source!==null&&(a=c.source._debugTask),c=c.value,o.push([`Error`,typeof c==`object`&&c&&typeof c.message==`string`?String(c.message):String(c)])}e.key!==null&&_r(`key`,e.key,o,0,``),e.memoizedProps!==null&&hr(e.memoizedProps,o,0,``),a??=e._debugTask,e={start:t,end:n,detail:{devtools:{color:`error`,track:Ev,tooltipText:e.tag===13?`Hydration failed`:`Error boundary caught an error`,properties:o}}},i=``+i,a?a.run(performance.measure.bind(performance,i,e)):performance.measure(i,e),performance.clearMeasures(i)}}}function Cr(e,t,n,r,i){if(i!==null){if(Tv){var a=S(e);if(a!==null){r=[];for(var o=0;o<i.length;o++){var s=i[o].value;r.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e.key!==null&&_r(`key`,e.key,r,0,``),e.memoizedProps!==null&&hr(e.memoizedProps,r,0,``),t={start:t,end:n,detail:{devtools:{color:`error`,track:Ev,tooltipText:`A lifecycle or effect errored`,properties:r}}},e=e._debugTask,n=``+a,e?e.run(performance.measure.bind(performance,n,t)):performance.measure(n,t),performance.clearMeasures(n)}}}else a=S(e),a!==null&&Tv&&(i=1>r?`secondary-light`:100>r?`secondary`:500>r?`secondary-dark`:`error`,(e=e._debugTask)?e.run(console.timeStamp.bind(console,a,t,n,Ev,void 0,i)):console.timeStamp(a,t,n,Ev,void 0,i))}function wr(e,t,n,r){!Tv||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Prewarm`,e,t,Ov,Dv,n)):console.timeStamp(`Prewarm`,e,t,Ov,Dv,n))}function D(e,t,n,r){!Tv||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Suspended`,e,t,Ov,Dv,n)):console.timeStamp(`Suspended`,e,t,Ov,Dv,n))}function Tr(e,t,n,r){!Tv||t<=e||(r?r.run(console.timeStamp.bind(console,`Errored`,e,t,Ov,Dv,`error`)):console.timeStamp(`Errored`,e,t,Ov,Dv,`error`))}function Er(e,t,n,r){!Tv||t<=e||(r?r.run(console.timeStamp.bind(console,n,e,t,Ov,Dv,`secondary-light`)):console.timeStamp(n,e,t,Ov,Dv,`secondary-light`))}function Dr(e,t,n,r,i){if(Tv&&!(t<=e)){for(var a=[],o=0;o<n.length;o++){var s=n[o].value;a.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`error`,track:Ov,trackGroup:Dv,tooltipText:r?`Remaining Effects Errored`:`Commit Errored`,properties:a}}},i?i.run(performance.measure.bind(performance,`Errored`,e)):performance.measure(`Errored`,e),performance.clearMeasures(`Errored`)}}function Or(e,t,n,r,i){n===null?!Tv||t<=e||(i?i.run(console.timeStamp.bind(console,r?`Commit Interrupted View Transition`:`Commit`,e,t,Ov,Dv,r?`error`:`secondary-dark`)):console.timeStamp(r?`Commit Interrupted View Transition`:`Commit`,e,t,Ov,Dv,r?`error`:`secondary-dark`)):Dr(e,t,n,!1,i)}function kr(e,t,n){!Tv||t<=e||(n?n.run(console.timeStamp.bind(console,`Animating`,e,t,Ov,Dv,`secondary-dark`)):console.timeStamp(`Animating`,e,t,Ov,Dv,`secondary-dark`))}function Ar(){for(var e=Rv,t=zv=Rv=0;t<e;){var n=Lv[t];Lv[t++]=null;var r=Lv[t];Lv[t++]=null;var i=Lv[t];Lv[t++]=null;var a=Lv[t];if(Lv[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Pr(n,i,a)}}function jr(e,t,n,r){Lv[Rv++]=e,Lv[Rv++]=t,Lv[Rv++]=n,Lv[Rv++]=r,zv|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Mr(e,t,n,r){return jr(e,t,n,r),Fr(e)}function Nr(e,t){return jr(e,null,null,t),Fr(e)}function Pr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&Fv||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ph(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Fr(e){if(Cw>Sw)throw Ow=Cw=0,kw=ww=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.`);Ow>Dw&&(Ow=0,kw=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.`)),e.alternate===null&&e.flags&4098&&Zu(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&t.flags&4098&&Zu(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function Ir(e){if(Vv===null)return e;var t=Vv(e);return t===void 0?e:t.current}function Lr(e,t){if(Vv===null)return!1;var n=Vv,r=e.elementType;t=t.type;var i=!1,a=typeof t==`object`&&t?t.$$typeof:null;switch(e.tag){case 1:typeof t==`function`&&(i=!0);break;case 0:(typeof t==`function`||a===Vm)&&(i=!0);break;case 11:(a===Lm||a===Vm)&&(i=!0);break;case 14:case 15:(a===Bm||a===Vm)&&(i=!0);break;default:return!1}return!!(i&&(e=n(r),e!==void 0&&e===n(t)))}function Rr(e){Vv!==null&&typeof WeakSet==`function`&&(Hv===null&&(Hv=new WeakSet),Hv.add(e))}function zr(e,t,n){do{var r=e,i=r.alternate,a=r.child,o=r.sibling,s=r.tag,c=r.type,l=r.elementType,u=null;switch(r=null,s){case 0:case 1:u=c;break;case 15:u=c,r=l;break;case 14:r=l;break;case 11:u=c.render,r=l}if(Vv===null)throw Error(`Expected resolveFamily to be set during hot reload.`);var d=Vv;if(c=l=!1,u!==null&&(u=d(u),u!==void 0&&(n.has(u)?c=!0:t.has(u)&&(s===1?c=!0:l=!0))),c||r===null||(s=d(r),s!==void 0&&n.has(s)?c=!0:typeof r==`object`&&r.$$typeof===Vm&&(s=r._payload,s._status===1&&(s=d(s._result.default),s!==void 0&&n.has(s)&&(c=!0)))),Hv!==null&&(Hv.has(e)||i!==null&&Hv.has(i))&&(c=!0),c&&(e._debugNeedsRemount=!0),(c||l)&&(i=Nr(e,2),i!==null&&ru(i,e,2)),a===null||c||zr(a,t,n),o===null)break;e=o}while(1)}function Br(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,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,Jv||typeof Object.preventExtensions!=`function`||Object.preventExtensions(this)}function O(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vr(e,t){var n=e.alternate;switch(n===null?(n=g(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:case 14:case 1:case 11:n.type=Ir(e.type)}return n}function Hr(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function Ur(e,t,n,r,i,a){var o=0,s=Ir(e);if(typeof s==`function`)O(s)&&(o=1);else if(typeof s==`string`)o=Te(),o=Lp(e,n,o)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(s){case Hm:return t=g(31,n,t,i),t.elementType=Hm,t.lanes=a,t;case Mm:return Gr(n.children,i,a,t);case Nm:o=8,i|=Gv,i|=Kv;break;case Pm:return e=n,r=i,typeof e.id!=`string`&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=g(12,e,t,r|Wv),t.elementType=Pm,t.lanes=a,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Rm:return t=g(13,n,t,i),t.elementType=Rm,t.lanes=a,t;case zm:return t=g(19,n,t,i),t.elementType=zm,t.lanes=a,t;case Um:case Gm:return e=i|qv,t=g(30,n,t,e),t.elementType=Gm,t.lanes=a,t.stateNode={autoName:null,paired:null,clones:null,ref:null},t;default:if(typeof s==`object`&&s)switch(s.$$typeof){case Im:o=10;break a;case Fm:o=9;break a;case Lm:o=11;break a;case Bm:o=14;break a;case Vm:o=16,s=null;break a}n=``,(e===void 0||typeof e==`object`&&e&&Object.keys(e).length===0)&&(n+=` You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`),e===null?s=`null`:Ym(e)?s=`array`:e!==void 0&&e.$$typeof===Am?(s=`<`+(_e(e.type)||`Unknown`)+` />`,n=` Did you accidentally export a JSX literal instead of a component?`):s=typeof e,(o=r?ve(r):null)&&(n+=`
|
|
76
|
-
|
|
77
|
-
Check the render method of \``+o+"`."),o=29,n=Error(`Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: `+(s+`.`+n)),s=null}return t=g(o,n,t,i),t.elementType=e,t.type=s,t.lanes=a,t._debugOwner=r,t}function Wr(e,t,n){return t=Ur(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Gr(e,t,n,r){return e=g(7,e,r,t),e.lanes=n,e}function Kr(e,t,n){return e=g(6,e,null,t),e.lanes=n,e}function qr(e){var t=g(18,null,null,V);return t.stateNode=e,t}function Jr(e,t,n){return t=g(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yr(e,t){if(typeof e==`object`&&e){var n=Yv.get(e);return n===void 0?(t={value:e,source:t,stack:Fe(t)},Yv.set(e,t),t):n}return{value:e,source:t,stack:Fe(t)}}function Xr(e,t){ni(),Xv[Zv++]=$v,Xv[Zv++]=Qv,Qv=e,$v=t}function Zr(e,t,n){ni(),ey[ty++]=ry,ey[ty++]=iy,ey[ty++]=ny,ny=e;var r=ry;e=iy;var i=32-Ph(r)-1;r&=~(1<<i),n+=1;var a=32-Ph(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ry=1<<32-Ph(t)+i|n<<i|r,iy=a+e}else ry=1<<a|n<<i|r,iy=e}function Qr(e){ni(),e.return!==null&&(Xr(e,1),Zr(e,1,0))}function $r(e){for(;e===Qv;)Qv=Xv[--Zv],Xv[Zv]=null,$v=Xv[--Zv],Xv[Zv]=null;for(;e===ny;)ny=ey[--ty],ey[ty]=null,iy=ey[--ty],ey[ty]=null,ry=ey[--ty],ey[ty]=null}function ei(){return ni(),ny===null?null:{id:ry,overflow:iy}}function ti(e,t){ni(),ey[ty++]=ry,ey[ty++]=iy,ey[ty++]=ny,ry=t.id,iy=t.overflow,ny=e}function ni(){sy||console.error(`Expected to be hydrating. This is a bug in React. Please file an issue.`)}function ri(e,t){if(e.return===null){if(ly===null)ly={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(ly.fiber!==e)throw Error(`Saw multiple hydration diff roots in a pass. This is a bug in React.`);ly.distanceFromLeaf>t&&(ly.distanceFromLeaf=t)}return ly}var n=ri(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?(n=n[n.length-1],n.distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function ii(){sy&&console.error(`We should not be hydrating here. This is a bug in React. Please file a bug.`)}function ai(e,t){cy||(e=ri(e,0),e.serverProps=null,t!==null&&(t=cp(t),e.serverTail.push(t)))}function oi(e){var t=1<arguments.length&&arguments[1]!==void 0&&arguments[1],n=``,r=ly;throw r!==null&&(ly=null,n=sn(r)),k(Yr(Error(`Hydration failed because the server rendered `+(t?`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:
|
|
78
|
-
|
|
79
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
80
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
81
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
82
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
83
|
-
- Invalid HTML tag nesting.
|
|
84
|
-
|
|
85
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
86
|
-
|
|
87
|
-
https://react.dev/link/hydration-mismatch`+n),e)),fy}function si(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Gh]=e,t[Kh]=r,wd(n,r),n){case`dialog`:hd(`cancel`,t),hd(`close`,t);break;case`iframe`:case`object`:case`embed`:hd(`load`,t);break;case`video`:case`audio`:for(n=0;n<Ww.length;n++)hd(Ww[n],t);break;case`source`:hd(`error`,t);break;case`img`:case`image`:case`link`:hd(`error`,t),hd(`load`,t);break;case`details`:hd(`toggle`,t);break;case`input`:xt(`input`,r),hd(`invalid`,t),Pt(t,r),It(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`option`:Rt(t,r);break;case`select`:xt(`select`,r),hd(`invalid`,t),Vt(t,r);break;case`textarea`:xt(`textarea`,r),hd(`invalid`,t),Ht(t,r),Wt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Md(t.textContent,n)?(r.popover!=null&&(hd(`beforetoggle`,t),hd(`toggle`,t)),r.onScroll!=null&&hd(`scroll`,t),r.onScrollEnd!=null&&hd(`scrollend`,t),r.onClick!=null&&(t.onclick=En),t=!0):t=!1,t||oi(e,!0)}function ci(e){for(ay=e.return;ay;)switch(ay.tag){case 5:case 31:case 13:dy=!1;return;case 27:case 3:dy=!0;return;default:ay=ay.return}}function li(e){if(e!==ay)return!1;if(!sy)return ci(e),sy=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||ef(e.type,e.memoizedProps)),n=!n),n&&oy){for(n=oy;n;){var r=ri(e,0),i=cp(n);r.serverTail.push(i),n=i.type===`Suspense`?up(n):sp(n.nextSibling)}oi(e)}if(ci(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);oy=up(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);oy=up(e)}else t===27?(t=oy,ff(e.type)?(e=BT,BT=null,oy=e):oy=t):oy=ay?sp(e.stateNode.nextSibling):null;return!0}function ui(){oy=ay=null,cy=sy=!1}function di(){var e=uy;return e!==null&&(HC===null?HC=e:HC.push.apply(HC,e),uy=null),e}function k(e){uy===null?uy=[e]:uy.push(e)}function A(){var e=ly;if(e!==null){ly=null;for(var t=sn(e);0<e.children.length;)e=e.children[0];w(e.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:
|
|
88
|
-
|
|
89
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
90
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
91
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
92
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
93
|
-
- Invalid HTML tag nesting.
|
|
94
|
-
|
|
95
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
96
|
-
|
|
97
|
-
%s%s`,`https://react.dev/link/hydration-mismatch`,t)})}}function fi(){_y=gy=null,vy=!1}function pi(e,t,n){xe(py,t._currentValue,e),t._currentValue=n,xe(my,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==hy&&console.error(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),t._currentRenderer=hy}function mi(e,t){e._currentValue=py.current;var n=my.current;be(my,t),e._currentRenderer=n,be(py,t)}function hi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}e!==n&&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 gi(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;a:for(;a!==null;){var s=a;a=i;for(var c=0;c<t.length;c++)if(s.context===t[c]){a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),hi(a.return,n,e),r||(o=null);break a}a=s.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(`We just came from a parent so we must have had a parent. This is a bug in React.`);o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),hi(o,n,e),o=null}else i.tag===13&&i.memoizedState!==null&&i.memoizedState.dehydrated===null?(i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),hi(i.return,n,e),o=i.child,o=o===null?null:o.sibling):o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function _i(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(`Should have a current fiber. This is a bug in React.`);if(o=o.memoizedProps,o!==null){var s=i.type;K_(i.pendingProps.value,o.value)||(e===null?e=[s]:e.push(s))}}else if(i===nh.current){if(o=i.alternate,o===null)throw Error(`Should have a current fiber. This is a bug in React.`);o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[iE]:e.push(iE))}i=i.return}return e!==null&&gi(t,e,n,r),t.flags|=262144,e!==null}function vi(e){for(e=e.firstContext;e!==null;){if(!K_(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function yi(e){gy=e,_y=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function bi(e){return vy&&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().`),Si(gy,e)}function xi(e,t){return gy===null&&yi(e),Si(e,t)}function Si(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},_y===null){if(e===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().`);_y=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else _y=_y.next=t;return n}function Ci(){return{controller:new yy,data:new Map,refCount:0}}function wi(e){e.controller.signal.aborted&&console.warn(`A cache instance was retained after it was already freed. This likely indicates a bug in React.`),e.refCount++}function Ti(e){e.refCount--,0>e.refCount&&console.warn(`A cache instance was released after it was already freed. This likely indicates a bug in React.`),e.refCount===0&&by(xy,function(){e.controller.abort()})}function Ei(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}function Di(e){var t=e.transitionTypes;return e.transitionTypes=null,t}function Oi(e,t,n){e&127?0>Ry&&(Ry=wy(),zy=Ty(t),Vy=t,n!=null&&(Hy=S(n)),(_C&(cC|lC))!==sC&&(Iy=!0,By=Ey),e=rf(),t=nf(),e!==Gy||t!==Wy?Gy=-1.1:t!==null&&(By=Ey),Uy=e,Wy=t):e&4194048&&0>Yy&&(Yy=wy(),Zy=Ty(t),Qy=t,n!=null&&($y=S(n)),0>Jy)&&(e=rf(),t=nf(),(e!==nb||t!==tb)&&(nb=-1.1),eb=e,tb=t)}function ki(e){if(0>Ry){Ry=wy(),zy=e._debugTask==null?null:e._debugTask,(_C&(cC|lC))!==sC&&(By=Ey);var t=rf(),n=nf();t!==Gy||n!==Wy?Gy=-1.1:n!==null&&(By=Ey),Uy=t,Wy=n}0>Yy&&(Yy=wy(),Zy=e._debugTask==null?null:e._debugTask,0>Jy)&&(e=rf(),t=nf(),(e!==nb||t!==tb)&&(nb=-1.1),eb=e,tb=t)}function Ai(){var e=Ny;return Ny=0,e}function ji(e){var t=Ny;return Ny=e,t}function Mi(e){var t=Ny;return Ny+=e,t}function Ni(){U=H=-1.1}function Pi(){var e=H;return H=-1.1,e}function Fi(e){0<=e&&(H=e)}function Ii(){var e=Py;return Py=-0,e}function Li(e){0<=e&&(Py=e)}function Ri(){var e=Fy;return Fy=null,e}function zi(){var e=Iy;return Iy=!1,e}function Bi(e){My=wy(),0>e.actualStartTime&&(e.actualStartTime=My)}function Vi(e){if(0<=My){var t=wy()-My;e.actualDuration+=t,e.selfBaseDuration=t,My=-1}}function j(e){if(0<=My){var t=wy()-My;e.actualDuration+=t,My=-1}}function Hi(){if(0<=My){var e=wy(),t=e-My;My=-1,Ny+=t,Py+=t,U=e}}function Ui(e){Fy===null&&(Fy=[]),Fy.push(e),jy===null&&(jy=[]),jy.push(e)}function Wi(){My=wy(),0>H&&(H=My)}function Gi(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Ki(e,t){if(fb===null){var n=fb=[];pb=0,mb=ud(),hb={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return pb++,t.then(qi,qi),t}function qi(){if(--pb===0&&(-1<Yy||(Jy=-1.1),Cy=null,fb!==null)){hb!==null&&(hb.status=`fulfilled`);var e=fb;fb=null,mb=0,hb=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ji(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}function Yi(){var e=_b.current;return e===null?vC.pooledCache:e}function Xi(e,t){t===null?xe(_b,_b.current,e):xe(_b,t.pool,e)}function Zi(){var e=Yi();return e===null?null:{parent:Sy._currentValue,pool:e}}function Qi(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function $i(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ea(e,t,n,r){L.actQueue!==null&&(L.didUsePromise=!0);var i=e.thenables;if(n=i[n],n===void 0?i.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.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.`)),t.then(En,En),t=n),t._debugInfo===void 0){e=performance.now(),i=t.displayName;var a={name:typeof i==`string`?i:`Promise`,start:e,end:e,value:t};t._debugInfo=[{awaited:a}],t.status!==`fulfilled`&&t.status!==`rejected`&&(e=function(){a.end=performance.now()},t.then(e,e))}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw r=t.reason,ra(r),r===void 0&&!(`reason`in t)?Error("A rejected Promise was passed to React without a `reason` property. React threw a generic error from where the Promise was used to assist in identifying the problematic Promise. Make sure that instrumented Promises correctly set the `reason` property when setting `status` to `'rejected'`."):r;default:if(typeof t.status==`string`)t.then(En,En);else{if(e=vC,e!==null&&100<e.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.");e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw r=t.reason,ra(r),r}throw ex=t,tx=!0,$b||r===null||r.alternate!==null||(Zb=r,Qb=Error(`This library called use() to suspend in a previous render but did not call use() when it finished. This indicates an incorrect use of use(). Learn more: https://react.dev/warnings/conditional-use-of-use`)),qb}}function ta(e){try{return Kb(e)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(ex=e,tx=!0,qb):e}}function na(){if(ex===null)throw Error(`Expected a suspended thenable. This is a bug in React. Please file an issue.`);var e=ex;return ex=null,tx=!1,e}function ra(e){if(e===qb||e===Yb)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 ia(e,t){return e===t?!0:e.tag!==t.tag||e.type!==t.type||e.key!==t.key||e.index!==t.index||e.tag===3&&e.stateNode!==t.stateNode||e.return===null||t.return===null?!1:ia(e.return,t.return)}function aa(e){var t=W;return e!=null&&(W=t===null?e:t.concat(e)),t}function oa(){var e=W;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var n=e[t].debugTask;if(n!=null)return n}}return null}function sa(e,t,n){for(var r=Object.keys(e.props),i=0;i<r.length;i++){var a=r[i];if(a!==`children`&&a!==`key`&&a!==`ref`){t===null&&(t=Wr(e,n.mode,0),t._debugInfo=W,t.return=n),w(t,function(e){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key`, `ref`, and `children` props.",e)},a);break}}}function ca(e){var t=rx;return rx+=1,nx===null&&(nx=Qi()),ea(nx,e,t,null)}function la(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function ua(e,t){throw t.$$typeof===km?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
98
|
-
- Multiple copies of the "react" package is used.
|
|
99
|
-
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
100
|
-
- A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error(`Objects are not valid as a React child (found: `+(e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)+`). If you meant to render a collection of children, use an array instead.`))}function da(e,t){var n=oa();n===null?ua(e,t):n.run(ua.bind(null,e,t))}function fa(e,t){var n=S(e)||`Component`;sx[n]||(sx[n]=!0,t=t.displayName||t.name||`Component`,e.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.
|
|
101
|
-
root.render(%s)`,t,t,t):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.
|
|
102
|
-
<%s>{%s}</%s>`,t,t,n,t,n))}function pa(e,t){var n=oa();n===null?fa(e,t):n.run(fa.bind(null,e,t))}function ma(e,t){var n=S(e)||`Component`;cx[n]||(cx[n]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
103
|
-
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
104
|
-
<%s>%s</%s>`,n,t,n))}function ha(e,t){var n=oa();n===null?ma(e,t):n.run(ma.bind(null,e,t))}function ga(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=Vr(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function o(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function s(e,t,n,r){return t===null||t.tag!==6?(t=Kr(n,e.mode,r),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=W,t):(t=i(t,n),t.return=e,t._debugInfo=W,t)}function c(e,t,n,r){var a=n.type;return a===Mm?(t=u(e,t,n.props.children,r,n.key),la(t,n),sa(n,t,e),t):t!==null&&(t.elementType===a||Lr(t,n)||typeof a==`object`&&a&&a.$$typeof===Vm&&ta(a)===t.type)?(t=i(t,n.props),la(t,n),t.return=e,t._debugOwner=n._owner,t._debugInfo=W,t):(t=Wr(n,e.mode,r),la(t,n),t.return=e,t._debugInfo=W,t)}function l(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Jr(n,e.mode,r),t.return=e,t._debugInfo=W,t):(t=i(t,n.children||[]),t.return=e,t._debugInfo=W,t)}function u(e,t,n,r,a){return t===null||t.tag!==7?(t=Gr(n,e.mode,r,a),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=W,t):(t=i(t,n),t.return=e,t._debugInfo=W,t)}function d(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Kr(``+t,e.mode,n),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=W,t;if(typeof t==`object`&&t){switch(t.$$typeof){case Am:return n=Wr(t,e.mode,n),la(n,t),n.return=e,e=aa(t._debugInfo),n._debugInfo=W,W=e,n;case jm:return t=Jr(t,e.mode,n),t.return=e,t._debugInfo=W,t;case Vm:var r=aa(t._debugInfo);return t=ta(t),e=d(e,t,n),W=r,e}if(Ym(t)||ge(t))return n=Gr(t,e.mode,n,null),n.return=e,n._debugOwner=e,n._debugTask=e._debugTask,e=aa(t._debugInfo),n._debugInfo=W,W=e,n;if(typeof t.then==`function`)return r=aa(t._debugInfo),e=d(e,ca(t),n),W=r,e;if(t.$$typeof===Im)return d(e,xi(e,t),n);da(e,t)}return typeof t==`function`&&pa(e,t),typeof t==`symbol`&&ha(e,t),null}function f(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?s(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case Am:return n.key===i?(i=aa(n._debugInfo),e=c(e,t,n,r),W=i,e):null;case jm:return n.key===i?l(e,t,n,r):null;case Vm:return i=aa(n._debugInfo),n=ta(n),e=f(e,t,n,r),W=i,e}if(Ym(n)||ge(n))return i===null?(i=aa(n._debugInfo),e=u(e,t,n,r,null),W=i,e):null;if(typeof n.then==`function`)return i=aa(n._debugInfo),e=f(e,t,ca(n),r),W=i,e;if(n.$$typeof===Im)return f(e,t,xi(e,n),r);da(e,n)}return typeof n==`function`&&pa(e,n),typeof n==`symbol`&&ha(e,n),null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,s(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case Am:return n=e.get(r.key===null?n:r.key)||null,e=aa(r._debugInfo),t=c(t,n,r,i),W=e,t;case jm:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case Vm:var a=aa(r._debugInfo);return r=ta(r),t=m(e,t,n,r,i),W=a,t}if(Ym(r)||ge(r))return n=e.get(n)||null,e=aa(r._debugInfo),t=u(t,n,r,i,null),W=e,t;if(typeof r.then==`function`)return a=aa(r._debugInfo),t=m(e,t,n,ca(r),i),W=a,t;if(r.$$typeof===Im)return m(e,t,n,xi(t,r),i);da(t,r)}return typeof r==`function`&&pa(t,r),typeof r==`symbol`&&ha(t,r),null}function h(e,t,n,r){if(typeof n!=`object`||!n)return r;switch(n.$$typeof){case Am:case jm:p(e,t,n);var i=n.key;if(typeof i!=`string`)break;if(r===null){r=new Set,r.add(i);break}if(!r.has(i)){r.add(i);break}w(t,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.",i)});break;case Vm:n=ta(n),h(e,t,n,r)}return r}function _(i,o,s,c){for(var l=null,u=null,p=null,g=o,_=o=0,v=null;g!==null&&_<s.length;_++){g.index>_?(v=g,g=null):v=g.sibling;var y=f(i,g,s[_],c);if(y===null){g===null&&(g=v);break}l=h(i,y,s[_],l),e&&g&&y.alternate===null&&t(i,g),o=a(y,o,_),p===null?u=y:p.sibling=y,p=y,g=v}if(_===s.length)return n(i,g),sy&&Xr(i,_),u;if(g===null){for(;_<s.length;_++)g=d(i,s[_],c),g!==null&&(l=h(i,g,s[_],l),o=a(g,o,_),p===null?u=g:p.sibling=g,p=g);return sy&&Xr(i,_),u}for(g=r(g);_<s.length;_++)v=m(g,i,_,s[_],c),v!==null&&(l=h(i,v,s[_],l),e&&(y=v.alternate,y!==null&&g.delete(y.key===null?_:y.key)),o=a(v,o,_),p===null?u=v:p.sibling=v,p=v);return e&&g.forEach(function(e){return t(i,e)}),sy&&Xr(i,_),u}function v(i,o,s,c){if(s==null)throw Error(`An iterable object provided no iterator.`);for(var l=null,u=null,p=o,g=o=0,_=null,v=null,y=s.next();p!==null&&!y.done;g++,y=s.next()){p.index>g?(_=p,p=null):_=p.sibling;var ee=f(i,p,y.value,c);if(ee===null){p===null&&(p=_);break}v=h(i,ee,y.value,v),e&&p&&ee.alternate===null&&t(i,p),o=a(ee,o,g),u===null?l=ee:u.sibling=ee,u=ee,p=_}if(y.done)return n(i,p),sy&&Xr(i,g),l;if(p===null){for(;!y.done;g++,y=s.next())p=d(i,y.value,c),p!==null&&(v=h(i,p,y.value,v),o=a(p,o,g),u===null?l=p:u.sibling=p,u=p);return sy&&Xr(i,g),l}for(p=r(p);!y.done;g++,y=s.next())_=m(p,i,g,y.value,c),_!==null&&(v=h(i,_,y.value,v),e&&(y=_.alternate,y!==null&&p.delete(y.key===null?g:y.key)),o=a(_,o,g),u===null?l=_:u.sibling=_,u=_);return e&&p.forEach(function(e){return t(i,e)}),sy&&Xr(i,g),l}function y(e,r,a,s){if(typeof a==`object`&&a&&a.type===Mm&&a.key===null&&a.props.ref===void 0&&(sa(a,null,e),a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case Am:var c=aa(a._debugInfo);a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===Mm){if(r.tag===7){n(e,r.sibling),s=i(r,a.props.children),la(s,a),s.return=e,s._debugOwner=a._owner,s._debugInfo=W,sa(a,s,e),e=s;break a}}else if(r.elementType===l||Lr(r,a)||typeof l==`object`&&l&&l.$$typeof===Vm&&ta(l)===r.type){n(e,r.sibling),s=i(r,a.props),la(s,a),s.return=e,s._debugOwner=a._owner,s._debugInfo=W,e=s;break a}n(e,r);break}t(e,r),r=r.sibling}a.type===Mm?(s=Gr(a.props.children,e.mode,s,a.key),la(s,a),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=W,sa(a,s,e),e=s):(s=Wr(a,e.mode,s),la(s,a),s.return=e,s._debugInfo=W,e=s)}return e=o(e),W=c,e;case jm:a:{for(c=a,a=c.key;r!==null;){if(r.key===a){if(r.tag===4&&r.stateNode.containerInfo===c.containerInfo&&r.stateNode.implementation===c.implementation){n(e,r.sibling),s=i(r,c.children||[]),s.return=e,e=s;break a}n(e,r);break}t(e,r),r=r.sibling}s=Jr(c,e.mode,s),s.return=e,e=s}return o(e);case Vm:return c=aa(a._debugInfo),a=ta(a),e=y(e,r,a,s),W=c,e}if(Ym(a))return _(e,r,a,s);if(ge(a)){if(c=a,a=ge(c),typeof a!=`function`)throw Error(`An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.`);return l=a.call(c),l===c?(e.tag!==0||Object.prototype.toString.call(e.type)!==`[object GeneratorFunction]`||Object.prototype.toString.call(l)!==`[object Generator]`)&&(ax||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."),ax=!0):c.entries!==a||ix||(console.error(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),ix=!0),v(e,r,l,s)}if(typeof a.then==`function`)return c=aa(a._debugInfo),e=y(e,r,ca(a),s),W=c,e;if(a.$$typeof===Im)return y(e,r,xi(e,a),s);da(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(c=``+a,r!==null&&r.tag===6?(n(e,r.sibling),s=i(r,c),s.return=e,e=s):(n(e,r),s=Kr(c,e.mode,s),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=W,e=s),o(e)):(typeof a==`function`&&pa(e,a),typeof a==`symbol`&&ha(e,a),n(e,r))}return function(e,t,n,r){var i=W;W=null;try{rx=0;var a=y(e,t,n,r);return nx=null,a}catch(t){if(t===qb||t===Yb)throw t;var o=g(29,t,null,e.mode);o.lanes=r,o.return=e;var s=o._debugInfo=W;if(o._debugOwner=e._debugOwner,o._debugTask=e._debugTask,s!=null){for(var c=s.length-1;0<=c;c--)if(typeof s[c].stack==`string`){o._debugOwner=s[c],o._debugTask=s[c].debugTask;break}}return o}finally{W=i}}}function _a(e,t){var n=Ym(e);return e=!n&&typeof ge(e)==`function`,n||e?(n=n?`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>`,n,t,n),!1):!0}function va(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ya(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ba(e){return{lane:e,tag:dx,payload:null,callback:null,next:null}}function xa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,_x===r&&!gx){var i=S(e);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.
|
|
105
|
-
|
|
106
|
-
Please update the following component: %s`,i),gx=!0}return(_C&cC)===sC?(jr(e,r,t,n),Fr(e)):(i=r.pending,i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Fr(e),Pr(e,null,n),t)}function Sa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,it(e,n)}}function Ca(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function wa(){if(vx){var e=hb;if(e!==null)throw e}}function Ta(e,t,n,r){vx=!1;var i=e.updateQueue;hx=!1,_x=i.shared;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(J&f)===f:(r&f)===f){f!==0&&f===mb&&(vx=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{f=e;var m=s,h=t,g=n;switch(m.tag){case fx:if(m=m.payload,typeof m==`function`){vy=!0;var _=m.call(g,d,h);if(f.mode&Gv){Ke(!0);try{m.call(g,d,h)}finally{Ke(!1)}}vy=!1,d=_;break a}d=m;break a;case mx:f.flags=f.flags&-65537|128;case dx:if(_=m.payload,typeof _==`function`){if(vy=!0,m=_.call(g,d,h),f.mode&Gv){Ke(!0);try{_.call(g,d,h)}finally{Ke(!1)}}vy=!1}else m=_;if(m==null)break a;d=I({},d,m);break a;case px:hx=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),IC|=o,e.lanes=o,e.memoizedState=d}_x=null}function Ea(e,t){if(typeof e!=`function`)throw Error(`Invalid argument passed as callback. Expected a function. Instead received: `+e);e.call(t)}function Da(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)Ea(n[e],t)}function Oa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ea(n[e],t)}function ka(e,t){var n=PC;xe(bx,n,e),xe(yx,t,e),PC=n|t.baseLanes}function Aa(e){xe(bx,PC,e),xe(yx,yx.current,e)}function ja(e){PC=bx.current,be(yx,e),be(bx,e)}function Ma(e){var t=e.alternate;xe(Tx,Tx.current&Cx,e),xe(xx,e,e),Sx===null&&(t===null||yx.current!==null||t.memoizedState!==null)&&(Sx=e)}function Na(e){xe(Tx,Tx.current,e),xe(xx,e,e),Sx===null&&(Sx=e)}function Pa(e){e.tag===22?(xe(Tx,Tx.current,e),xe(xx,e,e),Sx===null&&(Sx=e)):M(e)}function M(e){xe(Tx,Tx.current,e),xe(xx,xx.current,e)}function Fa(e){be(xx,e),Sx===e&&(Sx=null),be(Tx,e)}function Ia(e,t){xe(xx,xx.current,e),xe(Tx,t,e)}function La(e){be(Tx,e),be(xx,e),Sx===e&&(Sx=null)}function Ra(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ip(n)||ap(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function za(){var e=K;qx===null?qx=[e]:qx.push(e)}function N(){var e=K;if(qx!==null&&(Jx++,qx[Jx]!==e)){var t=S(G);if(!Mx.has(t)&&(Mx.add(t),qx!==null)){for(var n=``,r=0;r<=Jx;r++){var i=qx[r],a=r===Jx?e:i;for(i=r+1+`. `+i;30>i.length;)i+=` `;i+=a+`
|
|
107
|
-
`,n+=i}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
|
|
108
|
-
|
|
109
|
-
Previous render Next render
|
|
110
|
-
------------------------------------------------------
|
|
111
|
-
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
112
|
-
`,t,n)}}}function Ba(e){e==null||Ym(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",K,typeof e)}function Va(){var e=S(G);Fx.has(e)||(Fx.add(e),console.error(`ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.`,e))}function Ha(){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:
|
|
113
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
114
|
-
2. You might be breaking the Rules of Hooks
|
|
115
|
-
3. You might have more than one copy of React in the same app
|
|
116
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Ua(e,t){if(Yx)return!1;if(t===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.`,K),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
117
|
-
|
|
118
|
-
Previous: %s
|
|
119
|
-
Incoming: %s`,K,`[`+t.join(`, `)+`]`,`[`+e.join(`, `)+`]`);for(var n=0;n<t.length&&n<e.length;n++)if(!K_(e[n],t[n]))return!1;return!0}function Wa(e,t,n,r,i,a){Ix=a,G=t,qx=e===null?null:e._debugHookTypes,Jx=-1,Yx=e!==null&&e.type!==t.type,(Object.prototype.toString.call(n)===`[object AsyncFunction]`||Object.prototype.toString.call(n)===`[object AsyncGeneratorFunction]`)&&(a=S(G),Px.has(a)||(Px.add(a),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.",a===null?`An unknown Component`:`<`+a+`>`))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e!==null&&e.memoizedState!==null?$x:qx===null?Zx:Qx,Vx=a=(t.mode&Gv)!==V;var o=Ab(n,r,i);if(Vx=!1,Bx&&(o=Ka(t,n,r,i)),a){Ke(!0);try{o=Ka(t,n,r,i)}finally{Ke(!1)}}return Ga(e,t),o}function Ga(e,t){t._debugHookTypes=qx,t.dependencies===null?Wx!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Wx}):t.dependencies._debugThenableState=Wx;var n=Wx;if(Zb!==null&&ia(Zb,t)&&(n!==null||Qb===null||$b||($b=!0,console.error(Qb)),Qb=Zb=null),L.H=Xx,n=Lx!==null&&Lx.next!==null,Ix=0,qx=K=Rx=Lx=G=null,Jx=-1,e!==null&&(e.flags&1206910976)!=(t.flags&1206910976)&&console.error(`Internal React error: Expected static flag was missing. Please notify the React team.`),zx=!1,Ux=0,Wx=null,n)throw Error(`Rendered fewer hooks than expected. This may be caused by an accidental early return statement.`);e===null||yS||(e=e.dependencies,e!==null&&vi(e)&&(yS=!0)),tx?(tx=!1,e=!0):e=!1,e&&(t=S(t)||`Unknown`,Nx.has(t)||Px.has(t)||(Nx.add(t),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 Ka(e,t,n,r){G=e;var i=0;do{if(Bx&&(Wx=null),Ux=0,Bx=!1,i>=Kx)throw Error(`Too many re-renders. React limits the number of renders to prevent an infinite loop.`);if(i+=1,Yx=!1,Rx=Lx=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}Jx=-1,L.H=eS,a=Ab(t,n,r)}while(Bx);return a}function qa(){var e=L.H,t=e.useState()[0];return t=typeof t.then==`function`?Qa(t):t,e=e.useState()[0],(Lx===null?null:Lx.memoizedState)!==e&&(G.flags|=1024),t}function P(){var e=Hx!==0;return Hx=0,e}function F(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&Kv)===V?t.flags&-2053:t.flags&-805308421,e.lanes&=~n}function Ja(e){if(zx){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zx=!1}Ix=0,qx=Rx=Lx=G=null,Jx=-1,K=null,Bx=!1,Ux=Hx=0,Wx=null}function Ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rx===null?G.memoizedState=Rx=e:Rx=Rx.next=e,Rx}function Xa(){if(Lx===null){var e=G.alternate;e=e===null?null:e.memoizedState}else e=Lx.next;var t=Rx===null?G.memoizedState:Rx.next;if(t!==null)Rx=t,Lx=e;else{if(e===null)throw G.alternate===null?Error(`Update hook called on initial render. This is likely a bug in React. Please file an issue.`):Error(`Rendered more hooks than during the previous render.`);Lx=e,e={memoizedState:Lx.memoizedState,baseState:Lx.baseState,baseQueue:Lx.baseQueue,queue:Lx.queue,next:null},Rx===null?G.memoizedState=Rx=e:Rx=Rx.next=e}return Rx}function Za(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Qa(e){var t=Ux;return Ux+=1,Wx===null&&(Wx=Qi()),e=ea(Wx,e,t,G),t=G,(Rx===null?t.memoizedState:Rx.next)===null&&(t=t.alternate,L.H=t!==null&&t.memoizedState!==null?$x:Zx),e}function $a(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Qa(e);if(e.$$typeof===Km)return;if(e.$$typeof===Im)return bi(e)}throw Error(`An unsupported type was passed to use(): `+String(e))}function eo(e){var t=null,n=G.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=G.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Za(),G.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0||Yx)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=Wm;else n.length!==e&&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.`,n.length,e);return t.index++,n}function to(e,t){return typeof t==`function`?t(e):t}function no(e,t,n){var r=Ya();if(n!==void 0){var i=n(t);if(Vx){Ke(!0);try{n(t)}finally{Ke(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ds.bind(null,G,e),[r.memoizedState,e]}function ro(e){return io(Xa(),Lx,e)}function io(e,t,n){var r=e.queue;if(r===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}t.baseQueue!==i&&console.error(`Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.`),t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var s=o=null,c=null,l=t,u=!1;do{var d=l.lane&-536870913;if(d===l.lane?(Ix&d)===d:(J&d)===d){var f=l.revertLane;if(f===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),d===mb&&(u=!0);else if((Ix&f)===f){l=l.next,f===mb&&(u=!0);continue}else d={lane:0,revertLane:l.revertLane,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=d,o=a):c=c.next=d,G.lanes|=f,IC|=f;d=l.action,Vx&&n(a,d),a=l.hasEagerState?l.eagerState:n(a,d)}else f={lane:d,revertLane:l.revertLane,gesture:l.gesture,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=f,o=a):c=c.next=f,G.lanes|=d,IC|=d;l=l.next}while(l!==null&&l!==t);if(c===null?o=a:c.next=s,!K_(a,e.memoizedState)&&(yS=!0,u&&(n=hb,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=c,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ao(e){var t=Xa(),n=t.queue;if(n===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);K_(a,t.memoizedState)||(yS=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function oo(e,t,n){var r=G,i=Ya();if(sy){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);var a=n();jx||a===n()||(console.error(`The result of getServerSnapshot should be cached to avoid an infinite loop`),jx=!0)}else{if(a=t(),jx||(n=t(),K_(a,n)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),jx=!0)),vC===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);J&127||co(r,t,a)}return i.memoizedState=a,n={value:a,getSnapshot:t},i.queue=n,Io(uo.bind(null,r,n,e),[e]),r.flags|=2048,Mo(Dx|Ax,{destroy:void 0},lo.bind(null,r,n,a,t),null),a}function so(e,t,n){var r=G,i=Xa(),a=sy;if(a){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);n=n()}else if(n=t(),!jx){var o=t();K_(n,o)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),jx=!0)}if((o=!K_((Lx||i).memoizedState,n))&&(i.memoizedState=n,yS=!0),i=i.queue,Fo(2048,Ax,uo.bind(null,r,i,e),[e]),e=i.getSnapshot!==t||o||Rx!==null&&(Rx.memoizedState.tag&Dx)!==Ex,Mo(e?Dx|Ax:Ax,{destroy:void 0},lo.bind(null,r,i,n,t),null),e){if(r.flags|=2048,vC===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);a||Ix&127||co(r,t,n)}return n}function co(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=G.updateQueue,t===null?(t=Za(),G.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function lo(e,t,n,r){t.value=n,t.getSnapshot=r,fo(t)&&po(e)}function uo(e,t,n){return n(function(){fo(t)&&(Oi(2,`updateSyncExternalStore()`,e),po(e))})}function fo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!K_(e,n)}catch{return!0}}function po(e){var t=Nr(e,2);t!==null&&ru(t,e,2)}function mo(e){var t=Ya();if(typeof e==`function`){var n=e;if(e=n(),Vx){Ke(!0);try{n()}finally{Ke(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:to,lastRenderedState:e},t}function ho(e){e=mo(e);var t=e.queue,n=fs.bind(null,G,t);return t.dispatch=n,[e.memoizedState,n]}function go(e){var t=Ya();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ms.bind(null,G,!0,n),n.dispatch=t,[e,t]}function _o(e,t){return vo(Xa(),Lx,e,t)}function vo(e,t,n,r){return e.baseState=n,io(e,Lx,typeof r==`function`?r:to)}function yo(e,t){var n=Xa();return Lx===null?(n.baseState=e,[e,n.queue.dispatch]):vo(n,Lx,e,t)}function bo(e,t,n,r,i){if(hs(e))throw Error(`Cannot update action state while rendering.`);if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};L.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,xo(t,a)):(a.next=n.next,t.pending=n.next=a)}}function xo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=L.T,o={};o.types=a===null?null:a.types,o._updatedFibers=new Set,L.T=o;try{var s=n(i,r),c=L.S;c!==null&&c(o,s),So(e,t,s)}catch(n){wo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types!==null&&a.types!==o.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.`),a.types=o.types),L.T=a,a===null&&o._updatedFibers&&(e=o._updatedFibers.size,o._updatedFibers.clear(),10<e&&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{o=n(i,r),So(e,t,o)}catch(n){wo(e,t,n)}}function So(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?(L.asyncTransitions++,n.then($o,$o),n.then(function(n){Co(e,t,n)},function(n){return wo(e,t,n)}),t.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.")):Co(e,t,n)}function Co(e,t,n){t.status=`fulfilled`,t.value=n,To(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,xo(e,n)))}function wo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,To(t),t=t.next;while(t!==r)}e.action=null}function To(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Eo(e,t){return t}function Do(e,t){if(sy){var n=vC.formState;if(n!==null){a:{var r=G;if(sy){if(oy){b:{for(var i=oy,a=dy;i.nodeType!==8;){if(!a){i=null;break b}if(i=sp(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===vT||a===yT?i:null}if(i){oy=sp(i.nextSibling),r=i.data===vT;break a}}oi(r)}r=!1}r&&(t=n[0])}}return n=Ya(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:t},n.queue=r,n=fs.bind(null,G,r),r.dispatch=n,r=mo(!1),a=ms.bind(null,G,!1,r.queue),r=Ya(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=bo.bind(null,G,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Oo(e){return ko(Xa(),Lx,e)}function ko(e,t,n){if(t=io(e,t,Eo)[0],e=ro(to)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Qa(t)}catch(e){throw e===qb?Yb:e}else r=t;t=Xa();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(G.flags|=2048,Mo(Dx|Ax,{destroy:void 0},Ao.bind(null,i,n),null)),[r,a,e]}function Ao(e,t){e.action=t}function jo(e){var t=Xa(),n=Lx;if(n!==null)return ko(t,n,e);Xa(),t=t.memoizedState,n=Xa();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Mo(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=G.updateQueue,t===null&&(t=Za(),G.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function No(e){var t=Ya();return e={current:e},t.memoizedState=e}function Po(e,t,n,r){var i=Ya();G.flags|=e,i.memoizedState=Mo(Dx|t,{destroy:void 0},n,r===void 0?null:r)}function Fo(e,t,n,r){var i=Xa();r=r===void 0?null:r;var a=i.memoizedState.inst;Lx!==null&&r!==null&&Ua(r,Lx.memoizedState.deps)?i.memoizedState=Mo(t,a,n,r):(G.flags|=e,i.memoizedState=Mo(Dx|t,a,n,r))}function Io(e,t){(G.mode&Kv)===V?Po(8390656,Ax,e,t):Po(545261568,Ax,e,t)}function Lo(e){G.flags|=4;var t=G.updateQueue;if(t===null)t=Za(),G.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ro(e){var t=Ya(),n={impl:e};return t.memoizedState=n,function(){if((_C&cC)!==sC)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return n.impl.apply(void 0,arguments)}}function zo(e){var t=Xa().memoizedState;return Lo({ref:t,nextImpl:e}),function(){if((_C&cC)!==sC)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return t.impl.apply(void 0,arguments)}}function Bo(e,t){var n=4194308;return(G.mode&Kv)!==V&&(n|=268435456),Po(n,kx,e,t)}function Vo(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return t.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(t).join(`, `)+`}`),e=e(),t.current=e,function(){t.current=null}}function Ho(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]);var r=4194308;(G.mode&Kv)!==V&&(r|=268435456),Po(r,kx,Vo.bind(null,t,e),n)}function Uo(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]),Fo(4,kx,Vo.bind(null,t,e),n)}function Wo(e,t){return Ya().memoizedState=[e,t===void 0?null:t],e}function Go(e,t){var n=Xa();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Ua(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ko(e,t){var n=Ya();t=t===void 0?null:t;var r=e();if(Vx){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r}function qo(e,t){var n=Xa();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Ua(t,r[1]))return r[0];if(r=e(),Vx){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r}function Jo(e,t){return Zo(Ya(),e,t)}function Yo(e,t){return Qo(Xa(),Lx.memoizedState,e,t)}function Xo(e,t){var n=Xa();return Lx===null?Zo(n,e,t):Qo(n,Lx.memoizedState,e,t)}function Zo(e,t,n){return n===void 0||Ix&1073741824&&!(J&261930)?e.memoizedState=t:(e.memoizedState=n,e=tu(),G.lanes|=e,IC|=e,n)}function Qo(e,t,n,r){return K_(n,t)?n:yx.current===null?!(Ix&106)||Ix&1073741824&&!(J&261930)?(yS=!0,e.memoizedState=n):(e=tu(),G.lanes|=e,IC|=e,t):(e=Zo(e,n,r),K_(e,t)||(yS=!0),e)}function $o(){L.asyncTransitions--}function es(e,t,n,r,i){var a=R.p;R.p=a!==0&&a<Vh?a:Vh;var o=L.T,s={};s.types=o===null?null:o.types,s._updatedFibers=new Set,L.T=s,ms(e,!1,t,n);try{var c=i(),l=L.S;if(l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`){L.asyncTransitions++,c.then($o,$o);var u=Ji(c,r);ps(e,t,u,eu(e))}else ps(e,t,r,eu(e))}catch(n){ps(e,t,{then:function(){},status:`rejected`,reason:n},eu(e))}finally{R.p=a,o!==null&&s.types!==null&&(o.types!==null&&o.types!==s.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.`),o.types=s.types),L.T=o,o===null&&s._updatedFibers&&(e=s._updatedFibers.size,s._updatedFibers.clear(),10<e&&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 ts(e,t,n,r){if(e.tag!==5)throw Error(`Expected the form instance to be a HostComponent. This is a bug in React.`);var i=ns(e).queue;ki(e),es(e,i,t,rE,n===null?d:function(){return rs(e),n(r)})}function ns(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:rE,baseState:rE,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:to,lastRenderedState:rE},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:to,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function rs(e){L.T===null&&console.error(`requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.`);var t=ns(e);t.next===null&&(t=e.alternate.memoizedState),ps(e,t.next.queue,{},eu(e))}function is(){var e=mo(!1);return e=es.bind(null,G,e.queue,!0,!1),Ya().memoizedState=e,[!1,e]}function as(){var e=ro(to)[0],t=Xa().memoizedState;return[typeof e==`boolean`?e:Qa(e),t]}function os(){var e=ao(to)[0],t=Xa().memoizedState;return[typeof e==`boolean`?e:Qa(e),t]}function ss(){return bi(iE)}function cs(){var e=Ya(),t=vC.identifierPrefix;if(sy){var n=iy,r=ry;n=(r&~(1<<32-Ph(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Hx++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Gx++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t}function ls(){return Ya().memoizedState=us.bind(null,G)}function us(e,t){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var r=eu(n),i=ba(r),a=xa(n,i,r);a!==null&&(Oi(r,`refresh()`,e),ru(a,n,r),Sa(a,n,r)),e=Ci(),t!=null&&a!==null&&console.error(`The seed argument is not enabled outside experimental channels.`),i.payload={cache:e};return}n=n.return}}function ds(e,t,n){var r=arguments;typeof r[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().`),r=eu(e);var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};hs(e)?gs(t,i):(i=Mr(e,t,i,r),i!==null&&(Oi(r,`dispatch()`,e),ru(i,e,r),_s(i,t,r)))}function fs(e,t,n){var r=arguments;typeof r[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().`),r=eu(e),ps(e,t,n,r)&&Oi(r,`setState()`,e)}function ps(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(hs(e))gs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null)){var o=L.H;L.H=nS;try{var s=t.lastRenderedState,c=a(s,n);if(i.hasEagerState=!0,i.eagerState=c,K_(c,s))return jr(e,t,i,0),vC===null&&Ar(),!1}catch{}finally{L.H=o}}if(n=Mr(e,t,i,r),n!==null)return ru(n,e,r),_s(n,t,r),!0}return!1}function ms(e,t,n,r){if(L.T===null&&mb===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.`),r={lane:2,revertLane:ud(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},hs(e)){if(t)throw Error(`Cannot update optimistic state while rendering.`);console.error(`Cannot call startTransition while rendering.`)}else t=Mr(e,n,r,2),t!==null&&(Oi(2,`setOptimistic()`,e),ru(t,e,2))}function hs(e){var t=e.alternate;return e===G||t!==null&&t===G}function gs(e,t){Bx=zx=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _s(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,it(e,n)}}function vs(e){if(e!==null&&typeof e!=`function`){var t=String(e);mS.has(t)||(mS.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function ys(e,t,n,r){var i=e.memoizedState,a=n(r,i);if(e.mode&Gv){Ke(!0);try{a=n(r,i)}finally{Ke(!1)}}a===void 0&&(t=_e(t)||`Component`,uS.has(t)||(uS.add(t),console.error(`%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.`,t))),i=a==null?i:I({},i,a),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}function bs(e,t,n,r,i,a,o){var s=e.stateNode;if(typeof s.shouldComponentUpdate==`function`){if(n=s.shouldComponentUpdate(r,a,o),e.mode&Gv){Ke(!0);try{n=s.shouldComponentUpdate(r,a,o)}finally{Ke(!1)}}return n===void 0&&console.error(`%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.`,_e(t)||`Component`),n}return t.prototype&&t.prototype.isPureReactComponent?!T(n,r)||!T(i,a):!0}function xs(e,t,n,r){var i=t.state;typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==i&&(e=S(e)||`Component`,aS.has(e)||(aS.add(e),console.error(`%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,e)),hS.enqueueReplaceState(t,t.state,null))}function Ss(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=I({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Cs(e){hv(e),console.warn(`%s
|
|
120
|
-
|
|
121
|
-
%s
|
|
122
|
-
`,gS?`An error occurred in the <`+gS+`> component.`:`An error occurred in one of your React components.`,`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
123
|
-
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function ws(e){var t=gS?`The above error occurred in the <`+gS+`> component.`:`The above error occurred in one of your React components.`,n=`React will try to recreate this component tree from scratch using the error boundary you provided, `+((_S||`Anonymous`)+`.`);if(typeof e==`object`&&e&&typeof e.environmentName==`string`){var r=e.environmentName;e=[`%o
|
|
124
|
-
|
|
125
|
-
%s
|
|
126
|
-
|
|
127
|
-
%s
|
|
128
|
-
`,e,t,n].slice(0),typeof e[0]==`string`?e.splice(0,1,aE+` `+e[0],oE,cE+r+cE,sE):e.splice(0,0,aE,oE,cE+r+cE,sE),e.unshift(console),r=lE.apply(console.error,e),r()}else console.error(`%o
|
|
129
|
-
|
|
130
|
-
%s
|
|
131
|
-
|
|
132
|
-
%s
|
|
133
|
-
`,e,t,n)}function Ts(e){hv(e)}function Es(e,t){try{gS=t.source?S(t.source):null,_S=null;var n=t.value;if(L.actQueue!==null)L.thrownErrors.push(n);else{var r=e.onUncaughtError;r(n,{componentStack:t.stack})}}catch(e){setTimeout(function(){throw e})}}function Ds(e,t,n){try{gS=n.source?S(n.source):null,_S=S(t);var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Os(e,t,n){return n=ba(n),n.tag=mx,n.payload={element:null},n.callback=function(){w(t.source,Es,e,t)},n}function ks(e){return e=ba(e),e.tag=mx,e}function As(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Rr(n),w(r.source,Ds,t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Rr(n),w(r.source,Ds,t,n,r),typeof i!=`function`&&(ZC===null?ZC=new Set([this]):ZC.add(this)),Rb(this,r),typeof i==`function`||!(n.lanes&2)&&console.error(`%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.`,S(n)||`Unknown`)})}function js(e,t,n,r,i){if(n.flags|=32768,Nh&&Qu(e,i),typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&_i(t,n,i,!0),sy&&(cy=!0),n=xx.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Sx===null?_u():n.alternate===null&&FC===uC&&(FC=pC),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Xb?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Uu(e,r,i)),!1;case 22:return n.flags|=65536,r===Xb?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Uu(e,r,i)),!1}throw Error(`Unexpected Suspense handler tag (`+n.tag+`). This is a bug in React.`)}return Uu(e,r,i),_u(),!1}if(sy)return cy=!0,t=xx.current,t===null?(r!==fy&&k(Yr(Error(`There was an error while hydrating but React was able to recover by instead client rendering the entire root.`,{cause:r}),n)),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Yr(r,n),i=Os(e.stateNode,r,i),Ca(e,i),FC!==mC&&(FC=fC)):(t.tag===19&&console.error(`SuspenseList should never catch while hydrating. This is a bug in React.`),!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==fy&&k(Yr(Error(`There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.`,{cause:r}),n))),!1;var a=Yr(Error(`There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.`,{cause:r}),n);if(VC===null?VC=[a]:VC.push(a),FC!==mC&&(FC=fC),t===null)return!0;r=Yr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Os(n.stateNode,r,e),Ca(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(ZC===null||!ZC.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=ks(i),As(i,e,n,r),Ca(n,i),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}function Ms(e,t,n,r){t.child=e===null?ux(t,null,n,r):lx(t,e.child,n,r)}function Ns(e,t,n,r,i){n=n.render;var a=Ir(n);if(a!==n&&(n=a,e!==null&&(yS=!0)),a=t.ref,`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return yi(t),r=Wa(e,t,n,o,a,i),s=P(),e!==null&&!yS?(F(e,t,i),sc(e,t,i)):(sy&&s&&Qr(t),t.flags|=1,Ms(e,t,r,i),t.child)}function Ps(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!O(a)&&a.defaultProps===void 0&&n.compare===null?(n=Ir(a),t.tag=15,t.type=n,qs(t,a),Fs(e,t,n,r,i)):(e=Ur(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!cc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?T:n,n(o,r)&&e.ref===t.ref)return sc(e,t,i)}return t.flags|=1,e=Vr(a,r),e.ref=t.ref,e.return=t,t.child=e}function Fs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(T(a,r)&&e.ref===t.ref&&t.type===e.type){if(yS=!1,t.pendingProps=r=a,cc(e,i))e.flags&131072&&(yS=!0);else return t.lanes=e.lanes,sc(e,t,i)}}return Us(e,t,n,r,i)}function Is(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Fv,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Rs(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Xi(t,a===null?null:a.cachePool),a===null?Aa(t):ka(t,a),Pa(t);else return r=t.lanes=536870912,Rs(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Xi(t,null),Aa(t),M(t)):(Xi(t,a.cachePool),ka(t,a),M(t),t.memoizedState=null);return Ms(e,t,i,n),t.child}function Ls(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Fv,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Rs(e,t,n,r,i){var a=Yi();return a=a===null?null:{parent:Sy._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Xi(t,null),Aa(t),Pa(t),e!==null&&_i(e,t,r,!0),t.childLanes=i,null}function zs(e,t){var n=t.hidden;return n!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
134
|
-
- <Activity %s>
|
|
135
|
-
+ <Activity %s>`,!0===n?`hidden`:!1===n?`hidden={false}`:`hidden={...}`,n?`mode="hidden"`:`mode="visible"`),t=Qs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Bs(e,t,n){return lx(t,e.child,null,n),e=zs(t,t.pendingProps),e.flags|=2,Fa(t),t.memoizedState=null,e}function Vs(e,t,n){var r=t.pendingProps,i=!!(t.flags&128);if(t.flags&=-129,e===null){if(sy){if(r.mode===`hidden`)return e=zs(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Ls(null,e);if(Na(t),(e=oy)?(n=rp(e,dy),n=n!==null&&n.data===cT?n:null,n!==null&&(r={dehydrated:n,treeContext:ei(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=qr(n),r.return=t,t.child=r,ay=t,oy=null)):n=null,n===null)throw ai(t,e),oi(t);return t.lanes=536870912,null}return zs(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(Na(t),i){if(t.flags&256)t.flags&=-257,t=Bs(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`)}else if(ii(),n&536870912&&gu(t),yS||_i(e,t,n,!1),i=(n&e.childLanes)!==0,yS||i){if(yx.current===null){if(r=vC,r!==null&&(o=at(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,Nr(e,o),ru(r,e,o),vS;_u()}t=Bs(e,t,n)}else e=a.treeContext,oy=sp(o.nextSibling),ay=t,sy=!0,uy=null,cy=!1,ly=null,dy=!1,e!==null&&ti(t,e),t=zs(t,r),t.flags|=134221824;return t}return a=e.child,r={mode:r.mode,children:r.children},n&536870912&&(n&e.lanes)!==0&&gu(t),e=Vr(a,r),e.ref=t.ref,t.child=e,e.return=t,e}function Hs(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(`Expected ref to be a function, an object returned by React.createRef(), or undefined/null.`);(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Us(e,t,n,r,i){if(n.prototype&&typeof n.prototype.render==`function`){var a=_e(n)||`Unknown`;bS[a]||(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.`,a,a),bS[a]=!0)}return t.mode&Gv&&vb.recordLegacyContextWarning(t,null),e===null&&(qs(t,t.type),n.contextTypes&&(a=_e(n)||`Unknown`,SS[a]||(SS[a]=!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)`,a)))),yi(t),n=Wa(e,t,n,r,void 0,i),r=P(),e!==null&&!yS?(F(e,t,i),sc(e,t,i)):(sy&&r&&Qr(t),t.flags|=1,Ms(e,t,n,i),t.child)}function Ws(e,t,n,r,i,a){return yi(t),Jx=-1,Yx=e!==null&&e.type!==t.type,t.updateQueue=null,n=Ka(t,r,n,i),Ga(e,t),r=P(),e!==null&&!yS?(F(e,t,a),sc(e,t,a)):(sy&&r&&Qr(t),t.flags|=1,Ms(e,t,n,a),t.child)}function Gs(e,t,n,r,i){switch(s(t)){case!1:var a=t.stateNode,o=new t.type(t.memoizedProps,a.context).state;a.updater.enqueueSetState(a,o,null);break;case!0:t.flags|=128,t.flags|=65536,a=Error(`Simulated error coming from DevTools`);var c=i&-i;if(t.lanes|=c,o=vC,o===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);c=ks(c),As(c,o,t,Yr(a,t)),Ca(t,c)}if(yi(t),t.stateNode===null){if(o=Bv,a=n.contextType,`contextType`in n&&a!==null&&(a===void 0||a.$$typeof!==Im)&&!pS.has(n)&&(pS.add(n),c=a===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 a==`object`?a.$$typeof===Fm?` Did you accidentally pass the Context.Consumer instead?`:` However, it is set to an object with keys {`+Object.keys(a).join(`, `)+`}.`:` However, it is set to a `+typeof a+`.`,console.error(`%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s`,_e(n)||`Component`,c)),typeof a==`object`&&a&&(o=bi(a)),a=new n(r,o),t.mode&Gv){Ke(!0);try{a=new n(r,o)}finally{Ke(!1)}}if(o=t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=hS,t.stateNode=a,a._reactInternals=t,a._reactInternalInstance=iS,typeof n.getDerivedStateFromProps==`function`&&o===null&&(o=_e(n)||`Component`,oS.has(o)||(oS.add(o),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.",o,a.state===null?`null`:`undefined`,o))),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`){var l=c=o=null;if(typeof a.componentWillMount==`function`&&!0!==a.componentWillMount.__suppressDeprecationWarning?o=`componentWillMount`:typeof a.UNSAFE_componentWillMount==`function`&&(o=`UNSAFE_componentWillMount`),typeof a.componentWillReceiveProps==`function`&&!0!==a.componentWillReceiveProps.__suppressDeprecationWarning?c=`componentWillReceiveProps`:typeof a.UNSAFE_componentWillReceiveProps==`function`&&(c=`UNSAFE_componentWillReceiveProps`),typeof a.componentWillUpdate==`function`&&!0!==a.componentWillUpdate.__suppressDeprecationWarning?l=`componentWillUpdate`:typeof a.UNSAFE_componentWillUpdate==`function`&&(l=`UNSAFE_componentWillUpdate`),o!==null||c!==null||l!==null){a=_e(n)||`Component`;var u=typeof n.getDerivedStateFromProps==`function`?`getDerivedStateFromProps()`:`getSnapshotBeforeUpdate()`;cS.has(a)||(cS.add(a),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
136
|
-
|
|
137
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
138
|
-
|
|
139
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
140
|
-
https://react.dev/link/unsafe-component-lifecycles`,a,u,o===null?``:`
|
|
141
|
-
`+o,c===null?``:`
|
|
142
|
-
`+c,l===null?``:`
|
|
143
|
-
`+l))}}a=t.stateNode,o=_e(n)||`Component`,a.render||(n.prototype&&typeof n.prototype.render==`function`?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",o):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",o)),!a.getInitialState||a.getInitialState.isReactClassApproved||a.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?`,o),a.getDefaultProps&&!a.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.`,o),a.contextType&&console.error(`contextType was defined as an instance property on %s. Use a static property to define contextType instead.`,o),n.childContextTypes&&!fS.has(n)&&(fS.add(n),console.error(`%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)`,o)),n.contextTypes&&!dS.has(n)&&(dS.add(n),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)`,o)),typeof a.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.`,o),n.prototype&&n.prototype.isPureReactComponent&&a.shouldComponentUpdate!==void 0&&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.`,_e(n)||`A pure component`),typeof a.componentDidUnmount==`function`&&console.error(`%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?`,o),typeof a.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().`,o),typeof a.componentWillRecieveProps==`function`&&console.error(`%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?`,o),typeof a.UNSAFE_componentWillRecieveProps==`function`&&console.error(`%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?`,o),c=a.props!==r,a.props!==void 0&&c&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",o),a.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.`,o,o),typeof a.getSnapshotBeforeUpdate!=`function`||typeof a.componentDidUpdate==`function`||sS.has(n)||(sS.add(n),console.error(`%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.`,_e(n))),typeof a.getDerivedStateFromProps==`function`&&console.error(`%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof a.getDerivedStateFromError==`function`&&console.error(`%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof n.getSnapshotBeforeUpdate==`function`&&console.error(`%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.`,o),(c=a.state)&&(typeof c!=`object`||Ym(c))&&console.error(`%s.state: must be set to an object or null`,o),typeof a.getChildContext==`function`&&typeof n.childContextTypes!=`object`&&console.error(`%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().`,o),a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},va(t),o=n.contextType,a.context=typeof o==`object`&&o?bi(o):Bv,a.state===r&&(o=_e(n)||`Component`,lS.has(o)||(lS.add(o),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.`,o))),t.mode&Gv&&vb.recordLegacyContextWarning(t,a),vb.recordUnsafeLifecycleWarnings(t,a),a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(ys(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&(console.error(`%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,S(t)||`Component`),hS.enqueueReplaceState(a,a.state,null)),Ta(t,r,a,i),wa(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Kv)!==V&&(t.flags|=268435456),a=!0}else if(e===null){a=t.stateNode;var d=t.memoizedProps;c=Ss(n,d),a.props=c;var f=a.context;l=n.contextType,o=Bv,typeof l==`object`&&l&&(o=bi(l)),u=n.getDerivedStateFromProps,l=typeof u==`function`||typeof a.getSnapshotBeforeUpdate==`function`,d=t.pendingProps!==d,l||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(d||f!==o)&&xs(t,a,r,o),hx=!1;var p=t.memoizedState;a.state=p,Ta(t,r,a,i),wa(),f=t.memoizedState,d||p!==f||hx?(typeof u==`function`&&(ys(t,n,u,r),f=t.memoizedState),(c=hx||bs(t,n,c,r,p,f,o))?(l||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Kv)!==V&&(t.flags|=268435456)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Kv)!==V&&(t.flags|=268435456),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=o,a=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Kv)!==V&&(t.flags|=268435456),a=!1)}else{a=t.stateNode,ya(e,t),o=t.memoizedProps,l=Ss(n,o),a.props=l,u=t.pendingProps,p=a.context,f=n.contextType,c=Bv,typeof f==`object`&&f&&(c=bi(f)),d=n.getDerivedStateFromProps,(f=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==u||p!==c)&&xs(t,a,r,c),hx=!1,p=t.memoizedState,a.state=p,Ta(t,r,a,i),wa();var m=t.memoizedState;o!==u||p!==m||hx||e!==null&&e.dependencies!==null&&vi(e.dependencies)?(typeof d==`function`&&(ys(t,n,d,r),m=t.memoizedState),(l=hx||bs(t,n,l,r,p,m,c)||e!==null&&e.dependencies!==null&&vi(e.dependencies))?(f||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,m,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,m,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=c,a=l):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),a=!1)}if(c=a,Hs(e,t),o=!!(t.flags&128),c||o){if(c=t.stateNode,Re(t),o&&typeof n.getDerivedStateFromError!=`function`)n=null,My=-1;else if(n=Mb(c),t.mode&Gv){Ke(!0);try{Mb(c)}finally{Ke(!1)}}t.flags|=1,e!==null&&o?(t.child=lx(t,e.child,null,i),t.child=lx(t,null,n,i)):Ms(e,t,n,i),t.memoizedState=c.state,e=t.child}else e=sc(e,t,i);return i=t.stateNode,a&&i.props!==r&&(wS||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",S(t)||`a component`),wS=!0),e}function Ks(e,t,n,r){return ui(),t.flags|=256,Ms(e,t,n,r),t.child}function qs(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
144
|
-
%s.childContextTypes = ...`,t.displayName||t.name||`Component`),typeof t.getDerivedStateFromProps==`function`&&(e=_e(t)||`Unknown`,CS[e]||(console.error(`%s: Function components do not support getDerivedStateFromProps.`,e),CS[e]=!0)),typeof t.contextType==`object`&&t.contextType!==null&&(t=_e(t)||`Unknown`,xS[t]||(console.error(`%s: Function components do not support contextType.`,t),xS[t]=!0))}function Js(e){return{baseLanes:e,cachePool:Zi()}}function Ys(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=zC),e}function Xs(e,t,n){var r=t.pendingProps;o(t)&&(t.flags|=128);var i=!1,a=!!(t.flags&128),s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(Tx.current&wx)!==0),s&&(i=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(sy){if(i?Ma(t):M(t),(e=oy)?(n=rp(e,dy),n=n!==null&&n.data!==cT?n:null,n!==null&&(s={dehydrated:n,treeContext:ei(),retryLane:536870912,hydrationErrors:null},t.memoizedState=s,s=qr(n),s.return=t,t.child=s,ay=t,oy=null)):n=null,n===null)throw ai(t,e),oi(t);return t.lanes=ap(n)?32:536870912,null}return a=r.children,r=r.fallback,i?(M(t),i=t.mode,a=Qs({mode:`hidden`,children:a},i),r=Gr(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Js(n),r.childLanes=Ys(e,s,n),t.memoizedState=OS,Ls(null,r)):(Ma(t),Zs(t,a))}var c=e.memoizedState;if(c!==null){var l=c.dehydrated;if(l!==null)return ec(e,t,a,s,r,l,c,n)}return i?(M(t),i=r.fallback,a=t.mode,c=e.child,l=c.sibling,r=Vr(c,{mode:`hidden`,children:r.children}),r.subtreeFlags=c.subtreeFlags&1206910976,l===null?(i=Gr(i,a,n,null),i.flags|=2):i=Vr(l,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Ls(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Js(n):(a=i.cachePool,a===null?a=Zi():(c=Sy._currentValue,a=a.parent===c?a:{parent:c,pool:c}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Ys(e,s,n),t.memoizedState=OS,Ls(e.child,r)):(c!==null&&(n&62914560)===n&&(n&e.lanes)!==0&&gu(t),Ma(t),n=e.child,e=n.sibling,n=Vr(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Zs(e,t){return t=Qs({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Qs(e,t){return e=g(22,e,null,t),e.lanes=0,e}function $s(e,t,n){return lx(t,e.child,null,n),e=Zs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ec(e,t,n,r,i,a,o,s){if(n){if(t.flags&256)return Ma(t),t.flags&=-257,$s(e,t,s);if(t.memoizedState!==null)return M(t),t.child=e.child,t.flags|=128,null;M(t);var c=i.fallback,l=t.mode,u=Qs({mode:`visible`,children:i.children},l);return c=Gr(c,l,s,null),c.flags|=2,u.return=t,c.return=t,u.sibling=c,t.child=u,lx(t,e.child,null,s),c=t.child,c.memoizedState=Js(s),c.childLanes=Ys(e,r,s),t.memoizedState=OS,Ls(null,c)}if(Ma(t),ii(),s&536870912&&gu(t),ap(a)){if(r=a.nextSibling&&a.nextSibling.dataset,r){c=r.dgst;var d=r.msg;l=r.stck,u=r.cstck}return a=d,o=c,i=l,r=u,c=o,l=a,u=i,i=r,c!==Ob&&(r=Error(l||`The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.`),r.stack=u||``,r.digest=c,c=i===void 0?null:i,l={value:r,source:null,stack:c},typeof c==`string`&&Yv.set(r,l),k(l)),$s(e,t,s)}if(yS||_i(e,t,s,!1),r=(s&e.childLanes)!==0,yS||r){if(yx.current!==null)return $s(e,t,s);if(r=vC,r!==null&&(c=at(r,s),c!==0&&c!==o.retryLane))throw o.retryLane=c,Nr(e,c),ru(r,e,c),vS;return ip(a)||_u(),$s(e,t,s)}return ip(a)?(t.flags|=192,t.child=e.child,null):(e=o.treeContext,oy=sp(a.nextSibling),ay=t,sy=!0,uy=null,cy=!1,ly=null,dy=!1,e!==null&&ti(t,e),t=Zs(t,i.children),t.flags|=134221824,t)}function tc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),hi(e.return,t,n)}function nc(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Ra(n)===null&&(t=e),e=e.sibling}return t}function rc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function ic(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function ac(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail,o=r.children,s=Tx.current;if(t.flags&128)return Ia(t,s),null;if((r=(s&wx)!==0)?(s=s&Cx|wx,t.flags|=128):s&=Cx,Ia(t,s),s=i??`null`,i!=null&&i!==`forwards`&&i!==`backwards`&&i!==`unstable_legacy-backwards`&&i!==`together`&&i!==`independent`&&!TS[s]){if(TS[s]=!0,typeof i==`string`)switch(i.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.`,i,i.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.`,i,i.toLowerCase());break;default:console.error(`"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i)}else console.error(`%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i)}s=a??`null`,ES[s]||a==null||(a!==`visible`&&a!==`collapsed`&&a!==`hidden`?(ES[s]=!0,console.error(`"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?`,a)):i!=null&&i!==`forwards`&&i!==`backwards`&&i!==`unstable_legacy-backwards`&&(ES[s]=!0,console.error(`<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" (default) or "backwards". Did you mean to specify revealOrder="forwards"?`,a)));a:if((i==null||i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&o!=null&&!1!==o){if(Ym(o)){for(s=0;s<o.length;s++)if(!_a(o[s],s))break a}else if(s=ge(o),typeof s==`function`){if(s=s.call(o))for(var c=s.next(),l=0;!c.done;c=s.next()){if(!_a(c.value,l))break a;l++}}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?`,i)}if(i===`backwards`&&e!==null?(ic(e),Ms(e,t,o,n),ic(e)):Ms(e,t,o,n),sy?(ni(),o=$v):o=0,!r&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&tc(e,n,t);else if(e.tag===19)tc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=nc(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,ic(t)),rc(t,!0,i,null,a,o);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ra(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}rc(t,!0,n,null,a,o);break;case`together`:rc(t,!1,null,null,void 0,o);break;case`independent`:t.memoizedState=null;break;default:n=nc(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),rc(t,!1,i,n,a,o)}return t.child}function oc(e,t,n){var r=t.type,i=t.pendingProps,a=i.value;return`value`in i||kS||(kS=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),pi(t,r,a),Ms(e,t,i.children,n),t.child}function sc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),My=-1,IC|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(_i(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(`Resuming work not yet implemented.`);if(t.child!==null){for(e=t.child,n=Vr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Vr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&vi(e)))}function lc(e,t,n){switch(t.tag){case 3:Ce(t,t.stateNode.containerInfo),pi(t,Sy,e.memoizedState.cache),ui();break;case 27:case 5:Ee(t);break;case 4:Ce(t,t.stateNode.containerInfo);break;case 10:pi(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var r=t.stateNode;r.effectDuration=-0,r.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,Na(t),null;break;case 13:if(r=t.memoizedState,r!==null){if(r.dehydrated!==null)return Ma(t),t.flags|=128,null;r=_i(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Xs(e,t,n):(Ma(t),e=sc(e,t,n),e===null?null:e.sibling)}Ma(t);break;case 19:if(t.flags&128)return ac(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(_i(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return ac(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ia(t,Tx.current),r)break;return null;case 22:return t.lanes=0,Is(e,t,n,t.pendingProps);case 24:pi(t,Sy,e.memoizedState.cache)}return sc(e,t,n)}function uc(e,t,n){if(t._debugNeedsRemount&&e!==null){n=Ur(Ir(t.elementType),t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var r=t.return;if(r===null)throw Error(`Cannot swap the root fiber.`);if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===r.child)r.child=n;else{var i=r.child;if(i===null)throw Error(`Expected parent to have a child.`);for(;i.sibling!==t;)if(i=i.sibling,i===null)throw Error(`Expected to find the previous sibling.`);i.sibling=n}return t=r.deletions,t===null?(r.deletions=[e],r.flags|=16):t.push(e),n.flags|=134217730,n}if(e!==null){if(e.memoizedProps!==t.pendingProps||t.type!==e.type)yS=!0;else{if(!cc(e,n)&&!(t.flags&128))return yS=!1,lc(e,t,n);yS=!!(e.flags&131072)}}else yS=!1,(r=sy)&&(ni(),r=!!(t.flags&1048576)),r&&(r=t.index,ni(),Zr(t,$v,r));switch(t.lanes=0,t.tag){case 16:a:if(r=t.pendingProps,e=ta(t.elementType),e=Ir(e),t.type=e,typeof e==`function`)O(e)?(r=Ss(e,r),t.tag=1,t=Gs(null,t,e,r,n)):(t.tag=0,qs(t,e),t=Us(null,t,e,r,n));else{if(e!=null){if(i=e.$$typeof,i===Lm){t.tag=11,t=Ns(null,t,e,r,n);break a}if(i===Bm){t.tag=14,t=Ps(null,t,e,r,n);break a}if(i===Im){t.tag=10,t.type=e,t=oc(null,t,n);break a}}throw t=``,typeof e==`object`&&e&&e.$$typeof===Vm&&(t=` Did you wrap a component in React.lazy() more than once?`),n=_e(e)||e,Error(`Element type is invalid. Received a promise that resolves to: `+n+`. Lazy element type must resolve to a class or function.`+t)}return t;case 0:return Us(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Ss(r,t.pendingProps),Gs(e,t,r,i,n);case 3:a:{if(Ce(t,t.stateNode.containerInfo),e===null)throw Error(`Should have a current fiber. This is a bug in React.`);r=t.pendingProps;var a=t.memoizedState;i=a.element,ya(e,t),Ta(t,r,null,n);var o=t.memoizedState;if(r=o.cache,pi(t,Sy,r),r!==a.cache&&gi(t,[Sy],n,!0),wa(),r=o.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=Ks(e,t,r,n);break a}if(r!==i){i=Yr(Error(`This root received an early update, before anything was able hydrate. Switched the entire root to client rendering.`),t),k(i),t=Ks(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(oy=sp(e.firstChild),ay=t,sy=!0,uy=null,cy=!1,ly=null,dy=!0,n=ux(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ui(),r===i){t=sc(e,t,n);break a}Ms(e,t,r,n)}t=t.child}return t;case 26:return Hs(e,t),e===null?(n=Cp(t.type,null,t.pendingProps,null))?t.memoizedState=n:sy||(t.stateNode=Qd(t.type,t.pendingProps,Se(th.current),t)):t.memoizedState=Cp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ee(t),e===null&&sy&&(r=Se(th.current),i=Te(),r=t.stateNode=_p(t.type,t.pendingProps,r,i,!1),cy||(i=Gd(r,t.type,t.pendingProps,i),i!==null&&(ri(t,0).serverProps=i)),ay=t,dy=!0,i=oy,ff(t.type)?(BT=i,oy=sp(r.firstChild)):oy=i),Ms(e,t,t.pendingProps.children,n),Hs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&sy&&(a=Te(),r=pn(t.type,a.ancestorInfo),i=oy,(o=!i)||(o=tp(i,t.type,t.pendingProps,dy),o===null?a=!1:(t.stateNode=o,cy||(a=Gd(o,t.type,t.pendingProps,a),a!==null&&(ri(t,0).serverProps=a)),ay=t,oy=sp(o.firstChild),dy=!1,a=!0),o=!a),o&&(r&&ai(t,i),oi(t))),Ee(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,ef(i,a)?r=null:o!==null&&ef(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=Wa(e,t,qa,null,null,n),iE._currentValue=i),Hs(e,t),Ms(e,t,r,n),t.child;case 6:return e===null&&sy&&(n=t.pendingProps,e=Te(),r=e.ancestorInfo.current,n=r==null||mn(n,r.tag,e.ancestorInfo.implicitRootScope),e=oy,(r=!e)||(r=np(e,t.pendingProps,dy),r===null?r=!1:(t.stateNode=r,ay=t,oy=null,r=!0),r=!r),r&&(n&&ai(t,e),oi(t))),null;case 13:return Xs(e,t,n);case 4:return Ce(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=lx(t,null,r,n):Ms(e,t,r,n),t.child;case 11:return Ns(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Hs(e,t),Ms(e,t,r,n),t.child;case 8:return Ms(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,r=t.stateNode,r.effectDuration=-0,r.passiveEffectDuration=-0,Ms(e,t,t.pendingProps.children,n),t.child;case 10:return oc(e,t,n);case 9:return i=t.type._context,r=t.pendingProps.children,typeof r!=`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.`),yi(t),i=bi(i),r=Ab(r,i,void 0),t.flags|=1,Ms(e,t,r,n),t.child;case 14:return Ps(e,t,t.type,t.pendingProps,n);case 15:return Fs(e,t,t.type,t.pendingProps,n);case 19:return ac(e,t,n);case 31:return Vs(e,t,n);case 22:return Is(e,t,n,t.pendingProps);case 24:return yi(t),r=bi(Sy),e===null?(i=Yi(),i===null&&(i=vC,a=Ci(),i.pooledCache=a,wi(a),a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},va(t),pi(t,Sy,i)):((e.lanes&n)!==0&&(ya(e,t),Ta(t,null,null,n),wa()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,pi(t,Sy,r),r!==i.cache&&gi(t,[Sy],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),pi(t,Sy,r))),Ms(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:sy&&Qr(t),r.className!==void 0&&(i=typeof r.className==`string`?JSON.stringify(r.className):`{...}`,DS[i]||(DS[i]=!0,console.error(`<ViewTransition> doesn't accept a "className" prop. It has been renamed to "default".
|
|
145
|
-
- <ViewTransition className=%s>
|
|
146
|
-
+ <ViewTransition default=%s>`,i,i))),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Hs(e,t),Ms(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function dc(e){e.flags|=4}function fc(e,t,n,r,i){var a;if((a=(e.mode&qv)!==V)&&(a=n===null?Rp(t,r):Rp(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(pu())e.flags|=8192;else throw ex=Xb,Jb}}else e.flags&=-16777217}function pc(e,t){if(t.type!==`stylesheet`||(t.state.loading>)!==VT)e.flags&=-16777217;else if(e.flags|=16777216,!zp(t)){if(pu())e.flags|=8192;else throw ex=Xb,Jb}}function mc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:$e(),e.lanes|=t,BC|=t)}function hc(e,t){if(!sy)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function gc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t){if((e.mode&Wv)!==V){for(var i=e.selfBaseDuration,a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&1206910976,r|=a.flags&1206910976,i+=a.treeBaseDuration,a=a.sibling;e.treeBaseDuration=i}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling}else if((e.mode&Wv)!==V){i=e.actualDuration,a=e.selfBaseDuration;for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,i+=o.actualDuration,a+=o.treeBaseDuration,o=o.sibling;e.actualDuration=i,e.treeBaseDuration=a}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function _c(e,t,n){var r=t.pendingProps;switch($r(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gc(t),null;case 1:return gc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),mi(Sy,t),we(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(li(t)?(A(),dc(t)):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,di())),gc(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(dc(t),a===null?(gc(t),fc(t,i,null,r,n)):(gc(t),pc(t,a))):a?a===e.memoizedState?(gc(t),t.flags&=-16777217):(dc(t),gc(t),pc(t,a)):(e=e.memoizedProps,e!==r&&dc(t),gc(t),fc(t,i,e,r,n)),null;case 27:if(De(t),n=Se(th.current),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&dc(t);else{if(!r){if(t.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 gc(t),t.subtreeFlags&=-33554433,null}e=Te(),li(t)?si(t,e):(e=_p(i,r,n,e,!0),t.stateNode=e,dc(t))}return gc(t),t.subtreeFlags&=-33554433,null;case 5:if(De(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&dc(t);else{if(!r){if(t.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 gc(t),t.subtreeFlags&=-33554433,null}var o=Te();if(li(t))si(t,o);else{switch(a=Se(th.current),pn(i,o.ancestorInfo),o=o.context,a=Yd(a),o){case CT:a=a.createElementNS(Lg,i);break;case wT:a=a.createElementNS(Ig,i);break;default:switch(i){case`svg`:a=a.createElementNS(Lg,i);break;case`math`:a=a.createElementNS(Ig,i);break;case`script`:a=a.createElement(`div`),DT||$d(r)||(console.error(`Encountered a script tag while rendering React component. Scripts inside React components are never executed when rendering on the client. Consider using template tag instead (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template).`),DT=!0),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?a.createElement(`select`,{is:r.is}):a.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?a.createElement(i,{is:r.is}):a.createElement(i),i.indexOf(`-`)===-1&&(i!==i.toLowerCase()&&console.error(`<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.`,i),Object.prototype.toString.call(a)!==`[object HTMLUnknownElement]`||gh.call(OT,i)||(OT[i]=!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.`,i)))}}a[Gh]=t,a[Kh]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(Fd(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&dc(t)}}return gc(t),t.subtreeFlags&=-33554433,fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&dc(t);else{if(typeof r!=`string`&&t.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(e=Se(th.current),n=Te(),li(t)){if(e=t.stateNode,n=t.memoizedProps,i=!cy,r=null,a=ay,a!==null)switch(a.tag){case 3:i&&(i=lp(e,n,r),i!==null&&(ri(t,0).serverProps=i));break;case 27:case 5:r=a.memoizedProps,i&&(i=lp(e,n,r),i!==null&&(ri(t,0).serverProps=i))}e[Gh]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||oi(t,!0)}else i=n.ancestorInfo.current,i!=null&&mn(r,i.tag,n.ancestorInfo.implicitRootScope),e=Yd(e).createTextNode(r),e[Gh]=t,t.stateNode=e}return gc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=li(t),n!==null){if(e===null){if(!r)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.`);e[Gh]=t,gc(t),(t.mode&Wv)!==V&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else A(),ui(),!(t.flags&128)&&(n=t.memoizedState=null),t.flags|=4,gc(t),(t.mode&Wv)!==V&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else n=di(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Fa(t),t):(Fa(t),null);if(t.flags&128)throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`)}return gc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=r,a=li(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);a[Gh]=t,gc(t),(t.mode&Wv)!==V&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration))}else A(),ui(),!(t.flags&128)&&(i=t.memoizedState=null),t.flags|=4,gc(t),(t.mode&Wv)!==V&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration));i=!1}else i=di(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Fa(t),t):(Fa(t),null)}return Fa(t),t.flags&128?(t.lanes=n,(t.mode&Wv)!==V&&Gi(t),t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),mc(t,t.updateQueue),gc(t),(t.mode&Wv)!==V&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return we(t),e===null&&_d(t.stateNode.containerInfo),t.flags|=67108864,gc(t),null;case 10:return mi(t.type,t),gc(t),null;case 19:if(La(t),r=t.memoizedState,r===null)return gc(t),null;if(i=!!(t.flags&128),a=r.rendering,a===null){if(i)hc(r,!1);else{if(FC!==uC||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Ra(e),a!==null){for(t.flags|=128,hc(r,!1),e=a.updateQueue,t.updateQueue=e,mc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Hr(n,e),n=n.sibling;return Ia(t,Tx.current&Cx|wx),sy&&Xr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&xh()>qC&&(t.flags|=128,i=!0,hc(r,!1),t.lanes=4194304)}}else{if(!i){if(e=Ra(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,mc(t,e),hc(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!a.alternate&&!sy)return gc(t),null}else 2*xh()-r.renderingStartTime>qC&&n!==536870912&&(t.flags|=128,i=!0,hc(r,!1),t.lanes=4194304)}r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=xh(),e.sibling=null,a=Tx.current,a=i?a&Cx|wx:a&Cx,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||sy?Ia(t,a):(n=a,xe(xx,t,t),xe(Tx,n,t),Sx===null&&(Sx=t)),sy&&Xr(t,r.treeForkCount),e}return gc(t),null;case 22:case 23:return Fa(t),ja(t),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(gc(t),t.subtreeFlags&6&&(t.flags|=8192)):gc(t),n=t.updateQueue,n!==null&&mc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&be(_b,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),mi(Sy,t),gc(t),null;case 25:return null;case 30:return t.flags|=33554432,gc(t),null}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function vc(e,t){switch($r(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Wv)!==V&&Gi(t),t):null;case 3:return mi(Sy,t),we(t),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return De(t),null;case 31:if(t.memoizedState!==null){if(Fa(t),t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);ui()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Wv)!==V&&Gi(t),t):null;case 13:if(Fa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);ui()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Wv)!==V&&Gi(t),t):null;case 19:return La(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return we(t),null;case 10:return mi(t.type,t),null;case 22:case 23:return Fa(t),ja(t),e!==null&&be(_b,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Wv)!==V&&Gi(t),t):null;case 24:return mi(Sy,t),null;case 25:return null;default:return null}}function yc(e,t){switch($r(t),t.tag){case 3:mi(Sy,t),we(t);break;case 26:case 27:case 5:De(t);break;case 4:we(t);break;case 31:t.memoizedState!==null&&Fa(t);break;case 13:Fa(t);break;case 19:La(t);break;case 10:mi(t.type,t);break;case 22:case 23:Fa(t),ja(t),e!==null&&be(_b,t);break;case 24:mi(Sy,t)}}function bc(e){return(e.mode&Wv)!==V}function xc(e,t){bc(e)?(Wi(),Cc(t,e),Hi()):Cc(t,e)}function Sc(e,t,n){bc(e)?(Wi(),wc(n,e,t),Hi()):wc(n,e,t)}function Cc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e&&(r=void 0,(e&Ox)!==Ex&&(Aw=!0),r=w(t,Hb,n),(e&Ox)!==Ex&&(Aw=!1),r!==void 0&&typeof r!=`function`)){var a=void 0;a=(n.tag&kx)===0?(n.tag&Ox)===0?`useEffect`:`useInsertionEffect`:`useLayoutEffect`;var o=void 0;o=r===null?` You returned null. If your effect does not require clean up, return undefined (or nothing).`:typeof r.then==`function`?`
|
|
147
|
-
|
|
148
|
-
It looks like you wrote `+a+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
149
|
-
|
|
150
|
-
`+a+`(() => {
|
|
151
|
-
async function fetchData() {
|
|
152
|
-
// You can await here
|
|
153
|
-
const response = await MyAPI.getData(someId);
|
|
154
|
-
// ...
|
|
155
|
-
}
|
|
156
|
-
fetchData();
|
|
157
|
-
}, [someId]); // Or [] if effect doesn't need props or state
|
|
158
|
-
|
|
159
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:` You returned: `+r,w(t,function(e,t){console.error(`%s must not return anything besides a function, which is used for clean-up.%s`,e,t)},a,o)}n=n.next}while(n!==i)}}catch(e){Hu(t,t.return,e)}}function wc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;s!==void 0&&(o.destroy=void 0,(e&Ox)!==Ex&&(Aw=!0),i=t,w(i,Wb,i,n,s),(e&Ox)!==Ex&&(Aw=!1))}r=r.next}while(r!==a)}}catch(e){Hu(t,t.return,e)}}function Tc(e,t){bc(e)?(Wi(),Cc(t,e),Hi()):Cc(t,e)}function Ec(e,t,n){bc(e)?(Wi(),wc(n,e,t),Hi()):wc(n,e,t)}function Dc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||`ref`in e.memoizedProps||wS||(n.props!==e.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.",S(e)||`instance`),n.state!==e.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.",S(e)||`instance`));try{w(e,Oa,t,n)}catch(t){Hu(e,e.return,t)}}}function Oc(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function kc(e,t){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e.type.defaultProps||`ref`in e.memoizedProps||wS||(t.props!==e.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.",S(e)||`instance`),t.state!==e.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.",S(e)||`instance`));try{var i=Ss(e.type,n),a=w(e,Oc,t,i,r);n=AS,a!==void 0||n.has(e.type)||(n.add(e.type),w(e,function(){console.error(`%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.`,S(e))})),t.__reactInternalSnapshotBeforeUpdate=a}catch(t){Hu(e,e.return,t)}}function Ac(e,t,n){n.props=Ss(e.type,e.memoizedProps),n.state=e.memoizedState,bc(e)?(Wi(),w(e,Bb,e,t,n),Hi()):w(e,Bb,e,t,n)}function jc(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;var r=dr(e.memoizedProps,n);(n.ref===null||n.ref.name!==r)&&(n.ref=Pf(r)),n=n.ref;break;case 7:e.stateNode===null&&(n=new Ff(e),oe(e,Xf,n),e.stateNode=n),n=e.stateNode;break;default:n=e.stateNode}if(typeof t==`function`){if(bc(e))try{Wi(),e.refCleanup=t(n)}finally{Hi()}else e.refCleanup=t(n)}else typeof t==`string`?console.error(`String refs are no longer supported.`):t.hasOwnProperty(`current`)||console.error(`Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().`,S(e)),t.current=n}}function Mc(e,t){try{w(e,jc,e)}catch(n){Hu(e,t,n)}}function Nc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{if(bc(e))try{Wi(),w(e,r)}finally{Hi(e)}else w(e,r)}catch(n){Hu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{if(bc(e))try{Wi(),w(e,n,null)}finally{Hi(e)}else w(e,n,null)}catch(n){Hu(e,t,n)}else n.current=null}}function Pc(e,t,n,r){var i=e.memoizedProps,a=i.id,o=i.onCommit;i=i.onRender,t=t===null?`mount`:`update`,ub&&(t=`nested-update`),typeof i==`function`&&i(a,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof o==`function`&&o(a,t,r,n)}function Fc(e,t,n,r){var i=e.memoizedProps;e=i.id,i=i.onPostCommit,t=t===null?`mount`:`update`,ub&&(t=`nested-update`),typeof i==`function`&&i(e,t,r,n)}function Ic(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)Qf(e.stateNode,t[n])}function Lc(e){for(var t=e.return;t!==null&&(Bc(t)&&Qf(e.stateNode,t.stateNode),!zc(t));)t=t.return}function Rc(e){for(var t=e.return;t!==null&&(Bc(t)&&$f(e.stateNode,t.stateNode),!zc(t));)t=t.return}function zc(e){return e.tag===5||e.tag===3||e.tag===27}function Bc(e){return e&&e.tag===7&&e.stateNode!==null}function Vc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{w(e,of,r,t,n,e)}catch(t){Hu(e,e.return,t)}}function Hc(e,t,n){try{w(e,cf,e.stateNode,e.type,n,t,e)}catch(t){Hu(e,e.return,t)}}function Uc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ff(e.type)||e.tag===4}function Wc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Uc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ff(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gc(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(df(n),(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t)):(df(n),t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),i=n._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=En)),Ic(e,r),sg=!0;else if(i!==4&&(i===27&&(Ic(e,r),r=null,ff(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Gc(e,t,n,r),e=e.sibling;e!==null;)Gc(e,t,n,r),e=e.sibling}function Kc(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Ic(e,r),sg=!0;else if(i!==4&&(i===27&&(Ic(e,r),r=null,ff(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Kc(e,t,n,r),e=e.sibling;e!==null;)Kc(e,t,n,r),e=e.sibling}function qc(e){for(var t,n=e.return;n!==null;){if(Uc(n)){t=n;break}n=n.return}n=null;for(var r=e.return;r!==null;){if(Bc(r)){var i=r.stateNode;n===null?n=[i]:n.push(i)}if(zc(r))break;r=r.return}if(t==null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);switch(t.tag){case 27:t=t.stateNode,r=Wc(e),Kc(e,r,t,n);break;case 5:r=t.stateNode,t.flags&32&&(lf(r),t.flags&=-33),t=Wc(e),Kc(e,t,r,n);break;case 3:case 4:t=t.stateNode.containerInfo,r=Wc(e),Gc(e,r,t,n);break;default:throw Error(`Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.`)}}function Jc(e){var t=e.stateNode,n=e.memoizedProps;try{w(e,vp,e.type,n,t,e)}catch(t){Hu(e,e.return,t)}}function Yc(e){(e.tag===30||e.subtreeFlags&33554432)&&(jS=!0)}function Xc(){var e=NS;return NS=null,e}function Zc(e,t,n,r,i){return PS=0,(t=Qc(e.child,t,n,r,i))&&e._debugTask!=null&&sb===null&&(sb=e._debugTask),t}function Qc(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Df(o);r.push(s),s.view&&(a=!0)}else a||Df(o).view&&(a=!0);jS=!0,wf(o,PS===0?t:t+`_`+PS,n),PS++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Qc(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function $c(e,t){for(;e!==null;)e.tag===5?Tf(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||$c(e.child,t)),e=e.sibling}function el(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(el(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(`Found a pair with an auto name. This is a bug in React.`);var n=t.name;t=pr(t.default,t.share),t!==`none`&&(Zc(e,n,t,null,!1)||$c(e.child,!1))}e=e.sibling}}function tl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=dr(r,n),a=pr(r.default,n.paired?r.share:r.enter);a===`none`?el(e):Zc(e,i,a,null,!1)?(el(e),n.paired||t||nu(e,r.onEnter)):$c(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)tl(e,t),e=e.sibling;else el(e)}function nl(e){if(MS!==null&&MS.size!==0){var t=MS;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=pr(n.default,n.share);if(a!==`none`&&(Zc(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,nu(e,n.onShare)):$c(e.child,!1)),t.delete(r),t.size===0)break}}}nl(e)}e=e.sibling}}}function rl(e){if(e.tag===30){var t=e.memoizedProps,n=dr(t,e.stateNode),r=MS===null?void 0:MS.get(n),i=pr(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Zc(e,n,i,null,!1)?r===void 0?nu(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,MS.delete(n),nu(e,t.onShare)):$c(e.child,!1)),MS!==null&&nl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)rl(e),e=e.sibling;else MS!==null&&nl(e)}function il(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=dr(t,e.stateNode);t=pr(t.default,t.update),e.flags&=-5,t!==`none`&&Zc(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&il(e);e=e.sibling}}function al(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,$c(e.child,!1))}al(e)}e=e.sibling}}function ol(e){if(e.tag===30)e.stateNode.paired=null,$c(e.child,!1),al(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)ol(e),e=e.sibling;else al(e)}function sl(e){for(e=e.child;e!==null;)e.tag===30?$c(e.child,!1):e.subtreeFlags&33554432&&sl(e),e=e.sibling}function cl(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&PS<a.length){var l=a[PS],u=Df(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&wf(c,PS===0?n:n+`_`+PS,i),s&&e.flags&4||(NS===null&&(NS=[]),NS.push(c,PS===0?r:r+`_`+PS,t.memoizedProps)),PS++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:cl(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function ll(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=dr(n,r),a=pr(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Of)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child,c=i;PS=0,a=cl(r,s,c,i,a,o,!1),e.flags&4&&a&&(t||nu(e,n.onUpdate))}else e.subtreeFlags&33554432&&ll(e,t);e=e.sibling}}function ul(e){var t=e.memoizedProps.name;if(t!=null&&t!==`auto`){var n=FS.get(t);if(n!==void 0){if(n!==e&&n!==e.alternate&&!IS[t]){IS[t]=!0;var r=JSON.stringify(t);w(e,function(){console.error(`There are two <ViewTransition name=%s> components with the same name mounted at the same time. This is not supported and will cause View Transitions to error. Try to use a more unique name e.g. by using a namespace prefix and adding the id of an item to the name.`,r)}),w(n,function(){console.error(`The existing <ViewTransition name=%s> duplicate has this stack trace.`,r)})}}else FS.set(t,e)}}function dl(e){var t=e.memoizedProps.name;if(t!=null&&t!==`auto`){var n=FS.get(t);n===void 0||n!==e&&n!==e.alternate||FS.delete(t)}}function fl(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3&&e.memoizedState.isDehydrated&&!(t.flags&256)}function pl(e,t,n){if(e=e.containerInfo,TT=xE,e=ar(e),or(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(ET={focusedElem:e,selectionRange:r},xE=!1,n=(n&335544064)===n,GS=t,t=n?9270:1024;GS!==null;){if(e=GS,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&rl(r[a]);if(e.alternate===null&&e.flags&2)n&&Yc(e),ml(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&rl(r),ml(n);continue}if(r!==null&&r.memoizedState!==null){n&&Yc(e),ml(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,GS=r):(n&&il(e),ml(n))}}MS=null}function ml(e){for(;GS!==null;){var t=GS,n=t,r=e,i=n.alternate,a=n.flags;switch(n.tag){case 0:case 11:case 15:break;case 1:a&1024&&i!==null&&kc(n,i);break;case 3:if(a&1024){if(r=n.stateNode.containerInfo,n=r.nodeType,n===9)ep(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:ep(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:r&&i!==null&&(r=i,i=n,n=dr(r.memoizedProps,r.stateNode),i=i.memoizedProps,i=pr(i.default,i.update),i!==`none`&&Zc(r,n,i,r.memoizedState=[],!0));break;default:if(a&1024)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(r=t.sibling,r!==null){r.return=t.return,GS=r;break}GS=t.return}}function hl(e,t,n){var r=Pi(),i=Ii(),a=Ri(),o=zi(),s=n.flags;switch(n.tag){case 0:case 11:case 15:Ml(e,n),s&4&&xc(n,kx|Dx);break;case 1:if(Ml(e,n),s&4){if(e=n.stateNode,t===null)n.type.defaultProps||`ref`in n.memoizedProps||wS||(e.props!==n.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.",S(n)||`instance`),e.state!==n.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.",S(n)||`instance`)),bc(n)?(Wi(),w(n,Pb,n,e),Hi()):w(n,Pb,n,e);else{var c=Ss(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||`ref`in n.memoizedProps||wS||(e.props!==n.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.",S(n)||`instance`),e.state!==n.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.",S(n)||`instance`)),bc(n)?(Wi(),w(n,Ib,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate),Hi()):w(n,Ib,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate)}}s&64&&Dc(n),s&512&&Mc(n,n.return);break;case 3:if(t=Ai(),Ml(e,n),s&64&&(s=n.updateQueue,s!==null)){if(c=null,n.child!==null)switch(n.child.tag){case 27:case 5:c=n.child.stateNode;break;case 1:c=n.child.stateNode}try{w(n,Oa,s,c)}catch(e){Hu(n,n.return,e)}}e.effectDuration+=ji(t);break;case 27:t===null&&s&4&&Jc(n);case 26:case 5:if(Ml(e,n),t===null){if(s&4)Vc(n);else if(s&64){e=n.type,t=n.memoizedProps,c=n.stateNode;try{w(n,sf,c,e,t,n)}catch(e){Hu(n,n.return,e)}}}s&512&&Mc(n,n.return);break;case 12:if(s&4){s=Ai(),Ml(e,n),e=n.stateNode,e.effectDuration+=Mi(s);try{w(n,Pc,n,t,ky,e.effectDuration)}catch(e){Hu(n,n.return,e)}}else Ml(e,n);break;case 31:Ml(e,n),s&4&&Sl(e,n);break;case 13:Ml(e,n),s&4&&Cl(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=Ku.bind(null,n),op(e,s))));break;case 22:if(s=n.memoizedState!==null||BS,!s){var l=t!==null&&t.memoizedState!==null||VS;t=BS,c=VS,BS=s,(VS=l)&&!c?(s=zS,n.subtreeFlags&8772&&(s|=RS),Il(e,n,s),(n.mode&Wv)!==V&&0<=H&&0<=U&&.05<U-H&&br(n,H,U)):Ml(e,n),BS=t,VS=c}break;case 30:s&18874368&&ul(n),Ml(e,n),s&512&&Mc(n,n.return);break;case 7:s&512&&Mc(n,n.return);default:Ml(e,n)}(n.mode&Wv)!==V&&0<=H&&0<=U&&((Iy||.05<Py)&&Cr(n,H,U,Py,Fy),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<U-H&&(fl(n.return.alternate,n.return)||yr(n,H,U,`Mount`))),Fi(r),Li(i),Fy=a,Iy=o}function gl(e,t){for(e=e.child;e!==null;)_l(e,t),e=e.sibling}function _l(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;t?w(e,vf,n):w(e,xf,e.stateNode,e.memoizedProps)}catch(t){Hu(e,e.return,t)}vl(e,t);break;case 6:try{var r=e.stateNode;t?w(e,yf,r):w(e,Sf,r,e.memoizedProps),sg=!0}catch(t){Hu(e,e.return,t)}break;case 18:try{var i=e.stateNode;t?w(e,_f,i):w(e,bf,e.stateNode)}catch(t){Hu(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&gl(e,t);break;default:gl(e,t)}}function vl(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:_l(n,r);break a;case 22:n.memoizedState===null&&vl(n,r);break a;default:vl(n,r)}}e=e.sibling}}function yl(e){var t=e.alternate;t!==null&&(e.alternate=null,yl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ft(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function bl(e,t,n){for(n=n.child;n!==null;)xl(e,t,n),n=n.sibling}function xl(e,t,n){if(jh&&typeof jh.onCommitFiberUnmount==`function`)try{jh.onCommitFiberUnmount(Ah,n)}catch(e){Mh||(Mh=!0,console.error(`React instrumentation encountered an error: %o`,e))}var r=Pi(),i=Ii(),a=Ri(),o=zi();switch(n.tag){case 26:VS||Nc(n,t),bl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!VS&&(e=n.stateNode,e.parentNode.removeChild(e));break;case 27:VS||Nc(n,t),Rc(n);var s=QS,c=$S;ff(n.type)&&(QS=n.stateNode,$S=!1),bl(e,t,n),w(n,yp,n.stateNode,n.type,n.memoizedProps),QS=s,$S=c;break;case 5:VS||Nc(n,t),Rc(n);case 6:if(n.tag===6&&Rc(n),s=QS,c=$S,QS=null,bl(e,t,n),QS=s,$S=c,QS!==null){if($S)try{w(n,mf,QS,n.stateNode),sg=!0}catch(e){Hu(n,t,e)}else try{w(n,pf,QS,n.stateNode),sg=!0}catch(e){Hu(n,t,e)}}break;case 18:QS!==null&&($S?(e=QS,hf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),ym(e)):hf(QS,n.stateNode));break;case 4:s=QS,c=$S,QS=n.stateNode.containerInfo,$S=!0,bl(e,t,n),QS=s,$S=c;break;case 0:case 11:case 14:case 15:wc(Ox,n,t),VS||Sc(n,t,kx),bl(e,t,n);break;case 1:VS||(Nc(n,t),s=n.stateNode,typeof s.componentWillUnmount==`function`&&Ac(n,t,s)),bl(e,t,n);break;case 21:bl(e,t,n);break;case 22:VS=(s=VS)||n.memoizedState!==null,bl(e,t,n),VS=s;break;case 30:n.flags&18874368&&dl(n),Nc(n,t),bl(e,t,n);break;case 7:VS||Nc(n,t),bl(e,t,n);break;default:bl(e,t,n)}(n.mode&Wv)!==V&&0<=H&&0<=U&&(Iy||.05<Py)&&Cr(n,H,U,Py,Fy),Fi(r),Li(i),Fy=a,Iy=o}function Sl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{w(t,pp,e)}catch(e){Hu(t,t.return,e)}}}function Cl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{w(t,mp,e)}catch(e){Hu(t,t.return,e)}}function wl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new WS),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new WS),t;default:throw Error(`Unexpected Suspense handler tag (`+e.tag+`). This is a bug in React.`)}}function Tl(e,t){var n=wl(e);t.forEach(function(t){if(!n.has(t)){if(n.add(t),Nh){if(KS!==null&&qS!==null)Qu(qS,KS);else throw Error(`Expected finished root and lanes to be set. This is a bug in React.`)}var r=qu.bind(null,e,t);t.then(r,r)}})}function El(e,t,n){var r=t.deletions;if(r!==null)for(var i=0;i<r.length;i++){var a=e,o=t,s=r[i],c=Pi(),l=o;a:for(;l!==null;){switch(l.tag){case 27:if(ff(l.type)){QS=l.stateNode,$S=!1;break a}break;case 5:QS=l.stateNode,$S=!1;break a;case 3:case 4:QS=l.stateNode.containerInfo,$S=!0;break a}l=l.return}if(QS===null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);xl(a,o,s),QS=null,$S=!1,(s.mode&Wv)!==V&&0<=H&&0<=U&&.05<U-H&&yr(s,H,U,`Unmount`),Fi(c),a=s,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Dl(t,e,n),t=t.sibling}function Dl(e,t,n){var r=Pi(),i=Ii(),a=Ri(),o=zi(),s=e.alternate,c=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(c&4&&(s=e.updateQueue,s=s===null?null:s.events,s!==null))for(var l=0;l<s.length;l++){var u=s[l];u.ref.impl=u.nextImpl}El(t,e,n),Ol(e),c&4&&(wc(Ox|Dx,e,e.return),Cc(Ox|Dx,e),Sc(e,e.return,kx|Dx));break;case 1:El(t,e,n),Ol(e),c&512&&(VS||s===null||Nc(s,s.return)),c&64&&BS&&(t=e.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(c=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=c===null?n:c.concat(n))));break;case 26:if(l=eC,El(t,e,n),Ol(e),c&512&&(VS||s===null||Nc(s,s.return)),c&4){if(c=s===null?null:s.memoizedState,n=e.memoizedState,s===null){if(n===null){if(e.stateNode===null){if(BS)e.stateNode=Qd(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,c=l.ownerDocument||l;b:switch(t){case`title`:s=c.getElementsByTagName(`title`)[0],(!s||s[Qh]||s[Gh]||s.namespaceURI===Lg||s.hasAttribute(`itemprop`))&&(s=c.createElement(t),c.head.insertBefore(s,c.querySelector(`head > title`))),Fd(s,t,n),s[Gh]=e,_t(s),t=s;break a;case`link`:if(l=Fp(`link`,`href`,c).get(t+(n.href||``))){for(u=0;u<l.length;u++)if(s=l[u],s.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&s.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&s.getAttribute(`title`)===(n.title==null?null:n.title)&&s.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){l.splice(u,1);break b}}s=c.createElement(t),Fd(s,t,n),c.head.appendChild(s);break;case`meta`:if(l=Fp(`meta`,`content`,c).get(t+(n.content||``))){for(u=0;u<l.length;u++)if(s=l[u],He(n.content,`content`),s.getAttribute(`content`)===(n.content==null?null:``+n.content)&&s.getAttribute(`name`)===(n.name==null?null:n.name)&&s.getAttribute(`property`)===(n.property==null?null:n.property)&&s.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&s.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){l.splice(u,1);break b}}s=c.createElement(t),Fd(s,t,n),c.head.appendChild(s);break;default:throw Error(`getNodesForType encountered a type it did not expect: "`+t+`". This is a bug in React.`)}s[Gh]=e,_t(s),t=s}e.stateNode=t}}else BS||Ip(l,e.type,e.stateNode)}else e.stateNode=jp(l,n,e.memoizedProps)}else c===n?n===null&&e.stateNode!==null&&Hc(e,e.memoizedProps,s.memoizedProps):(c===null?(t=s.stateNode,t===null||VS||t.parentNode.removeChild(t)):c.count--,n===null?BS||Ip(l,e.type,e.stateNode):jp(l,n,e.memoizedProps))}break;case 27:El(t,e,n),Ol(e),c&512&&(VS||s===null||Nc(s,s.return)),s!==null&&c&4&&Hc(e,e.memoizedProps,s.memoizedProps);break;case 5:if(l=HS,HS=!1,El(t,e,n),HS=l,Ol(e),c&512&&(VS||s===null||Nc(s,s.return)),e.flags&32){t=e.stateNode;try{w(e,lf,t),sg=!0}catch(t){Hu(e,e.return,t)}}c&4&&e.stateNode!=null&&(t=e.memoizedProps,Hc(e,t,s===null?t:s.memoizedProps)),c&1024&&(US=!0,e.type!==`form`&&console.error(`Unexpected host component type. Expected a form. This is a bug in React.`));break;case 6:if(El(t,e,n),Ol(e),c&4){if(e.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.`);t=e.memoizedProps,n=s===null?t:s.memoizedProps,c=e.stateNode;try{w(e,uf,c,n,t),sg=!0}catch(t){Hu(e,e.return,t)}}break;case 3:if(l=Ai(),sg=!1,XT=null,u=eC,eC=xp(t.containerInfo),El(t,e,n),eC=u,Ol(e),c&4&&s!==null&&s.memoizedState.isDehydrated)try{w(e,fp,t.containerInfo)}catch(t){Hu(e,e.return,t)}US&&(US=!1,kl(e)),t.effectDuration+=ji(l),sg=!1;break;case 4:c=HS,HS=BS,s=Ct(),l=eC,eC=xp(e.stateNode.containerInfo),El(t,e,n),Ol(e),eC=l,sg&&YS&&(XS=!0),sg=s,HS=c;break;case 12:c=Ai(),El(t,e,n),Ol(e),e.stateNode.effectDuration+=Mi(c);break;case 31:El(t,e,n),Ol(e),c&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Tl(e,t)));break;case 13:El(t,e,n),Ol(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(WC=xh()),c&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Tl(e,t)));break;case 22:l=e.memoizedState!==null,u=s!==null&&s.memoizedState!==null;var d=BS,f=VS,p=HS;BS=d||l,HS=p||l,VS=f||u,El(t,e,n),VS=f,HS=p,BS=d,u&&!l&&!d&&!f&&(e.mode&Wv)!==V&&0<=H&&0<=U&&.05<U-H&&br(e,H,U),Ol(e),c&8192&&(t=e.stateNode,t._visibility=l?t._visibility&~Fv:t._visibility|Fv,!l||s===null||u||BS||VS||(t=zS,n=u||VS,s=BS,u=VS,BS=l||BS,VS=n,Pl(e,t),(e.mode&Wv)!==V&&0<=H&&0<=U&&.05<U-H&&yr(e,H,U,`Disconnect`),BS=s,VS=u),!l&&HS||gl(e,l)),c&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Tl(e,n))));break;case 19:El(t,e,n),Ol(e),c&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Tl(e,t)));break;case 30:c&512&&(VS||s===null||Nc(s,s.return)),c=Ct(),l=YS,u=(n&335544064)===n,d=e.memoizedProps,YS=u&&pr(d.default,d.update)!==`none`,El(t,e,n),Ol(e),u&&s!==null&&sg&&(e.flags|=4),YS=l,sg=c;break;case 21:break;case 7:c&512&&(VS||s===null||Nc(s,s.return)),s&&s.stateNode!==null&&(s.stateNode._fragmentFiber=e);default:El(t,e,n),Ol(e)}(e.mode&Wv)!==V&&0<=H&&0<=U&&((Iy||.05<Py)&&Cr(e,H,U,Py,Fy),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<U-H&&(fl(e.return.alternate,e.return)||yr(e,H,U,`Mount`))),Fi(r),Li(i),Fy=a,Iy=o}function Ol(e){var t=e.flags;if(t&2){try{w(e,qc,e)}catch(t){Hu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;kl(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,xE=!0,t.reset(),xE=!1),e=e.sibling}}function Al(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)jl(t,e),t=t.sibling;else ll(t,!1)}function jl(e,t){var n=e.alternate;if(n===null)tl(e,!1);else switch(e.tag){case 3:if(ZS=JS=!1,Xc(),Al(t,e),!JS&&!XS){if(e=NS,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Tf(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),ZS=!0}NS=null;break;case 5:Al(t,e);break;case 4:r=JS,JS=!1,Al(t,e),JS&&(XS=!0),JS=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Al(t,e):tl(e,!1));break;case 30:r=JS,i=Xc(),JS=!1,Al(t,e),JS&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=dr(a,o),o=dr(n.memoizedProps,o);var s=pr(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,PS=0,t=cl(e,n,t,o,s,a,!0),PS!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(nu(e,e.memoizedProps.onUpdate),NS=i):i!==null&&(i.push.apply(i,NS),NS=i),JS=e.flags&32?!0:r;break;default:Al(t,e)}}function Ml(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)hl(e,t.alternate,t),t=t.sibling}function Nl(e,t){var n=Pi(),r=Ii(),i=Ri(),a=zi();switch(e.tag){case 0:case 11:case 14:case 15:Sc(e,e.return,kx),Pl(e,t);break;case 1:Nc(e,e.return);var o=e.stateNode;typeof o.componentWillUnmount==`function`&&Ac(e,e.return,o),Pl(e,t);break;case 27:(t&zS)!==LS&&w(e,yp,e.stateNode,e.type,e.memoizedProps);case 5:Nc(e,e.return),e.tag!==5&&e.tag!==27||Rc(e),Pl(e,t);break;case 6:Rc(e);break;case 26:Nc(e,e.return),o=e.stateNode,e.memoizedState!==null||o===null||VS||o.parentNode.removeChild(o),Pl(e,t);break;case 22:e.memoizedState===null&&Pl(e,t);break;case 30:e.flags&18874368&&dl(e),Nc(e,e.return),Pl(e,t);break;case 7:Nc(e,e.return);default:Pl(e,t)}(e.mode&Wv)!==V&&0<=H&&0<=U&&(Iy||.05<Py)&&Cr(e,H,U,Py,Fy),Fi(n),Li(r),Fy=i,Iy=a}function Pl(e,t){for(e=e.child;e!==null;)Nl(e,t),e=e.sibling}function Fl(e,t,n,r){var i=Pi(),a=Ii(),o=Ri(),s=zi(),c=n.flags,l=(r&RS)!==LS;switch(n.tag){case 0:case 11:case 15:Il(e,n,r),xc(n,kx);break;case 1:if(Il(e,n,r),t=n.stateNode,typeof t.componentDidMount==`function`&&w(n,Pb,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{w(n,Da,t,e)}catch(e){Hu(n,n.return,e)}}l&&c&64&&Dc(n),Mc(n,n.return);break;case 27:(r&zS)!==LS&&Jc(n);case 5:n.tag!==5&&n.tag!==27||Lc(n),Il(e,n,r),l&&t===null&&c&4&&Vc(n),Mc(n,n.return);break;case 6:Lc(n);break;case 26:var u=n.stateNode;n.memoizedState!==null||u===null||BS||Ip(xp(u.ownerDocument),n.type,u),Il(e,n,r),l&&t===null&&c&4&&Vc(n),Mc(n,n.return);break;case 12:if(l&&c&4){c=Ai(),Il(e,n,r),l=n.stateNode,l.effectDuration+=Mi(c);try{w(n,Pc,n,t,ky,l.effectDuration)}catch(e){Hu(n,n.return,e)}}else Il(e,n,r);break;case 31:Il(e,n,r),l&&c&4&&Sl(e,n);break;case 13:Il(e,n,r),l&&c&4&&Cl(e,n);break;case 22:n.memoizedState===null&&Il(e,n,r),Mc(n,n.return);break;case 30:Il(e,n,r),c&18874368&&ul(n),Mc(n,n.return);break;case 7:Mc(n,n.return);default:Il(e,n,r)}(n.mode&Wv)!==V&&0<=H&&0<=U&&(Iy||.05<Py)&&Cr(n,H,U,Py,Fy),Fi(i),Li(a),Fy=o,Iy=s}function Il(e,t,n){for(n=t.subtreeFlags&8772?n:n&~RS,t=t.child;t!==null;)Fl(e,t.alternate,t,n),t=t.sibling}function Ll(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&wi(e),n!=null&&Ti(n))}function Rl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(wi(t),e!=null&&Ti(e))}function zl(e,t,n,r,i){var a=(n&335544064)===n;if(t.subtreeFlags&(a?10262:10256)||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;)a=t.sibling,Bl(e,t,n,r,a===null?i:a.actualStartTime),t=a;else a&&sl(t)}function Bl(e,t,n,r,i){var a=Pi(),o=Ii(),s=Ri(),c=zi(),l=kv,u=(n&335544064)===n;u&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&ol(t);var d=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Wv)!==V&&0<t.actualStartTime&&t.flags&1&&xr(t,t.actualStartTime,i,tC,n),zl(e,t,n,r,i),d&2048&&Tc(t,Ax|Dx);break;case 1:(t.mode&Wv)!==V&&0<t.actualStartTime&&(t.flags&128?Sr(t,t.actualStartTime,i,[]):t.flags&1&&xr(t,t.actualStartTime,i,tC,n)),zl(e,t,n,r,i);break;case 3:var f=Ai(),p=tC;tC=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&!(t.flags&256),zl(e,t,n,r,i),tC=p,u&&ZS&&(n=e.containerInfo,n=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,n.style.viewTransitionName===`root`&&(n.style.viewTransitionName=``),n=n.ownerDocument.documentElement,n!==null&&n.style.viewTransitionName===`none`&&(n.style.viewTransitionName=``)),d&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),r=t.memoizedState.cache,r!==n&&(wi(r),n!=null&&Ti(n))),e.passiveEffectDuration+=ji(f);break;case 12:if(d&2048){d=Ai(),zl(e,t,n,r,i),e=t.stateNode,e.passiveEffectDuration+=Mi(d);try{w(t,Fc,t,t.alternate,ky,e.passiveEffectDuration)}catch(e){Hu(t,t.return,e)}}else zl(e,t,n,r,i);break;case 31:d=tC,f=t.alternate===null?null:t.alternate.memoizedState,u=t.memoizedState,f!==null&&u===null?(u=t.deletions,u!==null&&0<u.length&&u[0].tag===18?(tC=!1,f=f.hydrationErrors,f!==null&&Sr(t,t.actualStartTime,i,f)):tC=!0):tC=!1,zl(e,t,n,r,i),tC=d;break;case 13:d=tC,f=t.alternate===null?null:t.alternate.memoizedState,u=t.memoizedState,f===null||f.dehydrated===null||u!==null&&u.dehydrated!==null?tC=!1:(u=t.deletions,u!==null&&0<u.length&&u[0].tag===18?(tC=!1,f=f.hydrationErrors,f!==null&&Sr(t,t.actualStartTime,i,f)):tC=!0),zl(e,t,n,r,i),tC=d;break;case 23:break;case 22:p=t.stateNode,f=t.alternate,t.memoizedState===null?(u&&f!==null&&f.memoizedState!==null&&ol(t),p._visibility&Iv?zl(e,t,n,r,i):(p._visibility|=Iv,Vl(e,t,n,r,!!(t.subtreeFlags&10256)||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),i),(t.mode&Wv)===V||tC||(e=t.actualStartTime,0<=e&&.05<i-e&&br(t,e,i),0<=H&&0<=U&&.05<U-H&&br(t,H,U)))):(u&&f!==null&&f.memoizedState===null&&ol(f),p._visibility&Iv?zl(e,t,n,r,i):Ul(e,t,n,r,i)),d&2048&&Ll(f,t);break;case 24:zl(e,t,n,r,i),d&2048&&Rl(t.alternate,t);break;case 30:u&&(d=t.alternate,d!==null&&($c(d.child,!0),$c(t.child,!0))),zl(e,t,n,r,i);break;default:zl(e,t,n,r,i)}(t.mode&Wv)!==V&&((e=!tC&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(n=t.actualStartTime,0<=n&&.05<i-n&&yr(t,n,i,`Mount`)),0<=H&&0<=U&&((Iy||.05<Py)&&Cr(t,H,U,Py,Fy),e&&.05<U-H&&yr(t,H,U,`Mount`))),Fi(a),Li(o),Fy=s,Iy=c,kv=l}function Vl(e,t,n,r,i,a){for(i&&=!!(t.subtreeFlags&10256)||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),t=t.child;t!==null;){var o=t.sibling;Hl(e,t,n,r,i,o===null?a:o.actualStartTime),t=o}}function Hl(e,t,n,r,i,a){var o=Pi(),s=Ii(),c=Ri(),l=zi(),u=kv;i&&(t.mode&Wv)!==V&&0<t.actualStartTime&&t.flags&1&&xr(t,t.actualStartTime,a,tC,n);var d=t.flags;switch(t.tag){case 0:case 11:case 15:Vl(e,t,n,r,i,a),Tc(t,Ax);break;case 23:break;case 22:var f=t.stateNode;t.memoizedState===null?(f._visibility|=Iv,Vl(e,t,n,r,i,a)):f._visibility&Iv?Vl(e,t,n,r,i,a):Ul(e,t,n,r,a),i&&d&2048&&Ll(t.alternate,t);break;case 24:Vl(e,t,n,r,i,a),i&&d&2048&&Rl(t.alternate,t);break;default:Vl(e,t,n,r,i,a)}(t.mode&Wv)!==V&&0<=H&&0<=U&&(Iy||.05<Py)&&Cr(t,H,U,Py,Fy),Fi(o),Li(s),Fy=c,Iy=l,kv=u}function Ul(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var a=t.child;a!==null;){t=a.sibling;var o=e,s=n,c=r,l=t===null?i:t.actualStartTime,u=kv;(a.mode&Wv)!==V&&0<a.actualStartTime&&a.flags&1&&xr(a,a.actualStartTime,l,tC,s);var d=a.flags;switch(a.tag){case 22:Ul(o,a,s,c,l),d&2048&&Ll(a.alternate,a);break;case 24:Ul(o,a,s,c,l),d&2048&&Rl(a.alternate,a);break;default:Ul(o,a,s,c,l)}kv=u,a=t}}function Wl(e,t,n){if(e.subtreeFlags&nC)for(e=e.child;e!==null;)Gl(e,t,n),e=e.sibling}function Gl(e,t,n){switch(e.tag){case 26:Wl(e,t,n),e.flags&nC&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&Vp(n,e)):Hp(n,eC,e.memoizedState,e.memoizedProps));break;case 5:Wl(e,t,n),e.flags&nC&&(e=e.stateNode,(t&335544128)===t&&Vp(n,e));break;case 3:case 4:var r=eC;eC=xp(e.stateNode.containerInfo),Wl(e,t,n),eC=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=nC,nC=16777216,Wl(e,t,n),nC=r):Wl(e,t,n));break;case 30:if((e.flags&nC)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,MS===null&&(MS=new Map),MS.set(r,i)}Wl(e,t,n);break;default:Wl(e,t,n)}}function Kl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ql(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=Pi();GS=r,Zl(r,e),(r.mode&Wv)!==V&&0<=H&&0<=U&&.05<U-H&&yr(r,H,U,`Unmount`),Fi(i)}Kl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Jl(e),e=e.sibling}function Jl(e){var t=Pi(),n=Ii(),r=Ri(),i=zi();switch(e.tag){case 0:case 11:case 15:ql(e),e.flags&2048&&Ec(e,e.return,Ax|Dx);break;case 3:var a=Ai();ql(e),e.stateNode.passiveEffectDuration+=ji(a);break;case 12:a=Ai(),ql(e),e.stateNode.passiveEffectDuration+=Mi(a);break;case 22:a=e.stateNode,e.memoizedState!==null&&a._visibility&Iv&&(e.return===null||e.return.tag!==13)?(a._visibility&=~Iv,Yl(e),(e.mode&Wv)!==V&&0<=H&&0<=U&&.05<U-H&&yr(e,H,U,`Disconnect`)):ql(e);break;default:ql(e)}(e.mode&Wv)!==V&&0<=H&&0<=U&&(Iy||.05<Py)&&Cr(e,H,U,Py,Fy),Fi(t),Li(n),Iy=i,Fy=r}function Yl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=Pi();GS=r,Zl(r,e),(r.mode&Wv)!==V&&0<=H&&0<=U&&.05<U-H&&yr(r,H,U,`Unmount`),Fi(i)}Kl(e)}for(e=e.child;e!==null;)Xl(e),e=e.sibling}function Xl(e){var t=Pi(),n=Ii(),r=Ri(),i=zi();switch(e.tag){case 0:case 11:case 15:Ec(e,e.return,Ax),Yl(e);break;case 22:var a=e.stateNode;a._visibility&Iv&&(a._visibility&=~Iv,Yl(e));break;default:Yl(e)}(e.mode&Wv)!==V&&0<=H&&0<=U&&(Iy||.05<Py)&&Cr(e,H,U,Py,Fy),Fi(t),Li(n),Iy=i,Fy=r}function Zl(e,t){for(;GS!==null;){var n=GS,r=n,i=t,a=Pi(),o=Ii(),s=Ri(),c=zi();switch(r.tag){case 0:case 11:case 15:Ec(r,i,Ax);break;case 23:case 22:r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool,i!=null&&wi(i));break;case 24:Ti(r.memoizedState.cache)}if((r.mode&Wv)!==V&&0<=H&&0<=U&&(Iy||.05<Py)&&Cr(r,H,U,Py,Fy),Fi(a),Li(o),Iy=c,Fy=s,r=n.child,r!==null)r.return=n,GS=r;else a:for(n=e;GS!==null;){if(r=GS,a=r.sibling,o=r.return,yl(r),r===n){GS=null;break a}if(a!==null){a.return=o,GS=a;break a}GS=o}}}function Ql(){aC.forEach(function(e){return e()})}function $l(){var e=typeof IS_REACT_ACT_ENVIRONMENT<`u`?IS_REACT_ACT_ENVIRONMENT:void 0;return e||L.actQueue===null||console.error(`The current testing environment is not configured to support act(...)`),e}function eu(e){if((_C&cC)!==sC&&J!==0)return J&-J;var t=L.T;return t===null?(e=ut(),e===Bh&&(Zb=null),e):(t._updatedFibers||=new Set,t._updatedFibers.add(e),Zb!==null&&ut()===Bh&&(Zb=null),ud())}function tu(){if(zC===0){if(!(J&536870912)||sy){var e=Rh;Rh<<=1,!(Rh&3932160)&&(Rh=262144),zC=e}else zC=536870912}return e=xx.current,e!==null&&(e.flags|=32),zC}function nu(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Pf(dr(e.memoizedProps,n))),_w===null&&(_w=[]),_w.push(t.bind(null,r))}}function ru(e,t,n){if(Aw&&console.error(`useInsertionEffect must not schedule updates.`),Tw&&(Ew=!0),(e===vC&&(kC===xC||kC===OC)||e.cancelPendingCommit!==null)&&(du(e,0),su(e,J,zC,!1)),tt(e,n),(_C&cC)!==sC&&e===vC){if(hh)switch(t.tag){case 0:case 11:case 15:e=q&&S(q)||`Unknown`,Pw.has(e)||(Pw.add(e),t=S(t)||`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",t,e,e));break;case 1:Nw||=(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),!0)}}else Nh&&st(e,t,n),ed(t),e===vC&&((_C&cC)===sC&&(LC|=n),FC===mC&&su(e,J,zC,!1)),td(e)}function iu(e,t,n){if((_C&(cC|lC))!==sC)throw Error(`Should not already be working.`);if(J!==0&&q!==null){var r=q,i=xh();switch(cb){case SC:case xC:var a=lb;Tv&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Suspended`,a,i,Ev,void 0,`primary-light`)):console.timeStamp(`Suspended`,a,i,Ev,void 0,`primary-light`));break;case OC:a=lb,Tv&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Action`,a,i,Ev,void 0,`primary-light`)):console.timeStamp(`Action`,a,i,Ev,void 0,`primary-light`));break;default:Tv&&(r=i-lb,3>r||console.timeStamp(`Blocked`,lb,i,Ev,void 0,5>r?`primary-light`:10>r?`primary`:100>r?`primary-dark`:`error`))}}a=(n=!n&&!(t&127)&&(t&e.expiredLanes)===0||Xe(e,t))?bu(e,t):vu(e,t,!0);var o=n;do{if(a===uC){MC&&!n&&su(e,t,0,!1),t=kC,lb=wy(),cb=t;break}if(r=xh(),i=e.current.alternate,o&&!ou(i)){E(t),i=Oy,a=r,!Tv||a<=i||(XC?XC.run(console.timeStamp.bind(console,`Teared Render`,i,a,Ov,Dv,`error`)):console.timeStamp(`Teared Render`,i,a,Ov,Dv,`error`)),uu(t,r),a=vu(e,t,!1),o=!1;continue}if(a===fC){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){E(t),Tr(Oy,r,t,XC),uu(t,r),t=s;a:{r=e,a=o,o=VC;var c=r.current.memoizedState.isDehydrated;if(c&&(du(r,s).flags|=256),s=vu(r,s,!1),s!==fC&&s!==hC){if(NC&&!c){r.errorRecoveryDisabledLanes|=a,LC|=a,a=mC;break a}r=HC,HC=o,r!==null&&(HC===null?HC=r:HC.push.apply(HC,r))}a=s}if(o=!1,a!==fC)continue;r=xh()}}if(a===dC){E(t),Tr(Oy,r,t,XC),uu(t,r),du(e,0),su(e,t,0,!0);break}a:{switch(n=e,a){case uC:case dC:throw Error(`Root did not complete. This is a bug in React.`);case mC:if((t&4194048)!==t&&(t&62914560)!==t)break;case hC:E(t),wr(Oy,r,t,XC),uu(t,r),i=t,i&127?Ky=r:i&4194048&&(rb=r),su(n,t,zC,!jC);break a;case fC:HC=null;break;case pC:case gC:break;default:throw Error(`Unknown root exit status.`)}if(L.actQueue!==null)Ou(n,i,t,HC,YC,UC,zC,LC,BC,jC,a,null,null,Oy,r);else{if((t&62914560)===t&&(o=WC+KC-xh(),10<o)){if(su(n,t,zC,!jC),Ye(n,0,!0)!==0)break a;dw=t,n.timeoutHandle=jT(au.bind(null,n,i,HC,YC,UC,t,zC,LC,BC,jC,a,`Throttled`,Oy,r),o);break a}au(n,i,HC,YC,UC,t,zC,LC,BC,jC,a,null,Oy,r)}}break}while(1);td(e)}function au(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=NT;var m=t.subtreeFlags,h=(a&335544064)===a,g=null;if((h||m&8192||(m&16785408)==16785408)&&(g={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:En},MS=null,Gl(t,a,g),h&&(m=g,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=Gp.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?WC-xh():(a&4194048)===a?GC-xh():0,m=Up(g,m),m!==null)){dw=a,e.cancelPendingCommit=m(Ou.bind(null,e,t,a,n,r,i,o,s,c,l,u,g,g.waitingForViewTransition?`Waiting for the previous Animation`:0<g.count?0<g.imgCount?`Suspended on CSS and Images`:`Suspended on CSS`:g.imgCount===1?`Suspended on an Image`:0<g.imgCount?`Suspended on Images`:null,f,p)),su(e,a,o,!l);return}Ou(e,t,a,n,r,i,o,s,c,l,u,g,d,f,p)}function ou(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!K_(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function su(e,t,n,r){t=Ze(e,t),t&=~RC,t&=~LC,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ph(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&rt(e,n,t)}function cu(){return(_C&(cC|lC))!==sC||(nd(0,!1),!1)}function lu(){if(q!==null){if(kC===yC)var e=q.return;else e=q,fi(),Ja(e),nx=null,rx=0,e=q;for(;e!==null;)yc(e.alternate,e),e=e.return;q=null}}function uu(e,t){e&127&&(Ly=t),e&4194048&&(qy=t),e&62914560&&(ib=t),e&2080374784&&(ab=t)}function du(e,t){Tv&&(console.timeStamp(`Blocking Track`,.003,.003,`Blocking`,Dv,`primary-light`),console.timeStamp(`Transition Track`,.003,.003,`Transition`,Dv,`primary-light`),console.timeStamp(`Suspense Track`,.003,.003,`Suspense`,Dv,`primary-light`),console.timeStamp(`Idle Track`,.003,.003,`Idle`,Dv,`primary-light`));var n=Oy;if(Oy=wy(),J!==0&&0<n){if(E(J),FC===pC||FC===mC)wr(n,Oy,t,XC);else{var r=Oy,i=XC;if(Tv&&!(r<=n)){var a=(t&738197653)===t?`tertiary-dark`:`primary-dark`,o=(t&536870912)===t?`Prewarm`:(t&201326741)===t?`Interrupted Hydration`:`Interrupted Render`;i?i.run(console.timeStamp.bind(console,o,n,r,Ov,Dv,a)):console.timeStamp(o,n,r,Ov,Dv,a)}}uu(J,Oy)}if(n=XC,XC=null,t&127){XC=zy,i=0<=Ry&&Ry<Ly?Ly:Ry,r=0<=Uy&&Uy<Ly?Ly:Uy,a=0<=r?r:0<=i?i:Oy,0<=Ky?(E(2),D(Ky,a,t,n)):ob&127&&(E(2),kr(Ly,a,sb)),n=i;var s=r,c=Wy,l=0<Gy,u=By===Ey,d=By===Dy;if(i=Oy,r=zy,a=Vy,o=Hy,Tv){if(Ov=`Blocking`,0<n?n>i&&(n=i):n=i,0<s?s>n&&(s=n):s=n,c!==null&&n>s){var f=l?`secondary-light`:`warning`;r?r.run(console.timeStamp.bind(console,l?`Consecutive`:`Event: `+c,s,n,Ov,Dv,f)):console.timeStamp(l?`Consecutive`:`Event: `+c,s,n,Ov,Dv,f)}i>n&&(s=u?`error`:(t&738197653)===t?`tertiary-light`:`primary-light`,u=d?`Promise Resolved`:u?`Cascading Update`:5<i-n?`Update Blocked`:`Update`,d=[],o!=null&&d.push([`Component name`,o]),a!=null&&d.push([`Method name`,a]),n={start:n,end:i,detail:{devtools:{properties:d,track:Ov,trackGroup:Dv,color:s}}},r?r.run(performance.measure.bind(performance,u,n)):performance.measure(u,n),performance.clearMeasures(u))}Ry=-1.1,By=0,Hy=Vy=null,Ky=-1.1,Gy=Uy,Uy=-1.1,Ly=wy()}return t&4194048&&(XC=Zy,i=0<=Jy&&Jy<qy?qy:Jy,n=0<=Yy&&Yy<qy?qy:Yy,r=0<=eb&&eb<qy?qy:eb,a=0<=r?r:0<=n?n:Oy,0<=rb?(E(256),D(rb,a,t,XC)):ob&4194048&&(E(256),kr(qy,a,sb)),d=r,s=tb,c=0<nb,l=Xy===Dy,a=Oy,r=Zy,o=Qy,u=$y,Tv&&(Ov=`Transition`,0<n?n>a&&(n=a):n=a,0<i?i>n&&(i=n):i=n,0<d?d>i&&(d=i):d=i,i>d&&s!==null&&(f=c?`secondary-light`:`warning`,r?r.run(console.timeStamp.bind(console,c?`Consecutive`:`Event: `+s,d,i,Ov,Dv,f)):console.timeStamp(c?`Consecutive`:`Event: `+s,d,i,Ov,Dv,f)),n>i&&(r?r.run(console.timeStamp.bind(console,`Action`,i,n,Ov,Dv,`primary-dark`)):console.timeStamp(`Action`,i,n,Ov,Dv,`primary-dark`)),a>n&&(i=l?`Promise Resolved`:5<a-n?`Update Blocked`:`Update`,d=[],u!=null&&d.push([`Component name`,u]),o!=null&&d.push([`Method name`,o]),n={start:n,end:a,detail:{devtools:{properties:d,track:Ov,trackGroup:Dv,color:`primary-light`}}},r?r.run(performance.measure.bind(performance,i,n)):performance.measure(i,n),performance.clearMeasures(i))),Yy=Jy=-1.1,Xy=0,rb=-1.1,nb=eb,eb=-1.1,qy=wy()),t&62914560&&ob&62914560&&(E(4194304),kr(ib,Oy,sb)),t&2080374784&&ob&2080374784&&(E(268435456),kr(ab,Oy,sb)),n=e.timeoutHandle,n!==NT&&(e.timeoutHandle=NT,MT(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),dw=0,lu(),vC=e,q=n=Vr(e.current,null),J=t,kC=yC,AC=null,jC=!1,MC=Xe(e,t),NC=!1,FC=uC,BC=zC=RC=LC=IC=0,HC=VC=null,UC=!1,PC=Ze(e,t),Ar(),e=pv(),1e3<e-dv&&(L.recentlyCreatedOwnerStacks=0,dv=e),vb.discardPendingWarnings(),n}function fu(e,t){G=null,L.H=Xx,L.getCurrentStack=null,hh=!1,mh=null,t===qb||t===Yb?(t=na(),kC=SC):t===Jb?(t=na(),kC=CC):kC=t===vS?DC:typeof t==`object`&&t&&typeof t.then==`function`?TC:bC,AC=t;var n=q;n===null?(FC=dC,Es(e,Yr(t,e.current))):n.mode&Wv&&Vi(n)}function pu(){var e=xx.current;return e===null?!0:(J&4194048)===J?Sx===null:(J&62914560)===J||J&536870912?e===Sx:!1}function mu(){var e=L.H;return L.H=Xx,e===null?Xx:e}function hu(){var e=L.A;return L.A=rC,e}function gu(e){XC===null&&(XC=e._debugTask==null?null:e._debugTask)}function _u(){FC=mC,jC||(J&4194048)!==J&&xx.current!==null||(MC=!0),!(IC&134217727)&&!(LC&134217727)||vC===null||su(vC,J,zC,!1)}function vu(e,t,n){var r=_C;_C|=cC;var i=mu(),a=hu();if(vC!==e||J!==t){if(Nh){var o=e.memoizedUpdaters;0<o.size&&(Qu(e,J),o.clear()),ct(e,t)}YC=null,du(e,t)}t=!1,o=FC;a:do try{if(kC!==yC&&q!==null){var s=q,c=AC;switch(kC){case DC:lu(),o=hC;break a;case SC:case xC:case OC:case TC:xx.current===null&&(t=!0);var l=kC;if(kC=yC,AC=null,Tu(e,s,c,l),n&&MC){o=uC;break a}break;default:l=kC,kC=yC,AC=null,Tu(e,s,c,l)}}yu(),o=FC;break}catch(t){fu(e,t)}while(1);return t&&e.shellSuspendCounter++,fi(),_C=r,L.H=i,L.A=a,q===null&&(vC=null,J=0,Ar()),o}function yu(){for(;q!==null;)Su(q)}function bu(e,t){var n=_C;_C|=cC;var r=mu(),i=hu();if(vC!==e||J!==t){if(Nh){var a=e.memoizedUpdaters;0<a.size&&(Qu(e,J),a.clear()),ct(e,t)}YC=null,qC=xh()+JC,du(e,t)}else MC=Xe(e,t);a:do try{if(kC!==yC&&q!==null)b:switch(t=q,a=AC,kC){case bC:kC=yC,AC=null,Tu(e,t,a,bC);break;case xC:case OC:if($i(a)){kC=yC,AC=null,Cu(t);break}t=function(){kC!==xC&&kC!==OC||vC!==e||(kC=EC),td(e)},a.then(t,t);break a;case SC:kC=EC;break a;case CC:kC=wC;break a;case EC:$i(a)?(kC=yC,AC=null,Cu(t)):(kC=yC,AC=null,Tu(e,t,a,EC));break;case wC:var o=null;switch(q.tag){case 26:o=q.memoizedState;case 5:case 27:var s=q;if(o?zp(o):s.stateNode.complete){kC=yC,AC=null;var c=s.sibling;if(c!==null)q=c;else{var l=s.return;l===null?q=null:(q=l,Eu(l))}break b}break;default:console.error(`Unexpected type of fiber triggered a suspensey commit. This is a bug in React.`)}kC=yC,AC=null,Tu(e,t,a,wC);break;case TC:kC=yC,AC=null,Tu(e,t,a,TC);break;case DC:lu(),FC=hC;break a;default:throw Error(`Unexpected SuspendedReason. This is a bug in React.`)}L.actQueue===null?xu():yu();break}catch(t){fu(e,t)}while(1);return fi(),L.H=r,L.A=i,_C=n,q===null?(vC=null,J=0,Ar(),FC):uC}function xu(){for(;q!==null&&!yh();)Su(q)}function Su(e){var t=e.alternate;(e.mode&Wv)===V?t=w(e,uc,t,e,PC):(Bi(e),t=w(e,uc,t,e,PC),Vi(e)),e.memoizedProps=e.pendingProps,t===null?Eu(e):q=t}function Cu(e){var t=w(e,wu,e);e.memoizedProps=e.pendingProps,t===null?Eu(e):q=t}function wu(e){var t=e.alternate,n=(e.mode&Wv)!==V;switch(n&&Bi(e),e.tag){case 15:case 0:t=Ws(t,e,e.pendingProps,e.type,void 0,J);break;case 11:t=Ws(t,e,e.pendingProps,e.type.render,e.ref,J);break;case 5:Ja(e);var r=e;r===ay&&(sy?(ci(r),r.tag===5&&r.stateNode!=null&&(oy=r.stateNode)):(ci(r),sy=!0));default:yc(t,e),e=q=Hr(e,PC),t=uc(t,e,PC)}return n&&Vi(e),t}function Tu(e,t,n,r){fi(),Ja(t),nx=null,rx=0;var i=t.return;try{if(js(e,i,t,n,J)){FC=dC,Es(e,Yr(n,e.current)),q=null;return}}catch(t){if(i!==null)throw q=i,t;FC=dC,Es(e,Yr(n,e.current)),q=null;return}t.flags&32768?(sy||r===bC?e=!0:MC||J&536870912?e=!1:(jC=e=!0,(r===xC||r===OC||r===SC||r===TC)&&(r=xx.current,r!==null&&r.tag===13&&(r.flags|=16384))),Du(t,e)):Eu(t)}function Eu(e){var t=e;do{if(t.flags&32768){Du(t,jC);return}var n=t.alternate;if(e=t.return,Bi(t),n=w(t,_c,n,t,PC),(t.mode&Wv)!==V&&j(t),n!==null){q=n;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);FC===uC&&(FC=gC)}function Du(e,t){do{var n=vc(e.alternate,e);if(n!==null){n.flags&=32767,q=n;return}if((e.mode&Wv)!==V){j(e),n=e.actualDuration;for(var r=e.child;r!==null;)n+=r.actualDuration,r=r.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){q=e;return}q=e=n}while(e!==null);FC=hC,q=null}function Ou(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){e.cancelPendingCommit=null;do zu();while(cw!==nw);if(vb.flushLegacyContextWarning(),vb.flushPendingUnsafeLifecycleWarnings(),(_C&(cC|lC))!==sC)throw Error(`Should not already be working.`);if(E(n),u===fC)Tr(p,m,n,XC);else if(r!==null){if(l=t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&!!(t.flags&256),a=XC,Tv&&!(m<=p)){u=[];for(var h=0;h<r.length;h++){var g=r[h].value;u.push([`Recoverable Error`,typeof g==`object`&&g&&typeof g.message==`string`?String(g.message):String(g)])}p={start:p,end:m,detail:{devtools:{color:`primary-dark`,track:Ov,trackGroup:Dv,tooltipText:l?`Hydration Failed`:`Recovered after Error`,properties:u}}},a?a.run(performance.measure.bind(performance,`Recovered`,p)):performance.measure(`Recovered`,p),performance.clearMeasures(`Recovered`)}}else a=XC,!Tv||m<=p||(l=(n&738197653)===n?`tertiary-dark`:`primary-dark`,u=(n&536870912)===n?`Prepared`:(n&201326741)===n?`Hydrated`:`Render`,a?a.run(console.timeStamp.bind(console,u,p,m,Ov,Dv,l)):console.timeStamp(u,p,m,Ov,Dv,l));if(t!==null){if(n===0&&console.error(`finishedLanes should not be empty during a commit. This is a bug in React.`),t===e.current)throw Error(`Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.`);e===vC&&(q=vC=null,J=0),uw=t,lw=e,dw=n,mw=i,hw=r,pw=m,yw=f,bw=QC,xw=null,ku(e,t,n,o,s,c,d,f,m)}}function ku(e,t,n,r,i,a,o,s,c){var l=t.lanes|t.childLanes;if(fw=l,l|=zv,nt(e,n,l,r,i,a),_w=null,(n&335544064)===n?(vw=Di(e),r=10262):(vw=null,r=10256),t.actualDuration!==0||(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,$u(Th,function(){return AT=window.event,bw===QC&&(bw=ew),Bu(),null})):(e.callbackNode=null,e.callbackPriority=0),jy=null,ky=wy(),s!==null&&Er(c,ky,s,XC),jS=!1,s=!!(t.flags&13878),t.subtreeFlags&13878||s){s=L.T,L.T=null,c=R.p,R.p=Bh,r=_C,_C|=lC;try{pl(e,t,n)}finally{_C=r,R.p=c,L.T=s}}cw=rw,jS?(ob|=n,sb=null,gw=Mf(o,e.containerInfo,vw,Pu,Fu,Nu,Iu,Bu,Au,ju,Mu.bind(null,n))):(Pu(),Fu(),Iu())}function Au(e){if(cw!==nw){var t=lw.onRecoverableError;t(e,Lu(null))}}function ju(e){Ay=wy(),Or(yw===null?pw:ky,Ay,jy,bw===$C,XC),yw=xw=e}function Mu(e){if((ob&e)!==0){var t=sb;ob&=~e,sb=null,e&4194048&&!(J&4194048)&&!(dw&4194048)&&(E(256),kr(qy,xh(),t)),e&62914560&&!(J&62914560)&&!(dw&62914560)&&(E(4194304),kr(ib,xh(),t)),e&2080374784&&!(J&2080374784)&&!(dw&2080374784)&&(E(268435456),kr(ab,xh(),t))}}function Nu(){cw===aw&&(cw=nw,jl(uw,lw),cw=ow)}function Pu(){if(cw===rw){cw=nw;var e=lw,t=uw,n=dw,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=L.T,L.T=null;var i=R.p;R.p=Bh;var a=_C;_C|=lC;try{KS=n,qS=e,YS=XS=!1,Ni(),Dl(t,e,n),qS=KS=null,n=ET;var o=ar(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&ir(s.ownerDocument.documentElement,s)){if(c!==null&&or(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=rr(s,h),v=rr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var ee=d[s];ee.element.scrollLeft=ee.left,ee.element.scrollTop=ee.top}}xE=!!TT,ET=TT=null}finally{_C=a,R.p=i,L.T=r}}e.current=t,cw=iw}}function Fu(){if(cw===iw){cw=nw;var e=xw;if(e!==null){ky=wy();var t=Ay,n=ky;!Tv||n<=t||(sb?sb.run(console.timeStamp.bind(console,e,t,n,Ov,Dv,`secondary-light`)):console.timeStamp(e,t,n,Ov,Dv,`secondary-light`))}e=lw,t=uw,n=dw;var r=!!(t.flags&8772);if(t.subtreeFlags&8772||r){r=L.T,L.T=null;var i=R.p;R.p=Bh;var a=_C;_C|=lC;try{KS=n,qS=e,Ni(),hl(e,t.alternate,t),qS=KS=null}finally{_C=a,R.p=i,L.T=r}}e=pw,t=yw,Ay=wy(),Or(t===null?e:ky,Ay,jy,bw===$C,XC),cw=aw}}function Iu(){if(cw===ow||cw===aw){if(cw===ow){var e=Ay;Ay=wy();var t=Ay,n=bw===$C;!Tv||t<=e||(sb?sb.run(console.timeStamp.bind(console,n?`Interrupted View Transition`:`Starting Animation`,e,t,Ov,Dv,n?`error`:`secondary-light`)):console.timeStamp(n?`Interrupted View Transition`:`Starting Animation`,e,t,Ov,Dv,n?` error`:`secondary-light`)),bw!==$C&&(bw=tw)}cw=nw,e=gw,gw=null,bh(),t=lw;var r=uw;n=dw;var i=hw,a=(n&335544064)===n?10262:10256;(a=r.actualDuration!==0||(r.subtreeFlags&a)!==0||(r.flags&a)!==0)?cw=sw:(cw=nw,uw=lw=null,Ru(t,t.pendingLanes),Ow=0,kw=null);var o=t.pendingLanes;if(o===0&&(ZC=null),a||Xu(t),o=lt(n),r=r.stateNode,jh&&typeof jh.onCommitFiberRoot==`function`)try{var s=(r.current.flags&128)==128;switch(o){case Bh:var c=Ch;break;case Vh:c=wh;break;case Hh:c=Th;break;case Uh:c=Dh;break;default:c=Th}jh.onCommitFiberRoot(Ah,r,c,s)}catch(e){Mh||(Mh=!0,console.error(`React instrumentation encountered an error: %o`,e))}if(Nh&&t.memoizedUpdaters.clear(),Ql(),i!==null){s=L.T,c=R.p,R.p=Bh,L.T=null;try{var l=t.onRecoverableError;for(r=0;r<i.length;r++){var u=i[r],d=Lu(u.stack);w(u.source,l,u.value,d)}}finally{L.T=s,R.p=c}}if(l=_w,u=vw,vw=null,l!==null&&(_w=null,u===null&&(u=[]),e!==null))for(d=0;d<l.length;d++)i=(0,l[d])(u),i!==void 0&&e.finished.finally(i);dw&3&&zu(),td(t),o=t.pendingLanes,n&261930&&o&42?(db=!0,t===ww?Cw++:(Cw=0,ww=t)):(Cw=0,ww=null),a||uu(n,Ay),nd(0,!1)}}function Lu(e){return e={componentStack:e},Object.defineProperty(e,"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.`)}}),e}function Ru(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ti(t)))}function zu(){return gw!==null&&(gw.skipTransition(),jw||(jw=!0,console.warn(`A flushSync update cancelled a View Transition because it was called while the View Transition was still preparing. To preserve the synchronous semantics, React had to skip the View Transition. If you can, try to avoid flushSync() in a scenario that's likely to interfere.`)),gw=null,bw=$C),Pu(),Fu(),Iu(),Bu()}function Bu(){if(cw!==sw)return!1;var e=lw,t=fw;fw=0;var n=lt(dw),r=Hh===0||Hh>n?Hh:n;n=L.T;var i=R.p;try{R.p=r,L.T=null;var a=mw;mw=null,r=lw;var o=dw;if(cw=nw,uw=lw=null,dw=0,(_C&(cC|lC))!==sC)throw Error(`Cannot flush passive effects while already rendering.`);E(o),Tw=!0,Ew=!1;var s=0;if(jy=null,s=xh(),bw===tw)kr(Ay,s,sb);else{var c=Ay,l=s,u=bw===ew;!Tv||l<=c||(XC?XC.run(console.timeStamp.bind(console,u?`Waiting for Paint`:`Waiting`,c,l,Ov,Dv,`secondary-light`)):console.timeStamp(u?`Waiting for Paint`:`Waiting`,c,l,Ov,Dv,`secondary-light`))}c=_C,_C|=lC;var d=r.current;Ni(),Jl(d);var f=r.current;d=pw,Ni(),Bl(r,f,o,a,d),Xu(r),_C=c;var p=xh();if(f=s,d=XC,jy===null?!Tv||p<=f||(d?d.run(console.timeStamp.bind(console,`Remaining Effects`,f,p,Ov,Dv,`secondary-dark`)):console.timeStamp(`Remaining Effects`,f,p,Ov,Dv,`secondary-dark`)):Dr(f,p,jy,!0,d),uu(o,p),nd(0,!1),Ew?r===kw?Ow++:(Ow=0,kw=r):Ow=0,Ew=Tw=!1,jh&&typeof jh.onPostCommitFiberRoot==`function`)try{jh.onPostCommitFiberRoot(Ah,r)}catch(e){Mh||(Mh=!0,console.error(`React instrumentation encountered an error: %o`,e))}var m=r.current.stateNode;return m.effectDuration=0,m.passiveEffectDuration=0,!0}finally{R.p=i,L.T=n,Ru(e,t)}}function Vu(e,t,n){t=Yr(n,t),Ui(t),t=Os(e.stateNode,t,2),e=xa(e,t,2),e!==null&&(tt(e,2),td(e))}function Hu(e,t,n){if(Aw=!1,e.tag===3)Vu(e,e,n);else{for(;t!==null;){if(t.tag===3){Vu(t,e,n);return}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ZC===null||!ZC.has(r))){e=Yr(n,e),Ui(e),n=ks(2),r=xa(t,n,2),r!==null&&(As(n,r,t,e),tt(r,2),td(r));return}}t=t.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.
|
|
160
|
-
|
|
161
|
-
Error message:
|
|
162
|
-
|
|
163
|
-
%s`,n)}}function Uu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new oC;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(NC=!0,i.add(n),r=Wu.bind(null,e,t,n),Nh&&Qu(e,n),t.then(r,r))}function Wu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,n&127?0>Ry&&(Ly=Ry=wy(),zy=Ty(`Promise Resolved`),By=Dy):n&4194048&&0>Yy&&(qy=Yy=wy(),Zy=Ty(`Promise Resolved`),Xy=Dy),$l()&&L.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
164
|
-
|
|
165
|
-
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
166
|
-
|
|
167
|
-
act(() => {
|
|
168
|
-
/* finish loading suspended data */
|
|
169
|
-
});
|
|
170
|
-
/* assert on the output */
|
|
171
|
-
|
|
172
|
-
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`),vC===e&&(J&n)===n&&((FC===mC||FC===pC&&(J&62914560)===J&&xh()-WC<KC)&&(_C&cC)===sC?du(e,0):RC|=n,BC===J&&(BC=0)),td(e)}function Gu(e,t){t===0&&(t=$e()),e=Nr(e,t),e!==null&&(tt(e,t),td(e))}function Ku(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Gu(e,n)}function qu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(`Pinged unknown suspense boundary type. This is probably a bug in React.`)}r!==null&&r.delete(t),Gu(e,n)}function Ju(e,t,n){if(t.subtreeFlags&134225920)for(t=t.child;t!==null;){var r=e,i=t,a=i.type===Nm;a=n||a,i.tag===22?i.memoizedState===null&&(a&&i.flags&134225920?w(i,Yu,r,i):i.subtreeFlags&134217728&&w(i,Ju,r,i,a)):i.flags&134217728?a&&w(i,Yu,r,i):Ju(r,i,a),t=t.sibling}}function Yu(e,t){Ke(!0);try{Nl(t,LS),Xl(t),Fl(e,t.alternate,t,LS),Hl(e,t,0,null,!1,0)}finally{Ke(!1)}}function Xu(e){var t=!0;e.current.mode&(Gv|Kv)||(t=!1),Ju(e,e.current,t)}function Zu(e){if((_C&cC)===sC){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=S(e)||`ReactComponent`,Mw!==null){if(Mw.has(t))return;Mw.add(t)}else Mw=new Set([t]);w(e,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 Qu(e,t){Nh&&e.memoizedUpdaters.forEach(function(n){st(e,n,t)})}function $u(e,t){var n=L.actQueue;return n===null?_h(e,t):(n.push(t),Fw)}function ed(e){$l()&&L.actQueue===null&&w(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
173
|
-
|
|
174
|
-
When testing, code that causes React state updates should be wrapped into act(...):
|
|
175
|
-
|
|
176
|
-
act(() => {
|
|
177
|
-
/* fire events that update state */
|
|
178
|
-
});
|
|
179
|
-
/* assert on the output */
|
|
180
|
-
|
|
181
|
-
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`,S(e))})}function td(e){e!==Lw&&e.next===null&&(Lw===null?Iw=Lw=e:Lw=Lw.next=e),Bw=!0,L.actQueue===null?Rw||(Rw=!0,ld()):zw||(zw=!0,ld())}function nd(e,t){if(!Vw&&Bw){Vw=!0;do for(var n=!1,r=Iw;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ph(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,sd(r,a))}else a=J,a=Ye(r,r===vC?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==NT),!(a&3)||Xe(r,a)||(n=!0,sd(r,a))}r=r.next}while(n);Vw=!1}}function rd(){AT=window.event,id()}function id(){Bw=zw=Rw=!1;var e=0;Hw!==0&&tf()&&(e=Hw);for(var t=xh(),n=null,r=Iw;r!==null;){var i=r.next,a=ad(r,t);a===0?(r.next=null,n===null?Iw=i:n.next=i,i===null&&(Lw=n)):(n=r,(e!==0||a&3)&&(Bw=!0)),r=i}cw!==nw&&cw!==sw||nd(e,!1),Hw!==0&&(Hw=0)}function ad(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ph(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Qe(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=vC,n=J,n=Ye(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==NT),r=e.callbackNode,n===0||e===t&&(kC===xC||kC===OC)||e.cancelPendingCommit!==null)return r!==null&&cd(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Xe(e,n)){if(t=n&-n,t!==e.callbackPriority||L.actQueue!==null&&r!==Uw)cd(r);else return t;switch(lt(n)){case Bh:case Vh:n=wh;break;case Hh:n=Th;break;case Uh:n=Dh;break;default:n=Th}return r=od.bind(null,e),L.actQueue===null?n=_h(n,r):(L.actQueue.push(r),n=Uw),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&cd(r),e.callbackPriority=2,e.callbackNode=null,2}function od(e,t){if(db=ub=!1,AT=window.event,cw!==nw&&cw!==sw)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(bw===QC&&(bw=ew),zu()&&e.callbackNode!==n)return null;var r=J;return r=Ye(e,e===vC?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==NT),r===0?null:(iu(e,r,t),ad(e,xh()),e.callbackNode!=null&&e.callbackNode===n?od.bind(null,e):null)}function sd(e,t){if(zu())return null;ub=db,db=!1,iu(e,t,!0)}function cd(e){e!==Uw&&e!==null&&vh(e)}function ld(){L.actQueue!==null&&L.actQueue.push(function(){return id(),null}),IT(function(){(_C&(cC|lC))===sC?id():_h(Ch,rd)})}function ud(){if(Hw===0){var e=mb;e===0&&(e=Lh,Lh<<=1,!(Lh&261888)&&(Lh=256)),Hw=e}return Hw}function dd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:(He(e,`action`),Tn(e))}function fd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=dd((i[Kh]||null).action),o=r.submitter;o&&(t=(t=o[Kh]||null)?dd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new c_(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Hw!==0){var e=new FormData(i,o),t={pending:!0,data:e,method:i.method,action:a};Object.freeze(t),ts(n,t,null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),t={pending:!0,data:e,method:i.method,action:a},Object.freeze(t),ts(n,t,a,e))},currentTarget:i}]})}}function pd(e,t,n){e.currentTarget=n;try{t(e)}catch(e){hv(e)}e.currentTarget=null}function md(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n];a:{var i=void 0,a=r.event;if(r=r.listeners,t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==i&&a.isPropagationStopped())break a;c===null?pd(a,s,l):w(c,pd,a,s,l),i=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==i&&a.isPropagationStopped())break a;c===null?pd(a,s,l):w(c,pd,a,s,l),i=c}}}}function hd(e,t){Gw.has(e)||console.error(`Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.`,e);var n=t[Jh];n===void 0&&(n=t[Jh]=new Set);var r=e+`__bubble`;n.has(r)||(vd(t,e,2,!1),n.add(r))}function gd(e,t,n){Gw.has(e)&&!t&&console.error(`Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.`,e);var r=0;t&&(r|=4),vd(n,e,r,t)}function _d(e){if(!e[Kw]){e[Kw]=!0,eg.forEach(function(t){t!==`selectionchange`&&(Gw.has(t)||gd(t,!1,e),gd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kw]||(t[Kw]=!0,gd(`selectionchange`,!1,t))}}function vd(e,t,n,r){switch(lm(t)){case Bh:var i=im;break;case Vh:i=am;break;default:i=om}n=i.bind(null,t,n,e),i=void 0,!n_||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function yd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=pt(s),o===null)return;if(c=o.tag,c===5||c===6||c===26||c===27){r=a=o;continue a}s=s.parentNode}}r=r.return}kn(function(){var r=a,i=Dn(n),o=[];a:{var s=cv.get(e);if(s!==void 0){var c=c_,l=e;switch(e){case`keypress`:if(Mn(n)===0)break a;case`keydown`:case`keyup`:c=T_;break;case`focusin`:l=`focus`,c=__;break;case`focusout`:l=`blur`,c=__;break;case`beforeblur`:case`afterblur`:c=__;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=h_;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=g_;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=O_;break;case tv:case nv:case rv:c=v_;break;case sv:c=k_;break;case`scroll`:case`scrollend`:c=u_;break;case`wheel`:c=A_;break;case`copy`:case`cut`:case`paste`:c=y_;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=E_;break;case`submit`:c=D_;break;case`toggle`:case`beforetoggle`:c=j_}var u=!!(t&4),d=!u&&(e===`scroll`||e===`scrollend`),f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){var h=p;if(m=h.stateNode,h=h.tag,h!==5&&h!==26&&h!==27||m===null||f===null||(h=An(p,f),h!=null&&u.push(bd(p,h,m))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,s=e===`mouseout`||e===`pointerout`,c&&n!==Zg&&(l=n.relatedTarget||n.fromElement)&&(pt(l)||l[qh]))break a;(s||c)&&(l=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,s?(c=n.relatedTarget||n.toElement,s=r,c=c?pt(c):null,c!==null&&(d=b(c),u=c.tag,c!==d||u!==5&&u!==27&&u!==6)&&(c=null)):(s=null,c=r),s!==c&&(u=h_,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=E_,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=s==null?l:ht(s),m=c==null?l:ht(c),l=new u(h,p+`leave`,s,n,i),l.target=d,l.relatedTarget=m,h=null,pt(i)===r&&(u=new u(f,p+`enter`,c,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,u=s&&c?he(s,c,Sd):null,s!==null&&Cd(o,l,s,u,!1),c!==null&&d!==null&&Cd(o,d,c,u,!0)))}a:{if(s=r?ht(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=qn;else if(Hn(s)){if(G_)g=$n;else{g=Zn;var _=Xn}}else c=s.nodeName,!c||c.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&yn(r.elementType)&&(g=qn):g=Qn;if(g&&=g(e,r)){Wn(o,g,n,i);break a}_&&_(e,s,r)}switch(_=r?ht(r):window,e){case`focusin`:(Hn(_)||_.contentEditable===`true`)&&(J_=_,Y_=r,X_=null);break;case`focusout`:X_=Y_=J_=null;break;case`mousedown`:Z_=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Z_=!1,sr(o,n,i);break;case`selectionchange`:if(q_)break;case`keydown`:case`keyup`:sr(o,n,i)}var v;if(P_)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else V_?Rn(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===N_&&(y=`onCompositionStart`);y&&(L_&&n.locale!==`ko`&&(V_||y!==`onCompositionStart`?y===`onCompositionEnd`&&V_&&(v=jn()):(i_=i,a_=`value`in i_?i_.value:i_.textContent,V_=!0)),_=xd(r,y),0<_.length&&(y=new b_(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=zn(n),v!==null&&(y.data=v)))),(v=I_?Bn(e,n):Vn(e,n))&&(y=xd(r,`onBeforeInput`),0<y.length&&(_=new x_(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:_,listeners:y}),_.data=v)),fd(o,e,r,n,i)}md(o,t)})}function bd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function xd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=An(e,n),i!=null&&r.unshift(bd(e,i,a)),i=An(e,t),i!=null&&r.push(bd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Sd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Cd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=An(n,a),l!=null&&o.unshift(bd(n,l,c))):i||(l=An(n,a),l!=null&&o.push(bd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}function wd(e,t){Sn(e,t),e!==`input`&&e!==`textarea`&&e!==`select`||t==null||t.value!==null||Wg||(Wg=!0,e===`select`&&t.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.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:tg,possibleRegistrationNames:ng};yn(e)||typeof t.is==`string`||wn(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&t.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 Td(e,t,n,r){t!==n&&(n=jd(n),jd(t)!==n&&(r[e]=t))}function Ed(e){return!!(e.getAttribute(`vt-share`)||e.getAttribute(`vt-exit`)||e.getAttribute(`vt-enter`)||e.getAttribute(`vt-update`))}function Dd(e){if(!Ed(e))return!1;var t=e.getAttribute(`vt-name`);return e=e.style[`view-transition-name`],t?t===e:e.startsWith(`_T_`)}function Od(e,t,n){t.forEach(function(t){t===`style`?e.getAttribute(t)!==``&&(t=e.style,(t.length===1&&t[0]===`view-transition-name`||t.length===2&&t[0]===`view-transition-class`&&t[1]===`view-transition-name`)&&Dd(e)||(n.style=Rd(e))):n[Ld(t)]=e.getAttribute(t)})}function kd(e,t){!1===t?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.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function Ad(e,t){return e=e.namespaceURI===Ig||e.namespaceURI===Lg?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function jd(e){return Be(e)&&(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.`,ze(e)),Ve(e)),(typeof e==`string`?e:``+e).replace(tT,`
|
|
182
|
-
`).replace(nT,``)}function Md(e,t){return t=jd(t),jd(e)===t}function Nd(e,t,n,r,i,a){switch(n){case`children`:if(typeof r==`string`)mn(r,t,!1),t===`body`||t===`textarea`&&r===``||hn(e,r);else if(typeof r==`number`||typeof r==`bigint`)mn(``+r,t,!1),t!==`body`&&hn(e,``+r);else return;break;case`className`:Et(e,`class`,r);break;case`tabIndex`:Et(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Et(e,n,r);break;case`style`:vn(e,r,a);return;case`data`:if(t!==`object`){Et(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){console.error(n===`src`?`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.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,n,n),e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}He(r,n),r=Tn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(r!=null&&(t===`form`?n===`formAction`?console.error(`You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>.`):typeof r==`function`&&(i.encType==null&&i.method==null||Qw||(Qw=!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.`)),i.target==null||Zw||(Zw=!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.`))):t===`input`||t===`button`?n===`action`?console.error(`You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>.`):t!==`input`||i.type===`submit`||i.type===`image`||Yw?t!==`button`||i.type==null||i.type===`submit`||Yw?typeof r==`function`&&(i.name==null||Xw||(Xw=!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.`)),i.formEncType==null&&i.formMethod==null||Qw||(Qw=!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.`)),i.formTarget==null||Zw||(Zw=!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.`))):(Yw=!0,console.error(`A button can only specify a formAction along with type="submit" or no type.`)):(Yw=!0,console.error(`An input can only specify a formAction along with type="submit" or type="image".`)):console.error(n===`action`?`You can only pass the action prop to <form>.`:`You can only pass the formAction prop to <input> or <button>.`)),typeof r==`function`){e.setAttribute(n,`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}if(typeof a==`function`&&(n===`formAction`?(t!==`input`&&Nd(e,t,`name`,i.name,i,null),Nd(e,t,`formEncType`,i.formEncType,i,null),Nd(e,t,`formMethod`,i.formMethod,i,null),Nd(e,t,`formTarget`,i.formTarget,i,null)):(Nd(e,t,`encType`,i.encType,i,null),Nd(e,t,`method`,i.method,i,null),Nd(e,t,`target`,i.target,i,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}He(r,n),r=Tn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(typeof r!=`function`&&kd(n,r),e.onclick=En);return;case`onScroll`:r!=null&&(typeof r!=`function`&&kd(n,r),hd(`scroll`,e));return;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&kd(n,r),hd(`scrollend`,e));return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");a?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}He(r,n),n=Tn(r),e.setAttributeNS(rT,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(He(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`inert`:r!==``||eT[n]||(eT[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`: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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(He(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?(He(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):(He(r,n),e.setAttribute(n,r));break;case`popover`:hd(`beforetoggle`,e),hd(`toggle`,e),Tt(e,`popover`,r);break;case`xlinkActuate`:Dt(e,rT,`xlink:actuate`,r);break;case`xlinkArcrole`:Dt(e,rT,`xlink:arcrole`,r);break;case`xlinkRole`:Dt(e,rT,`xlink:role`,r);break;case`xlinkShow`:Dt(e,rT,`xlink:show`,r);break;case`xlinkTitle`:Dt(e,rT,`xlink:title`,r);break;case`xlinkType`:Dt(e,rT,`xlink:type`,r);break;case`xmlBase`:Dt(e,iT,`xml:base`,r);break;case`xmlLang`:Dt(e,iT,`xml:lang`,r);break;case`xmlSpace`:Dt(e,iT,`xml:space`,r);break;case`is`:a!=null&&console.error(`Cannot update the "is" prop after it has been initialized.`),Tt(e,`is`,r);break;case`innerText`:case`textContent`:return;case`popoverTarget`:$w||typeof r!=`object`||!r||($w=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",r));default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=bn(n),Tt(e,n,r);else{tg.hasOwnProperty(n)&&r!=null&&typeof r!=`function`&&kd(n,r);return}}sg=!0}function Pd(e,t,n,r,i,a){switch(n){case`style`:vn(e,r,a);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");a?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)hn(e,r);else if(typeof r==`number`||typeof r==`bigint`)hn(e,``+r);else return;break;case`onScroll`:r!=null&&(typeof r!=`function`&&kd(n,r),hd(`scroll`,e));return;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&kd(n,r),hd(`scrollend`,e));return;case`onClick`:r!=null&&(typeof r!=`function`&&kd(n,r),e.onclick=En);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(tg.hasOwnProperty(n))r!=null&&typeof r!=`function`&&kd(n,r);else a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),a=n.slice(2,i?n.length-7:void 0),t=e[Kh]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(a,t,i),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(a,r,i);break a}sg=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Tt(e,n,r)}return}sg=!0}function Fd(e,t,n){switch(wd(t,n),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:hd(`error`,e),hd(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Nd(e,t,a,o,n,null)}}i&&Nd(e,t,`srcSet`,n.srcSet,n,null),r&&Nd(e,t,`src`,n.src,n,null);return;case`input`:xt(`input`,n),hd(`invalid`,e);var s=a=o=i=null,c=null,l=null;for(r in n)if(n.hasOwnProperty(r)){var u=n[r];if(u!=null)switch(r){case`name`:i=u;break;case`type`:o=u;break;case`checked`:c=u;break;case`defaultChecked`:l=u;break;case`value`:a=u;break;case`defaultValue`:s=u;break;case`children`:case`dangerouslySetInnerHTML`:if(u!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Nd(e,t,r,u,n,null)}}Pt(e,n),It(e,a,s,c,l,o,i,!1);return;case`select`:for(i in xt(`select`,n),hd(`invalid`,e),r=o=a=null,n)if(n.hasOwnProperty(i)&&(s=n[i],s!=null))switch(i){case`value`:a=s;break;case`defaultValue`:o=s;break;case`multiple`:r=s;default:Nd(e,t,i,s,n,null)}Vt(e,n),t=a,n=o,e.multiple=!!r,t==null?n!=null&&Bt(e,!!r,n,!0):Bt(e,!!r,t,!1);return;case`textarea`:for(o in xt(`textarea`,n),hd(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(o)&&(s=n[o],s!=null))switch(o){case`value`:r=s;break;case`defaultValue`:i=s;break;case`children`:a=s;break;case`dangerouslySetInnerHTML`:if(s!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Nd(e,t,o,s,n,null)}Ht(e,n),Wt(e,r,i,a);return;case`option`:for(c in Rt(e,n),n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Nd(e,t,c,r,n,null)}return;case`dialog`:hd(`beforetoggle`,e),hd(`toggle`,e),hd(`cancel`,e),hd(`close`,e);break;case`iframe`:case`object`:hd(`load`,e);break;case`video`:case`audio`:for(r=0;r<Ww.length;r++)hd(Ww[r],e);break;case`image`:hd(`error`,e),hd(`load`,e);break;case`details`:hd(`toggle`,e);break;case`embed`:case`source`:case`link`:hd(`error`,e),hd(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Nd(e,t,l,r,n,null)}return;default:if(yn(t)){for(u in n)n.hasOwnProperty(u)&&(r=n[u],r!==void 0&&Pd(e,t,u,r,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(r=n[s],r!=null&&Nd(e,t,s,r,n,null))}function Id(e,t,n,r){switch(wd(t,r),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,o=null,s=null,c=null,l=null,u=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&d!=null)switch(p){case`checked`:break;case`value`:break;case`defaultValue`:c=d;default:r.hasOwnProperty(p)||Nd(e,t,p,null,r,d)}}for(var f in r){var p=r[f];if(d=n[f],r.hasOwnProperty(f)&&(p!=null||d!=null))switch(f){case`type`:p!==d&&(sg=!0),a=p;break;case`name`:p!==d&&(sg=!0),i=p;break;case`checked`:p!==d&&(sg=!0),l=p;break;case`defaultChecked`:p!==d&&(sg=!0),u=p;break;case`value`:p!==d&&(sg=!0),o=p;break;case`defaultValue`:p!==d&&(sg=!0),s=p;break;case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:p!==d&&Nd(e,t,f,p,r,d)}}t=n.type===`checkbox`||n.type===`radio`?n.checked!=null:n.value!=null,r=r.type===`checkbox`||r.type===`radio`?r.checked!=null:r.value!=null,t||!r||Jw||(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`),Jw=!0),!t||r||qw||(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`),qw=!0),Ft(e,o,s,c,l,u,a,i);return;case`select`:for(a in p=o=s=f=null,n)if(c=n[a],n.hasOwnProperty(a)&&c!=null)switch(a){case`value`:break;case`multiple`:p=c;default:r.hasOwnProperty(a)||Nd(e,t,a,null,r,c)}for(i in r)if(a=r[i],c=n[i],r.hasOwnProperty(i)&&(a!=null||c!=null))switch(i){case`value`:a!==c&&(sg=!0),f=a;break;case`defaultValue`:a!==c&&(sg=!0),s=a;break;case`multiple`:a!==c&&(sg=!0),o=a;default:a!==c&&Nd(e,t,i,a,r,c)}r=s,t=o,n=p,f==null?!!n!=!!t&&(r==null?Bt(e,!!t,t?[]:``,!1):Bt(e,!!t,r,!0)):Bt(e,!!t,f,!1);return;case`textarea`:for(s in p=f=null,n)if(i=n[s],n.hasOwnProperty(s)&&i!=null&&!r.hasOwnProperty(s))switch(s){case`value`:break;case`children`:break;default:Nd(e,t,s,null,r,i)}for(o in r)if(i=r[o],a=n[o],r.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case`value`:i!==a&&(sg=!0),f=i;break;case`defaultValue`:i!==a&&(sg=!0),p=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:i!==a&&Nd(e,t,o,i,r,a)}Ut(e,f,p);return;case`option`:for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&f!=null&&!r.hasOwnProperty(m))switch(m){case`selected`:e.selected=!1;break;default:Nd(e,t,m,null,r,f)}for(c in r)if(f=r[c],p=n[c],r.hasOwnProperty(c)&&f!==p&&(f!=null||p!=null))switch(c){case`selected`:f!==p&&(sg=!0),e.selected=f&&typeof f!=`function`&&typeof f!=`symbol`;break;default:Nd(e,t,c,f,r,p)}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 h in n)f=n[h],n.hasOwnProperty(h)&&f!=null&&!r.hasOwnProperty(h)&&Nd(e,t,h,null,r,f);for(l in r)if(f=r[l],p=n[l],r.hasOwnProperty(l)&&f!==p&&(f!=null||p!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:if(f!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Nd(e,t,l,f,r,p)}return;default:if(yn(t)){for(var g in n)f=n[g],n.hasOwnProperty(g)&&f!==void 0&&!r.hasOwnProperty(g)&&Pd(e,t,g,void 0,r,f);for(u in r)f=r[u],p=n[u],!r.hasOwnProperty(u)||f===p||f===void 0&&p===void 0||Pd(e,t,u,f,r,p);return}}for(var _ in n)f=n[_],n.hasOwnProperty(_)&&f!=null&&!r.hasOwnProperty(_)&&Nd(e,t,_,null,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||f==null&&p==null||Nd(e,t,d,f,r,p)}function Ld(e){switch(e){case`class`:return`className`;case`for`:return`htmlFor`;default:return e}}function Rd(e){for(var t={},n=e.style,r=0;r<n.length;r++){var i=n[r];i===`view-transition-name`&&Dd(e)||(t[i]=n.getPropertyValue(i))}return t}function zd(e,t,n){if(t!=null&&typeof t!=`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 r,i=r=``,a;for(a in t)if(t.hasOwnProperty(a)){var o=t[a];o!=null&&typeof o!=`boolean`&&o!==``&&(a.indexOf(`--`)===0?(Ue(o,a),r+=i+a+`:`+(``+o).trim()):typeof o!=`number`||o===0||Fg.has(a)?(Ue(o,a),r+=i+a.replace(Tg,`-$1`).toLowerCase().replace(Eg,`-ms-`)+`:`+(``+o).trim()):r+=i+a.replace(Tg,`-$1`).toLowerCase().replace(Eg,`-ms-`)+`:`+o+`px`,i=`;`)}r||=null,t=e.getAttribute(`style`),t!==r&&(r=jd(r),t=jd(t),t===r||t[t.length-1]===`;`&&Ed(e)||(n.style=Rd(e)))}}function Bd(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(He(r,t),e===``+r)return}Td(t,e,r,a)}function Vd(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null){switch(typeof r){case`function`:case`symbol`:return}if(!r)return}else switch(typeof r){case`function`:case`symbol`:break;default:if(r)return}Td(t,e,r,a)}function Hd(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:break;default:if(He(r,n),e===``+r)return}Td(t,e,r,a)}function Ud(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return;default:if(isNaN(r))return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(!isNaN(r)&&(He(r,t),e===``+r))return}Td(t,e,r,a)}function Wd(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(He(r,t),n=Tn(``+r),e===n)return}Td(t,e,r,a)}function Gd(e,t,n,r){for(var i={},a=new Set,o=e.attributes,s=0;s<o.length;s++)switch(o[s].name.toLowerCase()){case`value`:break;case`checked`:break;case`selected`:break;case`vt-name`:case`vt-update`:case`vt-enter`:case`vt-exit`:case`vt-share`:case`vt-parent-enter`:case`vt-parent-exit`:break;default:a.add(o[s].name)}if(yn(t)){for(var c in n)if(n.hasOwnProperty(c)){var l=n[c];if(l!=null){if(tg.hasOwnProperty(c))typeof l!=`function`&&kd(c,l);else if(!0!==n.suppressHydrationWarning)switch(c){case`children`:typeof l!=`string`&&typeof l!=`number`||Td(`children`,e.textContent,l,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,l=l?l.__html:void 0,l!=null&&(l=Ad(e,l),Td(c,o,l,i));continue;case`style`:a.delete(c),zd(e,l,i);continue;case`offsetParent`:case`offsetTop`:case`offsetLeft`:case`offsetWidth`:case`offsetHeight`:case`isContentEditable`:case`outerText`:case`outerHTML`:a.delete(c.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",c);continue;case`className`:a.delete(`class`),o=wt(e,`class`,l),Td(`className`,o,l,i);continue;default:r.context===ST&&t!==`svg`&&t!==`math`?a.delete(c.toLowerCase()):a.delete(c),o=wt(e,c,l),Td(c,o,l,i)}}}}else for(l in n)if(n.hasOwnProperty(l)&&(c=n[l],c!=null)){if(tg.hasOwnProperty(l))typeof c!=`function`&&kd(l,c);else if(!0!==n.suppressHydrationWarning)switch(l){case`children`:typeof c!=`string`&&typeof c!=`number`||Td(`children`,e.textContent,c,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`value`:case`checked`:case`selected`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,c=c?c.__html:void 0,c!=null&&(c=Ad(e,c),o!==c&&(i[l]={__html:o}));continue;case`className`:Bd(e,l,`class`,c,a,i);continue;case`tabIndex`:Bd(e,l,`tabindex`,c,a,i);continue;case`style`:a.delete(l),zd(e,c,i);continue;case`multiple`:a.delete(l),Td(l,e.multiple,c,i);continue;case`muted`:a.delete(l),Td(l,e.muted,c,i);continue;case`autoFocus`:a.delete(`autofocus`),Td(l,e.autofocus,c,i);continue;case`data`:if(t!==`object`){a.delete(l),o=e.getAttribute(`data`),Td(l,o,c,i);continue}case`src`:case`href`:if(!(c!==``||t===`a`&&l===`href`||t===`object`&&l===`data`)){console.error(l===`src`?`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.`:`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.`,l,l);continue}Wd(e,l,l,c,a,i);continue;case`action`:case`formAction`:if(o=e.getAttribute(l),typeof c==`function`){a.delete(l.toLowerCase()),l===`formAction`?(a.delete(`name`),a.delete(`formenctype`),a.delete(`formmethod`),a.delete(`formtarget`)):(a.delete(`enctype`),a.delete(`method`),a.delete(`target`));continue}if(o===oT){a.delete(l.toLowerCase()),Td(l,`function`,c,i);continue}Wd(e,l,l.toLowerCase(),c,a,i);continue;case`xlinkHref`:Wd(e,l,`xlink:href`,c,a,i);continue;case`contentEditable`:Hd(e,l,`contenteditable`,c,a,i);continue;case`spellCheck`:Hd(e,l,`spellcheck`,c,a,i);continue;case`draggable`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:Hd(e,l,l,c,a,i);continue;case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`: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`:Vd(e,l,l.toLowerCase(),c,a,i);continue;case`capture`:case`download`:a:{s=e;var u=o=l,d=i;if(a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:break a;default:if(!1===c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:break;case`boolean`:if(!0===c&&s===``)break a;break;default:if(He(c,o),s===``+c)break a}Td(o,s,c,d)}continue;case`cols`:case`rows`:case`size`:case`span`:a:{if(s=e,u=o=l,d=i,a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:case`boolean`:break a;default:if(isNaN(c)||1>c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:case`boolean`:break;default:if(!(isNaN(c)||1>c)&&(He(c,o),s===``+c))break a}Td(o,s,c,d)}continue;case`rowSpan`:Ud(e,l,`rowspan`,c,a,i);continue;case`start`:Ud(e,l,l,c,a,i);continue;case`xHeight`:Bd(e,l,`x-height`,c,a,i);continue;case`xlinkActuate`:Bd(e,l,`xlink:actuate`,c,a,i);continue;case`xlinkArcrole`:Bd(e,l,`xlink:arcrole`,c,a,i);continue;case`xlinkRole`:Bd(e,l,`xlink:role`,c,a,i);continue;case`xlinkShow`:Bd(e,l,`xlink:show`,c,a,i);continue;case`xlinkTitle`:Bd(e,l,`xlink:title`,c,a,i);continue;case`xlinkType`:Bd(e,l,`xlink:type`,c,a,i);continue;case`xmlBase`:Bd(e,l,`xml:base`,c,a,i);continue;case`xmlLang`:Bd(e,l,`xml:lang`,c,a,i);continue;case`xmlSpace`:Bd(e,l,`xml:space`,c,a,i);continue;case`inert`:c!==``||eT[l]||(eT[l]=!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.",l)),Vd(e,l,l,c,a,i);continue;default:if(!(2<l.length)||l[0]!==`o`&&l[0]!==`O`||l[1]!==`n`&&l[1]!==`N`){s=bn(l),o=!1,r.context===ST&&t!==`svg`&&t!==`math`?a.delete(s.toLowerCase()):(u=l.toLowerCase(),u=zg.hasOwnProperty(u)&&zg[u]||null,u!==null&&u!==l&&(o=!0,a.delete(u)),a.delete(s));a:if(u=e,d=s,s=c,St(d)){if(u.hasAttribute(d))u=d.toLowerCase()===`nonce`?u.nonce:u.getAttribute(d),He(s,d),s=u===``+s?s:u;else{switch(typeof s){case`function`:case`symbol`:break a;case`boolean`:if(u=d.toLowerCase().slice(0,5),u!==`data-`&&u!==`aria-`)break a}s=s===void 0?void 0:null}}else s=void 0;o||Td(l,s,c,i)}}}return 0<a.size&&!0!==n.suppressHydrationWarning&&Od(e,a,i),Object.keys(i).length===0?null:i}function Kd(e,t){switch(e.length){case 0:return``;case 1:return e[0];case 2:return e[0]+` `+t+` `+e[1];default:return e.slice(0,-1).join(`, `)+`, `+t+` `+e[e.length-1]}}function qd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Jd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&qd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&qd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}function Yd(e){return e.nodeType===9?e:e.ownerDocument}function Xd(e){switch(e){case Lg:return CT;case Ig:return wT;default:return ST}}function Zd(e,t){if(e===ST)switch(t){case`svg`:return CT;case`math`:return wT;default:return ST}return e===CT&&t===`foreignObject`?ST:e}function Qd(e,t,n,r){return n=Yd(n).createElement(e),n[Gh]=r,n[Kh]=t,Fd(n,e,t),_t(n),n}function $d(e){if(e=e.type,typeof e!=`string`||e===``||(e=e.toLowerCase(),e===`module`||e===`importmap`||e===`speculationrules`))return!1;switch(e){case`application/ecmascript`:case`application/javascript`:case`application/x-ecmascript`:case`application/x-javascript`:case`text/ecmascript`:case`text/javascript`:case`text/javascript1.0`:case`text/javascript1.1`:case`text/javascript1.2`:case`text/javascript1.3`:case`text/javascript1.4`:case`text/javascript1.5`:case`text/jscript`:case`text/livescript`:case`text/x-ecmascript`:case`text/x-javascript`:return!1}return!0}function ef(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function tf(){var e=window.event;return e&&e.type===`popstate`?e!==kT&&(kT=e,!0):(kT=null,!1)}function nf(){var e=window.event;return e&&e!==AT?e.type:null}function rf(){var e=window.event;return e&&e!==AT?e.timeStamp:-1.1}function af(e){setTimeout(function(){throw e})}function of(e,t,n){switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&e.focus();break;case`img`:n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function sf(){}function cf(e,t,n,r){Id(e,t,n,r),e[Kh]=r}function lf(e){hn(e,``)}function uf(e,t,n){e.nodeValue=n}function df(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Kh]||null;if(t!==null){var n=mt(e);n!==null&&(typeof t.children==`string`||typeof t.children==`number`?(e.__reactWarnedAboutChildrenConflict=!0,w(n,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.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,w(n,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 ff(e){return e===`head`}function pf(e,t){e.removeChild(t)}function mf(e,t){(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e).removeChild(t)}function hf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===dT||n===lT){if(r===0){e.removeChild(i),ym(t);return}r--}else if(n===uT||n===fT||n===pT||n===mT||n===cT)r++;else if(n===hT)bp(e.ownerDocument.documentElement);else if(n===_T){n=e.ownerDocument.head,bp(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Qh]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===gT&&bp(e.ownerDocument.body)}n=i}while(n);ym(t)}function gf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===dT){if(e===0)break;e--}else n!==uT&&n!==fT&&n!==pT&&n!==mT||e++}n=r}while(n)}function _f(e){gf(e,!0)}function vf(e){e=e.style,typeof e.setProperty==`function`?e.setProperty(`display`,`none`,`important`):e.display=`none`}function yf(e){e.nodeValue=``}function bf(e){gf(e,!1)}function xf(e,t){t=t[xT],t=t!=null&&t.hasOwnProperty(`display`)?t.display:null,e.style.display=t==null||typeof t==`boolean`?``:(``+t).trim()}function Sf(e,t){e.nodeValue=t}function Cf(e){for(var t=e.firstChild;t!=null;){if(t.nodeType===1&&getComputedStyle(t).display===`block`){w(mt(t)||mt(e),function(e,t){console.error(`You're about to start a <ViewTransition> around a display: inline element <%s>, which itself has a display: block element <%s> inside it. This might trigger a bug in Safari which causes the View Transition to be skipped with a duplicate name error.
|
|
183
|
-
https://bugs.webkit.org/show_bug.cgi?id=290923`,e.toLocaleLowerCase(),t.toLocaleLowerCase())},e.tagName,t.tagName);break}if(t.firstChild!=null)t=t.firstChild;else{if(t===e)break;for(;t.nextSibling==null&&t.parentNode!=null&&t.parentNode!==e;)t=t.parentNode;t=t.nextSibling}}}function wf(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1?(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom):Cf(e)}}function Tf(e,t){e=e.style,t=t[xT];var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Ef(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Df(e){return Ef(e.getBoundingClientRect(),getComputedStyle(e),e)}function Of(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Ef(t,n,e)}function kf(e,t){if(typeof e==`object`&&e)switch(e.name){case`TimeoutError`:return Error(`A ViewTransition timed out because a Navigation stalled. This can happen if a Navigation is blocked on React itself. Such as if it's resolved inside useEffect. This can be solved by moving the resolution to useLayoutEffect.`,{cause:e});case`AbortError`:return t?null:Error(`A ViewTransition was aborted early. This might be because you have other View Transition libraries on the page and only one can run at a time. To avoid this, use only React's built-in <ViewTransition> to coordinate.`,{cause:e});case`InvalidStateError`:if(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)return null}return e}function Af(e){return e.documentElement.clientHeight}function jf(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Mf(e,t,n,r,i,a,o,s,c,l,u){var d=t.nodeType===9?t:t.ownerDocument;try{var f=d.startViewTransition({update:function(){var t=d.defaultView,n=t.navigation&&t.navigation.transition,o=d.fonts.status;r();var s=[];if(o===`loaded`&&(Af(d),d.fonts.status===`loading`&&s.push(d.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,f=0;f<c.length;f++){var p=c[f];if(!p.complete){var m=p.getBoundingClientRect();if(0<m.bottom&&0<m.right&&m.top<t.innerHeight&&m.left<t.innerWidth){if(u+=Bp(p),u>eE){s.length=o;break}p=new Promise(jf.bind(p)),s.push(p)}}}if(0<s.length)return l(0<o?s.length>o?`Waiting on Fonts and Images`:`Waiting on Fonts`:`Waiting on Images`),t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,LT)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});d.__reactViewTransition=f;var p=[];return f.ready.then(function(){for(var e=d.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){p.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var l=n[c],u=l.width;if(i===void 0)i=u;else if(i!==u){s=!1;break}if(u=l.height,a===void 0)a=u;else if(a!==u){s=!1;break}delete l.width,delete l.height,l.transform===`none`&&delete l.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){d.__reactViewTransition===f&&(d.__reactViewTransition=null);try{e=kf(e,!1),e!==null&&c(e)}finally{r(),i(),o(),u()}}),f.finished.finally(function(){for(var e=0;e<p.length;e++)p[e].cancel();d.__reactViewTransition===f&&(d.__reactViewTransition=null),u(),s()}),f}catch{return r(),i(),u(),o(),null}}function Nf(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}function Pf(e){return{name:e,group:new Nf(`group`,e),imagePair:new Nf(`image-pair`,e),old:new Nf(`old`,e),new:new Nf(`new`,e)}}function Ff(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}function If(e,t,n,r){return de(e).addEventListener(t,n,r),!1}function Lf(e,t,n,r){return de(e).removeEventListener(t,n,r),!1}function Rf(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function zf(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Bf(e,t,n,r){if(e.length===0)return-1;r=zf(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&zf(a.optionsOrUseCapture)===r)return i}return-1}function Vf(e,t){return e.tag!==6&&(e=de(e),hp(e,t))}function Hf(e,t){return t.push(e),!1}function Uf(e,t){return e.tag!==6&&(e=de(e),e===t||e.contains(t)?(t.blur(),!0):!1)}function Wf(e,t){return e.tag!==6&&(e=de(e),t.observe(e),!1)}function Gf(e,t){return e.tag!==6&&(e=de(e),t.unobserve(e),!1)}function Kf(e,t,n){RT.push({fragmentInstance:e,observer:t,instance:n}),zT||(zT=!0,gp(function(){zT=!1;var e=RT;RT=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}function qf(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=de(e),t.push.apply(t,e.getClientRects());return!1}function Jf(e,t,n,r,i){var a=pt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=se(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=he(n,a,me),t===null?t=!1:(x(t,!0,fe,a,n),a=Dm,Dm=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=he(r,a,me),t===null?t=!1:(x(t,!0,pe,a,r),a=Dm,Om=Dm=null,t=a!==null)),t):!1}function Yf(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}function Xf(e,t){return e=de(e),Zf(e,t),!1}function Zf(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function Qf(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Rf(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<RT.length;i++){var a=RT[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(RT[r++]=a)}RT.length=r,n.observe(e)}),Zf(e,t))}function $f(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Rf(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Kf(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function ep(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ep(n),ft(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tp(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){He(i.name,`name`);var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[Qh])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=sp(e.nextSibling),e===null)break}return null}function np(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=sp(e.nextSibling),e===null))return null;return e}function rp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=sp(e.nextSibling),e===null))return null;return e}function ip(e){return e.data===fT||e.data===pT}function ap(e){return e.data===mT||e.data===fT&&e.ownerDocument.readyState!==bT}function op(e,t){var n=e.ownerDocument;if(e.data===pT)e._reactRetry=t;else if(e.data!==fT||n.readyState!==bT)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function sp(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===uT||t===mT||t===fT||t===pT||t===cT||t===vT||t===yT)break;if(t===dT||t===lT)return null}}return e}function cp(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},r=e.attributes,i=0;i<r.length;i++){var a=r[i];n[Ld(a.name)]=a.name.toLowerCase()===`style`?Rd(e):a.value}return{type:t,props:n}}return e.nodeType===8?e.data===cT?{type:`Activity`,props:{}}:{type:`Suspense`,props:{}}:e.nodeValue}function lp(e,t,n){return n===null||!0!==n[sT]?(e.nodeValue===t?e=null:(t=jd(t),e=jd(e.nodeValue)===t?null:e.nodeValue),e):null}function up(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===dT||n===lT){if(t===0)return sp(e.nextSibling);t--}else n!==uT&&n!==mT&&n!==fT&&n!==pT&&n!==cT||t++}e=e.nextSibling}return null}function dp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===uT||n===mT||n===fT||n===pT||n===cT){if(t===0)return e;t--}else n!==dT&&n!==lT||t++}e=e.previousSibling}return null}function fp(e){ym(e)}function pp(e){ym(e)}function mp(e){ym(e)}function hp(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function gp(e){FT(function(){FT(function(t){return e(t)})})}function _p(e,t,n,r,i){switch(i&&pn(e,r.ancestorInfo),t=Yd(n),e){case`html`:if(e=t.documentElement,!e)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 e;case`head`:if(e=t.head,!e)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 e;case`body`:if(e=t.body,!e)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 e;default:throw Error(`resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.`)}}function vp(e,t,n,r){if(!n[qh]&&mt(n)){var i=n.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.`,i,i,i)}switch(e){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(i=n.attributes;i.length;)n.removeAttributeNode(i[0]);Fd(n,e,t),n[Gh]=r,n[Kh]=t}function yp(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&Nd(e,t,r,null,aT,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===En&&(e.onclick=null),ft(e)}function bp(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ft(e)}function xp(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}function Sp(e,t,n){var r=YT;if(r&&typeof t==`string`&&t){var i=Nt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),qT.has(i)||(qT.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Fd(t,`link`,e),_t(t),r.head.appendChild(t)))}}function Cp(e,t,n,r){var i=(i=th.current)?xp(i):null;if(!i)throw Error(`"resourceRoot" was expected to exist. This is a bug in React.`);switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Tp(n.href),t=gt(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Tp(n.href);var a=gt(i).hoistableStyles,o=a.get(e);if(o||(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:VT,preload:null}},a.set(e,o),(a=i.querySelector(Ep(e)))?a._p||(o.instance=a,o.state.loading=HT|GT):(a=KT.get(e),a||(a={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},KT.set(e,a)),Op(i,e,a,o.state))),t&&r===null)throw n=`
|
|
184
|
-
|
|
185
|
-
- `+wp(t)+`
|
|
186
|
-
+ `+wp(n),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."+n);return o}if(t&&r!==null)throw n=`
|
|
187
|
-
|
|
188
|
-
- `+wp(t)+`
|
|
189
|
-
+ `+wp(n),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."+n);return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=kp(n),t=gt(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(`getResource encountered a type it did not expect: "`+e+`". this is a bug in React.`)}}function wp(e){var t=0,n=`<link`;return typeof e.rel==`string`?(t++,n+=` rel="`+e.rel+`"`):gh.call(e,`rel`)&&(t++,n+=` rel="`+(e.rel===null?`null`:`invalid type `+typeof e.rel)+`"`),typeof e.href==`string`?(t++,n+=` href="`+e.href+`"`):gh.call(e,`href`)&&(t++,n+=` href="`+(e.href===null?`null`:`invalid type `+typeof e.href)+`"`),typeof e.precedence==`string`?(t++,n+=` precedence="`+e.precedence+`"`):gh.call(e,`precedence`)&&(t++,n+=` precedence={`+(e.precedence===null?`null`:`invalid type `+typeof e.precedence)+`}`),Object.getOwnPropertyNames(e).length>t&&(n+=` ...`),n+` />`}function Tp(e){return`href="`+Nt(e)+`"`}function Ep(e){return`link[rel="stylesheet"][`+e+`]`}function Dp(e){return I({},e,{"data-precedence":e.precedence,precedence:null})}function Op(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[$h]){r.loading=HT;return}}else t=e.createElement(`link`),t[$h]=!0,t.onload=t.onerror=vt.bind(null,t),Fd(t,`link`,n),_t(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=HT}),t.addEventListener(`error`,function(){return r.loading|=UT})}function kp(e){return`[src="`+Nt(e)+`"]`}function Ap(e){return`script[async]`+e}function jp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Nt(n.href)+`"]`);if(r)return t.instance=r,_t(r),r;var i=I({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),_t(r),Fd(r,`style`,i),Mp(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Tp(n.href);var a=e.querySelector(Ep(i));if(a)return t.state.loading|=GT,t.instance=a,_t(a),a;r=Dp(n),(i=KT.get(i))&&Np(r,i),a=(e.ownerDocument||e).createElement(`link`),_t(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Fd(a,`link`,r),t.state.loading|=GT,Mp(a,n.precedence,e),t.instance=a;case`script`:return a=kp(n.src),(i=e.querySelector(Ap(a)))?(t.instance=i,_t(i),i):(r=n,(i=KT.get(a))&&(r=I({},n),Pp(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),_t(i),Fd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(`acquireResource encountered a resource type it did not expect: "`+t.type+`". this is a bug in React.`)}else t.type===`stylesheet`&&(t.state.loading>)===VT&&(r=t.instance,t.state.loading|=GT,Mp(r,n.precedence,e));return t.instance}function Mp(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Np(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Pp(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}function Fp(e,t,n){if(XT===null){var r=new Map,i=XT=new Map;i.set(n,r)}else i=XT,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Qh]||a[Gh]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==Lg){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Ip(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Lp(e,t,n){var r=!n.ancestorInfo.containerTagInScope;if(n.context===CT||t.itemProp!=null)return!r||t.itemProp==null||e!==`meta`&&e!==`title`&&e!==`style`&&e!==`link`&&e!==`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.",e,e),!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``){r&&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 t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError){if(t.rel===`stylesheet`&&typeof t.precedence==`string`){e=t.href;var i=t.onError,a=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),i&&n.push("`onError`"),a!=null&&n.push("`disabled`"),i=Kd(n,`and`),i+=n.length===1?` prop`:` props`,a=n.length===1?`an `+i:`the `+i,n.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.',e,a,i)}r&&(typeof t.rel!=`string`||typeof t.href!=`string`||t.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"):(t.onError||t.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(t.rel){case`stylesheet`:return e=t.precedence,t=t.disabled,typeof e!=`string`&&r&&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 e==`string`&&t==null;default:return!0}case`script`:if(e=t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`,!e||t.onLoad||t.onError||!t.src||typeof t.src!=`string`){r&&(e?t.onLoad||t.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`:r&&console.error(`Cannot render <%s> outside the main document. Try moving it into the root <head> tag.`,e)}return!1}function Rp(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function zp(e){return e.type!==`stylesheet`||(e.state.loading&WT)!==VT}function Bp(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Vp(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Bp(t),e.suspenseyImages.push(t)),e=Kp.bind(e),t.decode().then(e,e))}function Hp(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&(n.state.loading>)===VT){if(n.instance===null){var i=Tp(r.href),a=t.querySelector(Ep(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Gp.bind(e),t.then(e,e)),n.state.loading|=GT,n.instance=a,_t(a);return}a=t.ownerDocument||t,r=Dp(r),(i=KT.get(i))&&Np(r,i),a=a.createElement(`link`),_t(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Fd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&WT)===VT&&(e.count++,n=Gp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}function Up(e,t){return e.stylesheets&&e.count===0&&qp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&qp(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},ZT+t);0<e.imgBytes&&eE===0&&(eE=125*Jd()*$T);var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&qp(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>eE?50:QT)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Wp(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)qp(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Gp(){this.count--,Wp(this)}function Kp(){this.imgCount--,Wp(this)}function qp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,nE=new Map,t.forEach(Jp,e),nE=null,Gp.call(e))}function Jp(e,t){if(!(t.state.loading>)){var n=nE.get(e);if(n)var r=n.get(tE);else{n=new Map,nE.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(tE,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(tE,i),n.set(o,i),this.count++,r=Gp.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=GT}}function Yp(e,t,n,r,i,a,o,s,c){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=NT,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=et(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=et(0),this.hiddenUpdates=et(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=n?`hydrateRoot()`:`createRoot()`}function Xp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new Yp(e,t,n,o,c,l,u,d,s),t=Uv,!0===a&&(t|=Gv|Kv),t|=Wv,a=g(3,null,null,t),e.current=a,a.stateNode=e,t=Ci(),wi(t),e.pooledCache=t,wi(t),a.memoizedState={element:r,isDehydrated:n,cache:t},va(a),e}function Zp(e){return e?(e=Bv,e):Bv}function Qp(e,t,n,r,i,a){if(jh&&typeof jh.onScheduleFiberRoot==`function`)try{jh.onScheduleFiberRoot(Ah,r,n)}catch(e){Mh||(Mh=!0,console.error(`React instrumentation encountered an error: %o`,e))}i=Zp(i),r.context===null?r.context=i:r.pendingContext=i,hh&&mh!==null&&!uE&&(uE=!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.
|
|
190
|
-
|
|
191
|
-
Check the render method of %s.`,S(mh)||`Unknown`)),r=ba(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(typeof a!=`function`&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a),r.callback=a),n=xa(e,r,t),n!==null&&(Oi(t,`root.render()`,null),ru(n,e,t),Sa(n,e,t))}function $p(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function em(e,t){$p(e,t),(e=e.alternate)&&$p(e,t)}function tm(e){if(e.tag===13||e.tag===31){var t=Nr(e,67108864);t!==null&&ru(t,e,67108864),em(e,67108864)}}function nm(e){if(e.tag===13||e.tag===31){var t=eu(e);t=ot(t);var n=Nr(e,t);n!==null&&ru(n,e,t),em(e,t)}}function rm(){return mh}function im(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=Bh,om(e,t,n,r)}finally{R.p=a,L.T=i}}function am(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=Vh,om(e,t,n,r)}finally{R.p=a,L.T=i}}function om(e,t,n,r){if(xE){var i=sm(r);if(i===null)yd(e,t,r,SE,n),um(e,r);else if(fm(i,e,t,n,r))r.stopPropagation();else if(um(e,r),t&4&&-1<AE.indexOf(e)){for(;i!==null;){var a=mt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Je(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ph(o);s.entanglements[1]|=c,o&=~c}td(a),(_C&(cC|lC))===sC&&(qC=xh()+JC,nd(0,!1))}}break;case 31:case 13:s=Nr(a,2),s!==null&&ru(s,a,2),cu(),em(a,2)}if(a=sm(r),a===null&&yd(e,t,r,SE,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else yd(e,t,r,null,n)}}function sm(e){return e=Dn(e),cm(e)}function cm(e){if(SE=null,e=pt(e),e!==null){var t=b(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=te(t),e!==null)return e;e=null}else if(n===31){if(e=ne(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return SE=e,null}function lm(e){switch(e){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`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`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return Bh;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return Vh;case`message`:switch(Sh()){case Ch:return Bh;case wh:return Vh;case Th:case Eh:return Hh;case Dh:return Uh;default:return Hh}default:return Hh}}function um(e,t){switch(e){case`focusin`:case`focusout`:wE=null;break;case`dragenter`:case`dragleave`:TE=null;break;case`mouseover`:case`mouseout`:EE=null;break;case`pointerover`:case`pointerout`:DE.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:OE.delete(t.pointerId)}}function dm(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=mt(t),t!==null&&tm(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function fm(e,t,n,r,i){switch(t){case`focusin`:return wE=dm(wE,e,t,n,r,i),!0;case`dragenter`:return TE=dm(TE,e,t,n,r,i),!0;case`mouseover`:return EE=dm(EE,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return DE.set(a,dm(DE.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,OE.set(a,dm(OE.get(a)||null,e,t,n,r,i)),!0}return!1}function pm(e){var t=pt(e.target);if(t!==null){var n=b(t);if(n!==null){if(t=n.tag,t===13){if(t=te(n),t!==null){e.blockedOn=t,dt(e.priority,function(){nm(n)});return}}else if(t===31){if(t=ne(n),t!==null){e.blockedOn=t,dt(e.priority,function(){nm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=sm(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n),i=r;Zg!==null&&console.error(`Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.`),Zg=i,n.target.dispatchEvent(r),Zg===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.`),Zg=null}else return t=mt(n),t!==null&&tm(t),e.blockedOn=n,!1;t.shift()}return!0}function hm(e,t,n){mm(e)&&n.delete(t)}function gm(){CE=!1,wE!==null&&mm(wE)&&(wE=null),TE!==null&&mm(TE)&&(TE=null),EE!==null&&mm(EE)&&(EE=null),DE.forEach(hm),OE.forEach(hm)}function _m(e,t){e.blockedOn===t&&(e.blockedOn=null,CE||(CE=!0,wm.unstable_scheduleCallback(wm.unstable_NormalPriority,gm)))}function vm(e){jE!==e&&(jE=e,wm.unstable_scheduleCallback(wm.unstable_NormalPriority,function(){jE===e&&(jE=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(cm(r||n)===null)continue;break}var a=mt(n);a!==null&&(e.splice(t,3),t-=3,n={pending:!0,data:i,method:n.method,action:r},Object.freeze(n),ts(a,n,r,i))}}))}function ym(e){function t(t){return _m(t,e)}wE!==null&&_m(wE,e),TE!==null&&_m(TE,e),EE!==null&&_m(EE,e),DE.forEach(t),OE.forEach(t);for(var n=0;n<kE.length;n++){var r=kE[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<kE.length&&(n=kE[0],n.blockedOn===null);)pm(n),n.blockedOn===null&&kE.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Kh]||null;if(typeof a==`function`)o||vm(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Kh]||null)s=o.formAction;else if(cm(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),vm(n)}}}function bm(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function xm(e){this._internalRoot=e}function Sm(e){this._internalRoot=e}function Cm(e){e[qh]&&(e._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 wm=u(),Tm=f(),Em=m(),Dm=null,Om=null,I=Object.assign,km=Symbol.for(`react.element`),Am=Symbol.for(`react.transitional.element`),jm=Symbol.for(`react.portal`),Mm=Symbol.for(`react.fragment`),Nm=Symbol.for(`react.strict_mode`),Pm=Symbol.for(`react.profiler`),Fm=Symbol.for(`react.consumer`),Im=Symbol.for(`react.context`),Lm=Symbol.for(`react.forward_ref`),Rm=Symbol.for(`react.suspense`),zm=Symbol.for(`react.suspense_list`),Bm=Symbol.for(`react.memo`),Vm=Symbol.for(`react.lazy`),Hm=Symbol.for(`react.activity`),Um=Symbol.for(`react.legacy_hidden`),Wm=Symbol.for(`react.memo_cache_sentinel`),Gm=Symbol.for(`react.view_transition`),Km=Symbol.for(`react.recoverable`),qm=Symbol.iterator,Jm=Symbol.for(`react.client.reference`),Ym=Array.isArray,L=Tm.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=Em.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Xm=Object.freeze({pending:!1,data:null,method:null,action:null}),Zm=[],Qm=[],z=-1,$m=ye(null),eh=ye(null),th=ye(null),nh=ye(null),rh=0,ih,ah,oh,sh,ch,lh,uh;Oe.__reactDisabledLog=!0;var dh,fh,ph=!1,B=new(typeof WeakMap==`function`?WeakMap:Map),mh=null,hh=!1,gh=Object.prototype.hasOwnProperty,_h=wm.unstable_scheduleCallback,vh=wm.unstable_cancelCallback,yh=wm.unstable_shouldYield,bh=wm.unstable_requestPaint,xh=wm.unstable_now,Sh=wm.unstable_getCurrentPriorityLevel,Ch=wm.unstable_ImmediatePriority,wh=wm.unstable_UserBlockingPriority,Th=wm.unstable_NormalPriority,Eh=wm.unstable_LowPriority,Dh=wm.unstable_IdlePriority,Oh=wm.log,kh=wm.unstable_setDisableYieldValue,Ah=null,jh=null,Mh=!1,Nh=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`,Ph=Math.clz32?Math.clz32:qe,Fh=Math.log,Ih=Math.LN2,Lh=256,Rh=262144,zh=4194304,Bh=2,Vh=8,Hh=32,Uh=268435456,Wh=Math.random().toString(36).slice(2),Gh=`__reactFiber$`+Wh,Kh=`__reactProps$`+Wh,qh=`__reactContainer$`+Wh,Jh=`__reactEvents$`+Wh,Yh=`__reactListeners$`+Wh,Xh=`__reactHandles$`+Wh,Zh=`__reactResources$`+Wh,Qh=`__reactMarker$`+Wh,$h=`__reactLoad$`+Wh,eg=new Set,tg={},ng={},rg={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},ig=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]*$`),ag={},og={},sg=!1,cg=/[\n"\\]/g,lg=!1,ug=!1,dg=!1,fg=!1,pg=!1,mg=!1,hg=[`value`,`defaultValue`],gg=!1,_g=/["'&<>\n\t]|^\s|\s$/,vg=`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(` `),yg=`applet caption html table td th marquee object select template foreignObject desc title`.split(` `),bg=yg.concat([`button`]),xg=`dd dt li option optgroup p rp rt`.split(` `),Sg={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Cg={},wg={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(` `),borderBlock:`borderBlockEndColor borderBlockEndStyle borderBlockEndWidth borderBlockStartColor borderBlockStartStyle borderBlockStartWidth`.split(` `),borderBlockColor:[`borderBlockEndColor`,`borderBlockStartColor`],borderBlockEnd:[`borderBlockEndColor`,`borderBlockEndStyle`,`borderBlockEndWidth`],borderBlockStart:[`borderBlockStartColor`,`borderBlockStartStyle`,`borderBlockStartWidth`],borderBlockStyle:[`borderBlockEndStyle`,`borderBlockStartStyle`],borderBlockWidth:[`borderBlockEndWidth`,`borderBlockStartWidth`],borderBottom:[`borderBottomColor`,`borderBottomStyle`,`borderBottomWidth`],borderColor:[`borderBottomColor`,`borderLeftColor`,`borderRightColor`,`borderTopColor`],borderImage:[`borderImageOutset`,`borderImageRepeat`,`borderImageSlice`,`borderImageSource`,`borderImageWidth`],borderInline:`borderInlineEndColor borderInlineEndStyle borderInlineEndWidth borderInlineStartColor borderInlineStartStyle borderInlineStartWidth`.split(` `),borderInlineColor:[`borderInlineEndColor`,`borderInlineStartColor`],borderInlineEnd:[`borderInlineEndColor`,`borderInlineEndStyle`,`borderInlineEndWidth`],borderInlineStart:[`borderInlineStartColor`,`borderInlineStartStyle`,`borderInlineStartWidth`],borderInlineStyle:[`borderInlineEndStyle`,`borderInlineStartStyle`],borderInlineWidth:[`borderInlineEndWidth`,`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`],colorAdjust:[`printColorAdjust`],columnRule:[`columnRuleColor`,`columnRuleStyle`,`columnRuleWidth`],columns:[`columnCount`,`columnWidth`],containIntrinsicSize:[`containIntrinsicHeight`,`containIntrinsicWidth`],container:[`containerName`,`containerType`],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(` `),fontSynthesis:[`fontSynthesisPosition`,`fontSynthesisSmallCaps`,`fontSynthesisStyle`,`fontSynthesisWeight`],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`],inset:[`bottom`,`left`,`right`,`top`],insetBlock:[`insetBlockEnd`,`insetBlockStart`],insetInline:[`insetInlineEnd`,`insetInlineStart`],listStyle:[`listStyleImage`,`listStylePosition`,`listStyleType`],margin:[`marginBottom`,`marginLeft`,`marginRight`,`marginTop`],marginBlock:[`marginBlockEnd`,`marginBlockStart`],marginInline:[`marginInlineEnd`,`marginInlineStart`],marker:[`markerEnd`,`markerMid`,`markerStart`],mask:`maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize`.split(` `),maskPosition:[`maskPositionX`,`maskPositionY`],offset:[`offsetAnchor`,`offsetDistance`,`offsetPath`,`offsetPosition`,`offsetRotate`],outline:[`outlineColor`,`outlineStyle`,`outlineWidth`],overflow:[`overflowX`,`overflowY`],overscrollBehavior:[`overscrollBehaviorX`,`overscrollBehaviorY`],padding:[`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`],paddingBlock:[`paddingBlockEnd`,`paddingBlockStart`],paddingInline:[`paddingInlineEnd`,`paddingInlineStart`],pageBreakAfter:[`breakAfter`],pageBreakBefore:[`breakBefore`],pageBreakInside:[`breakInside`],placeContent:[`alignContent`,`justifyContent`],placeItems:[`alignItems`,`justifyItems`],placeSelf:[`alignSelf`,`justifySelf`],scrollMargin:[`scrollMarginBottom`,`scrollMarginLeft`,`scrollMarginRight`,`scrollMarginTop`],scrollMarginBlock:[`scrollMarginBlockEnd`,`scrollMarginBlockStart`],scrollMarginInline:[`scrollMarginInlineEnd`,`scrollMarginInlineStart`],scrollPadding:[`scrollPaddingBottom`,`scrollPaddingLeft`,`scrollPaddingRight`,`scrollPaddingTop`],scrollPaddingBlock:[`scrollPaddingBlockEnd`,`scrollPaddingBlockStart`],scrollPaddingInline:[`scrollPaddingInlineEnd`,`scrollPaddingInlineStart`],textDecoration:[`textDecorationColor`,`textDecorationLine`,`textDecorationStyle`,`textDecorationThickness`],textEmphasis:[`textEmphasisColor`,`textEmphasisStyle`],textWrap:[`textWrapMode`,`textWrapStyle`],transition:[`transitionBehavior`,`transitionDelay`,`transitionDuration`,`transitionProperty`,`transitionTimingFunction`],verticalAlign:[`alignmentBaseline`,`baselineShift`,`baselineSource`],whiteSpace:[`textWrapMode`,`whiteSpaceCollapse`],wordWrap:[`overflowWrap`]},Tg=/([A-Z])/g,Eg=/^ms-/,Dg=/^(?:webkit|moz|o)[A-Z]/,Og=/^-ms-/,kg=/-(.)/g,Ag=/;\s*$/,jg={},Mg={},Ng=!1,Pg=!1,Fg=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(` `)),Ig=`http://www.w3.org/1998/Math/MathML`,Lg=`http://www.w3.org/2000/svg`,Rg=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`],[`maskType`,`mask-type`],[`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`]]),zg={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`,credentialless:`credentialless`,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`,masktype:`maskType`,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`},Bg={"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},Vg={},Hg=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]*$`),Ug=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]*$`),Wg=!1,Gg={},Kg=/^on./,qg=/^on[^A-Z]/,Jg=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]*$`),Yg=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]*$`),Xg=/^[\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,Zg=null,Qg=null,$g=null,e_=!1,t_=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,n_=!1;if(t_)try{var r_={};Object.defineProperty(r_,"passive",{get:function(){n_=!0}}),window.addEventListener(`test`,r_,r_),window.removeEventListener(`test`,r_,r_)}catch{n_=!1}var i_=null,a_=null,o_=null,s_={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},c_=Fn(s_),l_=I({},s_,{view:0,detail:0}),u_=Fn(l_),d_,f_,p_,m_=I({},l_,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ln,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==p_&&(p_&&e.type===`mousemove`?(d_=e.screenX-p_.screenX,f_=e.screenY-p_.screenY):f_=d_=0,p_=e),d_)},movementY:function(e){return`movementY`in e?e.movementY:f_}}),h_=Fn(m_),g_=Fn(I({},m_,{dataTransfer:0})),__=Fn(I({},l_,{relatedTarget:0})),v_=Fn(I({},s_,{animationName:0,elapsedTime:0,pseudoElement:0})),y_=Fn(I({},s_,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),b_=Fn(I({},s_,{data:0})),x_=b_,S_={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},C_={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`},w_={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`},T_=Fn(I({},l_,{key:function(e){if(e.key){var t=S_[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Mn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?C_[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ln,charCode:function(e){return e.type===`keypress`?Mn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Mn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),E_=Fn(I({},m_,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),D_=Fn(I({},s_,{submitter:0})),O_=Fn(I({},l_,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ln})),k_=Fn(I({},s_,{propertyName:0,elapsedTime:0,pseudoElement:0})),A_=Fn(I({},m_,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),j_=Fn(I({},s_,{newState:0,oldState:0,source:0})),M_=[9,13,27,32],N_=229,P_=t_&&`CompositionEvent`in window,F_=null;t_&&`documentMode`in document&&(F_=document.documentMode);var I_=t_&&`TextEvent`in window&&!F_,L_=t_&&(!P_||F_&&8<F_&&11>=F_),R_=32,z_=String.fromCharCode(R_),B_=!1,V_=!1,H_={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},U_=null,W_=null,G_=!1;t_&&(G_=Un(`input`)&&(!document.documentMode||9<document.documentMode));var K_=typeof Object.is==`function`?Object.is:er,q_=t_&&`documentMode`in document&&11>=document.documentMode,J_=null,Y_=null,X_=null,Z_=!1,Q_={animationend:cr(`Animation`,`AnimationEnd`),animationiteration:cr(`Animation`,`AnimationIteration`),animationstart:cr(`Animation`,`AnimationStart`),transitionrun:cr(`Transition`,`TransitionRun`),transitionstart:cr(`Transition`,`TransitionStart`),transitioncancel:cr(`Transition`,`TransitionCancel`),transitionend:cr(`Transition`,`TransitionEnd`)},$_={},ev={};t_&&(ev=document.createElement(`div`).style,`AnimationEvent`in window||(delete Q_.animationend.animation,delete Q_.animationiteration.animation,delete Q_.animationstart.animation),`TransitionEvent`in window||delete Q_.transitionend.transition);var tv=lr(`animationend`),nv=lr(`animationiteration`),rv=lr(`animationstart`),iv=lr(`transitionrun`),av=lr(`transitionstart`),ov=lr(`transitioncancel`),sv=lr(`transitionend`),cv=new Map,lv=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(` `);lv.push(`scrollEnd`);var uv=0,dv=0;if(typeof performance==`object`&&typeof performance.now==`function`)var fv=performance,pv=function(){return fv.now()};else{var mv=Date;pv=function(){return mv.now()}}var hv=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},gv=`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.`,_v=0,vv=1,yv=2,bv=3,xv=100,Sv=`-\xA0`,Cv=`+\xA0`,wv=` \xA0`,Tv=typeof console<`u`&&typeof console.timeStamp==`function`&&typeof performance<`u`&&typeof performance.measure==`function`,Ev=`Components ⚛`,Dv=`Scheduler ⚛`,Ov=`Blocking`,kv=!1,Av={color:`primary`,properties:null,tooltipText:``,track:Ev},jv={start:-0,end:-0,detail:{devtools:Av}},Mv=[`Changed Props`,``],Nv=`This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.`,Pv=[`Changed Props`,Nv],Fv=1,Iv=2,Lv=[],Rv=0,zv=0,Bv={};Object.freeze(Bv);var Vv=null,Hv=null,V=0,Uv=1,Wv=2,Gv=8,Kv=16,qv=32,Jv=!1;try{Object.preventExtensions({})}catch{Jv=!0}var Yv=new WeakMap,Xv=[],Zv=0,Qv=null,$v=0,ey=[],ty=0,ny=null,ry=1,iy=``,ay=null,oy=null,sy=!1,cy=!1,ly=null,uy=null,dy=!1,fy=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.`),py=ye(null),my=ye(null),hy={},gy=null,_y=null,vy=!1,yy=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},by=wm.unstable_scheduleCallback,xy=wm.unstable_NormalPriority,Sy={$$typeof:Im,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Cy=null,wy=wm.unstable_now,Ty=console.createTask?console.createTask:function(){return null},Ey=1,Dy=2,Oy=-0,ky=-0,Ay=-0,jy=null,My=-1.1,Ny=-0,Py=-0,H=-1.1,U=-1.1,Fy=null,Iy=!1,Ly=-0,Ry=-1.1,zy=null,By=0,Vy=null,Hy=null,Uy=-1.1,Wy=null,Gy=-1.1,Ky=-1.1,qy=-0,Jy=-1.1,Yy=-1.1,Xy=0,Zy=null,Qy=null,$y=null,eb=-1.1,tb=null,nb=-1.1,rb=-1.1,ib=-0,ab=-0,ob=0,sb=null,cb=0,lb=-1.1,ub=!1,db=!1,fb=null,pb=0,mb=0,hb=null,gb=L.S;L.S=function(e,t){if(GC=xh(),typeof t==`object`&&t&&typeof t.then==`function`){if(0>Jy&&0>Yy){Jy=wy();var n=rf(),r=nf();(n!==nb||r!==tb)&&(nb=-1.1),eb=n,tb=r}Ki(e,t)}if(Cy!==null)for(n=Iw;n!==null;)Ei(n,Cy),n=n.next;if(n=e.types,n!==null){for(r=Iw;r!==null;)Ei(r,n),r=r.next;if(mb!==0){r=Cy,r===null&&(r=Cy=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}gb!==null&&gb(e,t)};var _b=ye(null),vb={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},yb=[],bb=[],xb=[],Sb=[],Cb=[],wb=[],Tb=new Set;vb.recordUnsafeLifecycleWarnings=function(e,t){Tb.has(e.type)||(typeof t.componentWillMount==`function`&&!0!==t.componentWillMount.__suppressDeprecationWarning&&yb.push(e),e.mode&Gv&&typeof t.UNSAFE_componentWillMount==`function`&&bb.push(e),typeof t.componentWillReceiveProps==`function`&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&xb.push(e),e.mode&Gv&&typeof t.UNSAFE_componentWillReceiveProps==`function`&&Sb.push(e),typeof t.componentWillUpdate==`function`&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&Cb.push(e),e.mode&Gv&&typeof t.UNSAFE_componentWillUpdate==`function`&&wb.push(e))},vb.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<yb.length&&(yb.forEach(function(t){e.add(S(t)||`Component`),Tb.add(t.type)}),yb=[]);var t=new Set;0<bb.length&&(bb.forEach(function(e){t.add(S(e)||`Component`),Tb.add(e.type)}),bb=[]);var n=new Set;0<xb.length&&(xb.forEach(function(e){n.add(S(e)||`Component`),Tb.add(e.type)}),xb=[]);var r=new Set;0<Sb.length&&(Sb.forEach(function(e){r.add(S(e)||`Component`),Tb.add(e.type)}),Sb=[]);var i=new Set;0<Cb.length&&(Cb.forEach(function(e){i.add(S(e)||`Component`),Tb.add(e.type)}),Cb=[]);var a=new Set;if(0<wb.length&&(wb.forEach(function(e){a.add(S(e)||`Component`),Tb.add(e.type)}),wb=[]),0<t.size){var o=h(t);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.
|
|
192
|
-
|
|
193
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
194
|
-
|
|
195
|
-
Please update the following components: %s`,o)}0<r.size&&(o=h(r),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
196
|
-
|
|
197
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
198
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
199
|
-
|
|
200
|
-
Please update the following components: %s`,o)),0<a.size&&(o=h(a),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
201
|
-
|
|
202
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
203
|
-
|
|
204
|
-
Please update the following components: %s`,o)),0<e.size&&(o=h(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
205
|
-
|
|
206
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
207
|
-
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
208
|
-
|
|
209
|
-
Please update the following components: %s`,o)),0<n.size&&(o=h(n),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
210
|
-
|
|
211
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
212
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
213
|
-
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
214
|
-
|
|
215
|
-
Please update the following components: %s`,o)),0<i.size&&(o=h(i),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
216
|
-
|
|
217
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
218
|
-
* 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.
|
|
219
|
-
|
|
220
|
-
Please update the following components: %s`,o))};var Eb=new Map,Db=new Set;vb.recordLegacyContextWarning=function(e,t){for(var n=null,r=e;r!==null;)r.mode&Gv&&(n=r),r=r.return;n===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.`):!Db.has(e.type)&&(r=Eb.get(n),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==`function`)&&(r===void 0&&(r=[],Eb.set(n,r)),r.push(e))},vb.flushLegacyContextWarning=function(){Eb.forEach(function(e){if(e.length!==0){var t=e[0],n=new Set;e.forEach(function(e){n.add(S(e)||`Component`),Db.add(e.type)});var r=h(n);w(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
221
|
-
|
|
222
|
-
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
223
|
-
|
|
224
|
-
Please update the following components: %s
|
|
225
|
-
|
|
226
|
-
Learn more about this warning here: https://react.dev/link/legacy-context`,r)})}})},vb.discardPendingWarnings=function(){yb=[],bb=[],xb=[],Sb=[],Cb=[],wb=[],Eb=new Map};var Ob=``,kb={react_stack_bottom_frame:function(e,t,n){var r=hh;hh=!0;try{return e(t,n)}finally{hh=r}}},Ab=kb.react_stack_bottom_frame.bind(kb),jb={react_stack_bottom_frame:function(e){var t=hh;hh=!0;try{return e.render()}finally{hh=t}}},Mb=jb.react_stack_bottom_frame.bind(jb),Nb={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(t){Hu(e,e.return,t)}}},Pb=Nb.react_stack_bottom_frame.bind(Nb),Fb={react_stack_bottom_frame:function(e,t,n,r,i){try{t.componentDidUpdate(n,r,i)}catch(t){Hu(e,e.return,t)}}},Ib=Fb.react_stack_bottom_frame.bind(Fb),Lb={react_stack_bottom_frame:function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:n===null?``:n})}},Rb=Lb.react_stack_bottom_frame.bind(Lb),zb={react_stack_bottom_frame:function(e,t,n){try{n.componentWillUnmount()}catch(n){Hu(e,t,n)}}},Bb=zb.react_stack_bottom_frame.bind(zb),Vb={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},Hb=Vb.react_stack_bottom_frame.bind(Vb),Ub={react_stack_bottom_frame:function(e,t,n){try{n()}catch(n){Hu(e,t,n)}}},Wb=Ub.react_stack_bottom_frame.bind(Ub),Gb={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},Kb=Gb.react_stack_bottom_frame.bind(Gb),qb=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`."),Jb=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.`),Yb=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."),Xb={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.`)}},Zb=null,Qb=null,$b=!1,ex=null,tx=!1,nx=null,rx=0,W=null,ix,ax=ix=!1,ox={},sx={},cx={};p=function(e,t,n){if(typeof n==`object`&&n&&n._store&&(!n._store.validated&&n.key==null||n._store.validated===2)){if(typeof n._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.`);n._store.validated=1;var r=S(e),i=r||`null`;if(!ox[i]){ox[i]=!0,n=n._owner,e=e._debugOwner;var a=``;e&&typeof e.tag==`number`&&(i=S(e))&&(a=`
|
|
227
|
-
|
|
228
|
-
Check the render method of \``+i+"`."),a||r&&(a=`
|
|
229
|
-
|
|
230
|
-
Check the top-level render call using <`+r+`>.`);var o=``;n!=null&&e!==n&&(r=null,typeof n.tag==`number`?r=S(n):typeof n.name==`string`&&(r=n.name),r&&(o=` It was passed a child from `+r+`.`)),w(t,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.`,a,o)})}}};var lx=ga(!0),ux=ga(!1),dx=0,fx=1,px=2,mx=3,hx=!1,gx=!1,_x=null,vx=!1,yx=ye(null),bx=ye(0),xx=ye(null),Sx=null,Cx=1,wx=2,Tx=ye(0),Ex=0,Dx=1,Ox=2,kx=4,Ax=8,jx,Mx=new Set,Nx=new Set,Px=new Set,Fx=new Set,Ix=0,G=null,Lx=null,Rx=null,zx=!1,Bx=!1,Vx=!1,Hx=0,Ux=0,Wx=null,Gx=0,Kx=25,K=null,qx=null,Jx=-1,Yx=!1,Xx={readContext:bi,use:$a,useCallback:Ha,useContext:Ha,useEffect:Ha,useImperativeHandle:Ha,useLayoutEffect:Ha,useInsertionEffect:Ha,useMemo:Ha,useReducer:Ha,useRef:Ha,useState:Ha,useDebugValue:Ha,useDeferredValue:Ha,useTransition:Ha,useSyncExternalStore:Ha,useId:Ha,useHostTransitionStatus:Ha,useFormState:Ha,useActionState:Ha,useOptimistic:Ha,useMemoCache:Ha,useCacheRefresh:Ha,useEffectEvent:Ha},Zx=null,Qx=null,$x=null,eS=null,tS=null,nS=null,rS=null;Zx={readContext:function(e){return bi(e)},use:$a,useCallback:function(e,t){return K=`useCallback`,za(),Ba(t),Wo(e,t)},useContext:function(e){return K=`useContext`,za(),bi(e)},useEffect:function(e,t){return K=`useEffect`,za(),Ba(t),Io(e,t)},useImperativeHandle:function(e,t,n){return K=`useImperativeHandle`,za(),Ba(n),Ho(e,t,n)},useInsertionEffect:function(e,t){K=`useInsertionEffect`,za(),Ba(t),Po(4,Ox,e,t)},useLayoutEffect:function(e,t){return K=`useLayoutEffect`,za(),Ba(t),Bo(e,t)},useMemo:function(e,t){K=`useMemo`,za(),Ba(t);var n=L.H;L.H=tS;try{return Ko(e,t)}finally{L.H=n}},useReducer:function(e,t,n){K=`useReducer`,za();var r=L.H;L.H=tS;try{return no(e,t,n)}finally{L.H=r}},useRef:function(e){return K=`useRef`,za(),No(e)},useState:function(e){K=`useState`,za();var t=L.H;L.H=tS;try{return ho(e)}finally{L.H=t}},useDebugValue:function(){K=`useDebugValue`,za()},useDeferredValue:function(e,t){return K=`useDeferredValue`,za(),Jo(e,t)},useTransition:function(){return K=`useTransition`,za(),is()},useSyncExternalStore:function(e,t,n){return K=`useSyncExternalStore`,za(),oo(e,t,n)},useId:function(){return K=`useId`,za(),cs()},useFormState:function(e,t){return K=`useFormState`,za(),Va(),Do(e,t)},useActionState:function(e,t){return K=`useActionState`,za(),Do(e,t)},useOptimistic:function(e){return K=`useOptimistic`,za(),go(e)},useHostTransitionStatus:ss,useMemoCache:eo,useCacheRefresh:function(){return K=`useCacheRefresh`,za(),ls()},useEffectEvent:function(e){return K=`useEffectEvent`,za(),Ro(e)}},Qx={readContext:function(e){return bi(e)},use:$a,useCallback:function(e,t){return K=`useCallback`,N(),Wo(e,t)},useContext:function(e){return K=`useContext`,N(),bi(e)},useEffect:function(e,t){return K=`useEffect`,N(),Io(e,t)},useImperativeHandle:function(e,t,n){return K=`useImperativeHandle`,N(),Ho(e,t,n)},useInsertionEffect:function(e,t){K=`useInsertionEffect`,N(),Po(4,Ox,e,t)},useLayoutEffect:function(e,t){return K=`useLayoutEffect`,N(),Bo(e,t)},useMemo:function(e,t){K=`useMemo`,N();var n=L.H;L.H=tS;try{return Ko(e,t)}finally{L.H=n}},useReducer:function(e,t,n){K=`useReducer`,N();var r=L.H;L.H=tS;try{return no(e,t,n)}finally{L.H=r}},useRef:function(e){return K=`useRef`,N(),No(e)},useState:function(e){K=`useState`,N();var t=L.H;L.H=tS;try{return ho(e)}finally{L.H=t}},useDebugValue:function(){K=`useDebugValue`,N()},useDeferredValue:function(e,t){return K=`useDeferredValue`,N(),Jo(e,t)},useTransition:function(){return K=`useTransition`,N(),is()},useSyncExternalStore:function(e,t,n){return K=`useSyncExternalStore`,N(),oo(e,t,n)},useId:function(){return K=`useId`,N(),cs()},useActionState:function(e,t){return K=`useActionState`,N(),Do(e,t)},useFormState:function(e,t){return K=`useFormState`,N(),Va(),Do(e,t)},useOptimistic:function(e){return K=`useOptimistic`,N(),go(e)},useHostTransitionStatus:ss,useMemoCache:eo,useCacheRefresh:function(){return K=`useCacheRefresh`,N(),ls()},useEffectEvent:function(e){return K=`useEffectEvent`,N(),Ro(e)}},$x={readContext:function(e){return bi(e)},use:$a,useCallback:function(e,t){return K=`useCallback`,N(),Go(e,t)},useContext:function(e){return K=`useContext`,N(),bi(e)},useEffect:function(e,t){K=`useEffect`,N(),Fo(2048,Ax,e,t)},useImperativeHandle:function(e,t,n){return K=`useImperativeHandle`,N(),Uo(e,t,n)},useInsertionEffect:function(e,t){return K=`useInsertionEffect`,N(),Fo(4,Ox,e,t)},useLayoutEffect:function(e,t){return K=`useLayoutEffect`,N(),Fo(4,kx,e,t)},useMemo:function(e,t){K=`useMemo`,N();var n=L.H;L.H=nS;try{return qo(e,t)}finally{L.H=n}},useReducer:function(e,t,n){K=`useReducer`,N();var r=L.H;L.H=nS;try{return ro(e,t,n)}finally{L.H=r}},useRef:function(){return K=`useRef`,N(),Xa().memoizedState},useState:function(){K=`useState`,N();var e=L.H;L.H=nS;try{return ro(to)}finally{L.H=e}},useDebugValue:function(){K=`useDebugValue`,N()},useDeferredValue:function(e,t){return K=`useDeferredValue`,N(),Yo(e,t)},useTransition:function(){return K=`useTransition`,N(),as()},useSyncExternalStore:function(e,t,n){return K=`useSyncExternalStore`,N(),so(e,t,n)},useId:function(){return K=`useId`,N(),Xa().memoizedState},useFormState:function(e){return K=`useFormState`,N(),Va(),Oo(e)},useActionState:function(e){return K=`useActionState`,N(),Oo(e)},useOptimistic:function(e,t){return K=`useOptimistic`,N(),_o(e,t)},useHostTransitionStatus:ss,useMemoCache:eo,useCacheRefresh:function(){return K=`useCacheRefresh`,N(),Xa().memoizedState},useEffectEvent:function(e){return K=`useEffectEvent`,N(),zo(e)}},eS={readContext:function(e){return bi(e)},use:$a,useCallback:function(e,t){return K=`useCallback`,N(),Go(e,t)},useContext:function(e){return K=`useContext`,N(),bi(e)},useEffect:function(e,t){K=`useEffect`,N(),Fo(2048,Ax,e,t)},useImperativeHandle:function(e,t,n){return K=`useImperativeHandle`,N(),Uo(e,t,n)},useInsertionEffect:function(e,t){return K=`useInsertionEffect`,N(),Fo(4,Ox,e,t)},useLayoutEffect:function(e,t){return K=`useLayoutEffect`,N(),Fo(4,kx,e,t)},useMemo:function(e,t){K=`useMemo`,N();var n=L.H;L.H=rS;try{return qo(e,t)}finally{L.H=n}},useReducer:function(e,t,n){K=`useReducer`,N();var r=L.H;L.H=rS;try{return ao(e,t,n)}finally{L.H=r}},useRef:function(){return K=`useRef`,N(),Xa().memoizedState},useState:function(){K=`useState`,N();var e=L.H;L.H=rS;try{return ao(to)}finally{L.H=e}},useDebugValue:function(){K=`useDebugValue`,N()},useDeferredValue:function(e,t){return K=`useDeferredValue`,N(),Xo(e,t)},useTransition:function(){return K=`useTransition`,N(),os()},useSyncExternalStore:function(e,t,n){return K=`useSyncExternalStore`,N(),so(e,t,n)},useId:function(){return K=`useId`,N(),Xa().memoizedState},useFormState:function(e){return K=`useFormState`,N(),Va(),jo(e)},useActionState:function(e){return K=`useActionState`,N(),jo(e)},useOptimistic:function(e,t){return K=`useOptimistic`,N(),yo(e,t)},useHostTransitionStatus:ss,useMemoCache:eo,useCacheRefresh:function(){return K=`useCacheRefresh`,N(),Xa().memoizedState},useEffectEvent:function(e){return K=`useEffectEvent`,N(),zo(e)}},tS={readContext:function(e){return l(),bi(e)},use:function(e){return c(),$a(e)},useCallback:function(e,t){return K=`useCallback`,c(),za(),Wo(e,t)},useContext:function(e){return K=`useContext`,c(),za(),bi(e)},useEffect:function(e,t){return K=`useEffect`,c(),za(),Io(e,t)},useImperativeHandle:function(e,t,n){return K=`useImperativeHandle`,c(),za(),Ho(e,t,n)},useInsertionEffect:function(e,t){K=`useInsertionEffect`,c(),za(),Po(4,Ox,e,t)},useLayoutEffect:function(e,t){return K=`useLayoutEffect`,c(),za(),Bo(e,t)},useMemo:function(e,t){K=`useMemo`,c(),za();var n=L.H;L.H=tS;try{return Ko(e,t)}finally{L.H=n}},useReducer:function(e,t,n){K=`useReducer`,c(),za();var r=L.H;L.H=tS;try{return no(e,t,n)}finally{L.H=r}},useRef:function(e){return K=`useRef`,c(),za(),No(e)},useState:function(e){K=`useState`,c(),za();var t=L.H;L.H=tS;try{return ho(e)}finally{L.H=t}},useDebugValue:function(){K=`useDebugValue`,c(),za()},useDeferredValue:function(e,t){return K=`useDeferredValue`,c(),za(),Jo(e,t)},useTransition:function(){return K=`useTransition`,c(),za(),is()},useSyncExternalStore:function(e,t,n){return K=`useSyncExternalStore`,c(),za(),oo(e,t,n)},useId:function(){return K=`useId`,c(),za(),cs()},useFormState:function(e,t){return K=`useFormState`,c(),za(),Do(e,t)},useActionState:function(e,t){return K=`useActionState`,c(),za(),Do(e,t)},useOptimistic:function(e){return K=`useOptimistic`,c(),za(),go(e)},useMemoCache:function(e){return c(),eo(e)},useHostTransitionStatus:ss,useCacheRefresh:function(){return K=`useCacheRefresh`,za(),ls()},useEffectEvent:function(e){return K=`useEffectEvent`,c(),za(),Ro(e)}},nS={readContext:function(e){return l(),bi(e)},use:function(e){return c(),$a(e)},useCallback:function(e,t){return K=`useCallback`,c(),N(),Go(e,t)},useContext:function(e){return K=`useContext`,c(),N(),bi(e)},useEffect:function(e,t){K=`useEffect`,c(),N(),Fo(2048,Ax,e,t)},useImperativeHandle:function(e,t,n){return K=`useImperativeHandle`,c(),N(),Uo(e,t,n)},useInsertionEffect:function(e,t){return K=`useInsertionEffect`,c(),N(),Fo(4,Ox,e,t)},useLayoutEffect:function(e,t){return K=`useLayoutEffect`,c(),N(),Fo(4,kx,e,t)},useMemo:function(e,t){K=`useMemo`,c(),N();var n=L.H;L.H=nS;try{return qo(e,t)}finally{L.H=n}},useReducer:function(e,t,n){K=`useReducer`,c(),N();var r=L.H;L.H=nS;try{return ro(e,t,n)}finally{L.H=r}},useRef:function(){return K=`useRef`,c(),N(),Xa().memoizedState},useState:function(){K=`useState`,c(),N();var e=L.H;L.H=nS;try{return ro(to)}finally{L.H=e}},useDebugValue:function(){K=`useDebugValue`,c(),N()},useDeferredValue:function(e,t){return K=`useDeferredValue`,c(),N(),Yo(e,t)},useTransition:function(){return K=`useTransition`,c(),N(),as()},useSyncExternalStore:function(e,t,n){return K=`useSyncExternalStore`,c(),N(),so(e,t,n)},useId:function(){return K=`useId`,c(),N(),Xa().memoizedState},useFormState:function(e){return K=`useFormState`,c(),N(),Oo(e)},useActionState:function(e){return K=`useActionState`,c(),N(),Oo(e)},useOptimistic:function(e,t){return K=`useOptimistic`,c(),N(),_o(e,t)},useMemoCache:function(e){return c(),eo(e)},useHostTransitionStatus:ss,useCacheRefresh:function(){return K=`useCacheRefresh`,N(),Xa().memoizedState},useEffectEvent:function(e){return K=`useEffectEvent`,c(),N(),zo(e)}},rS={readContext:function(e){return l(),bi(e)},use:function(e){return c(),$a(e)},useCallback:function(e,t){return K=`useCallback`,c(),N(),Go(e,t)},useContext:function(e){return K=`useContext`,c(),N(),bi(e)},useEffect:function(e,t){K=`useEffect`,c(),N(),Fo(2048,Ax,e,t)},useImperativeHandle:function(e,t,n){return K=`useImperativeHandle`,c(),N(),Uo(e,t,n)},useInsertionEffect:function(e,t){return K=`useInsertionEffect`,c(),N(),Fo(4,Ox,e,t)},useLayoutEffect:function(e,t){return K=`useLayoutEffect`,c(),N(),Fo(4,kx,e,t)},useMemo:function(e,t){K=`useMemo`,c(),N();var n=L.H;L.H=nS;try{return qo(e,t)}finally{L.H=n}},useReducer:function(e,t,n){K=`useReducer`,c(),N();var r=L.H;L.H=nS;try{return ao(e,t,n)}finally{L.H=r}},useRef:function(){return K=`useRef`,c(),N(),Xa().memoizedState},useState:function(){K=`useState`,c(),N();var e=L.H;L.H=nS;try{return ao(to)}finally{L.H=e}},useDebugValue:function(){K=`useDebugValue`,c(),N()},useDeferredValue:function(e,t){return K=`useDeferredValue`,c(),N(),Xo(e,t)},useTransition:function(){return K=`useTransition`,c(),N(),os()},useSyncExternalStore:function(e,t,n){return K=`useSyncExternalStore`,c(),N(),so(e,t,n)},useId:function(){return K=`useId`,c(),N(),Xa().memoizedState},useFormState:function(e){return K=`useFormState`,c(),N(),jo(e)},useActionState:function(e){return K=`useActionState`,c(),N(),jo(e)},useOptimistic:function(e,t){return K=`useOptimistic`,c(),N(),yo(e,t)},useMemoCache:function(e){return c(),eo(e)},useHostTransitionStatus:ss,useCacheRefresh:function(){return K=`useCacheRefresh`,N(),Xa().memoizedState},useEffectEvent:function(e){return K=`useEffectEvent`,c(),N(),zo(e)}};var iS={},aS=new Set,oS=new Set,sS=new Set,cS=new Set,lS=new Set,uS=new Set,dS=new Set,fS=new Set,pS=new Set,mS=new Set;Object.freeze(iS);var hS={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(e),i=ba(r);i.payload=t,n!=null&&(vs(n),i.callback=n),t=xa(e,i,r),t!==null&&(Oi(r,`this.setState()`,e),ru(t,e,r),Sa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(e),i=ba(r);i.tag=fx,i.payload=t,n!=null&&(vs(n),i.callback=n),t=xa(e,i,r),t!==null&&(Oi(r,`this.replaceState()`,e),ru(t,e,r),Sa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(e),r=ba(n);r.tag=px,t!=null&&(vs(t),r.callback=t),t=xa(e,r,n),t!==null&&(Oi(n,`this.forceUpdate()`,e),ru(t,e,n),Sa(t,e,n))}},gS=null,_S=null,vS=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.`),yS=!1,bS={},xS={},SS={},CS={},wS=!1,TS={},ES={},DS={},OS={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},kS=!1,AS=null;AS=new Set;var jS=!1,MS=null,NS=null,PS=0,FS=new Map,IS={},LS=0,RS=1,zS=2,BS=!1,VS=!1,HS=!1,US=!1,WS=typeof WeakSet==`function`?WeakSet:Set,GS=null,KS=null,qS=null,JS=!1,YS=!1,XS=!1,ZS=!1,QS=null,$S=!1,eC=null,tC=!1,nC=8192,rC={getCacheForType:function(e){var t=bi(Sy),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return bi(Sy).controller.signal},getOwner:function(){return mh}};if(typeof Symbol==`function`&&Symbol.for){var iC=Symbol.for;iC(`selector.component`),iC(`selector.has_pseudo_class`),iC(`selector.role`),iC(`selector.test_id`),iC(`selector.text`)}var aC=[],oC=typeof WeakMap==`function`?WeakMap:Map,sC=0,cC=2,lC=4,uC=0,dC=1,fC=2,pC=3,mC=4,hC=6,gC=5,_C=sC,vC=null,q=null,J=0,yC=0,bC=1,xC=2,SC=3,CC=4,wC=5,TC=6,EC=7,DC=8,OC=9,kC=yC,AC=null,jC=!1,MC=!1,NC=!1,PC=0,FC=uC,IC=0,LC=0,RC=0,zC=0,BC=0,VC=null,HC=null,UC=!1,WC=0,GC=0,KC=300,qC=1/0,JC=500,YC=null,XC=null,ZC=null,QC=0,$C=1,ew=2,tw=3,nw=0,rw=1,iw=2,aw=3,ow=4,sw=5,cw=0,lw=null,uw=null,dw=0,fw=0,pw=-0,mw=null,hw=null,gw=null,_w=null,vw=null,yw=null,bw=QC,xw=null,Sw=50,Cw=0,ww=null,Tw=!1,Ew=!1,Dw=50,Ow=0,kw=null,Aw=!1,jw=!1,Mw=null,Nw=!1,Pw=new Set,Fw={},Iw=null,Lw=null,Rw=!1,zw=!1,Bw=!1,Vw=!1,Hw=0,Uw={};(function(){for(var e=0;e<lv.length;e++){var t=lv[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),ur(n,`on`+t)}ur(tv,`onAnimationEnd`),ur(nv,`onAnimationIteration`),ur(rv,`onAnimationStart`),ur(`dblclick`,`onDoubleClick`),ur(`focusin`,`onFocus`),ur(`focusout`,`onBlur`),ur(iv,`onTransitionRun`),ur(av,`onTransitionStart`),ur(ov,`onTransitionCancel`),ur(sv,`onTransitionEnd`)})(),bt(`onMouseEnter`,[`mouseout`,`mouseover`]),bt(`onMouseLeave`,[`mouseout`,`mouseover`]),bt(`onPointerEnter`,[`pointerout`,`pointerover`]),bt(`onPointerLeave`,[`pointerout`,`pointerover`]),yt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),yt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),yt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),yt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),yt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),yt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Ww=`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(` `),Gw=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Ww)),Kw=`_reactListening`+Math.random().toString(36).slice(2),qw=!1,Jw=!1,Yw=!1,Xw=!1,Zw=!1,Qw=!1,$w=!1,eT={},tT=/\r\n?/g,nT=/\u0000|\uFFFD/g,rT=`http://www.w3.org/1999/xlink`,iT=`http://www.w3.org/XML/1998/namespace`,aT={},oT=`javascript:throw new Error('React form unexpectedly submitted.')`,sT=`suppressHydrationWarning`,cT=`&`,lT=`/&`,uT=`$`,dT=`/$`,fT=`$?`,pT=`$~`,mT=`$!`,hT=`html`,gT=`body`,_T=`head`,vT=`F!`,yT=`F`,bT=`loading`,xT=`style`,ST=0,CT=1,wT=2,TT=null,ET=null,DT=!1,OT={dialog:!0,webview:!0},kT=null,AT=void 0,jT=typeof setTimeout==`function`?setTimeout:void 0,MT=typeof clearTimeout==`function`?clearTimeout:void 0,NT=-1,PT=typeof Promise==`function`?Promise:void 0,FT=typeof requestAnimationFrame==`function`?requestAnimationFrame:jT,IT=typeof queueMicrotask==`function`?queueMicrotask:PT===void 0?jT:function(e){return PT.resolve(null).then(e).catch(af)},LT=500;Nf.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:I({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Nf.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Nf.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)},Ff.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Bf(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Rf(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),oe(this._fragmentFiber,If,e,s,r)}this._eventListeners=a}},Ff.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Bf(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Rf(i.optionsOrUseCapture),oe(this._fragmentFiber,Lf,e,n,i),r.splice(t,1),a!==null&&a()}},Ff.prototype.dispatchEvent=function(e){var t=se(this._fragmentFiber);if(t===null)return!0;t=de(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Rf(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Rf(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Ff.prototype.focus=function(e){x(this._fragmentFiber.child,!0,Vf,e,void 0,void 0)},Ff.prototype.focusLast=function(e){var t=[];x(this._fragmentFiber.child,!0,Hf,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Vf(t[n],e);n--);},Ff.prototype.blur=function(){var e=se(this._fragmentFiber);e!==null&&(e=de(e),e=Yd(e).activeElement,e!==null&&oe(this._fragmentFiber,Uf,e))},Ff.prototype.observeUsing=function(e){var t=!1,n=!1;oe(this._fragmentFiber,function(e){if(e.tag===6)t=!0;else return n=!0;return!1}),t&&!n&&console.error(`observeUsing() was called on a FragmentInstance with only text children. Observers do not work on text nodes.`),this._observers===null&&(this._observers=new Set),this._observers.add(e),oe(this._fragmentFiber,Wf,e)},Ff.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),oe(this._fragmentFiber,Gf,e);for(var n=t=0;n<RT.length;n++){var r=RT[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):RT[t++]=r}RT.length=t}else console.error(`You are calling unobserveUsing() with an observer that is not being observed with this fragment instance. First attach the observer with observeUsing()`)};var RT=[],zT=!1;Ff.prototype.getClientRects=function(){var e=[];return oe(this._fragmentFiber,qf,e),e},Ff.prototype.getRootNode=function(e){var t=se(this._fragmentFiber);return t===null?this:de(t).getRootNode(e)},Ff.prototype.compareDocumentPosition=function(e){var t=se(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];oe(this._fragmentFiber,Hf,n);var r=de(t);if(n.length===0){if(t=r,ce(this._fragmentFiber)){a:{for(n=this._fragmentFiber.return;n!==null;){if(n.tag===4){n=n.stateNode.containerInfo;break a}if(n.tag===3||n.tag===5||n.tag===27)break;n=n.return}n=null}n!=null&&(t=n)}n=this._fragmentFiber;var i=r=t.compareDocumentPosition(e);return t===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=le(n)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=de(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=de(n[0]),i=de(n[n.length-1]);var a=ce(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Jf(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC},Ff.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(`FragmentInstance.scrollIntoView() does not support scrollIntoViewOptions. Use the alignToTop boolean instead.`);var t=[];oe(this._fragmentFiber,Hf,t);var n=!1!==e;if(t.length===0){var r=le(this._fragmentFiber);if(r=n?r[1]||r[0]||se(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=de(r),Yf(e,n);return}if(r=de(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n===null?console.warn(`You are attempting to scroll a FragmentInstance that is only mounted inside a detached DocumentFragment. No scroll was performed.`):n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var i=t[r];i.tag===6?(i=de(i),Yf(i,n)):de(i).scrollIntoView(e),r+=n?-1:1}};var BT=null,VT=0,HT=1,UT=2,WT=3,GT=4,KT=new Map,qT=new Set,JT=R.d;R.d={f:function(){var e=JT.f(),t=cu();return e||t},r:function(e){var t=mt(e);t!==null&&t.tag===5&&t.type===`form`?rs(t):JT.r(e)},D:function(e){JT.D(e),Sp(`dns-prefetch`,e,null)},C:function(e,t){JT.C(e,t),Sp(`preconnect`,e,t)},L:function(e,t,n){JT.L(e,t,n);var r=YT;if(r&&e&&t){var i=`link[rel="preload"][as="`+Nt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Nt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Nt(n.imageSizes)+`"]`)):i+=`[href="`+Nt(e)+`"]`;var a=i;switch(t){case`style`:a=Tp(e);break;case`script`:a=kp(e)}if(!(KT.has(a)||(e=I({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),KT.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Ep(a))||t===`script`&&r.querySelector(Ap(a))))){var o=r.createElement(`link`);Fd(o,`link`,e),t===`style`&&(o[$h]=!0,o.onload=o.onerror=function(){vt(o)}),_t(o),r.head.appendChild(o)}}},m:function(e,t){JT.m(e,t);var n=YT;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Nt(r)+`"][href="`+Nt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=kp(e)}if(!KT.has(a)&&(e=I({rel:`modulepreload`,href:e},t),KT.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ap(a)))return}r=n.createElement(`link`),Fd(r,`link`,e),_t(r),n.head.appendChild(r)}}},X:function(e,t){JT.X(e,t);var n=YT;if(n&&e){var r=gt(n).hoistableScripts,i=kp(e),a=r.get(i);a||(a=n.querySelector(Ap(i)),a||(e=I({src:e,async:!0},t),(t=KT.get(i))&&Pp(e,t),a=n.createElement(`script`),_t(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}},S:function(e,t,n){JT.S(e,t,n);var r=YT;if(r&&e){var i=gt(r).hoistableStyles,a=Tp(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:VT,preload:null};if(o=r.querySelector(Ep(a)))s.loading=HT|GT;else{e=I({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=KT.get(a))&&Np(e,n);var c=o=r.createElement(`link`);_t(c),Fd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=HT}),c.addEventListener(`error`,function(){s.loading|=UT}),s.loading|=GT,Mp(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}},M:function(e,t){JT.M(e,t);var n=YT;if(n&&e){var r=gt(n).hoistableScripts,i=kp(e),a=r.get(i);a||(a=n.querySelector(Ap(i)),a||(e=I({src:e,async:!0,type:`module`},t),(t=KT.get(i))&&Pp(e,t),a=n.createElement(`script`),_t(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}};var YT=typeof document>`u`?null:document,XT=null,ZT=6e4,QT=800,$T=500,eE=0,tE=null,nE=null,rE=Xm,iE={$$typeof:Im,Provider:null,Consumer:null,_currentValue:rE,_currentValue2:rE,_threadCount:0},aE=`%c%s%c`,oE=`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`,sE=``,cE=` `,lE=Function.prototype.bind,uE=!1,dE=null,fE=null,pE=null,mE=null,hE=null,gE=null,_E=null,vE=null,yE=null,bE=null;dE=function(e,r,i,a){r=t(e,r),r!==null&&(i=n(r.memoizedState,i,0,a),r.memoizedState=i,r.baseState=i,e.memoizedProps=I({},e.memoizedProps),i=Nr(e,2),i!==null&&ru(i,e,2))},fE=function(e,n,r){n=t(e,n),n!==null&&(r=a(n.memoizedState,r,0),n.memoizedState=r,n.baseState=r,e.memoizedProps=I({},e.memoizedProps),r=Nr(e,2),r!==null&&ru(r,e,2))},pE=function(e,n,i,a){n=t(e,n),n!==null&&(i=r(n.memoizedState,i,a),n.memoizedState=i,n.baseState=i,e.memoizedProps=I({},e.memoizedProps),i=Nr(e,2),i!==null&&ru(i,e,2))},mE=function(e,t,r){e.pendingProps=n(e.memoizedProps,t,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Nr(e,2),t!==null&&ru(t,e,2)},hE=function(e,t){e.pendingProps=a(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Nr(e,2),t!==null&&ru(t,e,2)},gE=function(e,t,n){e.pendingProps=r(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Nr(e,2),t!==null&&ru(t,e,2)},_E=function(e){var t=Nr(e,2);t!==null&&ru(t,e,2)},vE=function(e){var t=$e(),n=Nr(e,t);n!==null&&ru(n,e,t)},yE=function(e){s=e},bE=function(e){o=e};var xE=!0,SE=null,CE=!1,wE=null,TE=null,EE=null,DE=new Map,OE=new Map,kE=[],AE=`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(` `),jE=null;if(Sm.prototype.render=xm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(`Cannot update an unmounted root.`);var n=arguments;typeof n[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().`):ee(n[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.`):n[1]!==void 0&&console.error(`You passed a second argument to root.render(...) but it only accepts one argument.`),n=e;var r=t.current;Qp(r,eu(r),n,t,null,null)},Sm.prototype.unmount=xm.prototype.unmount=function(){var e=arguments;if(typeof e[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().`),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(_C&(cC|lC))!==sC&&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.`),Qp(e.current,2,null,e,null,null),cu(),t[qh]=null}},Sm.prototype.unstable_scheduleHydration=function(e){if(e){var t=ut();e={blockedOn:null,target:e,priority:t};for(var n=0;n<kE.length&&t!==0&&t<kE[n].priority;n++);kE.splice(n,0,e),n===0&&pm(e)}},(function(){var e=Tm.version;if(e!==`19.3.0`)throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
231
|
-
- react: `+(e+`
|
|
232
|
-
- react-dom: 19.3.0
|
|
233
|
-
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`),R.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(`Unable to find node on an unmounted component.`):(e=Object.keys(e).join(`,`),Error(`Argument appears to not be a ReactComponent. Keys: `+e));return e=ie(t),e=e===null?null:ae(e),e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:L,reconcilerVersion:`19.3.0`};return e.overrideHookState=dE,e.overrideHookStateDeletePath=fE,e.overrideHookStateRenamePath=pE,e.overrideProps=mE,e.overridePropsDeletePath=hE,e.overridePropsRenamePath=gE,e.scheduleUpdate=_E,e.scheduleRetry=vE,e.setErrorHandler=yE,e.setSuspenseHandler=bE,e.scheduleRefresh=v,e.scheduleRoot=_,e.setRefreshHandler=y,e.getCurrentFiber=rm,Ge(e)})()&&t_&&window.top===window.self&&(-1<navigator.userAgent.indexOf(`Chrome`)&&navigator.userAgent.indexOf(`Edge`)===-1||-1<navigator.userAgent.indexOf(`Firefox`))){var ME=window.location.protocol;/^(https?|file):$/.test(ME)&&console.info(`%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools`+(ME===`file:`?`
|
|
234
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:``),`font-weight:bold`)}e.createRoot=function(e,t){if(!ee(e))throw Error(`Target container is not a DOM element.`);Cm(e);var n=!1,r=``,i=Cs,a=ws,o=Ts;return t!=null&&(t.hydrate?console.warn(`hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.`):typeof t==`object`&&t&&t.$$typeof===Am&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
235
|
-
|
|
236
|
-
let root = createRoot(domContainer);
|
|
237
|
-
root.render(<App />);`),!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Xp(e,1,!1,null,null,n,r,null,i,a,o,bm),e[qh]=t.current,_d(e),new xm(t)},e.hydrateRoot=function(e,t,n){if(!ee(e))throw Error(`Target container is not a DOM element.`);Cm(e),t===void 0&&console.error(`Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)`);var r=!1,i=``,a=Cs,o=ws,s=Ts,c=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),t=Xp(e,1,!0,t,n??null,r,i,c,a,o,s,bm),t.context=Zp(null),n=t.current,r=eu(n),r=ot(r),i=ba(r),i.callback=null,xa(n,i,r),Oi(r,`hydrateRoot()`,null),n=r,t.current.lanes=n,tt(t,n),td(t),e[qh]=t.current,_d(e),new Sm(t)},e.version=`19.3.0`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),g=o(((e,t)=>{t.exports=h()})),_=`modulepreload`,v=function(e){return`/`+e},y={},ee=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=v(t,n),t=s(t),t in y)return;y[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:_,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},b=c(f(),1),te=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,ne=/^[\\/]{2}/;function re(e,t){return t+e.replace(/\\/g,`/`)}var ie=`popstate`;function ae(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function oe(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return ue(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:de(t)}return pe(t,n,null,e)}function x(e,t){if(e===!1||e==null)throw Error(t)}function se(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function ce(){return Math.random().toString(36).substring(2,10)}function le(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function ue(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?fe(t):t,state:n,key:t&&t.key||r||ce(),mask:i}}function de({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function fe(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function pe(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=ae(e)?e:ue(h.location,e,t);n&&n(r,e),l=u()+1;let d=le(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=ae(e)?e:ue(h.location,e,t);n&&n(r,e),l=u();let i=le(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return me(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(ie,d),c=e,()=>{i.removeEventListener(ie,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function me(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),x(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:de(t);return i=i.replace(/ $/,`%20`),!n&&ne.test(i)&&(i=r+i),new URL(i,r)}function he(e,t,n=`/`){return ge(e,t,n,!1)}function ge(e,t,n,r,i){let a=Pe((typeof t==`string`?fe(t):t).pathname||`/`,n);if(a==null)return null;let o=i??_e(e),s=null,c=Ne(a);for(let e=0;s==null&&e<o.length;++e)s=ke(o[e],c,r);return s}function _e(e){let t=ve(e);return ye(t),t}function ve(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;x(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Be([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(x(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),ve(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:De(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Me(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of S(e.path))a(e,t,!0,n)}),t}function S(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=S(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function ye(e){e.sort((e,t)=>e.score===t.score?Oe(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var be=/^:[\w-]+$/,xe=3,Se=2,Ce=1,we=10,Te=-2,Ee=e=>e===`*`;function De(e,t){let n=e.split(`/`),r=n.length;return n.some(Ee)&&(r+=Te),t&&(r+=Se),n.filter(e=>!Ee(e)).reduce((e,t)=>e+(be.test(t)?xe:t===``?Ce:we),r)}function Oe(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function ke(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?je(u,l,s.matcher,s.compiledParams):Ae(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Ae({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Be([a,d.pathname]),pathnameBase:He(Be([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Be([a,d.pathnameBase]))}return o}function Ae(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Me(e.path,e.caseSensitive,e.end);return je(e,t,n,r)}function je(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Ve(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Ve(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Me(e,t=!1,n=!0){se(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Ne(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return se(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Pe(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function Fe(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?fe(e):e,a;return n?(n=ze(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?C(n.substring(1),`/`):C(n,t)):a=t,{pathname:a,search:Ue(r),hash:We(i)}}function C(e,t){let n=Ve(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Ie(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Le(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function w(e){let t=Le(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Re(e,t,n,r=!1){let i;typeof e==`string`?i=fe(e):(i={...e},x(!i.pathname||!i.pathname.includes(`?`),Ie(`?`,`pathname`,`search`,i)),x(!i.pathname||!i.pathname.includes(`#`),Ie(`#`,`pathname`,`hash`,i)),x(!i.search||!i.search.includes(`#`),Ie(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Fe(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var ze=e=>e.replace(/[\\/]{2,}/g,`/`),Be=e=>ze(e.join(`/`));function Ve(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var He=e=>Ve(e).replace(/^\/*/,`/`),Ue=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,We=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Ge=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Ke(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function qe(e){return Be(e.map(e=>e.route.path).filter(Boolean))||`/`}var Je=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Ye(e,t){let n=e;if(typeof n!=`string`||!te.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Je)try{let e=new URL(window.location.href),r=ne.test(n)?new URL(re(n,e.protocol)):new URL(n),a=Pe(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{se(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Xe=new URL(`http://localhost`);function Ze(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),Xe)}catch{return Xe}}function Qe(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function $e(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function et(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!Qe(i,n),s=!Qe(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!$e(e,i)||!Qe(i,a)))throw Error(`External navigation is not allowed`)}var tt=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(tt);var nt=[`GET`,...tt];new Set(nt);var rt=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function it(e){try{return rt.includes(new URL(e).protocol)}catch{return!1}}var at=b.createContext(null);at.displayName=`DataRouter`;var ot=b.createContext(null);ot.displayName=`DataRouterState`;var st=b.createContext(!1);function ct(){return b.useContext(st)}var lt=b.createContext({isTransitioning:!1});lt.displayName=`ViewTransition`;var ut=b.createContext(new Map);ut.displayName=`Fetchers`;var dt=b.createContext(null);dt.displayName=`Await`;var ft=b.createContext(null);ft.displayName=`Navigation`;var pt=b.createContext(null);pt.displayName=`Location`;var mt=b.createContext({outlet:null,matches:[],isDataRoute:!1});mt.displayName=`Route`;var ht=b.createContext(null);ht.displayName=`RouteError`;var gt=`REACT_ROUTER_ERROR`,_t=`REDIRECT`,vt=`ROUTE_ERROR_RESPONSE`;function yt(e){if(e.startsWith(`${gt}:${_t}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function bt(e){if(e.startsWith(`${gt}:${vt}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Ge(t.status,t.statusText,t.data)}catch{}}function xt(e,{relative:t}={}){x(St(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=b.useContext(ft),{hash:i,pathname:a,search:o}=kt(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Be([n,a])),r.createHref({pathname:s,search:o,hash:i})}function St(){return b.useContext(pt)!=null}function Ct(){return x(St(),`useLocation() may be used only in the context of a <Router> component.`),b.useContext(pt).location}var wt=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Tt(e){b.useContext(ft).static||b.useLayoutEffect(e)}function Et(){let{isDataRoute:e}=b.useContext(mt);return e?Kt():Dt()}function Dt(){x(St(),`useNavigate() may be used only in the context of a <Router> component.`);let e=b.useContext(at),{basename:t,navigator:n}=b.useContext(ft),{matches:r}=b.useContext(mt),{pathname:i}=Ct(),a=JSON.stringify(w(r)),o=b.useRef(!1);return Tt(()=>{o.current=!0}),b.useCallback((r,s={})=>{if(se(o.current,wt),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Re(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Be([t,c.pathname])),et(typeof r==`string`?r:de(r),n.createHref(c),Ze(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}b.createContext(null);function Ot(){let{matches:e}=b.useContext(mt);return e[e.length-1]?.params??{}}function kt(e,{relative:t}={}){let{matches:n}=b.useContext(mt),{pathname:r}=Ct(),i=JSON.stringify(w(n));return b.useMemo(()=>Re(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function At(e,t){return jt(e,t)}function jt(e,t,n){x(St(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=b.useContext(ft),{matches:i}=b.useContext(mt),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Jt(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
238
|
-
|
|
239
|
-
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=Ct(),d;if(t){let e=typeof t==`string`?fe(t):t;x(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):he(e,{pathname:p});se(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),se(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=Rt(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Be([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Be([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?b.createElement(pt.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function Mt(){let e=Gt(),t=Ke(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=b.createElement(b.Fragment,null,b.createElement(`p`,null,`💿 Hey developer 👋`),b.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,b.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,b.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),b.createElement(b.Fragment,null,b.createElement(`h2`,null,`Unexpected Application Error!`),b.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?b.createElement(`pre`,{style:i},n):null,o)}var Nt=b.createElement(Mt,null),Pt=class extends b.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=bt(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:b.createElement(mt.Provider,{value:this.props.routeContext},b.createElement(ht.Provider,{value:e,children:this.props.component}));return this.context?b.createElement(It,{error:e},t):t}};Pt.contextType=st;var Ft=new WeakMap;function It({children:e,error:t}){let{basename:n,navigator:r}=b.useContext(ft);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=yt(t.digest);if(e){let i=Ft.get(t);if(i)throw i;let a=Ye(e.location,n),o=a.absoluteURL||a.to;if(et(e.location,o,Ze(r),`allow-explicit`),it(o))throw Error(`Invalid redirect location`);if(Je&&!Ft.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Ft.set(t,n),n}}return b.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Lt({routeContext:e,match:t,children:n}){let r=b.useContext(at);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),b.createElement(mt.Provider,{value:e},n)}function Rt(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);x(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:qe(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Nt,o&&(s<0&&c===0?(Jt(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?b.createElement(n.route.Component,null):n.route.element?n.route.element:e,b.createElement(Lt,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?b.createElement(Pt,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function zt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Bt(e){let t=b.useContext(at);return x(t,zt(e)),t}function Vt(e){let t=b.useContext(ot);return x(t,zt(e)),t}function Ht(e){let t=b.useContext(mt);return x(t,zt(e)),t}function Ut(e){let t=Ht(e),n=t.matches[t.matches.length-1];return x(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Wt(){return Ut(`useRouteId`)}function Gt(){let e=b.useContext(ht),t=Vt(`useRouteError`),n=Ut(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Kt(){let{router:e}=Bt(`useNavigate`),t=Ut(`useNavigate`),n=b.useRef(!1);return Tt(()=>{n.current=!0}),b.useCallback(async(r,i={})=>{se(n.current,wt),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var qt={};function Jt(e,t,n){!t&&!qt[e]&&(qt[e]=!0,se(!1,n))}b.memo(Yt);function Yt({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return jt(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Xt(e){x(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function Zt({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){x(!St(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=b.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=fe(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=b.useMemo(()=>{let e=Pe(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return se(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:b.createElement(ft.Provider,{value:c},b.createElement(pt.Provider,{children:t,value:h}))}function Qt({children:e,location:t}){return At($t(e),t)}b.Component;function $t(e,t=[]){let n=[];return b.Children.forEach(e,(e,r)=>{if(!b.isValidElement(e))return;let i=[...t,r];if(e.type===b.Fragment){n.push.apply(n,$t(e.props.children,i));return}x(e.type===Xt,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),x(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=$t(e.props.children,i)),n.push(a)}),n}var en=`get`,tn=`application/x-www-form-urlencoded`;function nn(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function rn(e){return nn(e)&&e.tagName.toLowerCase()===`button`}function an(e){return nn(e)&&e.tagName.toLowerCase()===`form`}function on(e){return nn(e)&&e.tagName.toLowerCase()===`input`}function sn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function cn(e,t){return e.button===0&&(!t||t===`_self`)&&!sn(e)}function ln(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function un(e,t){let n=ln(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var dn=null;function fn(){if(dn===null)try{new FormData(document.createElement(`form`),0),dn=!1}catch{dn=!0}return dn}var pn=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function mn(e){return e!=null&&!pn.has(e)?(se(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${tn}"`),null):e}function hn(e,t){let n,r,i,a,o;if(an(e)){let o=e.getAttribute(`action`);r=o?Pe(o,t):null,n=e.getAttribute(`method`)||en,i=mn(e.getAttribute(`enctype`))||tn,a=new FormData(e)}else if(rn(e)||on(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Pe(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||en,i=mn(e.getAttribute(`formenctype`))||mn(o.getAttribute(`enctype`))||tn,a=new FormData(o,e),!fn()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(nn(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=en,r=null,i=tn,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function gn(e,t){if(e===!1||e==null)throw Error(t)}function _n(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&Pe(i.pathname,t)===`/`?`${Ve(t)}/_root.${r}`:`${Ve(i.pathname)}.${r}`,i}async function vn(e,t){if(e.id in t)return t[e.id];try{let n=await ee(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function yn(e){return e!=null&&typeof e.page==`string`}function bn(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function xn(e,t,n){return En((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await vn(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(bn).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Sn(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Cn(e,t,{includeHydrateFallback:n}={}){return wn(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function wn(e){return[...new Set(e)]}function Tn(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function En(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!yn(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Tn(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Dn(){let e=b.useContext(at);return gn(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function On(){let e=b.useContext(ot);return gn(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var kn=b.createContext(void 0);kn.displayName=`FrameworkContext`;function An(){let e=b.useContext(kn);return gn(e,`You must render this element inside a <HydratedRouter> element`),e}function jn(e,t){let n=b.useContext(kn),[r,i]=b.useState(!1),[a,o]=b.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=b.useRef(null);b.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),b.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Mn(s,p),onBlur:Mn(c,m),onMouseEnter:Mn(l,p),onMouseLeave:Mn(u,m),onTouchStart:Mn(d,p)}]:[a,f,{}]:[!1,f,{}]}function Mn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Nn({page:e,...t}){let n=ct(),{nonce:r}=An(),{router:i}=Dn(),a=b.useMemo(()=>he(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?b.createElement(Fn,{page:e,matches:a,...t}):b.createElement(In,{page:e,matches:a,...t})):null}function Pn(e){let{manifest:t,routeModules:n}=An(),[r,i]=b.useState([]);return b.useEffect(()=>{let r=!1;return xn(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Fn({page:e,matches:t,...n}){let r=Ct(),{future:i}=An(),{basename:a}=Dn(),o=b.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=_n(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return b.createElement(b.Fragment,null,o.map(e=>b.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function In({page:e,matches:t,...n}){let r=Ct(),{future:i,manifest:a,routeModules:o}=An(),{basename:s}=Dn(),{loaderData:c,matches:l}=On(),u=b.useMemo(()=>Sn(e,t,l,a,r,`data`),[e,t,l,a,r]),d=b.useMemo(()=>Sn(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=b.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=_n(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=b.useMemo(()=>Cn(d,a),[d,a]),m=Pn(d);return b.createElement(b.Fragment,null,f.map(e=>b.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>b.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>b.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Ln(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}b.Component;var Rn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Rn&&(window.__reactRouterVersion=`7.18.4`)}catch{}function zn({basename:e,children:t,useTransitions:n,window:r}){let i=b.useRef();i.current??=oe({window:r,v5Compat:!0});let a=i.current,[o,s]=b.useState({action:a.action,location:a.location}),c=b.useCallback(e=>{n===!1?s(e):b.startTransition(()=>s(e))},[n]);return b.useLayoutEffect(()=>a.listen(c),[a,c]),b.createElement(Zt,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var Bn=b.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=b.useContext(ft),v=typeof l==`string`&&te.test(l),y=Ye(l,h);l=y.to;let ee=xt(l,{relative:r}),ne=Ct(),re=null;if(o){let e=Re(o,[],ne.mask?ne.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Be([h,e.pathname])),re=g.createHref(e)}let[ie,ae,oe]=jn(n,p),x=Gn(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function se(t){e&&e(t),t.defaultPrevented||x(t)}let ce=!(y.isExternal||i),le=b.createElement(`a`,{...p,...oe,href:(ce?re:void 0)||y.absoluteURL||ee,onClick:ce?se:e,ref:Ln(m,ae),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return ie&&!v?b.createElement(b.Fragment,null,le,b.createElement(Nn,{page:ee})):le});Bn.displayName=`Link`;var Vn=b.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=kt(a,{relative:c.relative}),d=Ct(),f=b.useContext(ot),{navigator:p,basename:m}=b.useContext(ft),h=f!=null&&Zn(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=Pe(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,ee=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,te=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),ne={isActive:ee,isPending:te,isTransitioning:h},re=ee?e:void 0,ie;ie=typeof n==`function`?n(ne):[n,ee?`active`:null,te?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let ae=typeof i==`function`?i(ne):i;return b.createElement(Bn,{...c,"aria-current":re,className:ie,ref:l,style:ae,to:a,viewTransition:o},typeof s==`function`?s(ne):s)});Vn.displayName=`NavLink`;var Hn=b.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=en,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=b.useContext(ft),g=Yn(),_=Xn(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&te.test(s);return b.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?b.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Hn.displayName=`Form`;function Un(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Wn(e){let t=b.useContext(at);return x(t,Un(e)),t}function Gn(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Et(),d=Ct(),f=kt(e,{relative:o});return b.useCallback(p=>{if(cn(p,t)){p.preventDefault();let t=n===void 0?de(d)===de(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?b.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function Kn(e){se(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=b.useRef(ln(e)),n=b.useRef(!1),r=Ct(),i=b.useMemo(()=>un(r.search,n.current?null:t.current),[r.search]),a=Et();return[i,b.useCallback((e,t)=>{let r=ln(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var qn=0,Jn=()=>`__${String(++qn)}__`;function Yn(){let{router:e}=Wn(`useSubmit`),{basename:t}=b.useContext(ft),n=Wt(),r=e.fetch,i=e.navigate;return b.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=hn(e,t);if(a.navigate===!1){let e=a.fetcherKey||Jn();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Xn(e,{relative:t}={}){let{basename:n}=b.useContext(ft),r=b.useContext(mt);x(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...kt(e||`.`,{relative:t})},o=Ct();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Be([n,a.pathname])),de(a)}function Zn(e,{relative:t}={}){let n=b.useContext(lt);x(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Wn(`useViewTransitionState`),i=kt(e,{relative:t});if(!n.isTransitioning)return!1;let a=Pe(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Pe(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ae(i.pathname,o)!=null||Ae(i.pathname,a)!=null}var Qn=g();function $n(e){return e?.agent.name??e?.agent.id??e?.agent.kind??`adapter`}var er=o((e=>{(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case ee:return`Profiler`;case y:return`StrictMode`;case re:return`Suspense`;case ie:return`SuspenseList`;case x:return`Activity`;case se:return`ViewTransition`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case _:return`Portal`;case te:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case ne:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ae:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case oe:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===v)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===oe)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=le.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(ue.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){pe||(pe=!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)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function l(){var e=t(this.type);return me[e]||(me[e]=!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.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:g,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var f=n.children;if(f!==void 0){if(o){if(de(f)){for(o=0;o<f.length;o++)p(f[o]);Object.freeze&&Object.freeze(f)}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 p(f)}if(ue.call(n,`key`)){f=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,_e[f+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
240
|
-
let props = %s;
|
|
241
|
-
<%s {...props} />
|
|
242
|
-
React keys must be passed directly to JSX without using spread:
|
|
243
|
-
let props = %s;
|
|
244
|
-
<%s key={someKey} {...props} />`,o,f,m,f),_e[f+o]=!0)}if(f=null,i!==void 0&&(r(i),f=``+i),s(n)&&(r(n.key),f=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return f&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,f,i,a(),l,d)}function p(e){m(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===oe&&(e._payload.status===`fulfilled`?m(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function m(e){return typeof e==`object`&&!!e&&e.$$typeof===g}var h=f(),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),ee=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),te=Symbol.for(`react.context`),ne=Symbol.for(`react.forward_ref`),re=Symbol.for(`react.suspense`),ie=Symbol.for(`react.suspense_list`),ae=Symbol.for(`react.memo`),oe=Symbol.for(`react.lazy`),x=Symbol.for(`react.activity`),se=Symbol.for(`react.view_transition`),ce=Symbol.for(`react.client.reference`),le=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=Object.prototype.hasOwnProperty,de=Array.isArray,fe=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(e){return e()}};var pe,me={},he=h.react_stack_bottom_frame.bind(h,o)(),ge=fe(i(o)),_e={};e.Fragment=v,e.jsxDEV=function(e,t,n,r){var a=1e4>le.recentlyCreatedOwnerStacks++;if(a){var o=Error.stackTraceLimit;Error.stackTraceLimit=10;var s=Error(`react-stack-top-frame`);Error.stackTraceLimit=o}else s=he;return d(e,t,n,r,s,a?fe(i(e)):ge)}})()})),T=o(((e,t)=>{t.exports=er()}))(),tr=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/components/AgentRow.tsx`;function nr({entries:e}){let t=e[0];return(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`td`,{className:`mono`,children:t.agent.id??`—`},void 0,!1,{fileName:tr,lineNumber:7,columnNumber:7},this),(0,T.jsxDEV)(`td`,{children:$n(t)},void 0,!1,{fileName:tr,lineNumber:8,columnNumber:7},this),(0,T.jsxDEV)(`td`,{children:t.agent.kind},void 0,!1,{fileName:tr,lineNumber:9,columnNumber:7},this),(0,T.jsxDEV)(`td`,{children:t.agent.runtimes.map(e=>`${e.name} (${e.kind})`).join(`, `)||`adapter default`},void 0,!1,{fileName:tr,lineNumber:10,columnNumber:7},this),(0,T.jsxDEV)(`td`,{children:e.length},void 0,!1,{fileName:tr,lineNumber:15,columnNumber:7},this)]},void 0,!0,{fileName:tr,lineNumber:6,columnNumber:5},this)}var rr=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/components/Empty.tsx`;function ir({message:e}){return(0,T.jsxDEV)(`div`,{className:`empty`,children:(0,T.jsxDEV)(`p`,{children:e},void 0,!1,{fileName:rr,lineNumber:4,columnNumber:7},this)},void 0,!1,{fileName:rr,lineNumber:3,columnNumber:5},this)}var ar=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/components/AgentTable.tsx`;function or({catalog:e}){let t=(0,b.useMemo)(()=>{let t=new Map;for(let n of e){let e=n.agent.id??$n(n);t.set(e,[...t.get(e)??[],n])}return[...t.values()]},[e]);return t.length?(0,T.jsxDEV)(`div`,{className:`table-wrap`,children:(0,T.jsxDEV)(`table`,{children:[(0,T.jsxDEV)(`thead`,{children:(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`th`,{children:`ID`},void 0,!1,{fileName:ar,lineNumber:21,columnNumber:13},this),(0,T.jsxDEV)(`th`,{children:`Agent`},void 0,!1,{fileName:ar,lineNumber:22,columnNumber:13},this),(0,T.jsxDEV)(`th`,{children:`Kind`},void 0,!1,{fileName:ar,lineNumber:23,columnNumber:13},this),(0,T.jsxDEV)(`th`,{children:`Runtimes`},void 0,!1,{fileName:ar,lineNumber:24,columnNumber:13},this),(0,T.jsxDEV)(`th`,{children:`Evals`},void 0,!1,{fileName:ar,lineNumber:25,columnNumber:13},this)]},void 0,!0,{fileName:ar,lineNumber:20,columnNumber:11},this)},void 0,!1,{fileName:ar,lineNumber:19,columnNumber:9},this),(0,T.jsxDEV)(`tbody`,{children:t.map(e=>(0,T.jsxDEV)(nr,{entries:e},e[0].agent.id??$n(e[0]),!1,{fileName:ar,lineNumber:30,columnNumber:13},this))},void 0,!1,{fileName:ar,lineNumber:28,columnNumber:9},this)]},void 0,!0,{fileName:ar,lineNumber:18,columnNumber:7},this)},void 0,!1,{fileName:ar,lineNumber:17,columnNumber:5},this):(0,T.jsxDEV)(ir,{message:`No agents are registered.`},void 0,!1,{fileName:ar,lineNumber:15,columnNumber:30},this)}var sr=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/components/EvalDetail.tsx`;function cr({catalog:e,path:t}){let n=e.find(e=>e.path===t);return n?(0,T.jsxDEV)(`section`,{className:`card`,children:[(0,T.jsxDEV)(`p`,{className:`mono`,children:n.path},void 0,!1,{fileName:sr,lineNumber:15,columnNumber:7},this),(0,T.jsxDEV)(`h2`,{children:n.name??n.id},void 0,!1,{fileName:sr,lineNumber:16,columnNumber:7},this),(0,T.jsxDEV)(`table`,{className:`event-fields`,children:(0,T.jsxDEV)(`tbody`,{children:[(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`td`,{children:`agent`},void 0,!1,{fileName:sr,lineNumber:20,columnNumber:13},this),(0,T.jsxDEV)(`td`,{children:$n(n)},void 0,!1,{fileName:sr,lineNumber:21,columnNumber:13},this)]},void 0,!0,{fileName:sr,lineNumber:19,columnNumber:11},this),(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`td`,{children:`runtimes`},void 0,!1,{fileName:sr,lineNumber:24,columnNumber:13},this),(0,T.jsxDEV)(`td`,{children:n.agent.runtimes.map(e=>`${e.name} (${e.kind})`).join(`, `)||`default`},void 0,!1,{fileName:sr,lineNumber:25,columnNumber:13},this)]},void 0,!0,{fileName:sr,lineNumber:23,columnNumber:11},this),(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`td`,{children:`trials`},void 0,!1,{fileName:sr,lineNumber:32,columnNumber:13},this),(0,T.jsxDEV)(`td`,{children:n.trialCount},void 0,!1,{fileName:sr,lineNumber:33,columnNumber:13},this)]},void 0,!0,{fileName:sr,lineNumber:31,columnNumber:11},this),(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`td`,{children:`scorers`},void 0,!1,{fileName:sr,lineNumber:36,columnNumber:13},this),(0,T.jsxDEV)(`td`,{children:n.scorers.map(e=>`${e.name} (${e.kind})`).join(`, `)||`none`},void 0,!1,{fileName:sr,lineNumber:37,columnNumber:13},this)]},void 0,!0,{fileName:sr,lineNumber:35,columnNumber:11},this)]},void 0,!0,{fileName:sr,lineNumber:18,columnNumber:9},this)},void 0,!1,{fileName:sr,lineNumber:17,columnNumber:7},this)]},void 0,!0,{fileName:sr,lineNumber:14,columnNumber:5},this):(0,T.jsxDEV)(ir,{message:`Eval not found: ${t}`},void 0,!1,{fileName:sr,lineNumber:12,columnNumber:27},this)}var lr=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/components/FixtureRow.tsx`;function ur({fixture:e}){return(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`td`,{children:e.source},void 0,!1,{fileName:lr,lineNumber:9,columnNumber:7},this),(0,T.jsxDEV)(`td`,{children:e.destination??`—`},void 0,!1,{fileName:lr,lineNumber:10,columnNumber:7},this),(0,T.jsxDEV)(`td`,{children:e.visibility??`dynamic`},void 0,!1,{fileName:lr,lineNumber:11,columnNumber:7},this),(0,T.jsxDEV)(`td`,{className:`mono`,children:e.path},void 0,!1,{fileName:lr,lineNumber:12,columnNumber:7},this)]},void 0,!0,{fileName:lr,lineNumber:8,columnNumber:5},this)}var dr=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/components/FixtureTable.tsx`;function fr({catalog:e}){let t=e.flatMap(e=>e.fixtures.map(t=>({...t,path:e.path})));return t.length?(0,T.jsxDEV)(`div`,{className:`table-wrap`,children:(0,T.jsxDEV)(`table`,{children:[(0,T.jsxDEV)(`thead`,{children:(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`th`,{children:`Source`},void 0,!1,{fileName:dr,lineNumber:17,columnNumber:13},this),(0,T.jsxDEV)(`th`,{children:`Destination`},void 0,!1,{fileName:dr,lineNumber:18,columnNumber:13},this),(0,T.jsxDEV)(`th`,{children:`Visibility`},void 0,!1,{fileName:dr,lineNumber:19,columnNumber:13},this),(0,T.jsxDEV)(`th`,{children:`Used by`},void 0,!1,{fileName:dr,lineNumber:20,columnNumber:13},this)]},void 0,!0,{fileName:dr,lineNumber:16,columnNumber:11},this)},void 0,!1,{fileName:dr,lineNumber:15,columnNumber:9},this),(0,T.jsxDEV)(`tbody`,{children:t.map((e,t)=>(0,T.jsxDEV)(ur,{fixture:e},`${e.path}-${t}`,!1,{fileName:dr,lineNumber:25,columnNumber:13},this))},void 0,!1,{fileName:dr,lineNumber:23,columnNumber:9},this)]},void 0,!0,{fileName:dr,lineNumber:14,columnNumber:7},this)},void 0,!1,{fileName:dr,lineNumber:13,columnNumber:5},this):(0,T.jsxDEV)(ir,{message:`No fixtures are registered.`},void 0,!1,{fileName:dr,lineNumber:11,columnNumber:32},this)}var pr=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/components/SortableTable.tsx`;function mr({label:e,sortKey:t,sort:n,onSort:r}){let i=n.key===t;return(0,T.jsxDEV)(`th`,{scope:`col`,"aria-sort":i?n.direction===`asc`?`ascending`:`descending`:void 0,children:(0,T.jsxDEV)(`button`,{type:`button`,className:`table-sort`,onClick:()=>r(t),children:[e,` `,i?n.direction===`asc`?`↑`:`↓`:`↕`]},void 0,!0,{fileName:pr,lineNumber:28,columnNumber:7},this)},void 0,!1,{fileName:pr,lineNumber:18,columnNumber:5},this)}function hr(e,t,n){return(0,b.useMemo)(()=>{let r=[...e];return r.sort((e,r)=>{let i=n(e,t.key),a=n(r,t.key),o=typeof i==`number`&&typeof a==`number`?i-a:String(i??``).localeCompare(String(a??``),void 0,{numeric:!0,sensitivity:`base`});return t.direction===`asc`?o:-o}),r},[e,t,n])}var gr=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/components/TrialTable.tsx`;function _r({run:e,trials:t,onTrial:n}){let[r,i]=(0,b.useState)({key:`index`,direction:`asc`}),a=(0,b.useMemo)(()=>[...new Set(t.flatMap(e=>(e.scores??[]).map(e=>e.name)))].sort(),[t]),o=hr(t,r,(e,t)=>t.startsWith(`score:`)?(e.scores??[]).find(e=>e.name===t.slice(6))?.value:{index:e.index,status:e.status,aggregate:e.score,runtime:e.durationMs,started:e.startedAt}[t]),s=e=>i(t=>t.key===e?{key:e,direction:t.direction===`asc`?`desc`:`asc`}:{key:e,direction:`asc`});return(0,T.jsxDEV)(`table`,{className:`nested data-table`,children:[(0,T.jsxDEV)(`thead`,{children:(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(mr,{label:`Trial`,sortKey:`index`,sort:r,onSort:s},void 0,!1,{fileName:gr,lineNumber:55,columnNumber:11},this),(0,T.jsxDEV)(mr,{label:`Status`,sortKey:`status`,sort:r,onSort:s},void 0,!1,{fileName:gr,lineNumber:61,columnNumber:11},this),(0,T.jsxDEV)(mr,{label:`Aggregate`,sortKey:`aggregate`,sort:r,onSort:s},void 0,!1,{fileName:gr,lineNumber:67,columnNumber:11},this),a.map(e=>(0,T.jsxDEV)(mr,{label:e,sortKey:`score:${e}`,sort:r,onSort:s},e,!1,{fileName:gr,lineNumber:74,columnNumber:13},this)),(0,T.jsxDEV)(mr,{label:`Runtime`,sortKey:`runtime`,sort:r,onSort:s},void 0,!1,{fileName:gr,lineNumber:82,columnNumber:11},this),(0,T.jsxDEV)(mr,{label:`Started`,sortKey:`started`,sort:r,onSort:s},void 0,!1,{fileName:gr,lineNumber:88,columnNumber:11},this),(0,T.jsxDEV)(`th`,{children:`Details`},void 0,!1,{fileName:gr,lineNumber:94,columnNumber:11},this)]},void 0,!0,{fileName:gr,lineNumber:54,columnNumber:9},this)},void 0,!1,{fileName:gr,lineNumber:53,columnNumber:7},this),(0,T.jsxDEV)(`tbody`,{children:o.map(t=>(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`td`,{children:t.index+1},void 0,!1,{fileName:gr,lineNumber:100,columnNumber:13},this),(0,T.jsxDEV)(`td`,{children:(0,T.jsxDEV)(`span`,{className:`status ${t.status}`,children:t.status},void 0,!1,{fileName:gr,lineNumber:102,columnNumber:15},this)},void 0,!1,{fileName:gr,lineNumber:101,columnNumber:13},this),(0,T.jsxDEV)(`td`,{children:t.score??`—`},void 0,!1,{fileName:gr,lineNumber:104,columnNumber:13},this),a.map(e=>(0,T.jsxDEV)(`td`,{children:(t.scores??[]).find(t=>t.name===e)?.value??`—`},e,!1,{fileName:gr,lineNumber:106,columnNumber:15},this)),(0,T.jsxDEV)(`td`,{children:t.durationMs===void 0?`—`:`${t.durationMs}ms`},void 0,!1,{fileName:gr,lineNumber:111,columnNumber:13},this),(0,T.jsxDEV)(`td`,{children:new Date(t.startedAt).toLocaleString()},void 0,!1,{fileName:gr,lineNumber:114,columnNumber:13},this),(0,T.jsxDEV)(`td`,{children:(0,T.jsxDEV)(`button`,{onClick:()=>n(e,t),children:`View trial →`},void 0,!1,{fileName:gr,lineNumber:116,columnNumber:15},this)},void 0,!1,{fileName:gr,lineNumber:115,columnNumber:13},this)]},t.id,!0,{fileName:gr,lineNumber:99,columnNumber:11},this))},void 0,!1,{fileName:gr,lineNumber:97,columnNumber:7},this)]},void 0,!0,{fileName:gr,lineNumber:52,columnNumber:5},this)}var vr=e=>typeof e==`function`,E=function(e,t){if(typeof e==`function`)return function(){return e(arguments)?t.apply(this,arguments):e=>t(e,...arguments)};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};case 4:return function(e,n,r,i){return arguments.length>=4?t(e,n,r,i):function(i){return t(i,e,n,r)}};case 5:return function(e,n,r,i,a){return arguments.length>=5?t(e,n,r,i,a):function(a){return t(a,e,n,r,i)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}},yr=e=>e,br=e=>()=>e,xr=br(!0),Sr=br(!1),Cr=br(void 0),wr=Cr;function D(e,t,n,r,i,a,o,s,c){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return a(i(r(n(t(e)))));case 7:return o(a(i(r(n(t(e))))));case 8:return s(o(a(i(r(n(t(e)))))));case 9:return c(s(o(a(i(r(n(t(e))))))));default:{let e=arguments[0];for(let t=1;t<arguments.length;t++)e=arguments[t](e);return e}}}var Tr=e=>(t,n)=>t===n||e(t,n),Er=E(2,(e,t)=>Tr((n,r)=>e(t(n),t(r)))),Dr=e=>Tr((t,n)=>{if(t.length!==n.length)return!1;for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1;return!0}),Or=`effect/GlobalValue`,kr,Ar=(e,t)=>(kr||=(globalThis[Or]??=new Map,globalThis[Or]),kr.has(e)||kr.set(e,t()),kr.get(e)),jr=e=>typeof e==`string`,Mr=e=>typeof e==`number`,Nr=e=>typeof e==`boolean`,Pr=e=>typeof e==`bigint`,Fr=e=>typeof e==`symbol`,Ir=vr,Lr=e=>e===void 0,Rr=e=>!1,zr=e=>typeof e==`object`&&!!e,Br=e=>zr(e)||Ir(e),O=E(2,(e,t)=>Br(e)&&t in e),Vr=E(2,(e,t)=>O(e,`_tag`)&&e._tag===t),Hr=e=>e==null,Ur=e=>e!=null,Wr=e=>e instanceof Date,Gr=e=>typeof e==`string`||O(e,Symbol.iterator),Kr=e=>zr(e)&&!Array.isArray(e),qr=e=>O(e,`then`)&&Ir(e.then),Jr=e=>`BUG: ${e} - please report an issue at https://github.com/Effect-TS/effect/issues`,Yr=class e{self;called=!1;constructor(e){this.self=e}next(e){return this.called?{value:e,done:!0}:(this.called=!0,{value:this.self,done:!1})}return(e){return{value:e,done:!0}}throw(e){throw e}[Symbol.iterator](){return new e(this.self)}},Xr=335903614,Zr=4150755663,Qr=1481765933,$r=1284865837,ei=9007199254740992,ti=134217728,ni=class{_state;constructor(e,t,n,r){return Hr(t)&&Hr(e)?(t=Math.random()*4294967295>>>0,e=0):Hr(t)&&(t=e,e=0),Hr(r)&&Hr(n)?(r=this._state?this._state[3]:Zr,n=this._state?this._state[2]:Xr):Hr(r)&&(r=n,n=0),this._state=new Int32Array([0,0,n>>>0,((r||0)|1)>>>0]),this._next(),ii(this._state,this._state[0],this._state[1],e>>>0,t>>>0),this._next(),this}getState(){return[this._state[0],this._state[1],this._state[2],this._state[3]]}setState(e){this._state[0]=e[0],this._state[1]=e[1],this._state[2]=e[2],this._state[3]=e[3]|1}integer(e){return Math.round(this.number()*(2**53-1))%e}number(){let e=(this._next()&67108863)*1,t=(this._next()&134217727)*1;return(e*ti+t)/ei}_next(){let e=this._state[0]>>>0,t=this._state[1]>>>0;ri(this._state,e,t,Qr,$r),ii(this._state,this._state[0],this._state[1],this._state[2],this._state[3]);let n=e>>>18,r=(t>>>18|e<<14)>>>0;n=(n^e)>>>0,r=(r^t)>>>0;let i=(r>>>27|n<<5)>>>0,a=e>>>27,o=(-a>>>0&31)>>>0;return(i>>>a|i<<o)>>>0}};function ri(e,t,n,r,i){let a=(n>>>16)*(i&65535)>>>0,o=(n&65535)*(i>>>16)>>>0,s=(n&65535)*(i&65535)>>>0,c=(n>>>16)*(i>>>16)+((o>>>16)+(a>>>16))>>>0;o=o<<16>>>0,s=s+o>>>0,s>>>0<o>>>0&&(c=c+1>>>0),a=a<<16>>>0,s=s+a>>>0,s>>>0<a>>>0&&(c=c+1>>>0),c=c+Math.imul(n,r)>>>0,c=c+Math.imul(t,i)>>>0,e[0]=c,e[1]=s}function ii(e,t,n,r,i){let a=t+r>>>0,o=n+i>>>0;o>>>0<n>>>0&&(a=a+1|0),e[0]=a,e[1]=o}var ai=Symbol.for(`effect/Utils/YieldWrap`),oi=class{#e;constructor(e){this.#e=e}[ai](){return this.#e}};function si(e){if(typeof e==`object`&&e&&ai in e)return e[ai]();throw Error(Jr(`yieldWrapGet`))}var ci=Ar(`effect/Utils/isStructuralRegion`,()=>({enabled:!1,tester:void 0})),li={effect_internal_function:e=>e()},ui=li.effect_internal_function(()=>Error().stack)?.includes(`effect_internal_function`)===!0?li.effect_internal_function:{effect_internal_function:e=>{try{return e()}finally{}}}.effect_internal_function;(function*(){}).constructor;var di=Ar(Symbol.for(`effect/Hash/randomHashCache`),()=>new WeakMap),k=Symbol.for(`effect/Hash`),A=e=>{if(ci.enabled===!0)return 0;switch(typeof e){case`number`:return gi(e);case`bigint`:return _i(e.toString(10));case`boolean`:return _i(String(e));case`symbol`:return _i(String(e));case`string`:return _i(e);case`undefined`:return _i(`undefined`);case`function`:case`object`:return e===null?_i(`null`):e instanceof Date?Number.isNaN(e.getTime())?_i(`Invalid Date`):A(e.toISOString()):e instanceof URL?A(e.href):hi(e)?e[k]():fi(e);default:throw Error(`BUG: unhandled typeof ${typeof e} - please report an issue at https://github.com/Effect-TS/effect/issues`)}},fi=e=>(di.has(e)||di.set(e,gi(Math.floor(Math.random()*(2**53-1)))),di.get(e)),pi=e=>t=>t*53^e,mi=e=>e&3221225471|e>>>1&1073741824,hi=e=>O(e,k),gi=e=>{if(e!==e||e===1/0)return 0;let t=e|0;for(t!==e&&(t^=e*4294967295);e>4294967295;)t^=e/=4294967295;return mi(t)},_i=e=>{let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return mi(t)},vi=(e,t)=>{let n=12289;for(let r=0;r<t.length;r++)n^=D(_i(t[r]),pi(A(e[t[r]])));return mi(n)},yi=e=>vi(e,Object.keys(e)),bi=e=>{let t=6151;for(let n=0;n<e.length;n++)t=D(t,pi(A(e[n])));return mi(t)},xi=function(){if(arguments.length===1){let e=arguments[0];return function(t){return Object.defineProperty(e,k,{value(){return t},enumerable:!1}),t}}let e=arguments[0],t=arguments[1];return Object.defineProperty(e,k,{value(){return t},enumerable:!1}),t},Si=Symbol.for(`effect/Equal`);function Ci(){return arguments.length===1?e=>wi(e,arguments[0]):wi(arguments[0],arguments[1])}function wi(e,t){if(e===t)return!0;let n=typeof e;if(n!==typeof t)return!1;if(n===`object`||n===`function`){if(e!==null&&t!==null){if(Ti(e)&&Ti(t))return A(e)===A(t)&&e[Si](t)?!0:ci.enabled&&ci.tester?ci.tester(e,t):!1;if(e instanceof Date&&t instanceof Date){let n=e.getTime(),r=t.getTime();return n===r||Number.isNaN(n)&&Number.isNaN(r)}if(e instanceof URL&&t instanceof URL)return e.href===t.href}if(ci.enabled){if(e===null||t===null)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>wi(e,t[n]));if(Object.getPrototypeOf(e)===Object.prototype&&Object.getPrototypeOf(t)===Object.prototype){let n=Object.keys(e),r=Object.keys(t);if(n.length===r.length){for(let r of n)if(!(r in t&&wi(e[r],t[r])))return ci.tester?ci.tester(e,t):!1;return!0}}return ci.tester?ci.tester(e,t):!1}}return ci.enabled&&ci.tester?ci.tester(e,t):!1}var Ti=e=>O(e,Si),Ei=()=>Ci,Di=Symbol.for(`nodejs.util.inspect.custom`),Oi=e=>{try{if(O(e,`toJSON`)&&Ir(e.toJSON)&&e.toJSON.length===0)return e.toJSON();if(Array.isArray(e))return e.map(Oi)}catch{return{}}return Vi(e)},ki=`[Circular]`;function Ai(e){try{return e.toISOString()}catch{return`Invalid Date`}}function ji(e){try{let t=e.toString();return typeof t==`string`?t:String(t)}catch{return`[toString threw]`}}function Mi(e){return jr(e)?JSON.stringify(e):String(e)}function Ni(e,t){let n=t?.space??0,r=new WeakSet,i=n?Mr(n)?` `.repeat(n):n:``,a=e=>i.repeat(e),o=(e,t)=>{let n=e?.constructor;return n&&n!==Object.prototype.constructor&&n.name?`${n.name}(${t})`:t},s=e=>{try{return Reflect.ownKeys(e)}catch{return[`[ownKeys threw]`]}};function c(e,n=0){if(Array.isArray(e)){if(r.has(e))return ki;if(r.add(e),!i||e.length<=1)return`[${e.map(e=>c(e,n)).join(`,`)}]`;let t=e.map(e=>c(e,n+1)).join(`,
|
|
245
|
-
`+a(n+1));return`[\n${a(n+1)}${t}\n${a(n)}]`}if(Wr(e))return Ai(e);if(!t?.ignoreToString&&O(e,`toString`)&&Ir(e.toString)&&e.toString!==Object.prototype.toString&&e.toString!==Array.prototype.toString){let t=ji(e);return e instanceof Error&&e.cause?`${t} (cause: ${c(e.cause,n)})`:t}if(jr(e))return JSON.stringify(e);if(Mr(e)||e==null||Nr(e)||Fr(e))return String(e);if(Pr(e))return String(e)+`n`;if(e instanceof Set||e instanceof Map)return r.has(e)?ki:(r.add(e),`${e.constructor.name}(${c(Array.from(e),n)})`);if(Br(e)){if(r.has(e))return ki;r.add(e);let t=s(e);if(!i||t.length<=1){let r=`{${t.map(t=>`${Mi(t)}:${c(e[t],n)}`).join(`,`)}}`;return o(e,r)}let l=`{\n${t.map(t=>`${a(n+1)}${Mi(t)}: ${c(e[t],n+1)}`).join(`,
|
|
246
|
-
`)}\n${a(n)}}`;return o(e,l)}return String(e)}return c(e,0)}var Pi=e=>JSON.stringify(e,null,2),Fi=(e,t=2)=>{if(typeof e==`string`)return e;try{return typeof e==`object`?Ii(e,t):String(e)}catch{return String(e)}},Ii=(e,t)=>{let n=[],r=JSON.stringify(e,(e,t)=>typeof t==`object`&&t?n.includes(t)?void 0:n.push(t)&&(zi.fiberRefs!==void 0&&Ri(t)?t[Li](zi.fiberRefs):t):t,t);return n=void 0,r},Li=Symbol.for(`effect/Inspectable/Redactable`),Ri=e=>typeof e==`object`&&!!e&&Li in e,zi=Ar(`effect/Inspectable/redactableState`,()=>({fiberRefs:void 0})),Bi=(e,t)=>{let n=zi.fiberRefs;zi.fiberRefs=e;try{return t()}finally{zi.fiberRefs=n}},Vi=e=>Ri(e)&&zi.fiberRefs!==void 0?e[Li](zi.fiberRefs):e,j=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;e<r;e++)n=t[e](n);return n}}},Hi=`Async`,Ui=`Commit`,Wi=`Failure`,Gi=`OnFailure`,Ki=`OnSuccess`,qi=`OnSuccessAndFailure`,Ji=`Success`,Yi=`Sync`,Xi=`UpdateRuntimeFlags`,Zi=`While`,Qi=`Iterator`,$i=`WithRuntime`,ea=`Yield`,ta=`RevertFlags`,na=`3.22.2`,ra=()=>na,ia=Symbol.for(`effect/Effect`),aa=Symbol.for(`effect/Stream`),oa=Symbol.for(`effect/Sink`),sa=Symbol.for(`effect/Channel`),ca={_R:e=>e,_E:e=>e,_A:e=>e,_V:ra()},la={_A:e=>e,_In:e=>e,_L:e=>e,_E:e=>e,_R:e=>e},ua={_Env:e=>e,_InErr:e=>e,_InElem:e=>e,_InDone:e=>e,_OutErr:e=>e,_OutElem:e=>e,_OutDone:e=>e},da={[ia]:ca,[aa]:ca,[oa]:la,[sa]:ua,[Si](e){return this===e},[k](){return xi(this,fi(this))},[Symbol.iterator](){return new Yr(new oi(this))},pipe(){return j(this,arguments)}},fa={[k](){return xi(this,yi(this))},[Si](e){let t=Object.keys(this),n=Object.keys(e);if(t.length!==n.length)return!1;for(let n of t)if(!(n in e&&Ci(this[n],e[n])))return!1;return!0}},pa={...da,_op:Ui},ma={...pa,...fa},ha=function(){function e(){}return e.prototype=pa,e}(),ga=Symbol.for(`effect/Option`),_a={...da,[ga]:{_A:e=>e},[Di](){return this.toJSON()},toString(){return Pi(this.toJSON())}},va=Object.assign(Object.create(_a),{_tag:`Some`,_op:`Some`,[Si](e){return xa(e)&&Ca(e)&&Ci(this.value,e.value)},[k](){return xi(this,pi(A(this._tag))(A(this.value)))},toJSON(){return{_id:`Option`,_tag:this._tag,value:Oi(this.value)}}}),ya=A(`None`),ba=Object.assign(Object.create(_a),{_tag:`None`,_op:`None`,[Si](e){return xa(e)&&Sa(e)},[k](){return ya},toJSON(){return{_id:`Option`,_tag:this._tag}}}),xa=e=>O(e,ga),Sa=e=>e._tag===`None`,Ca=e=>e._tag===`Some`,wa=Object.create(ba),Ta=e=>{let t=Object.create(va);return t.value=e,t},Ea=Symbol.for(`effect/Either`),Da={...da,[Ea]:{_R:e=>e},[Di](){return this.toJSON()},toString(){return Pi(this.toJSON())}},Oa=Object.assign(Object.create(Da),{_tag:`Right`,_op:`Right`,[Si](e){return Aa(e)&&Ma(e)&&Ci(this.right,e.right)},[k](){return pi(A(this._tag))(A(this.right))},toJSON(){return{_id:`Either`,_tag:this._tag,right:Oi(this.right)}}}),ka=Object.assign(Object.create(Da),{_tag:`Left`,_op:`Left`,[Si](e){return Aa(e)&&ja(e)&&Ci(this.left,e.left)},[k](){return pi(A(this._tag))(A(this.left))},toJSON(){return{_id:`Either`,_tag:this._tag,left:Oi(this.left)}}}),Aa=e=>O(e,Ea),ja=e=>e._tag===`Left`,Ma=e=>e._tag===`Right`,Na=e=>{let t=Object.create(ka);return t.left=e,t},Pa=e=>{let t=Object.create(Oa);return t.right=e,t},M=Na,Fa=Aa,Ia=ja,La=Ma,Ra=E(2,(e,t)=>Ia(e)?M(t(e.left)):Pa(e.right)),za=E(2,(e,t)=>La(e)?Pa(t(e.right)):M(e.left)),N=E(2,(e,{onLeft:t,onRight:n})=>Ia(e)?t(e.left):n(e.right)),Ba=N({onLeft:yr,onRight:yr}),Va=E(2,(e,t)=>{if(La(e))return e.right;throw t(e.left)}),Ha=Va(()=>Error(`getOrThrow called on a Left`)),Ua=e=>e.length>0,Wa=e=>(t,n)=>t===n?0:e(t,n),Ga=Wa((e,t)=>e<t?-1:1),Ka=E(2,(e,t)=>Wa((n,r)=>e(t(n),t(r)))),qa=e=>E(2,(t,n)=>e(t,n)===1),P=()=>wa,F=Ta,Ja=Sa,Ya=Ca,Xa=E(2,(e,{onNone:t,onSome:n})=>Ja(e)?t():n(e.value)),Za=E(2,(e,t)=>Ja(e)?t():e.value),Qa=E(2,(e,t)=>Ja(e)?t():e),$a=E(2,(e,t)=>Ja(e)?F(t()):e),eo=e=>e==null?P():F(e),to=Za(Cr),no=e=>(...t)=>{try{return F(e(...t))}catch{return P()}},ro=E(2,(e,t)=>Ja(e)?P():F(t(e.value))),io=E(2,(e,t)=>Ja(e)?P():t(e.value)),ao=E(2,(e,t)=>Ja(e)?P():eo(t(e.value))),oo=(e=>E(2,(t,n)=>!Ja(t)&&e(t.value,n)))(Ei()),so=E(2,(e,t)=>!Ja(e)&&t(e.value)),co=(...e)=>e,lo=e=>Array(e),uo=E(2,(e,t)=>{let n=Math.max(1,Math.floor(e)),r=Array(n);for(let e=0;e<n;e++)r[e]=t(e);return r}),fo=e=>Array.isArray(e)?e:Array.from(e),po=e=>Array.isArray(e)?e:[e],mo=E(2,(e,{onEmpty:t,onNonEmpty:n})=>xo(e)?n(Do(e),Ao(e)):t()),ho=E(2,(e,t)=>[t,...e]),go=E(2,(e,t)=>[...e,t]),_o=E(2,(e,t)=>fo(e).concat(fo(t))),vo=Array.isArray,yo=e=>e.length===0,bo=Ua,xo=Ua,So=(e,t)=>e<0||e>=t.length,Co=(e,t)=>Math.floor(Math.min(Math.max(0,e),t.length)),wo=E(2,(e,t)=>{let n=Math.floor(t);return So(n,e)?P():F(e[n])}),To=E(2,(e,t)=>{let n=Math.floor(t);if(So(n,e))throw Error(`Index ${n} out of bounds`);return e[n]}),Eo=wo(0),Do=To(0),Oo=e=>xo(e)?F(ko(e)):P(),ko=e=>e[e.length-1],Ao=e=>e.slice(1),jo=(e,t)=>{let n=0;for(let r of e){if(!t(r,n))break;n++}return n},Mo=E(2,(e,t)=>zo(e,jo(e,t))),No=E(2,(e,t)=>{let n=fo(e);return n.slice(Co(t,n),n.length)}),Po=e=>Array.from(e).reverse(),Fo=E(2,(e,t)=>{let n=Array.from(e);return n.sort(t),n}),Io=E(2,(e,t)=>Lo(e,t,co)),Lo=E(3,(e,t,n)=>{let r=fo(e),i=fo(t);if(xo(r)&&xo(i)){let e=[n(Do(r),Do(i))],t=Math.min(r.length,i.length);for(let a=1;a<t;a++)e[a]=n(r[a],i[a]);return e}return[]}),Ro=Ei(),zo=E(2,(e,t)=>{let n=Array.from(e),r=Math.floor(t);return xo(n)?r>=1?Bo(n,r):[[],n]:[n,[]]}),Bo=E(2,(e,t)=>{let n=Math.max(1,Math.floor(t));return n>=e.length?[Vo(e),[]]:[ho(e.slice(1,n),Do(e)),e.slice(n)]}),Vo=e=>e.slice(),Ho=E(3,(e,t,n)=>{let r=fo(e),i=fo(t);return xo(r)?xo(i)?$o(n)(_o(r,i)):r:i}),Uo=E(2,(e,t)=>Ho(e,t,Ro)),Wo=()=>[],Go=e=>[e],Ko=E(2,(e,t)=>e.map(t)),qo=E(2,(e,t)=>{if(yo(e))return[];let n=[];for(let r=0;r<e.length;r++){let i=t(e[r],r);for(let e=0;e<i.length;e++)n.push(i[e])}return n}),Jo=qo(yr),Yo=E(2,(e,t)=>{let n=fo(e),r=[];for(let e=0;e<n.length;e++){let i=t(n[e],e);Ya(i)&&r.push(i.value)}return r}),Xo=E(3,(e,t,n)=>fo(e).reduce((e,t,r)=>n(e,t,r),t)),Zo=(e,t)=>{let n=[],r=e,i;for(;Ya(i=t(r));){let[e,t]=i.value;n.push(e),r=t}return n},Qo=Dr,$o=E(2,(e,t)=>{let n=fo(e);if(xo(n)){let e=[Do(n)],r=Ao(n);for(let n of r)e.every(e=>!t(n,e))&&e.push(n);return e}return[]}),es=e=>$o(e,Ei()),ts=E(2,(e,t)=>fo(e).join(t)),ns=Symbol.for(`effect/BigDecimal`),rs={[ns]:ns,[k](){let e=us(this);return D(A(e.value),pi(gi(e.scale)),xi(this))},[Si](e){return is(e)&&ms(this,e)},toString(){return`BigDecimal(${hs(this)})`},toJSON(){return{_id:`BigDecimal`,value:String(this.value),scale:this.scale}},[Di](){return this.toJSON()},pipe(){return j(this,arguments)}},is=e=>O(e,ns),as=(e,t)=>{let n=Object.create(rs);return n.value=e,n.scale=t,n},os=(e,t)=>{if(e!==ss&&e%cs===ss)throw RangeError(`Value must be normalized`);let n=as(e,t);return n.normalized=n,n},ss=BigInt(0),cs=BigInt(10),ls=os(ss,0),us=e=>{if(e.normalized===void 0){if(e.value===ss)e.normalized=ls;else{let t=`${e.value}`,n=0;for(let e=t.length-1;e>=0&&t[e]===`0`;e--)n++;n===0&&(e.normalized=e),e.normalized=os(BigInt(t.substring(0,t.length-n)),e.scale-n)}}return e.normalized},ds=E(2,(e,t)=>t>e.scale?as(e.value*cs**BigInt(t-e.scale),t):t<e.scale?as(e.value/cs**BigInt(e.scale-t),t):e),fs=e=>e.value<ss?as(-e.value,e.scale):e,ps=Tr((e,t)=>e.scale>t.scale?ds(t,e.scale).value===e.value:e.scale<t.scale?ds(e,t.scale).value===t.value:e.value===t.value),ms=E(2,(e,t)=>ps(e,t)),hs=e=>{let t=us(e);if(Math.abs(t.scale)>=16)return gs(t);let n=t.value<ss,r=n?`${t.value}`.substring(1):`${t.value}`,i,a;if(t.scale>=r.length)i=`0`,a=`0`.repeat(t.scale-r.length)+r;else{let e=r.length-t.scale;if(e>r.length){let t=e-r.length;i=`${r}${`0`.repeat(t)}`,a=``}else a=r.slice(e),i=r.slice(0,e)}let o=a===``?i:`${i}.${a}`;return n?`-${o}`:o},gs=e=>{if(_s(e))return`0e+0`;let t=us(e),n=`${fs(t).value}`,r=n.slice(0,1),i=n.slice(1),a=`${vs(t)?`-`:``}${r}`;i!==``&&(a+=`.${i}`);let o=i.length-t.scale;return`${a}e${o>=0?`+`:``}${o}`},_s=e=>e.value===ss,vs=e=>e.value<ss,ys=Symbol.for(`effect/Chunk`);function bs(e,t,n,r,i){for(let a=t;a<Math.min(e.length,t+i);a++)n[r+a-t]=e[a];return n}var xs=[],Ss=(e=>Tr((t,n)=>t.length===n.length&&Ms(t).every((t,r)=>e(t,Is(n,r)))))(Ci),Cs={[ys]:{_A:e=>e},toString(){return Pi(this.toJSON())},toJSON(){return{_id:`Chunk`,values:Ms(this).map(Oi)}},[Di](){return this.toJSON()},[Si](e){return Ts(e)&&Ss(this,e)},[k](){return xi(this,bi(Ms(this)))},[Symbol.iterator](){switch(this.backing._tag){case`IArray`:return this.backing.array[Symbol.iterator]();case`IEmpty`:return xs[Symbol.iterator]();default:return Ms(this)[Symbol.iterator]()}},pipe(){return j(this,arguments)}},ws=e=>{let t=Object.create(Cs);switch(t.backing=e,e._tag){case`IEmpty`:t.length=0,t.depth=0,t.left=t,t.right=t;break;case`IConcat`:t.length=e.left.length+e.right.length,t.depth=1+Math.max(e.left.depth,e.right.depth),t.left=e.left,t.right=e.right;break;case`IArray`:t.length=e.array.length,t.depth=0,t.left=Es,t.right=Es;break;case`ISingleton`:t.length=1,t.depth=0,t.left=Es,t.right=Es;break;case`ISlice`:t.length=e.length,t.depth=e.chunk.depth+1,t.left=Es,t.right=Es}return t},Ts=e=>O(e,ys),Es=ws({_tag:`IEmpty`}),Ds=()=>Es,Os=(...e)=>Fs(e),ks=e=>ws({_tag:`ISingleton`,a:e}),As=e=>Ts(e)?e:Ps(fo(e)),js=(e,t,n)=>{switch(e.backing._tag){case`IArray`:bs(e.backing.array,0,t,n,e.length);break;case`IConcat`:js(e.left,t,n),js(e.right,t,n+e.left.length);break;case`ISingleton`:t[n]=e.backing.a;break;case`ISlice`:{let r=0,i=n;for(;r<e.length;)t[i]=Is(e,r),r+=1,i+=1;break}}},Ms=e=>{switch(e.backing._tag){case`IEmpty`:return xs;case`IArray`:return e.backing.array;default:{let t=Array(e.length);return js(e,t,0),e.backing={_tag:`IArray`,array:t},e.left=Es,e.right=Es,e.depth=0,t}}},Ns=e=>{switch(e.backing._tag){case`IEmpty`:case`ISingleton`:return e;case`IArray`:return ws({_tag:`IArray`,array:Po(e.backing.array)});case`IConcat`:return ws({_tag:`IConcat`,left:Ns(e.backing.right),right:Ns(e.backing.left)});case`ISlice`:return Ps(Po(Ms(e)))}},Ps=e=>e.length===0?Ds():e.length===1?ks(e[0]):ws({_tag:`IArray`,array:e}),Fs=e=>Ps(e),Is=E(2,(e,t)=>{switch(e.backing._tag){case`IEmpty`:throw Error(`Index out of bounds`);case`ISingleton`:if(t!==0)throw Error(`Index out of bounds`);return e.backing.a;case`IArray`:if(t>=e.length||t<0)throw Error(`Index out of bounds`);return e.backing.array[t];case`IConcat`:return t<e.left.length?Is(e.left,t):Is(e.right,t-e.left.length);case`ISlice`:return Is(e.backing.chunk,t+e.backing.offset)}}),Ls=E(2,(e,t)=>Bs(e,ks(t))),Rs=E(2,(e,t)=>Bs(ks(t),e)),zs=E(2,(e,t)=>{if(t<=0)return e;if(t>=e.length)return Es;switch(e.backing._tag){case`ISlice`:return ws({_tag:`ISlice`,chunk:e.backing.chunk,offset:e.backing.offset+t,length:e.backing.length-t});case`IConcat`:return t>e.left.length?zs(e.right,t-e.left.length):ws({_tag:`IConcat`,left:zs(e.left,t),right:e.right});default:return ws({_tag:`ISlice`,chunk:e,offset:t,length:e.length-t})}}),Bs=E(2,(e,t)=>{if(e.backing._tag===`IEmpty`)return t;if(t.backing._tag===`IEmpty`)return e;let n=t.depth-e.depth;if(Math.abs(n)<=1)return ws({_tag:`IConcat`,left:e,right:t});if(n<-1){if(e.left.depth>=e.right.depth){let n=Bs(e.right,t);return ws({_tag:`IConcat`,left:e.left,right:n})}{let n=Bs(e.right.right,t);if(n.depth===e.depth-3){let t=ws({_tag:`IConcat`,left:e.right.left,right:n});return ws({_tag:`IConcat`,left:e.left,right:t})}return ws({_tag:`IConcat`,left:ws({_tag:`IConcat`,left:e.left,right:e.right.left}),right:n})}}if(t.right.depth>=t.left.depth)return ws({_tag:`IConcat`,left:Bs(e,t.left),right:t.right});{let n=Bs(e,t.left.left);return n.depth===t.depth-3?ws({_tag:`IConcat`,left:ws({_tag:`IConcat`,left:n,right:t.left.right}),right:t.right}):ws({_tag:`IConcat`,left:n,right:ws({_tag:`IConcat`,left:t.left.right,right:t.right})})}}),Vs=e=>e.length===0,Hs=e=>e.length>0,Us=e=>Is(e,0),Ws=Us,Gs=e=>zs(e,1),Ks=32,qs=Ks-1,Js=Ks/2,Ys=Ks/4;function Xs(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,e&127}function Zs(e,t){return t>>>e&qs}function Qs(e){return 1<<e}function $s(e,t){return Xs(e&t-1)}var ec=(e,t)=>({value:e,previous:t});function tc(e,t,n,r){let i=r;if(!e){let e=r.length;i=Array(e);for(let t=0;t<e;++t)i[t]=r[t]}return i[t]=n,i}function nc(e,t,n){let r=n.length-1,i=0,a=0,o=n;if(e)i=a=t;else for(o=Array(r);i<t;)o[a++]=n[i++];for(++i;i<=r;)o[a++]=n[i++];return e&&(o.length=r),o}function rc(e,t,n,r){let i=r.length;if(e){let e=i;for(;e>=t;)r[e--]=r[e];return r[t]=n,r}let a=0,o=0,s=Array(i+1);for(;a<t;)s[o++]=r[a++];for(s[t]=n;a<i;)s[++o]=r[a++];return s}var ic=class e{_tag=`EmptyNode`;modify(t,n,r,i,a,o){let s=r(P());return Ja(s)?new e:(++o.value,new cc(t,i,a,s))}};function ac(e){return Vr(e,`EmptyNode`)}function oc(e){return ac(e)||e._tag===`LeafNode`||e._tag===`CollisionNode`}function sc(e,t){return!ac(e)&&t===e.edit}var cc=class e{edit;hash;key;value;_tag=`LeafNode`;constructor(e,t,n,r){this.edit=e,this.hash=t,this.key=n,this.value=r}modify(t,n,r,i,a,o){if(Ci(a,this.key)){let n=r(this.value);return n===this.value?this:Ja(n)?(--o.value,new ic):sc(this,t)?(this.value=n,this):new e(t,i,a,n)}let s=r(P());return Ja(s)?this:(++o.value,hc(t,n,this.hash,this,i,new e(t,i,a,s)))}},lc=class e{edit;hash;children;_tag=`CollisionNode`;constructor(e,t,n){this.edit=e,this.hash=t,this.children=n}modify(t,n,r,i,a,o){if(i===this.hash){let n=sc(this,t),i=this.updateCollisionList(n,t,this.hash,this.children,r,a,o);return i===this.children?this:i.length>1?new e(t,this.hash,i):i[0]}let s=r(P());return Ja(s)?this:(++o.value,hc(t,n,this.hash,this,i,new cc(t,i,a,s)))}updateCollisionList(e,t,n,r,i,a,o){let s=r.length;for(let c=0;c<s;++c){let s=r[c];if(`key`in s&&Ci(a,s.key)){let l=s.value,u=i(l);return u===l?r:Ja(u)?(--o.value,nc(e,c,r)):tc(e,c,new cc(t,n,a,u),r)}}let c=i(P());return Ja(c)?r:(++o.value,tc(e,s,new cc(t,n,a,c),r))}},uc=class e{edit;mask;children;_tag=`IndexedNode`;constructor(e,t,n){this.edit=e,this.mask=t,this.children=n}modify(t,n,r,i,a,o){let s=this.mask,c=this.children,l=Zs(n,i),u=Qs(l),d=$s(s,u),f=s&u,p=sc(this,t);if(!f){let f=new ic().modify(t,n+5,r,i,a,o);return f?c.length>=Js?pc(t,l,f,s,c):new e(t,s|u,rc(p,d,f,c)):this}let m=c[d],h=m.modify(t,n+5,r,i,a,o);if(m===h)return this;let g=s,_;if(ac(h)){if(g&=~u,!g)return new ic;if(c.length<=2&&oc(c[d^1]))return c[d^1];_=nc(p,d,c)}else _=tc(p,d,h,c);return p?(this.mask=g,this.children=_,this):new e(t,g,_)}},dc=class e{edit;size;children;_tag=`ArrayNode`;constructor(e,t,n){this.edit=e,this.size=t,this.children=n}modify(t,n,r,i,a,o){let s=this.size,c=this.children,l=Zs(n,i),u=c[l],d=(u||new ic).modify(t,n+5,r,i,a,o);if(u===d)return this;let f=sc(this,t),p;if(ac(u)&&!ac(d))++s,p=tc(f,l,d,c);else if(!ac(u)&&ac(d)){if(--s,s<=Ys)return fc(t,s,l,c);p=tc(f,l,new ic,c)}else p=tc(f,l,d,c);return f?(this.size=s,this.children=p,this):new e(t,s,p)}};function fc(e,t,n,r){let i=Array(t-1),a=0,o=0;for(let e=0,t=r.length;e<t;++e)if(e!==n){let t=r[e];t&&!ac(t)&&(i[a++]=t,o|=1<<e)}return new uc(e,o,i)}function pc(e,t,n,r,i){let a=[],o=r,s=0;for(let e=0;o;++e)o&1&&(a[e]=i[s++]),o>>>=1;return a[t]=n,new dc(e,s+1,a)}function mc(e,t,n,r,i,a){if(n===i)return new lc(e,n,[a,r]);let o=Zs(t,n),s=Zs(t,i);if(o===s)return t=>new uc(e,Qs(o)|Qs(s),[t]);{let t=o<s?[r,a]:[a,r];return new uc(e,Qs(o)|Qs(s),t)}}function hc(e,t,n,r,i,a){let o,s=t;for(;;){let t=mc(e,s,n,r,i,a);if(typeof t==`function`)o=ec(t,o),s+=5;else{let e=t;for(;o!=null;)e=o.value(e),o=o.previous;return e}}}var gc=`effect/HashMap`,_c=Symbol.for(gc),vc={[_c]:_c,[Symbol.iterator](){return new bc(this,(e,t)=>[e,t])},[k](){let e=A(gc);for(let t of this)e^=D(A(t[0]),pi(A(t[1])));return xi(this,e)},[Si](e){if(Dc(e)){if(e._size!==this._size)return!1;for(let t of this){let n=D(e,Ac(t[0],A(t[0])));if(Ja(n)||!Ci(t[1],n.value))return!1}return!0}return!1},toString(){return Pi(this.toJSON())},toJSON(){return{_id:`HashMap`,values:Array.from(this).map(Oi)}},[Di](){return this.toJSON()},pipe(){return j(this,arguments)}},yc=(e,t,n,r)=>{let i=Object.create(vc);return i._editable=e,i._edit=t,i._root=n,i._size=r,i},bc=class e{map;f;v;constructor(e,t){this.map=e,this.f=t,this.v=Sc(this.map._root,this.f,void 0)}next(){if(Ja(this.v))return{done:!0,value:void 0};let e=this.v.value;return this.v=xc(e.cont),{done:!1,value:e.value}}[Symbol.iterator](){return new e(this.map,this.f)}},xc=e=>e?Cc(e[0],e[1],e[2],e[3],e[4]):P(),Sc=(e,t,n=void 0)=>{switch(e._tag){case`LeafNode`:return Ya(e.value)?F({value:t(e.key,e.value.value),cont:n}):xc(n);case`CollisionNode`:case`ArrayNode`:case`IndexedNode`:{let r=e.children;return Cc(r.length,r,0,t,n)}default:return xc(n)}},Cc=(e,t,n,r,i)=>{for(;n<e;){let a=t[n++];if(a&&!ac(a))return Sc(a,r,[e,t,n,r,i])}return xc(i)},wc=yc(!1,0,new ic,0),Tc=()=>wc,Ec=e=>{let t=Ic(Tc());for(let n of e)Mc(t,n[0],n[1]);return Lc(t)},Dc=e=>O(e,_c),Oc=e=>e&&ac(e._root),kc=E(2,(e,t)=>Ac(e,t,A(t))),Ac=E(3,(e,t,n)=>{let r=e._root,i=0;for(;;)switch(r._tag){case`LeafNode`:return Ci(t,r.key)?r.value:P();case`CollisionNode`:if(n===r.hash){let e=r.children;for(let n=0,r=e.length;n<r;++n){let r=e[n];if(`key`in r&&Ci(t,r.key))return r.value}}return P();case`IndexedNode`:{let e=Qs(Zs(i,n));if(r.mask&e){r=r.children[$s(r.mask,e)],i+=5;break}return P()}case`ArrayNode`:if(r=r.children[Zs(i,n)],r){i+=5;break}return P();default:return P()}}),jc=E(2,(e,t)=>Ya(Ac(e,t,A(t)))),Mc=E(3,(e,t,n)=>Rc(e,t,()=>F(n))),Nc=E(3,(e,t,n)=>e._editable?(e._root=t,e._size=n,e):t===e._root?e:yc(e._editable,e._edit,t,n)),Pc=e=>new bc(e,e=>e),Fc=e=>e._size,Ic=e=>yc(!0,e._edit+1,e._root,e._size),Lc=e=>(e._editable=!1,e),Rc=E(3,(e,t,n)=>zc(e,t,A(t),n)),zc=E(4,(e,t,n,r)=>{let i={value:e._size};return D(e,Nc(e._root.modify(e._editable?e._edit:NaN,0,r,n,t,i),i.value))}),Bc=E(2,(e,t)=>Rc(e,t,P)),Vc=E(2,(e,t)=>Uc(e,Tc(),(e,n,r)=>Mc(e,r,t(n,r)))),Hc=E(2,(e,t)=>Uc(e,void 0,(e,n,r)=>t(n,r))),Uc=E(3,(e,t,n)=>{let r=e._root;if(r._tag===`LeafNode`)return Ya(r.value)?n(t,r.value.value,r.key):t;if(r._tag===`EmptyNode`)return t;let i=[r.children],a;for(;a=i.pop();)for(let e=0,r=a.length;e<r;){let r=a[e++];r&&!ac(r)&&(r._tag===`LeafNode`?Ya(r.value)&&(t=n(t,r.value.value,r.key)):i.push(r.children))}return t}),Wc=`effect/HashSet`,Gc=Symbol.for(Wc),Kc={[Gc]:Gc,[Symbol.iterator](){return Pc(this._keyMap)},[k](){return xi(this,pi(A(this._keyMap))(A(Wc)))},[Si](e){return Jc(e)?Fc(this._keyMap)===Fc(e._keyMap)&&Ci(this._keyMap,e._keyMap):!1},toString(){return Pi(this.toJSON())},toJSON(){return{_id:`HashSet`,values:Array.from(this).map(Oi)}},[Di](){return this.toJSON()},pipe(){return j(this,arguments)}},qc=e=>{let t=Object.create(Kc);return t._keyMap=e,t},Jc=e=>O(e,Gc),Yc=qc(Tc()),Xc=()=>Yc,Zc=e=>{let t=tl(Xc());for(let n of e)il(t,n);return nl(t)},Qc=(...e)=>{let t=tl(Xc());for(let n of e)il(t,n);return nl(t)},$c=E(2,(e,t)=>jc(e._keyMap,t)),el=e=>Fc(e._keyMap),tl=e=>qc(Ic(e._keyMap)),nl=e=>(e._keyMap._editable=!1,e),rl=E(2,(e,t)=>{let n=tl(e);return t(n),nl(n)}),il=E(2,(e,t)=>e._keyMap._editable?(Mc(t,!0)(e._keyMap),e):qc(Mc(t,!0)(e._keyMap))),al=E(2,(e,t)=>e._keyMap._editable?(Bc(t)(e._keyMap),e):qc(Bc(t)(e._keyMap))),ol=E(2,(e,t)=>rl(e,e=>{for(let n of t)al(e,n)})),sl=E(2,(e,t)=>rl(Xc(),n=>{cl(e,e=>il(n,e));for(let e of t)il(n,e)})),cl=E(2,(e,t)=>Hc(e._keyMap,(e,n)=>t(n))),ll=E(3,(e,t,n)=>Uc(e._keyMap,t,(e,t,r)=>n(e,r))),ul=Xc,dl=Zc,fl=Qc,pl=$c,ml=el,hl=il,gl=al,_l=ol,vl=sl,yl=ll,bl=`Empty`,xl=`Fail`,Sl=`Interrupt`,Cl=`Parallel`,wl=`Sequential`,Tl=`effect/Cause`,El=Symbol.for(Tl),Dl={_E:e=>e},Ol={[El]:Dl,[k](){return D(A(Tl),pi(A(Xl(this))),xi(this))},[Si](e){return Fl(e)&&Yl(this,e)},pipe(){return j(this,arguments)},toJSON(){switch(this._tag){case`Empty`:return{_id:`Cause`,_tag:this._tag};case`Die`:return{_id:`Cause`,_tag:this._tag,defect:Oi(this.defect)};case`Interrupt`:return{_id:`Cause`,_tag:this._tag,fiberId:this.fiberId.toJSON()};case`Fail`:return{_id:`Cause`,_tag:this._tag,failure:Oi(this.error)};case`Sequential`:case`Parallel`:return{_id:`Cause`,_tag:this._tag,left:Oi(this.left),right:Oi(this.right)}}},toString(){return ou(this)},[Di](){return this.toJSON()}},kl=(()=>{let e=Object.create(Ol);return e._tag=bl,e})(),Al=e=>{let t=Object.create(Ol);return t._tag=xl,t.error=e,t},jl=e=>{let t=Object.create(Ol);return t._tag=`Die`,t.defect=e,t},Ml=e=>{let t=Object.create(Ol);return t._tag=Sl,t.fiberId=e,t},Nl=(e,t)=>{let n=Object.create(Ol);return n._tag=Cl,n.left=e,n.right=t,n},Pl=(e,t)=>{let n=Object.create(Ol);return n._tag=wl,n.left=e,n.right=t,n},Fl=e=>O(e,El),Il=e=>e._tag===bl,Ll=e=>e._tag===xl,Rl=e=>e._tag===`Empty`||iu(e,!0,(e,t)=>{switch(t._tag){case bl:return F(e);case`Die`:case xl:case Sl:return F(!1);default:return P()}}),zl=e=>Ya(Kl(e)),Bl=e=>au(void 0,eu)(e),Vl=e=>Ns(iu(e,Ds(),(e,t)=>t._tag===`Fail`?F(D(e,Rs(t.error))):P())),Hl=e=>Ns(iu(e,Ds(),(e,t)=>t._tag===`Die`?F(D(e,Rs(t.defect))):P())),Ul=e=>iu(e,ul(),(e,t)=>t._tag===`Interrupt`?F(D(e,hl(t.fiberId))):P()),Wl=e=>Ql(e,e=>e._tag===`Fail`?F(e.error):P()),Gl=e=>{let t=Wl(e);switch(t._tag){case`None`:return Pa(e);case`Some`:return M(t.value)}},Kl=e=>Ql(e,e=>e._tag===`Interrupt`?F(e.fiberId):P()),ql=e=>ru(e,{onEmpty:kl,onFail:()=>kl,onDie:jl,onInterrupt:Ml,onSequential:Pl,onParallel:Nl}),Jl=e=>ru(e,{onEmpty:kl,onFail:jl,onDie:jl,onInterrupt:Ml,onSequential:Pl,onParallel:Nl}),Yl=(e,t)=>{let n=ks(e),r=ks(t);for(;Hs(n)&&Hs(r);){let[e,t]=D(Ws(n),iu([ul(),Ds()],([e,t],n)=>{let[r,i]=$l(n);return F([D(e,vl(r)),D(t,Bs(i))])})),[i,a]=D(Ws(r),iu([ul(),Ds()],([e,t],n)=>{let[r,i]=$l(n);return F([D(e,vl(r)),D(t,Bs(i))])}));if(!Ci(e,i))return!1;n=t,r=a}return!0},Xl=e=>Zl(ks(e),Ds()),Zl=(e,t)=>{for(;;){let[n,r]=D(e,Xo([ul(),Ds()],([e,t],n)=>{let[r,i]=$l(n);return[D(e,vl(r)),D(t,Bs(i))]})),i=ml(n)>0?D(t,Rs(n)):t;if(Vs(r))return Ns(i);e=r,t=i}throw Error(Jr(`Cause.flattenCauseLoop`))},Ql=E(2,(e,t)=>{let n=[e];for(;n.length>0;){let e=n.pop(),r=t(e);switch(r._tag){case`None`:switch(e._tag){case wl:case Cl:n.push(e.right),n.push(e.left)}break;case`Some`:return r}}return P()}),$l=e=>{let t=e,n=[],r=ul(),i=Ds();for(;t!==void 0;)switch(t._tag){case bl:if(n.length===0)return[r,i];t=n.pop();break;case xl:if(r=hl(r,Os(t._tag,t.error)),n.length===0)return[r,i];t=n.pop();break;case`Die`:if(r=hl(r,Os(t._tag,t.defect)),n.length===0)return[r,i];t=n.pop();break;case Sl:if(r=hl(r,Os(t._tag,t.fiberId)),n.length===0)return[r,i];t=n.pop();break;case wl:switch(t.left._tag){case bl:t=t.right;break;case wl:t=Pl(t.left.left,Pl(t.left.right,t.right));break;case Cl:t=Nl(Pl(t.left.left,t.right),Pl(t.left.right,t.right));break;default:i=Rs(i,t.right),t=t.left}break;case Cl:n.push(t.right),t=t.left}throw Error(Jr(`Cause.evaluateCauseLoop`))},eu={emptyCase:xr,failCase:Sr,dieCase:Sr,interruptCase:xr,sequentialCase:(e,t,n)=>t&&n,parallelCase:(e,t,n)=>t&&n},tu=`SequentialCase`,nu=`ParallelCase`,ru=E(2,(e,{onDie:t,onEmpty:n,onFail:r,onInterrupt:i,onParallel:a,onSequential:o})=>au(e,void 0,{emptyCase:()=>n,failCase:(e,t)=>r(t),dieCase:(e,n)=>t(n),interruptCase:(e,t)=>i(t),sequentialCase:(e,t,n)=>o(t,n),parallelCase:(e,t,n)=>a(t,n)})),iu=E(3,(e,t,n)=>{let r=t,i=e,a=[];for(;i!==void 0;){let e=n(r,i);switch(r=Ya(e)?e.value:r,i._tag){case wl:a.push(i.right),i=i.left;break;case Cl:a.push(i.right),i=i.left;break;default:i=void 0}i===void 0&&a.length>0&&(i=a.pop())}return r}),au=E(3,(e,t,n)=>{let r=[e],i=[];for(;r.length>0;){let e=r.pop();switch(e._tag){case bl:i.push(Pa(n.emptyCase(t)));break;case xl:i.push(Pa(n.failCase(t,e.error)));break;case`Die`:i.push(Pa(n.dieCase(t,e.defect)));break;case Sl:i.push(Pa(n.interruptCase(t,e.fiberId)));break;case wl:r.push(e.right),r.push(e.left),i.push(M({_tag:tu}));break;case Cl:r.push(e.right),r.push(e.left),i.push(M({_tag:nu}))}}let a=[];for(;i.length>0;){let e=i.pop();switch(e._tag){case`Left`:switch(e.left._tag){case tu:{let e=a.pop(),r=a.pop(),i=n.sequentialCase(t,e,r);a.push(i);break}case nu:{let e=a.pop(),r=a.pop(),i=n.parallelCase(t,e,r);a.push(i);break}}break;case`Right`:a.push(e.right)}}if(a.length===0)throw Error(`BUG: Cause.reduceWithContext - please report an issue at https://github.com/Effect-TS/effect/issues`);return a.pop()}),ou=(e,t)=>Bl(e)?`All fibers interrupted without errors.`:mu(e).map(function(e){return t?.renderErrorCause!==!0||e.cause===void 0?e.stack:`${e.stack} {\n${su(e.cause,` `)}\n}`}).join(`
|
|
247
|
-
`),su=(e,t)=>{let n=e.stack.split(`
|
|
248
|
-
`),r=`${t}[cause]: ${n[0]}`;for(let e=1,i=n.length;e<i;e++)r+=`\n${t}${n[e]}`;return e.cause&&(r+=` {\n${su(e.cause,`${t} `)}\n${t}}`),r},cu=e=>{let t=typeof e==`object`&&!!e,n=Error.stackTraceLimit;Error.stackTraceLimit=1;let r=Error(lu(e),t&&`cause`in e&&e.cause!==void 0?{cause:cu(e.cause)}:void 0);return Error.stackTraceLimit=n,r.message===``&&(r.message=`An error has occurred`),Error.stackTraceLimit=n,r.name=e instanceof Error?e.name:`Error`,t&&(pu in e&&(r.span=e[pu]),Object.keys(e).forEach(t=>{t in r||(r[t]=e[t])})),r.stack=fu(`${r.name}: ${r.message}`,e instanceof Error&&e.stack?e.stack:``,r.span),r},lu=e=>{if(typeof e==`string`)return e;if(typeof e==`object`&&e&&e instanceof Error)return e.message;try{if(O(e,`toString`)&&Ir(e.toString)&&e.toString!==Object.prototype.toString&&e.toString!==globalThis.Array.prototype.toString)return e.toString()}catch{}return Ii(e)},uu=/\((.*)\)/g,du=Ar(`effect/Tracer/spanToTrace`,()=>new WeakMap),fu=(e,t,n)=>{let r=[e],i=t.startsWith(e)?t.slice(e.length).split(`
|
|
249
|
-
`):t.split(`
|
|
250
|
-
`);for(let e=1;e<i.length;e++){if(i[e].includes(` at new BaseEffectError`)||i[e].includes(` at new YieldableError`)){e++;continue}if(i[e].includes(`Generator.next`)||i[e].includes(`effect_internal_function`))break;r.push(i[e].replace(/at .*effect_instruction_i.*\((.*)\)/,`at $1`).replace(/EffectPrimitive\.\w+/,`<anonymous>`))}if(n){let e=n,t=0;for(;e&&e._tag===`Span`&&t<10;){let n=du.get(e);if(typeof n==`function`){let t=n();if(typeof t==`string`){let n=t.matchAll(uu),i=!1;for(let[,t]of n)i=!0,r.push(` at ${e.name} (${t})`);i||r.push(` at ${e.name} (${t.replace(/^at /,``)})`)}else r.push(` at ${e.name}`)}else r.push(` at ${e.name}`);e=to(e.parent),t++}}return r.join(`
|
|
251
|
-
`)},pu=Symbol.for(`effect/SpanAnnotation`),mu=e=>au(e,void 0,{emptyCase:()=>[],dieCase:(e,t)=>[cu(t)],failCase:(e,t)=>[cu(t)],interruptCase:()=>[],parallelCase:(e,t,n)=>[...t,...n],sequentialCase:(e,t,n)=>[...t,...n]}),hu=Symbol.for(`effect/Context/Tag`),gu=Symbol.for(`effect/Context/Reference`),_u=Symbol.for(`effect/STM`),vu={...da,_op:`Tag`,[_u]:ca,[hu]:{_Service:e=>e,_Identifier:e=>e},toString(){return Pi(this.toJSON())},toJSON(){return{_id:`Tag`,key:this.key,stack:this.stack}},[Di](){return this.toJSON()},of(e){return e},context(e){return Au(this,e)}},yu={...vu,[gu]:gu},bu=e=>{let t=Error.stackTraceLimit;Error.stackTraceLimit=2;let n=Error();Error.stackTraceLimit=t;let r=Object.create(vu);return Object.defineProperty(r,"stack",{get(){return n.stack}}),r.key=e,r},xu=()=>(e,t)=>{let n=Error.stackTraceLimit;Error.stackTraceLimit=2;let r=Error();Error.stackTraceLimit=n;function i(){}return Object.setPrototypeOf(i,yu),i.key=e,i.defaultValue=t.defaultValue,Object.defineProperty(i,"stack",{get(){return r.stack}}),i},Su=Symbol.for(`effect/Context`),Cu={[Su]:{_Services:e=>e},[Si](e){if(Eu(e)&&this.unsafeMap.size===e.unsafeMap.size){for(let t of this.unsafeMap.keys())if(!e.unsafeMap.has(t)||!Ci(this.unsafeMap.get(t),e.unsafeMap.get(t)))return!1;return!0}return!1},[k](){return xi(this,gi(this.unsafeMap.size))},pipe(){return j(this,arguments)},toString(){return Pi(this.toJSON())},toJSON(){return{_id:`Context`,services:Array.from(this.unsafeMap).map(Oi)}},[Di](){return this.toJSON()}},wu=e=>{let t=Object.create(Cu);return t.unsafeMap=e,t},Tu=e=>{let t=Error(`Service not found${e.key?`: ${String(e.key)}`:``}`);if(e.stack){let n=e.stack.split(`
|
|
252
|
-
`);if(n.length>2){let e=n[2].match(/at (.*)/);e&&(t.message+=` (defined at ${e[1]})`)}}if(t.stack){let e=t.stack.split(`
|
|
253
|
-
`);e.splice(1,3),t.stack=e.join(`
|
|
254
|
-
`)}return t},Eu=e=>O(e,Su),Du=e=>O(e,gu),Ou=wu(new Map),ku=()=>Ou,Au=(e,t)=>wu(new Map([[e.key,t]])),ju=E(3,(e,t,n)=>{let r=new Map(e.unsafeMap);return r.set(t.key,n),wu(r)}),Mu=Ar(`effect/Context/defaultValueCache`,()=>new Map),Nu=e=>{if(Mu.has(e.key))return Mu.get(e.key);let t=e.defaultValue();return Mu.set(e.key,t),t},Pu=(e,t)=>e.unsafeMap.has(t.key)?e.unsafeMap.get(t.key):Nu(t),Fu=E(2,(e,t)=>{if(!e.unsafeMap.has(t.key)){if(gu in t)return Nu(t);throw Tu(t)}return e.unsafeMap.get(t.key)}),Iu=Fu,Lu=E(2,(e,t)=>e.unsafeMap.has(t.key)?Ta(e.unsafeMap.get(t.key)):Du(t)?Ta(Nu(t)):wa),Ru=E(2,(e,t)=>{let n=new Map(e.unsafeMap);for(let[e,r]of t.unsafeMap)n.set(e,r);return wu(n)}),zu=bu,Bu=ku,Vu=Au,Hu=ju,Uu=Iu,Wu=Fu,Gu=Lu,Ku=Ru,qu=xu,Ju=Symbol.for(`effect/Duration`),Yu=BigInt(0),Xu=BigInt(24),Zu=BigInt(60),Qu=BigInt(1e3),$u=BigInt(1e6),ed=BigInt(1e9),td=/^(-?\d+(?:\.\d+)?)\s+(nanos?|micros?|millis?|seconds?|minutes?|hours?|days?|weeks?)$/,nd=e=>{if(sd(e))return e;if(Mr(e))return pd(e);if(Pr(e))return dd(e);if(Array.isArray(e)&&e.length===2&&e.every(Mr))return e[0]===-1/0||e[1]===-1/0||Number.isNaN(e[0])||Number.isNaN(e[1])?ld:e[0]===1/0||e[1]===1/0?ud:dd(BigInt(Math.round(e[0]*1e9))+BigInt(Math.round(e[1])));if(jr(e)){let t=td.exec(e);if(t){let[e,n,r]=t,i=Number(n);switch(r){case`nano`:case`nanos`:return dd(BigInt(n));case`micro`:case`micros`:return fd(BigInt(n));case`milli`:case`millis`:return pd(i);case`second`:case`seconds`:return md(i);case`minute`:case`minutes`:return hd(i);case`hour`:case`hours`:return gd(i);case`day`:case`days`:return _d(i);case`week`:case`weeks`:return vd(i)}}}throw Error(`Invalid DurationInput`)},rd={_tag:`Millis`,millis:0},id={_tag:`Infinity`},ad={[Ju]:Ju,[k](){return xi(this,yi(this.value))},[Si](e){return sd(e)&&Dd(this,e)},toString(){return`Duration(${kd(this)})`},toJSON(){switch(this.value._tag){case`Millis`:return{_id:`Duration`,_tag:`Millis`,millis:this.value.millis};case`Nanos`:return{_id:`Duration`,_tag:`Nanos`,hrtime:xd(this)};case`Infinity`:return{_id:`Duration`,_tag:`Infinity`}}},[Di](){return this.toJSON()},pipe(){return j(this,arguments)}},od=e=>{let t=Object.create(ad);return t.value=Mr(e)?isNaN(e)||e<=0?rd:Number.isFinite(e)?Number.isInteger(e)?{_tag:`Millis`,millis:e}:{_tag:`Nanos`,nanos:BigInt(Math.round(e*1e6))}:id:e<=Yu?rd:{_tag:`Nanos`,nanos:e},t},sd=e=>O(e,Ju),cd=e=>{switch(e.value._tag){case`Millis`:return e.value.millis===0;case`Nanos`:return e.value.nanos===Yu;case`Infinity`:return!1}},ld=od(0),ud=od(1/0),dd=e=>od(e),fd=e=>od(e*Qu),pd=e=>od(e),md=e=>od(e*1e3),hd=e=>od(e*6e4),gd=e=>od(e*36e5),_d=e=>od(e*864e5),vd=e=>od(e*6048e5),yd=e=>Sd(e,{onMillis:e=>e,onNanos:e=>Number(e)/1e6}),bd=e=>{let t=nd(e);switch(t.value._tag){case`Infinity`:throw Error(`Cannot convert infinite duration to nanos`);case`Nanos`:return t.value.nanos;case`Millis`:return BigInt(Math.round(t.value.millis*1e6))}},xd=e=>{let t=nd(e);switch(t.value._tag){case`Infinity`:return[1/0,0];case`Nanos`:return[Number(t.value.nanos/ed),Number(t.value.nanos%ed)];case`Millis`:return[Math.floor(t.value.millis/1e3),Math.round(t.value.millis%1e3*1e6)]}},Sd=E(2,(e,t)=>{let n=nd(e);switch(n.value._tag){case`Nanos`:return t.onNanos(n.value.nanos);case`Infinity`:return t.onMillis(1/0);case`Millis`:return t.onMillis(n.value.millis)}}),Cd=E(3,(e,t,n)=>{let r=nd(e),i=nd(t);if(r.value._tag===`Infinity`||i.value._tag===`Infinity`)return n.onMillis(yd(r),yd(i));if(r.value._tag===`Nanos`||i.value._tag===`Nanos`){let e=r.value._tag===`Nanos`?r.value.nanos:BigInt(Math.round(r.value.millis*1e6)),t=i.value._tag===`Nanos`?i.value.nanos:BigInt(Math.round(i.value.millis*1e6));return n.onNanos(e,t)}return n.onMillis(r.value.millis,i.value.millis)}),wd=(e,t)=>Cd(e,t,{onMillis:(e,t)=>e===t,onNanos:(e,t)=>e===t}),Td=E(2,(e,t)=>Cd(e,t,{onMillis:(e,t)=>e<=t,onNanos:(e,t)=>e<=t})),Ed=E(2,(e,t)=>Cd(e,t,{onMillis:(e,t)=>e>=t,onNanos:(e,t)=>e>=t})),Dd=E(2,(e,t)=>wd(nd(e),nd(t))),Od=e=>{let t=nd(e);if(t.value._tag===`Infinity`)return{days:1/0,hours:1/0,minutes:1/0,seconds:1/0,millis:1/0,nanos:1/0};let n=bd(t),r=n/$u,i=r/Qu,a=i/Zu,o=a/Zu,s=o/Xu;return{days:Number(s),hours:Number(o%Xu),minutes:Number(a%Zu),seconds:Number(i%Zu),millis:Number(r%Qu),nanos:Number(n%$u)}},kd=e=>{let t=nd(e);if(t.value._tag===`Infinity`)return`Infinity`;if(cd(t))return`0`;let n=Od(t),r=[];return n.days!==0&&r.push(`${n.days}d`),n.hours!==0&&r.push(`${n.hours}h`),n.minutes!==0&&r.push(`${n.minutes}m`),n.seconds!==0&&r.push(`${n.seconds}s`),n.millis!==0&&r.push(`${n.millis}ms`),n.nanos!==0&&r.push(`${n.nanos}ns`),r.join(` `)},Ad=Symbol.for(`effect/MutableRef`),jd={[Ad]:Ad,toString(){return Pi(this.toJSON())},toJSON(){return{_id:`MutableRef`,current:Oi(this.current)}},[Di](){return this.toJSON()},pipe(){return j(this,arguments)}},Md=e=>{let t=Object.create(jd);return t.current=e,t},Nd=e=>e.current,Pd=E(2,(e,t)=>(e.current=t,e)),Fd=`effect/FiberId`,Id=Symbol.for(Fd),Ld=`None`,Rd=`Runtime`,zd=`Composite`,Bd=_i(`${Fd}-${Ld}`),Vd=class{[Id]=Id;_tag=Ld;id=-1;startTimeMillis=-1;[k](){return Bd}[Si](e){return Wd(e)&&e._tag===Ld}toString(){return Pi(this.toJSON())}toJSON(){return{_id:`FiberId`,_tag:this._tag}}[Di](){return this.toJSON()}},Hd=class{id;startTimeMillis;[Id]=Id;_tag=Rd;constructor(e,t){this.id=e,this.startTimeMillis=t}[k](){return xi(this,_i(`${Fd}-${this._tag}-${this.id}-${this.startTimeMillis}`))}[Si](e){return Wd(e)&&e._tag===Rd&&this.id===e.id&&this.startTimeMillis===e.startTimeMillis}toString(){return Pi(this.toJSON())}toJSON(){return{_id:`FiberId`,_tag:this._tag,id:this.id,startTimeMillis:this.startTimeMillis}}[Di](){return this.toJSON()}},Ud=new Vd,Wd=e=>O(e,Id),Gd=e=>{switch(e._tag){case Ld:return ul();case Rd:return fl(e.id);case zd:return D(Gd(e.left),vl(Gd(e.right)))}},Kd=Ar(Symbol.for(`effect/Fiber/Id/_fiberCounter`),()=>Md(0)),qd=e=>Array.from(Gd(e)).map(e=>`#${e}`).join(`,`),Jd=()=>{let e=Nd(Kd);return D(Kd,Pd(e+1)),new Hd(e,Date.now())},Yd=Ud,Xd=qd,Zd=Jd,Qd=Tc,$d=Ec,ef=Oc,tf=kc,nf=Mc,rf=Pc,af=Rc,of=Vc,sf=Uc,cf=Symbol.for(`effect/List`),lf=e=>fo(e),uf=(e=>Er(Qo(e),lf))(Ci),df={[cf]:cf,_tag:`Cons`,toString(){return Pi(this.toJSON())},toJSON(){return{_id:`List`,_tag:`Cons`,values:lf(this).map(Oi)}},[Di](){return this.toJSON()},[Si](e){return hf(e)&&this._tag===e._tag&&uf(this,e)},[k](){return xi(this,bi(lf(this)))},[Symbol.iterator](){let e=!1,t=this;return{next(){if(e)return this.return();if(t._tag===`Nil`)return e=!0,this.return();let n=t.head;return t=t.tail,{done:e,value:n}},return(t){return e||=!0,{done:!0,value:t}}}},pipe(){return j(this,arguments)}},ff=(e,t)=>{let n=Object.create(df);return n.head=e,n.tail=t,n},pf=_i(`Nil`),mf=Object.create({[cf]:cf,_tag:`Nil`,toString(){return Pi(this.toJSON())},toJSON(){return{_id:`List`,_tag:`Nil`}},[Di](){return this.toJSON()},[k](){return pf},[Si](e){return hf(e)&&this._tag===e._tag},[Symbol.iterator](){return{next(){return{done:!0,value:void 0}}}},pipe(){return j(this,arguments)}}),hf=e=>O(e,cf),gf=e=>e._tag===`Nil`,_f=e=>e._tag===`Cons`,vf=()=>mf,yf=(e,t)=>ff(e,t),bf=vf,xf=e=>ff(e,mf),Sf=E(2,(e,t)=>wf(t,e)),Cf=E(2,(e,t)=>yf(t,e)),wf=E(2,(e,t)=>{if(gf(e))return t;if(gf(t))return e;{let n=ff(t.head,e),r=n,i=t.tail;for(;!gf(i);){let t=ff(i.head,e);r.tail=t,r=t,i=i.tail}return n}}),Tf=E(3,(e,t,n)=>{let r=t,i=e;for(;!gf(i);)r=n(r,i.head),i=i.tail;return r}),Ef=e=>{let t=bf(),n=e;for(;!gf(n);)t=Cf(t,n.head),n=n.tail;return t};Array.prototype;var Df=function(){function e(e){e&&Object.assign(this,e)}return e.prototype=fa,e}(),Of=Symbol.for(`effect/DifferContextPatch`);function kf(e){return e}var Af={...Df.prototype,[Of]:{_Value:kf,_Patch:kf}},jf=Object.create(Object.assign(Object.create(Af),{_tag:`Empty`})),Mf=()=>jf,Nf=Object.assign(Object.create(Af),{_tag:`AndThen`}),Pf=(e,t)=>{let n=Object.create(Nf);return n.first=e,n.second=t,n},Ff=Object.assign(Object.create(Af),{_tag:`AddService`}),If=(e,t)=>{let n=Object.create(Ff);return n.key=e,n.service=t,n},Lf=Object.assign(Object.create(Af),{_tag:`RemoveService`}),Rf=e=>{let t=Object.create(Lf);return t.key=e,t},zf=Object.assign(Object.create(Af),{_tag:`UpdateService`}),Bf=(e,t)=>{let n=Object.create(zf);return n.key=e,n.update=t,n},Vf=(e,t)=>{let n=new Map(e.unsafeMap),r=Mf();for(let[e,i]of t.unsafeMap.entries())if(n.has(e)){let t=n.get(e);n.delete(e),Ci(t,i)||(r=Hf(Bf(e,()=>i))(r))}else n.delete(e),r=Hf(If(e,i))(r);for(let[e]of n.entries())r=Hf(Rf(e))(r);return r},Hf=E(2,(e,t)=>Pf(e,t)),Uf=E(2,(e,t)=>{if(e._tag===`Empty`)return t;let n=!1,r=ks(e),i=new Map(t.unsafeMap);for(;Hs(r);){let e=Ws(r),t=Gs(r);switch(e._tag){case`Empty`:r=t;break;case`AddService`:i.set(e.key,e.service),r=t;break;case`AndThen`:r=Rs(Rs(t,e.second),e.first);break;case`RemoveService`:i.delete(e.key),r=t;break;case`UpdateService`:i.set(e.key,e.update(i.get(e.key))),n=!0,r=t}}if(!n)return wu(i);let a=new Map;for(let[e]of t.unsafeMap)i.has(e)&&(a.set(e,i.get(e)),i.delete(e));for(let[e,t]of i)a.set(e,t);return wu(a)}),Wf=Symbol.for(`effect/DifferHashSetPatch`);function Gf(e){return e}var Kf={...Df.prototype,[Wf]:{_Value:Gf,_Key:Gf,_Patch:Gf}},qf=Object.create(Object.assign(Object.create(Kf),{_tag:`Empty`})),Jf=()=>qf,Yf=Object.assign(Object.create(Kf),{_tag:`AndThen`}),Xf=(e,t)=>{let n=Object.create(Yf);return n.first=e,n.second=t,n},Zf=Object.assign(Object.create(Kf),{_tag:`Add`}),Qf=e=>{let t=Object.create(Zf);return t.value=e,t},$f=Object.assign(Object.create(Kf),{_tag:`Remove`}),ep=e=>{let t=Object.create($f);return t.value=e,t},tp=(e,t)=>{let[n,r]=yl([e,Jf()],([e,t],n)=>pl(n)(e)?[gl(n)(e),t]:[e,np(Qf(n))(t)])(t);return yl(r,(e,t)=>np(ep(t))(e))(n)},np=E(2,(e,t)=>Xf(e,t)),rp=E(2,(e,t)=>{if(e._tag===`Empty`)return t;let n=t,r=ks(e);for(;Hs(r);){let e=Ws(r),t=Gs(r);switch(e._tag){case`Empty`:r=t;break;case`AndThen`:r=Rs(e.first)(Rs(e.second)(t));break;case`Add`:n=hl(e.value)(n),r=t;break;case`Remove`:n=gl(e.value)(n),r=t}}return n}),ip=Symbol.for(`effect/DifferReadonlyArrayPatch`);function ap(e){return e}var op={...Df.prototype,[ip]:{_Value:ap,_Patch:ap}},sp=Object.create(Object.assign(Object.create(op),{_tag:`Empty`})),cp=()=>sp,lp=Object.assign(Object.create(op),{_tag:`AndThen`}),up=(e,t)=>{let n=Object.create(lp);return n.first=e,n.second=t,n},dp=Object.assign(Object.create(op),{_tag:`Append`}),fp=e=>{let t=Object.create(dp);return t.values=e,t},pp=Object.assign(Object.create(op),{_tag:`Slice`}),mp=(e,t)=>{let n=Object.create(pp);return n.from=e,n.until=t,n},hp=Object.assign(Object.create(op),{_tag:`Update`}),gp=(e,t)=>{let n=Object.create(hp);return n.index=e,n.patch=t,n},_p=e=>{let t=0,n=cp();for(;t<e.oldValue.length&&t<e.newValue.length;){let r=e.oldValue[t],i=e.newValue[t],a=e.differ.diff(r,i);Ci(a,e.differ.empty)||(n=vp(n,gp(t,a))),t+=1}return t<e.oldValue.length&&(n=vp(n,mp(0,t))),t<e.newValue.length&&(n=vp(n,fp(No(t)(e.newValue)))),n},vp=E(2,(e,t)=>up(e,t)),yp=E(3,(e,t,n)=>{if(e._tag===`Empty`)return t;let r=t.slice(),i=Go(e);for(;bo(i);){let e=Do(i),t=Ao(i);switch(e._tag){case`Empty`:i=t;break;case`AndThen`:t.unshift(e.first,e.second),i=t;break;case`Append`:for(let t of e.values)r.push(t);i=t;break;case`Slice`:r=r.slice(e.from,e.until),i=t;break;case`Update`:r[e.index]=n.patch(e.patch,r[e.index]),i=t}}return r}),bp={[Symbol.for(`effect/Differ`)]:{_P:yr,_V:yr},pipe(){return j(this,arguments)}},xp=e=>{let t=Object.create(bp);return t.empty=e.empty,t.diff=e.diff,t.combine=e.combine,t.patch=e.patch,t},Sp=()=>xp({empty:Mf(),combine:(e,t)=>Hf(t)(e),diff:(e,t)=>Vf(e,t),patch:(e,t)=>Uf(t)(e)}),Cp=()=>xp({empty:Jf(),combine:(e,t)=>np(t)(e),diff:(e,t)=>tp(e,t),patch:(e,t)=>rp(t)(e)}),wp=e=>xp({empty:cp(),combine:(e,t)=>vp(e,t),diff:(t,n)=>_p({oldValue:t,newValue:n,differ:e}),patch:(t,n)=>yp(t,n,e)}),Tp=()=>Ep((e,t)=>t),Ep=e=>xp({empty:yr,combine:(e,t)=>e===yr?t:t===yr?e:n=>t(e(n)),diff:(e,t)=>Ci(e,t)?yr:br(t),patch:(t,n)=>e(n,t(n))}),Dp=255,Op=8,kp=e=>e&Dp,Ap=e=>e>>Op&Dp,jp=(e,t)=>(e&Dp)+((t&e&Dp)<<Op),Mp=jp(0,0),Np=e=>jp(e,e),Pp=e=>jp(e,0),Fp=E(2,(e,t)=>jp(kp(e)&~t,Ap(e))),Ip=E(2,(e,t)=>e|t),Lp=e=>~e>>>0&Dp,Rp=e=>Hp(e,32),zp=E(2,(e,t)=>e|t),Bp=e=>Vp(e)&&!Kp(e),Vp=e=>Hp(e,1),Hp=E(2,(e,t)=>(e&t)!==0),Up=(...e)=>e.reduce((e,t)=>e|t,0),Wp=Up(0),Gp=e=>Hp(e,4),Kp=e=>Hp(e,16),qp=E(2,(e,t)=>jp(e^t,t)),Jp=E(2,(e,t)=>e&(Lp(kp(t))|Ap(t))|kp(t)&Ap(t)),Yp=xp({empty:Mp,diff:(e,t)=>qp(e,t),combine:(e,t)=>Ip(t)(e),patch:(e,t)=>Jp(t,e)}),Xp=Np,Zp=Pp,Qp=Fp,$p=(e,t)=>({_tag:`Par`,left:e,right:t}),em=(e,t)=>({_tag:`Seq`,left:e,right:t}),tm=e=>{let t=xf(e),n=bf();for(;;){let[e,r]=Tf(t,[sm(),bf()],([e,t],n)=>{let[r,i]=nm(n);return[lm(e,r),Sf(t,i)]});if(n=rm(n,e),gf(r))return Ef(n);t=r}throw Error(`BUG: BlockedRequests.flatten - please report an issue at https://github.com/Effect-TS/effect/issues`)},nm=e=>{let t=e,n=sm(),r=bf(),i=bf();for(;;)switch(t._tag){case`Empty`:if(gf(r))return[n,i];t=r.head,r=r.tail;break;case`Par`:r=yf(t.right,r),t=t.left;break;case`Seq`:{let e=t.left,n=t.right;switch(e._tag){case`Empty`:t=n;break;case`Par`:{let r=e.left,i=e.right;t=$p(em(r,n),em(i,n));break}case`Seq`:{let r=e.left,i=e.right;t=em(r,em(i,n));break}case`Single`:t=e,i=yf(n,i)}break}case`Single`:if(n=cm(n,t),gf(r))return[n,i];t=r.head,r=r.tail}throw Error(`BUG: BlockedRequests.step - please report an issue at https://github.com/Effect-TS/effect/issues`)},rm=(e,t)=>{if(gf(e))return xf(fm(t));if(um(t))return e;let n=vm(e.head),r=dm(t);return n.length===1&&r.length===1&&Ci(n[0],r[0])?yf(_m(e.head,fm(t)),e.tail):yf(fm(t),e)},im=Symbol.for(`effect/RequestBlock/RequestBlockParallel`),am={_R:e=>e},om=class{map;[im]=am;constructor(e){this.map=e}},sm=()=>new om(Qd()),cm=(e,t)=>new om(af(e.map,t.dataSource,e=>$a(ro(e,Ls(t.blockedRequest)),()=>ks(t.blockedRequest)))),lm=(e,t)=>new om(sf(e.map,t.map,(e,t,n)=>nf(e,n,Xa(tf(e,n),{onNone:()=>t,onSome:e=>Bs(t,e)})))),um=e=>ef(e.map),dm=e=>Array.from(rf(e.map)),fm=e=>gm(of(e.map,e=>ks(e))),pm=Symbol.for(`effect/RequestBlock/RequestBlockSequential`),mm={_R:e=>e},hm=class{map;[pm]=mm;constructor(e){this.map=e}},gm=e=>new hm(e),_m=(e,t)=>new hm(sf(t.map,e.map,(e,t,n)=>nf(e,n,Xa(tf(e,n),{onNone:()=>Ds(),onSome:e=>Bs(e,t)})))),vm=e=>Array.from(rf(e.map)),ym=e=>Array.from(e.map),bm=`Pending`,xm=`Done`,Sm=Symbol.for(`effect/Deferred`),Cm={_E:e=>e,_A:e=>e},wm=e=>({_tag:bm,joiners:e}),Tm=e=>({_tag:xm,effect:e}),Em=class e{self;called=!1;constructor(e){this.self=e}next(e){return this.called?{value:e,done:!0}:(this.called=!0,{value:this.self,done:!1})}return(e){return{value:e,done:!0}}throw(e){throw e}[Symbol.iterator](){return new e(this.self)}},Dm=(e,t)=>{let n=new Am(`Blocked`);return n.effect_instruction_i0=e,n.effect_instruction_i1=t,n},Om=e=>{let t=new Am(`RunBlocked`);return t.effect_instruction_i0=e,t},I=Symbol.for(`effect/Effect`),km=class{patch;op;_op=ta;constructor(e,t){this.patch=e,this.op=t}},Am=class{_op;effect_instruction_i0=void 0;effect_instruction_i1=void 0;effect_instruction_i2=void 0;trace=void 0;[I]=ca;constructor(e){this._op=e}[Si](e){return this===e}[k](){return xi(this,fi(this))}pipe(){return j(this,arguments)}toJSON(){return{_id:`Effect`,_op:this._op,effect_instruction_i0:Oi(this.effect_instruction_i0),effect_instruction_i1:Oi(this.effect_instruction_i1),effect_instruction_i2:Oi(this.effect_instruction_i2)}}toString(){return Pi(this.toJSON())}[Di](){return this.toJSON()}[Symbol.iterator](){return new Em(new oi(this))}},jm=class{_op;effect_instruction_i0=void 0;effect_instruction_i1=void 0;effect_instruction_i2=void 0;trace=void 0;[I]=ca;constructor(e){this._op=e,this._tag=e}[Si](e){return Cg(e)&&e._op===`Failure`&&Ci(this.effect_instruction_i0,e.effect_instruction_i0)}[k](){return D(_i(this._tag),pi(A(this.effect_instruction_i0)),xi(this))}get cause(){return this.effect_instruction_i0}pipe(){return j(this,arguments)}toJSON(){return{_id:`Exit`,_tag:this._op,cause:this.cause.toJSON()}}toString(){return Pi(this.toJSON())}[Di](){return this.toJSON()}[Symbol.iterator](){return new Em(new oi(this))}},Mm=class{_op;effect_instruction_i0=void 0;effect_instruction_i1=void 0;effect_instruction_i2=void 0;trace=void 0;[I]=ca;constructor(e){this._op=e,this._tag=e}[Si](e){return Cg(e)&&e._op===`Success`&&Ci(this.effect_instruction_i0,e.effect_instruction_i0)}[k](){return D(_i(this._tag),pi(A(this.effect_instruction_i0)),xi(this))}get value(){return this.effect_instruction_i0}pipe(){return j(this,arguments)}toJSON(){return{_id:`Exit`,_tag:this._op,value:Oi(this.value)}}toString(){return Pi(this.toJSON())}[Di](){return this.toJSON()}[Symbol.iterator](){return new Em(new oi(this))}},Nm=e=>O(e,I),Pm=e=>{let t=new Am($i);return t.effect_instruction_i0=e,t},Fm=E(3,(e,t,n)=>_h(r=>z(e,e=>z(Jm(ph(()=>r(t(e)))),t=>ph(()=>n(e,t)).pipe(nh({onFailure:e=>{switch(t._tag){case Wi:return R(Pl(t.effect_instruction_i0,e));case Ji:return R(e)}},onSuccess:()=>t})))))),Im=E(2,(e,t)=>z(e,()=>fh(t))),Lm=e=>Im(e,void 0),Rm=function(){let e=new Am(Ui);switch(arguments.length){case 2:e.effect_instruction_i0=arguments[0],e.commit=arguments[1];break;case 3:e.effect_instruction_i0=arguments[0],e.effect_instruction_i1=arguments[1],e.commit=arguments[2];break;case 4:e.effect_instruction_i0=arguments[0],e.effect_instruction_i1=arguments[1],e.effect_instruction_i2=arguments[2],e.commit=arguments[3];break;default:throw Error(Jr(`you're not supposed to end up here`))}return e},zm=(e,t=Yd)=>{let n=new Am(Hi),r;return n.effect_instruction_i0=t=>{r=e(t)},n.effect_instruction_i1=t,dh(n,e=>Nm(r)?r:vh)},Bm=(e,t=Yd)=>ph(()=>zm(e,t)),Vm=(e,t=Yd)=>Rm(e,function(){let e,n;function r(t){e?e(t):n===void 0&&(n=t)}let i=new Am(Hi);i.effect_instruction_i0=t=>{e=t,n&&t(n)},i.effect_instruction_i1=t;let a,o;return this.effect_instruction_i0.length===1?a=ui(()=>this.effect_instruction_i0(r)):(o=new AbortController,a=ui(()=>this.effect_instruction_i0(r,o.signal))),a||o?dh(i,e=>(o&&o.abort(),a??vh)):i}),Hm=E(2,(e,t)=>rh(e,{onFailure:t,onSuccess:fh})),Um=Symbol.for(`effect/OriginalAnnotation`),Wm=(e,t)=>Ya(t)?new Proxy(e,{has(e,t){return t===pu||t===Um||t in e},get(n,r){return r===pu?t.value:r===Um?e:n[r]}}):e,Gm=e=>Br(e)&&!(pu in e)?Pm(t=>R(jl(Wm(e,qg(t))))):R(jl(e)),Km=e=>Xm(()=>jl(new gg(e))),qm=e=>rh(e,{onFailure:e=>fh(M(e)),onSuccess:e=>fh(Pa(e))}),Jm=e=>th(e,{onFailure:Ag,onSuccess:Pg}),Ym=e=>Br(e)&&!(pu in e)?Pm(t=>R(Al(Wm(e,qg(t))))):R(Al(e)),L=e=>z(B(e),Ym),R=e=>{let t=new jm(Wi);return t.effect_instruction_i0=e,t},Xm=e=>z(B(e),R),Zm=Pm(e=>fh(e.id())),Qm=e=>Pm(t=>e(t.id())),z=E(2,(e,t)=>{let n=new Am(Ki);return n.effect_instruction_i0=e,n.effect_instruction_i1=t,n}),$m=e=>{let t=new Am(`OnStep`);return t.effect_instruction_i0=e,t},eh=e=>z(e,yr),th=E(2,(e,t)=>nh(e,{onFailure:e=>fh(t.onFailure(e)),onSuccess:e=>fh(t.onSuccess(e))})),nh=E(2,(e,t)=>{let n=new Am(qi);return n.effect_instruction_i0=e,n.effect_instruction_i1=t.onFailure,n.effect_instruction_i2=t.onSuccess,n}),rh=E(2,(e,t)=>nh(e,{onFailure:e=>{if(Hl(e).length>0)return R(Jl(e));let n=Vl(e);return n.length>0?t.onFailure(Us(n)):R(e)},onSuccess:t.onSuccess})),ih=E(2,(e,t)=>ph(()=>{let n=fo(e),r=lo(n.length),i=0;return Im(bh({while:()=>i<n.length,body:()=>t(n[i],i),step:e=>{r[i++]=e}}),r)})),ah=E(2,(e,t)=>ph(()=>{let n=fo(e),r=0;return bh({while:()=>r<n.length,body:()=>t(n[r],r),step:()=>{r++}})})),oh=e=>{let t=new Am(Xi);return t.effect_instruction_i0=Xp(1),t.effect_instruction_i1=()=>e,t},sh=E(2,(e,t)=>z(e,e=>B(()=>t(e)))),ch=E(2,(e,t)=>rh(e,{onFailure:e=>L(()=>t.onFailure(e)),onSuccess:e=>B(()=>t.onSuccess(e))})),lh=E(2,(e,t)=>nh(e,{onFailure:e=>{let n=Gl(e);switch(n._tag){case`Left`:return L(()=>t(n.left));case`Right`:return R(n.right)}},onSuccess:fh})),uh=E(2,(e,t)=>_h(n=>nh(n(e),{onFailure:e=>{let n=Ag(e);return nh(t(n),{onFailure:t=>Ag(Pl(e,t)),onSuccess:()=>n})},onSuccess:e=>{let n=Pg(e);return wh(t(n),n)}}))),dh=E(2,(e,t)=>uh(e,Ng({onFailure:e=>Bl(e)?Lm(t(Ul(e))):vh,onSuccess:()=>vh}))),fh=e=>{let t=new Mm(Ji);return t.effect_instruction_i0=e,t},ph=e=>{let t=new Am(Ui);return t.commit=e,t},B=e=>{let t=new Am(Yi);return t.effect_instruction_i0=e,t},mh=E(e=>e.length===3||e.length===2&&!(Br(e[1])&&`onlyEffect`in e[1]),(e,t)=>z(e,e=>{let n=typeof t==`function`?t(e):t;return Nm(n)?Im(n,e):qr(n)?zm(t=>{n.then(n=>t(fh(e)),e=>t(Ym(new Sg(e,`An unknown error occurred in Effect.tap`))))}):fh(e)})),hh=e=>Pm(t=>e(Vh(og,F(D(t.getFiberRef(og),Za(()=>t.scope())))))),gh=e=>{let t=new Am(Xi);return t.effect_instruction_i0=Zp(1),t.effect_instruction_i1=()=>e,t},_h=e=>Rm(e,function(){let e=new Am(Xi);return e.effect_instruction_i0=Zp(1),e.effect_instruction_i1=e=>Vp(e)?ui(()=>this.effect_instruction_i0(oh)):ui(()=>this.effect_instruction_i0(gh)),e}),vh=fh(void 0),yh=e=>{let t=new Am(Xi);return t.effect_instruction_i0=e,t.effect_instruction_i1=void 0,t},bh=e=>{let t=new Am(Zi);return t.effect_instruction_i0=e.while,t.effect_instruction_i1=e.body,t.effect_instruction_i2=e.step,t},xh=e=>{let t=new Am(ea);return e?.priority===void 0?t:eg(t,e.priority)},Sh=E(2,(e,t)=>z(e,e=>sh(t,t=>[e,t]))),Ch=E(2,(e,t)=>z(e,e=>Im(t,e))),wh=E(2,(e,t)=>z(e,()=>t)),Th=e=>z(Zm,t=>D(e,Eh(t))),Eh=E(2,(e,t)=>z(e.interruptAsFork(t),()=>e.await)),Dh={_tag:`All`,syslog:0,label:`ALL`,ordinal:-(2**53-1),pipe(){return j(this,arguments)}},Oh={_tag:`Fatal`,syslog:2,label:`FATAL`,ordinal:5e4,pipe(){return j(this,arguments)}},kh={_tag:`Error`,syslog:3,label:`ERROR`,ordinal:4e4,pipe(){return j(this,arguments)}},Ah={_tag:`Warning`,syslog:4,label:`WARN`,ordinal:3e4,pipe(){return j(this,arguments)}},jh={_tag:`Info`,syslog:6,label:`INFO`,ordinal:2e4,pipe(){return j(this,arguments)}},Mh={_tag:`Debug`,syslog:7,label:`DEBUG`,ordinal:1e4,pipe(){return j(this,arguments)}},Nh={_tag:`Trace`,syslog:7,label:`TRACE`,ordinal:0,pipe(){return j(this,arguments)}},Ph={_tag:`None`,syslog:7,label:`OFF`,ordinal:2**53-1,pipe(){return j(this,arguments)}},Fh=Symbol.for(`effect/FiberRef`),Ih={_A:e=>e},Lh=e=>Pm(t=>Pg(t.getFiberRef(e))),Rh=E(2,(e,t)=>z(Lh(e),t)),zh=E(2,(e,t)=>Bh(e,()=>[void 0,t])),Bh=E(2,(e,t)=>Pm(n=>{let[r,i]=t(n.getFiberRef(e));return n.setFiberRef(e,i),fh(r)})),Vh=E(3,(e,t,n)=>Fm(Ch(Lh(t),zh(t,n)),()=>e,e=>zh(t,e))),Hh=(e,t)=>Kh(e,{differ:Tp(),fork:t?.fork??yr,join:t?.join}),Uh=e=>{let t=Cp();return Kh(e,{differ:t,fork:t.empty})},Wh=e=>{let t=wp(Tp());return Kh(e,{differ:t,fork:t.empty})},Gh=e=>{let t=Sp();return Kh(e,{differ:t,fork:t.empty})},Kh=(e,t)=>({...pa,[Fh]:Ih,initial:e,commit(){return Lh(this)},diff:(e,n)=>t.differ.diff(e,n),combine:(e,n)=>t.differ.combine(e,n),patch:e=>n=>t.differ.patch(e,n),fork:t.fork,join:t.join??((e,t)=>t)}),qh=e=>Kh(e,{differ:Yp,fork:Yp.empty}),Jh=Ar(Symbol.for(`effect/FiberRef/currentContext`),()=>Gh(Bu())),Yh=Ar(Symbol.for(`effect/FiberRef/currentSchedulingPriority`),()=>Hh(0)),Xh=Ar(Symbol.for(`effect/FiberRef/currentMaxOpsBeforeYield`),()=>Hh(2048)),Zh=Ar(Symbol.for(`effect/FiberRef/currentLogAnnotation`),()=>Hh(Qd())),Qh=Ar(Symbol.for(`effect/FiberRef/currentLogLevel`),()=>Hh(jh)),$h=Ar(Symbol.for(`effect/FiberRef/currentLogSpan`),()=>Hh(bf())),eg=E(2,(e,t)=>Vh(e,Yh,t)),tg=Ar(Symbol.for(`effect/FiberRef/currentConcurrency`),()=>Hh(`unbounded`)),ng=Ar(Symbol.for(`effect/FiberRef/currentRequestBatching`),()=>Hh(!0)),rg=Ar(Symbol.for(`effect/FiberRef/currentUnhandledErrorLogLevel`),()=>Hh(F(Mh))),ig=Ar(Symbol.for(`effect/FiberRef/versionMismatchErrorLogLevel`),()=>Hh(F(Ah))),ag=Ar(Symbol.for(`effect/FiberRef/currentMetricLabels`),()=>Wh(Wo())),og=Ar(Symbol.for(`effect/FiberRef/currentForkScopeOverride`),()=>Hh(P(),{fork:()=>P(),join:(e,t)=>e})),sg=Ar(Symbol.for(`effect/FiberRef/currentInterruptedCause`),()=>Hh(kl,{fork:()=>kl,join:(e,t)=>e})),cg=Symbol.for(`effect/Scope`),lg=Symbol.for(`effect/CloseableScope`),ug=(e,t)=>e.addFinalizer(()=>Lm(t)),dg=(e,t)=>e.close(t),fg=(e,t)=>e.fork(t),pg=function(){class e extends globalThis.Error{commit(){return Ym(this)}toJSON(){let e={...this};return this.message&&(e.message=this.message),this.cause&&(e.cause=this.cause),e}[Di](){return this.toString===globalThis.Error.prototype.toString?`Bun`in globalThis?ou(Al(this),{renderErrorCause:!0}):this:this.stack?`${this.toString()}\n${this.stack.split(`
|
|
255
|
-
`).slice(1).join(`
|
|
256
|
-
`)}`:this.toString()}}return Object.assign(e.prototype,ma),e}(),mg=(e,t)=>{class n extends pg{_tag=t}return Object.assign(n.prototype,e),n.prototype.name=t,n},hg=Symbol.for(`effect/Cause/errors/RuntimeException`),gg=mg({[hg]:hg},`RuntimeException`),_g=Symbol.for(`effect/Cause/errors/InterruptedException`),vg=e=>O(e,_g),yg=Symbol.for(`effect/Cause/errors/NoSuchElement`),bg=mg({[yg]:yg},`NoSuchElementException`),xg=Symbol.for(`effect/Cause/errors/UnknownException`),Sg=function(){class e extends pg{_tag=`UnknownException`;error;constructor(e,t){super(t??`An unknown error occurred`,{cause:e}),this.error=e}}return Object.assign(e.prototype,{[xg]:xg,name:`UnknownException`}),e}(),Cg=e=>Nm(e)&&`_tag`in e&&(e._tag===`Success`||e._tag===`Failure`),wg=e=>e._tag===`Success`,Tg=E(2,(e,t)=>{switch(e._tag){case Wi:return Ag(e.effect_instruction_i0);case Ji:return Pg(t)}}),Eg=e=>Tg(e,void 0),Dg=(e,t)=>Lg(e,t?.parallel?Nl:Pl),Og=e=>Ag(jl(e)),kg=e=>Ag(Al(e)),Ag=e=>{let t=new jm(Wi);return t.effect_instruction_i0=e,t},jg=e=>Ag(Ml(e)),Mg=E(2,(e,t)=>{switch(e._tag){case Wi:return Ag(e.effect_instruction_i0);case Ji:return Pg(t(e.effect_instruction_i0))}}),Ng=E(2,(e,{onFailure:t,onSuccess:n})=>{switch(e._tag){case Wi:return t(e.effect_instruction_i0);case Ji:return n(e.effect_instruction_i0)}}),Pg=e=>{let t=new Mm(Ji);return t.effect_instruction_i0=e,t},Fg=Pg(void 0),Ig=E(3,(e,t,{onFailure:n,onSuccess:r})=>{switch(e._tag){case Wi:switch(t._tag){case Ji:return Ag(e.effect_instruction_i0);case Wi:return Ag(n(e.effect_instruction_i0,t.effect_instruction_i0))}case Ji:switch(t._tag){case Ji:return Pg(r(e.effect_instruction_i0,t.effect_instruction_i0));case Wi:return Ag(t.effect_instruction_i0)}}}),Lg=(e,t)=>{let n=As(e);return Hs(n)?D(Gs(n),Xo(D(Ws(n),Mg(ks)),(e,n)=>D(e,Ig(n,{onSuccess:(e,t)=>D(e,Rs(t)),onFailure:t}))),Mg(Ns),Mg(e=>Ms(e)),F):P()},Rg=e=>({...pa,[Sm]:Cm,state:Md(wm([])),commit(){return zg(this)},blockingOn:e}),zg=e=>Bm(t=>{let n=Nd(e.state);switch(n._tag){case xm:return t(n.effect);case bm:return n.joiners.push(t),Vg(e,t)}},e.blockingOn),Bg=(e,t)=>{let n=Nd(e.state);if(n._tag===`Pending`){Pd(e.state,Tm(t));for(let e=0,r=n.joiners.length;e<r;e++)n.joiners[e](t)}},Vg=(e,t)=>B(()=>{let n=Nd(e.state);if(n._tag===`Pending`){let e=n.joiners.indexOf(t);e>=0&&n.joiners.splice(e,1)}}),Hg=Pm(e=>Pg(e.currentContext)),Ug=()=>Hg,Wg=e=>z(Ug(),e),Gg=E(2,(e,t)=>Vh(Jh,t)(e)),Kg=E(2,(e,t)=>Wg(n=>Gg(e,t(n)))),qg=e=>{let t=e.currentSpan;return t!==void 0&&t._tag===`Span`?F(t):P()},Jg=Ll,Yg=ou,Xg=`InvalidData`,Zg=`MissingData`,Qg=`SourceUnavailable`,$g=`Unsupported`,e_=Symbol.for(`effect/ConfigError`),t_={_tag:`ConfigError`,[e_]:e_},n_=(e,t)=>{let n=Object.create(t_);return n._op=`And`,n.left=e,n.right=t,Object.defineProperty(n,"toString",{enumerable:!1,value(){return`${this.left} and ${this.right}`}}),Object.defineProperty(n,"message",{enumerable:!1,get(){return this.toString()}}),n},r_=(e,t)=>{let n=Object.create(t_);return n._op=`Or`,n.left=e,n.right=t,Object.defineProperty(n,"toString",{enumerable:!1,value(){return`${this.left} or ${this.right}`}}),Object.defineProperty(n,"message",{enumerable:!1,get(){return this.toString()}}),n},i_=(e,t,n={pathDelim:`.`})=>{let r=Object.create(t_);return r._op=Xg,r.path=e,r.message=t,Object.defineProperty(r,"toString",{enumerable:!1,value(){return`(Invalid data at ${D(this.path,ts(n.pathDelim))}: "${this.message}")`}}),r},a_=(e,t,n={pathDelim:`.`})=>{let r=Object.create(t_);return r._op=Zg,r.path=e,r.message=t,Object.defineProperty(r,"toString",{enumerable:!1,value(){return`(Missing data at ${D(this.path,ts(n.pathDelim))}: "${this.message}")`}}),r},o_=(e,t,n,r={pathDelim:`.`})=>{let i=Object.create(t_);return i._op=Qg,i.path=e,i.message=t,i.cause=n,Object.defineProperty(i,"toString",{enumerable:!1,value(){return`(Source unavailable at ${D(this.path,ts(r.pathDelim))}: "${this.message}")`}}),i},s_=(e,t,n={pathDelim:`.`})=>{let r=Object.create(t_);return r._op=$g,r.path=e,r.message=t,Object.defineProperty(r,"toString",{enumerable:!1,value(){return`(Unsupported operation at ${D(this.path,ts(n.pathDelim))}: "${this.message}")`}}),r},c_=E(2,(e,t)=>{switch(e._op){case`And`:return n_(c_(e.left,t),c_(e.right,t));case`Or`:return r_(c_(e.left,t),c_(e.right,t));case Xg:return i_([...t,...e.path],e.message);case Zg:return a_([...t,...e.path],e.message);case Qg:return o_([...t,...e.path],e.message,e.cause);case $g:return s_([...t,...e.path],e.message)}}),l_=E(3,(e,t,n)=>{let r=[e],i=[];for(;r.length>0;){let e=r.pop();switch(e._op){case`And`:r.push(e.right),r.push(e.left),i.push(M({_op:`AndCase`}));break;case`Or`:r.push(e.right),r.push(e.left),i.push(M({_op:`OrCase`}));break;case Xg:i.push(Pa(n.invalidDataCase(t,e.path,e.message)));break;case Zg:i.push(Pa(n.missingDataCase(t,e.path,e.message)));break;case Qg:i.push(Pa(n.sourceUnavailableCase(t,e.path,e.message,e.cause)));break;case $g:i.push(Pa(n.unsupportedCase(t,e.path,e.message)))}}let a=[];for(;i.length>0;){let e=i.pop();switch(e._op){case`Left`:switch(e.left._op){case`AndCase`:{let e=a.pop(),r=a.pop(),i=n.andCase(t,e,r);a.push(i);break}case`OrCase`:{let e=a.pop(),r=a.pop(),i=n.orCase(t,e,r);a.push(i);break}}break;case`Right`:a.push(e.right)}}if(a.length===0)throw Error(`BUG: ConfigError.reduceWithContext - please report an issue at https://github.com/Effect-TS/effect/issues`);return a.pop()}),u_=Symbol.for(`effect/Clock`),d_=zu(`effect/Clock`),f_=2**31-1,p_={unsafeSchedule(e,t){let n=yd(t);if(n>f_)return Sr;let r=!1,i=setTimeout(()=>{r=!0,e()},n);return()=>(clearTimeout(i),!r)}},m_=function(){let e=BigInt(1e6);if(typeof performance>`u`||typeof performance.now!=`function`)return()=>BigInt(Date.now())*e;let t;return()=>(t===void 0&&(t=BigInt(Date.now())*e-BigInt(Math.round(performance.now()*1e6))),t+BigInt(Math.round(performance.now()*1e6)))}(),h_=function(){let e=typeof process==`object`&&`hrtime`in process&&typeof process.hrtime.bigint==`function`?process.hrtime:void 0;if(!e)return m_;let t=m_()-e.bigint();return()=>t+e.bigint()}(),g_=class{[u_]=u_;unsafeCurrentTimeMillis(){return Date.now()}unsafeCurrentTimeNanos(){return h_()}currentTimeMillis=B(()=>this.unsafeCurrentTimeMillis());currentTimeNanos=B(()=>this.unsafeCurrentTimeNanos());scheduler(){return fh(p_)}sleep(e){return Vm(t=>Lm(B(p_.unsafeSchedule(()=>t(vh),e))))}},__=()=>new g_,v_=Ga,y_=e=>e.replace(/[/\\^$*+?.()|[\]{}]/g,`\\$&`),b_={_tag:`Empty`},x_=E(2,(e,t)=>{let n=xf(t),r=e;for(;_f(n);){let e=n.head;switch(e._tag){case`Empty`:n=n.tail;break;case`AndThen`:n=yf(e.first,yf(e.second,n.tail));break;case`MapName`:r=Ko(r,e.f),n=n.tail;break;case`Nested`:r=ho(r,e.name),n=n.tail;break;case`Unnested`:if(D(Eo(r),oo(e.name)))r=Ao(r),n=n.tail;else return M(a_(r,`Expected ${e.name} to be in path in ConfigProvider#unnested`))}}return Pa(r)}),S_=`Constant`,C_=`Fail`,w_=`Fallback`,T_=`Described`,E_=`Lazy`,D_=`MapOrFail`,O_=`Nested`,k_=`Primitive`,A_=`Redacted`,j_=`Sequence`,M_=`HashMap`,N_=`ZipWith`,P_=(e,t)=>[...e,...t],F_=Symbol.for(`effect/ConfigProvider`),I_=zu(`effect/ConfigProvider`),L_=Symbol.for(`effect/ConfigProviderFlat`),R_=e=>({[F_]:F_,pipe(){return j(this,arguments)},...e}),z_=e=>({[L_]:L_,patch:e.patch,load:(t,n,r=!0)=>e.load(t,n,r),enumerateChildren:e.enumerateChildren}),B_=e=>R_({load:t=>z(K_(e,Wo(),t,!1),e=>Xa(Eo(e),{onNone:()=>Ym(a_(Wo(),`Expected a single value having structure: ${t}`)),onSome:fh})),flattened:e}),V_=e=>{let{pathDelim:t,seqDelim:n}=Object.assign({},{pathDelim:`_`,seqDelim:`,`},e),r=e=>D(e,ts(t)),i=e=>e.split(t),a=()=>(typeof process<`u`&&`env`in process,{});return B_(z_({load:(e,t,i=!0)=>{let o=r(e),s=a();return D(o in s?F(s[o]):P(),lh(()=>a_(e,`Expected ${o} to exist in the process context`)),z(r=>Y_(r,e,t,n,i)))},enumerateChildren:e=>B(()=>{let t=a();return dl(Object.keys(t).map(e=>i(e.toUpperCase())).filter(t=>{for(let n=0;n<e.length;n++){let r=D(e,To(n)),i=t[n];if(i===void 0||r!==i)return!1}return!0}).flatMap(t=>t.slice(e.length,e.length+1)))}),patch:b_}))},H_=(e,t,n,r)=>{let i=Zo(n.length,t=>t>=r.length?P():F([e(t),t+1])),a=Zo(r.length,e=>e>=n.length?P():F([t(e),e+1]));return[P_(n,i),P_(r,a)]},U_=(e,t)=>{let n=t;if(n._tag===`Nested`){let t=e.slice();for(;n._tag===`Nested`;)t.push(n.name),n=n.config;return t}return e},W_={andCase:(e,t,n)=>n_(t,n),orCase:(e,t,n)=>r_(t,n),invalidDataCase:(e,t)=>i_(t,`<redacted>`),missingDataCase:(e,t)=>a_(t,`<redacted>`),sourceUnavailableCase:(e,t,n,r)=>o_(t,`<redacted>`,r),unsupportedCase:(e,t)=>s_(t,`<redacted>`)},G_=e=>l_(e,void 0,W_),K_=(e,t,n,r)=>{let i=n;switch(i._tag){case S_:return fh(Go(i.value));case T_:return ph(()=>K_(e,t,i.config,r));case C_:return Ym(a_(t,i.message));case w_:return D(ph(()=>K_(e,t,i.first,r)),Hm(n=>i.condition(n)?D(K_(e,t,i.second,r),Hm(e=>Ym(r_(n,e)))):Ym(n)));case E_:return ph(()=>K_(e,t,i.config(),r));case D_:return ph(()=>D(K_(e,t,i.original,r),z(ih(e=>D(i.mapOrFail(e),lh(c_(U_(t,i.original))))))));case O_:return ph(()=>K_(e,P_(t,Go(i.name)),i.config,r));case k_:return D(x_(t,e.patch),z(t=>D(e.load(t,i,r),z(e=>{if(e.length===0){let e=D(Oo(t),Za(()=>`<n/a>`));return Ym(a_([],`Expected ${i.description} with name ${e}`))}return fh(e)}))));case A_:return ph(()=>D(K_(e,t,i.original,r),lh(G_),sh(Ko(i.redact))));case j_:return D(x_(t,e.patch),z(n=>D(e.enumerateChildren(n),z(Z_),z(n=>n.length===0?ph(()=>sh(K_(e,t,i.config,!0),Go)):D(ih(n,n=>K_(e,go(t,`[${n}]`),i.config,!0)),sh(e=>{let t=Jo(e);return t.length===0?Go(Wo()):Go(t)}))))));case M_:return ph(()=>D(x_(t,e.patch),z(t=>D(e.enumerateChildren(t),z(n=>D(n,ih(n=>K_(e,P_(t,Go(n)),i.valueConfig,r)),sh(e=>e.length===0?Go(Qd()):D(X_(e),Ko(e=>$d(Io(fo(n),e)))))))))));case N_:return ph(()=>D(K_(e,t,i.left,r),qm,z(n=>D(K_(e,t,i.right,r),qm,z(e=>{if(Ia(n)&&Ia(e))return Ym(n_(n.left,e.left));if(Ia(n)&&La(e))return Ym(n.left);if(La(n)&&Ia(e))return Ym(e.left);if(La(n)&&La(e)){let r=q_(t,D(t,ts(`.`))),[a,o]=H_(r,r,D(n.right,Ko(Pa)),D(e.right,Ko(Pa)));return D(a,Io(o),ih(([e,t])=>D(Sh(e,t),sh(([e,t])=>i.zip(e,t)))))}throw Error(`BUG: ConfigProvider.fromFlatLoop - please report an issue at https://github.com/Effect-TS/effect/issues`)})))))}},q_=(e,t)=>n=>M(a_(e,`The element at index ${n} in a sequence at path "${t}" was missing`)),J_=(e,t)=>e.split(RegExp(`\\s*${y_(t)}\\s*`)),Y_=(e,t,n,r,i)=>i?D(J_(e,r),ih(e=>n.parse(e.trim())),lh(c_(t))):D(n.parse(e),ch({onFailure:c_(t),onSuccess:Go})),X_=e=>Object.keys(e[0]).map(t=>e.map(e=>e[t])),Z_=e=>D(ih(e,$_),ch({onFailure:()=>Wo(),onSuccess:Fo(v_)}),qm,sh(Ba)),Q_=/^(\[(\d+)\])$/,$_=e=>{let t=e.match(Q_);if(t!==null){let e=t[2];return D(e!==void 0&&e.length>0?F(e):P(),io(ev))}return P()},ev=e=>{let t=Number.parseInt(e);return Number.isNaN(t)?P():F(t)},tv=Symbol.for(`effect/Console`),nv=zu(`effect/Console`),rv={[tv]:tv,assert(e,...t){return B(()=>{console.assert(e,...t)})},clear:B(()=>{console.clear()}),count(e){return B(()=>{console.count(e)})},countReset(e){return B(()=>{console.countReset(e)})},debug(...e){return B(()=>{console.debug(...e)})},dir(e,t){return B(()=>{console.dir(e,t)})},dirxml(...e){return B(()=>{console.dirxml(...e)})},error(...e){return B(()=>{console.error(...e)})},group(e){return e?.collapsed?B(()=>console.groupCollapsed(e?.label)):B(()=>console.group(e?.label))},groupEnd:B(()=>{console.groupEnd()}),info(...e){return B(()=>{console.info(...e)})},log(...e){return B(()=>{console.log(...e)})},table(e,t){return B(()=>{console.table(e,t)})},time(e){return B(()=>console.time(e))},timeEnd(e){return B(()=>console.timeEnd(e))},timeLog(e,...t){return B(()=>{console.timeLog(e,...t)})},trace(...e){return B(()=>{console.trace(...e)})},warn(...e){return B(()=>{console.warn(...e)})},unsafe:console},iv=Symbol.for(`effect/Random`),av=zu(`effect/Random`),ov=class{seed;[iv]=iv;PRNG;constructor(e){this.seed=e,this.PRNG=new ni(e)}get next(){return B(()=>this.PRNG.number())}get nextBoolean(){return sh(this.next,e=>e>.5)}get nextInt(){return B(()=>this.PRNG.integer(2**53-1))}nextRange(e,t){return sh(this.next,n=>(t-e)*n+e)}nextIntBetween(e,t){return B(()=>this.PRNG.integer(t-e)+e)}shuffle(e){return sv(e,e=>this.nextIntBetween(0,e))}},sv=(e,t)=>ph(()=>D(B(()=>Array.from(e)),z(e=>{let n=[];for(let t=e.length;t>=2;--t)n.push(t);return D(n,ah(n=>D(t(n),sh(t=>cv(e,n-1,t)))),Im(As(e)))}))),cv=(e,t,n)=>{let r=e[t];return e[t]=e[n],e[n]=r,e},lv=e=>new ov(A(e)),uv=Symbol.for(`effect/Tracer`),dv=e=>({[uv]:uv,...e}),fv=zu(`effect/Tracer`),pv=zu(`effect/ParentSpan`),mv=function(){return function(e){let t=``;for(let n=0;n<e;n++)t+=`abcdef0123456789`.charAt(Math.floor(Math.random()*16));return t}}(),hv=class{name;parent;context;startTime;kind;_tag=`Span`;spanId;traceId=`native`;sampled=!0;status;attributes;events=[];links;constructor(e,t,n,r,i,a){this.name=e,this.parent=t,this.context=n,this.startTime=i,this.kind=a,this.status={_tag:`Started`,startTime:i},this.attributes=new Map,this.traceId=t._tag===`Some`?t.value.traceId:mv(32),this.spanId=mv(16),this.links=Array.from(r)}end(e,t){this.status={_tag:`Ended`,endTime:e,exit:t,startTime:this.status.startTime}}attribute(e,t){this.attributes.set(e,t)}event(e,t,n){this.events.push([e,t,n??{}])}addLinks(e){this.links.push(...e)}},gv=dv({span:(e,t,n,r,i,a)=>new hv(e,t,n,r,i,a),context:e=>e()}),_v=qu()(`effect/Tracer/DisablePropagation`,{defaultValue:Sr}),vv=D(Bu(),Hu(d_,__()),Hu(nv,rv),Hu(av,lv(Math.random())),Hu(I_,V_()),Hu(fv,gv)),yv=Ar(Symbol.for(`effect/DefaultServices/currentServices`),()=>Gh(vv)),bv=function(){let e=Symbol.for(`effect/Data/Error/plainArgs`);return{BaseEffectError:class extends pg{constructor(t){super(t?.message,t?.cause?{cause:t.cause}:void 0),t&&(Object.assign(this,t),Object.defineProperty(this,e,{value:t,enumerable:!1}))}toJSON(){return{...this[e],...this}}}}.BaseEffectError}(),xv=e=>{let t={BaseEffectError:class extends bv{_tag=e}};return t.BaseEffectError.prototype.name=e,t.BaseEffectError},Sv=da,Cv=ha,wv=class extends Cv{},Tv=`Sequential`,Ev=`Parallel`,Dv=`ParallelN`,Ov={_tag:Tv},kv={_tag:Ev},Av=e=>({_tag:Dv,parallelism:e}),jv=e=>e._tag===Tv,Mv=e=>e._tag===Ev,Nv=Ov,Pv=kv,Fv=Av;function Iv(e){return new zv(e)}function Lv(){return Iv(new Map)}var Rv=Symbol.for(`effect/FiberRefs`),zv=class{locals;[Rv]=Rv;constructor(e){this.locals=e}pipe(){return j(this,arguments)}},Bv=(e,t,n,r=!1)=>{let i=e,a=t,o=n,s=r,c;for(;c===void 0;)if(xo(a)&&xo(o)){let e=Do(a)[0],t=Ao(a),n=Do(o)[0],r=Do(o)[1],i=Ao(o);e.startTimeMillis<n.startTimeMillis?(o=i,s=!0):e.startTimeMillis>n.startTimeMillis?a=t:e.id<n.id?(o=i,s=!0):e.id>n.id?a=t:c=[r,s]}else c=[i.initial,!0];return c},Vv=E(3,(e,t,n)=>{let r=new Map(e.locals);return n.locals.forEach((e,n)=>{let i=e[0][1];if(!e[0][0][Si](t)){if(!r.has(n)){if(Ci(i,n.initial))return;r.set(n,[[t,n.join(n.initial,i)]]);return}let a=r.get(n),[o,s]=Bv(n,a,e);if(s){let e=n.diff(o,i),s=a[0][1],c=n.join(s,n.patch(e)(s));if(!Ci(s,c)){let e,i=a[0][0];e=i[Si](t)?[[i,c],...a.slice(1)]:[[t,c],...a],r.set(n,e)}}}}),new zv(r)}),Hv=E(2,(e,t)=>{let n=new Map;return V(e,n,t),new zv(n)}),V=(e,t,n)=>{e.locals.forEach((e,r)=>{let i=e[0][1],a=r.patch(r.fork)(i);Ci(i,a)?t.set(r,e):t.set(r,[[n,a],...e])})},Uv=E(2,(e,t)=>{let n=new Map(e.locals);return n.delete(t),new zv(n)}),Wv=E(2,(e,t)=>e.locals.has(t)?F(Do(e.locals.get(t))[1]):P()),Gv=E(2,(e,t)=>D(Wv(e,t),Za(()=>t.initial))),Kv=E(2,(e,{fiberId:t,fiberRef:n,value:r})=>{if(e.locals.size===0)return new zv(new Map([[n,[[t,r]]]]));let i=new Map(e.locals);return qv(i,t,n,r),new zv(i)}),qv=(e,t,n,r)=>{let i=e.get(n)??[],a;if(xo(i)){let[e,n]=Do(i);if(e[Si](t)){if(Ci(n,r))return;a=[[t,r],...i.slice(1)]}else a=[[t,r],...i]}else a=[[t,r]];e.set(n,a)},Jv=E(2,(e,{entries:t,forkAs:n})=>{if(e.locals.size===0)return new zv(new Map(t));let r=new Map(e.locals);return n!==void 0&&V(e,r,n),t.forEach(([e,t])=>{t.length===1?qv(r,t[0][0],e,t[0][1]):t.forEach(([t,n])=>{qv(r,t,e,n)})}),new zv(r)}),Yv=Gv,Xv=Jv,Zv=Lv,Qv=`Empty`,$v=`Remove`,ey=`Update`,ty=`AndThen`,ny={_tag:Qv},ry=(e,t)=>{let n=new Map(e.locals),r=ny;for(let[e,i]of t.locals.entries()){let t=Do(i)[1],a=n.get(e);if(a!==void 0){let n=Do(a)[1];Ci(n,t)||(r=iy({_tag:ey,fiberRef:e,patch:e.diff(n,t)})(r))}else r=iy({_tag:`Add`,fiberRef:e,value:t})(r);n.delete(e)}for(let[e]of n.entries())r=iy({_tag:$v,fiberRef:e})(r);return r},iy=E(2,(e,t)=>({_tag:ty,first:e,second:t})),ay=E(3,(e,t,n)=>{let r=n,i=Go(e);for(;xo(i);){let e=Do(i),n=Ao(i);switch(e._tag){case Qv:i=n;break;case`Add`:r=Kv(r,{fiberId:t,fiberRef:e.fiberRef,value:e.value}),i=n;break;case $v:r=Uv(r,e.fiberRef),i=n;break;case ey:{let a=Gv(r,e.fiberRef);r=Kv(r,{fiberId:t,fiberRef:e.fiberRef,value:e.fiberRef.patch(e.patch)(a)}),i=n;break}case ty:i=ho(e.first)(ho(e.second)(n))}}return r}),oy=ry,sy=ay,cy=`effect/FiberStatus`,ly=Symbol.for(cy),uy=`Done`,dy=`Running`,fy=`Suspended`,py=_i(`${cy}-${uy}`),my=class{[ly]=ly;_tag=uy;[k](){return py}[Si](e){return by(e)&&e._tag===`Done`}},hy=class{runtimeFlags;[ly]=ly;_tag=dy;constructor(e){this.runtimeFlags=e}[k](){return D(A(cy),pi(A(this._tag)),pi(A(this.runtimeFlags)),xi(this))}[Si](e){return by(e)&&e._tag===`Running`&&this.runtimeFlags===e.runtimeFlags}},gy=class{runtimeFlags;blockingOn;[ly]=ly;_tag=fy;constructor(e,t){this.runtimeFlags=e,this.blockingOn=t}[k](){return D(A(cy),pi(A(this._tag)),pi(A(this.runtimeFlags)),pi(A(this.blockingOn)),xi(this))}[Si](e){return by(e)&&e._tag===`Suspended`&&this.runtimeFlags===e.runtimeFlags&&Ci(this.blockingOn,e.blockingOn)}},_y=new my,vy=e=>new hy(e),yy=(e,t)=>new gy(e,t),by=e=>O(e,ly),xy=e=>e._tag===uy,Sy=_y,Cy=vy,wy=yy,Ty=xy,Ey=Dh,Dy=Oh,Oy=kh,ky=Ah,Ay=jh,jy=Mh,My=Nh,Ny=Ph,Py=qa(D(v_,Ka(e=>e.ordinal))),H=e=>{switch(e){case`All`:return Ey;case`Debug`:return jy;case`Error`:return Oy;case`Fatal`:return Dy;case`Info`:return Ay;case`Trace`:return My;case`None`:return Ny;case`Warning`:return ky}},U=Symbol.for(`effect/Micro`),Fy=Symbol.for(`effect/Micro/MicroExit`),Iy=Symbol.for(`effect/Micro/MicroCause`),Ly={_E:yr},Ry=class extends globalThis.Error{_tag;traces;[Iy];constructor(e,t,n){let r=`MicroCause.${e}`,i,a,o;if(t instanceof globalThis.Error){i=`(${r}) ${t.name}`,a=t.message;let e=a.split(`
|
|
257
|
-
`).length;o=t.stack?`(${r}) ${t.stack.split(`
|
|
258
|
-
`).slice(0,e+3).join(`
|
|
259
|
-
`)}`:`${i}: ${a}`}else i=r,a=Fi(t,0),o=`${i}: ${a}`;n.length>0&&(o+=`\n ${n.join(`
|
|
260
|
-
`)}`),super(a),this._tag=e,this.traces=n,this[Iy]=Ly,this.name=i,this.stack=o}pipe(){return j(this,arguments)}toString(){return this.stack}[Di](){return this.stack}},zy=class extends Ry{defect;constructor(e,t=[]){super(`Die`,e,t),this.defect=e}},By=(e,t=[])=>new zy(e,t),Vy=class extends Ry{constructor(e=[]){super(`Interrupt`,`interrupted`,e)}},Hy=(e=[])=>new Vy(e),Uy=e=>e._tag===`Interrupt`,Wy=Symbol.for(`effect/Micro/MicroFiber`),Gy={_A:yr,_E:yr},Ky=class{context;interruptible;[Wy];_stack=[];_observers=[];_exit;_children;currentOpCount=0;constructor(e,t=!0){this.context=e,this.interruptible=t,this[Wy]=Gy}getRef(e){return Pu(this.context,e)}addObserver(e){return this._exit?(e(this._exit),wr):(this._observers.push(e),()=>{let t=this._observers.indexOf(e);t>=0&&this._observers.splice(t,1)})}_interrupted=!1;unsafeInterrupt(){this._exit||(this._interrupted=!0,this.interruptible&&this.evaluate(_b))}unsafePoll(){return this._exit}evaluate(e){if(this._exit)return;if(this._yielded!==void 0){let e=this._yielded;this._yielded=void 0,e()}let t=this.runLoop(e);if(t===eb)return;let n=qy.interruptChildren&&qy.interruptChildren(this);if(n!==void 0)return this.evaluate(fb(n,()=>t));this._exit=t;for(let e=0;e<this._observers.length;e++)this._observers[e](t);this._observers.length=0}runLoop(e){let t=!1,n=e;this.currentOpCount=0;try{for(;;){if(this.currentOpCount++,!t&&this.getRef(Tb).shouldYield(this)){t=!0;let e=n;n=fb(lb,()=>e)}if(n=n[Xy](this),n===eb){let e=this._yielded;return Fy in e?(this._yielded=void 0,e):eb}}}catch(e){return O(n,Xy)?vb(e):vb(`MicroFiber.runLoop: Not a valid effect: ${String(n)}`)}}getCont(e){for(;;){let t=this._stack.pop();if(!t)return;let n=t[$y]&&t[$y](this);if(n)return{[e]:n};if(t[e])return t}}_yielded=void 0;yieldWith(e){return this._yielded=e,eb}children(){return this._children??=new Set}},qy=Ar(`effect/Micro/fiberMiddleware`,()=>({interruptChildren:void 0})),Jy=Symbol.for(`effect/Micro/identifier`),Yy=Symbol.for(`effect/Micro/args`),Xy=Symbol.for(`effect/Micro/evaluate`),Zy=Symbol.for(`effect/Micro/successCont`),Qy=Symbol.for(`effect/Micro/failureCont`),$y=Symbol.for(`effect/Micro/ensureCont`),eb=Symbol.for(`effect/Micro/Yield`),tb={_A:yr,_E:yr,_R:yr},nb={...Sv,_op:`Micro`,[U]:tb,pipe(){return j(this,arguments)},[Symbol.iterator](){return new Yr(new oi(this))},toJSON(){return{_id:`Micro`,op:this[Jy],...Yy in this?{args:this[Yy]}:void 0}},toString(){return Pi(this)},[Di](){return Pi(this)}};function rb(e){return vb(`Micro.evaluate: Not implemented`)}var ib=e=>({...nb,[Jy]:e.op,[Xy]:e.eval??rb,[Zy]:e.contA,[Qy]:e.contE,[$y]:e.ensure}),ab=e=>{let t=ib(e);return function(){let n=Object.create(t);return n[Yy]=e.single===!1?arguments:arguments[0],n}},ob=e=>{let t={...ib(e),[Fy]:Fy,_tag:e.op,get[e.prop](){return this[Yy]},toJSON(){return{_id:`MicroExit`,_tag:e.op,[e.prop]:this[Yy]}},[Si](t){return mb(t)&&t._tag===e.op&&Ci(this[Yy],t[Yy])},[k](){return xi(this,pi(_i(e.op))(A(this[Yy])))}};return function(e){let n=Object.create(t);return n[Yy]=e,n[Zy]=void 0,n[Qy]=void 0,n[$y]=void 0,n}},sb=ob({op:`Success`,prop:`value`,eval(e){let t=e.getCont(Zy);return t?t[Zy](this[Yy],e):e.yieldWith(this)}}),cb=ob({op:`Failure`,prop:`cause`,eval(e){let t=e.getCont(Qy);for(;Uy(this[Yy])&&t&&e.interruptible;)t=e.getCont(Qy);return t?t[Qy](this[Yy],e):e.yieldWith(this)}}),lb=ab({op:`Yield`,eval(e){let t=!1;return e.getRef(Tb).scheduleTask(()=>{t||e.evaluate(yb)},this[Yy]??0),e.yieldWith(()=>{t=!0})}})(0),ub=sb(void 0),db=ab({op:`WithMicroFiber`,eval(e){return this[Yy](e)}}),fb=E(2,(e,t)=>{let n=Object.create(pb);return n[Yy]=e,n[Zy]=t,n}),pb=ib({op:`OnSuccess`,eval(e){return e._stack.push(this),this[Yy]}}),mb=e=>O(e,Fy),hb=sb,gb=cb,_b=gb(Hy()),vb=e=>gb(By(e)),yb=hb(void 0),bb=`setImmediate`in globalThis?globalThis.setImmediate:e=>setTimeout(e,0),xb=class{tasks=[];running=!1;scheduleTask(e,t){this.tasks.push(e),this.running||(this.running=!0,bb(this.afterScheduled))}afterScheduled=()=>{this.running=!1,this.runTasks()};runTasks(){let e=this.tasks;this.tasks=[];for(let t=0,n=e.length;t<n;t++)e[t]()}shouldYield(e){return e.currentOpCount>=e.getRef(wb)}flush(){for(;this.tasks.length>0;)this.runTasks()}},Sb=E(2,(e,t)=>db(n=>{let r=n.context;return n.context=t(r),Ob(e,()=>(n.context=r,ub))})),Cb=E(2,(e,t)=>Sb(e,Ku(t))),wb=class extends qu()(`effect/Micro/currentMaxOpsBeforeYield`,{defaultValue:()=>2048}){},Tb=class extends qu()(`effect/Micro/currentScheduler`,{defaultValue:()=>new xb}){},Eb=E(2,(e,t)=>{let n=Object.create(Db);return n[Yy]=e,n[Zy]=t.onSuccess,n[Qy]=t.onFailure,n}),Db=ib({op:`OnSuccessAndFailure`,eval(e){return e._stack.push(this),this[Yy]}}),Ob=E(2,(e,t)=>jb(n=>Eb(n(e),{onFailure:e=>fb(t(gb(e)),()=>cb(e)),onSuccess:e=>fb(t(hb(e)),()=>sb(e))}))),kb=ab({op:`SetInterruptible`,ensure(e){if(e.interruptible=this[Yy],e._interrupted&&e.interruptible)return()=>_b}}),Ab=e=>db(t=>t.interruptible?e:(t.interruptible=!0,t._stack.push(kb(!1)),t._interrupted?_b:e)),jb=e=>db(t=>t.interruptible?(t.interruptible=!1,t._stack.push(kb(!0)),e(Ab)):e(yr)),Mb=(e,t)=>{let n=new Ky(Tb.context(t?.scheduler??new xb));if(n.evaluate(e),t?.signal){if(t.signal.aborted)n.unsafeInterrupt();else{let e=()=>n.unsafeInterrupt();t.signal.addEventListener(`abort`,e,{once:!0}),n.addObserver(()=>t.signal.removeEventListener(`abort`,e))}}return n},Nb=class e{scheduleDrain;running=!1;tasks=new Pb;constructor(e){this.scheduleDrain=e}starveInternal=e=>{let t=this.tasks.buckets;this.tasks.buckets=[];for(let[e,n]of t)for(let e=0;e<n.length;e++)n[e]();this.tasks.buckets.length===0?this.running=!1:this.starve(e)};starve(e=0){this.scheduleDrain(e,this.starveInternal)}scheduleTask(e,t){this.tasks.scheduleTask(e,t),this.running||(this.running=!0,this.starve())}static cached(t){let n=new e(t),r=new WeakMap;return i=>{if(i===void 0)return n;let a=r.get(i);return a===void 0&&(a=new e(t),r.set(i,a)),a}}},Pb=class{buckets=[];scheduleTask(e,t){let n=this.buckets.length,r,i=0;for(;i<n&&this.buckets[i][0]<=t;i++)r=this.buckets[i];r&&r[0]===t?r[1].push(e):i===n?this.buckets.push([t,[e]]):this.buckets.splice(i,0,[t,[e]])}},Fb=class{maxNextTickBeforeTimer;getRunner=Nb.cached((e,t)=>{e>=this.maxNextTickBeforeTimer?setTimeout(()=>t(0),0):Promise.resolve(void 0).then(()=>t(e+1))});constructor(e){this.maxNextTickBeforeTimer=e}shouldYield(e){return e.currentOpCount>e.getFiberRef(Xh)&&e.getFiberRef(Yh)}scheduleTask(e,t,n){this.getRunner(n).scheduleTask(e,t)}},Ib=Ar(Symbol.for(`effect/Scheduler/defaultScheduler`),()=>new Fb(2048)),Lb=class{tasks=new Pb;deferred=!1;scheduleTask(e,t,n){this.deferred?Ib.scheduleTask(e,t,n):this.tasks.scheduleTask(e,t)}shouldYield(e){return e.currentOpCount>e.getFiberRef(Xh)&&e.getFiberRef(Yh)}flush(){for(;this.tasks.buckets.length>0;){let e=this.tasks.buckets;this.tasks.buckets=[];for(let[t,n]of e)for(let e=0;e<n.length;e++)n[e]()}this.deferred=!0}},Rb=Ar(Symbol.for(`effect/FiberRef/currentScheduler`),()=>Hh(Ib)),zb=Ar(Symbol.for(`effect/FiberRef/currentRequestMap`),()=>Hh(new Map)),Bb=(e,t,n,r)=>{switch(e){case void 0:return t();case`unbounded`:return n();case`inherit`:return Rh(tg,e=>e===`unbounded`?n():e>1?r(e):t());default:return e>1?r(e):t()}},Vb=e=>e.replace(/[\s="]/g,`_`),Hb=e=>t=>`${Vb(t.label)}=${e-t.startTime}ms`,Ub=`effect/MetricLabel`,Wb=Symbol.for(Ub),Gb=class{key;value;[Wb]=Wb;_hash;constructor(e,t){this.key=e,this.value=t,this._hash=_i(Ub+this.key+this.value)}[k](){return this._hash}[Si](e){return qb(e)&&this.key===e.key&&this.value===e.value}pipe(){return j(this,arguments)}},Kb=(e,t)=>new Gb(e,t),qb=e=>O(e,Wb),Jb=io(e=>Uu(e.context,_v)?e._tag===`Span`?Jb(e.parent):P():F(e)),Yb=wg,Xb=`InterruptSignal`,Zb=`Stateful`,Qb=`Resume`,$b=`YieldNow`,ex=e=>({_tag:Xb,cause:e}),tx=e=>({_tag:Zb,onFiber:e}),nx=e=>({_tag:Qb,effect:e}),rx=()=>({_tag:$b}),W=Symbol.for(`effect/FiberScope`),ix=class{[W]=W;fiberId=Yd;roots=new Set;add(e,t){this.roots.add(t),t.addObserver(()=>{this.roots.delete(t)})}},ax=class{fiberId;parent;[W]=W;constructor(e,t){this.fiberId=e,this.parent=t}add(e,t){this.parent.tell(tx(e=>{e.addChild(t),t.addObserver(()=>{e.removeChild(t)})}))}},ox=e=>new ax(e.id(),e),sx=Ar(Symbol.for(`effect/FiberScope/Global`),()=>new ix),cx=Symbol.for(`effect/Fiber`),lx={_E:e=>e,_A:e=>e},ux={[cx]:lx,pipe(){return j(this,arguments)}},dx=Symbol.for(`effect/Fiber`),fx=e=>Ch(eh(e.await),e.inheritAll);({...pa}),{...ux};var px=`effect/FiberCurrent`,mx=Symbol.for(`effect/Logger`),hx={_Message:e=>e,_Output:e=>e},gx=e=>({[mx]:hx,log:e,pipe(){return j(this,arguments)}}),_x=/^[^\s"=]*$/,vx=gx(((e,t)=>({annotations:n,cause:r,date:i,fiberId:a,logLevel:o,message:s,spans:c})=>{let l=t=>t.match(_x)?t:e(t),u=(e,t)=>`${Vb(e)}=${l(t)}`,d=(e,t)=>` `+u(e,t),f=u(`timestamp`,i.toISOString());f+=d(`level`,o.label),f+=d(`fiber`,qd(a));let p=po(s);for(let e=0;e<p.length;e++)f+=d(`message`,Fi(p[e],t));Il(r)||(f+=d(`cause`,ou(r,{renderErrorCause:!0})));for(let e of c)f+=` `+Hb(i.getTime())(e);for(let[e,r]of n)f+=d(e,Fi(r,t));return f})(e=>`"${e.replace(/\\([\s\S])|(")/g,`\\$1$2`)}"`)),yx={bold:`1`,red:`31`,green:`32`,yellow:`33`,blue:`34`,cyan:`36`,white:`37`,gray:`90`,black:`30`,bgBrightRed:`101`};yx.gray,yx.blue,yx.green,yx.yellow,yx.red,yx.bgBrightRed,yx.black;var bx=typeof process==`object`&&process!==null&&typeof process.stdout==`object`&&process.stdout!==null;bx&&process.stdout.isTTY,bx||`Deno`in globalThis;var xx=`effect/MetricBoundaries`,Sx=Symbol.for(xx),Cx=class{values;[Sx]=Sx;constructor(e){this.values=e,this._hash=D(_i(xx),pi(bi(this.values)))}_hash;[k](){return this._hash}[Si](e){return wx(e)&&Ci(this.values,e.values)}pipe(){return j(this,arguments)}},wx=e=>O(e,Sx),Tx=e=>new Cx(D(e,_o(ks(1/0)),es)),Ex=e=>D(uo(e.count-1,t=>e.start*e.factor**+t),Ps,Tx),Dx=Symbol.for(`effect/MetricKeyType`),Ox=`effect/MetricKeyType/Counter`,kx=Symbol.for(Ox),Ax=Symbol.for(`effect/MetricKeyType/Frequency`),jx=Symbol.for(`effect/MetricKeyType/Gauge`),Mx=`effect/MetricKeyType/Histogram`,Nx=Symbol.for(Mx),Px=Symbol.for(`effect/MetricKeyType/Summary`),Fx={_In:e=>e,_Out:e=>e},Ix=class{incremental;bigint;[Dx]=Fx;[kx]=kx;constructor(e,t){this.incremental=e,this.bigint=t,this._hash=_i(Ox)}_hash;[k](){return this._hash}[Si](e){return zx(e)}pipe(){return j(this,arguments)}},G=class{boundaries;[Dx]=Fx;[Nx]=Nx;constructor(e){this.boundaries=e,this._hash=D(_i(Mx),pi(A(this.boundaries)))}_hash;[k](){return this._hash}[Si](e){return Hx(e)&&Ci(this.boundaries,e.boundaries)}pipe(){return j(this,arguments)}},Lx=e=>new Ix(e?.incremental??!1,e?.bigint??!1),Rx=e=>new G(e),zx=e=>O(e,kx),Bx=e=>O(e,Ax),Vx=e=>O(e,jx),Hx=e=>O(e,Nx),Ux=e=>O(e,Px),Wx=Symbol.for(`effect/MetricKey`),Gx={_Type:e=>e},Kx=Qo(Ci),K=class{name;keyType;description;tags;[Wx]=Gx;constructor(e,t,n,r=[]){this.name=e,this.keyType=t,this.description=n,this.tags=r,this._hash=D(_i(this.name+this.description),pi(A(this.keyType)),pi(bi(this.tags)))}_hash;[k](){return this._hash}[Si](e){return qx(e)&&this.name===e.name&&Ci(this.keyType,e.keyType)&&Ci(this.description,e.description)&&Kx(this.tags,e.tags)}pipe(){return j(this,arguments)}},qx=e=>O(e,Wx),Jx=(e,t)=>new K(e,Lx(t),eo(t?.description)),Yx=(e,t,n)=>new K(e,Rx(t),eo(n)),Xx=E(2,(e,t)=>t.length===0?e:new K(e.name,e.keyType,e.description,Uo(e.tags,t))),Zx=Symbol.for(`effect/MutableHashMap`),Qx={[Zx]:Zx,[Symbol.iterator](){return new $x(this)},toString(){return Pi(this.toJSON())},toJSON(){return{_id:`MutableHashMap`,values:Array.from(this).map(Oi)}},[Di](){return this.toJSON()},pipe(){return j(this,arguments)}},$x=class e{self;referentialIterator;bucketIterator;constructor(e){this.self=e,this.referentialIterator=e.referential[Symbol.iterator]()}next(){if(this.bucketIterator!==void 0)return this.bucketIterator.next();let e=this.referentialIterator.next();return e.done?(this.bucketIterator=new eS(this.self.buckets.values()),this.next()):e}[Symbol.iterator](){return new e(this.self)}},eS=class{backing;constructor(e){this.backing=e}currentBucket;next(){if(this.currentBucket===void 0){let e=this.backing.next();if(e.done)return e;this.currentBucket=e.value[Symbol.iterator]()}let e=this.currentBucket.next();return e.done?(this.currentBucket=void 0,this.next()):e}},tS=()=>{let e=Object.create(Qx);return e.referential=new Map,e.buckets=new Map,e.bucketsSize=0,e},nS=E(2,(e,t)=>{if(Ti(t)===!1)return e.referential.has(t)?F(e.referential.get(t)):P();let n=t[k](),r=e.buckets.get(n);return r===void 0?P():rS(e,r,t)}),rS=(e,t,n,r=!1)=>{for(let i=0,a=t.length;i<a;i++)if(n[Si](t[i][0])){let n=t[i][1];return r&&(t.splice(i,1),e.bucketsSize--),F(n)}return P()},iS=E(2,(e,t)=>Ya(nS(e,t))),aS=E(3,(e,t,n)=>{if(Ti(t)===!1)return e.referential.set(t,n),e;let r=t[k](),i=e.buckets.get(r);return i===void 0?(e.buckets.set(r,[[t,n]]),e.bucketsSize++,e):(oS(e,i,t),i.push([t,n]),e.bucketsSize++,e)}),oS=(e,t,n)=>{for(let r=0,i=t.length;r<i;r++)if(n[Si](t[r][0])){t.splice(r,1),e.bucketsSize--;return}},sS=Symbol.for(`effect/MetricState`),cS=`effect/MetricState/Counter`,lS=Symbol.for(cS),uS=`effect/MetricState/Frequency`,dS=Symbol.for(uS),fS=`effect/MetricState/Gauge`,pS=Symbol.for(fS),mS=`effect/MetricState/Histogram`,hS=Symbol.for(mS),gS=`effect/MetricState/Summary`,_S=Symbol.for(gS),vS={_A:e=>e},yS=class{count;[sS]=vS;[lS]=lS;constructor(e){this.count=e}[k](){return D(A(cS),pi(A(this.count)),xi(this))}[Si](e){return AS(e)&&this.count===e.count}pipe(){return j(this,arguments)}},bS=Qo(Ci),xS=class{occurrences;[sS]=vS;[dS]=dS;constructor(e){this.occurrences=e}_hash;[k](){return D(_i(uS),pi(bi(fo(this.occurrences.entries()))),xi(this))}[Si](e){return jS(e)&&bS(fo(this.occurrences.entries()),fo(e.occurrences.entries()))}pipe(){return j(this,arguments)}},SS=class{value;[sS]=vS;[pS]=pS;constructor(e){this.value=e}[k](){return D(A(fS),pi(A(this.value)),xi(this))}[Si](e){return MS(e)&&this.value===e.value}pipe(){return j(this,arguments)}},CS=class{buckets;count;min;max;sum;[sS]=vS;[hS]=hS;constructor(e,t,n,r,i){this.buckets=e,this.count=t,this.min=n,this.max=r,this.sum=i}[k](){return D(A(mS),pi(A(this.buckets)),pi(A(this.count)),pi(A(this.min)),pi(A(this.max)),pi(A(this.sum)),xi(this))}[Si](e){return NS(e)&&Ci(this.buckets,e.buckets)&&this.count===e.count&&this.min===e.min&&this.max===e.max&&this.sum===e.sum}pipe(){return j(this,arguments)}},wS=class{error;quantiles;count;min;max;sum;[sS]=vS;[_S]=_S;constructor(e,t,n,r,i,a){this.error=e,this.quantiles=t,this.count=n,this.min=r,this.max=i,this.sum=a}[k](){return D(A(gS),pi(A(this.error)),pi(A(this.quantiles)),pi(A(this.count)),pi(A(this.min)),pi(A(this.max)),pi(A(this.sum)),xi(this))}[Si](e){return PS(e)&&this.error===e.error&&Ci(this.quantiles,e.quantiles)&&this.count===e.count&&this.min===e.min&&this.max===e.max&&this.sum===e.sum}pipe(){return j(this,arguments)}},TS=e=>new yS(e),ES=e=>new xS(e),DS=e=>new SS(e),OS=e=>new CS(e.buckets,e.count,e.min,e.max,e.sum),kS=e=>new wS(e.error,e.quantiles,e.count,e.min,e.max,e.sum),AS=e=>O(e,lS),jS=e=>O(e,dS),MS=e=>O(e,pS),NS=e=>O(e,hS),PS=e=>O(e,_S),FS=Symbol.for(`effect/MetricHook`),IS={_In:e=>e,_Out:e=>e},LS=e=>({[FS]:IS,pipe(){return j(this,arguments)},...e}),RS=BigInt(0),zS=e=>{let t=e.keyType.bigint?RS:0,n=e.keyType.incremental?e.keyType.bigint?e=>e>=RS:e=>e>=0:e=>!0,r=e=>{n(e)&&(t+=e)};return LS({get:()=>TS(t),update:r,modify:r})},BS=e=>{let t=new Map;for(let n of e.keyType.preregisteredWords)t.set(n,0);let n=e=>{let n=t.get(e)??0;t.set(e,n+1)};return LS({get:()=>ES(t),update:n,modify:n})},VS=(e,t)=>{let n=t;return LS({get:()=>DS(n),update:e=>{n=e},modify:e=>{n+=e}})},HS=e=>{let t=e.keyType.boundaries.values,n=t.length,r=new Uint32Array(n+1),i=new Float64Array(n),a=0,o=0,s=Number.MAX_VALUE,c=Number.MIN_VALUE;D(t,Fo(v_),Ko((e,t)=>{i[t]=e}));let l=e=>{let t=0,l=n;for(;t!==l;){let n=Math.floor(t+(l-t)/2);e<=i[n]?l=n:t=n,l===t+1&&(e<=i[t]?l=t:t=l)}r[t]=r[t]+1,a+=1,o+=e,e<s&&(s=e),e>c&&(c=e)},u=()=>{let e=lo(n),t=0;for(let a=0;a<n;a++){let n=i[a],o=r[a];t+=o,e[a]=[n,t]}return e};return LS({get:()=>OS({buckets:u(),count:a,min:s,max:c,sum:o}),update:l,modify:l})},US=e=>{let{error:t,maxAge:n,maxSize:r,quantiles:i}=e.keyType,a=D(i,Fo(v_)),o=lo(r),s=0,c=0,l=0,u=0,d=0,f=e=>{let i=[],s=0;for(;s!==r-1;){let t=o[s];if(t!=null){let[r,a]=t,o=pd(e-r);Ed(o,ld)&&Td(o,n)&&i.push(a)}s+=1}return WS(t,a,Fo(i,v_))},p=(e,t)=>{if(r>0){s+=1;let n=s%r;o[n]=[t,e]}u=c===0?e:Math.min(u,e),d=c===0?e:Math.max(d,e),c+=1,l+=e};return LS({get:()=>kS({error:t,quantiles:f(Date.now()),count:c,min:u,max:d,sum:l}),update:([e,t])=>p(e,t),modify:([e,t])=>p(e,t)})},WS=(e,t,n)=>{let r=n.length;if(!xo(t))return Wo();let i=t[0],a=t.slice(1),o=GS(e,r,P(),0,i,n),s=Go(o);return a.forEach(t=>{s.push(GS(e,r,o.value,o.consumed,t,o.rest))}),Ko(s,e=>[e.quantile,e.value])},GS=(e,t,n,r,i,a)=>{let o=e,s=t,c=n,l=r,u=i,d=a,f=e,p=t,m=n,h=r,g=i,_=a;for(;;){if(!xo(d))return{quantile:u,value:P(),consumed:l,rest:[]};if(u===1)return{quantile:u,value:F(ko(d)),consumed:l+d.length,rest:[]};let e=Do(d),t=Mo(d,t=>t===e),n=u*s,r=o/2*n,i=l+t[0].length,a=Math.abs(i-n);if(i<n-r){f=o,p=s,m=Eo(d),h=i,g=u,_=t[1],o=f,s=p,c=m,l=h,u=g,d=_;continue}if(i>n+r){let t=Ja(c)?F(e):c;return{quantile:u,value:t,consumed:l,rest:d}}switch(c._tag){case`None`:f=o,p=s,m=Eo(d),h=i,g=u,_=t[1],o=f,s=p,c=m,l=h,u=g,d=_;continue;case`Some`:if(a<Math.abs(n-c.value)){f=o,p=s,m=Eo(d),h=i,g=u,_=t[1],o=f,s=p,c=m,l=h,u=g,d=_;continue}return{quantile:u,value:F(c.value),consumed:l,rest:d}}}throw Error(`BUG: MetricHook.resolveQuantiles - please report an issue at https://github.com/Effect-TS/effect/issues`)},KS=Symbol.for(`effect/MetricPair`),qS={_Type:e=>e},JS=(e,t)=>({[KS]:qS,metricKey:e,metricState:t,pipe(){return j(this,arguments)}}),YS=Symbol.for(`effect/MetricRegistry`),XS=class{[YS]=YS;map=tS();snapshot(){let e=[];for(let[t,n]of this.map)e.push(JS(t,n.get()));return e}get(e){let t=D(this.map,nS(e),to);if(t==null){if(zx(e.keyType))return this.getCounter(e);if(Vx(e.keyType))return this.getGauge(e);if(Bx(e.keyType))return this.getFrequency(e);if(Hx(e.keyType))return this.getHistogram(e);if(Ux(e.keyType))return this.getSummary(e);throw Error(`BUG: MetricRegistry.get - unknown MetricKeyType - please report an issue at https://github.com/Effect-TS/effect/issues`)}return t}getCounter(e){let t=D(this.map,nS(e),to);if(t==null){let n=zS(e);D(this.map,iS(e))||D(this.map,aS(e,n)),t=n}return t}getFrequency(e){let t=D(this.map,nS(e),to);if(t==null){let n=BS(e);D(this.map,iS(e))||D(this.map,aS(e,n)),t=n}return t}getGauge(e){let t=D(this.map,nS(e),to);if(t==null){let n=VS(e,e.keyType.bigint?BigInt(0):0);D(this.map,iS(e))||D(this.map,aS(e,n)),t=n}return t}getHistogram(e){let t=D(this.map,nS(e),to);if(t==null){let n=HS(e);D(this.map,iS(e))||D(this.map,aS(e,n)),t=n}return t}getSummary(e){let t=D(this.map,nS(e),to);if(t==null){let n=US(e);D(this.map,iS(e))||D(this.map,aS(e,n)),t=n}return t}},ZS=()=>new XS,QS=Symbol.for(`effect/Metric`),$S={_Type:e=>e,_In:e=>e,_Out:e=>e},eC=Ar(Symbol.for(`effect/Metric/globalMetricRegistry`),()=>ZS()),tC=function(e,t,n,r){let i=Object.assign(e=>mh(e,e=>sC(i,e)),{[QS]:$S,keyType:e,unsafeUpdate:t,unsafeValue:n,unsafeModify:r,register(){return this.unsafeValue([]),this},pipe(){return j(this,arguments)}});return i},nC=(e,t)=>rC(Jx(e,t)),rC=e=>{let t,n=new WeakMap,r=r=>{if(r.length===0)return t===void 0&&(t=eC.get(e)),t;let i=n.get(r);return i===void 0?(i=eC.get(Xx(e,r)),n.set(r,i),i):i};return tC(e.keyType,(e,t)=>r(t).update(e),e=>r(e).get(),(e,t)=>r(t).modify(e))},iC=(e,t,n)=>rC(Yx(e,t,n)),aC=E(3,(e,t,n)=>oC(e,[Kb(t,n)])),oC=E(2,(e,t)=>tC(e.keyType,(n,r)=>e.unsafeUpdate(n,Uo(t,r)),n=>e.unsafeValue(Uo(t,n)),(n,r)=>e.unsafeModify(n,Uo(t,r)))),sC=E(2,(e,t)=>Rh(ag,n=>B(()=>e.unsafeUpdate(t,n))));({...fa});var cC=E(2,(e,t)=>Rh(zb,n=>B(()=>{if(n.has(e)){let r=n.get(e);r.state.completed||(r.state.completed=!0,Bg(r.result,t))}}))),lC=Symbol.for(`effect/Supervisor`),uC={_T:e=>e},dC=class e{underlying;value0;[lC]=uC;constructor(e,t){this.underlying=e,this.value0=t}get value(){return this.value0}onStart(e,t,n,r){this.underlying.onStart(e,t,n,r)}onEnd(e,t){this.underlying.onEnd(e,t)}onEffect(e,t){this.underlying.onEffect(e,t)}onSuspend(e){this.underlying.onSuspend(e)}onResume(e){this.underlying.onResume(e)}map(t){return new e(this,D(this.value,sh(t)))}zip(e){return new fC(this,e)}},fC=class e{left;right;_tag=`Zip`;[lC]=uC;constructor(e,t){this.left=e,this.right=t}get value(){return Sh(this.left.value,this.right.value)}onStart(e,t,n,r){this.left.onStart(e,t,n,r),this.right.onStart(e,t,n,r)}onEnd(e,t){this.left.onEnd(e,t),this.right.onEnd(e,t)}onEffect(e,t){this.left.onEffect(e,t),this.right.onEffect(e,t)}onSuspend(e){this.left.onSuspend(e),this.right.onSuspend(e)}onResume(e){this.left.onResume(e),this.right.onResume(e)}map(e){return new dC(this,D(this.value,sh(e)))}zip(t){return new e(this,t)}},pC=e=>O(e,lC)&&Vr(e,`Zip`),mC=class{effect;[lC]=uC;constructor(e){this.effect=e}get value(){return this.effect}onStart(e,t,n,r){}onEnd(e,t){}onEffect(e,t){}onSuspend(e){}onResume(e){}map(e){return new dC(this,D(this.value,sh(e)))}zip(e){return new fC(this,e)}onRun(e,t){return e()}},hC=e=>new mC(e),gC=Ar(`effect/Supervisor/none`,()=>hC(vh)),_C=xp,vC=`Empty`,q=`AddSupervisor`,J=`RemoveSupervisor`,yC=`AndThen`,bC={_tag:vC},xC=(e,t)=>({_tag:yC,first:e,second:t}),SC=(e,t)=>CC(t,ks(e)),CC=(e,t)=>{let n=e,r=t;for(;Hs(r);){let e=Ws(r);switch(e._tag){case vC:r=Gs(r);break;case q:n=n.zip(e.supervisor),r=Gs(r);break;case J:n=wC(n,e.supervisor),r=Gs(r);break;case yC:r=Rs(e.first)(Rs(e.second)(Gs(r)))}}return n},wC=(e,t)=>Ci(e,t)?gC:pC(e)?wC(e.left,t).zip(wC(e.right,t)):e,TC=e=>Ci(e,gC)?ul():pC(e)?D(TC(e.left),vl(TC(e.right))):fl(e),EC=_C({empty:bC,patch:SC,combine:xC,diff:(e,t)=>{if(Ci(e,t))return bC;let n=TC(e),r=TC(t);return xC(D(r,_l(n),yl(bC,(e,t)=>xC(e,{_tag:q,supervisor:t}))),D(n,_l(r),yl(bC,(e,t)=>xC(e,{_tag:J,supervisor:t}))))}}),DC=nC(`effect_fiber_started`,{incremental:!0}),OC=nC(`effect_fiber_active`),kC=nC(`effect_fiber_successes`,{incremental:!0}),AC=nC(`effect_fiber_failures`,{incremental:!0}),jC=aC(iC(`effect_fiber_lifetimes`,Ex({start:.5,factor:2,count:35})),`time_unit`,`milliseconds`),MC=`Continue`,NC=`Done`,PC=`Yield`,FC={_E:e=>e,_A:e=>e},IC=e=>{throw Error(`BUG: FiberRuntime - ${Fi(e)} - please report an issue at https://github.com/Effect-TS/effect/issues`)},LC=Symbol.for(`effect/internal/fiberRuntime/YieldedOp`),RC=Ar(`effect/internal/fiberRuntime/yieldedOpChannel`,()=>({currentOp:null})),zC={[Ki]:(e,t,n)=>ui(()=>t.effect_instruction_i1(n)),OnStep:(e,t,n)=>Pg(Pg(n)),[qi]:(e,t,n)=>ui(()=>t.effect_instruction_i2(n)),[ta]:(e,t,n)=>(e.patchRuntimeFlags(e.currentRuntimeFlags,t.patch),Bp(e.currentRuntimeFlags)&&e.isInterrupted()?Ag(e.getInterruptedCause()):Pg(n)),[Zi]:(e,t,n)=>(ui(()=>t.effect_instruction_i2(n)),ui(()=>t.effect_instruction_i0())?(e.pushStack(t),ui(()=>t.effect_instruction_i1())):vh),[Qi]:(e,t,n)=>{for(;;){let r=ui(()=>t.effect_instruction_i0.next(n));if(r.done)return Pg(r.value);let i=si(r.value);if(!Cg(i))return e.pushStack(t),i;if(i._tag===`Failure`)return i;n=i.value}}},BC={[Xb]:(e,t,n,r)=>(e.processNewInterruptSignal(r.cause),Bp(t)?Ag(r.cause):n),[Qb]:(e,t,n,r)=>{throw Error(`It is illegal to have multiple concurrent run loops in a single fiber`)},[Zb]:(e,t,n,r)=>(r.onFiber(e,Cy(t)),n),[$b]:(e,t,n,r)=>z(xh(),()=>n)},VC=e=>ah(tm(e),e=>ZC(ym(e),([e,t])=>{let n=new Map,r=[];for(let e of t){r.push(Ms(e));for(let t of e)n.set(t.request,t)}let i=r.flat();return Vh(_w(e.runAll(r),i,()=>i.forEach(e=>{e.listeners.interrupted=!0})),zb,n)},!1,!1)),HC=ra(),UC=class extends wv{[cx]=lx;[dx]=FC;_fiberRefs;_fiberId;_queue=[];_children=null;_observers=[];_running=!1;_stack=[];_asyncInterruptor=null;_asyncBlockingOn=null;_exitValue=null;_steps=[];_isYielding=!1;currentRuntimeFlags;currentOpCount=0;currentSupervisor;currentScheduler;currentTracer;currentSpan;currentContext;currentDefaultServices;constructor(e,t,n){if(super(),this.currentRuntimeFlags=n,this._fiberId=e,this._fiberRefs=t,Gp(n)){let e=this.getFiberRef(ag);DC.unsafeUpdate(1,e),OC.unsafeUpdate(1,e)}this.refreshRefCache()}commit(){return fx(this)}id(){return this._fiberId}resume(e){this.tell(nx(e))}get status(){return this.ask((e,t)=>t)}get runtimeFlags(){return this.ask((e,t)=>Ty(t)?e.currentRuntimeFlags:t.runtimeFlags)}scope(){return ox(this)}get children(){return this.ask(e=>Array.from(e.getChildren()))}getChildren(){return this._children===null&&(this._children=new Set),this._children}getInterruptedCause(){return this.getFiberRef(sg)}fiberRefs(){return this.ask(e=>e.getFiberRefs())}ask(e){return ph(()=>{let t=Rg(this._fiberId);return this.tell(tx((n,r)=>{Bg(t,B(()=>e(n,r)))})),zg(t)})}tell(e){this._queue.push(e),this._running||(this._running=!0,this.drainQueueLaterOnExecutor())}get await(){return Vm(e=>{let t=t=>e(fh(t));if(this._exitValue!==null){t(this._exitValue);return}return this.tell(tx((e,n)=>{e._exitValue===null?e.addObserver(t):t(this._exitValue)})),B(()=>this.tell(tx((e,n)=>{e.removeObserver(t)})))},this.id())}get inheritAll(){return Pm((e,t)=>{let n=e.id(),r=e.getFiberRefs(),i=t.runtimeFlags,a=Vv(r,n,this.getFiberRefs());return e.setFiberRefs(a),yh(D(qp(i,e.getFiberRef(mw)),Qp(1),Qp(16)))})}get poll(){return B(()=>eo(this._exitValue))}unsafePoll(){return this._exitValue}interruptAsFork(e){return B(()=>this.tell(ex(Ml(e))))}unsafeInterruptAsFork(e){this.tell(ex(Ml(e)))}addObserver(e){this._exitValue===null?this._observers.push(e):e(this._exitValue)}removeObserver(e){this._observers=this._observers.filter(t=>t!==e)}getFiberRefs(){return this.setFiberRef(mw,this.currentRuntimeFlags),this._fiberRefs}unsafeDeleteFiberRef(e){this._fiberRefs=Uv(this._fiberRefs,e)}getFiberRef(e){return this._fiberRefs.locals.has(e)?this._fiberRefs.locals.get(e)[0][1]:e.initial}setFiberRef(e,t){this._fiberRefs=Kv(this._fiberRefs,{fiberId:this._fiberId,fiberRef:e,value:t}),this.refreshRefCache()}refreshRefCache(){this.currentDefaultServices=this.getFiberRef(yv),this.currentTracer=this.currentDefaultServices.unsafeMap.get(fv.key),this.currentSupervisor=this.getFiberRef(hw),this.currentScheduler=this.getFiberRef(Rb),this.currentContext=this.getFiberRef(Jh),this.currentSpan=this.currentContext.unsafeMap.get(pv.key)}setFiberRefs(e){this._fiberRefs=e,this.refreshRefCache()}addChild(e){this.getChildren().add(e)}removeChild(e){this.getChildren().delete(e)}transferChildren(e){let t=this._children;if(this._children=null,t!==null&&t.size>0)for(let n of t)n._exitValue===null&&e.add(this.currentRuntimeFlags,n)}drainQueueOnCurrentThread(){let e=!0;for(;e;){let t=MC,n=globalThis[px];globalThis[px]=this;try{for(;t===MC;)t=this._queue.length===0?NC:this.evaluateMessageWhileSuspended(this._queue.splice(0,1)[0])}finally{this._running=!1,globalThis[px]=n}this._queue.length>0&&!this._running?(this._running=!0,t===PC?(this.drainQueueLaterOnExecutor(),e=!1):e=!0):e=!1}}drainQueueLaterOnExecutor(){this.currentScheduler.scheduleTask(this.run,this.getFiberRef(Yh),this)}drainQueueWhileRunning(e,t){let n=t;for(;this._queue.length>0;){let t=this._queue.splice(0,1)[0];n=BC[t._tag](this,e,n,t)}return n}isInterrupted(){return!Rl(this.getFiberRef(sg))}addInterruptedCause(e){let t=this.getFiberRef(sg);this.setFiberRef(sg,Pl(t,e))}processNewInterruptSignal(e){this.addInterruptedCause(e),this.sendInterruptSignalToAllChildren()}sendInterruptSignalToAllChildren(){if(this._children===null||this._children.size===0)return!1;let e=!1;for(let t of this._children)t.tell(ex(Ml(this.id()))),e=!0;return e}interruptAllChildren(){if(this.sendInterruptSignalToAllChildren()){let e=this._children.values();this._children=null;let t=!1;return bh({while:()=>!t,body:()=>{let n=e.next();return n.done?B(()=>{t=!0}):Lm(n.value.await)},step:()=>{}})}return null}reportExitValue(e){if(Gp(this.currentRuntimeFlags)){let t=this.getFiberRef(ag),n=this.id().startTimeMillis,r=Date.now();switch(jC.unsafeUpdate(r-n,t),OC.unsafeUpdate(-1,t),e._tag){case Ji:kC.unsafeUpdate(1,t);break;case Wi:AC.unsafeUpdate(1,t)}}if(e._tag===`Failure`){let t=this.getFiberRef(rg);!Bl(e.cause)&&t._tag===`Some`&&this.log(`Fiber terminated with an unhandled error`,e.cause,t)}}setExitValue(e){this._exitValue=e,this.reportExitValue(e);for(let t=this._observers.length-1;t>=0;t--)this._observers[t](e);this._observers=[]}getLoggers(){return this.getFiberRef(JC)}log(e,t,n){let r=Ya(n)?n.value:this.getFiberRef(Qh);if(Py(this.getFiberRef(WC),r))return;let i=this.getFiberRef($h),a=this.getFiberRef(Zh),o=this.getLoggers(),s=this.getFiberRefs();if(ml(o)>0){let n=Uu(this.getFiberRef(yv),d_),c=new Date(n.unsafeCurrentTimeMillis());Bi(s,()=>{for(let n of o)n.log({fiberId:this.id(),logLevel:r,message:e,cause:t,context:s,spans:i,annotations:a,date:c})})}}evaluateMessageWhileSuspended(e){switch(e._tag){case $b:return PC;case Xb:return this.processNewInterruptSignal(e.cause),this._asyncInterruptor!==null&&(this._asyncInterruptor(Ag(e.cause)),this._asyncInterruptor=null),MC;case Qb:return this._asyncInterruptor=null,this._asyncBlockingOn=null,this.evaluateEffect(e.effect),MC;case Zb:return e.onFiber(this,this._exitValue===null?wy(this.currentRuntimeFlags,this._asyncBlockingOn):Sy),MC;default:return IC(e)}}evaluateEffect(e){this.currentSupervisor.onResume(this);try{let t=Bp(this.currentRuntimeFlags)&&this.isInterrupted()?Ag(this.getInterruptedCause()):e;for(;t!==null;){let e=t,n=this.runLoop(e);if(n===LC){let e=RC.currentOp;RC.currentOp=null,e._op===`Yield`?Rp(this.currentRuntimeFlags)?(this.tell(rx()),this.tell(nx(Fg)),t=null):t=Fg:e._op===`Async`&&(t=null)}else{this.currentRuntimeFlags=D(this.currentRuntimeFlags,zp(16));let e=this.interruptAllChildren();e===null?(this._queue.length===0?this.setExitValue(n):this.tell(nx(n)),t=null):t=z(e,()=>n)}}}finally{this.currentSupervisor.onSuspend(this)}}start(e){if(this._running)this.tell(nx(e));else{this._running=!0;let t=globalThis[px];globalThis[px]=this;try{this.evaluateEffect(e)}finally{this._running=!1,globalThis[px]=t,this._queue.length>0&&this.drainQueueLaterOnExecutor()}}}startFork(e){this.tell(nx(e))}patchRuntimeFlags(e,t){let n=Jp(e,t);return globalThis[px]=this,this.currentRuntimeFlags=n,n}initiateAsync(e,t){let n=!1,r=e=>{n||(n=!0,this.tell(nx(e)))};Bp(e)&&(this._asyncInterruptor=r);try{t(r)}catch(e){r(R(jl(e)))}}pushStack(e){this._stack.push(e),e._op===`OnStep`&&this._steps.push({refs:this.getFiberRefs(),flags:this.currentRuntimeFlags})}popStack(){let e=this._stack.pop();if(e)return e._op===`OnStep`&&this._steps.pop(),e}getNextSuccessCont(){let e=this.popStack();for(;e;){if(e._op!==`OnFailure`)return e;e=this.popStack()}}getNextFailCont(){let e=this.popStack();for(;e;){if(e._op!==`OnSuccess`&&e._op!==`While`&&e._op!==`Iterator`)return e;e=this.popStack()}}Tag(e){return B(()=>Wu(this.currentContext,e))}Left(e){return Ym(e.left)}None(e){return Ym(new bg)}Right(e){return Pg(e.right)}Some(e){return Pg(e.value)}Micro(e){return zm(t=>{let n=t,r=Mb(Cb(e,this.currentContext));return r.addObserver(e=>{if(e._tag===`Success`)return n(Pg(e.value));switch(e.cause._tag){case`Interrupt`:return n(Ag(Ml(Yd)));case`Fail`:return n(Ym(e.cause.error));case`Die`:return n(Gm(e.cause.defect))}}),zm(e=>{n=t=>{e(vh)},r.unsafeInterrupt()})})}[Yi](e){let t=ui(()=>e.effect_instruction_i0()),n=this.getNextSuccessCont();return n===void 0?(RC.currentOp=Pg(t),LC):(n._op in zC||IC(n),zC[n._op](this,n,t))}[Ji](e){let t=e,n=this.getNextSuccessCont();return n===void 0?(RC.currentOp=t,LC):(n._op in zC||IC(n),zC[n._op](this,n,t.effect_instruction_i0))}[Wi](e){let t=e.effect_instruction_i0,n=this.getNextFailCont();if(n!==void 0)switch(n._op){case Gi:case qi:return Bp(this.currentRuntimeFlags)&&this.isInterrupted()?Ag(ql(t)):ui(()=>n.effect_instruction_i1(t));case`OnStep`:return Bp(this.currentRuntimeFlags)&&this.isInterrupted()?Ag(ql(t)):Pg(Ag(t));case ta:return this.patchRuntimeFlags(this.currentRuntimeFlags,n.patch),Bp(this.currentRuntimeFlags)&&this.isInterrupted()?Ag(Pl(t,this.getInterruptedCause())):Ag(t);default:IC(n)}else return RC.currentOp=Ag(t),LC}[$i](e){return ui(()=>e.effect_instruction_i0(this,Cy(this.currentRuntimeFlags)))}Blocked(e){let t=this.getFiberRefs(),n=this.currentRuntimeFlags;if(this._steps.length>0){let r=[],i=this._steps[this._steps.length-1],a=this.popStack();for(;a&&a._op!==`OnStep`;)r.push(a),a=this.popStack();this.setFiberRefs(i.refs),this.currentRuntimeFlags=i.flags;let o=oy(i.refs,t),s=qp(i.flags,n);return Pg(Dm(e.effect_instruction_i0,Pm(t=>{for(;r.length>0;)t.pushStack(r.pop());return t.setFiberRefs(sy(t.id(),t.getFiberRefs())(o)),t.currentRuntimeFlags=Jp(s)(t.currentRuntimeFlags),e.effect_instruction_i1})))}return _h(t=>z($C(Om(e.effect_instruction_i0)),()=>t(e.effect_instruction_i1)))}RunBlocked(e){return VC(e.effect_instruction_i0)}[Xi](e){let t=e.effect_instruction_i0,n=this.currentRuntimeFlags,r=Jp(n,t);if(Bp(r)&&this.isInterrupted())return Ag(this.getInterruptedCause());if(this.patchRuntimeFlags(this.currentRuntimeFlags,t),e.effect_instruction_i1){let t=qp(r,n);return this.pushStack(new km(t,e)),ui(()=>e.effect_instruction_i1(n))}return Fg}[Ki](e){return this.pushStack(e),e.effect_instruction_i0}OnStep(e){return this.pushStack(e),e.effect_instruction_i0}[Gi](e){return this.pushStack(e),e.effect_instruction_i0}[qi](e){return this.pushStack(e),e.effect_instruction_i0}[Hi](e){return this._asyncBlockingOn=e.effect_instruction_i1,this.initiateAsync(this.currentRuntimeFlags,e.effect_instruction_i0),RC.currentOp=e,LC}[ea](e){return this._isYielding=!1,RC.currentOp=e,LC}[Zi](e){let t=e.effect_instruction_i0,n=e.effect_instruction_i1;return t()?(this.pushStack(e),n()):Fg}[Qi](e){return zC[Qi](this,e,void 0)}[Ui](e){return ui(()=>e.commit())}runLoop(e){let t=e;for(this.currentOpCount=0;;){if(this.currentRuntimeFlags&2&&this.currentSupervisor.onEffect(this,t),this._queue.length>0&&(t=this.drainQueueWhileRunning(this.currentRuntimeFlags,t)),!this._isYielding){this.currentOpCount+=1;let e=this.currentScheduler.shouldYield(this);if(e!==!1){this._isYielding=!0,this.currentOpCount=0;let n=t;t=z(xh({priority:e}),()=>n)}}try{if(t=this.currentTracer.context(()=>{if(HC!==t[I]._V){let e=this.getFiberRef(ig);if(e._tag===`Some`){let n=t[I]._V;this.log(`Executing an Effect versioned ${n} with a Runtime of version ${ra()}, you may want to dedupe the effect dependencies, you can use the language service plugin to detect this at compile time: https://github.com/Effect-TS/language-service`,kl,e)}}return this[t._op](t)},this),t===LC){let e=RC.currentOp;return e._op===`Yield`||e._op===`Async`?LC:(RC.currentOp=null,e._op===`Success`||e._op===`Failure`?e:Ag(jl(e)))}}catch(e){t=t!==LC&&!O(t,`_op`)||!(t._op in this)?Km(`Not a valid effect: ${Fi(t)}`):vg(e)?Ag(Pl(jl(e),Ml(Yd))):Gm(e)}}}run=()=>{this.drainQueueOnCurrentThread()}},WC=Ar(`effect/FiberRef/currentMinimumLogLevel`,()=>Hh(H(`Info`))),GC=e=>gx(t=>{Uu(Yv(t.context,yv),nv).unsafe.log(e.log(t))}),KC=Ar(Symbol.for(`effect/Logger/defaultLogger`),()=>GC(vx)),qC=Ar(Symbol.for(`effect/Logger/tracerLogger`),()=>gx(({annotations:e,cause:t,context:n,fiberId:r,logLevel:i,message:a})=>{let o=Jb(Gu(Gv(n,Jh),pv));if(o._tag===`None`||o.value._tag===`ExternalSpan`)return;let s=Wu(Gv(n,yv),d_),c={};for(let[t,n]of e)c[t]=n;c[`effect.fiberId`]=Xd(r),c[`effect.logLevel`]=i.label,t!==null&&t._tag!==`Empty`&&(c[`effect.cause`]=ou(t,{renderErrorCause:!0})),o.value.event(Fi(Array.isArray(a)&&a.length===1?a[0]:a),s.unsafeCurrentTimeNanos(),c)})),JC=Ar(Symbol.for(`effect/FiberRef/currentLoggers`),()=>Uh(fl(KC,qC))),YC=E(e=>Gr(e[0]),(e,t,n)=>Pm(r=>{let i=n?.batching===!0||n?.batching===`inherit`&&r.getFiberRef(ng);return n?.discard?Bb(n.concurrency,()=>ow(Nv,n?.concurrentFinalizers)(n=>i?ZC(e,(e,r)=>n(t(e,r)),!0,!1,1):ah(e,(e,r)=>n(t(e,r)))),()=>ow(Pv,n?.concurrentFinalizers)(n=>ZC(e,(e,r)=>n(t(e,r)),i,!1)),r=>ow(Fv(r),n?.concurrentFinalizers)(n=>ZC(e,(e,r)=>n(t(e,r)),i,!1,r))):Bb(n?.concurrency,()=>ow(Nv,n?.concurrentFinalizers)(n=>i?QC(e,1,(e,r)=>n(t(e,r)),!0):ih(e,(e,r)=>n(t(e,r)))),()=>ow(Pv,n?.concurrentFinalizers)(n=>XC(e,(e,r)=>n(t(e,r)),i)),r=>ow(Fv(r),n?.concurrentFinalizers)(n=>QC(e,r,(e,r)=>n(t(e,r)),i)))})),XC=(e,t,n)=>ph(()=>{let r=fo(e),i=Array(r.length);return wh(ZC(r,(e,n)=>z(t(e,n),e=>B(()=>i[n]=e)),n,!1),fh(i))}),ZC=(e,t,n,r,i)=>_h(a=>hh(o=>Pm(s=>{let c=Array.from(e).reverse(),l=c.length;if(l===0)return vh;let u=0,d=!1,f=i?Math.min(c.length,i):c.length,p=new Set,m=[],h=()=>p.forEach(e=>{e.currentScheduler.scheduleTask(()=>{e.unsafeInterruptAsFork(s.id())},0,e)}),g=[],_=[],v=[],y=()=>{let e=m.filter(({exit:e})=>e._tag===`Failure`).sort((e,t)=>e.index<t.index?-1:e.index===t.index?0:1).map(({exit:e})=>e);return e.length===0&&e.push(Fg),e},ee=(e,t=!1)=>{let n=gh(o(e)),r=tw(n,s,s.currentRuntimeFlags,sx);return s.currentScheduler.scheduleTask(()=>{t&&r.unsafeInterruptAsFork(s.id()),r.resume(n)},0,r),r},b=()=>{r||(l-=c.length,c=[]),d=!0,h()},te=n?$m:Jm,ne=ee(Vm(e=>{let r=(e,t)=>{e._op===`Blocked`?v.push(e):(m.push({index:t,exit:e}),e._op===`Failure`&&!d&&b())},o=()=>{if(c.length>0){let f=c.pop(),h=u++,b=()=>{let e=c.pop();return h=u++,z(xh(),()=>z(te(a(t(e,h))),ne))},ne=e=>c.length>0&&(r(e,h),c.length>0)?b():fh(e),re=z(te(a(t(f,h))),ne),ie=ee(re);g.push(ie),p.add(ie),d&&ie.currentScheduler.scheduleTask(()=>{ie.unsafeInterruptAsFork(s.id())},0,ie),ie.addObserver(t=>{let a;if(a=t._op===`Failure`?t:t.effect_instruction_i0,_.push(ie),p.delete(ie),r(a,h),m.length===l)e(fh(Za(Dg(y(),{parallel:!0}),()=>Fg)));else if(v.length+m.length===l){let t=y();e(fh(Dm(v.map(e=>e.effect_instruction_i0).reduce($p),ZC([Za(Dg(t,{parallel:!0}),()=>Fg),...v.map(e=>e.effect_instruction_i1)],e=>e,n,!0,i))))}else o()})}};for(let e=0;e<f;e++)o()}));return Lm(uh(eh(a(fx(ne))),Ng({onFailure:e=>{b();let t=v.length+1,n=Math.min(typeof i==`number`?i:v.length,v.length),r=Array.from(v);return Vm(i=>{let a=[],o=0,s=0,c=(n,s)=>c=>{a[n]=c,o++,o===t&&i(Pg(Ag(e))),r.length>0&&s&&l()},l=()=>{ee(r.pop(),!0).addObserver(c(s,!0)),s++};ne.addObserver(c(s,!1)),s++;for(let e=0;e<n;e++)l()})},onSuccess:()=>ih(_,e=>e.inheritAll)})))}))),QC=(e,t,n,r)=>ph(()=>{let i=fo(e),a=Array(i.length);return wh(ZC(i,(e,t)=>sh(n(e,t),e=>a[t]=e),r,!1,t),fh(a))}),$C=e=>rw(e,sx),ew=(e,t,n,r=null)=>{let i=nw(e,t,n,r);return i.resume(e),i},tw=(e,t,n,r=null)=>nw(e,t,n,r),nw=(e,t,n,r=null)=>{let i=Zd(),a=Hv(t.getFiberRefs(),i),o=new UC(i,a,n),s=Gv(a,Jh),c=o.currentSupervisor;return c.onStart(s,e,F(t),o),o.addObserver(e=>c.onEnd(e,o)),(r===null?D(t.getFiberRef(og),Za(()=>t.scope())):r).add(n,o),o},rw=(e,t)=>Pm((n,r)=>fh(ew(e,n,r.runtimeFlags,t))),iw=e=>Wg(t=>Xa(Gu(t,cw),{onNone:()=>e,onSome:t=>{switch(t.strategy._tag){case`Parallel`:return e;case`Sequential`:case`ParallelN`:return z(fg(t,Pv),t=>fw(e,t))}}})),aw=e=>t=>Wg(n=>Xa(Gu(n,cw),{onNone:()=>t,onSome:n=>n.strategy._tag===`ParallelN`&&n.strategy.parallelism===e?t:z(fg(n,Fv(e)),e=>fw(t,e))})),ow=(e,t)=>n=>Wg(r=>Xa(Gu(r,cw),{onNone:()=>n(yr),onSome:r=>{if(t===!0){let t=e._tag===`Parallel`?iw:e._tag===`Sequential`?sw:aw(e.parallelism);switch(r.strategy._tag){case`Parallel`:return t(n(iw));case`Sequential`:return t(n(sw));case`ParallelN`:return t(n(aw(r.strategy.parallelism)))}}else return n(yr)}})),sw=e=>Wg(t=>Xa(Gu(t,cw),{onNone:()=>e,onSome:t=>{switch(t.strategy._tag){case`Sequential`:return e;case`Parallel`:case`ParallelN`:return z(fg(t,Nv),t=>fw(e,t))}}})),cw=zu(`effect/Scope`),lw=(e,t)=>{e.state._tag===`Open`&&e.state.finalizers.set({},t)},uw={[cg]:cg,[lg]:lg,pipe(){return j(this,arguments)},fork(e){return B(()=>{let t=dw(e);if(this.state._tag===`Closed`)return t.state=this.state,t;let n={};return this.state.finalizers.set(n,e=>t.close(e)),lw(t,e=>B(()=>{this.state._tag===`Open`&&this.state.finalizers.delete(n)})),t})},close(e){return ph(()=>{if(this.state._tag===`Closed`)return vh;let t=Array.from(this.state.finalizers.values()).reverse();return this.state={_tag:`Closed`,exit:e},t.length===0?vh:jv(this.strategy)?D(ih(t,t=>Jm(t(e))),z(e=>D(Dg(e),ro(Eg),Za(()=>Fg)))):Mv(this.strategy)?D(XC(t,t=>Jm(t(e)),!1),z(e=>D(Dg(e,{parallel:!0}),ro(Eg),Za(()=>Fg)))):D(QC(t,this.strategy.parallelism,t=>Jm(t(e)),!1),z(e=>D(Dg(e,{parallel:!0}),ro(Eg),Za(()=>Fg))))})},addFinalizer(e){return ph(()=>this.state._tag===`Closed`?e(this.state.exit):(this.state.finalizers.set({},e),vh))}},dw=(e=Ov)=>{let t=Object.create(uw);return t.strategy=e,t.state={_tag:`Open`,finalizers:new Map},t},fw=E(2,(e,t)=>Kg(e,Ku(Vu(cw,t)))),pw=e=>Kh(e,{differ:EC,fork:bC}),mw=qh(Wp),hw=pw(gC),gw=E(2,(e,t)=>_h(n=>nh(n(e),{onFailure:e=>nh(t,{onFailure:t=>R(Pl(e,t)),onSuccess:()=>R(e)}),onSuccess:e=>Im(t,e)}))),_w=(e,t,n)=>Qm(r=>gw(z($C(oh(e)),e=>Vm(r=>{let i=t.map(e=>e.listeners.count),a=()=>{i.every(e=>e===0)&&t.every(e=>!!(e.result.state.current._tag===`Pending`||e.result.state.current._tag===`Done`&&Cg(e.result.state.current.effect)&&e.result.state.current.effect._tag===`Failure`&&zl(e.result.state.current.effect.cause)))&&(o.forEach(e=>e()),n?.(),r(Th(e)))};e.addObserver(e=>{o.forEach(e=>e()),r(e)});let o=t.map((e,t)=>{let n=e=>{i[t]=e,a()};return e.listeners.addObserver(n),()=>e.listeners.removeObserver(n)});return a(),B(()=>{o.forEach(e=>e())})})),ph(()=>ah(t.flatMap(e=>e.state.completed?[]:[e]),e=>cC(e.request,jg(r)))))),vw=dg,yw=fg,bw=e=>function(){if(arguments.length===1){let t=arguments[0];return(n,...r)=>e(t,n,...r)}return e.apply(this,arguments)},xw=bw((e,t,n)=>{let r=Zd(),i=[[Jh,[[r,e.context]]]];n?.scheduler&&i.push([Rb,[[r,n.scheduler]]]);let a=Xv(e.fiberRefs,{entries:i,forkAs:r});n?.updateRefs&&(a=n.updateRefs(a,r));let o=new UC(r,a,e.runtimeFlags),s=t;n?.scope&&(s=z(yw(n.scope,Ov),e=>wh(ug(e,Qm(e=>Ci(e,o.id())?vh:Eh(o,e))),uh(t,t=>vw(e,t)))));let c=o.currentSupervisor;return c!==gC&&(c.onStart(e.context,s,P(),o),o.addObserver(e=>c.onEnd(e,o))),sx.add(e.runtimeFlags,o),n?.immediate===!1?o.resume(s):o.start(s),o}),Sw=bw((e,t)=>{let n=Aw(e)(t);if(n._tag===`Failure`)throw Ow(n.effect_instruction_i0);return n.effect_instruction_i0}),Cw=class extends Error{fiber;_tag=`AsyncFiberException`;constructor(e){super(`Fiber #${e.id().id} cannot be resolved synchronously. This is caused by using runSync on an effect that performs async work`),this.fiber=e,this.name=this._tag,this.stack=this.message}},ww=e=>{let t=Error.stackTraceLimit;Error.stackTraceLimit=0;let n=new Cw(e);return Error.stackTraceLimit=t,n},Tw=Symbol.for(`effect/Runtime/FiberFailure`),Ew=Symbol.for(`effect/Runtime/FiberFailure/Cause`),Dw=class extends Error{[Tw];[Ew];constructor(e){let t=mu(e)[0];super(t?.message||`An error has occurred`),this[Tw]=Tw,this[Ew]=e,this.name=t?`(FiberFailure) ${t.name}`:`FiberFailure`,t?.stack&&(this.stack=t.stack)}toJSON(){return{_id:`FiberFailure`,cause:this[Ew].toJSON()}}toString(){return`(FiberFailure) `+ou(this[Ew],{renderErrorCause:!0})}[Di](){return this.toString()}},Ow=e=>{let t=Error.stackTraceLimit;Error.stackTraceLimit=0;let n=new Dw(e);return Error.stackTraceLimit=t,n},kw=e=>{let t=e;switch(t._op){case`Failure`:case`Success`:return t;case`Left`:return kg(t.left);case`Right`:return Pg(t.right);case`Some`:return Pg(t.value);case`None`:return kg(new bg)}},Aw=bw((e,t)=>{let n=kw(t);if(n)return n;let r=new Lb,i=xw(e)(t,{scheduler:r});return r.flush(),i.unsafePoll()||Og(Wm(ww(i),qg(i)))}),jw=class{context;runtimeFlags;fiberRefs;constructor(e,t,n){this.context=e,this.runtimeFlags=t,this.fiberRefs=n}pipe(){return j(this,arguments)}},Mw=(e=>new jw(e.context,e.runtimeFlags,e.fiberRefs))({context:Bu(),runtimeFlags:Up(1,32,4),fiberRefs:Zv()}),Nw=xw(Mw),Pw=Sw(Mw),Fw=Symbol.for(`effect/DateTime`),Iw=Symbol.for(`effect/DateTime/TimeZone`),Lw={[Fw]:Fw,pipe(){return j(this,arguments)},[Di](){return this.toString()},toJSON(){return zw(this).toJSON()}};({...Lw}),{...Lw};var Rw={[Iw]:Iw,[Di](){return this.toString()}};({...Rw}),{...Rw};var zw=e=>new Date(e.epochMillis),Bw=Nm,Vw=YC,Hw=ph,Uw=vh,Ww=Hm,Gw=sh,Kw=lh,qw=qm,Jw=z,Yw=Nw,Xw=Pw,Zw=(e,t)=>{switch(t._tag){case`StringKeyword`:case`TemplateLiteral`:return Object.keys(e);case`SymbolKeyword`:return Object.getOwnPropertySymbols(e);case`Refinement`:return Zw(e,t.from)}},Qw=e=>{let t=!1,n;return()=>t?n:(n=e(),t=!0,n)},$w=e=>Array.isArray(e),eT=e=>!Array.isArray(e),tT=e=>`[${Mi(e)}]`,nT=e=>$w(e)?e.map(tT).join(``):tT(e),rT=(e,t,n,r)=>{let i=e;return n&&xo(n)&&(i+=`\nat path: ${nT(n)}`),t!==void 0&&(i+=`\ndetails: ${t}`),r&&(i+=`\nschema (${r._tag}): ${r}`),i},iT=e=>rT(`Unsupported key schema`,void 0,void 0,e),aT=e=>rT(`Unsupported literal`,`literal value: ${Ni(e)}`),oT=e=>rT(`Duplicate index signature`,`${e} index signature`),sT=rT(`Unsupported index signature parameter`,"An index signature parameter type must be `string`, `symbol`, a template literal type or a refinement of the previous types"),cT=rT(`Invalid element`,`A required element cannot follow an optional element. ts(1257)`),lT=e=>rT(`Duplicate property signature transformation`,`Duplicate key ${Ni(e)}`),uT=e=>rT(`Duplicate property signature`,`Duplicate key ${Ni(e)}`),dT=Symbol.for(`effect/annotation/TypeConstructor`),fT=Symbol.for(`effect/annotation/Brand`),pT=Symbol.for(`effect/annotation/SchemaId`),mT=Symbol.for(`effect/annotation/Message`),hT=Symbol.for(`effect/annotation/MissingMessage`),gT=Symbol.for(`effect/annotation/Identifier`),_T=Symbol.for(`effect/annotation/Title`),vT=Symbol.for(`effect/annotation/AutoTitle`),yT=Symbol.for(`effect/annotation/Description`),bT=Symbol.for(`effect/annotation/Examples`),xT=Symbol.for(`effect/annotation/Default`),ST=Symbol.for(`effect/annotation/JSONSchema`),CT=Symbol.for(`effect/annotation/Arbitrary`),wT=Symbol.for(`effect/annotation/Pretty`),TT=Symbol.for(`effect/annotation/Equivalence`),ET=Symbol.for(`effect/annotation/Documentation`),DT=Symbol.for(`effect/annotation/Concurrency`),OT=Symbol.for(`effect/annotation/Batching`),kT=Symbol.for(`effect/annotation/ParseIssueTitle`),AT=Symbol.for(`effect/annotation/ParseOptions`),jT=Symbol.for(`effect/annotation/DecodingFallback`),MT=Symbol.for(`effect/annotation/Surrogate`),NT=Symbol.for(`effect/annotation/StableFilter`),PT=E(2,(e,t)=>Object.prototype.hasOwnProperty.call(e.annotations,t)?F(e.annotations[t]):P()),FT=PT(fT),IT=PT(mT),LT=PT(hT),RT=PT(_T),zT=PT(vT),BT=PT(gT),VT=PT(yT),HT=PT(DT),UT=PT(OT),WT=PT(kT),GT=PT(AT),KT=PT(jT),qT=PT(MT),JT=PT(NT),YT=e=>so(JT(e),e=>e===!0),XT=Symbol.for(`effect/annotation/JSONIdentifier`),ZT=PT(XT),QT=e=>Qa(ZT(e),()=>BT(e)),$T=class{typeParameters;decodeUnknown;encodeUnknown;annotations;_tag=`Declaration`;constructor(e,t,n,r={}){this.typeParameters=e,this.decodeUnknown=t,this.encodeUnknown=n,this.annotations=r}toString(){return Za(cD(this),()=>`<declaration schema>`)}toJSON(){return{_tag:this._tag,typeParameters:this.typeParameters.map(e=>e.toJSON()),annotations:rD(this.annotations)}}},eE=e=>t=>t._tag===e,tE=class{literal;annotations;_tag=`Literal`;constructor(e,t={}){this.literal=e,this.annotations=t}toString(){return Za(cD(this),()=>Ni(this.literal))}toJSON(){return{_tag:this._tag,literal:Pr(this.literal)?String(this.literal):this.literal,annotations:rD(this.annotations)}}},nE=eE(`Literal`),rE=new tE(null),iE=class{symbol;annotations;_tag=`UniqueSymbol`;constructor(e,t={}){this.symbol=e,this.annotations=t}toString(){return Za(cD(this),()=>Ni(this.symbol))}toJSON(){return{_tag:this._tag,symbol:String(this.symbol),annotations:rD(this.annotations)}}},aE=new class{annotations;_tag=`UndefinedKeyword`;constructor(e={}){this.annotations=e}toString(){return aD(this)}toJSON(){return{_tag:this._tag,annotations:rD(this.annotations)}}}({[_T]:`undefined`}),oE=new class{annotations;_tag=`NeverKeyword`;constructor(e={}){this.annotations=e}toString(){return aD(this)}toJSON(){return{_tag:this._tag,annotations:rD(this.annotations)}}}({[_T]:`never`}),sE=new class{annotations;_tag=`UnknownKeyword`;constructor(e={}){this.annotations=e}toString(){return aD(this)}toJSON(){return{_tag:this._tag,annotations:rD(this.annotations)}}}({[_T]:`unknown`}),cE=new class{annotations;_tag=`AnyKeyword`;constructor(e={}){this.annotations=e}toString(){return aD(this)}toJSON(){return{_tag:this._tag,annotations:rD(this.annotations)}}}({[_T]:`any`}),lE=new class{annotations;_tag=`StringKeyword`;constructor(e={}){this.annotations=e}toString(){return aD(this)}toJSON(){return{_tag:this._tag,annotations:rD(this.annotations)}}}({[_T]:`string`,[yT]:`a string`}),uE=eE(`StringKeyword`),dE=new class{annotations;_tag=`NumberKeyword`;constructor(e={}){this.annotations=e}toString(){return aD(this)}toJSON(){return{_tag:this._tag,annotations:rD(this.annotations)}}}({[_T]:`number`,[yT]:`a number`}),fE=new class{annotations;_tag=`BooleanKeyword`;constructor(e={}){this.annotations=e}toString(){return aD(this)}toJSON(){return{_tag:this._tag,annotations:rD(this.annotations)}}}({[_T]:`boolean`,[yT]:`a boolean`}),pE=eE(`SymbolKeyword`),mE=class{type;annotations;constructor(e,t={}){this.type=e,this.annotations=t}toJSON(){return{type:this.type.toJSON(),annotations:rD(this.annotations)}}toString(){return String(this.type)}},hE=class extends mE{isOptional;constructor(e,t,n={}){super(e,n),this.isOptional=t}toJSON(){return{type:this.type.toJSON(),isOptional:this.isOptional,annotations:rD(this.annotations)}}toString(){return String(this.type)+(this.isOptional?`?`:``)}},gE=e=>e.map(e=>e.type),_E=class{elements;rest;isReadonly;annotations;_tag=`TupleType`;constructor(e,t,n,r={}){this.elements=e,this.rest=t,this.isReadonly=n,this.annotations=r;let i=!1,a=!1;for(let t of e)if(t.isOptional)i=!0;else if(i){a=!0;break}if(a||i&&t.length>1)throw Error(cT)}toString(){return Za(cD(this),()=>vE(this))}toJSON(){return{_tag:this._tag,elements:this.elements.map(e=>e.toJSON()),rest:this.rest.map(e=>e.toJSON()),isReadonly:this.isReadonly,annotations:rD(this.annotations)}}},vE=e=>{let t=e.elements.map(String).join(`, `);return mo(e.rest,{onEmpty:()=>`readonly [${t}]`,onNonEmpty:(n,r)=>{let i=String(n),a=i.includes(` | `)?`(${i})`:i;if(r.length>0){let n=r.map(String).join(`, `);return e.elements.length>0?`readonly [${t}, ...${a}[], ${n}]`:`readonly [...${a}[], ${n}]`}return e.elements.length>0?`readonly [${t}, ...${a}[]]`:`ReadonlyArray<${i}>`}})},yE=class extends hE{name;isReadonly;constructor(e,t,n,r,i){super(t,n,i),this.name=e,this.isReadonly=r}toString(){return(this.isReadonly?`readonly `:``)+String(this.name)+(this.isOptional?`?`:``)+`: `+this.type}toJSON(){return{name:String(this.name),type:this.type.toJSON(),isOptional:this.isOptional,isReadonly:this.isReadonly,annotations:rD(this.annotations)}}},bE=e=>{switch(e._tag){case`StringKeyword`:case`SymbolKeyword`:case`TemplateLiteral`:return!0;case`Refinement`:return bE(e.from)}return!1},xE=class{type;isReadonly;parameter;constructor(e,t,n){if(this.type=t,this.isReadonly=n,bE(e))this.parameter=e;else throw Error(sT)}toString(){return(this.isReadonly?`readonly `:``)+`[x: ${this.parameter}]: ${this.type}`}toJSON(){return{parameter:this.parameter.toJSON(),type:this.type.toJSON(),isReadonly:this.isReadonly}}},SE=class{annotations;_tag=`TypeLiteral`;propertySignatures;indexSignatures;constructor(e,t,n={}){this.annotations=n;let r={};for(let t=0;t<e.length;t++){let n=e[t].name;if(Object.prototype.hasOwnProperty.call(r,n))throw Error(uT(n));r[n]=null}let i={string:!1,symbol:!1};for(let e=0;e<t.length;e++){let n=iD(t[e].parameter);if(uE(n)){if(i.string)throw Error(oT(`string`));i.string=!0}else if(pE(n)){if(i.symbol)throw Error(oT(`symbol`));i.symbol=!0}}this.propertySignatures=e,this.indexSignatures=t}toString(){return Za(cD(this),()=>wE(this))}toJSON(){return{_tag:this._tag,propertySignatures:this.propertySignatures.map(e=>e.toJSON()),indexSignatures:this.indexSignatures.map(e=>e.toJSON()),annotations:rD(this.annotations)}}},CE=e=>e.map(String).join(`; `),wE=e=>{if(e.propertySignatures.length>0){let t=e.propertySignatures.map(String).join(`; `);return e.indexSignatures.length>0?`{ ${t}; ${CE(e.indexSignatures)} }`:`{ ${t} }`}return e.indexSignatures.length>0?`{ ${CE(e.indexSignatures)} }`:`{}`},TE=Fo(Ka(v_,e=>{switch(e._tag){case`AnyKeyword`:return 0;case`UnknownKeyword`:return 1;case`ObjectKeyword`:return 2;case`StringKeyword`:case`NumberKeyword`:case`BooleanKeyword`:case`BigIntKeyword`:case`SymbolKeyword`:return 3}return 4})),EE={string:`StringKeyword`,number:`NumberKeyword`,boolean:`BooleanKeyword`,bigint:`BigIntKeyword`},DE=e=>qo(e,e=>ME(e)?DE(e.types):[e]),OE=e=>{let t=TE(e),n=[],r={},i=[];for(let e of t)switch(e._tag){case`NeverKeyword`:break;case`AnyKeyword`:return[cE];case`UnknownKeyword`:return[sE];case`ObjectKeyword`:case`UndefinedKeyword`:case`VoidKeyword`:case`StringKeyword`:case`NumberKeyword`:case`BooleanKeyword`:case`BigIntKeyword`:case`SymbolKeyword`:r[e._tag]||(r[e._tag]=e,n.push(e));break;case`Literal`:{let t=typeof e.literal;switch(t){case`string`:case`number`:case`bigint`:case`boolean`:!r[EE[t]]&&!i.includes(e.literal)&&(i.push(e.literal),n.push(e));break;case`object`:i.includes(e.literal)||(i.push(e.literal),n.push(e))}break}case`UniqueSymbol`:!r.SymbolKeyword&&!i.includes(e.symbol)&&(i.push(e.symbol),n.push(e));break;case`TupleType`:r.ObjectKeyword||n.push(e);break;case`TypeLiteral`:e.propertySignatures.length===0&&e.indexSignatures.length===0?r[`{}`]||(r[`{}`]=e,n.push(e)):r.ObjectKeyword||n.push(e);break;default:n.push(e)}return n},kE=class e{types;annotations;static make=(t,n)=>jE(t)?new e(t,n):t.length===1?t[0]:oE;static unify=(t,n)=>e.make(OE(DE(t)),n);_tag=`Union`;constructor(e,t={}){this.types=e,this.annotations=t}toString(){return Za(cD(this),()=>this.types.map(String).join(` | `))}toJSON(){return{_tag:this._tag,types:this.types.map(e=>e.toJSON()),annotations:rD(this.annotations)}}},AE=(e,t)=>e.map(t),jE=e=>e.length>1,ME=eE(`Union`),NE=Ar(Symbol.for(`effect/Schema/AST/toJSONMemoMap`),()=>new WeakMap),PE=class{f;annotations;_tag=`Suspend`;constructor(e,t={}){this.f=e,this.annotations=t,this.f=Qw(e)}toString(){return cD(this).pipe(Qa(()=>io(no(this.f)(),e=>cD(e))),Za(()=>`<suspended schema>`))}toJSON(){let e=this.f(),t=NE.get(e);return t||(NE.set(e,{_tag:this._tag}),t={_tag:this._tag,ast:e.toJSON(),annotations:rD(this.annotations)},NE.set(e,t),t)}},FE=class{from;filter;annotations;_tag=`Refinement`;constructor(e,t,n={}){this.from=e,this.filter=t,this.annotations=n}toString(){return BT(this).pipe(Za(()=>Xa(sD(this),{onNone:()=>`{ ${this.from} | filter }`,onSome:e=>IE(this.from)?String(this.from)+` & `+e:e})))}toJSON(){return{_tag:this._tag,from:this.from.toJSON(),annotations:rD(this.annotations)}}},IE=eE(`Refinement`),LE={},RE=class{from;to;transformation;annotations;_tag=`Transformation`;constructor(e,t,n,r={}){this.from=e,this.to=t,this.transformation=n,this.annotations=r}toString(){return Za(cD(this),()=>`(${String(this.from)} <-> ${String(this.to)})`)}toJSON(){return{_tag:this._tag,from:this.from.toJSON(),to:this.to.toJSON(),annotations:rD(this.annotations)}}},zE=class{from;to;decode;encode;constructor(e,t,n,r){this.from=e,this.to=t,this.decode=n,this.encode=r}},BE=class{propertySignatureTransformations;_tag=`TypeLiteralTransformation`;constructor(e){this.propertySignatureTransformations=e;let t={},n={};for(let r of e){let e=r.from;if(t[e])throw Error(lT(e));t[e]=!0;let i=r.to;if(n[i])throw Error(lT(i));n[i]=!0}}},VE=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={...e.annotations};delete r[gT];let i={...r,...t},a=qT(e);return Ya(a)&&(i[MT]=VE(a.value,t)),n.annotations.value=i,Object.create(Object.getPrototypeOf(e),n)},HE=`[\\s\\S]*?`,UE=`[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?`,WE=(e,t)=>{switch(e._tag){case`Literal`:return y_(String(e.literal));case`StringKeyword`:return HE;case`NumberKeyword`:return UE;case`TemplateLiteral`:return KE(e,t,!1);case`Union`:return e.types.map(e=>WE(e,t)).join(`|`)}},GE=(e,t,n,r)=>{if(ME(e)){if(n&&!r)return`(?:${t})`}else if(!n||!r)return t;return`(${t})`},KE=(e,t,n)=>{let r=``;if(e.head!==``){let i=y_(e.head);r+=t&&n?`(${i})`:i}for(let i of e.spans){let e=WE(i.type,t);if(r+=GE(i.type,e,t,n),i.literal!==``){let e=y_(i.literal);r+=t&&n?`(${e})`:e}}return r},qE=e=>RegExp(`^${KE(e,!1,!0)}$`),JE=(e,t)=>{let n=[],r=[],i=e=>{switch(e._tag){case`NeverKeyword`:break;case`StringKeyword`:case`SymbolKeyword`:case`TemplateLiteral`:case`Refinement`:r.push(new xE(e,t,!0));break;case`Literal`:if(jr(e.literal)||Mr(e.literal))n.push(new yE(e.literal,t,!1,!0));else throw Error(aT(e.literal));break;case`Enums`:for(let[r,i]of e.enums)n.push(new yE(i,t,!1,!0));break;case`UniqueSymbol`:n.push(new yE(e.symbol,t,!1,!0));break;case`Union`:e.types.forEach(i);break;default:throw Error(iT(e))}};return i(e),{propertySignatures:n,indexSignatures:r}},YE=e=>{switch(e._tag){case`TupleType`:return e.isReadonly===!1?e:new _E(e.elements,e.rest,!1,e.annotations);case`TypeLiteral`:{let t=$E(e.propertySignatures,e=>e.isReadonly===!1?e:new yE(e.name,e.type,e.isOptional,!1,e.annotations)),n=$E(e.indexSignatures,e=>e.isReadonly===!1?e:new xE(e.parameter,e.type,!1));return t===e.propertySignatures&&n===e.indexSignatures?e:new SE(t,n,e.annotations)}case`Union`:{let t=$E(e.types,YE);return t===e.types?e:kE.make(t,e.annotations)}case`Suspend`:return new PE(()=>YE(e.f()),e.annotations);case`Refinement`:{let t=YE(e.from);return t===e.from?e:new FE(t,e.filter,e.annotations)}case`Transformation`:{let t=YE(e.from),n=YE(e.to);return t===e.from&&n===e.to?e:new RE(t,n,e.transformation,e.annotations)}}return e},XE=e=>t=>{let n;for(let r of e)Object.prototype.hasOwnProperty.call(t.annotations,r)&&(n===void 0&&(n={}),n[r]=t.annotations[r]);return n},ZE=XE([bT,xT,ST,CT,wT,TT]),QE=e=>{switch(e._tag){case`Declaration`:{let t=$E(e.typeParameters,QE);return t===e.typeParameters?e:new $T(t,e.decodeUnknown,e.encodeUnknown,e.annotations)}case`TupleType`:{let t=$E(e.elements,e=>{let t=QE(e.type);return t===e.type?e:new hE(t,e.isOptional)}),n=gE(e.rest),r=$E(n,QE);return t===e.elements&&r===n?e:new _E(t,r.map(e=>new mE(e)),e.isReadonly,e.annotations)}case`TypeLiteral`:{let t=$E(e.propertySignatures,e=>{let t=QE(e.type);return t===e.type?e:new yE(e.name,t,e.isOptional,e.isReadonly)}),n=$E(e.indexSignatures,e=>{let t=QE(e.type);return t===e.type?e:new xE(e.parameter,t,e.isReadonly)});return t===e.propertySignatures&&n===e.indexSignatures?e:new SE(t,n,e.annotations)}case`Union`:{let t=$E(e.types,QE);return t===e.types?e:kE.make(t,e.annotations)}case`Suspend`:return new PE(()=>QE(e.f()),e.annotations);case`Refinement`:{let t=QE(e.from);return t===e.from?e:new FE(t,e.filter,e.annotations)}case`Transformation`:{let t=ZE(e);return QE(t===void 0?e.to:VE(e.to,t))}}return e};function $E(e,t){let n=!1,r=lo(e.length);for(let i=0;i<e.length;i++){let a=e[i],o=t(a);o!==a&&(n=!0),r[i]=o}return n?r:e}var eD=e=>{switch(e._tag){case`Transformation`:return e.from;case`Refinement`:return eD(e.from);case`Suspend`:return eD(e.f())}},tD=(e,t)=>{switch(e._tag){case`Declaration`:{let n=$E(e.typeParameters,e=>tD(e,t));return n===e.typeParameters?e:new $T(n,e.decodeUnknown,e.encodeUnknown)}case`TupleType`:{let n=$E(e.elements,e=>{let n=tD(e.type,t);return n===e.type?e:new hE(n,e.isOptional)}),r=gE(e.rest),i=$E(r,e=>tD(e,t));return n===e.elements&&i===r?e:new _E(n,i.map(e=>new mE(e)),e.isReadonly)}case`TypeLiteral`:{let n=$E(e.propertySignatures,e=>{let n=tD(e.type,t);return n===e.type?e:new yE(e.name,n,e.isOptional,e.isReadonly)}),r=$E(e.indexSignatures,e=>{let n=tD(e.type,t);return n===e.type?e:new xE(e.parameter,n,e.isReadonly)});return n===e.propertySignatures&&r===e.indexSignatures?e:new SE(n,r)}case`Union`:{let n=$E(e.types,e=>tD(e,t));return n===e.types?e:kE.make(n)}case`Suspend`:{let n,r=QT(e);if(Ya(r)){let e=t?`Bound`:``;n={[XT]:`${r.value}Encoded${e}`}}return new PE(()=>tD(e.f(),t),n)}case`Refinement`:{let n=tD(e.from,t);return t?n===e.from?e:eD(e.from)===void 0&&YT(e)?new FE(n,e.filter,e.annotations):n:n}case`Transformation`:return tD(e.from,t)}return e},nD=e=>tD(e,!1),rD=e=>{let t={};for(let n of Object.getOwnPropertySymbols(e))t[String(n)]=e[n];return t},iD=e=>{switch(e._tag){case`StringKeyword`:case`SymbolKeyword`:case`TemplateLiteral`:return e;case`Refinement`:return iD(e.from)}},aD=e=>Za(cD(e),()=>e._tag);function oD(e){return Xa(FT(e),{onNone:()=>``,onSome:e=>e.map(e=>` & Brand<${Ni(e)}>`).join(``)})}var sD=e=>RT(e).pipe(Qa(()=>VT(e)),Qa(()=>zT(e)),ro(t=>t+oD(e))),cD=e=>Qa(BT(e),()=>sD(e)),lD=class{path;actual;issue;_tag=`Pointer`;constructor(e,t,n){this.path=e,this.actual=t,this.issue=n}},uD=class{actual;message;_tag=`Unexpected`;constructor(e,t){this.actual=e,this.message=t}},dD=class{ast;message;_tag=`Missing`;actual=void 0;constructor(e,t){this.ast=e,this.message=t}},fD=class{ast;actual;issues;output;_tag=`Composite`;constructor(e,t,n,r){this.ast=e,this.actual=t,this.issues=n,this.output=r}},pD=class{ast;actual;kind;issue;_tag=`Refinement`;constructor(e,t,n,r){this.ast=e,this.actual=t,this.kind=n,this.issue=r}},mD=class{ast;actual;kind;issue;_tag=`Transformation`;constructor(e,t,n,r){this.ast=e,this.actual=t,this.kind=n,this.issue=r}},hD=class{ast;actual;message;_tag=`Type`;constructor(e,t,n){this.ast=e,this.actual=t,this.message=n}},gD=class{ast;actual;message;_tag=`Forbidden`;constructor(e,t,n){this.ast=e,this.actual=t,this.message=n}},_D=Symbol.for(`effect/Schema/ParseErrorTypeId`),vD=class extends xv(`ParseError`){[_D]=_D;get message(){return this.toString()}toString(){return WD.formatIssueSync(this.issue)}toJSON(){return{_id:`ParseError`,message:this.toString()}}[Di](){return this.toJSON()}},yD=e=>new vD({issue:e}),bD=Fa,xD=E(2,(e,t)=>bD(e)?N(e,{onLeft:M,onRight:t}):Jw(e,t)),SD=E(2,(e,t)=>bD(e)?za(e,t):Gw(e,t)),CD=E(2,(e,t)=>bD(e)?Ra(e,t):Kw(e,t)),wD=E(2,(e,t)=>bD(e)?N(e,{onLeft:t,onRight:Pa}):Ww(e,t)),TD=(e,t)=>t===void 0||Mr(t)?e:e===void 0?t:{...e,...t},ED=(e,t,n)=>{let r=jD(e,t);return(e,t)=>r(e,TD(n,t))},DD=(e,t,n)=>{let r=ED(e,t,n);return(e,t)=>Va(r(e,t),yD)},OD=(e,t)=>DD(QE(e.ast),!0,t),kD=Ar(Symbol.for(`effect/ParseResult/decodeMemoMap`),()=>new WeakMap),AD=Ar(Symbol.for(`effect/ParseResult/encodeMemoMap`),()=>new WeakMap),jD=(e,t)=>{let n=t?kD:AD,r=n.get(e);if(r)return r;let i=PD(e,t),a=GT(e),o=Ya(a)?(e,t)=>i(e,TD(t,a.value)):i,s=KT(e),c=t&&Ya(s)?(t,n)=>zD(wD(o(t,n),s.value),e,t,n):o;return n.set(e,c),c},MD=e=>to(HT(e)),ND=e=>to(UT(e)),PD=(e,t)=>{switch(e._tag){case`Refinement`:if(t){let t=jD(e.from,!0);return(n,r)=>{r??=LE;let i=r?.errors===`all`;return zD(xD(wD(t(n,r),t=>{let a=new pD(e,n,`From`,t);return i&&YT(e)&&$D(t)?Xa(e.filter(n,r,e),{onNone:()=>M(a),onSome:t=>M(new fD(e,n,[a,new pD(e,n,`Predicate`,t)]))}):M(a)}),t=>Xa(e.filter(t,r,e),{onNone:()=>Pa(t),onSome:t=>M(new pD(e,n,`Predicate`,t))})),e,n,r)}}{let t=jD(QE(e),!0),n=jD(RD(e.from),!1);return(r,i)=>zD(xD(t(r,i),e=>n(e,i)),e,r,i)}case`Transformation`:{let n=HD(e.transformation,t),r=t?jD(e.from,!0):jD(e.to,!1),i=t?jD(e.to,!0):jD(e.from,!1);return(a,o)=>zD(xD(CD(r(a,o),n=>new mD(e,a,t?`Encoded`:`Type`,n)),r=>xD(CD(n(r,o??LE,e,a),t=>new mD(e,a,`Transformation`,t)),n=>CD(i(n,o),n=>new mD(e,a,t?`Type`:`Encoded`,n)))),e,a,o)}case`Declaration`:{let n=t?e.decodeUnknown(...e.typeParameters):e.encodeUnknown(...e.typeParameters);return(t,r)=>zD(n(t,r??LE,e),e,t,r)}case`Literal`:return FD(e,t=>t===e.literal);case`UniqueSymbol`:return FD(e,t=>t===e.symbol);case`UndefinedKeyword`:return FD(e,Lr);case`NeverKeyword`:return FD(e,Rr);case`UnknownKeyword`:case`AnyKeyword`:case`VoidKeyword`:return Pa;case`StringKeyword`:return FD(e,jr);case`NumberKeyword`:return FD(e,Mr);case`BooleanKeyword`:return FD(e,Nr);case`BigIntKeyword`:return FD(e,Pr);case`SymbolKeyword`:return FD(e,Fr);case`ObjectKeyword`:return FD(e,Br);case`Enums`:return FD(e,t=>e.enums.some(([e,n])=>n===t));case`TemplateLiteral`:{if(e.spans.every(e=>uE(e.type)))return FD(e,t=>{if(!jr(t)||!t.startsWith(e.head))return!1;let n=e.head.length;for(let r=0;r<e.spans.length-1;r++){let i=e.spans[r].literal,a=t.indexOf(i,n);if(a===-1)return!1;n=a+i.length}let r=e.spans[e.spans.length-1].literal;return t.endsWith(r)&&t.length-r.length>=n});let t=qE(e);return FD(e,e=>jr(e)&&t.test(e))}case`TupleType`:{let n=e.elements.map(e=>jD(e.type,t)),r=e.rest.map(e=>jD(e.type,t)),i=e.elements.filter(e=>!e.isOptional);e.rest.length>0&&(i=i.concat(e.rest.slice(1)));let a=i.length,o=e.elements.length>0?e.elements.map((e,t)=>t).join(` | `):`never`,s=MD(e),c=ND(e);return(t,l)=>{if(!vo(t))return M(new hD(e,t));let u=l?.errors===`all`,d=[],f=0,p=[],m=t.length;for(let n=m;n<=a-1;n++){let r=new lD(n,t,new dD(i[n-m]));if(u){d.push([f++,r]);continue}return M(new fD(e,t,r,p))}if(e.rest.length===0)for(let n=e.elements.length;n<=m-1;n++){let r=new lD(n,t,new uD(t[n],`is unexpected, expected: ${o}`));if(u){d.push([f++,r]);continue}return M(new fD(e,t,r,p))}let h=0,g;for(;h<n.length;h++)if(m<h+1){if(e.elements[h].isOptional)continue}else{let r=n[h],i=r(t[h],l);if(bD(i)){if(Ia(i)){let n=new lD(h,t,i.left);if(u){d.push([f++,n]);continue}return M(new fD(e,t,n,VD(p)))}p.push([f++,i.right])}else{let n=f++,r=h;g||=[],g.push(({es:a,output:o})=>Jw(qw(i),i=>{if(Ia(i)){let s=new lD(r,t,i.left);return u?(a.push([n,s]),Uw):M(new fD(e,t,s,VD(o)))}return o.push([n,i.right]),Uw}))}}if(xo(r)){let[n,...i]=r;for(;h<m-i.length;h++){let r=n(t[h],l);if(bD(r)){if(Ia(r)){let n=new lD(h,t,r.left);if(u){d.push([f++,n]);continue}return M(new fD(e,t,n,VD(p)))}p.push([f++,r.right])}else{let n=f++,i=h;g||=[],g.push(({es:a,output:o})=>Jw(qw(r),r=>{if(Ia(r)){let s=new lD(i,t,r.left);return u?(a.push([n,s]),Uw):M(new fD(e,t,s,VD(o)))}return o.push([n,r.right]),Uw}))}}for(let n=0;n<i.length;n++){let r=h+n;if(!(m<r+1)){let a=i[n](t[r],l);if(bD(a)){if(Ia(a)){let n=new lD(r,t,a.left);if(u){d.push([f++,n]);continue}return M(new fD(e,t,n,VD(p)))}p.push([f++,a.right])}else{let n=f++;g||=[],g.push(({es:i,output:o})=>Jw(qw(a),a=>{if(Ia(a)){let s=new lD(r,t,a.left);return u?(i.push([n,s]),Uw):M(new fD(e,t,s,VD(o)))}return o.push([n,a.right]),Uw}))}}}}let _=({es:n,output:r})=>bo(n)?M(new fD(e,t,VD(n),VD(r))):Pa(VD(r));if(g&&g.length>0){let e=g;return Hw(()=>{let t={es:Vo(d),output:Vo(p)};return Jw(Vw(e,e=>e(t),{concurrency:s,batching:c,discard:!0}),()=>_(t))})}return _({output:p,es:d})}}case`TypeLiteral`:{if(e.propertySignatures.length===0&&e.indexSignatures.length===0)return FD(e,Ur);let n=[],r={},i=[];for(let a of e.propertySignatures)n.push([jD(a.type,t),a]),r[a.name]=null,i.push(a.name);let a=e.indexSignatures.map(e=>[jD(e.parameter,t),jD(e.type,t),e.parameter]),o=kE.make(e.indexSignatures.map(e=>e.parameter).concat(i.map(e=>Fr(e)?new iE(e):new tE(e)))),s=jD(o,t),c=MD(e),l=ND(e);return(t,u)=>{if(!Kr(t))return M(new hD(e,t));let d=u?.errors===`all`,f=[],p=0,m=u?.onExcessProperty===`error`,h=u?.onExcessProperty===`preserve`,g={},_;if(m||h){_=Reflect.ownKeys(t);for(let n of _){let r=s(n,u);if(bD(r)&&Ia(r)){if(m){let r=new lD(n,t,new uD(t[n],`is unexpected, expected: ${String(o)}`));if(d){f.push([p++,r]);continue}return M(new fD(e,t,r,g))}g[n]=t[n]}}}let v,y=u?.exact===!0;for(let r=0;r<n.length;r++){let i=n[r][1],a=i.name,o=Object.prototype.hasOwnProperty.call(t,a);if(!o){if(i.isOptional)continue;if(y){let n=new lD(a,t,new dD(i));if(d){f.push([p++,n]);continue}return M(new fD(e,t,n,g))}}let s=n[r][0],c=s(t[a],u);if(bD(c)){if(Ia(c)){let n=new lD(a,t,o?c.left:new dD(i));if(d){f.push([p++,n]);continue}return M(new fD(e,t,n,g))}g[a]=c.right}else{let n=p++,r=a;v||=[],v.push(({es:a,output:s})=>Jw(qw(c),c=>{if(Ia(c)){let l=new lD(r,t,o?c.left:new dD(i));return d?(a.push([n,l]),Uw):M(new fD(e,t,l,s))}return s[r]=c.right,Uw}))}}for(let n=0;n<a.length;n++){let i=a[n],o=i[0],s=i[1],c=Zw(t,i[2]);for(let n of c){let i=o(n,u);if(bD(i)&&La(i)){let i=s(t[n],u);if(bD(i)){if(Ia(i)){let r=new lD(n,t,i.left);if(d){f.push([p++,r]);continue}return M(new fD(e,t,r,g))}Object.prototype.hasOwnProperty.call(r,n)||(g[n]=i.right)}else{let a=p++,o=n;v||=[],v.push(({es:s,output:c})=>Jw(qw(i),i=>{if(Ia(i)){let n=new lD(o,t,i.left);return d?(s.push([a,n]),Uw):M(new fD(e,t,n,c))}return Object.prototype.hasOwnProperty.call(r,n)||(c[n]=i.right),Uw}))}}}}let ee=({es:n,output:r})=>{if(bo(n))return M(new fD(e,t,VD(n),r));if(u?.propertyOrder===`original`){let e=_||Reflect.ownKeys(t);for(let t of i)e.indexOf(t)===-1&&e.push(t);let n={};for(let t of e)Object.prototype.hasOwnProperty.call(r,t)&&(n[t]=r[t]);return Pa(n)}return Pa(r)};if(v&&v.length>0){let e=v;return Hw(()=>{let t={es:Vo(f),output:Object.assign({},g)};return Jw(Vw(e,e=>e(t),{concurrency:c,batching:l,discard:!0}),()=>ee(t))})}return ee({es:f,output:g})}}case`Union`:{let n=LD(e.types,t),r=Reflect.ownKeys(n.keys),i=r.length,a=e.types.length,o=new Map;for(let n=0;n<a;n++)o.set(e.types[n],jD(e.types[n],t));let s=MD(e)??1,c=ND(e);return(t,l)=>{let u=[],d=0,f=[];if(i>0){if(zr(t))for(let e=0;e<i;e++){let i=r[e],o=n.keys[i].buckets;if(Object.prototype.hasOwnProperty.call(t,i)){let e=String(t[i]);if(Object.prototype.hasOwnProperty.call(o,e))f=f.concat(o[e]);else{let{candidates:e,literals:r}=n.keys[i],o=kE.make(r),s=e.length===a?new SE([new yE(i,o,!1,!0)],[]):kE.make(e);u.push([d++,new fD(s,t,new lD(i,t,new hD(o,t[i])))])}}else{let{candidates:e,literals:r}=n.keys[i],o=new yE(i,kE.make(r),!1,!0),s=e.length===a?new SE([o],[]):kE.make(e);u.push([d++,new fD(s,t,new lD(i,t,new dD(o)))])}}else{let r=n.candidates.length===a?e:kE.make(n.candidates);u.push([d++,new hD(r,t)])}}n.otherwise.length>0&&(f=f.concat(n.otherwise));let p;for(let e=0;e<f.length;e++){let n=f[e],r=o.get(n)(t,l);if(bD(r)&&(!p||p.length===0)){if(La(r))return r;u.push([d++,r.left])}else{let e=d++;p||=[],p.push(t=>Hw(()=>`finalResult`in t?Uw:Jw(qw(r),n=>(La(n)?t.finalResult=n:t.es.push([e,n.left]),Uw))))}}let m=n=>bo(n)?n.length===1&&n[0][1]._tag===`Type`?M(n[0][1]):M(new fD(e,t,VD(n))):M(new hD(e,t));if(p&&p.length>0){let e=p;return Hw(()=>{let t={es:Vo(u)};return Jw(Vw(e,e=>e(t),{concurrency:s,batching:c,discard:!0}),()=>`finalResult`in t?t.finalResult:m(t.es))})}return m(u)}}case`Suspend`:{let n=Qw(()=>jD(e.f(),t));return(e,t)=>n()(e,t)}}},FD=(e,t)=>n=>t(n)?Pa(n):M(new hD(e,n)),ID=(e,t)=>{switch(e._tag){case`Declaration`:{let n=qT(e);if(Ya(n))return ID(n.value,t);break}case`TypeLiteral`:{let n=[];for(let r=0;r<e.propertySignatures.length;r++){let i=e.propertySignatures[r],a=t?nD(i.type):QE(i.type);nE(a)&&!i.isOptional&&n.push([i.name,a])}return n}case`TupleType`:{let n=[];for(let r=0;r<e.elements.length;r++){let i=e.elements[r],a=t?nD(i.type):QE(i.type);nE(a)&&!i.isOptional&&n.push([r,a])}return n}case`Refinement`:return ID(e.from,t);case`Suspend`:return ID(e.f(),t);case`Transformation`:return ID(t?e.from:e.to,t)}return[]},LD=(e,t)=>{let n={},r=[],i=[];for(let a=0;a<e.length;a++){let o=e[a],s=ID(o,t);if(s.length>0){i.push(o);for(let e=0;e<s.length;e++){let[t,r]=s[e],i=String(r.literal);n[t]=n[t]||{buckets:{},literals:[],candidates:[]};let a=n[t].buckets;if(Object.prototype.hasOwnProperty.call(a,i)){if(e<s.length-1)continue;a[i].push(o),n[t].literals.push(r),n[t].candidates.push(o)}else{a[i]=[o],n[t].literals.push(r),n[t].candidates.push(o);break}}}else r.push(o)}return{keys:n,otherwise:r,candidates:i}},RD=e=>IE(e)?RD(e.from):e,zD=(e,t,n,r)=>{if(r?.isEffectAllowed===!0||bD(e))return e;let i=new Lb,a=Yw(e,{scheduler:i});i.flush();let o=a.unsafePoll();if(o){if(Yb(o))return Pa(o.value);let e=o.cause;return Jg(e)?M(e.error):M(new gD(t,n,Yg(e)))}return M(new gD(t,n,`cannot be be resolved synchronously, this is caused by using runSync on an effect that performs async work`))},BD=([e],[t])=>e>t?1:e<t?-1:0;function VD(e){return e.sort(BD).map(e=>e[1])}var HD=(e,t)=>{switch(e._tag){case`FinalTransformation`:return t?e.decode:e.encode;case`ComposeTransformation`:return Pa;case`TypeLiteralTransformation`:return n=>{let r=Pa(n);for(let n of e.propertySignatureTransformations){let[e,i]=t?[n.from,n.to]:[n.to,n.from],a=t?n.decode:n.encode;r=SD(r,t=>{let n=a(Object.prototype.hasOwnProperty.call(t,e)?F(t[e]):P());return delete t[e],Ya(n)&&(t[i]=n.value),t})}return r}}},UD=(e,t=[])=>({value:e,forest:t}),WD={formatIssue:e=>SD(dO(e),GD),formatIssueSync:e=>{let t=WD.formatIssue(e);return bD(t)?Ha(t):Xw(t)},formatError:e=>WD.formatIssue(e.issue),formatErrorSync:e=>WD.formatIssueSync(e.issue)},GD=e=>e.value+KD(`
|
|
261
|
-
`,e.forest),KD=(e,t)=>{let n=``,r=t.length,i;for(let a=0;a<r;a++){i=t[a];let o=a===r-1;n+=e+(o?`└`:`├`)+`─ `+i.value,n+=KD(e+(r>1&&!o?`│ `:` `),i.forest)}return n},qD=e=>{switch(e){case`Encoded`:return`Encoded side transformation failure`;case`Transformation`:return`Transformation process failure`;case`Type`:return`Type side transformation failure`}},JD=e=>{switch(e){case`From`:return`From side refinement failure`;case`Predicate`:return`Predicate refinement failure`}},YD=e=>`ast`in e?F(e.ast):P(),XD=Pa(void 0),ZD=e=>YD(e).pipe(io(IT),Xa({onNone:()=>XD,onSome:t=>{let n=t(e);return jr(n)?Pa({message:n,override:!1}):Bw(n)?Gw(n,e=>({message:e,override:!1})):jr(n.message)?Pa({message:n.message,override:n.override}):Gw(n.message,e=>({message:e,override:n.override}))}})),QD=e=>t=>t._tag===e,$D=QD(`Composite`),eO=QD(`Refinement`),tO=QD(`Transformation`),nO=e=>xD(ZD(e),t=>t===void 0?XD:!t.override&&($D(e)||eO(e)&&e.kind===`From`||tO(e)&&e.kind!==`Transformation`)?tO(e)||eO(e)?nO(e.issue):XD:Pa(t.message)),rO=e=>YD(e).pipe(io(WT),ao(t=>t(e)),to);function iO(e){return VT(e).pipe(Qa(()=>RT(e)),Qa(()=>zT(e)),Qa(()=>BT(e)),Za(()=>`{ ${e.from} | filter }`))}function aO(e){return e.message===void 0?`Expected ${IE(e.ast)?iO(e.ast):String(e.ast)}, actual ${Ni(e.actual)}`:e.message}var oO=e=>SD(nO(e),t=>t??rO(e)??aO(e)),sO=e=>rO(e)??String(e.ast),cO=e=>e.message??`is forbidden`,lO=e=>e.message??`is unexpected`,uO=e=>{let t=LT(e.ast);if(Ya(t)){let e=t.value();return jr(e)?Pa(e):e}return Pa(e.message??`is missing`)},dO=e=>{switch(e._tag){case`Type`:return SD(oO(e),UD);case`Forbidden`:return Pa(UD(sO(e),[UD(cO(e))]));case`Unexpected`:return Pa(UD(lO(e)));case`Missing`:return SD(uO(e),UD);case`Transformation`:return xD(nO(e),t=>t===void 0?SD(dO(e.issue),t=>UD(sO(e),[UD(qD(e.kind),[t])])):Pa(UD(t)));case`Refinement`:return xD(nO(e),t=>t===void 0?SD(dO(e.issue),t=>UD(sO(e),[UD(JD(e.kind),[t])])):Pa(UD(t)));case`Pointer`:return SD(dO(e.issue),t=>UD(nT(e.path),[t]));case`Composite`:return xD(nO(e),t=>{if(t!==void 0)return Pa(UD(t));let n=sO(e);return $w(e.issues)?SD(Vw(e.issues,dO),e=>UD(n,e)):SD(dO(e.issues),e=>UD(n,[e]))})}},fO=E(e=>Br(e[0]),(e,...t)=>{let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}),pO=E(e=>Br(e[0]),(e,...t)=>{let n={...e};for(let e of t)delete n[e];return n}),mO=Symbol.for(`effect/Schema`);function hO(e){return class{[mO]=gO;static ast=e;static annotations(e){return hO(yO(this.ast,e))}static pipe(){return j(this,arguments)}static toString(){return String(e)}static Type;static Encoded;static Context;static[mO]=gO}}var gO={_A:e=>e,_I:e=>e,_R:e=>e},_O={typeConstructor:dT,schemaId:pT,message:mT,missingMessage:hT,identifier:gT,title:_T,description:yT,examples:bT,default:xT,documentation:ET,jsonSchema:ST,arbitrary:CT,pretty:wT,equivalence:TT,concurrency:DT,batching:OT,parseIssueTitle:kT,parseOptions:AT,decodingFallback:jT},vO=e=>{if(!e)return{};let t={...e};for(let n in _O)if(n in e){let r=_O[n];t[r]=e[n],delete t[n]}return t},yO=(e,t)=>VE(e,vO(t)),bO=e=>O(e,mO)&&Br(e[mO]);function xO(e){return jE(e)?kE.make(AE(e,e=>new tE(e))):new tE(e[0])}function SO(e,t=xO(e)){return class extends hO(t){static annotations(e){return SO(this.literals,yO(this.ast,e))}static literals=[...e]}}function Y(...e){return xo(e)?SO(e):TO}var CO=class extends hO(aE){},wO=class extends hO(rE){},TO=class extends hO(oE){},X=class extends hO(lE){},EO=class extends hO(dE){},DO=class extends hO(fE){},OO=e=>kE.make(e.map(e=>e.ast));function kO(e,t=OO(e)){return class extends hO(t){static annotations(e){return kO(this.members,yO(this.ast,e))}static members=[...e]}}function AO(...e){return jE(e)?kO(e):xo(e)?e[0]:TO}var jO=e=>AO(e,CO),MO=(e,t)=>new _E(e.map(e=>bO(e)?new hE(e.ast,!1):e.ast),t.map(e=>bO(e)?new mE(e.ast):e.ast),!0);function NO(e,t,n=MO(e,t)){return class extends hO(n){static annotations(e){return NO(this.elements,this.rest,yO(this.ast,e))}static elements=[...e];static rest=[...t]}}function PO(e,t){return class extends NO([],[e],t){static annotations(e){return PO(this.value,yO(this.ast,e))}static value=e}}var FO=e=>PO(e),IO=e=>e?`"?:"`:`":"`,LO=class extends hE{isReadonly;defaultValue;_tag=`PropertySignatureDeclaration`;constructor(e,t,n,r,i){super(e,t,r),this.isReadonly=n,this.defaultValue=i}toString(){let e=IO(this.isOptional),t=String(this.type);return`PropertySignature<${e}, ${t}, never, ${e}, ${t}>`}},RO=class extends hE{isReadonly;defaultValue;constructor(e,t,n,r,i){super(e,t,r),this.isReadonly=n,this.defaultValue=i}},zO=e=>e===void 0?`never`:jr(e)?JSON.stringify(e):String(e),BO=class{from;to;decode;encode;_tag=`PropertySignatureTransformation`;constructor(e,t,n,r){this.from=e,this.to=t,this.decode=n,this.encode=r}toString(){return`PropertySignature<${IO(this.to.isOptional)}, ${this.to.type}, ${zO(this.from.fromKey)}, ${IO(this.from.isOptional)}, ${this.from.type}>`}},VO=(e,t)=>{switch(e._tag){case`PropertySignatureDeclaration`:return new LO(e.type,e.isOptional,e.isReadonly,{...e.annotations,...t},e.defaultValue);case`PropertySignatureTransformation`:return new BO(e.from,new RO(e.to.type,e.to.isOptional,e.to.isReadonly,{...e.to.annotations,...t},e.to.defaultValue),e.decode,e.encode)}},HO=Symbol.for(`effect/PropertySignature`),UO=e=>O(e,HO),WO=class e{ast;[mO];[HO]=null;_TypeToken;_Key;_EncodedToken;_HasDefault;constructor(e){this.ast=e}pipe(){return j(this,arguments)}annotations(t){return new e(VO(this.ast,vO(t)))}toString(){return String(this.ast)}},GO=class e extends WO{from;constructor(e,t){super(e),this.from=t}annotations(t){return new e(VO(this.ast,vO(t)),this.from)}},Z=e=>new GO(new LO(e.ast===aE||e.ast===oE?aE:jO(e).ast,!0,!0,{},void 0),e),KO=XE([hT]),qO=(e,t)=>{let n=Reflect.ownKeys(e),r=[];if(n.length>0){let i=[],a=[],o=[];for(let t=0;t<n.length;t++){let s=n[t],c=e[s];if(UO(c)){let e=c.ast;switch(e._tag){case`PropertySignatureDeclaration`:{let t=e.type,n=e.isOptional,o=e.annotations;i.push(new yE(s,t,n,!0,KO(e))),a.push(new yE(s,QE(t),n,!0,o)),r.push(new yE(s,t,n,!0,o));break}case`PropertySignatureTransformation`:{let t=e.from.fromKey??s;i.push(new yE(t,e.from.type,e.from.isOptional,!0,e.from.annotations)),a.push(new yE(s,e.to.type,e.to.isOptional,!0,e.to.annotations)),o.push(new zE(t,s,e.decode,e.encode));break}}}else i.push(new yE(s,c.ast,!1,!0)),a.push(new yE(s,QE(c.ast),!1,!0)),r.push(new yE(s,c.ast,!1,!0))}if(xo(o)){let e=[],n=[];for(let r of t){let{indexSignatures:t,propertySignatures:o}=JE(r.key.ast,r.value.ast);o.forEach(e=>{i.push(e),a.push(new yE(e.name,QE(e.type),e.isOptional,e.isReadonly,e.annotations))}),t.forEach(t=>{e.push(t),n.push(new xE(t.parameter,QE(t.type),t.isReadonly))})}return new RE(new SE(i,e,{[vT]:`Struct (Encoded side)`}),new SE(a,n,{[vT]:`Struct (Type side)`}),new BE(o))}}let i=[];for(let e of t){let{indexSignatures:t,propertySignatures:n}=JE(e.key.ast,e.value.ast);n.forEach(e=>r.push(e)),t.forEach(e=>i.push(e))}return new SE(r,i)},JO=(e,t)=>{let n=Reflect.ownKeys(e);for(let r of n){let n=e[r];if(t[r]===void 0&&UO(n)){let e=n.ast,i=e._tag===`PropertySignatureDeclaration`?e.defaultValue:e.to.defaultValue;i!==void 0&&(t[r]=i())}}return t};function YO(e,t,n=qO(e,t)){return class extends hO(n){static annotations(e){return YO(this.fields,this.records,yO(this.ast,e))}static fields={...e};static records=[...t];static make=(t,n)=>{let r=JO(e,{...t});return ck(n)?r:OD(this)(r)};static pick(...t){return XO(fO(e,...t))}static omit(...t){return XO(pO(e,...t))}}}function XO(e,...t){return YO(e,t)}function ZO(e,t,n){return class extends YO({},[{key:e,value:t}],n){static annotations(n){return ZO(e,t,yO(this.ast,n))}static key=e;static value=t}}var QO=e=>ZO(e.key,e.value),$O=e=>hO(YE(e.ast)),ek=e=>hO(new PE(()=>e().ast)),tk=Symbol.for(`effect/SchemaId/Refine`);function nk(e,t,n){return class extends hO(n){static annotations(e){return nk(this.from,this.filter,yO(this.ast,e))}static[tk]=e;static from=e;static filter=t;static make=(e,t)=>ck(t)?e:OD(this)(e)}}var rk=(e,t,n)=>{if(Nr(e))return e?P():F(new hD(t,n));if(jr(e))return F(new hD(t,n,e));if(e!==void 0){if(`_tag`in e)return F(e);let r=new hD(t,n,e.message);return F(xo(e.path)?new lD(e.path,n,r):r)}return P()},ik=(e,t,n)=>{if(eT(e))return rk(e,t,n);if(xo(e)){let r=Yo(e,e=>rk(e,t,n));if(xo(r))return F(r.length===1?r[0]:new fD(t,n,r))}return P()};function ak(e,t){return n=>{function r(t,n,r){return ik(e(t,n,r),r,t)}return nk(n,r,new FE(n.ast,r,vO(t)))}}var ok=Symbol.for(`effect/SchemaId/Pattern`),sk=(e,t)=>n=>{let r=e.source;return n.pipe(ak(t=>(e.lastIndex=0,e.test(t)),{schemaId:ok,[ok]:{regex:e},description:`a string matching the pattern ${r}`,jsonSchema:{pattern:r},...t}))};function ck(e){return Nr(e)?e:e?.disableValidation??!1}Y(`run`,`trial`,`artifact`),X.pipe(sk(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i)),X.pipe(sk(/^evalkit:(run|trial|artifact):[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i));function lk(e){return X.pipe(sk(RegExp(`^evalkit:${e}:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$`,`i`)))}function uk(e){if(e===null||typeof e==`string`||typeof e==`boolean`||typeof e==`number`&&Number.isFinite(e))return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(uk).join(`,`)}]`;if(typeof e==`object`&&Object.getPrototypeOf(e)===Object.prototype)return`{${Object.keys(e).sort().map(t=>`${JSON.stringify(t)}:${uk(e[t])}`).join(`,`)}}`;throw Error(`Matrix parameters must be finite JSON values`)}var dk=Y(`running`,`completed`,`failed`,`cancelled`),fk=XO({name:X,message:X,stack:Z(X)}),pk=XO({name:Z(X),kind:X,id:X,version:Z(X)}),mk=ek(()=>AO(wO,DO,EO,X,$O(FO(mk)),QO({key:X,value:mk}))),hk=QO({key:X,value:mk}),gk=XO({id:X,cellKey:X}),_k=XO({schemaVersion:Y(2,3),runUri:lk(`run`),evalId:X,suiteId:Z(X),parameters:Z(hk),matrix:Z(gk),aut:Z(pk),startedAt:X}),vk=XO({schemaVersion:Y(2,3),runUri:lk(`run`),trialUri:lk(`trial`),trialIndex:EO,evalId:X,parameters:Z(hk),matrix:Z(gk),aut:Z(pk),startedAt:X});XO({..._k.fields,status:Z(dk)}),XO({...vk.fields,status:Z(dk)});var yk=XO({inputTokens:Z(EO),outputTokens:Z(EO),totalTokens:Z(EO)}),bk=XO({agent:Z(XO({id:X,kind:X,name:Z(X),version:Z(X)})),usage:Z(yk),events:Z($O(FO(mk)))}),xk=XO({name:X,kind:Y(`predicate`,`judge`),value:Z(EO),passed:Z(DO),explanation:Z(X),evidence:Z(mk),judge:Z(bk),durationMs:EO,error:Z(fk)}),Sk=XO({step:EO,kind:Y(`predicate`,`judge`,`expect-tool-call`),name:X,status:Y(`passed`,`failed`,`error`,`skipped`),value:Z(EO),passed:Z(DO),explanation:Z(X),evidence:Z(mk),judge:Z(bk),durationMs:Z(EO),error:Z(fk),matchedToolCall:Z(XO({eventIndex:EO,id:X}))}),Ck=XO({results:$O(FO(xk)),checkpoints:Z($O(FO(Sk))),skippedScorers:Z($O(FO(X))),overall:Z(EO),passed:DO}),wk=XO({path:X,kind:Y(`file`,`directory`),size:Z(EO)});XO({status:dk,endedAt:X,durationMs:Z(EO),scoring:Z(Ck),artifacts:Z($O(FO(wk))),error:Z(fk)}),XO({status:dk,endedAt:X,durationMs:Z(EO),trialCount:EO,passed:EO,failed:EO,error:Z(fk)});var Tk={started:XO({source:Y(`aut`),kind:Y(`started`),timestamp:X}),message:XO({source:Y(`aut`),kind:Y(`message`),role:Y(`system`,`user`,`assistant`,`tool`),content:mk,timestamp:X}),toolCall:XO({source:Y(`aut`),kind:Y(`tool-call`),id:X,name:X,arguments:mk,timestamp:X}),toolResult:XO({source:Y(`aut`),kind:Y(`tool-result`),id:X,name:Z(X),result:mk,timestamp:X}),turnStarted:XO({source:Y(`aut`),kind:Y(`turn-started`),turn:EO,timestamp:X}),turnCompleted:XO({source:Y(`aut`),kind:Y(`turn-completed`),turn:EO,timestamp:X,latencyMs:Z(EO),usage:Z(yk)}),completed:XO({source:Y(`aut`),kind:Y(`completed`),output:Z(mk),timestamp:X}),error:XO({source:Y(`aut`),kind:Y(`error`),error:fk,timestamp:X})},Ek={trialStarted:XO({source:Y(`runner`),kind:Y(`trial-started`),timestamp:X}),stepStarted:XO({source:Y(`runner`),kind:Y(`transcript-step-started`),step:EO,timestamp:X}),stepCompleted:XO({source:Y(`runner`),kind:Y(`transcript-step-completed`),step:EO,timestamp:X}),stepSkipped:XO({source:Y(`runner`),kind:Y(`transcript-step-skipped`),step:EO,timestamp:X}),checkpointStarted:XO({source:Y(`runner`),kind:Y(`checkpoint-started`),step:EO,name:X,timestamp:X}),checkpointCompleted:XO({source:Y(`runner`),kind:Y(`checkpoint-completed`),step:EO,status:Y(`passed`,`failed`),timestamp:X}),checkpointError:XO({source:Y(`runner`),kind:Y(`checkpoint-error`),step:EO,error:fk,timestamp:X}),scorerStarted:XO({source:Y(`runner`),kind:Y(`scorer-started`),scorer:X,timestamp:X}),scorerCompleted:XO({source:Y(`runner`),kind:Y(`scorer-completed`),scorer:X,value:EO,timestamp:X}),scorerFailed:XO({source:Y(`runner`),kind:Y(`scorer-failed`),scorer:X,error:fk,timestamp:X}),trialCompleted:XO({source:Y(`runner`),kind:Y(`trial-completed`),timestamp:X}),error:XO({source:Y(`runner`),kind:Y(`error`),error:fk,timestamp:X})};AO(...Object.values(Tk),...Object.values(Ek)),XO({error:X,message:X});var Dk=`@missing`,Ok=e=>`p.${e}`;function kk(e,t,n){let r=e.get(t);r?r.count++:e.set(t,{key:t,label:n,count:1})}function Ak(e){return[{key:`eval`,label:`Eval`},{key:`matrix`,label:`Matrix`},{key:`status`,label:`Status`},...[...new Set(e.flatMap(e=>Object.keys(e.parameters??{})))].sort().map(e=>({key:Ok(e),label:e}))].map(({key:t,label:n})=>{let r=new Map;for(let n of e){let e=t===`eval`?n.evalId:t===`matrix`?n.matrixId:t===`status`?n.status:n.parameters?.[t.slice(2)],i=t===`eval`||t===`status`||(t===`matrix`?n.matrixId!==void 0:Object.hasOwn(n.parameters??{},t.slice(2)));kk(r,i?uk(e):Dk,i?String(typeof e==`string`?e:JSON.stringify(e)):`Missing`)}return{key:t,label:n,values:[...r.values()].sort((e,t)=>e.label.localeCompare(t.label,void 0,{numeric:!0}))}})}function jk(e,t){let n=[...t.keys()].filter(e=>[`eval`,`matrix`,`status`].includes(e)||e.startsWith(`p.`)),r=t.get(`from`),i=t.get(`to`);return e.filter(e=>r&&e.startedAt.slice(0,10)<r||i&&e.startedAt.slice(0,10)>i?!1:n.every(n=>{let r=t.getAll(n),i=n===`eval`||n===`status`||(n===`matrix`?e.matrixId!==void 0:Object.hasOwn(e.parameters??{},n.slice(2))),a=n===`eval`?e.evalId:n===`matrix`?e.matrixId:n===`status`?e.status:e.parameters?.[n.slice(2)],o=i?uk(a):Dk;return r.includes(o)}))}function Mk(e,t){let[n,r]=(0,b.useState)(()=>new URLSearchParams),i=e??n,a=t??r,o=i.get(`q`)??``,[s,c]=(0,b.useState)(o);return(0,b.useEffect)(()=>c(o),[o]),(0,b.useEffect)(()=>{if(s===o)return;let e=setTimeout(()=>{let e=new URLSearchParams(i);s?e.set(`q`,s):e.delete(`q`),a(e)},250);return()=>clearTimeout(e)},[s,o,i,a]),{activeSearch:i,query:s,setQuery:c,setField:(e,t)=>{let n=new URLSearchParams(i);t?n.set(e,t):n.delete(e),a(n)},toggleFacet:(e,t)=>{let n=new URLSearchParams(i),r=n.getAll(e);n.delete(e);for(let i of r.filter(e=>e!==t))n.append(e,i);r.includes(t)||n.append(e,t),a(n)},clearFilters:()=>a(new URLSearchParams)}}function Nk(e,t,n){let[r,i]=(0,b.useState)({});return(0,b.useEffect)(()=>{if(!n||!t.some(e=>e.id===n))return;let r=!0;return e.listTrials(n).then(e=>{r&&i(t=>({...t,[n]:e}))}),()=>{r=!1}},[e,t,n]),{trials:r,loadTrials:t=>{r[t]||e.listTrials(t).then(e=>i(n=>({...n,[t]:e})))}}}var Q=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/components/RunTable.tsx`;function Pk(e){return typeof e==`string`?e:JSON.stringify(e)??String(e)}function Fk(e){return[...new Set(e.flatMap(e=>Object.keys(e.parameters??{})))].sort()}function Ik(e,t,n,r){let i=t.trim().toLowerCase().split(/\s+/).filter(Boolean);return i.length?e.filter(e=>{let t=r.find(t=>t.id===e.evalId),a=n.find(t=>t.id===e.suiteId),o=Object.entries(e.parameters??{}).flatMap(([e,t])=>[e,Pk(t)]),s=[e.id,e.evalId,t?.name,e.suiteId,a?.name,e.matrixId,t?.agent.name,t?.agent.kind,e.status,e.score,e.startedAt,...o].map(Pk).join(` `).toLowerCase();return i.every(e=>s.includes(e))}):[...e]}function Lk({api:e,runs:t,suites:n,catalog:r,onTrial:i,onOpenRun:a,selectedRunId:o,search:s,onSearchChange:c}){let{activeSearch:l,query:u,setQuery:d,setField:f,toggleFacet:p,clearFilters:m}=Mk(s,c),{trials:h,loadTrials:g}=Nk(e,t,o),_=(0,b.useMemo)(()=>Ak(t),[t]),v=(0,b.useMemo)(()=>Fk(t),[t]),y=Ik(jk(t,l),u,n,r),[ee,te]=(0,b.useState)(0),[ne,re]=(0,b.useState)(()=>typeof window>`u`||window.matchMedia(`(min-width: 901px)`).matches),[ie,ae]=(0,b.useState)({key:`started`,direction:`desc`}),oe=e=>r.find(t=>t.id===e.evalId),x=hr(y,ie,(e,t)=>{if(t.startsWith(`param:`)){let n=e.parameters?.[t.slice(6)];return n===void 0?void 0:typeof n==`number`?n:Pk(n)}let r=oe(e);return{run:e.id,suite:n.find(t=>t.id===e.suiteId)?.name??e.suiteId,eval:r?.name??e.evalId,agent:r?.agent.name??r?.agent.kind??`Unnamed agent`,status:e.status,trials:e.completedTrials,score:e.score,runtime:e.durationMs,started:e.startedAt}[t]}),se=Math.max(1,Math.ceil(x.length/50)),ce=Math.min(ee,se-1),le=x.slice(ce*50,(ce+1)*50),ue=e=>{ae(t=>t.key===e?{key:e,direction:t.direction===`asc`?`desc`:`asc`}:{key:e,direction:`asc`}),te(0)},de=e=>{a(e),g(e.id)};return t.length?(0,T.jsxDEV)(`div`,{className:`runs-layout`,children:[(0,T.jsxDEV)(`details`,{className:`runs-filter-panel`,open:ne,onToggle:e=>re(e.currentTarget.open),children:[(0,T.jsxDEV)(`summary`,{children:[`Filters`,l.size?` (${l.size} active)`:``]},void 0,!0,{fileName:Q,lineNumber:166,columnNumber:9},this),(0,T.jsxDEV)(`div`,{className:`runs-filter-fields`,children:[_.map(e=>(0,T.jsxDEV)(`fieldset`,{children:[(0,T.jsxDEV)(`legend`,{children:e.label},void 0,!1,{fileName:Q,lineNumber:172,columnNumber:15},this),e.values.map(t=>(0,T.jsxDEV)(`label`,{className:`runs-choice`,children:[(0,T.jsxDEV)(`input`,{type:`checkbox`,checked:l.getAll(e.key).includes(t.key),onChange:()=>p(e.key,t.key)},void 0,!1,{fileName:Q,lineNumber:175,columnNumber:19},this),(0,T.jsxDEV)(`span`,{children:t.label},void 0,!1,{fileName:Q,lineNumber:182,columnNumber:19},this),(0,T.jsxDEV)(`small`,{children:t.count},void 0,!1,{fileName:Q,lineNumber:183,columnNumber:19},this)]},t.key,!0,{fileName:Q,lineNumber:174,columnNumber:17},this))]},e.key,!0,{fileName:Q,lineNumber:171,columnNumber:13},this)),(0,T.jsxDEV)(`label`,{className:`runs-date`,children:[`From`,` `,(0,T.jsxDEV)(`input`,{type:`date`,value:l.get(`from`)??``,onChange:e=>f(`from`,e.target.value)},void 0,!1,{fileName:Q,lineNumber:190,columnNumber:13},this)]},void 0,!0,{fileName:Q,lineNumber:188,columnNumber:11},this),(0,T.jsxDEV)(`label`,{className:`runs-date`,children:[`To`,` `,(0,T.jsxDEV)(`input`,{type:`date`,value:l.get(`to`)??``,onChange:e=>f(`to`,e.target.value)},void 0,!1,{fileName:Q,lineNumber:198,columnNumber:13},this)]},void 0,!0,{fileName:Q,lineNumber:196,columnNumber:11},this),(0,T.jsxDEV)(`button`,{type:`button`,className:`clear-filters`,disabled:!l.size,onClick:m,children:`Clear filters`},void 0,!1,{fileName:Q,lineNumber:204,columnNumber:11},this)]},void 0,!0,{fileName:Q,lineNumber:169,columnNumber:9},this)]},void 0,!0,{fileName:Q,lineNumber:161,columnNumber:7},this),(0,T.jsxDEV)(`div`,{className:`table-wrap`,children:[(0,T.jsxDEV)(`label`,{className:`matrix-filter`,children:[`Filter runs`,(0,T.jsxDEV)(`input`,{type:`search`,"aria-label":`Filter runs`,placeholder:`Eval, parameter, agent or status`,value:u,onChange:e=>d(e.target.value)},void 0,!1,{fileName:Q,lineNumber:217,columnNumber:11},this),(0,T.jsxDEV)(`span`,{children:[x.length,` of `,t.length,` runs`]},void 0,!0,{fileName:Q,lineNumber:224,columnNumber:11},this)]},void 0,!0,{fileName:Q,lineNumber:215,columnNumber:9},this),(0,T.jsxDEV)(`table`,{className:`data-table`,children:[(0,T.jsxDEV)(`thead`,{children:(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(mr,{label:`Run`,sortKey:`run`,sort:ie,onSort:ue},void 0,!1,{fileName:Q,lineNumber:231,columnNumber:15},this),(0,T.jsxDEV)(mr,{label:`Status`,sortKey:`status`,sort:ie,onSort:ue},void 0,!1,{fileName:Q,lineNumber:237,columnNumber:15},this),(0,T.jsxDEV)(mr,{label:`Eval`,sortKey:`eval`,sort:ie,onSort:ue},void 0,!1,{fileName:Q,lineNumber:243,columnNumber:15},this),v.map(e=>(0,T.jsxDEV)(mr,{label:e,sortKey:`param:${e}`,sort:ie,onSort:ue},e,!1,{fileName:Q,lineNumber:250,columnNumber:17},this)),(0,T.jsxDEV)(mr,{label:`Agent`,sortKey:`agent`,sort:ie,onSort:ue},void 0,!1,{fileName:Q,lineNumber:258,columnNumber:15},this),(0,T.jsxDEV)(mr,{label:`Trials`,sortKey:`trials`,sort:ie,onSort:ue},void 0,!1,{fileName:Q,lineNumber:264,columnNumber:15},this),(0,T.jsxDEV)(mr,{label:`Score`,sortKey:`score`,sort:ie,onSort:ue},void 0,!1,{fileName:Q,lineNumber:270,columnNumber:15},this),(0,T.jsxDEV)(mr,{label:`Runtime`,sortKey:`runtime`,sort:ie,onSort:ue},void 0,!1,{fileName:Q,lineNumber:276,columnNumber:15},this),(0,T.jsxDEV)(mr,{label:`Started`,sortKey:`started`,sort:ie,onSort:ue},void 0,!1,{fileName:Q,lineNumber:282,columnNumber:15},this),(0,T.jsxDEV)(mr,{label:`Suite`,sortKey:`suite`,sort:ie,onSort:ue},void 0,!1,{fileName:Q,lineNumber:288,columnNumber:15},this)]},void 0,!0,{fileName:Q,lineNumber:230,columnNumber:13},this)},void 0,!1,{fileName:Q,lineNumber:229,columnNumber:11},this),(0,T.jsxDEV)(`tbody`,{children:[le.map(e=>{let t=oe(e);return(0,T.jsxDEV)(b.Fragment,{children:[(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`td`,{className:`identity-cell`,children:(0,T.jsxDEV)(`button`,{type:`button`,className:`table-link mono`,"aria-expanded":o===e.id,onClick:()=>de(e),children:e.id.slice(0,8)},void 0,!1,{fileName:Q,lineNumber:303,columnNumber:23},this)},void 0,!1,{fileName:Q,lineNumber:302,columnNumber:21},this),(0,T.jsxDEV)(`td`,{children:(0,T.jsxDEV)(`span`,{className:`status ${e.status}`,children:e.status},void 0,!1,{fileName:Q,lineNumber:313,columnNumber:23},this)},void 0,!1,{fileName:Q,lineNumber:312,columnNumber:21},this),(0,T.jsxDEV)(`td`,{children:t?.name??e.evalId},void 0,!1,{fileName:Q,lineNumber:317,columnNumber:21},this),v.map(t=>(0,T.jsxDEV)(`td`,{children:Object.hasOwn(e.parameters??{},t)?Pk(e.parameters?.[t]):`—`},t,!1,{fileName:Q,lineNumber:319,columnNumber:23},this)),(0,T.jsxDEV)(`td`,{children:t?.agent.name??t?.agent.kind??`Unnamed agent`},void 0,!1,{fileName:Q,lineNumber:325,columnNumber:21},this),(0,T.jsxDEV)(`td`,{children:[e.completedTrials,`/`,e.requestedTrials]},void 0,!0,{fileName:Q,lineNumber:330,columnNumber:21},this),(0,T.jsxDEV)(`td`,{children:e.score??`—`},void 0,!1,{fileName:Q,lineNumber:333,columnNumber:21},this),(0,T.jsxDEV)(`td`,{children:e.durationMs===void 0?`—`:`${e.durationMs}ms`},void 0,!1,{fileName:Q,lineNumber:334,columnNumber:21},this),(0,T.jsxDEV)(`td`,{children:new Date(e.startedAt).toLocaleString()},void 0,!1,{fileName:Q,lineNumber:339,columnNumber:21},this),(0,T.jsxDEV)(`td`,{children:n.find(t=>t.id===e.suiteId)?.name??`—`},void 0,!1,{fileName:Q,lineNumber:340,columnNumber:21},this)]},void 0,!0,{fileName:Q,lineNumber:301,columnNumber:19},this),o===e.id?(0,T.jsxDEV)(`tr`,{children:(0,T.jsxDEV)(`td`,{colSpan:9+v.length,children:(0,T.jsxDEV)(_r,{run:e,trials:h[e.id]??[],onTrial:i},void 0,!1,{fileName:Q,lineNumber:348,columnNumber:25},this)},void 0,!1,{fileName:Q,lineNumber:347,columnNumber:23},this)},void 0,!1,{fileName:Q,lineNumber:346,columnNumber:21},this):null]},e.id,!0,{fileName:Q,lineNumber:300,columnNumber:17},this)}),x.length?null:(0,T.jsxDEV)(`tr`,{children:(0,T.jsxDEV)(`td`,{colSpan:9+v.length,children:[`No matching runs.`,` `,(0,T.jsxDEV)(`button`,{type:`button`,onClick:m,children:`Clear filters`},void 0,!1,{fileName:Q,lineNumber:363,columnNumber:19},this)]},void 0,!0,{fileName:Q,lineNumber:361,columnNumber:17},this)},void 0,!1,{fileName:Q,lineNumber:360,columnNumber:15},this)]},void 0,!0,{fileName:Q,lineNumber:296,columnNumber:11},this)]},void 0,!0,{fileName:Q,lineNumber:228,columnNumber:9},this),x.length>50?(0,T.jsxDEV)(`nav`,{className:`matrix-pages`,"aria-label":`Run pages`,children:[(0,T.jsxDEV)(`span`,{children:[`Runs `,ce*50+1,`–`,Math.min((ce+1)*50,x.length),` of`,` `,x.length]},void 0,!0,{fileName:Q,lineNumber:373,columnNumber:13},this),(0,T.jsxDEV)(`button`,{type:`button`,disabled:ce===0,onClick:()=>te(ce-1),children:`Previous`},void 0,!1,{fileName:Q,lineNumber:378,columnNumber:13},this),(0,T.jsxDEV)(`button`,{type:`button`,disabled:ce===se-1,onClick:()=>te(ce+1),children:`Next`},void 0,!1,{fileName:Q,lineNumber:385,columnNumber:13},this)]},void 0,!0,{fileName:Q,lineNumber:372,columnNumber:11},this):null]},void 0,!0,{fileName:Q,lineNumber:214,columnNumber:7},this)]},void 0,!0,{fileName:Q,lineNumber:160,columnNumber:5},this):(0,T.jsxDEV)(ir,{message:`No runs yet. Select an eval or suite to start one.`},void 0,!1,{fileName:Q,lineNumber:157,columnNumber:7},this)}var Rk=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/components/EvalRow.tsx`;function zk({id:e,evaluation:t,parameters:n=[],trials:r,onRun:i,runDisabled:a=!1,onOpen:o,status:s}){return(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`td`,{className:`identity-cell`,children:[o?(0,T.jsxDEV)(`button`,{type:`button`,className:`table-link`,onClick:o,children:t?.name??e},void 0,!1,{fileName:Rk,lineNumber:26,columnNumber:11},this):t?.name??e,(0,T.jsxDEV)(`small`,{className:`mono`,children:t?.path??e},void 0,!1,{fileName:Rk,lineNumber:32,columnNumber:9},this)]},void 0,!0,{fileName:Rk,lineNumber:24,columnNumber:7},this),n.map((e,t)=>(0,T.jsxDEV)(`td`,{className:`mono`,children:typeof e==`string`?e:JSON.stringify(e)},t,!1,{fileName:Rk,lineNumber:35,columnNumber:9},this)),(0,T.jsxDEV)(`td`,{children:$n(t)},void 0,!1,{fileName:Rk,lineNumber:39,columnNumber:7},this),(0,T.jsxDEV)(`td`,{children:t?.agent.runtimes.map(e=>e.name).join(`, `)||`default`},void 0,!1,{fileName:Rk,lineNumber:40,columnNumber:7},this),(0,T.jsxDEV)(`td`,{children:r??t?.trialCount??`—`},void 0,!1,{fileName:Rk,lineNumber:44,columnNumber:7},this),(0,T.jsxDEV)(`td`,{children:s?(0,T.jsxDEV)(`span`,{className:`status ${s}`,children:s},void 0,!1,{fileName:Rk,lineNumber:46,columnNumber:19},this):`—`},void 0,!1,{fileName:Rk,lineNumber:45,columnNumber:7},this),(0,T.jsxDEV)(`td`,{children:i||a?(0,T.jsxDEV)(`button`,{type:`button`,disabled:a,title:a?`Matrix configuration is still loading`:void 0,onClick:e=>{e.stopPropagation(),i?.()},children:`Run eval`},void 0,!1,{fileName:Rk,lineNumber:50,columnNumber:11},this):null},void 0,!1,{fileName:Rk,lineNumber:48,columnNumber:7},this)]},void 0,!0,{fileName:Rk,lineNumber:23,columnNumber:5},this)}var Bk=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/components/ConstrainedMatrixTable.tsx`,Vk=50;function Hk({api:e,evalIds:t,catalog:n,matrix:r,runs:i,nested:a,onRun:o,onOpenEval:s}){let[c,l]=(0,b.useState)(``),[u,d]=(0,b.useState)(0),[f,p]=(0,b.useState)({key:`eval`,direction:`asc`}),[m,h]=(0,b.useState)(),[g,_]=(0,b.useState)(),v=r.dimensions??Object.keys(r.parameters),y=t.join(`,`);(0,b.useEffect)(()=>{let t=!0;return _(void 0),h(void 0),e.listMatrixCells({evalIds:y.split(`,`).filter(Boolean),query:c,offset:u*Vk,sort:f.key,direction:f.direction}).then(e=>{t&&h(e)}).catch(e=>{t&&_(e instanceof Error?e.message:`Unable to list matrix cells`)}),()=>{t=!1}},[e,y,c,u,f]);let ee=new Map(n.map(e=>[e.id,e])),te=e=>i.filter(t=>t.matrixId===r.id&&t.cellKey===e).sort((e,t)=>t.startedAt.localeCompare(e.startedAt))[0]?.status,ne=e=>{p(t=>t.key===e?{key:e,direction:t.direction===`asc`?`desc`:`asc`}:{key:e,direction:`asc`}),d(0)};return(0,T.jsxDEV)(T.Fragment,{children:[(0,T.jsxDEV)(`label`,{className:`matrix-filter`,children:[`Filter cells`,(0,T.jsxDEV)(`input`,{type:`search`,"aria-label":`Filter matrix cells`,placeholder:`Eval, parameter or agent`,value:c,onChange:e=>{l(e.target.value),d(0)}},void 0,!1,{fileName:Bk,lineNumber:87,columnNumber:9},this),(0,T.jsxDEV)(`span`,{children:[m?.total??0,` of `,m?.planned??0,` eligible cells`]},void 0,!0,{fileName:Bk,lineNumber:97,columnNumber:9},this)]},void 0,!0,{fileName:Bk,lineNumber:85,columnNumber:7},this),g?(0,T.jsxDEV)(`p`,{className:`error`,role:`alert`,children:g},void 0,!1,{fileName:Bk,lineNumber:102,columnNumber:9},this):null,(0,T.jsxDEV)(`table`,{className:a?`nested`:`data-table`,children:[(0,T.jsxDEV)(`thead`,{children:(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(mr,{label:`Eval`,sortKey:`eval`,sort:f,onSort:ne},void 0,!1,{fileName:Bk,lineNumber:109,columnNumber:13},this),v.map(e=>(0,T.jsxDEV)(mr,{label:e,sortKey:`axis:${e}`,sort:f,onSort:ne},e,!1,{fileName:Bk,lineNumber:116,columnNumber:15},this)),(0,T.jsxDEV)(mr,{label:`Agent`,sortKey:`agent`,sort:f,onSort:ne},void 0,!1,{fileName:Bk,lineNumber:124,columnNumber:13},this),(0,T.jsxDEV)(`th`,{children:`Runtime`},void 0,!1,{fileName:Bk,lineNumber:130,columnNumber:13},this),(0,T.jsxDEV)(mr,{label:`Trials`,sortKey:`trials`,sort:f,onSort:ne},void 0,!1,{fileName:Bk,lineNumber:131,columnNumber:13},this),(0,T.jsxDEV)(`th`,{children:`Latest run`},void 0,!1,{fileName:Bk,lineNumber:137,columnNumber:13},this),(0,T.jsxDEV)(`th`,{},void 0,!1,{fileName:Bk,lineNumber:138,columnNumber:13},this)]},void 0,!0,{fileName:Bk,lineNumber:108,columnNumber:11},this)},void 0,!1,{fileName:Bk,lineNumber:107,columnNumber:9},this),(0,T.jsxDEV)(`tbody`,{children:[m?.cells.map(e=>{let t=ee.get(e.evalId);return(0,T.jsxDEV)(zk,{id:e.evalId,evaluation:t,parameters:v.map(t=>e.parameters[t]===null?`None`:e.parameters[t]),trials:r.trials,status:te(e.key),onRun:t?()=>o(t.path,Object.fromEntries(v.map(t=>[t,e.parameters[t]]))):void 0,onOpen:t?()=>s(t):void 0},e.key,!1,{fileName:Bk,lineNumber:145,columnNumber:15},this)}),!m&&!g?(0,T.jsxDEV)(`tr`,{children:(0,T.jsxDEV)(`td`,{colSpan:v.length+6,children:`Loading cells…`},void 0,!1,{fileName:Bk,lineNumber:174,columnNumber:15},this)},void 0,!1,{fileName:Bk,lineNumber:173,columnNumber:13},this):null,m&&!m.cells.length?(0,T.jsxDEV)(`tr`,{children:(0,T.jsxDEV)(`td`,{colSpan:v.length+6,children:`No matching cells.`},void 0,!1,{fileName:Bk,lineNumber:179,columnNumber:15},this)},void 0,!1,{fileName:Bk,lineNumber:178,columnNumber:13},this):null]},void 0,!0,{fileName:Bk,lineNumber:141,columnNumber:9},this)]},void 0,!0,{fileName:Bk,lineNumber:106,columnNumber:7},this),m&&m.total>Vk?(0,T.jsxDEV)(`nav`,{className:`matrix-pages`,"aria-label":`Matrix cells pages`,children:[(0,T.jsxDEV)(`span`,{children:[`Cells `,u*Vk+1,`–`,Math.min((u+1)*Vk,m.total),` of `,m.total]},void 0,!0,{fileName:Bk,lineNumber:186,columnNumber:11},this),(0,T.jsxDEV)(`button`,{disabled:u===0,onClick:()=>d(u-1),children:`Previous`},void 0,!1,{fileName:Bk,lineNumber:190,columnNumber:11},this),(0,T.jsxDEV)(`button`,{disabled:(u+1)*Vk>=m.total,onClick:()=>d(u+1),children:`Next`},void 0,!1,{fileName:Bk,lineNumber:193,columnNumber:11},this)]},void 0,!0,{fileName:Bk,lineNumber:185,columnNumber:9},this):null]},void 0,!0,{fileName:Bk,lineNumber:84,columnNumber:5},this)}var Uk=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/components/MatrixEvalTable.tsx`,Wk=50;function Gk(e,t,n,r){let i=t.reduce((e,[,t])=>e*t.length,1),a=e.length*i;if(!Number.isSafeInteger(a))throw Error(`Matrix exceeds safe cell count`);let o=[];for(let s=n;s<Math.min(n+r,a);s++){let n=e[Math.floor(s/i)],r=s%i,a={},c=Array(t.length);for(let e=t.length-1;e>=0;e--){let[n,i]=t[e],o=i[r%i.length];a[n]=o,c[e]=o,r=Math.floor(r/i.length)}o.push({id:n,parameters:a,values:c})}return{rows:o,total:a}}function Kk(e,t,n){return JSON.stringify([e,t.map(([e])=>n[e])])}function qk(e){return typeof e==`string`?e:JSON.stringify(e)??String(e)}function Jk(e,t,n){let r=t.trim().toLowerCase().split(/\s+/).filter(Boolean);return r.length?e.filter(e=>{let t=n(e).map(qk).join(` `).toLowerCase();return r.every(e=>t.includes(e))}):[...e]}function Yk(e){let t=e.matrix?e.evalIds.length*Object.values(e.matrix.parameters).reduce((e,t)=>e*t.length,1):0;return e.matrix&&(e.matrix.constrained||t>1e3)?(0,T.jsxDEV)(Hk,{...e,matrix:e.matrix},void 0,!1,{fileName:Uk,lineNumber:101,columnNumber:12},this):(0,T.jsxDEV)(Xk,{...e},void 0,!1,{fileName:Uk,lineNumber:102,columnNumber:10},this)}function Xk({evalIds:e,catalog:t,matrix:n,runs:r,nested:i=!1,onRun:a,onOpenEval:o}){let[s,c]=(0,b.useState)(0),[l,u]=(0,b.useState)(``),[d,f]=(0,b.useState)({key:`eval`,direction:`asc`}),p=n?Object.entries(n.parameters):[],m=new Map(t.map(e=>[e.id,e])),h=new Map;for(let e of r){if(n&&(e.matrixId!==n.id||!e.parameters))continue;let t=n?Kk(e.evalId,p,e.parameters):e.evalId,r=h.get(t);(!r||r.startedAt<=e.startedAt)&&h.set(t,e)}let g=e=>m.get(e.id),_=e=>h.get(n?Kk(e.id,p,e.parameters):e.id)?.status,{total:v}=Gk(e,p,0,0),y=hr(Jk(Gk(e,p,0,v).rows,l,e=>{let t=g(e);return[t?.name??e.id,e.id,t?.path??e.id,...e.values,$n(t),t?.agent.runtimes.map(e=>e.name).join(`, `)??`default`,_(e)??`not run`]}),d,(e,t)=>{let r=g(e);return t.startsWith(`axis:`)?qk(e.parameters[t.slice(5)]):t===`eval`?r?.name??e.id:t===`agent`?$n(r):t===`runtime`?r?.agent.runtimes.map(e=>e.name).join(`, `)??`default`:t===`trials`?n?.trials??r?.trialCount??0:t===`status`?_(e)??`not run`:``}),ee=Math.max(1,Math.ceil(y.length/Wk)),te=Math.min(s,ee-1),ne=y.slice(te*Wk,(te+1)*Wk),re=e=>{f(t=>t.key===e?{key:e,direction:t.direction===`asc`?`desc`:`asc`}:{key:e,direction:`asc`}),c(0)};return(0,T.jsxDEV)(T.Fragment,{children:[(0,T.jsxDEV)(`label`,{className:`matrix-filter`,children:[`Filter cells`,(0,T.jsxDEV)(`input`,{type:`search`,"aria-label":`Filter matrix cells`,placeholder:`Eval, parameter, agent or status`,value:l,onChange:e=>{u(e.target.value),c(0)}},void 0,!1,{fileName:Uk,lineNumber:194,columnNumber:9},this),(0,T.jsxDEV)(`span`,{children:[y.length,` of `,v,` cells`]},void 0,!0,{fileName:Uk,lineNumber:204,columnNumber:9},this)]},void 0,!0,{fileName:Uk,lineNumber:192,columnNumber:7},this),(0,T.jsxDEV)(`table`,{className:i?`nested`:`data-table`,children:[(0,T.jsxDEV)(`thead`,{children:(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(mr,{label:`Eval`,sortKey:`eval`,sort:d,onSort:re},void 0,!1,{fileName:Uk,lineNumber:211,columnNumber:13},this),p.map(([e])=>(0,T.jsxDEV)(mr,{label:e,sortKey:`axis:${e}`,sort:d,onSort:re},e,!1,{fileName:Uk,lineNumber:218,columnNumber:15},this)),(0,T.jsxDEV)(mr,{label:`Agent`,sortKey:`agent`,sort:d,onSort:re},void 0,!1,{fileName:Uk,lineNumber:226,columnNumber:13},this),(0,T.jsxDEV)(mr,{label:`Runtime`,sortKey:`runtime`,sort:d,onSort:re},void 0,!1,{fileName:Uk,lineNumber:232,columnNumber:13},this),(0,T.jsxDEV)(mr,{label:`Trials`,sortKey:`trials`,sort:d,onSort:re},void 0,!1,{fileName:Uk,lineNumber:238,columnNumber:13},this),(0,T.jsxDEV)(mr,{label:`Latest run`,sortKey:`status`,sort:d,onSort:re},void 0,!1,{fileName:Uk,lineNumber:244,columnNumber:13},this),(0,T.jsxDEV)(`th`,{},void 0,!1,{fileName:Uk,lineNumber:250,columnNumber:13},this)]},void 0,!0,{fileName:Uk,lineNumber:210,columnNumber:11},this)},void 0,!1,{fileName:Uk,lineNumber:209,columnNumber:9},this),(0,T.jsxDEV)(`tbody`,{children:ne.length?ne.map(e=>{let t=g(e);return(0,T.jsxDEV)(zk,{id:e.id,evaluation:t,parameters:e.values,trials:n?.trials,status:_(e),onRun:t&&n!==void 0?()=>a(t.path,n?e.parameters:void 0):void 0,runDisabled:!!t&&n===void 0,onOpen:t?()=>o(t):void 0},Kk(e.id,p,e.parameters),!1,{fileName:Uk,lineNumber:258,columnNumber:17},this)}):(0,T.jsxDEV)(`tr`,{children:(0,T.jsxDEV)(`td`,{colSpan:p.length+6,children:`No matching cells.`},void 0,!1,{fileName:Uk,lineNumber:281,columnNumber:15},this)},void 0,!1,{fileName:Uk,lineNumber:280,columnNumber:13},this)},void 0,!1,{fileName:Uk,lineNumber:253,columnNumber:9},this)]},void 0,!0,{fileName:Uk,lineNumber:208,columnNumber:7},this),y.length>Wk?(0,T.jsxDEV)(`nav`,{className:`matrix-pages`,"aria-label":`Matrix cells pages`,children:[(0,T.jsxDEV)(`span`,{children:[`Cells `,te*Wk+1,`–`,Math.min((te+1)*Wk,y.length),` of`,` `,y.length]},void 0,!0,{fileName:Uk,lineNumber:288,columnNumber:11},this),(0,T.jsxDEV)(`button`,{disabled:te===0,onClick:()=>c(te-1),children:`Previous`},void 0,!1,{fileName:Uk,lineNumber:293,columnNumber:11},this),(0,T.jsxDEV)(`button`,{disabled:te===ee-1,onClick:()=>c(te+1),children:`Next`},void 0,!1,{fileName:Uk,lineNumber:299,columnNumber:11},this)]},void 0,!0,{fileName:Uk,lineNumber:287,columnNumber:9},this):null]},void 0,!0,{fileName:Uk,lineNumber:191,columnNumber:5},this)}var Zk=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/components/SuiteRow.tsx`;function Qk({suite:e,expanded:t,onToggle:n,onRun:r}){return(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`td`,{className:`identity-cell`,children:(0,T.jsxDEV)(`button`,{type:`button`,className:`table-link mono`,"aria-expanded":t,onClick:n,children:e.name??e.id??`Unnamed suite`},void 0,!1,{fileName:Zk,lineNumber:16,columnNumber:9},this)},void 0,!1,{fileName:Zk,lineNumber:15,columnNumber:7},this),(0,T.jsxDEV)(`td`,{children:e.evalIds.length},void 0,!1,{fileName:Zk,lineNumber:25,columnNumber:7},this),(0,T.jsxDEV)(`td`,{children:t?`expanded`:`configured`},void 0,!1,{fileName:Zk,lineNumber:26,columnNumber:7},this),(0,T.jsxDEV)(`td`,{children:(0,T.jsxDEV)(`button`,{type:`button`,disabled:!r,title:r?void 0:`Run matrix cells individually from their rows`,onClick:e=>{e.stopPropagation(),r?.()},children:`Run suite`},void 0,!1,{fileName:Zk,lineNumber:28,columnNumber:9},this)},void 0,!1,{fileName:Zk,lineNumber:27,columnNumber:7},this)]},void 0,!0,{fileName:Zk,lineNumber:14,columnNumber:5},this)}var $k=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/components/SuiteTable.tsx`;function eA({api:e,suites:t,catalog:n,matrix:r,runs:i=[],selectedSuiteId:a,onOpenSuite:o,onOpenEval:s}){let[c,l]=(0,b.useState)(),[u,d]=(0,b.useState)(),f=(t,n)=>{d(void 0),e.runEval(t,n).catch(e=>d(e instanceof Error?e.message:`Unable to start eval`))},p=a??c,m=n.filter(e=>!e.suiteId&&!t.some(t=>t.evalIds.includes(e.id)));return!t.length&&!m.length?(0,T.jsxDEV)(ir,{message:`No evals or suites are loaded.`},void 0,!1,{fileName:$k,lineNumber:51,columnNumber:12},this):(0,T.jsxDEV)(T.Fragment,{children:[r?(0,T.jsxDEV)(`p`,{children:`Each row is one configured matrix cell. Run one row at a time; use the CLI dry-run for larger selections.`},void 0,!1,{fileName:$k,lineNumber:55,columnNumber:9},this):null,u?(0,T.jsxDEV)(`p`,{className:`error`,role:`alert`,children:u},void 0,!1,{fileName:$k,lineNumber:61,columnNumber:9},this):null,t.length>0?(0,T.jsxDEV)(`div`,{className:`table-wrap`,children:(0,T.jsxDEV)(`table`,{children:[(0,T.jsxDEV)(`thead`,{children:(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`th`,{children:`Suite`},void 0,!1,{fileName:$k,lineNumber:70,columnNumber:17},this),(0,T.jsxDEV)(`th`,{children:`Evals`},void 0,!1,{fileName:$k,lineNumber:71,columnNumber:17},this),(0,T.jsxDEV)(`th`,{children:`Status`},void 0,!1,{fileName:$k,lineNumber:72,columnNumber:17},this),(0,T.jsxDEV)(`th`,{},void 0,!1,{fileName:$k,lineNumber:73,columnNumber:17},this)]},void 0,!0,{fileName:$k,lineNumber:69,columnNumber:15},this)},void 0,!1,{fileName:$k,lineNumber:68,columnNumber:13},this),(0,T.jsxDEV)(`tbody`,{children:t.map(t=>(0,T.jsxDEV)(b.Fragment,{children:[(0,T.jsxDEV)(Qk,{suite:t,expanded:p===t.id,onToggle:()=>{l(p===t.id?void 0:t.id),o(t.id)},onRun:r===null?()=>void e.runSuite(t.id).catch(e=>d(e instanceof Error?e.message:`Unable to start suite`)):void 0},void 0,!1,{fileName:$k,lineNumber:79,columnNumber:19},this),p===t.id?(0,T.jsxDEV)(`tr`,{children:(0,T.jsxDEV)(`td`,{colSpan:4,children:(0,T.jsxDEV)(Yk,{api:e,evalIds:t.evalIds,catalog:n,matrix:r,runs:i,nested:!0,onRun:f,onOpenEval:s},void 0,!1,{fileName:$k,lineNumber:106,columnNumber:25},this)},void 0,!1,{fileName:$k,lineNumber:105,columnNumber:23},this)},`${t.id}-evals`,!1,{fileName:$k,lineNumber:104,columnNumber:21},this):null]},t.id,!0,{fileName:$k,lineNumber:78,columnNumber:17},this))},void 0,!1,{fileName:$k,lineNumber:76,columnNumber:13},this)]},void 0,!0,{fileName:$k,lineNumber:67,columnNumber:11},this)},void 0,!1,{fileName:$k,lineNumber:66,columnNumber:9},this):null,m.length>0?(0,T.jsxDEV)(`section`,{"aria-label":`Standalone evals`,children:[(0,T.jsxDEV)(`h2`,{children:`Standalone evals`},void 0,!1,{fileName:$k,lineNumber:127,columnNumber:11},this),(0,T.jsxDEV)(`div`,{className:`table-wrap`,children:(0,T.jsxDEV)(Yk,{api:e,evalIds:m.map(e=>e.id),catalog:n,matrix:r,runs:i,onRun:f,onOpenEval:s},void 0,!1,{fileName:$k,lineNumber:129,columnNumber:13},this)},void 0,!1,{fileName:$k,lineNumber:128,columnNumber:11},this)]},void 0,!0,{fileName:$k,lineNumber:126,columnNumber:9},this):null]},void 0,!0,{fileName:$k,lineNumber:53,columnNumber:5},this)}var tA=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/components/ArtifactRow.tsx`;function nA({artifact:e}){return(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`td`,{className:`mono`,children:e.path},void 0,!1,{fileName:tA,lineNumber:8,columnNumber:7},this),(0,T.jsxDEV)(`td`,{children:e.kind},void 0,!1,{fileName:tA,lineNumber:9,columnNumber:7},this),(0,T.jsxDEV)(`td`,{children:e.size===void 0?`—`:`${e.size} bytes`},void 0,!1,{fileName:tA,lineNumber:10,columnNumber:7},this)]},void 0,!0,{fileName:tA,lineNumber:7,columnNumber:5},this)}function rA(e){return e.kind===`message`&&e.role===`user`?`User message`:e.kind===`message`&&e.role===`assistant`?`Assistant message`:e.kind.includes(`scorer`)?`Scorer · ${e.kind.replace(`scorer-`,``)}`:e.kind.includes(`tool`)?`Tool · ${e.kind.replace(`tool-`,``)}`:e.kind.replaceAll(`-`,` `)}var iA=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/components/EventCard.tsx`;function aA({event:e,index:t}){let n=Object.entries(e).filter(([e])=>![`source`,`kind`,`timestamp`,`content`,`error`].includes(e));return(0,T.jsxDEV)(`article`,{className:`card`,children:[(0,T.jsxDEV)(`small`,{children:[`#`,t+1,` · `,new Date(e.timestamp).toLocaleTimeString(),` ·`,` `,e.source]},void 0,!0,{fileName:iA,lineNumber:16,columnNumber:7},this),(0,T.jsxDEV)(`h2`,{children:rA(e)},void 0,!1,{fileName:iA,lineNumber:20,columnNumber:7},this),`content`in e?(0,T.jsxDEV)(`pre`,{children:typeof e.content==`string`?e.content:JSON.stringify(e.content,null,2)},void 0,!1,{fileName:iA,lineNumber:22,columnNumber:9},this):null,`error`in e?(0,T.jsxDEV)(`pre`,{children:JSON.stringify(e.error,null,2)},void 0,!1,{fileName:iA,lineNumber:29,columnNumber:9},this):null,n.length?(0,T.jsxDEV)(`table`,{className:`event-fields`,children:(0,T.jsxDEV)(`tbody`,{children:n.map(([e,t])=>(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`td`,{children:e},void 0,!1,{fileName:iA,lineNumber:36,columnNumber:17},this),(0,T.jsxDEV)(`td`,{children:typeof t==`string`?t:JSON.stringify(t,null,2)},void 0,!1,{fileName:iA,lineNumber:37,columnNumber:17},this)]},e,!0,{fileName:iA,lineNumber:35,columnNumber:15},this))},void 0,!1,{fileName:iA,lineNumber:33,columnNumber:11},this)},void 0,!1,{fileName:iA,lineNumber:32,columnNumber:9},this):null]},void 0,!0,{fileName:iA,lineNumber:15,columnNumber:5},this)}var $=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/components/TrialDetail.tsx`;function oA({api:e,selected:t,evalName:n,onWorkspace:r}){let[i,a]=(0,b.useState)([]),[o,s]=(0,b.useState)(),[c,l]=(0,b.useState)(),[u,d]=(0,b.useState)([]);return(0,b.useEffect)(()=>{if(!t)return;let n=!0;return s(void 0),a([]),l(void 0),d([]),Promise.all([e.getTrialEvents(t.run.id,t.trial.id),e.getTrial(t.run.id,t.trial.id),e.listArtifacts(t.run.id,t.trial.id)]).then(([e,t,r])=>{n&&(a(e),l(t),d(r))}).catch(e=>{n&&s(e instanceof Error?e.message:`Unable to load trial details`)}),()=>{n=!1}},[e,t]),t?(0,T.jsxDEV)(`section`,{className:`trial-inspector`,children:[(0,T.jsxDEV)(`aside`,{className:`trial-overview`,children:[(0,T.jsxDEV)(`p`,{className:`mono`,children:[`trial / `,t.trial.id]},void 0,!0,{fileName:$,lineNumber:62,columnNumber:9},this),(0,T.jsxDEV)(`h2`,{children:`Trial overview`},void 0,!1,{fileName:$,lineNumber:63,columnNumber:9},this),(0,T.jsxDEV)(`dl`,{className:`metadata-list`,children:[(0,T.jsxDEV)(`dt`,{children:`run`},void 0,!1,{fileName:$,lineNumber:65,columnNumber:11},this),(0,T.jsxDEV)(`dd`,{children:t.run.id},void 0,!1,{fileName:$,lineNumber:66,columnNumber:11},this),(0,T.jsxDEV)(`dt`,{children:`eval`},void 0,!1,{fileName:$,lineNumber:67,columnNumber:11},this),(0,T.jsxDEV)(`dd`,{children:n??`Unnamed eval`},void 0,!1,{fileName:$,lineNumber:68,columnNumber:11},this),(0,T.jsxDEV)(`dt`,{children:`trial number`},void 0,!1,{fileName:$,lineNumber:69,columnNumber:11},this),(0,T.jsxDEV)(`dd`,{children:t.trial.index+1},void 0,!1,{fileName:$,lineNumber:70,columnNumber:11},this),(0,T.jsxDEV)(`dt`,{children:`status`},void 0,!1,{fileName:$,lineNumber:71,columnNumber:11},this),(0,T.jsxDEV)(`dd`,{children:t.trial.status},void 0,!1,{fileName:$,lineNumber:72,columnNumber:11},this),(0,T.jsxDEV)(`dt`,{children:`aggregate score`},void 0,!1,{fileName:$,lineNumber:73,columnNumber:11},this),(0,T.jsxDEV)(`dd`,{children:t.trial.score??`—`},void 0,!1,{fileName:$,lineNumber:74,columnNumber:11},this),(0,T.jsxDEV)(`dt`,{children:`runtime`},void 0,!1,{fileName:$,lineNumber:75,columnNumber:11},this),(0,T.jsxDEV)(`dd`,{children:t.trial.durationMs===void 0?`—`:`${t.trial.durationMs}ms`},void 0,!1,{fileName:$,lineNumber:76,columnNumber:11},this),(0,T.jsxDEV)(`dt`,{children:`events`},void 0,!1,{fileName:$,lineNumber:81,columnNumber:11},this),(0,T.jsxDEV)(`dd`,{children:i.length},void 0,!1,{fileName:$,lineNumber:82,columnNumber:11},this)]},void 0,!0,{fileName:$,lineNumber:64,columnNumber:9},this),(0,T.jsxDEV)(`button`,{type:`button`,onClick:r,children:`Open candidate workspace →`},void 0,!1,{fileName:$,lineNumber:84,columnNumber:9},this),t.trial.checkpoints?.length?(0,T.jsxDEV)(T.Fragment,{children:[(0,T.jsxDEV)(`h3`,{children:`Checkpoints`},void 0,!1,{fileName:$,lineNumber:89,columnNumber:13},this),(0,T.jsxDEV)(`table`,{className:`compact-table`,children:[(0,T.jsxDEV)(`thead`,{children:(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`th`,{children:`Step`},void 0,!1,{fileName:$,lineNumber:93,columnNumber:19},this),(0,T.jsxDEV)(`th`,{children:`Rule`},void 0,!1,{fileName:$,lineNumber:94,columnNumber:19},this),(0,T.jsxDEV)(`th`,{children:`Value`},void 0,!1,{fileName:$,lineNumber:95,columnNumber:19},this),(0,T.jsxDEV)(`th`,{children:`Result`},void 0,!1,{fileName:$,lineNumber:96,columnNumber:19},this)]},void 0,!0,{fileName:$,lineNumber:92,columnNumber:17},this)},void 0,!1,{fileName:$,lineNumber:91,columnNumber:15},this),(0,T.jsxDEV)(`tbody`,{children:t.trial.checkpoints.map(e=>(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`td`,{children:e.step+1},void 0,!1,{fileName:$,lineNumber:102,columnNumber:21},this),(0,T.jsxDEV)(`td`,{children:[e.kind,`: `,e.name,e.matchedToolCall?` (event ${e.matchedToolCall.eventIndex+1})`:``]},void 0,!0,{fileName:$,lineNumber:103,columnNumber:21},this),(0,T.jsxDEV)(`td`,{children:e.value??`—`},void 0,!1,{fileName:$,lineNumber:109,columnNumber:21},this),(0,T.jsxDEV)(`td`,{children:[e.status,e.error?`: ${e.error.message}`:``]},void 0,!0,{fileName:$,lineNumber:110,columnNumber:21},this)]},`${e.step}-${e.name}`,!0,{fileName:$,lineNumber:101,columnNumber:19},this))},void 0,!1,{fileName:$,lineNumber:99,columnNumber:15},this)]},void 0,!0,{fileName:$,lineNumber:90,columnNumber:13},this)]},void 0,!0,{fileName:$,lineNumber:88,columnNumber:11},this):null,t.trial.skippedScorers?.length?(0,T.jsxDEV)(`p`,{children:[`Skipped final scorers: `,t.trial.skippedScorers.join(`, `)]},void 0,!0,{fileName:$,lineNumber:121,columnNumber:11},this):null,(0,T.jsxDEV)(`h3`,{children:`Final scoring`},void 0,!1,{fileName:$,lineNumber:125,columnNumber:9},this),(0,T.jsxDEV)(`table`,{className:`compact-table`,children:[(0,T.jsxDEV)(`thead`,{children:(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`th`,{children:`Scorer`},void 0,!1,{fileName:$,lineNumber:129,columnNumber:15},this),(0,T.jsxDEV)(`th`,{children:`Value`},void 0,!1,{fileName:$,lineNumber:130,columnNumber:15},this),(0,T.jsxDEV)(`th`,{children:`Result`},void 0,!1,{fileName:$,lineNumber:131,columnNumber:15},this)]},void 0,!0,{fileName:$,lineNumber:128,columnNumber:13},this)},void 0,!1,{fileName:$,lineNumber:127,columnNumber:11},this),(0,T.jsxDEV)(`tbody`,{children:t.trial.scores.map(e=>(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`td`,{children:[e.kind?`${e.kind}: `:``,e.name]},void 0,!0,{fileName:$,lineNumber:137,columnNumber:17},this),(0,T.jsxDEV)(`td`,{children:e.value??`—`},void 0,!1,{fileName:$,lineNumber:141,columnNumber:17},this),(0,T.jsxDEV)(`td`,{children:e.error?`error: ${e.error.message}`:e.passed===!0?`passed`:e.passed===!1?`failed`:`not scored`},void 0,!1,{fileName:$,lineNumber:142,columnNumber:17},this)]},e.name,!0,{fileName:$,lineNumber:136,columnNumber:15},this))},void 0,!1,{fileName:$,lineNumber:134,columnNumber:11},this)]},void 0,!0,{fileName:$,lineNumber:126,columnNumber:9},this),u.length?(0,T.jsxDEV)(T.Fragment,{children:[(0,T.jsxDEV)(`h3`,{children:`Artifacts`},void 0,!1,{fileName:$,lineNumber:157,columnNumber:13},this),(0,T.jsxDEV)(`table`,{className:`compact-table`,children:[(0,T.jsxDEV)(`thead`,{children:(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`th`,{children:`Path`},void 0,!1,{fileName:$,lineNumber:161,columnNumber:19},this),(0,T.jsxDEV)(`th`,{children:`Kind`},void 0,!1,{fileName:$,lineNumber:162,columnNumber:19},this),(0,T.jsxDEV)(`th`,{children:`Size`},void 0,!1,{fileName:$,lineNumber:163,columnNumber:19},this)]},void 0,!0,{fileName:$,lineNumber:160,columnNumber:17},this)},void 0,!1,{fileName:$,lineNumber:159,columnNumber:15},this),(0,T.jsxDEV)(`tbody`,{children:u.map(e=>(0,T.jsxDEV)(nA,{artifact:e},e.path,!1,{fileName:$,lineNumber:168,columnNumber:19},this))},void 0,!1,{fileName:$,lineNumber:166,columnNumber:15},this)]},void 0,!0,{fileName:$,lineNumber:158,columnNumber:13},this)]},void 0,!0,{fileName:$,lineNumber:156,columnNumber:11},this):null,c?(0,T.jsxDEV)(`details`,{className:`raw-details`,children:[(0,T.jsxDEV)(`summary`,{children:`Raw trial summary`},void 0,!1,{fileName:$,lineNumber:176,columnNumber:13},this),(0,T.jsxDEV)(`pre`,{children:JSON.stringify(c.summary,null,2)},void 0,!1,{fileName:$,lineNumber:177,columnNumber:13},this)]},void 0,!0,{fileName:$,lineNumber:175,columnNumber:11},this):null]},void 0,!0,{fileName:$,lineNumber:61,columnNumber:7},this),(0,T.jsxDEV)(`section`,{className:`timeline`,children:[o?(0,T.jsxDEV)(`p`,{className:`error`,role:`alert`,children:[`Unable to load trial details: `,o]},void 0,!0,{fileName:$,lineNumber:183,columnNumber:11},this):null,(0,T.jsxDEV)(`div`,{className:`timeline-heading`,children:[(0,T.jsxDEV)(`h2`,{children:`Event timeline`},void 0,!1,{fileName:$,lineNumber:188,columnNumber:11},this),(0,T.jsxDEV)(`span`,{className:`mono`,children:[i.length,` events`]},void 0,!0,{fileName:$,lineNumber:189,columnNumber:11},this)]},void 0,!0,{fileName:$,lineNumber:187,columnNumber:9},this),i.map((e,t)=>(0,T.jsxDEV)(aA,{event:e,index:t},`${e.timestamp}-${t}`,!1,{fileName:$,lineNumber:192,columnNumber:11},this))]},void 0,!0,{fileName:$,lineNumber:181,columnNumber:7},this)]},void 0,!0,{fileName:$,lineNumber:60,columnNumber:5},this):(0,T.jsxDEV)(ir,{message:`Select a trial from a run to inspect it.`},void 0,!1,{fileName:$,lineNumber:58,columnNumber:12},this)}var sA=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/components/WorkspaceDetail.tsx`;function cA({api:e,selected:t}){let[n,r]=(0,b.useState)([]);return(0,b.useEffect)(()=>{t&&e.listWorkspace(t.run.id,t.trial.id).then(r)},[e,t]),t?(0,T.jsxDEV)(`section`,{className:`workspace-inspector`,children:[(0,T.jsxDEV)(`p`,{className:`mono`,children:[`candidate workspace / `,t.trial.id]},void 0,!0,{fileName:sA,lineNumber:25,columnNumber:7},this),(0,T.jsxDEV)(`table`,{children:[(0,T.jsxDEV)(`thead`,{children:(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`th`,{children:`Path`},void 0,!1,{fileName:sA,lineNumber:29,columnNumber:13},this),(0,T.jsxDEV)(`th`,{children:`Kind`},void 0,!1,{fileName:sA,lineNumber:30,columnNumber:13},this),(0,T.jsxDEV)(`th`,{children:`Size`},void 0,!1,{fileName:sA,lineNumber:31,columnNumber:13},this)]},void 0,!0,{fileName:sA,lineNumber:28,columnNumber:11},this)},void 0,!1,{fileName:sA,lineNumber:27,columnNumber:9},this),(0,T.jsxDEV)(`tbody`,{children:n.map(e=>(0,T.jsxDEV)(`tr`,{children:[(0,T.jsxDEV)(`td`,{className:`mono`,children:e.path},void 0,!1,{fileName:sA,lineNumber:37,columnNumber:15},this),(0,T.jsxDEV)(`td`,{children:e.kind},void 0,!1,{fileName:sA,lineNumber:38,columnNumber:15},this),(0,T.jsxDEV)(`td`,{children:e.size??`—`},void 0,!1,{fileName:sA,lineNumber:39,columnNumber:15},this)]},e.path,!0,{fileName:sA,lineNumber:36,columnNumber:13},this))},void 0,!1,{fileName:sA,lineNumber:34,columnNumber:9},this)]},void 0,!0,{fileName:sA,lineNumber:26,columnNumber:7},this)]},void 0,!0,{fileName:sA,lineNumber:24,columnNumber:5},this):(0,T.jsxDEV)(ir,{message:`Select a trial to inspect its workspace.`},void 0,!1,{fileName:sA,lineNumber:22,columnNumber:12},this)}var lA=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/DashboardRoutes.tsx`;function uA({api:e,catalog:t,suites:n,matrix:r,runs:i,selected:a,onTrial:o}){let s=Et();return(0,T.jsxDEV)(Qt,{children:[(0,T.jsxDEV)(Xt,{path:`/suites`,element:(0,T.jsxDEV)(eA,{api:e,suites:n,catalog:t,matrix:r,runs:i,onOpenSuite:e=>s(`/suites/${encodeURIComponent(e)}`),onOpenEval:e=>s(`/evals/${encodeURIComponent(e.path)}`)},void 0,!1,{fileName:lA,lineNumber:49,columnNumber:11},this)},void 0,!1,{fileName:lA,lineNumber:46,columnNumber:7},this),(0,T.jsxDEV)(Xt,{path:`/suites/:suiteId`,element:(0,T.jsxDEV)(dA,{api:e,suites:n,catalog:t,matrix:r,runs:i},void 0,!1,{fileName:lA,lineNumber:65,columnNumber:11},this)},void 0,!1,{fileName:lA,lineNumber:62,columnNumber:7},this),(0,T.jsxDEV)(Xt,{path:`/evals/*`,element:(0,T.jsxDEV)(fA,{catalog:t},void 0,!1,{fileName:lA,lineNumber:74,columnNumber:39},this)},void 0,!1,{fileName:lA,lineNumber:74,columnNumber:7},this),(0,T.jsxDEV)(Xt,{path:`/agents`,element:(0,T.jsxDEV)(or,{catalog:t},void 0,!1,{fileName:lA,lineNumber:75,columnNumber:38},this)},void 0,!1,{fileName:lA,lineNumber:75,columnNumber:7},this),(0,T.jsxDEV)(Xt,{path:`/fixtures`,element:(0,T.jsxDEV)(fr,{catalog:t},void 0,!1,{fileName:lA,lineNumber:76,columnNumber:40},this)},void 0,!1,{fileName:lA,lineNumber:76,columnNumber:7},this),(0,T.jsxDEV)(Xt,{path:`/runs`,element:(0,T.jsxDEV)(pA,{api:e,catalog:t,suites:n,runs:i,onTrial:o},void 0,!1,{fileName:lA,lineNumber:80,columnNumber:11},this)},void 0,!1,{fileName:lA,lineNumber:77,columnNumber:7},this),(0,T.jsxDEV)(Xt,{path:`/runs/:runUuid`,element:(0,T.jsxDEV)(pA,{api:e,catalog:t,suites:n,runs:i,onTrial:o},void 0,!1,{fileName:lA,lineNumber:92,columnNumber:11},this)},void 0,!1,{fileName:lA,lineNumber:89,columnNumber:7},this),(0,T.jsxDEV)(Xt,{path:`/trials/:trialUuid`,element:(0,T.jsxDEV)(mA,{api:e,catalog:t,selected:a},void 0,!1,{fileName:lA,lineNumber:104,columnNumber:11},this)},void 0,!1,{fileName:lA,lineNumber:101,columnNumber:7},this),(0,T.jsxDEV)(Xt,{path:`/workspaces/:trialUuid`,element:(0,T.jsxDEV)(cA,{api:e,selected:a},void 0,!1,{fileName:lA,lineNumber:109,columnNumber:18},this)},void 0,!1,{fileName:lA,lineNumber:107,columnNumber:7},this),(0,T.jsxDEV)(Xt,{path:`*`,element:(0,T.jsxDEV)(eA,{api:e,suites:n,catalog:t,matrix:r,runs:i,onOpenSuite:e=>s(`/suites/${encodeURIComponent(e)}`),onOpenEval:e=>s(`/evals/${encodeURIComponent(e.path)}`)},void 0,!1,{fileName:lA,lineNumber:114,columnNumber:11},this)},void 0,!1,{fileName:lA,lineNumber:111,columnNumber:7},this)]},void 0,!0,{fileName:lA,lineNumber:45,columnNumber:5},this)}function dA(e){let{suiteId:t}=Ot(),n=Et();return(0,T.jsxDEV)(eA,{...e,selectedSuiteId:t,onOpenSuite:()=>void 0,onOpenEval:e=>n(`/evals/${encodeURIComponent(e.path)}`)},void 0,!1,{fileName:lA,lineNumber:141,columnNumber:5},this)}function fA({catalog:e}){let t=Ct();return(0,T.jsxDEV)(cr,{catalog:e,path:decodeURIComponent(t.pathname.slice(7))},void 0,!1,{fileName:lA,lineNumber:154,columnNumber:5},this)}function pA(e){let t=Et(),{runUuid:n}=Ot(),[r,i]=Kn();return(0,T.jsxDEV)(Lk,{...e,search:r,onSearchChange:e=>i(e,{replace:!0}),selectedRunId:n,onTrial:(n,i)=>{e.onTrial(n,i);let a=new URLSearchParams(r);a.set(`trial`,i.id),a.delete(`view`),t({pathname:`/runs/${encodeURIComponent(n.id)}`,search:a.toString()})},onOpenRun:e=>t({pathname:`/runs/${encodeURIComponent(e.id)}`,search:r.toString()})},void 0,!1,{fileName:lA,lineNumber:171,columnNumber:5},this)}function mA({api:e,catalog:t,selected:n}){let r=Et();return(0,T.jsxDEV)(oA,{api:e,evalName:t.find(e=>e.id===n?.run.evalId)?.name??n?.run.evalId,selected:n,onWorkspace:()=>n&&r(`/workspaces/${encodeURIComponent(n.trial.id)}`)},void 0,!1,{fileName:lA,lineNumber:206,columnNumber:5},this)}var hA=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/components/TrialPanel.tsx`;function gA({api:e,catalog:t,suites:n,selected:r,trialId:i,error:a,workspace:o,onClose:s,onWorkspace:c,onTrialView:l}){let u=(0,b.useRef)(null),d=Ct();(0,b.useEffect)(()=>{let e=u.current;return e&&!e.open&&e.showModal(),()=>{e?.open&&e.close()}},[]);let f=t.find(e=>e.id===r?.run.evalId),p=n.find(e=>e.id===r?.run.suiteId),m=new URLSearchParams(d.search);m.delete(`trial`),m.delete(`view`);let h=`${d.pathname}${m.size?`?${m}`:``}`;return(0,T.jsxDEV)(`dialog`,{ref:u,className:`trial-panel`,"aria-label":o?`Candidate workspace`:`Trial details`,onClose:s,children:[(0,T.jsxDEV)(`div`,{className:`trial-panel-header`,children:[(0,T.jsxDEV)(`div`,{className:`trial-panel-heading`,children:[(0,T.jsxDEV)(`nav`,{"aria-label":`Trial path`,className:`trial-breadcrumbs`,children:[p?(0,T.jsxDEV)(Bn,{to:`/suites/${encodeURIComponent(p.id)}`,children:p.name??p.id},void 0,!1,{fileName:hA,lineNumber:59,columnNumber:15},this):(0,T.jsxDEV)(Bn,{to:`/runs`,children:`Runs`},void 0,!1,{fileName:hA,lineNumber:63,columnNumber:15},this),(0,T.jsxDEV)(`span`,{"aria-hidden":`true`,children:`/`},void 0,!1,{fileName:hA,lineNumber:65,columnNumber:13},this),f?(0,T.jsxDEV)(Bn,{to:`/evals/${encodeURIComponent(f.path)}`,children:f.name??f.id},void 0,!1,{fileName:hA,lineNumber:67,columnNumber:15},this):(0,T.jsxDEV)(`span`,{children:r?.run.evalId??`Eval`},void 0,!1,{fileName:hA,lineNumber:71,columnNumber:15},this),(0,T.jsxDEV)(`span`,{"aria-hidden":`true`,children:`/`},void 0,!1,{fileName:hA,lineNumber:73,columnNumber:13},this),(0,T.jsxDEV)(Bn,{to:h,children:[`Run `,r?.run.id.slice(0,8)??`…`]},void 0,!0,{fileName:hA,lineNumber:74,columnNumber:13},this),(0,T.jsxDEV)(`span`,{"aria-hidden":`true`,children:`/`},void 0,!1,{fileName:hA,lineNumber:75,columnNumber:13},this),o?(0,T.jsxDEV)(T.Fragment,{children:[(0,T.jsxDEV)(`button`,{type:`button`,onClick:l,children:[`Trial `,r?r.trial.index+1:`…`]},void 0,!0,{fileName:hA,lineNumber:78,columnNumber:17},this),(0,T.jsxDEV)(`span`,{"aria-hidden":`true`,children:`/`},void 0,!1,{fileName:hA,lineNumber:81,columnNumber:17},this),(0,T.jsxDEV)(`span`,{"aria-current":`page`,children:`Workspace`},void 0,!1,{fileName:hA,lineNumber:82,columnNumber:17},this)]},void 0,!0,{fileName:hA,lineNumber:77,columnNumber:15},this):(0,T.jsxDEV)(`span`,{"aria-current":`page`,children:[`Trial `,r?r.trial.index+1:`…`]},void 0,!0,{fileName:hA,lineNumber:85,columnNumber:15},this)]},void 0,!0,{fileName:hA,lineNumber:57,columnNumber:11},this),(0,T.jsxDEV)(`h2`,{children:o?`Candidate workspace`:`Trial ${r?r.trial.index+1:`…`}`},void 0,!1,{fileName:hA,lineNumber:90,columnNumber:11},this),(0,T.jsxDEV)(`p`,{className:`mono`,children:i},void 0,!1,{fileName:hA,lineNumber:95,columnNumber:11},this)]},void 0,!0,{fileName:hA,lineNumber:56,columnNumber:9},this),(0,T.jsxDEV)(`button`,{type:`button`,className:`trial-panel-close`,"aria-label":`Close trial panel`,title:`Close trial panel`,onClick:()=>u.current?.close(),children:(0,T.jsxDEV)(`span`,{"aria-hidden":`true`,children:`×`},void 0,!1,{fileName:hA,lineNumber:104,columnNumber:11},this)},void 0,!1,{fileName:hA,lineNumber:97,columnNumber:9},this)]},void 0,!0,{fileName:hA,lineNumber:55,columnNumber:7},this),(0,T.jsxDEV)(`div`,{className:`trial-panel-body`,children:r?o?(0,T.jsxDEV)(cA,{api:e,selected:r},void 0,!1,{fileName:hA,lineNumber:110,columnNumber:13},this):(0,T.jsxDEV)(oA,{api:e,selected:r,evalName:f?.name??r.run.evalId,onWorkspace:c},void 0,!1,{fileName:hA,lineNumber:112,columnNumber:13},this):a?(0,T.jsxDEV)(`p`,{className:`error`,role:`alert`,children:a},void 0,!1,{fileName:hA,lineNumber:120,columnNumber:11},this):(0,T.jsxDEV)(`p`,{role:`status`,children:`Loading trial…`},void 0,!1,{fileName:hA,lineNumber:124,columnNumber:11},this)},void 0,!1,{fileName:hA,lineNumber:107,columnNumber:7},this)]},void 0,!0,{fileName:hA,lineNumber:49,columnNumber:5},this)}var _A=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/App.tsx`;function vA(e){return e.startsWith(`/trials/`)?`Trial detail`:e.startsWith(`/workspaces/`)?`Candidate workspace`:e.startsWith(`/evals/`)?`Eval detail`:e.startsWith(`/agents`)?`Agents`:e.startsWith(`/fixtures`)?`Fixtures`:e.startsWith(`/runs`)||e.startsWith(`/runs/`)?`Runs`:`Suites & evals`}function yA({api:e}){return(0,T.jsxDEV)(zn,{children:(0,T.jsxDEV)(bA,{api:e},void 0,!1,{fileName:_A,lineNumber:34,columnNumber:7},this)},void 0,!1,{fileName:_A,lineNumber:33,columnNumber:5},this)}function bA({api:e}){let t=Ct(),n=Et(),r=t.pathname.startsWith(`/runs/`)?new URLSearchParams(t.search).get(`trial`):null,[i,a]=(0,b.useState)([]),[o,s]=(0,b.useState)([]),[c,l]=(0,b.useState)(),[u,d]=(0,b.useState)([]),f=(0,b.useRef)(``),[p,m]=(0,b.useState)(),[h,g]=(0,b.useState)(),[_,v]=(0,b.useState)(!0);return(0,b.useEffect)(()=>{let t=!0;return Promise.all([e.listCatalog(),e.listSuites(),e.getMatrix()]).then(([e,n,r])=>{t&&(a(e),s(n),l(r))}).catch(e=>{t&&g(e instanceof Error?e.message:`Unable to load dashboard`)}),()=>{t=!1}},[e]),(0,b.useEffect)(()=>{let t=!0,n=!1,r=async()=>{if(!n){n=!0;try{let n=await e.listRuns();if(t){let e=JSON.stringify(n);e!==f.current&&(f.current=e,d(n))}}catch(e){t&&g(e instanceof Error?e.message:`Unable to load runs`)}finally{n=!1}}};r();let i=setInterval(()=>void r(),2e3);return()=>{t=!1,clearInterval(i)}},[e,t.pathname]),(0,b.useEffect)(()=>{let n=t.pathname.match(/^\/(?:trials|workspaces)\/([^/]+)/),i=r??(n?decodeURIComponent(n[1]):void 0);if(!i||!u.length||p?.trial.id===i)return;let a=t.pathname.match(/^\/runs\/([^/]+)/)?.[1],o=a?u.filter(e=>e.id===decodeURIComponent(a)):u,s=!0;return Promise.all(o.map(async t=>({run:t,trials:await e.listTrials(t.id)}))).then(e=>{if(s){for(let t of e){let e=t.trials.find(e=>e.id===i);if(e){m({run:t.run,trial:e}),g(void 0);return}}g(`Trial ${i} was not found in this run.`)}}).catch(e=>{s&&g(e instanceof Error?e.message:`Unable to load trial`)}),()=>{s=!1}},[e,t.pathname,r,u,p]),(0,T.jsxDEV)(`main`,{className:`dashboard-shell${_?``:` navigation-collapsed`}`,children:[(0,T.jsxDEV)(`aside`,{id:`dashboard-navigation`,children:[(0,T.jsxDEV)(`div`,{className:`nav-top`,children:[(0,T.jsxDEV)(Vn,{className:`brand`,to:`/suites`,hidden:!_,children:`evalkit`},void 0,!1,{fileName:_A,lineNumber:155,columnNumber:11},this),(0,T.jsxDEV)(`button`,{type:`button`,className:`navigation-toggle`,"aria-controls":`dashboard-links`,"aria-expanded":_,"aria-label":_?`Collapse navigation`:`Expand navigation`,title:_?`Collapse navigation`:`Expand navigation`,onClick:()=>v(e=>!e),children:(0,T.jsxDEV)(`span`,{"aria-hidden":`true`,children:_?`‹`:`›`},void 0,!1,{fileName:_A,lineNumber:169,columnNumber:13},this)},void 0,!1,{fileName:_A,lineNumber:158,columnNumber:11},this)]},void 0,!0,{fileName:_A,lineNumber:154,columnNumber:9},this),(0,T.jsxDEV)(`nav`,{id:`dashboard-links`,"aria-label":`Dashboard`,hidden:!_,children:[(0,T.jsxDEV)(Vn,{className:({isActive:e})=>e?`active`:``,to:`/suites`,children:`suites & evals`},void 0,!1,{fileName:_A,lineNumber:177,columnNumber:11},this),(0,T.jsxDEV)(Vn,{className:({isActive:e})=>e?`active`:``,to:`/agents`,children:`agents`},void 0,!1,{fileName:_A,lineNumber:183,columnNumber:11},this),(0,T.jsxDEV)(Vn,{className:({isActive:e})=>e?`active`:``,to:`/fixtures`,children:`fixtures`},void 0,!1,{fileName:_A,lineNumber:189,columnNumber:11},this),(0,T.jsxDEV)(Vn,{className:({isActive:e})=>e?`active`:``,to:`/runs`,children:`runs`},void 0,!1,{fileName:_A,lineNumber:195,columnNumber:11},this)]},void 0,!0,{fileName:_A,lineNumber:172,columnNumber:9},this)]},void 0,!0,{fileName:_A,lineNumber:153,columnNumber:7},this),(0,T.jsxDEV)(`section`,{className:`content`,children:[(0,T.jsxDEV)(`header`,{children:(0,T.jsxDEV)(`h1`,{children:vA(t.pathname)},void 0,!1,{fileName:_A,lineNumber:205,columnNumber:11},this)},void 0,!1,{fileName:_A,lineNumber:204,columnNumber:9},this),h?(0,T.jsxDEV)(`p`,{className:`error`,children:h},void 0,!1,{fileName:_A,lineNumber:207,columnNumber:18},this):null,(0,T.jsxDEV)(uA,{api:e,catalog:i,suites:o,matrix:c,runs:u,selected:p,onTrial:(e,t)=>m({run:e,trial:t})},void 0,!1,{fileName:_A,lineNumber:208,columnNumber:9},this)]},void 0,!0,{fileName:_A,lineNumber:203,columnNumber:7},this),r?(0,T.jsxDEV)(gA,{api:e,catalog:i,suites:o,selected:p?.trial.id===r?p:void 0,trialId:r,error:h,workspace:new URLSearchParams(t.search).get(`view`)===`workspace`,onClose:()=>{let e=new URLSearchParams(t.search);e.delete(`trial`),e.delete(`view`),n({pathname:t.pathname,search:e.toString()},{replace:!0})},onWorkspace:()=>{let e=new URLSearchParams(t.search);e.set(`view`,`workspace`),n({pathname:t.pathname,search:e.toString()})},onTrialView:()=>{let e=new URLSearchParams(t.search);e.delete(`view`),n({pathname:t.pathname,search:e.toString()})}},void 0,!1,{fileName:_A,lineNumber:219,columnNumber:9},this):null]},void 0,!0,{fileName:_A,lineNumber:150,columnNumber:5},this)}function xA(e){let t=e.fetch??globalThis.fetch,n=async(n,r)=>{let i=await t(new URL(n,e.baseUrl),r);if(!i.ok)throw Error(await i.text()||`Dashboard request failed: ${i.status}`);return i.json()};return{async listCatalog(){return(await n(`/v1/catalog`)).evals},async listMatrixCells(t){let r=new URL(`/v1/matrix/cells`,e.baseUrl);for(let e of t.evalIds)r.searchParams.append(`eval`,e);return r.searchParams.set(`q`,t.query),r.searchParams.set(`offset`,String(t.offset)),r.searchParams.set(`sort`,t.sort),r.searchParams.set(`direction`,t.direction),n(r.pathname+r.search)},async getMatrix(){return(await n(`/v1/matrix`)).matrix},async listEvals(){return(await n(`/v1/evals`)).evals},async listSuites(){return(await n(`/v1/suites`)).suites},async listRuns(){return(await n(`/v1/runs`)).runs},async listTrials(e){return(await n(`/v1/runs/${encodeURIComponent(e)}/trials`)).trials},async getTrial(e,t){return n(`/v1/runs/${encodeURIComponent(e)}/trials/${encodeURIComponent(t)}`)},async listArtifacts(e,t){return(await n(`/v1/runs/${encodeURIComponent(e)}/trials/${encodeURIComponent(t)}/artifacts`)).artifacts},async listWorkspace(e,t){return n(`/v1/runs/${encodeURIComponent(e)}/trials/${encodeURIComponent(t)}/workspace`)},async getWorkspaceFile(n,r,i){let a=await t(new URL(`/v1/runs/${encodeURIComponent(n)}/trials/${encodeURIComponent(r)}/workspace/${i.split(`/`).map(encodeURIComponent).join(`/`)}`,e.baseUrl));if(!a.ok)throw Error(`Dashboard request failed: ${a.status}`);return a},async getTrialEvents(e,t){return(await n(`/v1/runs/${encodeURIComponent(e)}/trials/${encodeURIComponent(t)}/events`)).events},async runEval(e,t){await n(`/v1/runs`,{method:`POST`,body:JSON.stringify({path:e,...t?{parameters:t}:{}}),headers:{"content-type":`application/json`}})},async runSuite(e){await n(`/v1/suites/${encodeURIComponent(e)}/runs`,{method:`POST`})}}}var SA=`/Users/leostera/Developer/github.com/leostera/evalkit/packages/dashboard/src/main.tsx`,CA=document.querySelector(`#root`);if(!CA)throw Error(`Dashboard root is missing`);(0,Qn.createRoot)(CA).render((0,T.jsxDEV)(yA,{api:xA({baseUrl:window.location.origin})},void 0,!1,{fileName:SA,lineNumber:11,columnNumber:3},void 0));
|