@scenar/cli 0.9.1 → 0.11.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/example-bundle/assets/index-DxmqjG-8.js +388 -0
- package/example-bundle/assets/style-B2sxnVVZ.css +1 -0
- package/example-bundle/embed.js +1 -1
- package/example-bundle/index.html +2 -2
- package/example-bundle/logo.png +0 -0
- package/example-bundle/pack-manifest.json +33 -9
- package/example-bundle/soundtrack/music.mp3 +0 -0
- package/example-bundle/soundtrack/sfx/click.mp3 +0 -0
- package/example-bundle/soundtrack/sfx/keystroke.mp3 +0 -0
- package/package.json +4 -4
- package/src/__tests__/collect-pack-shots.test.ts +27 -1
- package/src/__tests__/elevenlabs-provider.test.ts +187 -0
- package/src/__tests__/embed-snippet.test.ts +5 -0
- package/src/__tests__/find-authored-soundtrack.test.ts +54 -0
- package/src/__tests__/find-authored-title-cards.test.ts +65 -0
- package/src/__tests__/find-authored-viewport.test.ts +58 -0
- package/src/__tests__/load-bundle.test.ts +67 -0
- package/src/__tests__/narrate-command.test.ts +65 -1
- package/src/__tests__/narration-cache.test.ts +134 -0
- package/src/__tests__/pack-bundle-contract.test.ts +2 -0
- package/src/__tests__/pack-generate-embed-entry.test.ts +99 -16
- package/src/__tests__/presenter-command.test.ts +366 -0
- package/src/__tests__/render-command.test.ts +11 -0
- package/src/__tests__/render-generate-entry.test.ts +102 -0
- package/src/__tests__/resolve-pack-viewport.test.ts +46 -0
- package/src/__tests__/resolve-provider.test.ts +32 -3
- package/src/__tests__/scenario-validator.test.ts +174 -0
- package/src/__tests__/stage-assets.test.ts +269 -0
- package/src/commands/narrate.js +1 -1
- package/src/commands/narrate.js.map +1 -1
- package/src/commands/narrate.ts +1 -1
- package/src/commands/pack.d.ts.map +1 -1
- package/src/commands/pack.js +23 -4
- package/src/commands/pack.js.map +1 -1
- package/src/commands/pack.ts +26 -5
- package/src/commands/presenter.d.ts +3 -0
- package/src/commands/presenter.d.ts.map +1 -0
- package/src/commands/presenter.js +89 -0
- package/src/commands/presenter.js.map +1 -0
- package/src/commands/presenter.ts +107 -0
- package/src/commands/render.d.ts.map +1 -1
- package/src/commands/render.js +2 -0
- package/src/commands/render.js.map +1 -1
- package/src/commands/render.ts +6 -0
- package/src/embed/embed-snippet.d.ts +5 -0
- package/src/embed/embed-snippet.d.ts.map +1 -1
- package/src/embed/embed-snippet.js +6 -1
- package/src/embed/embed-snippet.js.map +1 -1
- package/src/embed/embed-snippet.ts +6 -1
- package/src/index.d.ts.map +1 -1
- package/src/index.js +2 -0
- package/src/index.js.map +1 -1
- package/src/index.ts +2 -0
- package/src/narrate/run-narrate.d.ts +15 -1
- package/src/narrate/run-narrate.d.ts.map +1 -1
- package/src/narrate/run-narrate.js +11 -4
- package/src/narrate/run-narrate.js.map +1 -1
- package/src/narrate/run-narrate.ts +15 -6
- package/src/pack/bundle-contract.d.ts +1 -0
- package/src/pack/bundle-contract.d.ts.map +1 -1
- package/src/pack/bundle-contract.js +3 -0
- package/src/pack/bundle-contract.js.map +1 -1
- package/src/pack/bundle-contract.ts +3 -0
- package/src/pack/collect-pack-shots.d.ts +16 -5
- package/src/pack/collect-pack-shots.d.ts.map +1 -1
- package/src/pack/collect-pack-shots.js +13 -4
- package/src/pack/collect-pack-shots.js.map +1 -1
- package/src/pack/collect-pack-shots.ts +35 -8
- package/src/pack/generate-embed-entry.d.ts +7 -0
- package/src/pack/generate-embed-entry.d.ts.map +1 -1
- package/src/pack/generate-embed-entry.js +105 -7
- package/src/pack/generate-embed-entry.js.map +1 -1
- package/src/pack/generate-embed-entry.ts +110 -7
- package/src/pack/run-pack.d.ts +8 -2
- package/src/pack/run-pack.d.ts.map +1 -1
- package/src/pack/run-pack.js +120 -17
- package/src/pack/run-pack.js.map +1 -1
- package/src/pack/run-pack.ts +164 -19
- package/src/pack/viewport.d.ts +17 -0
- package/src/pack/viewport.d.ts.map +1 -1
- package/src/pack/viewport.js +19 -0
- package/src/pack/viewport.js.map +1 -1
- package/src/pack/viewport.ts +29 -0
- package/src/presenter/heygen-client.d.ts +69 -0
- package/src/presenter/heygen-client.d.ts.map +1 -0
- package/src/presenter/heygen-client.js +154 -0
- package/src/presenter/heygen-client.js.map +1 -0
- package/src/presenter/heygen-client.ts +224 -0
- package/src/presenter/run-presenter.d.ts +67 -0
- package/src/presenter/run-presenter.d.ts.map +1 -0
- package/src/presenter/run-presenter.js +348 -0
- package/src/presenter/run-presenter.js.map +1 -0
- package/src/presenter/run-presenter.ts +536 -0
- package/src/render/generate-entry.d.ts +4 -0
- package/src/render/generate-entry.d.ts.map +1 -1
- package/src/render/generate-entry.js +75 -7
- package/src/render/generate-entry.js.map +1 -1
- package/src/render/generate-entry.ts +84 -7
- package/src/render/run-render.d.ts +6 -0
- package/src/render/run-render.d.ts.map +1 -1
- package/src/render/run-render.js +58 -0
- package/src/render/run-render.js.map +1 -1
- package/src/render/run-render.ts +72 -0
- package/src/render/stage-assets.d.ts +44 -0
- package/src/render/stage-assets.d.ts.map +1 -0
- package/src/render/stage-assets.js +91 -0
- package/src/render/stage-assets.js.map +1 -0
- package/src/render/stage-assets.ts +130 -0
- package/src/tts/echogarden.d.ts.map +1 -1
- package/src/tts/echogarden.js +4 -2
- package/src/tts/echogarden.js.map +1 -1
- package/src/tts/echogarden.ts +5 -2
- package/src/tts/edge-tts.d.ts.map +1 -1
- package/src/tts/edge-tts.js +2 -1
- package/src/tts/edge-tts.js.map +1 -1
- package/src/tts/edge-tts.ts +2 -1
- package/src/tts/elevenlabs.d.ts +15 -0
- package/src/tts/elevenlabs.d.ts.map +1 -0
- package/src/tts/elevenlabs.js +73 -0
- package/src/tts/elevenlabs.js.map +1 -0
- package/src/tts/elevenlabs.ts +105 -0
- package/src/tts/openai.d.ts.map +1 -1
- package/src/tts/openai.js +2 -1
- package/src/tts/openai.js.map +1 -1
- package/src/tts/openai.ts +2 -1
- package/src/tts/resolve-provider.d.ts +1 -1
- package/src/tts/resolve-provider.d.ts.map +1 -1
- package/src/tts/resolve-provider.js +10 -3
- package/src/tts/resolve-provider.js.map +1 -1
- package/src/tts/resolve-provider.ts +12 -4
- package/src/tts/types.d.ts +9 -0
- package/src/tts/types.d.ts.map +1 -1
- package/src/tts/types.ts +10 -0
- package/src/util/confirm.d.ts +11 -0
- package/src/util/confirm.d.ts.map +1 -0
- package/src/util/confirm.js +24 -0
- package/src/util/confirm.js.map +1 -0
- package/src/util/confirm.ts +23 -0
- package/src/util/load-bundle.d.ts +17 -1
- package/src/util/load-bundle.d.ts.map +1 -1
- package/src/util/load-bundle.js +19 -11
- package/src/util/load-bundle.js.map +1 -1
- package/src/util/load-bundle.ts +38 -12
- package/src/util/load-ts.d.ts +100 -0
- package/src/util/load-ts.d.ts.map +1 -1
- package/src/util/load-ts.js +176 -0
- package/src/util/load-ts.js.map +1 -1
- package/src/util/load-ts.ts +227 -0
- package/src/util/narration-cache.d.ts +13 -5
- package/src/util/narration-cache.d.ts.map +1 -1
- package/src/util/narration-cache.js +10 -8
- package/src/util/narration-cache.js.map +1 -1
- package/src/util/narration-cache.ts +22 -6
- package/src/util/presenter-cache.d.ts +44 -0
- package/src/util/presenter-cache.d.ts.map +1 -0
- package/src/util/presenter-cache.js +43 -0
- package/src/util/presenter-cache.js.map +1 -0
- package/src/util/presenter-cache.ts +101 -0
- package/src/util/scenario-assets.d.ts +47 -0
- package/src/util/scenario-assets.d.ts.map +1 -0
- package/src/util/scenario-assets.js +71 -0
- package/src/util/scenario-assets.js.map +1 -0
- package/src/util/scenario-assets.ts +111 -0
- package/src/util/soundtrack-assets.d.ts +34 -0
- package/src/util/soundtrack-assets.d.ts.map +1 -0
- package/src/util/soundtrack-assets.js +48 -0
- package/src/util/soundtrack-assets.js.map +1 -0
- package/src/util/soundtrack-assets.ts +69 -0
- package/src/validate/scenario-validator.d.ts.map +1 -1
- package/src/validate/scenario-validator.js +82 -0
- package/src/validate/scenario-validator.js.map +1 -1
- package/src/validate/scenario-validator.ts +110 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/example-bundle/assets/index-DlmG1Uh7.js +0 -388
- package/example-bundle/assets/style-BjquDnTE.css +0 -1
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
var Ry={exports:{}},sd={},My={exports:{}},_u={exports:{}};_u.exports;var $A;function LO(){return $A||($A=1,function(o,i){/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.development.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/(function(){function l(E,k){Object.defineProperty(p.prototype,E,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",k[0],k[1])}})}function u(E){return E===null||typeof E!="object"?null:(E=Da&&E[Da]||E["@@iterator"],typeof E=="function"?E:null)}function f(E,k){E=(E=E.constructor)&&(E.displayName||E.name)||"ReactClass";var te=E+"."+k;Pn[te]||(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.",k,E),Pn[te]=!0)}function p(E,k,te){this.props=E,this.context=k,this.refs=qe,this.updater=te||uo}function h(){}function m(E,k,te){this.props=E,this.context=k,this.refs=qe,this.updater=te||uo}function b(){}function A(E){return""+E}function S(E){try{A(E);var k=!1}catch{k=!0}if(k){k=console;var te=k.error,se=typeof Symbol=="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object";return te.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",se),A(E)}}function v(E){if(E==null)return null;if(typeof E=="function")return E.$$typeof===Fs?null:E.displayName||E.name||null;if(typeof E=="string")return E;switch(E){case C:return"Fragment";case be:return"Profiler";case ee:return"StrictMode";case we:return"Suspense";case ot:return"SuspenseList";case he:return"Activity"}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 pe:return"Portal";case We:return E.displayName||"Context";case me:return(E._context.displayName||"Context")+".Consumer";case Wt:var k=E.render;return E=E.displayName,E||(E=k.displayName||k.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case jt:return k=E.displayName||null,k!==null?k:v(E.type)||"Memo";case vn:k=E._payload,E=E._init;try{return v(E(k))}catch{}}return null}function y(E){if(E===C)return"<>";if(typeof E=="object"&&E!==null&&E.$$typeof===vn)return"<...>";try{var k=v(E);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function x(){var E=ye.A;return E===null?null:E.getOwner()}function R(){return Error("react-stack-top-frame")}function L(E){if(sa.call(E,"key")){var k=Object.getOwnPropertyDescriptor(E,"key").get;if(k&&k.isReactWarning)return!1}return E.key!==void 0}function U(E,k){function te(){la||(la=!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)",k))}te.isReactWarning=!0,Object.defineProperty(E,"key",{get:te,configurable:!0})}function B(){var E=v(this.type);return co[E]||(co[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?E:null}function $(E,k,te,se,ge,_e){var Se=te.ref;return E={$$typeof:ce,type:E,key:k,props:te,_owner:se},(Se!==void 0?Se:null)!==null?Object.defineProperty(E,"ref",{enumerable:!1,get:B}):Object.defineProperty(E,"ref",{enumerable:!1,value:null}),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:ge}),Object.defineProperty(E,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_e}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E}function P(E,k){return k=$(E.type,k,E.props,E._owner,E._debugStack,E._debugTask),E._store&&(k._store.validated=E._store.validated),k}function F(E){ae(E)?E._store&&(E._store.validated=1):typeof E=="object"&&E!==null&&E.$$typeof===vn&&(E._payload.status==="fulfilled"?ae(E._payload.value)&&E._payload.value._store&&(E._payload.value._store.validated=1):E._store&&(E._store.validated=1))}function ae(E){return typeof E=="object"&&E!==null&&E.$$typeof===ce}function re(E){var k={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(te){return k[te]})}function ie(E,k){return typeof E=="object"&&E!==null&&E.key!=null?(S(E.key),re(""+E.key)):k.toString(36)}function J(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(b,b):(E.status="pending",E.then(function(k){E.status==="pending"&&(E.status="fulfilled",E.value=k)},function(k){E.status==="pending"&&(E.status="rejected",E.reason=k)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function I(E,k,te,se,ge){var _e=typeof E;(_e==="undefined"||_e==="boolean")&&(E=null);var Se=!1;if(E===null)Se=!0;else switch(_e){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(E.$$typeof){case ce:case pe:Se=!0;break;case vn:return Se=E._init,I(Se(E._payload),k,te,se,ge)}}if(Se){Se=E,ge=ge(Se);var He=se===""?"."+ie(Se,0):se;return Bt(ge)?(te="",He!=null&&(te=He.replace(jr,"$&/")+"/"),I(ge,k,te,"",function(Ht){return Ht})):ge!=null&&(ae(ge)&&(ge.key!=null&&(Se&&Se.key===ge.key||S(ge.key)),te=P(ge,te+(ge.key==null||Se&&Se.key===ge.key?"":(""+ge.key).replace(jr,"$&/")+"/")+He),se!==""&&Se!=null&&ae(Se)&&Se.key==null&&Se._store&&!Se._store.validated&&(te._store.validated=2),ge=te),k.push(ge)),1}if(Se=0,He=se===""?".":se+":",Bt(E))for(var Oe=0;Oe<E.length;Oe++)se=E[Oe],_e=He+ie(se,Oe),Se+=I(se,k,te,_e,ge);else if(Oe=u(E),typeof Oe=="function")for(Oe===E.entries&&(Cn||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Cn=!0),E=Oe.call(E),Oe=0;!(se=E.next()).done;)se=se.value,_e=He+ie(se,Oe++),Se+=I(se,k,te,_e,ge);else if(_e==="object"){if(typeof E.then=="function")return I(J(E),k,te,se,ge);throw k=String(E),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return Se}function q(E,k,te){if(E==null)return E;var se=[],ge=0;return I(E,se,"","",function(_e){return k.call(te,_e,ge++)}),se}function oe(E){if(E._status===-1){var k=E._ioInfo;k!=null&&(k.start=k.end=performance.now()),k=E._result;var te=k();if(te.then(function(ge){if(E._status===0||E._status===-1){E._status=1,E._result=ge;var _e=E._ioInfo;_e!=null&&(_e.end=performance.now()),te.status===void 0&&(te.status="fulfilled",te.value=ge)}},function(ge){if(E._status===0||E._status===-1){E._status=2,E._result=ge;var _e=E._ioInfo;_e!=null&&(_e.end=performance.now()),te.status===void 0&&(te.status="rejected",te.reason=ge)}}),k=E._ioInfo,k!=null){k.value=te;var se=te.displayName;typeof se=="string"&&(k.name=se)}E._status===-1&&(E._status=0,E._result=te)}if(E._status===1)return k=E._result,k===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
10
|
+
|
|
11
|
+
Your code should look like:
|
|
12
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
13
|
+
|
|
14
|
+
Did you accidentally put curly braces around the import?`,k),"default"in k||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
15
|
+
|
|
16
|
+
Your code should look like:
|
|
17
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,k),k.default;throw E._result}function V(){var E=ye.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:
|
|
18
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
19
|
+
2. You might be breaking the Rules of Hooks
|
|
20
|
+
3. You might have more than one copy of React in the same app
|
|
21
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),E}function W(){ye.asyncTransitions--}function de(E){if(ca===null)try{var k=("require"+Math.random()).slice(0,7);ca=(o&&o[k]).call(o,"timers").setImmediate}catch{ca=function(se){qo===!1&&(qo=!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 ge=new MessageChannel;ge.port1.onmessage=se,ge.port2.postMessage(void 0)}}return ca(E)}function Ee(E){return 1<E.length&&typeof AggregateError=="function"?new AggregateError(E):E[0]}function K(E,k){k!==_a-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. "),_a=k}function H(E,k,te){var se=ye.actQueue;if(se!==null)if(se.length!==0)try{Q(se),de(function(){return H(E,k,te)});return}catch(ge){ye.thrownErrors.push(ge)}else ye.actQueue=null;0<ye.thrownErrors.length?(se=Ee(ye.thrownErrors),ye.thrownErrors.length=0,te(se)):k(E)}function Q(E){if(!Go){Go=!0;var k=0;try{for(;k<E.length;k++){var te=E[k];do{ye.didUsePromise=!1;var se=te(!1);if(se!==null){if(ye.didUsePromise){E[k]=te,E.splice(0,k);return}te=se}else break}while(!0)}E.length=0}catch(ge){E.splice(0,k+1),ye.thrownErrors.push(ge)}finally{Go=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ce=Symbol.for("react.transitional.element"),pe=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),ee=Symbol.for("react.strict_mode"),be=Symbol.for("react.profiler"),me=Symbol.for("react.consumer"),We=Symbol.for("react.context"),Wt=Symbol.for("react.forward_ref"),we=Symbol.for("react.suspense"),ot=Symbol.for("react.suspense_list"),jt=Symbol.for("react.memo"),vn=Symbol.for("react.lazy"),he=Symbol.for("react.activity"),Da=Symbol.iterator,Pn={},uo={isMounted:function(){return!1},enqueueForceUpdate:function(E){f(E,"forceUpdate")},enqueueReplaceState:function(E){f(E,"replaceState")},enqueueSetState:function(E){f(E,"setState")}},Oa=Object.assign,qe={};Object.freeze(qe),p.prototype.isReactComponent={},p.prototype.setState=function(E,k){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,k,"setState")},p.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};var Lt={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(fa in Lt)Lt.hasOwnProperty(fa)&&l(fa,Lt[fa]);h.prototype=p.prototype,Lt=m.prototype=new h,Lt.constructor=m,Oa(Lt,p.prototype),Lt.isPureReactComponent=!0;var Bt=Array.isArray,Fs=Symbol.for("react.client.reference"),ye={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},sa=Object.prototype.hasOwnProperty,Mn=console.createTask?console.createTask:function(){return null};Lt={react_stack_bottom_frame:function(E){return E()}};var la,en,co={},Li=Lt.react_stack_bottom_frame.bind(Lt,R)(),ua=Mn(y(R)),Cn=!1,jr=/\/+/g,fo=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},qo=!1,ca=null,_a=0,ho=!1,Go=!1,Po=typeof queueMicrotask=="function"?function(E){queueMicrotask(function(){return queueMicrotask(E)})}:de;Lt=Object.freeze({__proto__:null,c:function(E){return V().useMemoCache(E)}});var fa={map:q,forEach:function(E,k,te){q(E,function(){k.apply(this,arguments)},te)},count:function(E){var k=0;return q(E,function(){k++}),k},toArray:function(E){return q(E,function(k){return k})||[]},only:function(E){if(!ae(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};i.Activity=he,i.Children=fa,i.Component=p,i.Fragment=C,i.Profiler=be,i.PureComponent=m,i.StrictMode=ee,i.Suspense=we,i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ye,i.__COMPILER_RUNTIME=Lt,i.act=function(E){var k=ye.actQueue,te=_a;_a++;var se=ye.actQueue=k!==null?k:[],ge=!1;try{var _e=E()}catch(Oe){ye.thrownErrors.push(Oe)}if(0<ye.thrownErrors.length)throw K(k,te),E=Ee(ye.thrownErrors),ye.thrownErrors.length=0,E;if(_e!==null&&typeof _e=="object"&&typeof _e.then=="function"){var Se=_e;return Po(function(){ge||ho||(ho=!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(Oe,Ht){ge=!0,Se.then(function(Dn){if(K(k,te),te===0){try{Q(se),de(function(){return H(Dn,Oe,Ht)})}catch($o){ye.thrownErrors.push($o)}if(0<ye.thrownErrors.length){var zr=Ee(ye.thrownErrors);ye.thrownErrors.length=0,Ht(zr)}}else Oe(Dn)},function(Dn){K(k,te),0<ye.thrownErrors.length&&(Dn=Ee(ye.thrownErrors),ye.thrownErrors.length=0),Ht(Dn)})}}}var He=_e;if(K(k,te),te===0&&(Q(se),se.length!==0&&Po(function(){ge||ho||(ho=!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(() => ...)"))}),ye.actQueue=null),0<ye.thrownErrors.length)throw E=Ee(ye.thrownErrors),ye.thrownErrors.length=0,E;return{then:function(Oe,Ht){ge=!0,te===0?(ye.actQueue=se,de(function(){return H(He,Oe,Ht)})):Oe(He)}}},i.cache=function(E){return function(){return E.apply(null,arguments)}},i.cacheSignal=function(){return null},i.captureOwnerStack=function(){var E=ye.getCurrentStack;return E===null?null:E()},i.cloneElement=function(E,k,te){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var se=Oa({},E.props),ge=E.key,_e=E._owner;if(k!=null){var Se;e:{if(sa.call(k,"ref")&&(Se=Object.getOwnPropertyDescriptor(k,"ref").get)&&Se.isReactWarning){Se=!1;break e}Se=k.ref!==void 0}Se&&(_e=x()),L(k)&&(S(k.key),ge=""+k.key);for(He in k)!sa.call(k,He)||He==="key"||He==="__self"||He==="__source"||He==="ref"&&k.ref===void 0||(se[He]=k[He])}var He=arguments.length-2;if(He===1)se.children=te;else if(1<He){Se=Array(He);for(var Oe=0;Oe<He;Oe++)Se[Oe]=arguments[Oe+2];se.children=Se}for(se=$(E.type,ge,se,_e,E._debugStack,E._debugTask),ge=2;ge<arguments.length;ge++)F(arguments[ge]);return se},i.createContext=function(E){return E={$$typeof:We,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:me,_context:E},E._currentRenderer=null,E._currentRenderer2=null,E},i.createElement=function(E,k,te){for(var se=2;se<arguments.length;se++)F(arguments[se]);se={};var ge=null;if(k!=null)for(Oe in en||!("__self"in k)||"key"in k||(en=!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")),L(k)&&(S(k.key),ge=""+k.key),k)sa.call(k,Oe)&&Oe!=="key"&&Oe!=="__self"&&Oe!=="__source"&&(se[Oe]=k[Oe]);var _e=arguments.length-2;if(_e===1)se.children=te;else if(1<_e){for(var Se=Array(_e),He=0;He<_e;He++)Se[He]=arguments[He+2];Object.freeze&&Object.freeze(Se),se.children=Se}if(E&&E.defaultProps)for(Oe in _e=E.defaultProps,_e)se[Oe]===void 0&&(se[Oe]=_e[Oe]);ge&&U(se,typeof E=="function"?E.displayName||E.name||"Unknown":E);var Oe=1e4>ye.recentlyCreatedOwnerStacks++;return $(E,ge,se,x(),Oe?Error("react-stack-top-frame"):Li,Oe?Mn(y(E)):ua)},i.createRef=function(){var E={current:null};return Object.seal(E),E},i.forwardRef=function(E){E!=null&&E.$$typeof===jt?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof E!="function"?console.error("forwardRef requires a render function but was given %s.",E===null?"null":typeof E):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."),E!=null&&E.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var k={$$typeof:Wt,render:E},te;return Object.defineProperty(k,"displayName",{enumerable:!1,configurable:!0,get:function(){return te},set:function(se){te=se,E.name||E.displayName||(Object.defineProperty(E,"name",{value:se}),E.displayName=se)}}),k},i.isValidElement=ae,i.lazy=function(E){E={_status:-1,_result:E};var k={$$typeof:vn,_payload:E,_init:oe},te={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=te,k._debugInfo=[{awaited:te}],k},i.memo=function(E,k){E==null&&console.error("memo: The first argument must be a component. Instead received: %s",E===null?"null":typeof E),k={$$typeof:jt,type:E,compare:k===void 0?null:k};var te;return Object.defineProperty(k,"displayName",{enumerable:!1,configurable:!0,get:function(){return te},set:function(se){te=se,E.name||E.displayName||(Object.defineProperty(E,"name",{value:se}),E.displayName=se)}}),k},i.startTransition=function(E){var k=ye.T,te={};te._updatedFibers=new Set,ye.T=te;try{var se=E(),ge=ye.S;ge!==null&&ge(te,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&(ye.asyncTransitions++,se.then(W,W),se.then(b,fo))}catch(_e){fo(_e)}finally{k===null&&te._updatedFibers&&(E=te._updatedFibers.size,te._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.")),k!==null&&te.types!==null&&(k.types!==null&&k.types!==te.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),k.types=te.types),ye.T=k}},i.unstable_useCacheRefresh=function(){return V().useCacheRefresh()},i.use=function(E){return V().use(E)},i.useActionState=function(E,k,te){return V().useActionState(E,k,te)},i.useCallback=function(E,k){return V().useCallback(E,k)},i.useContext=function(E){var k=V();return E.$$typeof===me&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),k.useContext(E)},i.useDebugValue=function(E,k){return V().useDebugValue(E,k)},i.useDeferredValue=function(E,k){return V().useDeferredValue(E,k)},i.useEffect=function(E,k){return E==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useEffect(E,k)},i.useEffectEvent=function(E){return V().useEffectEvent(E)},i.useId=function(){return V().useId()},i.useImperativeHandle=function(E,k,te){return V().useImperativeHandle(E,k,te)},i.useInsertionEffect=function(E,k){return E==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useInsertionEffect(E,k)},i.useLayoutEffect=function(E,k){return E==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useLayoutEffect(E,k)},i.useMemo=function(E,k){return V().useMemo(E,k)},i.useOptimistic=function(E,k){return V().useOptimistic(E,k)},i.useReducer=function(E,k,te){return V().useReducer(E,k,te)},i.useRef=function(E){return V().useRef(E)},i.useState=function(E){return V().useState(E)},i.useSyncExternalStore=function(E,k,te){return V().useSyncExternalStore(E,k,te)},i.useTransition=function(){return V().useTransition()},i.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()}(_u,_u.exports)),_u.exports}var XA;function qu(){return XA||(XA=1,My.exports=LO()),My.exports}var QA;function BO(){if(QA)return sd;QA=1;/**
|
|
22
|
+
* @license React
|
|
23
|
+
* react-jsx-dev-runtime.development.js
|
|
24
|
+
*
|
|
25
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the MIT license found in the
|
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
|
29
|
+
*/return function(){function o(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===oe?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case U:return"Fragment";case $:return"Profiler";case B:return"StrictMode";case re:return"Suspense";case ie:return"SuspenseList";case q:return"Activity"}if(typeof C=="object")switch(typeof C.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case L:return"Portal";case F:return C.displayName||"Context";case P:return(C._context.displayName||"Context")+".Consumer";case ae:var ee=C.render;return C=C.displayName,C||(C=ee.displayName||ee.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case J:return ee=C.displayName||null,ee!==null?ee:o(C.type)||"Memo";case I:ee=C._payload,C=C._init;try{return o(C(ee))}catch{}}return null}function i(C){return""+C}function l(C){try{i(C);var ee=!1}catch{ee=!0}if(ee){ee=console;var be=ee.error,me=typeof Symbol=="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return be.call(ee,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",me),i(C)}}function u(C){if(C===U)return"<>";if(typeof C=="object"&&C!==null&&C.$$typeof===I)return"<...>";try{var ee=o(C);return ee?"<"+ee+">":"<...>"}catch{return"<...>"}}function f(){var C=V.A;return C===null?null:C.getOwner()}function p(){return Error("react-stack-top-frame")}function h(C){if(W.call(C,"key")){var ee=Object.getOwnPropertyDescriptor(C,"key").get;if(ee&&ee.isReactWarning)return!1}return C.key!==void 0}function m(C,ee){function be(){K||(K=!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)",ee))}be.isReactWarning=!0,Object.defineProperty(C,"key",{get:be,configurable:!0})}function b(){var C=o(this.type);return H[C]||(H[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function A(C,ee,be,me,We,Wt){var we=be.ref;return C={$$typeof:R,type:C,key:ee,props:be,_owner:me},(we!==void 0?we:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:b}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:We}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Wt}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function S(C,ee,be,me,We,Wt){var we=ee.children;if(we!==void 0)if(me)if(de(we)){for(me=0;me<we.length;me++)v(we[me]);Object.freeze&&Object.freeze(we)}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 v(we);if(W.call(ee,"key")){we=o(C);var ot=Object.keys(ee).filter(function(vn){return vn!=="key"});me=0<ot.length?"{key: someKey, "+ot.join(": ..., ")+": ...}":"{key: someKey}",pe[we+me]||(ot=0<ot.length?"{"+ot.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
30
|
+
let props = %s;
|
|
31
|
+
<%s {...props} />
|
|
32
|
+
React keys must be passed directly to JSX without using spread:
|
|
33
|
+
let props = %s;
|
|
34
|
+
<%s key={someKey} {...props} />`,me,we,ot,we),pe[we+me]=!0)}if(we=null,be!==void 0&&(l(be),we=""+be),h(ee)&&(l(ee.key),we=""+ee.key),"key"in ee){be={};for(var jt in ee)jt!=="key"&&(be[jt]=ee[jt])}else be=ee;return we&&m(be,typeof C=="function"?C.displayName||C.name||"Unknown":C),A(C,we,be,f(),We,Wt)}function v(C){y(C)?C._store&&(C._store.validated=1):typeof C=="object"&&C!==null&&C.$$typeof===I&&(C._payload.status==="fulfilled"?y(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function y(C){return typeof C=="object"&&C!==null&&C.$$typeof===R}var x=qu(),R=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),F=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),oe=Symbol.for("react.client.reference"),V=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=Object.prototype.hasOwnProperty,de=Array.isArray,Ee=console.createTask?console.createTask:function(){return null};x={react_stack_bottom_frame:function(C){return C()}};var K,H={},Q=x.react_stack_bottom_frame.bind(x,p)(),ce=Ee(u(p)),pe={};sd.Fragment=U,sd.jsxDEV=function(C,ee,be,me){var We=1e4>V.recentlyCreatedOwnerStacks++;return S(C,ee,be,me,We?Error("react-stack-top-frame"):Q,We?Ee(u(C)):ce)}}(),sd}var ZA;function HO(){return ZA||(ZA=1,Ry.exports=BO()),Ry.exports}var et=HO(),w=qu(),Cy={exports:{}},Cu={},Dy={exports:{}},Oy={},IA;function YO(){return IA||(IA=1,function(o){/**
|
|
35
|
+
* @license React
|
|
36
|
+
* scheduler.development.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/(function(){function i(){if(ae=!1,I){var K=o.unstable_now();V=K;var H=!0;try{e:{P=!1,F&&(F=!1,ie(q),q=-1),$=!0;var Q=B;try{t:{for(h(K),U=u(x);U!==null&&!(U.expirationTime>K&&b());){var ce=U.callback;if(typeof ce=="function"){U.callback=null,B=U.priorityLevel;var pe=ce(U.expirationTime<=K);if(K=o.unstable_now(),typeof pe=="function"){U.callback=pe,h(K),H=!0;break t}U===u(x)&&f(x),h(K)}else f(x);U=u(x)}if(U!==null)H=!0;else{var C=u(R);C!==null&&A(m,C.startTime-K),H=!1}}break e}finally{U=null,B=Q,$=!1}H=void 0}}finally{H?W():I=!1}}}function l(K,H){var Q=K.length;K.push(H);e:for(;0<Q;){var ce=Q-1>>>1,pe=K[ce];if(0<p(pe,H))K[ce]=H,K[Q]=pe,Q=ce;else break e}}function u(K){return K.length===0?null:K[0]}function f(K){if(K.length===0)return null;var H=K[0],Q=K.pop();if(Q!==H){K[0]=Q;e:for(var ce=0,pe=K.length,C=pe>>>1;ce<C;){var ee=2*(ce+1)-1,be=K[ee],me=ee+1,We=K[me];if(0>p(be,Q))me<pe&&0>p(We,be)?(K[ce]=We,K[me]=Q,ce=me):(K[ce]=be,K[ee]=Q,ce=ee);else if(me<pe&&0>p(We,Q))K[ce]=We,K[me]=Q,ce=me;else break e}}return H}function p(K,H){var Q=K.sortIndex-H.sortIndex;return Q!==0?Q:K.id-H.id}function h(K){for(var H=u(R);H!==null;){if(H.callback===null)f(R);else if(H.startTime<=K)f(R),H.sortIndex=H.expirationTime,l(x,H);else break;H=u(R)}}function m(K){if(F=!1,h(K),!P)if(u(x)!==null)P=!0,I||(I=!0,W());else{var H=u(R);H!==null&&A(m,H.startTime-K)}}function b(){return ae?!0:!(o.unstable_now()-V<oe)}function A(K,H){q=re(function(){K(o.unstable_now())},H)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var S=performance;o.unstable_now=function(){return S.now()}}else{var v=Date,y=v.now();o.unstable_now=function(){return v.now()-y}}var x=[],R=[],L=1,U=null,B=3,$=!1,P=!1,F=!1,ae=!1,re=typeof setTimeout=="function"?setTimeout:null,ie=typeof clearTimeout=="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null,I=!1,q=-1,oe=5,V=-1;if(typeof J=="function")var W=function(){J(i)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,Ee=de.port2;de.port1.onmessage=i,W=function(){Ee.postMessage(null)}}else W=function(){re(i,0)};o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(K){K.callback=null},o.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):oe=0<K?Math.floor(1e3/K):5},o.unstable_getCurrentPriorityLevel=function(){return B},o.unstable_next=function(K){switch(B){case 1:case 2:case 3:var H=3;break;default:H=B}var Q=B;B=H;try{return K()}finally{B=Q}},o.unstable_requestPaint=function(){ae=!0},o.unstable_runWithPriority=function(K,H){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var Q=B;B=K;try{return H()}finally{B=Q}},o.unstable_scheduleCallback=function(K,H,Q){var ce=o.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ce+Q:ce):Q=ce,K){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=Q+pe,K={id:L++,callback:H,priorityLevel:K,startTime:Q,expirationTime:pe,sortIndex:-1},Q>ce?(K.sortIndex=Q,l(R,K),u(x)===null&&K===u(R)&&(F?(ie(q),q=-1):F=!0,A(m,Q-ce))):(K.sortIndex=pe,l(x,K),P||$||(P=!0,I||(I=!0,W()))),K},o.unstable_shouldYield=b,o.unstable_wrapCallback=function(K){var H=B;return function(){var Q=B;B=H;try{return K.apply(this,arguments)}finally{B=Q}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()}(Oy)),Oy}var FA;function qO(){return FA||(FA=1,Dy.exports=YO()),Dy.exports}var _y={exports:{}},on={},JA;function GO(){if(JA)return on;JA=1;/**
|
|
43
|
+
* @license React
|
|
44
|
+
* react-dom.development.js
|
|
45
|
+
*
|
|
46
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the MIT license found in the
|
|
49
|
+
* LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/return function(){function o(){}function i(v){return""+v}function l(v,y,x){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{i(R);var L=!1}catch{L=!0}return L&&(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&&R[Symbol.toStringTag]||R.constructor.name||"Object"),i(R)),{$$typeof:A,key:R==null?null:""+R,children:v,containerInfo:y,implementation:x}}function u(v,y){if(v==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}function f(v){return v===null?"`null`":v===void 0?"`undefined`":v===""?"an empty string":'something with type "'+typeof v+'"'}function p(v){return v===null?"`null`":v===void 0?"`undefined`":v===""?"an empty string":typeof v=="string"?JSON.stringify(v):typeof v=="number"?"`"+v+"`":'something with type "'+typeof v+'"'}function h(){var v=S.H;return v===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:
|
|
51
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
52
|
+
2. You might be breaking the Rules of Hooks
|
|
53
|
+
3. You might have more than one copy of React in the same app
|
|
54
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),v}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var m=qu(),b={d:{f:o,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},A=Symbol.for("react.portal"),S=m.__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"),on.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,on.createPortal=function(v,y){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error("Target container is not a DOM element.");return l(v,y,null,x)},on.flushSync=function(v){var y=S.T,x=b.p;try{if(S.T=null,b.p=2,v)return v()}finally{S.T=y,b.p=x,b.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},on.preconnect=function(v,y){typeof v=="string"&&v?y!=null&&typeof y!="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.",p(y)):y!=null&&typeof y.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.",f(y.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(v)),typeof v=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,b.d.C(v,y))},on.prefetchDNS=function(v){if(typeof v!="string"||!v)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(v));else if(1<arguments.length){var y=arguments[1];typeof y=="object"&&y.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`.",p(y)):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`.",p(y))}typeof v=="string"&&b.d.D(v)},on.preinit=function(v,y){if(typeof v=="string"&&v?y==null||typeof y!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",p(y)):y.as!=="style"&&y.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".',p(y.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(v)),typeof v=="string"&&y&&typeof y.as=="string"){var x=y.as,R=u(x,y.crossOrigin),L=typeof y.integrity=="string"?y.integrity:void 0,U=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;x==="style"?b.d.S(v,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:R,integrity:L,fetchPriority:U}):x==="script"&&b.d.X(v,{crossOrigin:R,integrity:L,fetchPriority:U,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},on.preinitModule=function(v,y){var x="";if(typeof v=="string"&&v||(x+=" The `href` argument encountered was "+f(v)+"."),y!==void 0&&typeof y!="object"?x+=" The `options` argument encountered was "+f(y)+".":y&&"as"in y&&y.as!=="script"&&(x+=" The `as` option encountered was "+p(y.as)+"."),x)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",x);else switch(x=y&&typeof y.as=="string"?y.as:"script",x){case"script":break;default:x=p(x),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)',x,v)}typeof v=="string"&&(typeof y=="object"&&y!==null?(y.as==null||y.as==="script")&&(x=u(y.as,y.crossOrigin),b.d.M(v,{crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})):y==null&&b.d.M(v))},on.preload=function(v,y){var x="";if(typeof v=="string"&&v||(x+=" The `href` argument encountered was "+f(v)+"."),y==null||typeof y!="object"?x+=" The `options` argument encountered was "+f(y)+".":typeof y.as=="string"&&y.as||(x+=" The `as` option encountered was "+f(y.as)+"."),x&&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',x),typeof v=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){x=y.as;var R=u(x,y.crossOrigin);b.d.L(v,x,{crossOrigin:R,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},on.preloadModule=function(v,y){var x="";typeof v=="string"&&v||(x+=" The `href` argument encountered was "+f(v)+"."),y!==void 0&&typeof y!="object"?x+=" The `options` argument encountered was "+f(y)+".":y&&"as"in y&&typeof y.as!="string"&&(x+=" The `as` option encountered was "+f(y.as)+"."),x&&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',x),typeof v=="string"&&(y?(x=u(y.as,y.crossOrigin),b.d.m(v,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0})):b.d.m(v))},on.requestFormReset=function(v){b.d.r(v)},on.unstable_batchedUpdates=function(v,y){return v(y)},on.useFormState=function(v,y,x){return h().useFormState(v,y,x)},on.useFormStatus=function(){return h().useHostTransitionStatus()},on.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),on}var KA;function Hx(){return KA||(KA=1,_y.exports=GO()),_y.exports}var WA;function PO(){if(WA)return Cu;WA=1;/**
|
|
55
|
+
* @license React
|
|
56
|
+
* react-dom-client.development.js
|
|
57
|
+
*
|
|
58
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
59
|
+
*
|
|
60
|
+
* This source code is licensed under the MIT license found in the
|
|
61
|
+
* LICENSE file in the root directory of this source tree.
|
|
62
|
+
*/return function(){function o(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function i(e,t,n,a){if(n>=t.length)return a;var r=t[n],s=Nt(e)?e.slice():Be({},e);return s[r]=i(e[r],t,n+1,a),s}function l(e,t,n){if(t.length!==n.length)console.warn("copyWithRename() expects paths of the same length");else{for(var a=0;a<n.length-1;a++)if(t[a]!==n[a]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return u(e,t,n,0)}}function u(e,t,n,a){var r=t[a],s=Nt(e)?e.slice():Be({},e);return a+1===t.length?(s[n[a]]=s[r],Nt(s)?s.splice(r,1):delete s[r]):s[r]=u(e[r],t,n,a+1),s}function f(e,t,n){var a=t[n],r=Nt(e)?e.slice():Be({},e);return n+1===t.length?(Nt(r)?r.splice(a,1):delete r[a],r):(r[a]=f(e[a],t,n+1),r)}function p(){return!1}function h(){return null}function m(){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 b(){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 A(){}function S(){}function v(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")}function y(e,t,n,a){return new wM(e,t,n,a)}function x(e,t){e.context===di&&($p(e.current,2,t,e,null,null),Zr())}function R(e,t){if(In!==null){var n=t.staleFamilies;t=t.updatedFamilies,El(),Jv(e.current,t,n),Zr()}}function L(e){In=e}function U(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function B(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function $(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 P(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 F(e){if(B(e)!==e)throw Error("Unable to find node on an unmounted component.")}function ae(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?null:e}for(var n=e,a=t;;){var r=n.return;if(r===null)break;var s=r.alternate;if(s===null){if(a=r.return,a!==null){n=a;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===n)return F(r),e;if(s===a)return F(r),t;s=s.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==a.return)n=r,a=s;else{for(var c=!1,d=r.child;d;){if(d===n){c=!0,n=r,a=s;break}if(d===a){c=!0,a=r,n=s;break}d=d.sibling}if(!c){for(d=s.child;d;){if(d===n){c=!0,n=s,a=r;break}if(d===a){c=!0,a=s,n=r;break}d=d.sibling}if(!c)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!==a)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 re(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=re(e),t!==null)return t;e=e.sibling}return null}function ie(e){return e===null||typeof e!="object"?null:(e=o1&&e[o1]||e["@@iterator"],typeof e=="function"?e:null)}function J(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===QC?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ts:return"Fragment";case Kp:return"Profiler";case ef:return"StrictMode";case em:return"Suspense";case tm:return"SuspenseList";case nm:return"Activity"}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 es:return"Portal";case Ia:return e.displayName||"Context";case Wp:return(e._context.displayName||"Context")+".Consumer";case zl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case tf:return t=e.displayName||null,t!==null?t:J(e.type)||"Memo";case kn:t=e._payload,e=e._init;try{return J(e(t))}catch{}}return null}function I(e){return typeof e.tag=="number"?q(e):typeof e.name=="string"?e.name:null}function q(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("+e+")":"ForwardRef");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 J(t);case 8:return t===ef?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof 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 q(e.return)}return null}function oe(e){return{current:e}}function V(e,t){0>Ao?console.error("Unexpected pop."):(t!==om[Ao]&&console.error("Unexpected Fiber popped."),e.current=am[Ao],am[Ao]=null,om[Ao]=null,Ao--)}function W(e,t,n){Ao++,am[Ao]=e.current,om[Ao]=n,e.current=t}function de(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 Ee(e,t){W(ri,t,e),W(Nl,e,e),W(ii,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?CS(t):ko;break;default:if(n=t.tagName,t=t.namespaceURI)t=CS(t),t=DS(t,n);else switch(n){case"svg":t=Us;break;case"math":t=ed;break;default:t=ko}}n=n.toLowerCase(),n=Av(null,n),n={context:t,ancestorInfo:n},V(ii,e),W(ii,n,e)}function K(e){V(ii,e),V(Nl,e),V(ri,e)}function H(){return de(ii.current)}function Q(e){e.memoizedState!==null&&W(nf,e,e);var t=de(ii.current),n=e.type,a=DS(t.context,n);n=Av(t.ancestorInfo,n),a={context:a,ancestorInfo:n},t!==a&&(W(Nl,e,e),W(ii,a,e))}function ce(e){Nl.current===e&&(V(ii,e),V(Nl,e)),nf.current===e&&(V(nf,e),wu._currentValue=xr)}function pe(){}function C(){if(Ul===0){i1=console.log,r1=console.info,s1=console.warn,l1=console.error,u1=console.group,c1=console.groupCollapsed,f1=console.groupEnd;var e={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ul++}function ee(){if(Ul--,Ul===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Be({},e,{value:i1}),info:Be({},e,{value:r1}),warn:Be({},e,{value:s1}),error:Be({},e,{value:l1}),group:Be({},e,{value:u1}),groupCollapsed:Be({},e,{value:c1}),groupEnd:Be({},e,{value:f1})})}0>Ul&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function be(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
63
|
+
`)&&(e=e.slice(29)),t=e.indexOf(`
|
|
64
|
+
`),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
|
|
65
|
+
`,t)),t!==-1)e=e.slice(0,t);else return"";return e}function me(e){if(im===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);im=t&&t[1]||"",d1=-1<n.stack.indexOf(`
|
|
66
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
67
|
+
`+im+e+d1}function We(e,t){if(!e||rm)return"";var n=sm.get(e);if(n!==void 0)return n;rm=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var a=null;a=X.H,X.H=null,C();try{var r={DetermineComponentFrameRoot:function(){try{if(t){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(le){var Y=le}Reflect.construct(e,[],D)}else{try{D.call()}catch(le){Y=le}e.call(D.prototype)}}else{try{throw Error()}catch(le){Y=le}(D=e())&&typeof D.catch=="function"&&D.catch(function(){})}}catch(le){if(le&&Y&&typeof le.stack=="string")return[le.stack,Y.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=r.DetermineComponentFrameRoot(),d=c[0],g=c[1];if(d&&g){var T=d.split(`
|
|
68
|
+
`),z=g.split(`
|
|
69
|
+
`);for(c=s=0;s<T.length&&!T[s].includes("DetermineComponentFrameRoot");)s++;for(;c<z.length&&!z[c].includes("DetermineComponentFrameRoot");)c++;if(s===T.length||c===z.length)for(s=T.length-1,c=z.length-1;1<=s&&0<=c&&T[s]!==z[c];)c--;for(;1<=s&&0<=c;s--,c--)if(T[s]!==z[c]){if(s!==1||c!==1)do if(s--,c--,0>c||T[s]!==z[c]){var N=`
|
|
70
|
+
`+T[s].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),typeof e=="function"&&sm.set(e,N),N}while(1<=s&&0<=c);break}}}finally{rm=!1,X.H=a,ee(),Error.prepareStackTrace=n}return T=(T=e?e.displayName||e.name:"")?me(T):"",typeof e=="function"&&sm.set(e,T),T}function Wt(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 We(e.type,!1);case 11:return We(e.type.render,!1);case 1:return We(e.type,!0);case 31:return me("Activity");default:return""}}function we(e){try{var t="",n=null;do{t+=Wt(e,n);var a=e._debugInfo;if(a)for(var r=a.length-1;0<=r;r--){var s=a[r];if(typeof s.name=="string"){var c=t;e:{var d=s.name,g=s.env,T=s.debugLocation;if(T!=null){var z=be(T),N=z.lastIndexOf(`
|
|
71
|
+
`),D=N===-1?z:z.slice(N+1);if(D.indexOf(d)!==-1){var Y=`
|
|
72
|
+
`+D;break e}}Y=me(d+(g?" ["+g+"]":""))}t=c+Y}}n=e,e=e.return}while(e);return t}catch(le){return`
|
|
73
|
+
Error generating stack: `+le.message+`
|
|
74
|
+
`+le.stack}}function ot(e){return(e=e?e.displayName||e.name:"")?me(e):""}function jt(){if(Ln===null)return null;var e=Ln._debugOwner;return e!=null?I(e):null}function vn(){if(Ln===null)return"";var e=Ln;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:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=ot(e.type));break;case 11:e._debugOwner||t!==""||(t+=ot(e.type.render))}for(;e;)if(typeof e.tag=="number"){var n=e;e=n._debugOwner;var a=n._debugStack;if(e&&a){var r=be(a);r!==""&&(t+=`
|
|
75
|
+
`+r)}}else if(e.debugStack!=null){var s=e.debugStack;(e=e.owner)&&s&&(t+=`
|
|
76
|
+
`+be(s))}else break;var c=t}catch(d){c=`
|
|
77
|
+
Error generating stack: `+d.message+`
|
|
78
|
+
`+d.stack}return c}function he(e,t,n,a,r,s,c){var d=Ln;Da(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,n,a,r,s,c)):t(n,a,r,s,c)}finally{Da(d)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Da(e){X.getCurrentStack=e===null?null:vn,Fa=!1,Ln=e}function Pn(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function uo(e){try{return Oa(e),!1}catch{return!0}}function Oa(e){return""+e}function qe(e,t){if(uo(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,Pn(e)),Oa(e)}function Lt(e,t){if(uo(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,Pn(e)),Oa(e)}function Bt(e){if(uo(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.",Pn(e)),Oa(e)}function Fs(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{as=t.inject(e),nn=t}catch(n){console.error("React instrumentation encountered an error: %o.",n)}return!!t.checkDCE}function ye(e){if(typeof eD=="function"&&tD(e),nn&&typeof nn.setStrictMode=="function")try{nn.setStrictMode(as,e)}catch(t){Ja||(Ja=!0,console.error("React instrumentation encountered an error: %o",t))}}function sa(e){return e>>>=0,e===0?32:31-(nD(e)/aD|0)|0}function Mn(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&261888;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 la(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var r=0,s=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~s,a!==0?r=Mn(a):(c&=d,c!==0?r=Mn(c):n||(n=d&~e,n!==0&&(r=Mn(n))))):(d=a&~s,d!==0?r=Mn(d):c!==0?r=Mn(c):n||(n=a&~e,n!==0&&(r=Mn(n)))),r===0?0:t!==0&&t!==r&&(t&s)===0&&(s=r&-r,n=t&-t,s>=n||s===32&&(n&4194048)!==0)?t:r}function en(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function co(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 Li(){var e=rf;return rf<<=1,(rf&62914560)===0&&(rf=4194304),e}function ua(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Cn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function jr(e,t,n,a,r,s){var c=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 d=e.entanglements,g=e.expirationTimes,T=e.hiddenUpdates;for(n=c&~n;0<n;){var z=31-ln(n),N=1<<z;d[z]=0,g[z]=-1;var D=T[z];if(D!==null)for(T[z]=null,z=0;z<D.length;z++){var Y=D[z];Y!==null&&(Y.lane&=-536870913)}n&=~N}a!==0&&fo(e,a,0),s!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=s&~(c&~t))}function fo(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ln(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function qo(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-ln(n),r=1<<a;r&t|e[a]&t&&(e[a]|=t),n&=~r}}function ca(e,t){var n=t&-t;return n=(n&42)!==0?1:_a(n),(n&(e.suspendedLanes|t))!==0?0:n}function _a(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 ho(e,t,n){if(Ka)for(e=e.pendingUpdatersLaneMap;0<n;){var a=31-ln(n),r=1<<a;e[a].add(t),n&=~r}}function Go(e,t){if(Ka)for(var n=e.pendingUpdatersLaneMap,a=e.memoizedUpdaters;0<t;){var r=31-ln(t);e=1<<r,r=n[r],0<r.size&&(r.forEach(function(s){var c=s.alternate;c!==null&&a.has(c)||a.add(s)}),r.clear()),t&=~e}}function Po(e){return e&=-e,Xn<e?Wa<e?(e&134217727)!==0?Eo:sf:Wa:Xn}function fa(){var e=Ie.p;return e!==0?e:(e=window.event,e===void 0?Eo:JS(e.type))}function E(e,t){var n=Ie.p;try{return Ie.p=e,t()}finally{Ie.p=n}}function k(e){delete e[It],delete e[un],delete e[dm],delete e[oD],delete e[iD]}function te(e){var t=e[It];if(t)return t;for(var n=e.parentNode;n;){if(t=n[li]||n[It]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=kS(e);e!==null;){if(n=e[It])return n;e=kS(e)}return t}e=n,n=e.parentNode}return null}function se(e){if(e=e[It]||e[li]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ge(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function _e(e){var t=e[h1];return t||(t=e[h1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Se(e){e[Vl]=!0}function He(e,t){Oe(e,t),Oe(e+"Capture",t)}function Oe(e,t){tr[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),tr[e]=t;var n=e.toLowerCase();for(hm[n]=e,e==="onDoubleClick"&&(hm.ondblclick=e),e=0;e<t.length;e++)p1.add(t[e])}function Ht(e,t){rD[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 Dn(e){return va.call(y1,e)?!0:va.call(m1,e)?!1:sD.test(e)?y1[e]=!0:(m1[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function zr(e,t,n){if(Dn(t)){if(!e.hasAttribute(t)){switch(typeof n){case"symbol":case"object":return n;case"function":return n;case"boolean":if(n===!1)return n}return n===void 0?void 0:null}return e=e.getAttribute(t),e===""&&n===!0?!0:(qe(n,t),e===""+n?n:e)}}function $o(e,t,n){if(Dn(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}qe(n,t),e.setAttribute(t,""+n)}}function Xo(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}qe(n,t),e.setAttribute(t,""+n)}}function da(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}qe(a,n),e.setAttributeNS(t,n,""+a)}}function rn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Bt(e),e;default:return""}}function Nr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zu(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var r=a.get,s=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(c){Bt(c),n=""+c,s.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(c){Bt(c),n=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ur(e){if(!e._valueTracker){var t=Nr(e)?"checked":"value";e._valueTracker=Zu(e,t,""+e[t])}}function Js(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Nr(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Bi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ze(e){return e.replace(lD,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function zt(e,t){t.checked===void 0||t.defaultChecked===void 0||v1||(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",jt()||"A component",t.type),v1=!0),t.value===void 0||t.defaultValue===void 0||g1||(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",jt()||"A component",t.type),g1=!0)}function ha(e,t,n,a,r,s,c,d){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?(qe(c,"type"),e.type=c):e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+rn(t)):e.value!==""+rn(t)&&(e.value=""+rn(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Qd(e,c,rn(t)):n!=null?Qd(e,c,rn(n)):a!=null&&e.removeAttribute("value"),r==null&&s!=null&&(e.defaultChecked=!!s),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?(qe(d,"name"),e.name=""+rn(d)):e.removeAttribute("name")}function Ks(e,t,n,a,r,s,c,d){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(qe(s,"type"),e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){Ur(e);return}n=n!=null?""+rn(n):"",t=t!=null?""+rn(t):n,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??r,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(qe(c,"name"),e.name=c),Ur(e)}function Qd(e,t,n){t==="number"&&Bi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function dv(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?Jp.Children.forEach(t.children,function(n){n==null||typeof n=="string"||typeof n=="number"||typeof n=="bigint"||S1||(S1=!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||T1||(T1=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||b1||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),b1=!0)}function hv(){var e=jt();return e?`
|
|
79
|
+
|
|
80
|
+
Check the render method of \``+e+"`.":""}function Vr(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&a&&(e[n].defaultSelected=!0)}else{for(n=""+rn(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,a&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function pv(e,t){for(e=0;e<E1.length;e++){var n=E1[e];if(t[n]!=null){var a=Nt(t[n]);t.multiple&&!a?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,hv()):!t.multiple&&a&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,hv())}}t.value===void 0||t.defaultValue===void 0||A1||(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"),A1=!0)}function mv(e,t){t.value===void 0||t.defaultValue===void 0||x1||(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",jt()||"A component"),x1=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function yv(e,t,n){if(t!=null&&(t=""+rn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+rn(n):""}function gv(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Nt(a)){if(1<a.length)throw Error("<textarea> can only have at most one child.");a=a[0]}n=a}n==null&&(n=""),t=n}n=rn(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Ur(e)}function vv(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?vv(e.children[0],t):e}function On(e){return" "+" ".repeat(e)}function kr(e){return"+ "+" ".repeat(e)}function Hi(e){return"- "+" ".repeat(e)}function bv(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 Ws(e,t){return w1.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 Iu(e,t,n){var a=120-2*n;if(t===null)return kr(n)+Ws(e,a)+`
|
|
81
|
+
`;if(typeof t=="string"){for(var r=0;r<t.length&&r<e.length&&t.charCodeAt(r)===e.charCodeAt(r);r++);return r>a-8&&10<r&&(e="..."+e.slice(r-8),t="..."+t.slice(r-8)),kr(n)+Ws(e,a)+`
|
|
82
|
+
`+Hi(n)+Ws(t,a)+`
|
|
83
|
+
`}return On(n)+Ws(e,a)+`
|
|
84
|
+
`}function Zd(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,n){return n})}function el(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(Nt(e))return"[...]";if(e.$$typeof===Za)return(t=J(e.type))?"<"+t+">":"<...>";var n=Zd(e);if(n==="Object"){n="",t-=2;for(var a in e)if(e.hasOwnProperty(a)){var r=JSON.stringify(a);if(r!=='"'+a+'"'&&(a=r),t-=a.length-2,r=el(e[a],15>t?t:15),t-=r.length,0>t){n+=n===""?"...":", ...";break}n+=(n===""?"":",")+a+":"+r}return"{"+n+"}"}return n;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function Lr(e,t){return typeof e!="string"||w1.test(e)?"{"+el(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function Id(e,t,n){var a=120-n.length-e.length,r=[],s;for(s in t)if(t.hasOwnProperty(s)&&s!=="children"){var c=Lr(t[s],120-n.length-s.length-1);a-=s.length+c.length+2,r.push(s+"="+c)}return r.length===0?n+"<"+e+`>
|
|
85
|
+
`:0<a?n+"<"+e+" "+r.join(" ")+`>
|
|
86
|
+
`:n+"<"+e+`
|
|
87
|
+
`+n+" "+r.join(`
|
|
88
|
+
`+n+" ")+`
|
|
89
|
+
`+n+`>
|
|
90
|
+
`}function aM(e,t,n){var a="",r=Be({},t),s;for(s in e)if(e.hasOwnProperty(s)){delete r[s];var c=120-2*n-s.length-2,d=el(e[s],c);t.hasOwnProperty(s)?(c=el(t[s],c),a+=kr(n)+s+": "+d+`
|
|
91
|
+
`,a+=Hi(n)+s+": "+c+`
|
|
92
|
+
`):a+=kr(n)+s+": "+d+`
|
|
93
|
+
`}for(var g in r)r.hasOwnProperty(g)&&(e=el(r[g],120-2*n-g.length-2),a+=Hi(n)+g+": "+e+`
|
|
94
|
+
`);return a}function oM(e,t,n,a){var r="",s=new Map;for(T in n)n.hasOwnProperty(T)&&s.set(T.toLowerCase(),T);if(s.size===1&&s.has("children"))r+=Id(e,t,On(a));else{for(var c in t)if(t.hasOwnProperty(c)&&c!=="children"){var d=120-2*(a+1)-c.length-1,g=s.get(c.toLowerCase());if(g!==void 0){s.delete(c.toLowerCase());var T=t[c];g=n[g];var z=Lr(T,d);d=Lr(g,d),typeof T=="object"&&T!==null&&typeof g=="object"&&g!==null&&Zd(T)==="Object"&&Zd(g)==="Object"&&(2<Object.keys(T).length||2<Object.keys(g).length||-1<z.indexOf("...")||-1<d.indexOf("..."))?r+=On(a+1)+c+`={{
|
|
95
|
+
`+aM(T,g,a+2)+On(a+1)+`}}
|
|
96
|
+
`:(r+=kr(a+1)+c+"="+z+`
|
|
97
|
+
`,r+=Hi(a+1)+c+"="+d+`
|
|
98
|
+
`)}else r+=On(a+1)+c+"="+Lr(t[c],d)+`
|
|
99
|
+
`}s.forEach(function(N){if(N!=="children"){var D=120-2*(a+1)-N.length-1;r+=Hi(a+1)+N+"="+Lr(n[N],D)+`
|
|
100
|
+
`}}),r=r===""?On(a)+"<"+e+`>
|
|
101
|
+
`:On(a)+"<"+e+`
|
|
102
|
+
`+r+On(a)+`>
|
|
103
|
+
`}return e=n.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(s="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(s=""+t),r+=Iu(s,""+e,a+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(r=e==null?r+Iu(""+t,null,a+1):r+Iu(""+t,void 0,a+1)),r}function Sv(e,t){var n=bv(e);if(n===null){for(n="",e=e.child;e;)n+=Sv(e,t),e=e.sibling;return n}return On(t)+"<"+n+`>
|
|
104
|
+
`}function Fd(e,t){var n=vv(e,t);if(n!==e&&(e.children.length!==1||e.children[0]!==n))return On(t)+`...
|
|
105
|
+
`+Fd(n,t+1);n="";var a=e.fiber._debugInfo;if(a)for(var r=0;r<a.length;r++){var s=a[r].name;typeof s=="string"&&(n+=On(t)+"<"+s+`>
|
|
106
|
+
`,t++)}if(a="",r=e.fiber.pendingProps,e.fiber.tag===6)a=Iu(r,e.serverProps,t),t++;else if(s=bv(e.fiber),s!==null)if(e.serverProps===void 0){a=t;var c=120-2*a-s.length-2,d="";for(T in r)if(r.hasOwnProperty(T)&&T!=="children"){var g=Lr(r[T],15);if(c-=T.length+g.length+2,0>c){d+=" ...";break}d+=" "+T+"="+g}a=On(a)+"<"+s+d+`>
|
|
107
|
+
`,t++}else e.serverProps===null?(a=Id(s,r,kr(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."):(a=oM(s,r,e.serverProps,t),t++);var T="";for(r=e.fiber.child,s=0;r&&s<e.children.length;)c=e.children[s],c.fiber===r?(T+=Fd(c,t),s++):T+=Sv(r,t),r=r.sibling;for(r&&0<e.children.length&&(T+=On(t)+`...
|
|
108
|
+
`),r=e.serverTail,e.serverProps===null&&t--,e=0;e<r.length;e++)s=r[e],T=typeof s=="string"?T+(Hi(t)+Ws(s,120-2*t)+`
|
|
109
|
+
`):T+Id(s.type,s.props,Hi(t));return n+a+T}function Jd(e){try{return`
|
|
110
|
+
|
|
111
|
+
`+Fd(e,0)}catch{return""}}function Tv(e,t,n){for(var a=t,r=null,s=0;a;)a===e&&(s=0),r={fiber:a,children:r!==null?[r]:[],serverProps:a===t?n:a===e?null:void 0,serverTail:[],distanceFromLeaf:s},s++,a=a.return;return r!==null?Jd(r).replaceAll(/^[+-]/gm,">"):""}function Av(e,t){var n=Be({},e||M1),a={tag:t};return R1.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),cD.indexOf(t)!==-1&&(n.pTagInButtonScope=null),uD.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=a,t==="form"&&(n.formTag=a),t==="a"&&(n.aTagInScope=a),t==="button"&&(n.buttonTagInScope=a),t==="nobr"&&(n.nobrTagInScope=a),t==="p"&&(n.pTagInButtonScope=a),t==="li"&&(n.listItemTagAutoclosing=a),(t==="dd"||t==="dt")&&(n.dlItemTagAutoclosing=a),t==="#document"||t==="html"?n.containerTagInScope=null:n.containerTagInScope||(n.containerTagInScope=a),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?n.implicitRootScope===!0&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function Ev(e,t,n){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";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 fD.indexOf(t)===-1;case"caption":case"col":case"colgroup":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 iM(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 xv(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 Kd(e,t){t=t||M1;var n=t.current;if(t=(n=Ev(e,n&&n.tag,t.implicitRootScope)?null:n)?null:iM(e,t),t=n||t,!t)return!0;var a=t.tag;if(t=String(!!n)+"|"+e+"|"+a,lf[t])return!1;lf[t]=!0;var r=(t=Ln)?xv(t.return,a):null,s=t!==null&&r!==null?Tv(r,t,null):"",c="<"+e+">";return n?(n="",a==="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
|
|
112
|
+
This will cause a hydration error.%s`,c,a,n,s)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
113
|
+
This will cause a hydration error.%s`,c,a,s),t&&(e=t.return,r===null||e===null||r===e&&e._debugOwner===t._debugOwner||he(r,function(){console.error(`<%s> cannot contain a nested %s.
|
|
114
|
+
See this log for the ancestor stack trace.`,a,c)})),!1}function Fu(e,t,n){if(n||Ev("#text",t,!1))return!0;if(n="#text|"+t,lf[n])return!1;lf[n]=!0;var a=(n=Ln)?xv(n,t):null;return n=n!==null&&a!==null?Tv(a,n,n.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
115
|
+
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.
|
|
116
|
+
This will cause a hydration error.%s`,t,n),!1}function tl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}function rM(e){return e.replace(pD,function(t,n){return n.toUpperCase()})}function wv(e,t,n){var a=t.indexOf("--")===0;a||(-1<t.indexOf("-")?os.hasOwnProperty(t)&&os[t]||(os[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,rM(t.replace(hD,"ms-")))):dD.test(t)?os.hasOwnProperty(t)&&os[t]||(os[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!O1.test(n)||mm.hasOwnProperty(n)&&mm[n]||(mm[n]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(O1,""))),typeof n=="number"&&(isNaN(n)?_1||(_1=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||j1||(j1=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||z1.has(t)?t==="float"?e.cssFloat=n:(Lt(n,t),e[t]=(""+n).trim()):e[t]=n+"px"}function Rv(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 a={};if(n){for(var r in n)if(n.hasOwnProperty(r)&&!t.hasOwnProperty(r))for(var s=pm[r]||[r],c=0;c<s.length;c++)a[s[c]]=r}for(var d in t)if(t.hasOwnProperty(d)&&(!n||n[d]!==t[d]))for(r=pm[d]||[d],s=0;s<r.length;s++)a[r[s]]=d;d={};for(var g in t)for(r=pm[g]||[g],s=0;s<r.length;s++)d[r[s]]=g;g={};for(var T in a)if(r=a[T],(s=d[T])&&r!==s&&(c=r+","+s,!g[c])){g[c]=!0,c=console;var z=t[r];c.error.call(c,"%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.",z==null||typeof z=="boolean"||z===""?"Removing":"Updating",r,s)}}for(var N in n)!n.hasOwnProperty(N)||t!=null&&t.hasOwnProperty(N)||(N.indexOf("--")===0?e.setProperty(N,""):N==="float"?e.cssFloat="":e[N]="");for(var D in t)T=t[D],t.hasOwnProperty(D)&&n[D]!==T&&wv(e,D,T)}else for(a in t)t.hasOwnProperty(a)&&wv(e,a,t[a])}function nl(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 Mv(e){return mD.get(e)||e}function sM(e,t){if(va.call(rs,t)&&rs[t])return!0;if(gD.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=N1.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),rs[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),rs[t]=!0}if(yD.test(t)){if(e=t.toLowerCase(),e=N1.hasOwnProperty(e)?e:null,e==null)return rs[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),rs[t]=!0)}return!0}function lM(e,t){var n=[],a;for(a in t)sM(e,a)||n.push(a);t=n.map(function(r){return"`"+r+"`"}).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 uM(e,t,n,a){if(va.call(cn,t)&&cn[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="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."),cn[t]=!0;if(typeof n=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(a!=null){if(e=a.possibleRegistrationNames,a.registrationNameDependencies.hasOwnProperty(t))return!0;if(a=e.hasOwnProperty(r)?e[r]:null,a!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,a),cn[t]=!0;if(V1.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),cn[t]=!0}else if(V1.test(t))return vD.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),cn[t]=!0;if(bD.test(t)||SD.test(t))return!0;if(r==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),cn[t]=!0;if(r==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),cn[t]=!0;if(r==="is"&&n!==null&&n!==void 0&&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),cn[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),cn[t]=!0;if(cf.hasOwnProperty(r)){if(r=cf[r],r!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,r),cn[t]=!0}else if(t!==r)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,r),cn[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"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 r=t.toLowerCase().slice(0,5),r==="data-"||r==="aria-"?!0:(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`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),cn[t]=!0)}case"function":case"symbol":return cn[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"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),cn[t]=!0}}return!0}function cM(e,t,n){var a=[],r;for(r in t)uM(e,r,t[r],n)||a.push(r);t=a.map(function(s){return"`"+s+"`"}).join(", "),a.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<a.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 al(e){return TD.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function po(){}function Wd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function Cv(e){var t=se(e);if(t&&(e=t.stateNode)){var n=e[un]||null;e:switch(e=t.stateNode,t.type){case"input":if(ha(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(qe(t,"name"),n=n.querySelectorAll('input[name="'+ze(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var r=a[un]||null;if(!r)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");ha(a,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Js(a)}break e;case"textarea":yv(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Vr(e,!!n.multiple,t,!1)}}}function Dv(e,t,n){if(ym)return e(t,n);ym=!0;try{var a=e(t);return a}finally{if(ym=!1,(ss!==null||ls!==null)&&(Zr(),ss&&(t=ss,e=ls,ls=ss=null,Cv(t),e)))for(t=0;t<e.length;t++)Cv(e[t])}}function ol(e,t){var n=e.stateNode;if(n===null)return null;var a=n[un]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;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 Ov(){if(ff)return ff;var e,t=vm,n=t.length,a,r="value"in ui?ui.value:ui.textContent,s=r.length;for(e=0;e<n&&t[e]===r[e];e++);var c=n-e;for(a=1;a<=c&&t[n-a]===r[s-a];a++);return ff=r.slice(e,1<a?1-a:void 0)}function Ju(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 Ku(){return!0}function _v(){return!1}function bn(e){function t(n,a,r,s,c){this._reactName=n,this._targetInst=r,this.type=a,this.nativeEvent=s,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(n=e[d],this[d]=n?n(s):s[d]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ku:_v,this.isPropagationStopped=_v,this}return Be(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ku)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ku)},persist:function(){},isPersistent:Ku}),t}function fM(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ND[e])?!!t[e]:!1}function eh(){return fM}function jv(e,t){switch(e){case"keyup":return XD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==H1;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function dM(e,t){switch(e){case"compositionend":return zv(t);case"keypress":return t.which!==q1?null:(P1=!0,G1);case"textInput":return e=t.data,e===G1&&P1?null:e;default:return null}}function hM(e,t){if(us)return e==="compositionend"||!Am&&jv(e,t)?(e=Ov(),ff=vm=ui=null,us=!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 Y1&&t.locale!=="ko"?null:t.data;default:return null}}function Nv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ZD[e.type]:t==="textarea"}function pM(e){if(!eo)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function Uv(e,t,n,a){ss?ls?ls.push(a):ls=[a]:ss=a,t=Pc(t,"onChange"),0<t.length&&(n=new df("onChange","change",null,n,a),e.push({event:n,listeners:t}))}function mM(e){gS(e,0)}function Wu(e){var t=ge(e);if(Js(t))return e}function Vv(e,t){if(e==="change")return t}function kv(){ql&&(ql.detachEvent("onpropertychange",Lv),Gl=ql=null)}function Lv(e){if(e.propertyName==="value"&&Wu(Gl)){var t=[];Uv(t,Gl,e,Wd(e)),Dv(mM,t)}}function yM(e,t,n){e==="focusin"?(kv(),ql=t,Gl=n,ql.attachEvent("onpropertychange",Lv)):e==="focusout"&&kv()}function gM(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wu(Gl)}function vM(e,t){if(e==="click")return Wu(t)}function bM(e,t){if(e==="input"||e==="change")return Wu(t)}function SM(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function il(e,t){if(fn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var r=n[a];if(!va.call(t,r)||!fn(e[r],t[r]))return!1}return!0}function Bv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hv(e,t){var n=Bv(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Bv(n)}}function Yv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qv(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Bi(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=Bi(e.document)}return t}function th(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 Gv(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xm||cs==null||cs!==Bi(a)||(a=cs,"selectionStart"in a&&th(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Pl&&il(Pl,a)||(Pl=a,a=Pc(Em,"onSelect"),0<a.length&&(t=new df("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=cs)))}function Yi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function qi(e){if(wm[e])return wm[e];if(!fs[e])return e;var t=fs[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in X1)return wm[e]=t[n];return e}function pa(e,t){J1.set(e,t),He(t,[e])}function TM(e){for(var t=pf,n=0;n<e.length;n++){var a=e[n];if(typeof a=="object"&&a!==null)if(Nt(a)&&a.length===2&&typeof a[0]=="string"){if(t!==pf&&t!==Om)return Cm;t=Om}else return Cm;else{if(typeof a=="function"||typeof a=="string"&&50<a.length||t!==pf&&t!==Dm)return Cm;t=Dm}}return t}function nh(e,t,n,a){for(var r in e)va.call(e,r)&&r[0]!=="_"&&ja(r,e[r],t,n,a)}function ja(e,t,n,a,r){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Za){var s=J(t.type)||"…",c=t.key;t=t.props;var d=Object.keys(t),g=d.length;if(c==null&&g===0){t="<"+s+" />";break}if(3>a||g===1&&d[0]==="children"&&c==null){t="<"+s+" … />";break}n.push([r+" ".repeat(a)+e,"<"+s]),c!==null&&ja("key",c,n,a+1,r),e=!1;for(var T in t)T==="children"?t.children!=null&&(!Nt(t.children)||0<t.children.length)&&(e=!0):va.call(t,T)&&T[0]!=="_"&&ja(T,t[T],n,a+1,r);n.push(["",e?">…</"+s+">":"/>"]);return}if(s=Object.prototype.toString.call(t),s=s.slice(8,s.length-1),s==="Array"){if(T=TM(t),T===Dm||T===pf){t=JSON.stringify(t);break}else if(T===Om){for(n.push([r+" ".repeat(a)+e,""]),e=0;e<t.length;e++)s=t[e],ja(s[0],s[1],n,a+1,r);return}}if(s==="Promise"){if(t.status==="fulfilled"){if(s=n.length,ja(e,t.value,n,a,r),n.length>s){n=n[s],n[1]="Promise<"+(n[1]||"Object")+">";return}}else if(t.status==="rejected"&&(s=n.length,ja(e,t.reason,n,a,r),n.length>s)){n=n[s],n[1]="Rejected Promise<"+n[1]+">";return}n.push([" ".repeat(a)+e,"Promise"]);return}s==="Object"&&(T=Object.getPrototypeOf(t))&&typeof T.constructor=="function"&&(s=T.constructor.name),n.push([r+" ".repeat(a)+e,s==="Object"?3>a?"":"…":s]),3>a&&nh(t,n,a+1,r);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===tO?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}n.push([r+" ".repeat(a)+e,t])}function Pv(e,t,n,a){var r=!0;for(c in e)c in t||(n.push([mf+" ".repeat(a)+c,"…"]),r=!1);for(var s in t)if(s in e){var c=e[s],d=t[s];if(c!==d){if(a===0&&s==="children")r=" ".repeat(a)+s,n.push([mf+r,"…"],[yf+r,"…"]);else{if(!(3<=a)){if(typeof c=="object"&&typeof d=="object"&&c!==null&&d!==null&&c.$$typeof===d.$$typeof)if(d.$$typeof===Za){if(c.type===d.type&&c.key===d.key){c=J(d.type)||"…",r=" ".repeat(a)+s,c="<"+c+" … />",n.push([mf+r,c],[yf+r,c]),r=!1;continue}}else{var g=Object.prototype.toString.call(c),T=Object.prototype.toString.call(d);if(g===T&&(T==="[object Object]"||T==="[object Array]")){g=[eT+" ".repeat(a)+s,T==="[object Array]"?"Array":""],n.push(g),T=n.length,Pv(c,d,n,a+1)?T===n.length&&(g[1]="Referentially unequal but deeply equal objects. Consider memoization."):r=!1;continue}}else if(typeof c=="function"&&typeof d=="function"&&c.name===d.name&&c.length===d.length&&(g=Function.prototype.toString.call(c),T=Function.prototype.toString.call(d),g===T)){c=d.name===""?"() => {}":d.name+"() {}",n.push([eT+" ".repeat(a)+s,c+" Referentially unequal function closure. Consider memoization."]);continue}}ja(s,c,n,a,mf),ja(s,d,n,a,yf)}r=!1}}else n.push([yf+" ".repeat(a)+s,"…"]),r=!1;return r}function ma(e){Xe=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function za(e,t,n,a){lt&&(fi.start=t,fi.end=n,xo.color="warning",xo.tooltipText=a,xo.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,a,fi)):performance.measure(a,fi))}function ec(e,t,n){za(e,t,n,"Reconnect")}function tc(e,t,n,a,r){var s=q(e);if(s!==null&<){var c=e.alternate,d=e.actualDuration;if(c===null||c.child!==e.child)for(var g=e.child;g!==null;g=g.sibling)d-=g.actualDuration;a=.5>d?a?"tertiary-light":"primary-light":10>d?a?"tertiary":"primary":100>d?a?"tertiary-dark":"primary-dark":"error";var T=e.memoizedProps;d=e._debugTask,T!==null&&c!==null&&c.memoizedProps!==T?(g=[nO],T=Pv(c.memoizedProps,T,g,0),1<g.length&&(T&&!ci&&(c.lanes&r)===0&&100<e.actualDuration?(ci=!0,g[0]=aO,xo.color="warning",xo.tooltipText=tT):(xo.color=a,xo.tooltipText=s),xo.properties=g,fi.start=t,fi.end=n,d!=null?d.run(performance.measure.bind(performance,""+s,fi)):performance.measure(""+s,fi))):d!=null?d.run(console.timeStamp.bind(console,s,t,n,Qn,void 0,a)):console.timeStamp(s,t,n,Qn,void 0,a)}}function ah(e,t,n,a){if(lt){var r=q(e);if(r!==null){for(var s=null,c=[],d=0;d<a.length;d++){var g=a[d];s==null&&g.source!==null&&(s=g.source._debugTask),g=g.value,c.push(["Error",typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g)])}e.key!==null&&ja("key",e.key,c,0,""),e.memoizedProps!==null&&nh(e.memoizedProps,c,0,""),s==null&&(s=e._debugTask),e={start:t,end:n,detail:{devtools:{color:"error",track:Qn,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:c}}},s?s.run(performance.measure.bind(performance,""+r,e)):performance.measure(""+r,e)}}}function Na(e,t,n,a,r){if(r!==null){if(lt){var s=q(e);if(s!==null){a=[];for(var c=0;c<r.length;c++){var d=r[c].value;a.push(["Error",typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d)])}e.key!==null&&ja("key",e.key,a,0,""),e.memoizedProps!==null&&nh(e.memoizedProps,a,0,""),t={start:t,end:n,detail:{devtools:{color:"error",track:Qn,tooltipText:"A lifecycle or effect errored",properties:a}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,""+s,t)):performance.measure(""+s,t)}}}else s=q(e),s!==null&<&&(r=1>a?"secondary-light":100>a?"secondary":500>a?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,s,t,n,Qn,void 0,r)):console.timeStamp(s,t,n,Qn,void 0,r))}function AM(e,t,n,a){if(lt&&!(t<=e)){var r=(n&738197653)===n?"tertiary-dark":"primary-dark";n=(n&536870912)===n?"Prepared":(n&201326741)===n?"Hydrated":"Render",a?a.run(console.timeStamp.bind(console,n,e,t,Xe,Pe,r)):console.timeStamp(n,e,t,Xe,Pe,r)}}function $v(e,t,n,a){!lt||t<=e||(n=(n&738197653)===n?"tertiary-dark":"primary-dark",a?a.run(console.timeStamp.bind(console,"Prewarm",e,t,Xe,Pe,n)):console.timeStamp("Prewarm",e,t,Xe,Pe,n))}function Xv(e,t,n,a){!lt||t<=e||(n=(n&738197653)===n?"tertiary-dark":"primary-dark",a?a.run(console.timeStamp.bind(console,"Suspended",e,t,Xe,Pe,n)):console.timeStamp("Suspended",e,t,Xe,Pe,n))}function EM(e,t,n,a,r,s){if(lt&&!(t<=e)){n=[];for(var c=0;c<a.length;c++){var d=a[c].value;n.push(["Recoverable Error",typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:Xe,trackGroup:Pe,tooltipText:r?"Hydration Failed":"Recovered after Error",properties:n}}},s?s.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function oh(e,t,n,a){!lt||t<=e||(a?a.run(console.timeStamp.bind(console,"Errored",e,t,Xe,Pe,"error")):console.timeStamp("Errored",e,t,Xe,Pe,"error"))}function xM(e,t,n,a){!lt||t<=e||(a?a.run(console.timeStamp.bind(console,n,e,t,Xe,Pe,"secondary-light")):console.timeStamp(n,e,t,Xe,Pe,"secondary-light"))}function Qv(e,t,n,a,r){if(lt&&!(t<=e)){for(var s=[],c=0;c<n.length;c++){var d=n[c].value;s.push(["Error",typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d)])}e={start:e,end:t,detail:{devtools:{color:"error",track:Xe,trackGroup:Pe,tooltipText:a?"Remaining Effects Errored":"Commit Errored",properties:s}}},r?r.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function ih(e,t,n){!lt||t<=e||console.timeStamp("Animating",e,t,Xe,Pe,"secondary-dark")}function nc(){for(var e=ds,t=_m=ds=0;t<e;){var n=Zn[t];Zn[t++]=null;var a=Zn[t];Zn[t++]=null;var r=Zn[t];Zn[t++]=null;var s=Zn[t];if(Zn[t++]=null,a!==null&&r!==null){var c=a.pending;c===null?r.next=r:(r.next=c.next,c.next=r),a.pending=r}s!==0&&Zv(n,r,s)}}function ac(e,t,n,a){Zn[ds++]=e,Zn[ds++]=t,Zn[ds++]=n,Zn[ds++]=a,_m|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function rh(e,t,n,a){return ac(e,t,n,a),oc(e)}function tn(e,t){return ac(e,null,null,t),oc(e)}function Zv(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var r=!1,s=e.return;s!==null;)s.childLanes|=n,a=s.alternate,a!==null&&(a.childLanes|=n),s.tag===22&&(e=s.stateNode,e===null||e._visibility&$l||(r=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,r&&t!==null&&(r=31-ln(n),e=s.hiddenUpdates,a=e[r],a===null?e[r]=[t]:a.push(t),t.lane=n|536870912),s):null}function oc(e){if(vu>bO)throw vr=vu=0,bu=cy=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.");vr>SO&&(vr=0,bu=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)!==0&&cS(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&(t.flags&4098)!==0&&cS(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function Gi(e){if(In===null)return e;var t=In(e);return t===void 0?e:t.current}function sh(e){if(In===null)return e;var t=In(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=Gi(e.render),e.render!==t)?(t={$$typeof:zl,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Iv(e,t){if(In===null)return!1;var n=e.elementType;t=t.type;var a=!1,r=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(a=!0);break;case 0:(typeof t=="function"||r===kn)&&(a=!0);break;case 11:(r===zl||r===kn)&&(a=!0);break;case 14:case 15:(r===tf||r===kn)&&(a=!0);break;default:return!1}return!!(a&&(e=In(n),e!==void 0&&e===In(t)))}function Fv(e){In!==null&&typeof WeakSet=="function"&&(hs===null&&(hs=new WeakSet),hs.add(e))}function Jv(e,t,n){do{var a=e,r=a.alternate,s=a.child,c=a.sibling,d=a.tag;a=a.type;var g=null;switch(d){case 0:case 15:case 1:g=a;break;case 11:g=a.render}if(In===null)throw Error("Expected resolveFamily to be set during hot reload.");var T=!1;if(a=!1,g!==null&&(g=In(g),g!==void 0&&(n.has(g)?a=!0:t.has(g)&&(d===1?a=!0:T=!0))),hs!==null&&(hs.has(e)||r!==null&&hs.has(r))&&(a=!0),a&&(e._debugNeedsRemount=!0),(a||T)&&(r=tn(e,2),r!==null&&yt(r,e,2)),s===null||a||Jv(s,t,n),c===null)break;e=c}while(!0)}function wM(e,t,n,a){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=a,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,nT||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function lh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mo(e,t){var n=e.alternate;switch(n===null?(n=y(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&65011712,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:n.type=Gi(e.type);break;case 1:n.type=Gi(e.type);break;case 11:n.type=sh(e.type)}return n}function Kv(e,t){e.flags&=65011714;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 uh(e,t,n,a,r,s){var c=0,d=e;if(typeof e=="function")lh(e)&&(c=1),d=Gi(d);else if(typeof e=="string")c=H(),c=NC(e,n,c)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case nm:return t=y(31,n,t,r),t.elementType=nm,t.lanes=s,t;case ts:return Pi(n.children,r,s,t);case ef:c=8,r|=an,r|=ba;break;case Kp:return e=n,a=r,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=y(12,e,t,a|Ne),t.elementType=Kp,t.lanes=s,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case em:return t=y(13,n,t,r),t.elementType=em,t.lanes=s,t;case tm:return t=y(19,n,t,r),t.elementType=tm,t.lanes=s,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ia:c=10;break e;case Wp:c=9;break e;case zl:c=11,d=sh(d);break e;case tf:c=14;break e;case kn:c=16,d=null;break e}d="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(d+=" 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?n="null":Nt(e)?n="array":e!==void 0&&e.$$typeof===Za?(n="<"+(J(e.type)||"Unknown")+" />",d=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,(c=a?I(a):null)&&(d+=`
|
|
117
|
+
|
|
118
|
+
Check the render method of \``+c+"`."),c=29,n=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(n+"."+d)),d=null}return t=y(c,n,t,r),t.elementType=e,t.type=d,t.lanes=s,t._debugOwner=a,t}function ic(e,t,n){return t=uh(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Pi(e,t,n,a){return e=y(7,e,a,t),e.lanes=n,e}function ch(e,t,n){return e=y(6,e,null,t),e.lanes=n,e}function Wv(e){var t=y(18,null,null,Me);return t.stateNode=e,t}function fh(e,t,n){return t=y(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _n(e,t){if(typeof e=="object"&&e!==null){var n=jm.get(e);return n!==void 0?n:(t={value:e,source:t,stack:we(t)},jm.set(e,t),t)}return{value:e,source:t,stack:we(t)}}function yo(e,t){Qo(),ps[ms++]=Xl,ps[ms++]=gf,gf=e,Xl=t}function e0(e,t,n){Qo(),Fn[Jn++]=Ro,Fn[Jn++]=Mo,Fn[Jn++]=ar,ar=e;var a=Ro;e=Mo;var r=32-ln(a)-1;a&=~(1<<r),n+=1;var s=32-ln(t)+r;if(30<s){var c=r-r%5;s=(a&(1<<c)-1).toString(32),a>>=c,r-=c,Ro=1<<32-ln(t)+r|n<<r|a,Mo=s+e}else Ro=1<<s|n<<r|a,Mo=e}function dh(e){Qo(),e.return!==null&&(yo(e,1),e0(e,1,0))}function hh(e){for(;e===gf;)gf=ps[--ms],ps[ms]=null,Xl=ps[--ms],ps[ms]=null;for(;e===ar;)ar=Fn[--Jn],Fn[Jn]=null,Mo=Fn[--Jn],Fn[Jn]=null,Ro=Fn[--Jn],Fn[Jn]=null}function t0(){return Qo(),ar!==null?{id:Ro,overflow:Mo}:null}function n0(e,t){Qo(),Fn[Jn++]=Ro,Fn[Jn++]=Mo,Fn[Jn++]=ar,Ro=t.id,Mo=t.overflow,ar=e}function Qo(){Ye||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function $i(e,t){if(e.return===null){if(Bn===null)Bn={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Bn.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Bn.distanceFromLeaf>t&&(Bn.distanceFromLeaf=t)}return Bn}var n=$i(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 a0(){Ye&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function rc(e,t){to||(e=$i(e,0),e.serverProps=null,t!==null&&(t=US(t),e.serverTail.push(t)))}function Zo(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,n="",a=Bn;throw a!==null&&(Bn=null,n=Jd(a)),rl(_n(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:
|
|
119
|
+
|
|
120
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
121
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
122
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
123
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
124
|
+
- Invalid HTML tag nesting.
|
|
125
|
+
|
|
126
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
127
|
+
|
|
128
|
+
https://react.dev/link/hydration-mismatch`+n),e)),zm}function o0(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[It]=e,t[un]=a,zp(n,a),n){case"dialog":Ge("cancel",t),Ge("close",t);break;case"iframe":case"object":case"embed":Ge("load",t);break;case"video":case"audio":for(n=0;n<Su.length;n++)Ge(Su[n],t);break;case"source":Ge("error",t);break;case"img":case"image":case"link":Ge("error",t),Ge("load",t);break;case"details":Ge("toggle",t);break;case"input":Ht("input",a),Ge("invalid",t),zt(t,a),Ks(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"option":dv(t,a);break;case"select":Ht("select",a),Ge("invalid",t),pv(t,a);break;case"textarea":Ht("textarea",a),Ge("invalid",t),mv(t,a),gv(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||TS(t.textContent,n)?(a.popover!=null&&(Ge("beforetoggle",t),Ge("toggle",t)),a.onScroll!=null&&Ge("scroll",t),a.onScrollEnd!=null&&Ge("scrollend",t),a.onClick!=null&&(t.onclick=po),t=!0):t=!1,t||Zo(e,!0)}function i0(e){for(Ft=e.return;Ft;)switch(Ft.tag){case 5:case 31:case 13:Kn=!1;return;case 27:case 3:Kn=!0;return;default:Ft=Ft.return}}function Br(e){if(e!==Ft)return!1;if(!Ye)return i0(e),Ye=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Lp(e.type,e.memoizedProps)),n=!n),n&&ut){for(n=ut;n;){var a=$i(e,0),r=US(n);a.serverTail.push(r),n=r.type==="Suspense"?qp(n):Vn(n.nextSibling)}Zo(e)}if(i0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");ut=qp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");ut=qp(e)}else t===27?(t=ut,oi(e.type)?(e=Ay,Ay=null,ut=e):ut=t):ut=Ft?Vn(e.stateNode.nextSibling):null;return!0}function Xi(){ut=Ft=null,to=Ye=!1}function ph(){var e=hi;return e!==null&&(mn===null?mn=e:mn.push.apply(mn,e),hi=null),e}function rl(e){hi===null?hi=[e]:hi.push(e)}function mh(){var e=Bn;if(e!==null){Bn=null;for(var t=Jd(e);0<e.children.length;)e=e.children[0];he(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:
|
|
129
|
+
|
|
130
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
131
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
132
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
133
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
134
|
+
- Invalid HTML tag nesting.
|
|
135
|
+
|
|
136
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
137
|
+
|
|
138
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function sc(){ys=vf=null,gs=!1}function Io(e,t,n){W(Nm,t._currentValue,e),t._currentValue=n,W(Um,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==oT&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=oT}function go(e,t){e._currentValue=Nm.current;var n=Um.current;V(Um,t),e._currentRenderer=n,V(Nm,t)}function yh(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.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 gh(e,t,n,a){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var s=r.dependencies;if(s!==null){var c=r.child;s=s.firstContext;e:for(;s!==null;){var d=s;s=r;for(var g=0;g<t.length;g++)if(d.context===t[g]){s.lanes|=n,d=s.alternate,d!==null&&(d.lanes|=n),yh(s.return,n,e),a||(c=null);break e}s=d.next}}else if(r.tag===18){if(c=r.return,c===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");c.lanes|=n,s=c.alternate,s!==null&&(s.lanes|=n),yh(c,n,e),c=null}else c=r.child;if(c!==null)c.return=r;else for(c=r;c!==null;){if(c===e){c=null;break}if(r=c.sibling,r!==null){r.return=c.return,c=r;break}c=c.return}r=c}}function Hr(e,t,n,a){e=null;for(var r=t,s=!1;r!==null;){if(!s){if((r.flags&524288)!==0)s=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var c=r.alternate;if(c===null)throw Error("Should have a current fiber. This is a bug in React.");if(c=c.memoizedProps,c!==null){var d=r.type;fn(r.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(r===nf.current){if(c=r.alternate,c===null)throw Error("Should have a current fiber. This is a bug in React.");c.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(wu):e=[wu])}r=r.return}e!==null&&gh(t,e,n,a),t.flags|=262144}function lc(e){for(e=e.firstContext;e!==null;){if(!fn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Qi(e){vf=e,ys=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ft(e){return gs&&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()."),r0(vf,e)}function uc(e,t){return vf===null&&Qi(e),r0(e,t)}function r0(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ys===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().");ys=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else ys=ys.next=t;return n}function vh(){return{controller:new rO,data:new Map,refCount:0}}function Zi(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 sl(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&&sO(lO,function(){e.controller.abort()})}function Ua(e,t,n){(e&127)!==0?0>no&&(no=wt(),Zl=bf(t),Vm=t,n!=null&&(km=q(n)),(Qe&(Vt|qn))!==$t&&(gt=!0,mi=Ql),e=Cl(),t=Ml(),e!==vs||t!==Il?vs=-1.1:t!==null&&(mi=Ql),rr=e,Il=t):(e&4194048)!==0&&0>Wn&&(Wn=wt(),Fl=bf(t),iT=t,n!=null&&(rT=q(n)),0>_o)&&(e=Cl(),t=Ml(),(e!==gi||t!==sr)&&(gi=-1.1),yi=e,sr=t)}function RM(e){if(0>no){no=wt(),Zl=e._debugTask!=null?e._debugTask:null,(Qe&(Vt|qn))!==$t&&(mi=Ql);var t=Cl(),n=Ml();t!==vs||n!==Il?vs=-1.1:n!==null&&(mi=Ql),rr=t,Il=n}0>Wn&&(Wn=wt(),Fl=e._debugTask!=null?e._debugTask:null,0>_o)&&(e=Cl(),t=Ml(),(e!==gi||t!==sr)&&(gi=-1.1),yi=e,sr=t)}function vo(){var e=or;return or=0,e}function cc(e){var t=or;return or=e,t}function ll(e){var t=or;return or+=e,t}function fc(){Re=xe=-1.1}function jn(){var e=xe;return xe=-1.1,e}function zn(e){0<=e&&(xe=e)}function Va(){var e=pt;return pt=-0,e}function ka(e){0<=e&&(pt=e)}function La(){var e=dt;return dt=null,e}function Ba(){var e=gt;return gt=!1,e}function bh(e){dn=wt(),0>e.actualStartTime&&(e.actualStartTime=dn)}function Sh(e){if(0<=dn){var t=wt()-dn;e.actualDuration+=t,e.selfBaseDuration=t,dn=-1}}function s0(e){if(0<=dn){var t=wt()-dn;e.actualDuration+=t,dn=-1}}function Ha(){if(0<=dn){var e=wt(),t=e-dn;dn=-1,or+=t,pt+=t,Re=e}}function l0(e){dt===null&&(dt=[]),dt.push(e),Do===null&&(Do=[]),Do.push(e)}function Ya(){dn=wt(),0>xe&&(xe=dn)}function ul(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function MM(e,t){if(Kl===null){var n=Kl=[];Bm=0,lr=Dp(),bs={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Bm++,t.then(u0,u0),t}function u0(){if(--Bm===0&&(-1<Wn||(_o=-1.1),Kl!==null)){bs!==null&&(bs.status="fulfilled");var e=Kl;Kl=null,lr=0,bs=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function CM(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(a.status="rejected",a.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),a}function Th(){var e=ur.current;return e!==null?e:at.pooledCache}function dc(e,t){t===null?W(ur,ur.current,e):W(ur,t.pool,e)}function c0(){var e=Th();return e===null?null:{parent:xt._currentValue,pool:e}}function f0(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function d0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function h0(e,t,n){X.actQueue!==null&&(X.didUsePromise=!0);var a=e.thenables;if(n=a[n],n===void 0?a.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(po,po),t=n),t._debugInfo===void 0){e=performance.now(),a=t.displayName;var r={name:typeof a=="string"?a:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:r}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){r.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,m0(e),e;default:if(typeof t.status=="string")t.then(po,po);else{if(e=at,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(s){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=s}},function(s){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,m0(e),e}throw fr=t,iu=!0,Ss}}function Fo(e){try{return hO(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(fr=t,iu=!0,Ss):t}}function p0(){if(fr===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=fr;return fr=null,iu=!1,e}function m0(e){if(e===Ss||e===Mf)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 Xt(e){var t=Ue;return e!=null&&(Ue=t===null?e:t.concat(e)),t}function Ah(){var e=Ue;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 hc(e,t,n){for(var a=Object.keys(e.props),r=0;r<a.length;r++){var s=a[r];if(s!=="children"&&s!=="key"){t===null&&(t=ic(e,n.mode,0),t._debugInfo=Ue,t.return=n),he(t,function(c){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c)},s);break}}}function pc(e){var t=ru;return ru+=1,Ts===null&&(Ts=f0()),h0(Ts,e,t)}function cl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function y0(e,t){throw t.$$typeof===$C?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
139
|
+
- Multiple copies of the "react" package is used.
|
|
140
|
+
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
141
|
+
- 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 mc(e,t){var n=Ah();n!==null?n.run(y0.bind(null,e,t)):y0(e,t)}function g0(e,t){var n=q(e)||"Component";RT[n]||(RT[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.
|
|
142
|
+
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.
|
|
143
|
+
<%s>{%s}</%s>`,t,t,n,t,n))}function yc(e,t){var n=Ah();n!==null?n.run(g0.bind(null,e,t)):g0(e,t)}function v0(e,t){var n=q(e)||"Component";MT[n]||(MT[n]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
144
|
+
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
145
|
+
<%s>%s</%s>`,n,t,n))}function gc(e,t){var n=Ah();n!==null?n.run(v0.bind(null,e,t)):v0(e,t)}function b0(e){function t(M,_){if(e){var j=M.deletions;j===null?(M.deletions=[_],M.flags|=16):j.push(_)}}function n(M,_){if(!e)return null;for(;_!==null;)t(M,_),_=_.sibling;return null}function a(M){for(var _=new Map;M!==null;)M.key!==null?_.set(M.key,M):_.set(M.index,M),M=M.sibling;return _}function r(M,_){return M=mo(M,_),M.index=0,M.sibling=null,M}function s(M,_,j){return M.index=j,e?(j=M.alternate,j!==null?(j=j.index,j<_?(M.flags|=67108866,_):j):(M.flags|=67108866,_)):(M.flags|=1048576,_)}function c(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function d(M,_,j,Z){return _===null||_.tag!==6?(_=ch(j,M.mode,Z),_.return=M,_._debugOwner=M,_._debugTask=M._debugTask,_._debugInfo=Ue,_):(_=r(_,j),_.return=M,_._debugInfo=Ue,_)}function g(M,_,j,Z){var ue=j.type;return ue===ts?(_=z(M,_,j.props.children,Z,j.key),hc(j,_,M),_):_!==null&&(_.elementType===ue||Iv(_,j)||typeof ue=="object"&&ue!==null&&ue.$$typeof===kn&&Fo(ue)===_.type)?(_=r(_,j.props),cl(_,j),_.return=M,_._debugOwner=j._owner,_._debugInfo=Ue,_):(_=ic(j,M.mode,Z),cl(_,j),_.return=M,_._debugInfo=Ue,_)}function T(M,_,j,Z){return _===null||_.tag!==4||_.stateNode.containerInfo!==j.containerInfo||_.stateNode.implementation!==j.implementation?(_=fh(j,M.mode,Z),_.return=M,_._debugInfo=Ue,_):(_=r(_,j.children||[]),_.return=M,_._debugInfo=Ue,_)}function z(M,_,j,Z,ue){return _===null||_.tag!==7?(_=Pi(j,M.mode,Z,ue),_.return=M,_._debugOwner=M,_._debugTask=M._debugTask,_._debugInfo=Ue,_):(_=r(_,j),_.return=M,_._debugInfo=Ue,_)}function N(M,_,j){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=ch(""+_,M.mode,j),_.return=M,_._debugOwner=M,_._debugTask=M._debugTask,_._debugInfo=Ue,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Za:return j=ic(_,M.mode,j),cl(j,_),j.return=M,M=Xt(_._debugInfo),j._debugInfo=Ue,Ue=M,j;case es:return _=fh(_,M.mode,j),_.return=M,_._debugInfo=Ue,_;case kn:var Z=Xt(_._debugInfo);return _=Fo(_),M=N(M,_,j),Ue=Z,M}if(Nt(_)||ie(_))return j=Pi(_,M.mode,j,null),j.return=M,j._debugOwner=M,j._debugTask=M._debugTask,M=Xt(_._debugInfo),j._debugInfo=Ue,Ue=M,j;if(typeof _.then=="function")return Z=Xt(_._debugInfo),M=N(M,pc(_),j),Ue=Z,M;if(_.$$typeof===Ia)return N(M,uc(M,_),j);mc(M,_)}return typeof _=="function"&&yc(M,_),typeof _=="symbol"&&gc(M,_),null}function D(M,_,j,Z){var ue=_!==null?_.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return ue!==null?null:d(M,_,""+j,Z);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Za:return j.key===ue?(ue=Xt(j._debugInfo),M=g(M,_,j,Z),Ue=ue,M):null;case es:return j.key===ue?T(M,_,j,Z):null;case kn:return ue=Xt(j._debugInfo),j=Fo(j),M=D(M,_,j,Z),Ue=ue,M}if(Nt(j)||ie(j))return ue!==null?null:(ue=Xt(j._debugInfo),M=z(M,_,j,Z,null),Ue=ue,M);if(typeof j.then=="function")return ue=Xt(j._debugInfo),M=D(M,_,pc(j),Z),Ue=ue,M;if(j.$$typeof===Ia)return D(M,_,uc(M,j),Z);mc(M,j)}return typeof j=="function"&&yc(M,j),typeof j=="symbol"&&gc(M,j),null}function Y(M,_,j,Z,ue){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return M=M.get(j)||null,d(_,M,""+Z,ue);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case Za:return j=M.get(Z.key===null?j:Z.key)||null,M=Xt(Z._debugInfo),_=g(_,j,Z,ue),Ue=M,_;case es:return M=M.get(Z.key===null?j:Z.key)||null,T(_,M,Z,ue);case kn:var De=Xt(Z._debugInfo);return Z=Fo(Z),_=Y(M,_,j,Z,ue),Ue=De,_}if(Nt(Z)||ie(Z))return j=M.get(j)||null,M=Xt(Z._debugInfo),_=z(_,j,Z,ue,null),Ue=M,_;if(typeof Z.then=="function")return De=Xt(Z._debugInfo),_=Y(M,_,j,pc(Z),ue),Ue=De,_;if(Z.$$typeof===Ia)return Y(M,_,j,uc(_,Z),ue);mc(_,Z)}return typeof Z=="function"&&yc(_,Z),typeof Z=="symbol"&&gc(_,Z),null}function le(M,_,j,Z){if(typeof j!="object"||j===null)return Z;switch(j.$$typeof){case Za:case es:S(M,_,j);var ue=j.key;if(typeof ue!="string")break;if(Z===null){Z=new Set,Z.add(ue);break}if(!Z.has(ue)){Z.add(ue);break}he(_,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.",ue)});break;case kn:j=Fo(j),le(M,_,j,Z)}return Z}function fe(M,_,j,Z){for(var ue=null,De=null,Ae=null,Te=_,je=_=0,ct=null;Te!==null&&je<j.length;je++){Te.index>je?(ct=Te,Te=null):ct=Te.sibling;var At=D(M,Te,j[je],Z);if(At===null){Te===null&&(Te=ct);break}ue=le(M,At,j[je],ue),e&&Te&&At.alternate===null&&t(M,Te),_=s(At,_,je),Ae===null?De=At:Ae.sibling=At,Ae=At,Te=ct}if(je===j.length)return n(M,Te),Ye&&yo(M,je),De;if(Te===null){for(;je<j.length;je++)Te=N(M,j[je],Z),Te!==null&&(ue=le(M,Te,j[je],ue),_=s(Te,_,je),Ae===null?De=Te:Ae.sibling=Te,Ae=Te);return Ye&&yo(M,je),De}for(Te=a(Te);je<j.length;je++)ct=Y(Te,M,je,j[je],Z),ct!==null&&(ue=le(M,ct,j[je],ue),e&&ct.alternate!==null&&Te.delete(ct.key===null?je:ct.key),_=s(ct,_,je),Ae===null?De=ct:Ae.sibling=ct,Ae=ct);return e&&Te.forEach(function(Bo){return t(M,Bo)}),Ye&&yo(M,je),De}function rt(M,_,j,Z){if(j==null)throw Error("An iterable object provided no iterator.");for(var ue=null,De=null,Ae=_,Te=_=0,je=null,ct=null,At=j.next();Ae!==null&&!At.done;Te++,At=j.next()){Ae.index>Te?(je=Ae,Ae=null):je=Ae.sibling;var Bo=D(M,Ae,At.value,Z);if(Bo===null){Ae===null&&(Ae=je);break}ct=le(M,Bo,At.value,ct),e&&Ae&&Bo.alternate===null&&t(M,Ae),_=s(Bo,_,Te),De===null?ue=Bo:De.sibling=Bo,De=Bo,Ae=je}if(At.done)return n(M,Ae),Ye&&yo(M,Te),ue;if(Ae===null){for(;!At.done;Te++,At=j.next())Ae=N(M,At.value,Z),Ae!==null&&(ct=le(M,Ae,At.value,ct),_=s(Ae,_,Te),De===null?ue=Ae:De.sibling=Ae,De=Ae);return Ye&&yo(M,Te),ue}for(Ae=a(Ae);!At.done;Te++,At=j.next())je=Y(Ae,M,Te,At.value,Z),je!==null&&(ct=le(M,je,At.value,ct),e&&je.alternate!==null&&Ae.delete(je.key===null?Te:je.key),_=s(je,_,Te),De===null?ue=je:De.sibling=je,De=je);return e&&Ae.forEach(function(kO){return t(M,kO)}),Ye&&yo(M,Te),ue}function $e(M,_,j,Z){if(typeof j=="object"&&j!==null&&j.type===ts&&j.key===null&&(hc(j,null,M),j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case Za:var ue=Xt(j._debugInfo);e:{for(var De=j.key;_!==null;){if(_.key===De){if(De=j.type,De===ts){if(_.tag===7){n(M,_.sibling),Z=r(_,j.props.children),Z.return=M,Z._debugOwner=j._owner,Z._debugInfo=Ue,hc(j,Z,M),M=Z;break e}}else if(_.elementType===De||Iv(_,j)||typeof De=="object"&&De!==null&&De.$$typeof===kn&&Fo(De)===_.type){n(M,_.sibling),Z=r(_,j.props),cl(Z,j),Z.return=M,Z._debugOwner=j._owner,Z._debugInfo=Ue,M=Z;break e}n(M,_);break}else t(M,_);_=_.sibling}j.type===ts?(Z=Pi(j.props.children,M.mode,Z,j.key),Z.return=M,Z._debugOwner=M,Z._debugTask=M._debugTask,Z._debugInfo=Ue,hc(j,Z,M),M=Z):(Z=ic(j,M.mode,Z),cl(Z,j),Z.return=M,Z._debugInfo=Ue,M=Z)}return M=c(M),Ue=ue,M;case es:e:{for(ue=j,j=ue.key;_!==null;){if(_.key===j)if(_.tag===4&&_.stateNode.containerInfo===ue.containerInfo&&_.stateNode.implementation===ue.implementation){n(M,_.sibling),Z=r(_,ue.children||[]),Z.return=M,M=Z;break e}else{n(M,_);break}else t(M,_);_=_.sibling}Z=fh(ue,M.mode,Z),Z.return=M,M=Z}return c(M);case kn:return ue=Xt(j._debugInfo),j=Fo(j),M=$e(M,_,j,Z),Ue=ue,M}if(Nt(j))return ue=Xt(j._debugInfo),M=fe(M,_,j,Z),Ue=ue,M;if(ie(j)){if(ue=Xt(j._debugInfo),De=ie(j),typeof De!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Ae=De.call(j);return Ae===j?(M.tag!==0||Object.prototype.toString.call(M.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ae)!=="[object Generator]")&&(xT||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."),xT=!0):j.entries!==De||Gm||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Gm=!0),M=rt(M,_,Ae,Z),Ue=ue,M}if(typeof j.then=="function")return ue=Xt(j._debugInfo),M=$e(M,_,pc(j),Z),Ue=ue,M;if(j.$$typeof===Ia)return $e(M,_,uc(M,j),Z);mc(M,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(ue=""+j,_!==null&&_.tag===6?(n(M,_.sibling),Z=r(_,ue),Z.return=M,M=Z):(n(M,_),Z=ch(ue,M.mode,Z),Z.return=M,Z._debugOwner=M,Z._debugTask=M._debugTask,Z._debugInfo=Ue,M=Z),c(M)):(typeof j=="function"&&yc(M,j),typeof j=="symbol"&&gc(M,j),n(M,_))}return function(M,_,j,Z){var ue=Ue;Ue=null;try{ru=0;var De=$e(M,_,j,Z);return Ts=null,De}catch(ct){if(ct===Ss||ct===Mf)throw ct;var Ae=y(29,ct,null,M.mode);Ae.lanes=Z,Ae.return=M;var Te=Ae._debugInfo=Ue;if(Ae._debugOwner=M._debugOwner,Ae._debugTask=M._debugTask,Te!=null){for(var je=Te.length-1;0<=je;je--)if(typeof Te[je].stack=="string"){Ae._debugOwner=Te[je],Ae._debugTask=Te[je].debugTask;break}}return Ae}finally{Ue=ue}}}function S0(e,t){var n=Nt(e);return e=!n&&typeof ie(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 Eh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xh(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 Jo(e){return{lane:e,tag:DT,payload:null,callback:null,next:null}}function Ko(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,$m===a&&!jT){var r=q(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.
|
|
146
|
+
|
|
147
|
+
Please update the following component: %s`,r),jT=!0}return(Qe&Vt)!==$t?(r=a.pending,r===null?t.next=t:(t.next=r.next,r.next=t),a.pending=t,t=oc(e),Zv(e,null,n),t):(ac(e,a,t,n),oc(e))}function fl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,qo(e,n)}}function vc(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var r=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var c={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?r=s=c:s=s.next=c,n=n.next}while(n!==null);s===null?r=s=t:s=s.next=t}else r=s=t;n={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function dl(){if(Xm){var e=bs;if(e!==null)throw e}}function hl(e,t,n,a){Xm=!1;var r=e.updateQueue;vi=!1,$m=r.shared;var s=r.firstBaseUpdate,c=r.lastBaseUpdate,d=r.shared.pending;if(d!==null){r.shared.pending=null;var g=d,T=g.next;g.next=null,c===null?s=T:c.next=T,c=g;var z=e.alternate;z!==null&&(z=z.updateQueue,d=z.lastBaseUpdate,d!==c&&(d===null?z.firstBaseUpdate=T:d.next=T,z.lastBaseUpdate=g))}if(s!==null){var N=r.baseState;c=0,z=T=g=null,d=s;do{var D=d.lane&-536870913,Y=D!==d.lane;if(Y?(Ve&D)===D:(a&D)===D){D!==0&&D===lr&&(Xm=!0),z!==null&&(z=z.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{D=e;var le=d,fe=t,rt=n;switch(le.tag){case OT:if(le=le.payload,typeof le=="function"){gs=!0;var $e=le.call(rt,N,fe);if(D.mode&an){ye(!0);try{le.call(rt,N,fe)}finally{ye(!1)}}gs=!1,N=$e;break e}N=le;break e;case Pm:D.flags=D.flags&-65537|128;case DT:if($e=le.payload,typeof $e=="function"){if(gs=!0,le=$e.call(rt,N,fe),D.mode&an){ye(!0);try{$e.call(rt,N,fe)}finally{ye(!1)}}gs=!1}else le=$e;if(le==null)break e;N=Be({},N,le);break e;case _T:vi=!0}}D=d.callback,D!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=r.callbacks,Y===null?r.callbacks=[D]:Y.push(D))}else Y={lane:D,tag:d.tag,payload:d.payload,callback:d.callback,next:null},z===null?(T=z=Y,g=N):z=z.next=Y,c|=D;if(d=d.next,d===null){if(d=r.shared.pending,d===null)break;Y=d,d=Y.next,Y.next=null,r.lastBaseUpdate=Y,r.shared.pending=null}}while(!0);z===null&&(g=N),r.baseState=g,r.firstBaseUpdate=T,r.lastBaseUpdate=z,s===null&&(r.shared.lanes=0),Ti|=c,e.lanes=c,e.memoizedState=N}$m=null}function T0(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function DM(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)T0(n[e],t)}function A0(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)T0(n[e],t)}function E0(e,t){var n=oo;W(Df,n,e),W(As,t,e),oo=n|t.baseLanes}function wh(e){W(Df,oo,e),W(As,As.current,e)}function Rh(e){oo=Df.current,V(As,e),V(Df,e)}function Wo(e){var t=e.alternate;W(Tt,Tt.current&Es,e),W(Hn,e,e),ea===null&&(t===null||As.current!==null||t.memoizedState!==null)&&(ea=e)}function Mh(e){W(Tt,Tt.current,e),W(Hn,e,e),ea===null&&(ea=e)}function x0(e){e.tag===22?(W(Tt,Tt.current,e),W(Hn,e,e),ea===null&&(ea=e)):ei(e)}function ei(e){W(Tt,Tt.current,e),W(Hn,Hn.current,e)}function Nn(e){V(Hn,e),ea===e&&(ea=null),V(Tt,e)}function bc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Hp(n)||Yp(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)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 Le(){var e=G;na===null?na=[e]:na.push(e)}function ne(){var e=G;if(na!==null&&(No++,na[No]!==e)){var t=q(Ce);if(!zT.has(t)&&(zT.add(t),na!==null)){for(var n="",a=0;a<=No;a++){var r=na[a],s=a===No?e:r;for(r=a+1+". "+r;30>r.length;)r+=" ";r+=s+`
|
|
148
|
+
`,n+=r}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
|
|
149
|
+
|
|
150
|
+
Previous render Next render
|
|
151
|
+
------------------------------------------------------
|
|
152
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
153
|
+
`,t,n)}}}function Yr(e){e==null||Nt(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.",G,typeof e)}function Sc(){var e=q(Ce);UT.has(e)||(UT.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function bt(){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:
|
|
154
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
155
|
+
2. You might be breaking the Rules of Hooks
|
|
156
|
+
3. You might have more than one copy of React in the same app
|
|
157
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Ch(e,t){if(uu)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.",G),!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.
|
|
158
|
+
|
|
159
|
+
Previous: %s
|
|
160
|
+
Incoming: %s`,G,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!fn(e[n],t[n]))return!1;return!0}function Dh(e,t,n,a,r,s){jo=s,Ce=t,na=e!==null?e._debugHookTypes:null,No=-1,uu=e!==null&&e.type!==t.type,(Object.prototype.toString.call(n)==="[object AsyncFunction]"||Object.prototype.toString.call(n)==="[object AsyncGeneratorFunction]")&&(s=q(Ce),Qm.has(s)||(Qm.add(s),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.",s===null?"An unknown Component":"<"+s+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,X.H=e!==null&&e.memoizedState!==null?Im:na!==null?VT:Zm,hr=s=(t.mode&an)!==Me;var c=Hm(n,a,r);if(hr=!1,ws&&(c=Oh(t,n,a,r)),s){ye(!0);try{c=Oh(t,n,a,r)}finally{ye(!1)}}return w0(e,t),c}function w0(e,t){t._debugHookTypes=na,t.dependencies===null?zo!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:zo}):t.dependencies._debugThenableState=zo,X.H=cu;var n=nt!==null&&nt.next!==null;if(jo=0,na=G=Rt=nt=Ce=null,No=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),_f=!1,lu=0,zo=null,n)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Mt||(e=e.dependencies,e!==null&&lc(e)&&(Mt=!0)),iu?(iu=!1,e=!0):e=!1,e&&(t=q(t)||"Unknown",NT.has(t)||Qm.has(t)||(NT.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 Oh(e,t,n,a){Ce=e;var r=0;do{if(ws&&(zo=null),lu=0,ws=!1,r>=mO)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(r+=1,uu=!1,Rt=nt=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}No=-1,X.H=kT,s=Hm(t,n,a)}while(ws);return s}function OM(){var e=X.H,t=e.useState()[0];return t=typeof t.then=="function"?pl(t):t,e=e.useState()[0],(nt!==null?nt.memoizedState:null)!==e&&(Ce.flags|=1024),t}function _h(){var e=jf!==0;return jf=0,e}function jh(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&ba)!==Me?t.flags&-402655237:t.flags&-2053,e.lanes&=~n}function zh(e){if(_f){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}_f=!1}jo=0,na=Rt=nt=Ce=null,No=-1,G=null,ws=!1,lu=jf=0,zo=null}function sn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rt===null?Ce.memoizedState=Rt=e:Rt=Rt.next=e,Rt}function Fe(){if(nt===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=nt.next;var t=Rt===null?Ce.memoizedState:Rt.next;if(t!==null)Rt=t,nt=e;else{if(e===null)throw Ce.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.");nt=e,e={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},Rt===null?Ce.memoizedState=Rt=e:Rt=Rt.next=e}return Rt}function Tc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pl(e){var t=lu;return lu+=1,zo===null&&(zo=f0()),e=h0(zo,e,t),t=Ce,(Rt===null?t.memoizedState:Rt.next)===null&&(t=t.alternate,X.H=t!==null&&t.memoizedState!==null?Im:Zm),e}function ti(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pl(e);if(e.$$typeof===Ia)return ft(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Ii(e){var t=null,n=Ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=Ce.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Tc(),Ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0||uu)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=XC;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 ya(e,t){return typeof t=="function"?t(e):t}function Nh(e,t,n){var a=sn();if(n!==void 0){var r=n(t);if(hr){ye(!0);try{n(t)}finally{ye(!1)}}}else r=t;return a.memoizedState=a.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},a.queue=e,e=e.dispatch=UM.bind(null,Ce,e),[a.memoizedState,e]}function qr(e){var t=Fe();return Uh(t,nt,e)}function Uh(e,t,n){var a=e.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=n;var r=e.baseQueue,s=a.pending;if(s!==null){if(r!==null){var c=r.next;r.next=s.next,s.next=c}t.baseQueue!==r&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=r=s,a.pending=null}if(s=e.baseState,r===null)e.memoizedState=s;else{t=r.next;var d=c=null,g=null,T=t,z=!1;do{var N=T.lane&-536870913;if(N!==T.lane?(Ve&N)===N:(jo&N)===N){var D=T.revertLane;if(D===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),N===lr&&(z=!0);else if((jo&D)===D){T=T.next,D===lr&&(z=!0);continue}else N={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},g===null?(d=g=N,c=s):g=g.next=N,Ce.lanes|=D,Ti|=D;N=T.action,hr&&n(s,N),s=T.hasEagerState?T.eagerState:n(s,N)}else D={lane:N,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},g===null?(d=g=D,c=s):g=g.next=D,Ce.lanes|=N,Ti|=N;T=T.next}while(T!==null&&T!==t);if(g===null?c=s:g.next=d,!fn(s,e.memoizedState)&&(Mt=!0,z&&(n=bs,n!==null)))throw n;e.memoizedState=s,e.baseState=c,e.baseQueue=g,a.lastRenderedState=s}return r===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function ml(e){var t=Fe(),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 a=n.dispatch,r=n.pending,s=t.memoizedState;if(r!==null){n.pending=null;var c=r=r.next;do s=e(s,c.action),c=c.next;while(c!==r);fn(s,t.memoizedState)||(Mt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,a]}function Vh(e,t,n){var a=Ce,r=sn();if(Ye){if(n===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var s=n();xs||s===n()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),xs=!0)}else{if(s=t(),xs||(n=t(),fn(s,n)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),xs=!0)),at===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Ve&127)!==0||R0(a,t,s)}return r.memoizedState=s,n={value:s,getSnapshot:t},r.queue=n,wc(C0.bind(null,a,n,e),[e]),a.flags|=2048,Pr(ta|pn,{destroy:void 0},M0.bind(null,a,n,s,t),null),s}function Ac(e,t,n){var a=Ce,r=Fe(),s=Ye;if(s){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(),!xs){var c=t();fn(n,c)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),xs=!0)}(c=!fn((nt||r).memoizedState,n))&&(r.memoizedState=n,Mt=!0),r=r.queue;var d=C0.bind(null,a,r,e);if(Sn(2048,pn,d,[e]),r.getSnapshot!==t||c||Rt!==null&&Rt.memoizedState.tag&ta){if(a.flags|=2048,Pr(ta|pn,{destroy:void 0},M0.bind(null,a,r,n,t),null),at===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");s||(jo&127)!==0||R0(a,t,n)}return n}function R0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t=Tc(),Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function M0(e,t,n,a){t.value=n,t.getSnapshot=a,D0(t)&&O0(e)}function C0(e,t,n){return n(function(){D0(t)&&(Ua(2,"updateSyncExternalStore()",e),O0(e))})}function D0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!fn(e,n)}catch{return!0}}function O0(e){var t=tn(e,2);t!==null&&yt(t,e,2)}function kh(e){var t=sn();if(typeof e=="function"){var n=e;if(e=n(),hr){ye(!0);try{n()}finally{ye(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:e},t}function Lh(e){e=kh(e);var t=e.queue,n=I0.bind(null,Ce,t);return t.dispatch=n,[e.memoizedState,n]}function Bh(e){var t=sn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Wh.bind(null,Ce,!0,n),n.dispatch=t,[e,t]}function _0(e,t){var n=Fe();return j0(n,nt,e,t)}function j0(e,t,n,a){return e.baseState=n,Uh(e,nt,typeof a=="function"?a:ya)}function z0(e,t){var n=Fe();return nt!==null?j0(n,nt,e,t):(n.baseState=e,[e,n.queue.dispatch])}function _M(e,t,n,a,r){if(_c(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var s={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){s.listeners.push(c)}};X.T!==null?n(!0):s.isTransition=!1,a(s),n=t.pending,n===null?(s.next=t.pending=s,N0(t,s)):(s.next=n.next,t.pending=n.next=s)}}function N0(e,t){var n=t.action,a=t.payload,r=e.state;if(t.isTransition){var s=X.T,c={};c._updatedFibers=new Set,X.T=c;try{var d=n(r,a),g=X.S;g!==null&&g(c,d),U0(e,t,d)}catch(T){Hh(e,t,T)}finally{s!==null&&c.types!==null&&(s.types!==null&&s.types!==c.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."),s.types=c.types),X.T=s,s===null&&c._updatedFibers&&(e=c._updatedFibers.size,c._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{c=n(r,a),U0(e,t,c)}catch(T){Hh(e,t,T)}}function U0(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?(X.asyncTransitions++,n.then(Oc,Oc),n.then(function(a){V0(e,t,a)},function(a){return Hh(e,t,a)}),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.")):V0(e,t,n)}function V0(e,t,n){t.status="fulfilled",t.value=n,k0(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,N0(e,n)))}function Hh(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,k0(t),t=t.next;while(t!==a)}e.action=null}function k0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function L0(e,t){return t}function Gr(e,t){if(Ye){var n=at.formState;if(n!==null){e:{var a=Ce;if(Ye){if(ut){t:{for(var r=ut,s=Kn;r.nodeType!==8;){if(!s){r=null;break t}if(r=Vn(r.nextSibling),r===null){r=null;break t}}s=r.data,r=s===vy||s===AA?r:null}if(r){ut=Vn(r.nextSibling),a=r.data===vy;break e}}Zo(a)}a=!1}a&&(t=n[0])}}return n=sn(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:L0,lastRenderedState:t},n.queue=a,n=I0.bind(null,Ce,a),a.dispatch=n,a=kh(!1),s=Wh.bind(null,Ce,!1,a.queue),a=sn(),r={state:t,dispatch:null,action:e,pending:null},a.queue=r,n=_M.bind(null,Ce,r,s,n),r.dispatch=n,a.memoizedState=e,[t,n,!1]}function Ec(e){var t=Fe();return B0(t,nt,e)}function B0(e,t,n){if(t=Uh(e,t,L0)[0],e=qr(ya)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=pl(t)}catch(c){throw c===Ss?Mf:c}else a=t;t=Fe();var r=t.queue,s=r.dispatch;return n!==t.memoizedState&&(Ce.flags|=2048,Pr(ta|pn,{destroy:void 0},jM.bind(null,r,n),null)),[a,s,e]}function jM(e,t){e.action=t}function xc(e){var t=Fe(),n=nt;if(n!==null)return B0(t,n,e);Fe(),t=t.memoizedState,n=Fe();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Pr(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=Tc(),Ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Yh(e){var t=sn();return e={current:e},t.memoizedState=e}function Fi(e,t,n,a){var r=sn();Ce.flags|=e,r.memoizedState=Pr(ta|t,{destroy:void 0},n,a===void 0?null:a)}function Sn(e,t,n,a){var r=Fe();a=a===void 0?null:a;var s=r.memoizedState.inst;nt!==null&&a!==null&&Ch(a,nt.memoizedState.deps)?r.memoizedState=Pr(t,s,n,a):(Ce.flags|=e,r.memoizedState=Pr(ta|t,s,n,a))}function wc(e,t){(Ce.mode&ba)!==Me?Fi(276826112,pn,e,t):Fi(8390656,pn,e,t)}function zM(e){Ce.flags|=4;var t=Ce.updateQueue;if(t===null)t=Tc(),Ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function qh(e){var t=sn(),n={impl:e};return t.memoizedState=n,function(){if((Qe&Vt)!==$t)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return n.impl.apply(void 0,arguments)}}function Rc(e){var t=Fe().memoizedState;return zM({ref:t,nextImpl:e}),function(){if((Qe&Vt)!==$t)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Gh(e,t){var n=4194308;return(Ce.mode&ba)!==Me&&(n|=134217728),Fi(n,Yn,e,t)}function H0(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 Ph(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?typeof t:"null"),n=n!=null?n.concat([e]):null;var a=4194308;(Ce.mode&ba)!==Me&&(a|=134217728),Fi(a,Yn,H0.bind(null,t,e),n)}function Mc(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?typeof t:"null"),n=n!=null?n.concat([e]):null,Sn(4,Yn,H0.bind(null,t,e),n)}function $h(e,t){return sn().memoizedState=[e,t===void 0?null:t],e}function Cc(e,t){var n=Fe();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Ch(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Xh(e,t){var n=sn();t=t===void 0?null:t;var a=e();if(hr){ye(!0);try{e()}finally{ye(!1)}}return n.memoizedState=[a,t],a}function Dc(e,t){var n=Fe();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Ch(t,a[1]))return a[0];if(a=e(),hr){ye(!0);try{e()}finally{ye(!1)}}return n.memoizedState=[a,t],a}function Qh(e,t){var n=sn();return Zh(n,e,t)}function Y0(e,t){var n=Fe();return G0(n,nt.memoizedState,e,t)}function q0(e,t){var n=Fe();return nt===null?Zh(n,e,t):G0(n,nt.memoizedState,e,t)}function Zh(e,t,n){return n===void 0||(jo&1073741824)!==0&&(Ve&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Pb(),Ce.lanes|=e,Ti|=e,n)}function G0(e,t,n,a){return fn(n,t)?n:As.current!==null?(e=Zh(e,n,a),fn(e,t)||(Mt=!0),e):(jo&42)===0||(jo&1073741824)!==0&&(Ve&261930)===0?(Mt=!0,e.memoizedState=n):(e=Pb(),Ce.lanes|=e,Ti|=e,t)}function Oc(){X.asyncTransitions--}function P0(e,t,n,a,r){var s=Ie.p;Ie.p=s!==0&&s<Wa?s:Wa;var c=X.T,d={};d._updatedFibers=new Set,X.T=d,Wh(e,!1,t,n);try{var g=r(),T=X.S;if(T!==null&&T(d,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){X.asyncTransitions++,g.then(Oc,Oc);var z=CM(g,a);yl(e,t,z,Un(e))}else yl(e,t,a,Un(e))}catch(N){yl(e,t,{then:function(){},status:"rejected",reason:N},Un(e))}finally{Ie.p=s,c!==null&&d.types!==null&&(c.types!==null&&c.types!==d.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."),c.types=d.types),X.T=c,c===null&&d._updatedFibers&&(e=d._updatedFibers.size,d._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 Ih(e,t,n,a){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var r=$0(e).queue;RM(e),P0(e,r,t,xr,n===null?A:function(){return X0(e),n(a)})}function $0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:xr,baseState:xr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:xr},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function X0(e){X.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=$0(e);t.next===null&&(t=e.alternate.memoizedState),yl(e,t.next.queue,{},Un(e))}function Fh(){var e=kh(!1);return e=P0.bind(null,Ce,e.queue,!0,!1),sn().memoizedState=e,[!1,e]}function Q0(){var e=qr(ya)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:pl(e),t]}function Z0(){var e=ml(ya)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:pl(e),t]}function Ji(){return ft(wu)}function Jh(){var e=sn(),t=at.identifierPrefix;if(Ye){var n=Mo,a=Ro;n=(a&~(1<<32-ln(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=jf++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=pO++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t}function Kh(){return sn().memoizedState=NM.bind(null,Ce)}function NM(e,t){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=Un(n),r=Jo(a),s=Ko(n,r,a);s!==null&&(Ua(a,"refresh()",e),yt(s,n,a),fl(s,n,a)),e=vh(),t!=null&&s!==null&&console.error("The seed argument is not enabled outside experimental channels."),r.payload={cache:e};return}n=n.return}}function UM(e,t,n){var a=arguments;typeof a[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()."),a=Un(e);var r={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};_c(e)?F0(t,r):(r=rh(e,t,r,a),r!==null&&(Ua(a,"dispatch()",e),yt(r,e,a),J0(r,t,a)))}function I0(e,t,n){var a=arguments;typeof a[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()."),a=Un(e),yl(e,t,n,a)&&Ua(a,"setState()",e)}function yl(e,t,n,a){var r={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(_c(e))F0(t,r);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null)){var c=X.H;X.H=Ta;try{var d=t.lastRenderedState,g=s(d,n);if(r.hasEagerState=!0,r.eagerState=g,fn(g,d))return ac(e,t,r,0),at===null&&nc(),!1}catch{}finally{X.H=c}}if(n=rh(e,t,r,a),n!==null)return yt(n,e,a),J0(n,t,a),!0}return!1}function Wh(e,t,n,a){if(X.T===null&&lr===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."),a={lane:2,revertLane:Dp(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},_c(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=rh(e,n,a,2),t!==null&&(Ua(2,"setOptimistic()",e),yt(t,e,2))}function _c(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function F0(e,t){ws=_f=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function J0(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,qo(e,n)}}function ep(e){if(e!==null&&typeof e!="function"){var t=String(e);ZT.has(t)||(ZT.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function tp(e,t,n,a){var r=e.memoizedState,s=n(a,r);if(e.mode&an){ye(!0);try{s=n(a,r)}finally{ye(!1)}}s===void 0&&(t=J(t)||"Component",PT.has(t)||(PT.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),r=s==null?r:Be({},r,s),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}function K0(e,t,n,a,r,s,c){var d=e.stateNode;if(typeof d.shouldComponentUpdate=="function"){if(n=d.shouldComponentUpdate(a,s,c),e.mode&an){ye(!0);try{n=d.shouldComponentUpdate(a,s,c)}finally{ye(!1)}}return n===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",J(t)||"Component"),n}return t.prototype&&t.prototype.isPureReactComponent?!il(n,a)||!il(r,s):!0}function W0(e,t,n,a){var r=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==r&&(e=q(e)||"Component",BT.has(e)||(BT.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Fm.enqueueReplaceState(t,t.state,null))}function Ki(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=Be({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function eb(e){Mm(e),console.warn(`%s
|
|
161
|
+
|
|
162
|
+
%s
|
|
163
|
+
`,Rs?"An error occurred in the <"+Rs+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
164
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function tb(e){var t=Rs?"The above error occurred in the <"+Rs+"> 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, "+((Jm||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var a=e.environmentName;e=[`%o
|
|
165
|
+
|
|
166
|
+
%s
|
|
167
|
+
|
|
168
|
+
%s
|
|
169
|
+
`,e,t,n].slice(0),typeof e[0]=="string"?e.splice(0,1,OA+" "+e[0],_A,ad+a+ad,jA):e.splice(0,0,OA,_A,ad+a+ad,jA),e.unshift(console),a=UO.apply(console.error,e),a()}else console.error(`%o
|
|
170
|
+
|
|
171
|
+
%s
|
|
172
|
+
|
|
173
|
+
%s
|
|
174
|
+
`,e,t,n)}function nb(e){Mm(e)}function jc(e,t){try{Rs=t.source?q(t.source):null,Jm=null;var n=t.value;if(X.actQueue!==null)X.thrownErrors.push(n);else{var a=e.onUncaughtError;a(n,{componentStack:t.stack})}}catch(r){setTimeout(function(){throw r})}}function ab(e,t,n){try{Rs=n.source?q(n.source):null,Jm=q(t);var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function np(e,t,n){return n=Jo(n),n.tag=Pm,n.payload={element:null},n.callback=function(){he(t.source,jc,e,t)},n}function ap(e){return e=Jo(e),e.tag=Pm,e}function op(e,t,n,a){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var s=a.value;e.payload=function(){return r(s)},e.callback=function(){Fv(n),he(a.source,ab,t,n,a)}}var c=n.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Fv(n),he(a.source,ab,t,n,a),typeof r!="function"&&(Ei===null?Ei=new Set([this]):Ei.add(this)),cO(this,a),typeof r=="function"||(n.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",q(n)||"Unknown")})}function VM(e,t,n,a,r){if(n.flags|=32768,Ka&&xl(e,r),a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Hr(t,n,r,!0),Ye&&(to=!0),n=Hn.current,n!==null){switch(n.tag){case 31:case 13:return ea===null?Yc():n.alternate===null&&mt===Vo&&(mt=Uf),n.flags&=-257,n.flags|=65536,n.lanes=r,a===Cf?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),wp(e,a,r)),!1;case 22:return n.flags|=65536,a===Cf?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),wp(e,a,r)),!1}throw Error("Unexpected Suspense handler tag ("+n.tag+"). This is a bug in React.")}return wp(e,a,r),Yc(),!1}if(Ye)return to=!0,t=Hn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,a!==zm&&rl(_n(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:a}),n))):(a!==zm&&rl(_n(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:a}),n)),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,a=_n(a,n),r=np(e.stateNode,a,r),vc(e,r),mt!==bi&&(mt=pr)),!1;var s=_n(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:a}),n);if(yu===null?yu=[s]:yu.push(s),mt!==bi&&(mt=pr),t===null)return!0;a=_n(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=np(n.stateNode,a,e),vc(n,e),!1;case 1:if(t=n.type,s=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Ei===null||!Ei.has(s))))return n.flags|=65536,r&=-r,n.lanes|=r,r=ap(r),op(r,e,n,a),vc(n,r),!1}n=n.return}while(n!==null);return!1}function Qt(e,t,n,a){t.child=e===null?CT(t,null,n,a):dr(t,e.child,n,a)}function ob(e,t,n,a,r){n=n.render;var s=t.ref;if("ref"in a){var c={};for(var d in a)d!=="ref"&&(c[d]=a[d])}else c=a;return Qi(t),a=Dh(e,t,n,c,s,r),d=_h(),e!==null&&!Mt?(jh(e,t,r),bo(e,t,r)):(Ye&&d&&dh(t),t.flags|=1,Qt(e,t,a,r),t.child)}function ib(e,t,n,a,r){if(e===null){var s=n.type;return typeof s=="function"&&!lh(s)&&s.defaultProps===void 0&&n.compare===null?(n=Gi(s),t.tag=15,t.type=n,rp(t,s),rb(e,t,n,a,r)):(e=uh(n.type,null,a,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!dp(e,r)){var c=s.memoizedProps;if(n=n.compare,n=n!==null?n:il,n(c,a)&&e.ref===t.ref)return bo(e,t,r)}return t.flags|=1,e=mo(s,a),e.ref=t.ref,e.return=t,t.child=e}function rb(e,t,n,a,r){if(e!==null){var s=e.memoizedProps;if(il(s,a)&&e.ref===t.ref&&t.type===e.type)if(Mt=!1,t.pendingProps=a=s,dp(e,r))(e.flags&131072)!==0&&(Mt=!0);else return t.lanes=e.lanes,bo(e,t,r)}return ip(e,t,n,a,r)}function sb(e,t,n,a){var r=a.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:$l,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|n:n,e!==null){for(a=t.child=e.child,r=0;a!==null;)r=r|a.lanes|a.childLanes,a=a.sibling;a=r&~s}else a=0,t.child=null;return lb(e,t,s,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&dc(t,s!==null?s.cachePool:null),s!==null?E0(t,s):wh(t),x0(t);else return a=t.lanes=536870912,lb(e,t,s!==null?s.baseLanes|n:n,n,a)}else s!==null?(dc(t,s.cachePool),E0(t,s),ei(t),t.memoizedState=null):(e!==null&&dc(t,null),wh(t),ei(t));return Qt(e,t,r,n),t.child}function gl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:$l,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function lb(e,t,n,a,r){var s=Th();return s=s===null?null:{parent:xt._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},e!==null&&dc(t,null),wh(t),x0(t),e!==null&&Hr(e,t,a,!0),t.childLanes=r,null}function zc(e,t){var n=t.hidden;return n!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
175
|
+
- <Activity %s>
|
|
176
|
+
+ <Activity %s>`,n===!0?"hidden":n===!1?"hidden={false}":"hidden={...}",n?'mode="hidden"':'mode="visible"'),t=Uc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ub(e,t,n){return dr(t,e.child,null,n),e=zc(t,t.pendingProps),e.flags|=2,Nn(t),t.memoizedState=null,e}function kM(e,t,n){var a=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ye){if(a.mode==="hidden")return e=zc(t,a),t.lanes=536870912,gl(null,e);if(Mh(t),(e=ut)?(n=NS(e,Kn),n=n!==null&&n.data===Sr?n:null,n!==null&&(a={dehydrated:n,treeContext:t0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=a,a=Wv(n),a.return=t,t.child=a,Ft=t,ut=null)):n=null,n===null)throw rc(t,e),Zo(t);return t.lanes=536870912,null}return zc(t,a)}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(Mh(t),r)if(t.flags&256)t.flags&=-257,t=ub(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(a0(),(n&536870912)!==0&&Hc(t),Mt||Hr(e,t,n,!1),r=(n&e.childLanes)!==0,Mt||r){if(a=at,a!==null&&(c=ca(a,n),c!==0&&c!==s.retryLane))throw s.retryLane=c,tn(e,c),yt(a,e,c),Km;Yc(),t=ub(e,t,n)}else e=s.treeContext,ut=Vn(c.nextSibling),Ft=t,Ye=!0,hi=null,to=!1,Bn=null,Kn=!1,e!==null&&n0(t,e),t=zc(t,a),t.flags|=4096;return t}return s=e.child,a={mode:a.mode,children:a.children},(n&536870912)!==0&&(n&e.lanes)!==0&&Hc(t),e=mo(s,a),e.ref=t.ref,t.child=e,e.return=t,e}function Nc(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 ip(e,t,n,a,r){if(n.prototype&&typeof n.prototype.render=="function"){var s=J(n)||"Unknown";IT[s]||(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.",s,s),IT[s]=!0)}return t.mode&an&&Sa.recordLegacyContextWarning(t,null),e===null&&(rp(t,t.type),n.contextTypes&&(s=J(n)||"Unknown",JT[s]||(JT[s]=!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)",s)))),Qi(t),n=Dh(e,t,n,a,void 0,r),a=_h(),e!==null&&!Mt?(jh(e,t,r),bo(e,t,r)):(Ye&&a&&dh(t),t.flags|=1,Qt(e,t,n,r),t.child)}function cb(e,t,n,a,r,s){return Qi(t),No=-1,uu=e!==null&&e.type!==t.type,t.updateQueue=null,n=Oh(t,a,n,r),w0(e,t),a=_h(),e!==null&&!Mt?(jh(e,t,s),bo(e,t,s)):(Ye&&a&&dh(t),t.flags|=1,Qt(e,t,n,s),t.child)}function fb(e,t,n,a,r){switch(h(t)){case!1:var s=t.stateNode,c=new t.type(t.memoizedProps,s.context).state;s.updater.enqueueSetState(s,c,null);break;case!0:t.flags|=128,t.flags|=65536,s=Error("Simulated error coming from DevTools");var d=r&-r;if(t.lanes|=d,c=at,c===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");d=ap(d),op(d,c,t,_n(s,t)),vc(t,d)}if(Qi(t),t.stateNode===null){if(c=di,s=n.contextType,"contextType"in n&&s!==null&&(s===void 0||s.$$typeof!==Ia)&&!QT.has(n)&&(QT.add(n),d=s===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 s!="object"?" However, it is set to a "+typeof s+".":s.$$typeof===Wp?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(s).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",J(n)||"Component",d)),typeof s=="object"&&s!==null&&(c=ft(s)),s=new n(a,c),t.mode&an){ye(!0);try{s=new n(a,c)}finally{ye(!1)}}if(c=t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Fm,t.stateNode=s,s._reactInternals=t,s._reactInternalInstance=LT,typeof n.getDerivedStateFromProps=="function"&&c===null&&(c=J(n)||"Component",HT.has(c)||(HT.add(c),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.",c,s.state===null?"null":"undefined",c))),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"){var g=d=c=null;if(typeof s.componentWillMount=="function"&&s.componentWillMount.__suppressDeprecationWarning!==!0?c="componentWillMount":typeof s.UNSAFE_componentWillMount=="function"&&(c="UNSAFE_componentWillMount"),typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps.__suppressDeprecationWarning!==!0?d="componentWillReceiveProps":typeof s.UNSAFE_componentWillReceiveProps=="function"&&(d="UNSAFE_componentWillReceiveProps"),typeof s.componentWillUpdate=="function"&&s.componentWillUpdate.__suppressDeprecationWarning!==!0?g="componentWillUpdate":typeof s.UNSAFE_componentWillUpdate=="function"&&(g="UNSAFE_componentWillUpdate"),c!==null||d!==null||g!==null){s=J(n)||"Component";var T=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";qT.has(s)||(qT.add(s),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
177
|
+
|
|
178
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
179
|
+
|
|
180
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
181
|
+
https://react.dev/link/unsafe-component-lifecycles`,s,T,c!==null?`
|
|
182
|
+
`+c:"",d!==null?`
|
|
183
|
+
`+d:"",g!==null?`
|
|
184
|
+
`+g:""))}}s=t.stateNode,c=J(n)||"Component",s.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?",c):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",c)),!s.getInitialState||s.getInitialState.isReactClassApproved||s.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?",c),s.getDefaultProps&&!s.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.",c),s.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",c),n.childContextTypes&&!XT.has(n)&&(XT.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)",c)),n.contextTypes&&!$T.has(n)&&($T.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)",c)),typeof s.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.",c),n.prototype&&n.prototype.isPureReactComponent&&typeof s.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",J(n)||"A pure component"),typeof s.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",c),typeof s.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().",c),typeof s.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",c),typeof s.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",c),d=s.props!==a,s.props!==void 0&&d&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",c),s.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.",c,c),typeof s.getSnapshotBeforeUpdate!="function"||typeof s.componentDidUpdate=="function"||YT.has(n)||(YT.add(n),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",J(n))),typeof s.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",c),typeof s.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",c),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.",c),(d=s.state)&&(typeof d!="object"||Nt(d))&&console.error("%s.state: must be set to an object or null",c),typeof s.getChildContext=="function"&&typeof n.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",c),s=t.stateNode,s.props=a,s.state=t.memoizedState,s.refs={},Eh(t),c=n.contextType,s.context=typeof c=="object"&&c!==null?ft(c):di,s.state===a&&(c=J(n)||"Component",GT.has(c)||(GT.add(c),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.",c))),t.mode&an&&Sa.recordLegacyContextWarning(t,s),Sa.recordUnsafeLifecycleWarnings(t,s),s.state=t.memoizedState,c=n.getDerivedStateFromProps,typeof c=="function"&&(tp(t,n,c,a),s.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(c=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),c!==s.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",q(t)||"Component"),Fm.enqueueReplaceState(s,s.state,null)),hl(t,a,s,r),dl(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&ba)!==Me&&(t.flags|=134217728),s=!0}else if(e===null){s=t.stateNode;var z=t.memoizedProps;d=Ki(n,z),s.props=d;var N=s.context;g=n.contextType,c=di,typeof g=="object"&&g!==null&&(c=ft(g)),T=n.getDerivedStateFromProps,g=typeof T=="function"||typeof s.getSnapshotBeforeUpdate=="function",z=t.pendingProps!==z,g||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(z||N!==c)&&W0(t,s,a,c),vi=!1;var D=t.memoizedState;s.state=D,hl(t,a,s,r),dl(),N=t.memoizedState,z||D!==N||vi?(typeof T=="function"&&(tp(t,n,T,a),N=t.memoizedState),(d=vi||K0(t,n,d,a,D,N,c))?(g||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&ba)!==Me&&(t.flags|=134217728)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&ba)!==Me&&(t.flags|=134217728),t.memoizedProps=a,t.memoizedState=N),s.props=a,s.state=N,s.context=c,s=d):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&ba)!==Me&&(t.flags|=134217728),s=!1)}else{s=t.stateNode,xh(e,t),c=t.memoizedProps,g=Ki(n,c),s.props=g,T=t.pendingProps,D=s.context,N=n.contextType,d=di,typeof N=="object"&&N!==null&&(d=ft(N)),z=n.getDerivedStateFromProps,(N=typeof z=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(c!==T||D!==d)&&W0(t,s,a,d),vi=!1,D=t.memoizedState,s.state=D,hl(t,a,s,r),dl();var Y=t.memoizedState;c!==T||D!==Y||vi||e!==null&&e.dependencies!==null&&lc(e.dependencies)?(typeof z=="function"&&(tp(t,n,z,a),Y=t.memoizedState),(g=vi||K0(t,n,g,a,D,Y,d)||e!==null&&e.dependencies!==null&&lc(e.dependencies))?(N||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,Y,d),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,Y,d)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=Y),s.props=a,s.state=Y,s.context=d,s=g):(typeof s.componentDidUpdate!="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),s=!1)}if(d=s,Nc(e,t),c=(t.flags&128)!==0,d||c){if(d=t.stateNode,Da(t),c&&typeof n.getDerivedStateFromError!="function")n=null,dn=-1;else if(n=pT(d),t.mode&an){ye(!0);try{pT(d)}finally{ye(!1)}}t.flags|=1,e!==null&&c?(t.child=dr(t,e.child,null,r),t.child=dr(t,null,n,r)):Qt(e,t,n,r),t.memoizedState=d.state,e=t.child}else e=bo(e,t,r);return r=t.stateNode,s&&r.props!==a&&(Ms||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",q(t)||"a component"),Ms=!0),e}function db(e,t,n,a){return Xi(),t.flags|=256,Qt(e,t,n,a),t.child}function rp(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
185
|
+
%s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=J(t)||"Unknown",KT[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),KT[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=J(t)||"Unknown",FT[t]||(console.error("%s: Function components do not support contextType.",t),FT[t]=!0))}function sp(e){return{baseLanes:e,cachePool:c0()}}function lp(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=wn),e}function hb(e,t,n){var a,r=t.pendingProps;p(t)&&(t.flags|=128);var s=!1,c=(t.flags&128)!==0;if((a=c)||(a=e!==null&&e.memoizedState===null?!1:(Tt.current&su)!==0),a&&(s=!0,t.flags&=-129),a=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ye){if(s?Wo(t):ei(t),(e=ut)?(n=NS(e,Kn),n=n!==null&&n.data!==Sr?n:null,n!==null&&(a={dehydrated:n,treeContext:t0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=a,a=Wv(n),a.return=t,t.child=a,Ft=t,ut=null)):n=null,n===null)throw rc(t,e),Zo(t);return Yp(n)?t.lanes=32:t.lanes=536870912,null}var d=r.children;if(r=r.fallback,s){ei(t);var g=t.mode;return d=Uc({mode:"hidden",children:d},g),r=Pi(r,g,n,null),d.return=t,r.return=t,d.sibling=r,t.child=d,r=t.child,r.memoizedState=sp(n),r.childLanes=lp(e,a,n),t.memoizedState=Wm,gl(null,r)}return Wo(t),up(t,d)}var T=e.memoizedState;if(T!==null){var z=T.dehydrated;if(z!==null){if(c)t.flags&256?(Wo(t),t.flags&=-257,t=cp(e,t,n)):t.memoizedState!==null?(ei(t),t.child=e.child,t.flags|=128,t=null):(ei(t),d=r.fallback,g=t.mode,r=Uc({mode:"visible",children:r.children},g),d=Pi(d,g,n,null),d.flags|=2,r.return=t,d.return=t,r.sibling=d,t.child=r,dr(t,e.child,null,n),r=t.child,r.memoizedState=sp(n),r.childLanes=lp(e,a,n),t.memoizedState=Wm,t=gl(null,r));else if(Wo(t),a0(),(n&536870912)!==0&&Hc(t),Yp(z)){if(a=z.nextSibling&&z.nextSibling.dataset,a){d=a.dgst;var N=a.msg;g=a.stck;var D=a.cstck}s=N,a=d,r=g,z=D,d=s,g=z,d=Error(d||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),d.stack=r||"",d.digest=a,a=g===void 0?null:g,r={value:d,source:null,stack:a},typeof a=="string"&&jm.set(d,r),rl(r),t=cp(e,t,n)}else if(Mt||Hr(e,t,n,!1),a=(n&e.childLanes)!==0,Mt||a){if(a=at,a!==null&&(r=ca(a,n),r!==0&&r!==T.retryLane))throw T.retryLane=r,tn(e,r),yt(a,e,r),Km;Hp(z)||Yc(),t=cp(e,t,n)}else Hp(z)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,ut=Vn(z.nextSibling),Ft=t,Ye=!0,hi=null,to=!1,Bn=null,Kn=!1,e!==null&&n0(t,e),t=up(t,r.children),t.flags|=4096);return t}}return s?(ei(t),d=r.fallback,g=t.mode,D=e.child,z=D.sibling,r=mo(D,{mode:"hidden",children:r.children}),r.subtreeFlags=D.subtreeFlags&65011712,z!==null?d=mo(z,d):(d=Pi(d,g,n,null),d.flags|=2),d.return=t,r.return=t,r.sibling=d,t.child=r,gl(null,r),r=t.child,d=e.child.memoizedState,d===null?d=sp(n):(g=d.cachePool,g!==null?(D=xt._currentValue,g=g.parent!==D?{parent:D,pool:D}:g):g=c0(),d={baseLanes:d.baseLanes|n,cachePool:g}),r.memoizedState=d,r.childLanes=lp(e,a,n),t.memoizedState=Wm,gl(e.child,r)):(T!==null&&(n&62914560)===n&&(n&e.lanes)!==0&&Hc(t),Wo(t),n=e.child,e=n.sibling,n=mo(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function up(e,t){return t=Uc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Uc(e,t){return e=y(22,e,null,t),e.lanes=0,e}function cp(e,t,n){return dr(t,e.child,null,n),e=up(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pb(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),yh(e.return,t,n)}function fp(e,t,n,a,r,s){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r,treeForkCount:s}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=n,c.tailMode=r,c.treeForkCount=s)}function mb(e,t,n){var a=t.pendingProps,r=a.revealOrder,s=a.tail,c=a.children,d=Tt.current;if((a=(d&su)!==0)?(d=d&Es|su,t.flags|=128):d&=Es,W(Tt,d,t),d=r??"null",r!=="forwards"&&r!=="unstable_legacy-backwards"&&r!=="together"&&r!=="independent"&&!WT[d])if(WT[d]=!0,r==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(r==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof r=="string")switch(r.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.',r,r.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.',r,r.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',r)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',r);d=s??"null",Nf[d]||(s==null?(r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")&&(Nf[d]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):s!=="visible"&&s!=="collapsed"&&s!=="hidden"?(Nf[d]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',s)):r!=="forwards"&&r!=="backwards"&&r!=="unstable_legacy-backwards"&&(Nf[d]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',s)));e:if((r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")&&c!==void 0&&c!==null&&c!==!1)if(Nt(c)){for(d=0;d<c.length;d++)if(!S0(c[d],d))break e}else if(d=ie(c),typeof d=="function"){if(d=d.call(c))for(var g=d.next(),T=0;!g.done;g=d.next()){if(!S0(g.value,T))break e;T++}}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?',r);if(Qt(e,t,c,n),Ye?(Qo(),c=Xl):c=0,!a&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pb(e,n,t);else if(e.tag===19)pb(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&bc(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),fp(t,!1,r,n,s,c);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&bc(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}fp(t,!0,n,null,s,c);break;case"together":fp(t,!1,null,null,void 0,c);break;default:t.memoizedState=null}return t.child}function bo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),dn=-1,Ti|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Hr(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=mo(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mo(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function dp(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&lc(e)))}function LM(e,t,n){switch(t.tag){case 3:Ee(t,t.stateNode.containerInfo),Io(t,xt,e.memoizedState.cache),Xi();break;case 27:case 5:Q(t);break;case 4:Ee(t,t.stateNode.containerInfo);break;case 10:Io(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var a=t.stateNode;a.effectDuration=-0,a.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,Mh(t),null;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(Wo(t),t.flags|=128,null):(n&t.child.childLanes)!==0?hb(e,t,n):(Wo(t),e=bo(e,t,n),e!==null?e.sibling:null);Wo(t);break;case 19:var r=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Hr(e,t,n,!1),a=(n&t.childLanes)!==0),r){if(a)return mb(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),W(Tt,Tt.current,t),a)break;return null;case 22:return t.lanes=0,sb(e,t,n,t.pendingProps);case 24:Io(t,xt,e.memoizedState.cache)}return bo(e,t,n)}function hp(e,t,n){if(t._debugNeedsRemount&&e!==null){n=uh(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var a=t.return;if(a===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===a.child)a.child=n;else{var r=a.child;if(r===null)throw Error("Expected parent to have a child.");for(;r.sibling!==t;)if(r=r.sibling,r===null)throw Error("Expected to find the previous sibling.");r.sibling=n}return t=a.deletions,t===null?(a.deletions=[e],a.flags|=16):t.push(e),n.flags|=2,n}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Mt=!0;else{if(!dp(e,n)&&(t.flags&128)===0)return Mt=!1,LM(e,t,n);Mt=(e.flags&131072)!==0}else Mt=!1,(a=Ye)&&(Qo(),a=(t.flags&1048576)!==0),a&&(a=t.index,Qo(),e0(t,Xl,a));switch(t.lanes=0,t.tag){case 16:e:if(a=t.pendingProps,e=Fo(t.elementType),t.type=e,typeof e=="function")lh(e)?(a=Ki(e,a),t.tag=1,t.type=e=Gi(e),t=fb(null,t,e,a,n)):(t.tag=0,rp(t,e),t.type=e=Gi(e),t=ip(null,t,e,a,n));else{if(e!=null){if(r=e.$$typeof,r===zl){t.tag=11,t.type=e=sh(e),t=ob(null,t,e,a,n);break e}else if(r===tf){t.tag=14,t=ib(null,t,e,a,n);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===kn&&(t=" Did you wrap a component in React.lazy() more than once?"),n=J(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 ip(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,r=Ki(a,t.pendingProps),fb(e,t,a,r,n);case 3:e:{if(Ee(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");a=t.pendingProps;var s=t.memoizedState;r=s.element,xh(e,t),hl(t,a,null,n);var c=t.memoizedState;if(a=c.cache,Io(t,xt,a),a!==s.cache&&gh(t,[xt],n,!0),dl(),a=c.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=db(e,t,a,n);break e}else if(a!==r){r=_n(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),rl(r),t=db(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ut=Vn(e.firstChild),Ft=t,Ye=!0,hi=null,to=!1,Bn=null,Kn=!0,n=CT(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Xi(),a===r){t=bo(e,t,n);break e}Qt(e,t,a,n)}t=t.child}return t;case 26:return Nc(e,t),e===null?(n=HS(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ye||(n=t.type,e=t.pendingProps,a=de(ri.current),a=$c(a).createElement(n),a[It]=t,a[un]=e,Zt(a,n,e),Se(a),t.stateNode=a):t.memoizedState=HS(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Q(t),e===null&&Ye&&(a=de(ri.current),r=H(),a=t.stateNode=LS(t.type,t.pendingProps,a,r,!1),to||(r=RS(a,t.type,t.pendingProps,r),r!==null&&($i(t,0).serverProps=r)),Ft=t,Kn=!0,r=ut,oi(t.type)?(Ay=r,ut=Vn(a.firstChild)):ut=r),Qt(e,t,t.pendingProps.children,n),Nc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ye&&(s=H(),a=Kd(t.type,s.ancestorInfo),r=ut,(c=!r)||(c=RC(r,t.type,t.pendingProps,Kn),c!==null?(t.stateNode=c,to||(s=RS(c,t.type,t.pendingProps,s),s!==null&&($i(t,0).serverProps=s)),Ft=t,ut=Vn(c.firstChild),Kn=!1,s=!0):s=!1,c=!s),c&&(a&&rc(t,r),Zo(t))),Q(t),r=t.type,s=t.pendingProps,c=e!==null?e.memoizedProps:null,a=s.children,Lp(r,s)?a=null:c!==null&&Lp(r,c)&&(t.flags|=32),t.memoizedState!==null&&(r=Dh(e,t,OM,null,null,n),wu._currentValue=r),Nc(e,t),Qt(e,t,a,n),t.child;case 6:return e===null&&Ye&&(n=t.pendingProps,e=H(),a=e.ancestorInfo.current,n=a!=null?Fu(n,a.tag,e.ancestorInfo.implicitRootScope):!0,e=ut,(a=!e)||(a=MC(e,t.pendingProps,Kn),a!==null?(t.stateNode=a,Ft=t,ut=null,a=!0):a=!1,a=!a),a&&(n&&rc(t,e),Zo(t))),null;case 13:return hb(e,t,n);case 4:return Ee(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=dr(t,null,a,n):Qt(e,t,a,n),t.child;case 11:return ob(e,t,t.type,t.pendingProps,n);case 7:return Qt(e,t,t.pendingProps,n),t.child;case 8:return Qt(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,a=t.stateNode,a.effectDuration=-0,a.passiveEffectDuration=-0,Qt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.type,r=t.pendingProps,s=r.value,"value"in r||eA||(eA=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Io(t,a,s),Qt(e,t,r.children,n),t.child;case 9:return r=t.type._context,a=t.pendingProps.children,typeof a!="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."),Qi(t),r=ft(r),a=Hm(a,r,void 0),t.flags|=1,Qt(e,t,a,n),t.child;case 14:return ib(e,t,t.type,t.pendingProps,n);case 15:return rb(e,t,t.type,t.pendingProps,n);case 19:return mb(e,t,n);case 31:return kM(e,t,n);case 22:return sb(e,t,n,t.pendingProps);case 24:return Qi(t),a=ft(xt),e===null?(r=Th(),r===null&&(r=at,s=vh(),r.pooledCache=s,Zi(s),s!==null&&(r.pooledCacheLanes|=n),r=s),t.memoizedState={parent:a,cache:r},Eh(t),Io(t,xt,r)):((e.lanes&n)!==0&&(xh(e,t),hl(t,null,null,n),dl()),r=e.memoizedState,s=t.memoizedState,r.parent!==a?(r={parent:a,cache:a},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Io(t,xt,a)):(a=s.cache,Io(t,xt,a),a!==r.cache&&gh(t,[xt],n,!0))),Qt(e,t,t.pendingProps.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 So(e){e.flags|=4}function pp(e,t,n,a,r){if((t=(e.mode&iO)!==Me)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Zb())e.flags|=8192;else throw fr=Cf,qm}else e.flags&=-16777217}function yb(e,t){if(t.type!=="stylesheet"||(t.state.loading&aa)!==Er)e.flags&=-16777217;else if(e.flags|=16777216,!$S(t))if(Zb())e.flags|=8192;else throw fr=Cf,qm}function Vc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Li():536870912,e.lanes|=t,gr|=t)}function vl(e,t){if(!Ye)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function it(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)if((e.mode&Ne)!==Me){for(var r=e.selfBaseDuration,s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,r+=s.treeBaseDuration,s=s.sibling;e.treeBaseDuration=r}else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags&65011712,a|=r.flags&65011712,r.return=e,r=r.sibling;else if((e.mode&Ne)!==Me){r=e.actualDuration,s=e.selfBaseDuration;for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,a|=c.subtreeFlags,a|=c.flags,r+=c.actualDuration,s+=c.treeBaseDuration,c=c.sibling;e.actualDuration=r,e.treeBaseDuration=s}else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function BM(e,t,n){var a=t.pendingProps;switch(hh(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(t),null;case 1:return it(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),go(xt,t),K(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Br(t)?(mh(),So(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ph())),it(t),null;case 26:var r=t.type,s=t.memoizedState;return e===null?(So(t),s!==null?(it(t),yb(t,s)):(it(t),pp(t,r,null,a,n))):s?s!==e.memoizedState?(So(t),it(t),yb(t,s)):(it(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&So(t),it(t),pp(t,r,e,a,n)),null;case 27:if(ce(t),n=de(ri.current),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&So(t);else{if(!a){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 it(t),null}e=H(),Br(t)?o0(t):(e=LS(r,a,n,e,!0),t.stateNode=e,So(t))}return it(t),null;case 5:if(ce(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&So(t);else{if(!a){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 it(t),null}var c=H();if(Br(t))o0(t);else{switch(s=de(ri.current),Kd(r,c.ancestorInfo),c=c.context,s=$c(s),c){case Us:s=s.createElementNS(is,r);break;case ed:s=s.createElementNS(uf,r);break;default:switch(r){case"svg":s=s.createElementNS(is,r);break;case"math":s=s.createElementNS(uf,r);break;case"script":s=s.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof a.is=="string"?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?s.multiple=!0:a.size&&(s.size=a.size);break;default:s=typeof a.is=="string"?s.createElement(r,{is:a.is}):s.createElement(r),r.indexOf("-")===-1&&(r!==r.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),Object.prototype.toString.call(s)!=="[object HTMLUnknownElement]"||va.call(xA,r)||(xA[r]=!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.",r)))}}s[It]=t,s[un]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)s.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=s;e:switch(Zt(s,r,a),r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&So(t)}}return it(t),pp(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&So(t);else{if(typeof a!="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=de(ri.current),n=H(),Br(t)){if(e=t.stateNode,n=t.memoizedProps,r=!to,a=null,s=Ft,s!==null)switch(s.tag){case 3:r&&(r=VS(e,n,a),r!==null&&($i(t,0).serverProps=r));break;case 27:case 5:a=s.memoizedProps,r&&(r=VS(e,n,a),r!==null&&($i(t,0).serverProps=r))}e[It]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||TS(e.nodeValue,n)),e||Zo(t,!0)}else r=n.ancestorInfo.current,r!=null&&Fu(a,r.tag,n.ancestorInfo.implicitRootScope),e=$c(e).createTextNode(a),e[It]=t,t.stateNode=e}return it(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Br(t),n!==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(e=t.memoizedState,e=e!==null?e.dehydrated:null,!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[It]=t,it(t),(t.mode&Ne)!==Me&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else mh(),Xi(),(t.flags&128)===0&&(n=t.memoizedState=null),t.flags|=4,it(t),(t.mode&Ne)!==Me&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else n=ph(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Nn(t),t):(Nn(t),null);if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return it(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=a,s=Br(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");s[It]=t,it(t),(t.mode&Ne)!==Me&&r!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration))}else mh(),Xi(),(t.flags&128)===0&&(r=t.memoizedState=null),t.flags|=4,it(t),(t.mode&Ne)!==Me&&r!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration));r=!1}else r=ph(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Nn(t),t):(Nn(t),null)}return Nn(t),(t.flags&128)!==0?(t.lanes=n,(t.mode&Ne)!==Me&&ul(t),t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,r=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(r=a.alternate.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==r&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Vc(t,t.updateQueue),it(t),(t.mode&Ne)!==Me&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return K(t),e===null&&_p(t.stateNode.containerInfo),it(t),null;case 10:return go(t.type,t),it(t),null;case 19:if(V(Tt,t),a=t.memoizedState,a===null)return it(t),null;if(r=(t.flags&128)!==0,s=a.rendering,s===null)if(r)vl(a,!1);else{if(mt!==Vo||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=bc(e),s!==null){for(t.flags|=128,vl(a,!1),e=s.updateQueue,t.updateQueue=e,Vc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Kv(n,e),n=n.sibling;return W(Tt,Tt.current&Es|su,t),Ye&&yo(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&qt()>Yf&&(t.flags|=128,r=!0,vl(a,!1),t.lanes=4194304)}else{if(!r)if(e=bc(s),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Vc(t,e),vl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!Ye)return it(t),null}else 2*qt()-a.renderingStartTime>Yf&&n!==536870912&&(t.flags|=128,r=!0,vl(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(e=a.last,e!==null?e.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=qt(),e.sibling=null,n=Tt.current,n=r?n&Es|su:n&Es,W(Tt,n,t),Ye&&yo(t,a.treeForkCount),e):(it(t),null);case 22:case 23:return Nn(t),Rh(t),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(it(t),t.subtreeFlags&6&&(t.flags|=8192)):it(t),n=t.updateQueue,n!==null&&Vc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&V(ur,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),go(xt,t),it(t),null;case 25:return null;case 30:return 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 HM(e,t){switch(hh(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ne)!==Me&&ul(t),t):null;case 3:return go(xt,t),K(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ce(t),null;case 31:if(t.memoizedState!==null){if(Nn(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ne)!==Me&&ul(t),t):null;case 13:if(Nn(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.");Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ne)!==Me&&ul(t),t):null;case 19:return V(Tt,t),null;case 4:return K(t),null;case 10:return go(t.type,t),null;case 22:case 23:return Nn(t),Rh(t),e!==null&&V(ur,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ne)!==Me&&ul(t),t):null;case 24:return go(xt,t),null;case 25:return null;default:return null}}function gb(e,t){switch(hh(t),t.tag){case 3:go(xt,t),K(t);break;case 26:case 27:case 5:ce(t);break;case 4:K(t);break;case 31:t.memoizedState!==null&&Nn(t);break;case 13:Nn(t);break;case 19:V(Tt,t);break;case 10:go(t.type,t);break;case 22:case 23:Nn(t),Rh(t),e!==null&&V(ur,t);break;case 24:go(xt,t)}}function qa(e){return(e.mode&Ne)!==Me}function vb(e,t){qa(e)?(Ya(),bl(t,e),Ha()):bl(t,e)}function mp(e,t,n){qa(e)?(Ya(),$r(n,e,t),Ha()):$r(n,e,t)}function bl(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var r=a.next;n=r;do{if((n.tag&e)===e&&(a=void 0,(e&hn)!==Of&&(js=!0),a=he(t,fO,n),(e&hn)!==Of&&(js=!1),a!==void 0&&typeof a!="function")){var s=void 0;s=(n.tag&Yn)!==0?"useLayoutEffect":(n.tag&hn)!==0?"useInsertionEffect":"useEffect";var c=void 0;c=a===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof a.then=="function"?`
|
|
186
|
+
|
|
187
|
+
It looks like you wrote `+s+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
188
|
+
|
|
189
|
+
`+s+`(() => {
|
|
190
|
+
async function fetchData() {
|
|
191
|
+
// You can await here
|
|
192
|
+
const response = await MyAPI.getData(someId);
|
|
193
|
+
// ...
|
|
194
|
+
}
|
|
195
|
+
fetchData();
|
|
196
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
197
|
+
|
|
198
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+a,he(t,function(d,g){console.error("%s must not return anything besides a function, which is used for clean-up.%s",d,g)},s,c)}n=n.next}while(n!==r)}}catch(d){Ze(t,t.return,d)}}function $r(e,t,n){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var s=r.next;a=s;do{if((a.tag&e)===e){var c=a.inst,d=c.destroy;d!==void 0&&(c.destroy=void 0,(e&hn)!==Of&&(js=!0),r=t,he(r,dO,r,n,d),(e&hn)!==Of&&(js=!1))}a=a.next}while(a!==s)}}catch(g){Ze(t,t.return,g)}}function bb(e,t){qa(e)?(Ya(),bl(t,e),Ha()):bl(t,e)}function yp(e,t,n){qa(e)?(Ya(),$r(n,e,t),Ha()):$r(n,e,t)}function Sb(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Ms||(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.",q(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.",q(e)||"instance"));try{he(e,A0,t,n)}catch(a){Ze(e,e.return,a)}}}function YM(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function qM(e,t){var n=t.memoizedProps,a=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Ms||(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.",q(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.",q(e)||"instance"));try{var r=Ki(e.type,n),s=he(e,YM,t,r,a);n=tA,s!==void 0||n.has(e.type)||(n.add(e.type),he(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",q(e))})),t.__reactInternalSnapshotBeforeUpdate=s}catch(c){Ze(e,e.return,c)}}function Tb(e,t,n){n.props=Ki(e.type,e.memoizedProps),n.state=e.memoizedState,qa(e)?(Ya(),he(e,ST,e,t,n),Ha()):he(e,ST,e,t,n)}function GM(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;break;default:n=e.stateNode}if(typeof t=="function")if(qa(e))try{Ya(),e.refCleanup=t(n)}finally{Ha()}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().",q(e)),t.current=n}}function Sl(e,t){try{he(e,GM,e)}catch(n){Ze(e,t,n)}}function Ga(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{if(qa(e))try{Ya(),he(e,a)}finally{Ha(e)}else he(e,a)}catch(r){Ze(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{if(qa(e))try{Ya(),he(e,n,null)}finally{Ha(e)}else he(e,n,null)}catch(r){Ze(e,t,r)}else n.current=null}function Ab(e,t,n,a){var r=e.memoizedProps,s=r.id,c=r.onCommit;r=r.onRender,t=t===null?"mount":"update",xf&&(t="nested-update"),typeof r=="function"&&r(s,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof c=="function"&&c(s,t,a,n)}function PM(e,t,n,a){var r=e.memoizedProps;e=r.id,r=r.onPostCommit,t=t===null?"mount":"update",xf&&(t="nested-update"),typeof r=="function"&&r(e,t,a,n)}function Eb(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{he(e,pC,a,t,n,e)}catch(r){Ze(e,e.return,r)}}function gp(e,t,n){try{he(e,yC,e.stateNode,e.type,n,t,e)}catch(a){Ze(e,e.return,a)}}function xb(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&oi(e.type)||e.tag===4}function vp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xb(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&&oi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function bp(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(_S(n),(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t)):(_S(n),t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=po));else if(a!==4&&(a===27&&oi(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(bp(e,t,n),e=e.sibling;e!==null;)bp(e,t,n),e=e.sibling}function kc(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&oi(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(kc(e,t,n),e=e.sibling;e!==null;)kc(e,t,n),e=e.sibling}function $M(e){for(var t,n=e.return;n!==null;){if(xb(n)){t=n;break}n=n.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,n=vp(e),kc(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(OS(n),t.flags&=-33),t=vp(e),kc(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=vp(e),bp(e,n,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function wb(e){var t=e.stateNode,n=e.memoizedProps;try{he(e,jC,e.type,n,t,e)}catch(a){Ze(e,e.return,a)}}function Rb(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)===0:!1}function XM(e,t){if(e=e.containerInfo,by=od,e=qv(e),th(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var r=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var c=0,d=-1,g=-1,T=0,z=0,N=e,D=null;t:for(;;){for(var Y;N!==n||r!==0&&N.nodeType!==3||(d=c+r),N!==s||a!==0&&N.nodeType!==3||(g=c+a),N.nodeType===3&&(c+=N.nodeValue.length),(Y=N.firstChild)!==null;)D=N,N=Y;for(;;){if(N===e)break t;if(D===n&&++T===r&&(d=c),D===s&&++z===a&&(g=c),(Y=N.nextSibling)!==null)break;N=D,D=N.parentNode}N=Y}n=d===-1||g===-1?null:{start:d,end:g}}else n=null}n=n||{start:0,end:0}}else n=null;for(Sy={focusedElem:e,selectionRange:n},od=!1,Pt=t;Pt!==null;)if(t=Pt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Pt=e;else for(;Pt!==null;){switch(e=t=Pt,n=e.alternate,r=e.flags,e.tag){case 0:if((r&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)r=e[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:(r&1024)!==0&&n!==null&&qM(e,n);break;case 3:if((r&1024)!==0){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)Bp(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Bp(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,Pt=e;break}Pt=t.return}}function Mb(e,t,n){var a=jn(),r=Va(),s=La(),c=Ba(),d=n.flags;switch(n.tag){case 0:case 11:case 15:Pa(e,n),d&4&&vb(n,Yn|ta);break;case 1:if(Pa(e,n),d&4)if(e=n.stateNode,t===null)n.type.defaultProps||"ref"in n.memoizedProps||Ms||(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.",q(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.",q(n)||"instance")),qa(n)?(Ya(),he(n,Ym,n,e),Ha()):he(n,Ym,n,e);else{var g=Ki(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||"ref"in n.memoizedProps||Ms||(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.",q(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.",q(n)||"instance")),qa(n)?(Ya(),he(n,gT,n,e,g,t,e.__reactInternalSnapshotBeforeUpdate),Ha()):he(n,gT,n,e,g,t,e.__reactInternalSnapshotBeforeUpdate)}d&64&&Sb(n),d&512&&Sl(n,n.return);break;case 3:if(t=vo(),Pa(e,n),d&64&&(d=n.updateQueue,d!==null)){if(g=null,n.child!==null)switch(n.child.tag){case 27:case 5:g=n.child.stateNode;break;case 1:g=n.child.stateNode}try{he(n,A0,d,g)}catch(z){Ze(n,n.return,z)}}e.effectDuration+=cc(t);break;case 27:t===null&&d&4&&wb(n);case 26:case 5:if(Pa(e,n),t===null){if(d&4)Eb(n);else if(d&64){e=n.type,t=n.memoizedProps,g=n.stateNode;try{he(n,mC,g,e,t,n)}catch(z){Ze(n,n.return,z)}}}d&512&&Sl(n,n.return);break;case 12:if(d&4){d=vo(),Pa(e,n),e=n.stateNode,e.effectDuration+=ll(d);try{he(n,Ab,n,t,pi,e.effectDuration)}catch(z){Ze(n,n.return,z)}}else Pa(e,n);break;case 31:Pa(e,n),d&4&&Ob(e,n);break;case 13:Pa(e,n),d&4&&_b(e,n),d&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(d=tC.bind(null,n),CC(e,d))));break;case 22:if(d=n.memoizedState!==null||Uo,!d){t=t!==null&&t.memoizedState!==null||Ct,g=Uo;var T=Ct;Uo=d,(Ct=t)&&!T?($a(e,n,(n.subtreeFlags&8772)!==0),(n.mode&Ne)!==Me&&0<=xe&&0<=Re&&.05<Re-xe&&ec(n,xe,Re)):Pa(e,n),Uo=g,Ct=T}break;case 30:break;default:Pa(e,n)}(n.mode&Ne)!==Me&&0<=xe&&0<=Re&&((gt||.05<pt)&&Na(n,xe,Re,pt,dt),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<Re-xe&&(Rb(n.return.alternate,n.return)||za(n,xe,Re,"Mount"))),zn(a),ka(r),dt=s,gt=c}function Cb(e){var t=e.alternate;t!==null&&(e.alternate=null,Cb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&k(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 To(e,t,n){for(n=n.child;n!==null;)Db(e,t,n),n=n.sibling}function Db(e,t,n){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount(as,n)}catch(T){Ja||(Ja=!0,console.error("React instrumentation encountered an error: %o",T))}var a=jn(),r=Va(),s=La(),c=Ba();switch(n.tag){case 26:Ct||Ga(n,t),To(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(e=n.stateNode,e.parentNode.removeChild(e));break;case 27:Ct||Ga(n,t);var d=Dt,g=En;oi(n.type)&&(Dt=n.stateNode,En=!1),To(e,t,n),he(n,Dl,n.stateNode),Dt=d,En=g;break;case 5:Ct||Ga(n,t);case 6:if(d=Dt,g=En,Dt=null,To(e,t,n),Dt=d,En=g,Dt!==null)if(En)try{he(n,bC,Dt,n.stateNode)}catch(T){Ze(n,t,T)}else try{he(n,vC,Dt,n.stateNode)}catch(T){Ze(n,t,T)}break;case 18:Dt!==null&&(En?(e=Dt,jS(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Wr(e)):jS(Dt,n.stateNode));break;case 4:d=Dt,g=En,Dt=n.stateNode.containerInfo,En=!0,To(e,t,n),Dt=d,En=g;break;case 0:case 11:case 14:case 15:$r(hn,n,t),Ct||mp(n,t,Yn),To(e,t,n);break;case 1:Ct||(Ga(n,t),d=n.stateNode,typeof d.componentWillUnmount=="function"&&Tb(n,t,d)),To(e,t,n);break;case 21:To(e,t,n);break;case 22:Ct=(d=Ct)||n.memoizedState!==null,To(e,t,n),Ct=d;break;default:To(e,t,n)}(n.mode&Ne)!==Me&&0<=xe&&0<=Re&&(gt||.05<pt)&&Na(n,xe,Re,pt,dt),zn(a),ka(r),dt=s,gt=c}function Ob(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{he(t,OC,e)}catch(n){Ze(t,t.return,n)}}}function _b(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{he(t,_C,e)}catch(n){Ze(t,t.return,n)}}function QM(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new nA),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new nA),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Lc(e,t){var n=QM(e);t.forEach(function(a){if(!n.has(a)){if(n.add(a),Ka)if(Cs!==null&&Ds!==null)xl(Ds,Cs);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var r=nC.bind(null,e,a);a.then(r,r)}})}function Tn(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var r=e,s=t,c=n[a],d=jn(),g=s;e:for(;g!==null;){switch(g.tag){case 27:if(oi(g.type)){Dt=g.stateNode,En=!1;break e}break;case 5:Dt=g.stateNode,En=!1;break e;case 3:case 4:Dt=g.stateNode.containerInfo,En=!0;break e}g=g.return}if(Dt===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Db(r,s,c),Dt=null,En=!1,(c.mode&Ne)!==Me&&0<=xe&&0<=Re&&.05<Re-xe&&za(c,xe,Re,"Unmount"),zn(d),r=c,s=r.alternate,s!==null&&(s.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)jb(t,e),t=t.sibling}function jb(e,t){var n=jn(),a=Va(),r=La(),s=Ba(),c=e.alternate,d=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Tn(t,e),An(e),d&4&&($r(hn|ta,e,e.return),bl(hn|ta,e),mp(e,e.return,Yn|ta));break;case 1:if(Tn(t,e),An(e),d&512&&(Ct||c===null||Ga(c,c.return)),d&64&&Uo&&(d=e.updateQueue,d!==null&&(c=d.callbacks,c!==null))){var g=d.shared.hiddenCallbacks;d.shared.hiddenCallbacks=g===null?c:g.concat(c)}break;case 26:if(g=Aa,Tn(t,e),An(e),d&512&&(Ct||c===null||Ga(c,c.return)),d&4){var T=c!==null?c.memoizedState:null;if(d=e.memoizedState,c===null)if(d===null)if(e.stateNode===null){e:{d=e.type,c=e.memoizedProps,g=g.ownerDocument||g;t:switch(d){case"title":T=g.getElementsByTagName("title")[0],(!T||T[Vl]||T[It]||T.namespaceURI===is||T.hasAttribute("itemprop"))&&(T=g.createElement(d),g.head.insertBefore(T,g.querySelector("head > title"))),Zt(T,d,c),T[It]=e,Se(T),d=T;break e;case"link":var z=GS("link","href",g).get(d+(c.href||""));if(z){for(var N=0;N<z.length;N++)if(T=z[N],T.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&T.getAttribute("rel")===(c.rel==null?null:c.rel)&&T.getAttribute("title")===(c.title==null?null:c.title)&&T.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){z.splice(N,1);break t}}T=g.createElement(d),Zt(T,d,c),g.head.appendChild(T);break;case"meta":if(z=GS("meta","content",g).get(d+(c.content||""))){for(N=0;N<z.length;N++)if(T=z[N],qe(c.content,"content"),T.getAttribute("content")===(c.content==null?null:""+c.content)&&T.getAttribute("name")===(c.name==null?null:c.name)&&T.getAttribute("property")===(c.property==null?null:c.property)&&T.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&T.getAttribute("charset")===(c.charSet==null?null:c.charSet)){z.splice(N,1);break t}}T=g.createElement(d),Zt(T,d,c),g.head.appendChild(T);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+d+'". This is a bug in React.')}T[It]=e,Se(T),d=T}e.stateNode=d}else PS(g,e.type,e.stateNode);else e.stateNode=qS(g,d,e.memoizedProps);else T!==d?(T===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):T.count--,d===null?PS(g,e.type,e.stateNode):qS(g,d,e.memoizedProps)):d===null&&e.stateNode!==null&&gp(e,e.memoizedProps,c.memoizedProps)}break;case 27:Tn(t,e),An(e),d&512&&(Ct||c===null||Ga(c,c.return)),c!==null&&d&4&&gp(e,e.memoizedProps,c.memoizedProps);break;case 5:if(Tn(t,e),An(e),d&512&&(Ct||c===null||Ga(c,c.return)),e.flags&32){g=e.stateNode;try{he(e,OS,g)}catch(fe){Ze(e,e.return,fe)}}d&4&&e.stateNode!=null&&(g=e.memoizedProps,gp(e,g,c!==null?c.memoizedProps:g)),d&1024&&(ey=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Tn(t,e),An(e),d&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.");d=e.memoizedProps,c=c!==null?c.memoizedProps:d,g=e.stateNode;try{he(e,gC,g,c,d)}catch(fe){Ze(e,e.return,fe)}}break;case 3:if(g=vo(),td=null,T=Aa,Aa=Xc(t.containerInfo),Tn(t,e),Aa=T,An(e),d&4&&c!==null&&c.memoizedState.isDehydrated)try{he(e,DC,t.containerInfo)}catch(fe){Ze(e,e.return,fe)}ey&&(ey=!1,zb(e)),t.effectDuration+=cc(g);break;case 4:d=Aa,Aa=Xc(e.stateNode.containerInfo),Tn(t,e),An(e),Aa=d;break;case 12:d=vo(),Tn(t,e),An(e),e.stateNode.effectDuration+=ll(d);break;case 31:Tn(t,e),An(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,Lc(e,d)));break;case 13:Tn(t,e),An(e),e.child.flags&8192&&e.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(Hf=qt()),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,Lc(e,d)));break;case 22:g=e.memoizedState!==null;var D=c!==null&&c.memoizedState!==null,Y=Uo,le=Ct;if(Uo=Y||g,Ct=le||D,Tn(t,e),Ct=le,Uo=Y,D&&!g&&!Y&&!le&&(e.mode&Ne)!==Me&&0<=xe&&0<=Re&&.05<Re-xe&&ec(e,xe,Re),An(e),d&8192)e:for(t=e.stateNode,t._visibility=g?t._visibility&~$l:t._visibility|$l,!g||c===null||D||Uo||Ct||(Wi(e),(e.mode&Ne)!==Me&&0<=xe&&0<=Re&&.05<Re-xe&&za(e,xe,Re,"Disconnect")),c=null,t=e;;){if(t.tag===5||t.tag===26){if(c===null){D=c=t;try{T=D.stateNode,g?he(D,TC,T):he(D,xC,D.stateNode,D.memoizedProps)}catch(fe){Ze(D,D.return,fe)}}}else if(t.tag===6){if(c===null){D=t;try{z=D.stateNode,g?he(D,AC,z):he(D,wC,z,D.memoizedProps)}catch(fe){Ze(D,D.return,fe)}}}else if(t.tag===18){if(c===null){D=t;try{N=D.stateNode,g?he(D,SC,N):he(D,EC,D.stateNode)}catch(fe){Ze(D,D.return,fe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;c===t&&(c=null),t=t.return}c===t&&(c=null),t.sibling.return=t.return,t=t.sibling}d&4&&(d=e.updateQueue,d!==null&&(c=d.retryQueue,c!==null&&(d.retryQueue=null,Lc(e,c))));break;case 19:Tn(t,e),An(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,Lc(e,d)));break;case 30:break;case 21:break;default:Tn(t,e),An(e)}(e.mode&Ne)!==Me&&0<=xe&&0<=Re&&((gt||.05<pt)&&Na(e,xe,Re,pt,dt),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<Re-xe&&(Rb(e.return.alternate,e.return)||za(e,xe,Re,"Mount"))),zn(n),ka(a),dt=r,gt=s}function An(e){var t=e.flags;if(t&2){try{he(e,$M,e)}catch(n){Ze(e,e.return,n)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function zb(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;zb(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Pa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Mb(e,t.alternate,t),t=t.sibling}function Nb(e){var t=jn(),n=Va(),a=La(),r=Ba();switch(e.tag){case 0:case 11:case 14:case 15:mp(e,e.return,Yn),Wi(e);break;case 1:Ga(e,e.return);var s=e.stateNode;typeof s.componentWillUnmount=="function"&&Tb(e,e.return,s),Wi(e);break;case 27:he(e,Dl,e.stateNode);case 26:case 5:Ga(e,e.return),Wi(e);break;case 22:e.memoizedState===null&&Wi(e);break;case 30:Wi(e);break;default:Wi(e)}(e.mode&Ne)!==Me&&0<=xe&&0<=Re&&(gt||.05<pt)&&Na(e,xe,Re,pt,dt),zn(t),ka(n),dt=a,gt=r}function Wi(e){for(e=e.child;e!==null;)Nb(e),e=e.sibling}function Ub(e,t,n,a){var r=jn(),s=Va(),c=La(),d=Ba(),g=n.flags;switch(n.tag){case 0:case 11:case 15:$a(e,n,a),vb(n,Yn);break;case 1:if($a(e,n,a),t=n.stateNode,typeof t.componentDidMount=="function"&&he(n,Ym,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{he(n,DM,t,e)}catch(T){Ze(n,n.return,T)}}a&&g&64&&Sb(n),Sl(n,n.return);break;case 27:wb(n);case 26:case 5:$a(e,n,a),a&&t===null&&g&4&&Eb(n),Sl(n,n.return);break;case 12:if(a&&g&4){g=vo(),$a(e,n,a),a=n.stateNode,a.effectDuration+=ll(g);try{he(n,Ab,n,t,pi,a.effectDuration)}catch(T){Ze(n,n.return,T)}}else $a(e,n,a);break;case 31:$a(e,n,a),a&&g&4&&Ob(e,n);break;case 13:$a(e,n,a),a&&g&4&&_b(e,n);break;case 22:n.memoizedState===null&&$a(e,n,a),Sl(n,n.return);break;case 30:break;default:$a(e,n,a)}(n.mode&Ne)!==Me&&0<=xe&&0<=Re&&(gt||.05<pt)&&Na(n,xe,Re,pt,dt),zn(r),ka(s),dt=c,gt=d}function $a(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Ub(e,t.alternate,t,n),t=t.sibling}function Sp(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&&Zi(e),n!=null&&sl(n))}function Tp(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Zi(t),e!=null&&sl(e))}function ga(e,t,n,a,r){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var s=t.sibling;Vb(e,t,n,a,s!==null?s.actualStartTime:r),t=s}}function Vb(e,t,n,a,r){var s=jn(),c=Va(),d=La(),g=Ba(),T=ci,z=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Ne)!==Me&&0<t.actualStartTime&&(t.flags&1)!==0&&tc(t,t.actualStartTime,r,Ut,n),ga(e,t,n,a,r),z&2048&&bb(t,pn|ta);break;case 1:(t.mode&Ne)!==Me&&0<t.actualStartTime&&((t.flags&128)!==0?ah(t,t.actualStartTime,r,[]):(t.flags&1)!==0&&tc(t,t.actualStartTime,r,Ut,n)),ga(e,t,n,a,r);break;case 3:var N=vo(),D=Ut;Ut=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,ga(e,t,n,a,r),Ut=D,z&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),a=t.memoizedState.cache,a!==n&&(Zi(a),n!=null&&sl(n))),e.passiveEffectDuration+=cc(N);break;case 12:if(z&2048){z=vo(),ga(e,t,n,a,r),e=t.stateNode,e.passiveEffectDuration+=ll(z);try{he(t,PM,t,t.alternate,pi,e.passiveEffectDuration)}catch(Y){Ze(t,t.return,Y)}}else ga(e,t,n,a,r);break;case 31:z=Ut,N=t.alternate!==null?t.alternate.memoizedState:null,D=t.memoizedState,N!==null&&D===null?(D=t.deletions,D!==null&&0<D.length&&D[0].tag===18?(Ut=!1,N=N.hydrationErrors,N!==null&&ah(t,t.actualStartTime,r,N)):Ut=!0):Ut=!1,ga(e,t,n,a,r),Ut=z;break;case 13:z=Ut,N=t.alternate!==null?t.alternate.memoizedState:null,D=t.memoizedState,N===null||N.dehydrated===null||D!==null&&D.dehydrated!==null?Ut=!1:(D=t.deletions,D!==null&&0<D.length&&D[0].tag===18?(Ut=!1,N=N.hydrationErrors,N!==null&&ah(t,t.actualStartTime,r,N)):Ut=!0),ga(e,t,n,a,r),Ut=z;break;case 23:break;case 22:D=t.stateNode,N=t.alternate,t.memoizedState!==null?D._visibility&wo?ga(e,t,n,a,r):Tl(e,t,n,a,r):D._visibility&wo?ga(e,t,n,a,r):(D._visibility|=wo,Xr(e,t,n,a,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),r),(t.mode&Ne)===Me||Ut||(e=t.actualStartTime,0<=e&&.05<r-e&&ec(t,e,r),0<=xe&&0<=Re&&.05<Re-xe&&ec(t,xe,Re))),z&2048&&Sp(N,t);break;case 24:ga(e,t,n,a,r),z&2048&&Tp(t.alternate,t);break;default:ga(e,t,n,a,r)}(t.mode&Ne)!==Me&&((e=!Ut&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(n=t.actualStartTime,0<=n&&.05<r-n&&za(t,n,r,"Mount")),0<=xe&&0<=Re&&((gt||.05<pt)&&Na(t,xe,Re,pt,dt),e&&.05<Re-xe&&za(t,xe,Re,"Mount"))),zn(s),ka(c),dt=d,gt=g,ci=T}function Xr(e,t,n,a,r,s){for(r=r&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var c=t.sibling;kb(e,t,n,a,r,c!==null?c.actualStartTime:s),t=c}}function kb(e,t,n,a,r,s){var c=jn(),d=Va(),g=La(),T=Ba(),z=ci;r&&(t.mode&Ne)!==Me&&0<t.actualStartTime&&(t.flags&1)!==0&&tc(t,t.actualStartTime,s,Ut,n);var N=t.flags;switch(t.tag){case 0:case 11:case 15:Xr(e,t,n,a,r,s),bb(t,pn);break;case 23:break;case 22:var D=t.stateNode;t.memoizedState!==null?D._visibility&wo?Xr(e,t,n,a,r,s):Tl(e,t,n,a,s):(D._visibility|=wo,Xr(e,t,n,a,r,s)),r&&N&2048&&Sp(t.alternate,t);break;case 24:Xr(e,t,n,a,r,s),r&&N&2048&&Tp(t.alternate,t);break;default:Xr(e,t,n,a,r,s)}(t.mode&Ne)!==Me&&0<=xe&&0<=Re&&(gt||.05<pt)&&Na(t,xe,Re,pt,dt),zn(c),ka(d),dt=g,gt=T,ci=z}function Tl(e,t,n,a,r){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var s=t.child;s!==null;){t=s.sibling;var c=e,d=n,g=a,T=t!==null?t.actualStartTime:r,z=ci;(s.mode&Ne)!==Me&&0<s.actualStartTime&&(s.flags&1)!==0&&tc(s,s.actualStartTime,T,Ut,d);var N=s.flags;switch(s.tag){case 22:Tl(c,s,d,g,T),N&2048&&Sp(s.alternate,s);break;case 24:Tl(c,s,d,g,T),N&2048&&Tp(s.alternate,s);break;default:Tl(c,s,d,g,T)}ci=z,s=t}}function Qr(e,t,n){if(e.subtreeFlags&fu)for(e=e.child;e!==null;)Lb(e,t,n),e=e.sibling}function Lb(e,t,n){switch(e.tag){case 26:Qr(e,t,n),e.flags&fu&&e.memoizedState!==null&&UC(n,Aa,e.memoizedState,e.memoizedProps);break;case 5:Qr(e,t,n);break;case 3:case 4:var a=Aa;Aa=Xc(e.stateNode.containerInfo),Qr(e,t,n),Aa=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=fu,fu=16777216,Qr(e,t,n),fu=a):Qr(e,t,n));break;default:Qr(e,t,n)}}function Bb(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 Al(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n],r=jn();Pt=a,qb(a,e),(a.mode&Ne)!==Me&&0<=xe&&0<=Re&&.05<Re-xe&&za(a,xe,Re,"Unmount"),zn(r)}Bb(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Hb(e),e=e.sibling}function Hb(e){var t=jn(),n=Va(),a=La(),r=Ba();switch(e.tag){case 0:case 11:case 15:Al(e),e.flags&2048&&yp(e,e.return,pn|ta);break;case 3:var s=vo();Al(e),e.stateNode.passiveEffectDuration+=cc(s);break;case 12:s=vo(),Al(e),e.stateNode.passiveEffectDuration+=ll(s);break;case 22:s=e.stateNode,e.memoizedState!==null&&s._visibility&wo&&(e.return===null||e.return.tag!==13)?(s._visibility&=~wo,Bc(e),(e.mode&Ne)!==Me&&0<=xe&&0<=Re&&.05<Re-xe&&za(e,xe,Re,"Disconnect")):Al(e);break;default:Al(e)}(e.mode&Ne)!==Me&&0<=xe&&0<=Re&&(gt||.05<pt)&&Na(e,xe,Re,pt,dt),zn(t),ka(n),gt=r,dt=a}function Bc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n],r=jn();Pt=a,qb(a,e),(a.mode&Ne)!==Me&&0<=xe&&0<=Re&&.05<Re-xe&&za(a,xe,Re,"Unmount"),zn(r)}Bb(e)}for(e=e.child;e!==null;)Yb(e),e=e.sibling}function Yb(e){var t=jn(),n=Va(),a=La(),r=Ba();switch(e.tag){case 0:case 11:case 15:yp(e,e.return,pn),Bc(e);break;case 22:var s=e.stateNode;s._visibility&wo&&(s._visibility&=~wo,Bc(e));break;default:Bc(e)}(e.mode&Ne)!==Me&&0<=xe&&0<=Re&&(gt||.05<pt)&&Na(e,xe,Re,pt,dt),zn(t),ka(n),gt=r,dt=a}function qb(e,t){for(;Pt!==null;){var n=Pt,a=n,r=t,s=jn(),c=Va(),d=La(),g=Ba();switch(a.tag){case 0:case 11:case 15:yp(a,r,pn);break;case 23:case 22:a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool,r!=null&&Zi(r));break;case 24:sl(a.memoizedState.cache)}if((a.mode&Ne)!==Me&&0<=xe&&0<=Re&&(gt||.05<pt)&&Na(a,xe,Re,pt,dt),zn(s),ka(c),gt=g,dt=d,a=n.child,a!==null)a.return=n,Pt=a;else e:for(n=e;Pt!==null;){if(a=Pt,s=a.sibling,c=a.return,Cb(a),a===n){Pt=null;break e}if(s!==null){s.return=c,Pt=s;break e}Pt=c}}}function ZM(){gO.forEach(function(e){return e()})}function Gb(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||X.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Un(e){if((Qe&Vt)!==$t&&Ve!==0)return Ve&-Ve;var t=X.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Dp()):fa()}function Pb(){if(wn===0)if((Ve&536870912)===0||Ye){var e=of;of<<=1,(of&3932160)===0&&(of=262144),wn=e}else wn=536870912;return e=Hn.current,e!==null&&(e.flags|=32),wn}function yt(e,t,n){if(js&&console.error("useInsertionEffect must not schedule updates."),fy&&(Pf=!0),(e===at&&(Je===mr||Je===yr)||e.cancelPendingCommit!==null)&&(Ir(e,0),ni(e,Ve,wn,!1)),Cn(e,n),(Qe&Vt)!==$t&&e===at){if(Fa)switch(t.tag){case 0:case 11:case 15:e=ke&&q(ke)||"Unknown",gA.has(e)||(gA.add(e),t=q(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:yA||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),yA=!0)}}else Ka&&ho(e,t,n),oC(t),e===at&&((Qe&Vt)===$t&&(Ai|=n),mt===bi&&ni(e,Ve,wn,!1)),Xa(e)}function $b(e,t,n){if((Qe&(Vt|qn))!==$t)throw Error("Should not already be working.");if(Ve!==0&&ke!==null){var a=ke,r=qt();switch(uT){case pu:case mr:var s=Jl;lt&&((a=a._debugTask)?a.run(console.timeStamp.bind(console,"Suspended",s,r,Qn,void 0,"primary-light")):console.timeStamp("Suspended",s,r,Qn,void 0,"primary-light"));break;case yr:s=Jl,lt&&((a=a._debugTask)?a.run(console.timeStamp.bind(console,"Action",s,r,Qn,void 0,"primary-light")):console.timeStamp("Action",s,r,Qn,void 0,"primary-light"));break;default:lt&&(a=r-Jl,3>a||console.timeStamp("Blocked",Jl,r,Qn,void 0,5>a?"primary-light":10>a?"primary":100>a?"primary-dark":"error"))}}s=(n=!n&&(t&127)===0&&(t&e.expiredLanes)===0||en(e,t))?FM(e,t):Ep(e,t,!0);var c=n;do{if(s===Vo){Os&&!n&&ni(e,t,0,!1),t=Je,Jl=wt(),uT=t;break}else{if(a=qt(),r=e.current.alternate,c&&!IM(r)){ma(t),r=Gt,s=a,!lt||s<=r||(St?St.run(console.timeStamp.bind(console,"Teared Render",r,s,Xe,Pe,"error")):console.timeStamp("Teared Render",r,s,Xe,Pe,"error")),er(t,a),s=Ep(e,t,!1),c=!1;continue}if(s===pr){if(c=t,e.errorRecoveryDisabledLanes&c)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){ma(t),oh(Gt,a,t,St),er(t,a),t=d;e:{a=e,s=c,c=yu;var g=a.current.memoizedState.isDehydrated;if(g&&(Ir(a,d).flags|=256),d=Ep(a,d,!1),d!==pr){if(ay&&!g){a.errorRecoveryDisabledLanes|=s,Ai|=s,s=bi;break e}a=mn,mn=c,a!==null&&(mn===null?mn=a:mn.push.apply(mn,a))}s=d}if(c=!1,s!==pr)continue;a=qt()}}if(s===hu){ma(t),oh(Gt,a,t,St),er(t,a),Ir(e,0),ni(e,t,0,!0);break}e:{switch(n=e,s){case Vo:case hu:throw Error("Root did not complete. This is a bug in React.");case bi:if((t&4194048)!==t)break;case Vf:ma(t),$v(Gt,a,t,St),er(t,a),r=t,(r&127)!==0?Tf=a:(r&4194048)!==0&&(Af=a),ni(n,t,wn,!Si);break e;case pr:mn=null;break;case Uf:case aA:break;default:throw Error("Unknown root exit status.")}if(X.actQueue!==null)xp(n,r,t,mn,gu,Bf,wn,Ai,gr,s,null,null,Gt,a);else{if((t&62914560)===t&&(c=Hf+rA-qt(),10<c)){if(ni(n,t,wn,!Si),la(n,0,!0)!==0)break e;Ea=t,n.timeoutHandle=wA(Xb.bind(null,n,r,mn,gu,Bf,t,wn,Ai,gr,Si,s,"Throttled",Gt,a),c);break e}Xb(n,r,mn,gu,Bf,t,wn,Ai,gr,Si,s,null,Gt,a)}}}break}while(!0);Xa(e)}function Xb(e,t,n,a,r,s,c,d,g,T,z,N,D,Y){e.timeoutHandle=Ar;var le=t.subtreeFlags,fe=null;if((le&8192||(le&16785408)===16785408)&&(fe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:po},Lb(t,s,fe),le=(s&62914560)===s?Hf-qt():(s&4194048)===s?iA-qt():0,le=VC(fe,le),le!==null)){Ea=s,e.cancelPendingCommit=le(xp.bind(null,e,t,s,n,a,r,c,d,g,z,fe,fe.waitingForViewTransition?"Waiting for the previous Animation":0<fe.count?0<fe.imgCount?"Suspended on CSS and Images":"Suspended on CSS":fe.imgCount===1?"Suspended on an Image":0<fe.imgCount?"Suspended on Images":null,D,Y)),ni(e,s,c,!T);return}xp(e,t,s,n,a,r,c,d,g,z,fe,N,D,Y)}function IM(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 a=0;a<n.length;a++){var r=n[a],s=r.getSnapshot;r=r.value;try{if(!fn(s(),r))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 ni(e,t,n,a){t&=~oy,t&=~Ai,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var r=t;0<r;){var s=31-ln(r),c=1<<s;a[s]=-1,r&=~c}n!==0&&fo(e,n,t)}function Zr(){return(Qe&(Vt|qn))===$t?(wl(0),!1):!0}function Ap(){if(ke!==null){if(Je===xn)var e=ke.return;else e=ke,sc(),zh(e),Ts=null,ru=0,e=ke;for(;e!==null;)gb(e.alternate,e),e=e.return;ke=null}}function er(e,t){(e&127)!==0&&(ir=t),(e&4194048)!==0&&(Oo=t),(e&62914560)!==0&&(sT=t),(e&2080374784)!==0&&(lT=t)}function Ir(e,t){lt&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",Pe,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",Pe,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",Pe,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",Pe,"primary-light"));var n=Gt;if(Gt=wt(),Ve!==0&&0<n){if(ma(Ve),mt===Uf||mt===bi)$v(n,Gt,t,St);else{var a=Gt,r=St;if(lt&&!(a<=n)){var s=(t&738197653)===t?"tertiary-dark":"primary-dark",c=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";r?r.run(console.timeStamp.bind(console,c,n,a,Xe,Pe,s)):console.timeStamp(c,n,a,Xe,Pe,s)}}er(Ve,Gt)}if(n=St,St=null,(t&127)!==0){St=Zl,r=0<=no&&no<ir?ir:no,a=0<=rr&&rr<ir?ir:rr,s=0<=a?a:0<=r?r:Gt,0<=Tf?(ma(2),Xv(Tf,s,t,n)):Ef&127,n=r;var d=a,g=Il,T=0<vs,z=mi===Ql,N=mi===Sf;if(r=Gt,a=Zl,s=Vm,c=km,lt){if(Xe="Blocking",0<n?n>r&&(n=r):n=r,0<d?d>n&&(d=n):d=n,g!==null&&n>d){var D=T?"secondary-light":"warning";a?a.run(console.timeStamp.bind(console,T?"Consecutive":"Event: "+g,d,n,Xe,Pe,D)):console.timeStamp(T?"Consecutive":"Event: "+g,d,n,Xe,Pe,D)}r>n&&(d=z?"error":(t&738197653)===t?"tertiary-light":"primary-light",z=N?"Promise Resolved":z?"Cascading Update":5<r-n?"Update Blocked":"Update",N=[],c!=null&&N.push(["Component name",c]),s!=null&&N.push(["Method name",s]),n={start:n,end:r,detail:{devtools:{properties:N,track:Xe,trackGroup:Pe,color:d}}},a?a.run(performance.measure.bind(performance,z,n)):performance.measure(z,n))}no=-1.1,mi=0,km=Vm=null,Tf=-1.1,vs=rr,rr=-1.1,ir=wt()}if((t&4194048)!==0&&(St=Fl,r=0<=_o&&_o<Oo?Oo:_o,n=0<=Wn&&Wn<Oo?Oo:Wn,a=0<=yi&&yi<Oo?Oo:yi,s=0<=a?a:0<=n?n:Gt,0<=Af?(ma(256),Xv(Af,s,t,St)):Ef&4194048,N=a,d=sr,g=0<gi,T=Lm===Sf,s=Gt,a=Fl,c=iT,z=rT,lt&&(Xe="Transition",0<n?n>s&&(n=s):n=s,0<r?r>n&&(r=n):r=n,0<N?N>r&&(N=r):N=r,r>N&&d!==null&&(D=g?"secondary-light":"warning",a?a.run(console.timeStamp.bind(console,g?"Consecutive":"Event: "+d,N,r,Xe,Pe,D)):console.timeStamp(g?"Consecutive":"Event: "+d,N,r,Xe,Pe,D)),n>r&&(a?a.run(console.timeStamp.bind(console,"Action",r,n,Xe,Pe,"primary-dark")):console.timeStamp("Action",r,n,Xe,Pe,"primary-dark")),s>n&&(r=T?"Promise Resolved":5<s-n?"Update Blocked":"Update",N=[],z!=null&&N.push(["Component name",z]),c!=null&&N.push(["Method name",c]),n={start:n,end:s,detail:{devtools:{properties:N,track:Xe,trackGroup:Pe,color:"primary-light"}}},a?a.run(performance.measure.bind(performance,r,n)):performance.measure(r,n))),Wn=_o=-1.1,Lm=0,Af=-1.1,gi=yi,yi=-1.1,Oo=wt()),(t&62914560)!==0&&(Ef&62914560)!==0&&(ma(4194304),ih(sT,Gt)),(t&2080374784)!==0&&(Ef&2080374784)!==0&&(ma(268435456),ih(lT,Gt)),n=e.timeoutHandle,n!==Ar&&(e.timeoutHandle=Ar,OO(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ea=0,Ap(),at=e,ke=n=mo(e.current,null),Ve=t,Je=xn,Gn=null,Si=!1,Os=en(e,t),ay=!1,mt=Vo,gr=wn=oy=Ai=Ti=0,mn=yu=null,Bf=!1,(t&8)!==0&&(t|=t&32),a=e.entangledLanes,a!==0)for(e=e.entanglements,a&=t;0<a;)r=31-ln(a),s=1<<r,t|=e[r],a&=~s;return oo=t,nc(),e=W1(),1e3<e-K1&&(X.recentlyCreatedOwnerStacks=0,K1=e),Sa.discardPendingWarnings(),n}function Qb(e,t){Ce=null,X.H=cu,X.getCurrentStack=null,Fa=!1,Ln=null,t===Ss||t===Mf?(t=p0(),Je=pu):t===qm?(t=p0(),Je=oA):Je=t===Km?ny:t!==null&&typeof t=="object"&&typeof t.then=="function"?mu:kf,Gn=t;var n=ke;n===null?(mt=hu,jc(e,_n(t,e.current))):n.mode&Ne&&Sh(n)}function Zb(){var e=Hn.current;return e===null?!0:(Ve&4194048)===Ve?ea===null:(Ve&62914560)===Ve||(Ve&536870912)!==0?e===ea:!1}function Ib(){var e=X.H;return X.H=cu,e===null?cu:e}function Fb(){var e=X.A;return X.A=yO,e}function Hc(e){St===null&&(St=e._debugTask==null?null:e._debugTask)}function Yc(){mt=bi,Si||(Ve&4194048)!==Ve&&Hn.current!==null||(Os=!0),(Ti&134217727)===0&&(Ai&134217727)===0||at===null||ni(at,Ve,wn,!1)}function Ep(e,t,n){var a=Qe;Qe|=Vt;var r=Ib(),s=Fb();if(at!==e||Ve!==t){if(Ka){var c=e.memoizedUpdaters;0<c.size&&(xl(e,Ve),c.clear()),Go(e,t)}gu=null,Ir(e,t)}t=!1,c=mt;e:do try{if(Je!==xn&&ke!==null){var d=ke,g=Gn;switch(Je){case ny:Ap(),c=Vf;break e;case pu:case mr:case yr:case mu:Hn.current===null&&(t=!0);var T=Je;if(Je=xn,Gn=null,Fr(e,d,g,T),n&&Os){c=Vo;break e}break;default:T=Je,Je=xn,Gn=null,Fr(e,d,g,T)}}Jb(),c=mt;break}catch(z){Qb(e,z)}while(!0);return t&&e.shellSuspendCounter++,sc(),Qe=a,X.H=r,X.A=s,ke===null&&(at=null,Ve=0,nc()),c}function Jb(){for(;ke!==null;)Kb(ke)}function FM(e,t){var n=Qe;Qe|=Vt;var a=Ib(),r=Fb();if(at!==e||Ve!==t){if(Ka){var s=e.memoizedUpdaters;0<s.size&&(xl(e,Ve),s.clear()),Go(e,t)}gu=null,Yf=qt()+sA,Ir(e,t)}else Os=en(e,t);e:do try{if(Je!==xn&&ke!==null)t:switch(t=ke,s=Gn,Je){case kf:Je=xn,Gn=null,Fr(e,t,s,kf);break;case mr:case yr:if(d0(s)){Je=xn,Gn=null,Wb(t);break}t=function(){Je!==mr&&Je!==yr||at!==e||(Je=Lf),Xa(e)},s.then(t,t);break e;case pu:Je=Lf;break e;case oA:Je=ty;break e;case Lf:d0(s)?(Je=xn,Gn=null,Wb(t)):(Je=xn,Gn=null,Fr(e,t,s,Lf));break;case ty:var c=null;switch(ke.tag){case 26:c=ke.memoizedState;case 5:case 27:var d=ke;if(c?$S(c):d.stateNode.complete){Je=xn,Gn=null;var g=d.sibling;if(g!==null)ke=g;else{var T=d.return;T!==null?(ke=T,qc(T)):ke=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Je=xn,Gn=null,Fr(e,t,s,ty);break;case mu:Je=xn,Gn=null,Fr(e,t,s,mu);break;case ny:Ap(),mt=Vf;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}X.actQueue!==null?Jb():JM();break}catch(z){Qb(e,z)}while(!0);return sc(),X.H=a,X.A=r,Qe=n,ke!==null?Vo:(at=null,Ve=0,nc(),mt)}function JM(){for(;ke!==null&&!FC();)Kb(ke)}function Kb(e){var t=e.alternate;(e.mode&Ne)!==Me?(bh(e),t=he(e,hp,t,e,oo),Sh(e)):t=he(e,hp,t,e,oo),e.memoizedProps=e.pendingProps,t===null?qc(e):ke=t}function Wb(e){var t=he(e,KM,e);e.memoizedProps=e.pendingProps,t===null?qc(e):ke=t}function KM(e){var t=e.alternate,n=(e.mode&Ne)!==Me;switch(n&&bh(e),e.tag){case 15:case 0:t=cb(t,e,e.pendingProps,e.type,void 0,Ve);break;case 11:t=cb(t,e,e.pendingProps,e.type.render,e.ref,Ve);break;case 5:zh(e);default:gb(t,e),e=ke=Kv(e,oo),t=hp(t,e,oo)}return n&&Sh(e),t}function Fr(e,t,n,a){sc(),zh(t),Ts=null,ru=0;var r=t.return;try{if(VM(e,r,t,n,Ve)){mt=hu,jc(e,_n(n,e.current)),ke=null;return}}catch(s){if(r!==null)throw ke=r,s;mt=hu,jc(e,_n(n,e.current)),ke=null;return}t.flags&32768?(Ye||a===kf?e=!0:Os||(Ve&536870912)!==0?e=!1:(Si=e=!0,(a===mr||a===yr||a===pu||a===mu)&&(a=Hn.current,a!==null&&a.tag===13&&(a.flags|=16384))),eS(t,e)):qc(t)}function qc(e){var t=e;do{if((t.flags&32768)!==0){eS(t,Si);return}var n=t.alternate;if(e=t.return,bh(t),n=he(t,BM,n,t,oo),(t.mode&Ne)!==Me&&s0(t),n!==null){ke=n;return}if(t=t.sibling,t!==null){ke=t;return}ke=t=e}while(t!==null);mt===Vo&&(mt=aA)}function eS(e,t){do{var n=HM(e.alternate,e);if(n!==null){n.flags&=32767,ke=n;return}if((e.mode&Ne)!==Me){s0(e),n=e.actualDuration;for(var a=e.child;a!==null;)n+=a.actualDuration,a=a.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)){ke=e;return}ke=e=n}while(e!==null);mt=Vf,ke=null}function xp(e,t,n,a,r,s,c,d,g,T,z,N,D,Y){e.cancelPendingCommit=null;do El();while(Ot!==xi);if(Sa.flushLegacyContextWarning(),Sa.flushPendingUnsafeLifecycleWarnings(),(Qe&(Vt|qn))!==$t)throw Error("Should not already be working.");if(ma(n),T===pr?oh(D,Y,n,St):a!==null?EM(D,Y,n,a,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,St):AM(D,Y,n,St),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.");if(s=t.lanes|t.childLanes,s|=_m,jr(e,n,s,c,d,g),e===at&&(ke=at=null,Ve=0),_s=t,wi=e,Ea=n,sy=s,uy=r,hA=a,ly=Y,pA=N,xa=qf,mA=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,aC(ns,function(){return Eu=window.event,xa===qf&&(xa=ry),iS(),null})):(e.callbackNode=null,e.callbackPriority=0),Do=null,pi=wt(),N!==null&&xM(Y,pi,N,St),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=X.T,X.T=null,r=Ie.p,Ie.p=Xn,c=Qe,Qe|=qn;try{XM(e,t,n)}finally{Qe=c,Ie.p=r,X.T=a}}Ot=uA,tS(),nS(),aS()}}function tS(){if(Ot===uA){Ot=xi;var e=wi,t=_s,n=Ea,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=X.T,X.T=null;var r=Ie.p;Ie.p=Xn;var s=Qe;Qe|=qn;try{Cs=n,Ds=e,fc(),jb(t,e),Ds=Cs=null,n=Sy;var c=qv(e.containerInfo),d=n.focusedElem,g=n.selectionRange;if(c!==d&&d&&d.ownerDocument&&Yv(d.ownerDocument.documentElement,d)){if(g!==null&&th(d)){var T=g.start,z=g.end;if(z===void 0&&(z=T),"selectionStart"in d)d.selectionStart=T,d.selectionEnd=Math.min(z,d.value.length);else{var N=d.ownerDocument||document,D=N&&N.defaultView||window;if(D.getSelection){var Y=D.getSelection(),le=d.textContent.length,fe=Math.min(g.start,le),rt=g.end===void 0?fe:Math.min(g.end,le);!Y.extend&&fe>rt&&(c=rt,rt=fe,fe=c);var $e=Hv(d,fe),M=Hv(d,rt);if($e&&M&&(Y.rangeCount!==1||Y.anchorNode!==$e.node||Y.anchorOffset!==$e.offset||Y.focusNode!==M.node||Y.focusOffset!==M.offset)){var _=N.createRange();_.setStart($e.node,$e.offset),Y.removeAllRanges(),fe>rt?(Y.addRange(_),Y.extend(M.node,M.offset)):(_.setEnd(M.node,M.offset),Y.addRange(_))}}}}for(N=[],Y=d;Y=Y.parentNode;)Y.nodeType===1&&N.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<N.length;d++){var j=N[d];j.element.scrollLeft=j.left,j.element.scrollTop=j.top}}od=!!by,Sy=by=null}finally{Qe=s,Ie.p=r,X.T=a}}e.current=t,Ot=cA}}function nS(){if(Ot===cA){Ot=xi;var e=mA;if(e!==null){pi=wt();var t=Co,n=pi;!lt||n<=t||console.timeStamp(e,t,n,Xe,Pe,"secondary-light")}e=wi,t=_s,n=Ea;var a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=X.T,X.T=null;var r=Ie.p;Ie.p=Xn;var s=Qe;Qe|=qn;try{Cs=n,Ds=e,fc(),Mb(e,t.alternate,t),Ds=Cs=null}finally{Qe=s,Ie.p=r,X.T=a}}e=ly,t=pA,Co=wt(),e=t===null?e:pi,t=Co,n=xa===iy,a=St,Do!==null?Qv(e,t,Do,!1,a):!lt||t<=e||(a?a.run(console.timeStamp.bind(console,n?"Commit Interrupted View Transition":"Commit",e,t,Xe,Pe,n?"error":"secondary-dark")):console.timeStamp(n?"Commit Interrupted View Transition":"Commit",e,t,Xe,Pe,n?"error":"secondary-dark")),Ot=fA}}function aS(){if(Ot===dA||Ot===fA){if(Ot===dA){var e=Co;Co=wt();var t=Co,n=xa===iy;!lt||t<=e||console.timeStamp(n?"Interrupted View Transition":"Starting Animation",e,t,Xe,Pe,n?" error":"secondary-light"),xa!==iy&&(xa=lA)}Ot=xi,JC(),e=wi;var a=_s;t=Ea,n=hA;var r=a.actualDuration!==0||(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0;r?Ot=Gf:(Ot=xi,_s=wi=null,oS(e,e.pendingLanes),vr=0,bu=null);var s=e.pendingLanes;if(s===0&&(Ei=null),r||uS(e),s=Po(t),a=a.stateNode,nn&&typeof nn.onCommitFiberRoot=="function")try{var c=(a.current.flags&128)===128;switch(s){case Xn:var d=um;break;case Wa:d=cm;break;case Eo:d=ns;break;case sf:d=fm;break;default:d=ns}nn.onCommitFiberRoot(as,a,d,c)}catch(N){Ja||(Ja=!0,console.error("React instrumentation encountered an error: %o",N))}if(Ka&&e.memoizedUpdaters.clear(),ZM(),n!==null){c=X.T,d=Ie.p,Ie.p=Xn,X.T=null;try{var g=e.onRecoverableError;for(a=0;a<n.length;a++){var T=n[a],z=WM(T.stack);he(T.source,g,T.value,z)}}finally{X.T=c,Ie.p=d}}(Ea&3)!==0&&El(),Xa(e),s=e.pendingLanes,(t&261930)!==0&&(s&42)!==0?(wf=!0,e===cy?vu++:(vu=0,cy=e)):vu=0,r||er(t,Co),wl(0)}}function WM(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 oS(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,sl(t)))}function El(){return tS(),nS(),aS(),iS()}function iS(){if(Ot!==Gf)return!1;var e=wi,t=sy;sy=0;var n=Po(Ea),a=Eo>n?Eo:n;n=X.T;var r=Ie.p;try{Ie.p=a,X.T=null;var s=uy;uy=null,a=wi;var c=Ea;if(Ot=xi,_s=wi=null,Ea=0,(Qe&(Vt|qn))!==$t)throw Error("Cannot flush passive effects while already rendering.");ma(c),fy=!0,Pf=!1;var d=0;if(Do=null,d=qt(),xa===lA)ih(Co,d,uO);else{var g=Co,T=d,z=xa===ry;!lt||T<=g||(St?St.run(console.timeStamp.bind(console,z?"Waiting for Paint":"Waiting",g,T,Xe,Pe,"secondary-light")):console.timeStamp(z?"Waiting for Paint":"Waiting",g,T,Xe,Pe,"secondary-light"))}g=Qe,Qe|=qn;var N=a.current;fc(),Hb(N);var D=a.current;N=ly,fc(),Vb(a,D,c,s,N),uS(a),Qe=g;var Y=qt();if(D=d,N=St,Do!==null?Qv(D,Y,Do,!0,N):!lt||Y<=D||(N?N.run(console.timeStamp.bind(console,"Remaining Effects",D,Y,Xe,Pe,"secondary-dark")):console.timeStamp("Remaining Effects",D,Y,Xe,Pe,"secondary-dark")),er(c,Y),wl(0,!1),Pf?a===bu?vr++:(vr=0,bu=a):vr=0,Pf=fy=!1,nn&&typeof nn.onPostCommitFiberRoot=="function")try{nn.onPostCommitFiberRoot(as,a)}catch(fe){Ja||(Ja=!0,console.error("React instrumentation encountered an error: %o",fe))}var le=a.current.stateNode;return le.effectDuration=0,le.passiveEffectDuration=0,!0}finally{Ie.p=r,X.T=n,oS(e,t)}}function rS(e,t,n){t=_n(n,t),l0(t),t=np(e.stateNode,t,2),e=Ko(e,t,2),e!==null&&(Cn(e,2),Xa(e))}function Ze(e,t,n){if(js=!1,e.tag===3)rS(e,e,n);else{for(;t!==null;){if(t.tag===3){rS(t,e,n);return}if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ei===null||!Ei.has(a))){e=_n(n,e),l0(e),n=ap(2),a=Ko(t,n,2),a!==null&&(op(n,a,t,e),Cn(a,2),Xa(a));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.
|
|
199
|
+
|
|
200
|
+
Error message:
|
|
201
|
+
|
|
202
|
+
%s`,n)}}function wp(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new vO;var r=new Set;a.set(t,r)}else r=a.get(t),r===void 0&&(r=new Set,a.set(t,r));r.has(n)||(ay=!0,r.add(n),a=eC.bind(null,e,t,n),Ka&&xl(e,n),t.then(a,a))}function eC(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,(n&127)!==0?0>no&&(ir=no=wt(),Zl=bf("Promise Resolved"),mi=Sf):(n&4194048)!==0&&0>Wn&&(Oo=Wn=wt(),Fl=bf("Promise Resolved"),Lm=Sf),Gb()&&X.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
203
|
+
|
|
204
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
205
|
+
|
|
206
|
+
act(() => {
|
|
207
|
+
/* finish loading suspended data */
|
|
208
|
+
});
|
|
209
|
+
/* assert on the output */
|
|
210
|
+
|
|
211
|
+
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`),at===e&&(Ve&n)===n&&(mt===bi||mt===Uf&&(Ve&62914560)===Ve&&qt()-Hf<rA?(Qe&Vt)===$t&&Ir(e,0):oy|=n,gr===Ve&&(gr=0)),Xa(e)}function sS(e,t){t===0&&(t=Li()),e=tn(e,t),e!==null&&(Cn(e,t),Xa(e))}function tC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sS(e,n)}function nC(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}a!==null&&a.delete(t),sS(e,n)}function Rp(e,t,n){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var a=e,r=t,s=r.type===ef;s=n||s,r.tag!==22?r.flags&67108864?s&&he(r,lS,a,r):Rp(a,r,s):r.memoizedState===null&&(s&&r.flags&8192?he(r,lS,a,r):r.subtreeFlags&67108864&&he(r,Rp,a,r,s)),t=t.sibling}}function lS(e,t){ye(!0);try{Nb(t),Yb(t),Ub(e,t.alternate,t,!1),kb(e,t,0,null,!1,0)}finally{ye(!1)}}function uS(e){var t=!0;e.current.mode&(an|ba)||(t=!1),Rp(e,e.current,t)}function cS(e){if((Qe&Vt)===$t){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=q(e)||"ReactComponent",$f!==null){if($f.has(t))return;$f.add(t)}else $f=new Set([t]);he(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 xl(e,t){Ka&&e.memoizedUpdaters.forEach(function(n){ho(e,n,t)})}function aC(e,t){var n=X.actQueue;return n!==null?(n.push(t),TO):lm(e,t)}function oC(e){Gb()&&X.actQueue===null&&he(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
212
|
+
|
|
213
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
214
|
+
|
|
215
|
+
act(() => {
|
|
216
|
+
/* fire events that update state */
|
|
217
|
+
});
|
|
218
|
+
/* assert on the output */
|
|
219
|
+
|
|
220
|
+
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`,q(e))})}function Xa(e){e!==zs&&e.next===null&&(zs===null?Xf=zs=e:zs=zs.next=e),Qf=!0,X.actQueue!==null?hy||(hy=!0,pS()):dy||(dy=!0,pS())}function wl(e,t){if(!py&&Qf){py=!0;do for(var n=!1,a=Xf;a!==null;){if(e!==0){var r=a.pendingLanes;if(r===0)var s=0;else{var c=a.suspendedLanes,d=a.pingedLanes;s=(1<<31-ln(42|e)+1)-1,s&=r&~(c&~d),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(n=!0,hS(a,s))}else s=Ve,s=la(a,a===at?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==Ar),(s&3)===0||en(a,s)||(n=!0,hS(a,s));a=a.next}while(n);py=!1}}function iC(){Eu=window.event,Mp()}function Mp(){Qf=hy=dy=!1;var e=0;Ri!==0&&dC()&&(e=Ri);for(var t=qt(),n=null,a=Xf;a!==null;){var r=a.next,s=fS(a,t);s===0?(a.next=null,n===null?Xf=r:n.next=r,r===null&&(zs=n)):(n=a,(e!==0||(s&3)!==0)&&(Qf=!0)),a=r}Ot!==xi&&Ot!==Gf||wl(e),Ri!==0&&(Ri=0)}function fS(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var c=31-ln(s),d=1<<c,g=r[c];g===-1?((d&n)===0||(d&a)!==0)&&(r[c]=co(d,t)):g<=t&&(e.expiredLanes|=d),s&=~d}if(t=at,n=Ve,n=la(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Ar),a=e.callbackNode,n===0||e===t&&(Je===mr||Je===yr)||e.cancelPendingCommit!==null)return a!==null&&Cp(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||en(e,n)){if(t=n&-n,t!==e.callbackPriority||X.actQueue!==null&&a!==my)Cp(a);else return t;switch(Po(n)){case Xn:case Wa:n=cm;break;case Eo:n=ns;break;case sf:n=fm;break;default:n=ns}return a=dS.bind(null,e),X.actQueue!==null?(X.actQueue.push(a),n=my):n=lm(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&Cp(a),e.callbackPriority=2,e.callbackNode=null,2}function dS(e,t){if(wf=xf=!1,Eu=window.event,Ot!==xi&&Ot!==Gf)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(xa===qf&&(xa=ry),El()&&e.callbackNode!==n)return null;var a=Ve;return a=la(e,e===at?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Ar),a===0?null:($b(e,a,t),fS(e,qt()),e.callbackNode!=null&&e.callbackNode===n?dS.bind(null,e):null)}function hS(e,t){if(El())return null;xf=wf,wf=!1,$b(e,t,!0)}function Cp(e){e!==my&&e!==null&&IC(e)}function pS(){X.actQueue!==null&&X.actQueue.push(function(){return Mp(),null}),_O(function(){(Qe&(Vt|qn))!==$t?lm(um,iC):Mp()})}function Dp(){if(Ri===0){var e=lr;e===0&&(e=af,af<<=1,(af&261888)===0&&(af=256)),Ri=e}return Ri}function mS(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(qe(e,"action"),al(""+e))}function yS(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function rC(e,t,n,a,r){if(t==="submit"&&n&&n.stateNode===r){var s=mS((r[un]||null).action),c=a.submitter;c&&(t=(t=c[un]||null)?mS(t.formAction):c.getAttribute("formAction"),t!==null&&(s=t,c=null));var d=new df("action","action",null,a,r);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ri!==0){var g=c?yS(r,c):new FormData(r),T={pending:!0,data:g,method:r.method,action:s};Object.freeze(T),Ih(n,T,null,g)}}else typeof s=="function"&&(d.preventDefault(),g=c?yS(r,c):new FormData(r),T={pending:!0,data:g,method:r.method,action:s},Object.freeze(T),Ih(n,T,s,g))},currentTarget:r}]})}}function Gc(e,t,n){e.currentTarget=n;try{t(e)}catch(a){Mm(a)}e.currentTarget=null}function gS(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n];e:{var r=void 0,s=a.event;if(a=a.listeners,t)for(var c=a.length-1;0<=c;c--){var d=a[c],g=d.instance,T=d.currentTarget;if(d=d.listener,g!==r&&s.isPropagationStopped())break e;g!==null?he(g,Gc,s,d,T):Gc(s,d,T),r=g}else for(c=0;c<a.length;c++){if(d=a[c],g=d.instance,T=d.currentTarget,d=d.listener,g!==r&&s.isPropagationStopped())break e;g!==null?he(g,Gc,s,d,T):Gc(s,d,T),r=g}}}}function Ge(e,t){yy.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[dm];n===void 0&&(n=t[dm]=new Set);var a=e+"__bubble";n.has(a)||(vS(t,e,2,!1),n.add(a))}function Op(e,t,n){yy.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 a=0;t&&(a|=4),vS(n,e,a,t)}function _p(e){if(!e[Zf]){e[Zf]=!0,p1.forEach(function(n){n!=="selectionchange"&&(yy.has(n)||Op(n,!1,e),Op(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zf]||(t[Zf]=!0,Op("selectionchange",!1,t))}}function vS(e,t,n,a){switch(JS(t)){case Xn:var r=HC;break;case Wa:r=YC;break;default:r=Qp}n=r.bind(null,t,n,e),r=void 0,!gm||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),a?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function jp(e,t,n,a,r){var s=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var d=a.stateNode.containerInfo;if(d===r)break;if(c===4)for(c=a.return;c!==null;){var g=c.tag;if((g===3||g===4)&&c.stateNode.containerInfo===r)return;c=c.return}for(;d!==null;){if(c=te(d),c===null)return;if(g=c.tag,g===5||g===6||g===26||g===27){a=s=c;continue e}d=d.parentNode}}a=a.return}Dv(function(){var T=s,z=Wd(n),N=[];e:{var D=J1.get(e);if(D!==void 0){var Y=df,le=e;switch(e){case"keypress":if(Ju(n)===0)break e;case"keydown":case"keyup":Y=VD;break;case"focusin":le="focus",Y=Tm;break;case"focusout":le="blur",Y=Tm;break;case"beforeblur":case"afterblur":Y=Tm;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=k1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=xD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=BD;break;case Q1:case Z1:case I1:Y=MD;break;case F1:Y=YD;break;case"scroll":case"scrollend":Y=AD;break;case"wheel":Y=GD;break;case"copy":case"cut":case"paste":Y=DD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=B1;break;case"toggle":case"beforetoggle":Y=$D}var fe=(t&4)!==0,rt=!fe&&(e==="scroll"||e==="scrollend"),$e=fe?D!==null?D+"Capture":null:D;fe=[];for(var M=T,_;M!==null;){var j=M;if(_=j.stateNode,j=j.tag,j!==5&&j!==26&&j!==27||_===null||$e===null||(j=ol(M,$e),j!=null&&fe.push(Rl(M,j,_))),rt)break;M=M.return}0<fe.length&&(D=new Y(D,le,null,n,z),N.push({event:D,listeners:fe}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",D&&n!==kl&&(le=n.relatedTarget||n.fromElement)&&(te(le)||le[li]))break e;if((Y||D)&&(D=z.window===z?z:(D=z.ownerDocument)?D.defaultView||D.parentWindow:window,Y?(le=n.relatedTarget||n.toElement,Y=T,le=le?te(le):null,le!==null&&(rt=B(le),fe=le.tag,le!==rt||fe!==5&&fe!==27&&fe!==6)&&(le=null)):(Y=null,le=T),Y!==le)){if(fe=k1,j="onMouseLeave",$e="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(fe=B1,j="onPointerLeave",$e="onPointerEnter",M="pointer"),rt=Y==null?D:ge(Y),_=le==null?D:ge(le),D=new fe(j,M+"leave",Y,n,z),D.target=rt,D.relatedTarget=_,j=null,te(z)===T&&(fe=new fe($e,M+"enter",le,n,z),fe.target=_,fe.relatedTarget=rt,j=fe),rt=j,Y&&le)t:{for(fe=sC,$e=Y,M=le,_=0,j=$e;j;j=fe(j))_++;j=0;for(var Z=M;Z;Z=fe(Z))j++;for(;0<_-j;)$e=fe($e),_--;for(;0<j-_;)M=fe(M),j--;for(;_--;){if($e===M||M!==null&&$e===M.alternate){fe=$e;break t}$e=fe($e),M=fe(M)}fe=null}else fe=null;Y!==null&&bS(N,D,Y,fe,!1),le!==null&&rt!==null&&bS(N,rt,le,fe,!0)}}e:{if(D=T?ge(T):window,Y=D.nodeName&&D.nodeName.toLowerCase(),Y==="select"||Y==="input"&&D.type==="file")var ue=Vv;else if(Nv(D))if($1)ue=bM;else{ue=gM;var De=yM}else Y=D.nodeName,!Y||Y.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?T&&nl(T.elementType)&&(ue=Vv):ue=vM;if(ue&&(ue=ue(e,T))){Uv(N,ue,n,z);break e}De&&De(e,D,T),e==="focusout"&&T&&D.type==="number"&&T.memoizedProps.value!=null&&Qd(D,"number",D.value)}switch(De=T?ge(T):window,e){case"focusin":(Nv(De)||De.contentEditable==="true")&&(cs=De,Em=T,Pl=null);break;case"focusout":Pl=Em=cs=null;break;case"mousedown":xm=!0;break;case"contextmenu":case"mouseup":case"dragend":xm=!1,Gv(N,n,z);break;case"selectionchange":if(ID)break;case"keydown":case"keyup":Gv(N,n,z)}var Ae;if(Am)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else us?jv(e,n)&&(Te="onCompositionEnd"):e==="keydown"&&n.keyCode===H1&&(Te="onCompositionStart");Te&&(Y1&&n.locale!=="ko"&&(us||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&us&&(Ae=Ov()):(ui=z,vm="value"in ui?ui.value:ui.textContent,us=!0)),De=Pc(T,Te),0<De.length&&(Te=new L1(Te,e,null,n,z),N.push({event:Te,listeners:De}),Ae?Te.data=Ae:(Ae=zv(n),Ae!==null&&(Te.data=Ae)))),(Ae=QD?dM(e,n):hM(e,n))&&(Te=Pc(T,"onBeforeInput"),0<Te.length&&(De=new _D("onBeforeInput","beforeinput",null,n,z),N.push({event:De,listeners:Te}),De.data=Ae)),rC(N,e,T,n,z)}gS(N,t)})}function Rl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Pc(e,t){for(var n=t+"Capture",a=[];e!==null;){var r=e,s=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||s===null||(r=ol(e,n),r!=null&&a.unshift(Rl(e,r,s)),r=ol(e,t),r!=null&&a.push(Rl(e,r,s))),e.tag===3)return a;e=e.return}return[]}function sC(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function bS(e,t,n,a,r){for(var s=t._reactName,c=[];n!==null&&n!==a;){var d=n,g=d.alternate,T=d.stateNode;if(d=d.tag,g!==null&&g===a)break;d!==5&&d!==26&&d!==27||T===null||(g=T,r?(T=ol(n,s),T!=null&&c.unshift(Rl(n,T,g))):r||(T=ol(n,s),T!=null&&c.push(Rl(n,T,g)))),n=n.return}c.length!==0&&e.push({event:t,listeners:c})}function zp(e,t){lM(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||U1||(U1=!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:tr,possibleRegistrationNames:hm};nl(e)||typeof t.is=="string"||cM(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 Yt(e,t,n,a){t!==n&&(n=ai(n),ai(t)!==n&&(a[e]=t))}function lC(e,t,n){t.forEach(function(a){n[AS(a)]=a==="style"?Up(e):e.getAttribute(a)})}function Qa(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function SS(e,t){return e=e.namespaceURI===uf||e.namespaceURI===is?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function ai(e){return uo(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.",Pn(e)),Oa(e)),(typeof e=="string"?e:""+e).replace(AO,`
|
|
221
|
+
`).replace(EO,"")}function TS(e,t){return t=ai(t),ai(e)===t}function tt(e,t,n,a,r,s){switch(n){case"children":typeof a=="string"?(Fu(a,t,!1),t==="body"||t==="textarea"&&a===""||tl(e,a)):(typeof a=="number"||typeof a=="bigint")&&(Fu(""+a,t,!1),t!=="body"&&tl(e,""+a));break;case"className":Xo(e,"class",a);break;case"tabIndex":Xo(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Xo(e,n,a);break;case"style":Rv(e,a,s);break;case"data":if(t!=="object"){Xo(e,"data",a);break}case"src":case"href":if(a===""&&(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(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}qe(a,n),a=al(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(a!=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 a=="function"&&(r.encType==null&&r.method==null||Jf||(Jf=!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.")),r.target==null||Ff||(Ff=!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"||r.type==="submit"||r.type==="image"||If?t!=="button"||r.type==null||r.type==="submit"||If?typeof a=="function"&&(r.name==null||SA||(SA=!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.')),r.formEncType==null&&r.formMethod==null||Jf||(Jf=!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.")),r.formTarget==null||Ff||(Ff=!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."))):(If=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(If=!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 a=="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}else typeof s=="function"&&(n==="formAction"?(t!=="input"&&tt(e,t,"name",r.name,r,null),tt(e,t,"formEncType",r.formEncType,r,null),tt(e,t,"formMethod",r.formMethod,r,null),tt(e,t,"formTarget",r.formTarget,r,null)):(tt(e,t,"encType",r.encType,r,null),tt(e,t,"method",r.method,r,null),tt(e,t,"target",r.target,r,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}qe(a,n),a=al(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(typeof a!="function"&&Qa(n,a),e.onclick=po);break;case"onScroll":a!=null&&(typeof a!="function"&&Qa(n,a),Ge("scroll",e));break;case"onScrollEnd":a!=null&&(typeof a!="function"&&Qa(n,a),Ge("scrollend",e));break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))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=a.__html,n!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}qe(a,n),n=al(""+a),e.setAttributeNS(br,"xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?(qe(a,n),e.setAttribute(n,""+a)):e.removeAttribute(n);break;case"inert":a!==""||Kf[n]||(Kf[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"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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?(qe(a,n),e.setAttribute(n,a)):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?(qe(a,n),e.setAttribute(n,a)):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):(qe(a,n),e.setAttribute(n,a));break;case"popover":Ge("beforetoggle",e),Ge("toggle",e),$o(e,"popover",a);break;case"xlinkActuate":da(e,br,"xlink:actuate",a);break;case"xlinkArcrole":da(e,br,"xlink:arcrole",a);break;case"xlinkRole":da(e,br,"xlink:role",a);break;case"xlinkShow":da(e,br,"xlink:show",a);break;case"xlinkTitle":da(e,br,"xlink:title",a);break;case"xlinkType":da(e,br,"xlink:type",a);break;case"xmlBase":da(e,gy,"xml:base",a);break;case"xmlLang":da(e,gy,"xml:lang",a);break;case"xmlSpace":da(e,gy,"xml:space",a);break;case"is":s!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),$o(e,"is",a);break;case"innerText":case"textContent":break;case"popoverTarget":TA||a==null||typeof a!="object"||(TA=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",a));default:!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N"?(n=Mv(n),$o(e,n,a)):tr.hasOwnProperty(n)&&a!=null&&typeof a!="function"&&Qa(n,a)}}function Np(e,t,n,a,r,s){switch(n){case"style":Rv(e,a,s);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))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=a.__html,n!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"children":typeof a=="string"?tl(e,a):(typeof a=="number"||typeof a=="bigint")&&tl(e,""+a);break;case"onScroll":a!=null&&(typeof a!="function"&&Qa(n,a),Ge("scroll",e));break;case"onScrollEnd":a!=null&&(typeof a!="function"&&Qa(n,a),Ge("scrollend",e));break;case"onClick":a!=null&&(typeof a!="function"&&Qa(n,a),e.onclick=po);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(tr.hasOwnProperty(n))a!=null&&typeof a!="function"&&Qa(n,a);else e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),s=e[un]||null,s=s!=null?s[n]:null,typeof s=="function"&&e.removeEventListener(t,s,r),typeof a=="function")){typeof s!="function"&&s!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,r);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):$o(e,n,a)}}}function Zt(e,t,n){switch(zp(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ge("error",e),Ge("load",e);var a=!1,r=!1,s;for(s in n)if(n.hasOwnProperty(s)){var c=n[s];if(c!=null)switch(s){case"src":a=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:tt(e,t,s,c,n,null)}}r&&tt(e,t,"srcSet",n.srcSet,n,null),a&&tt(e,t,"src",n.src,n,null);return;case"input":Ht("input",n),Ge("invalid",e);var d=s=c=r=null,g=null,T=null;for(a in n)if(n.hasOwnProperty(a)){var z=n[a];if(z!=null)switch(a){case"name":r=z;break;case"type":c=z;break;case"checked":g=z;break;case"defaultChecked":T=z;break;case"value":s=z;break;case"defaultValue":d=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:tt(e,t,a,z,n,null)}}zt(e,n),Ks(e,s,d,g,T,c,r,!1);return;case"select":Ht("select",n),Ge("invalid",e),a=c=s=null;for(r in n)if(n.hasOwnProperty(r)&&(d=n[r],d!=null))switch(r){case"value":s=d;break;case"defaultValue":c=d;break;case"multiple":a=d;default:tt(e,t,r,d,n,null)}pv(e,n),t=s,n=c,e.multiple=!!a,t!=null?Vr(e,!!a,t,!1):n!=null&&Vr(e,!!a,n,!0);return;case"textarea":Ht("textarea",n),Ge("invalid",e),s=r=a=null;for(c in n)if(n.hasOwnProperty(c)&&(d=n[c],d!=null))switch(c){case"value":a=d;break;case"defaultValue":r=d;break;case"children":s=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:tt(e,t,c,d,n,null)}mv(e,n),gv(e,a,r,s);return;case"option":dv(e,n);for(g in n)if(n.hasOwnProperty(g)&&(a=n[g],a!=null))switch(g){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:tt(e,t,g,a,n,null)}return;case"dialog":Ge("beforetoggle",e),Ge("toggle",e),Ge("cancel",e),Ge("close",e);break;case"iframe":case"object":Ge("load",e);break;case"video":case"audio":for(a=0;a<Su.length;a++)Ge(Su[a],e);break;case"image":Ge("error",e),Ge("load",e);break;case"details":Ge("toggle",e);break;case"embed":case"source":case"link":Ge("error",e),Ge("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(T in n)if(n.hasOwnProperty(T)&&(a=n[T],a!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:tt(e,t,T,a,n,null)}return;default:if(nl(t)){for(z in n)n.hasOwnProperty(z)&&(a=n[z],a!==void 0&&Np(e,t,z,a,n,void 0));return}}for(d in n)n.hasOwnProperty(d)&&(a=n[d],a!=null&&tt(e,t,d,a,n,null))}function uC(e,t,n,a){switch(zp(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,s=null,c=null,d=null,g=null,T=null,z=null;for(Y in n){var N=n[Y];if(n.hasOwnProperty(Y)&&N!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":g=N;default:a.hasOwnProperty(Y)||tt(e,t,Y,null,a,N)}}for(var D in a){var Y=a[D];if(N=n[D],a.hasOwnProperty(D)&&(Y!=null||N!=null))switch(D){case"type":s=Y;break;case"name":r=Y;break;case"checked":T=Y;break;case"defaultChecked":z=Y;break;case"value":c=Y;break;case"defaultValue":d=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Y!==N&&tt(e,t,D,Y,a,N)}}t=n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null,a=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,t||!a||bA||(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"),bA=!0),!t||a||vA||(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"),vA=!0),ha(e,c,d,g,T,z,s,r);return;case"select":Y=c=d=D=null;for(s in n)if(g=n[s],n.hasOwnProperty(s)&&g!=null)switch(s){case"value":break;case"multiple":Y=g;default:a.hasOwnProperty(s)||tt(e,t,s,null,a,g)}for(r in a)if(s=a[r],g=n[r],a.hasOwnProperty(r)&&(s!=null||g!=null))switch(r){case"value":D=s;break;case"defaultValue":d=s;break;case"multiple":c=s;default:s!==g&&tt(e,t,r,s,a,g)}a=d,t=c,n=Y,D!=null?Vr(e,!!t,D,!1):!!n!=!!t&&(a!=null?Vr(e,!!t,a,!0):Vr(e,!!t,t?[]:"",!1));return;case"textarea":Y=D=null;for(d in n)if(r=n[d],n.hasOwnProperty(d)&&r!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:tt(e,t,d,null,a,r)}for(c in a)if(r=a[c],s=n[c],a.hasOwnProperty(c)&&(r!=null||s!=null))switch(c){case"value":D=r;break;case"defaultValue":Y=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:r!==s&&tt(e,t,c,r,a,s)}yv(e,D,Y);return;case"option":for(var le in n)if(D=n[le],n.hasOwnProperty(le)&&D!=null&&!a.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:tt(e,t,le,null,a,D)}for(g in a)if(D=a[g],Y=n[g],a.hasOwnProperty(g)&&D!==Y&&(D!=null||Y!=null))switch(g){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:tt(e,t,g,D,a,Y)}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 fe in n)D=n[fe],n.hasOwnProperty(fe)&&D!=null&&!a.hasOwnProperty(fe)&&tt(e,t,fe,null,a,D);for(T in a)if(D=a[T],Y=n[T],a.hasOwnProperty(T)&&D!==Y&&(D!=null||Y!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:tt(e,t,T,D,a,Y)}return;default:if(nl(t)){for(var rt in n)D=n[rt],n.hasOwnProperty(rt)&&D!==void 0&&!a.hasOwnProperty(rt)&&Np(e,t,rt,void 0,a,D);for(z in a)D=a[z],Y=n[z],!a.hasOwnProperty(z)||D===Y||D===void 0&&Y===void 0||Np(e,t,z,D,a,Y);return}}for(var $e in n)D=n[$e],n.hasOwnProperty($e)&&D!=null&&!a.hasOwnProperty($e)&&tt(e,t,$e,null,a,D);for(N in a)D=a[N],Y=n[N],!a.hasOwnProperty(N)||D===Y||D==null&&Y==null||tt(e,t,N,D,a,Y)}function AS(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Up(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var a=e[n];t[a]=e.getPropertyValue(a)}return t}function ES(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 a,r=a="",s;for(s in t)if(t.hasOwnProperty(s)){var c=t[s];c!=null&&typeof c!="boolean"&&c!==""&&(s.indexOf("--")===0?(Lt(c,s),a+=r+s+":"+(""+c).trim()):typeof c!="number"||c===0||z1.has(s)?(Lt(c,s),a+=r+s.replace(C1,"-$1").toLowerCase().replace(D1,"-ms-")+":"+(""+c).trim()):a+=r+s.replace(C1,"-$1").toLowerCase().replace(D1,"-ms-")+":"+c+"px",r=";")}a=a||null,t=e.getAttribute("style"),t!==a&&(a=ai(a),ai(t)!==a&&(n.style=Up(e)))}}function $n(e,t,n,a,r,s){if(r.delete(n),e=e.getAttribute(n),e===null)switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":return}else if(a!=null)switch(typeof a){case"function":case"symbol":case"boolean":break;default:if(qe(a,t),e===""+a)return}Yt(t,e,a,s)}function xS(e,t,n,a,r,s){if(r.delete(n),e=e.getAttribute(n),e===null){switch(typeof a){case"function":case"symbol":return}if(!a)return}else switch(typeof a){case"function":case"symbol":break;default:if(a)return}Yt(t,e,a,s)}function Vp(e,t,n,a,r,s){if(r.delete(n),e=e.getAttribute(n),e===null)switch(typeof a){case"undefined":case"function":case"symbol":return}else if(a!=null)switch(typeof a){case"function":case"symbol":break;default:if(qe(a,n),e===""+a)return}Yt(t,e,a,s)}function wS(e,t,n,a,r,s){if(r.delete(n),e=e.getAttribute(n),e===null)switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(a))return}else if(a!=null)switch(typeof a){case"function":case"symbol":case"boolean":break;default:if(!isNaN(a)&&(qe(a,t),e===""+a))return}Yt(t,e,a,s)}function kp(e,t,n,a,r,s){if(r.delete(n),e=e.getAttribute(n),e===null)switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":return}else if(a!=null)switch(typeof a){case"function":case"symbol":case"boolean":break;default:if(qe(a,t),n=al(""+a),e===n)return}Yt(t,e,a,s)}function RS(e,t,n,a){for(var r={},s=new Set,c=e.attributes,d=0;d<c.length;d++)switch(c[d].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:s.add(c[d].name)}if(nl(t)){for(var g in n)if(n.hasOwnProperty(g)){var T=n[g];if(T!=null){if(tr.hasOwnProperty(g))typeof T!="function"&&Qa(g,T);else if(n.suppressHydrationWarning!==!0)switch(g){case"children":typeof T!="string"&&typeof T!="number"||Yt("children",e.textContent,T,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":c=e.innerHTML,T=T?T.__html:void 0,T!=null&&(T=SS(e,T),Yt(g,c,T,r));continue;case"style":s.delete(g),ES(e,T,r);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":s.delete(g.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",g);continue;case"className":s.delete("class"),c=zr(e,"class",T),Yt("className",c,T,r);continue;default:a.context===ko&&t!=="svg"&&t!=="math"?s.delete(g.toLowerCase()):s.delete(g),c=zr(e,g,T),Yt(g,c,T,r)}}}}else for(T in n)if(n.hasOwnProperty(T)&&(g=n[T],g!=null)){if(tr.hasOwnProperty(T))typeof g!="function"&&Qa(T,g);else if(n.suppressHydrationWarning!==!0)switch(T){case"children":typeof g!="string"&&typeof g!="number"||Yt("children",e.textContent,g,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":c=e.innerHTML,g=g?g.__html:void 0,g!=null&&(g=SS(e,g),c!==g&&(r[T]={__html:c}));continue;case"className":$n(e,T,"class",g,s,r);continue;case"tabIndex":$n(e,T,"tabindex",g,s,r);continue;case"style":s.delete(T),ES(e,g,r);continue;case"multiple":s.delete(T),Yt(T,e.multiple,g,r);continue;case"muted":s.delete(T),Yt(T,e.muted,g,r);continue;case"autoFocus":s.delete("autofocus"),Yt(T,e.autofocus,g,r);continue;case"data":if(t!=="object"){s.delete(T),c=e.getAttribute("data"),Yt(T,c,g,r);continue}case"src":case"href":if(!(g!==""||t==="a"&&T==="href"||t==="object"&&T==="data")){console.error(T==="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.',T,T);continue}kp(e,T,T,g,s,r);continue;case"action":case"formAction":if(c=e.getAttribute(T),typeof g=="function"){s.delete(T.toLowerCase()),T==="formAction"?(s.delete("name"),s.delete("formenctype"),s.delete("formmethod"),s.delete("formtarget")):(s.delete("enctype"),s.delete("method"),s.delete("target"));continue}else if(c===xO){s.delete(T.toLowerCase()),Yt(T,"function",g,r);continue}kp(e,T,T.toLowerCase(),g,s,r);continue;case"xlinkHref":kp(e,T,"xlink:href",g,s,r);continue;case"contentEditable":Vp(e,T,"contenteditable",g,s,r);continue;case"spellCheck":Vp(e,T,"spellcheck",g,s,r);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Vp(e,T,T,g,s,r);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":xS(e,T,T.toLowerCase(),g,s,r);continue;case"capture":case"download":e:{d=e;var z=c=T,N=r;if(s.delete(z),d=d.getAttribute(z),d===null)switch(typeof g){case"undefined":case"function":case"symbol":break e;default:if(g===!1)break e}else if(g!=null)switch(typeof g){case"function":case"symbol":break;case"boolean":if(g===!0&&d==="")break e;break;default:if(qe(g,c),d===""+g)break e}Yt(c,d,g,N)}continue;case"cols":case"rows":case"size":case"span":e:{if(d=e,z=c=T,N=r,s.delete(z),d=d.getAttribute(z),d===null)switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(g)||1>g)break e}else if(g!=null)switch(typeof g){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(g)||1>g)&&(qe(g,c),d===""+g))break e}Yt(c,d,g,N)}continue;case"rowSpan":wS(e,T,"rowspan",g,s,r);continue;case"start":wS(e,T,T,g,s,r);continue;case"xHeight":$n(e,T,"x-height",g,s,r);continue;case"xlinkActuate":$n(e,T,"xlink:actuate",g,s,r);continue;case"xlinkArcrole":$n(e,T,"xlink:arcrole",g,s,r);continue;case"xlinkRole":$n(e,T,"xlink:role",g,s,r);continue;case"xlinkShow":$n(e,T,"xlink:show",g,s,r);continue;case"xlinkTitle":$n(e,T,"xlink:title",g,s,r);continue;case"xlinkType":$n(e,T,"xlink:type",g,s,r);continue;case"xmlBase":$n(e,T,"xml:base",g,s,r);continue;case"xmlLang":$n(e,T,"xml:lang",g,s,r);continue;case"xmlSpace":$n(e,T,"xml:space",g,s,r);continue;case"inert":g!==""||Kf[T]||(Kf[T]=!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.",T)),xS(e,T,T,g,s,r);continue;default:if(!(2<T.length)||T[0]!=="o"&&T[0]!=="O"||T[1]!=="n"&&T[1]!=="N"){d=Mv(T),c=!1,a.context===ko&&t!=="svg"&&t!=="math"?s.delete(d.toLowerCase()):(z=T.toLowerCase(),z=cf.hasOwnProperty(z)&&cf[z]||null,z!==null&&z!==T&&(c=!0,s.delete(z)),s.delete(d));e:if(z=e,N=d,d=g,Dn(N))if(z.hasAttribute(N))z=z.getAttribute(N),qe(d,N),d=z===""+d?d:z;else{switch(typeof d){case"function":case"symbol":break e;case"boolean":if(z=N.toLowerCase().slice(0,5),z!=="data-"&&z!=="aria-")break e}d=d===void 0?void 0:null}else d=void 0;c||Yt(T,d,g,r)}}}return 0<s.size&&n.suppressHydrationWarning!==!0&&lC(e,s,r),Object.keys(r).length===0?null:r}function cC(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 MS(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fC(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var r=n[a],s=r.transferSize,c=r.initiatorType,d=r.duration;if(s&&d&&MS(c)){for(c=0,d=r.responseEnd,a+=1;a<n.length;a++){var g=n[a],T=g.startTime;if(T>d)break;var z=g.transferSize,N=g.initiatorType;z&&MS(N)&&(g=g.responseEnd,c+=z*(g<d?1:(d-T)/(g-T)))}if(--a,t+=8*(s+c)/(r.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 $c(e){return e.nodeType===9?e:e.ownerDocument}function CS(e){switch(e){case is:return Us;case uf:return ed;default:return ko}}function DS(e,t){if(e===ko)switch(t){case"svg":return Us;case"math":return ed;default:return ko}return e===Us&&t==="foreignObject"?ko:e}function Lp(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 dC(){var e=window.event;return e&&e.type==="popstate"?e===Ty?!1:(Ty=e,!0):(Ty=null,!1)}function Ml(){var e=window.event;return e&&e!==Eu?e.type:null}function Cl(){var e=window.event;return e&&e!==Eu?e.timeStamp:-1.1}function hC(e){setTimeout(function(){throw e})}function pC(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 mC(){}function yC(e,t,n,a){uC(e,t,n,a),e[un]=a}function OS(e){tl(e,"")}function gC(e,t,n){e.nodeValue=n}function _S(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[un]||null;if(t!==null){var n=se(e);n!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,he(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,he(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 oi(e){return e==="head"}function vC(e,t){e.removeChild(t)}function bC(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function jS(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n===Au||n===Wf){if(a===0){e.removeChild(r),Wr(t);return}a--}else if(n===Tu||n===Mi||n===Tr||n===Ns||n===Sr)a++;else if(n===RO)Dl(e.ownerDocument.documentElement);else if(n===CO){n=e.ownerDocument.head,Dl(n);for(var s=n.firstChild;s;){var c=s.nextSibling,d=s.nodeName;s[Vl]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=c}}else n===MO&&Dl(e.ownerDocument.body);n=r}while(n);Wr(t)}function zS(e,t){var n=e;e=0;do{var a=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||""),a&&a.nodeType===8)if(n=a.data,n===Au){if(e===0)break;e--}else n!==Tu&&n!==Mi&&n!==Tr&&n!==Ns||e++;n=a}while(n)}function SC(e){zS(e,!0)}function TC(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function AC(e){e.nodeValue=""}function EC(e){zS(e,!1)}function xC(e,t){t=t[DO],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function wC(e,t){e.nodeValue=t}function Bp(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":Bp(n),k(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function RC(e,t,n,a){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Vl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){qe(r.name,"name");var s=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Vn(e.nextSibling),e===null)break}return null}function MC(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Vn(e.nextSibling),e===null))return null;return e}function NS(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Vn(e.nextSibling),e===null))return null;return e}function Hp(e){return e.data===Mi||e.data===Tr}function Yp(e){return e.data===Ns||e.data===Mi&&e.ownerDocument.readyState!==EA}function CC(e,t){var n=e.ownerDocument;if(e.data===Tr)e._reactRetry=t;else if(e.data!==Mi||n.readyState!==EA)t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Vn(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===Tu||t===Ns||t===Mi||t===Tr||t===Sr||t===vy||t===AA)break;if(t===Au||t===Wf)return null}}return e}function US(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},a=e.attributes,r=0;r<a.length;r++){var s=a[r];n[AS(s.name)]=s.name.toLowerCase()==="style"?Up(e):s.value}return{type:t,props:n}}return e.nodeType===8?e.data===Sr?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function VS(e,t,n){return n===null||n[wO]!==!0?(e.nodeValue===t?e=null:(t=ai(t),e=ai(e.nodeValue)===t?null:e.nodeValue),e):null}function qp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===Au||n===Wf){if(t===0)return Vn(e.nextSibling);t--}else n!==Tu&&n!==Ns&&n!==Mi&&n!==Tr&&n!==Sr||t++}e=e.nextSibling}return null}function kS(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===Tu||n===Ns||n===Mi||n===Tr||n===Sr){if(t===0)return e;t--}else n!==Au&&n!==Wf||t++}e=e.previousSibling}return null}function DC(e){Wr(e)}function OC(e){Wr(e)}function _C(e){Wr(e)}function LS(e,t,n,a,r){switch(r&&Kd(e,a.ancestorInfo),t=$c(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 jC(e,t,n,a){if(!n[li]&&se(n)){var r=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.",r,r,r)}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(r=n.attributes;r.length;)n.removeAttributeNode(r[0]);Zt(n,e,t),n[It]=a,n[un]=t}function Dl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);k(e)}function Xc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function BS(e,t,n){var a=Vs;if(a&&typeof t=="string"&&t){var r=ze(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),DA.has(r)||(DA.add(r),e={rel:e,crossOrigin:n,href:t},a.querySelector(r)===null&&(t=a.createElement("link"),Zt(t,"link",e),Se(t),a.head.appendChild(t)))}}function HS(e,t,n,a){var r=(r=ri.current)?Xc(r):null;if(!r)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=Jr(n.href),t=_e(r).hoistableStyles,a=t.get(n),a||(a={type:"style",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Jr(n.href);var s=_e(r).hoistableStyles,c=s.get(e);if(!c&&(r=r.ownerDocument||r,c={type:"stylesheet",instance:null,count:0,state:{loading:Er,preload:null}},s.set(e,c),(s=r.querySelector(Ol(e)))&&!s._p&&(c.instance=s,c.state.loading=xu|aa),!oa.has(e))){var d={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};oa.set(e,d),s||zC(r,e,d,c.state)}if(t&&a===null)throw n=`
|
|
222
|
+
|
|
223
|
+
- `+Qc(t)+`
|
|
224
|
+
+ `+Qc(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 c}if(t&&a!==null)throw n=`
|
|
225
|
+
|
|
226
|
+
- `+Qc(t)+`
|
|
227
|
+
+ `+Qc(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=Kr(n),t=_e(r).hoistableScripts,a=t.get(n),a||(a={type:"script",instance:null,count:0,state:null},t.set(n,a)),a):{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 Qc(e){var t=0,n="<link";return typeof e.rel=="string"?(t++,n+=' rel="'+e.rel+'"'):va.call(e,"rel")&&(t++,n+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,n+=' href="'+e.href+'"'):va.call(e,"href")&&(t++,n+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,n+=' precedence="'+e.precedence+'"'):va.call(e,"precedence")&&(t++,n+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(n+=" ..."),n+" />"}function Jr(e){return'href="'+ze(e)+'"'}function Ol(e){return'link[rel="stylesheet"]['+e+"]"}function YS(e){return Be({},e,{"data-precedence":e.precedence,precedence:null})}function zC(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=xu:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=xu}),t.addEventListener("error",function(){return a.loading|=MA}),Zt(t,"link",n),Se(t),e.head.appendChild(t))}function Kr(e){return'[src="'+ze(e)+'"]'}function _l(e){return"script[async]"+e}function qS(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+ze(n.href)+'"]');if(a)return t.instance=a,Se(a),a;var r=Be({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Se(a),Zt(a,"style",r),Zc(a,n.precedence,e),t.instance=a;case"stylesheet":r=Jr(n.href);var s=e.querySelector(Ol(r));if(s)return t.state.loading|=aa,t.instance=s,Se(s),s;a=YS(n),(r=oa.get(r))&&Gp(a,r),s=(e.ownerDocument||e).createElement("link"),Se(s);var c=s;return c._p=new Promise(function(d,g){c.onload=d,c.onerror=g}),Zt(s,"link",a),t.state.loading|=aa,Zc(s,n.precedence,e),t.instance=s;case"script":return s=Kr(n.src),(r=e.querySelector(_l(s)))?(t.instance=r,Se(r),r):(a=n,(r=oa.get(s))&&(a=Be({},n),Pp(a,r)),e=e.ownerDocument||e,r=e.createElement("script"),Se(r),Zt(r,"link",a),e.head.appendChild(r),t.instance=r);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&aa)===Er&&(a=t.instance,t.state.loading|=aa,Zc(a,n.precedence,e));return t.instance}function Zc(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=a.length?a[a.length-1]:null,s=r,c=0;c<a.length;c++){var d=a[c];if(d.dataset.precedence===t)s=d;else if(s!==r)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Gp(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Pp(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function GS(e,t,n){if(td===null){var a=new Map,r=td=new Map;r.set(n,a)}else r=td,a=r.get(n),a||(a=new Map,r.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var s=n[r];if(!(s[Vl]||s[It]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!==is){var c=s.getAttribute(t)||"";c=e+c;var d=a.get(c);d?d.push(s):a.set(c,[s])}}return a}function PS(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function NC(e,t,n){var a=!n.ancestorInfo.containerTagInScope;if(n.context===Us||t.itemProp!=null)return!a||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===""){a&&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 r=t.onError,s=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),r&&n.push("`onError`"),s!=null&&n.push("`disabled`"),r=cC(n,"and"),r+=n.length===1?" prop":" props",s=n.length===1?"an "+r:"the "+r,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,s,r)}a&&(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"&&a&&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"){a&&(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":a&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function $S(e){return!(e.type==="stylesheet"&&(e.state.loading&CA)===Er)}function UC(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&aa)===Er){if(n.instance===null){var r=Jr(a.href),s=t.querySelector(Ol(r));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ic.bind(e),t.then(e,e)),n.state.loading|=aa,n.instance=s,Se(s);return}s=t.ownerDocument||t,a=YS(a),(r=oa.get(r))&&Gp(a,r),s=s.createElement("link"),Se(s);var c=s;c._p=new Promise(function(d,g){c.onload=d,c.onerror=g}),Zt(s,"link",a),n.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&CA)===Er&&(e.count++,n=Ic.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}function VC(e,t){return e.stylesheets&&e.count===0&&Fc(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Fc(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},jO+t);0<e.imgBytes&&Ey===0&&(Ey=125*fC()*NO);var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Fc(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Ey?50:zO)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(r)}}:null}function Ic(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Fc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Fc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,nd=new Map,t.forEach(kC,e),nd=null,Ic.call(e))}function kC(e,t){if(!(t.state.loading&aa)){var n=nd.get(e);if(n)var a=n.get(xy);else{n=new Map,nd.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<r.length;s++){var c=r[s];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(n.set(c.dataset.precedence,c),a=c)}a&&n.set(xy,a)}r=t.instance,c=r.getAttribute("data-precedence"),s=n.get(c)||a,s===a&&n.set(xy,r),n.set(c,r),this.count++,a=Ic.bind(this),r.addEventListener("load",a),r.addEventListener("error",a),s?s.parentNode.insertBefore(r,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=aa}}function LC(e,t,n,a,r,s,c,d,g){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Ar,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ua(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ua(0),this.hiddenUpdates=ua(null),this.identifierPrefix=a,this.onUncaughtError=r,this.onCaughtError=s,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,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 XS(e,t,n,a,r,s,c,d,g,T,z,N){return e=new LC(e,t,n,c,g,T,z,N,d),t=oO,s===!0&&(t|=an|ba),t|=Ne,s=y(3,null,null,t),e.current=s,s.stateNode=e,t=vh(),Zi(t),e.pooledCache=t,Zi(t),s.memoizedState={element:a,isDehydrated:n,cache:t},Eh(s),e}function QS(e){return e?(e=di,e):di}function $p(e,t,n,a,r,s){if(nn&&typeof nn.onScheduleFiberRoot=="function")try{nn.onScheduleFiberRoot(as,a,n)}catch(c){Ja||(Ja=!0,console.error("React instrumentation encountered an error: %o",c))}r=QS(r),a.context===null?a.context=r:a.pendingContext=r,Fa&&Ln!==null&&!zA&&(zA=!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.
|
|
228
|
+
|
|
229
|
+
Check the render method of %s.`,q(Ln)||"Unknown")),a=Jo(t),a.payload={element:n},s=s===void 0?null:s,s!==null&&(typeof s!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",s),a.callback=s),n=Ko(e,a,t),n!==null&&(Ua(t,"root.render()",null),yt(n,e,t),fl(n,e,t))}function ZS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Xp(e,t){ZS(e,t),(e=e.alternate)&&ZS(e,t)}function IS(e){if(e.tag===13||e.tag===31){var t=tn(e,67108864);t!==null&&yt(t,e,67108864),Xp(e,67108864)}}function FS(e){if(e.tag===13||e.tag===31){var t=Un(e);t=_a(t);var n=tn(e,t);n!==null&&yt(n,e,t),Xp(e,t)}}function BC(){return Ln}function HC(e,t,n,a){var r=X.T;X.T=null;var s=Ie.p;try{Ie.p=Xn,Qp(e,t,n,a)}finally{Ie.p=s,X.T=r}}function YC(e,t,n,a){var r=X.T;X.T=null;var s=Ie.p;try{Ie.p=Wa,Qp(e,t,n,a)}finally{Ie.p=s,X.T=r}}function Qp(e,t,n,a){if(od){var r=Zp(a);if(r===null)jp(e,t,a,id,n),KS(e,a);else if(qC(r,e,t,n,a))a.stopPropagation();else if(KS(e,a),t&4&&-1<VO.indexOf(e)){for(;r!==null;){var s=se(r);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var c=Mn(s.pendingLanes);if(c!==0){var d=s;for(d.pendingLanes|=2,d.entangledLanes|=2;c;){var g=1<<31-ln(c);d.entanglements[1]|=g,c&=~g}Xa(s),(Qe&(Vt|qn))===$t&&(Yf=qt()+sA,wl(0))}}break;case 31:case 13:d=tn(s,2),d!==null&&yt(d,s,2),Zr(),Xp(s,2)}if(s=Zp(a),s===null&&jp(e,t,a,id,n),s===r)break;r=s}r!==null&&a.stopPropagation()}else jp(e,t,a,null,n)}}function Zp(e){return e=Wd(e),Ip(e)}function Ip(e){if(id=null,e=te(e),e!==null){var t=B(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=$(t),e!==null)return e;e=null}else if(n===31){if(e=P(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 id=e,null}function JS(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"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Xn;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Wa;case"message":switch(KC()){case um:return Xn;case cm:return Wa;case ns:case WC:return Eo;case fm:return sf;default:return Eo}default:return Eo}}function KS(e,t){switch(e){case"focusin":case"focusout":Ci=null;break;case"dragenter":case"dragleave":Di=null;break;case"mouseover":case"mouseout":Oi=null;break;case"pointerover":case"pointerout":Ru.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mu.delete(t.pointerId)}}function jl(e,t,n,a,r,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:s,targetContainers:[r]},t!==null&&(t=se(t),t!==null&&IS(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function qC(e,t,n,a,r){switch(t){case"focusin":return Ci=jl(Ci,e,t,n,a,r),!0;case"dragenter":return Di=jl(Di,e,t,n,a,r),!0;case"mouseover":return Oi=jl(Oi,e,t,n,a,r),!0;case"pointerover":var s=r.pointerId;return Ru.set(s,jl(Ru.get(s)||null,e,t,n,a,r)),!0;case"gotpointercapture":return s=r.pointerId,Mu.set(s,jl(Mu.get(s)||null,e,t,n,a,r)),!0}return!1}function WS(e){var t=te(e.target);if(t!==null){var n=B(t);if(n!==null){if(t=n.tag,t===13){if(t=$(n),t!==null){e.blockedOn=t,E(e.priority,function(){FS(n)});return}}else if(t===31){if(t=P(n),t!==null){e.blockedOn=t,E(e.priority,function(){FS(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 Jc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zp(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n),r=a;kl!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),kl=r,n.target.dispatchEvent(a),kl===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."),kl=null}else return t=se(n),t!==null&&IS(t),e.blockedOn=n,!1;t.shift()}return!0}function e1(e,t,n){Jc(e)&&n.delete(t)}function GC(){wy=!1,Ci!==null&&Jc(Ci)&&(Ci=null),Di!==null&&Jc(Di)&&(Di=null),Oi!==null&&Jc(Oi)&&(Oi=null),Ru.forEach(e1),Mu.forEach(e1)}function Kc(e,t){e.blockedOn===t&&(e.blockedOn=null,wy||(wy=!0,Et.unstable_scheduleCallback(Et.unstable_NormalPriority,GC)))}function t1(e){rd!==e&&(rd=e,Et.unstable_scheduleCallback(Et.unstable_NormalPriority,function(){rd===e&&(rd=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],r=e[t+2];if(typeof a!="function"){if(Ip(a||n)===null)continue;break}var s=se(n);s!==null&&(e.splice(t,3),t-=3,n={pending:!0,data:r,method:n.method,action:a},Object.freeze(n),Ih(s,n,a,r))}}))}function Wr(e){function t(g){return Kc(g,e)}Ci!==null&&Kc(Ci,e),Di!==null&&Kc(Di,e),Oi!==null&&Kc(Oi,e),Ru.forEach(t),Mu.forEach(t);for(var n=0;n<_i.length;n++){var a=_i[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<_i.length&&(n=_i[0],n.blockedOn===null);)WS(n),n.blockedOn===null&&_i.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var r=n[a],s=n[a+1],c=r[un]||null;if(typeof s=="function")c||t1(n);else if(c){var d=null;if(s&&s.hasAttribute("formAction")){if(r=s,c=s[un]||null)d=c.formAction;else if(Ip(r)!==null)continue}else d=c.action;typeof d=="function"?n[a+1]=d:(n.splice(a,3),a-=3),t1(n)}}}function n1(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(c){return r=c})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function Fp(e){this._internalRoot=e}function Wc(e){this._internalRoot=e}function a1(e){e[li]&&(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 Et=qO(),Jp=qu(),PC=Hx(),Be=Object.assign,$C=Symbol.for("react.element"),Za=Symbol.for("react.transitional.element"),es=Symbol.for("react.portal"),ts=Symbol.for("react.fragment"),ef=Symbol.for("react.strict_mode"),Kp=Symbol.for("react.profiler"),Wp=Symbol.for("react.consumer"),Ia=Symbol.for("react.context"),zl=Symbol.for("react.forward_ref"),em=Symbol.for("react.suspense"),tm=Symbol.for("react.suspense_list"),tf=Symbol.for("react.memo"),kn=Symbol.for("react.lazy"),nm=Symbol.for("react.activity"),XC=Symbol.for("react.memo_cache_sentinel"),o1=Symbol.iterator,QC=Symbol.for("react.client.reference"),Nt=Array.isArray,X=Jp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ie=PC.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ZC=Object.freeze({pending:!1,data:null,method:null,action:null}),am=[],om=[],Ao=-1,ii=oe(null),Nl=oe(null),ri=oe(null),nf=oe(null),Ul=0,i1,r1,s1,l1,u1,c1,f1;pe.__reactDisabledLog=!0;var im,d1,rm=!1,sm=new(typeof WeakMap=="function"?WeakMap:Map),Ln=null,Fa=!1,va=Object.prototype.hasOwnProperty,lm=Et.unstable_scheduleCallback,IC=Et.unstable_cancelCallback,FC=Et.unstable_shouldYield,JC=Et.unstable_requestPaint,qt=Et.unstable_now,KC=Et.unstable_getCurrentPriorityLevel,um=Et.unstable_ImmediatePriority,cm=Et.unstable_UserBlockingPriority,ns=Et.unstable_NormalPriority,WC=Et.unstable_LowPriority,fm=Et.unstable_IdlePriority,eD=Et.log,tD=Et.unstable_setDisableYieldValue,as=null,nn=null,Ja=!1,Ka=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",ln=Math.clz32?Math.clz32:sa,nD=Math.log,aD=Math.LN2,af=256,of=262144,rf=4194304,Xn=2,Wa=8,Eo=32,sf=268435456,si=Math.random().toString(36).slice(2),It="__reactFiber$"+si,un="__reactProps$"+si,li="__reactContainer$"+si,dm="__reactEvents$"+si,oD="__reactListeners$"+si,iD="__reactHandles$"+si,h1="__reactResources$"+si,Vl="__reactMarker$"+si,p1=new Set,tr={},hm={},rD={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},sD=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]*$"),m1={},y1={},lD=/[\n"\\]/g,g1=!1,v1=!1,b1=!1,S1=!1,T1=!1,A1=!1,E1=["value","defaultValue"],x1=!1,w1=/["'&<>\n\t]|^\s|\s$/,uD="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(" "),R1="applet caption html table td th marquee object template foreignObject desc title".split(" "),cD=R1.concat(["button"]),fD="dd dt li option optgroup p rp rt".split(" "),M1={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},lf={},pm={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},C1=/([A-Z])/g,D1=/^ms-/,dD=/^(?:webkit|moz|o)[A-Z]/,hD=/^-ms-/,pD=/-(.)/g,O1=/;\s*$/,os={},mm={},_1=!1,j1=!1,z1=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(" ")),uf="http://www.w3.org/1998/Math/MathML",is="http://www.w3.org/2000/svg",mD=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),cf={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},N1={"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},rs={},yD=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]*$"),gD=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]*$"),U1=!1,cn={},V1=/^on./,vD=/^on[^A-Z]/,bD=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]*$"),SD=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]*$"),TD=/^[\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,kl=null,ss=null,ls=null,ym=!1,eo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gm=!1;if(eo)try{var Ll={};Object.defineProperty(Ll,"passive",{get:function(){gm=!0}}),window.addEventListener("test",Ll,Ll),window.removeEventListener("test",Ll,Ll)}catch{gm=!1}var ui=null,vm=null,ff=null,nr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},df=bn(nr),Bl=Be({},nr,{view:0,detail:0}),AD=bn(Bl),bm,Sm,Hl,hf=Be({},Bl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:eh,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!==Hl&&(Hl&&e.type==="mousemove"?(bm=e.screenX-Hl.screenX,Sm=e.screenY-Hl.screenY):Sm=bm=0,Hl=e),bm)},movementY:function(e){return"movementY"in e?e.movementY:Sm}}),k1=bn(hf),ED=Be({},hf,{dataTransfer:0}),xD=bn(ED),wD=Be({},Bl,{relatedTarget:0}),Tm=bn(wD),RD=Be({},nr,{animationName:0,elapsedTime:0,pseudoElement:0}),MD=bn(RD),CD=Be({},nr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),DD=bn(CD),OD=Be({},nr,{data:0}),L1=bn(OD),_D=L1,jD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zD={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"},ND={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},UD=Be({},Bl,{key:function(e){if(e.key){var t=jD[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ju(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?zD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:eh,charCode:function(e){return e.type==="keypress"?Ju(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ju(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),VD=bn(UD),kD=Be({},hf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),B1=bn(kD),LD=Be({},Bl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:eh}),BD=bn(LD),HD=Be({},nr,{propertyName:0,elapsedTime:0,pseudoElement:0}),YD=bn(HD),qD=Be({},hf,{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}),GD=bn(qD),PD=Be({},nr,{newState:0,oldState:0}),$D=bn(PD),XD=[9,13,27,32],H1=229,Am=eo&&"CompositionEvent"in window,Yl=null;eo&&"documentMode"in document&&(Yl=document.documentMode);var QD=eo&&"TextEvent"in window&&!Yl,Y1=eo&&(!Am||Yl&&8<Yl&&11>=Yl),q1=32,G1=String.fromCharCode(q1),P1=!1,us=!1,ZD={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},ql=null,Gl=null,$1=!1;eo&&($1=pM("input")&&(!document.documentMode||9<document.documentMode));var fn=typeof Object.is=="function"?Object.is:SM,ID=eo&&"documentMode"in document&&11>=document.documentMode,cs=null,Em=null,Pl=null,xm=!1,fs={animationend:Yi("Animation","AnimationEnd"),animationiteration:Yi("Animation","AnimationIteration"),animationstart:Yi("Animation","AnimationStart"),transitionrun:Yi("Transition","TransitionRun"),transitionstart:Yi("Transition","TransitionStart"),transitioncancel:Yi("Transition","TransitionCancel"),transitionend:Yi("Transition","TransitionEnd")},wm={},X1={};eo&&(X1=document.createElement("div").style,"AnimationEvent"in window||(delete fs.animationend.animation,delete fs.animationiteration.animation,delete fs.animationstart.animation),"TransitionEvent"in window||delete fs.transitionend.transition);var Q1=qi("animationend"),Z1=qi("animationiteration"),I1=qi("animationstart"),FD=qi("transitionrun"),JD=qi("transitionstart"),KD=qi("transitioncancel"),F1=qi("transitionend"),J1=new Map,Rm="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Rm.push("scrollEnd");var K1=0;if(typeof performance=="object"&&typeof performance.now=="function")var WD=performance,W1=function(){return WD.now()};else{var eO=Date;W1=function(){return eO.now()}}var Mm=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!==null&&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)},tO="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.",pf=0,Cm=1,Dm=2,Om=3,mf="– ",yf="+ ",eT=" ",lt=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Qn="Components ⚛",Pe="Scheduler ⚛",Xe="Blocking",ci=!1,xo={color:"primary",properties:null,tooltipText:"",track:Qn},fi={start:-0,end:-0,detail:{devtools:xo}},nO=["Changed Props",""],tT="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",aO=["Changed Props",tT],$l=1,wo=2,Zn=[],ds=0,_m=0,di={};Object.freeze(di);var In=null,hs=null,Me=0,oO=1,Ne=2,an=8,ba=16,iO=32,nT=!1;try{var aT=Object.preventExtensions({})}catch{nT=!0}var jm=new WeakMap,ps=[],ms=0,gf=null,Xl=0,Fn=[],Jn=0,ar=null,Ro=1,Mo="",Ft=null,ut=null,Ye=!1,to=!1,Bn=null,hi=null,Kn=!1,zm=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."),Nm=oe(null),Um=oe(null),oT={},vf=null,ys=null,gs=!1,rO=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},sO=Et.unstable_scheduleCallback,lO=Et.unstable_NormalPriority,xt={$$typeof:Ia,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},wt=Et.unstable_now,bf=console.createTask?console.createTask:function(){return null},Ql=1,Sf=2,Gt=-0,pi=-0,Co=-0,Do=null,dn=-1.1,or=-0,pt=-0,xe=-1.1,Re=-1.1,dt=null,gt=!1,ir=-0,no=-1.1,Zl=null,mi=0,Vm=null,km=null,rr=-1.1,Il=null,vs=-1.1,Tf=-1.1,Oo=-0,_o=-1.1,Wn=-1.1,Lm=0,Fl=null,iT=null,rT=null,yi=-1.1,sr=null,gi=-1.1,Af=-1.1,sT=-0,lT=-0,Ef=0,uO=null,uT=0,Jl=-1.1,xf=!1,wf=!1,Kl=null,Bm=0,lr=0,bs=null,cT=X.S;X.S=function(e,t){if(iA=qt(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>_o&&0>Wn){_o=wt();var n=Cl(),a=Ml();(n!==gi||a!==sr)&&(gi=-1.1),yi=n,sr=a}MM(e,t)}cT!==null&&cT(e,t)};var ur=oe(null),Sa={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Wl=[],eu=[],tu=[],nu=[],au=[],ou=[],cr=new Set;Sa.recordUnsafeLifecycleWarnings=function(e,t){cr.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Wl.push(e),e.mode&an&&typeof t.UNSAFE_componentWillMount=="function"&&eu.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&tu.push(e),e.mode&an&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&nu.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&au.push(e),e.mode&an&&typeof t.UNSAFE_componentWillUpdate=="function"&&ou.push(e))},Sa.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Wl.length&&(Wl.forEach(function(d){e.add(q(d)||"Component"),cr.add(d.type)}),Wl=[]);var t=new Set;0<eu.length&&(eu.forEach(function(d){t.add(q(d)||"Component"),cr.add(d.type)}),eu=[]);var n=new Set;0<tu.length&&(tu.forEach(function(d){n.add(q(d)||"Component"),cr.add(d.type)}),tu=[]);var a=new Set;0<nu.length&&(nu.forEach(function(d){a.add(q(d)||"Component"),cr.add(d.type)}),nu=[]);var r=new Set;0<au.length&&(au.forEach(function(d){r.add(q(d)||"Component"),cr.add(d.type)}),au=[]);var s=new Set;if(0<ou.length&&(ou.forEach(function(d){s.add(q(d)||"Component"),cr.add(d.type)}),ou=[]),0<t.size){var c=v(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.
|
|
230
|
+
|
|
231
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
232
|
+
|
|
233
|
+
Please update the following components: %s`,c)}0<a.size&&(c=v(a),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.
|
|
234
|
+
|
|
235
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
236
|
+
* 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
|
|
237
|
+
|
|
238
|
+
Please update the following components: %s`,c)),0<s.size&&(c=v(s),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.
|
|
239
|
+
|
|
240
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
241
|
+
|
|
242
|
+
Please update the following components: %s`,c)),0<e.size&&(c=v(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
243
|
+
|
|
244
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
245
|
+
* 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.
|
|
246
|
+
|
|
247
|
+
Please update the following components: %s`,c)),0<n.size&&(c=v(n),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
248
|
+
|
|
249
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
250
|
+
* 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
|
|
251
|
+
* 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.
|
|
252
|
+
|
|
253
|
+
Please update the following components: %s`,c)),0<r.size&&(c=v(r),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
254
|
+
|
|
255
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
256
|
+
* 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.
|
|
257
|
+
|
|
258
|
+
Please update the following components: %s`,c))};var Rf=new Map,fT=new Set;Sa.recordLegacyContextWarning=function(e,t){for(var n=null,a=e;a!==null;)a.mode&an&&(n=a),a=a.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."):!fT.has(e.type)&&(a=Rf.get(n),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(a===void 0&&(a=[],Rf.set(n,a)),a.push(e))},Sa.flushLegacyContextWarning=function(){Rf.forEach(function(e){if(e.length!==0){var t=e[0],n=new Set;e.forEach(function(r){n.add(q(r)||"Component"),fT.add(r.type)});var a=v(n);he(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
259
|
+
|
|
260
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
261
|
+
|
|
262
|
+
Please update the following components: %s
|
|
263
|
+
|
|
264
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,a)})}})},Sa.discardPendingWarnings=function(){Wl=[],eu=[],tu=[],nu=[],au=[],ou=[],Rf=new Map};var dT={react_stack_bottom_frame:function(e,t,n){var a=Fa;Fa=!0;try{return e(t,n)}finally{Fa=a}}},Hm=dT.react_stack_bottom_frame.bind(dT),hT={react_stack_bottom_frame:function(e){var t=Fa;Fa=!0;try{return e.render()}finally{Fa=t}}},pT=hT.react_stack_bottom_frame.bind(hT),mT={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(n){Ze(e,e.return,n)}}},Ym=mT.react_stack_bottom_frame.bind(mT),yT={react_stack_bottom_frame:function(e,t,n,a,r){try{t.componentDidUpdate(n,a,r)}catch(s){Ze(e,e.return,s)}}},gT=yT.react_stack_bottom_frame.bind(yT),vT={react_stack_bottom_frame:function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:n!==null?n:""})}},cO=vT.react_stack_bottom_frame.bind(vT),bT={react_stack_bottom_frame:function(e,t,n){try{n.componentWillUnmount()}catch(a){Ze(e,t,a)}}},ST=bT.react_stack_bottom_frame.bind(bT),TT={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},fO=TT.react_stack_bottom_frame.bind(TT),AT={react_stack_bottom_frame:function(e,t,n){try{n()}catch(a){Ze(e,t,a)}}},dO=AT.react_stack_bottom_frame.bind(AT),ET={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},hO=ET.react_stack_bottom_frame.bind(ET),Ss=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`."),qm=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."),Mf=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."),Cf={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.')}},fr=null,iu=!1,Ts=null,ru=0,Ue=null,Gm,xT=Gm=!1,wT={},RT={},MT={};S=function(e,t,n){if(n!==null&&typeof n=="object"&&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 a=q(e),r=a||"null";if(!wT[r]){wT[r]=!0,n=n._owner,e=e._debugOwner;var s="";e&&typeof e.tag=="number"&&(r=q(e))&&(s=`
|
|
265
|
+
|
|
266
|
+
Check the render method of \``+r+"`."),s||a&&(s=`
|
|
267
|
+
|
|
268
|
+
Check the top-level render call using <`+a+">.");var c="";n!=null&&e!==n&&(a=null,typeof n.tag=="number"?a=q(n):typeof n.name=="string"&&(a=n.name),a&&(c=" It was passed a child from "+a+".")),he(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.',s,c)})}}};var dr=b0(!0),CT=b0(!1),DT=0,OT=1,_T=2,Pm=3,vi=!1,jT=!1,$m=null,Xm=!1,As=oe(null),Df=oe(0),Hn=oe(null),ea=null,Es=1,su=2,Tt=oe(0),Of=0,ta=1,hn=2,Yn=4,pn=8,xs,zT=new Set,NT=new Set,Qm=new Set,UT=new Set,jo=0,Ce=null,nt=null,Rt=null,_f=!1,ws=!1,hr=!1,jf=0,lu=0,zo=null,pO=0,mO=25,G=null,na=null,No=-1,uu=!1,cu={readContext:ft,use:ti,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useLayoutEffect:bt,useInsertionEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useSyncExternalStore:bt,useId:bt,useHostTransitionStatus:bt,useFormState:bt,useActionState:bt,useOptimistic:bt,useMemoCache:bt,useCacheRefresh:bt};cu.useEffectEvent=bt;var Zm=null,VT=null,Im=null,kT=null,ao=null,Ta=null,zf=null;Zm={readContext:function(e){return ft(e)},use:ti,useCallback:function(e,t){return G="useCallback",Le(),Yr(t),$h(e,t)},useContext:function(e){return G="useContext",Le(),ft(e)},useEffect:function(e,t){return G="useEffect",Le(),Yr(t),wc(e,t)},useImperativeHandle:function(e,t,n){return G="useImperativeHandle",Le(),Yr(n),Ph(e,t,n)},useInsertionEffect:function(e,t){G="useInsertionEffect",Le(),Yr(t),Fi(4,hn,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",Le(),Yr(t),Gh(e,t)},useMemo:function(e,t){G="useMemo",Le(),Yr(t);var n=X.H;X.H=ao;try{return Xh(e,t)}finally{X.H=n}},useReducer:function(e,t,n){G="useReducer",Le();var a=X.H;X.H=ao;try{return Nh(e,t,n)}finally{X.H=a}},useRef:function(e){return G="useRef",Le(),Yh(e)},useState:function(e){G="useState",Le();var t=X.H;X.H=ao;try{return Lh(e)}finally{X.H=t}},useDebugValue:function(){G="useDebugValue",Le()},useDeferredValue:function(e,t){return G="useDeferredValue",Le(),Qh(e,t)},useTransition:function(){return G="useTransition",Le(),Fh()},useSyncExternalStore:function(e,t,n){return G="useSyncExternalStore",Le(),Vh(e,t,n)},useId:function(){return G="useId",Le(),Jh()},useFormState:function(e,t){return G="useFormState",Le(),Sc(),Gr(e,t)},useActionState:function(e,t){return G="useActionState",Le(),Gr(e,t)},useOptimistic:function(e){return G="useOptimistic",Le(),Bh(e)},useHostTransitionStatus:Ji,useMemoCache:Ii,useCacheRefresh:function(){return G="useCacheRefresh",Le(),Kh()},useEffectEvent:function(e){return G="useEffectEvent",Le(),qh(e)}},VT={readContext:function(e){return ft(e)},use:ti,useCallback:function(e,t){return G="useCallback",ne(),$h(e,t)},useContext:function(e){return G="useContext",ne(),ft(e)},useEffect:function(e,t){return G="useEffect",ne(),wc(e,t)},useImperativeHandle:function(e,t,n){return G="useImperativeHandle",ne(),Ph(e,t,n)},useInsertionEffect:function(e,t){G="useInsertionEffect",ne(),Fi(4,hn,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",ne(),Gh(e,t)},useMemo:function(e,t){G="useMemo",ne();var n=X.H;X.H=ao;try{return Xh(e,t)}finally{X.H=n}},useReducer:function(e,t,n){G="useReducer",ne();var a=X.H;X.H=ao;try{return Nh(e,t,n)}finally{X.H=a}},useRef:function(e){return G="useRef",ne(),Yh(e)},useState:function(e){G="useState",ne();var t=X.H;X.H=ao;try{return Lh(e)}finally{X.H=t}},useDebugValue:function(){G="useDebugValue",ne()},useDeferredValue:function(e,t){return G="useDeferredValue",ne(),Qh(e,t)},useTransition:function(){return G="useTransition",ne(),Fh()},useSyncExternalStore:function(e,t,n){return G="useSyncExternalStore",ne(),Vh(e,t,n)},useId:function(){return G="useId",ne(),Jh()},useActionState:function(e,t){return G="useActionState",ne(),Gr(e,t)},useFormState:function(e,t){return G="useFormState",ne(),Sc(),Gr(e,t)},useOptimistic:function(e){return G="useOptimistic",ne(),Bh(e)},useHostTransitionStatus:Ji,useMemoCache:Ii,useCacheRefresh:function(){return G="useCacheRefresh",ne(),Kh()},useEffectEvent:function(e){return G="useEffectEvent",ne(),qh(e)}},Im={readContext:function(e){return ft(e)},use:ti,useCallback:function(e,t){return G="useCallback",ne(),Cc(e,t)},useContext:function(e){return G="useContext",ne(),ft(e)},useEffect:function(e,t){G="useEffect",ne(),Sn(2048,pn,e,t)},useImperativeHandle:function(e,t,n){return G="useImperativeHandle",ne(),Mc(e,t,n)},useInsertionEffect:function(e,t){return G="useInsertionEffect",ne(),Sn(4,hn,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",ne(),Sn(4,Yn,e,t)},useMemo:function(e,t){G="useMemo",ne();var n=X.H;X.H=Ta;try{return Dc(e,t)}finally{X.H=n}},useReducer:function(e,t,n){G="useReducer",ne();var a=X.H;X.H=Ta;try{return qr(e,t,n)}finally{X.H=a}},useRef:function(){return G="useRef",ne(),Fe().memoizedState},useState:function(){G="useState",ne();var e=X.H;X.H=Ta;try{return qr(ya)}finally{X.H=e}},useDebugValue:function(){G="useDebugValue",ne()},useDeferredValue:function(e,t){return G="useDeferredValue",ne(),Y0(e,t)},useTransition:function(){return G="useTransition",ne(),Q0()},useSyncExternalStore:function(e,t,n){return G="useSyncExternalStore",ne(),Ac(e,t,n)},useId:function(){return G="useId",ne(),Fe().memoizedState},useFormState:function(e){return G="useFormState",ne(),Sc(),Ec(e)},useActionState:function(e){return G="useActionState",ne(),Ec(e)},useOptimistic:function(e,t){return G="useOptimistic",ne(),_0(e,t)},useHostTransitionStatus:Ji,useMemoCache:Ii,useCacheRefresh:function(){return G="useCacheRefresh",ne(),Fe().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",ne(),Rc(e)}},kT={readContext:function(e){return ft(e)},use:ti,useCallback:function(e,t){return G="useCallback",ne(),Cc(e,t)},useContext:function(e){return G="useContext",ne(),ft(e)},useEffect:function(e,t){G="useEffect",ne(),Sn(2048,pn,e,t)},useImperativeHandle:function(e,t,n){return G="useImperativeHandle",ne(),Mc(e,t,n)},useInsertionEffect:function(e,t){return G="useInsertionEffect",ne(),Sn(4,hn,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",ne(),Sn(4,Yn,e,t)},useMemo:function(e,t){G="useMemo",ne();var n=X.H;X.H=zf;try{return Dc(e,t)}finally{X.H=n}},useReducer:function(e,t,n){G="useReducer",ne();var a=X.H;X.H=zf;try{return ml(e,t,n)}finally{X.H=a}},useRef:function(){return G="useRef",ne(),Fe().memoizedState},useState:function(){G="useState",ne();var e=X.H;X.H=zf;try{return ml(ya)}finally{X.H=e}},useDebugValue:function(){G="useDebugValue",ne()},useDeferredValue:function(e,t){return G="useDeferredValue",ne(),q0(e,t)},useTransition:function(){return G="useTransition",ne(),Z0()},useSyncExternalStore:function(e,t,n){return G="useSyncExternalStore",ne(),Ac(e,t,n)},useId:function(){return G="useId",ne(),Fe().memoizedState},useFormState:function(e){return G="useFormState",ne(),Sc(),xc(e)},useActionState:function(e){return G="useActionState",ne(),xc(e)},useOptimistic:function(e,t){return G="useOptimistic",ne(),z0(e,t)},useHostTransitionStatus:Ji,useMemoCache:Ii,useCacheRefresh:function(){return G="useCacheRefresh",ne(),Fe().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",ne(),Rc(e)}},ao={readContext:function(e){return b(),ft(e)},use:function(e){return m(),ti(e)},useCallback:function(e,t){return G="useCallback",m(),Le(),$h(e,t)},useContext:function(e){return G="useContext",m(),Le(),ft(e)},useEffect:function(e,t){return G="useEffect",m(),Le(),wc(e,t)},useImperativeHandle:function(e,t,n){return G="useImperativeHandle",m(),Le(),Ph(e,t,n)},useInsertionEffect:function(e,t){G="useInsertionEffect",m(),Le(),Fi(4,hn,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",m(),Le(),Gh(e,t)},useMemo:function(e,t){G="useMemo",m(),Le();var n=X.H;X.H=ao;try{return Xh(e,t)}finally{X.H=n}},useReducer:function(e,t,n){G="useReducer",m(),Le();var a=X.H;X.H=ao;try{return Nh(e,t,n)}finally{X.H=a}},useRef:function(e){return G="useRef",m(),Le(),Yh(e)},useState:function(e){G="useState",m(),Le();var t=X.H;X.H=ao;try{return Lh(e)}finally{X.H=t}},useDebugValue:function(){G="useDebugValue",m(),Le()},useDeferredValue:function(e,t){return G="useDeferredValue",m(),Le(),Qh(e,t)},useTransition:function(){return G="useTransition",m(),Le(),Fh()},useSyncExternalStore:function(e,t,n){return G="useSyncExternalStore",m(),Le(),Vh(e,t,n)},useId:function(){return G="useId",m(),Le(),Jh()},useFormState:function(e,t){return G="useFormState",m(),Le(),Gr(e,t)},useActionState:function(e,t){return G="useActionState",m(),Le(),Gr(e,t)},useOptimistic:function(e){return G="useOptimistic",m(),Le(),Bh(e)},useMemoCache:function(e){return m(),Ii(e)},useHostTransitionStatus:Ji,useCacheRefresh:function(){return G="useCacheRefresh",Le(),Kh()},useEffectEvent:function(e){return G="useEffectEvent",m(),Le(),qh(e)}},Ta={readContext:function(e){return b(),ft(e)},use:function(e){return m(),ti(e)},useCallback:function(e,t){return G="useCallback",m(),ne(),Cc(e,t)},useContext:function(e){return G="useContext",m(),ne(),ft(e)},useEffect:function(e,t){G="useEffect",m(),ne(),Sn(2048,pn,e,t)},useImperativeHandle:function(e,t,n){return G="useImperativeHandle",m(),ne(),Mc(e,t,n)},useInsertionEffect:function(e,t){return G="useInsertionEffect",m(),ne(),Sn(4,hn,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",m(),ne(),Sn(4,Yn,e,t)},useMemo:function(e,t){G="useMemo",m(),ne();var n=X.H;X.H=Ta;try{return Dc(e,t)}finally{X.H=n}},useReducer:function(e,t,n){G="useReducer",m(),ne();var a=X.H;X.H=Ta;try{return qr(e,t,n)}finally{X.H=a}},useRef:function(){return G="useRef",m(),ne(),Fe().memoizedState},useState:function(){G="useState",m(),ne();var e=X.H;X.H=Ta;try{return qr(ya)}finally{X.H=e}},useDebugValue:function(){G="useDebugValue",m(),ne()},useDeferredValue:function(e,t){return G="useDeferredValue",m(),ne(),Y0(e,t)},useTransition:function(){return G="useTransition",m(),ne(),Q0()},useSyncExternalStore:function(e,t,n){return G="useSyncExternalStore",m(),ne(),Ac(e,t,n)},useId:function(){return G="useId",m(),ne(),Fe().memoizedState},useFormState:function(e){return G="useFormState",m(),ne(),Ec(e)},useActionState:function(e){return G="useActionState",m(),ne(),Ec(e)},useOptimistic:function(e,t){return G="useOptimistic",m(),ne(),_0(e,t)},useMemoCache:function(e){return m(),Ii(e)},useHostTransitionStatus:Ji,useCacheRefresh:function(){return G="useCacheRefresh",ne(),Fe().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",m(),ne(),Rc(e)}},zf={readContext:function(e){return b(),ft(e)},use:function(e){return m(),ti(e)},useCallback:function(e,t){return G="useCallback",m(),ne(),Cc(e,t)},useContext:function(e){return G="useContext",m(),ne(),ft(e)},useEffect:function(e,t){G="useEffect",m(),ne(),Sn(2048,pn,e,t)},useImperativeHandle:function(e,t,n){return G="useImperativeHandle",m(),ne(),Mc(e,t,n)},useInsertionEffect:function(e,t){return G="useInsertionEffect",m(),ne(),Sn(4,hn,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",m(),ne(),Sn(4,Yn,e,t)},useMemo:function(e,t){G="useMemo",m(),ne();var n=X.H;X.H=Ta;try{return Dc(e,t)}finally{X.H=n}},useReducer:function(e,t,n){G="useReducer",m(),ne();var a=X.H;X.H=Ta;try{return ml(e,t,n)}finally{X.H=a}},useRef:function(){return G="useRef",m(),ne(),Fe().memoizedState},useState:function(){G="useState",m(),ne();var e=X.H;X.H=Ta;try{return ml(ya)}finally{X.H=e}},useDebugValue:function(){G="useDebugValue",m(),ne()},useDeferredValue:function(e,t){return G="useDeferredValue",m(),ne(),q0(e,t)},useTransition:function(){return G="useTransition",m(),ne(),Z0()},useSyncExternalStore:function(e,t,n){return G="useSyncExternalStore",m(),ne(),Ac(e,t,n)},useId:function(){return G="useId",m(),ne(),Fe().memoizedState},useFormState:function(e){return G="useFormState",m(),ne(),xc(e)},useActionState:function(e){return G="useActionState",m(),ne(),xc(e)},useOptimistic:function(e,t){return G="useOptimistic",m(),ne(),z0(e,t)},useMemoCache:function(e){return m(),Ii(e)},useHostTransitionStatus:Ji,useCacheRefresh:function(){return G="useCacheRefresh",ne(),Fe().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",m(),ne(),Rc(e)}};var LT={},BT=new Set,HT=new Set,YT=new Set,qT=new Set,GT=new Set,PT=new Set,$T=new Set,XT=new Set,QT=new Set,ZT=new Set;Object.freeze(LT);var Fm={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Un(e),r=Jo(a);r.payload=t,n!=null&&(ep(n),r.callback=n),t=Ko(e,r,a),t!==null&&(Ua(a,"this.setState()",e),yt(t,e,a),fl(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Un(e),r=Jo(a);r.tag=OT,r.payload=t,n!=null&&(ep(n),r.callback=n),t=Ko(e,r,a),t!==null&&(Ua(a,"this.replaceState()",e),yt(t,e,a),fl(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Un(e),a=Jo(n);a.tag=_T,t!=null&&(ep(t),a.callback=t),t=Ko(e,a,n),t!==null&&(Ua(n,"this.forceUpdate()",e),yt(t,e,n),fl(t,e,n))}},Rs=null,Jm=null,Km=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."),Mt=!1,IT={},FT={},JT={},KT={},Ms=!1,WT={},Nf={},Wm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},eA=!1,tA=null;tA=new Set;var Uo=!1,Ct=!1,ey=!1,nA=typeof WeakSet=="function"?WeakSet:Set,Pt=null,Cs=null,Ds=null,Dt=null,En=!1,Aa=null,Ut=!1,fu=8192,yO={getCacheForType:function(e){var t=ft(xt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ft(xt).controller.signal},getOwner:function(){return Ln}};if(typeof Symbol=="function"&&Symbol.for){var du=Symbol.for;du("selector.component"),du("selector.has_pseudo_class"),du("selector.role"),du("selector.test_id"),du("selector.text")}var gO=[],vO=typeof WeakMap=="function"?WeakMap:Map,$t=0,Vt=2,qn=4,Vo=0,hu=1,pr=2,Uf=3,bi=4,Vf=6,aA=5,Qe=$t,at=null,ke=null,Ve=0,xn=0,kf=1,mr=2,pu=3,oA=4,ty=5,mu=6,Lf=7,ny=8,yr=9,Je=xn,Gn=null,Si=!1,Os=!1,ay=!1,oo=0,mt=Vo,Ti=0,Ai=0,oy=0,wn=0,gr=0,yu=null,mn=null,Bf=!1,Hf=0,iA=0,rA=300,Yf=1/0,sA=500,gu=null,St=null,Ei=null,qf=0,iy=1,ry=2,lA=3,xi=0,uA=1,cA=2,fA=3,dA=4,Gf=5,Ot=0,wi=null,_s=null,Ea=0,sy=0,ly=-0,uy=null,hA=null,pA=null,xa=qf,mA=null,bO=50,vu=0,cy=null,fy=!1,Pf=!1,SO=50,vr=0,bu=null,js=!1,$f=null,yA=!1,gA=new Set,TO={},Xf=null,zs=null,dy=!1,hy=!1,Qf=!1,py=!1,Ri=0,my={};(function(){for(var e=0;e<Rm.length;e++){var t=Rm[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),pa(n,"on"+t)}pa(Q1,"onAnimationEnd"),pa(Z1,"onAnimationIteration"),pa(I1,"onAnimationStart"),pa("dblclick","onDoubleClick"),pa("focusin","onFocus"),pa("focusout","onBlur"),pa(FD,"onTransitionRun"),pa(JD,"onTransitionStart"),pa(KD,"onTransitionCancel"),pa(F1,"onTransitionEnd")})(),Oe("onMouseEnter",["mouseout","mouseover"]),Oe("onMouseLeave",["mouseout","mouseover"]),Oe("onPointerEnter",["pointerout","pointerover"]),Oe("onPointerLeave",["pointerout","pointerover"]),He("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),He("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),He("onBeforeInput",["compositionend","keypress","textInput","paste"]),He("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),He("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),He("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Su="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(" "),yy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Su)),Zf="_reactListening"+Math.random().toString(36).slice(2),vA=!1,bA=!1,If=!1,SA=!1,Ff=!1,Jf=!1,TA=!1,Kf={},AO=/\r\n?/g,EO=/\u0000|\uFFFD/g,br="http://www.w3.org/1999/xlink",gy="http://www.w3.org/XML/1998/namespace",xO="javascript:throw new Error('React form unexpectedly submitted.')",wO="suppressHydrationWarning",Sr="&",Wf="/&",Tu="$",Au="/$",Mi="$?",Tr="$~",Ns="$!",RO="html",MO="body",CO="head",vy="F!",AA="F",EA="loading",DO="style",ko=0,Us=1,ed=2,by=null,Sy=null,xA={dialog:!0,webview:!0},Ty=null,Eu=void 0,wA=typeof setTimeout=="function"?setTimeout:void 0,OO=typeof clearTimeout=="function"?clearTimeout:void 0,Ar=-1,RA=typeof Promise=="function"?Promise:void 0,_O=typeof queueMicrotask=="function"?queueMicrotask:typeof RA<"u"?function(e){return RA.resolve(null).then(e).catch(hC)}:wA,Ay=null,Er=0,xu=1,MA=2,CA=3,aa=4,oa=new Map,DA=new Set,Lo=Ie.d;Ie.d={f:function(){var e=Lo.f(),t=Zr();return e||t},r:function(e){var t=se(e);t!==null&&t.tag===5&&t.type==="form"?X0(t):Lo.r(e)},D:function(e){Lo.D(e),BS("dns-prefetch",e,null)},C:function(e,t){Lo.C(e,t),BS("preconnect",e,t)},L:function(e,t,n){Lo.L(e,t,n);var a=Vs;if(a&&e&&t){var r='link[rel="preload"][as="'+ze(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+ze(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+ze(n.imageSizes)+'"]')):r+='[href="'+ze(e)+'"]';var s=r;switch(t){case"style":s=Jr(e);break;case"script":s=Kr(e)}oa.has(s)||(e=Be({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),oa.set(s,e),a.querySelector(r)!==null||t==="style"&&a.querySelector(Ol(s))||t==="script"&&a.querySelector(_l(s))||(t=a.createElement("link"),Zt(t,"link",e),Se(t),a.head.appendChild(t)))}},m:function(e,t){Lo.m(e,t);var n=Vs;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+ze(a)+'"][href="'+ze(e)+'"]',s=r;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Kr(e)}if(!oa.has(s)&&(e=Be({rel:"modulepreload",href:e},t),oa.set(s,e),n.querySelector(r)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(_l(s)))return}a=n.createElement("link"),Zt(a,"link",e),Se(a),n.head.appendChild(a)}}},X:function(e,t){Lo.X(e,t);var n=Vs;if(n&&e){var a=_e(n).hoistableScripts,r=Kr(e),s=a.get(r);s||(s=n.querySelector(_l(r)),s||(e=Be({src:e,async:!0},t),(t=oa.get(r))&&Pp(e,t),s=n.createElement("script"),Se(s),Zt(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(r,s))}},S:function(e,t,n){Lo.S(e,t,n);var a=Vs;if(a&&e){var r=_e(a).hoistableStyles,s=Jr(e);t=t||"default";var c=r.get(s);if(!c){var d={loading:Er,preload:null};if(c=a.querySelector(Ol(s)))d.loading=xu|aa;else{e=Be({rel:"stylesheet",href:e,"data-precedence":t},n),(n=oa.get(s))&&Gp(e,n);var g=c=a.createElement("link");Se(g),Zt(g,"link",e),g._p=new Promise(function(T,z){g.onload=T,g.onerror=z}),g.addEventListener("load",function(){d.loading|=xu}),g.addEventListener("error",function(){d.loading|=MA}),d.loading|=aa,Zc(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:d},r.set(s,c)}}},M:function(e,t){Lo.M(e,t);var n=Vs;if(n&&e){var a=_e(n).hoistableScripts,r=Kr(e),s=a.get(r);s||(s=n.querySelector(_l(r)),s||(e=Be({src:e,async:!0,type:"module"},t),(t=oa.get(r))&&Pp(e,t),s=n.createElement("script"),Se(s),Zt(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(r,s))}}};var Vs=typeof document>"u"?null:document,td=null,jO=6e4,zO=800,NO=500,Ey=0,xy=null,nd=null,xr=ZC,wu={$$typeof:Ia,Provider:null,Consumer:null,_currentValue:xr,_currentValue2:xr,_threadCount:0},OA="%c%s%c",_A="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",jA="",ad=" ",UO=Function.prototype.bind,zA=!1,NA=null,UA=null,VA=null,kA=null,LA=null,BA=null,HA=null,YA=null,qA=null,GA=null;NA=function(e,t,n,a){t=o(e,t),t!==null&&(n=i(t.memoizedState,n,0,a),t.memoizedState=n,t.baseState=n,e.memoizedProps=Be({},e.memoizedProps),n=tn(e,2),n!==null&&yt(n,e,2))},UA=function(e,t,n){t=o(e,t),t!==null&&(n=f(t.memoizedState,n,0),t.memoizedState=n,t.baseState=n,e.memoizedProps=Be({},e.memoizedProps),n=tn(e,2),n!==null&&yt(n,e,2))},VA=function(e,t,n,a){t=o(e,t),t!==null&&(n=l(t.memoizedState,n,a),t.memoizedState=n,t.baseState=n,e.memoizedProps=Be({},e.memoizedProps),n=tn(e,2),n!==null&&yt(n,e,2))},kA=function(e,t,n){e.pendingProps=i(e.memoizedProps,t,0,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=tn(e,2),t!==null&&yt(t,e,2)},LA=function(e,t){e.pendingProps=f(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=tn(e,2),t!==null&&yt(t,e,2)},BA=function(e,t,n){e.pendingProps=l(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=tn(e,2),t!==null&&yt(t,e,2)},HA=function(e){var t=tn(e,2);t!==null&&yt(t,e,2)},YA=function(e){var t=Li(),n=tn(e,t);n!==null&&yt(n,e,t)},qA=function(e){h=e},GA=function(e){p=e};var od=!0,id=null,wy=!1,Ci=null,Di=null,Oi=null,Ru=new Map,Mu=new Map,_i=[],VO="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(" "),rd=null;if(Wc.prototype.render=Fp.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()."):U(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."):typeof n[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),n=e;var a=t.current,r=Un(a);$p(a,r,n,t,null,null)},Wc.prototype.unmount=Fp.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;(Qe&(Vt|qn))!==$t&&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."),$p(e.current,2,null,e,null,null),Zr(),t[li]=null}},Wc.prototype.unstable_scheduleHydration=function(e){if(e){var t=fa();e={blockedOn:null,target:e,priority:t};for(var n=0;n<_i.length&&t!==0&&t<_i[n].priority;n++);_i.splice(n,0,e),n===0&&WS(e)}},function(){var e=Jp.version;if(e!=="19.2.5")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
269
|
+
- react: `+(e+`
|
|
270
|
+
- react-dom: 19.2.5
|
|
271
|
+
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"),Ie.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=ae(t),e=e!==null?re(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:X,reconcilerVersion:"19.2.5"};return e.overrideHookState=NA,e.overrideHookStateDeletePath=UA,e.overrideHookStateRenamePath=VA,e.overrideProps=kA,e.overridePropsDeletePath=LA,e.overridePropsRenamePath=BA,e.scheduleUpdate=HA,e.scheduleRetry=YA,e.setErrorHandler=qA,e.setSuspenseHandler=GA,e.scheduleRefresh=R,e.scheduleRoot=x,e.setRefreshHandler=L,e.getCurrentFiber=BC,Fs(e)}()&&eo&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var PA=window.location.protocol;/^(https?|file):$/.test(PA)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(PA==="file:"?`
|
|
272
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Cu.createRoot=function(e,t){if(!U(e))throw Error("Target container is not a DOM element.");a1(e);var n=!1,a="",r=eb,s=tb,c=nb;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Za&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
273
|
+
|
|
274
|
+
let root = createRoot(domContainer);
|
|
275
|
+
root.render(<App />);`),t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=XS(e,1,!1,null,null,n,a,null,r,s,c,n1),e[li]=t.current,_p(e),new Fp(t)},Cu.hydrateRoot=function(e,t,n){if(!U(e))throw Error("Target container is not a DOM element.");a1(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var a=!1,r="",s=eb,c=tb,d=nb,g=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(d=n.onRecoverableError),n.formState!==void 0&&(g=n.formState)),t=XS(e,1,!0,t,n??null,a,r,g,s,c,d,n1),t.context=QS(null),n=t.current,a=Un(n),a=_a(a),r=Jo(a),r.callback=null,Ko(n,r,a),Ua(a,"hydrateRoot()",null),n=a,t.current.lanes=n,Cn(t,n),Xa(t),e[li]=t.current,_p(e),new Wc(t)},Cu.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),Cu}var eE;function $O(){return eE||(eE=1,Cy.exports=PO()),Cy.exports}var Yx=$O();const XO=.25,QO=.08,ZO=3e3,qx=3e3;function Bd(o,i){var m,b,A,S;const l=[0];for(let v=1;v<o.length;v++){const y=l[v-1],x=o[v].delayMs,R=((m=i==null?void 0:i.steps[v-1])==null?void 0:m.durationMs)??0;l.push(y+Math.max(x,R))}const u=l[l.length-1]??0,f=((b=i==null?void 0:i.steps[o.length-1])==null?void 0:b.durationMs)??0,p=((S=(A=o[o.length-1])==null?void 0:A.card)==null?void 0:S.durationMs)??qx,h=u+Math.max(p,f);return{stepStartTimesMs:l,totalDurationMs:h}}function IO(o,i,l,u){const f=l==null?void 0:l.intro,p=l==null?void 0:l.outro;if(!f&&!p)return{steps:o,narrationManifest:i,presenterManifest:u};const h=[...o];let m=i?[...i.steps]:void 0,b=u?[...u.steps]:void 0;if(f&&h.length>0){const A=f.durationMs??ZO,S=h[0];h[0]={...S,delayMs:Math.max(S.delayMs,A)},h.unshift({delayMs:0,data:void 0,card:{kind:"intro",...tE(f)}}),m==null||m.unshift(null),b==null||b.unshift(null)}return p&&(h.push({delayMs:qx,data:void 0,card:{kind:"outro",...tE(p)},interactions:[{atPercent:0,type:"clear_cursor"},{atPercent:0,type:"viewport_transition",viewportReset:!0}]}),m==null||m.push(null),b==null||b.push(null)),{steps:h,narrationManifest:m?{steps:m}:void 0,presenterManifest:b?{steps:b}:void 0}}function tE(o){const i={title:o.title};return o.subtitle!==void 0&&(i.subtitle=o.subtitle),o.logoSrc!==void 0&&(i.logoSrc=o.logoSrc),o.ctaText!==void 0&&(i.ctaText=o.ctaText),o.durationMs!==void 0&&(i.durationMs=o.durationMs),i}function FO(o,i){if(!o)return[];const l=[];for(let u=0;u<i.stepStartTimesMs.length;u++){const f=o.steps[u];f&&l.push({stepIndex:u,startMs:i.stepStartTimesMs[u],clipDurationMs:f.durationMs})}return l}const nE=200;function ng(o,i){if(i<=0||o<=0||o>=i)return 0;const l=o/nE,u=(i-o)/nE;return Math.min(l,u,1)}const Nu={scale:1,x:0,y:0};function Gx(o){return 1-(1-Math.min(1,Math.max(0,o)))**5}function aE(o,i,l){if(l>=1)return{...i};const u=Gx(l);return{scale:o.scale+(i.scale-o.scale)*u,x:o.x+(i.x-o.x)*u,y:o.y+(i.y-o.y)*u}}function jy(o,i){const l=o.getBoundingClientRect(),u=i.getBoundingClientRect(),f=l.width/o.offsetWidth||1;return{x:(u.left-l.left+u.width/2)/f,y:(u.top-l.top+u.height/2)/f}}function ag(o,i,l){for(let u=i.length-1;u>=0;u--)if(o>=i[u])return Math.min(u,l);return 0}const JO=3e3;function Og(o,i,l){var p;const u=(p=i==null?void 0:i.steps[o])==null?void 0:p.durationMs;if(u!=null&&u>0)return u;const f=l[o+1];return f?f.delayMs:JO}const Ke=450,_g=50,jg=1500,_r=200,vd=600,KO=vd;function WO(o,i){const l=o.atPercent*i;switch(o.type){case"click":return[{kind:"cursor-move",offsetMs:l},{kind:"click-dispatch",offsetMs:l+Ke}];case"type":{const u=o.text??"";if(u.length===0)return[];const f=o.typeDelay??_g,p=l+Ke,h=[{kind:"cursor-move",offsetMs:l}];for(let m=0;m<u.length;m++)h.push({kind:"keystroke",offsetMs:p+m*f,charIndex:m});return h}case"hover":{const u=o.hoverDuration??jg;return[{kind:"cursor-move",offsetMs:l},{kind:"hover-enter",offsetMs:l+Ke},{kind:"hover-leave",offsetMs:l+Ke+u}]}case"drag":return[{kind:"cursor-move",offsetMs:l},{kind:"drag-press",offsetMs:l+Ke},{kind:"drag-move",offsetMs:l+Ke+_r},{kind:"drag-release",offsetMs:l+Ke+_r+Ke}];case"viewport_transition":return[{kind:"viewport-transition",offsetMs:l}];default:return[{kind:"simple-dispatch",offsetMs:l}]}}const e_={"click-dispatch":"click","drag-press":"click","drag-release":"click",keystroke:"keystroke"};function t_(o,i){var u;const l=[];for(let f=0;f<o.length;f++){const p=(u=o[f])==null?void 0:u.interactions;if(!p||p.length===0)continue;const h=Og(f,i,o),m=[];for(const b of p)for(const A of WO(b,h)){const S=e_[A.kind];S&&m.push({stepIndex:f,offsetMs:A.offsetMs,sound:S})}m.sort((b,A)=>b.offsetMs-A.offsetMs),l.push(...m)}return l}const n_=1e3,a_=3e3,ld=300;function o_(o,i,l){var h;const{stepStartTimesMs:u,totalDurationMs:f}=Bd(o,i),p=[];if(i)for(let m=0;m<o.length;m++){const b=((h=i.steps[m])==null?void 0:h.durationMs)??0;if(b>0){const A=u[m]??0;p.push({startMs:A,endMs:A+b})}}return{musicVolume:l.musicVolume??XO,duckingVolume:l.duckingVolume??QO,totalDurationMs:f,duckingWindows:p}}function i_(o,i){const{musicVolume:l,duckingVolume:u,totalDurationMs:f,duckingWindows:p}=o;if(i<0||i>f)return 0;let h=0;for(const S of p){const v=S.startMs-ld;if(i<v||i>S.endMs+ld)continue;let y;if(i<S.startMs?y=(i-v)/ld:i<=S.endMs?y=1:y=1-(i-S.endMs)/ld,y>h&&(h=y),h===1)break}const m=l+(u-l)*h,b=Math.min(1,i/n_),A=Math.min(1,(f-i)/a_);return m*b*A}const oE=/^[a-z0-9]+(-[a-z0-9]+)*$/;function r_(o){var u;const i=[],l=new Map;for(let f=0;f<o.length;f++){const p=(u=o[f])==null?void 0:u.shot;if(p===void 0)continue;if(!oE.test(p))throw new Error(`step ${f} declares shot "${p}", which is not kebab-case (expected ${oE}); it becomes a filename and a URL segment`);const h=l.get(p);if(h!==void 0)throw new Error(`steps ${h} and ${f} both declare shot "${p}"; shot names must be unique within a scenario`);l.set(p,f),i.push({name:p,stepIndex:f})}return i}function s_(o,i){return r_(o).map(({name:l,stepIndex:u})=>{const f=i.stepStartTimesMs[u+1];return{name:l,timeMs:(f??i.totalDurationMs)-1,stepIndex:u}})}function zg(o){let i=o.parentElement;for(;i;){const{overflowY:l}=getComputedStyle(i);if(l==="auto"||l==="scroll")return i;i=i.parentElement}return null}function Px(o){const i=zg(o);if(!i)return!1;const l=i.getBoundingClientRect(),u=o.getBoundingClientRect();if(u.top>=l.top&&u.bottom<=l.bottom)return!1;const p=window.scrollX,h=window.scrollY;return o.scrollIntoView({block:"center",behavior:"smooth"}),window.scrollTo(p,h),!0}function l_(o){const i=zg(o);if(!i)return;const l=i.getBoundingClientRect(),u=o.getBoundingClientRect();if(u.top>=l.top&&u.bottom<=l.bottom)return;const p=window.scrollX,h=window.scrollY;o.scrollIntoView({block:"center",behavior:"instant"}),window.scrollTo(p,h)}const u_="data-cursor-target",c_="data-scroll-target";function qs(o){return`[${u_}="${o}"]`}function f_(o){return`[${c_}="${o}"]`}const $x="scenar-embed",Xx=1;function d_(o){return{source:$x,v:Xx,...o}}function h_(o){if(typeof o!="object"||o===null)return!1;const i=o;return i.source===$x&&i.v===Xx}function zy(o){return typeof o=="number"&&Number.isFinite(o)}function p_(o){if(!h_(o))return null;const i=o.type;switch(i){case"play":case"pause":case"prefetch":case"destroy":return{type:i};case"seek":return zy(o.timeMs)?{type:i,timeMs:o.timeMs}:null;case"setMuted":return typeof o.muted=="boolean"?{type:i,muted:o.muted}:null;case"setVolume":return zy(o.volume)?{type:i,volume:o.volume}:null;case"setHostScale":return zy(o.scale)&&o.scale>0?{type:i,scale:o.scale}:null;default:return null}}var Ny={exports:{}},Du={},iE;function m_(){if(iE)return Du;iE=1;/**
|
|
276
|
+
* @license React
|
|
277
|
+
* react-jsx-runtime.development.js
|
|
278
|
+
*
|
|
279
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
280
|
+
*
|
|
281
|
+
* This source code is licensed under the MIT license found in the
|
|
282
|
+
* LICENSE file in the root directory of this source tree.
|
|
283
|
+
*/return function(){function o(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===oe?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case U:return"Fragment";case $:return"Profiler";case B:return"StrictMode";case re:return"Suspense";case ie:return"SuspenseList";case q:return"Activity"}if(typeof C=="object")switch(typeof C.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case L:return"Portal";case F:return C.displayName||"Context";case P:return(C._context.displayName||"Context")+".Consumer";case ae:var ee=C.render;return C=C.displayName,C||(C=ee.displayName||ee.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case J:return ee=C.displayName||null,ee!==null?ee:o(C.type)||"Memo";case I:ee=C._payload,C=C._init;try{return o(C(ee))}catch{}}return null}function i(C){return""+C}function l(C){try{i(C);var ee=!1}catch{ee=!0}if(ee){ee=console;var be=ee.error,me=typeof Symbol=="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return be.call(ee,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",me),i(C)}}function u(C){if(C===U)return"<>";if(typeof C=="object"&&C!==null&&C.$$typeof===I)return"<...>";try{var ee=o(C);return ee?"<"+ee+">":"<...>"}catch{return"<...>"}}function f(){var C=V.A;return C===null?null:C.getOwner()}function p(){return Error("react-stack-top-frame")}function h(C){if(W.call(C,"key")){var ee=Object.getOwnPropertyDescriptor(C,"key").get;if(ee&&ee.isReactWarning)return!1}return C.key!==void 0}function m(C,ee){function be(){K||(K=!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)",ee))}be.isReactWarning=!0,Object.defineProperty(C,"key",{get:be,configurable:!0})}function b(){var C=o(this.type);return H[C]||(H[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function A(C,ee,be,me,We,Wt){var we=be.ref;return C={$$typeof:R,type:C,key:ee,props:be,_owner:me},(we!==void 0?we:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:b}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:We}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Wt}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function S(C,ee,be,me,We,Wt){var we=ee.children;if(we!==void 0)if(me)if(de(we)){for(me=0;me<we.length;me++)v(we[me]);Object.freeze&&Object.freeze(we)}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 v(we);if(W.call(ee,"key")){we=o(C);var ot=Object.keys(ee).filter(function(vn){return vn!=="key"});me=0<ot.length?"{key: someKey, "+ot.join(": ..., ")+": ...}":"{key: someKey}",pe[we+me]||(ot=0<ot.length?"{"+ot.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
284
|
+
let props = %s;
|
|
285
|
+
<%s {...props} />
|
|
286
|
+
React keys must be passed directly to JSX without using spread:
|
|
287
|
+
let props = %s;
|
|
288
|
+
<%s key={someKey} {...props} />`,me,we,ot,we),pe[we+me]=!0)}if(we=null,be!==void 0&&(l(be),we=""+be),h(ee)&&(l(ee.key),we=""+ee.key),"key"in ee){be={};for(var jt in ee)jt!=="key"&&(be[jt]=ee[jt])}else be=ee;return we&&m(be,typeof C=="function"?C.displayName||C.name||"Unknown":C),A(C,we,be,f(),We,Wt)}function v(C){y(C)?C._store&&(C._store.validated=1):typeof C=="object"&&C!==null&&C.$$typeof===I&&(C._payload.status==="fulfilled"?y(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function y(C){return typeof C=="object"&&C!==null&&C.$$typeof===R}var x=qu(),R=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),F=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),oe=Symbol.for("react.client.reference"),V=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=Object.prototype.hasOwnProperty,de=Array.isArray,Ee=console.createTask?console.createTask:function(){return null};x={react_stack_bottom_frame:function(C){return C()}};var K,H={},Q=x.react_stack_bottom_frame.bind(x,p)(),ce=Ee(u(p)),pe={};Du.Fragment=U,Du.jsx=function(C,ee,be){var me=1e4>V.recentlyCreatedOwnerStacks++;return S(C,ee,be,!1,me?Error("react-stack-top-frame"):Q,me?Ee(u(C)):ce)},Du.jsxs=function(C,ee,be){var me=1e4>V.recentlyCreatedOwnerStacks++;return S(C,ee,be,!0,me?Error("react-stack-top-frame"):Q,me?Ee(u(C)):ce)}}(),Du}var rE;function y_(){return rE||(rE=1,Ny.exports=m_()),Ny.exports}var O=y_();const Qx=w.createContext(null);function g_({currentTimeMs:o,stepStartTimesMs:i,children:l}){return O.jsx(Qx.Provider,{value:{currentTimeMs:o,stepStartTimesMs:i},children:l})}function Gu(){return w.useContext(Qx)}const v_={isVideoExport:!1,hideControls:!1,initialMuted:!0},Zx=w.createContext(v_);function b_({children:o,presenterMedia:i}){const l=w.useMemo(()=>({isVideoExport:!0,hideControls:!0,initialMuted:!1,presenterMedia:i}),[i]);return O.jsx(Zx.Provider,{value:l,children:o})}function Hd(){return w.useContext(Zx)}var ju=Hx();const Ng=w.createContext({});function Ug(o){const i=w.useRef(null);return i.current===null&&(i.current=o()),i.current}const S_=typeof window<"u",Ix=S_?w.useLayoutEffect:w.useEffect,Yd=w.createContext(null);function Vg(o,i){o.indexOf(i)===-1&&o.push(i)}function Cd(o,i){const l=o.indexOf(i);l>-1&&o.splice(l,1)}const lo=(o,i,l)=>l>i?i:l<o?o:l;function og(o,i){return i?`${o}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${i}`:o}let Xs=()=>{},Yo=()=>{};typeof process<"u"&&(Xs=(o,i,l)=>{!o&&typeof console<"u"&&console.warn(og(i,l))},Yo=(o,i,l)=>{if(!o)throw new Error(og(i,l))});const Ui={},Fx=o=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(o);function Jx(o){return typeof o=="object"&&o!==null}const Kx=o=>/^0[^.\s]+$/u.test(o);function Wx(o){let i;return()=>(i===void 0&&(i=o()),i)}const ra=o=>o,T_=(o,i)=>l=>i(o(l)),Pu=(...o)=>o.reduce(T_),Lu=(o,i,l)=>{const u=i-o;return u===0?1:(l-o)/u};class kg{constructor(){this.subscriptions=[]}add(i){return Vg(this.subscriptions,i),()=>Cd(this.subscriptions,i)}notify(i,l,u){const f=this.subscriptions.length;if(f)if(f===1)this.subscriptions[0](i,l,u);else for(let p=0;p<f;p++){const h=this.subscriptions[p];h&&h(i,l,u)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Rn=o=>o*1e3,ia=o=>o/1e3;function ew(o,i){return i?o*(1e3/i):0}const sE=new Set;function qd(o,i,l){o||sE.has(i)||(console.warn(og(i,l)),sE.add(i))}const tw=(o,i,l)=>(((1-3*l+3*i)*o+(3*l-6*i))*o+3*i)*o,A_=1e-7,E_=12;function x_(o,i,l,u,f){let p,h,m=0;do h=i+(l-i)/2,p=tw(h,u,f)-o,p>0?l=h:i=h;while(Math.abs(p)>A_&&++m<E_);return h}function $u(o,i,l,u){if(o===i&&l===u)return ra;const f=p=>x_(p,0,1,o,l);return p=>p===0||p===1?p:tw(f(p),i,u)}const nw=o=>i=>i<=.5?o(2*i)/2:(2-o(2*(1-i)))/2,aw=o=>i=>1-o(1-i),ow=$u(.33,1.53,.69,.99),Lg=aw(ow),iw=nw(Lg),rw=o=>o>=1?1:(o*=2)<1?.5*Lg(o):.5*(2-Math.pow(2,-10*(o-1))),Bg=o=>1-Math.sin(Math.acos(o)),sw=aw(Bg),lw=nw(Bg),w_=$u(.42,0,1,1),R_=$u(0,0,.58,1),uw=$u(.42,0,.58,1),M_=o=>Array.isArray(o)&&typeof o[0]!="number",cw=o=>Array.isArray(o)&&typeof o[0]=="number",lE={linear:ra,easeIn:w_,easeInOut:uw,easeOut:R_,circIn:Bg,circInOut:lw,circOut:sw,backIn:Lg,backInOut:iw,backOut:ow,anticipate:rw},C_=o=>typeof o=="string",uE=o=>{if(cw(o)){Yo(o.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[i,l,u,f]=o;return $u(i,l,u,f)}else if(C_(o))return Yo(lE[o]!==void 0,`Invalid easing type '${o}'`,"invalid-easing-type"),lE[o];return o},ud=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function D_(o,i){let l=new Set,u=new Set,f=!1,p=!1;const h=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function b(S){h.has(S)&&(A.schedule(S),o()),S(m)}const A={schedule:(S,v=!1,y=!1)=>{const R=y&&f?l:u;return v&&h.add(S),R.add(S),S},cancel:S=>{u.delete(S),h.delete(S)},process:S=>{if(m=S,f){p=!0;return}f=!0;const v=l;l=u,u=v,l.forEach(b),l.clear(),f=!1,p&&(p=!1,A.process(S))}};return A}const O_=40;function fw(o,i){let l=!1,u=!0;const f={delta:0,timestamp:0,isProcessing:!1},p=()=>l=!0,h=ud.reduce((P,F)=>(P[F]=D_(p),P),{}),{setup:m,read:b,resolveKeyframes:A,preUpdate:S,update:v,preRender:y,render:x,postRender:R}=h,L=()=>{const P=Ui.useManualTiming,F=P?f.timestamp:performance.now();l=!1,P||(f.delta=u?1e3/60:Math.max(Math.min(F-f.timestamp,O_),1)),f.timestamp=F,f.isProcessing=!0,m.process(f),b.process(f),A.process(f),S.process(f),v.process(f),y.process(f),x.process(f),R.process(f),f.isProcessing=!1,l&&i&&(u=!1,o(L))},U=()=>{l=!0,u=!0,f.isProcessing||o(L)};return{schedule:ud.reduce((P,F)=>{const ae=h[F];return P[F]=(re,ie=!1,J=!1)=>(l||U(),ae.schedule(re,ie,J)),P},{}),cancel:P=>{for(let F=0;F<ud.length;F++)h[ud[F]].cancel(P)},state:f,steps:h}}const{schedule:st,cancel:Vi,state:Jt,steps:Uy}=fw(typeof requestAnimationFrame<"u"?requestAnimationFrame:ra,!0);let bd;function __(){bd=void 0}const yn={now:()=>(bd===void 0&&yn.set(Jt.isProcessing||Ui.useManualTiming?Jt.timestamp:performance.now()),bd),set:o=>{bd=o,queueMicrotask(__)}},dw=o=>i=>typeof i=="string"&&i.startsWith(o),hw=dw("--"),j_=dw("var(--"),Hg=o=>j_(o)?z_.test(o.split("/*")[0].trim()):!1,z_=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function cE(o){return typeof o!="string"?!1:o.split("/*")[0].includes("var(--")}const Qs={test:o=>typeof o=="number",parse:parseFloat,transform:o=>o},Bu={...Qs,transform:o=>lo(0,1,o)},cd={...Qs,default:1},Uu=o=>Math.round(o*1e5)/1e5,Yg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function N_(o){return o==null}const U_=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,qg=(o,i)=>l=>!!(typeof l=="string"&&U_.test(l)&&l.startsWith(o)||i&&!N_(l)&&Object.prototype.hasOwnProperty.call(l,i)),pw=(o,i,l)=>u=>{if(typeof u!="string")return u;const[f,p,h,m]=u.match(Yg);return{[o]:parseFloat(f),[i]:parseFloat(p),[l]:parseFloat(h),alpha:m!==void 0?parseFloat(m):1}},V_=o=>lo(0,255,o),Vy={...Qs,transform:o=>Math.round(V_(o))},Mr={test:qg("rgb","red"),parse:pw("red","green","blue"),transform:({red:o,green:i,blue:l,alpha:u=1})=>"rgba("+Vy.transform(o)+", "+Vy.transform(i)+", "+Vy.transform(l)+", "+Uu(Bu.transform(u))+")"};function k_(o){let i="",l="",u="",f="";return o.length>5?(i=o.substring(1,3),l=o.substring(3,5),u=o.substring(5,7),f=o.substring(7,9)):(i=o.substring(1,2),l=o.substring(2,3),u=o.substring(3,4),f=o.substring(4,5),i+=i,l+=l,u+=u,f+=f),{red:parseInt(i,16),green:parseInt(l,16),blue:parseInt(u,16),alpha:f?parseInt(f,16)/255:1}}const ig={test:qg("#"),parse:k_,transform:Mr.transform},Xu=o=>({test:i=>typeof i=="string"&&i.endsWith(o)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${o}`}),ji=Xu("deg"),so=Xu("%"),ve=Xu("px"),L_=Xu("vh"),B_=Xu("vw"),fE={...so,parse:o=>so.parse(o)/100,transform:o=>so.transform(o*100)},Ls={test:qg("hsl","hue"),parse:pw("hue","saturation","lightness"),transform:({hue:o,saturation:i,lightness:l,alpha:u=1})=>"hsla("+Math.round(o)+", "+so.transform(Uu(i))+", "+so.transform(Uu(l))+", "+Uu(Bu.transform(u))+")"},_t={test:o=>Mr.test(o)||ig.test(o)||Ls.test(o),parse:o=>Mr.test(o)?Mr.parse(o):Ls.test(o)?Ls.parse(o):ig.parse(o),transform:o=>typeof o=="string"?o:o.hasOwnProperty("red")?Mr.transform(o):Ls.transform(o),getAnimatableNone:o=>{const i=_t.parse(o);return i.alpha=0,_t.transform(i)}},H_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Y_(o){var i,l;return isNaN(o)&&typeof o=="string"&&(((i=o.match(Yg))==null?void 0:i.length)||0)+(((l=o.match(H_))==null?void 0:l.length)||0)>0}const mw="number",yw="color",q_="var",G_="var(",dE="${}",P_=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Gs(o){const i=o.toString(),l=[],u={color:[],number:[],var:[]},f=[];let p=0;const m=i.replace(P_,b=>(_t.test(b)?(u.color.push(p),f.push(yw),l.push(_t.parse(b))):b.startsWith(G_)?(u.var.push(p),f.push(q_),l.push(b)):(u.number.push(p),f.push(mw),l.push(parseFloat(b))),++p,dE)).split(dE);return{values:l,split:m,indexes:u,types:f}}function $_(o){return Gs(o).values}function gw({split:o,types:i}){const l=o.length;return u=>{let f="";for(let p=0;p<l;p++)if(f+=o[p],u[p]!==void 0){const h=i[p];h===mw?f+=Uu(u[p]):h===yw?f+=_t.transform(u[p]):f+=u[p]}return f}}function X_(o){return gw(Gs(o))}const Q_=o=>typeof o=="number"?0:_t.test(o)?_t.getAnimatableNone(o):o,Z_=(o,i)=>typeof o=="number"?i!=null&&i.trim().endsWith("/")?o:0:Q_(o);function I_(o){const i=Gs(o);return gw(i)(i.values.map((u,f)=>Z_(u,i.split[f])))}const Ma={test:Y_,parse:$_,createTransformer:X_,getAnimatableNone:I_};function ky(o,i,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?o+(i-o)*6*l:l<1/2?i:l<2/3?o+(i-o)*(2/3-l)*6:o}function F_({hue:o,saturation:i,lightness:l,alpha:u}){o/=360,i/=100,l/=100;let f=0,p=0,h=0;if(!i)f=p=h=l;else{const m=l<.5?l*(1+i):l+i-l*i,b=2*l-m;f=ky(b,m,o+1/3),p=ky(b,m,o),h=ky(b,m,o-1/3)}return{red:Math.round(f*255),green:Math.round(p*255),blue:Math.round(h*255),alpha:u}}function Dd(o,i){return l=>l>0?i:o}const ht=(o,i,l)=>o+(i-o)*l,Ly=(o,i,l)=>{const u=o*o,f=l*(i*i-u)+u;return f<0?0:Math.sqrt(f)},J_=[ig,Mr,Ls],K_=o=>J_.find(i=>i.test(o));function hE(o){const i=K_(o);if(Xs(!!i,`'${o}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!i)return!1;let l=i.parse(o);return i===Ls&&(l=F_(l)),l}const pE=(o,i)=>{const l=hE(o),u=hE(i);if(!l||!u)return Dd(o,i);const f={...l};return p=>(f.red=Ly(l.red,u.red,p),f.green=Ly(l.green,u.green,p),f.blue=Ly(l.blue,u.blue,p),f.alpha=ht(l.alpha,u.alpha,p),Mr.transform(f))},rg=new Set(["none","hidden"]);function W_(o,i){return rg.has(o)?l=>l<=0?o:i:l=>l>=1?i:o}function ej(o,i){return l=>ht(o,i,l)}function Gg(o){return typeof o=="number"?ej:typeof o=="string"?Hg(o)?Dd:_t.test(o)?pE:aj:Array.isArray(o)?vw:typeof o=="object"?_t.test(o)?pE:tj:Dd}function vw(o,i){const l=[...o],u=l.length,f=o.map((p,h)=>Gg(p)(p,i[h]));return p=>{for(let h=0;h<u;h++)l[h]=f[h](p);return l}}function tj(o,i){const l={...o,...i},u={};for(const f in l)o[f]!==void 0&&i[f]!==void 0&&(u[f]=Gg(o[f])(o[f],i[f]));return f=>{for(const p in u)l[p]=u[p](f);return l}}function nj(o,i){const l=[],u={color:0,var:0,number:0};for(let f=0;f<i.values.length;f++){const p=i.types[f],h=o.indexes[p][u[p]],m=o.values[h]??0;l[f]=m,u[p]++}return l}const aj=(o,i)=>{const l=Ma.createTransformer(i),u=Gs(o),f=Gs(i);return u.indexes.var.length===f.indexes.var.length&&u.indexes.color.length===f.indexes.color.length&&u.indexes.number.length>=f.indexes.number.length?rg.has(o)&&!f.values.length||rg.has(i)&&!u.values.length?W_(o,i):Pu(vw(nj(u,f),f.values),l):(Xs(!0,`Complex values '${o}' and '${i}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Dd(o,i))};function bw(o,i,l){return typeof o=="number"&&typeof i=="number"&&typeof l=="number"?ht(o,i,l):Gg(o)(o,i)}const oj=o=>{const i=({timestamp:l})=>o(l);return{start:(l=!0)=>st.update(i,l),stop:()=>Vi(i),now:()=>Jt.isProcessing?Jt.timestamp:yn.now()}},Sw=(o,i,l=10)=>{let u="";const f=Math.max(Math.round(i/l),2);for(let p=0;p<f;p++)u+=Math.round(o(p/(f-1))*1e4)/1e4+", ";return`linear(${u.substring(0,u.length-2)})`},Od=2e4;function Pg(o){let i=0;const l=50;let u=o.next(i);for(;!u.done&&i<Od;)i+=l,u=o.next(i);return i>=Od?1/0:i}function ij(o,i=100,l){const u=l({...o,keyframes:[0,i]}),f=Math.min(Pg(u),Od);return{type:"keyframes",ease:p=>u.next(f*p).value/i,duration:ia(f)}}const vt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function sg(o,i){return o*Math.sqrt(1-i*i)}const rj=12;function sj(o,i,l){let u=l;for(let f=1;f<rj;f++)u=u-o(u)/i(u);return u}const By=.001;function lj({duration:o=vt.duration,bounce:i=vt.bounce,velocity:l=vt.velocity,mass:u=vt.mass}){let f,p;Xs(o<=Rn(vt.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let h=1-i;h=lo(vt.minDamping,vt.maxDamping,h),o=lo(vt.minDuration,vt.maxDuration,ia(o)),h<1?(f=A=>{const S=A*h,v=S*o,y=S-l,x=sg(A,h),R=Math.exp(-v);return By-y/x*R},p=A=>{const v=A*h*o,y=v*l+l,x=Math.pow(h,2)*Math.pow(A,2)*o,R=Math.exp(-v),L=sg(Math.pow(A,2),h);return(-f(A)+By>0?-1:1)*((y-x)*R)/L}):(f=A=>{const S=Math.exp(-A*o),v=(A-l)*o+1;return-By+S*v},p=A=>{const S=Math.exp(-A*o),v=(l-A)*(o*o);return S*v});const m=5/o,b=sj(f,p,m);if(o=Rn(o),isNaN(b))return{stiffness:vt.stiffness,damping:vt.damping,duration:o};{const A=Math.pow(b,2)*u;return{stiffness:A,damping:h*2*Math.sqrt(u*A),duration:o}}}const uj=["duration","bounce"],cj=["stiffness","damping","mass"];function mE(o,i){return i.some(l=>o[l]!==void 0)}function fj(o){let i={velocity:vt.velocity,stiffness:vt.stiffness,damping:vt.damping,mass:vt.mass,isResolvedFromDuration:!1,...o};if(!mE(o,cj)&&mE(o,uj))if(i.velocity=0,o.visualDuration){const l=o.visualDuration,u=2*Math.PI/(l*1.2),f=u*u,p=2*lo(.05,1,1-(o.bounce||0))*Math.sqrt(f);i={...i,mass:vt.mass,stiffness:f,damping:p}}else{const l=lj({...o,velocity:0});i={...i,...l,mass:vt.mass},i.isResolvedFromDuration=!0}return i}function _d(o=vt.visualDuration,i=vt.bounce){const l=typeof o!="object"?{visualDuration:o,keyframes:[0,1],bounce:i}:o;let{restSpeed:u,restDelta:f}=l;const p=l.keyframes[0],h=l.keyframes[l.keyframes.length-1],m={done:!1,value:p},{stiffness:b,damping:A,mass:S,duration:v,velocity:y,isResolvedFromDuration:x}=fj({...l,velocity:-ia(l.velocity||0)}),R=y||0,L=A/(2*Math.sqrt(b*S)),U=h-p,B=ia(Math.sqrt(b/S)),$=Math.abs(U)<5;u||(u=$?vt.restSpeed.granular:vt.restSpeed.default),f||(f=$?vt.restDelta.granular:vt.restDelta.default);let P,F,ae,re,ie,J;if(L<1)ae=sg(B,L),re=(R+L*B*U)/ae,P=q=>{const oe=Math.exp(-L*B*q);return h-oe*(re*Math.sin(ae*q)+U*Math.cos(ae*q))},ie=L*B*re+U*ae,J=L*B*U-re*ae,F=q=>Math.exp(-L*B*q)*(ie*Math.sin(ae*q)+J*Math.cos(ae*q));else if(L===1){P=oe=>h-Math.exp(-B*oe)*(U+(R+B*U)*oe);const q=R+B*U;F=oe=>Math.exp(-B*oe)*(B*q*oe-R)}else{const q=B*Math.sqrt(L*L-1);P=de=>{const Ee=Math.exp(-L*B*de),K=Math.min(q*de,300);return h-Ee*((R+L*B*U)*Math.sinh(K)+q*U*Math.cosh(K))/q};const oe=(R+L*B*U)/q,V=L*B*oe-U*q,W=L*B*U-oe*q;F=de=>{const Ee=Math.exp(-L*B*de),K=Math.min(q*de,300);return Ee*(V*Math.sinh(K)+W*Math.cosh(K))}}const I={calculatedDuration:x&&v||null,velocity:q=>Rn(F(q)),next:q=>{if(!x&&L<1){const V=Math.exp(-L*B*q),W=Math.sin(ae*q),de=Math.cos(ae*q),Ee=h-V*(re*W+U*de),K=Rn(V*(ie*W+J*de));return m.done=Math.abs(K)<=u&&Math.abs(h-Ee)<=f,m.value=m.done?h:Ee,m}const oe=P(q);if(x)m.done=q>=v;else{const V=Rn(F(q));m.done=Math.abs(V)<=u&&Math.abs(h-oe)<=f}return m.value=m.done?h:oe,m},toString:()=>{const q=Math.min(Pg(I),Od),oe=Sw(V=>I.next(q*V).value,q,30);return q+"ms "+oe},toTransition:()=>{}};return I}_d.applyToOptions=o=>{const i=ij(o,100,_d);return o.ease=i.ease,o.duration=Rn(i.duration),o.type="keyframes",o};const dj=5;function Tw(o,i,l){const u=Math.max(i-dj,0);return ew(l-o(u),i-u)}function lg({keyframes:o,velocity:i=0,power:l=.8,timeConstant:u=325,bounceDamping:f=10,bounceStiffness:p=500,modifyTarget:h,min:m,max:b,restDelta:A=.5,restSpeed:S}){const v=o[0],y={done:!1,value:v},x=J=>m!==void 0&&J<m||b!==void 0&&J>b,R=J=>m===void 0?b:b===void 0||Math.abs(m-J)<Math.abs(b-J)?m:b;let L=l*i;const U=v+L,B=h===void 0?U:h(U);B!==U&&(L=B-v);const $=J=>-L*Math.exp(-J/u),P=J=>B+$(J),F=J=>{const I=$(J),q=P(J);y.done=Math.abs(I)<=A,y.value=y.done?B:q};let ae,re;const ie=J=>{x(y.value)&&(ae=J,re=_d({keyframes:[y.value,R(y.value)],velocity:Tw(P,J,y.value),damping:f,stiffness:p,restDelta:A,restSpeed:S}))};return ie(0),{calculatedDuration:null,next:J=>{let I=!1;return!re&&ae===void 0&&(I=!0,F(J),ie(J)),ae!==void 0&&J>=ae?re.next(J-ae):(!I&&F(J),y)}}}function hj(o,i,l){const u=[],f=l||Ui.mix||bw,p=o.length-1;for(let h=0;h<p;h++){let m=f(o[h],o[h+1]);if(i){const b=Array.isArray(i)?i[h]||ra:i;m=Pu(b,m)}u.push(m)}return u}function pj(o,i,{clamp:l=!0,ease:u,mixer:f}={}){const p=o.length;if(Yo(p===i.length,"Both input and output ranges must be the same length","range-length"),p===1)return()=>i[0];if(p===2&&i[0]===i[1])return()=>i[1];const h=o[0]===o[1];o[0]>o[p-1]&&(o=[...o].reverse(),i=[...i].reverse());const m=hj(i,u,f),b=m.length,A=S=>{if(h&&S<o[0])return i[0];let v=0;if(b>1)for(;v<o.length-2&&!(S<o[v+1]);v++);const y=Lu(o[v],o[v+1],S);return m[v](y)};return l?S=>A(lo(o[0],o[p-1],S)):A}function mj(o,i){const l=o[o.length-1];for(let u=1;u<=i;u++){const f=Lu(0,i,u);o.push(ht(l,1,f))}}function yj(o){const i=[0];return mj(i,o.length-1),i}function gj(o,i){return o.map(l=>l*i)}function vj(o,i){return o.map(()=>i||uw).splice(0,o.length-1)}function Bs({duration:o=300,keyframes:i,times:l,ease:u="easeInOut"}){const f=M_(u)?u.map(uE):uE(u),p={done:!1,value:i[0]},h=gj(l&&l.length===i.length?l:yj(i),o),m=pj(h,i,{ease:Array.isArray(f)?f:vj(i,f)});return{calculatedDuration:o,next:b=>(p.value=m(b),p.done=b>=o,p)}}const bj=o=>o!==null;function Gd(o,{repeat:i,repeatType:l="loop"},u,f=1){const p=o.filter(bj),m=f<0||i&&l!=="loop"&&i%2===1?0:p.length-1;return!m||u===void 0?p[m]:u}const Sj={decay:lg,inertia:lg,tween:Bs,keyframes:Bs,spring:_d};function Aw(o){typeof o.type=="string"&&(o.type=Sj[o.type])}class $g{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,l){return this.finished.then(i,l)}}const Tj=o=>o/100;class jd extends $g{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var u,f;const{motionValue:l}=this.options;l&&l.updatedAt!==yn.now()&&this.tick(yn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(f=(u=this.options).onStop)==null||f.call(u))},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;Aw(i);const{type:l=Bs,repeat:u=0,repeatDelay:f=0,repeatType:p,velocity:h=0}=i;let{keyframes:m}=i;const b=l||Bs;b!==Bs&&Yo(m.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${m}`,"spring-two-frames"),b!==Bs&&typeof m[0]!="number"&&(this.mixKeyframes=Pu(Tj,bw(m[0],m[1])),m=[0,100]);const A=b({...i,keyframes:m});p==="mirror"&&(this.mirroredGenerator=b({...i,keyframes:[...m].reverse(),velocity:-h})),A.calculatedDuration===null&&(A.calculatedDuration=Pg(A));const{calculatedDuration:S}=A;this.calculatedDuration=S,this.resolvedDuration=S+f,this.totalDuration=this.resolvedDuration*(u+1)-f,this.generator=A}updateTime(i){const l=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=l}tick(i,l=!1){const{generator:u,totalDuration:f,mixKeyframes:p,mirroredGenerator:h,resolvedDuration:m,calculatedDuration:b}=this;if(this.startTime===null)return u.next(0);const{delay:A=0,keyframes:S,repeat:v,repeatType:y,repeatDelay:x,type:R,onUpdate:L,finalKeyframe:U}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-f/this.speed,this.startTime)),l?this.currentTime=i:this.updateTime(i);const B=this.currentTime-A*(this.playbackSpeed>=0?1:-1),$=this.playbackSpeed>=0?B<0:B>f;this.currentTime=Math.max(B,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let P=this.currentTime,F=u;if(v){const J=Math.min(this.currentTime,f)/m;let I=Math.floor(J),q=J%1;!q&&J>=1&&(q=1),q===1&&I--,I=Math.min(I,v+1),!!(I%2)&&(y==="reverse"?(q=1-q,x&&(q-=x/m)):y==="mirror"&&(F=h)),P=lo(0,1,q)*m}let ae;$?(this.delayState.value=S[0],ae=this.delayState):ae=F.next(P),p&&!$&&(ae.value=p(ae.value));let{done:re}=ae;!$&&b!==null&&(re=this.playbackSpeed>=0?this.currentTime>=f:this.currentTime<=0);const ie=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&re);return ie&&R!==lg&&(ae.value=Gd(S,this.options,U,this.speed)),L&&L(ae.value),ie&&this.finish(),ae}then(i,l){return this.finished.then(i,l)}get duration(){return ia(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+ia(i)}get time(){return ia(this.currentTime)}set time(i){i=Rn(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=i,this.tick(i))}getGeneratorVelocity(){const i=this.currentTime;if(i<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(i);const l=this.generator.next(i).value;return Tw(u=>this.generator.next(u).value,i,l)}get speed(){return this.playbackSpeed}set speed(i){const l=this.playbackSpeed!==i;l&&this.driver&&this.updateTime(yn.now()),this.playbackSpeed=i,l&&this.driver&&(this.time=ia(this.currentTime))}play(){var f,p;if(this.isStopped)return;const{driver:i=oj,startTime:l}=this.options;this.driver||(this.driver=i(h=>this.tick(h))),(p=(f=this.options).onPlay)==null||p.call(f);const u=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=u):this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime||(this.startTime=l??u),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(yn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var i,l;this.notifyFinished(),this.teardown(),this.state="finished",(l=(i=this.options).onComplete)==null||l.call(i)}cancel(){var i,l;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(l=(i=this.options).onCancel)==null||l.call(i)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){var l;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(l=this.driver)==null||l.stop(),i.observe(this)}}function Aj(o){for(let i=1;i<o.length;i++)o[i]??(o[i]=o[i-1])}const Cr=o=>o*180/Math.PI,ug=o=>{const i=Cr(Math.atan2(o[1],o[0]));return cg(i)},Ej={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:o=>(Math.abs(o[0])+Math.abs(o[3]))/2,rotate:ug,rotateZ:ug,skewX:o=>Cr(Math.atan(o[1])),skewY:o=>Cr(Math.atan(o[2])),skew:o=>(Math.abs(o[1])+Math.abs(o[2]))/2},cg=o=>(o=o%360,o<0&&(o+=360),o),yE=ug,gE=o=>Math.sqrt(o[0]*o[0]+o[1]*o[1]),vE=o=>Math.sqrt(o[4]*o[4]+o[5]*o[5]),xj={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:gE,scaleY:vE,scale:o=>(gE(o)+vE(o))/2,rotateX:o=>cg(Cr(Math.atan2(o[6],o[5]))),rotateY:o=>cg(Cr(Math.atan2(-o[2],o[0]))),rotateZ:yE,rotate:yE,skewX:o=>Cr(Math.atan(o[4])),skewY:o=>Cr(Math.atan(o[1])),skew:o=>(Math.abs(o[1])+Math.abs(o[4]))/2};function fg(o){return o.includes("scale")?1:0}function dg(o,i){if(!o||o==="none")return fg(i);const l=o.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let u,f;if(l)u=xj,f=l;else{const m=o.match(/^matrix\(([-\d.e\s,]+)\)$/u);u=Ej,f=m}if(!f)return fg(i);const p=u[i],h=f[1].split(",").map(Rj);return typeof p=="function"?p(h):h[p]}const wj=(o,i)=>{const{transform:l="none"}=getComputedStyle(o);return dg(l,i)};function Rj(o){return parseFloat(o.trim())}const Zs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Is=new Set(Zs),bE=o=>o===Qs||o===ve,Mj=new Set(["x","y","z"]),Cj=Zs.filter(o=>!Mj.has(o));function Dj(o){const i=[];return Cj.forEach(l=>{const u=o.getValue(l);u!==void 0&&(i.push([l,u.get()]),u.set(l.startsWith("scale")?1:0))}),i}const Ni={width:({x:o},{paddingLeft:i="0",paddingRight:l="0",boxSizing:u})=>{const f=o.max-o.min;return u==="border-box"?f:f-parseFloat(i)-parseFloat(l)},height:({y:o},{paddingTop:i="0",paddingBottom:l="0",boxSizing:u})=>{const f=o.max-o.min;return u==="border-box"?f:f-parseFloat(i)-parseFloat(l)},top:(o,{top:i})=>parseFloat(i),left:(o,{left:i})=>parseFloat(i),bottom:({y:o},{top:i})=>parseFloat(i)+(o.max-o.min),right:({x:o},{left:i})=>parseFloat(i)+(o.max-o.min),x:(o,{transform:i})=>dg(i,"x"),y:(o,{transform:i})=>dg(i,"y")};Ni.translateX=Ni.x;Ni.translateY=Ni.y;const Dr=new Set;let hg=!1,pg=!1,mg=!1;function Ew(){if(pg){const o=Array.from(Dr).filter(u=>u.needsMeasurement),i=new Set(o.map(u=>u.element)),l=new Map;i.forEach(u=>{const f=Dj(u);f.length&&(l.set(u,f),u.render())}),o.forEach(u=>u.measureInitialState()),i.forEach(u=>{u.render();const f=l.get(u);f&&f.forEach(([p,h])=>{var m;(m=u.getValue(p))==null||m.set(h)})}),o.forEach(u=>u.measureEndState()),o.forEach(u=>{u.suspendedScrollY!==void 0&&window.scrollTo(0,u.suspendedScrollY)})}pg=!1,hg=!1,Dr.forEach(o=>o.complete(mg)),Dr.clear()}function xw(){Dr.forEach(o=>{o.readKeyframes(),o.needsMeasurement&&(pg=!0)})}function Oj(){mg=!0,xw(),Ew(),mg=!1}class Xg{constructor(i,l,u,f,p,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=l,this.name=u,this.motionValue=f,this.element=p,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?(Dr.add(this),hg||(hg=!0,st.read(xw),st.resolveKeyframes(Ew))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:l,element:u,motionValue:f}=this;if(i[0]===null){const p=f==null?void 0:f.get(),h=i[i.length-1];if(p!==void 0)i[0]=p;else if(u&&l){const m=u.readValue(l,h);m!=null&&(i[0]=m)}i[0]===void 0&&(i[0]=h),f&&p===void 0&&f.set(i[0])}Aj(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),Dr.delete(this)}cancel(){this.state==="scheduled"&&(Dr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const _j=o=>o.startsWith("--");function ww(o,i,l){_j(i)?o.style.setProperty(i,l):o.style[i]=l}const jj={};function Rw(o,i){const l=Wx(o);return()=>jj[i]??l()}const zj=Rw(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Mw=Rw(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),zu=([o,i,l,u])=>`cubic-bezier(${o}, ${i}, ${l}, ${u})`,SE={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zu([0,.65,.55,1]),circOut:zu([.55,0,1,.45]),backIn:zu([.31,.01,.66,-.59]),backOut:zu([.33,1.53,.69,.99])};function Cw(o,i){if(o)return typeof o=="function"?Mw()?Sw(o,i):"ease-out":cw(o)?zu(o):Array.isArray(o)?o.map(l=>Cw(l,i)||SE.easeOut):SE[o]}function Nj(o,i,l,{delay:u=0,duration:f=300,repeat:p=0,repeatType:h="loop",ease:m="easeOut",times:b}={},A=void 0){const S={[i]:l};b&&(S.offset=b);const v=Cw(m,f);Array.isArray(v)&&(S.easing=v);const y={delay:u,duration:f,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:p+1,direction:h==="reverse"?"alternate":"normal"};return A&&(y.pseudoElement=A),o.animate(S,y)}function Dw(o){return typeof o=="function"&&"applyToOptions"in o}function Uj({type:o,...i}){return Dw(o)&&Mw()?o.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class Ow extends $g{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!i)return;const{element:l,name:u,keyframes:f,pseudoElement:p,allowFlatten:h=!1,finalKeyframe:m,onComplete:b}=i;this.isPseudoElement=!!p,this.allowFlatten=h,this.options=i,Yo(typeof i.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const A=Uj(i);this.animation=Nj(l,u,f,A,p),A.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!p){const S=Gd(f,this.options,m,this.speed);this.updateMotionValue&&this.updateMotionValue(S),ww(l,u,S),this.animation.cancel()}b==null||b(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var i,l;(l=(i=this.animation).finish)==null||l.call(i)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var l,u,f;const i=(l=this.options)==null?void 0:l.element;!this.isPseudoElement&&(i!=null&&i.isConnected)&&((f=(u=this.animation).commitStyles)==null||f.call(u))}get duration(){var l,u;const i=((u=(l=this.animation.effect)==null?void 0:l.getComputedTiming)==null?void 0:u.call(l).duration)||0;return ia(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+ia(i)}get time(){return ia(Number(this.animation.currentTime)||0)}set time(i){const l=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Rn(i),l&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(i){this.manualStartTime=this.animation.startTime=i}attachTimeline({timeline:i,rangeStart:l,rangeEnd:u,observe:f}){var p;return this.allowFlatten&&((p=this.animation.effect)==null||p.updateTiming({easing:"linear"})),this.animation.onfinish=null,i&&zj()?(this.animation.timeline=i,l&&(this.animation.rangeStart=l),u&&(this.animation.rangeEnd=u),ra):f(this)}}const _w={anticipate:rw,backInOut:iw,circInOut:lw};function Vj(o){return o in _w}function kj(o){typeof o.ease=="string"&&Vj(o.ease)&&(o.ease=_w[o.ease])}const Hy=10;class Lj extends Ow{constructor(i){kj(i),Aw(i),super(i),i.startTime!==void 0&&i.autoplay!==!1&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:l,onUpdate:u,onComplete:f,element:p,...h}=this.options;if(!l)return;if(i!==void 0){l.set(i);return}const m=new jd({...h,autoplay:!1}),b=Math.max(Hy,yn.now()-this.startTime),A=lo(0,Hy,b-Hy),S=m.sample(b).value,{name:v}=this.options;p&&v&&ww(p,v,S),l.setWithVelocity(m.sample(Math.max(0,b-A)).value,S,A),m.stop()}}const TE=(o,i)=>i==="zIndex"?!1:!!(typeof o=="number"||Array.isArray(o)||typeof o=="string"&&(Ma.test(o)||o==="0")&&!o.startsWith("url("));function Bj(o){const i=o[0];if(o.length===1)return!0;for(let l=0;l<o.length;l++)if(o[l]!==i)return!0}function Hj(o,i,l,u){const f=o[0];if(f===null)return!1;if(i==="display"||i==="visibility")return!0;const p=o[o.length-1],h=TE(f,i),m=TE(p,i);return Xs(h===m,`You are trying to animate ${i} from "${f}" to "${p}". "${h?p:f}" is not an animatable value.`,"value-not-animatable"),!h||!m?!1:Bj(o)||(l==="spring"||Dw(l))&&u}function yg(o){o.duration=0,o.type="keyframes"}const jw=new Set(["opacity","clipPath","filter","transform"]),Yj=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function qj(o){for(let i=0;i<o.length;i++)if(typeof o[i]=="string"&&Yj.test(o[i]))return!0;return!1}const Gj=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Pj=Wx(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function $j(o){var v;const{motionValue:i,name:l,repeatDelay:u,repeatType:f,damping:p,type:h,keyframes:m}=o;if(!(((v=i==null?void 0:i.owner)==null?void 0:v.current)instanceof HTMLElement))return!1;const{onUpdate:A,transformTemplate:S}=i.owner.getProps();return Pj()&&l&&(jw.has(l)||Gj.has(l)&&qj(m))&&(l!=="transform"||!S)&&!A&&!u&&f!=="mirror"&&p!==0&&h!=="inertia"}const Xj=40;class Qj extends $g{constructor({autoplay:i=!0,delay:l=0,type:u="keyframes",repeat:f=0,repeatDelay:p=0,repeatType:h="loop",keyframes:m,name:b,motionValue:A,element:S,...v}){var R;super(),this.stop=()=>{var L,U;this._animation&&(this._animation.stop(),(L=this.stopTimeline)==null||L.call(this)),(U=this.keyframeResolver)==null||U.cancel()},this.createdAt=yn.now();const y={autoplay:i,delay:l,type:u,repeat:f,repeatDelay:p,repeatType:h,name:b,motionValue:A,element:S,...v},x=(S==null?void 0:S.KeyframeResolver)||Xg;this.keyframeResolver=new x(m,(L,U,B)=>this.onKeyframesResolved(L,U,y,!B),b,A,S),(R=this.keyframeResolver)==null||R.scheduleResolve()}onKeyframesResolved(i,l,u,f){var B,$;this.keyframeResolver=void 0;const{name:p,type:h,velocity:m,delay:b,isHandoff:A,onUpdate:S}=u;this.resolvedAt=yn.now();let v=!0;Hj(i,p,h,m)||(v=!1,(Ui.instantAnimations||!b)&&(S==null||S(Gd(i,u,l))),i[0]=i[i.length-1],yg(u),u.repeat=0);const x={startTime:f?this.resolvedAt?this.resolvedAt-this.createdAt>Xj?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...u,keyframes:i},R=v&&!A&&$j(x),L=($=(B=x.motionValue)==null?void 0:B.owner)==null?void 0:$.current;let U;if(R)try{U=new Lj({...x,element:L})}catch{U=new jd(x)}else U=new jd(x);U.finished.then(()=>{this.notifyFinished()}).catch(ra),this.pendingTimeline&&(this.stopTimeline=U.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=U}get finished(){return this._animation?this.animation.finished:this._finished}then(i,l){return this.finished.finally(i).then(()=>{})}get animation(){var i;return this._animation||((i=this.keyframeResolver)==null||i.resume(),Oj()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var i;this._animation&&this.animation.cancel(),(i=this.keyframeResolver)==null||i.cancel()}}function zw(o,i,l,u=0,f=1){const p=Array.from(o).sort((A,S)=>A.sortNodePosition(S)).indexOf(i),h=o.size,m=(h-1)*u;return typeof l=="function"?l(p,h):f===1?p*u:m-p*u}const Zj=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ij(o){const i=Zj.exec(o);if(!i)return[,];const[,l,u,f]=i;return[`--${l??u}`,f]}const Fj=4;function Nw(o,i,l=1){Yo(l<=Fj,`Max CSS variable fallback depth detected in property "${o}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[u,f]=Ij(o);if(!u)return;const p=window.getComputedStyle(i).getPropertyValue(u);if(p){const h=p.trim();return Fx(h)?parseFloat(h):h}return Hg(f)?Nw(f,i,l+1):f}const Jj={type:"spring",stiffness:500,damping:25,restSpeed:10},Kj=o=>({type:"spring",stiffness:550,damping:o===0?2*Math.sqrt(550):30,restSpeed:10}),Wj={type:"keyframes",duration:.8},e3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},t3=(o,{keyframes:i})=>i.length>2?Wj:Is.has(o)?o.startsWith("scale")?Kj(i[1]):Jj:e3;function Uw(o,i){if(o!=null&&o.inherit&&i){const{inherit:l,...u}=o;return{...i,...u}}return o}function Qg(o,i){const l=(o==null?void 0:o[i])??(o==null?void 0:o.default)??o;return l!==o?Uw(l,o):l}const n3=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function a3(o){for(const i in o)if(!n3.has(i))return!0;return!1}const Zg=(o,i,l,u={},f,p)=>h=>{const m=Qg(u,o)||{},b=m.delay||u.delay||0;let{elapsed:A=0}=u;A=A-Rn(b);const S={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:i.getVelocity(),...m,delay:-A,onUpdate:y=>{i.set(y),m.onUpdate&&m.onUpdate(y)},onComplete:()=>{h(),m.onComplete&&m.onComplete()},name:o,motionValue:i,element:p?void 0:f};a3(m)||Object.assign(S,t3(o,S)),S.duration&&(S.duration=Rn(S.duration)),S.repeatDelay&&(S.repeatDelay=Rn(S.repeatDelay)),S.from!==void 0&&(S.keyframes[0]=S.from);let v=!1;if((S.type===!1||S.duration===0&&!S.repeatDelay)&&(yg(S),S.delay===0&&(v=!0)),(Ui.instantAnimations||Ui.skipAnimations||f!=null&&f.shouldSkipAnimations)&&(v=!0,yg(S),S.delay=0),S.allowFlatten=!m.type&&!m.ease,v&&!p&&i.get()!==void 0){const y=Gd(S.keyframes,m);if(y!==void 0){st.update(()=>{S.onUpdate(y),S.onComplete()});return}}return m.isSync?new jd(S):new Qj(S)};function AE(o){const i=[{},{}];return o==null||o.values.forEach((l,u)=>{i[0][u]=l.get(),i[1][u]=l.getVelocity()}),i}function Ig(o,i,l,u){if(typeof i=="function"){const[f,p]=AE(u);i=i(l!==void 0?l:o.custom,f,p)}if(typeof i=="string"&&(i=o.variants&&o.variants[i]),typeof i=="function"){const[f,p]=AE(u);i=i(l!==void 0?l:o.custom,f,p)}return i}function Or(o,i,l){const u=o.getProps();return Ig(u,i,l!==void 0?l:u.custom,o)}const Vw=new Set(["width","height","top","left","right","bottom",...Zs]),EE=30,o3=o=>!isNaN(parseFloat(o));class i3{constructor(i,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=u=>{var p;const f=yn.now();if(this.updatedAt!==f&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(u),this.current!==this.prev&&((p=this.events.change)==null||p.notify(this.current),this.dependents))for(const h of this.dependents)h.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=l.owner}setCurrent(i){this.current=i,this.updatedAt=yn.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=o3(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return qd(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",i)}on(i,l){this.events[i]||(this.events[i]=new kg);const u=this.events[i].add(l);return i==="change"?()=>{u(),st.read(()=>{this.events.change.getSize()||this.stop()})}:u}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,l){this.passiveEffect=i,this.stopPassiveEffect=l}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,l,u){this.set(l),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-u}jump(i,l=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,l&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var i;(i=this.events.change)==null||i.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=yn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>EE)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,EE);return ew(parseFloat(this.current)-parseFloat(this.prevFrameValue),l)}start(i){return this.stop(),new Promise(l=>{this.hasAnimated=!0,this.animation=i(l),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var i,l;(i=this.dependents)==null||i.clear(),(l=this.events.destroy)==null||l.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ps(o,i){return new i3(o,i)}const gg=o=>Array.isArray(o);function r3(o,i,l){o.hasValue(i)?o.getValue(i).set(l):o.addValue(i,Ps(l))}function s3(o){return gg(o)?o[o.length-1]||0:o}function l3(o,i){const l=Or(o,i);let{transitionEnd:u={},transition:f={},...p}=l||{};p={...p,...u};for(const h in p){const m=s3(p[h]);r3(o,h,m)}}const Kt=o=>!!(o&&o.getVelocity);function u3(o){return!!(Kt(o)&&o.add)}function vg(o,i){const l=o.getValue("willChange");if(u3(l))return l.add(i);if(!l&&Ui.WillChange){const u=new Ui.WillChange("auto");o.addValue("willChange",u),u.add(i)}}function Fg(o){return o.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const c3="framerAppearId",kw="data-"+Fg(c3);function Lw(o){return o.props[kw]}function f3({protectedKeys:o,needsAnimating:i},l){const u=o.hasOwnProperty(l)&&i[l]!==!0;return i[l]=!1,u}function Bw(o,i,{delay:l=0,transitionOverride:u,type:f}={}){let{transition:p,transitionEnd:h,...m}=i;const b=o.getDefaultTransition();p=p?Uw(p,b):b;const A=p==null?void 0:p.reduceMotion;u&&(p=u);const S=[],v=f&&o.animationState&&o.animationState.getState()[f];for(const y in m){const x=o.getValue(y,o.latestValues[y]??null),R=m[y];if(R===void 0||v&&f3(v,y))continue;const L={delay:l,...Qg(p||{},y)},U=x.get();if(U!==void 0&&!x.isAnimating()&&!Array.isArray(R)&&R===U&&!L.velocity){st.update(()=>x.set(R));continue}let B=!1;if(window.MotionHandoffAnimation){const F=Lw(o);if(F){const ae=window.MotionHandoffAnimation(F,y,st);ae!==null&&(L.startTime=ae,B=!0)}}vg(o,y);const $=A??o.shouldReduceMotion;x.start(Zg(y,x,R,$&&Vw.has(y)?{type:!1}:L,o,B));const P=x.animation;P&&S.push(P)}if(h){const y=()=>st.update(()=>{h&&l3(o,h)});S.length?Promise.all(S).then(y):y()}return S}function bg(o,i,l={}){var b;const u=Or(o,i,l.type==="exit"?(b=o.presenceContext)==null?void 0:b.custom:void 0);let{transition:f=o.getDefaultTransition()||{}}=u||{};l.transitionOverride&&(f=l.transitionOverride);const p=u?()=>Promise.all(Bw(o,u,l)):()=>Promise.resolve(),h=o.variantChildren&&o.variantChildren.size?(A=0)=>{const{delayChildren:S=0,staggerChildren:v,staggerDirection:y}=f;return d3(o,i,A,S,v,y,l)}:()=>Promise.resolve(),{when:m}=f;if(m){const[A,S]=m==="beforeChildren"?[p,h]:[h,p];return A().then(()=>S())}else return Promise.all([p(),h(l.delay)])}function d3(o,i,l=0,u=0,f=0,p=1,h){const m=[];for(const b of o.variantChildren)b.notify("AnimationStart",i),m.push(bg(b,i,{...h,delay:l+(typeof u=="function"?0:u)+zw(o.variantChildren,b,u,f,p)}).then(()=>b.notify("AnimationComplete",i)));return Promise.all(m)}function h3(o,i,l={}){o.notify("AnimationStart",i);let u;if(Array.isArray(i)){const f=i.map(p=>bg(o,p,l));u=Promise.all(f)}else if(typeof i=="string")u=bg(o,i,l);else{const f=typeof i=="function"?Or(o,i,l.custom):i;u=Promise.all(Bw(o,f,l))}return u.then(()=>{o.notify("AnimationComplete",i)})}const p3={test:o=>o==="auto",parse:o=>o},Hw=o=>i=>i.test(o),Yw=[Qs,ve,so,ji,B_,L_,p3],xE=o=>Yw.find(Hw(o));function m3(o){return typeof o=="number"?o===0:o!==null?o==="none"||o==="0"||Kx(o):!0}const y3=new Set(["brightness","contrast","saturate","opacity"]);function g3(o){const[i,l]=o.slice(0,-1).split("(");if(i==="drop-shadow")return o;const[u]=l.match(Yg)||[];if(!u)return o;const f=l.replace(u,"");let p=y3.has(i)?1:0;return u!==l&&(p*=100),i+"("+p+f+")"}const v3=/\b([a-z-]*)\(.*?\)/gu,Sg={...Ma,getAnimatableNone:o=>{const i=o.match(v3);return i?i.map(g3).join(" "):o}},Tg={...Ma,getAnimatableNone:o=>{const i=Ma.parse(o);return Ma.createTransformer(o)(i.map(u=>typeof u=="number"?0:typeof u=="object"?{...u,alpha:1}:u))}},wE={...Qs,transform:Math.round},b3={rotate:ji,rotateX:ji,rotateY:ji,rotateZ:ji,scale:cd,scaleX:cd,scaleY:cd,scaleZ:cd,skew:ji,skewX:ji,skewY:ji,distance:ve,translateX:ve,translateY:ve,translateZ:ve,x:ve,y:ve,z:ve,perspective:ve,transformPerspective:ve,opacity:Bu,originX:fE,originY:fE,originZ:ve},Jg={borderWidth:ve,borderTopWidth:ve,borderRightWidth:ve,borderBottomWidth:ve,borderLeftWidth:ve,borderRadius:ve,borderTopLeftRadius:ve,borderTopRightRadius:ve,borderBottomRightRadius:ve,borderBottomLeftRadius:ve,width:ve,maxWidth:ve,height:ve,maxHeight:ve,top:ve,right:ve,bottom:ve,left:ve,inset:ve,insetBlock:ve,insetBlockStart:ve,insetBlockEnd:ve,insetInline:ve,insetInlineStart:ve,insetInlineEnd:ve,padding:ve,paddingTop:ve,paddingRight:ve,paddingBottom:ve,paddingLeft:ve,paddingBlock:ve,paddingBlockStart:ve,paddingBlockEnd:ve,paddingInline:ve,paddingInlineStart:ve,paddingInlineEnd:ve,margin:ve,marginTop:ve,marginRight:ve,marginBottom:ve,marginLeft:ve,marginBlock:ve,marginBlockStart:ve,marginBlockEnd:ve,marginInline:ve,marginInlineStart:ve,marginInlineEnd:ve,fontSize:ve,backgroundPositionX:ve,backgroundPositionY:ve,...b3,zIndex:wE,fillOpacity:Bu,strokeOpacity:Bu,numOctaves:wE},S3={...Jg,color:_t,backgroundColor:_t,outlineColor:_t,fill:_t,stroke:_t,borderColor:_t,borderTopColor:_t,borderRightColor:_t,borderBottomColor:_t,borderLeftColor:_t,filter:Sg,WebkitFilter:Sg,mask:Tg,WebkitMask:Tg},qw=o=>S3[o],T3=new Set([Sg,Tg]);function Gw(o,i){let l=qw(o);return T3.has(l)||(l=Ma),l.getAnimatableNone?l.getAnimatableNone(i):void 0}const A3=new Set(["auto","none","0"]);function E3(o,i,l){let u=0,f;for(;u<o.length&&!f;){const p=o[u];typeof p=="string"&&!A3.has(p)&&Gs(p).values.length&&(f=o[u]),u++}if(f&&l)for(const p of i)o[p]=Gw(l,f)}class x3 extends Xg{constructor(i,l,u,f,p){super(i,l,u,f,p,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:l,name:u}=this;if(!l||!l.current)return;super.readKeyframes();for(let S=0;S<i.length;S++){let v=i[S];if(typeof v=="string"&&(v=v.trim(),Hg(v))){const y=Nw(v,l.current);y!==void 0&&(i[S]=y),S===i.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!Vw.has(u)||i.length!==2)return;const[f,p]=i,h=xE(f),m=xE(p),b=cE(f),A=cE(p);if(b!==A&&Ni[u]){this.needsMeasurement=!0;return}if(h!==m)if(bE(h)&&bE(m))for(let S=0;S<i.length;S++){const v=i[S];typeof v=="string"&&(i[S]=parseFloat(v))}else Ni[u]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:l}=this,u=[];for(let f=0;f<i.length;f++)(i[f]===null||m3(i[f]))&&u.push(f);u.length&&E3(i,u,l)}measureInitialState(){const{element:i,unresolvedKeyframes:l,name:u}=this;if(!i||!i.current)return;u==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ni[u](i.measureViewportBox(),window.getComputedStyle(i.current)),l[0]=this.measuredOrigin;const f=l[l.length-1];f!==void 0&&i.getValue(u,f).jump(f,!1)}measureEndState(){var m;const{element:i,name:l,unresolvedKeyframes:u}=this;if(!i||!i.current)return;const f=i.getValue(l);f&&f.jump(this.measuredOrigin,!1);const p=u.length-1,h=u[p];u[p]=Ni[l](i.measureViewportBox(),window.getComputedStyle(i.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),(m=this.removedTransforms)!=null&&m.length&&this.removedTransforms.forEach(([b,A])=>{i.getValue(b).set(A)}),this.resolveNoneKeyframes()}}function Pw(o,i,l){if(o==null)return[];if(o instanceof EventTarget)return[o];if(typeof o=="string"){let u=document;const f=(l==null?void 0:l[o])??u.querySelectorAll(o);return f?Array.from(f):[]}return Array.from(o).filter(u=>u!=null)}const $w=(o,i)=>i&&typeof o=="number"?i.transform(o):o;function Sd(o){return Jx(o)&&"offsetHeight"in o&&!("ownerSVGElement"in o)}const{schedule:Kg}=fw(queueMicrotask,!1),Ra={x:!1,y:!1};function Xw(){return Ra.x||Ra.y}function w3(o){return o==="x"||o==="y"?Ra[o]?null:(Ra[o]=!0,()=>{Ra[o]=!1}):Ra.x||Ra.y?null:(Ra.x=Ra.y=!0,()=>{Ra.x=Ra.y=!1})}function Qw(o,i){const l=Pw(o),u=new AbortController,f={passive:!0,...i,signal:u.signal};return[l,f,()=>u.abort()]}function R3(o){return!(o.pointerType==="touch"||Xw())}function M3(o,i,l={}){const[u,f,p]=Qw(o,l);return u.forEach(h=>{let m=!1,b=!1,A;const S=()=>{h.removeEventListener("pointerleave",R)},v=U=>{A&&(A(U),A=void 0),S()},y=U=>{m=!1,window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",y),b&&(b=!1,v(U))},x=()=>{m=!0,window.addEventListener("pointerup",y,f),window.addEventListener("pointercancel",y,f)},R=U=>{if(U.pointerType!=="touch"){if(m){b=!0;return}v(U)}},L=U=>{if(!R3(U))return;b=!1;const B=i(h,U);typeof B=="function"&&(A=B,h.addEventListener("pointerleave",R,f))};h.addEventListener("pointerenter",L,f),h.addEventListener("pointerdown",x,f)}),p}const Zw=(o,i)=>i?o===i?!0:Zw(o,i.parentElement):!1,Wg=o=>o.pointerType==="mouse"?typeof o.button!="number"||o.button<=0:o.isPrimary!==!1,C3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function D3(o){return C3.has(o.tagName)||o.isContentEditable===!0}const O3=new Set(["INPUT","SELECT","TEXTAREA"]);function _3(o){return O3.has(o.tagName)||o.isContentEditable===!0}const Td=new WeakSet;function RE(o){return i=>{i.key==="Enter"&&o(i)}}function Yy(o,i){o.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const j3=(o,i)=>{const l=o.currentTarget;if(!l)return;const u=RE(()=>{if(Td.has(l))return;Yy(l,"down");const f=RE(()=>{Yy(l,"up")}),p=()=>Yy(l,"cancel");l.addEventListener("keyup",f,i),l.addEventListener("blur",p,i)});l.addEventListener("keydown",u,i),l.addEventListener("blur",()=>l.removeEventListener("keydown",u),i)};function ME(o){return Wg(o)&&!Xw()}const CE=new WeakSet;function z3(o,i,l={}){const[u,f,p]=Qw(o,l),h=m=>{const b=m.currentTarget;if(!ME(m)||CE.has(m))return;Td.add(b),l.stopPropagation&&CE.add(m);const A=i(b,m),S=(x,R)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",y),Td.has(b)&&Td.delete(b),ME(x)&&typeof A=="function"&&A(x,{success:R})},v=x=>{S(x,b===window||b===document||l.useGlobalTarget||Zw(b,x.target))},y=x=>{S(x,!1)};window.addEventListener("pointerup",v,f),window.addEventListener("pointercancel",y,f)};return u.forEach(m=>{(l.useGlobalTarget?window:m).addEventListener("pointerdown",h,f),Sd(m)&&(m.addEventListener("focus",A=>j3(A,f)),!D3(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),p}function ev(o){return Jx(o)&&"ownerSVGElement"in o}const Ad=new WeakMap;let zi;const Iw=(o,i,l)=>(u,f)=>f&&f[0]?f[0][o+"Size"]:ev(u)&&"getBBox"in u?u.getBBox()[i]:u[l],N3=Iw("inline","width","offsetWidth"),U3=Iw("block","height","offsetHeight");function V3({target:o,borderBoxSize:i}){var l;(l=Ad.get(o))==null||l.forEach(u=>{u(o,{get width(){return N3(o,i)},get height(){return U3(o,i)}})})}function k3(o){o.forEach(V3)}function L3(){typeof ResizeObserver>"u"||(zi=new ResizeObserver(k3))}function B3(o,i){zi||L3();const l=Pw(o);return l.forEach(u=>{let f=Ad.get(u);f||(f=new Set,Ad.set(u,f)),f.add(i),zi==null||zi.observe(u)}),()=>{l.forEach(u=>{const f=Ad.get(u);f==null||f.delete(i),f!=null&&f.size||zi==null||zi.unobserve(u)})}}const Ed=new Set;let Hs;function H3(){Hs=()=>{const o={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ed.forEach(i=>i(o))},window.addEventListener("resize",Hs)}function Y3(o){return Ed.add(o),Hs||H3(),()=>{Ed.delete(o),!Ed.size&&typeof Hs=="function"&&(window.removeEventListener("resize",Hs),Hs=void 0)}}function DE(o,i){return typeof o=="function"?Y3(o):B3(o,i)}function q3(o){return ev(o)&&o.tagName==="svg"}const G3=[...Yw,_t,Ma],P3=o=>G3.find(Hw(o)),OE=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ys=()=>({x:OE(),y:OE()}),_E=()=>({min:0,max:0}),kt=()=>({x:_E(),y:_E()}),$3=new WeakMap;function Pd(o){return o!==null&&typeof o=="object"&&typeof o.start=="function"}function Hu(o){return typeof o=="string"||Array.isArray(o)}const tv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],nv=["initial",...tv];function $d(o){return Pd(o.animate)||nv.some(i=>Hu(o[i]))}function Fw(o){return!!($d(o)||o.variants)}function X3(o,i,l){for(const u in i){const f=i[u],p=l[u];if(Kt(f))o.addValue(u,f);else if(Kt(p))o.addValue(u,Ps(f,{owner:o}));else if(p!==f)if(o.hasValue(u)){const h=o.getValue(u);h.liveStyle===!0?h.jump(f):h.hasAnimated||h.set(f)}else{const h=o.getStaticValue(u);o.addValue(u,Ps(h!==void 0?h:f,{owner:o}))}}for(const u in l)i[u]===void 0&&o.removeValue(u);return i}const zd={current:null},av={current:!1},Q3=typeof window<"u";function Jw(){if(av.current=!0,!!Q3)if(window.matchMedia){const o=window.matchMedia("(prefers-reduced-motion)"),i=()=>zd.current=o.matches;o.addEventListener("change",i),i()}else zd.current=!1}const jE=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Nd={};function Kw(o){Nd=o}function Z3(){return Nd}class I3{scrapeMotionValuesFromProps(i,l,u){return{}}constructor({parent:i,props:l,presenceContext:u,reducedMotionConfig:f,skipAnimations:p,blockInitialAnimation:h,visualState:m},b={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Xg,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const x=yn.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,st.render(this.render,!1,!0))};const{latestValues:A,renderState:S}=m;this.latestValues=A,this.baseTarget={...A},this.initialValues=l.initial?{...A}:{},this.renderState=S,this.parent=i,this.props=l,this.presenceContext=u,this.depth=i?i.depth+1:0,this.reducedMotionConfig=f,this.skipAnimationsConfig=p,this.options=b,this.blockInitialAnimation=!!h,this.isControllingVariants=$d(l),this.isVariantNode=Fw(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:v,...y}=this.scrapeMotionValuesFromProps(l,{},this);for(const x in y){const R=y[x];A[x]!==void 0&&Kt(R)&&R.set(A[x])}}mount(i){var l,u;if(this.hasBeenMounted)for(const f in this.initialValues)(l=this.values.get(f))==null||l.jump(this.initialValues[f]),this.latestValues[f]=this.initialValues[f];this.current=i,$3.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((f,p)=>this.bindToMotionValue(p,f)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(av.current||Jw(),this.shouldReduceMotion=zd.current),qd(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(u=this.parent)==null||u.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var i;this.projection&&this.projection.unmount(),Vi(this.notifyUpdate),Vi(this.render),this.valueSubscriptions.forEach(l=>l()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(i=this.parent)==null||i.removeChild(this);for(const l in this.events)this.events[l].clear();for(const l in this.features){const u=this.features[l];u&&(u.unmount(),u.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,l){if(this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)(),l.accelerate&&jw.has(i)&&this.current instanceof HTMLElement){const{factory:h,keyframes:m,times:b,ease:A,duration:S}=l.accelerate,v=new Ow({element:this.current,name:i,keyframes:m,times:b,ease:A,duration:Rn(S)}),y=h(v);this.valueSubscriptions.set(i,()=>{y(),v.cancel()});return}const u=Is.has(i);u&&this.onBindTransform&&this.onBindTransform();const f=l.on("change",h=>{this.latestValues[i]=h,this.props.onUpdate&&st.preRender(this.notifyUpdate),u&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let p;typeof window<"u"&&window.MotionCheckAppearSync&&(p=window.MotionCheckAppearSync(this,i,l)),this.valueSubscriptions.set(i,()=>{f(),p&&p(),l.owner&&l.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in Nd){const l=Nd[i];if(!l)continue;const{isEnabled:u,Feature:f}=l;if(!this.features[i]&&f&&u(this.props)&&(this.features[i]=new f(this)),this.features[i]){const p=this.features[i];p.isMounted?p.update():(p.mount(),p.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):kt()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,l){this.latestValues[i]=l}update(i,l){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=l;for(let u=0;u<jE.length;u++){const f=jE[u];this.propEventSubscriptions[f]&&(this.propEventSubscriptions[f](),delete this.propEventSubscriptions[f]);const p="on"+f,h=i[p];h&&(this.propEventSubscriptions[f]=this.on(f,h))}this.prevMotionValues=X3(this,this.scrapeMotionValuesFromProps(i,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(i){const l=this.getClosestVariantNode();if(l)return l.variantChildren&&l.variantChildren.add(i),()=>l.variantChildren.delete(i)}addValue(i,l){const u=this.values.get(i);l!==u&&(u&&this.removeValue(i),this.bindToMotionValue(i,l),this.values.set(i,l),this.latestValues[i]=l.get())}removeValue(i){this.values.delete(i);const l=this.valueSubscriptions.get(i);l&&(l(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,l){if(this.props.values&&this.props.values[i])return this.props.values[i];let u=this.values.get(i);return u===void 0&&l!==void 0&&(u=Ps(l===null?void 0:l,{owner:this}),this.addValue(i,u)),u}readValue(i,l){let u=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return u!=null&&(typeof u=="string"&&(Fx(u)||Kx(u))?u=parseFloat(u):!P3(u)&&Ma.test(l)&&(u=Gw(i,l)),this.setBaseTarget(i,Kt(u)?u.get():u)),Kt(u)?u.get():u}setBaseTarget(i,l){this.baseTarget[i]=l}getBaseTarget(i){var p;const{initial:l}=this.props;let u;if(typeof l=="string"||typeof l=="object"){const h=Ig(this.props,l,(p=this.presenceContext)==null?void 0:p.custom);h&&(u=h[i])}if(l&&u!==void 0)return u;const f=this.getBaseTargetFromProps(this.props,i);return f!==void 0&&!Kt(f)?f:this.initialValues[i]!==void 0&&u===void 0?void 0:this.baseTarget[i]}on(i,l){return this.events[i]||(this.events[i]=new kg),this.events[i].add(l)}notify(i,...l){this.events[i]&&this.events[i].notify(...l)}scheduleRenderMicrotask(){Kg.render(this.render)}}class Ww extends I3{constructor(){super(...arguments),this.KeyframeResolver=x3}sortInstanceNodePosition(i,l){return i.compareDocumentPosition(l)&2?1:-1}getBaseTargetFromProps(i,l){const u=i.style;return u?u[l]:void 0}removeValueFromRenderState(i,{vars:l,style:u}){delete l[i],delete u[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;Kt(i)&&(this.childSubscription=i.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}class ki{constructor(i){this.isMounted=!1,this.node=i}update(){}}function eR({top:o,left:i,right:l,bottom:u}){return{x:{min:i,max:l},y:{min:o,max:u}}}function F3({x:o,y:i}){return{top:i.min,right:o.max,bottom:i.max,left:o.min}}function J3(o,i){if(!i)return o;const l=i({x:o.left,y:o.top}),u=i({x:o.right,y:o.bottom});return{top:l.y,left:l.x,bottom:u.y,right:u.x}}function qy(o){return o===void 0||o===1}function Ag({scale:o,scaleX:i,scaleY:l}){return!qy(o)||!qy(i)||!qy(l)}function Rr(o){return Ag(o)||tR(o)||o.z||o.rotate||o.rotateX||o.rotateY||o.skewX||o.skewY}function tR(o){return zE(o.x)||zE(o.y)}function zE(o){return o&&o!=="0%"}function Ud(o,i,l){const u=o-l,f=i*u;return l+f}function NE(o,i,l,u,f){return f!==void 0&&(o=Ud(o,f,u)),Ud(o,l,u)+i}function Eg(o,i=0,l=1,u,f){o.min=NE(o.min,i,l,u,f),o.max=NE(o.max,i,l,u,f)}function nR(o,{x:i,y:l}){Eg(o.x,i.translate,i.scale,i.originPoint),Eg(o.y,l.translate,l.scale,l.originPoint)}const UE=.999999999999,VE=1.0000000000001;function K3(o,i,l,u=!1){var m;const f=l.length;if(!f)return;i.x=i.y=1;let p,h;for(let b=0;b<f;b++){p=l[b],h=p.projectionDelta;const{visualElement:A}=p.options;A&&A.props.style&&A.props.style.display==="contents"||(u&&p.options.layoutScroll&&p.scroll&&p!==p.root&&(ro(o.x,-p.scroll.offset.x),ro(o.y,-p.scroll.offset.y)),h&&(i.x*=h.x.scale,i.y*=h.y.scale,nR(o,h)),u&&Rr(p.latestValues)&&xd(o,p.latestValues,(m=p.layout)==null?void 0:m.layoutBox))}i.x<VE&&i.x>UE&&(i.x=1),i.y<VE&&i.y>UE&&(i.y=1)}function ro(o,i){o.min+=i,o.max+=i}function kE(o,i,l,u,f=.5){const p=ht(o.min,o.max,f);Eg(o,i,l,p,u)}function LE(o,i){return typeof o=="string"?parseFloat(o)/100*(i.max-i.min):o}function xd(o,i,l){const u=l??o;kE(o.x,LE(i.x,u.x),i.scaleX,i.scale,i.originX),kE(o.y,LE(i.y,u.y),i.scaleY,i.scale,i.originY)}function aR(o,i){return eR(J3(o.getBoundingClientRect(),i))}function W3(o,i,l){const u=aR(o,l),{scroll:f}=i;return f&&(ro(u.x,f.offset.x),ro(u.y,f.offset.y)),u}const ez={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tz=Zs.length;function nz(o,i,l){let u="",f=!0;for(let p=0;p<tz;p++){const h=Zs[p],m=o[h];if(m===void 0)continue;let b=!0;if(typeof m=="number")b=m===(h.startsWith("scale")?1:0);else{const A=parseFloat(m);b=h.startsWith("scale")?A===1:A===0}if(!b||l){const A=$w(m,Jg[h]);if(!b){f=!1;const S=ez[h]||h;u+=`${S}(${A}) `}l&&(i[h]=A)}}return u=u.trim(),l?u=l(i,f?"":u):f&&(u="none"),u}function ov(o,i,l){const{style:u,vars:f,transformOrigin:p}=o;let h=!1,m=!1;for(const b in i){const A=i[b];if(Is.has(b)){h=!0;continue}else if(hw(b)){f[b]=A;continue}else{const S=$w(A,Jg[b]);b.startsWith("origin")?(m=!0,p[b]=S):u[b]=S}}if(i.transform||(h||l?u.transform=nz(i,o.transform,l):u.transform&&(u.transform="none")),m){const{originX:b="50%",originY:A="50%",originZ:S=0}=p;u.transformOrigin=`${b} ${A} ${S}`}}function oR(o,{style:i,vars:l},u,f){const p=o.style;let h;for(h in i)p[h]=i[h];f==null||f.applyProjectionStyles(p,u);for(h in l)p.setProperty(h,l[h])}function BE(o,i){return i.max===i.min?0:o/(i.max-i.min)*100}const Ou={correct:(o,i)=>{if(!i.target)return o;if(typeof o=="string")if(ve.test(o))o=parseFloat(o);else return o;const l=BE(o,i.target.x),u=BE(o,i.target.y);return`${l}% ${u}%`}},az={correct:(o,{treeScale:i,projectionDelta:l})=>{const u=o,f=Ma.parse(o);if(f.length>5)return u;const p=Ma.createTransformer(o),h=typeof f[0]!="number"?1:0,m=l.x.scale*i.x,b=l.y.scale*i.y;f[0+h]/=m,f[1+h]/=b;const A=ht(m,b,.5);return typeof f[2+h]=="number"&&(f[2+h]/=A),typeof f[3+h]=="number"&&(f[3+h]/=A),p(f)}},xg={borderRadius:{...Ou,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ou,borderTopRightRadius:Ou,borderBottomLeftRadius:Ou,borderBottomRightRadius:Ou,boxShadow:az};function iR(o,{layout:i,layoutId:l}){return Is.has(o)||o.startsWith("origin")||(i||l!==void 0)&&(!!xg[o]||o==="opacity")}function iv(o,i,l){var h;const u=o.style,f=i==null?void 0:i.style,p={};if(!u)return p;for(const m in u)(Kt(u[m])||f&&Kt(f[m])||iR(m,o)||((h=l==null?void 0:l.getValue(m))==null?void 0:h.liveStyle)!==void 0)&&(p[m]=u[m]);return p}function oz(o){return window.getComputedStyle(o)}class iz extends Ww{constructor(){super(...arguments),this.type="html",this.renderInstance=oR}readValueFromInstance(i,l){var u;if(Is.has(l))return(u=this.projection)!=null&&u.isProjecting?fg(l):wj(i,l);{const f=oz(i),p=(hw(l)?f.getPropertyValue(l):f[l])||0;return typeof p=="string"?p.trim():p}}measureInstanceViewportBox(i,{transformPagePoint:l}){return aR(i,l)}build(i,l,u){ov(i,l,u.transformTemplate)}scrapeMotionValuesFromProps(i,l,u){return iv(i,l,u)}}const rz={offset:"stroke-dashoffset",array:"stroke-dasharray"},sz={offset:"strokeDashoffset",array:"strokeDasharray"};function lz(o,i,l=1,u=0,f=!0){o.pathLength=1;const p=f?rz:sz;o[p.offset]=`${-u}`,o[p.array]=`${i} ${l}`}const uz=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function rR(o,{attrX:i,attrY:l,attrScale:u,pathLength:f,pathSpacing:p=1,pathOffset:h=0,...m},b,A,S){if(ov(o,m,A),b){o.style.viewBox&&(o.attrs.viewBox=o.style.viewBox);return}o.attrs=o.style,o.style={};const{attrs:v,style:y}=o;v.transform&&(y.transform=v.transform,delete v.transform),(y.transform||v.transformOrigin)&&(y.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),y.transform&&(y.transformBox=(S==null?void 0:S.transformBox)??"fill-box",delete v.transformBox);for(const x of uz)v[x]!==void 0&&(y[x]=v[x],delete v[x]);i!==void 0&&(v.x=i),l!==void 0&&(v.y=l),u!==void 0&&(v.scale=u),f!==void 0&&lz(v,f,p,h,!1)}const sR=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),lR=o=>typeof o=="string"&&o.toLowerCase()==="svg";function cz(o,i,l,u){oR(o,i,void 0,u);for(const f in i.attrs)o.setAttribute(sR.has(f)?f:Fg(f),i.attrs[f])}function uR(o,i,l){const u=iv(o,i,l);for(const f in o)if(Kt(o[f])||Kt(i[f])){const p=Zs.indexOf(f)!==-1?"attr"+f.charAt(0).toUpperCase()+f.substring(1):f;u[p]=o[f]}return u}class fz extends Ww{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=kt}getBaseTargetFromProps(i,l){return i[l]}readValueFromInstance(i,l){if(Is.has(l)){const u=qw(l);return u&&u.default||0}return l=sR.has(l)?l:Fg(l),i.getAttribute(l)}scrapeMotionValuesFromProps(i,l,u){return uR(i,l,u)}build(i,l,u){rR(i,l,this.isSVGTag,u.transformTemplate,u.style)}renderInstance(i,l,u,f){cz(i,l,u,f)}mount(i){this.isSVGTag=lR(i.tagName),super.mount(i)}}const dz=nv.length;function cR(o){if(!o)return;if(!o.isControllingVariants){const l=o.parent?cR(o.parent)||{}:{};return o.props.initial!==void 0&&(l.initial=o.props.initial),l}const i={};for(let l=0;l<dz;l++){const u=nv[l],f=o.props[u];(Hu(f)||f===!1)&&(i[u]=f)}return i}function fR(o,i){if(!Array.isArray(i))return!1;const l=i.length;if(l!==o.length)return!1;for(let u=0;u<l;u++)if(i[u]!==o[u])return!1;return!0}const hz=[...tv].reverse(),pz=tv.length;function mz(o){return i=>Promise.all(i.map(({animation:l,options:u})=>h3(o,l,u)))}function yz(o){let i=mz(o),l=HE(),u=!0,f=!1;const p=A=>(S,v)=>{var x;const y=Or(o,v,A==="exit"?(x=o.presenceContext)==null?void 0:x.custom:void 0);if(y){const{transition:R,transitionEnd:L,...U}=y;S={...S,...U,...L}}return S};function h(A){i=A(o)}function m(A){const{props:S}=o,v=cR(o.parent)||{},y=[],x=new Set;let R={},L=1/0;for(let B=0;B<pz;B++){const $=hz[B],P=l[$],F=S[$]!==void 0?S[$]:v[$],ae=Hu(F),re=$===A?P.isActive:null;re===!1&&(L=B);let ie=F===v[$]&&F!==S[$]&&ae;if(ie&&(u||f)&&o.manuallyAnimateOnMount&&(ie=!1),P.protectedKeys={...R},!P.isActive&&re===null||!F&&!P.prevProp||Pd(F)||typeof F=="boolean")continue;if($==="exit"&&P.isActive&&re!==!0){P.prevResolvedValues&&(R={...R,...P.prevResolvedValues});continue}const J=gz(P.prevProp,F);let I=J||$===A&&P.isActive&&!ie&&ae||B>L&&ae,q=!1;const oe=Array.isArray(F)?F:[F];let V=oe.reduce(p($),{});re===!1&&(V={});const{prevResolvedValues:W={}}=P,de={...W,...V},Ee=Q=>{I=!0,x.has(Q)&&(q=!0,x.delete(Q)),P.needsAnimating[Q]=!0;const ce=o.getValue(Q);ce&&(ce.liveStyle=!1)};for(const Q in de){const ce=V[Q],pe=W[Q];if(R.hasOwnProperty(Q))continue;let C=!1;gg(ce)&&gg(pe)?C=!fR(ce,pe):C=ce!==pe,C?ce!=null?Ee(Q):x.add(Q):ce!==void 0&&x.has(Q)?Ee(Q):P.protectedKeys[Q]=!0}P.prevProp=F,P.prevResolvedValues=V,P.isActive&&(R={...R,...V}),(u||f)&&o.blockInitialAnimation&&(I=!1);const K=ie&&J;I&&(!K||q)&&y.push(...oe.map(Q=>{const ce={type:$};if(typeof Q=="string"&&(u||f)&&!K&&o.manuallyAnimateOnMount&&o.parent){const{parent:pe}=o,C=Or(pe,Q);if(pe.enteringChildren&&C){const{delayChildren:ee}=C.transition||{};ce.delay=zw(pe.enteringChildren,o,ee)}}return{animation:Q,options:ce}}))}if(x.size){const B={};if(typeof S.initial!="boolean"){const $=Or(o,Array.isArray(S.initial)?S.initial[0]:S.initial);$&&$.transition&&(B.transition=$.transition)}x.forEach($=>{const P=o.getBaseTarget($),F=o.getValue($);F&&(F.liveStyle=!0),B[$]=P??null}),y.push({animation:B})}let U=!!y.length;return u&&(S.initial===!1||S.initial===S.animate)&&!o.manuallyAnimateOnMount&&(U=!1),u=!1,f=!1,U?i(y):Promise.resolve()}function b(A,S){var y;if(l[A].isActive===S)return Promise.resolve();(y=o.variantChildren)==null||y.forEach(x=>{var R;return(R=x.animationState)==null?void 0:R.setActive(A,S)}),l[A].isActive=S;const v=m(A);for(const x in l)l[x].protectedKeys={};return v}return{animateChanges:m,setActive:b,setAnimateFunction:h,getState:()=>l,reset:()=>{l=HE(),f=!0}}}function gz(o,i){return typeof i=="string"?i!==o:Array.isArray(i)?!fR(i,o):!1}function wr(o=!1){return{isActive:o,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function HE(){return{animate:wr(!0),whileInView:wr(),whileHover:wr(),whileTap:wr(),whileDrag:wr(),whileFocus:wr(),exit:wr()}}function wg(o,i){o.min=i.min,o.max=i.max}function wa(o,i){wg(o.x,i.x),wg(o.y,i.y)}function YE(o,i){o.translate=i.translate,o.scale=i.scale,o.originPoint=i.originPoint,o.origin=i.origin}const dR=1e-4,vz=1-dR,bz=1+dR,hR=.01,Sz=0-hR,Tz=0+hR;function gn(o){return o.max-o.min}function Az(o,i,l){return Math.abs(o-i)<=l}function qE(o,i,l,u=.5){o.origin=u,o.originPoint=ht(i.min,i.max,o.origin),o.scale=gn(l)/gn(i),o.translate=ht(l.min,l.max,o.origin)-o.originPoint,(o.scale>=vz&&o.scale<=bz||isNaN(o.scale))&&(o.scale=1),(o.translate>=Sz&&o.translate<=Tz||isNaN(o.translate))&&(o.translate=0)}function Vu(o,i,l,u){qE(o.x,i.x,l.x,u?u.originX:void 0),qE(o.y,i.y,l.y,u?u.originY:void 0)}function GE(o,i,l,u=0){const f=u?ht(l.min,l.max,u):l.min;o.min=f+i.min,o.max=o.min+gn(i)}function Ez(o,i,l,u){GE(o.x,i.x,l.x,u==null?void 0:u.x),GE(o.y,i.y,l.y,u==null?void 0:u.y)}function PE(o,i,l,u=0){const f=u?ht(l.min,l.max,u):l.min;o.min=i.min-f,o.max=o.min+gn(i)}function Vd(o,i,l,u){PE(o.x,i.x,l.x,u==null?void 0:u.x),PE(o.y,i.y,l.y,u==null?void 0:u.y)}function $E(o,i,l,u,f){return o-=i,o=Ud(o,1/l,u),f!==void 0&&(o=Ud(o,1/f,u)),o}function xz(o,i=0,l=1,u=.5,f,p=o,h=o){if(so.test(i)&&(i=parseFloat(i),i=ht(h.min,h.max,i/100)-h.min),typeof i!="number")return;let m=ht(p.min,p.max,u);o===p&&(m-=i),o.min=$E(o.min,i,l,m,f),o.max=$E(o.max,i,l,m,f)}function XE(o,i,[l,u,f],p,h){xz(o,i[l],i[u],i[f],i.scale,p,h)}const wz=["x","scaleX","originX"],Rz=["y","scaleY","originY"];function QE(o,i,l,u){XE(o.x,i,wz,l?l.x:void 0,u?u.x:void 0),XE(o.y,i,Rz,l?l.y:void 0,u?u.y:void 0)}function ZE(o){return o.translate===0&&o.scale===1}function pR(o){return ZE(o.x)&&ZE(o.y)}function IE(o,i){return o.min===i.min&&o.max===i.max}function Mz(o,i){return IE(o.x,i.x)&&IE(o.y,i.y)}function FE(o,i){return Math.round(o.min)===Math.round(i.min)&&Math.round(o.max)===Math.round(i.max)}function mR(o,i){return FE(o.x,i.x)&&FE(o.y,i.y)}function JE(o){return gn(o.x)/gn(o.y)}function KE(o,i){return o.translate===i.translate&&o.scale===i.scale&&o.originPoint===i.originPoint}function io(o){return[o("x"),o("y")]}function Cz(o,i,l){let u="";const f=o.x.translate/i.x,p=o.y.translate/i.y,h=(l==null?void 0:l.z)||0;if((f||p||h)&&(u=`translate3d(${f}px, ${p}px, ${h}px) `),(i.x!==1||i.y!==1)&&(u+=`scale(${1/i.x}, ${1/i.y}) `),l){const{transformPerspective:A,rotate:S,rotateX:v,rotateY:y,skewX:x,skewY:R}=l;A&&(u=`perspective(${A}px) ${u}`),S&&(u+=`rotate(${S}deg) `),v&&(u+=`rotateX(${v}deg) `),y&&(u+=`rotateY(${y}deg) `),x&&(u+=`skewX(${x}deg) `),R&&(u+=`skewY(${R}deg) `)}const m=o.x.scale*i.x,b=o.y.scale*i.y;return(m!==1||b!==1)&&(u+=`scale(${m}, ${b})`),u||"none"}const yR=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Dz=yR.length,WE=o=>typeof o=="string"?parseFloat(o):o,ex=o=>typeof o=="number"||ve.test(o);function Oz(o,i,l,u,f,p){f?(o.opacity=ht(0,l.opacity??1,_z(u)),o.opacityExit=ht(i.opacity??1,0,jz(u))):p&&(o.opacity=ht(i.opacity??1,l.opacity??1,u));for(let h=0;h<Dz;h++){const m=yR[h];let b=tx(i,m),A=tx(l,m);if(b===void 0&&A===void 0)continue;b||(b=0),A||(A=0),b===0||A===0||ex(b)===ex(A)?(o[m]=Math.max(ht(WE(b),WE(A),u),0),(so.test(A)||so.test(b))&&(o[m]+="%")):o[m]=A}(i.rotate||l.rotate)&&(o.rotate=ht(i.rotate||0,l.rotate||0,u))}function tx(o,i){return o[i]!==void 0?o[i]:o.borderRadius}const _z=gR(0,.5,sw),jz=gR(.5,.95,ra);function gR(o,i,l){return u=>u<o?0:u>i?1:l(Lu(o,i,u))}function zz(o,i,l){const u=Kt(o)?o:Ps(o);return u.start(Zg("",u,i,l)),u.animation}function Yu(o,i,l,u={passive:!0}){return o.addEventListener(i,l,u),()=>o.removeEventListener(i,l)}const Nz=(o,i)=>o.depth-i.depth;class Uz{constructor(){this.children=[],this.isDirty=!1}add(i){Vg(this.children,i),this.isDirty=!0}remove(i){Cd(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(Nz),this.isDirty=!1,this.children.forEach(i)}}function Vz(o,i){const l=yn.now(),u=({timestamp:f})=>{const p=f-l;p>=i&&(Vi(u),o(p-i))};return st.setup(u,!0),()=>Vi(u)}function wd(o){return Kt(o)?o.get():o}class kz{constructor(){this.members=[]}add(i){Vg(this.members,i);for(let l=this.members.length-1;l>=0;l--){const u=this.members[l];if(u===i||u===this.lead||u===this.prevLead)continue;const f=u.instance;(!f||f.isConnected===!1)&&!u.snapshot&&(Cd(this.members,u),u.unmount())}i.scheduleRender()}remove(i){if(Cd(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const l=this.members[this.members.length-1];l&&this.promote(l)}}relegate(i){var l;for(let u=this.members.indexOf(i)-1;u>=0;u--){const f=this.members[u];if(f.isPresent!==!1&&((l=f.instance)==null?void 0:l.isConnected)!==!1)return this.promote(f),!0}return!1}promote(i,l){var f;const u=this.lead;if(i!==u&&(this.prevLead=u,this.lead=i,i.show(),u)){u.updateSnapshot(),i.scheduleRender();const{layoutDependency:p}=u.options,{layoutDependency:h}=i.options;(p===void 0||p!==h)&&(i.resumeFrom=u,l&&(u.preserveOpacity=!0),u.snapshot&&(i.snapshot=u.snapshot,i.snapshot.latestValues=u.animationValues||u.latestValues),(f=i.root)!=null&&f.isUpdating&&(i.isLayoutDirty=!0)),i.options.crossfade===!1&&u.hide()}}exitAnimationComplete(){this.members.forEach(i=>{var l,u,f,p,h;(u=(l=i.options).onExitComplete)==null||u.call(l),(h=(f=i.resumingFrom)==null?void 0:(p=f.options).onExitComplete)==null||h.call(p)})}scheduleRender(){this.members.forEach(i=>i.instance&&i.scheduleRender(!1))}removeLeadSnapshot(){var i;(i=this.lead)!=null&&i.snapshot&&(this.lead.snapshot=void 0)}}const Rd={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Gy=["","X","Y","Z"],Lz=1e3;let Bz=0;function Py(o,i,l,u){const{latestValues:f}=i;f[o]&&(l[o]=f[o],i.setStaticValue(o,0),u&&(u[o]=0))}function vR(o){if(o.hasCheckedOptimisedAppear=!0,o.root===o)return;const{visualElement:i}=o.options;if(!i)return;const l=Lw(i);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:f,layoutId:p}=o.options;window.MotionCancelOptimisedAnimation(l,"transform",st,!(f||p))}const{parent:u}=o;u&&!u.hasCheckedOptimisedAppear&&vR(u)}function bR({attachResizeListener:o,defaultParent:i,measureScroll:l,checkIsScrollRoot:u,resetTransform:f}){return class{constructor(h={},m=i==null?void 0:i()){this.id=Bz++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(qz),this.nodes.forEach(Zz),this.nodes.forEach(Iz),this.nodes.forEach(Gz)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=h,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let b=0;b<this.path.length;b++)this.path[b].shouldResetTransform=!0;this.root===this&&(this.nodes=new Uz)}addEventListener(h,m){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new kg),this.eventHandlers.get(h).add(m)}notifyListeners(h,...m){const b=this.eventHandlers.get(h);b&&b.notify(...m)}hasListeners(h){return this.eventHandlers.has(h)}mount(h){if(this.instance)return;this.isSVG=ev(h)&&!q3(h),this.instance=h;const{layoutId:m,layout:b,visualElement:A}=this.options;if(A&&!A.current&&A.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(b||m)&&(this.isLayoutDirty=!0),o){let S,v=0;const y=()=>this.root.updateBlockedByResize=!1;st.read(()=>{v=window.innerWidth}),o(h,()=>{const x=window.innerWidth;x!==v&&(v=x,this.root.updateBlockedByResize=!0,S&&S(),S=Vz(y,250),Rd.hasAnimatedSinceResize&&(Rd.hasAnimatedSinceResize=!1,this.nodes.forEach(ox)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&A&&(m||b)&&this.addEventListener("didUpdate",({delta:S,hasLayoutChanged:v,hasRelativeLayoutChanged:y,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const R=this.options.transition||A.getDefaultTransition()||e5,{onLayoutAnimationStart:L,onLayoutAnimationComplete:U}=A.getProps(),B=!this.targetLayout||!mR(this.targetLayout,x),$=!v&&y;if(this.options.layoutRoot||this.resumeFrom||$||v&&(B||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const P={...Qg(R,"layout"),onPlay:L,onComplete:U};(A.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P),this.setAnimationOrigin(S,$)}else v||ox(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const h=this.getStack();h&&h.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Vi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Fz),this.animationId++)}getTransformTemplate(){const{visualElement:h}=this.options;return h&&h.getProps().transformTemplate}willUpdate(h=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&vR(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let S=0;S<this.path.length;S++){const v=this.path[S];v.shouldResetTransform=!0,(typeof v.latestValues.x=="string"||typeof v.latestValues.y=="string")&&(v.isLayoutDirty=!0),v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:m,layout:b}=this.options;if(m===void 0&&!b)return;const A=this.getTransformTemplate();this.prevTransformTemplateValue=A?A(this.latestValues,""):void 0,this.updateSnapshot(),h&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const b=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),b&&this.nodes.forEach($z),this.nodes.forEach(nx);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ax);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Xz),this.nodes.forEach(Qz),this.nodes.forEach(Hz),this.nodes.forEach(Yz)):this.nodes.forEach(ax),this.clearAllSnapshots();const m=yn.now();Jt.delta=lo(0,1e3/60,m-Jt.timestamp),Jt.timestamp=m,Jt.isProcessing=!0,Uy.update.process(Jt),Uy.preRender.process(Jt),Uy.render.process(Jt),Jt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Kg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Pz),this.sharedNodes.forEach(Jz)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,st.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){st.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!gn(this.snapshot.measuredBox.x)&&!gn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let b=0;b<this.path.length;b++)this.path[b].updateScroll();const h=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=kt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:m}=this.options;m&&m.notify("LayoutMeasure",this.layout.layoutBox,h?h.layoutBox:void 0)}updateScroll(h="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===h&&(m=!1),m&&this.instance){const b=u(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:b,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:b}}}resetTransform(){if(!f)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!pR(this.projectionDelta),b=this.getTransformTemplate(),A=b?b(this.latestValues,""):void 0,S=A!==this.prevTransformTemplateValue;h&&this.instance&&(m||Rr(this.latestValues)||S)&&(f(this.instance,A),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const m=this.measurePageBox();let b=this.removeElementScroll(m);return h&&(b=this.removeTransform(b)),t5(b),{animationId:this.root.animationId,measuredBox:m,layoutBox:b,latestValues:{},source:this.id}}measurePageBox(){var A;const{visualElement:h}=this.options;if(!h)return kt();const m=h.measureViewportBox();if(!(((A=this.scroll)==null?void 0:A.wasRoot)||this.path.some(n5))){const{scroll:S}=this.root;S&&(ro(m.x,S.offset.x),ro(m.y,S.offset.y))}return m}removeElementScroll(h){var b;const m=kt();if(wa(m,h),(b=this.scroll)!=null&&b.wasRoot)return m;for(let A=0;A<this.path.length;A++){const S=this.path[A],{scroll:v,options:y}=S;S!==this.root&&v&&y.layoutScroll&&(v.wasRoot&&wa(m,h),ro(m.x,v.offset.x),ro(m.y,v.offset.y))}return m}applyTransform(h,m=!1,b){var S,v;const A=b||kt();wa(A,h);for(let y=0;y<this.path.length;y++){const x=this.path[y];!m&&x.options.layoutScroll&&x.scroll&&x!==x.root&&(ro(A.x,-x.scroll.offset.x),ro(A.y,-x.scroll.offset.y)),Rr(x.latestValues)&&xd(A,x.latestValues,(S=x.layout)==null?void 0:S.layoutBox)}return Rr(this.latestValues)&&xd(A,this.latestValues,(v=this.layout)==null?void 0:v.layoutBox),A}removeTransform(h){var b;const m=kt();wa(m,h);for(let A=0;A<this.path.length;A++){const S=this.path[A];if(!Rr(S.latestValues))continue;let v;S.instance&&(Ag(S.latestValues)&&S.updateSnapshot(),v=kt(),wa(v,S.measurePageBox())),QE(m,S.latestValues,(b=S.snapshot)==null?void 0:b.layoutBox,v)}return Rr(this.latestValues)&&QE(m,this.latestValues),m}setTargetDelta(h){this.targetDelta=h,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(h){this.options={...this.options,...h,crossfade:h.crossfade!==void 0?h.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Jt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(h=!1){var x;const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const b=!!this.resumingFrom||this!==m;if(!(h||b&&this.isSharedProjectionDirty||this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:S,layoutId:v}=this.options;if(!this.layout||!(S||v))return;this.resolvedRelativeTargetAt=Jt.timestamp;const y=this.getClosestProjectingParent();y&&this.linkedParentVersion!==y.layoutVersion&&!y.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&y&&y.layout?this.createRelativeTarget(y,this.layout.layoutBox,y.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=kt(),this.targetWithTransforms=kt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ez(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):wa(this.target,this.layout.layoutBox),nR(this.target,this.targetDelta)):wa(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?this.createRelativeTarget(y,this.target,y.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Ag(this.parent.latestValues)||tR(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(h,m,b){this.relativeParent=h,this.linkedParentVersion=h.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kt(),this.relativeTargetOrigin=kt(),Vd(this.relativeTargetOrigin,m,b,this.options.layoutAnchor||void 0),wa(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var R;const h=this.getLead(),m=!!this.resumingFrom||this!==h;let b=!0;if((this.isProjectionDirty||(R=this.parent)!=null&&R.isProjectionDirty)&&(b=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(b=!1),this.resolvedRelativeTargetAt===Jt.timestamp&&(b=!1),b)return;const{layout:A,layoutId:S}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(A||S))return;wa(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,y=this.treeScale.y;K3(this.layoutCorrected,this.treeScale,this.path,m),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=kt());const{target:x}=h;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(YE(this.prevProjectionDelta.x,this.projectionDelta.x),YE(this.prevProjectionDelta.y,this.projectionDelta.y)),Vu(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==y||!KE(this.projectionDelta.x,this.prevProjectionDelta.x)||!KE(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(h=!0){var m;if((m=this.options.visualElement)==null||m.scheduleRender(),h){const b=this.getStack();b&&b.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ys(),this.projectionDelta=Ys(),this.projectionDeltaWithTransform=Ys()}setAnimationOrigin(h,m=!1){const b=this.snapshot,A=b?b.latestValues:{},S={...this.latestValues},v=Ys();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const y=kt(),x=b?b.source:void 0,R=this.layout?this.layout.source:void 0,L=x!==R,U=this.getStack(),B=!U||U.members.length<=1,$=!!(L&&!B&&this.options.crossfade===!0&&!this.path.some(Wz));this.animationProgress=0;let P;this.mixTargetDelta=F=>{const ae=F/1e3;ix(v.x,h.x,ae),ix(v.y,h.y,ae),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Vd(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Kz(this.relativeTarget,this.relativeTargetOrigin,y,ae),P&&Mz(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=kt()),wa(P,this.relativeTarget)),L&&(this.animationValues=S,Oz(S,A,this.latestValues,ae,$,B)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=ae},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){var m,b,A;this.notifyListeners("animationStart"),(m=this.currentAnimation)==null||m.stop(),(A=(b=this.resumingFrom)==null?void 0:b.currentAnimation)==null||A.stop(),this.pendingAnimation&&(Vi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=st.update(()=>{Rd.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ps(0)),this.motionValue.jump(0,!1),this.currentAnimation=zz(this.motionValue,[0,1e3],{...h,velocity:0,isSync:!0,onUpdate:S=>{this.mixTargetDelta(S),h.onUpdate&&h.onUpdate(S)},onStop:()=>{},onComplete:()=>{h.onComplete&&h.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const h=this.getStack();h&&h.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Lz),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:m,target:b,layout:A,latestValues:S}=h;if(!(!m||!b||!A)){if(this!==h&&this.layout&&A&&SR(this.options.animationType,this.layout.layoutBox,A.layoutBox)){b=this.target||kt();const v=gn(this.layout.layoutBox.x);b.x.min=h.target.x.min,b.x.max=b.x.min+v;const y=gn(this.layout.layoutBox.y);b.y.min=h.target.y.min,b.y.max=b.y.min+y}wa(m,b),xd(m,S),Vu(this.projectionDeltaWithTransform,this.layoutCorrected,m,S)}}registerSharedNode(h,m){this.sharedNodes.has(h)||this.sharedNodes.set(h,new kz),this.sharedNodes.get(h).add(m);const A=m.options.initialPromotionConfig;m.promote({transition:A?A.transition:void 0,preserveFollowOpacity:A&&A.shouldPreserveFollowOpacity?A.shouldPreserveFollowOpacity(m):void 0})}isLead(){const h=this.getStack();return h?h.lead===this:!0}getLead(){var m;const{layoutId:h}=this.options;return h?((m=this.getStack())==null?void 0:m.lead)||this:this}getPrevLead(){var m;const{layoutId:h}=this.options;return h?(m=this.getStack())==null?void 0:m.prevLead:void 0}getStack(){const{layoutId:h}=this.options;if(h)return this.root.sharedNodes.get(h)}promote({needsReset:h,transition:m,preserveFollowOpacity:b}={}){const A=this.getStack();A&&A.promote(this,b),h&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const h=this.getStack();return h?h.relegate(this):!1}resetSkewAndRotation(){const{visualElement:h}=this.options;if(!h)return;let m=!1;const{latestValues:b}=h;if((b.z||b.rotate||b.rotateX||b.rotateY||b.rotateZ||b.skewX||b.skewY)&&(m=!0),!m)return;const A={};b.z&&Py("z",h,A,this.animationValues);for(let S=0;S<Gy.length;S++)Py(`rotate${Gy[S]}`,h,A,this.animationValues),Py(`skew${Gy[S]}`,h,A,this.animationValues);h.render();for(const S in A)h.setStaticValue(S,A[S]),this.animationValues&&(this.animationValues[S]=A[S]);h.scheduleRender()}applyProjectionStyles(h,m){if(!this.instance||this.isSVG)return;if(!this.isVisible){h.visibility="hidden";return}const b=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,h.visibility="",h.opacity="",h.pointerEvents=wd(m==null?void 0:m.pointerEvents)||"",h.transform=b?b(this.latestValues,""):"none";return}const A=this.getLead();if(!this.projectionDelta||!this.layout||!A.target){this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=wd(m==null?void 0:m.pointerEvents)||""),this.hasProjected&&!Rr(this.latestValues)&&(h.transform=b?b({},""):"none",this.hasProjected=!1);return}h.visibility="";const S=A.animationValues||A.latestValues;this.applyTransformsToTarget();let v=Cz(this.projectionDeltaWithTransform,this.treeScale,S);b&&(v=b(S,v)),h.transform=v;const{x:y,y:x}=this.projectionDelta;h.transformOrigin=`${y.origin*100}% ${x.origin*100}% 0`,A.animationValues?h.opacity=A===this?S.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:S.opacityExit:h.opacity=A===this?S.opacity!==void 0?S.opacity:"":S.opacityExit!==void 0?S.opacityExit:0;for(const R in xg){if(S[R]===void 0)continue;const{correct:L,applyTo:U,isCSSVariable:B}=xg[R],$=v==="none"?S[R]:L(S[R],A);if(U){const P=U.length;for(let F=0;F<P;F++)h[U[F]]=$}else B?this.options.visualElement.renderState.vars[R]=$:h[R]=$}this.options.layoutId&&(h.pointerEvents=A===this?wd(m==null?void 0:m.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>{var m;return(m=h.currentAnimation)==null?void 0:m.stop()}),this.root.nodes.forEach(nx),this.root.sharedNodes.clear()}}}function Hz(o){o.updateLayout()}function Yz(o){var l;const i=((l=o.resumeFrom)==null?void 0:l.snapshot)||o.snapshot;if(o.isLead()&&o.layout&&i&&o.hasListeners("didUpdate")){const{layoutBox:u,measuredBox:f}=o.layout,{animationType:p}=o.options,h=i.source!==o.layout.source;if(p==="size")io(v=>{const y=h?i.measuredBox[v]:i.layoutBox[v],x=gn(y);y.min=u[v].min,y.max=y.min+x});else if(p==="x"||p==="y"){const v=p==="x"?"y":"x";wg(h?i.measuredBox[v]:i.layoutBox[v],u[v])}else SR(p,i.layoutBox,u)&&io(v=>{const y=h?i.measuredBox[v]:i.layoutBox[v],x=gn(u[v]);y.max=y.min+x,o.relativeTarget&&!o.currentAnimation&&(o.isProjectionDirty=!0,o.relativeTarget[v].max=o.relativeTarget[v].min+x)});const m=Ys();Vu(m,u,i.layoutBox);const b=Ys();h?Vu(b,o.applyTransform(f,!0),i.measuredBox):Vu(b,u,i.layoutBox);const A=!pR(m);let S=!1;if(!o.resumeFrom){const v=o.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:y,layout:x}=v;if(y&&x){const R=o.options.layoutAnchor||void 0,L=kt();Vd(L,i.layoutBox,y.layoutBox,R);const U=kt();Vd(U,u,x.layoutBox,R),mR(L,U)||(S=!0),v.options.layoutRoot&&(o.relativeTarget=U,o.relativeTargetOrigin=L,o.relativeParent=v)}}}o.notifyListeners("didUpdate",{layout:u,snapshot:i,delta:b,layoutDelta:m,hasLayoutChanged:A,hasRelativeLayoutChanged:S})}else if(o.isLead()){const{onExitComplete:u}=o.options;u&&u()}o.options.transition=void 0}function qz(o){o.parent&&(o.isProjecting()||(o.isProjectionDirty=o.parent.isProjectionDirty),o.isSharedProjectionDirty||(o.isSharedProjectionDirty=!!(o.isProjectionDirty||o.parent.isProjectionDirty||o.parent.isSharedProjectionDirty)),o.isTransformDirty||(o.isTransformDirty=o.parent.isTransformDirty))}function Gz(o){o.isProjectionDirty=o.isSharedProjectionDirty=o.isTransformDirty=!1}function Pz(o){o.clearSnapshot()}function nx(o){o.clearMeasurements()}function $z(o){o.isLayoutDirty=!0,o.updateLayout()}function ax(o){o.isLayoutDirty=!1}function Xz(o){o.isAnimationBlocked&&o.layout&&!o.isLayoutDirty&&(o.snapshot=o.layout,o.isLayoutDirty=!0)}function Qz(o){const{visualElement:i}=o.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),o.resetTransform()}function ox(o){o.finishAnimation(),o.targetDelta=o.relativeTarget=o.target=void 0,o.isProjectionDirty=!0}function Zz(o){o.resolveTargetDelta()}function Iz(o){o.calcProjection()}function Fz(o){o.resetSkewAndRotation()}function Jz(o){o.removeLeadSnapshot()}function ix(o,i,l){o.translate=ht(i.translate,0,l),o.scale=ht(i.scale,1,l),o.origin=i.origin,o.originPoint=i.originPoint}function rx(o,i,l,u){o.min=ht(i.min,l.min,u),o.max=ht(i.max,l.max,u)}function Kz(o,i,l,u){rx(o.x,i.x,l.x,u),rx(o.y,i.y,l.y,u)}function Wz(o){return o.animationValues&&o.animationValues.opacityExit!==void 0}const e5={duration:.45,ease:[.4,0,.1,1]},sx=o=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(o),lx=sx("applewebkit/")&&!sx("chrome/")?Math.round:ra;function ux(o){o.min=lx(o.min),o.max=lx(o.max)}function t5(o){ux(o.x),ux(o.y)}function SR(o,i,l){return o==="position"||o==="preserve-aspect"&&!Az(JE(i),JE(l),.2)}function n5(o){var i;return o!==o.root&&((i=o.scroll)==null?void 0:i.wasRoot)}const a5=bR({attachResizeListener:(o,i)=>Yu(o,"resize",i),measureScroll:()=>{var o,i;return{x:document.documentElement.scrollLeft||((o=document.body)==null?void 0:o.scrollLeft)||0,y:document.documentElement.scrollTop||((i=document.body)==null?void 0:i.scrollTop)||0}},checkIsScrollRoot:()=>!0}),$y={current:void 0},TR=bR({measureScroll:o=>({x:o.scrollLeft,y:o.scrollTop}),defaultParent:()=>{if(!$y.current){const o=new a5({});o.mount(window),o.setOptions({layoutScroll:!0}),$y.current=o}return $y.current},resetTransform:(o,i)=>{o.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:o=>window.getComputedStyle(o).position==="fixed"}),rv=w.createContext({transformPagePoint:o=>o,isStatic:!1,reducedMotion:"never"});function cx(o,i){if(typeof o=="function")return o(i);o!=null&&(o.current=i)}function o5(...o){return i=>{let l=!1;const u=o.map(f=>{const p=cx(f,i);return!l&&typeof p=="function"&&(l=!0),p});if(l)return()=>{for(let f=0;f<u.length;f++){const p=u[f];typeof p=="function"?p():cx(o[f],null)}}}}function i5(...o){return w.useCallback(o5(...o),o)}class r5 extends w.Component{getSnapshotBeforeUpdate(i){const l=this.props.childRef.current;if(Sd(l)&&i.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const u=l.offsetParent,f=Sd(u)&&u.offsetWidth||0,p=Sd(u)&&u.offsetHeight||0,h=getComputedStyle(l),m=this.props.sizeRef.current;m.height=parseFloat(h.height),m.width=parseFloat(h.width),m.top=l.offsetTop,m.left=l.offsetLeft,m.right=f-m.width-m.left,m.bottom=p-m.height-m.top}return null}componentDidUpdate(){}render(){return this.props.children}}function s5({children:o,isPresent:i,anchorX:l,anchorY:u,root:f,pop:p}){var y;const h=w.useId(),m=w.useRef(null),b=w.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:A}=w.useContext(rv),S=((y=o.props)==null?void 0:y.ref)??(o==null?void 0:o.ref),v=i5(m,S);return w.useInsertionEffect(()=>{const{width:x,height:R,top:L,left:U,right:B,bottom:$}=b.current;if(i||p===!1||!m.current||!x||!R)return;const P=l==="left"?`left: ${U}`:`right: ${B}`,F=u==="bottom"?`bottom: ${$}`:`top: ${L}`;m.current.dataset.motionPopId=h;const ae=document.createElement("style");A&&(ae.nonce=A);const re=f??document.head;return re.appendChild(ae),ae.sheet&&ae.sheet.insertRule(`
|
|
289
|
+
[data-motion-pop-id="${h}"] {
|
|
290
|
+
position: absolute !important;
|
|
291
|
+
width: ${x}px !important;
|
|
292
|
+
height: ${R}px !important;
|
|
293
|
+
${P}px !important;
|
|
294
|
+
${F}px !important;
|
|
295
|
+
}
|
|
296
|
+
`),()=>{var ie;(ie=m.current)==null||ie.removeAttribute("data-motion-pop-id"),re.contains(ae)&&re.removeChild(ae)}},[i]),O.jsx(r5,{isPresent:i,childRef:m,sizeRef:b,pop:p,children:p===!1?o:w.cloneElement(o,{ref:v})})}const l5=({children:o,initial:i,isPresent:l,onExitComplete:u,custom:f,presenceAffectsLayout:p,mode:h,anchorX:m,anchorY:b,root:A})=>{const S=Ug(u5),v=w.useId();let y=!0,x=w.useMemo(()=>(y=!1,{id:v,initial:i,isPresent:l,custom:f,onExitComplete:R=>{S.set(R,!0);for(const L of S.values())if(!L)return;u&&u()},register:R=>(S.set(R,!1),()=>S.delete(R))}),[l,S,u]);return p&&y&&(x={...x}),w.useMemo(()=>{S.forEach((R,L)=>S.set(L,!1))},[l]),w.useEffect(()=>{!l&&!S.size&&u&&u()},[l]),o=O.jsx(s5,{pop:h==="popLayout",isPresent:l,anchorX:m,anchorY:b,root:A,children:o}),O.jsx(Yd.Provider,{value:x,children:o})};function u5(){return new Map}function AR(o=!0){const i=w.useContext(Yd);if(i===null)return[!0,null];const{isPresent:l,onExitComplete:u,register:f}=i,p=w.useId();w.useEffect(()=>{if(o)return f(p)},[o]);const h=w.useCallback(()=>o&&u&&u(p),[p,u,o]);return!l&&u?[!1,h]:[!0]}const fd=o=>o.key||"";function fx(o){const i=[];return w.Children.forEach(o,l=>{w.isValidElement(l)&&i.push(l)}),i}const kd=({children:o,custom:i,initial:l=!0,onExitComplete:u,presenceAffectsLayout:f=!0,mode:p="sync",propagate:h=!1,anchorX:m="left",anchorY:b="top",root:A})=>{const[S,v]=AR(h),y=w.useMemo(()=>fx(o),[o]),x=h&&!S?[]:y.map(fd),R=w.useRef(!0),L=w.useRef(y),U=Ug(()=>new Map),B=w.useRef(new Set),[$,P]=w.useState(y),[F,ae]=w.useState(y);Ix(()=>{R.current=!1,L.current=y;for(let J=0;J<F.length;J++){const I=fd(F[J]);x.includes(I)?(U.delete(I),B.current.delete(I)):U.get(I)!==!0&&U.set(I,!1)}},[F,x.length,x.join("-")]);const re=[];if(y!==$){let J=[...y];for(let I=0;I<F.length;I++){const q=F[I],oe=fd(q);x.includes(oe)||(J.splice(I,0,q),re.push(q))}return p==="wait"&&re.length&&(J=re),ae(fx(J)),P(y),null}p==="wait"&&F.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:ie}=w.useContext(Ng);return O.jsx(O.Fragment,{children:F.map(J=>{const I=fd(J),q=h&&!S?!1:y===F||x.includes(I),oe=()=>{if(B.current.has(I))return;if(U.has(I))B.current.add(I),U.set(I,!0);else return;let V=!0;U.forEach(W=>{W||(V=!1)}),V&&(ie==null||ie(),ae(L.current),h&&(v==null||v()),u&&u())};return O.jsx(l5,{isPresent:q,initial:!R.current||l?void 0:!1,custom:i,presenceAffectsLayout:f,mode:p,root:A,onExitComplete:q?void 0:oe,anchorX:m,anchorY:b,children:J},I)})})},ER=w.createContext({strict:!1}),dx={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let hx=!1;function c5(){if(hx)return;const o={};for(const i in dx)o[i]={isEnabled:l=>dx[i].some(u=>!!l[u])};Kw(o),hx=!0}function xR(){return c5(),Z3()}function f5(o){const i=xR();for(const l in o)i[l]={...i[l],...o[l]};Kw(i)}const d5=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Ld(o){return o.startsWith("while")||o.startsWith("drag")&&o!=="draggable"||o.startsWith("layout")||o.startsWith("onTap")||o.startsWith("onPan")||o.startsWith("onLayout")||d5.has(o)}let wR=o=>!Ld(o);function h5(o){typeof o=="function"&&(wR=i=>i.startsWith("on")?!Ld(i):o(i))}try{h5(require("@emotion/is-prop-valid").default)}catch{}function p5(o,i,l){const u={};for(const f in o)f==="values"&&typeof o.values=="object"||Kt(o[f])||(wR(f)||l===!0&&Ld(f)||!i&&!Ld(f)||o.draggable&&f.startsWith("onDrag"))&&(u[f]=o[f]);return u}const Xd=w.createContext({});function m5(o,i){if($d(o)){const{initial:l,animate:u}=o;return{initial:l===!1||Hu(l)?l:void 0,animate:Hu(u)?u:void 0}}return o.inherit!==!1?i:{}}function y5(o){const{initial:i,animate:l}=m5(o,w.useContext(Xd));return w.useMemo(()=>({initial:i,animate:l}),[px(i),px(l)])}function px(o){return Array.isArray(o)?o.join(" "):o}const sv=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function RR(o,i,l){for(const u in i)!Kt(i[u])&&!iR(u,l)&&(o[u]=i[u])}function g5({transformTemplate:o},i){return w.useMemo(()=>{const l=sv();return ov(l,i,o),Object.assign({},l.vars,l.style)},[i])}function v5(o,i){const l=o.style||{},u={};return RR(u,l,o),Object.assign(u,g5(o,i)),u}function b5(o,i){const l={},u=v5(o,i);return o.drag&&o.dragListener!==!1&&(l.draggable=!1,u.userSelect=u.WebkitUserSelect=u.WebkitTouchCallout="none",u.touchAction=o.drag===!0?"none":`pan-${o.drag==="x"?"y":"x"}`),o.tabIndex===void 0&&(o.onTap||o.onTapStart||o.whileTap)&&(l.tabIndex=0),l.style=u,l}const MR=()=>({...sv(),attrs:{}});function S5(o,i,l,u){const f=w.useMemo(()=>{const p=MR();return rR(p,i,lR(u),o.transformTemplate,o.style),{...p.attrs,style:{...p.style}}},[i]);if(o.style){const p={};RR(p,o.style,o),f.style={...p,...f.style}}return f}const T5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function lv(o){return typeof o!="string"||o.includes("-")?!1:!!(T5.indexOf(o)>-1||/[A-Z]/u.test(o))}function A5(o,i,l,{latestValues:u},f,p=!1,h){const b=(h??lv(o)?S5:b5)(i,u,f,o),A=p5(i,typeof o=="string",p),S=o!==w.Fragment?{...A,...b,ref:l}:{},{children:v}=i,y=w.useMemo(()=>Kt(v)?v.get():v,[v]);return w.createElement(o,{...S,children:y})}function E5({scrapeMotionValuesFromProps:o,createRenderState:i},l,u,f){return{latestValues:x5(l,u,f,o),renderState:i()}}function x5(o,i,l,u){const f={},p=u(o,{});for(const y in p)f[y]=wd(p[y]);let{initial:h,animate:m}=o;const b=$d(o),A=Fw(o);i&&A&&!b&&o.inherit!==!1&&(h===void 0&&(h=i.initial),m===void 0&&(m=i.animate));let S=l?l.initial===!1:!1;S=S||h===!1;const v=S?m:h;if(v&&typeof v!="boolean"&&!Pd(v)){const y=Array.isArray(v)?v:[v];for(let x=0;x<y.length;x++){const R=Ig(o,y[x]);if(R){const{transitionEnd:L,transition:U,...B}=R;for(const $ in B){let P=B[$];if(Array.isArray(P)){const F=S?P.length-1:0;P=P[F]}P!==null&&(f[$]=P)}for(const $ in L)f[$]=L[$]}}}return f}const CR=o=>(i,l)=>{const u=w.useContext(Xd),f=w.useContext(Yd),p=()=>E5(o,i,u,f);return l?p():Ug(p)},w5=CR({scrapeMotionValuesFromProps:iv,createRenderState:sv}),R5=CR({scrapeMotionValuesFromProps:uR,createRenderState:MR}),M5=Symbol.for("motionComponentSymbol");function C5(o,i,l){const u=w.useRef(l);w.useInsertionEffect(()=>{u.current=l});const f=w.useRef(null);return w.useCallback(p=>{var m;p&&((m=o.onMount)==null||m.call(o,p));const h=u.current;if(typeof h=="function")if(p){const b=h(p);typeof b=="function"&&(f.current=b)}else f.current?(f.current(),f.current=null):h(p);else h&&(h.current=p);i&&(p?i.mount(p):i.unmount())},[i])}const DR=w.createContext({});function ks(o){return o&&typeof o=="object"&&Object.prototype.hasOwnProperty.call(o,"current")}function D5(o,i,l,u,f,p){var P,F;const{visualElement:h}=w.useContext(Xd),m=w.useContext(ER),b=w.useContext(Yd),A=w.useContext(rv),S=A.reducedMotion,v=A.skipAnimations,y=w.useRef(null),x=w.useRef(!1);u=u||m.renderer,!y.current&&u&&(y.current=u(o,{visualState:i,parent:h,props:l,presenceContext:b,blockInitialAnimation:b?b.initial===!1:!1,reducedMotionConfig:S,skipAnimations:v,isSVG:p}),x.current&&y.current&&(y.current.manuallyAnimateOnMount=!0));const R=y.current,L=w.useContext(DR);R&&!R.projection&&f&&(R.type==="html"||R.type==="svg")&&O5(y.current,l,f,L);const U=w.useRef(!1);w.useInsertionEffect(()=>{R&&U.current&&R.update(l,b)});const B=l[kw],$=w.useRef(!!B&&typeof window<"u"&&!((P=window.MotionHandoffIsComplete)!=null&&P.call(window,B))&&((F=window.MotionHasOptimisedAnimation)==null?void 0:F.call(window,B)));return Ix(()=>{x.current=!0,R&&(U.current=!0,window.MotionIsMounted=!0,R.updateFeatures(),R.scheduleRenderMicrotask(),$.current&&R.animationState&&R.animationState.animateChanges())}),w.useEffect(()=>{R&&(!$.current&&R.animationState&&R.animationState.animateChanges(),$.current&&(queueMicrotask(()=>{var ae;(ae=window.MotionHandoffMarkAsComplete)==null||ae.call(window,B)}),$.current=!1),R.enteringChildren=void 0)}),R}function O5(o,i,l,u){const{layoutId:f,layout:p,drag:h,dragConstraints:m,layoutScroll:b,layoutRoot:A,layoutAnchor:S,layoutCrossfade:v}=i;o.projection=new l(o.latestValues,i["data-framer-portal-id"]?void 0:OR(o.parent)),o.projection.setOptions({layoutId:f,layout:p,alwaysMeasureLayout:!!h||m&&ks(m),visualElement:o,animationType:typeof p=="string"?p:"both",initialPromotionConfig:u,crossfade:v,layoutScroll:b,layoutRoot:A,layoutAnchor:S})}function OR(o){if(o)return o.options.allowProjection!==!1?o.projection:OR(o.parent)}function Xy(o,{forwardMotionProps:i=!1,type:l}={},u,f){u&&f5(u);const p=l?l==="svg":lv(o),h=p?R5:w5;function m(A,S){let v;const y={...w.useContext(rv),...A,layoutId:_5(A)},{isStatic:x}=y,R=y5(A),L=h(A,x);if(!x&&typeof window<"u"){j5(y,u);const U=z5(y);v=U.MeasureLayout,R.visualElement=D5(o,L,y,f,U.ProjectionNode,p)}return O.jsxs(Xd.Provider,{value:R,children:[v&&R.visualElement?O.jsx(v,{visualElement:R.visualElement,...y}):null,A5(o,A,C5(L,R.visualElement,S),L,x,i,p)]})}m.displayName=`motion.${typeof o=="string"?o:`create(${o.displayName??o.name??""})`}`;const b=w.forwardRef(m);return b[M5]=o,b}function _5({layoutId:o}){const i=w.useContext(Ng).id;return i&&o!==void 0?i+"-"+o:o}function j5(o,i){const l=w.useContext(ER).strict;if(i&&l){const u="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";o.ignoreStrict?Xs(!1,u,"lazy-strict-mode"):Yo(!1,u,"lazy-strict-mode")}}function z5(o){const i=xR(),{drag:l,layout:u}=i;if(!l&&!u)return{};const f={...l,...u};return{MeasureLayout:l!=null&&l.isEnabled(o)||u!=null&&u.isEnabled(o)?f.MeasureLayout:void 0,ProjectionNode:f.ProjectionNode}}function N5(o,i){if(typeof Proxy>"u")return Xy;const l=new Map,u=(p,h)=>Xy(p,h,o,i),f=(p,h)=>(qd(!1,"motion() is deprecated. Use motion.create() instead."),u(p,h));return new Proxy(f,{get:(p,h)=>h==="create"?u:(l.has(h)||l.set(h,Xy(h,void 0,o,i)),l.get(h))})}const U5=(o,i)=>i.isSVG??lv(o)?new fz(i):new iz(i,{allowProjection:o!==w.Fragment});class V5 extends ki{constructor(i){super(i),i.animationState||(i.animationState=yz(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Pd(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:l}=this.node.prevProps||{};i!==l&&this.updateAnimationControlsSubscription()}unmount(){var i;this.node.animationState.reset(),(i=this.unmountControls)==null||i.call(this)}}let k5=0;class L5 extends ki{constructor(){super(...arguments),this.id=k5++,this.isExitComplete=!1}update(){var p;if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:l}=this.node.presenceContext,{isPresent:u}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===u)return;if(i&&u===!1){if(this.isExitComplete){const{initial:h,custom:m}=this.node.getProps();if(typeof h=="string"){const b=Or(this.node,h,m);if(b){const{transition:A,transitionEnd:S,...v}=b;for(const y in v)(p=this.node.getValue(y))==null||p.jump(v[y])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const f=this.node.animationState.setActive("exit",!i);l&&!i&&f.then(()=>{this.isExitComplete=!0,l(this.id)})}mount(){const{register:i,onExitComplete:l}=this.node.presenceContext||{};l&&l(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const B5={animation:{Feature:V5},exit:{Feature:L5}};function Qu(o){return{point:{x:o.pageX,y:o.pageY}}}const H5=o=>i=>Wg(i)&&o(i,Qu(i));function ku(o,i,l,u){return Yu(o,i,H5(l),u)}const _R=({current:o})=>o?o.ownerDocument.defaultView:null,mx=(o,i)=>Math.abs(o-i);function Y5(o,i){const l=mx(o.x,i.x),u=mx(o.y,i.y);return Math.sqrt(l**2+u**2)}const yx=new Set(["auto","scroll"]);class jR{constructor(i,l,{transformPagePoint:u,contextWindow:f=window,dragSnapToOrigin:p=!1,distanceThreshold:h=3,element:m}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=dd(this.lastRawMoveEventInfo,this.transformPagePoint));const x=Qy(this.lastMoveEventInfo,this.history),R=this.startEvent!==null,L=Y5(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!R&&!L)return;const{point:U}=x,{timestamp:B}=Jt;this.history.push({...U,timestamp:B});const{onStart:$,onMove:P}=this.handlers;R||($&&$(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),P&&P(this.lastMoveEvent,x)},this.handlePointerMove=(x,R)=>{this.lastMoveEvent=x,this.lastRawMoveEventInfo=R,this.lastMoveEventInfo=dd(R,this.transformPagePoint),st.update(this.updatePoint,!0)},this.handlePointerUp=(x,R)=>{this.end();const{onEnd:L,onSessionEnd:U,resumeAnimation:B}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&B&&B(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const $=Qy(x.type==="pointercancel"?this.lastMoveEventInfo:dd(R,this.transformPagePoint),this.history);this.startEvent&&L&&L(x,$),U&&U(x,$)},!Wg(i))return;this.dragSnapToOrigin=p,this.handlers=l,this.transformPagePoint=u,this.distanceThreshold=h,this.contextWindow=f||window;const b=Qu(i),A=dd(b,this.transformPagePoint),{point:S}=A,{timestamp:v}=Jt;this.history=[{...S,timestamp:v}];const{onSessionStart:y}=l;y&&y(i,Qy(A,this.history)),this.removeListeners=Pu(ku(this.contextWindow,"pointermove",this.handlePointerMove),ku(this.contextWindow,"pointerup",this.handlePointerUp),ku(this.contextWindow,"pointercancel",this.handlePointerUp)),m&&this.startScrollTracking(m)}startScrollTracking(i){let l=i.parentElement;for(;l;){const u=getComputedStyle(l);(yx.has(u.overflowX)||yx.has(u.overflowY))&&this.scrollPositions.set(l,{x:l.scrollLeft,y:l.scrollTop}),l=l.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(i){const l=this.scrollPositions.get(i);if(!l)return;const u=i===window,f=u?{x:window.scrollX,y:window.scrollY}:{x:i.scrollLeft,y:i.scrollTop},p={x:f.x-l.x,y:f.y-l.y};p.x===0&&p.y===0||(u?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=p.x,this.lastMoveEventInfo.point.y+=p.y):this.history.length>0&&(this.history[0].x-=p.x,this.history[0].y-=p.y),this.scrollPositions.set(i,f),st.update(this.updatePoint,!0))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Vi(this.updatePoint)}}function dd(o,i){return i?{point:i(o.point)}:o}function gx(o,i){return{x:o.x-i.x,y:o.y-i.y}}function Qy({point:o},i){return{point:o,delta:gx(o,zR(i)),offset:gx(o,q5(i)),velocity:G5(i,.1)}}function q5(o){return o[0]}function zR(o){return o[o.length-1]}function G5(o,i){if(o.length<2)return{x:0,y:0};let l=o.length-1,u=null;const f=zR(o);for(;l>=0&&(u=o[l],!(f.timestamp-u.timestamp>Rn(i)));)l--;if(!u)return{x:0,y:0};u===o[0]&&o.length>2&&f.timestamp-u.timestamp>Rn(i)*2&&(u=o[1]);const p=ia(f.timestamp-u.timestamp);if(p===0)return{x:0,y:0};const h={x:(f.x-u.x)/p,y:(f.y-u.y)/p};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function P5(o,{min:i,max:l},u){return i!==void 0&&o<i?o=u?ht(i,o,u.min):Math.max(o,i):l!==void 0&&o>l&&(o=u?ht(l,o,u.max):Math.min(o,l)),o}function vx(o,i,l){return{min:i!==void 0?o.min+i:void 0,max:l!==void 0?o.max+l-(o.max-o.min):void 0}}function $5(o,{top:i,left:l,bottom:u,right:f}){return{x:vx(o.x,l,f),y:vx(o.y,i,u)}}function bx(o,i){let l=i.min-o.min,u=i.max-o.max;return i.max-i.min<o.max-o.min&&([l,u]=[u,l]),{min:l,max:u}}function X5(o,i){return{x:bx(o.x,i.x),y:bx(o.y,i.y)}}function Q5(o,i){let l=.5;const u=gn(o),f=gn(i);return f>u?l=Lu(i.min,i.max-u,o.min):u>f&&(l=Lu(o.min,o.max-f,i.min)),lo(0,1,l)}function Z5(o,i){const l={};return i.min!==void 0&&(l.min=i.min-o.min),i.max!==void 0&&(l.max=i.max-o.min),l}const Rg=.35;function I5(o=Rg){return o===!1?o=0:o===!0&&(o=Rg),{x:Sx(o,"left","right"),y:Sx(o,"top","bottom")}}function Sx(o,i,l){return{min:Tx(o,i),max:Tx(o,l)}}function Tx(o,i){return typeof o=="number"?o:o[i]||0}const F5=new WeakMap;class J5{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=kt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:l=!1,distanceThreshold:u}={}){const{presenceContext:f}=this.visualElement;if(f&&f.isPresent===!1)return;const p=v=>{l&&this.snapToCursor(Qu(v).point),this.stopAnimation()},h=(v,y)=>{const{drag:x,dragPropagation:R,onDragStart:L}=this.getProps();if(x&&!R&&(this.openDragLock&&this.openDragLock(),this.openDragLock=w3(x),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=y,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),io(B=>{let $=this.getAxisMotionValue(B).get()||0;if(so.test($)){const{projection:P}=this.visualElement;if(P&&P.layout){const F=P.layout.layoutBox[B];F&&($=gn(F)*(parseFloat($)/100))}}this.originPoint[B]=$}),L&&st.update(()=>L(v,y),!1,!0),vg(this.visualElement,"transform");const{animationState:U}=this.visualElement;U&&U.setActive("whileDrag",!0)},m=(v,y)=>{this.latestPointerEvent=v,this.latestPanInfo=y;const{dragPropagation:x,dragDirectionLock:R,onDirectionLock:L,onDrag:U}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:B}=y;if(R&&this.currentDirection===null){this.currentDirection=W5(B),this.currentDirection!==null&&L&&L(this.currentDirection);return}this.updateAxis("x",y.point,B),this.updateAxis("y",y.point,B),this.visualElement.render(),U&&st.update(()=>U(v,y),!1,!0)},b=(v,y)=>{this.latestPointerEvent=v,this.latestPanInfo=y,this.stop(v,y),this.latestPointerEvent=null,this.latestPanInfo=null},A=()=>{const{dragSnapToOrigin:v}=this.getProps();(v||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:S}=this.getProps();this.panSession=new jR(i,{onSessionStart:p,onStart:h,onMove:m,onSessionEnd:b,resumeAnimation:A},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:S,distanceThreshold:u,contextWindow:_R(this.visualElement),element:this.visualElement.current})}stop(i,l){const u=i||this.latestPointerEvent,f=l||this.latestPanInfo,p=this.isDragging;if(this.cancel(),!p||!f||!u)return;const{velocity:h}=f;this.startAnimation(h);const{onDragEnd:m}=this.getProps();m&&st.postRender(()=>m(u,f))}cancel(){this.isDragging=!1;const{projection:i,animationState:l}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:u}=this.getProps();!u&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),l&&l.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(i,l,u){const{drag:f}=this.getProps();if(!u||!hd(i,f,this.currentDirection))return;const p=this.getAxisMotionValue(i);let h=this.originPoint[i]+u[i];this.constraints&&this.constraints[i]&&(h=P5(h,this.constraints[i],this.elastic[i])),p.set(h)}resolveConstraints(){var p;const{dragConstraints:i,dragElastic:l}=this.getProps(),u=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(p=this.visualElement.projection)==null?void 0:p.layout,f=this.constraints;i&&ks(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&u?this.constraints=$5(u.layoutBox,i):this.constraints=!1,this.elastic=I5(l),f!==this.constraints&&!ks(i)&&u&&this.constraints&&!this.hasMutatedConstraints&&io(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=Z5(u.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:l}=this.getProps();if(!i||!ks(i))return!1;const u=i.current;Yo(u!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:f}=this.visualElement;if(!f||!f.layout)return!1;const p=W3(u,f.root,this.visualElement.getTransformPagePoint());let h=X5(f.layout.layoutBox,p);if(l){const m=l(F3(h));this.hasMutatedConstraints=!!m,m&&(h=eR(m))}return h}startAnimation(i){const{drag:l,dragMomentum:u,dragElastic:f,dragTransition:p,dragSnapToOrigin:h,onDragTransitionEnd:m}=this.getProps(),b=this.constraints||{},A=io(S=>{if(!hd(S,l,this.currentDirection))return;let v=b&&b[S]||{};(h===!0||h===S)&&(v={min:0,max:0});const y=f?200:1e6,x=f?40:1e7,R={type:"inertia",velocity:u?i[S]:0,bounceStiffness:y,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...p,...v};return this.startAxisValueAnimation(S,R)});return Promise.all(A).then(m)}startAxisValueAnimation(i,l){const u=this.getAxisMotionValue(i);return vg(this.visualElement,i),u.start(Zg(i,u,0,l,this.visualElement,!1))}stopAnimation(){io(i=>this.getAxisMotionValue(i).stop())}getAxisMotionValue(i){const l=`_drag${i.toUpperCase()}`,u=this.visualElement.getProps(),f=u[l];return f||this.visualElement.getValue(i,(u.initial?u.initial[i]:void 0)||0)}snapToCursor(i){io(l=>{const{drag:u}=this.getProps();if(!hd(l,u,this.currentDirection))return;const{projection:f}=this.visualElement,p=this.getAxisMotionValue(l);if(f&&f.layout){const{min:h,max:m}=f.layout.layoutBox[l],b=p.get()||0;p.set(i[l]-ht(h,m,.5)+b)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:l}=this.getProps(),{projection:u}=this.visualElement;if(!ks(l)||!u||!this.constraints)return;this.stopAnimation();const f={x:0,y:0};io(h=>{const m=this.getAxisMotionValue(h);if(m&&this.constraints!==!1){const b=m.get();f[h]=Q5({min:b,max:b},this.constraints[h])}});const{transformTemplate:p}=this.visualElement.getProps();this.visualElement.current.style.transform=p?p({},""):"none",u.root&&u.root.updateScroll(),u.updateLayout(),this.constraints=!1,this.resolveConstraints(),io(h=>{if(!hd(h,i,null))return;const m=this.getAxisMotionValue(h),{min:b,max:A}=this.constraints[h];m.set(ht(b,A,f[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;F5.set(this.visualElement,this);const i=this.visualElement.current,l=ku(i,"pointerdown",A=>{const{drag:S,dragListener:v=!0}=this.getProps(),y=A.target,x=y!==i&&_3(y);S&&v&&!x&&this.start(A)});let u;const f=()=>{const{dragConstraints:A}=this.getProps();ks(A)&&A.current&&(this.constraints=this.resolveRefConstraints(),u||(u=K5(i,A.current,()=>this.scalePositionWithinConstraints())))},{projection:p}=this.visualElement,h=p.addEventListener("measure",f);p&&!p.layout&&(p.root&&p.root.updateScroll(),p.updateLayout()),st.read(f);const m=Yu(window,"resize",()=>this.scalePositionWithinConstraints()),b=p.addEventListener("didUpdate",({delta:A,hasLayoutChanged:S})=>{this.isDragging&&S&&(io(v=>{const y=this.getAxisMotionValue(v);y&&(this.originPoint[v]+=A[v].translate,y.set(y.get()+A[v].translate))}),this.visualElement.render())});return()=>{m(),l(),h(),b&&b(),u&&u()}}getProps(){const i=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:u=!1,dragPropagation:f=!1,dragConstraints:p=!1,dragElastic:h=Rg,dragMomentum:m=!0}=i;return{...i,drag:l,dragDirectionLock:u,dragPropagation:f,dragConstraints:p,dragElastic:h,dragMomentum:m}}}function Ax(o){let i=!0;return()=>{if(i){i=!1;return}o()}}function K5(o,i,l){const u=DE(o,Ax(l)),f=DE(i,Ax(l));return()=>{u(),f()}}function hd(o,i,l){return(i===!0||i===o)&&(l===null||l===o)}function W5(o,i=10){let l=null;return Math.abs(o.y)>i?l="y":Math.abs(o.x)>i&&(l="x"),l}class eN extends ki{constructor(i){super(i),this.removeGroupControls=ra,this.removeListeners=ra,this.controls=new J5(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ra}update(){const{dragControls:i}=this.node.getProps(),{dragControls:l}=this.node.prevProps||{};i!==l&&(this.removeGroupControls(),i&&(this.removeGroupControls=i.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Zy=o=>(i,l)=>{o&&st.update(()=>o(i,l),!1,!0)};class tN extends ki{constructor(){super(...arguments),this.removePointerDownListener=ra}onPointerDown(i){this.session=new jR(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:_R(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:l,onPan:u,onPanEnd:f}=this.node.getProps();return{onSessionStart:Zy(i),onStart:Zy(l),onMove:Zy(u),onEnd:(p,h)=>{delete this.session,f&&st.postRender(()=>f(p,h))}}}mount(){this.removePointerDownListener=ku(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Iy=!1;class nN extends w.Component{componentDidMount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:u,layoutId:f}=this.props,{projection:p}=i;p&&(l.group&&l.group.add(p),u&&u.register&&f&&u.register(p),Iy&&p.root.didUpdate(),p.addEventListener("animationComplete",()=>{this.safeToRemove()}),p.setOptions({...p.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Rd.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:l,visualElement:u,drag:f,isPresent:p}=this.props,{projection:h}=u;return h&&(h.isPresent=p,i.layoutDependency!==l&&h.setOptions({...h.options,layoutDependency:l}),Iy=!0,f||i.layoutDependency!==l||l===void 0||i.isPresent!==p?h.willUpdate():this.safeToRemove(),i.isPresent!==p&&(p?h.promote():h.relegate()||st.postRender(()=>{const m=h.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:i,layoutAnchor:l}=this.props,{projection:u}=i;u&&(u.options.layoutAnchor=l,u.root.didUpdate(),Kg.postRender(()=>{!u.currentAnimation&&u.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:u}=this.props,{projection:f}=i;Iy=!0,f&&(f.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(f),u&&u.deregister&&u.deregister(f))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function NR(o){const[i,l]=AR(),u=w.useContext(Ng);return O.jsx(nN,{...o,layoutGroup:u,switchLayoutGroup:w.useContext(DR),isPresent:i,safeToRemove:l})}const aN={pan:{Feature:tN},drag:{Feature:eN,ProjectionNode:TR,MeasureLayout:NR}};function Ex(o,i,l){const{props:u}=o;o.animationState&&u.whileHover&&o.animationState.setActive("whileHover",l==="Start");const f="onHover"+l,p=u[f];p&&st.postRender(()=>p(i,Qu(i)))}class oN extends ki{mount(){const{current:i}=this.node;i&&(this.unmount=M3(i,(l,u)=>(Ex(this.node,u,"Start"),f=>Ex(this.node,f,"End"))))}unmount(){}}class iN extends ki{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Pu(Yu(this.node.current,"focus",()=>this.onFocus()),Yu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function xx(o,i,l){const{props:u}=o;if(o.current instanceof HTMLButtonElement&&o.current.disabled)return;o.animationState&&u.whileTap&&o.animationState.setActive("whileTap",l==="Start");const f="onTap"+(l==="End"?"":l),p=u[f];p&&st.postRender(()=>p(i,Qu(i)))}class rN extends ki{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:l,propagate:u}=this.node.props;this.unmount=z3(i,(f,p)=>(xx(this.node,p,"Start"),(h,{success:m})=>xx(this.node,h,m?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:(u==null?void 0:u.tap)===!1})}unmount(){}}const Mg=new WeakMap,Fy=new WeakMap,sN=o=>{const i=Mg.get(o.target);i&&i(o)},lN=o=>{o.forEach(sN)};function uN({root:o,...i}){const l=o||document;Fy.has(l)||Fy.set(l,{});const u=Fy.get(l),f=JSON.stringify(i);return u[f]||(u[f]=new IntersectionObserver(lN,{root:o,...i})),u[f]}function cN(o,i,l){const u=uN(i);return Mg.set(o,l),u.observe(o),()=>{Mg.delete(o),u.unobserve(o)}}const fN={some:0,all:1};class dN extends ki{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var b;(b=this.stopObserver)==null||b.call(this);const{viewport:i={}}=this.node.getProps(),{root:l,margin:u,amount:f="some",once:p}=i,h={root:l?l.current:void 0,rootMargin:u,threshold:typeof f=="number"?f:fN[f]},m=A=>{const{isIntersecting:S}=A;if(this.isInView===S||(this.isInView=S,p&&!S&&this.hasEnteredView))return;S&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",S);const{onViewportEnter:v,onViewportLeave:y}=this.node.getProps(),x=S?v:y;x&&x(A)};this.stopObserver=cN(this.node.current,h,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:l}=this.node;["amount","margin","root"].some(hN(i,l))&&this.startObserver()}unmount(){var i;(i=this.stopObserver)==null||i.call(this),this.hasEnteredView=!1,this.isInView=!1}}function hN({viewport:o={}},{viewport:i={}}={}){return l=>o[l]!==i[l]}const pN={inView:{Feature:dN},tap:{Feature:rN},focus:{Feature:iN},hover:{Feature:oN}},mN={layout:{ProjectionNode:TR,MeasureLayout:NR}},yN={...B5,...pN,...aN,...mN},Ho=N5(yN,U5);function gN(){!av.current&&Jw();const[o]=w.useState(zd.current);return qd(o!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),o}const UR=w.createContext(null),vN=UR.Provider;function bN(){return w.useContext(UR)}const VR=w.createContext(null),SN=VR.Provider;function TN(){return w.useContext(VR)}function uv(o){const i=o.play();return i instanceof Promise?i:Promise.resolve()}function pd(o,i,l=1){return o.src=i,o.defaultPlaybackRate=l,o.load(),o.playbackRate=l,uv(o)}function AN(o,i,l,u=1,f=!0){o.src=i,o.defaultPlaybackRate=u,o.load(),o.playbackRate=u;const p=()=>{o.currentTime=l,f&&uv(o).catch(()=>{})};o.readyState>=HTMLMediaElement.HAVE_METADATA?p():o.addEventListener("loadedmetadata",p,{once:!0})}function md(o){o.pause(),o.removeAttribute("src"),o.load()}function yd(o){for(const i of o.steps)i!=null&&i.src&&fetch(i.src).catch(()=>{})}function EN({manifest:o,stepIndex:i,playing:l,initialMuted:u=!0,playbackRate:f=1,onClipEnded:p}){const[h,m]=w.useState(u),[b,A]=w.useState(!1),S=w.useRef(null),v=w.useRef(!1),y=w.useCallback(I=>{I.then(()=>A(!1),()=>A(!0))},[]),x=w.useRef(h);x.current=h;const R=w.useRef(l);R.current=l;const L=w.useRef(p);L.current=p;const U=w.useRef(f);U.current=f;const B=(o==null?void 0:o.steps[i])??null,$=(B==null?void 0:B.src)??null,P=w.useRef(!1),F=w.useCallback((I,q)=>{P.current=!0,setTimeout(()=>{P.current=!1},0);const oe=S.current;if(!oe||!o||x.current)return;const V=o.steps[I],W=V==null?void 0:V.src;if(!W)return;const de=(V==null?void 0:V.durationMs)??0;if(q>=de){md(oe);return}AN(oe,W,q/1e3,U.current,R.current)},[o]);w.useEffect(()=>{!o||u||v.current||(yd(o),v.current=!0)},[o,u]),w.useEffect(()=>{const I=S.current;if(!I||!o)return;const q=()=>{var oe;return(oe=L.current)==null?void 0:oe.call(L)};return I.addEventListener("ended",q),()=>I.removeEventListener("ended",q)},[o]),w.useEffect(()=>{if(P.current){P.current=!1;return}const I=S.current;if(!(!I||!o)){if(x.current||!$||!R.current){md(I);return}y(pd(I,$,U.current))}},[i,$,o,y]),w.useEffect(()=>{const I=S.current;!I||!o||x.current||(l?$&&(I.src?y(uv(I)):y(pd(I,$,U.current))):I.pause())},[l,$,o,y]);const ae=w.useCallback(()=>{m(I=>{const q=!I,oe=S.current;return oe&&(q?(md(oe),A(!1)):(o&&!v.current&&(yd(o),v.current=!0),$&&y(pd(oe,$,U.current)))),q})},[$,o,y]),re=w.useCallback(()=>{const I=S.current;!I||x.current||!$||(o&&!v.current&&(yd(o),v.current=!0),y(pd(I,$,U.current)))},[$,o,y]),ie=w.useCallback(I=>{const q=S.current;q&&(q.volume=Math.max(0,Math.min(I,1)))},[]),J=w.useCallback(()=>{!o||v.current||(yd(o),v.current=!0)},[o]);return w.useEffect(()=>{const I=S.current;I&&(I.defaultPlaybackRate=f,I.playbackRate=f)},[f]),w.useEffect(()=>{const I=S.current;return()=>{I&&md(I)}},[]),{muted:h,toggleMute:ae,audioRef:S,seekToStep:F,audioBlocked:b,unlock:re,setVolume:ie,prefetch:J}}const xN=50,wN=1e3;function Jy(o){o.pause(),o.removeAttribute("src"),o.load()}function gd(o){const i=o.play();i instanceof Promise&&i.catch(()=>{})}function RN({manifest:o,stepIndex:i,playing:l,idle:u,muted:f,playbackRate:p,audioRef:h,currentTimeMsRef:m,stepTimeline:b,enabled:A}){const S=w.useRef(null),v=w.useRef(null),y=w.useRef(!1),x=A?(o==null?void 0:o.steps[i])??null:null,R=(x==null?void 0:x.src)??null,L=w.useRef(l);L.current=l;const U=w.useRef(f);U.current=f;const B=w.useRef(p);B.current=p;const $=w.useRef(i);$.current=i;const P=w.useRef(x);P.current=x;const F=w.useRef(b);F.current=b;const ae=w.useRef(o);ae.current=o;const re=w.useRef(!1),ie=w.useCallback(()=>{const V=h.current;if(!U.current&&(V!=null&&V.src))return V.currentTime;const W=F.current.stepStartTimesMs[$.current]??0;return Math.max(0,m.current-W)/1e3},[h,m]),J=w.useCallback(()=>{const V=S.current;!V||!V.src||(V.currentTime=ie())},[ie]),I=w.useCallback(()=>{const V=v.current;if(!V)return;const W=P.current;if(!W){V.style.opacity="0";return}const de=F.current.stepStartTimesMs[$.current]??0;V.style.opacity=String(ng(m.current-de,W.durationMs))},[m]),q=w.useCallback(V=>{typeof V.requestVideoFrameCallback=="function"?V.requestVideoFrameCallback(()=>J()):V.addEventListener("loadeddata",()=>J(),{once:!0})},[J]);w.useEffect(()=>{if(!A)return;if(re.current){re.current=!1;return}const V=S.current;if(V){if(u||!R){Jy(V),I();return}V.src=R,V.defaultPlaybackRate=B.current,V.load(),V.playbackRate=B.current,I(),L.current&&gd(V),q(V)}},[A,u,i,R,q,I]),w.useEffect(()=>{if(!A)return;const V=S.current;if(V){if(!l){V.src&&V.pause(),I();return}if(V.src&&(J(),gd(V)),!y.current&&ae.current){y.current=!0;for(const W of ae.current.steps)W!=null&&W.src&&fetch(W.src).catch(()=>{})}}},[A,l,R,J,I]),w.useEffect(()=>{if(!A)return;const V=S.current;V&&(V.defaultPlaybackRate=p,V.playbackRate=p,V.src&&J())},[A,p,J]),w.useEffect(()=>{if(!A||typeof document>"u")return;const V=()=>{if(document.visibilityState!=="visible")return;const W=S.current;!W||!W.src||(J(),L.current&&gd(W))};return document.addEventListener("visibilitychange",V),()=>document.removeEventListener("visibilitychange",V)},[A,J]),w.useEffect(()=>{if(!A||!l||!R)return;const V=setInterval(()=>{const W=S.current;if(!W||!W.src)return;Math.abs(W.currentTime-ie())*1e3>xN&&J()},wN);return()=>clearInterval(V)},[A,l,R,J,ie]),w.useEffect(()=>{if(!A||!l||!R)return;let V=0;const W=()=>{I(),V=requestAnimationFrame(W)};return V=requestAnimationFrame(W),()=>cancelAnimationFrame(V)},[A,l,R,I]);const oe=w.useCallback((V,W)=>{var Q;if(!A)return;re.current=!0,setTimeout(()=>{re.current=!1},0);const de=S.current;if(!de)return;const Ee=(Q=ae.current)==null?void 0:Q.steps[V];if(!Ee){Jy(de),v.current&&(v.current.style.opacity="0");return}const K=Math.min(W,Ee.durationMs)/1e3,H=()=>{de.currentTime=K,L.current&&gd(de)};de.src!==Ee.src&&(de.src=Ee.src,de.defaultPlaybackRate=B.current,de.load(),de.playbackRate=B.current),de.readyState>=HTMLMediaElement.HAVE_METADATA?H():de.addEventListener("loadedmetadata",H,{once:!0}),v.current&&(v.current.style.opacity=String(ng(W,Ee.durationMs)))},[A]);return w.useEffect(()=>{const V=S.current;return()=>{V&&Jy(V)}},[]),{videoRef:S,frameRef:v,seekToStep:oe}}const wx="data:audio/mpeg;base64,//uQxAAAF9HjTBRmAAMyNfB3KVIC3xERnuI/ggAAAhc7JZPjOBABoTH73vde/YkATA+T38WLFjj97zMzRhevfvlFiyl7r169+80Xv/k62vXrDgwMFnXXv0pSlKUpRevXr179/mbtrzMzM199ve973uvMDzmzszX3xevvNGFixxedmYlk8zfw4EsSyeZr374wvMz9f9FnNmBMMFmnZLM42197zlNXmB5VevX3yi9e/LBwYLOosWLKUpLazjsliWJZ/AIAAYAYHyfGcEgwiWRNksSyejwGAwGAwGAwGAwGAoEAANEAmR8G1xzvA01QAAv4AgZAwOOPA1mlwMGDYFg6lthMbAYZBALIMU//BoHgDAOAEUwMCgIDAQq/8L6gGhcBoFAiEwDg0Exb/+J6CACAYEDIGKgkBkAIBkgGCgB//iigYJB4KDoFDoAQBwFwgBgYIgNAMUX//8AwFgSAAUAQ3wJA8rAKE0FAuAMEgMCAQPQ///8UYN/AoBAxeBIDgOAYFAAAcAxZwuELqQtgAwCw0oLaf////rUgaE6kYIFsvl1M//uSxAAA15XrTRxngAMMOuYAnCYABggAAOKSJWjHljg6NqRoUqawLsuijDRQ1DmJXRpcbtbwp4uawYTW+3jVrQdVx3266tJe0bDlauq1g4swvZo0GLXvozErn165o+tCle5ow1teRXPmbam3Grik9IvzBwpp4L2LnNK11thZWKNuC9ivZMbq1M29tyujMMj61o0KFmeska2cTw324MkbwZrYgzfOWX5s+s+vjeXvfPoMV7Fi7fO4v09iRrSRo9J5dbpK4vn2bQt+0J9Hq9e1kVsxC5MlSTxYNETRCxqpFNUiNmYxKBgIsaCcEqJNRvAqyhKgiGfirMZIiqFY6BkUum1JMUnBU0kTVqYBQMoEQJBqvLqjRtCQgGbQ1FCWa6qElKilytUWbihjTRCysTCEMwIgPAyNIHtEtjR9UKioZMNSlJYmIp3BEiaCrCi7C6B8EQCmlWWWoqwaTFKWkLK0lyZFqLVjQVQHA0KiITK5oCnxScJrjBMKkxCGWclKTVszQoVkSwqYnAsGtEIpJYkRNRNRNrKqYgpqKBgASEAAIAAAAP/7ksQAA9cJvQoEvY6AAAA0gAAABFWUS7DTJEIRkgHwyRNkqT1cvpQnRMS2EUIaH8TAiicrxuTTptzGWoWH3XmWYIaPV5ccp0S6GJclWR48tTL0S5mkTzMDbj1c5q7qZtSuSvmKEqMUiCIodDwRibA8zRclfPUyMxLx+Oo5FwjCKPR2aFoxLyEvRPM5eZq1CxG7ZlppDYfUrmXHmm4j45gvTWUzbq5tSZDyX1Cpbbc/q23Nzaf8z1q0jrvWrS7q5alQl6hUzlWkzaInFU4TEFNRQMACQgABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",Rx="data:audio/mpeg;base64,//uQxAAAF4nnTBTGAAscK673N0ACp05RikJLAgBADgiGDmnYlgcBoTIm16++L16+/zSk06b3veaL38YWOdNF77BwYGB5TWFhgSBIEgwiOxIEg81eZn9jgG4jk99g4MHNMDAwWU1edmZgYGDmnZmZr6TMzM7dYsWLFiymryYYOavX3xYZmZmZmZmf+sEsSyeZn69e/92169+8ztKdra9evfpSnNnZmf/e97tr195v+UpTpmZm95mZmaU6b3+cYWGCxzrsLFlKTN7rKS2vXr35D9bwHA4HA4HA4HA4HA4FALqg4D//8wVTMBHf//MWHTgA78v2B0IIGIC+CEkC0wEUp/itQNCNAygoFCX+Bm2QGDOgY4gB0YQXt/8DGHwHFAdeA8gcDGKwBpnWr+Bg3AADIDVngaNQHiAM1HDjl//wMmTAzEUDQOgFi4GBAgAjQMsID/gW6+tv/wNMpC0gA6sCEUCQkDatANKQAtIAzoAAICAMA/9X/wBhaAXaKCC3sCAMGgAc8UoNQRQMJkULJe9TbP9rBhkoW/v7ExBTUUDAAkIA//uSxAAA1r3RORzEgAMsOqIAl6WAFQgAANWrZaaPmobQnsFqpQBTwhQ0mFQyhz9qYpZlFCQ6KWSImVSRNKocz7jX1UlyiINIhUQkJK4VIhU1JYLE0hU+NLZSJF1UKRNC4+PihSMyl9WRTFLRUERKhy1rvFWehQsx/QmUTSZgLM1dWzYpJdiQmVUJYEg0KYP6zSLYKoRSyVMkTbKTURCJWcaisiRSW3YXTSKTSKSImWfKWxVUJoqCoVEU0IpZl0QqBINNS50lZWRCppZCcNBUdREJQTLJocWaP5LCuisCVk3BZGGWVjoZLGkKFIVQCxohMyVSRZaERGyULEYIzQ1skyVYq2FTAqms+IVeFTJE17QwppUUsImlkSwqTciuLhUCwSFKh0MpNaREYATAqAMDQVEsrSXFOEJQEiWiIEjSYIoGokR8KktRWJsleETZKWNIiaZKk9nkM0LiJsUpaIlGiJGGVGiFhlUlwRAUIRYVFicSgMEgqZVVIi4ImcIn1JCAwnACSCqSy0SxNKSpmYInTzYpdcAsLpiCmooGABIQAAgAAA==",Mx={click:"click.mp3",keystroke:"keystroke.mp3"};function Cx(o){const i=o.play();return i instanceof Promise?i:Promise.resolve()}function MN(){try{return{click:new URL(Object.assign({"../assets/sfx/click.mp3":wx,"../assets/sfx/keystroke.mp3":Rx})[`../assets/sfx/${Mx.click}`],import.meta.url).href,keystroke:new URL(Object.assign({"../assets/sfx/click.mp3":wx,"../assets/sfx/keystroke.mp3":Rx})[`../assets/sfx/${Mx.keystroke}`],import.meta.url).href}}catch{return}}function CN({soundtrack:o,steps:i,narrationManifest:l,stepIndex:u,playing:f,muted:p,playbackRate:h,isVideoExport:m,currentTimeMsRef:b,sources:A}){const S=o!==void 0&&!m,v=S&&!!o.musicSrc,y=S&&o.sfx===!0,x=v?(A==null?void 0:A.music)??o.musicSrc:void 0,R=w.useRef(null),L=w.useRef(null),U=w.useRef(null),B=w.useRef(null),$=w.useRef(null),P=w.useRef(!1),F=w.useRef(p);F.current=p;const ae=w.useRef(h);ae.current=h;const re=w.useMemo(()=>v?o_(i,l,o):null,[v,i,l,o]),ie=w.useMemo(()=>y?t_(i,l):[],[y,i,l]),J=w.useMemo(()=>y?Bd(i,l):null,[y,i,l]),I=w.useMemo(()=>y?(A==null?void 0:A.sfx)??MN():void 0,[y,A]),q=w.useCallback(()=>{if(typeof AudioContext>"u")return null;L.current||(L.current=new AudioContext);const H=L.current,Q=R.current;if(Q&&!B.current){const ce=H.createMediaElementSource(Q),pe=H.createGain();ce.connect(pe),pe.connect(H.destination),B.current=ce,U.current=pe}return H.state==="suspended"&&H.resume().catch(()=>{}),H},[]),oe=w.useCallback(()=>{if(!re)return;const H=i_(re,b.current);U.current?U.current.gain.value=H:R.current&&(R.current.volume=H)},[re,b]),V=w.useCallback(H=>{const Q=R.current;if(!Q)return;const ce=()=>{Number.isFinite(Q.duration)&&Q.duration>0&&(Q.currentTime=H/1e3%Q.duration)};Q.readyState>=HTMLMediaElement.HAVE_METADATA?ce():Q.addEventListener("loadedmetadata",ce,{once:!0})},[]),W=w.useCallback(()=>{if(!y||!I||P.current)return;const H=q();if(!H)return;P.current=!0;const Q=async(ce,pe)=>{try{const ee=await(await fetch(pe)).arrayBuffer(),be=await H.decodeAudioData(ee);$.current={...$.current,[ce]:be}}catch{}};Q("click",I.click),Q("keystroke",I.keystroke)},[y,I,q]),de=w.useCallback(H=>{var C;if(F.current)return;const Q=L.current,ce=(C=$.current)==null?void 0:C[H];if(!Q||!ce)return;const pe=Q.createBufferSource();pe.buffer=ce,pe.connect(Q.destination),pe.start()},[]);w.useEffect(()=>{const H=R.current;if(!(!H||!v||!x)){if(H.loop=!0,H.defaultPlaybackRate=h,H.playbackRate=h,!f||p){H.pause();return}H.getAttribute("src")||(H.src=x,H.load()),q(),V(b.current),oe(),Cx(H).catch(()=>{})}},[f,p,v,x,h,q,V,oe,b]),w.useEffect(()=>{if(!v||!f||p||!re)return;let H;const Q=()=>{oe(),H=requestAnimationFrame(Q)};return H=requestAnimationFrame(Q),()=>cancelAnimationFrame(H)},[v,f,p,re,oe]),w.useEffect(()=>{y&&!p&&W()},[y,p,W]),w.useEffect(()=>{if(!y||!f||p||ie.length===0)return;const H=(J==null?void 0:J.stepStartTimesMs[u])??0,Q=Math.max(0,b.current-H),ce=Math.max(h,.25),pe=[];for(const C of ie){if(C.stepIndex!==u)continue;const ee=(C.offsetMs-Q)/ce;ee<0||pe.push(setTimeout(()=>de(C.sound),ee))}return()=>{for(const C of pe)clearTimeout(C)}},[y,f,p,u,h,ie,J,de,b]);const Ee=w.useCallback(()=>{if(!S||F.current)return;q(),W();const H=R.current;v&&x&&H&&(H.getAttribute("src")||(H.src=x,H.load()),H.defaultPlaybackRate=ae.current,H.playbackRate=ae.current,V(b.current),oe(),Cx(H).catch(()=>{}))},[S,v,x,q,W,V,oe,b]),K=w.useCallback(H=>{v&&(V(H),oe())},[v,V,oe]);return w.useEffect(()=>{const H=R.current;return()=>{H&&(H.pause(),H.removeAttribute("src"),H.load());const Q=L.current;Q&&Q.close().catch(()=>{}),L.current=null,U.current=null,B.current=null,$.current=null}},[]),{musicRef:R,hasMusic:v,unlock:Ee,seekTo:K}}const Cg=new Map;let DN=0;function ON(o){const i=`sp-${DN++}`;return Cg.set(i,o),{id:i,unregister:()=>Cg.delete(i)}}function Dx(o){for(const[i,l]of Cg)i!==o&&l()}function _N({steps:o,narrationManifest:i,presenterManifest:l,muted:u,playbackRate:f,isVideoExport:p,prefersReducedMotion:h}){const m=Gu(),b=o.length-1,[A,S]=w.useState(()=>h?b:0),[v,y]=w.useState(p?"playing":"idle"),x=v==="playing",R=m?ag(m.currentTimeMs,m.stepStartTimesMs,b):A,L=w.useRef(R);L.current=R;const U=w.useRef(null),B=w.useRef(0),[$,P]=w.useState(0),F=w.useRef(Math.max(f,.25));F.current=Math.max(f,.25),w.useEffect(()=>{var Q,ce,pe;if(m||!x||h)return;const V=F.current,W=u&&l?((Q=l.steps[R])==null?void 0:Q.durationMs)??0:0;if(R>=b){const C=!u&&i?((ce=i.steps[R])==null?void 0:ce.durationMs)??0:0;if(C>0){U.current=()=>y("paused");const ee=setTimeout(()=>{U.current=null,y("paused")},(C+2e3)/V);return()=>{clearTimeout(ee),U.current=null}}if(W>0){const ee=setTimeout(()=>y("paused"),W/V);return()=>clearTimeout(ee)}y("paused");return}const de=R+1,Ee=o[de].delayMs/V,K=!u&&i?((pe=i.steps[R])==null?void 0:pe.durationMs)??0:0;if(K>0){let C=!1,ee=!1,be=!1;const me=()=>{be||(be=!0,U.current=null,S(de))},We=()=>{C&&ee&&me()};U.current=()=>{C=!0,We()};const Wt=setTimeout(()=>{ee=!0,We()},Ee),we=setTimeout(me,(Math.max(o[de].delayMs,K)+2e3)/V);return()=>{clearTimeout(Wt),clearTimeout(we),U.current=null}}const H=setTimeout(()=>S(de),Math.max(Ee,W/V));return()=>clearTimeout(H)},[m,x,R,o,b,h,u,i,l]);const ae=w.useCallback(V=>{y("paused"),S(Math.max(0,Math.min(V,b)))},[b]),re=w.useCallback((V,W)=>{const de=Math.max(0,Math.min(V,W.totalDurationMs)),Ee=ag(de,W.stepStartTimesMs,b),K=W.stepStartTimesMs[Ee]??0;B.current=de-K,S(Ee),y(H=>H==="playing"?H:"paused"),P(H=>H+1)},[b]),ie=w.useCallback(()=>{L.current>=b&&S(0),y("playing")},[b]),J=w.useCallback(()=>{y("paused")},[]),I=w.useCallback(()=>{x?J():ie()},[x,ie,J]),q=w.useCallback(()=>{var V;(V=U.current)==null||V.call(U)},[]),oe=w.useCallback(V=>{U.current=V},[]);return{stepIndex:R,playbackState:v,playing:x,play:ie,pause:J,togglePlay:I,goTo:ae,seekToTime:re,seekOffsetRef:B,seekGeneration:$,handleClipEnded:q,setPendingAdvance:oe,coordinatorId:void 0}}function kR(o){const i=Math.max(0,o),l=Math.floor(i/3600),u=Math.floor(i%3600/60),f=i%60,p=String(f).padStart(2,"0");return l>0?`${l}:${String(u).padStart(2,"0")}:${p}`:`${u}:${p}`}function Ox(o){return kR(Math.floor(Math.max(0,o)/1e3))}function LR(o,i,l){if(l==="remaining"){const u=Math.ceil(Math.max(0,i-o)/1e3);return`-${kR(u)}`}return`${Ox(o)} / ${Ox(i)}`}function jN(o,i,l,u,f,p,h,m,b,A,S){const v=w.useRef(0),y=w.useRef(0),x=w.useRef(0),R=w.useRef(p);R.current=p;const L=w.useRef(l);L.current=l;const U=w.useRef(Math.max(f,.25));U.current=Math.max(f,.25);const B=S==null?void 0:S.timeLabelRef,$=S==null?void 0:S.scrubbingRef,P=S==null?void 0:S.currentTimeMsRef,F=(S==null?void 0:S.timeDisplayMode)??"elapsed",ae=w.useRef(F);ae.current=F;const re=w.useRef(""),ie=w.useRef(0),J=w.useCallback(oe=>{if($!=null&&$.current)return;const V=Math.max(0,Math.min(oe,1));ie.current=V,P&&(P.current=V*R.current.totalDurationMs);const W=`${V*100}%`;if(h.current&&(h.current.style.width=W),m.current&&(m.current.style.left=W),B!=null&&B.current){const de=R.current,Ee=LR(V*de.totalDurationMs,de.totalDurationMs,ae.current);Ee!==re.current&&(re.current=Ee,B.current.textContent=Ee)}},[h,m,B,$,P]),I=w.useRef(void 0);I.current=()=>{const oe=performance.now();y.current+=(oe-x.current)*U.current,x.current=oe;const V=R.current,W=L.current,de=V.stepStartTimesMs[W]??0,Ee=W<u?V.stepStartTimesMs[W+1]??V.totalDurationMs:V.totalDurationMs,K=Math.max(Ee-de,1),H=Math.min(y.current/K,1),Q=(de+H*(Ee-de))/V.totalDurationMs;J(Q),v.current=requestAnimationFrame(()=>{var ce;return(ce=I.current)==null?void 0:ce.call(I)})},w.useEffect(()=>(o?(x.current=performance.now(),v.current=requestAnimationFrame(()=>{var oe;return(oe=I.current)==null?void 0:oe.call(I)})):cancelAnimationFrame(v.current),()=>cancelAnimationFrame(v.current)),[o]),w.useEffect(()=>{y.current=b.current,b.current=0,x.current=performance.now()},[l,A,b]);const q=(S==null?void 0:S.domEpoch)??0;w.useEffect(()=>{re.current="",J(ie.current)},[F,q,J]),w.useEffect(()=>{if(i==="idle"){J(0);return}if(i==="paused"){const oe=L.current,V=p.stepStartTimesMs[oe]??0,W=oe<u?p.stepStartTimesMs[oe+1]??p.totalDurationMs:p.totalDurationMs,de=Math.max(W-V,1),Ee=Math.min(y.current/de,1),K=(V+Ee*(W-V))/p.totalDurationMs;J(K)}},[i,l,A,u,p,J])}function zN({size:o,className:i}){return O.jsx("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"currentColor",className:i,"aria-hidden":!0,children:O.jsx("path",{d:"M8 5v14l11-7z"})})}function NN({size:o,className:i}){return O.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"currentColor",className:i,"aria-hidden":!0,children:[O.jsx("rect",{x:"6",y:"4",width:"4",height:"16"}),O.jsx("rect",{x:"14",y:"4",width:"4",height:"16"})]})}function UN({size:o,className:i}){return O.jsx("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"currentColor",className:i,"aria-hidden":!0,children:O.jsx("path",{d:"M3 10v4h4l5 5V5L7 10H3zm13.5 2a4.5 4.5 0 0 0-2.5-4.03v8.06A4.5 4.5 0 0 0 16.5 12zM14 3.23v2.06a7 7 0 0 1 0 13.42v2.06a9 9 0 0 0 0-17.54z"})})}function VN({kind:o,onComplete:i}){const l=o==="play"?zN:NN;return O.jsx("div",{"aria-hidden":!0,"data-playback-burst":o,className:"pointer-events-none absolute inset-0 z-[15] flex items-center justify-center",children:O.jsx(Ho.div,{className:"flex h-16 w-16 items-center justify-center rounded-full bg-black/60 text-white",initial:{scale:.6,opacity:.9},animate:{scale:1.4,opacity:0},transition:{duration:.45,ease:"easeOut"},onAnimationComplete:i,children:O.jsx(l,{size:28,className:o==="play"?"ml-1":void 0})})})}function kN({onEnableAudio:o}){return O.jsxs(Ho.button,{type:"button",className:"absolute left-1/2 top-3 z-20 flex -translate-x-1/2 items-center gap-1.5 rounded-full bg-black/70 px-3 py-1.5 text-xs font-medium text-white shadow-lg transition-transform hover:scale-105",initial:{opacity:0,y:-6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.2},onClick:i=>{i.stopPropagation(),o()},children:[O.jsx(UN,{size:14}),"Tap to enable audio"]})}function LN({text:o,sizeVariant:i,controlBarVisible:l}){const u=i==="canonical";return O.jsx("div",{className:`pointer-events-none absolute inset-x-0 z-10 flex justify-center px-4 transition-[bottom] duration-200 ${l?u?"bottom-28":"bottom-16":u?"bottom-10":"bottom-4"}`,"data-scenar-captions":"",children:O.jsx("span",{"aria-live":"polite",className:`max-w-[85%] rounded bg-[var(--scenar-caption-surface)] text-center leading-snug text-[var(--scenar-caption-foreground)] ${u?"px-4 py-1.5 text-[24px]":"px-2.5 py-1 text-xs"}`,children:o})})}function BN({entry:o,window:i,sizeVariant:l,videoRef:u,frameRef:f,presenterMedia:p}){const h=Gu(),m=h?ng(h.currentTimeMs-i.startMs,i.clipDurationMs):0,b={position:"absolute",right:"var(--scenar-presenter-margin, 12px)",bottom:l==="chrome"?"64px":"40px",zIndex:5,width:"var(--scenar-presenter-width, 24%)",aspectRatio:"16 / 9",borderRadius:"var(--scenar-presenter-radius, 10px)",boxShadow:"var(--scenar-presenter-shadow, 0 12px 32px -8px rgb(15 23 42 / 0.4), 0 2px 8px -2px rgb(15 23 42 / 0.25))",overflow:"hidden",pointerEvents:"none",opacity:m},A={display:"block",width:"100%",height:"100%",objectFit:"cover"};return O.jsx("div",{ref:f,"aria-hidden":!0,"data-scenar-presenter":"",style:b,children:p?p({src:o.src,window:i}):O.jsx("video",{ref:u,muted:!0,playsInline:!0,preload:"auto",tabIndex:-1,style:A})})}const HN=380,YN=420;function qN({card:o}){const i={boxSizing:"border-box",height:`var(--scenar-shell-height, ${HN}px)`,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"16px",overflow:"hidden",padding:"32px 48px",textAlign:"center",borderRadius:"8px",border:"1px solid var(--scenar-border, #e5e7eb)",background:"var(--scenar-backdrop, linear-gradient(135deg, #e4ecf7 0%, #e6e1f0 100%))"};return O.jsxs("div",{style:i,"data-scenar-card":o.kind,children:[o.logoSrc&&O.jsx("img",{src:o.logoSrc,alt:"",style:{height:"56px",width:"auto",objectFit:"contain"}}),O.jsx("div",{style:{fontSize:"40px",fontWeight:600,lineHeight:1.15,letterSpacing:"-0.02em",color:"var(--scenar-foreground, #0f172a)"},children:o.title}),o.subtitle&&O.jsx("div",{style:{fontSize:"18px",lineHeight:1.4,color:"var(--scenar-muted-foreground, #64748b)"},children:o.subtitle}),o.ctaText&&O.jsx("div",{style:{marginTop:"8px",padding:"10px 24px",borderRadius:"9999px",fontSize:"15px",fontWeight:500,background:"var(--scenar-primary, #0f172a)",color:"var(--scenar-surface, #ffffff)"},children:o.ctaText})]})}const GN=[.5,1,1.5,2];function PN({playbackRate:o,onSelectSpeed:i}){const[l,u]=w.useState(!1),f=w.useRef(null);return w.useEffect(()=>{if(!l)return;const p=h=>{f.current&&!f.current.contains(h.target)&&u(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[l]),O.jsxs("div",{ref:f,className:"relative",children:[O.jsxs("button",{onClick:p=>{p.stopPropagation(),u(h=>!h)},className:"flex h-9 min-w-[2.5rem] items-center justify-center rounded px-1 text-xs font-medium tabular-nums text-white/90 transition-colors hover:text-white","aria-label":`Playback speed: ${o}x`,"aria-haspopup":"true","aria-expanded":l,children:[o,"x"]}),O.jsx(kd,{children:l&&O.jsx(Ho.div,{className:"absolute bottom-full right-0 mb-1.5 rounded-md border border-border bg-card py-1 shadow-lg",initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.12,ease:"easeOut"},role:"menu","aria-label":"Playback speed",children:GN.map(p=>O.jsxs("button",{role:"menuitem",onClick:h=>{h.stopPropagation(),i(p),u(!1)},className:`flex w-full items-center justify-between gap-3 px-3 py-1 text-xs tabular-nums transition-colors hover:bg-accent ${p===o?"font-semibold text-foreground":"text-muted-foreground"}`,children:[O.jsxs("span",{children:[p,"x"]}),p===o&&O.jsx("span",{className:"text-[10px] text-primary",children:"●"})]},p))})})]})}const _x=1e4;function $N({visible:o,playing:i,muted:l,playbackRate:u,stepTimeline:f,showSpeedControl:p,hasNarration:h,hasSoundtrack:m=!1,captionsEnabled:b=!1,captionsVisible:A=!1,onToggleCaptions:S,onToggleFullscreen:v,isFullscreen:y=!1,progressTrackRef:x,playheadRef:R,onTogglePlay:L,onToggleMute:U,onSelectSpeed:B,onSeekToTime:$,onSkip:P,timeLabelRef:F,timeDisplayMode:ae="elapsed",onToggleTimeDisplay:re,scrubbingRef:ie}){const J=w.useMemo(()=>f.stepStartTimesMs.slice(1).map(H=>H/f.totalDurationMs*100),[f]),[I,q]=w.useState(!1),oe=w.useRef(0),V=w.useCallback(H=>{oe.current=H;const Q=`${H*100}%`;x.current&&(x.current.style.width=Q),R.current&&(R.current.style.left=Q),F!=null&&F.current&&(F.current.textContent=LR(H*f.totalDurationMs,f.totalDurationMs,ae))},[x,R,F,f,ae]),W=w.useCallback(H=>{const Q=H.currentTarget.getBoundingClientRect();return Math.max(0,Math.min(1,(H.clientX-Q.left)/Q.width))},[]),de=w.useCallback(H=>{H.currentTarget.setPointerCapture(H.pointerId),ie&&(ie.current=!0),q(!0),V(W(H))},[ie,V,W]),Ee=w.useCallback(H=>{H.currentTarget.hasPointerCapture(H.pointerId)&&V(W(H))},[V,W]),K=w.useCallback(H=>{H.currentTarget.hasPointerCapture(H.pointerId)&&(H.currentTarget.releasePointerCapture(H.pointerId),V(W(H)),ie&&(ie.current=!1),q(!1),$(oe.current*f.totalDurationMs))},[V,W,ie,$,f]);return O.jsxs(Ho.div,{className:"absolute inset-x-0 bottom-0 z-20 bg-gradient-to-t from-black/70 via-black/30 to-transparent px-4 pb-2.5 pt-12",initial:!1,animate:{opacity:o?1:0},transition:{duration:.2},style:{pointerEvents:o?"auto":"none"},onClick:H=>H.stopPropagation(),children:[O.jsxs("div",{className:`group relative mb-2 w-full cursor-pointer rounded-full bg-white/30 transition-[height] duration-150 ${I?"h-2":"h-[5px] hover:h-2"}`,onPointerDown:de,onPointerMove:Ee,onPointerUp:K,onPointerCancel:K,role:"progressbar","aria-label":"Playback progress","aria-valuemin":0,"aria-valuemax":100,children:[O.jsx("div",{ref:x,className:"absolute inset-y-0 left-0 rounded-full bg-white/80"}),O.jsx("div",{ref:R,className:`absolute top-1/2 h-3.5 w-3.5 -translate-x-1/2 -translate-y-1/2 rounded-full bg-white shadow-sm transition-opacity ${I?"opacity-100":"opacity-0 group-hover:opacity-100"}`}),J.map((H,Q)=>O.jsx("div",{className:"absolute top-0 h-full w-0.5 rounded-full bg-black/50",style:{left:`${H}%`}},Q))]}),O.jsxs("div",{className:"flex items-center gap-1.5",children:[O.jsx("button",{onClick:H=>{H.stopPropagation(),L()},className:"flex h-9 w-9 items-center justify-center rounded text-white/95 transition-colors hover:text-white","aria-label":i?"Pause":"Play",children:i?O.jsx(QN,{}):O.jsx(XN,{})}),P&&O.jsxs(O.Fragment,{children:[O.jsx("button",{onClick:H=>{H.stopPropagation(),P(-_x)},className:"flex h-9 w-9 items-center justify-center rounded text-white/90 transition-colors hover:text-white","aria-label":"Back 10 seconds",children:O.jsx(ZN,{})}),O.jsx("button",{onClick:H=>{H.stopPropagation(),P(_x)},className:"flex h-9 w-9 items-center justify-center rounded text-white/90 transition-colors hover:text-white","aria-label":"Forward 10 seconds",children:O.jsx(IN,{})})]}),O.jsx("button",{onClick:H=>{H.stopPropagation(),(h||m)&&U()},disabled:!h&&!m,className:`flex h-9 w-9 items-center justify-center rounded transition-colors ${h||m?"text-white/90 hover:text-white":"text-white/40"}`,"aria-label":h||m?l?"Unmute audio":"Mute audio":"No audio",children:!h&&!m||l?O.jsx(KN,{}):O.jsx(JN,{})}),F&&O.jsx("button",{onClick:H=>{H.stopPropagation(),re==null||re()},className:"rounded px-1 text-xs font-medium tabular-nums text-white/90 transition-colors hover:text-white","aria-label":ae==="elapsed"?"Show remaining time":"Show elapsed time",children:O.jsx("span",{ref:F})}),O.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[b&&O.jsxs("button",{onClick:H=>{H.stopPropagation(),S==null||S()},className:"relative flex h-9 w-9 items-center justify-center rounded text-white/90 transition-colors hover:text-white","aria-label":A?"Hide captions":"Show captions","aria-pressed":A,children:[O.jsx(FN,{}),A&&O.jsx("span",{"aria-hidden":!0,className:"absolute bottom-1 left-1/2 h-0.5 w-4 -translate-x-1/2 rounded-full bg-white"})]}),p&&O.jsx(PN,{playbackRate:u,onSelectSpeed:B}),v&&O.jsx("button",{onClick:H=>{H.stopPropagation(),v()},className:"flex h-9 w-9 items-center justify-center rounded text-white/90 transition-colors hover:text-white","aria-label":y?"Exit fullscreen":"Enter fullscreen",children:y?O.jsx(e4,{}):O.jsx(WN,{})})]})]})]})}function XN(){return O.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:O.jsx("path",{d:"M8 5v14l11-7z"})})}function QN(){return O.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:[O.jsx("rect",{x:"6",y:"4",width:"4",height:"16"}),O.jsx("rect",{x:"14",y:"4",width:"4",height:"16"})]})}function ZN(){return O.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[O.jsx("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),O.jsx("path",{d:"M3 3v5h5"}),O.jsx("text",{x:"12",y:"16",textAnchor:"middle",fontSize:"8.5",fontWeight:"600",fill:"currentColor",stroke:"none",fontFamily:"inherit",children:"10"})]})}function IN(){return O.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[O.jsx("path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"}),O.jsx("path",{d:"M21 3v5h-5"}),O.jsx("text",{x:"12",y:"16",textAnchor:"middle",fontSize:"8.5",fontWeight:"600",fill:"currentColor",stroke:"none",fontFamily:"inherit",children:"10"})]})}function FN(){return O.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[O.jsx("rect",{x:"2.5",y:"5",width:"19",height:"14",rx:"2.5"}),O.jsx("text",{x:"12",y:"15.5",textAnchor:"middle",fontSize:"8",fontWeight:"700",fill:"currentColor",stroke:"none",fontFamily:"inherit",children:"CC"})]})}function JN(){return O.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[O.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5",fill:"currentColor"}),O.jsx("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14"}),O.jsx("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07"})]})}function KN(){return O.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[O.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5",fill:"currentColor"}),O.jsx("line",{x1:"23",y1:"9",x2:"17",y2:"15"}),O.jsx("line",{x1:"17",y1:"9",x2:"23",y2:"15"})]})}function WN(){return O.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[O.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),O.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),O.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),O.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function e4(){return O.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[O.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),O.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),O.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),O.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]})}function t4(o){const i=typeof window<"u"&&window.parent!==window,l=o.enabled&&i,u=w.useRef(l);u.current=l;const f=w.useRef(null),p=w.useRef(o.controls);p.current=o.controls;const h=w.useCallback(S=>{!u.current||typeof window>"u"||window.parent.postMessage(d_(S),f.current??"*")},[]),m=w.useCallback(S=>{var y;const v=p.current;switch(S.type){case"play":v.play();break;case"pause":case"destroy":v.pause();break;case"seek":v.seekToTime(S.timeMs);break;case"setMuted":v.setMuted(S.muted);break;case"setVolume":v.setVolume(S.volume);break;case"setHostScale":(y=v.setHostScale)==null||y.call(v,S.scale);break;case"prefetch":v.prefetch();break}},[]);w.useEffect(()=>{if(!l)return;const S=v=>{if(v.source!==window.parent)return;const y=p_(v.data);y&&(v.origin&&v.origin!=="null"&&(f.current=v.origin),m(y))};return window.addEventListener("message",S),()=>window.removeEventListener("message",S)},[l,m]),w.useEffect(()=>{if(!l)return;const S=o.containerRef.current;if(!S||typeof ResizeObserver>"u")return;const v=new ResizeObserver(()=>{const y=S.getBoundingClientRect();h({type:"resize",widthPx:Math.round(y.width),heightPx:Math.round(y.height)})});return v.observe(S),()=>v.disconnect()},[l,o.containerRef,h]);const b=w.useRef(!1);w.useEffect(()=>{!l||b.current||(b.current=!0,h({type:"ready",totalSteps:o.totalSteps,hasNarration:o.hasNarration,...o.viewport?{viewport:o.viewport}:{}}))},[l,h,o.totalSteps,o.hasNarration,o.viewport]);const A=o.totalSteps-1;w.useEffect(()=>{l&&(o.playbackState==="playing"?h({type:"started"}):o.playbackState==="paused"&&h(o.stepIndex>=A?{type:"completed"}:{type:"paused"}))},[l,o.playbackState,o.stepIndex,A,h]),w.useEffect(()=>{if(!l)return;const S=o.stepTimeline.totalDurationMs,v=o.stepTimeline.stepStartTimesMs[o.stepIndex]??0,y=S>0?v/S:0;h({type:"stepchange",stepIndex:o.stepIndex,totalSteps:o.totalSteps}),h({type:"progress",stepIndex:o.stepIndex,totalSteps:o.totalSteps,fraction:y})},[l,o.stepIndex,o.totalSteps,o.stepTimeline,h]),w.useEffect(()=>{!l||!o.audioBlocked||h({type:"audioBlocked"})},[l,o.audioBlocked,h])}const n4=3e3;function BR({bundle:o,steps:i,children:l,className:u,onStepChange:f,onCardStepChange:p,narrationManifest:h,showSpeedControl:m=!0,embed:b=!1,embedViewport:A,captions:S=!1,soundtrack:v,soundtrackSources:y,presenterManifest:x}){const R=i??(o==null?void 0:o.steps),L=h??(o==null?void 0:o.narrationManifest),U=v??(o==null?void 0:o.soundtrack),B=x??(o==null?void 0:o.presenterManifest);if(!R||R.length===0)throw new Error("ScenarioPlayer requires steps. Provide a `bundle` or `steps` prop.");const $=gN(),{isVideoExport:P,hideControls:F,initialMuted:ae,presenterMedia:re}=Hd(),ie=bN(),J=TN(),I=R.length-1,q=w.useRef(null),oe=w.useRef(0),[V,W]=w.useState(()=>{if(typeof window>"u")return 1;const ze=new URLSearchParams(window.location.search).get("__test_speed"),zt=ze?Number(ze):NaN;return zt>0&&zt<=16?zt:1}),de=P?ae:!1,[Ee,K]=w.useState(de),H=_N({steps:R,narrationManifest:L,presenterManifest:B,muted:Ee,playbackRate:V,isVideoExport:P,prefersReducedMotion:$}),{stepIndex:Q,playbackState:ce,playing:pe,play:C,pause:ee,seekToTime:be,seekOffsetRef:me,seekGeneration:We,handleClipEnded:Wt}=H,we=w.useRef(null);w.useEffect(()=>{if(!P)return we.current=ON(()=>{ee()}),()=>{var ze;return(ze=we.current)==null?void 0:ze.unregister()}},[P,ee]),w.useEffect(()=>{const ze=q.current;if(!ze||P)return;const zt=new IntersectionObserver(([ha])=>{!(ha!=null&&ha.isIntersecting)&&pe&&ee()},{threshold:.5});return zt.observe(ze),()=>zt.disconnect()},[P,pe,ee]);const{muted:ot,toggleMute:jt,audioRef:vn,seekToStep:he,audioBlocked:Da,unlock:Pn,setVolume:uo,prefetch:Oa}=EN({manifest:L,stepIndex:Q,playing:pe,initialMuted:de,playbackRate:V,onClipEnded:Wt});w.useEffect(()=>{K(ot)},[ot]);const qe=CN({soundtrack:U,steps:R,narrationManifest:L,stepIndex:Q,playing:pe,muted:ot,playbackRate:V,isVideoExport:P,currentTimeMsRef:oe,sources:y}),Lt=!P&&!!U&&(!!U.musicSrc||U.sfx===!0),Bt=w.useMemo(()=>Bd(R,ot?B??null:L),[R,ot,L,B]),Fs=w.useMemo(()=>FO(B,Bt),[B,Bt]),ye=!!B&&!$,sa=RN({manifest:B,stepIndex:Q,playing:pe,idle:ce==="idle",muted:ot,playbackRate:V,audioRef:vn,currentTimeMsRef:oe,stepTimeline:Bt,enabled:ye&&!P});w.useEffect(()=>{const ze=R[Q];ze.card?p==null||p(ze.card,Q):f==null||f(ze.data,Q)},[Q,R,f,p]);const[Mn,la]=w.useState(!0),en=w.useRef(void 0),co=w.useCallback(()=>{en.current&&clearTimeout(en.current),en.current=setTimeout(()=>la(!1),n4)},[]),Li=w.useCallback(()=>{la(!0),ce==="playing"&&co()},[ce,co]);w.useEffect(()=>(ce!=="playing"?(la(!0),en.current&&clearTimeout(en.current)):co(),()=>{en.current&&clearTimeout(en.current)}),[ce,co]);const ua=w.useCallback(()=>{Pn(),qe.unlock(),C(),we.current&&Dx(we.current.id)},[C,Pn,qe]),Cn=w.useCallback(ze=>{const zt=Math.max(0,Math.min(ze,Bt.totalDurationMs)),ha=ag(zt,Bt.stepStartTimesMs,I),Ks=Bt.stepStartTimesMs[ha]??0;he(ha,Math.max(0,zt-Ks)),sa.seekToStep(ha,Math.max(0,zt-Ks)),be(zt,Bt),qe.seekTo(zt),pe&&we.current&&Dx(we.current.id)},[be,he,sa.seekToStep,Bt,I,pe,qe]),jr=w.useCallback(ze=>{Cn(oe.current+ze)},[Cn]),[fo,qo]=w.useState(null),ca=w.useCallback(ze=>{qo(zt=>({kind:ze,key:((zt==null?void 0:zt.key)??0)+1}))},[]),_a=w.useCallback(()=>qo(null),[]),ho=w.useCallback(()=>{pe?(ca("pause"),ee()):(ca("play"),ua())},[pe,ee,ua,ca]),Go=w.useCallback(()=>{pe?ee():ua()},[pe,ee,ua]),Po=w.useCallback(()=>{Pn()},[Pn]),[fa,E]=w.useState(S),k=w.useCallback(()=>{E(ze=>!ze)},[]),[te,se]=w.useState(!1),ge=b&&typeof document<"u"&&document.fullscreenEnabled;w.useEffect(()=>{if(!ge)return;const ze=()=>se(document.fullscreenElement!=null);return document.addEventListener("fullscreenchange",ze),()=>document.removeEventListener("fullscreenchange",ze)},[ge]);const _e=w.useCallback(()=>{document.fullscreenElement?document.exitFullscreen().catch(()=>{}):document.documentElement.requestFullscreen().catch(()=>{})},[]),Se=w.useRef(null),He=w.useRef(null),Oe=w.useRef(null),Ht=w.useRef(!1),[Dn,zr]=w.useState("elapsed"),$o=w.useCallback(()=>{zr(ze=>ze==="elapsed"?"remaining":"elapsed")},[]);jN(pe,ce,Q,I,V,Bt,Se,He,me,We,{timeLabelRef:Oe,timeDisplayMode:Dn,scrubbingRef:Ht,currentTimeMsRef:oe,domEpoch:ie?1:0}),t4({enabled:b,containerRef:q,playbackState:ce,stepIndex:Q,totalSteps:R.length,stepTimeline:Bt,hasNarration:!!L,audioBlocked:Da,viewport:A,controls:{play:ua,pause:ee,seekToTime:Cn,setMuted:ze=>{ot!==ze&&jt()},setVolume:uo,setHostScale:J??void 0,prefetch:Oa}});const Xo=!F,da=Da&&!P&&ce!=="idle",rn=S&&fa?R[Q].narration:void 0,Nr=ye?B.steps[Q]??null:null,Zu=Nr?Fs.find(ze=>ze.stepIndex===Q):void 0,Ur=Nr&&Zu&&O.jsx(BN,{entry:Nr,window:Zu,sizeVariant:P?"canonical":"chrome",videoRef:sa.videoRef,frameRef:sa.frameRef,presenterMedia:P?re:void 0}),Js=!!rn&&O.jsx(LN,{text:rn,sizeVariant:P?"canonical":"chrome",controlBarVisible:Xo&&Mn}),Bi=Xo&&O.jsx($N,{visible:Mn,playing:pe,muted:ot,playbackRate:V,stepTimeline:Bt,showSpeedControl:m,hasNarration:!!L,hasSoundtrack:Lt,captionsEnabled:S,captionsVisible:fa,onToggleCaptions:k,onToggleFullscreen:ge?_e:void 0,isFullscreen:te,progressTrackRef:Se,playheadRef:He,onTogglePlay:Go,onToggleMute:jt,onSelectSpeed:W,onSeekToTime:Cn,onSkip:jr,timeLabelRef:Oe,timeDisplayMode:Dn,onToggleTimeDisplay:$o,scrubbingRef:Ht});return O.jsxs("div",{ref:q,className:u,"data-demo-step":Q,"data-demo-state":ce,"data-demo-total-steps":R.length,"data-demo-audio-blocked":Da?"":void 0,onMouseMove:Xo?Li:void 0,children:[O.jsxs("div",{className:"relative",onClick:ho,style:{cursor:P?void 0:"pointer"},children:[R[Q].card?O.jsx(qN,{card:R[Q].card}):l(R[Q].data,Q),O.jsx(kd,{children:da&&O.jsx(kN,{onEnableAudio:Po})}),fo&&!P&&O.jsx(VN,{kind:fo.kind,onComplete:_a},fo.key),ie?ju.createPortal(O.jsxs(O.Fragment,{children:[Ur,Js,Bi]}),ie):O.jsxs(O.Fragment,{children:[Ur,Js,Bi]})]}),L&&O.jsx("audio",{ref:vn,preload:"none",hidden:!0}),qe.hasMusic&&O.jsx("audio",{ref:qe.musicRef,preload:"none",hidden:!0,loop:!0})]})}function jx(o){return o.scale===Nu.scale&&o.x===Nu.x&&o.y===Nu.y}function a4(o,i){return o.scale===i.scale&&o.x===i.x&&o.y===i.y}function HR({children:o,transform:i,contentRef:l}){const{isVideoExport:u}=Hd(),f=Gu(),p=(f==null?void 0:f.currentTimeMs)??0,h=w.useRef({from:i,to:i,atTimeMs:0});if(u&&!a4(i,h.current.to)){const S=(p-h.current.atTimeMs)/vd;h.current={from:aE(h.current.from,h.current.to,S),to:i,atTimeMs:p}}const[m,b]=w.useState(!1);if(w.useEffect(()=>{u||b(!0)},[u,i.scale,i.x,i.y]),u){const S=aE(h.current.from,h.current.to,(p-h.current.atTimeMs)/vd);return O.jsx("div",{className:jx(S)?void 0:"overflow-hidden",children:O.jsx("div",{ref:l,style:{position:"relative",transformOrigin:"0 0",transform:`translate(${S.x}px, ${S.y}px) scale(${S.scale})`},children:o})})}const A=!jx(i)||m;return O.jsx("div",{className:A?"overflow-hidden":void 0,children:O.jsx(Ho.div,{ref:l,animate:{scale:i.scale,x:i.x,y:i.y},transition:{duration:vd/1e3,ease:Gx},onAnimationComplete:()=>b(!1),style:{position:"relative",transformOrigin:"0 0"},children:o})})}const o4=48,i4=36;function r4({children:o,insetX:i=o4,insetY:l=i4}){const u={boxSizing:"border-box",height:"var(--scenar-shell-height, 100%)",padding:`${l}px ${i}px`,background:"var(--scenar-backdrop)","--scenar-stage-window-height":`calc(var(--scenar-shell-height, 100%) - ${2*l}px)`},f={"--scenar-shell-height":"var(--scenar-stage-window-height)",height:"var(--scenar-stage-window-height)",overflow:"hidden",borderRadius:"var(--scenar-radius-window)",boxShadow:"var(--scenar-shadow-window)"};return O.jsx("div",{style:u,children:O.jsx("div",{style:f,children:o})})}function $s(o,i){if(!o||!i)return null;const l=i.querySelector(qs(o));return!l||!(l instanceof HTMLElement)?(console.warn(`[scenar] cursor target "${o}" not found in DOM. Ensure a [data-cursor-target="${o}"] element exists.`),null):l}function s4(o,i){if(!o||!i)return null;const l=i.querySelector(f_(o));return l||(console.warn(`[scenar] scroll target "${o}" not found in DOM. Ensure a [data-scroll-target="${o}"] element exists.`),null)}function l4(o,i){if(!i)return null;const l=i.querySelector(qs(o));if(!l)return console.warn(`[scenar] type target "${o}" not found in DOM.`),null;if(l instanceof HTMLInputElement||l instanceof HTMLTextAreaElement)return l;const u=l.querySelector("input, textarea");return u||console.warn(`[scenar] type target "${o}" has no <input> or <textarea> descendant.`),u}function YR(o,i){const l=s4(o.target,i.containerRef.current);l&&(i.isVideoExport?l_(l):Px(l))}function qR(o,i){if(o.target){const l=i.containerRef.current;l&&(l.querySelector(`[data-cursor-target="${o.target}"]`)||console.warn(`[scenar] set_cursor target "${o.target}" not found in DOM.`))}i.setCursorTarget(o.target)}function GR(o,i){i.setCursorTarget(void 0)}function PR(o,i){const l=$s(o.target,i.containerRef.current);l&&l.click()}function $R(o,i,l){var h;if(!o.target)return;const u=l4(o.target,l.containerRef.current);if(!u)return;const f=u instanceof HTMLTextAreaElement?HTMLTextAreaElement.prototype:HTMLInputElement.prototype,p=(h=Object.getOwnPropertyDescriptor(f,"value"))==null?void 0:h.set;p==null||p.call(u,i),u.dispatchEvent(new Event("input",{bubbles:!0}))}function XR(o,i){const l=$s(o.target,i.containerRef.current);l&&(l.dispatchEvent(new PointerEvent("pointerenter",{bubbles:!1})),l.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0})),l.dispatchEvent(new MouseEvent("mouseenter",{bubbles:!1})),l.dispatchEvent(new MouseEvent("mouseover",{bubbles:!0})),l.setAttribute("data-hover","true"))}function QR(o,i){const l=$s(o.target,i.containerRef.current);l&&(l.dispatchEvent(new PointerEvent("pointerleave",{bubbles:!1})),l.dispatchEvent(new PointerEvent("pointerout",{bubbles:!0})),l.dispatchEvent(new MouseEvent("mouseleave",{bubbles:!1})),l.dispatchEvent(new MouseEvent("mouseout",{bubbles:!0})),l.removeAttribute("data-hover"))}function ZR(o,i){const l=$s(o.target,i.containerRef.current);l&&(l.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0})),l.setAttribute("data-dragging","true"))}function IR(o,i){const l=$s(o.dragTarget,i.containerRef.current);l&&l.dispatchEvent(new PointerEvent("pointerup",{bubbles:!0}));const u=$s(o.target,i.containerRef.current);u&&u.removeAttribute("data-dragging")}const u4=1.5;function c4(o,i,l){const u=l.querySelector(qs(o));if(!u)return console.warn(`[scenar] viewport_transition target "${o}" not found in DOM.`),null;const f=l.getBoundingClientRect(),p=u.getBoundingClientRect(),h=f.width/l.offsetWidth||1,m=(p.left-f.left+p.width/2)/h,b=(p.top-f.top+p.height/2)/h;return{scale:i,x:l.offsetWidth/2-m*i,y:l.offsetHeight/2-b*i}}function FR(o,i){var p;if(!i.setViewportTransform){console.warn("[scenar] viewport_transition action found but no setViewportTransform callback.");return}if(o.viewportReset){i.setViewportTransform({scale:1,x:0,y:0});return}if(!o.target){console.warn("[scenar] viewport_transition has no target and viewportReset is not set.");return}const l=((p=i.cameraRef)==null?void 0:p.current)??i.containerRef.current;if(!l)return;const u=o.viewportZoom??u4,f=c4(o.target,u,l);f&&i.setViewportTransform(f)}function f4(o,i,l,u){const f=o.text??"",p=o.atPercent*l+Ke+f.length*i;p>l&&console.warn(`[scenar] type action in step ${u} at ${o.atPercent} needs ~${Math.round(p)}ms but step is only ${Math.round(l)}ms.`)}function d4(o,i,l,u){const f=o.atPercent*l+Ke+i;f>l&&console.warn(`[scenar] hover action in step ${u} at ${o.atPercent} needs ~${Math.round(f)}ms but step is only ${Math.round(l)}ms.`)}function h4(o,i,l){const u=o.atPercent*i+Ke+_r+Ke;u>i&&console.warn(`[scenar] drag action in step ${l} at ${o.atPercent} needs ~${Math.round(u)}ms but step is only ${Math.round(i)}ms.`)}function p4(o,i,l,u){const f=o.atPercent*l,p=f+KO;for(const h of i){if(h===o||h.type==="viewport_transition"||h.type==="clear_cursor")continue;const m=h.atPercent*l;m>f&&m<p&&console.warn(`[scenar] ${h.type} action in step ${u} at ${h.atPercent} fires ${Math.round(m-f)}ms after a viewport-transition.`)}}function m4(o,i){const{stepIndex:l,narrationManifest:u,steps:f,playbackRate:p=1}=o;w.useEffect(()=>{var S;const h=(S=f[l])==null?void 0:S.interactions;if(!h||h.length===0)return;const m=Og(l,u,f),b=Math.max(p,.25),A=[];for(const v of h){const y=v.atPercent*m/b;if(v.type==="click")A.push(setTimeout(()=>i.setCursorTarget(v.target),y)),A.push(setTimeout(()=>PR(v,i),y+Ke/b));else if(v.type==="type"){const x=v.text??"";if(x.length===0)continue;const R=v.typeDelay??_g;f4(v,R,m,l),A.push(setTimeout(()=>i.setCursorTarget(v.target),y));const L=y+Ke/b;for(let U=0;U<x.length;U++){const B=x.substring(0,U+1);A.push(setTimeout(()=>$R(v,B,i),L+U*R/b))}}else if(v.type==="hover"){const x=v.hoverDuration??jg;d4(v,x,m,l),A.push(setTimeout(()=>{var R;(R=i.setShowRipple)==null||R.call(i,!1),i.setCursorTarget(v.target)},y)),A.push(setTimeout(()=>XR(v,i),y+Ke/b)),A.push(setTimeout(()=>{var R;QR(v,i),(R=i.setShowRipple)==null||R.call(i,!0)},y+(Ke+x)/b))}else v.type==="drag"?(h4(v,m,l),A.push(setTimeout(()=>{var x;(x=i.setShowRipple)==null||x.call(i,!1),i.setCursorTarget(v.target)},y)),A.push(setTimeout(()=>{var x;(x=i.setDragging)==null||x.call(i,!0),ZR(v,i)},y+Ke/b)),A.push(setTimeout(()=>i.setCursorTarget(v.dragTarget),y+(Ke+_r)/b)),A.push(setTimeout(()=>{var x,R;IR(v,i),(x=i.setDragging)==null||x.call(i,!1),(R=i.setShowRipple)==null||R.call(i,!0)},y+(Ke+_r+Ke)/b))):v.type==="viewport_transition"?(p4(v,h,m,l),A.push(setTimeout(()=>FR(v,i),y))):A.push(setTimeout(()=>y4(v,i),y))}return()=>{for(const v of A)clearTimeout(v)}},[l,u,i,f,p])}function y4(o,i){switch(o.type){case"scroll_to":YR(o,i);break;case"set_cursor":qR(o,i);break;case"clear_cursor":GR(o,i);break;default:i.setCursorTarget(o.target);break}}function g4(o,i,l){const{stepIndex:u,narrationManifest:f,steps:p}=o,h=w.useRef(new Set);w.useEffect(()=>{h.current.clear()},[u]),w.useEffect(()=>{var x;const b=(x=p[u])==null?void 0:x.interactions;if(!b||b.length===0)return;const A=l.stepStartTimesMs[u]??0,S=l.stepStartTimesMs[u+1],v=S!=null?S-A:Og(u,f,p),y=l.currentTimeMs-A;for(const R of b){const L=R.atPercent*v;if(R.type==="click")m(`${u}-${R.atPercent}-click-cursor`,y,L,()=>{i.setCursorTarget(R.target)}),m(`${u}-${R.atPercent}-click-dispatch`,y,L+Ke,()=>{PR(R,i)});else if(R.type==="type"){const U=R.text??"";if(U.length===0)continue;const B=R.typeDelay??_g;m(`${u}-${R.atPercent}-type-cursor`,y,L,()=>{i.setCursorTarget(R.target)});const $=L+Ke;if(y>=$){const P=Math.min(Math.floor((y-$)/B)+1,U.length);m(`${u}-${R.atPercent}-type-char-${P}`,y,0,()=>{$R(R,U.substring(0,P),i)})}}else if(R.type==="hover"){const U=R.hoverDuration??jg;m(`${u}-${R.atPercent}-hover-cursor`,y,L,()=>{var B;(B=i.setShowRipple)==null||B.call(i,!1),i.setCursorTarget(R.target)}),m(`${u}-${R.atPercent}-hover-enter`,y,L+Ke,()=>{XR(R,i)}),m(`${u}-${R.atPercent}-hover-leave`,y,L+Ke+U,()=>{var B;QR(R,i),(B=i.setShowRipple)==null||B.call(i,!0)})}else R.type==="drag"?(m(`${u}-${R.atPercent}-drag-cursor`,y,L,()=>{var U;(U=i.setShowRipple)==null||U.call(i,!1),i.setCursorTarget(R.target)}),m(`${u}-${R.atPercent}-drag-press`,y,L+Ke,()=>{var U;(U=i.setDragging)==null||U.call(i,!0),ZR(R,i)}),m(`${u}-${R.atPercent}-drag-move`,y,L+Ke+_r,()=>{i.setCursorTarget(R.dragTarget)}),m(`${u}-${R.atPercent}-drag-release`,y,L+Ke+_r+Ke,()=>{var U,B;IR(R,i),(U=i.setDragging)==null||U.call(i,!1),(B=i.setShowRipple)==null||B.call(i,!0)})):R.type==="viewport_transition"?m(`${u}-${R.atPercent}-viewport`,y,L,()=>{FR(R,i)}):m(`${u}-${R.atPercent}-${R.type}`,y,L,()=>{v4(R,i)})}});function m(b,A,S,v){A>=S&&!h.current.has(b)&&(h.current.add(b),v())}}function v4(o,i){switch(o.type){case"scroll_to":YR(o,i);break;case"set_cursor":qR(o,i);break;case"clear_cursor":GR(o,i);break;default:i.setCursorTarget(o.target);break}}function JR(o){const i=Gu(),{isVideoExport:l}=Hd(),u=w.useMemo(()=>({containerRef:o.containerRef,cameraRef:o.cameraRef,setCursorTarget:o.setCursorTarget,setShowRipple:o.setShowRipple,setDragging:o.setDragging,setViewportTransform:o.setViewportTransform,isVideoExport:l}),[o.containerRef,o.cameraRef,o.setCursorTarget,o.setShowRipple,o.setDragging,o.setViewportTransform,l]);i?g4(o,u,i):m4(o,u)}const KR="data-scenar-shot-frame",b4=`[${KR}]`,zx=33;function S4({scenarioId:o,steps:i,renderStep:l,canonicalWidth:u,shellHeight:f,narrationManifest:p,stage:h=!1,providers:m,onReady:b,onError:A}){const[S,v]=w.useState(0),y=w.useRef(0);y.current=S;const x=w.useMemo(()=>Bd(i,p??null),[i,p]),R=w.useRef(!1);w.useEffect(()=>{if(R.current)return;R.current=!0;let U;try{U=s_(i,x)}catch($){A($ instanceof Error?$:new Error(String($)));return}const B=()=>new Promise($=>{requestAnimationFrame(()=>requestAnimationFrame(()=>setTimeout($,30)))});b({shots:U,timeline:x,frameSelector:b4,setTime:$=>ju.flushSync(()=>v($)),walkTo:async $=>{for(let P=y.current+zx;P<$;P+=zx)ju.flushSync(()=>v(P));ju.flushSync(()=>v($)),ju.flushSync(()=>{}),await B()}})},[]);const L=O.jsx(T4,{scenarioId:o,steps:i,renderStep:l,canonicalWidth:u,shellHeight:f,narrationManifest:p,stage:h});return O.jsx(g_,{currentTimeMs:S,stepStartTimesMs:x.stepStartTimesMs,children:O.jsx(b_,{children:m?O.jsx(m,{children:L}):L})})}function T4({scenarioId:o,steps:i,renderStep:l,canonicalWidth:u,shellHeight:f,narrationManifest:p,stage:h}){const m=w.useRef(null),b=w.useRef(null),[A,S]=w.useState(0),[,v]=w.useState(void 0),[,y]=w.useState(!0),[,x]=w.useState(!1),[R,L]=w.useState(Nu),U=w.useCallback(($,P)=>{S(P),v(void 0)},[]);JR({stepIndex:A,narrationManifest:p,containerRef:m,cameraRef:b,setCursorTarget:v,setShowRipple:y,setDragging:x,setViewportTransform:L,steps:i});const B=w.useMemo(()=>({id:o,steps:i,narrationManifest:p}),[o,i,p]);return O.jsx("div",{[KR]:"",ref:m,style:{width:u,position:"relative",overflow:"hidden","--scenar-shell-height":`${f}px`},children:O.jsx(HR,{transform:R,contentRef:b,children:O.jsx(BR,{bundle:B,onStepChange:U,children:h?($,P)=>O.jsx(r4,{children:l($,P)}):l})})})}const Nx=.24,A4=.42,E4=1400,x4=.15;function w4(o){return{type:"spring",visualDuration:Math.min(A4,Math.max(Nx,Nx+o/E4)),bounce:x4}}const R4=80,Ux=12,M4=400,C4=100;function Vx(o,i){const l=zg(i);if(!l)return;const u=l.getBoundingClientRect(),f=i.getBoundingClientRect();(f.top<u.top||f.bottom>u.bottom)&&console.warn(`[Cursor] Target "${o}" is not fully visible in its scroll container. Add a scroll-to interaction before this step, or adjust the content layout.
|
|
297
|
+
target: top=${f.top.toFixed(0)} bottom=${f.bottom.toFixed(0)}
|
|
298
|
+
container: top=${u.top.toFixed(0)} bottom=${u.bottom.toFixed(0)}`)}function D4({target:o,containerRef:i,showRipple:l=!0,isDragging:u=!1}){const[f,p]=w.useState(null),h=w.useRef(null),m=w.useCallback(re=>{if(re===null){h.current=null,p(null);return}const ie=h.current,J=ie?Math.hypot(re.x-ie.x,re.y-ie.y):0;h.current=re,p({pos:re,distancePx:J})},[]),b=(f==null?void 0:f.pos)??null,A=Gu(),[S,v]=w.useState(!1),y=w.useRef(void 0),x=w.useRef(void 0),R=w.useRef(void 0),[L,U]=w.useState(null),B=w.useRef(void 0);w.useEffect(()=>{A&&o!==B.current&&(B.current=o,U(o?A.currentTimeMs:null))},[o]);const $=l&&!u&&A!=null&&L!=null&&A.currentTimeMs-L>=Ke,P=A?$:S&&!u,F=w.useRef(!1);F.current=A!=null,w.useEffect(()=>{if(!F.current)return;if(!o){m(null);return}const re=i.current;if(!re)return;const ie=re.querySelector(qs(o));ie&&(Vx(o,ie),m(jy(re,ie)))},[o,i]),w.useEffect(()=>{if(F.current)return;if(clearTimeout(y.current),clearTimeout(x.current),clearTimeout(R.current),v(!1),!o){m(null);return}let re=!1,ie=0;function J(){if(re)return;const q=i.current;if(!q)return;const oe=q.querySelector(qs(o));if(!oe){ie<Ux?(ie++,x.current=setTimeout(J,R4)):console.warn(`[Cursor] Could not find target "${o}" after ${Ux} retries.`);return}const V=Px(oe);R.current=setTimeout(()=>{requestAnimationFrame(()=>{re||(Vx(o,oe),m(jy(q,oe)),l&&(y.current=setTimeout(()=>{re||v(!0)},Ke)))})},V?M4:0)}const I=requestAnimationFrame(J);return()=>{re=!0,cancelAnimationFrame(I),clearTimeout(x.current),clearTimeout(R.current),clearTimeout(y.current)}},[o,i,l]),w.useEffect(()=>()=>{clearTimeout(y.current),clearTimeout(x.current),clearTimeout(R.current)},[]);const ae=w.useCallback(()=>{const re=i.current;if(!re||!o)return;const ie=re.querySelector(qs(o));ie&&m(jy(re,ie))},[o,i]);return w.useEffect(()=>{if(F.current)return;const re=i.current;if(!re||!o)return;let ie;const J=new ResizeObserver(()=>{clearTimeout(ie),ie=setTimeout(ae,C4)});return J.observe(re),()=>{clearTimeout(ie),J.disconnect()}},[o,i,ae]),O.jsx(kd,{children:b&&O.jsxs(Ho.div,{className:"pointer-events-none absolute z-50",style:{top:0,left:0},initial:{x:b.x,y:b.y,opacity:0},animate:{x:b.x,y:b.y,opacity:1},exit:{opacity:0},transition:w4((f==null?void 0:f.distancePx)??0),children:[O.jsx(Ho.span,{className:"block",animate:P?{scale:[1,.85,1]}:{scale:1},transition:{duration:.25,ease:"easeOut"},style:{transformOrigin:"top left"},children:u?O.jsx(_4,{}):O.jsx(O4,{})}),O.jsx(kd,{children:P&&O.jsx(Ho.span,{className:"absolute left-0 top-0 h-4 w-4 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary/25",initial:{scale:.5,opacity:.8},animate:{scale:2.8,opacity:0},exit:{opacity:0},transition:{duration:.45,ease:"easeOut"}},"ripple")})]})})}function O4(){return O.jsx("svg",{width:"18",height:"24",viewBox:"0 0 12 16",fill:"none",className:"-translate-x-px -translate-y-px drop-shadow-sm","aria-hidden":!0,children:O.jsx("path",{d:"M1 1v11.5l3-3 2.5 5.5 2-1-2.5-5.5H10L1 1Z",fill:"currentColor",stroke:"var(--scenar-cursor-stroke, white)",strokeWidth:"1",strokeLinejoin:"round"})})}function _4(){return O.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 16 16",fill:"none",className:"-translate-x-2 -translate-y-2 drop-shadow-sm","aria-hidden":!0,children:[O.jsx("path",{d:"M4.5 8V5.5a1 1 0 0 1 2 0V4a1 1 0 0 1 2 0v.5a1 1 0 0 1 2 0V5a1 1 0 0 1 2 0v4.5a3.5 3.5 0 0 1-3.5 3.5h-1A3.5 3.5 0 0 1 4.5 9.5V8Z",fill:"currentColor",stroke:"var(--scenar-cursor-stroke, white)",strokeWidth:"1",strokeLinejoin:"round"}),O.jsx("path",{d:"M4.5 8H3a1.5 1.5 0 0 1 0-3h1.5",stroke:"var(--scenar-cursor-stroke, white)",strokeWidth:"0.5",fill:"currentColor"})]})}const j4=896,z4=0,kx="relative mx-auto overflow-hidden";function N4({containerRef:o,children:i,className:l,canonicalWidth:u=j4,minZoom:f=z4,shellHeight:p,wrapperClassName:h=kx}){const{isVideoExport:m}=Hd(),b=w.useRef(null),A=w.useRef(null),[S,v]=w.useState(1),[y,x]=w.useState(null),[R,L]=w.useState(1),U=o??A;w.useLayoutEffect(()=>{if(m)return;const F=b.current;if(!F)return;const ae=ie=>{v(Math.max(Math.min(ie/u,1),f))};ae(F.getBoundingClientRect().width);const re=new ResizeObserver(ie=>{ae(ie[0].contentRect.width)});return re.observe(F),()=>re.disconnect()},[m,u,f]);const B=l?`${h} ${l}`:h;if(m)return O.jsx("div",{ref:U,className:B,children:i});const $={width:u,zoom:S};p!=null&&($["--scenar-shell-height"]=`${p}px`);const P=h===kx?{maxWidth:u}:void 0;return O.jsxs("div",{ref:b,className:B,style:P,children:[O.jsx("div",{ref:U,className:"relative",style:$,children:O.jsx(vN,{value:y,children:O.jsx(SN,{value:L,children:i})})}),O.jsx("div",{ref:x,className:"pointer-events-none absolute inset-0",style:R!==1?{zoom:1/R}:void 0})]})}const Lx="scenar";/**
|
|
299
|
+
* @license lucide-react v1.8.0 - ISC
|
|
300
|
+
*
|
|
301
|
+
* This source code is licensed under the ISC license.
|
|
302
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
303
|
+
*/const WR=(...o)=>o.filter((i,l,u)=>!!i&&i.trim()!==""&&u.indexOf(i)===l).join(" ").trim();/**
|
|
304
|
+
* @license lucide-react v1.8.0 - ISC
|
|
305
|
+
*
|
|
306
|
+
* This source code is licensed under the ISC license.
|
|
307
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
308
|
+
*/const U4=o=>o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
309
|
+
* @license lucide-react v1.8.0 - ISC
|
|
310
|
+
*
|
|
311
|
+
* This source code is licensed under the ISC license.
|
|
312
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
313
|
+
*/const V4=o=>o.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,l,u)=>u?u.toUpperCase():l.toLowerCase());/**
|
|
314
|
+
* @license lucide-react v1.8.0 - ISC
|
|
315
|
+
*
|
|
316
|
+
* This source code is licensed under the ISC license.
|
|
317
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
318
|
+
*/const Bx=o=>{const i=V4(o);return i.charAt(0).toUpperCase()+i.slice(1)};/**
|
|
319
|
+
* @license lucide-react v1.8.0 - ISC
|
|
320
|
+
*
|
|
321
|
+
* This source code is licensed under the ISC license.
|
|
322
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
323
|
+
*/var Ky={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
324
|
+
* @license lucide-react v1.8.0 - ISC
|
|
325
|
+
*
|
|
326
|
+
* This source code is licensed under the ISC license.
|
|
327
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
328
|
+
*/const k4=o=>{for(const i in o)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},L4=w.createContext({}),B4=()=>w.useContext(L4),H4=w.forwardRef(({color:o,size:i,strokeWidth:l,absoluteStrokeWidth:u,className:f="",children:p,iconNode:h,...m},b)=>{const{size:A=24,strokeWidth:S=2,absoluteStrokeWidth:v=!1,color:y="currentColor",className:x=""}=B4()??{},R=u??v?Number(l??S)*24/Number(i??A):l??S;return w.createElement("svg",{ref:b,...Ky,width:i??A??Ky.width,height:i??A??Ky.height,stroke:o??y,strokeWidth:R,className:WR("lucide",x,f),...!p&&!k4(m)&&{"aria-hidden":"true"},...m},[...h.map(([L,U])=>w.createElement(L,U)),...Array.isArray(p)?p:[p]])});/**
|
|
329
|
+
* @license lucide-react v1.8.0 - ISC
|
|
330
|
+
*
|
|
331
|
+
* This source code is licensed under the ISC license.
|
|
332
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
333
|
+
*/const Ca=(o,i)=>{const l=w.forwardRef(({className:u,...f},p)=>w.createElement(H4,{ref:p,iconNode:i,className:WR(`lucide-${U4(Bx(o))}`,`lucide-${o}`,u),...f}));return l.displayName=Bx(o),l};/**
|
|
334
|
+
* @license lucide-react v1.8.0 - ISC
|
|
335
|
+
*
|
|
336
|
+
* This source code is licensed under the ISC license.
|
|
337
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
338
|
+
*/const Y4=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],q4=Ca("bell",Y4);/**
|
|
339
|
+
* @license lucide-react v1.8.0 - ISC
|
|
340
|
+
*
|
|
341
|
+
* This source code is licensed under the ISC license.
|
|
342
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
343
|
+
*/const G4=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],P4=Ca("chevron-left",G4);/**
|
|
344
|
+
* @license lucide-react v1.8.0 - ISC
|
|
345
|
+
*
|
|
346
|
+
* This source code is licensed under the ISC license.
|
|
347
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
348
|
+
*/const $4=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],X4=Ca("chevron-right",$4);/**
|
|
349
|
+
* @license lucide-react v1.8.0 - ISC
|
|
350
|
+
*
|
|
351
|
+
* This source code is licensed under the ISC license.
|
|
352
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
353
|
+
*/const Q4=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],Z4=Ca("ellipsis-vertical",Q4);/**
|
|
354
|
+
* @license lucide-react v1.8.0 - ISC
|
|
355
|
+
*
|
|
356
|
+
* This source code is licensed under the ISC license.
|
|
357
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
358
|
+
*/const I4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],F4=Ca("globe",I4);/**
|
|
359
|
+
* @license lucide-react v1.8.0 - ISC
|
|
360
|
+
*
|
|
361
|
+
* This source code is licensed under the ISC license.
|
|
362
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
363
|
+
*/const J4=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],K4=Ca("lock",J4);/**
|
|
364
|
+
* @license lucide-react v1.8.0 - ISC
|
|
365
|
+
*
|
|
366
|
+
* This source code is licensed under the ISC license.
|
|
367
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
368
|
+
*/const W4=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],eU=Ca("plus",W4);/**
|
|
369
|
+
* @license lucide-react v1.8.0 - ISC
|
|
370
|
+
*
|
|
371
|
+
* This source code is licensed under the ISC license.
|
|
372
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
373
|
+
*/const tU=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],nU=Ca("rotate-ccw",tU);/**
|
|
374
|
+
* @license lucide-react v1.8.0 - ISC
|
|
375
|
+
*
|
|
376
|
+
* This source code is licensed under the ISC license.
|
|
377
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
378
|
+
*/const aU=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],oU=Ca("search",aU);/**
|
|
379
|
+
* @license lucide-react v1.8.0 - ISC
|
|
380
|
+
*
|
|
381
|
+
* This source code is licensed under the ISC license.
|
|
382
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
383
|
+
*/const iU=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],rU=Ca("star",iU);/**
|
|
384
|
+
* @license lucide-react v1.8.0 - ISC
|
|
385
|
+
*
|
|
386
|
+
* This source code is licensed under the ISC license.
|
|
387
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
388
|
+
*/const sU=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],lU=Ca("x",sU);function uU(o){const i=o.replace(/^https?:\/\//,"");return i.split("/")[0]??i}function cU({url:o,contentKey:i,slideDirection:l,children:u,zoom:f}){const p=l==="forward"?24:l==="backward"?-24:0;return O.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border",style:{height:`var(--scenar-shell-height, ${YN}px)`,borderColor:"var(--scenar-border)",zoom:f??void 0},children:[O.jsxs("div",{className:"flex items-center bg-[var(--scenar-chrome)] px-2 pt-1.5",children:[O.jsxs("div",{className:"mr-3 flex gap-2 pl-1.5",children:[O.jsx("span",{className:"h-3 w-3 rounded-full bg-[#ff5f57]"}),O.jsx("span",{className:"h-3 w-3 rounded-full bg-[#febc2e]"}),O.jsx("span",{className:"h-3 w-3 rounded-full bg-[#28c840]"})]}),O.jsxs("div",{className:"flex items-center gap-1.5 rounded-t-lg bg-[var(--scenar-chrome-raised)] px-3 py-1.5",children:[O.jsx(F4,{className:"h-3.5 w-3.5 shrink-0 text-[#9aa0a6]"}),O.jsx("span",{className:"max-w-[180px] truncate text-xs text-[#e8eaed]",children:uU(o)}),O.jsx(lU,{className:"h-3 w-3 shrink-0 text-[#9aa0a6]"})]}),O.jsx(eU,{className:"ml-1 h-3.5 w-3.5 shrink-0 text-[#9aa0a6]"}),O.jsx("div",{className:"flex-1"}),O.jsx("div",{className:"mr-1 flex h-5 w-5 items-center justify-center rounded-full bg-[#5f6368]",children:O.jsx("span",{className:"text-[8px] font-medium leading-none text-[#e8eaed]",children:"J"})})]}),O.jsxs("div",{className:"flex items-center gap-2 bg-[var(--scenar-chrome-raised)] px-2 py-1",children:[O.jsxs("div",{className:"flex items-center gap-1",children:[O.jsx(P4,{className:"h-4 w-4 text-[#9aa0a6]"}),O.jsx(X4,{className:"h-4 w-4 text-[#9aa0a6]"}),O.jsx(nU,{className:"ml-0.5 h-3.5 w-3.5 text-[#9aa0a6]"})]}),O.jsxs("div",{className:"flex flex-1 items-center gap-1.5 rounded-full bg-[var(--scenar-chrome)] px-3 py-1.5",children:[O.jsx(K4,{className:"h-3 w-3 shrink-0 text-[#9aa0a6]"}),O.jsx("span",{className:"truncate text-xs text-[var(--scenar-chrome-foreground)]",children:o})]}),O.jsxs("div",{className:"flex items-center gap-1",children:[O.jsx(rU,{className:"h-3.5 w-3.5 text-[#9aa0a6]"}),O.jsx("div",{className:"h-4 w-4 rounded-full bg-[#5f6368]"}),O.jsx(Z4,{className:"h-4 w-4 text-[#9aa0a6]"})]})]}),O.jsx(Ho.div,{className:"flex-1 overflow-y-auto",style:{background:"var(--scenar-surface)"},initial:{opacity:0,x:p},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut"},children:u},i)]})}function fU({header:o,sidebar:i,children:l,rightPanel:u}){return O.jsxs("div",{className:"flex h-full flex-col bg-[var(--scenar-surface)]",children:[o,O.jsxs("div",{className:"flex min-h-0 flex-1",children:[i,O.jsx("main",{className:"min-w-0 flex-1 overflow-y-auto",children:l}),u]})]})}function dU({appName:o,logo:i,navLinks:l,userName:u,hideSearch:f,hideNotifications:p}){var m;const h=((m=(u??o??"A")[0])==null?void 0:m.toUpperCase())??"A";return O.jsxs("header",{className:"flex h-10 shrink-0 items-center justify-between border-b border-[var(--scenar-border)] bg-[var(--scenar-surface)] px-4",children:[O.jsxs("div",{className:"flex items-center gap-3",children:[O.jsxs("div",{className:"flex items-center gap-2",children:[i??O.jsx("div",{className:"flex h-6 w-6 items-center justify-center rounded-md bg-[#3b82f6]",children:O.jsx("span",{className:"text-[10px] font-bold leading-none text-white",children:h})}),o&&O.jsx("span",{className:"text-[13px] font-semibold text-[var(--scenar-foreground)]",children:o})]}),l&&l.length>0&&O.jsx("nav",{className:"ml-4 flex items-center gap-1",children:l.map((b,A)=>O.jsx("span",{className:`rounded-md px-2.5 py-1 text-[12px] ${b.active?"bg-[var(--scenar-accent)] font-medium text-[var(--scenar-foreground)]":"text-[var(--scenar-muted-foreground)]"}`,children:b.label},A))})]}),O.jsxs("div",{className:"flex items-center gap-2.5",children:[!f&&O.jsx(oU,{className:"h-3.5 w-3.5 text-[var(--scenar-muted-foreground)]"}),!p&&O.jsx(q4,{className:"h-3.5 w-3.5 text-[var(--scenar-muted-foreground)]"}),O.jsx("div",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-[#6366f1]",children:O.jsx("span",{className:"text-[10px] font-medium leading-none text-white",children:h})})]})]})}function hU({items:o,width:i=200}){return O.jsx("aside",{className:"shrink-0 overflow-y-auto border-r border-[var(--scenar-border)] bg-[var(--scenar-surface)] py-2",style:{width:i},children:o.map((l,u)=>{if(l.isSection)return O.jsx("div",{className:"px-4 pb-1 pt-3 text-[10px] font-semibold uppercase tracking-wider text-[var(--scenar-muted-foreground)]",children:l.label},u);const f=(l.depth??0)*12;return O.jsxs("div",{className:`relative flex items-center gap-2 px-4 py-1.5 text-[12px] ${l.active?"font-medium text-[var(--scenar-foreground)]":"text-[var(--scenar-muted-foreground)]"}`,style:{paddingLeft:`${16+f}px`},children:[l.active&&O.jsx("span",{className:"absolute left-0 top-1 bottom-1 w-[3px] rounded-r bg-[#3b82f6]"}),l.icon&&O.jsx("span",{className:"shrink-0",children:l.icon}),O.jsx("span",{className:"truncate",children:l.label})]},u)})})}function eM({title:o,subtitle:i,headerSlot:l,fields:u,submitLabel:f="Submit",footerText:p,width:h=280,children:m}){return O.jsxs("div",{className:"rounded-lg border border-[var(--scenar-border)] bg-[var(--scenar-card)] p-5 shadow-sm",style:{width:h},children:[(l||o)&&O.jsxs("div",{className:"mb-4 text-center",children:[l&&O.jsx("div",{className:"mb-2 flex justify-center",children:l}),o&&O.jsx("h3",{className:"text-[14px] font-semibold text-[var(--scenar-foreground)]",children:o}),i&&O.jsx("p",{className:"mt-0.5 text-[12px] text-[var(--scenar-muted-foreground)]",children:i})]}),O.jsx("div",{className:"space-y-2.5",children:u.map((b,A)=>O.jsxs("div",{children:[O.jsx("label",{className:"mb-0.5 block text-[11px] font-medium text-[var(--scenar-muted-foreground)]",children:b.label}),O.jsx("div",{className:"rounded-md border border-[var(--scenar-border)] bg-[var(--scenar-surface)] px-2.5 py-1.5 text-[12px]",children:b.type==="password"?O.jsx("span",{className:"text-[var(--scenar-muted-foreground)]",children:"•".repeat(12)}):b.value?O.jsx("span",{className:"text-[var(--scenar-foreground)]",children:b.value}):O.jsx("span",{className:"text-[var(--scenar-muted-foreground)]",children:b.placeholder??""})})]},A))}),m,O.jsx("div",{className:"mt-4",children:O.jsx("div",{className:"rounded-md bg-[#3b82f6] py-1.5 text-center text-[12px] font-medium text-white",children:f})}),p&&O.jsx("p",{className:"mt-3 text-center text-[11px] text-[var(--scenar-muted-foreground)]",children:p})]})}function pU({columns:o,rows:i,emptyText:l}){return O.jsx("div",{className:"overflow-hidden rounded-lg border border-[var(--scenar-border)]",children:O.jsxs("table",{className:"w-full text-[12px]",children:[O.jsx("thead",{children:O.jsx("tr",{className:"border-b border-[var(--scenar-border)] bg-[var(--scenar-accent)]",children:o.map(u=>O.jsx("th",{className:`px-3 py-2 font-medium text-[var(--scenar-muted-foreground)] ${u.width??""} text-${u.align??"left"}`,children:u.label},u.key))})}),O.jsxs("tbody",{children:[i.length===0&&l&&O.jsx("tr",{children:O.jsx("td",{colSpan:o.length,className:"px-3 py-6 text-center text-[var(--scenar-muted-foreground)]",children:l})}),i.map(u=>O.jsx("tr",{className:"border-b border-[var(--scenar-border)] last:border-b-0",children:o.map(f=>O.jsx("td",{className:`px-3 py-2 text-[var(--scenar-foreground)] ${f.width??""} text-${f.align??"left"}`,children:u.cells[f.key]??"—"},f.key))},u.id))]})]})})}const mU={success:"bg-[#22c55e]/15 text-[#22c55e]",warning:"bg-[#eab308]/15 text-[#eab308]",error:"bg-[#ef4444]/15 text-[#ef4444]",info:"bg-[#3b82f6]/15 text-[#3b82f6]",neutral:"bg-[#94a3b8]/15 text-[#94a3b8]"};function Wy({label:o,variant:i="neutral"}){return O.jsx("span",{className:`inline-flex items-center rounded-full px-2 py-0.5 text-[11px] font-medium leading-none ${mU[i]}`,children:o})}function yU({appName:o,logo:i,subtitle:l,fields:u,submitLabel:f="Sign in",footerText:p,cardWidth:h=280,background:m,topBar:b,submitTargetId:A}){var y;const S=m??"linear-gradient(to bottom, var(--scenar-surface), color-mix(in srgb, var(--scenar-accent) 30%, var(--scenar-surface)))",v=i??O.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-[#3b82f6]/10",children:O.jsx("span",{className:"text-sm font-bold text-[#3b82f6]",children:((y=o[0])==null?void 0:y.toUpperCase())??"A"})});return O.jsxs("div",{className:"flex h-full flex-col",style:{background:S},children:[b,O.jsx("div",{className:"flex flex-1 items-center justify-center",children:O.jsx("div",{"data-cursor-target":A,children:O.jsx(eM,{title:o,subtitle:l??"Sign in to your account",headerSlot:v,fields:u,submitLabel:f,footerText:p,width:h})})})]})}function eg({appName:o,logo:i,navLinks:l,userName:u,sidebarItems:f,sidebarWidth:p,children:h}){return O.jsx(fU,{header:O.jsx(dU,{appName:o,logo:i,navLinks:l,userName:u}),sidebar:f?O.jsx(hU,{items:f,width:p}):void 0,children:h})}const gU=""+new URL("logo-f-5LjVqJ.png",import.meta.url).href;function tM(o,i){return et.jsxDEV(cU,{url:`https://${o.url}`,contentKey:String(i),children:bU(o.screen)},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:27,columnNumber:5},this)}const vU=[{label:"Home",active:!0},{label:"Projects"},{label:"Settings"}],tg=[{label:"Workspace",isSection:!0},{label:"Overview",active:!0},{label:"Projects"},{label:"Members"},{label:"Account",isSection:!0},{label:"Profile"},{label:"Billing"}];function bU(o){switch(o){case"login":return et.jsxDEV(yU,{appName:"Acme Cloud",subtitle:"Sign in to your workspace",fields:[{label:"Email",value:"jordan@acme.cloud",type:"email"},{label:"Password",type:"password"}],submitLabel:"Sign in",submitTargetId:"sign-in",footerText:"Forgot password?"},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:53,columnNumber:9},this);case"dashboard":return et.jsxDEV(eg,{appName:"Acme Cloud",userName:"Jordan",navLinks:vU,sidebarItems:tg,children:et.jsxDEV("div",{className:"p-5",children:[et.jsxDEV("div",{className:"mb-4 flex items-center gap-2",children:[et.jsxDEV("img",{src:gU,alt:"Acme Cloud",width:24,height:24,className:"rounded"},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:76,columnNumber:15},this),et.jsxDEV("h2",{className:"text-[15px] font-semibold text-[var(--scenar-foreground)]",children:"Welcome back, Jordan"},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:77,columnNumber:15},this)]},void 0,!0,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:75,columnNumber:13},this),et.jsxDEV("div",{className:"grid grid-cols-3 gap-3",children:[{label:"Active projects",value:"12"},{label:"Open tasks",value:"37"},{label:"Deploys today",value:"8"}].map(i=>et.jsxDEV("div",{className:"rounded-lg border border-[var(--scenar-border)] bg-[var(--scenar-card)] p-4",children:[et.jsxDEV("div",{className:"text-[20px] font-semibold text-[var(--scenar-foreground)]",children:i.value},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:91,columnNumber:19},this),et.jsxDEV("div",{className:"text-[11px] text-[var(--scenar-muted-foreground)]",children:i.label},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:94,columnNumber:19},this)]},i.label,!0,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:87,columnNumber:17},this))},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:81,columnNumber:13},this)]},void 0,!0,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:74,columnNumber:11},this)},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:68,columnNumber:9},this);case"projects":return et.jsxDEV(eg,{appName:"Acme Cloud",userName:"Jordan",navLinks:[{label:"Home"},{label:"Projects",active:!0},{label:"Settings"}],sidebarItems:tg,children:et.jsxDEV("div",{className:"p-5",children:[et.jsxDEV("h2",{className:"mb-4 text-[15px] font-semibold text-[var(--scenar-foreground)]",children:"Projects"},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:117,columnNumber:13},this),et.jsxDEV(pU,{columns:[{key:"name",label:"Name"},{key:"env",label:"Environment"},{key:"status",label:"Status",align:"right"}],rows:[{id:"1",cells:{name:"checkout-api",env:"production",status:et.jsxDEV(Wy,{label:"Healthy",variant:"success"},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:132,columnNumber:29},this)}},{id:"2",cells:{name:"web-frontend",env:"production",status:et.jsxDEV(Wy,{label:"Deploying",variant:"info"},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:140,columnNumber:29},this)}},{id:"3",cells:{name:"billing-worker",env:"staging",status:et.jsxDEV(Wy,{label:"Degraded",variant:"warning"},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:148,columnNumber:29},this)}}]},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:120,columnNumber:13},this)]},void 0,!0,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:116,columnNumber:11},this)},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:106,columnNumber:9},this);case"settings":return et.jsxDEV(eg,{appName:"Acme Cloud",userName:"Jordan",navLinks:[{label:"Home"},{label:"Projects"},{label:"Settings",active:!0}],sidebarItems:tg,children:et.jsxDEV("div",{className:"flex justify-center p-6",children:et.jsxDEV(eM,{title:"Profile",subtitle:"Update your account details",fields:[{label:"Full name",value:"Jordan Rivera"},{label:"Email",value:"jordan@acme.cloud",type:"email"},{label:"Role",value:"Platform Engineer"}],submitLabel:"Save changes",width:320},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:170,columnNumber:13},this)},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:169,columnNumber:11},this)},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:159,columnNumber:9},this)}}const SU=[{delayMs:0,data:{url:"app.acme.cloud/login",screen:"login"},narration:"Welcome to Acme Cloud. Signing in takes you straight to your workspace.",shot:"login-screen",interactions:[{atPercent:.15,type:"set_cursor",target:"sign-in"},{atPercent:.65,type:"click",target:"sign-in"}]},{delayMs:2400,data:{url:"app.acme.cloud/home",screen:"dashboard"},narration:"The dashboard shows your deployments and activity at a glance.",presenter:!0},{delayMs:2600,data:{url:"app.acme.cloud/projects",screen:"projects"},narration:"Every project lives here, with its environments one click away."},{delayMs:2600,data:{url:"app.acme.cloud/settings",screen:"settings"},narration:"And settings is where you manage keys, members, and billing.",shot:"settings-screen",presenter:!0}],TU={musicSrc:"./soundtrack/music.mp3",sfx:!0},AU={intro:{title:"Acme Cloud",subtitle:"Your workspace, in one tour",logoSrc:"./logo.png"},outro:{title:"Start shipping today",ctaText:"acme.cloud/start",logoSrc:"./logo.png",durationMs:4e3}},cv=Object.freeze(Object.defineProperty({__proto__:null,soundtrack:TU,steps:SU,titleCards:AU},Symbol.toStringTag,{value:"Module"}));function EU(o){for(const i of Object.values(o))if(Array.isArray(i)&&i.length>0&&typeof i[0]=="object"&&i[0]!==null&&"delayMs"in i[0])return i;throw new Error("No steps array found in /home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/steps")}const nM=EU(cv);function xU(o){for(const i of Object.values(o))if(typeof i=="object"&&i!==null&&!Array.isArray(i)&&"soundtrack"in i&&Array.isArray(i.steps)&&i.steps.length>0&&typeof i.steps[0]=="object"&&i.steps[0]!==null&&"delayMs"in i.steps[0])return i.soundtrack;return o.soundtrack}const wU=xU(cv),RU={sfx:{click:"./soundtrack/sfx/click.mp3",keystroke:"./soundtrack/sfx/keystroke.mp3"}};function MU(o){for(const i of Object.values(o))if(typeof i=="object"&&i!==null&&!Array.isArray(i)&&"titleCards"in i&&Array.isArray(i.steps)&&i.steps.length>0&&typeof i.steps[0]=="object"&&i.steps[0]!==null&&"delayMs"in i.steps[0])return i.titleCards;return o.titleCards}const CU=MU(cv),DU=(()=>{try{return new URLSearchParams(window.location.search).get("theme")}catch{return null}})(),fv=DU==="dark"?Lx+" dark":Lx,OU=(()=>{try{const o=new URLSearchParams(window.location.search).get("captions");return o==="1"||o==="true"}catch{return!1}})(),Md=(()=>{try{return new URLSearchParams(window.location.search).get("shot")}catch{return null}})();window.parent===window&&(document.body.classList.add(...fv.split(" ")),document.body.style.background="var(--scenar-surface)");function _U(){const o=w.useRef(null),i=w.useRef(null),[l,u]=w.useState(0),[f,p]=w.useState(void 0),[h,m]=w.useState(!0),[b,A]=w.useState(!1),[S,v]=w.useState(Nu),y=w.useCallback((L,U)=>{u(U),p(void 0)},[]),x=w.useMemo(()=>IO(nM,void 0,CU,void 0),[]);JR({stepIndex:l,narrationManifest:x.narrationManifest,containerRef:o,cameraRef:i,setCursorTarget:p,setShowRipple:m,setDragging:A,setViewportTransform:v,steps:x.steps});const R={id:"welcome-tour",steps:x.steps,narrationManifest:x.narrationManifest,soundtrack:wU,presenterManifest:x.presenterManifest};return et.jsxDEV("div",{className:fv,children:et.jsxDEV(N4,{containerRef:o,canonicalWidth:896,shellHeight:480,children:et.jsxDEV(HR,{transform:S,contentRef:i,children:[et.jsxDEV(BR,{bundle:R,embed:!0,embedViewport:{widthPx:896,heightPx:480},captions:OU,soundtrackSources:RU,onStepChange:y,onCardStepChange:y,children:(L,U)=>tM(L,U)},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/.scenar-pack/entry.tsx",lineNumber:124,columnNumber:11},this),et.jsxDEV(D4,{target:f,containerRef:i,showRipple:h,isDragging:b},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/.scenar-pack/entry.tsx",lineNumber:127,columnNumber:11},this)]},void 0,!0,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/.scenar-pack/entry.tsx",lineNumber:123,columnNumber:9},this)},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/.scenar-pack/entry.tsx",lineNumber:122,columnNumber:7},this)},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/.scenar-pack/entry.tsx",lineNumber:120,columnNumber:5},this)}async function jU(o){Yx.createRoot(o).render(et.jsxDEV("div",{className:fv,children:et.jsxDEV(S4,{scenarioId:"welcome-tour",steps:nM,renderStep:tM,canonicalWidth:896,shellHeight:480,narrationManifest:void 0,stage:!1,providers:void 0,onReady:l=>{if(window.__scenarShot=l,Md){const u=l.shots.find(f=>f.name===Md);if(!u){window.__scenarShotError='no shot named "'+Md+'" — declared: '+(l.shots.map(f=>f.name).join(", ")||"(none)");return}l.walkTo(u.timeMs)}},onError:l=>{window.__scenarShotError=(l==null?void 0:l.message)??String(l)}},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/.scenar-pack/entry.tsx",lineNumber:139,columnNumber:7},this)},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/.scenar-pack/entry.tsx",lineNumber:138,columnNumber:5},this))}const Dg=document.getElementById("root");if(!Dg)throw new Error("Embed root element #root not found");Md!==null?jU(Dg).catch(o=>{window.__scenarShotError=o instanceof Error?o.message:String(o)}):Yx.createRoot(Dg).render(et.jsxDEV(_U,{},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/.scenar-pack/entry.tsx",lineNumber:176,columnNumber:30},void 0));
|