@scenar/cli 0.10.0 → 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.
Files changed (164) hide show
  1. package/example-bundle/assets/index-DxmqjG-8.js +388 -0
  2. package/example-bundle/assets/style-B2sxnVVZ.css +1 -0
  3. package/example-bundle/embed.js +1 -1
  4. package/example-bundle/index.html +2 -2
  5. package/example-bundle/logo.png +0 -0
  6. package/example-bundle/pack-manifest.json +33 -9
  7. package/example-bundle/soundtrack/music.mp3 +0 -0
  8. package/example-bundle/soundtrack/sfx/click.mp3 +0 -0
  9. package/example-bundle/soundtrack/sfx/keystroke.mp3 +0 -0
  10. package/package.json +4 -4
  11. package/src/__tests__/collect-pack-shots.test.ts +8 -0
  12. package/src/__tests__/elevenlabs-provider.test.ts +187 -0
  13. package/src/__tests__/embed-snippet.test.ts +5 -0
  14. package/src/__tests__/find-authored-soundtrack.test.ts +54 -0
  15. package/src/__tests__/find-authored-title-cards.test.ts +65 -0
  16. package/src/__tests__/load-bundle.test.ts +67 -0
  17. package/src/__tests__/narrate-command.test.ts +65 -1
  18. package/src/__tests__/narration-cache.test.ts +134 -0
  19. package/src/__tests__/pack-bundle-contract.test.ts +2 -0
  20. package/src/__tests__/pack-generate-embed-entry.test.ts +95 -16
  21. package/src/__tests__/presenter-command.test.ts +366 -0
  22. package/src/__tests__/render-command.test.ts +11 -0
  23. package/src/__tests__/render-generate-entry.test.ts +102 -0
  24. package/src/__tests__/resolve-provider.test.ts +32 -3
  25. package/src/__tests__/scenario-validator.test.ts +174 -0
  26. package/src/__tests__/stage-assets.test.ts +269 -0
  27. package/src/commands/narrate.js +1 -1
  28. package/src/commands/narrate.js.map +1 -1
  29. package/src/commands/narrate.ts +1 -1
  30. package/src/commands/presenter.d.ts +3 -0
  31. package/src/commands/presenter.d.ts.map +1 -0
  32. package/src/commands/presenter.js +89 -0
  33. package/src/commands/presenter.js.map +1 -0
  34. package/src/commands/presenter.ts +107 -0
  35. package/src/commands/render.d.ts.map +1 -1
  36. package/src/commands/render.js +2 -0
  37. package/src/commands/render.js.map +1 -1
  38. package/src/commands/render.ts +6 -0
  39. package/src/embed/embed-snippet.d.ts +5 -0
  40. package/src/embed/embed-snippet.d.ts.map +1 -1
  41. package/src/embed/embed-snippet.js +6 -1
  42. package/src/embed/embed-snippet.js.map +1 -1
  43. package/src/embed/embed-snippet.ts +6 -1
  44. package/src/index.d.ts.map +1 -1
  45. package/src/index.js +2 -0
  46. package/src/index.js.map +1 -1
  47. package/src/index.ts +2 -0
  48. package/src/narrate/run-narrate.d.ts +15 -1
  49. package/src/narrate/run-narrate.d.ts.map +1 -1
  50. package/src/narrate/run-narrate.js +11 -4
  51. package/src/narrate/run-narrate.js.map +1 -1
  52. package/src/narrate/run-narrate.ts +15 -6
  53. package/src/pack/bundle-contract.d.ts +1 -0
  54. package/src/pack/bundle-contract.d.ts.map +1 -1
  55. package/src/pack/bundle-contract.js +3 -0
  56. package/src/pack/bundle-contract.js.map +1 -1
  57. package/src/pack/bundle-contract.ts +3 -0
  58. package/src/pack/collect-pack-shots.d.ts +5 -1
  59. package/src/pack/collect-pack-shots.d.ts.map +1 -1
  60. package/src/pack/collect-pack-shots.js +3 -1
  61. package/src/pack/collect-pack-shots.js.map +1 -1
  62. package/src/pack/collect-pack-shots.ts +15 -1
  63. package/src/pack/generate-embed-entry.d.ts +7 -0
  64. package/src/pack/generate-embed-entry.d.ts.map +1 -1
  65. package/src/pack/generate-embed-entry.js +102 -7
  66. package/src/pack/generate-embed-entry.js.map +1 -1
  67. package/src/pack/generate-embed-entry.ts +107 -7
  68. package/src/pack/run-pack.d.ts +1 -0
  69. package/src/pack/run-pack.d.ts.map +1 -1
  70. package/src/pack/run-pack.js +100 -9
  71. package/src/pack/run-pack.js.map +1 -1
  72. package/src/pack/run-pack.ts +133 -9
  73. package/src/presenter/heygen-client.d.ts +69 -0
  74. package/src/presenter/heygen-client.d.ts.map +1 -0
  75. package/src/presenter/heygen-client.js +154 -0
  76. package/src/presenter/heygen-client.js.map +1 -0
  77. package/src/presenter/heygen-client.ts +224 -0
  78. package/src/presenter/run-presenter.d.ts +67 -0
  79. package/src/presenter/run-presenter.d.ts.map +1 -0
  80. package/src/presenter/run-presenter.js +348 -0
  81. package/src/presenter/run-presenter.js.map +1 -0
  82. package/src/presenter/run-presenter.ts +536 -0
  83. package/src/render/generate-entry.d.ts +4 -0
  84. package/src/render/generate-entry.d.ts.map +1 -1
  85. package/src/render/generate-entry.js +75 -7
  86. package/src/render/generate-entry.js.map +1 -1
  87. package/src/render/generate-entry.ts +84 -7
  88. package/src/render/run-render.d.ts +6 -0
  89. package/src/render/run-render.d.ts.map +1 -1
  90. package/src/render/run-render.js +58 -0
  91. package/src/render/run-render.js.map +1 -1
  92. package/src/render/run-render.ts +72 -0
  93. package/src/render/stage-assets.d.ts +44 -0
  94. package/src/render/stage-assets.d.ts.map +1 -0
  95. package/src/render/stage-assets.js +91 -0
  96. package/src/render/stage-assets.js.map +1 -0
  97. package/src/render/stage-assets.ts +130 -0
  98. package/src/tts/echogarden.d.ts.map +1 -1
  99. package/src/tts/echogarden.js +4 -2
  100. package/src/tts/echogarden.js.map +1 -1
  101. package/src/tts/echogarden.ts +5 -2
  102. package/src/tts/edge-tts.d.ts.map +1 -1
  103. package/src/tts/edge-tts.js +2 -1
  104. package/src/tts/edge-tts.js.map +1 -1
  105. package/src/tts/edge-tts.ts +2 -1
  106. package/src/tts/elevenlabs.d.ts +15 -0
  107. package/src/tts/elevenlabs.d.ts.map +1 -0
  108. package/src/tts/elevenlabs.js +73 -0
  109. package/src/tts/elevenlabs.js.map +1 -0
  110. package/src/tts/elevenlabs.ts +105 -0
  111. package/src/tts/openai.d.ts.map +1 -1
  112. package/src/tts/openai.js +2 -1
  113. package/src/tts/openai.js.map +1 -1
  114. package/src/tts/openai.ts +2 -1
  115. package/src/tts/resolve-provider.d.ts +1 -1
  116. package/src/tts/resolve-provider.d.ts.map +1 -1
  117. package/src/tts/resolve-provider.js +10 -3
  118. package/src/tts/resolve-provider.js.map +1 -1
  119. package/src/tts/resolve-provider.ts +12 -4
  120. package/src/tts/types.d.ts +9 -0
  121. package/src/tts/types.d.ts.map +1 -1
  122. package/src/tts/types.ts +10 -0
  123. package/src/util/confirm.d.ts +11 -0
  124. package/src/util/confirm.d.ts.map +1 -0
  125. package/src/util/confirm.js +24 -0
  126. package/src/util/confirm.js.map +1 -0
  127. package/src/util/confirm.ts +23 -0
  128. package/src/util/load-bundle.d.ts +17 -1
  129. package/src/util/load-bundle.d.ts.map +1 -1
  130. package/src/util/load-bundle.js +19 -11
  131. package/src/util/load-bundle.js.map +1 -1
  132. package/src/util/load-bundle.ts +38 -12
  133. package/src/util/load-ts.d.ts +77 -0
  134. package/src/util/load-ts.d.ts.map +1 -1
  135. package/src/util/load-ts.js +125 -0
  136. package/src/util/load-ts.js.map +1 -1
  137. package/src/util/load-ts.ts +165 -0
  138. package/src/util/narration-cache.d.ts +13 -5
  139. package/src/util/narration-cache.d.ts.map +1 -1
  140. package/src/util/narration-cache.js +10 -8
  141. package/src/util/narration-cache.js.map +1 -1
  142. package/src/util/narration-cache.ts +22 -6
  143. package/src/util/presenter-cache.d.ts +44 -0
  144. package/src/util/presenter-cache.d.ts.map +1 -0
  145. package/src/util/presenter-cache.js +43 -0
  146. package/src/util/presenter-cache.js.map +1 -0
  147. package/src/util/presenter-cache.ts +101 -0
  148. package/src/util/scenario-assets.d.ts +47 -0
  149. package/src/util/scenario-assets.d.ts.map +1 -0
  150. package/src/util/scenario-assets.js +71 -0
  151. package/src/util/scenario-assets.js.map +1 -0
  152. package/src/util/scenario-assets.ts +111 -0
  153. package/src/util/soundtrack-assets.d.ts +34 -0
  154. package/src/util/soundtrack-assets.d.ts.map +1 -0
  155. package/src/util/soundtrack-assets.js +48 -0
  156. package/src/util/soundtrack-assets.js.map +1 -0
  157. package/src/util/soundtrack-assets.ts +69 -0
  158. package/src/validate/scenario-validator.d.ts.map +1 -1
  159. package/src/validate/scenario-validator.js +82 -0
  160. package/src/validate/scenario-validator.js.map +1 -1
  161. package/src/validate/scenario-validator.ts +110 -0
  162. package/tsconfig.tsbuildinfo +1 -1
  163. package/example-bundle/assets/index-DpJUOVBT.js +0 -388
  164. package/example-bundle/assets/style-ix_q0zsc.css +0 -1
@@ -1,388 +0,0 @@
1
- var vy={exports:{}},Wf={},by={exports:{}},Tu={exports:{}};Tu.exports;var UE;function AO(){return UE||(UE=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(S,V){Object.defineProperty(p.prototype,S,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",V[0],V[1])}})}function u(S){return S===null||typeof S!="object"?null:(S=Lo&&S[Lo]||S["@@iterator"],typeof S=="function"?S:null)}function f(S,V){S=(S=S.constructor)&&(S.displayName||S.name)||"ReactClass";var J=S+"."+V;En[J]||(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.",V,S),En[J]=!0)}function p(S,V,J){this.props=S,this.context=V,this.refs=Xe,this.updater=J||Ln}function h(){}function m(S,V,J){this.props=S,this.context=V,this.refs=Xe,this.updater=J||Ln}function E(){}function x(S){return""+S}function T(S){try{x(S);var V=!1}catch{V=!0}if(V){V=console;var J=V.error,ae=typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return J.call(V,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ae),x(S)}}function v(S){if(S==null)return null;if(typeof S=="function")return S.$$typeof===zi?null:S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case O:return"Fragment";case ve:return"Profiler";case te:return"StrictMode";case xe:return"Suspense";case Tt:return"SuspenseList";case ue:return"Activity"}if(typeof S=="object")switch(typeof S.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case Me:return"Portal";case ot:return S.displayName||"Context";case fe:return(S._context.displayName||"Context")+".Consumer";case hn:var V=S.render;return S=S.displayName,S||(S=V.displayName||V.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case Et:return V=S.displayName||null,V!==null?V:v(S.type)||"Memo";case zt:V=S._payload,S=S._init;try{return v(S(V))}catch{}}return null}function g(S){if(S===O)return"<>";if(typeof S=="object"&&S!==null&&S.$$typeof===zt)return"<...>";try{var V=v(S);return V?"<"+V+">":"<...>"}catch{return"<...>"}}function w(){var S=de.A;return S===null?null:S.getOwner()}function C(){return Error("react-stack-top-frame")}function L(S){if(Bo.call(S,"key")){var V=Object.getOwnPropertyDescriptor(S,"key").get;if(V&&V.isReactWarning)return!1}return S.key!==void 0}function U(S,V){function J(){ao||(ao=!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)",V))}J.isReactWarning=!0,Object.defineProperty(S,"key",{get:J,configurable:!0})}function B(){var S=v(this.type);return Cs[S]||(Cs[S]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),S=this.props.ref,S!==void 0?S:null}function G(S,V,J,ae,ye,Oe){var be=J.ref;return S={$$typeof:me,type:S,key:V,props:J,_owner:ae},(be!==void 0?be:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:B}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(S,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ye}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Oe}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function P(S,V){return V=G(S.type,V,S.props,S._owner,S._debugStack,S._debugTask),S._store&&(V._store.validated=S._store.validated),V}function K(S){ne(S)?S._store&&(S._store.validated=1):typeof S=="object"&&S!==null&&S.$$typeof===zt&&(S._payload.status==="fulfilled"?ne(S._payload.value)&&S._payload.value._store&&(S._payload.value._store.validated=1):S._store&&(S._store.validated=1))}function ne(S){return typeof S=="object"&&S!==null&&S.$$typeof===me}function se(S){var V={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(J){return V[J]})}function le(S,V){return typeof S=="object"&&S!==null&&S.key!=null?(T(S.key),se(""+S.key)):V.toString(36)}function F(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(E,E):(S.status="pending",S.then(function(V){S.status==="pending"&&(S.status="fulfilled",S.value=V)},function(V){S.status==="pending"&&(S.status="rejected",S.reason=V)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function X(S,V,J,ae,ye){var Oe=typeof S;(Oe==="undefined"||Oe==="boolean")&&(S=null);var be=!1;if(S===null)be=!0;else switch(Oe){case"bigint":case"string":case"number":be=!0;break;case"object":switch(S.$$typeof){case me:case Me:be=!0;break;case zt:return be=S._init,X(be(S._payload),V,J,ae,ye)}}if(be){be=S,ye=ye(be);var Pe=ae===""?"."+le(be,0):ae;return no(ye)?(J="",Pe!=null&&(J=Pe.replace(Vi,"$&/")+"/"),X(ye,V,J,"",function(en){return en})):ye!=null&&(ne(ye)&&(ye.key!=null&&(be&&be.key===ye.key||T(ye.key)),J=P(ye,J+(ye.key==null||be&&be.key===ye.key?"":(""+ye.key).replace(Vi,"$&/")+"/")+Pe),ae!==""&&be!=null&&ne(be)&&be.key==null&&be._store&&!be._store.validated&&(J._store.validated=2),ye=J),V.push(ye)),1}if(be=0,Pe=ae===""?".":ae+":",no(S))for(var _e=0;_e<S.length;_e++)ae=S[_e],Oe=Pe+le(ae,_e),be+=X(ae,V,J,Oe,ye);else if(_e=u(S),typeof _e=="function")for(_e===S.entries&&(oa||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),oa=!0),S=_e.call(S),_e=0;!(ae=S.next()).done;)ae=ae.value,Oe=Pe+le(ae,_e++),be+=X(ae,V,J,Oe,ye);else if(Oe==="object"){if(typeof S.then=="function")return X(F(S),V,J,ae,ye);throw V=String(S),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return be}function Y(S,V,J){if(S==null)return S;var ae=[],ye=0;return X(S,ae,"","",function(Oe){return V.call(J,Oe,ye++)}),ae}function W(S){if(S._status===-1){var V=S._ioInfo;V!=null&&(V.start=V.end=performance.now()),V=S._result;var J=V();if(J.then(function(ye){if(S._status===0||S._status===-1){S._status=1,S._result=ye;var Oe=S._ioInfo;Oe!=null&&(Oe.end=performance.now()),J.status===void 0&&(J.status="fulfilled",J.value=ye)}},function(ye){if(S._status===0||S._status===-1){S._status=2,S._result=ye;var Oe=S._ioInfo;Oe!=null&&(Oe.end=performance.now()),J.status===void 0&&(J.status="rejected",J.reason=ye)}}),V=S._ioInfo,V!=null){V.value=J;var ae=J.displayName;typeof ae=="string"&&(V.name=ae)}S._status===-1&&(S._status=0,S._result=J)}if(S._status===1)return V=S._result,V===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?`,V),"default"in V||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'))`,V),V.default;throw S._result}function I(){var S=de.H;return S===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
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.`),S}function Q(){de.asyncTransitions--}function Se(S){if(Ea===null)try{var V=("require"+Math.random()).slice(0,7);Ea=(o&&o[V]).call(o,"timers").setImmediate}catch{Ea=function(ae){Ho===!1&&(Ho=!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 ye=new MessageChannel;ye.port1.onmessage=ae,ye.port2.postMessage(void 0)}}return Ea(S)}function De(S){return 1<S.length&&typeof AggregateError=="function"?new AggregateError(S):S[0]}function Z(S,V){V!==xa-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. "),xa=V}function pe(S,V,J){var ae=de.actQueue;if(ae!==null)if(ae.length!==0)try{oe(ae),Se(function(){return pe(S,V,J)});return}catch(ye){de.thrownErrors.push(ye)}else de.actQueue=null;0<de.thrownErrors.length?(ae=De(de.thrownErrors),de.thrownErrors.length=0,J(ae)):V(S)}function oe(S){if(!so){so=!0;var V=0;try{for(;V<S.length;V++){var J=S[V];do{de.didUsePromise=!1;var ae=J(!1);if(ae!==null){if(de.didUsePromise){S[V]=J,S.splice(0,V);return}J=ae}else break}while(!0)}S.length=0}catch(ye){S.splice(0,V+1),de.thrownErrors.push(ye)}finally{so=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var me=Symbol.for("react.transitional.element"),Me=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),fe=Symbol.for("react.consumer"),ot=Symbol.for("react.context"),hn=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),Tt=Symbol.for("react.suspense_list"),Et=Symbol.for("react.memo"),zt=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),Lo=Symbol.iterator,En={},Ln={isMounted:function(){return!1},enqueueForceUpdate:function(S){f(S,"forceUpdate")},enqueueReplaceState:function(S){f(S,"replaceState")},enqueueSetState:function(S){f(S,"setState")}},aa=Object.assign,Xe={};Object.freeze(Xe),p.prototype.isReactComponent={},p.prototype.setState=function(S,V){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,V,"setState")},p.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};var xt={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(ia in xt)xt.hasOwnProperty(ia)&&l(ia,xt[ia]);h.prototype=p.prototype,xt=m.prototype=new h,xt.constructor=m,aa(xt,p.prototype),xt.isPureReactComponent=!0;var no=Array.isArray,zi=Symbol.for("react.client.reference"),de={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Bo=Object.prototype.hasOwnProperty,Bn=console.createTask?console.createTask:function(){return null};xt={react_stack_bottom_frame:function(S){return S()}};var ao,Ta,Cs={},oo=xt.react_stack_bottom_frame.bind(xt,C)(),Ni=Bn(g(C)),oa=!1,Vi=/\/+/g,ko=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},Ho=!1,Ea=null,xa=0,io=!1,so=!1,Yo=typeof queueMicrotask=="function"?function(S){queueMicrotask(function(){return queueMicrotask(S)})}:Se;xt=Object.freeze({__proto__:null,c:function(S){return I().useMemoCache(S)}});var ia={map:Y,forEach:function(S,V,J){Y(S,function(){V.apply(this,arguments)},J)},count:function(S){var V=0;return Y(S,function(){V++}),V},toArray:function(S){return Y(S,function(V){return V})||[]},only:function(S){if(!ne(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};i.Activity=ue,i.Children=ia,i.Component=p,i.Fragment=O,i.Profiler=ve,i.PureComponent=m,i.StrictMode=te,i.Suspense=xe,i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=de,i.__COMPILER_RUNTIME=xt,i.act=function(S){var V=de.actQueue,J=xa;xa++;var ae=de.actQueue=V!==null?V:[],ye=!1;try{var Oe=S()}catch(_e){de.thrownErrors.push(_e)}if(0<de.thrownErrors.length)throw Z(V,J),S=De(de.thrownErrors),de.thrownErrors.length=0,S;if(Oe!==null&&typeof Oe=="object"&&typeof Oe.then=="function"){var be=Oe;return Yo(function(){ye||io||(io=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(_e,en){ye=!0,be.then(function(wa){if(Z(V,J),J===0){try{oe(ae),Se(function(){return pe(wa,_e,en)})}catch(Ds){de.thrownErrors.push(Ds)}if(0<de.thrownErrors.length){var Bu=De(de.thrownErrors);de.thrownErrors.length=0,en(Bu)}}else _e(wa)},function(wa){Z(V,J),0<de.thrownErrors.length&&(wa=De(de.thrownErrors),de.thrownErrors.length=0),en(wa)})}}}var Pe=Oe;if(Z(V,J),J===0&&(oe(ae),ae.length!==0&&Yo(function(){ye||io||(io=!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(() => ...)"))}),de.actQueue=null),0<de.thrownErrors.length)throw S=De(de.thrownErrors),de.thrownErrors.length=0,S;return{then:function(_e,en){ye=!0,J===0?(de.actQueue=ae,Se(function(){return pe(Pe,_e,en)})):_e(Pe)}}},i.cache=function(S){return function(){return S.apply(null,arguments)}},i.cacheSignal=function(){return null},i.captureOwnerStack=function(){var S=de.getCurrentStack;return S===null?null:S()},i.cloneElement=function(S,V,J){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var ae=aa({},S.props),ye=S.key,Oe=S._owner;if(V!=null){var be;e:{if(Bo.call(V,"ref")&&(be=Object.getOwnPropertyDescriptor(V,"ref").get)&&be.isReactWarning){be=!1;break e}be=V.ref!==void 0}be&&(Oe=w()),L(V)&&(T(V.key),ye=""+V.key);for(Pe in V)!Bo.call(V,Pe)||Pe==="key"||Pe==="__self"||Pe==="__source"||Pe==="ref"&&V.ref===void 0||(ae[Pe]=V[Pe])}var Pe=arguments.length-2;if(Pe===1)ae.children=J;else if(1<Pe){be=Array(Pe);for(var _e=0;_e<Pe;_e++)be[_e]=arguments[_e+2];ae.children=be}for(ae=G(S.type,ye,ae,Oe,S._debugStack,S._debugTask),ye=2;ye<arguments.length;ye++)K(arguments[ye]);return ae},i.createContext=function(S){return S={$$typeof:ot,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:fe,_context:S},S._currentRenderer=null,S._currentRenderer2=null,S},i.createElement=function(S,V,J){for(var ae=2;ae<arguments.length;ae++)K(arguments[ae]);ae={};var ye=null;if(V!=null)for(_e in Ta||!("__self"in V)||"key"in V||(Ta=!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(V)&&(T(V.key),ye=""+V.key),V)Bo.call(V,_e)&&_e!=="key"&&_e!=="__self"&&_e!=="__source"&&(ae[_e]=V[_e]);var Oe=arguments.length-2;if(Oe===1)ae.children=J;else if(1<Oe){for(var be=Array(Oe),Pe=0;Pe<Oe;Pe++)be[Pe]=arguments[Pe+2];Object.freeze&&Object.freeze(be),ae.children=be}if(S&&S.defaultProps)for(_e in Oe=S.defaultProps,Oe)ae[_e]===void 0&&(ae[_e]=Oe[_e]);ye&&U(ae,typeof S=="function"?S.displayName||S.name||"Unknown":S);var _e=1e4>de.recentlyCreatedOwnerStacks++;return G(S,ye,ae,w(),_e?Error("react-stack-top-frame"):oo,_e?Bn(g(S)):Ni)},i.createRef=function(){var S={current:null};return Object.seal(S),S},i.forwardRef=function(S){S!=null&&S.$$typeof===Et?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof S!="function"?console.error("forwardRef requires a render function but was given %s.",S===null?"null":typeof S):S.length!==0&&S.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",S.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),S!=null&&S.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var V={$$typeof:hn,render:S},J;return Object.defineProperty(V,"displayName",{enumerable:!1,configurable:!0,get:function(){return J},set:function(ae){J=ae,S.name||S.displayName||(Object.defineProperty(S,"name",{value:ae}),S.displayName=ae)}}),V},i.isValidElement=ne,i.lazy=function(S){S={_status:-1,_result:S};var V={$$typeof:zt,_payload:S,_init:W},J={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return S._ioInfo=J,V._debugInfo=[{awaited:J}],V},i.memo=function(S,V){S==null&&console.error("memo: The first argument must be a component. Instead received: %s",S===null?"null":typeof S),V={$$typeof:Et,type:S,compare:V===void 0?null:V};var J;return Object.defineProperty(V,"displayName",{enumerable:!1,configurable:!0,get:function(){return J},set:function(ae){J=ae,S.name||S.displayName||(Object.defineProperty(S,"name",{value:ae}),S.displayName=ae)}}),V},i.startTransition=function(S){var V=de.T,J={};J._updatedFibers=new Set,de.T=J;try{var ae=S(),ye=de.S;ye!==null&&ye(J,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&(de.asyncTransitions++,ae.then(Q,Q),ae.then(E,ko))}catch(Oe){ko(Oe)}finally{V===null&&J._updatedFibers&&(S=J._updatedFibers.size,J._updatedFibers.clear(),10<S&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),V!==null&&J.types!==null&&(V.types!==null&&V.types!==J.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."),V.types=J.types),de.T=V}},i.unstable_useCacheRefresh=function(){return I().useCacheRefresh()},i.use=function(S){return I().use(S)},i.useActionState=function(S,V,J){return I().useActionState(S,V,J)},i.useCallback=function(S,V){return I().useCallback(S,V)},i.useContext=function(S){var V=I();return S.$$typeof===fe&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),V.useContext(S)},i.useDebugValue=function(S,V){return I().useDebugValue(S,V)},i.useDeferredValue=function(S,V){return I().useDeferredValue(S,V)},i.useEffect=function(S,V){return S==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),I().useEffect(S,V)},i.useEffectEvent=function(S){return I().useEffectEvent(S)},i.useId=function(){return I().useId()},i.useImperativeHandle=function(S,V,J){return I().useImperativeHandle(S,V,J)},i.useInsertionEffect=function(S,V){return S==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),I().useInsertionEffect(S,V)},i.useLayoutEffect=function(S,V){return S==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),I().useLayoutEffect(S,V)},i.useMemo=function(S,V){return I().useMemo(S,V)},i.useOptimistic=function(S,V){return I().useOptimistic(S,V)},i.useReducer=function(S,V,J){return I().useReducer(S,V,J)},i.useRef=function(S){return I().useRef(S)},i.useState=function(S){return I().useState(S)},i.useSyncExternalStore=function(S,V,J){return I().useSyncExternalStore(S,V,J)},i.useTransition=function(){return I().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())})()}(Tu,Tu.exports)),Tu.exports}var LE;function zu(){return LE||(LE=1,by.exports=AO()),by.exports}var BE;function CO(){if(BE)return Wf;BE=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(O){if(O==null)return null;if(typeof O=="function")return O.$$typeof===W?null:O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case U:return"Fragment";case G:return"Profiler";case B:return"StrictMode";case se:return"Suspense";case le:return"SuspenseList";case Y:return"Activity"}if(typeof O=="object")switch(typeof O.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),O.$$typeof){case L:return"Portal";case K:return O.displayName||"Context";case P:return(O._context.displayName||"Context")+".Consumer";case ne:var te=O.render;return O=O.displayName,O||(O=te.displayName||te.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case F:return te=O.displayName||null,te!==null?te:o(O.type)||"Memo";case X:te=O._payload,O=O._init;try{return o(O(te))}catch{}}return null}function i(O){return""+O}function l(O){try{i(O);var te=!1}catch{te=!0}if(te){te=console;var ve=te.error,fe=typeof Symbol=="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return ve.call(te,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",fe),i(O)}}function u(O){if(O===U)return"<>";if(typeof O=="object"&&O!==null&&O.$$typeof===X)return"<...>";try{var te=o(O);return te?"<"+te+">":"<...>"}catch{return"<...>"}}function f(){var O=I.A;return O===null?null:O.getOwner()}function p(){return Error("react-stack-top-frame")}function h(O){if(Q.call(O,"key")){var te=Object.getOwnPropertyDescriptor(O,"key").get;if(te&&te.isReactWarning)return!1}return O.key!==void 0}function m(O,te){function ve(){Z||(Z=!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)",te))}ve.isReactWarning=!0,Object.defineProperty(O,"key",{get:ve,configurable:!0})}function E(){var O=o(this.type);return pe[O]||(pe[O]=!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.")),O=this.props.ref,O!==void 0?O:null}function x(O,te,ve,fe,ot,hn){var xe=ve.ref;return O={$$typeof:C,type:O,key:te,props:ve,_owner:fe},(xe!==void 0?xe:null)!==null?Object.defineProperty(O,"ref",{enumerable:!1,get:E}):Object.defineProperty(O,"ref",{enumerable:!1,value:null}),O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(O,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(O,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ot}),Object.defineProperty(O,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:hn}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O}function T(O,te,ve,fe,ot,hn){var xe=te.children;if(xe!==void 0)if(fe)if(Se(xe)){for(fe=0;fe<xe.length;fe++)v(xe[fe]);Object.freeze&&Object.freeze(xe)}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(xe);if(Q.call(te,"key")){xe=o(O);var Tt=Object.keys(te).filter(function(zt){return zt!=="key"});fe=0<Tt.length?"{key: someKey, "+Tt.join(": ..., ")+": ...}":"{key: someKey}",Me[xe+fe]||(Tt=0<Tt.length?"{"+Tt.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} />`,fe,xe,Tt,xe),Me[xe+fe]=!0)}if(xe=null,ve!==void 0&&(l(ve),xe=""+ve),h(te)&&(l(te.key),xe=""+te.key),"key"in te){ve={};for(var Et in te)Et!=="key"&&(ve[Et]=te[Et])}else ve=te;return xe&&m(ve,typeof O=="function"?O.displayName||O.name||"Unknown":O),x(O,xe,ve,f(),ot,hn)}function v(O){g(O)?O._store&&(O._store.validated=1):typeof O=="object"&&O!==null&&O.$$typeof===X&&(O._payload.status==="fulfilled"?g(O._payload.value)&&O._payload.value._store&&(O._payload.value._store.validated=1):O._store&&(O._store.validated=1))}function g(O){return typeof O=="object"&&O!==null&&O.$$typeof===C}var w=zu(),C=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),K=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),W=Symbol.for("react.client.reference"),I=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,Se=Array.isArray,De=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(O){return O()}};var Z,pe={},oe=w.react_stack_bottom_frame.bind(w,p)(),me=De(u(p)),Me={};Wf.Fragment=U,Wf.jsxDEV=function(O,te,ve,fe){var ot=1e4>I.recentlyCreatedOwnerStacks++;return T(O,te,ve,fe,ot?Error("react-stack-top-frame"):oe,ot?De(u(O)):me)}}(),Wf}var kE;function DO(){return kE||(kE=1,vy.exports=CO()),vy.exports}var Fe=DO(),A=zu(),Sy={exports:{}},vu={},Ty={exports:{}},Ey={},HE;function MO(){return HE||(HE=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(ne=!1,X){var Z=o.unstable_now();I=Z;var pe=!0;try{e:{P=!1,K&&(K=!1,le(Y),Y=-1),G=!0;var oe=B;try{t:{for(h(Z),U=u(w);U!==null&&!(U.expirationTime>Z&&E());){var me=U.callback;if(typeof me=="function"){U.callback=null,B=U.priorityLevel;var Me=me(U.expirationTime<=Z);if(Z=o.unstable_now(),typeof Me=="function"){U.callback=Me,h(Z),pe=!0;break t}U===u(w)&&f(w),h(Z)}else f(w);U=u(w)}if(U!==null)pe=!0;else{var O=u(C);O!==null&&x(m,O.startTime-Z),pe=!1}}break e}finally{U=null,B=oe,G=!1}pe=void 0}}finally{pe?Q():X=!1}}}function l(Z,pe){var oe=Z.length;Z.push(pe);e:for(;0<oe;){var me=oe-1>>>1,Me=Z[me];if(0<p(Me,pe))Z[me]=pe,Z[oe]=Me,oe=me;else break e}}function u(Z){return Z.length===0?null:Z[0]}function f(Z){if(Z.length===0)return null;var pe=Z[0],oe=Z.pop();if(oe!==pe){Z[0]=oe;e:for(var me=0,Me=Z.length,O=Me>>>1;me<O;){var te=2*(me+1)-1,ve=Z[te],fe=te+1,ot=Z[fe];if(0>p(ve,oe))fe<Me&&0>p(ot,ve)?(Z[me]=ot,Z[fe]=oe,me=fe):(Z[me]=ve,Z[te]=oe,me=te);else if(fe<Me&&0>p(ot,oe))Z[me]=ot,Z[fe]=oe,me=fe;else break e}}return pe}function p(Z,pe){var oe=Z.sortIndex-pe.sortIndex;return oe!==0?oe:Z.id-pe.id}function h(Z){for(var pe=u(C);pe!==null;){if(pe.callback===null)f(C);else if(pe.startTime<=Z)f(C),pe.sortIndex=pe.expirationTime,l(w,pe);else break;pe=u(C)}}function m(Z){if(K=!1,h(Z),!P)if(u(w)!==null)P=!0,X||(X=!0,Q());else{var pe=u(C);pe!==null&&x(m,pe.startTime-Z)}}function E(){return ne?!0:!(o.unstable_now()-I<W)}function x(Z,pe){Y=se(function(){Z(o.unstable_now())},pe)}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 T=performance;o.unstable_now=function(){return T.now()}}else{var v=Date,g=v.now();o.unstable_now=function(){return v.now()-g}}var w=[],C=[],L=1,U=null,B=3,G=!1,P=!1,K=!1,ne=!1,se=typeof setTimeout=="function"?setTimeout:null,le=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null,X=!1,Y=-1,W=5,I=-1;if(typeof F=="function")var Q=function(){F(i)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,De=Se.port2;Se.port1.onmessage=i,Q=function(){De.postMessage(null)}}else Q=function(){se(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(Z){Z.callback=null},o.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<Z?Math.floor(1e3/Z):5},o.unstable_getCurrentPriorityLevel=function(){return B},o.unstable_next=function(Z){switch(B){case 1:case 2:case 3:var pe=3;break;default:pe=B}var oe=B;B=pe;try{return Z()}finally{B=oe}},o.unstable_requestPaint=function(){ne=!0},o.unstable_runWithPriority=function(Z,pe){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var oe=B;B=Z;try{return pe()}finally{B=oe}},o.unstable_scheduleCallback=function(Z,pe,oe){var me=o.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?me+oe:me):oe=me,Z){case 1:var Me=-1;break;case 2:Me=250;break;case 5:Me=1073741823;break;case 4:Me=1e4;break;default:Me=5e3}return Me=oe+Me,Z={id:L++,callback:pe,priorityLevel:Z,startTime:oe,expirationTime:Me,sortIndex:-1},oe>me?(Z.sortIndex=oe,l(C,Z),u(w)===null&&Z===u(C)&&(K?(le(Y),Y=-1):K=!0,x(m,oe-me))):(Z.sortIndex=Me,l(w,Z),P||G||(P=!0,X||(X=!0,Q()))),Z},o.unstable_shouldYield=E,o.unstable_wrapCallback=function(Z){var pe=B;return function(){var oe=B;B=pe;try{return Z.apply(this,arguments)}finally{B=oe}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()}(Ey)),Ey}var YE;function OO(){return YE||(YE=1,Ty.exports=MO()),Ty.exports}var xy={exports:{}},Wt={},qE;function _O(){if(qE)return Wt;qE=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,g,w){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{i(C);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&&C[Symbol.toStringTag]||C.constructor.name||"Object"),i(C)),{$$typeof:x,key:C==null?null:""+C,children:v,containerInfo:g,implementation:w}}function u(v,g){if(v==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}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=T.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=zu(),E={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},x=Symbol.for("react.portal"),T=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"),Wt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E,Wt.createPortal=function(v,g){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error("Target container is not a DOM element.");return l(v,g,null,w)},Wt.flushSync=function(v){var g=T.T,w=E.p;try{if(T.T=null,E.p=2,v)return v()}finally{T.T=g,E.p=w,E.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.")}},Wt.preconnect=function(v,g){typeof v=="string"&&v?g!=null&&typeof g!="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(g)):g!=null&&typeof g.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(g.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"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,E.d.C(v,g))},Wt.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 g=arguments[1];typeof g=="object"&&g.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(g)):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(g))}typeof v=="string"&&E.d.D(v)},Wt.preinit=function(v,g){if(typeof v=="string"&&v?g==null||typeof g!="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(g)):g.as!=="style"&&g.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(g.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"&&g&&typeof g.as=="string"){var w=g.as,C=u(w,g.crossOrigin),L=typeof g.integrity=="string"?g.integrity:void 0,U=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;w==="style"?E.d.S(v,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:C,integrity:L,fetchPriority:U}):w==="script"&&E.d.X(v,{crossOrigin:C,integrity:L,fetchPriority:U,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Wt.preinitModule=function(v,g){var w="";if(typeof v=="string"&&v||(w+=" The `href` argument encountered was "+f(v)+"."),g!==void 0&&typeof g!="object"?w+=" The `options` argument encountered was "+f(g)+".":g&&"as"in g&&g.as!=="script"&&(w+=" The `as` option encountered was "+p(g.as)+"."),w)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",w);else switch(w=g&&typeof g.as=="string"?g.as:"script",w){case"script":break;default:w=p(w),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)',w,v)}typeof v=="string"&&(typeof g=="object"&&g!==null?(g.as==null||g.as==="script")&&(w=u(g.as,g.crossOrigin),E.d.M(v,{crossOrigin:w,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})):g==null&&E.d.M(v))},Wt.preload=function(v,g){var w="";if(typeof v=="string"&&v||(w+=" The `href` argument encountered was "+f(v)+"."),g==null||typeof g!="object"?w+=" The `options` argument encountered was "+f(g)+".":typeof g.as=="string"&&g.as||(w+=" The `as` option encountered was "+f(g.as)+"."),w&&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',w),typeof v=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){w=g.as;var C=u(w,g.crossOrigin);E.d.L(v,w,{crossOrigin:C,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Wt.preloadModule=function(v,g){var w="";typeof v=="string"&&v||(w+=" The `href` argument encountered was "+f(v)+"."),g!==void 0&&typeof g!="object"?w+=" The `options` argument encountered was "+f(g)+".":g&&"as"in g&&typeof g.as!="string"&&(w+=" The `as` option encountered was "+f(g.as)+"."),w&&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',w),typeof v=="string"&&(g?(w=u(g.as,g.crossOrigin),E.d.m(v,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:w,integrity:typeof g.integrity=="string"?g.integrity:void 0})):E.d.m(v))},Wt.requestFormReset=function(v){E.d.r(v)},Wt.unstable_batchedUpdates=function(v,g){return v(g)},Wt.useFormState=function(v,g,w){return h().useFormState(v,g,w)},Wt.useFormStatus=function(){return h().useHostTransitionStatus()},Wt.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),Wt}var GE;function Rw(){return GE||(GE=1,xy.exports=_O()),xy.exports}var PE;function jO(){if(PE)return vu;PE=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 s=t[n],r=Nt(e)?e.slice():Be({},e);return r[s]=i(e[s],t,n+1,a),r}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 s=t[a],r=Nt(e)?e.slice():Be({},e);return a+1===t.length?(r[n[a]]=r[s],Nt(r)?r.splice(s,1):delete r[s]):r[s]=u(e[s],t,n,a+1),r}function f(e,t,n){var a=t[n],s=Nt(e)?e.slice():Be({},e);return n+1===t.length?(Nt(s)?s.splice(a,1):delete s[a],s):(s[a]=f(e[a],t,n+1),s)}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 E(){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 x(){}function T(){}function v(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")}function g(e,t,n,a){return new hC(e,t,n,a)}function w(e,t){e.context===ri&&(Lp(e.current,2,t,e,null,null),Ys())}function C(e,t){if($n!==null){var n=t.staleFamilies;t=t.updatedFamilies,hl(),qv(e.current,t,n),Ys()}}function L(e){$n=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 G(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 K(e){if(B(e)!==e)throw Error("Unable to find node on an unmounted component.")}function ne(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 s=n.return;if(s===null)break;var r=s.alternate;if(r===null){if(a=s.return,a!==null){n=a;continue}break}if(s.child===r.child){for(r=s.child;r;){if(r===n)return K(s),e;if(r===a)return K(s),t;r=r.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==a.return)n=s,a=r;else{for(var c=!1,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){for(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)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 se(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=se(e),t!==null)return t;e=e.sibling}return null}function le(e){return e===null||typeof e!="object"?null:(e=IS&&e[IS]||e["@@iterator"],typeof e=="function"?e:null)}function F(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===VD?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Zs:return"Fragment";case Pp:return"Profiler";case Xc:return"StrictMode";case Xp:return"Suspense";case Qp:return"SuspenseList";case Zp: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 Qs:return"Portal";case qa:return e.displayName||"Context";case $p:return(e._context.displayName||"Context")+".Consumer";case xl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qc:return t=e.displayName||null,t!==null?t:F(e.type)||"Memo";case On:t=e._payload,e=e._init;try{return F(e(t))}catch{}}return null}function X(e){return typeof e.tag=="number"?Y(e):typeof e.name=="string"?e.name:null}function Y(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 F(t);case 8:return t===Xc?"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 Y(e.return)}return null}function W(e){return{current:e}}function I(e,t){0>go?console.error("Unexpected pop."):(t!==Jp[go]&&console.error("Unexpected Fiber popped."),e.current=Ip[go],Ip[go]=null,Jp[go]=null,go--)}function Q(e,t,n){go++,Ip[go]=e.current,Jp[go]=n,e.current=t}function Se(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function De(e,t){Q(ti,t,e),Q(wl,e,e),Q(ei,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?bS(t):jo;break;default:if(n=t.tagName,t=t.namespaceURI)t=bS(t),t=SS(t,n);else switch(n){case"svg":t=Dr;break;case"math":t=Xf;break;default:t=jo}}n=n.toLowerCase(),n=hv(null,n),n={context:t,ancestorInfo:n},I(ei,e),Q(ei,n,e)}function Z(e){I(ei,e),I(wl,e),I(ti,e)}function pe(){return Se(ei.current)}function oe(e){e.memoizedState!==null&&Q(Zc,e,e);var t=Se(ei.current),n=e.type,a=SS(t.context,n);n=hv(t.ancestorInfo,n),a={context:a,ancestorInfo:n},t!==a&&(Q(wl,e,e),Q(ei,a,e))}function me(e){wl.current===e&&(I(ei,e),I(wl,e)),Zc.current===e&&(I(Zc,e),mu._currentValue=Ss)}function Me(){}function O(){if(Rl===0){JS=console.log,FS=console.info,KS=console.warn,WS=console.error,e1=console.group,t1=console.groupCollapsed,n1=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Me,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Rl++}function te(){if(Rl--,Rl===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Be({},e,{value:JS}),info:Be({},e,{value:FS}),warn:Be({},e,{value:KS}),error:Be({},e,{value:WS}),group:Be({},e,{value:e1}),groupCollapsed:Be({},e,{value:t1}),groupEnd:Be({},e,{value:n1})})}0>Rl&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ve(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 fe(e){if(Fp===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Fp=t&&t[1]||"",a1=-1<n.stack.indexOf(`
66
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
67
- `+Fp+e+a1}function ot(e,t){if(!e||Kp)return"";var n=Wp.get(e);if(n!==void 0)return n;Kp=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var a=null;a=q.H,q.H=null,O();try{var s={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(ie){var k=ie}Reflect.construct(e,[],D)}else{try{D.call()}catch(ie){k=ie}e.call(D.prototype)}}else{try{throw Error()}catch(ie){k=ie}(D=e())&&typeof D.catch=="function"&&D.catch(function(){})}}catch(ie){if(ie&&k&&typeof ie.stack=="string")return[ie.stack,k.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=s.DetermineComponentFrameRoot(),d=c[0],y=c[1];if(d&&y){var b=d.split(`
68
- `),z=y.split(`
69
- `);for(c=r=0;r<b.length&&!b[r].includes("DetermineComponentFrameRoot");)r++;for(;c<z.length&&!z[c].includes("DetermineComponentFrameRoot");)c++;if(r===b.length||c===z.length)for(r=b.length-1,c=z.length-1;1<=r&&0<=c&&b[r]!==z[c];)c--;for(;1<=r&&0<=c;r--,c--)if(b[r]!==z[c]){if(r!==1||c!==1)do if(r--,c--,0>c||b[r]!==z[c]){var N=`
70
- `+b[r].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),typeof e=="function"&&Wp.set(e,N),N}while(1<=r&&0<=c);break}}}finally{Kp=!1,q.H=a,te(),Error.prepareStackTrace=n}return b=(b=e?e.displayName||e.name:"")?fe(b):"",typeof e=="function"&&Wp.set(e,b),b}function hn(e,t){switch(e.tag){case 26:case 27:case 5:return fe(e.type);case 16:return fe("Lazy");case 13:return e.child!==t&&t!==null?fe("Suspense Fallback"):fe("Suspense");case 19:return fe("SuspenseList");case 0:case 15:return ot(e.type,!1);case 11:return ot(e.type.render,!1);case 1:return ot(e.type,!0);case 31:return fe("Activity");default:return""}}function xe(e){try{var t="",n=null;do{t+=hn(e,n);var a=e._debugInfo;if(a)for(var s=a.length-1;0<=s;s--){var r=a[s];if(typeof r.name=="string"){var c=t;e:{var d=r.name,y=r.env,b=r.debugLocation;if(b!=null){var z=ve(b),N=z.lastIndexOf(`
71
- `),D=N===-1?z:z.slice(N+1);if(D.indexOf(d)!==-1){var k=`
72
- `+D;break e}}k=fe(d+(y?" ["+y+"]":""))}t=c+k}}n=e,e=e.return}while(e);return t}catch(ie){return`
73
- Error generating stack: `+ie.message+`
74
- `+ie.stack}}function Tt(e){return(e=e?e.displayName||e.name:"")?fe(e):""}function Et(){if(_n===null)return null;var e=_n._debugOwner;return e!=null?X(e):null}function zt(){if(_n===null)return"";var e=_n;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=fe(e.type);break;case 13:t+=fe("Suspense");break;case 19:t+=fe("SuspenseList");break;case 31:t+=fe("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=Tt(e.type));break;case 11:e._debugOwner||t!==""||(t+=Tt(e.type.render))}for(;e;)if(typeof e.tag=="number"){var n=e;e=n._debugOwner;var a=n._debugStack;if(e&&a){var s=ve(a);s!==""&&(t+=`
75
- `+s)}}else if(e.debugStack!=null){var r=e.debugStack;(e=e.owner)&&r&&(t+=`
76
- `+ve(r))}else break;var c=t}catch(d){c=`
77
- Error generating stack: `+d.message+`
78
- `+d.stack}return c}function ue(e,t,n,a,s,r,c){var d=_n;Lo(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,n,a,s,r,c)):t(n,a,s,r,c)}finally{Lo(d)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Lo(e){q.getCurrentStack=e===null?null:zt,Ga=!1,_n=e}function En(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Ln(e){try{return aa(e),!1}catch{return!0}}function aa(e){return""+e}function Xe(e,t){if(Ln(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,En(e)),aa(e)}function xt(e,t){if(Ln(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,En(e)),aa(e)}function no(e){if(Ln(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.",En(e)),aa(e)}function zi(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{Js=t.inject(e),Ft=t}catch(n){console.error("React instrumentation encountered an error: %o.",n)}return!!t.checkDCE}function de(e){if(typeof qD=="function"&&GD(e),Ft&&typeof Ft.setStrictMode=="function")try{Ft.setStrictMode(Js,e)}catch(t){Pa||(Pa=!0,console.error("React instrumentation encountered an error: %o",t))}}function Bo(e){return e>>>=0,e===0?32:31-(PD(e)/$D|0)|0}function Bn(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 ao(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var s=0,r=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~r,a!==0?s=Bn(a):(c&=d,c!==0?s=Bn(c):n||(n=d&~e,n!==0&&(s=Bn(n))))):(d=a&~r,d!==0?s=Bn(d):c!==0?s=Bn(c):n||(n=a&~e,n!==0&&(s=Bn(n)))),s===0?0:t!==0&&t!==s&&(t&r)===0&&(r=s&-s,n=t&-t,r>=n||r===32&&(n&4194048)!==0)?t:s}function Ta(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Cs(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 oo(){var e=Fc;return Fc<<=1,(Fc&62914560)===0&&(Fc=4194304),e}function Ni(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function oa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Vi(e,t,n,a,s,r){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,y=e.expirationTimes,b=e.hiddenUpdates;for(n=c&~n;0<n;){var z=31-nn(n),N=1<<z;d[z]=0,y[z]=-1;var D=b[z];if(D!==null)for(b[z]=null,z=0;z<D.length;z++){var k=D[z];k!==null&&(k.lane&=-536870913)}n&=~N}a!==0&&ko(e,a,0),r!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=r&~(c&~t))}function ko(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-nn(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Ho(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-nn(n),s=1<<a;s&t|e[a]&t&&(e[a]|=t),n&=~s}}function Ea(e,t){var n=t&-t;return n=(n&42)!==0?1:xa(n),(n&(e.suspendedLanes|t))!==0?0:n}function xa(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 io(e,t,n){if($a)for(e=e.pendingUpdatersLaneMap;0<n;){var a=31-nn(n),s=1<<a;e[a].add(t),n&=~s}}function so(e,t){if($a)for(var n=e.pendingUpdatersLaneMap,a=e.memoizedUpdaters;0<t;){var s=31-nn(t);e=1<<s,s=n[s],0<s.size&&(s.forEach(function(r){var c=r.alternate;c!==null&&a.has(c)||a.add(r)}),s.clear()),t&=~e}}function Yo(e){return e&=-e,qn<e?Xa<e?(e&134217727)!==0?vo:Kc:Xa:qn}function ia(){var e=Ze.p;return e!==0?e:(e=window.event,e===void 0?vo:qS(e.type))}function S(e,t){var n=Ze.p;try{return Ze.p=e,t()}finally{Ze.p=n}}function V(e){delete e[Xt],delete e[an],delete e[om],delete e[XD],delete e[QD]}function J(e){var t=e[Xt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ai]||n[Xt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=DS(e);e!==null;){if(n=e[Xt])return n;e=DS(e)}return t}e=n,n=e.parentNode}return null}function ae(e){if(e=e[Xt]||e[ai]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ye(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Oe(e){var t=e[o1];return t||(t=e[o1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function be(e){e[Al]=!0}function Pe(e,t){_e(e,t),_e(e+"Capture",t)}function _e(e,t){Fi[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Fi[e]=t;var n=e.toLowerCase();for(im[n]=e,e==="onDoubleClick"&&(im.ondblclick=e),e=0;e<t.length;e++)i1.add(t[e])}function en(e,t){ZD[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 wa(e){return ca.call(r1,e)?!0:ca.call(s1,e)?!1:ID.test(e)?r1[e]=!0:(s1[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Bu(e,t,n){if(wa(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:(Xe(n,t),e===""+n?n:e)}}function Ds(e,t,n){if(wa(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}}Xe(n,t),e.setAttribute(t,""+n)}}function ku(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}Xe(n,t),e.setAttribute(t,""+n)}}function ro(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}Xe(a,n),e.setAttributeNS(t,n,""+a)}}function kn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return no(e),e;default:return""}}function Wg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function PA(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 s=a.get,r=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(c){no(c),n=""+c,r.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(c){no(c),n=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ld(e){if(!e._valueTracker){var t=Wg(e)?"checked":"value";e._valueTracker=PA(e,t,""+e[t])}}function ev(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Wg(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Hu(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 Hn(e){return e.replace(JD,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function tv(e,t){t.checked===void 0||t.defaultChecked===void 0||u1||(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",Et()||"A component",t.type),u1=!0),t.value===void 0||t.defaultValue===void 0||l1||(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",Et()||"A component",t.type),l1=!0)}function Bd(e,t,n,a,s,r,c,d){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?(Xe(c,"type"),e.type=c):e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+kn(t)):e.value!==""+kn(t)&&(e.value=""+kn(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?kd(e,c,kn(t)):n!=null?kd(e,c,kn(n)):a!=null&&e.removeAttribute("value"),s==null&&r!=null&&(e.defaultChecked=!!r),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?(Xe(d,"name"),e.name=""+kn(d)):e.removeAttribute("name")}function nv(e,t,n,a,s,r,c,d){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(Xe(r,"type"),e.type=r),t!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){Ld(e);return}n=n!=null?""+kn(n):"",t=t!=null?""+kn(t):n,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??s,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"&&(Xe(c,"name"),e.name=c),Ld(e)}function kd(e,t,n){t==="number"&&Hu(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function av(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?Gp.Children.forEach(t.children,function(n){n==null||typeof n=="string"||typeof n=="number"||typeof n=="bigint"||f1||(f1=!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||d1||(d1=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||c1||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),c1=!0)}function ov(){var e=Et();return e?`
79
-
80
- Check the render method of \``+e+"`.":""}function Ms(e,t,n,a){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&a&&(e[n].defaultSelected=!0)}else{for(n=""+kn(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,a&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function iv(e,t){for(e=0;e<p1.length;e++){var n=p1[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,ov()):!t.multiple&&a&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,ov())}}t.value===void 0||t.defaultValue===void 0||h1||(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"),h1=!0)}function sv(e,t){t.value===void 0||t.defaultValue===void 0||m1||(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",Et()||"A component"),m1=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function rv(e,t,n){if(t!=null&&(t=""+kn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+kn(n):""}function lv(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=kn(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Ld(e)}function uv(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?uv(e.children[0],t):e}function xn(e){return" "+" ".repeat(e)}function Os(e){return"+ "+" ".repeat(e)}function Ui(e){return"- "+" ".repeat(e)}function cv(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 Gr(e,t){return y1.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 Yu(e,t,n){var a=120-2*n;if(t===null)return Os(n)+Gr(e,a)+`
81
- `;if(typeof t=="string"){for(var s=0;s<t.length&&s<e.length&&t.charCodeAt(s)===e.charCodeAt(s);s++);return s>a-8&&10<s&&(e="..."+e.slice(s-8),t="..."+t.slice(s-8)),Os(n)+Gr(e,a)+`
82
- `+Ui(n)+Gr(t,a)+`
83
- `}return xn(n)+Gr(e,a)+`
84
- `}function Hd(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,n){return n})}function Pr(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===Ya)return(t=F(e.type))?"<"+t+">":"<...>";var n=Hd(e);if(n==="Object"){n="",t-=2;for(var a in e)if(e.hasOwnProperty(a)){var s=JSON.stringify(a);if(s!=='"'+a+'"'&&(a=s),t-=a.length-2,s=Pr(e[a],15>t?t:15),t-=s.length,0>t){n+=n===""?"...":", ...";break}n+=(n===""?"":",")+a+":"+s}return"{"+n+"}"}return n;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function _s(e,t){return typeof e!="string"||y1.test(e)?"{"+Pr(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function Yd(e,t,n){var a=120-n.length-e.length,s=[],r;for(r in t)if(t.hasOwnProperty(r)&&r!=="children"){var c=_s(t[r],120-n.length-r.length-1);a-=r.length+c.length+2,s.push(r+"="+c)}return s.length===0?n+"<"+e+`>
85
- `:0<a?n+"<"+e+" "+s.join(" ")+`>
86
- `:n+"<"+e+`
87
- `+n+" "+s.join(`
88
- `+n+" ")+`
89
- `+n+`>
90
- `}function $A(e,t,n){var a="",s=Be({},t),r;for(r in e)if(e.hasOwnProperty(r)){delete s[r];var c=120-2*n-r.length-2,d=Pr(e[r],c);t.hasOwnProperty(r)?(c=Pr(t[r],c),a+=Os(n)+r+": "+d+`
91
- `,a+=Ui(n)+r+": "+c+`
92
- `):a+=Os(n)+r+": "+d+`
93
- `}for(var y in s)s.hasOwnProperty(y)&&(e=Pr(s[y],120-2*n-y.length-2),a+=Ui(n)+y+": "+e+`
94
- `);return a}function XA(e,t,n,a){var s="",r=new Map;for(b in n)n.hasOwnProperty(b)&&r.set(b.toLowerCase(),b);if(r.size===1&&r.has("children"))s+=Yd(e,t,xn(a));else{for(var c in t)if(t.hasOwnProperty(c)&&c!=="children"){var d=120-2*(a+1)-c.length-1,y=r.get(c.toLowerCase());if(y!==void 0){r.delete(c.toLowerCase());var b=t[c];y=n[y];var z=_s(b,d);d=_s(y,d),typeof b=="object"&&b!==null&&typeof y=="object"&&y!==null&&Hd(b)==="Object"&&Hd(y)==="Object"&&(2<Object.keys(b).length||2<Object.keys(y).length||-1<z.indexOf("...")||-1<d.indexOf("..."))?s+=xn(a+1)+c+`={{
95
- `+$A(b,y,a+2)+xn(a+1)+`}}
96
- `:(s+=Os(a+1)+c+"="+z+`
97
- `,s+=Ui(a+1)+c+"="+d+`
98
- `)}else s+=xn(a+1)+c+"="+_s(t[c],d)+`
99
- `}r.forEach(function(N){if(N!=="children"){var D=120-2*(a+1)-N.length-1;s+=Ui(a+1)+N+"="+_s(n[N],D)+`
100
- `}}),s=s===""?xn(a)+"<"+e+`>
101
- `:xn(a)+"<"+e+`
102
- `+s+xn(a)+`>
103
- `}return e=n.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(r="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(r=""+t),s+=Yu(r,""+e,a+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(s=e==null?s+Yu(""+t,null,a+1):s+Yu(""+t,void 0,a+1)),s}function fv(e,t){var n=cv(e);if(n===null){for(n="",e=e.child;e;)n+=fv(e,t),e=e.sibling;return n}return xn(t)+"<"+n+`>
104
- `}function qd(e,t){var n=uv(e,t);if(n!==e&&(e.children.length!==1||e.children[0]!==n))return xn(t)+`...
105
- `+qd(n,t+1);n="";var a=e.fiber._debugInfo;if(a)for(var s=0;s<a.length;s++){var r=a[s].name;typeof r=="string"&&(n+=xn(t)+"<"+r+`>
106
- `,t++)}if(a="",s=e.fiber.pendingProps,e.fiber.tag===6)a=Yu(s,e.serverProps,t),t++;else if(r=cv(e.fiber),r!==null)if(e.serverProps===void 0){a=t;var c=120-2*a-r.length-2,d="";for(b in s)if(s.hasOwnProperty(b)&&b!=="children"){var y=_s(s[b],15);if(c-=b.length+y.length+2,0>c){d+=" ...";break}d+=" "+b+"="+y}a=xn(a)+"<"+r+d+`>
107
- `,t++}else e.serverProps===null?(a=Yd(r,s,Os(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=XA(r,s,e.serverProps,t),t++);var b="";for(s=e.fiber.child,r=0;s&&r<e.children.length;)c=e.children[r],c.fiber===s?(b+=qd(c,t),r++):b+=fv(s,t),s=s.sibling;for(s&&0<e.children.length&&(b+=xn(t)+`...
108
- `),s=e.serverTail,e.serverProps===null&&t--,e=0;e<s.length;e++)r=s[e],b=typeof r=="string"?b+(Ui(t)+Gr(r,120-2*t)+`
109
- `):b+Yd(r.type,r.props,Ui(t));return n+a+b}function Gd(e){try{return`
110
-
111
- `+qd(e,0)}catch{return""}}function dv(e,t,n){for(var a=t,s=null,r=0;a;)a===e&&(r=0),s={fiber:a,children:s!==null?[s]:[],serverProps:a===t?n:a===e?null:void 0,serverTail:[],distanceFromLeaf:r},r++,a=a.return;return s!==null?Gd(s).replaceAll(/^[+-]/gm,">"):""}function hv(e,t){var n=Be({},e||v1),a={tag:t};return g1.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),KD.indexOf(t)!==-1&&(n.pTagInButtonScope=null),FD.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 pv(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 WD.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 QA(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 mv(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 Pd(e,t){t=t||v1;var n=t.current;if(t=(n=pv(e,n&&n.tag,t.implicitRootScope)?null:n)?null:QA(e,t),t=n||t,!t)return!0;var a=t.tag;if(t=String(!!n)+"|"+e+"|"+a,Wc[t])return!1;Wc[t]=!0;var s=(t=_n)?mv(t.return,a):null,r=t!==null&&s!==null?dv(s,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,r)):console.error(`In HTML, %s cannot be a descendant of <%s>.
113
- This will cause a hydration error.%s`,c,a,r),t&&(e=t.return,s===null||e===null||s===e&&e._debugOwner===t._debugOwner||ue(s,function(){console.error(`<%s> cannot contain a nested %s.
114
- See this log for the ancestor stack trace.`,a,c)})),!1}function qu(e,t,n){if(n||pv("#text",t,!1))return!0;if(n="#text|"+t,Wc[n])return!1;Wc[n]=!0;var a=(n=_n)?mv(n,t):null;return n=n!==null&&a!==null?dv(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 $r(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}function ZA(e){return e.replace(nM,function(t,n){return n.toUpperCase()})}function yv(e,t,n){var a=t.indexOf("--")===0;a||(-1<t.indexOf("-")?Fs.hasOwnProperty(t)&&Fs[t]||(Fs[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,ZA(t.replace(tM,"ms-")))):eM.test(t)?Fs.hasOwnProperty(t)&&Fs[t]||(Fs[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!T1.test(n)||rm.hasOwnProperty(n)&&rm[n]||(rm[n]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(T1,""))),typeof n=="number"&&(isNaN(n)?E1||(E1=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||x1||(x1=!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||w1.has(t)?t==="float"?e.cssFloat=n:(xt(n,t),e[t]=(""+n).trim()):e[t]=n+"px"}function gv(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 s in n)if(n.hasOwnProperty(s)&&!t.hasOwnProperty(s))for(var r=sm[s]||[s],c=0;c<r.length;c++)a[r[c]]=s}for(var d in t)if(t.hasOwnProperty(d)&&(!n||n[d]!==t[d]))for(s=sm[d]||[d],r=0;r<s.length;r++)a[s[r]]=d;d={};for(var y in t)for(s=sm[y]||[y],r=0;r<s.length;r++)d[s[r]]=y;y={};for(var b in a)if(s=a[b],(r=d[b])&&s!==r&&(c=s+","+r,!y[c])){y[c]=!0,c=console;var z=t[s];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",s,r)}}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)b=t[D],t.hasOwnProperty(D)&&n[D]!==b&&yv(e,D,b)}else for(a in t)t.hasOwnProperty(a)&&yv(e,a,t[a])}function Xr(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 vv(e){return aM.get(e)||e}function IA(e,t){if(ca.call(Ws,t)&&Ws[t])return!0;if(iM.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=R1.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Ws[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Ws[t]=!0}if(oM.test(t)){if(e=t.toLowerCase(),e=R1.hasOwnProperty(e)?e:null,e==null)return Ws[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Ws[t]=!0)}return!0}function JA(e,t){var n=[],a;for(a in t)IA(e,a)||n.push(a);t=n.map(function(s){return"`"+s+"`"}).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 FA(e,t,n,a){if(ca.call(on,t)&&on[t])return!0;var s=t.toLowerCase();if(s==="onfocusin"||s==="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."),on[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(s)?e[s]:null,a!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,a),on[t]=!0;if(C1.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),on[t]=!0}else if(C1.test(t))return sM.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),on[t]=!0;if(rM.test(t)||lM.test(t))return!0;if(s==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),on[t]=!0;if(s==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),on[t]=!0;if(s==="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),on[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),on[t]=!0;if(tf.hasOwnProperty(s)){if(s=tf[s],s!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,s),on[t]=!0}else if(t!==s)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,s),on[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 s=t.toLowerCase().slice(0,5),s==="data-"||s==="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),on[t]=!0)}case"function":case"symbol":return on[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),on[t]=!0}}return!0}function KA(e,t,n){var a=[],s;for(s in t)FA(e,s,t[s],n)||a.push(s);t=a.map(function(r){return"`"+r+"`"}).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 Qr(e){return uM.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function lo(){}function $d(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function bv(e){var t=ae(e);if(t&&(e=t.stateNode)){var n=e[an]||null;e:switch(e=t.stateNode,t.type){case"input":if(Bd(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(Xe(t,"name"),n=n.querySelectorAll('input[name="'+Hn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var s=a[an]||null;if(!s)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Bd(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&ev(a)}break e;case"textarea":rv(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ms(e,!!n.multiple,t,!1)}}}function Sv(e,t,n){if(lm)return e(t,n);lm=!0;try{var a=e(t);return a}finally{if(lm=!1,(er!==null||tr!==null)&&(Ys(),er&&(t=er,e=tr,tr=er=null,bv(t),e)))for(t=0;t<e.length;t++)bv(e[t])}}function Zr(e,t){var n=e.stateNode;if(n===null)return null;var a=n[an]||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 Tv(){if(nf)return nf;var e,t=cm,n=t.length,a,s="value"in oi?oi.value:oi.textContent,r=s.length;for(e=0;e<n&&t[e]===s[e];e++);var c=n-e;for(a=1;a<=c&&t[n-a]===s[r-a];a++);return nf=s.slice(e,1<a?1-a:void 0)}function Gu(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 Pu(){return!0}function Ev(){return!1}function pn(e){function t(n,a,s,r,c){this._reactName=n,this._targetInst=s,this.type=a,this.nativeEvent=r,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(n=e[d],this[d]=n?n(r):r[d]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Pu:Ev,this.isPropagationStopped=Ev,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=Pu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Pu)},persist:function(){},isPersistent:Pu}),t}function WA(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=EM[e])?!!t[e]:!1}function Xd(){return WA}function xv(e,t){switch(e){case"keyup":return NM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==_1;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function eC(e,t){switch(e){case"compositionend":return wv(t);case"keypress":return t.which!==z1?null:(V1=!0,N1);case"textInput":return e=t.data,e===N1&&V1?null:e;default:return null}}function tC(e,t){if(nr)return e==="compositionend"||!pm&&xv(e,t)?(e=Tv(),nf=cm=oi=null,nr=!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 j1&&t.locale!=="ko"?null:t.data;default:return null}}function Rv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!UM[e.type]:t==="textarea"}function nC(e){if(!Qa)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 Av(e,t,n,a){er?tr?tr.push(a):tr=[a]:er=a,t=Uc(t,"onChange"),0<t.length&&(n=new af("onChange","change",null,n,a),e.push({event:n,listeners:t}))}function aC(e){lS(e,0)}function $u(e){var t=ye(e);if(ev(t))return e}function Cv(e,t){if(e==="change")return t}function Dv(){jl&&(jl.detachEvent("onpropertychange",Mv),zl=jl=null)}function Mv(e){if(e.propertyName==="value"&&$u(zl)){var t=[];Av(t,zl,e,$d(e)),Sv(aC,t)}}function oC(e,t,n){e==="focusin"?(Dv(),jl=t,zl=n,jl.attachEvent("onpropertychange",Mv)):e==="focusout"&&Dv()}function iC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $u(zl)}function sC(e,t){if(e==="click")return $u(t)}function rC(e,t){if(e==="input"||e==="change")return $u(t)}function lC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Ir(e,t){if(sn(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 s=n[a];if(!ca.call(t,s)||!sn(e[s],t[s]))return!1}return!0}function Ov(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _v(e,t){var n=Ov(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=Ov(n)}}function jv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zv(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Hu(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=Hu(e.document)}return t}function Qd(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 Nv(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ym||ar==null||ar!==Hu(a)||(a=ar,"selectionStart"in a&&Qd(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}),Nl&&Ir(Nl,a)||(Nl=a,a=Uc(mm,"onSelect"),0<a.length&&(t=new af("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ar)))}function Li(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function Bi(e){if(gm[e])return gm[e];if(!or[e])return e;var t=or[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in L1)return gm[e]=t[n];return e}function sa(e,t){q1.set(e,t),Pe(t,[e])}function uC(e){for(var t=sf,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!==sf&&t!==Em)return Sm;t=Em}else return Sm;else{if(typeof a=="function"||typeof a=="string"&&50<a.length||t!==sf&&t!==Tm)return Sm;t=Tm}}return t}function Zd(e,t,n,a){for(var s in e)ca.call(e,s)&&s[0]!=="_"&&Ra(s,e[s],t,n,a)}function Ra(e,t,n,a,s){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Ya){var r=F(t.type)||"…",c=t.key;t=t.props;var d=Object.keys(t),y=d.length;if(c==null&&y===0){t="<"+r+" />";break}if(3>a||y===1&&d[0]==="children"&&c==null){t="<"+r+" … />";break}n.push([s+"  ".repeat(a)+e,"<"+r]),c!==null&&Ra("key",c,n,a+1,s),e=!1;for(var b in t)b==="children"?t.children!=null&&(!Nt(t.children)||0<t.children.length)&&(e=!0):ca.call(t,b)&&b[0]!=="_"&&Ra(b,t[b],n,a+1,s);n.push(["",e?">…</"+r+">":"/>"]);return}if(r=Object.prototype.toString.call(t),r=r.slice(8,r.length-1),r==="Array"){if(b=uC(t),b===Tm||b===sf){t=JSON.stringify(t);break}else if(b===Em){for(n.push([s+"  ".repeat(a)+e,""]),e=0;e<t.length;e++)r=t[e],Ra(r[0],r[1],n,a+1,s);return}}if(r==="Promise"){if(t.status==="fulfilled"){if(r=n.length,Ra(e,t.value,n,a,s),n.length>r){n=n[r],n[1]="Promise<"+(n[1]||"Object")+">";return}}else if(t.status==="rejected"&&(r=n.length,Ra(e,t.reason,n,a,s),n.length>r)){n=n[r],n[1]="Rejected Promise<"+n[1]+">";return}n.push(["  ".repeat(a)+e,"Promise"]);return}r==="Object"&&(b=Object.getPrototypeOf(t))&&typeof b.constructor=="function"&&(r=b.constructor.name),n.push([s+"  ".repeat(a)+e,r==="Object"?3>a?"":"…":r]),3>a&&Zd(t,n,a+1,s);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===GM?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}n.push([s+"  ".repeat(a)+e,t])}function Vv(e,t,n,a){var s=!0;for(c in e)c in t||(n.push([rf+"  ".repeat(a)+c,"…"]),s=!1);for(var r in t)if(r in e){var c=e[r],d=t[r];if(c!==d){if(a===0&&r==="children")s="  ".repeat(a)+r,n.push([rf+s,"…"],[lf+s,"…"]);else{if(!(3<=a)){if(typeof c=="object"&&typeof d=="object"&&c!==null&&d!==null&&c.$$typeof===d.$$typeof)if(d.$$typeof===Ya){if(c.type===d.type&&c.key===d.key){c=F(d.type)||"…",s="  ".repeat(a)+r,c="<"+c+" … />",n.push([rf+s,c],[lf+s,c]),s=!1;continue}}else{var y=Object.prototype.toString.call(c),b=Object.prototype.toString.call(d);if(y===b&&(b==="[object Object]"||b==="[object Array]")){y=[$1+"  ".repeat(a)+r,b==="[object Array]"?"Array":""],n.push(y),b=n.length,Vv(c,d,n,a+1)?b===n.length&&(y[1]="Referentially unequal but deeply equal objects. Consider memoization."):s=!1;continue}}else if(typeof c=="function"&&typeof d=="function"&&c.name===d.name&&c.length===d.length&&(y=Function.prototype.toString.call(c),b=Function.prototype.toString.call(d),y===b)){c=d.name===""?"() => {}":d.name+"() {}",n.push([$1+"  ".repeat(a)+r,c+" Referentially unequal function closure. Consider memoization."]);continue}}Ra(r,c,n,a,rf),Ra(r,d,n,a,lf)}s=!1}}else n.push([lf+"  ".repeat(a)+r,"…"]),s=!1;return s}function ra(e){Ge=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function Aa(e,t,n,a){it&&(si.start=t,si.end=n,bo.color="warning",bo.tooltipText=a,bo.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,a,si)):performance.measure(a,si))}function Xu(e,t,n){Aa(e,t,n,"Reconnect")}function Qu(e,t,n,a,s){var r=Y(e);if(r!==null&&it){var c=e.alternate,d=e.actualDuration;if(c===null||c.child!==e.child)for(var y=e.child;y!==null;y=y.sibling)d-=y.actualDuration;a=.5>d?a?"tertiary-light":"primary-light":10>d?a?"tertiary":"primary":100>d?a?"tertiary-dark":"primary-dark":"error";var b=e.memoizedProps;d=e._debugTask,b!==null&&c!==null&&c.memoizedProps!==b?(y=[PM],b=Vv(c.memoizedProps,b,y,0),1<y.length&&(b&&!ii&&(c.lanes&s)===0&&100<e.actualDuration?(ii=!0,y[0]=$M,bo.color="warning",bo.tooltipText=X1):(bo.color=a,bo.tooltipText=r),bo.properties=y,si.start=t,si.end=n,d!=null?d.run(performance.measure.bind(performance,"​"+r,si)):performance.measure("​"+r,si))):d!=null?d.run(console.timeStamp.bind(console,r,t,n,Gn,void 0,a)):console.timeStamp(r,t,n,Gn,void 0,a)}}function Id(e,t,n,a){if(it){var s=Y(e);if(s!==null){for(var r=null,c=[],d=0;d<a.length;d++){var y=a[d];r==null&&y.source!==null&&(r=y.source._debugTask),y=y.value,c.push(["Error",typeof y=="object"&&y!==null&&typeof y.message=="string"?String(y.message):String(y)])}e.key!==null&&Ra("key",e.key,c,0,""),e.memoizedProps!==null&&Zd(e.memoizedProps,c,0,""),r==null&&(r=e._debugTask),e={start:t,end:n,detail:{devtools:{color:"error",track:Gn,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:c}}},r?r.run(performance.measure.bind(performance,"​"+s,e)):performance.measure("​"+s,e)}}}function Ca(e,t,n,a,s){if(s!==null){if(it){var r=Y(e);if(r!==null){a=[];for(var c=0;c<s.length;c++){var d=s[c].value;a.push(["Error",typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d)])}e.key!==null&&Ra("key",e.key,a,0,""),e.memoizedProps!==null&&Zd(e.memoizedProps,a,0,""),t={start:t,end:n,detail:{devtools:{color:"error",track:Gn,tooltipText:"A lifecycle or effect errored",properties:a}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+r,t)):performance.measure("​"+r,t)}}}else r=Y(e),r!==null&&it&&(s=1>a?"secondary-light":100>a?"secondary":500>a?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,r,t,n,Gn,void 0,s)):console.timeStamp(r,t,n,Gn,void 0,s))}function cC(e,t,n,a){if(it&&!(t<=e)){var s=(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,Ge,Ye,s)):console.timeStamp(n,e,t,Ge,Ye,s)}}function Uv(e,t,n,a){!it||t<=e||(n=(n&738197653)===n?"tertiary-dark":"primary-dark",a?a.run(console.timeStamp.bind(console,"Prewarm",e,t,Ge,Ye,n)):console.timeStamp("Prewarm",e,t,Ge,Ye,n))}function Lv(e,t,n,a){!it||t<=e||(n=(n&738197653)===n?"tertiary-dark":"primary-dark",a?a.run(console.timeStamp.bind(console,"Suspended",e,t,Ge,Ye,n)):console.timeStamp("Suspended",e,t,Ge,Ye,n))}function fC(e,t,n,a,s,r){if(it&&!(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:Ge,trackGroup:Ye,tooltipText:s?"Hydration Failed":"Recovered after Error",properties:n}}},r?r.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function Jd(e,t,n,a){!it||t<=e||(a?a.run(console.timeStamp.bind(console,"Errored",e,t,Ge,Ye,"error")):console.timeStamp("Errored",e,t,Ge,Ye,"error"))}function dC(e,t,n,a){!it||t<=e||(a?a.run(console.timeStamp.bind(console,n,e,t,Ge,Ye,"secondary-light")):console.timeStamp(n,e,t,Ge,Ye,"secondary-light"))}function Bv(e,t,n,a,s){if(it&&!(t<=e)){for(var r=[],c=0;c<n.length;c++){var d=n[c].value;r.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:Ge,trackGroup:Ye,tooltipText:a?"Remaining Effects Errored":"Commit Errored",properties:r}}},s?s.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Fd(e,t,n){!it||t<=e||console.timeStamp("Animating",e,t,Ge,Ye,"secondary-dark")}function Zu(){for(var e=ir,t=xm=ir=0;t<e;){var n=Pn[t];Pn[t++]=null;var a=Pn[t];Pn[t++]=null;var s=Pn[t];Pn[t++]=null;var r=Pn[t];if(Pn[t++]=null,a!==null&&s!==null){var c=a.pending;c===null?s.next=s:(s.next=c.next,c.next=s),a.pending=s}r!==0&&kv(n,s,r)}}function Iu(e,t,n,a){Pn[ir++]=e,Pn[ir++]=t,Pn[ir++]=n,Pn[ir++]=a,xm|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Kd(e,t,n,a){return Iu(e,t,n,a),Ju(e)}function Jt(e,t){return Iu(e,null,null,t),Ju(e)}function kv(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var s=!1,r=e.return;r!==null;)r.childLanes|=n,a=r.alternate,a!==null&&(a.childLanes|=n),r.tag===22&&(e=r.stateNode,e===null||e._visibility&Vl||(s=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,s&&t!==null&&(s=31-nn(n),e=r.hiddenUpdates,a=e[s],a===null?e[s]=[t]:a.push(t),t.lane=n|536870912),r):null}function Ju(e){if(lu>rO)throw ps=lu=0,uu=ny=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.");ps>lO&&(ps=0,uu=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&&tS(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&(t.flags&4098)!==0&&tS(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function ki(e){if($n===null)return e;var t=$n(e);return t===void 0?e:t.current}function Wd(e){if($n===null)return e;var t=$n(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=ki(e.render),e.render!==t)?(t={$$typeof:xl,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Hv(e,t){if($n===null)return!1;var n=e.elementType;t=t.type;var a=!1,s=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(a=!0);break;case 0:(typeof t=="function"||s===On)&&(a=!0);break;case 11:(s===xl||s===On)&&(a=!0);break;case 14:case 15:(s===Qc||s===On)&&(a=!0);break;default:return!1}return!!(a&&(e=$n(n),e!==void 0&&e===$n(t)))}function Yv(e){$n!==null&&typeof WeakSet=="function"&&(sr===null&&(sr=new WeakSet),sr.add(e))}function qv(e,t,n){do{var a=e,s=a.alternate,r=a.child,c=a.sibling,d=a.tag;a=a.type;var y=null;switch(d){case 0:case 15:case 1:y=a;break;case 11:y=a.render}if($n===null)throw Error("Expected resolveFamily to be set during hot reload.");var b=!1;if(a=!1,y!==null&&(y=$n(y),y!==void 0&&(n.has(y)?a=!0:t.has(y)&&(d===1?a=!0:b=!0))),sr!==null&&(sr.has(e)||s!==null&&sr.has(s))&&(a=!0),a&&(e._debugNeedsRemount=!0),(a||b)&&(s=Jt(e,2),s!==null&&ht(s,e,2)),r===null||a||qv(r,t,n),c===null)break;e=c}while(!0)}function hC(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,Q1||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function eh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function uo(e,t){var n=e.alternate;switch(n===null?(n=g(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=e.flags&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=ki(e.type);break;case 1:n.type=ki(e.type);break;case 11:n.type=Wd(e.type)}return n}function Gv(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 th(e,t,n,a,s,r){var c=0,d=e;if(typeof e=="function")eh(e)&&(c=1),d=ki(d);else if(typeof e=="string")c=pe(),c=ED(e,n,c)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Zp:return t=g(31,n,t,s),t.elementType=Zp,t.lanes=r,t;case Zs:return Hi(n.children,s,r,t);case Xc:c=8,s|=Kt,s|=fa;break;case Pp:return e=n,a=s,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=g(12,e,t,a|ze),t.elementType=Pp,t.lanes=r,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Xp:return t=g(13,n,t,s),t.elementType=Xp,t.lanes=r,t;case Qp:return t=g(19,n,t,s),t.elementType=Qp,t.lanes=r,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qa:c=10;break e;case $p:c=9;break e;case xl:c=11,d=Wd(d);break e;case Qc:c=14;break e;case On: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===Ya?(n="<"+(F(e.type)||"Unknown")+" />",d=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,(c=a?X(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=g(c,n,t,s),t.elementType=e,t.type=d,t.lanes=r,t._debugOwner=a,t}function Fu(e,t,n){return t=th(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Hi(e,t,n,a){return e=g(7,e,a,t),e.lanes=n,e}function nh(e,t,n){return e=g(6,e,null,t),e.lanes=n,e}function Pv(e){var t=g(18,null,null,Re);return t.stateNode=e,t}function ah(e,t,n){return t=g(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function wn(e,t){if(typeof e=="object"&&e!==null){var n=wm.get(e);return n!==void 0?n:(t={value:e,source:t,stack:xe(t)},wm.set(e,t),t)}return{value:e,source:t,stack:xe(t)}}function co(e,t){qo(),rr[lr++]=Ul,rr[lr++]=uf,uf=e,Ul=t}function $v(e,t,n){qo(),Xn[Qn++]=To,Xn[Qn++]=Eo,Xn[Qn++]=Wi,Wi=e;var a=To;e=Eo;var s=32-nn(a)-1;a&=~(1<<s),n+=1;var r=32-nn(t)+s;if(30<r){var c=s-s%5;r=(a&(1<<c)-1).toString(32),a>>=c,s-=c,To=1<<32-nn(t)+s|n<<s|a,Eo=r+e}else To=1<<r|n<<s|a,Eo=e}function oh(e){qo(),e.return!==null&&(co(e,1),$v(e,1,0))}function ih(e){for(;e===uf;)uf=rr[--lr],rr[lr]=null,Ul=rr[--lr],rr[lr]=null;for(;e===Wi;)Wi=Xn[--Qn],Xn[Qn]=null,Eo=Xn[--Qn],Xn[Qn]=null,To=Xn[--Qn],Xn[Qn]=null}function Xv(){return qo(),Wi!==null?{id:To,overflow:Eo}:null}function Qv(e,t){qo(),Xn[Qn++]=To,Xn[Qn++]=Eo,Xn[Qn++]=Wi,To=t.id,Eo=t.overflow,Wi=e}function qo(){ke||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Yi(e,t){if(e.return===null){if(jn===null)jn={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(jn.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");jn.distanceFromLeaf>t&&(jn.distanceFromLeaf=t)}return jn}var n=Yi(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 Zv(){ke&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Ku(e,t){Za||(e=Yi(e,0),e.serverProps=null,t!==null&&(t=AS(t),e.serverTail.push(t)))}function Go(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,n="",a=jn;throw a!==null&&(jn=null,n=Gd(a)),Jr(wn(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)),Rm}function Iv(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Xt]=e,t[an]=a,Rp(n,a),n){case"dialog":He("cancel",t),He("close",t);break;case"iframe":case"object":case"embed":He("load",t);break;case"video":case"audio":for(n=0;n<cu.length;n++)He(cu[n],t);break;case"source":He("error",t);break;case"img":case"image":case"link":He("error",t),He("load",t);break;case"details":He("toggle",t);break;case"input":en("input",a),He("invalid",t),tv(t,a),nv(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"option":av(t,a);break;case"select":en("select",a),He("invalid",t),iv(t,a);break;case"textarea":en("textarea",a),He("invalid",t),sv(t,a),lv(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||dS(t.textContent,n)?(a.popover!=null&&(He("beforetoggle",t),He("toggle",t)),a.onScroll!=null&&He("scroll",t),a.onScrollEnd!=null&&He("scrollend",t),a.onClick!=null&&(t.onclick=lo),t=!0):t=!1,t||Go(e,!0)}function Jv(e){for(Qt=e.return;Qt;)switch(Qt.tag){case 5:case 31:case 13:Zn=!1;return;case 27:case 3:Zn=!0;return;default:Qt=Qt.return}}function js(e){if(e!==Qt)return!1;if(!ke)return Jv(e),ke=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Op(e.type,e.memoizedProps)),n=!n),n&&st){for(n=st;n;){var a=Yi(e,0),s=AS(n);a.serverTail.push(s),n=s.type==="Suspense"?Np(n):Mn(n.nextSibling)}Go(e)}if(Jv(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.");st=Np(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.");st=Np(e)}else t===27?(t=st,Wo(e.type)?(e=py,py=null,st=e):st=t):st=Qt?Mn(e.stateNode.nextSibling):null;return!0}function qi(){st=Qt=null,Za=ke=!1}function sh(){var e=li;return e!==null&&(cn===null?cn=e:cn.push.apply(cn,e),li=null),e}function Jr(e){li===null?li=[e]:li.push(e)}function rh(){var e=jn;if(e!==null){jn=null;for(var t=Gd(e);0<e.children.length;)e=e.children[0];ue(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 Wu(){ur=cf=null,cr=!1}function Po(e,t,n){Q(Am,t._currentValue,e),t._currentValue=n,Q(Cm,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==I1&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=I1}function fo(e,t){e._currentValue=Am.current;var n=Cm.current;I(Cm,t),e._currentRenderer=n,I(Am,t)}function lh(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 uh(e,t,n,a){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var r=s.dependencies;if(r!==null){var c=s.child;r=r.firstContext;e:for(;r!==null;){var d=r;r=s;for(var y=0;y<t.length;y++)if(d.context===t[y]){r.lanes|=n,d=r.alternate,d!==null&&(d.lanes|=n),lh(r.return,n,e),a||(c=null);break e}r=d.next}}else if(s.tag===18){if(c=s.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,r=c.alternate,r!==null&&(r.lanes|=n),lh(c,n,e),c=null}else c=s.child;if(c!==null)c.return=s;else for(c=s;c!==null;){if(c===e){c=null;break}if(s=c.sibling,s!==null){s.return=c.return,c=s;break}c=c.return}s=c}}function zs(e,t,n,a){e=null;for(var s=t,r=!1;s!==null;){if(!r){if((s.flags&524288)!==0)r=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var c=s.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=s.type;sn(s.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(s===Zc.current){if(c=s.alternate,c===null)throw Error("Should have a current fiber. This is a bug in React.");c.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(mu):e=[mu])}s=s.return}e!==null&&uh(t,e,n,a),t.flags|=262144}function ec(e){for(e=e.firstContext;e!==null;){if(!sn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Gi(e){cf=e,ur=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return cr&&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()."),Fv(cf,e)}function tc(e,t){return cf===null&&Gi(e),Fv(e,t)}function Fv(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ur===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().");ur=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else ur=ur.next=t;return n}function ch(){return{controller:new ZM,data:new Map,refCount:0}}function Pi(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 Fr(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&&IM(JM,function(){e.controller.abort()})}function Da(e,t,n){(e&127)!==0?0>Ia&&(Ia=At(),Bl=ff(t),Dm=t,n!=null&&(Mm=Y(n)),($e&(Ut|Vn))!==qt&&(pt=!0,ci=Ll),e=vl(),t=gl(),e!==fr||t!==kl?fr=-1.1:t!==null&&(ci=Ll),ns=e,kl=t):(e&4194048)!==0&&0>In&&(In=At(),Hl=ff(t),J1=t,n!=null&&(F1=Y(n)),0>Ao)&&(e=vl(),t=gl(),(e!==di||t!==as)&&(di=-1.1),fi=e,as=t)}function pC(e){if(0>Ia){Ia=At(),Bl=e._debugTask!=null?e._debugTask:null,($e&(Ut|Vn))!==qt&&(ci=Ll);var t=vl(),n=gl();t!==fr||n!==kl?fr=-1.1:n!==null&&(ci=Ll),ns=t,kl=n}0>In&&(In=At(),Hl=e._debugTask!=null?e._debugTask:null,0>Ao)&&(e=vl(),t=gl(),(e!==di||t!==as)&&(di=-1.1),fi=e,as=t)}function ho(){var e=es;return es=0,e}function nc(e){var t=es;return es=e,t}function Kr(e){var t=es;return es+=e,t}function ac(){we=Ee=-1.1}function Rn(){var e=Ee;return Ee=-1.1,e}function An(e){0<=e&&(Ee=e)}function Ma(){var e=ft;return ft=-0,e}function Oa(e){0<=e&&(ft=e)}function _a(){var e=ut;return ut=null,e}function ja(){var e=pt;return pt=!1,e}function fh(e){rn=At(),0>e.actualStartTime&&(e.actualStartTime=rn)}function dh(e){if(0<=rn){var t=At()-rn;e.actualDuration+=t,e.selfBaseDuration=t,rn=-1}}function Kv(e){if(0<=rn){var t=At()-rn;e.actualDuration+=t,rn=-1}}function za(){if(0<=rn){var e=At(),t=e-rn;rn=-1,es+=t,ft+=t,we=e}}function Wv(e){ut===null&&(ut=[]),ut.push(e),wo===null&&(wo=[]),wo.push(e)}function Na(){rn=At(),0>Ee&&(Ee=rn)}function Wr(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function mC(e,t){if(ql===null){var n=ql=[];_m=0,os=Tp(),dr={status:"pending",value:void 0,then:function(a){n.push(a)}}}return _m++,t.then(e0,e0),t}function e0(){if(--_m===0&&(-1<In||(Ao=-1.1),ql!==null)){dr!==null&&(dr.status="fulfilled");var e=ql;ql=null,os=0,dr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function yC(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(a.status="rejected",a.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),a}function hh(){var e=is.current;return e!==null?e:et.pooledCache}function oc(e,t){t===null?Q(is,is.current,e):Q(is,t.pool,e)}function t0(){var e=hh();return e===null?null:{parent:Rt._currentValue,pool:e}}function n0(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function a0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function o0(e,t,n){q.actQueue!==null&&(q.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(lo,lo),t=n),t._debugInfo===void 0){e=performance.now(),a=t.displayName;var s={name:typeof a=="string"?a:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:s}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){s.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,s0(e),e;default:if(typeof t.status=="string")t.then(lo,lo);else{if(e=et,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(r){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=r}},function(r){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,s0(e),e}throw rs=t,Il=!0,hr}}function $o(e){try{return tO(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(rs=t,Il=!0,hr):t}}function i0(){if(rs===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=rs;return rs=null,Il=!1,e}function s0(e){if(e===hr||e===bf)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 Gt(e){var t=Ne;return e!=null&&(Ne=t===null?e:t.concat(e)),t}function ph(){var e=Ne;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 ic(e,t,n){for(var a=Object.keys(e.props),s=0;s<a.length;s++){var r=a[s];if(r!=="children"&&r!=="key"){t===null&&(t=Fu(e,n.mode,0),t._debugInfo=Ne,t.return=n),ue(t,function(c){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c)},r);break}}}function sc(e){var t=Jl;return Jl+=1,pr===null&&(pr=n0()),o0(pr,e,t)}function el(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function r0(e,t){throw t.$$typeof===zD?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 rc(e,t){var n=ph();n!==null?n.run(r0.bind(null,e,t)):r0(e,t)}function l0(e,t){var n=Y(e)||"Component";gT[n]||(gT[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 lc(e,t){var n=ph();n!==null?n.run(l0.bind(null,e,t)):l0(e,t)}function u0(e,t){var n=Y(e)||"Component";vT[n]||(vT[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 uc(e,t){var n=ph();n!==null?n.run(u0.bind(null,e,t)):u0(e,t)}function c0(e){function t(R,M){if(e){var _=R.deletions;_===null?(R.deletions=[M],R.flags|=16):_.push(M)}}function n(R,M){if(!e)return null;for(;M!==null;)t(R,M),M=M.sibling;return null}function a(R){for(var M=new Map;R!==null;)R.key!==null?M.set(R.key,R):M.set(R.index,R),R=R.sibling;return M}function s(R,M){return R=uo(R,M),R.index=0,R.sibling=null,R}function r(R,M,_){return R.index=_,e?(_=R.alternate,_!==null?(_=_.index,_<M?(R.flags|=67108866,M):_):(R.flags|=67108866,M)):(R.flags|=1048576,M)}function c(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function d(R,M,_,$){return M===null||M.tag!==6?(M=nh(_,R.mode,$),M.return=R,M._debugOwner=R,M._debugTask=R._debugTask,M._debugInfo=Ne,M):(M=s(M,_),M.return=R,M._debugInfo=Ne,M)}function y(R,M,_,$){var re=_.type;return re===Zs?(M=z(R,M,_.props.children,$,_.key),ic(_,M,R),M):M!==null&&(M.elementType===re||Hv(M,_)||typeof re=="object"&&re!==null&&re.$$typeof===On&&$o(re)===M.type)?(M=s(M,_.props),el(M,_),M.return=R,M._debugOwner=_._owner,M._debugInfo=Ne,M):(M=Fu(_,R.mode,$),el(M,_),M.return=R,M._debugInfo=Ne,M)}function b(R,M,_,$){return M===null||M.tag!==4||M.stateNode.containerInfo!==_.containerInfo||M.stateNode.implementation!==_.implementation?(M=ah(_,R.mode,$),M.return=R,M._debugInfo=Ne,M):(M=s(M,_.children||[]),M.return=R,M._debugInfo=Ne,M)}function z(R,M,_,$,re){return M===null||M.tag!==7?(M=Hi(_,R.mode,$,re),M.return=R,M._debugOwner=R,M._debugTask=R._debugTask,M._debugInfo=Ne,M):(M=s(M,_),M.return=R,M._debugInfo=Ne,M)}function N(R,M,_){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=nh(""+M,R.mode,_),M.return=R,M._debugOwner=R,M._debugTask=R._debugTask,M._debugInfo=Ne,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case Ya:return _=Fu(M,R.mode,_),el(_,M),_.return=R,R=Gt(M._debugInfo),_._debugInfo=Ne,Ne=R,_;case Qs:return M=ah(M,R.mode,_),M.return=R,M._debugInfo=Ne,M;case On:var $=Gt(M._debugInfo);return M=$o(M),R=N(R,M,_),Ne=$,R}if(Nt(M)||le(M))return _=Hi(M,R.mode,_,null),_.return=R,_._debugOwner=R,_._debugTask=R._debugTask,R=Gt(M._debugInfo),_._debugInfo=Ne,Ne=R,_;if(typeof M.then=="function")return $=Gt(M._debugInfo),R=N(R,sc(M),_),Ne=$,R;if(M.$$typeof===qa)return N(R,tc(R,M),_);rc(R,M)}return typeof M=="function"&&lc(R,M),typeof M=="symbol"&&uc(R,M),null}function D(R,M,_,$){var re=M!==null?M.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return re!==null?null:d(R,M,""+_,$);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Ya:return _.key===re?(re=Gt(_._debugInfo),R=y(R,M,_,$),Ne=re,R):null;case Qs:return _.key===re?b(R,M,_,$):null;case On:return re=Gt(_._debugInfo),_=$o(_),R=D(R,M,_,$),Ne=re,R}if(Nt(_)||le(_))return re!==null?null:(re=Gt(_._debugInfo),R=z(R,M,_,$,null),Ne=re,R);if(typeof _.then=="function")return re=Gt(_._debugInfo),R=D(R,M,sc(_),$),Ne=re,R;if(_.$$typeof===qa)return D(R,M,tc(R,_),$);rc(R,_)}return typeof _=="function"&&lc(R,_),typeof _=="symbol"&&uc(R,_),null}function k(R,M,_,$,re){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return R=R.get(_)||null,d(M,R,""+$,re);if(typeof $=="object"&&$!==null){switch($.$$typeof){case Ya:return _=R.get($.key===null?_:$.key)||null,R=Gt($._debugInfo),M=y(M,_,$,re),Ne=R,M;case Qs:return R=R.get($.key===null?_:$.key)||null,b(M,R,$,re);case On:var Ce=Gt($._debugInfo);return $=$o($),M=k(R,M,_,$,re),Ne=Ce,M}if(Nt($)||le($))return _=R.get(_)||null,R=Gt($._debugInfo),M=z(M,_,$,re,null),Ne=R,M;if(typeof $.then=="function")return Ce=Gt($._debugInfo),M=k(R,M,_,sc($),re),Ne=Ce,M;if($.$$typeof===qa)return k(R,M,_,tc(M,$),re);rc(M,$)}return typeof $=="function"&&lc(M,$),typeof $=="symbol"&&uc(M,$),null}function ie(R,M,_,$){if(typeof _!="object"||_===null)return $;switch(_.$$typeof){case Ya:case Qs:T(R,M,_);var re=_.key;if(typeof re!="string")break;if($===null){$=new Set,$.add(re);break}if(!$.has(re)){$.add(re);break}ue(M,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.",re)});break;case On:_=$o(_),ie(R,M,_,$)}return $}function ce(R,M,_,$){for(var re=null,Ce=null,Te=null,ge=M,je=M=0,rt=null;ge!==null&&je<_.length;je++){ge.index>je?(rt=ge,ge=null):rt=ge.sibling;var St=D(R,ge,_[je],$);if(St===null){ge===null&&(ge=rt);break}re=ie(R,St,_[je],re),e&&ge&&St.alternate===null&&t(R,ge),M=r(St,M,je),Te===null?Ce=St:Te.sibling=St,Te=St,ge=rt}if(je===_.length)return n(R,ge),ke&&co(R,je),Ce;if(ge===null){for(;je<_.length;je++)ge=N(R,_[je],$),ge!==null&&(re=ie(R,ge,_[je],re),M=r(ge,M,je),Te===null?Ce=ge:Te.sibling=ge,Te=ge);return ke&&co(R,je),Ce}for(ge=a(ge);je<_.length;je++)rt=k(ge,R,je,_[je],$),rt!==null&&(re=ie(R,rt,_[je],re),e&&rt.alternate!==null&&ge.delete(rt.key===null?je:rt.key),M=r(rt,M,je),Te===null?Ce=rt:Te.sibling=rt,Te=rt);return e&&ge.forEach(function(No){return t(R,No)}),ke&&co(R,je),Ce}function nt(R,M,_,$){if(_==null)throw Error("An iterable object provided no iterator.");for(var re=null,Ce=null,Te=M,ge=M=0,je=null,rt=null,St=_.next();Te!==null&&!St.done;ge++,St=_.next()){Te.index>ge?(je=Te,Te=null):je=Te.sibling;var No=D(R,Te,St.value,$);if(No===null){Te===null&&(Te=je);break}rt=ie(R,No,St.value,rt),e&&Te&&No.alternate===null&&t(R,Te),M=r(No,M,ge),Ce===null?re=No:Ce.sibling=No,Ce=No,Te=je}if(St.done)return n(R,Te),ke&&co(R,ge),re;if(Te===null){for(;!St.done;ge++,St=_.next())Te=N(R,St.value,$),Te!==null&&(rt=ie(R,Te,St.value,rt),M=r(Te,M,ge),Ce===null?re=Te:Ce.sibling=Te,Ce=Te);return ke&&co(R,ge),re}for(Te=a(Te);!St.done;ge++,St=_.next())je=k(Te,R,ge,St.value,$),je!==null&&(rt=ie(R,je,St.value,rt),e&&je.alternate!==null&&Te.delete(je.key===null?ge:je.key),M=r(je,M,ge),Ce===null?re=je:Ce.sibling=je,Ce=je);return e&&Te.forEach(function(RO){return t(R,RO)}),ke&&co(R,ge),re}function qe(R,M,_,$){if(typeof _=="object"&&_!==null&&_.type===Zs&&_.key===null&&(ic(_,null,R),_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Ya:var re=Gt(_._debugInfo);e:{for(var Ce=_.key;M!==null;){if(M.key===Ce){if(Ce=_.type,Ce===Zs){if(M.tag===7){n(R,M.sibling),$=s(M,_.props.children),$.return=R,$._debugOwner=_._owner,$._debugInfo=Ne,ic(_,$,R),R=$;break e}}else if(M.elementType===Ce||Hv(M,_)||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===On&&$o(Ce)===M.type){n(R,M.sibling),$=s(M,_.props),el($,_),$.return=R,$._debugOwner=_._owner,$._debugInfo=Ne,R=$;break e}n(R,M);break}else t(R,M);M=M.sibling}_.type===Zs?($=Hi(_.props.children,R.mode,$,_.key),$.return=R,$._debugOwner=R,$._debugTask=R._debugTask,$._debugInfo=Ne,ic(_,$,R),R=$):($=Fu(_,R.mode,$),el($,_),$.return=R,$._debugInfo=Ne,R=$)}return R=c(R),Ne=re,R;case Qs:e:{for(re=_,_=re.key;M!==null;){if(M.key===_)if(M.tag===4&&M.stateNode.containerInfo===re.containerInfo&&M.stateNode.implementation===re.implementation){n(R,M.sibling),$=s(M,re.children||[]),$.return=R,R=$;break e}else{n(R,M);break}else t(R,M);M=M.sibling}$=ah(re,R.mode,$),$.return=R,R=$}return c(R);case On:return re=Gt(_._debugInfo),_=$o(_),R=qe(R,M,_,$),Ne=re,R}if(Nt(_))return re=Gt(_._debugInfo),R=ce(R,M,_,$),Ne=re,R;if(le(_)){if(re=Gt(_._debugInfo),Ce=le(_),typeof Ce!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Te=Ce.call(_);return Te===_?(R.tag!==0||Object.prototype.toString.call(R.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Te)!=="[object Generator]")&&(mT||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."),mT=!0):_.entries!==Ce||Vm||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Vm=!0),R=nt(R,M,Te,$),Ne=re,R}if(typeof _.then=="function")return re=Gt(_._debugInfo),R=qe(R,M,sc(_),$),Ne=re,R;if(_.$$typeof===qa)return qe(R,M,tc(R,_),$);rc(R,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(re=""+_,M!==null&&M.tag===6?(n(R,M.sibling),$=s(M,re),$.return=R,R=$):(n(R,M),$=nh(re,R.mode,$),$.return=R,$._debugOwner=R,$._debugTask=R._debugTask,$._debugInfo=Ne,R=$),c(R)):(typeof _=="function"&&lc(R,_),typeof _=="symbol"&&uc(R,_),n(R,M))}return function(R,M,_,$){var re=Ne;Ne=null;try{Jl=0;var Ce=qe(R,M,_,$);return pr=null,Ce}catch(rt){if(rt===hr||rt===bf)throw rt;var Te=g(29,rt,null,R.mode);Te.lanes=$,Te.return=R;var ge=Te._debugInfo=Ne;if(Te._debugOwner=R._debugOwner,Te._debugTask=R._debugTask,ge!=null){for(var je=ge.length-1;0<=je;je--)if(typeof ge[je].stack=="string"){Te._debugOwner=ge[je],Te._debugTask=ge[je].debugTask;break}}return Te}finally{Ne=re}}}function f0(e,t){var n=Nt(e);return e=!n&&typeof le(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 mh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yh(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 Xo(e){return{lane:e,tag:ST,payload:null,callback:null,next:null}}function Qo(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,Lm===a&&!xT){var s=Y(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`,s),xT=!0}return($e&Ut)!==qt?(s=a.pending,s===null?t.next=t:(t.next=s.next,s.next=t),a.pending=t,t=Ju(e),kv(e,null,n),t):(Iu(e,a,t,n),Ju(e))}function tl(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,Ho(e,n)}}function cc(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var s=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var c={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?s=r=c:r=r.next=c,n=n.next}while(n!==null);r===null?s=r=t:r=r.next=t}else s=r=t;n={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:r,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 nl(){if(Bm){var e=dr;if(e!==null)throw e}}function al(e,t,n,a){Bm=!1;var s=e.updateQueue;hi=!1,Lm=s.shared;var r=s.firstBaseUpdate,c=s.lastBaseUpdate,d=s.shared.pending;if(d!==null){s.shared.pending=null;var y=d,b=y.next;y.next=null,c===null?r=b:c.next=b,c=y;var z=e.alternate;z!==null&&(z=z.updateQueue,d=z.lastBaseUpdate,d!==c&&(d===null?z.firstBaseUpdate=b:d.next=b,z.lastBaseUpdate=y))}if(r!==null){var N=s.baseState;c=0,z=b=y=null,d=r;do{var D=d.lane&-536870913,k=D!==d.lane;if(k?(Ve&D)===D:(a&D)===D){D!==0&&D===os&&(Bm=!0),z!==null&&(z=z.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{D=e;var ie=d,ce=t,nt=n;switch(ie.tag){case TT:if(ie=ie.payload,typeof ie=="function"){cr=!0;var qe=ie.call(nt,N,ce);if(D.mode&Kt){de(!0);try{ie.call(nt,N,ce)}finally{de(!1)}}cr=!1,N=qe;break e}N=ie;break e;case Um:D.flags=D.flags&-65537|128;case ST:if(qe=ie.payload,typeof qe=="function"){if(cr=!0,ie=qe.call(nt,N,ce),D.mode&Kt){de(!0);try{qe.call(nt,N,ce)}finally{de(!1)}}cr=!1}else ie=qe;if(ie==null)break e;N=Be({},N,ie);break e;case ET:hi=!0}}D=d.callback,D!==null&&(e.flags|=64,k&&(e.flags|=8192),k=s.callbacks,k===null?s.callbacks=[D]:k.push(D))}else k={lane:D,tag:d.tag,payload:d.payload,callback:d.callback,next:null},z===null?(b=z=k,y=N):z=z.next=k,c|=D;if(d=d.next,d===null){if(d=s.shared.pending,d===null)break;k=d,d=k.next,k.next=null,s.lastBaseUpdate=k,s.shared.pending=null}}while(!0);z===null&&(y=N),s.baseState=y,s.firstBaseUpdate=b,s.lastBaseUpdate=z,r===null&&(s.shared.lanes=0),yi|=c,e.lanes=c,e.memoizedState=N}Lm=null}function d0(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function gC(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)d0(n[e],t)}function h0(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)d0(n[e],t)}function p0(e,t){var n=Fa;Q(Tf,n,e),Q(mr,t,e),Fa=n|t.baseLanes}function gh(e){Q(Tf,Fa,e),Q(mr,mr.current,e)}function vh(e){Fa=Tf.current,I(mr,e),I(Tf,e)}function Zo(e){var t=e.alternate;Q(bt,bt.current&yr,e),Q(zn,e,e),Jn===null&&(t===null||mr.current!==null||t.memoizedState!==null)&&(Jn=e)}function bh(e){Q(bt,bt.current,e),Q(zn,e,e),Jn===null&&(Jn=e)}function m0(e){e.tag===22?(Q(bt,bt.current,e),Q(zn,e,e),Jn===null&&(Jn=e)):Io(e)}function Io(e){Q(bt,bt.current,e),Q(zn,zn.current,e)}function Cn(e){I(zn,e),Jn===e&&(Jn=null),I(bt,e)}function fc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||jp(n)||zp(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=H;Kn===null?Kn=[e]:Kn.push(e)}function ee(){var e=H;if(Kn!==null&&(Mo++,Kn[Mo]!==e)){var t=Y(Ae);if(!wT.has(t)&&(wT.add(t),Kn!==null)){for(var n="",a=0;a<=Mo;a++){var s=Kn[a],r=a===Mo?e:s;for(s=a+1+". "+s;30>s.length;)s+=" ";s+=r+`
148
- `,n+=s}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 Ns(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.",H,typeof e)}function dc(){var e=Y(Ae);AT.has(e)||(AT.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function yt(){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 Sh(e,t){if(Wl)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.",H),!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`,H,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!sn(e[n],t[n]))return!1;return!0}function Th(e,t,n,a,s,r){Co=r,Ae=t,Kn=e!==null?e._debugHookTypes:null,Mo=-1,Wl=e!==null&&e.type!==t.type,(Object.prototype.toString.call(n)==="[object AsyncFunction]"||Object.prototype.toString.call(n)==="[object AsyncGeneratorFunction]")&&(r=Y(Ae),km.has(r)||(km.add(r),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.",r===null?"An unknown Component":"<"+r+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,q.H=e!==null&&e.memoizedState!==null?Ym:Kn!==null?CT:Hm,us=r=(t.mode&Kt)!==Re;var c=jm(n,a,s);if(us=!1,vr&&(c=Eh(t,n,a,s)),r){de(!0);try{c=Eh(t,n,a,s)}finally{de(!1)}}return y0(e,t),c}function y0(e,t){t._debugHookTypes=Kn,t.dependencies===null?Do!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Do}):t.dependencies._debugThenableState=Do,q.H=eu;var n=We!==null&&We.next!==null;if(Co=0,Kn=H=Ct=We=Ae=null,Mo=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),xf=!1,Kl=0,Do=null,n)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Dt||(e=e.dependencies,e!==null&&ec(e)&&(Dt=!0)),Il?(Il=!1,e=!0):e=!1,e&&(t=Y(t)||"Unknown",RT.has(t)||km.has(t)||(RT.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 Eh(e,t,n,a){Ae=e;var s=0;do{if(vr&&(Do=null),Kl=0,vr=!1,s>=aO)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(s+=1,Wl=!1,Ct=We=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}Mo=-1,q.H=DT,r=jm(t,n,a)}while(vr);return r}function vC(){var e=q.H,t=e.useState()[0];return t=typeof t.then=="function"?ol(t):t,e=e.useState()[0],(We!==null?We.memoizedState:null)!==e&&(Ae.flags|=1024),t}function xh(){var e=wf!==0;return wf=0,e}function wh(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&fa)!==Re?t.flags&-402655237:t.flags&-2053,e.lanes&=~n}function Rh(e){if(xf){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}xf=!1}Co=0,Kn=Ct=We=Ae=null,Mo=-1,H=null,vr=!1,Kl=wf=0,Do=null}function tn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ct===null?Ae.memoizedState=Ct=e:Ct=Ct.next=e,Ct}function Ie(){if(We===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=We.next;var t=Ct===null?Ae.memoizedState:Ct.next;if(t!==null)Ct=t,We=e;else{if(e===null)throw Ae.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.");We=e,e={memoizedState:We.memoizedState,baseState:We.baseState,baseQueue:We.baseQueue,queue:We.queue,next:null},Ct===null?Ae.memoizedState=Ct=e:Ct=Ct.next=e}return Ct}function hc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ol(e){var t=Kl;return Kl+=1,Do===null&&(Do=n0()),e=o0(Do,e,t),t=Ae,(Ct===null?t.memoizedState:Ct.next)===null&&(t=t.alternate,q.H=t!==null&&t.memoizedState!==null?Ym:Hm),e}function Jo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ol(e);if(e.$$typeof===qa)return lt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function $i(e){var t=null,n=Ae.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=Ae.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=hc(),Ae.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0||Wl)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=ND;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 la(e,t){return typeof t=="function"?t(e):t}function Ah(e,t,n){var a=tn();if(n!==void 0){var s=n(t);if(us){de(!0);try{n(t)}finally{de(!1)}}}else s=t;return a.memoizedState=a.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},a.queue=e,e=e.dispatch=xC.bind(null,Ae,e),[a.memoizedState,e]}function Vs(e){var t=Ie();return Ch(t,We,e)}function Ch(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 s=e.baseQueue,r=a.pending;if(r!==null){if(s!==null){var c=s.next;s.next=r.next,r.next=c}t.baseQueue!==s&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=s=r,a.pending=null}if(r=e.baseState,s===null)e.memoizedState=r;else{t=s.next;var d=c=null,y=null,b=t,z=!1;do{var N=b.lane&-536870913;if(N!==b.lane?(Ve&N)===N:(Co&N)===N){var D=b.revertLane;if(D===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null}),N===os&&(z=!0);else if((Co&D)===D){b=b.next,D===os&&(z=!0);continue}else N={lane:0,revertLane:b.revertLane,gesture:null,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},y===null?(d=y=N,c=r):y=y.next=N,Ae.lanes|=D,yi|=D;N=b.action,us&&n(r,N),r=b.hasEagerState?b.eagerState:n(r,N)}else D={lane:N,revertLane:b.revertLane,gesture:b.gesture,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},y===null?(d=y=D,c=r):y=y.next=D,Ae.lanes|=N,yi|=N;b=b.next}while(b!==null&&b!==t);if(y===null?c=r:y.next=d,!sn(r,e.memoizedState)&&(Dt=!0,z&&(n=dr,n!==null)))throw n;e.memoizedState=r,e.baseState=c,e.baseQueue=y,a.lastRenderedState=r}return s===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function il(e){var t=Ie(),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,s=n.pending,r=t.memoizedState;if(s!==null){n.pending=null;var c=s=s.next;do r=e(r,c.action),c=c.next;while(c!==s);sn(r,t.memoizedState)||(Dt=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),n.lastRenderedState=r}return[r,a]}function Dh(e,t,n){var a=Ae,s=tn();if(ke){if(n===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var r=n();gr||r===n()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),gr=!0)}else{if(r=t(),gr||(n=t(),sn(r,n)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),gr=!0)),et===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Ve&127)!==0||g0(a,t,r)}return s.memoizedState=r,n={value:r,getSnapshot:t},s.queue=n,gc(b0.bind(null,a,n,e),[e]),a.flags|=2048,Ls(Fn|un,{destroy:void 0},v0.bind(null,a,n,r,t),null),r}function pc(e,t,n){var a=Ae,s=Ie(),r=ke;if(r){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(),!gr){var c=t();sn(n,c)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),gr=!0)}(c=!sn((We||s).memoizedState,n))&&(s.memoizedState=n,Dt=!0),s=s.queue;var d=b0.bind(null,a,s,e);if(mn(2048,un,d,[e]),s.getSnapshot!==t||c||Ct!==null&&Ct.memoizedState.tag&Fn){if(a.flags|=2048,Ls(Fn|un,{destroy:void 0},v0.bind(null,a,s,n,t),null),et===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");r||(Co&127)!==0||g0(a,t,n)}return n}function g0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ae.updateQueue,t===null?(t=hc(),Ae.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function v0(e,t,n,a){t.value=n,t.getSnapshot=a,S0(t)&&T0(e)}function b0(e,t,n){return n(function(){S0(t)&&(Da(2,"updateSyncExternalStore()",e),T0(e))})}function S0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sn(e,n)}catch{return!0}}function T0(e){var t=Jt(e,2);t!==null&&ht(t,e,2)}function Mh(e){var t=tn();if(typeof e=="function"){var n=e;if(e=n(),us){de(!0);try{n()}finally{de(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:e},t}function Oh(e){e=Mh(e);var t=e.queue,n=H0.bind(null,Ae,t);return t.dispatch=n,[e.memoizedState,n]}function _h(e){var t=tn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=$h.bind(null,Ae,!0,n),n.dispatch=t,[e,t]}function E0(e,t){var n=Ie();return x0(n,We,e,t)}function x0(e,t,n,a){return e.baseState=n,Ch(e,We,typeof a=="function"?a:la)}function w0(e,t){var n=Ie();return We!==null?x0(n,We,e,t):(n.baseState=e,[e,n.queue.dispatch])}function bC(e,t,n,a,s){if(xc(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var r={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){r.listeners.push(c)}};q.T!==null?n(!0):r.isTransition=!1,a(r),n=t.pending,n===null?(r.next=t.pending=r,R0(t,r)):(r.next=n.next,t.pending=n.next=r)}}function R0(e,t){var n=t.action,a=t.payload,s=e.state;if(t.isTransition){var r=q.T,c={};c._updatedFibers=new Set,q.T=c;try{var d=n(s,a),y=q.S;y!==null&&y(c,d),A0(e,t,d)}catch(b){jh(e,t,b)}finally{r!==null&&c.types!==null&&(r.types!==null&&r.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."),r.types=c.types),q.T=r,r===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(s,a),A0(e,t,c)}catch(b){jh(e,t,b)}}function A0(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?(q.asyncTransitions++,n.then(Ec,Ec),n.then(function(a){C0(e,t,a)},function(a){return jh(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.")):C0(e,t,n)}function C0(e,t,n){t.status="fulfilled",t.value=n,D0(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,R0(e,n)))}function jh(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,D0(t),t=t.next;while(t!==a)}e.action=null}function D0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function M0(e,t){return t}function Us(e,t){if(ke){var n=et.formState;if(n!==null){e:{var a=Ae;if(ke){if(st){t:{for(var s=st,r=Zn;s.nodeType!==8;){if(!r){s=null;break t}if(s=Mn(s.nextSibling),s===null){s=null;break t}}r=s.data,s=r===cy||r===hE?s:null}if(s){st=Mn(s.nextSibling),a=s.data===cy;break e}}Go(a)}a=!1}a&&(t=n[0])}}return n=tn(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:M0,lastRenderedState:t},n.queue=a,n=H0.bind(null,Ae,a),a.dispatch=n,a=Mh(!1),r=$h.bind(null,Ae,!1,a.queue),a=tn(),s={state:t,dispatch:null,action:e,pending:null},a.queue=s,n=bC.bind(null,Ae,s,r,n),s.dispatch=n,a.memoizedState=e,[t,n,!1]}function mc(e){var t=Ie();return O0(t,We,e)}function O0(e,t,n){if(t=Ch(e,t,M0)[0],e=Vs(la)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=ol(t)}catch(c){throw c===hr?bf:c}else a=t;t=Ie();var s=t.queue,r=s.dispatch;return n!==t.memoizedState&&(Ae.flags|=2048,Ls(Fn|un,{destroy:void 0},SC.bind(null,s,n),null)),[a,r,e]}function SC(e,t){e.action=t}function yc(e){var t=Ie(),n=We;if(n!==null)return O0(t,n,e);Ie(),t=t.memoizedState,n=Ie();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Ls(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=Ae.updateQueue,t===null&&(t=hc(),Ae.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 zh(e){var t=tn();return e={current:e},t.memoizedState=e}function Xi(e,t,n,a){var s=tn();Ae.flags|=e,s.memoizedState=Ls(Fn|t,{destroy:void 0},n,a===void 0?null:a)}function mn(e,t,n,a){var s=Ie();a=a===void 0?null:a;var r=s.memoizedState.inst;We!==null&&a!==null&&Sh(a,We.memoizedState.deps)?s.memoizedState=Ls(t,r,n,a):(Ae.flags|=e,s.memoizedState=Ls(Fn|t,r,n,a))}function gc(e,t){(Ae.mode&fa)!==Re?Xi(276826112,un,e,t):Xi(8390656,un,e,t)}function TC(e){Ae.flags|=4;var t=Ae.updateQueue;if(t===null)t=hc(),Ae.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Nh(e){var t=tn(),n={impl:e};return t.memoizedState=n,function(){if(($e&Ut)!==qt)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return n.impl.apply(void 0,arguments)}}function vc(e){var t=Ie().memoizedState;return TC({ref:t,nextImpl:e}),function(){if(($e&Ut)!==qt)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Vh(e,t){var n=4194308;return(Ae.mode&fa)!==Re&&(n|=134217728),Xi(n,Nn,e,t)}function _0(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 Uh(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;(Ae.mode&fa)!==Re&&(a|=134217728),Xi(a,Nn,_0.bind(null,t,e),n)}function bc(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,mn(4,Nn,_0.bind(null,t,e),n)}function Lh(e,t){return tn().memoizedState=[e,t===void 0?null:t],e}function Sc(e,t){var n=Ie();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Sh(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Bh(e,t){var n=tn();t=t===void 0?null:t;var a=e();if(us){de(!0);try{e()}finally{de(!1)}}return n.memoizedState=[a,t],a}function Tc(e,t){var n=Ie();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Sh(t,a[1]))return a[0];if(a=e(),us){de(!0);try{e()}finally{de(!1)}}return n.memoizedState=[a,t],a}function kh(e,t){var n=tn();return Hh(n,e,t)}function j0(e,t){var n=Ie();return N0(n,We.memoizedState,e,t)}function z0(e,t){var n=Ie();return We===null?Hh(n,e,t):N0(n,We.memoizedState,e,t)}function Hh(e,t,n){return n===void 0||(Co&1073741824)!==0&&(Ve&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Vb(),Ae.lanes|=e,yi|=e,n)}function N0(e,t,n,a){return sn(n,t)?n:mr.current!==null?(e=Hh(e,n,a),sn(e,t)||(Dt=!0),e):(Co&42)===0||(Co&1073741824)!==0&&(Ve&261930)===0?(Dt=!0,e.memoizedState=n):(e=Vb(),Ae.lanes|=e,yi|=e,t)}function Ec(){q.asyncTransitions--}function V0(e,t,n,a,s){var r=Ze.p;Ze.p=r!==0&&r<Xa?r:Xa;var c=q.T,d={};d._updatedFibers=new Set,q.T=d,$h(e,!1,t,n);try{var y=s(),b=q.S;if(b!==null&&b(d,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){q.asyncTransitions++,y.then(Ec,Ec);var z=yC(y,a);sl(e,t,z,Dn(e))}else sl(e,t,a,Dn(e))}catch(N){sl(e,t,{then:function(){},status:"rejected",reason:N},Dn(e))}finally{Ze.p=r,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),q.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 Yh(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 s=U0(e).queue;pC(e),V0(e,s,t,Ss,n===null?x:function(){return L0(e),n(a)})}function U0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ss,baseState:Ss,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:Ss},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function L0(e){q.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=U0(e);t.next===null&&(t=e.alternate.memoizedState),sl(e,t.next.queue,{},Dn(e))}function qh(){var e=Mh(!1);return e=V0.bind(null,Ae,e.queue,!0,!1),tn().memoizedState=e,[!1,e]}function B0(){var e=Vs(la)[0],t=Ie().memoizedState;return[typeof e=="boolean"?e:ol(e),t]}function k0(){var e=il(la)[0],t=Ie().memoizedState;return[typeof e=="boolean"?e:ol(e),t]}function Qi(){return lt(mu)}function Gh(){var e=tn(),t=et.identifierPrefix;if(ke){var n=Eo,a=To;n=(a&~(1<<32-nn(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=wf++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=nO++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t}function Ph(){return tn().memoizedState=EC.bind(null,Ae)}function EC(e,t){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=Dn(n),s=Xo(a),r=Qo(n,s,a);r!==null&&(Da(a,"refresh()",e),ht(r,n,a),tl(r,n,a)),e=ch(),t!=null&&r!==null&&console.error("The seed argument is not enabled outside experimental channels."),s.payload={cache:e};return}n=n.return}}function xC(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=Dn(e);var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};xc(e)?Y0(t,s):(s=Kd(e,t,s,a),s!==null&&(Da(a,"dispatch()",e),ht(s,e,a),q0(s,t,a)))}function H0(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=Dn(e),sl(e,t,n,a)&&Da(a,"setState()",e)}function sl(e,t,n,a){var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(xc(e))Y0(t,s);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null)){var c=q.H;q.H=ha;try{var d=t.lastRenderedState,y=r(d,n);if(s.hasEagerState=!0,s.eagerState=y,sn(y,d))return Iu(e,t,s,0),et===null&&Zu(),!1}catch{}finally{q.H=c}}if(n=Kd(e,t,s,a),n!==null)return ht(n,e,a),q0(n,t,a),!0}return!1}function $h(e,t,n,a){if(q.T===null&&os===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:Tp(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},xc(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Kd(e,n,a,2),t!==null&&(Da(2,"setOptimistic()",e),ht(t,e,2))}function xc(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function Y0(e,t){vr=xf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function q0(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Ho(e,n)}}function Xh(e){if(e!==null&&typeof e!="function"){var t=String(e);kT.has(t)||(kT.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Qh(e,t,n,a){var s=e.memoizedState,r=n(a,s);if(e.mode&Kt){de(!0);try{r=n(a,s)}finally{de(!1)}}r===void 0&&(t=F(t)||"Component",VT.has(t)||(VT.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),s=r==null?s:Be({},s,r),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}function G0(e,t,n,a,s,r,c){var d=e.stateNode;if(typeof d.shouldComponentUpdate=="function"){if(n=d.shouldComponentUpdate(a,r,c),e.mode&Kt){de(!0);try{n=d.shouldComponentUpdate(a,r,c)}finally{de(!1)}}return n===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",F(t)||"Component"),n}return t.prototype&&t.prototype.isPureReactComponent?!Ir(n,a)||!Ir(s,r):!0}function P0(e,t,n,a){var s=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==s&&(e=Y(e)||"Component",OT.has(e)||(OT.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),qm.enqueueReplaceState(t,t.state,null))}function Zi(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 s in e)n[s]===void 0&&(n[s]=e[s])}return n}function $0(e){bm(e),console.warn(`%s
161
-
162
- %s
163
- `,br?"An error occurred in the <"+br+"> 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 X0(e){var t=br?"The above error occurred in the <"+br+"> 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, "+((Gm||"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,TE+" "+e[0],EE,If+a+If,xE):e.splice(0,0,TE,EE,If+a+If,xE),e.unshift(console),a=xO.apply(console.error,e),a()}else console.error(`%o
170
-
171
- %s
172
-
173
- %s
174
- `,e,t,n)}function Q0(e){bm(e)}function wc(e,t){try{br=t.source?Y(t.source):null,Gm=null;var n=t.value;if(q.actQueue!==null)q.thrownErrors.push(n);else{var a=e.onUncaughtError;a(n,{componentStack:t.stack})}}catch(s){setTimeout(function(){throw s})}}function Z0(e,t,n){try{br=n.source?Y(n.source):null,Gm=Y(t);var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Zh(e,t,n){return n=Xo(n),n.tag=Um,n.payload={element:null},n.callback=function(){ue(t.source,wc,e,t)},n}function Ih(e){return e=Xo(e),e.tag=Um,e}function Jh(e,t,n,a){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var r=a.value;e.payload=function(){return s(r)},e.callback=function(){Yv(n),ue(a.source,Z0,t,n,a)}}var c=n.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Yv(n),ue(a.source,Z0,t,n,a),typeof s!="function"&&(vi===null?vi=new Set([this]):vi.add(this)),KM(this,a),typeof s=="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.",Y(n)||"Unknown")})}function wC(e,t,n,a,s){if(n.flags|=32768,$a&&pl(e,s),a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&zs(t,n,s,!0),ke&&(Za=!0),n=zn.current,n!==null){switch(n.tag){case 31:case 13:return Jn===null?zc():n.alternate===null&&dt===_o&&(dt=Cf),n.flags&=-257,n.flags|=65536,n.lanes=s,a===Sf?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),gp(e,a,s)),!1;case 22:return n.flags|=65536,a===Sf?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)),gp(e,a,s)),!1}throw Error("Unexpected Suspense handler tag ("+n.tag+"). This is a bug in React.")}return gp(e,a,s),zc(),!1}if(ke)return Za=!0,t=zn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,a!==Rm&&Jr(wn(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!==Rm&&Jr(wn(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,s&=-s,e.lanes|=s,a=wn(a,n),s=Zh(e.stateNode,a,s),cc(e,s),dt!==pi&&(dt=cs)),!1;var r=wn(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(su===null?su=[r]:su.push(r),dt!==pi&&(dt=cs),t===null)return!0;a=wn(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=Zh(n.stateNode,a,e),cc(n,e),!1;case 1:if(t=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(vi===null||!vi.has(r))))return n.flags|=65536,s&=-s,n.lanes|=s,s=Ih(s),Jh(s,e,n,a),cc(n,s),!1}n=n.return}while(n!==null);return!1}function Pt(e,t,n,a){t.child=e===null?bT(t,null,n,a):ls(t,e.child,n,a)}function I0(e,t,n,a,s){n=n.render;var r=t.ref;if("ref"in a){var c={};for(var d in a)d!=="ref"&&(c[d]=a[d])}else c=a;return Gi(t),a=Th(e,t,n,c,r,s),d=xh(),e!==null&&!Dt?(wh(e,t,s),po(e,t,s)):(ke&&d&&oh(t),t.flags|=1,Pt(e,t,a,s),t.child)}function J0(e,t,n,a,s){if(e===null){var r=n.type;return typeof r=="function"&&!eh(r)&&r.defaultProps===void 0&&n.compare===null?(n=ki(r),t.tag=15,t.type=n,Kh(t,r),F0(e,t,n,a,s)):(e=th(n.type,null,a,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!op(e,s)){var c=r.memoizedProps;if(n=n.compare,n=n!==null?n:Ir,n(c,a)&&e.ref===t.ref)return po(e,t,s)}return t.flags|=1,e=uo(r,a),e.ref=t.ref,e.return=t,t.child=e}function F0(e,t,n,a,s){if(e!==null){var r=e.memoizedProps;if(Ir(r,a)&&e.ref===t.ref&&t.type===e.type)if(Dt=!1,t.pendingProps=a=r,op(e,s))(e.flags&131072)!==0&&(Dt=!0);else return t.lanes=e.lanes,po(e,t,s)}return Fh(e,t,n,a,s)}function K0(e,t,n,a){var s=a.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Vl,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|n:n,e!==null){for(a=t.child=e.child,s=0;a!==null;)s=s|a.lanes|a.childLanes,a=a.sibling;a=s&~r}else a=0,t.child=null;return W0(e,t,r,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&oc(t,r!==null?r.cachePool:null),r!==null?p0(t,r):gh(t),m0(t);else return a=t.lanes=536870912,W0(e,t,r!==null?r.baseLanes|n:n,n,a)}else r!==null?(oc(t,r.cachePool),p0(t,r),Io(t),t.memoizedState=null):(e!==null&&oc(t,null),gh(t),Io(t));return Pt(e,t,s,n),t.child}function rl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Vl,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function W0(e,t,n,a,s){var r=hh();return r=r===null?null:{parent:Rt._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&oc(t,null),gh(t),m0(t),e!==null&&zs(e,t,a,!0),t.childLanes=s,null}function Rc(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=Cc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function eb(e,t,n){return ls(t,e.child,null,n),e=Rc(t,t.pendingProps),e.flags|=2,Cn(t),t.memoizedState=null,e}function RC(e,t,n){var a=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ke){if(a.mode==="hidden")return e=Rc(t,a),t.lanes=536870912,rl(null,e);if(bh(t),(e=st)?(n=RS(e,Zn),n=n!==null&&n.data===ys?n:null,n!==null&&(a={dehydrated:n,treeContext:Xv(),retryLane:536870912,hydrationErrors:null},t.memoizedState=a,a=Pv(n),a.return=t,t.child=a,Qt=t,st=null)):n=null,n===null)throw Ku(t,e),Go(t);return t.lanes=536870912,null}return Rc(t,a)}var r=e.memoizedState;if(r!==null){var c=r.dehydrated;if(bh(t),s)if(t.flags&256)t.flags&=-257,t=eb(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(Zv(),(n&536870912)!==0&&jc(t),Dt||zs(e,t,n,!1),s=(n&e.childLanes)!==0,Dt||s){if(a=et,a!==null&&(c=Ea(a,n),c!==0&&c!==r.retryLane))throw r.retryLane=c,Jt(e,c),ht(a,e,c),Pm;zc(),t=eb(e,t,n)}else e=r.treeContext,st=Mn(c.nextSibling),Qt=t,ke=!0,li=null,Za=!1,jn=null,Zn=!1,e!==null&&Qv(t,e),t=Rc(t,a),t.flags|=4096;return t}return r=e.child,a={mode:a.mode,children:a.children},(n&536870912)!==0&&(n&e.lanes)!==0&&jc(t),e=uo(r,a),e.ref=t.ref,t.child=e,e.return=t,e}function Ac(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 Fh(e,t,n,a,s){if(n.prototype&&typeof n.prototype.render=="function"){var r=F(n)||"Unknown";HT[r]||(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.",r,r),HT[r]=!0)}return t.mode&Kt&&da.recordLegacyContextWarning(t,null),e===null&&(Kh(t,t.type),n.contextTypes&&(r=F(n)||"Unknown",qT[r]||(qT[r]=!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)",r)))),Gi(t),n=Th(e,t,n,a,void 0,s),a=xh(),e!==null&&!Dt?(wh(e,t,s),po(e,t,s)):(ke&&a&&oh(t),t.flags|=1,Pt(e,t,n,s),t.child)}function tb(e,t,n,a,s,r){return Gi(t),Mo=-1,Wl=e!==null&&e.type!==t.type,t.updateQueue=null,n=Eh(t,a,n,s),y0(e,t),a=xh(),e!==null&&!Dt?(wh(e,t,r),po(e,t,r)):(ke&&a&&oh(t),t.flags|=1,Pt(e,t,n,r),t.child)}function nb(e,t,n,a,s){switch(h(t)){case!1:var r=t.stateNode,c=new t.type(t.memoizedProps,r.context).state;r.updater.enqueueSetState(r,c,null);break;case!0:t.flags|=128,t.flags|=65536,r=Error("Simulated error coming from DevTools");var d=s&-s;if(t.lanes|=d,c=et,c===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");d=Ih(d),Jh(d,c,t,wn(r,t)),cc(t,d)}if(Gi(t),t.stateNode===null){if(c=ri,r=n.contextType,"contextType"in n&&r!==null&&(r===void 0||r.$$typeof!==qa)&&!BT.has(n)&&(BT.add(n),d=r===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 r!="object"?" However, it is set to a "+typeof r+".":r.$$typeof===$p?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(r).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",F(n)||"Component",d)),typeof r=="object"&&r!==null&&(c=lt(r)),r=new n(a,c),t.mode&Kt){de(!0);try{r=new n(a,c)}finally{de(!1)}}if(c=t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=qm,t.stateNode=r,r._reactInternals=t,r._reactInternalInstance=MT,typeof n.getDerivedStateFromProps=="function"&&c===null&&(c=F(n)||"Component",_T.has(c)||(_T.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,r.state===null?"null":"undefined",c))),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"){var y=d=c=null;if(typeof r.componentWillMount=="function"&&r.componentWillMount.__suppressDeprecationWarning!==!0?c="componentWillMount":typeof r.UNSAFE_componentWillMount=="function"&&(c="UNSAFE_componentWillMount"),typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps.__suppressDeprecationWarning!==!0?d="componentWillReceiveProps":typeof r.UNSAFE_componentWillReceiveProps=="function"&&(d="UNSAFE_componentWillReceiveProps"),typeof r.componentWillUpdate=="function"&&r.componentWillUpdate.__suppressDeprecationWarning!==!0?y="componentWillUpdate":typeof r.UNSAFE_componentWillUpdate=="function"&&(y="UNSAFE_componentWillUpdate"),c!==null||d!==null||y!==null){r=F(n)||"Component";var b=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";zT.has(r)||(zT.add(r),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`,r,b,c!==null?`
182
- `+c:"",d!==null?`
183
- `+d:"",y!==null?`
184
- `+y:""))}}r=t.stateNode,c=F(n)||"Component",r.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)),!r.getInitialState||r.getInitialState.isReactClassApproved||r.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),r.getDefaultProps&&!r.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),r.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",c),n.childContextTypes&&!LT.has(n)&&(LT.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&&!UT.has(n)&&(UT.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 r.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 r.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.",F(n)||"A pure component"),typeof r.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",c),typeof r.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 r.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",c),typeof r.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",c),d=r.props!==a,r.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),r.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 r.getSnapshotBeforeUpdate!="function"||typeof r.componentDidUpdate=="function"||jT.has(n)||(jT.add(n),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",F(n))),typeof r.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 r.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=r.state)&&(typeof d!="object"||Nt(d))&&console.error("%s.state: must be set to an object or null",c),typeof r.getChildContext=="function"&&typeof n.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",c),r=t.stateNode,r.props=a,r.state=t.memoizedState,r.refs={},mh(t),c=n.contextType,r.context=typeof c=="object"&&c!==null?lt(c):ri,r.state===a&&(c=F(n)||"Component",NT.has(c)||(NT.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&Kt&&da.recordLegacyContextWarning(t,r),da.recordUnsafeLifecycleWarnings(t,r),r.state=t.memoizedState,c=n.getDerivedStateFromProps,typeof c=="function"&&(Qh(t,n,c,a),r.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(c=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),c!==r.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Y(t)||"Component"),qm.enqueueReplaceState(r,r.state,null)),al(t,a,r,s),nl(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&fa)!==Re&&(t.flags|=134217728),r=!0}else if(e===null){r=t.stateNode;var z=t.memoizedProps;d=Zi(n,z),r.props=d;var N=r.context;y=n.contextType,c=ri,typeof y=="object"&&y!==null&&(c=lt(y)),b=n.getDerivedStateFromProps,y=typeof b=="function"||typeof r.getSnapshotBeforeUpdate=="function",z=t.pendingProps!==z,y||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(z||N!==c)&&P0(t,r,a,c),hi=!1;var D=t.memoizedState;r.state=D,al(t,a,r,s),nl(),N=t.memoizedState,z||D!==N||hi?(typeof b=="function"&&(Qh(t,n,b,a),N=t.memoizedState),(d=hi||G0(t,n,d,a,D,N,c))?(y||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&fa)!==Re&&(t.flags|=134217728)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&fa)!==Re&&(t.flags|=134217728),t.memoizedProps=a,t.memoizedState=N),r.props=a,r.state=N,r.context=c,r=d):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&fa)!==Re&&(t.flags|=134217728),r=!1)}else{r=t.stateNode,yh(e,t),c=t.memoizedProps,y=Zi(n,c),r.props=y,b=t.pendingProps,D=r.context,N=n.contextType,d=ri,typeof N=="object"&&N!==null&&(d=lt(N)),z=n.getDerivedStateFromProps,(N=typeof z=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(c!==b||D!==d)&&P0(t,r,a,d),hi=!1,D=t.memoizedState,r.state=D,al(t,a,r,s),nl();var k=t.memoizedState;c!==b||D!==k||hi||e!==null&&e.dependencies!==null&&ec(e.dependencies)?(typeof z=="function"&&(Qh(t,n,z,a),k=t.memoizedState),(y=hi||G0(t,n,y,a,D,k,d)||e!==null&&e.dependencies!==null&&ec(e.dependencies))?(N||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,k,d),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,k,d)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=k),r.props=a,r.state=k,r.context=d,r=y):(typeof r.componentDidUpdate!="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),r=!1)}if(d=r,Ac(e,t),c=(t.flags&128)!==0,d||c){if(d=t.stateNode,Lo(t),c&&typeof n.getDerivedStateFromError!="function")n=null,rn=-1;else if(n=iT(d),t.mode&Kt){de(!0);try{iT(d)}finally{de(!1)}}t.flags|=1,e!==null&&c?(t.child=ls(t,e.child,null,s),t.child=ls(t,null,n,s)):Pt(e,t,n,s),t.memoizedState=d.state,e=t.child}else e=po(e,t,s);return s=t.stateNode,r&&s.props!==a&&(Sr||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Y(t)||"a component"),Sr=!0),e}function ab(e,t,n,a){return qi(),t.flags|=256,Pt(e,t,n,a),t.child}function Kh(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=F(t)||"Unknown",GT[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),GT[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=F(t)||"Unknown",YT[t]||(console.error("%s: Function components do not support contextType.",t),YT[t]=!0))}function Wh(e){return{baseLanes:e,cachePool:t0()}}function ep(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Sn),e}function ob(e,t,n){var a,s=t.pendingProps;p(t)&&(t.flags|=128);var r=!1,c=(t.flags&128)!==0;if((a=c)||(a=e!==null&&e.memoizedState===null?!1:(bt.current&Fl)!==0),a&&(r=!0,t.flags&=-129),a=(t.flags&32)!==0,t.flags&=-33,e===null){if(ke){if(r?Zo(t):Io(t),(e=st)?(n=RS(e,Zn),n=n!==null&&n.data!==ys?n:null,n!==null&&(a={dehydrated:n,treeContext:Xv(),retryLane:536870912,hydrationErrors:null},t.memoizedState=a,a=Pv(n),a.return=t,t.child=a,Qt=t,st=null)):n=null,n===null)throw Ku(t,e),Go(t);return zp(n)?t.lanes=32:t.lanes=536870912,null}var d=s.children;if(s=s.fallback,r){Io(t);var y=t.mode;return d=Cc({mode:"hidden",children:d},y),s=Hi(s,y,n,null),d.return=t,s.return=t,d.sibling=s,t.child=d,s=t.child,s.memoizedState=Wh(n),s.childLanes=ep(e,a,n),t.memoizedState=$m,rl(null,s)}return Zo(t),tp(t,d)}var b=e.memoizedState;if(b!==null){var z=b.dehydrated;if(z!==null){if(c)t.flags&256?(Zo(t),t.flags&=-257,t=np(e,t,n)):t.memoizedState!==null?(Io(t),t.child=e.child,t.flags|=128,t=null):(Io(t),d=s.fallback,y=t.mode,s=Cc({mode:"visible",children:s.children},y),d=Hi(d,y,n,null),d.flags|=2,s.return=t,d.return=t,s.sibling=d,t.child=s,ls(t,e.child,null,n),s=t.child,s.memoizedState=Wh(n),s.childLanes=ep(e,a,n),t.memoizedState=$m,t=rl(null,s));else if(Zo(t),Zv(),(n&536870912)!==0&&jc(t),zp(z)){if(a=z.nextSibling&&z.nextSibling.dataset,a){d=a.dgst;var N=a.msg;y=a.stck;var D=a.cstck}r=N,a=d,s=y,z=D,d=r,y=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=s||"",d.digest=a,a=y===void 0?null:y,s={value:d,source:null,stack:a},typeof a=="string"&&wm.set(d,s),Jr(s),t=np(e,t,n)}else if(Dt||zs(e,t,n,!1),a=(n&e.childLanes)!==0,Dt||a){if(a=et,a!==null&&(s=Ea(a,n),s!==0&&s!==b.retryLane))throw b.retryLane=s,Jt(e,s),ht(a,e,s),Pm;jp(z)||zc(),t=np(e,t,n)}else jp(z)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,st=Mn(z.nextSibling),Qt=t,ke=!0,li=null,Za=!1,jn=null,Zn=!1,e!==null&&Qv(t,e),t=tp(t,s.children),t.flags|=4096);return t}}return r?(Io(t),d=s.fallback,y=t.mode,D=e.child,z=D.sibling,s=uo(D,{mode:"hidden",children:s.children}),s.subtreeFlags=D.subtreeFlags&65011712,z!==null?d=uo(z,d):(d=Hi(d,y,n,null),d.flags|=2),d.return=t,s.return=t,s.sibling=d,t.child=s,rl(null,s),s=t.child,d=e.child.memoizedState,d===null?d=Wh(n):(y=d.cachePool,y!==null?(D=Rt._currentValue,y=y.parent!==D?{parent:D,pool:D}:y):y=t0(),d={baseLanes:d.baseLanes|n,cachePool:y}),s.memoizedState=d,s.childLanes=ep(e,a,n),t.memoizedState=$m,rl(e.child,s)):(b!==null&&(n&62914560)===n&&(n&e.lanes)!==0&&jc(t),Zo(t),n=e.child,e=n.sibling,n=uo(n,{mode:"visible",children:s.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 tp(e,t){return t=Cc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Cc(e,t){return e=g(22,e,null,t),e.lanes=0,e}function np(e,t,n){return ls(t,e.child,null,n),e=tp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ib(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),lh(e.return,t,n)}function ap(e,t,n,a,s,r){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:s,treeForkCount:r}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=n,c.tailMode=s,c.treeForkCount=r)}function sb(e,t,n){var a=t.pendingProps,s=a.revealOrder,r=a.tail,c=a.children,d=bt.current;if((a=(d&Fl)!==0)?(d=d&yr|Fl,t.flags|=128):d&=yr,Q(bt,d,t),d=s??"null",s!=="forwards"&&s!=="unstable_legacy-backwards"&&s!=="together"&&s!=="independent"&&!PT[d])if(PT[d]=!0,s==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(s==="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 s=="string")switch(s.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.',s,s.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.',s,s.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',s)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',s);d=r??"null",Af[d]||(r==null?(s==="forwards"||s==="backwards"||s==="unstable_legacy-backwards")&&(Af[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".')):r!=="visible"&&r!=="collapsed"&&r!=="hidden"?(Af[d]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',r)):s!=="forwards"&&s!=="backwards"&&s!=="unstable_legacy-backwards"&&(Af[d]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',r)));e:if((s==="forwards"||s==="backwards"||s==="unstable_legacy-backwards")&&c!==void 0&&c!==null&&c!==!1)if(Nt(c)){for(d=0;d<c.length;d++)if(!f0(c[d],d))break e}else if(d=le(c),typeof d=="function"){if(d=d.call(c))for(var y=d.next(),b=0;!y.done;y=d.next()){if(!f0(y.value,b))break e;b++}}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?',s);if(Pt(e,t,c,n),ke?(qo(),c=Ul):c=0,!a&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ib(e,n,t);else if(e.tag===19)ib(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(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&fc(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),ap(t,!1,s,n,r,c);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&fc(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}ap(t,!0,n,null,r,c);break;case"together":ap(t,!1,null,null,void 0,c);break;default:t.memoizedState=null}return t.child}function po(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),rn=-1,yi|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(zs(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=uo(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=uo(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function op(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ec(e)))}function AC(e,t,n){switch(t.tag){case 3:De(t,t.stateNode.containerInfo),Po(t,Rt,e.memoizedState.cache),qi();break;case 27:case 5:oe(t);break;case 4:De(t,t.stateNode.containerInfo);break;case 10:Po(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,bh(t),null;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(Zo(t),t.flags|=128,null):(n&t.child.childLanes)!==0?ob(e,t,n):(Zo(t),e=po(e,t,n),e!==null?e.sibling:null);Zo(t);break;case 19:var s=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(zs(e,t,n,!1),a=(n&t.childLanes)!==0),s){if(a)return sb(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Q(bt,bt.current,t),a)break;return null;case 22:return t.lanes=0,K0(e,t,n,t.pendingProps);case 24:Po(t,Rt,e.memoizedState.cache)}return po(e,t,n)}function ip(e,t,n){if(t._debugNeedsRemount&&e!==null){n=th(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 s=a.child;if(s===null)throw Error("Expected parent to have a child.");for(;s.sibling!==t;)if(s=s.sibling,s===null)throw Error("Expected to find the previous sibling.");s.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)Dt=!0;else{if(!op(e,n)&&(t.flags&128)===0)return Dt=!1,AC(e,t,n);Dt=(e.flags&131072)!==0}else Dt=!1,(a=ke)&&(qo(),a=(t.flags&1048576)!==0),a&&(a=t.index,qo(),$v(t,Ul,a));switch(t.lanes=0,t.tag){case 16:e:if(a=t.pendingProps,e=$o(t.elementType),t.type=e,typeof e=="function")eh(e)?(a=Zi(e,a),t.tag=1,t.type=e=ki(e),t=nb(null,t,e,a,n)):(t.tag=0,Kh(t,e),t.type=e=ki(e),t=Fh(null,t,e,a,n));else{if(e!=null){if(s=e.$$typeof,s===xl){t.tag=11,t.type=e=Wd(e),t=I0(null,t,e,a,n);break e}else if(s===Qc){t.tag=14,t=J0(null,t,e,a,n);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===On&&(t=" Did you wrap a component in React.lazy() more than once?"),n=F(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 Fh(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,s=Zi(a,t.pendingProps),nb(e,t,a,s,n);case 3:e:{if(De(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");a=t.pendingProps;var r=t.memoizedState;s=r.element,yh(e,t),al(t,a,null,n);var c=t.memoizedState;if(a=c.cache,Po(t,Rt,a),a!==r.cache&&uh(t,[Rt],n,!0),nl(),a=c.element,r.isDehydrated)if(r={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=ab(e,t,a,n);break e}else if(a!==s){s=wn(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),Jr(s),t=ab(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(st=Mn(e.firstChild),Qt=t,ke=!0,li=null,Za=!1,jn=null,Zn=!0,n=bT(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(qi(),a===s){t=po(e,t,n);break e}Pt(e,t,a,n)}t=t.child}return t;case 26:return Ac(e,t),e===null?(n=_S(t.type,null,t.pendingProps,null))?t.memoizedState=n:ke||(n=t.type,e=t.pendingProps,a=Se(ti.current),a=Lc(a).createElement(n),a[Xt]=t,a[an]=e,$t(a,n,e),be(a),t.stateNode=a):t.memoizedState=_S(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return oe(t),e===null&&ke&&(a=Se(ti.current),s=pe(),a=t.stateNode=MS(t.type,t.pendingProps,a,s,!1),Za||(s=gS(a,t.type,t.pendingProps,s),s!==null&&(Yi(t,0).serverProps=s)),Qt=t,Zn=!0,s=st,Wo(t.type)?(py=s,st=Mn(a.firstChild)):st=s),Pt(e,t,t.pendingProps.children,n),Ac(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ke&&(r=pe(),a=Pd(t.type,r.ancestorInfo),s=st,(c=!s)||(c=pD(s,t.type,t.pendingProps,Zn),c!==null?(t.stateNode=c,Za||(r=gS(c,t.type,t.pendingProps,r),r!==null&&(Yi(t,0).serverProps=r)),Qt=t,st=Mn(c.firstChild),Zn=!1,r=!0):r=!1,c=!r),c&&(a&&Ku(t,s),Go(t))),oe(t),s=t.type,r=t.pendingProps,c=e!==null?e.memoizedProps:null,a=r.children,Op(s,r)?a=null:c!==null&&Op(s,c)&&(t.flags|=32),t.memoizedState!==null&&(s=Th(e,t,vC,null,null,n),mu._currentValue=s),Ac(e,t),Pt(e,t,a,n),t.child;case 6:return e===null&&ke&&(n=t.pendingProps,e=pe(),a=e.ancestorInfo.current,n=a!=null?qu(n,a.tag,e.ancestorInfo.implicitRootScope):!0,e=st,(a=!e)||(a=mD(e,t.pendingProps,Zn),a!==null?(t.stateNode=a,Qt=t,st=null,a=!0):a=!1,a=!a),a&&(n&&Ku(t,e),Go(t))),null;case 13:return ob(e,t,n);case 4:return De(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ls(t,null,a,n):Pt(e,t,a,n),t.child;case 11:return I0(e,t,t.type,t.pendingProps,n);case 7:return Pt(e,t,t.pendingProps,n),t.child;case 8:return Pt(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,Pt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.type,s=t.pendingProps,r=s.value,"value"in s||$T||($T=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Po(t,a,r),Pt(e,t,s.children,n),t.child;case 9:return s=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."),Gi(t),s=lt(s),a=jm(a,s,void 0),t.flags|=1,Pt(e,t,a,n),t.child;case 14:return J0(e,t,t.type,t.pendingProps,n);case 15:return F0(e,t,t.type,t.pendingProps,n);case 19:return sb(e,t,n);case 31:return RC(e,t,n);case 22:return K0(e,t,n,t.pendingProps);case 24:return Gi(t),a=lt(Rt),e===null?(s=hh(),s===null&&(s=et,r=ch(),s.pooledCache=r,Pi(r),r!==null&&(s.pooledCacheLanes|=n),s=r),t.memoizedState={parent:a,cache:s},mh(t),Po(t,Rt,s)):((e.lanes&n)!==0&&(yh(e,t),al(t,null,null,n),nl()),s=e.memoizedState,r=t.memoizedState,s.parent!==a?(s={parent:a,cache:a},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Po(t,Rt,a)):(a=r.cache,Po(t,Rt,a),a!==s.cache&&uh(t,[Rt],n,!0))),Pt(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 mo(e){e.flags|=4}function sp(e,t,n,a,s){if((t=(e.mode&QM)!==Re)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(kb())e.flags|=8192;else throw rs=Sf,Nm}else e.flags&=-16777217}function rb(e,t){if(t.type!=="stylesheet"||(t.state.loading&Wn)!==bs)e.flags&=-16777217;else if(e.flags|=16777216,!US(t))if(kb())e.flags|=8192;else throw rs=Sf,Nm}function Dc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?oo():536870912,e.lanes|=t,hs|=t)}function ll(e,t){if(!ke)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 tt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)if((e.mode&ze)!==Re){for(var s=e.selfBaseDuration,r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags&65011712,a|=r.flags&65011712,s+=r.treeBaseDuration,r=r.sibling;e.treeBaseDuration=s}else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=e,s=s.sibling;else if((e.mode&ze)!==Re){s=e.actualDuration,r=e.selfBaseDuration;for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,a|=c.subtreeFlags,a|=c.flags,s+=c.actualDuration,r+=c.treeBaseDuration,c=c.sibling;e.actualDuration=s,e.treeBaseDuration=r}else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function CC(e,t,n){var a=t.pendingProps;switch(ih(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tt(t),null;case 1:return tt(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),fo(Rt,t),Z(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(js(t)?(rh(),mo(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,sh())),tt(t),null;case 26:var s=t.type,r=t.memoizedState;return e===null?(mo(t),r!==null?(tt(t),rb(t,r)):(tt(t),sp(t,s,null,a,n))):r?r!==e.memoizedState?(mo(t),tt(t),rb(t,r)):(tt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&mo(t),tt(t),sp(t,s,e,a,n)),null;case 27:if(me(t),n=Se(ti.current),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&mo(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 tt(t),null}e=pe(),js(t)?Iv(t):(e=MS(s,a,n,e,!0),t.stateNode=e,mo(t))}return tt(t),null;case 5:if(me(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&mo(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 tt(t),null}var c=pe();if(js(t))Iv(t);else{switch(r=Se(ti.current),Pd(s,c.ancestorInfo),c=c.context,r=Lc(r),c){case Dr:r=r.createElementNS(Ks,s);break;case Xf:r=r.createElementNS(ef,s);break;default:switch(s){case"svg":r=r.createElementNS(Ks,s);break;case"math":r=r.createElementNS(ef,s);break;case"script":r=r.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof a.is=="string"?r.createElement("select",{is:a.is}):r.createElement("select"),a.multiple?r.multiple=!0:a.size&&(r.size=a.size);break;default:r=typeof a.is=="string"?r.createElement(s,{is:a.is}):r.createElement(s),s.indexOf("-")===-1&&(s!==s.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",s),Object.prototype.toString.call(r)!=="[object HTMLUnknownElement]"||ca.call(mE,s)||(mE[s]=!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.",s)))}}r[Xt]=t,r[an]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)r.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=r;e:switch($t(r,s,a),s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&mo(t)}}return tt(t),sp(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&mo(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=Se(ti.current),n=pe(),js(t)){if(e=t.stateNode,n=t.memoizedProps,s=!Za,a=null,r=Qt,r!==null)switch(r.tag){case 3:s&&(s=CS(e,n,a),s!==null&&(Yi(t,0).serverProps=s));break;case 27:case 5:a=r.memoizedProps,s&&(s=CS(e,n,a),s!==null&&(Yi(t,0).serverProps=s))}e[Xt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||dS(e.nodeValue,n)),e||Go(t,!0)}else s=n.ancestorInfo.current,s!=null&&qu(a,s.tag,n.ancestorInfo.implicitRootScope),e=Lc(e).createTextNode(a),e[Xt]=t,t.stateNode=e}return tt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=js(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[Xt]=t,tt(t),(t.mode&ze)!==Re&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else rh(),qi(),(t.flags&128)===0&&(n=t.memoizedState=null),t.flags|=4,tt(t),(t.mode&ze)!==Re&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else n=sh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Cn(t),t):(Cn(t),null);if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return tt(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=a,r=js(t),s!==null&&s.dehydrated!==null){if(e===null){if(!r)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");r[Xt]=t,tt(t),(t.mode&ze)!==Re&&s!==null&&(s=t.child,s!==null&&(t.treeBaseDuration-=s.treeBaseDuration))}else rh(),qi(),(t.flags&128)===0&&(s=t.memoizedState=null),t.flags|=4,tt(t),(t.mode&ze)!==Re&&s!==null&&(s=t.child,s!==null&&(t.treeBaseDuration-=s.treeBaseDuration));s=!1}else s=sh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Cn(t),t):(Cn(t),null)}return Cn(t),(t.flags&128)!==0?(t.lanes=n,(t.mode&ze)!==Re&&Wr(t),t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==s&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Dc(t,t.updateQueue),tt(t),(t.mode&ze)!==Re&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return Z(t),e===null&&xp(t.stateNode.containerInfo),tt(t),null;case 10:return fo(t.type,t),tt(t),null;case 19:if(I(bt,t),a=t.memoizedState,a===null)return tt(t),null;if(s=(t.flags&128)!==0,r=a.rendering,r===null)if(s)ll(a,!1);else{if(dt!==_o||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=fc(e),r!==null){for(t.flags|=128,ll(a,!1),e=r.updateQueue,t.updateQueue=e,Dc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Gv(n,e),n=n.sibling;return Q(bt,bt.current&yr|Fl,t),ke&&co(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&kt()>zf&&(t.flags|=128,s=!0,ll(a,!1),t.lanes=4194304)}else{if(!s)if(e=fc(r),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Dc(t,e),ll(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!ke)return tt(t),null}else 2*kt()-a.renderingStartTime>zf&&n!==536870912&&(t.flags|=128,s=!0,ll(a,!1),t.lanes=4194304);a.isBackwards?(r.sibling=t.child,t.child=r):(e=a.last,e!==null?e.sibling=r:t.child=r,a.last=r)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=kt(),e.sibling=null,n=bt.current,n=s?n&yr|Fl:n&yr,Q(bt,n,t),ke&&co(t,a.treeForkCount),e):(tt(t),null);case 22:case 23:return Cn(t),vh(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&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),n=t.updateQueue,n!==null&&Dc(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&&I(is,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fo(Rt,t),tt(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 DC(e,t){switch(ih(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&ze)!==Re&&Wr(t),t):null;case 3:return fo(Rt,t),Z(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return me(t),null;case 31:if(t.memoizedState!==null){if(Cn(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&ze)!==Re&&Wr(t),t):null;case 13:if(Cn(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.");qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&ze)!==Re&&Wr(t),t):null;case 19:return I(bt,t),null;case 4:return Z(t),null;case 10:return fo(t.type,t),null;case 22:case 23:return Cn(t),vh(t),e!==null&&I(is,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&ze)!==Re&&Wr(t),t):null;case 24:return fo(Rt,t),null;case 25:return null;default:return null}}function lb(e,t){switch(ih(t),t.tag){case 3:fo(Rt,t),Z(t);break;case 26:case 27:case 5:me(t);break;case 4:Z(t);break;case 31:t.memoizedState!==null&&Cn(t);break;case 13:Cn(t);break;case 19:I(bt,t);break;case 10:fo(t.type,t);break;case 22:case 23:Cn(t),vh(t),e!==null&&I(is,t);break;case 24:fo(Rt,t)}}function Va(e){return(e.mode&ze)!==Re}function ub(e,t){Va(e)?(Na(),ul(t,e),za()):ul(t,e)}function rp(e,t,n){Va(e)?(Na(),Bs(n,e,t),za()):Bs(n,e,t)}function ul(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var s=a.next;n=s;do{if((n.tag&e)===e&&(a=void 0,(e&ln)!==Ef&&(Rr=!0),a=ue(t,WM,n),(e&ln)!==Ef&&(Rr=!1),a!==void 0&&typeof a!="function")){var r=void 0;r=(n.tag&Nn)!==0?"useLayoutEffect":(n.tag&ln)!==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 `+r+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
188
-
189
- `+r+`(() => {
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,ue(t,function(d,y){console.error("%s must not return anything besides a function, which is used for clean-up.%s",d,y)},r,c)}n=n.next}while(n!==s)}}catch(d){Qe(t,t.return,d)}}function Bs(e,t,n){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var r=s.next;a=r;do{if((a.tag&e)===e){var c=a.inst,d=c.destroy;d!==void 0&&(c.destroy=void 0,(e&ln)!==Ef&&(Rr=!0),s=t,ue(s,eO,s,n,d),(e&ln)!==Ef&&(Rr=!1))}a=a.next}while(a!==r)}}catch(y){Qe(t,t.return,y)}}function cb(e,t){Va(e)?(Na(),ul(t,e),za()):ul(t,e)}function lp(e,t,n){Va(e)?(Na(),Bs(n,e,t),za()):Bs(n,e,t)}function fb(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Sr||(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.",Y(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.",Y(e)||"instance"));try{ue(e,h0,t,n)}catch(a){Qe(e,e.return,a)}}}function MC(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function OC(e,t){var n=t.memoizedProps,a=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Sr||(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.",Y(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.",Y(e)||"instance"));try{var s=Zi(e.type,n),r=ue(e,MC,t,s,a);n=XT,r!==void 0||n.has(e.type)||(n.add(e.type),ue(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Y(e))})),t.__reactInternalSnapshotBeforeUpdate=r}catch(c){Qe(e,e.return,c)}}function db(e,t,n){n.props=Zi(e.type,e.memoizedProps),n.state=e.memoizedState,Va(e)?(Na(),ue(e,fT,e,t,n),za()):ue(e,fT,e,t,n)}function _C(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(Va(e))try{Na(),e.refCleanup=t(n)}finally{za()}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().",Y(e)),t.current=n}}function cl(e,t){try{ue(e,_C,e)}catch(n){Qe(e,t,n)}}function Ua(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{if(Va(e))try{Na(),ue(e,a)}finally{za(e)}else ue(e,a)}catch(s){Qe(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{if(Va(e))try{Na(),ue(e,n,null)}finally{za(e)}else ue(e,n,null)}catch(s){Qe(e,t,s)}else n.current=null}function hb(e,t,n,a){var s=e.memoizedProps,r=s.id,c=s.onCommit;s=s.onRender,t=t===null?"mount":"update",yf&&(t="nested-update"),typeof s=="function"&&s(r,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof c=="function"&&c(r,t,a,n)}function jC(e,t,n,a){var s=e.memoizedProps;e=s.id,s=s.onPostCommit,t=t===null?"mount":"update",yf&&(t="nested-update"),typeof s=="function"&&s(e,t,a,n)}function pb(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{ue(e,nD,a,t,n,e)}catch(s){Qe(e,e.return,s)}}function up(e,t,n){try{ue(e,oD,e.stateNode,e.type,n,t,e)}catch(a){Qe(e,e.return,a)}}function mb(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wo(e.type)||e.tag===4}function cp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mb(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&&Wo(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 fp(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(ES(n),(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t)):(ES(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=lo));else if(a!==4&&(a===27&&Wo(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(fp(e,t,n),e=e.sibling;e!==null;)fp(e,t,n),e=e.sibling}function Mc(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&&Wo(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Mc(e,t,n),e=e.sibling;e!==null;)Mc(e,t,n),e=e.sibling}function zC(e){for(var t,n=e.return;n!==null;){if(mb(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=cp(e),Mc(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(TS(n),t.flags&=-33),t=cp(e),Mc(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=cp(e),fp(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 yb(e){var t=e.stateNode,n=e.memoizedProps;try{ue(e,SD,e.type,n,t,e)}catch(a){Qe(e,e.return,a)}}function gb(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 NC(e,t){if(e=e.containerInfo,fy=Jf,e=zv(e),Qd(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 s=a.anchorOffset,r=a.focusNode;a=a.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break e}var c=0,d=-1,y=-1,b=0,z=0,N=e,D=null;t:for(;;){for(var k;N!==n||s!==0&&N.nodeType!==3||(d=c+s),N!==r||a!==0&&N.nodeType!==3||(y=c+a),N.nodeType===3&&(c+=N.nodeValue.length),(k=N.firstChild)!==null;)D=N,N=k;for(;;){if(N===e)break t;if(D===n&&++b===s&&(d=c),D===r&&++z===a&&(y=c),(k=N.nextSibling)!==null)break;N=D,D=N.parentNode}N=k}n=d===-1||y===-1?null:{start:d,end:y}}else n=null}n=n||{start:0,end:0}}else n=null;for(dy={focusedElem:e,selectionRange:n},Jf=!1,Yt=t;Yt!==null;)if(t=Yt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Yt=e;else for(;Yt!==null;){switch(e=t=Yt,n=e.alternate,s=e.flags,e.tag){case 0:if((s&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)s=e[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:(s&1024)!==0&&n!==null&&OC(e,n);break;case 3:if((s&1024)!==0){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)_p(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":_p(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&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,Yt=e;break}Yt=t.return}}function vb(e,t,n){var a=Rn(),s=Ma(),r=_a(),c=ja(),d=n.flags;switch(n.tag){case 0:case 11:case 15:La(e,n),d&4&&ub(n,Nn|Fn);break;case 1:if(La(e,n),d&4)if(e=n.stateNode,t===null)n.type.defaultProps||"ref"in n.memoizedProps||Sr||(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.",Y(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.",Y(n)||"instance")),Va(n)?(Na(),ue(n,zm,n,e),za()):ue(n,zm,n,e);else{var y=Zi(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||"ref"in n.memoizedProps||Sr||(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.",Y(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.",Y(n)||"instance")),Va(n)?(Na(),ue(n,lT,n,e,y,t,e.__reactInternalSnapshotBeforeUpdate),za()):ue(n,lT,n,e,y,t,e.__reactInternalSnapshotBeforeUpdate)}d&64&&fb(n),d&512&&cl(n,n.return);break;case 3:if(t=ho(),La(e,n),d&64&&(d=n.updateQueue,d!==null)){if(y=null,n.child!==null)switch(n.child.tag){case 27:case 5:y=n.child.stateNode;break;case 1:y=n.child.stateNode}try{ue(n,h0,d,y)}catch(z){Qe(n,n.return,z)}}e.effectDuration+=nc(t);break;case 27:t===null&&d&4&&yb(n);case 26:case 5:if(La(e,n),t===null){if(d&4)pb(n);else if(d&64){e=n.type,t=n.memoizedProps,y=n.stateNode;try{ue(n,aD,y,e,t,n)}catch(z){Qe(n,n.return,z)}}}d&512&&cl(n,n.return);break;case 12:if(d&4){d=ho(),La(e,n),e=n.stateNode,e.effectDuration+=Kr(d);try{ue(n,hb,n,t,ui,e.effectDuration)}catch(z){Qe(n,n.return,z)}}else La(e,n);break;case 31:La(e,n),d&4&&Tb(e,n);break;case 13:La(e,n),d&4&&Eb(e,n),d&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(d=GC.bind(null,n),yD(e,d))));break;case 22:if(d=n.memoizedState!==null||Oo,!d){t=t!==null&&t.memoizedState!==null||Mt,y=Oo;var b=Mt;Oo=d,(Mt=t)&&!b?(Ba(e,n,(n.subtreeFlags&8772)!==0),(n.mode&ze)!==Re&&0<=Ee&&0<=we&&.05<we-Ee&&Xu(n,Ee,we)):La(e,n),Oo=y,Mt=b}break;case 30:break;default:La(e,n)}(n.mode&ze)!==Re&&0<=Ee&&0<=we&&((pt||.05<ft)&&Ca(n,Ee,we,ft,ut),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<we-Ee&&(gb(n.return.alternate,n.return)||Aa(n,Ee,we,"Mount"))),An(a),Oa(s),ut=r,pt=c}function bb(e){var t=e.alternate;t!==null&&(e.alternate=null,bb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&V(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 yo(e,t,n){for(n=n.child;n!==null;)Sb(e,t,n),n=n.sibling}function Sb(e,t,n){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(Js,n)}catch(b){Pa||(Pa=!0,console.error("React instrumentation encountered an error: %o",b))}var a=Rn(),s=Ma(),r=_a(),c=ja();switch(n.tag){case 26:Mt||Ua(n,t),yo(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(e=n.stateNode,e.parentNode.removeChild(e));break;case 27:Mt||Ua(n,t);var d=Ot,y=vn;Wo(n.type)&&(Ot=n.stateNode,vn=!1),yo(e,t,n),ue(n,bl,n.stateNode),Ot=d,vn=y;break;case 5:Mt||Ua(n,t);case 6:if(d=Ot,y=vn,Ot=null,yo(e,t,n),Ot=d,vn=y,Ot!==null)if(vn)try{ue(n,rD,Ot,n.stateNode)}catch(b){Qe(n,t,b)}else try{ue(n,sD,Ot,n.stateNode)}catch(b){Qe(n,t,b)}break;case 18:Ot!==null&&(vn?(e=Ot,xS(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Xs(e)):xS(Ot,n.stateNode));break;case 4:d=Ot,y=vn,Ot=n.stateNode.containerInfo,vn=!0,yo(e,t,n),Ot=d,vn=y;break;case 0:case 11:case 14:case 15:Bs(ln,n,t),Mt||rp(n,t,Nn),yo(e,t,n);break;case 1:Mt||(Ua(n,t),d=n.stateNode,typeof d.componentWillUnmount=="function"&&db(n,t,d)),yo(e,t,n);break;case 21:yo(e,t,n);break;case 22:Mt=(d=Mt)||n.memoizedState!==null,yo(e,t,n),Mt=d;break;default:yo(e,t,n)}(n.mode&ze)!==Re&&0<=Ee&&0<=we&&(pt||.05<ft)&&Ca(n,Ee,we,ft,ut),An(a),Oa(s),ut=r,pt=c}function Tb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ue(t,vD,e)}catch(n){Qe(t,t.return,n)}}}function Eb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ue(t,bD,e)}catch(n){Qe(t,t.return,n)}}function VC(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new QT),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new QT),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Oc(e,t){var n=VC(e);t.forEach(function(a){if(!n.has(a)){if(n.add(a),$a)if(Tr!==null&&Er!==null)pl(Er,Tr);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var s=PC.bind(null,e,a);a.then(s,s)}})}function yn(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var s=e,r=t,c=n[a],d=Rn(),y=r;e:for(;y!==null;){switch(y.tag){case 27:if(Wo(y.type)){Ot=y.stateNode,vn=!1;break e}break;case 5:Ot=y.stateNode,vn=!1;break e;case 3:case 4:Ot=y.stateNode.containerInfo,vn=!0;break e}y=y.return}if(Ot===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Sb(s,r,c),Ot=null,vn=!1,(c.mode&ze)!==Re&&0<=Ee&&0<=we&&.05<we-Ee&&Aa(c,Ee,we,"Unmount"),An(d),s=c,r=s.alternate,r!==null&&(r.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)xb(t,e),t=t.sibling}function xb(e,t){var n=Rn(),a=Ma(),s=_a(),r=ja(),c=e.alternate,d=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yn(t,e),gn(e),d&4&&(Bs(ln|Fn,e,e.return),ul(ln|Fn,e),rp(e,e.return,Nn|Fn));break;case 1:if(yn(t,e),gn(e),d&512&&(Mt||c===null||Ua(c,c.return)),d&64&&Oo&&(d=e.updateQueue,d!==null&&(c=d.callbacks,c!==null))){var y=d.shared.hiddenCallbacks;d.shared.hiddenCallbacks=y===null?c:y.concat(c)}break;case 26:if(y=pa,yn(t,e),gn(e),d&512&&(Mt||c===null||Ua(c,c.return)),d&4){var b=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,y=y.ownerDocument||y;t:switch(d){case"title":b=y.getElementsByTagName("title")[0],(!b||b[Al]||b[Xt]||b.namespaceURI===Ks||b.hasAttribute("itemprop"))&&(b=y.createElement(d),y.head.insertBefore(b,y.querySelector("head > title"))),$t(b,d,c),b[Xt]=e,be(b),d=b;break e;case"link":var z=NS("link","href",y).get(d+(c.href||""));if(z){for(var N=0;N<z.length;N++)if(b=z[N],b.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&b.getAttribute("rel")===(c.rel==null?null:c.rel)&&b.getAttribute("title")===(c.title==null?null:c.title)&&b.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){z.splice(N,1);break t}}b=y.createElement(d),$t(b,d,c),y.head.appendChild(b);break;case"meta":if(z=NS("meta","content",y).get(d+(c.content||""))){for(N=0;N<z.length;N++)if(b=z[N],Xe(c.content,"content"),b.getAttribute("content")===(c.content==null?null:""+c.content)&&b.getAttribute("name")===(c.name==null?null:c.name)&&b.getAttribute("property")===(c.property==null?null:c.property)&&b.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&b.getAttribute("charset")===(c.charSet==null?null:c.charSet)){z.splice(N,1);break t}}b=y.createElement(d),$t(b,d,c),y.head.appendChild(b);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+d+'". This is a bug in React.')}b[Xt]=e,be(b),d=b}e.stateNode=d}else VS(y,e.type,e.stateNode);else e.stateNode=zS(y,d,e.memoizedProps);else b!==d?(b===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):b.count--,d===null?VS(y,e.type,e.stateNode):zS(y,d,e.memoizedProps)):d===null&&e.stateNode!==null&&up(e,e.memoizedProps,c.memoizedProps)}break;case 27:yn(t,e),gn(e),d&512&&(Mt||c===null||Ua(c,c.return)),c!==null&&d&4&&up(e,e.memoizedProps,c.memoizedProps);break;case 5:if(yn(t,e),gn(e),d&512&&(Mt||c===null||Ua(c,c.return)),e.flags&32){y=e.stateNode;try{ue(e,TS,y)}catch(ce){Qe(e,e.return,ce)}}d&4&&e.stateNode!=null&&(y=e.memoizedProps,up(e,y,c!==null?c.memoizedProps:y)),d&1024&&(Xm=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(yn(t,e),gn(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,y=e.stateNode;try{ue(e,iD,y,c,d)}catch(ce){Qe(e,e.return,ce)}}break;case 3:if(y=ho(),Qf=null,b=pa,pa=Bc(t.containerInfo),yn(t,e),pa=b,gn(e),d&4&&c!==null&&c.memoizedState.isDehydrated)try{ue(e,gD,t.containerInfo)}catch(ce){Qe(e,e.return,ce)}Xm&&(Xm=!1,wb(e)),t.effectDuration+=nc(y);break;case 4:d=pa,pa=Bc(e.stateNode.containerInfo),yn(t,e),gn(e),pa=d;break;case 12:d=ho(),yn(t,e),gn(e),e.stateNode.effectDuration+=Kr(d);break;case 31:yn(t,e),gn(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,Oc(e,d)));break;case 13:yn(t,e),gn(e),e.child.flags&8192&&e.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(jf=kt()),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,Oc(e,d)));break;case 22:y=e.memoizedState!==null;var D=c!==null&&c.memoizedState!==null,k=Oo,ie=Mt;if(Oo=k||y,Mt=ie||D,yn(t,e),Mt=ie,Oo=k,D&&!y&&!k&&!ie&&(e.mode&ze)!==Re&&0<=Ee&&0<=we&&.05<we-Ee&&Xu(e,Ee,we),gn(e),d&8192)e:for(t=e.stateNode,t._visibility=y?t._visibility&~Vl:t._visibility|Vl,!y||c===null||D||Oo||Mt||(Ii(e),(e.mode&ze)!==Re&&0<=Ee&&0<=we&&.05<we-Ee&&Aa(e,Ee,we,"Disconnect")),c=null,t=e;;){if(t.tag===5||t.tag===26){if(c===null){D=c=t;try{b=D.stateNode,y?ue(D,uD,b):ue(D,dD,D.stateNode,D.memoizedProps)}catch(ce){Qe(D,D.return,ce)}}}else if(t.tag===6){if(c===null){D=t;try{z=D.stateNode,y?ue(D,cD,z):ue(D,hD,z,D.memoizedProps)}catch(ce){Qe(D,D.return,ce)}}}else if(t.tag===18){if(c===null){D=t;try{N=D.stateNode,y?ue(D,lD,N):ue(D,fD,D.stateNode)}catch(ce){Qe(D,D.return,ce)}}}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,Oc(e,c))));break;case 19:yn(t,e),gn(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,Oc(e,d)));break;case 30:break;case 21:break;default:yn(t,e),gn(e)}(e.mode&ze)!==Re&&0<=Ee&&0<=we&&((pt||.05<ft)&&Ca(e,Ee,we,ft,ut),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<we-Ee&&(gb(e.return.alternate,e.return)||Aa(e,Ee,we,"Mount"))),An(n),Oa(a),ut=s,pt=r}function gn(e){var t=e.flags;if(t&2){try{ue(e,zC,e)}catch(n){Qe(e,e.return,n)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wb(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;wb(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function La(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)vb(e,t.alternate,t),t=t.sibling}function Rb(e){var t=Rn(),n=Ma(),a=_a(),s=ja();switch(e.tag){case 0:case 11:case 14:case 15:rp(e,e.return,Nn),Ii(e);break;case 1:Ua(e,e.return);var r=e.stateNode;typeof r.componentWillUnmount=="function"&&db(e,e.return,r),Ii(e);break;case 27:ue(e,bl,e.stateNode);case 26:case 5:Ua(e,e.return),Ii(e);break;case 22:e.memoizedState===null&&Ii(e);break;case 30:Ii(e);break;default:Ii(e)}(e.mode&ze)!==Re&&0<=Ee&&0<=we&&(pt||.05<ft)&&Ca(e,Ee,we,ft,ut),An(t),Oa(n),ut=a,pt=s}function Ii(e){for(e=e.child;e!==null;)Rb(e),e=e.sibling}function Ab(e,t,n,a){var s=Rn(),r=Ma(),c=_a(),d=ja(),y=n.flags;switch(n.tag){case 0:case 11:case 15:Ba(e,n,a),ub(n,Nn);break;case 1:if(Ba(e,n,a),t=n.stateNode,typeof t.componentDidMount=="function"&&ue(n,zm,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{ue(n,gC,t,e)}catch(b){Qe(n,n.return,b)}}a&&y&64&&fb(n),cl(n,n.return);break;case 27:yb(n);case 26:case 5:Ba(e,n,a),a&&t===null&&y&4&&pb(n),cl(n,n.return);break;case 12:if(a&&y&4){y=ho(),Ba(e,n,a),a=n.stateNode,a.effectDuration+=Kr(y);try{ue(n,hb,n,t,ui,a.effectDuration)}catch(b){Qe(n,n.return,b)}}else Ba(e,n,a);break;case 31:Ba(e,n,a),a&&y&4&&Tb(e,n);break;case 13:Ba(e,n,a),a&&y&4&&Eb(e,n);break;case 22:n.memoizedState===null&&Ba(e,n,a),cl(n,n.return);break;case 30:break;default:Ba(e,n,a)}(n.mode&ze)!==Re&&0<=Ee&&0<=we&&(pt||.05<ft)&&Ca(n,Ee,we,ft,ut),An(s),Oa(r),ut=c,pt=d}function Ba(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Ab(e,t.alternate,t,n),t=t.sibling}function dp(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&&Pi(e),n!=null&&Fr(n))}function hp(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Pi(t),e!=null&&Fr(e))}function ua(e,t,n,a,s){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var r=t.sibling;Cb(e,t,n,a,r!==null?r.actualStartTime:s),t=r}}function Cb(e,t,n,a,s){var r=Rn(),c=Ma(),d=_a(),y=ja(),b=ii,z=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&ze)!==Re&&0<t.actualStartTime&&(t.flags&1)!==0&&Qu(t,t.actualStartTime,s,Vt,n),ua(e,t,n,a,s),z&2048&&cb(t,un|Fn);break;case 1:(t.mode&ze)!==Re&&0<t.actualStartTime&&((t.flags&128)!==0?Id(t,t.actualStartTime,s,[]):(t.flags&1)!==0&&Qu(t,t.actualStartTime,s,Vt,n)),ua(e,t,n,a,s);break;case 3:var N=ho(),D=Vt;Vt=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,ua(e,t,n,a,s),Vt=D,z&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),a=t.memoizedState.cache,a!==n&&(Pi(a),n!=null&&Fr(n))),e.passiveEffectDuration+=nc(N);break;case 12:if(z&2048){z=ho(),ua(e,t,n,a,s),e=t.stateNode,e.passiveEffectDuration+=Kr(z);try{ue(t,jC,t,t.alternate,ui,e.passiveEffectDuration)}catch(k){Qe(t,t.return,k)}}else ua(e,t,n,a,s);break;case 31:z=Vt,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?(Vt=!1,N=N.hydrationErrors,N!==null&&Id(t,t.actualStartTime,s,N)):Vt=!0):Vt=!1,ua(e,t,n,a,s),Vt=z;break;case 13:z=Vt,N=t.alternate!==null?t.alternate.memoizedState:null,D=t.memoizedState,N===null||N.dehydrated===null||D!==null&&D.dehydrated!==null?Vt=!1:(D=t.deletions,D!==null&&0<D.length&&D[0].tag===18?(Vt=!1,N=N.hydrationErrors,N!==null&&Id(t,t.actualStartTime,s,N)):Vt=!0),ua(e,t,n,a,s),Vt=z;break;case 23:break;case 22:D=t.stateNode,N=t.alternate,t.memoizedState!==null?D._visibility&So?ua(e,t,n,a,s):fl(e,t,n,a,s):D._visibility&So?ua(e,t,n,a,s):(D._visibility|=So,ks(e,t,n,a,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),s),(t.mode&ze)===Re||Vt||(e=t.actualStartTime,0<=e&&.05<s-e&&Xu(t,e,s),0<=Ee&&0<=we&&.05<we-Ee&&Xu(t,Ee,we))),z&2048&&dp(N,t);break;case 24:ua(e,t,n,a,s),z&2048&&hp(t.alternate,t);break;default:ua(e,t,n,a,s)}(t.mode&ze)!==Re&&((e=!Vt&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(n=t.actualStartTime,0<=n&&.05<s-n&&Aa(t,n,s,"Mount")),0<=Ee&&0<=we&&((pt||.05<ft)&&Ca(t,Ee,we,ft,ut),e&&.05<we-Ee&&Aa(t,Ee,we,"Mount"))),An(r),Oa(c),ut=d,pt=y,ii=b}function ks(e,t,n,a,s,r){for(s=s&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var c=t.sibling;Db(e,t,n,a,s,c!==null?c.actualStartTime:r),t=c}}function Db(e,t,n,a,s,r){var c=Rn(),d=Ma(),y=_a(),b=ja(),z=ii;s&&(t.mode&ze)!==Re&&0<t.actualStartTime&&(t.flags&1)!==0&&Qu(t,t.actualStartTime,r,Vt,n);var N=t.flags;switch(t.tag){case 0:case 11:case 15:ks(e,t,n,a,s,r),cb(t,un);break;case 23:break;case 22:var D=t.stateNode;t.memoizedState!==null?D._visibility&So?ks(e,t,n,a,s,r):fl(e,t,n,a,r):(D._visibility|=So,ks(e,t,n,a,s,r)),s&&N&2048&&dp(t.alternate,t);break;case 24:ks(e,t,n,a,s,r),s&&N&2048&&hp(t.alternate,t);break;default:ks(e,t,n,a,s,r)}(t.mode&ze)!==Re&&0<=Ee&&0<=we&&(pt||.05<ft)&&Ca(t,Ee,we,ft,ut),An(c),Oa(d),ut=y,pt=b,ii=z}function fl(e,t,n,a,s){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var r=t.child;r!==null;){t=r.sibling;var c=e,d=n,y=a,b=t!==null?t.actualStartTime:s,z=ii;(r.mode&ze)!==Re&&0<r.actualStartTime&&(r.flags&1)!==0&&Qu(r,r.actualStartTime,b,Vt,d);var N=r.flags;switch(r.tag){case 22:fl(c,r,d,y,b),N&2048&&dp(r.alternate,r);break;case 24:fl(c,r,d,y,b),N&2048&&hp(r.alternate,r);break;default:fl(c,r,d,y,b)}ii=z,r=t}}function Hs(e,t,n){if(e.subtreeFlags&tu)for(e=e.child;e!==null;)Mb(e,t,n),e=e.sibling}function Mb(e,t,n){switch(e.tag){case 26:Hs(e,t,n),e.flags&tu&&e.memoizedState!==null&&xD(n,pa,e.memoizedState,e.memoizedProps);break;case 5:Hs(e,t,n);break;case 3:case 4:var a=pa;pa=Bc(e.stateNode.containerInfo),Hs(e,t,n),pa=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=tu,tu=16777216,Hs(e,t,n),tu=a):Hs(e,t,n));break;default:Hs(e,t,n)}}function Ob(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 dl(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],s=Rn();Yt=a,zb(a,e),(a.mode&ze)!==Re&&0<=Ee&&0<=we&&.05<we-Ee&&Aa(a,Ee,we,"Unmount"),An(s)}Ob(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_b(e),e=e.sibling}function _b(e){var t=Rn(),n=Ma(),a=_a(),s=ja();switch(e.tag){case 0:case 11:case 15:dl(e),e.flags&2048&&lp(e,e.return,un|Fn);break;case 3:var r=ho();dl(e),e.stateNode.passiveEffectDuration+=nc(r);break;case 12:r=ho(),dl(e),e.stateNode.passiveEffectDuration+=Kr(r);break;case 22:r=e.stateNode,e.memoizedState!==null&&r._visibility&So&&(e.return===null||e.return.tag!==13)?(r._visibility&=~So,_c(e),(e.mode&ze)!==Re&&0<=Ee&&0<=we&&.05<we-Ee&&Aa(e,Ee,we,"Disconnect")):dl(e);break;default:dl(e)}(e.mode&ze)!==Re&&0<=Ee&&0<=we&&(pt||.05<ft)&&Ca(e,Ee,we,ft,ut),An(t),Oa(n),pt=s,ut=a}function _c(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],s=Rn();Yt=a,zb(a,e),(a.mode&ze)!==Re&&0<=Ee&&0<=we&&.05<we-Ee&&Aa(a,Ee,we,"Unmount"),An(s)}Ob(e)}for(e=e.child;e!==null;)jb(e),e=e.sibling}function jb(e){var t=Rn(),n=Ma(),a=_a(),s=ja();switch(e.tag){case 0:case 11:case 15:lp(e,e.return,un),_c(e);break;case 22:var r=e.stateNode;r._visibility&So&&(r._visibility&=~So,_c(e));break;default:_c(e)}(e.mode&ze)!==Re&&0<=Ee&&0<=we&&(pt||.05<ft)&&Ca(e,Ee,we,ft,ut),An(t),Oa(n),pt=s,ut=a}function zb(e,t){for(;Yt!==null;){var n=Yt,a=n,s=t,r=Rn(),c=Ma(),d=_a(),y=ja();switch(a.tag){case 0:case 11:case 15:lp(a,s,un);break;case 23:case 22:a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool,s!=null&&Pi(s));break;case 24:Fr(a.memoizedState.cache)}if((a.mode&ze)!==Re&&0<=Ee&&0<=we&&(pt||.05<ft)&&Ca(a,Ee,we,ft,ut),An(r),Oa(c),pt=y,ut=d,a=n.child,a!==null)a.return=n,Yt=a;else e:for(n=e;Yt!==null;){if(a=Yt,r=a.sibling,c=a.return,bb(a),a===n){Yt=null;break e}if(r!==null){r.return=c,Yt=r;break e}Yt=c}}}function UC(){iO.forEach(function(e){return e()})}function Nb(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||q.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Dn(e){if(($e&Ut)!==qt&&Ve!==0)return Ve&-Ve;var t=q.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Tp()):ia()}function Vb(){if(Sn===0)if((Ve&536870912)===0||ke){var e=Jc;Jc<<=1,(Jc&3932160)===0&&(Jc=262144),Sn=e}else Sn=536870912;return e=zn.current,e!==null&&(e.flags|=32),Sn}function ht(e,t,n){if(Rr&&console.error("useInsertionEffect must not schedule updates."),ay&&(Uf=!0),(e===et&&(Je===fs||Je===ds)||e.cancelPendingCommit!==null)&&(qs(e,0),Fo(e,Ve,Sn,!1)),oa(e,n),($e&Ut)!==qt&&e===et){if(Ga)switch(t.tag){case 0:case 11:case 15:e=Ue&&Y(Ue)||"Unknown",lE.has(e)||(lE.add(e),t=Y(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:rE||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),rE=!0)}}else $a&&io(e,t,n),XC(t),e===et&&(($e&Ut)===qt&&(gi|=n),dt===pi&&Fo(e,Ve,Sn,!1)),ka(e)}function Ub(e,t,n){if(($e&(Ut|Vn))!==qt)throw Error("Should not already be working.");if(Ve!==0&&Ue!==null){var a=Ue,s=kt();switch(eT){case ou:case fs:var r=Yl;it&&((a=a._debugTask)?a.run(console.timeStamp.bind(console,"Suspended",r,s,Gn,void 0,"primary-light")):console.timeStamp("Suspended",r,s,Gn,void 0,"primary-light"));break;case ds:r=Yl,it&&((a=a._debugTask)?a.run(console.timeStamp.bind(console,"Action",r,s,Gn,void 0,"primary-light")):console.timeStamp("Action",r,s,Gn,void 0,"primary-light"));break;default:it&&(a=s-Yl,3>a||console.timeStamp("Blocked",Yl,s,Gn,void 0,5>a?"primary-light":10>a?"primary":100>a?"primary-dark":"error"))}}r=(n=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ta(e,t))?BC(e,t):mp(e,t,!0);var c=n;do{if(r===_o){xr&&!n&&Fo(e,t,0,!1),t=Je,Yl=At(),eT=t;break}else{if(a=kt(),s=e.current.alternate,c&&!LC(s)){ra(t),s=Ht,r=a,!it||r<=s||(gt?gt.run(console.timeStamp.bind(console,"Teared Render",s,r,Ge,Ye,"error")):console.timeStamp("Teared Render",s,r,Ge,Ye,"error")),Ji(t,a),r=mp(e,t,!1),c=!1;continue}if(r===cs){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){ra(t),Jd(Ht,a,t,gt),Ji(t,a),t=d;e:{a=e,r=c,c=su;var y=a.current.memoizedState.isDehydrated;if(y&&(qs(a,d).flags|=256),d=mp(a,d,!1),d!==cs){if(Im&&!y){a.errorRecoveryDisabledLanes|=r,gi|=r,r=pi;break e}a=cn,cn=c,a!==null&&(cn===null?cn=a:cn.push.apply(cn,a))}r=d}if(c=!1,r!==cs)continue;a=kt()}}if(r===au){ra(t),Jd(Ht,a,t,gt),Ji(t,a),qs(e,0),Fo(e,t,0,!0);break}e:{switch(n=e,r){case _o:case au:throw Error("Root did not complete. This is a bug in React.");case pi:if((t&4194048)!==t)break;case Df:ra(t),Uv(Ht,a,t,gt),Ji(t,a),s=t,(s&127)!==0?hf=a:(s&4194048)!==0&&(pf=a),Fo(n,t,Sn,!mi);break e;case cs:cn=null;break;case Cf:case ZT:break;default:throw Error("Unknown root exit status.")}if(q.actQueue!==null)yp(n,s,t,cn,ru,_f,Sn,gi,hs,r,null,null,Ht,a);else{if((t&62914560)===t&&(c=jf+FT-kt(),10<c)){if(Fo(n,t,Sn,!mi),ao(n,0,!0)!==0)break e;ma=t,n.timeoutHandle=yE(Lb.bind(null,n,s,cn,ru,_f,t,Sn,gi,hs,mi,r,"Throttled",Ht,a),c);break e}Lb(n,s,cn,ru,_f,t,Sn,gi,hs,mi,r,null,Ht,a)}}}break}while(!0);ka(e)}function Lb(e,t,n,a,s,r,c,d,y,b,z,N,D,k){e.timeoutHandle=vs;var ie=t.subtreeFlags,ce=null;if((ie&8192||(ie&16785408)===16785408)&&(ce={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:lo},Mb(t,r,ce),ie=(r&62914560)===r?jf-kt():(r&4194048)===r?JT-kt():0,ie=wD(ce,ie),ie!==null)){ma=r,e.cancelPendingCommit=ie(yp.bind(null,e,t,r,n,a,s,c,d,y,z,ce,ce.waitingForViewTransition?"Waiting for the previous Animation":0<ce.count?0<ce.imgCount?"Suspended on CSS and Images":"Suspended on CSS":ce.imgCount===1?"Suspended on an Image":0<ce.imgCount?"Suspended on Images":null,D,k)),Fo(e,r,c,!b);return}yp(e,t,r,n,a,s,c,d,y,z,ce,N,D,k)}function LC(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 s=n[a],r=s.getSnapshot;s=s.value;try{if(!sn(r(),s))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 Fo(e,t,n,a){t&=~Jm,t&=~gi,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var s=t;0<s;){var r=31-nn(s),c=1<<r;a[r]=-1,s&=~c}n!==0&&ko(e,n,t)}function Ys(){return($e&(Ut|Vn))===qt?(ml(0),!1):!0}function pp(){if(Ue!==null){if(Je===bn)var e=Ue.return;else e=Ue,Wu(),Rh(e),pr=null,Jl=0,e=Ue;for(;e!==null;)lb(e.alternate,e),e=e.return;Ue=null}}function Ji(e,t){(e&127)!==0&&(ts=t),(e&4194048)!==0&&(Ro=t),(e&62914560)!==0&&(K1=t),(e&2080374784)!==0&&(W1=t)}function qs(e,t){it&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",Ye,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",Ye,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",Ye,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",Ye,"primary-light"));var n=Ht;if(Ht=At(),Ve!==0&&0<n){if(ra(Ve),dt===Cf||dt===pi)Uv(n,Ht,t,gt);else{var a=Ht,s=gt;if(it&&!(a<=n)){var r=(t&738197653)===t?"tertiary-dark":"primary-dark",c=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";s?s.run(console.timeStamp.bind(console,c,n,a,Ge,Ye,r)):console.timeStamp(c,n,a,Ge,Ye,r)}}Ji(Ve,Ht)}if(n=gt,gt=null,(t&127)!==0){gt=Bl,s=0<=Ia&&Ia<ts?ts:Ia,a=0<=ns&&ns<ts?ts:ns,r=0<=a?a:0<=s?s:Ht,0<=hf?(ra(2),Lv(hf,r,t,n)):mf&127,n=s;var d=a,y=kl,b=0<fr,z=ci===Ll,N=ci===df;if(s=Ht,a=Bl,r=Dm,c=Mm,it){if(Ge="Blocking",0<n?n>s&&(n=s):n=s,0<d?d>n&&(d=n):d=n,y!==null&&n>d){var D=b?"secondary-light":"warning";a?a.run(console.timeStamp.bind(console,b?"Consecutive":"Event: "+y,d,n,Ge,Ye,D)):console.timeStamp(b?"Consecutive":"Event: "+y,d,n,Ge,Ye,D)}s>n&&(d=z?"error":(t&738197653)===t?"tertiary-light":"primary-light",z=N?"Promise Resolved":z?"Cascading Update":5<s-n?"Update Blocked":"Update",N=[],c!=null&&N.push(["Component name",c]),r!=null&&N.push(["Method name",r]),n={start:n,end:s,detail:{devtools:{properties:N,track:Ge,trackGroup:Ye,color:d}}},a?a.run(performance.measure.bind(performance,z,n)):performance.measure(z,n))}Ia=-1.1,ci=0,Mm=Dm=null,hf=-1.1,fr=ns,ns=-1.1,ts=At()}if((t&4194048)!==0&&(gt=Hl,s=0<=Ao&&Ao<Ro?Ro:Ao,n=0<=In&&In<Ro?Ro:In,a=0<=fi&&fi<Ro?Ro:fi,r=0<=a?a:0<=n?n:Ht,0<=pf?(ra(256),Lv(pf,r,t,gt)):mf&4194048,N=a,d=as,y=0<di,b=Om===df,r=Ht,a=Hl,c=J1,z=F1,it&&(Ge="Transition",0<n?n>r&&(n=r):n=r,0<s?s>n&&(s=n):s=n,0<N?N>s&&(N=s):N=s,s>N&&d!==null&&(D=y?"secondary-light":"warning",a?a.run(console.timeStamp.bind(console,y?"Consecutive":"Event: "+d,N,s,Ge,Ye,D)):console.timeStamp(y?"Consecutive":"Event: "+d,N,s,Ge,Ye,D)),n>s&&(a?a.run(console.timeStamp.bind(console,"Action",s,n,Ge,Ye,"primary-dark")):console.timeStamp("Action",s,n,Ge,Ye,"primary-dark")),r>n&&(s=b?"Promise Resolved":5<r-n?"Update Blocked":"Update",N=[],z!=null&&N.push(["Component name",z]),c!=null&&N.push(["Method name",c]),n={start:n,end:r,detail:{devtools:{properties:N,track:Ge,trackGroup:Ye,color:"primary-light"}}},a?a.run(performance.measure.bind(performance,s,n)):performance.measure(s,n))),In=Ao=-1.1,Om=0,pf=-1.1,di=fi,fi=-1.1,Ro=At()),(t&62914560)!==0&&(mf&62914560)!==0&&(ra(4194304),Fd(K1,Ht)),(t&2080374784)!==0&&(mf&2080374784)!==0&&(ra(268435456),Fd(W1,Ht)),n=e.timeoutHandle,n!==vs&&(e.timeoutHandle=vs,vO(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ma=0,pp(),et=e,Ue=n=uo(e.current,null),Ve=t,Je=bn,Un=null,mi=!1,xr=Ta(e,t),Im=!1,dt=_o,hs=Sn=Jm=gi=yi=0,cn=su=null,_f=!1,(t&8)!==0&&(t|=t&32),a=e.entangledLanes,a!==0)for(e=e.entanglements,a&=t;0<a;)s=31-nn(a),r=1<<s,t|=e[s],a&=~r;return Fa=t,Zu(),e=P1(),1e3<e-G1&&(q.recentlyCreatedOwnerStacks=0,G1=e),da.discardPendingWarnings(),n}function Bb(e,t){Ae=null,q.H=eu,q.getCurrentStack=null,Ga=!1,_n=null,t===hr||t===bf?(t=i0(),Je=ou):t===Nm?(t=i0(),Je=IT):Je=t===Pm?Zm:t!==null&&typeof t=="object"&&typeof t.then=="function"?iu:Mf,Un=t;var n=Ue;n===null?(dt=au,wc(e,wn(t,e.current))):n.mode&ze&&dh(n)}function kb(){var e=zn.current;return e===null?!0:(Ve&4194048)===Ve?Jn===null:(Ve&62914560)===Ve||(Ve&536870912)!==0?e===Jn:!1}function Hb(){var e=q.H;return q.H=eu,e===null?eu:e}function Yb(){var e=q.A;return q.A=oO,e}function jc(e){gt===null&&(gt=e._debugTask==null?null:e._debugTask)}function zc(){dt=pi,mi||(Ve&4194048)!==Ve&&zn.current!==null||(xr=!0),(yi&134217727)===0&&(gi&134217727)===0||et===null||Fo(et,Ve,Sn,!1)}function mp(e,t,n){var a=$e;$e|=Ut;var s=Hb(),r=Yb();if(et!==e||Ve!==t){if($a){var c=e.memoizedUpdaters;0<c.size&&(pl(e,Ve),c.clear()),so(e,t)}ru=null,qs(e,t)}t=!1,c=dt;e:do try{if(Je!==bn&&Ue!==null){var d=Ue,y=Un;switch(Je){case Zm:pp(),c=Df;break e;case ou:case fs:case ds:case iu:zn.current===null&&(t=!0);var b=Je;if(Je=bn,Un=null,Gs(e,d,y,b),n&&xr){c=_o;break e}break;default:b=Je,Je=bn,Un=null,Gs(e,d,y,b)}}qb(),c=dt;break}catch(z){Bb(e,z)}while(!0);return t&&e.shellSuspendCounter++,Wu(),$e=a,q.H=s,q.A=r,Ue===null&&(et=null,Ve=0,Zu()),c}function qb(){for(;Ue!==null;)Gb(Ue)}function BC(e,t){var n=$e;$e|=Ut;var a=Hb(),s=Yb();if(et!==e||Ve!==t){if($a){var r=e.memoizedUpdaters;0<r.size&&(pl(e,Ve),r.clear()),so(e,t)}ru=null,zf=kt()+KT,qs(e,t)}else xr=Ta(e,t);e:do try{if(Je!==bn&&Ue!==null)t:switch(t=Ue,r=Un,Je){case Mf:Je=bn,Un=null,Gs(e,t,r,Mf);break;case fs:case ds:if(a0(r)){Je=bn,Un=null,Pb(t);break}t=function(){Je!==fs&&Je!==ds||et!==e||(Je=Of),ka(e)},r.then(t,t);break e;case ou:Je=Of;break e;case IT:Je=Qm;break e;case Of:a0(r)?(Je=bn,Un=null,Pb(t)):(Je=bn,Un=null,Gs(e,t,r,Of));break;case Qm:var c=null;switch(Ue.tag){case 26:c=Ue.memoizedState;case 5:case 27:var d=Ue;if(c?US(c):d.stateNode.complete){Je=bn,Un=null;var y=d.sibling;if(y!==null)Ue=y;else{var b=d.return;b!==null?(Ue=b,Nc(b)):Ue=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Je=bn,Un=null,Gs(e,t,r,Qm);break;case iu:Je=bn,Un=null,Gs(e,t,r,iu);break;case Zm:pp(),dt=Df;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}q.actQueue!==null?qb():kC();break}catch(z){Bb(e,z)}while(!0);return Wu(),q.H=a,q.A=s,$e=n,Ue!==null?_o:(et=null,Ve=0,Zu(),dt)}function kC(){for(;Ue!==null&&!BD();)Gb(Ue)}function Gb(e){var t=e.alternate;(e.mode&ze)!==Re?(fh(e),t=ue(e,ip,t,e,Fa),dh(e)):t=ue(e,ip,t,e,Fa),e.memoizedProps=e.pendingProps,t===null?Nc(e):Ue=t}function Pb(e){var t=ue(e,HC,e);e.memoizedProps=e.pendingProps,t===null?Nc(e):Ue=t}function HC(e){var t=e.alternate,n=(e.mode&ze)!==Re;switch(n&&fh(e),e.tag){case 15:case 0:t=tb(t,e,e.pendingProps,e.type,void 0,Ve);break;case 11:t=tb(t,e,e.pendingProps,e.type.render,e.ref,Ve);break;case 5:Rh(e);default:lb(t,e),e=Ue=Gv(e,Fa),t=ip(t,e,Fa)}return n&&dh(e),t}function Gs(e,t,n,a){Wu(),Rh(t),pr=null,Jl=0;var s=t.return;try{if(wC(e,s,t,n,Ve)){dt=au,wc(e,wn(n,e.current)),Ue=null;return}}catch(r){if(s!==null)throw Ue=s,r;dt=au,wc(e,wn(n,e.current)),Ue=null;return}t.flags&32768?(ke||a===Mf?e=!0:xr||(Ve&536870912)!==0?e=!1:(mi=e=!0,(a===fs||a===ds||a===ou||a===iu)&&(a=zn.current,a!==null&&a.tag===13&&(a.flags|=16384))),$b(t,e)):Nc(t)}function Nc(e){var t=e;do{if((t.flags&32768)!==0){$b(t,mi);return}var n=t.alternate;if(e=t.return,fh(t),n=ue(t,CC,n,t,Fa),(t.mode&ze)!==Re&&Kv(t),n!==null){Ue=n;return}if(t=t.sibling,t!==null){Ue=t;return}Ue=t=e}while(t!==null);dt===_o&&(dt=ZT)}function $b(e,t){do{var n=DC(e.alternate,e);if(n!==null){n.flags&=32767,Ue=n;return}if((e.mode&ze)!==Re){Kv(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)){Ue=e;return}Ue=e=n}while(e!==null);dt=Df,Ue=null}function yp(e,t,n,a,s,r,c,d,y,b,z,N,D,k){e.cancelPendingCommit=null;do hl();while(_t!==bi);if(da.flushLegacyContextWarning(),da.flushPendingUnsafeLifecycleWarnings(),($e&(Ut|Vn))!==qt)throw Error("Should not already be working.");if(ra(n),b===cs?Jd(D,k,n,gt):a!==null?fC(D,k,n,a,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,gt):cC(D,k,n,gt),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(r=t.lanes|t.childLanes,r|=xm,Vi(e,n,r,c,d,y),e===et&&(Ue=et=null,Ve=0),wr=t,Si=e,ma=n,Wm=r,ty=s,oE=a,ey=k,iE=N,ya=Nf,sE=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,$C(Is,function(){return hu=window.event,ya===Nf&&(ya=Km),Jb(),null})):(e.callbackNode=null,e.callbackPriority=0),wo=null,ui=At(),N!==null&&dC(k,ui,N,gt),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=q.T,q.T=null,s=Ze.p,Ze.p=qn,c=$e,$e|=Vn;try{NC(e,t,n)}finally{$e=c,Ze.p=s,q.T=a}}_t=eE,Xb(),Qb(),Zb()}}function Xb(){if(_t===eE){_t=bi;var e=Si,t=wr,n=ma,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=q.T,q.T=null;var s=Ze.p;Ze.p=qn;var r=$e;$e|=Vn;try{Tr=n,Er=e,ac(),xb(t,e),Er=Tr=null,n=dy;var c=zv(e.containerInfo),d=n.focusedElem,y=n.selectionRange;if(c!==d&&d&&d.ownerDocument&&jv(d.ownerDocument.documentElement,d)){if(y!==null&&Qd(d)){var b=y.start,z=y.end;if(z===void 0&&(z=b),"selectionStart"in d)d.selectionStart=b,d.selectionEnd=Math.min(z,d.value.length);else{var N=d.ownerDocument||document,D=N&&N.defaultView||window;if(D.getSelection){var k=D.getSelection(),ie=d.textContent.length,ce=Math.min(y.start,ie),nt=y.end===void 0?ce:Math.min(y.end,ie);!k.extend&&ce>nt&&(c=nt,nt=ce,ce=c);var qe=_v(d,ce),R=_v(d,nt);if(qe&&R&&(k.rangeCount!==1||k.anchorNode!==qe.node||k.anchorOffset!==qe.offset||k.focusNode!==R.node||k.focusOffset!==R.offset)){var M=N.createRange();M.setStart(qe.node,qe.offset),k.removeAllRanges(),ce>nt?(k.addRange(M),k.extend(R.node,R.offset)):(M.setEnd(R.node,R.offset),k.addRange(M))}}}}for(N=[],k=d;k=k.parentNode;)k.nodeType===1&&N.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<N.length;d++){var _=N[d];_.element.scrollLeft=_.left,_.element.scrollTop=_.top}}Jf=!!fy,dy=fy=null}finally{$e=r,Ze.p=s,q.T=a}}e.current=t,_t=tE}}function Qb(){if(_t===tE){_t=bi;var e=sE;if(e!==null){ui=At();var t=xo,n=ui;!it||n<=t||console.timeStamp(e,t,n,Ge,Ye,"secondary-light")}e=Si,t=wr,n=ma;var a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=q.T,q.T=null;var s=Ze.p;Ze.p=qn;var r=$e;$e|=Vn;try{Tr=n,Er=e,ac(),vb(e,t.alternate,t),Er=Tr=null}finally{$e=r,Ze.p=s,q.T=a}}e=ey,t=iE,xo=At(),e=t===null?e:ui,t=xo,n=ya===Fm,a=gt,wo!==null?Bv(e,t,wo,!1,a):!it||t<=e||(a?a.run(console.timeStamp.bind(console,n?"Commit Interrupted View Transition":"Commit",e,t,Ge,Ye,n?"error":"secondary-dark")):console.timeStamp(n?"Commit Interrupted View Transition":"Commit",e,t,Ge,Ye,n?"error":"secondary-dark")),_t=nE}}function Zb(){if(_t===aE||_t===nE){if(_t===aE){var e=xo;xo=At();var t=xo,n=ya===Fm;!it||t<=e||console.timeStamp(n?"Interrupted View Transition":"Starting Animation",e,t,Ge,Ye,n?" error":"secondary-light"),ya!==Fm&&(ya=WT)}_t=bi,kD(),e=Si;var a=wr;t=ma,n=oE;var s=a.actualDuration!==0||(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0;s?_t=Vf:(_t=bi,wr=Si=null,Ib(e,e.pendingLanes),ps=0,uu=null);var r=e.pendingLanes;if(r===0&&(vi=null),s||eS(e),r=Yo(t),a=a.stateNode,Ft&&typeof Ft.onCommitFiberRoot=="function")try{var c=(a.current.flags&128)===128;switch(r){case qn:var d=tm;break;case Xa:d=nm;break;case vo:d=Is;break;case Kc:d=am;break;default:d=Is}Ft.onCommitFiberRoot(Js,a,d,c)}catch(N){Pa||(Pa=!0,console.error("React instrumentation encountered an error: %o",N))}if($a&&e.memoizedUpdaters.clear(),UC(),n!==null){c=q.T,d=Ze.p,Ze.p=qn,q.T=null;try{var y=e.onRecoverableError;for(a=0;a<n.length;a++){var b=n[a],z=YC(b.stack);ue(b.source,y,b.value,z)}}finally{q.T=c,Ze.p=d}}(ma&3)!==0&&hl(),ka(e),r=e.pendingLanes,(t&261930)!==0&&(r&42)!==0?(gf=!0,e===ny?lu++:(lu=0,ny=e)):lu=0,s||Ji(t,xo),ml(0)}}function YC(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 Ib(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Fr(t)))}function hl(){return Xb(),Qb(),Zb(),Jb()}function Jb(){if(_t!==Vf)return!1;var e=Si,t=Wm;Wm=0;var n=Yo(ma),a=vo>n?vo:n;n=q.T;var s=Ze.p;try{Ze.p=a,q.T=null;var r=ty;ty=null,a=Si;var c=ma;if(_t=bi,wr=Si=null,ma=0,($e&(Ut|Vn))!==qt)throw Error("Cannot flush passive effects while already rendering.");ra(c),ay=!0,Uf=!1;var d=0;if(wo=null,d=kt(),ya===WT)Fd(xo,d,FM);else{var y=xo,b=d,z=ya===Km;!it||b<=y||(gt?gt.run(console.timeStamp.bind(console,z?"Waiting for Paint":"Waiting",y,b,Ge,Ye,"secondary-light")):console.timeStamp(z?"Waiting for Paint":"Waiting",y,b,Ge,Ye,"secondary-light"))}y=$e,$e|=Vn;var N=a.current;ac(),_b(N);var D=a.current;N=ey,ac(),Cb(a,D,c,r,N),eS(a),$e=y;var k=kt();if(D=d,N=gt,wo!==null?Bv(D,k,wo,!0,N):!it||k<=D||(N?N.run(console.timeStamp.bind(console,"Remaining Effects",D,k,Ge,Ye,"secondary-dark")):console.timeStamp("Remaining Effects",D,k,Ge,Ye,"secondary-dark")),Ji(c,k),ml(0,!1),Uf?a===uu?ps++:(ps=0,uu=a):ps=0,Uf=ay=!1,Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(Js,a)}catch(ce){Pa||(Pa=!0,console.error("React instrumentation encountered an error: %o",ce))}var ie=a.current.stateNode;return ie.effectDuration=0,ie.passiveEffectDuration=0,!0}finally{Ze.p=s,q.T=n,Ib(e,t)}}function Fb(e,t,n){t=wn(n,t),Wv(t),t=Zh(e.stateNode,t,2),e=Qo(e,t,2),e!==null&&(oa(e,2),ka(e))}function Qe(e,t,n){if(Rr=!1,e.tag===3)Fb(e,e,n);else{for(;t!==null;){if(t.tag===3){Fb(t,e,n);return}if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(vi===null||!vi.has(a))){e=wn(n,e),Wv(e),n=Ih(2),a=Qo(t,n,2),a!==null&&(Jh(n,a,t,e),oa(a,2),ka(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 gp(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new sO;var s=new Set;a.set(t,s)}else s=a.get(t),s===void 0&&(s=new Set,a.set(t,s));s.has(n)||(Im=!0,s.add(n),a=qC.bind(null,e,t,n),$a&&pl(e,n),t.then(a,a))}function qC(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,(n&127)!==0?0>Ia&&(ts=Ia=At(),Bl=ff("Promise Resolved"),ci=df):(n&4194048)!==0&&0>In&&(Ro=In=At(),Hl=ff("Promise Resolved"),Om=df),Nb()&&q.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`),et===e&&(Ve&n)===n&&(dt===pi||dt===Cf&&(Ve&62914560)===Ve&&kt()-jf<FT?($e&Ut)===qt&&qs(e,0):Jm|=n,hs===Ve&&(hs=0)),ka(e)}function Kb(e,t){t===0&&(t=oo()),e=Jt(e,t),e!==null&&(oa(e,t),ka(e))}function GC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Kb(e,n)}function PC(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,s=e.memoizedState;s!==null&&(n=s.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),Kb(e,n)}function vp(e,t,n){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var a=e,s=t,r=s.type===Xc;r=n||r,s.tag!==22?s.flags&67108864?r&&ue(s,Wb,a,s):vp(a,s,r):s.memoizedState===null&&(r&&s.flags&8192?ue(s,Wb,a,s):s.subtreeFlags&67108864&&ue(s,vp,a,s,r)),t=t.sibling}}function Wb(e,t){de(!0);try{Rb(t),jb(t),Ab(e,t.alternate,t,!1),Db(e,t,0,null,!1,0)}finally{de(!1)}}function eS(e){var t=!0;e.current.mode&(Kt|fa)||(t=!1),vp(e,e.current,t)}function tS(e){if(($e&Ut)===qt){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=Y(e)||"ReactComponent",Lf!==null){if(Lf.has(t))return;Lf.add(t)}else Lf=new Set([t]);ue(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 pl(e,t){$a&&e.memoizedUpdaters.forEach(function(n){io(e,n,t)})}function $C(e,t){var n=q.actQueue;return n!==null?(n.push(t),uO):em(e,t)}function XC(e){Nb()&&q.actQueue===null&&ue(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`,Y(e))})}function ka(e){e!==Ar&&e.next===null&&(Ar===null?Bf=Ar=e:Ar=Ar.next=e),kf=!0,q.actQueue!==null?iy||(iy=!0,iS()):oy||(oy=!0,iS())}function ml(e,t){if(!sy&&kf){sy=!0;do for(var n=!1,a=Bf;a!==null;){if(e!==0){var s=a.pendingLanes;if(s===0)var r=0;else{var c=a.suspendedLanes,d=a.pingedLanes;r=(1<<31-nn(42|e)+1)-1,r&=s&~(c&~d),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,oS(a,r))}else r=Ve,r=ao(a,a===et?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==vs),(r&3)===0||Ta(a,r)||(n=!0,oS(a,r));a=a.next}while(n);sy=!1}}function QC(){hu=window.event,bp()}function bp(){kf=iy=oy=!1;var e=0;Ti!==0&&eD()&&(e=Ti);for(var t=kt(),n=null,a=Bf;a!==null;){var s=a.next,r=nS(a,t);r===0?(a.next=null,n===null?Bf=s:n.next=s,s===null&&(Ar=n)):(n=a,(e!==0||(r&3)!==0)&&(kf=!0)),a=s}_t!==bi&&_t!==Vf||ml(e),Ti!==0&&(Ti=0)}function nS(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,s=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var c=31-nn(r),d=1<<c,y=s[c];y===-1?((d&n)===0||(d&a)!==0)&&(s[c]=Cs(d,t)):y<=t&&(e.expiredLanes|=d),r&=~d}if(t=et,n=Ve,n=ao(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==vs),a=e.callbackNode,n===0||e===t&&(Je===fs||Je===ds)||e.cancelPendingCommit!==null)return a!==null&&Sp(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ta(e,n)){if(t=n&-n,t!==e.callbackPriority||q.actQueue!==null&&a!==ry)Sp(a);else return t;switch(Yo(n)){case qn:case Xa:n=nm;break;case vo:n=Is;break;case Kc:n=am;break;default:n=Is}return a=aS.bind(null,e),q.actQueue!==null?(q.actQueue.push(a),n=ry):n=em(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&Sp(a),e.callbackPriority=2,e.callbackNode=null,2}function aS(e,t){if(gf=yf=!1,hu=window.event,_t!==bi&&_t!==Vf)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ya===Nf&&(ya=Km),hl()&&e.callbackNode!==n)return null;var a=Ve;return a=ao(e,e===et?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==vs),a===0?null:(Ub(e,a,t),nS(e,kt()),e.callbackNode!=null&&e.callbackNode===n?aS.bind(null,e):null)}function oS(e,t){if(hl())return null;yf=gf,gf=!1,Ub(e,t,!0)}function Sp(e){e!==ry&&e!==null&&LD(e)}function iS(){q.actQueue!==null&&q.actQueue.push(function(){return bp(),null}),bO(function(){($e&(Ut|Vn))!==qt?em(tm,QC):bp()})}function Tp(){if(Ti===0){var e=os;e===0&&(e=Ic,Ic<<=1,(Ic&261888)===0&&(Ic=256)),Ti=e}return Ti}function sS(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(Xe(e,"action"),Qr(""+e))}function rS(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 ZC(e,t,n,a,s){if(t==="submit"&&n&&n.stateNode===s){var r=sS((s[an]||null).action),c=a.submitter;c&&(t=(t=c[an]||null)?sS(t.formAction):c.getAttribute("formAction"),t!==null&&(r=t,c=null));var d=new af("action","action",null,a,s);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ti!==0){var y=c?rS(s,c):new FormData(s),b={pending:!0,data:y,method:s.method,action:r};Object.freeze(b),Yh(n,b,null,y)}}else typeof r=="function"&&(d.preventDefault(),y=c?rS(s,c):new FormData(s),b={pending:!0,data:y,method:s.method,action:r},Object.freeze(b),Yh(n,b,r,y))},currentTarget:s}]})}}function Vc(e,t,n){e.currentTarget=n;try{t(e)}catch(a){bm(a)}e.currentTarget=null}function lS(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n];e:{var s=void 0,r=a.event;if(a=a.listeners,t)for(var c=a.length-1;0<=c;c--){var d=a[c],y=d.instance,b=d.currentTarget;if(d=d.listener,y!==s&&r.isPropagationStopped())break e;y!==null?ue(y,Vc,r,d,b):Vc(r,d,b),s=y}else for(c=0;c<a.length;c++){if(d=a[c],y=d.instance,b=d.currentTarget,d=d.listener,y!==s&&r.isPropagationStopped())break e;y!==null?ue(y,Vc,r,d,b):Vc(r,d,b),s=y}}}}function He(e,t){ly.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[om];n===void 0&&(n=t[om]=new Set);var a=e+"__bubble";n.has(a)||(uS(t,e,2,!1),n.add(a))}function Ep(e,t,n){ly.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),uS(n,e,a,t)}function xp(e){if(!e[Hf]){e[Hf]=!0,i1.forEach(function(n){n!=="selectionchange"&&(ly.has(n)||Ep(n,!1,e),Ep(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hf]||(t[Hf]=!0,Ep("selectionchange",!1,t))}}function uS(e,t,n,a){switch(qS(t)){case qn:var s=DD;break;case Xa:s=MD;break;default:s=kp}n=s.bind(null,t,n,e),s=void 0,!um||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),a?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function wp(e,t,n,a,s){var r=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===s)break;if(c===4)for(c=a.return;c!==null;){var y=c.tag;if((y===3||y===4)&&c.stateNode.containerInfo===s)return;c=c.return}for(;d!==null;){if(c=J(d),c===null)return;if(y=c.tag,y===5||y===6||y===26||y===27){a=r=c;continue e}d=d.parentNode}}a=a.return}Sv(function(){var b=r,z=$d(n),N=[];e:{var D=q1.get(e);if(D!==void 0){var k=af,ie=e;switch(e){case"keypress":if(Gu(n)===0)break e;case"keydown":case"keyup":k=wM;break;case"focusin":ie="focus",k=hm;break;case"focusout":ie="blur",k=hm;break;case"beforeblur":case"afterblur":k=hm;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":k=D1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=dM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=CM;break;case B1:case k1:case H1:k=mM;break;case Y1:k=MM;break;case"scroll":case"scrollend":k=cM;break;case"wheel":k=_M;break;case"copy":case"cut":case"paste":k=gM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=O1;break;case"toggle":case"beforetoggle":k=zM}var ce=(t&4)!==0,nt=!ce&&(e==="scroll"||e==="scrollend"),qe=ce?D!==null?D+"Capture":null:D;ce=[];for(var R=b,M;R!==null;){var _=R;if(M=_.stateNode,_=_.tag,_!==5&&_!==26&&_!==27||M===null||qe===null||(_=Zr(R,qe),_!=null&&ce.push(yl(R,_,M))),nt)break;R=R.return}0<ce.length&&(D=new k(D,ie,null,n,z),N.push({event:D,listeners:ce}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",D&&n!==Cl&&(ie=n.relatedTarget||n.fromElement)&&(J(ie)||ie[ai]))break e;if((k||D)&&(D=z.window===z?z:(D=z.ownerDocument)?D.defaultView||D.parentWindow:window,k?(ie=n.relatedTarget||n.toElement,k=b,ie=ie?J(ie):null,ie!==null&&(nt=B(ie),ce=ie.tag,ie!==nt||ce!==5&&ce!==27&&ce!==6)&&(ie=null)):(k=null,ie=b),k!==ie)){if(ce=D1,_="onMouseLeave",qe="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(ce=O1,_="onPointerLeave",qe="onPointerEnter",R="pointer"),nt=k==null?D:ye(k),M=ie==null?D:ye(ie),D=new ce(_,R+"leave",k,n,z),D.target=nt,D.relatedTarget=M,_=null,J(z)===b&&(ce=new ce(qe,R+"enter",ie,n,z),ce.target=M,ce.relatedTarget=nt,_=ce),nt=_,k&&ie)t:{for(ce=IC,qe=k,R=ie,M=0,_=qe;_;_=ce(_))M++;_=0;for(var $=R;$;$=ce($))_++;for(;0<M-_;)qe=ce(qe),M--;for(;0<_-M;)R=ce(R),_--;for(;M--;){if(qe===R||R!==null&&qe===R.alternate){ce=qe;break t}qe=ce(qe),R=ce(R)}ce=null}else ce=null;k!==null&&cS(N,D,k,ce,!1),ie!==null&&nt!==null&&cS(N,nt,ie,ce,!0)}}e:{if(D=b?ye(b):window,k=D.nodeName&&D.nodeName.toLowerCase(),k==="select"||k==="input"&&D.type==="file")var re=Cv;else if(Rv(D))if(U1)re=rC;else{re=iC;var Ce=oC}else k=D.nodeName,!k||k.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?b&&Xr(b.elementType)&&(re=Cv):re=sC;if(re&&(re=re(e,b))){Av(N,re,n,z);break e}Ce&&Ce(e,D,b),e==="focusout"&&b&&D.type==="number"&&b.memoizedProps.value!=null&&kd(D,"number",D.value)}switch(Ce=b?ye(b):window,e){case"focusin":(Rv(Ce)||Ce.contentEditable==="true")&&(ar=Ce,mm=b,Nl=null);break;case"focusout":Nl=mm=ar=null;break;case"mousedown":ym=!0;break;case"contextmenu":case"mouseup":case"dragend":ym=!1,Nv(N,n,z);break;case"selectionchange":if(LM)break;case"keydown":case"keyup":Nv(N,n,z)}var Te;if(pm)e:{switch(e){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else nr?xv(e,n)&&(ge="onCompositionEnd"):e==="keydown"&&n.keyCode===_1&&(ge="onCompositionStart");ge&&(j1&&n.locale!=="ko"&&(nr||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&nr&&(Te=Tv()):(oi=z,cm="value"in oi?oi.value:oi.textContent,nr=!0)),Ce=Uc(b,ge),0<Ce.length&&(ge=new M1(ge,e,null,n,z),N.push({event:ge,listeners:Ce}),Te?ge.data=Te:(Te=wv(n),Te!==null&&(ge.data=Te)))),(Te=VM?eC(e,n):tC(e,n))&&(ge=Uc(b,"onBeforeInput"),0<ge.length&&(Ce=new bM("onBeforeInput","beforeinput",null,n,z),N.push({event:Ce,listeners:ge}),Ce.data=Te)),ZC(N,e,b,n,z)}lS(N,t)})}function yl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Uc(e,t){for(var n=t+"Capture",a=[];e!==null;){var s=e,r=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||r===null||(s=Zr(e,n),s!=null&&a.unshift(yl(e,s,r)),s=Zr(e,t),s!=null&&a.push(yl(e,s,r))),e.tag===3)return a;e=e.return}return[]}function IC(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function cS(e,t,n,a,s){for(var r=t._reactName,c=[];n!==null&&n!==a;){var d=n,y=d.alternate,b=d.stateNode;if(d=d.tag,y!==null&&y===a)break;d!==5&&d!==26&&d!==27||b===null||(y=b,s?(b=Zr(n,r),b!=null&&c.unshift(yl(n,b,y))):s||(b=Zr(n,r),b!=null&&c.push(yl(n,b,y)))),n=n.return}c.length!==0&&e.push({event:t,listeners:c})}function Rp(e,t){JA(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||A1||(A1=!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:Fi,possibleRegistrationNames:im};Xr(e)||typeof t.is=="string"||KA(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 Bt(e,t,n,a){t!==n&&(n=Ko(n),Ko(t)!==n&&(a[e]=t))}function JC(e,t,n){t.forEach(function(a){n[hS(a)]=a==="style"?Cp(e):e.getAttribute(a)})}function Ha(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 fS(e,t){return e=e.namespaceURI===ef||e.namespaceURI===Ks?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Ko(e){return Ln(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.",En(e)),aa(e)),(typeof e=="string"?e:""+e).replace(cO,`
221
- `).replace(fO,"")}function dS(e,t){return t=Ko(t),Ko(e)===t}function Ke(e,t,n,a,s,r){switch(n){case"children":typeof a=="string"?(qu(a,t,!1),t==="body"||t==="textarea"&&a===""||$r(e,a)):(typeof a=="number"||typeof a=="bigint")&&(qu(""+a,t,!1),t!=="body"&&$r(e,""+a));break;case"className":ku(e,"class",a);break;case"tabIndex":ku(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ku(e,n,a);break;case"style":gv(e,a,r);break;case"data":if(t!=="object"){ku(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}Xe(a,n),a=Qr(""+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"&&(s.encType==null&&s.method==null||Gf||(Gf=!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.")),s.target==null||qf||(qf=!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"||s.type==="submit"||s.type==="image"||Yf?t!=="button"||s.type==null||s.type==="submit"||Yf?typeof a=="function"&&(s.name==null||fE||(fE=!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.')),s.formEncType==null&&s.formMethod==null||Gf||(Gf=!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.")),s.formTarget==null||qf||(qf=!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."))):(Yf=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Yf=!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 r=="function"&&(n==="formAction"?(t!=="input"&&Ke(e,t,"name",s.name,s,null),Ke(e,t,"formEncType",s.formEncType,s,null),Ke(e,t,"formMethod",s.formMethod,s,null),Ke(e,t,"formTarget",s.formTarget,s,null)):(Ke(e,t,"encType",s.encType,s,null),Ke(e,t,"method",s.method,s,null),Ke(e,t,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}Xe(a,n),a=Qr(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(typeof a!="function"&&Ha(n,a),e.onclick=lo);break;case"onScroll":a!=null&&(typeof a!="function"&&Ha(n,a),He("scroll",e));break;case"onScrollEnd":a!=null&&(typeof a!="function"&&Ha(n,a),He("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(s.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}Xe(a,n),n=Qr(""+a),e.setAttributeNS(ms,"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"?(Xe(a,n),e.setAttribute(n,""+a)):e.removeAttribute(n);break;case"inert":a!==""||Pf[n]||(Pf[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"?(Xe(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?(Xe(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):(Xe(a,n),e.setAttribute(n,a));break;case"popover":He("beforetoggle",e),He("toggle",e),Ds(e,"popover",a);break;case"xlinkActuate":ro(e,ms,"xlink:actuate",a);break;case"xlinkArcrole":ro(e,ms,"xlink:arcrole",a);break;case"xlinkRole":ro(e,ms,"xlink:role",a);break;case"xlinkShow":ro(e,ms,"xlink:show",a);break;case"xlinkTitle":ro(e,ms,"xlink:title",a);break;case"xlinkType":ro(e,ms,"xlink:type",a);break;case"xmlBase":ro(e,uy,"xml:base",a);break;case"xmlLang":ro(e,uy,"xml:lang",a);break;case"xmlSpace":ro(e,uy,"xml:space",a);break;case"is":r!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Ds(e,"is",a);break;case"innerText":case"textContent":break;case"popoverTarget":dE||a==null||typeof a!="object"||(dE=!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=vv(n),Ds(e,n,a)):Fi.hasOwnProperty(n)&&a!=null&&typeof a!="function"&&Ha(n,a)}}function Ap(e,t,n,a,s,r){switch(n){case"style":gv(e,a,r);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(s.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"children":typeof a=="string"?$r(e,a):(typeof a=="number"||typeof a=="bigint")&&$r(e,""+a);break;case"onScroll":a!=null&&(typeof a!="function"&&Ha(n,a),He("scroll",e));break;case"onScrollEnd":a!=null&&(typeof a!="function"&&Ha(n,a),He("scrollend",e));break;case"onClick":a!=null&&(typeof a!="function"&&Ha(n,a),e.onclick=lo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Fi.hasOwnProperty(n))a!=null&&typeof a!="function"&&Ha(n,a);else e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),r=e[an]||null,r=r!=null?r[n]:null,typeof r=="function"&&e.removeEventListener(t,r,s),typeof a=="function")){typeof r!="function"&&r!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,s);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Ds(e,n,a)}}}function $t(e,t,n){switch(Rp(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":He("error",e),He("load",e);var a=!1,s=!1,r;for(r in n)if(n.hasOwnProperty(r)){var c=n[r];if(c!=null)switch(r){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Ke(e,t,r,c,n,null)}}s&&Ke(e,t,"srcSet",n.srcSet,n,null),a&&Ke(e,t,"src",n.src,n,null);return;case"input":en("input",n),He("invalid",e);var d=r=c=s=null,y=null,b=null;for(a in n)if(n.hasOwnProperty(a)){var z=n[a];if(z!=null)switch(a){case"name":s=z;break;case"type":c=z;break;case"checked":y=z;break;case"defaultChecked":b=z;break;case"value":r=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:Ke(e,t,a,z,n,null)}}tv(e,n),nv(e,r,d,y,b,c,s,!1);return;case"select":en("select",n),He("invalid",e),a=c=r=null;for(s in n)if(n.hasOwnProperty(s)&&(d=n[s],d!=null))switch(s){case"value":r=d;break;case"defaultValue":c=d;break;case"multiple":a=d;default:Ke(e,t,s,d,n,null)}iv(e,n),t=r,n=c,e.multiple=!!a,t!=null?Ms(e,!!a,t,!1):n!=null&&Ms(e,!!a,n,!0);return;case"textarea":en("textarea",n),He("invalid",e),r=s=a=null;for(c in n)if(n.hasOwnProperty(c)&&(d=n[c],d!=null))switch(c){case"value":a=d;break;case"defaultValue":s=d;break;case"children":r=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Ke(e,t,c,d,n,null)}sv(e,n),lv(e,a,s,r);return;case"option":av(e,n);for(y in n)if(n.hasOwnProperty(y)&&(a=n[y],a!=null))switch(y){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ke(e,t,y,a,n,null)}return;case"dialog":He("beforetoggle",e),He("toggle",e),He("cancel",e),He("close",e);break;case"iframe":case"object":He("load",e);break;case"video":case"audio":for(a=0;a<cu.length;a++)He(cu[a],e);break;case"image":He("error",e),He("load",e);break;case"details":He("toggle",e);break;case"embed":case"source":case"link":He("error",e),He("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(b in n)if(n.hasOwnProperty(b)&&(a=n[b],a!=null))switch(b){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Ke(e,t,b,a,n,null)}return;default:if(Xr(t)){for(z in n)n.hasOwnProperty(z)&&(a=n[z],a!==void 0&&Ap(e,t,z,a,n,void 0));return}}for(d in n)n.hasOwnProperty(d)&&(a=n[d],a!=null&&Ke(e,t,d,a,n,null))}function FC(e,t,n,a){switch(Rp(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,r=null,c=null,d=null,y=null,b=null,z=null;for(k in n){var N=n[k];if(n.hasOwnProperty(k)&&N!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":y=N;default:a.hasOwnProperty(k)||Ke(e,t,k,null,a,N)}}for(var D in a){var k=a[D];if(N=n[D],a.hasOwnProperty(D)&&(k!=null||N!=null))switch(D){case"type":r=k;break;case"name":s=k;break;case"checked":b=k;break;case"defaultChecked":z=k;break;case"value":c=k;break;case"defaultValue":d=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:k!==N&&Ke(e,t,D,k,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||cE||(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"),cE=!0),!t||a||uE||(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"),uE=!0),Bd(e,c,d,y,b,z,r,s);return;case"select":k=c=d=D=null;for(r in n)if(y=n[r],n.hasOwnProperty(r)&&y!=null)switch(r){case"value":break;case"multiple":k=y;default:a.hasOwnProperty(r)||Ke(e,t,r,null,a,y)}for(s in a)if(r=a[s],y=n[s],a.hasOwnProperty(s)&&(r!=null||y!=null))switch(s){case"value":D=r;break;case"defaultValue":d=r;break;case"multiple":c=r;default:r!==y&&Ke(e,t,s,r,a,y)}a=d,t=c,n=k,D!=null?Ms(e,!!t,D,!1):!!n!=!!t&&(a!=null?Ms(e,!!t,a,!0):Ms(e,!!t,t?[]:"",!1));return;case"textarea":k=D=null;for(d in n)if(s=n[d],n.hasOwnProperty(d)&&s!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Ke(e,t,d,null,a,s)}for(c in a)if(s=a[c],r=n[c],a.hasOwnProperty(c)&&(s!=null||r!=null))switch(c){case"value":D=s;break;case"defaultValue":k=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:s!==r&&Ke(e,t,c,s,a,r)}rv(e,D,k);return;case"option":for(var ie in n)if(D=n[ie],n.hasOwnProperty(ie)&&D!=null&&!a.hasOwnProperty(ie))switch(ie){case"selected":e.selected=!1;break;default:Ke(e,t,ie,null,a,D)}for(y in a)if(D=a[y],k=n[y],a.hasOwnProperty(y)&&D!==k&&(D!=null||k!=null))switch(y){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:Ke(e,t,y,D,a,k)}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 ce in n)D=n[ce],n.hasOwnProperty(ce)&&D!=null&&!a.hasOwnProperty(ce)&&Ke(e,t,ce,null,a,D);for(b in a)if(D=a[b],k=n[b],a.hasOwnProperty(b)&&D!==k&&(D!=null||k!=null))switch(b){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:Ke(e,t,b,D,a,k)}return;default:if(Xr(t)){for(var nt in n)D=n[nt],n.hasOwnProperty(nt)&&D!==void 0&&!a.hasOwnProperty(nt)&&Ap(e,t,nt,void 0,a,D);for(z in a)D=a[z],k=n[z],!a.hasOwnProperty(z)||D===k||D===void 0&&k===void 0||Ap(e,t,z,D,a,k);return}}for(var qe in n)D=n[qe],n.hasOwnProperty(qe)&&D!=null&&!a.hasOwnProperty(qe)&&Ke(e,t,qe,null,a,D);for(N in a)D=a[N],k=n[N],!a.hasOwnProperty(N)||D===k||D==null&&k==null||Ke(e,t,N,D,a,k)}function hS(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Cp(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 pS(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,s=a="",r;for(r in t)if(t.hasOwnProperty(r)){var c=t[r];c!=null&&typeof c!="boolean"&&c!==""&&(r.indexOf("--")===0?(xt(c,r),a+=s+r+":"+(""+c).trim()):typeof c!="number"||c===0||w1.has(r)?(xt(c,r),a+=s+r.replace(b1,"-$1").toLowerCase().replace(S1,"-ms-")+":"+(""+c).trim()):a+=s+r.replace(b1,"-$1").toLowerCase().replace(S1,"-ms-")+":"+c+"px",s=";")}a=a||null,t=e.getAttribute("style"),t!==a&&(a=Ko(a),Ko(t)!==a&&(n.style=Cp(e)))}}function Yn(e,t,n,a,s,r){if(s.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(Xe(a,t),e===""+a)return}Bt(t,e,a,r)}function mS(e,t,n,a,s,r){if(s.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}Bt(t,e,a,r)}function Dp(e,t,n,a,s,r){if(s.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(Xe(a,n),e===""+a)return}Bt(t,e,a,r)}function yS(e,t,n,a,s,r){if(s.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)&&(Xe(a,t),e===""+a))return}Bt(t,e,a,r)}function Mp(e,t,n,a,s,r){if(s.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(Xe(a,t),n=Qr(""+a),e===n)return}Bt(t,e,a,r)}function gS(e,t,n,a){for(var s={},r=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:r.add(c[d].name)}if(Xr(t)){for(var y in n)if(n.hasOwnProperty(y)){var b=n[y];if(b!=null){if(Fi.hasOwnProperty(y))typeof b!="function"&&Ha(y,b);else if(n.suppressHydrationWarning!==!0)switch(y){case"children":typeof b!="string"&&typeof b!="number"||Bt("children",e.textContent,b,s);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":c=e.innerHTML,b=b?b.__html:void 0,b!=null&&(b=fS(e,b),Bt(y,c,b,s));continue;case"style":r.delete(y),pS(e,b,s);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":r.delete(y.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",y);continue;case"className":r.delete("class"),c=Bu(e,"class",b),Bt("className",c,b,s);continue;default:a.context===jo&&t!=="svg"&&t!=="math"?r.delete(y.toLowerCase()):r.delete(y),c=Bu(e,y,b),Bt(y,c,b,s)}}}}else for(b in n)if(n.hasOwnProperty(b)&&(y=n[b],y!=null)){if(Fi.hasOwnProperty(b))typeof y!="function"&&Ha(b,y);else if(n.suppressHydrationWarning!==!0)switch(b){case"children":typeof y!="string"&&typeof y!="number"||Bt("children",e.textContent,y,s);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,y=y?y.__html:void 0,y!=null&&(y=fS(e,y),c!==y&&(s[b]={__html:c}));continue;case"className":Yn(e,b,"class",y,r,s);continue;case"tabIndex":Yn(e,b,"tabindex",y,r,s);continue;case"style":r.delete(b),pS(e,y,s);continue;case"multiple":r.delete(b),Bt(b,e.multiple,y,s);continue;case"muted":r.delete(b),Bt(b,e.muted,y,s);continue;case"autoFocus":r.delete("autofocus"),Bt(b,e.autofocus,y,s);continue;case"data":if(t!=="object"){r.delete(b),c=e.getAttribute("data"),Bt(b,c,y,s);continue}case"src":case"href":if(!(y!==""||t==="a"&&b==="href"||t==="object"&&b==="data")){console.error(b==="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.',b,b);continue}Mp(e,b,b,y,r,s);continue;case"action":case"formAction":if(c=e.getAttribute(b),typeof y=="function"){r.delete(b.toLowerCase()),b==="formAction"?(r.delete("name"),r.delete("formenctype"),r.delete("formmethod"),r.delete("formtarget")):(r.delete("enctype"),r.delete("method"),r.delete("target"));continue}else if(c===dO){r.delete(b.toLowerCase()),Bt(b,"function",y,s);continue}Mp(e,b,b.toLowerCase(),y,r,s);continue;case"xlinkHref":Mp(e,b,"xlink:href",y,r,s);continue;case"contentEditable":Dp(e,b,"contenteditable",y,r,s);continue;case"spellCheck":Dp(e,b,"spellcheck",y,r,s);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Dp(e,b,b,y,r,s);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":mS(e,b,b.toLowerCase(),y,r,s);continue;case"capture":case"download":e:{d=e;var z=c=b,N=s;if(r.delete(z),d=d.getAttribute(z),d===null)switch(typeof y){case"undefined":case"function":case"symbol":break e;default:if(y===!1)break e}else if(y!=null)switch(typeof y){case"function":case"symbol":break;case"boolean":if(y===!0&&d==="")break e;break;default:if(Xe(y,c),d===""+y)break e}Bt(c,d,y,N)}continue;case"cols":case"rows":case"size":case"span":e:{if(d=e,z=c=b,N=s,r.delete(z),d=d.getAttribute(z),d===null)switch(typeof y){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(y)||1>y)break e}else if(y!=null)switch(typeof y){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(y)||1>y)&&(Xe(y,c),d===""+y))break e}Bt(c,d,y,N)}continue;case"rowSpan":yS(e,b,"rowspan",y,r,s);continue;case"start":yS(e,b,b,y,r,s);continue;case"xHeight":Yn(e,b,"x-height",y,r,s);continue;case"xlinkActuate":Yn(e,b,"xlink:actuate",y,r,s);continue;case"xlinkArcrole":Yn(e,b,"xlink:arcrole",y,r,s);continue;case"xlinkRole":Yn(e,b,"xlink:role",y,r,s);continue;case"xlinkShow":Yn(e,b,"xlink:show",y,r,s);continue;case"xlinkTitle":Yn(e,b,"xlink:title",y,r,s);continue;case"xlinkType":Yn(e,b,"xlink:type",y,r,s);continue;case"xmlBase":Yn(e,b,"xml:base",y,r,s);continue;case"xmlLang":Yn(e,b,"xml:lang",y,r,s);continue;case"xmlSpace":Yn(e,b,"xml:space",y,r,s);continue;case"inert":y!==""||Pf[b]||(Pf[b]=!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.",b)),mS(e,b,b,y,r,s);continue;default:if(!(2<b.length)||b[0]!=="o"&&b[0]!=="O"||b[1]!=="n"&&b[1]!=="N"){d=vv(b),c=!1,a.context===jo&&t!=="svg"&&t!=="math"?r.delete(d.toLowerCase()):(z=b.toLowerCase(),z=tf.hasOwnProperty(z)&&tf[z]||null,z!==null&&z!==b&&(c=!0,r.delete(z)),r.delete(d));e:if(z=e,N=d,d=y,wa(N))if(z.hasAttribute(N))z=z.getAttribute(N),Xe(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||Bt(b,d,y,s)}}}return 0<r.size&&n.suppressHydrationWarning!==!0&&JC(e,r,s),Object.keys(s).length===0?null:s}function KC(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 vS(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function WC(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var s=n[a],r=s.transferSize,c=s.initiatorType,d=s.duration;if(r&&d&&vS(c)){for(c=0,d=s.responseEnd,a+=1;a<n.length;a++){var y=n[a],b=y.startTime;if(b>d)break;var z=y.transferSize,N=y.initiatorType;z&&vS(N)&&(y=y.responseEnd,c+=z*(y<d?1:(d-b)/(y-b)))}if(--a,t+=8*(r+c)/(s.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 Lc(e){return e.nodeType===9?e:e.ownerDocument}function bS(e){switch(e){case Ks:return Dr;case ef:return Xf;default:return jo}}function SS(e,t){if(e===jo)switch(t){case"svg":return Dr;case"math":return Xf;default:return jo}return e===Dr&&t==="foreignObject"?jo:e}function Op(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 eD(){var e=window.event;return e&&e.type==="popstate"?e===hy?!1:(hy=e,!0):(hy=null,!1)}function gl(){var e=window.event;return e&&e!==hu?e.type:null}function vl(){var e=window.event;return e&&e!==hu?e.timeStamp:-1.1}function tD(e){setTimeout(function(){throw e})}function nD(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 aD(){}function oD(e,t,n,a){FC(e,t,n,a),e[an]=a}function TS(e){$r(e,"")}function iD(e,t,n){e.nodeValue=n}function ES(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[an]||null;if(t!==null){var n=ae(e);n!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,ue(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,ue(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 Wo(e){return e==="head"}function sD(e,t){e.removeChild(t)}function rD(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function xS(e,t){var n=t,a=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n===du||n===$f){if(a===0){e.removeChild(s),Xs(t);return}a--}else if(n===fu||n===Ei||n===gs||n===Cr||n===ys)a++;else if(n===pO)bl(e.ownerDocument.documentElement);else if(n===yO){n=e.ownerDocument.head,bl(n);for(var r=n.firstChild;r;){var c=r.nextSibling,d=r.nodeName;r[Al]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=c}}else n===mO&&bl(e.ownerDocument.body);n=s}while(n);Xs(t)}function wS(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===du){if(e===0)break;e--}else n!==fu&&n!==Ei&&n!==gs&&n!==Cr||e++;n=a}while(n)}function lD(e){wS(e,!0)}function uD(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function cD(e){e.nodeValue=""}function fD(e){wS(e,!1)}function dD(e,t){t=t[gO],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function hD(e,t){e.nodeValue=t}function _p(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":_p(n),V(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function pD(e,t,n,a){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Al])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){Xe(s.name,"name");var r=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Mn(e.nextSibling),e===null)break}return null}function mD(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Mn(e.nextSibling),e===null))return null;return e}function RS(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Mn(e.nextSibling),e===null))return null;return e}function jp(e){return e.data===Ei||e.data===gs}function zp(e){return e.data===Cr||e.data===Ei&&e.ownerDocument.readyState!==pE}function yD(e,t){var n=e.ownerDocument;if(e.data===gs)e._reactRetry=t;else if(e.data!==Ei||n.readyState!==pE)t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Mn(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===fu||t===Cr||t===Ei||t===gs||t===ys||t===cy||t===hE)break;if(t===du||t===$f)return null}}return e}function AS(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},a=e.attributes,s=0;s<a.length;s++){var r=a[s];n[hS(r.name)]=r.name.toLowerCase()==="style"?Cp(e):r.value}return{type:t,props:n}}return e.nodeType===8?e.data===ys?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function CS(e,t,n){return n===null||n[hO]!==!0?(e.nodeValue===t?e=null:(t=Ko(t),e=Ko(e.nodeValue)===t?null:e.nodeValue),e):null}function Np(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===du||n===$f){if(t===0)return Mn(e.nextSibling);t--}else n!==fu&&n!==Cr&&n!==Ei&&n!==gs&&n!==ys||t++}e=e.nextSibling}return null}function DS(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===fu||n===Cr||n===Ei||n===gs||n===ys){if(t===0)return e;t--}else n!==du&&n!==$f||t++}e=e.previousSibling}return null}function gD(e){Xs(e)}function vD(e){Xs(e)}function bD(e){Xs(e)}function MS(e,t,n,a,s){switch(s&&Pd(e,a.ancestorInfo),t=Lc(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 SD(e,t,n,a){if(!n[ai]&&ae(n)){var s=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.",s,s,s)}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(s=n.attributes;s.length;)n.removeAttributeNode(s[0]);$t(n,e,t),n[Xt]=a,n[an]=t}function bl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);V(e)}function Bc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function OS(e,t,n){var a=Mr;if(a&&typeof t=="string"&&t){var s=Hn(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),SE.has(s)||(SE.add(s),e={rel:e,crossOrigin:n,href:t},a.querySelector(s)===null&&(t=a.createElement("link"),$t(t,"link",e),be(t),a.head.appendChild(t)))}}function _S(e,t,n,a){var s=(s=ti.current)?Bc(s):null;if(!s)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=Ps(n.href),t=Oe(s).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=Ps(n.href);var r=Oe(s).hoistableStyles,c=r.get(e);if(!c&&(s=s.ownerDocument||s,c={type:"stylesheet",instance:null,count:0,state:{loading:bs,preload:null}},r.set(e,c),(r=s.querySelector(Sl(e)))&&!r._p&&(c.instance=r,c.state.loading=pu|Wn),!ea.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};ea.set(e,d),r||TD(s,e,d,c.state)}if(t&&a===null)throw n=`
222
-
223
- - `+kc(t)+`
224
- + `+kc(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
- - `+kc(t)+`
227
- + `+kc(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=$s(n),t=Oe(s).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 kc(e){var t=0,n="<link";return typeof e.rel=="string"?(t++,n+=' rel="'+e.rel+'"'):ca.call(e,"rel")&&(t++,n+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,n+=' href="'+e.href+'"'):ca.call(e,"href")&&(t++,n+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,n+=' precedence="'+e.precedence+'"'):ca.call(e,"precedence")&&(t++,n+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(n+=" ..."),n+" />"}function Ps(e){return'href="'+Hn(e)+'"'}function Sl(e){return'link[rel="stylesheet"]['+e+"]"}function jS(e){return Be({},e,{"data-precedence":e.precedence,precedence:null})}function TD(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=pu:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=pu}),t.addEventListener("error",function(){return a.loading|=vE}),$t(t,"link",n),be(t),e.head.appendChild(t))}function $s(e){return'[src="'+Hn(e)+'"]'}function Tl(e){return"script[async]"+e}function zS(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Hn(n.href)+'"]');if(a)return t.instance=a,be(a),a;var s=Be({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),be(a),$t(a,"style",s),Hc(a,n.precedence,e),t.instance=a;case"stylesheet":s=Ps(n.href);var r=e.querySelector(Sl(s));if(r)return t.state.loading|=Wn,t.instance=r,be(r),r;a=jS(n),(s=ea.get(s))&&Vp(a,s),r=(e.ownerDocument||e).createElement("link"),be(r);var c=r;return c._p=new Promise(function(d,y){c.onload=d,c.onerror=y}),$t(r,"link",a),t.state.loading|=Wn,Hc(r,n.precedence,e),t.instance=r;case"script":return r=$s(n.src),(s=e.querySelector(Tl(r)))?(t.instance=s,be(s),s):(a=n,(s=ea.get(r))&&(a=Be({},n),Up(a,s)),e=e.ownerDocument||e,s=e.createElement("script"),be(s),$t(s,"link",a),e.head.appendChild(s),t.instance=s);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&Wn)===bs&&(a=t.instance,t.state.loading|=Wn,Hc(a,n.precedence,e));return t.instance}function Hc(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,r=s,c=0;c<a.length;c++){var d=a[c];if(d.dataset.precedence===t)r=d;else if(r!==s)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Vp(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Up(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function NS(e,t,n){if(Qf===null){var a=new Map,s=Qf=new Map;s.set(n,a)}else s=Qf,a=s.get(n),a||(a=new Map,s.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var r=n[s];if(!(r[Al]||r[Xt]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!==Ks){var c=r.getAttribute(t)||"";c=e+c;var d=a.get(c);d?d.push(r):a.set(c,[r])}}return a}function VS(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function ED(e,t,n){var a=!n.ancestorInfo.containerTagInScope;if(n.context===Dr||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 s=t.onError,r=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),s&&n.push("`onError`"),r!=null&&n.push("`disabled`"),s=KC(n,"and"),s+=n.length===1?" prop":" props",r=n.length===1?"an "+s:"the "+s,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,r,s)}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 US(e){return!(e.type==="stylesheet"&&(e.state.loading&bE)===bs)}function xD(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&Wn)===bs){if(n.instance===null){var s=Ps(a.href),r=t.querySelector(Sl(s));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Yc.bind(e),t.then(e,e)),n.state.loading|=Wn,n.instance=r,be(r);return}r=t.ownerDocument||t,a=jS(a),(s=ea.get(s))&&Vp(a,s),r=r.createElement("link"),be(r);var c=r;c._p=new Promise(function(d,y){c.onload=d,c.onerror=y}),$t(r,"link",a),n.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&bE)===bs&&(e.count++,n=Yc.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}function wD(e,t){return e.stylesheets&&e.count===0&&qc(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&qc(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},SO+t);0<e.imgBytes&&my===0&&(my=125*WC()*EO);var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&qc(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>my?50:TO)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function Yc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function qc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach(RD,e),Zf=null,Yc.call(e))}function RD(e,t){if(!(t.state.loading&Wn)){var n=Zf.get(e);if(n)var a=n.get(yy);else{n=new Map,Zf.set(e,n);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<s.length;r++){var c=s[r];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(n.set(c.dataset.precedence,c),a=c)}a&&n.set(yy,a)}s=t.instance,c=s.getAttribute("data-precedence"),r=n.get(c)||a,r===a&&n.set(yy,s),n.set(c,s),this.count++,a=Yc.bind(this),s.addEventListener("load",a),s.addEventListener("error",a),r?r.parentNode.insertBefore(s,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=Wn}}function AD(e,t,n,a,s,r,c,d,y){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=vs,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ni(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ni(0),this.hiddenUpdates=Ni(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=r,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,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 LS(e,t,n,a,s,r,c,d,y,b,z,N){return e=new AD(e,t,n,c,y,b,z,N,d),t=XM,r===!0&&(t|=Kt|fa),t|=ze,r=g(3,null,null,t),e.current=r,r.stateNode=e,t=ch(),Pi(t),e.pooledCache=t,Pi(t),r.memoizedState={element:a,isDehydrated:n,cache:t},mh(r),e}function BS(e){return e?(e=ri,e):ri}function Lp(e,t,n,a,s,r){if(Ft&&typeof Ft.onScheduleFiberRoot=="function")try{Ft.onScheduleFiberRoot(Js,a,n)}catch(c){Pa||(Pa=!0,console.error("React instrumentation encountered an error: %o",c))}s=BS(s),a.context===null?a.context=s:a.pendingContext=s,Ga&&_n!==null&&!wE&&(wE=!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.`,Y(_n)||"Unknown")),a=Xo(t),a.payload={element:n},r=r===void 0?null:r,r!==null&&(typeof r!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",r),a.callback=r),n=Qo(e,a,t),n!==null&&(Da(t,"root.render()",null),ht(n,e,t),tl(n,e,t))}function kS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Bp(e,t){kS(e,t),(e=e.alternate)&&kS(e,t)}function HS(e){if(e.tag===13||e.tag===31){var t=Jt(e,67108864);t!==null&&ht(t,e,67108864),Bp(e,67108864)}}function YS(e){if(e.tag===13||e.tag===31){var t=Dn(e);t=xa(t);var n=Jt(e,t);n!==null&&ht(n,e,t),Bp(e,t)}}function CD(){return _n}function DD(e,t,n,a){var s=q.T;q.T=null;var r=Ze.p;try{Ze.p=qn,kp(e,t,n,a)}finally{Ze.p=r,q.T=s}}function MD(e,t,n,a){var s=q.T;q.T=null;var r=Ze.p;try{Ze.p=Xa,kp(e,t,n,a)}finally{Ze.p=r,q.T=s}}function kp(e,t,n,a){if(Jf){var s=Hp(a);if(s===null)wp(e,t,a,Ff,n),GS(e,a);else if(OD(s,e,t,n,a))a.stopPropagation();else if(GS(e,a),t&4&&-1<wO.indexOf(e)){for(;s!==null;){var r=ae(s);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var c=Bn(r.pendingLanes);if(c!==0){var d=r;for(d.pendingLanes|=2,d.entangledLanes|=2;c;){var y=1<<31-nn(c);d.entanglements[1]|=y,c&=~y}ka(r),($e&(Ut|Vn))===qt&&(zf=kt()+KT,ml(0))}}break;case 31:case 13:d=Jt(r,2),d!==null&&ht(d,r,2),Ys(),Bp(r,2)}if(r=Hp(a),r===null&&wp(e,t,a,Ff,n),r===s)break;s=r}s!==null&&a.stopPropagation()}else wp(e,t,a,null,n)}}function Hp(e){return e=$d(e),Yp(e)}function Yp(e){if(Ff=null,e=J(e),e!==null){var t=B(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=G(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 Ff=e,null}function qS(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 qn;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 Xa;case"message":switch(HD()){case tm:return qn;case nm:return Xa;case Is:case YD:return vo;case am:return Kc;default:return vo}default:return vo}}function GS(e,t){switch(e){case"focusin":case"focusout":xi=null;break;case"dragenter":case"dragleave":wi=null;break;case"mouseover":case"mouseout":Ri=null;break;case"pointerover":case"pointerout":yu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":gu.delete(t.pointerId)}}function El(e,t,n,a,s,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:r,targetContainers:[s]},t!==null&&(t=ae(t),t!==null&&HS(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function OD(e,t,n,a,s){switch(t){case"focusin":return xi=El(xi,e,t,n,a,s),!0;case"dragenter":return wi=El(wi,e,t,n,a,s),!0;case"mouseover":return Ri=El(Ri,e,t,n,a,s),!0;case"pointerover":var r=s.pointerId;return yu.set(r,El(yu.get(r)||null,e,t,n,a,s)),!0;case"gotpointercapture":return r=s.pointerId,gu.set(r,El(gu.get(r)||null,e,t,n,a,s)),!0}return!1}function PS(e){var t=J(e.target);if(t!==null){var n=B(t);if(n!==null){if(t=n.tag,t===13){if(t=G(n),t!==null){e.blockedOn=t,S(e.priority,function(){YS(n)});return}}else if(t===31){if(t=P(n),t!==null){e.blockedOn=t,S(e.priority,function(){YS(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 Gc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Hp(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n),s=a;Cl!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Cl=s,n.target.dispatchEvent(a),Cl===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."),Cl=null}else return t=ae(n),t!==null&&HS(t),e.blockedOn=n,!1;t.shift()}return!0}function $S(e,t,n){Gc(e)&&n.delete(t)}function _D(){gy=!1,xi!==null&&Gc(xi)&&(xi=null),wi!==null&&Gc(wi)&&(wi=null),Ri!==null&&Gc(Ri)&&(Ri=null),yu.forEach($S),gu.forEach($S)}function Pc(e,t){e.blockedOn===t&&(e.blockedOn=null,gy||(gy=!0,wt.unstable_scheduleCallback(wt.unstable_NormalPriority,_D)))}function XS(e){Kf!==e&&(Kf=e,wt.unstable_scheduleCallback(wt.unstable_NormalPriority,function(){Kf===e&&(Kf=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],s=e[t+2];if(typeof a!="function"){if(Yp(a||n)===null)continue;break}var r=ae(n);r!==null&&(e.splice(t,3),t-=3,n={pending:!0,data:s,method:n.method,action:a},Object.freeze(n),Yh(r,n,a,s))}}))}function Xs(e){function t(y){return Pc(y,e)}xi!==null&&Pc(xi,e),wi!==null&&Pc(wi,e),Ri!==null&&Pc(Ri,e),yu.forEach(t),gu.forEach(t);for(var n=0;n<Ai.length;n++){var a=Ai[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ai.length&&(n=Ai[0],n.blockedOn===null);)PS(n),n.blockedOn===null&&Ai.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var s=n[a],r=n[a+1],c=s[an]||null;if(typeof r=="function")c||XS(n);else if(c){var d=null;if(r&&r.hasAttribute("formAction")){if(s=r,c=r[an]||null)d=c.formAction;else if(Yp(s)!==null)continue}else d=c.action;typeof d=="function"?n[a+1]=d:(n.splice(a,3),a-=3),XS(n)}}}function QS(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(c){return s=c})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,s=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),s!==null&&(s(),s=null)}}}function qp(e){this._internalRoot=e}function $c(e){this._internalRoot=e}function ZS(e){e[ai]&&(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 wt=OO(),Gp=zu(),jD=Rw(),Be=Object.assign,zD=Symbol.for("react.element"),Ya=Symbol.for("react.transitional.element"),Qs=Symbol.for("react.portal"),Zs=Symbol.for("react.fragment"),Xc=Symbol.for("react.strict_mode"),Pp=Symbol.for("react.profiler"),$p=Symbol.for("react.consumer"),qa=Symbol.for("react.context"),xl=Symbol.for("react.forward_ref"),Xp=Symbol.for("react.suspense"),Qp=Symbol.for("react.suspense_list"),Qc=Symbol.for("react.memo"),On=Symbol.for("react.lazy"),Zp=Symbol.for("react.activity"),ND=Symbol.for("react.memo_cache_sentinel"),IS=Symbol.iterator,VD=Symbol.for("react.client.reference"),Nt=Array.isArray,q=Gp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ze=jD.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,UD=Object.freeze({pending:!1,data:null,method:null,action:null}),Ip=[],Jp=[],go=-1,ei=W(null),wl=W(null),ti=W(null),Zc=W(null),Rl=0,JS,FS,KS,WS,e1,t1,n1;Me.__reactDisabledLog=!0;var Fp,a1,Kp=!1,Wp=new(typeof WeakMap=="function"?WeakMap:Map),_n=null,Ga=!1,ca=Object.prototype.hasOwnProperty,em=wt.unstable_scheduleCallback,LD=wt.unstable_cancelCallback,BD=wt.unstable_shouldYield,kD=wt.unstable_requestPaint,kt=wt.unstable_now,HD=wt.unstable_getCurrentPriorityLevel,tm=wt.unstable_ImmediatePriority,nm=wt.unstable_UserBlockingPriority,Is=wt.unstable_NormalPriority,YD=wt.unstable_LowPriority,am=wt.unstable_IdlePriority,qD=wt.log,GD=wt.unstable_setDisableYieldValue,Js=null,Ft=null,Pa=!1,$a=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",nn=Math.clz32?Math.clz32:Bo,PD=Math.log,$D=Math.LN2,Ic=256,Jc=262144,Fc=4194304,qn=2,Xa=8,vo=32,Kc=268435456,ni=Math.random().toString(36).slice(2),Xt="__reactFiber$"+ni,an="__reactProps$"+ni,ai="__reactContainer$"+ni,om="__reactEvents$"+ni,XD="__reactListeners$"+ni,QD="__reactHandles$"+ni,o1="__reactResources$"+ni,Al="__reactMarker$"+ni,i1=new Set,Fi={},im={},ZD={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},ID=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]*$"),s1={},r1={},JD=/[\n"\\]/g,l1=!1,u1=!1,c1=!1,f1=!1,d1=!1,h1=!1,p1=["value","defaultValue"],m1=!1,y1=/["'&<>\n\t]|^\s|\s$/,FD="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(" "),g1="applet caption html table td th marquee object template foreignObject desc title".split(" "),KD=g1.concat(["button"]),WD="dd dt li option optgroup p rp rt".split(" "),v1={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Wc={},sm={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"]},b1=/([A-Z])/g,S1=/^ms-/,eM=/^(?:webkit|moz|o)[A-Z]/,tM=/^-ms-/,nM=/-(.)/g,T1=/;\s*$/,Fs={},rm={},E1=!1,x1=!1,w1=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(" ")),ef="http://www.w3.org/1998/Math/MathML",Ks="http://www.w3.org/2000/svg",aM=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"]]),tf={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"},R1={"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},Ws={},oM=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]*$"),iM=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]*$"),A1=!1,on={},C1=/^on./,sM=/^on[^A-Z]/,rM=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]*$"),lM=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]*$"),uM=/^[\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,Cl=null,er=null,tr=null,lm=!1,Qa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),um=!1;if(Qa)try{var Dl={};Object.defineProperty(Dl,"passive",{get:function(){um=!0}}),window.addEventListener("test",Dl,Dl),window.removeEventListener("test",Dl,Dl)}catch{um=!1}var oi=null,cm=null,nf=null,Ki={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},af=pn(Ki),Ml=Be({},Ki,{view:0,detail:0}),cM=pn(Ml),fm,dm,Ol,of=Be({},Ml,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xd,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!==Ol&&(Ol&&e.type==="mousemove"?(fm=e.screenX-Ol.screenX,dm=e.screenY-Ol.screenY):dm=fm=0,Ol=e),fm)},movementY:function(e){return"movementY"in e?e.movementY:dm}}),D1=pn(of),fM=Be({},of,{dataTransfer:0}),dM=pn(fM),hM=Be({},Ml,{relatedTarget:0}),hm=pn(hM),pM=Be({},Ki,{animationName:0,elapsedTime:0,pseudoElement:0}),mM=pn(pM),yM=Be({},Ki,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gM=pn(yM),vM=Be({},Ki,{data:0}),M1=pn(vM),bM=M1,SM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TM={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"},EM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},xM=Be({},Ml,{key:function(e){if(e.key){var t=SM[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?TM[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xd,charCode:function(e){return e.type==="keypress"?Gu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wM=pn(xM),RM=Be({},of,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),O1=pn(RM),AM=Be({},Ml,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xd}),CM=pn(AM),DM=Be({},Ki,{propertyName:0,elapsedTime:0,pseudoElement:0}),MM=pn(DM),OM=Be({},of,{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}),_M=pn(OM),jM=Be({},Ki,{newState:0,oldState:0}),zM=pn(jM),NM=[9,13,27,32],_1=229,pm=Qa&&"CompositionEvent"in window,_l=null;Qa&&"documentMode"in document&&(_l=document.documentMode);var VM=Qa&&"TextEvent"in window&&!_l,j1=Qa&&(!pm||_l&&8<_l&&11>=_l),z1=32,N1=String.fromCharCode(z1),V1=!1,nr=!1,UM={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},jl=null,zl=null,U1=!1;Qa&&(U1=nC("input")&&(!document.documentMode||9<document.documentMode));var sn=typeof Object.is=="function"?Object.is:lC,LM=Qa&&"documentMode"in document&&11>=document.documentMode,ar=null,mm=null,Nl=null,ym=!1,or={animationend:Li("Animation","AnimationEnd"),animationiteration:Li("Animation","AnimationIteration"),animationstart:Li("Animation","AnimationStart"),transitionrun:Li("Transition","TransitionRun"),transitionstart:Li("Transition","TransitionStart"),transitioncancel:Li("Transition","TransitionCancel"),transitionend:Li("Transition","TransitionEnd")},gm={},L1={};Qa&&(L1=document.createElement("div").style,"AnimationEvent"in window||(delete or.animationend.animation,delete or.animationiteration.animation,delete or.animationstart.animation),"TransitionEvent"in window||delete or.transitionend.transition);var B1=Bi("animationend"),k1=Bi("animationiteration"),H1=Bi("animationstart"),BM=Bi("transitionrun"),kM=Bi("transitionstart"),HM=Bi("transitioncancel"),Y1=Bi("transitionend"),q1=new Map,vm="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(" ");vm.push("scrollEnd");var G1=0;if(typeof performance=="object"&&typeof performance.now=="function")var YM=performance,P1=function(){return YM.now()};else{var qM=Date;P1=function(){return qM.now()}}var bm=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)},GM="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.",sf=0,Sm=1,Tm=2,Em=3,rf="– ",lf="+ ",$1="  ",it=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Gn="Components ⚛",Ye="Scheduler ⚛",Ge="Blocking",ii=!1,bo={color:"primary",properties:null,tooltipText:"",track:Gn},si={start:-0,end:-0,detail:{devtools:bo}},PM=["Changed Props",""],X1="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",$M=["Changed Props",X1],Vl=1,So=2,Pn=[],ir=0,xm=0,ri={};Object.freeze(ri);var $n=null,sr=null,Re=0,XM=1,ze=2,Kt=8,fa=16,QM=32,Q1=!1;try{var Z1=Object.preventExtensions({})}catch{Q1=!0}var wm=new WeakMap,rr=[],lr=0,uf=null,Ul=0,Xn=[],Qn=0,Wi=null,To=1,Eo="",Qt=null,st=null,ke=!1,Za=!1,jn=null,li=null,Zn=!1,Rm=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."),Am=W(null),Cm=W(null),I1={},cf=null,ur=null,cr=!1,ZM=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()})}},IM=wt.unstable_scheduleCallback,JM=wt.unstable_NormalPriority,Rt={$$typeof:qa,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},At=wt.unstable_now,ff=console.createTask?console.createTask:function(){return null},Ll=1,df=2,Ht=-0,ui=-0,xo=-0,wo=null,rn=-1.1,es=-0,ft=-0,Ee=-1.1,we=-1.1,ut=null,pt=!1,ts=-0,Ia=-1.1,Bl=null,ci=0,Dm=null,Mm=null,ns=-1.1,kl=null,fr=-1.1,hf=-1.1,Ro=-0,Ao=-1.1,In=-1.1,Om=0,Hl=null,J1=null,F1=null,fi=-1.1,as=null,di=-1.1,pf=-1.1,K1=-0,W1=-0,mf=0,FM=null,eT=0,Yl=-1.1,yf=!1,gf=!1,ql=null,_m=0,os=0,dr=null,tT=q.S;q.S=function(e,t){if(JT=kt(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>Ao&&0>In){Ao=At();var n=vl(),a=gl();(n!==di||a!==as)&&(di=-1.1),fi=n,as=a}mC(e,t)}tT!==null&&tT(e,t)};var is=W(null),da={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Gl=[],Pl=[],$l=[],Xl=[],Ql=[],Zl=[],ss=new Set;da.recordUnsafeLifecycleWarnings=function(e,t){ss.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Gl.push(e),e.mode&Kt&&typeof t.UNSAFE_componentWillMount=="function"&&Pl.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&$l.push(e),e.mode&Kt&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&Xl.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Ql.push(e),e.mode&Kt&&typeof t.UNSAFE_componentWillUpdate=="function"&&Zl.push(e))},da.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Gl.length&&(Gl.forEach(function(d){e.add(Y(d)||"Component"),ss.add(d.type)}),Gl=[]);var t=new Set;0<Pl.length&&(Pl.forEach(function(d){t.add(Y(d)||"Component"),ss.add(d.type)}),Pl=[]);var n=new Set;0<$l.length&&($l.forEach(function(d){n.add(Y(d)||"Component"),ss.add(d.type)}),$l=[]);var a=new Set;0<Xl.length&&(Xl.forEach(function(d){a.add(Y(d)||"Component"),ss.add(d.type)}),Xl=[]);var s=new Set;0<Ql.length&&(Ql.forEach(function(d){s.add(Y(d)||"Component"),ss.add(d.type)}),Ql=[]);var r=new Set;if(0<Zl.length&&(Zl.forEach(function(d){r.add(Y(d)||"Component"),ss.add(d.type)}),Zl=[]),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<r.size&&(c=v(r),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<s.size&&(c=v(s),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 vf=new Map,nT=new Set;da.recordLegacyContextWarning=function(e,t){for(var n=null,a=e;a!==null;)a.mode&Kt&&(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."):!nT.has(e.type)&&(a=vf.get(n),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(a===void 0&&(a=[],vf.set(n,a)),a.push(e))},da.flushLegacyContextWarning=function(){vf.forEach(function(e){if(e.length!==0){var t=e[0],n=new Set;e.forEach(function(s){n.add(Y(s)||"Component"),nT.add(s.type)});var a=v(n);ue(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)})}})},da.discardPendingWarnings=function(){Gl=[],Pl=[],$l=[],Xl=[],Ql=[],Zl=[],vf=new Map};var aT={react_stack_bottom_frame:function(e,t,n){var a=Ga;Ga=!0;try{return e(t,n)}finally{Ga=a}}},jm=aT.react_stack_bottom_frame.bind(aT),oT={react_stack_bottom_frame:function(e){var t=Ga;Ga=!0;try{return e.render()}finally{Ga=t}}},iT=oT.react_stack_bottom_frame.bind(oT),sT={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(n){Qe(e,e.return,n)}}},zm=sT.react_stack_bottom_frame.bind(sT),rT={react_stack_bottom_frame:function(e,t,n,a,s){try{t.componentDidUpdate(n,a,s)}catch(r){Qe(e,e.return,r)}}},lT=rT.react_stack_bottom_frame.bind(rT),uT={react_stack_bottom_frame:function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:n!==null?n:""})}},KM=uT.react_stack_bottom_frame.bind(uT),cT={react_stack_bottom_frame:function(e,t,n){try{n.componentWillUnmount()}catch(a){Qe(e,t,a)}}},fT=cT.react_stack_bottom_frame.bind(cT),dT={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},WM=dT.react_stack_bottom_frame.bind(dT),hT={react_stack_bottom_frame:function(e,t,n){try{n()}catch(a){Qe(e,t,a)}}},eO=hT.react_stack_bottom_frame.bind(hT),pT={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},tO=pT.react_stack_bottom_frame.bind(pT),hr=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`."),Nm=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."),bf=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."),Sf={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.')}},rs=null,Il=!1,pr=null,Jl=0,Ne=null,Vm,mT=Vm=!1,yT={},gT={},vT={};T=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=Y(e),s=a||"null";if(!yT[s]){yT[s]=!0,n=n._owner,e=e._debugOwner;var r="";e&&typeof e.tag=="number"&&(s=Y(e))&&(r=`
265
-
266
- Check the render method of \``+s+"`."),r||a&&(r=`
267
-
268
- Check the top-level render call using <`+a+">.");var c="";n!=null&&e!==n&&(a=null,typeof n.tag=="number"?a=Y(n):typeof n.name=="string"&&(a=n.name),a&&(c=" It was passed a child from "+a+".")),ue(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.',r,c)})}}};var ls=c0(!0),bT=c0(!1),ST=0,TT=1,ET=2,Um=3,hi=!1,xT=!1,Lm=null,Bm=!1,mr=W(null),Tf=W(0),zn=W(null),Jn=null,yr=1,Fl=2,bt=W(0),Ef=0,Fn=1,ln=2,Nn=4,un=8,gr,wT=new Set,RT=new Set,km=new Set,AT=new Set,Co=0,Ae=null,We=null,Ct=null,xf=!1,vr=!1,us=!1,wf=0,Kl=0,Do=null,nO=0,aO=25,H=null,Kn=null,Mo=-1,Wl=!1,eu={readContext:lt,use:Jo,useCallback:yt,useContext:yt,useEffect:yt,useImperativeHandle:yt,useLayoutEffect:yt,useInsertionEffect:yt,useMemo:yt,useReducer:yt,useRef:yt,useState:yt,useDebugValue:yt,useDeferredValue:yt,useTransition:yt,useSyncExternalStore:yt,useId:yt,useHostTransitionStatus:yt,useFormState:yt,useActionState:yt,useOptimistic:yt,useMemoCache:yt,useCacheRefresh:yt};eu.useEffectEvent=yt;var Hm=null,CT=null,Ym=null,DT=null,Ja=null,ha=null,Rf=null;Hm={readContext:function(e){return lt(e)},use:Jo,useCallback:function(e,t){return H="useCallback",Le(),Ns(t),Lh(e,t)},useContext:function(e){return H="useContext",Le(),lt(e)},useEffect:function(e,t){return H="useEffect",Le(),Ns(t),gc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Le(),Ns(n),Uh(e,t,n)},useInsertionEffect:function(e,t){H="useInsertionEffect",Le(),Ns(t),Xi(4,ln,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Le(),Ns(t),Vh(e,t)},useMemo:function(e,t){H="useMemo",Le(),Ns(t);var n=q.H;q.H=Ja;try{return Bh(e,t)}finally{q.H=n}},useReducer:function(e,t,n){H="useReducer",Le();var a=q.H;q.H=Ja;try{return Ah(e,t,n)}finally{q.H=a}},useRef:function(e){return H="useRef",Le(),zh(e)},useState:function(e){H="useState",Le();var t=q.H;q.H=Ja;try{return Oh(e)}finally{q.H=t}},useDebugValue:function(){H="useDebugValue",Le()},useDeferredValue:function(e,t){return H="useDeferredValue",Le(),kh(e,t)},useTransition:function(){return H="useTransition",Le(),qh()},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Le(),Dh(e,t,n)},useId:function(){return H="useId",Le(),Gh()},useFormState:function(e,t){return H="useFormState",Le(),dc(),Us(e,t)},useActionState:function(e,t){return H="useActionState",Le(),Us(e,t)},useOptimistic:function(e){return H="useOptimistic",Le(),_h(e)},useHostTransitionStatus:Qi,useMemoCache:$i,useCacheRefresh:function(){return H="useCacheRefresh",Le(),Ph()},useEffectEvent:function(e){return H="useEffectEvent",Le(),Nh(e)}},CT={readContext:function(e){return lt(e)},use:Jo,useCallback:function(e,t){return H="useCallback",ee(),Lh(e,t)},useContext:function(e){return H="useContext",ee(),lt(e)},useEffect:function(e,t){return H="useEffect",ee(),gc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",ee(),Uh(e,t,n)},useInsertionEffect:function(e,t){H="useInsertionEffect",ee(),Xi(4,ln,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",ee(),Vh(e,t)},useMemo:function(e,t){H="useMemo",ee();var n=q.H;q.H=Ja;try{return Bh(e,t)}finally{q.H=n}},useReducer:function(e,t,n){H="useReducer",ee();var a=q.H;q.H=Ja;try{return Ah(e,t,n)}finally{q.H=a}},useRef:function(e){return H="useRef",ee(),zh(e)},useState:function(e){H="useState",ee();var t=q.H;q.H=Ja;try{return Oh(e)}finally{q.H=t}},useDebugValue:function(){H="useDebugValue",ee()},useDeferredValue:function(e,t){return H="useDeferredValue",ee(),kh(e,t)},useTransition:function(){return H="useTransition",ee(),qh()},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",ee(),Dh(e,t,n)},useId:function(){return H="useId",ee(),Gh()},useActionState:function(e,t){return H="useActionState",ee(),Us(e,t)},useFormState:function(e,t){return H="useFormState",ee(),dc(),Us(e,t)},useOptimistic:function(e){return H="useOptimistic",ee(),_h(e)},useHostTransitionStatus:Qi,useMemoCache:$i,useCacheRefresh:function(){return H="useCacheRefresh",ee(),Ph()},useEffectEvent:function(e){return H="useEffectEvent",ee(),Nh(e)}},Ym={readContext:function(e){return lt(e)},use:Jo,useCallback:function(e,t){return H="useCallback",ee(),Sc(e,t)},useContext:function(e){return H="useContext",ee(),lt(e)},useEffect:function(e,t){H="useEffect",ee(),mn(2048,un,e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",ee(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",ee(),mn(4,ln,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",ee(),mn(4,Nn,e,t)},useMemo:function(e,t){H="useMemo",ee();var n=q.H;q.H=ha;try{return Tc(e,t)}finally{q.H=n}},useReducer:function(e,t,n){H="useReducer",ee();var a=q.H;q.H=ha;try{return Vs(e,t,n)}finally{q.H=a}},useRef:function(){return H="useRef",ee(),Ie().memoizedState},useState:function(){H="useState",ee();var e=q.H;q.H=ha;try{return Vs(la)}finally{q.H=e}},useDebugValue:function(){H="useDebugValue",ee()},useDeferredValue:function(e,t){return H="useDeferredValue",ee(),j0(e,t)},useTransition:function(){return H="useTransition",ee(),B0()},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",ee(),pc(e,t,n)},useId:function(){return H="useId",ee(),Ie().memoizedState},useFormState:function(e){return H="useFormState",ee(),dc(),mc(e)},useActionState:function(e){return H="useActionState",ee(),mc(e)},useOptimistic:function(e,t){return H="useOptimistic",ee(),E0(e,t)},useHostTransitionStatus:Qi,useMemoCache:$i,useCacheRefresh:function(){return H="useCacheRefresh",ee(),Ie().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",ee(),vc(e)}},DT={readContext:function(e){return lt(e)},use:Jo,useCallback:function(e,t){return H="useCallback",ee(),Sc(e,t)},useContext:function(e){return H="useContext",ee(),lt(e)},useEffect:function(e,t){H="useEffect",ee(),mn(2048,un,e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",ee(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",ee(),mn(4,ln,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",ee(),mn(4,Nn,e,t)},useMemo:function(e,t){H="useMemo",ee();var n=q.H;q.H=Rf;try{return Tc(e,t)}finally{q.H=n}},useReducer:function(e,t,n){H="useReducer",ee();var a=q.H;q.H=Rf;try{return il(e,t,n)}finally{q.H=a}},useRef:function(){return H="useRef",ee(),Ie().memoizedState},useState:function(){H="useState",ee();var e=q.H;q.H=Rf;try{return il(la)}finally{q.H=e}},useDebugValue:function(){H="useDebugValue",ee()},useDeferredValue:function(e,t){return H="useDeferredValue",ee(),z0(e,t)},useTransition:function(){return H="useTransition",ee(),k0()},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",ee(),pc(e,t,n)},useId:function(){return H="useId",ee(),Ie().memoizedState},useFormState:function(e){return H="useFormState",ee(),dc(),yc(e)},useActionState:function(e){return H="useActionState",ee(),yc(e)},useOptimistic:function(e,t){return H="useOptimistic",ee(),w0(e,t)},useHostTransitionStatus:Qi,useMemoCache:$i,useCacheRefresh:function(){return H="useCacheRefresh",ee(),Ie().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",ee(),vc(e)}},Ja={readContext:function(e){return E(),lt(e)},use:function(e){return m(),Jo(e)},useCallback:function(e,t){return H="useCallback",m(),Le(),Lh(e,t)},useContext:function(e){return H="useContext",m(),Le(),lt(e)},useEffect:function(e,t){return H="useEffect",m(),Le(),gc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",m(),Le(),Uh(e,t,n)},useInsertionEffect:function(e,t){H="useInsertionEffect",m(),Le(),Xi(4,ln,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",m(),Le(),Vh(e,t)},useMemo:function(e,t){H="useMemo",m(),Le();var n=q.H;q.H=Ja;try{return Bh(e,t)}finally{q.H=n}},useReducer:function(e,t,n){H="useReducer",m(),Le();var a=q.H;q.H=Ja;try{return Ah(e,t,n)}finally{q.H=a}},useRef:function(e){return H="useRef",m(),Le(),zh(e)},useState:function(e){H="useState",m(),Le();var t=q.H;q.H=Ja;try{return Oh(e)}finally{q.H=t}},useDebugValue:function(){H="useDebugValue",m(),Le()},useDeferredValue:function(e,t){return H="useDeferredValue",m(),Le(),kh(e,t)},useTransition:function(){return H="useTransition",m(),Le(),qh()},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",m(),Le(),Dh(e,t,n)},useId:function(){return H="useId",m(),Le(),Gh()},useFormState:function(e,t){return H="useFormState",m(),Le(),Us(e,t)},useActionState:function(e,t){return H="useActionState",m(),Le(),Us(e,t)},useOptimistic:function(e){return H="useOptimistic",m(),Le(),_h(e)},useMemoCache:function(e){return m(),$i(e)},useHostTransitionStatus:Qi,useCacheRefresh:function(){return H="useCacheRefresh",Le(),Ph()},useEffectEvent:function(e){return H="useEffectEvent",m(),Le(),Nh(e)}},ha={readContext:function(e){return E(),lt(e)},use:function(e){return m(),Jo(e)},useCallback:function(e,t){return H="useCallback",m(),ee(),Sc(e,t)},useContext:function(e){return H="useContext",m(),ee(),lt(e)},useEffect:function(e,t){H="useEffect",m(),ee(),mn(2048,un,e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",m(),ee(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",m(),ee(),mn(4,ln,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",m(),ee(),mn(4,Nn,e,t)},useMemo:function(e,t){H="useMemo",m(),ee();var n=q.H;q.H=ha;try{return Tc(e,t)}finally{q.H=n}},useReducer:function(e,t,n){H="useReducer",m(),ee();var a=q.H;q.H=ha;try{return Vs(e,t,n)}finally{q.H=a}},useRef:function(){return H="useRef",m(),ee(),Ie().memoizedState},useState:function(){H="useState",m(),ee();var e=q.H;q.H=ha;try{return Vs(la)}finally{q.H=e}},useDebugValue:function(){H="useDebugValue",m(),ee()},useDeferredValue:function(e,t){return H="useDeferredValue",m(),ee(),j0(e,t)},useTransition:function(){return H="useTransition",m(),ee(),B0()},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",m(),ee(),pc(e,t,n)},useId:function(){return H="useId",m(),ee(),Ie().memoizedState},useFormState:function(e){return H="useFormState",m(),ee(),mc(e)},useActionState:function(e){return H="useActionState",m(),ee(),mc(e)},useOptimistic:function(e,t){return H="useOptimistic",m(),ee(),E0(e,t)},useMemoCache:function(e){return m(),$i(e)},useHostTransitionStatus:Qi,useCacheRefresh:function(){return H="useCacheRefresh",ee(),Ie().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",m(),ee(),vc(e)}},Rf={readContext:function(e){return E(),lt(e)},use:function(e){return m(),Jo(e)},useCallback:function(e,t){return H="useCallback",m(),ee(),Sc(e,t)},useContext:function(e){return H="useContext",m(),ee(),lt(e)},useEffect:function(e,t){H="useEffect",m(),ee(),mn(2048,un,e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",m(),ee(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",m(),ee(),mn(4,ln,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",m(),ee(),mn(4,Nn,e,t)},useMemo:function(e,t){H="useMemo",m(),ee();var n=q.H;q.H=ha;try{return Tc(e,t)}finally{q.H=n}},useReducer:function(e,t,n){H="useReducer",m(),ee();var a=q.H;q.H=ha;try{return il(e,t,n)}finally{q.H=a}},useRef:function(){return H="useRef",m(),ee(),Ie().memoizedState},useState:function(){H="useState",m(),ee();var e=q.H;q.H=ha;try{return il(la)}finally{q.H=e}},useDebugValue:function(){H="useDebugValue",m(),ee()},useDeferredValue:function(e,t){return H="useDeferredValue",m(),ee(),z0(e,t)},useTransition:function(){return H="useTransition",m(),ee(),k0()},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",m(),ee(),pc(e,t,n)},useId:function(){return H="useId",m(),ee(),Ie().memoizedState},useFormState:function(e){return H="useFormState",m(),ee(),yc(e)},useActionState:function(e){return H="useActionState",m(),ee(),yc(e)},useOptimistic:function(e,t){return H="useOptimistic",m(),ee(),w0(e,t)},useMemoCache:function(e){return m(),$i(e)},useHostTransitionStatus:Qi,useCacheRefresh:function(){return H="useCacheRefresh",ee(),Ie().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",m(),ee(),vc(e)}};var MT={},OT=new Set,_T=new Set,jT=new Set,zT=new Set,NT=new Set,VT=new Set,UT=new Set,LT=new Set,BT=new Set,kT=new Set;Object.freeze(MT);var qm={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Dn(e),s=Xo(a);s.payload=t,n!=null&&(Xh(n),s.callback=n),t=Qo(e,s,a),t!==null&&(Da(a,"this.setState()",e),ht(t,e,a),tl(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Dn(e),s=Xo(a);s.tag=TT,s.payload=t,n!=null&&(Xh(n),s.callback=n),t=Qo(e,s,a),t!==null&&(Da(a,"this.replaceState()",e),ht(t,e,a),tl(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Dn(e),a=Xo(n);a.tag=ET,t!=null&&(Xh(t),a.callback=t),t=Qo(e,a,n),t!==null&&(Da(n,"this.forceUpdate()",e),ht(t,e,n),tl(t,e,n))}},br=null,Gm=null,Pm=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."),Dt=!1,HT={},YT={},qT={},GT={},Sr=!1,PT={},Af={},$m={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},$T=!1,XT=null;XT=new Set;var Oo=!1,Mt=!1,Xm=!1,QT=typeof WeakSet=="function"?WeakSet:Set,Yt=null,Tr=null,Er=null,Ot=null,vn=!1,pa=null,Vt=!1,tu=8192,oO={getCacheForType:function(e){var t=lt(Rt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return lt(Rt).controller.signal},getOwner:function(){return _n}};if(typeof Symbol=="function"&&Symbol.for){var nu=Symbol.for;nu("selector.component"),nu("selector.has_pseudo_class"),nu("selector.role"),nu("selector.test_id"),nu("selector.text")}var iO=[],sO=typeof WeakMap=="function"?WeakMap:Map,qt=0,Ut=2,Vn=4,_o=0,au=1,cs=2,Cf=3,pi=4,Df=6,ZT=5,$e=qt,et=null,Ue=null,Ve=0,bn=0,Mf=1,fs=2,ou=3,IT=4,Qm=5,iu=6,Of=7,Zm=8,ds=9,Je=bn,Un=null,mi=!1,xr=!1,Im=!1,Fa=0,dt=_o,yi=0,gi=0,Jm=0,Sn=0,hs=0,su=null,cn=null,_f=!1,jf=0,JT=0,FT=300,zf=1/0,KT=500,ru=null,gt=null,vi=null,Nf=0,Fm=1,Km=2,WT=3,bi=0,eE=1,tE=2,nE=3,aE=4,Vf=5,_t=0,Si=null,wr=null,ma=0,Wm=0,ey=-0,ty=null,oE=null,iE=null,ya=Nf,sE=null,rO=50,lu=0,ny=null,ay=!1,Uf=!1,lO=50,ps=0,uu=null,Rr=!1,Lf=null,rE=!1,lE=new Set,uO={},Bf=null,Ar=null,oy=!1,iy=!1,kf=!1,sy=!1,Ti=0,ry={};(function(){for(var e=0;e<vm.length;e++){var t=vm[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),sa(n,"on"+t)}sa(B1,"onAnimationEnd"),sa(k1,"onAnimationIteration"),sa(H1,"onAnimationStart"),sa("dblclick","onDoubleClick"),sa("focusin","onFocus"),sa("focusout","onBlur"),sa(BM,"onTransitionRun"),sa(kM,"onTransitionStart"),sa(HM,"onTransitionCancel"),sa(Y1,"onTransitionEnd")})(),_e("onMouseEnter",["mouseout","mouseover"]),_e("onMouseLeave",["mouseout","mouseover"]),_e("onPointerEnter",["pointerout","pointerover"]),_e("onPointerLeave",["pointerout","pointerover"]),Pe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pe("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cu="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(" "),ly=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(cu)),Hf="_reactListening"+Math.random().toString(36).slice(2),uE=!1,cE=!1,Yf=!1,fE=!1,qf=!1,Gf=!1,dE=!1,Pf={},cO=/\r\n?/g,fO=/\u0000|\uFFFD/g,ms="http://www.w3.org/1999/xlink",uy="http://www.w3.org/XML/1998/namespace",dO="javascript:throw new Error('React form unexpectedly submitted.')",hO="suppressHydrationWarning",ys="&",$f="/&",fu="$",du="/$",Ei="$?",gs="$~",Cr="$!",pO="html",mO="body",yO="head",cy="F!",hE="F",pE="loading",gO="style",jo=0,Dr=1,Xf=2,fy=null,dy=null,mE={dialog:!0,webview:!0},hy=null,hu=void 0,yE=typeof setTimeout=="function"?setTimeout:void 0,vO=typeof clearTimeout=="function"?clearTimeout:void 0,vs=-1,gE=typeof Promise=="function"?Promise:void 0,bO=typeof queueMicrotask=="function"?queueMicrotask:typeof gE<"u"?function(e){return gE.resolve(null).then(e).catch(tD)}:yE,py=null,bs=0,pu=1,vE=2,bE=3,Wn=4,ea=new Map,SE=new Set,zo=Ze.d;Ze.d={f:function(){var e=zo.f(),t=Ys();return e||t},r:function(e){var t=ae(e);t!==null&&t.tag===5&&t.type==="form"?L0(t):zo.r(e)},D:function(e){zo.D(e),OS("dns-prefetch",e,null)},C:function(e,t){zo.C(e,t),OS("preconnect",e,t)},L:function(e,t,n){zo.L(e,t,n);var a=Mr;if(a&&e&&t){var s='link[rel="preload"][as="'+Hn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Hn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Hn(n.imageSizes)+'"]')):s+='[href="'+Hn(e)+'"]';var r=s;switch(t){case"style":r=Ps(e);break;case"script":r=$s(e)}ea.has(r)||(e=Be({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ea.set(r,e),a.querySelector(s)!==null||t==="style"&&a.querySelector(Sl(r))||t==="script"&&a.querySelector(Tl(r))||(t=a.createElement("link"),$t(t,"link",e),be(t),a.head.appendChild(t)))}},m:function(e,t){zo.m(e,t);var n=Mr;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Hn(a)+'"][href="'+Hn(e)+'"]',r=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=$s(e)}if(!ea.has(r)&&(e=Be({rel:"modulepreload",href:e},t),ea.set(r,e),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Tl(r)))return}a=n.createElement("link"),$t(a,"link",e),be(a),n.head.appendChild(a)}}},X:function(e,t){zo.X(e,t);var n=Mr;if(n&&e){var a=Oe(n).hoistableScripts,s=$s(e),r=a.get(s);r||(r=n.querySelector(Tl(s)),r||(e=Be({src:e,async:!0},t),(t=ea.get(s))&&Up(e,t),r=n.createElement("script"),be(r),$t(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}},S:function(e,t,n){zo.S(e,t,n);var a=Mr;if(a&&e){var s=Oe(a).hoistableStyles,r=Ps(e);t=t||"default";var c=s.get(r);if(!c){var d={loading:bs,preload:null};if(c=a.querySelector(Sl(r)))d.loading=pu|Wn;else{e=Be({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ea.get(r))&&Vp(e,n);var y=c=a.createElement("link");be(y),$t(y,"link",e),y._p=new Promise(function(b,z){y.onload=b,y.onerror=z}),y.addEventListener("load",function(){d.loading|=pu}),y.addEventListener("error",function(){d.loading|=vE}),d.loading|=Wn,Hc(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:d},s.set(r,c)}}},M:function(e,t){zo.M(e,t);var n=Mr;if(n&&e){var a=Oe(n).hoistableScripts,s=$s(e),r=a.get(s);r||(r=n.querySelector(Tl(s)),r||(e=Be({src:e,async:!0,type:"module"},t),(t=ea.get(s))&&Up(e,t),r=n.createElement("script"),be(r),$t(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}};var Mr=typeof document>"u"?null:document,Qf=null,SO=6e4,TO=800,EO=500,my=0,yy=null,Zf=null,Ss=UD,mu={$$typeof:qa,Provider:null,Consumer:null,_currentValue:Ss,_currentValue2:Ss,_threadCount:0},TE="%c%s%c",EE="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",xE="",If=" ",xO=Function.prototype.bind,wE=!1,RE=null,AE=null,CE=null,DE=null,ME=null,OE=null,_E=null,jE=null,zE=null,NE=null;RE=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=Jt(e,2),n!==null&&ht(n,e,2))},AE=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=Jt(e,2),n!==null&&ht(n,e,2))},CE=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=Jt(e,2),n!==null&&ht(n,e,2))},DE=function(e,t,n){e.pendingProps=i(e.memoizedProps,t,0,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Jt(e,2),t!==null&&ht(t,e,2)},ME=function(e,t){e.pendingProps=f(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Jt(e,2),t!==null&&ht(t,e,2)},OE=function(e,t,n){e.pendingProps=l(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Jt(e,2),t!==null&&ht(t,e,2)},_E=function(e){var t=Jt(e,2);t!==null&&ht(t,e,2)},jE=function(e){var t=oo(),n=Jt(e,t);n!==null&&ht(n,e,t)},zE=function(e){h=e},NE=function(e){p=e};var Jf=!0,Ff=null,gy=!1,xi=null,wi=null,Ri=null,yu=new Map,gu=new Map,Ai=[],wO="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(" "),Kf=null;if($c.prototype.render=qp.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,s=Dn(a);Lp(a,s,n,t,null,null)},$c.prototype.unmount=qp.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;($e&(Ut|Vn))!==qt&&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."),Lp(e.current,2,null,e,null,null),Ys(),t[ai]=null}},$c.prototype.unstable_scheduleHydration=function(e){if(e){var t=ia();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ai.length&&t!==0&&t<Ai[n].priority;n++);Ai.splice(n,0,e),n===0&&PS(e)}},function(){var e=Gp.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"),Ze.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=ne(t),e=e!==null?se(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.5"};return e.overrideHookState=RE,e.overrideHookStateDeletePath=AE,e.overrideHookStateRenamePath=CE,e.overrideProps=DE,e.overridePropsDeletePath=ME,e.overridePropsRenamePath=OE,e.scheduleUpdate=_E,e.scheduleRetry=jE,e.setErrorHandler=zE,e.setSuspenseHandler=NE,e.scheduleRefresh=C,e.scheduleRoot=w,e.setRefreshHandler=L,e.getCurrentFiber=CD,zi(e)}()&&Qa&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var VE=window.location.protocol;/^(https?|file):$/.test(VE)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(VE==="file:"?`
272
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}vu.createRoot=function(e,t){if(!U(e))throw Error("Target container is not a DOM element.");ZS(e);var n=!1,a="",s=$0,r=X0,c=Q0;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===Ya&&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&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=LS(e,1,!1,null,null,n,a,null,s,r,c,QS),e[ai]=t.current,xp(e),new qp(t)},vu.hydrateRoot=function(e,t,n){if(!U(e))throw Error("Target container is not a DOM element.");ZS(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var a=!1,s="",r=$0,c=X0,d=Q0,y=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(d=n.onRecoverableError),n.formState!==void 0&&(y=n.formState)),t=LS(e,1,!0,t,n??null,a,s,y,r,c,d,QS),t.context=BS(null),n=t.current,a=Dn(n),a=xa(a),s=Xo(a),s.callback=null,Qo(n,s,a),Da(a,"hydrateRoot()",null),n=a,t.current.lanes=n,oa(t,n),ka(t),e[ai]=t.current,xp(e),new $c(t)},vu.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),vu}var $E;function zO(){return $E||($E=1,Sy.exports=jO()),Sy.exports}var Aw=zO();const wu={scale:1,x:0,y:0};function Cw(o){return 1-(1-Math.min(1,Math.max(0,o)))**5}function XE(o,i,l){if(l>=1)return{...i};const u=Cw(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 wy(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}}const NO=3e3;function Dw(o,i){var h,m;const l=[0];for(let E=1;E<o.length;E++){const x=l[E-1],T=o[E].delayMs,v=((h=i==null?void 0:i.steps[E-1])==null?void 0:h.durationMs)??0;l.push(x+Math.max(T,v))}const u=l[l.length-1]??0,f=((m=i==null?void 0:i.steps[o.length-1])==null?void 0:m.durationMs)??0,p=u+Math.max(NO,f);return{stepStartTimesMs:l,totalDurationMs:p}}function Qy(o,i,l){for(let u=i.length-1;u>=0;u--)if(o>=i[u])return Math.min(u,l);return 0}const VO=3e3;function Mw(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:VO}const QE=/^[a-z0-9]+(-[a-z0-9]+)*$/;function UO(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(!QE.test(p))throw new Error(`step ${f} declares shot "${p}", which is not kebab-case (expected ${QE}); 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 LO(o,i){return UO(o).map(({name:l,stepIndex:u})=>{const f=i.stepStartTimesMs[u+1];return{name:l,timeMs:(f??i.totalDurationMs)-1,stepIndex:u}})}const vt=450,Ow=50,_w=1500,Du=200,ld=600,BO=ld;function Tg(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 jw(o){const i=Tg(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 kO(o){const i=Tg(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 HO="data-cursor-target",YO="data-scroll-target";function Vr(o){return`[${HO}="${o}"]`}function qO(o){return`[${YO}="${o}"]`}const zw="scenar-embed",Nw=1;function GO(o){return{source:zw,v:Nw,...o}}function PO(o){if(typeof o!="object"||o===null)return!1;const i=o;return i.source===zw&&i.v===Nw}function Ry(o){return typeof o=="number"&&Number.isFinite(o)}function $O(o){if(!PO(o))return null;const i=o.type;switch(i){case"play":case"pause":case"prefetch":case"destroy":return{type:i};case"seek":return Ry(o.timeMs)?{type:i,timeMs:o.timeMs}:null;case"setMuted":return typeof o.muted=="boolean"?{type:i,muted:o.muted}:null;case"setVolume":return Ry(o.volume)?{type:i,volume:o.volume}:null;case"setHostScale":return Ry(o.scale)&&o.scale>0?{type:i,scale:o.scale}:null;default:return null}}var Ay={exports:{}},bu={},ZE;function XO(){if(ZE)return bu;ZE=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(O){if(O==null)return null;if(typeof O=="function")return O.$$typeof===W?null:O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case U:return"Fragment";case G:return"Profiler";case B:return"StrictMode";case se:return"Suspense";case le:return"SuspenseList";case Y:return"Activity"}if(typeof O=="object")switch(typeof O.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),O.$$typeof){case L:return"Portal";case K:return O.displayName||"Context";case P:return(O._context.displayName||"Context")+".Consumer";case ne:var te=O.render;return O=O.displayName,O||(O=te.displayName||te.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case F:return te=O.displayName||null,te!==null?te:o(O.type)||"Memo";case X:te=O._payload,O=O._init;try{return o(O(te))}catch{}}return null}function i(O){return""+O}function l(O){try{i(O);var te=!1}catch{te=!0}if(te){te=console;var ve=te.error,fe=typeof Symbol=="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return ve.call(te,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",fe),i(O)}}function u(O){if(O===U)return"<>";if(typeof O=="object"&&O!==null&&O.$$typeof===X)return"<...>";try{var te=o(O);return te?"<"+te+">":"<...>"}catch{return"<...>"}}function f(){var O=I.A;return O===null?null:O.getOwner()}function p(){return Error("react-stack-top-frame")}function h(O){if(Q.call(O,"key")){var te=Object.getOwnPropertyDescriptor(O,"key").get;if(te&&te.isReactWarning)return!1}return O.key!==void 0}function m(O,te){function ve(){Z||(Z=!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)",te))}ve.isReactWarning=!0,Object.defineProperty(O,"key",{get:ve,configurable:!0})}function E(){var O=o(this.type);return pe[O]||(pe[O]=!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.")),O=this.props.ref,O!==void 0?O:null}function x(O,te,ve,fe,ot,hn){var xe=ve.ref;return O={$$typeof:C,type:O,key:te,props:ve,_owner:fe},(xe!==void 0?xe:null)!==null?Object.defineProperty(O,"ref",{enumerable:!1,get:E}):Object.defineProperty(O,"ref",{enumerable:!1,value:null}),O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(O,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(O,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ot}),Object.defineProperty(O,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:hn}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O}function T(O,te,ve,fe,ot,hn){var xe=te.children;if(xe!==void 0)if(fe)if(Se(xe)){for(fe=0;fe<xe.length;fe++)v(xe[fe]);Object.freeze&&Object.freeze(xe)}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(xe);if(Q.call(te,"key")){xe=o(O);var Tt=Object.keys(te).filter(function(zt){return zt!=="key"});fe=0<Tt.length?"{key: someKey, "+Tt.join(": ..., ")+": ...}":"{key: someKey}",Me[xe+fe]||(Tt=0<Tt.length?"{"+Tt.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} />`,fe,xe,Tt,xe),Me[xe+fe]=!0)}if(xe=null,ve!==void 0&&(l(ve),xe=""+ve),h(te)&&(l(te.key),xe=""+te.key),"key"in te){ve={};for(var Et in te)Et!=="key"&&(ve[Et]=te[Et])}else ve=te;return xe&&m(ve,typeof O=="function"?O.displayName||O.name||"Unknown":O),x(O,xe,ve,f(),ot,hn)}function v(O){g(O)?O._store&&(O._store.validated=1):typeof O=="object"&&O!==null&&O.$$typeof===X&&(O._payload.status==="fulfilled"?g(O._payload.value)&&O._payload.value._store&&(O._payload.value._store.validated=1):O._store&&(O._store.validated=1))}function g(O){return typeof O=="object"&&O!==null&&O.$$typeof===C}var w=zu(),C=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),K=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),W=Symbol.for("react.client.reference"),I=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,Se=Array.isArray,De=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(O){return O()}};var Z,pe={},oe=w.react_stack_bottom_frame.bind(w,p)(),me=De(u(p)),Me={};bu.Fragment=U,bu.jsx=function(O,te,ve){var fe=1e4>I.recentlyCreatedOwnerStacks++;return T(O,te,ve,!1,fe?Error("react-stack-top-frame"):oe,fe?De(u(O)):me)},bu.jsxs=function(O,te,ve){var fe=1e4>I.recentlyCreatedOwnerStacks++;return T(O,te,ve,!0,fe?Error("react-stack-top-frame"):oe,fe?De(u(O)):me)}}(),bu}var IE;function QO(){return IE||(IE=1,Ay.exports=XO()),Ay.exports}var j=QO();const Vw=A.createContext(null);function ZO({currentTimeMs:o,stepStartTimesMs:i,children:l}){return j.jsx(Vw.Provider,{value:{currentTimeMs:o,stepStartTimesMs:i},children:l})}function Md(){return A.useContext(Vw)}const IO={isVideoExport:!1,hideControls:!1,initialMuted:!0},Uw=A.createContext(IO);function JO({children:o}){return j.jsx(Uw.Provider,{value:{isVideoExport:!0,hideControls:!0,initialMuted:!1},children:o})}function Od(){return A.useContext(Uw)}var Eu=Rw();const Eg=A.createContext({});function xg(o){const i=A.useRef(null);return i.current===null&&(i.current=o()),i.current}const FO=typeof window<"u",Lw=FO?A.useLayoutEffect:A.useEffect,_d=A.createContext(null);function wg(o,i){o.indexOf(i)===-1&&o.push(i)}function vd(o,i){const l=o.indexOf(i);l>-1&&o.splice(l,1)}const to=(o,i,l)=>l>i?i:l<o?o:l;function Zy(o,i){return i?`${o}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${i}`:o}let kr=()=>{},Uo=()=>{};typeof process<"u"&&(kr=(o,i,l)=>{!o&&typeof console<"u"&&console.warn(Zy(i,l))},Uo=(o,i,l)=>{if(!o)throw new Error(Zy(i,l))});const Oi={},Bw=o=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(o);function kw(o){return typeof o=="object"&&o!==null}const Hw=o=>/^0[^.\s]+$/u.test(o);function Yw(o){let i;return()=>(i===void 0&&(i=o()),i)}const na=o=>o,KO=(o,i)=>l=>i(o(l)),Nu=(...o)=>o.reduce(KO),Mu=(o,i,l)=>{const u=i-o;return u===0?1:(l-o)/u};class Rg{constructor(){this.subscriptions=[]}add(i){return wg(this.subscriptions,i),()=>vd(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 Tn=o=>o*1e3,ta=o=>o/1e3;function qw(o,i){return i?o*(1e3/i):0}const JE=new Set;function jd(o,i,l){o||JE.has(i)||(console.warn(Zy(i,l)),JE.add(i))}const Gw=(o,i,l)=>(((1-3*l+3*i)*o+(3*l-6*i))*o+3*i)*o,WO=1e-7,e_=12;function t_(o,i,l,u,f){let p,h,m=0;do h=i+(l-i)/2,p=Gw(h,u,f)-o,p>0?l=h:i=h;while(Math.abs(p)>WO&&++m<e_);return h}function Vu(o,i,l,u){if(o===i&&l===u)return na;const f=p=>t_(p,0,1,o,l);return p=>p===0||p===1?p:Gw(f(p),i,u)}const Pw=o=>i=>i<=.5?o(2*i)/2:(2-o(2*(1-i)))/2,$w=o=>i=>1-o(1-i),Xw=Vu(.33,1.53,.69,.99),Ag=$w(Xw),Qw=Pw(Ag),Zw=o=>o>=1?1:(o*=2)<1?.5*Ag(o):.5*(2-Math.pow(2,-10*(o-1))),Cg=o=>1-Math.sin(Math.acos(o)),Iw=$w(Cg),Jw=Pw(Cg),n_=Vu(.42,0,1,1),a_=Vu(0,0,.58,1),Fw=Vu(.42,0,.58,1),o_=o=>Array.isArray(o)&&typeof o[0]!="number",Kw=o=>Array.isArray(o)&&typeof o[0]=="number",FE={linear:na,easeIn:n_,easeInOut:Fw,easeOut:a_,circIn:Cg,circInOut:Jw,circOut:Iw,backIn:Ag,backInOut:Qw,backOut:Xw,anticipate:Zw},i_=o=>typeof o=="string",KE=o=>{if(Kw(o)){Uo(o.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[i,l,u,f]=o;return Vu(i,l,u,f)}else if(i_(o))return Uo(FE[o]!==void 0,`Invalid easing type '${o}'`,"invalid-easing-type"),FE[o];return o},ed=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function s_(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 E(T){h.has(T)&&(x.schedule(T),o()),T(m)}const x={schedule:(T,v=!1,g=!1)=>{const C=g&&f?l:u;return v&&h.add(T),C.add(T),T},cancel:T=>{u.delete(T),h.delete(T)},process:T=>{if(m=T,f){p=!0;return}f=!0;const v=l;l=u,u=v,l.forEach(E),l.clear(),f=!1,p&&(p=!1,x.process(T))}};return x}const r_=40;function Ww(o,i){let l=!1,u=!0;const f={delta:0,timestamp:0,isProcessing:!1},p=()=>l=!0,h=ed.reduce((P,K)=>(P[K]=s_(p),P),{}),{setup:m,read:E,resolveKeyframes:x,preUpdate:T,update:v,preRender:g,render:w,postRender:C}=h,L=()=>{const P=Oi.useManualTiming,K=P?f.timestamp:performance.now();l=!1,P||(f.delta=u?1e3/60:Math.max(Math.min(K-f.timestamp,r_),1)),f.timestamp=K,f.isProcessing=!0,m.process(f),E.process(f),x.process(f),T.process(f),v.process(f),g.process(f),w.process(f),C.process(f),f.isProcessing=!1,l&&i&&(u=!1,o(L))},U=()=>{l=!0,u=!0,f.isProcessing||o(L)};return{schedule:ed.reduce((P,K)=>{const ne=h[K];return P[K]=(se,le=!1,F=!1)=>(l||U(),ne.schedule(se,le,F)),P},{}),cancel:P=>{for(let K=0;K<ed.length;K++)h[ed[K]].cancel(P)},state:f,steps:h}}const{schedule:at,cancel:_i,state:Zt,steps:Cy}=Ww(typeof requestAnimationFrame<"u"?requestAnimationFrame:na,!0);let ud;function l_(){ud=void 0}const fn={now:()=>(ud===void 0&&fn.set(Zt.isProcessing||Oi.useManualTiming?Zt.timestamp:performance.now()),ud),set:o=>{ud=o,queueMicrotask(l_)}},eR=o=>i=>typeof i=="string"&&i.startsWith(o),tR=eR("--"),u_=eR("var(--"),Dg=o=>u_(o)?c_.test(o.split("/*")[0].trim()):!1,c_=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function WE(o){return typeof o!="string"?!1:o.split("/*")[0].includes("var(--")}const Hr={test:o=>typeof o=="number",parse:parseFloat,transform:o=>o},Ou={...Hr,transform:o=>to(0,1,o)},td={...Hr,default:1},Ru=o=>Math.round(o*1e5)/1e5,Mg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function f_(o){return o==null}const d_=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Og=(o,i)=>l=>!!(typeof l=="string"&&d_.test(l)&&l.startsWith(o)||i&&!f_(l)&&Object.prototype.hasOwnProperty.call(l,i)),nR=(o,i,l)=>u=>{if(typeof u!="string")return u;const[f,p,h,m]=u.match(Mg);return{[o]:parseFloat(f),[i]:parseFloat(p),[l]:parseFloat(h),alpha:m!==void 0?parseFloat(m):1}},h_=o=>to(0,255,o),Dy={...Hr,transform:o=>Math.round(h_(o))},xs={test:Og("rgb","red"),parse:nR("red","green","blue"),transform:({red:o,green:i,blue:l,alpha:u=1})=>"rgba("+Dy.transform(o)+", "+Dy.transform(i)+", "+Dy.transform(l)+", "+Ru(Ou.transform(u))+")"};function p_(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 Iy={test:Og("#"),parse:p_,transform:xs.transform},Uu=o=>({test:i=>typeof i=="string"&&i.endsWith(o)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${o}`}),Ci=Uu("deg"),eo=Uu("%"),he=Uu("px"),m_=Uu("vh"),y_=Uu("vw"),ex={...eo,parse:o=>eo.parse(o)/100,transform:o=>eo.transform(o*100)},_r={test:Og("hsl","hue"),parse:nR("hue","saturation","lightness"),transform:({hue:o,saturation:i,lightness:l,alpha:u=1})=>"hsla("+Math.round(o)+", "+eo.transform(Ru(i))+", "+eo.transform(Ru(l))+", "+Ru(Ou.transform(u))+")"},jt={test:o=>xs.test(o)||Iy.test(o)||_r.test(o),parse:o=>xs.test(o)?xs.parse(o):_r.test(o)?_r.parse(o):Iy.parse(o),transform:o=>typeof o=="string"?o:o.hasOwnProperty("red")?xs.transform(o):_r.transform(o),getAnimatableNone:o=>{const i=jt.parse(o);return i.alpha=0,jt.transform(i)}},g_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function v_(o){var i,l;return isNaN(o)&&typeof o=="string"&&(((i=o.match(Mg))==null?void 0:i.length)||0)+(((l=o.match(g_))==null?void 0:l.length)||0)>0}const aR="number",oR="color",b_="var",S_="var(",tx="${}",T_=/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 Ur(o){const i=o.toString(),l=[],u={color:[],number:[],var:[]},f=[];let p=0;const m=i.replace(T_,E=>(jt.test(E)?(u.color.push(p),f.push(oR),l.push(jt.parse(E))):E.startsWith(S_)?(u.var.push(p),f.push(b_),l.push(E)):(u.number.push(p),f.push(aR),l.push(parseFloat(E))),++p,tx)).split(tx);return{values:l,split:m,indexes:u,types:f}}function E_(o){return Ur(o).values}function iR({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===aR?f+=Ru(u[p]):h===oR?f+=jt.transform(u[p]):f+=u[p]}return f}}function x_(o){return iR(Ur(o))}const w_=o=>typeof o=="number"?0:jt.test(o)?jt.getAnimatableNone(o):o,R_=(o,i)=>typeof o=="number"?i!=null&&i.trim().endsWith("/")?o:0:w_(o);function A_(o){const i=Ur(o);return iR(i)(i.values.map((u,f)=>R_(u,i.split[f])))}const ba={test:v_,parse:E_,createTransformer:x_,getAnimatableNone:A_};function My(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 C_({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,E=2*l-m;f=My(E,m,o+1/3),p=My(E,m,o),h=My(E,m,o-1/3)}return{red:Math.round(f*255),green:Math.round(p*255),blue:Math.round(h*255),alpha:u}}function bd(o,i){return l=>l>0?i:o}const ct=(o,i,l)=>o+(i-o)*l,Oy=(o,i,l)=>{const u=o*o,f=l*(i*i-u)+u;return f<0?0:Math.sqrt(f)},D_=[Iy,xs,_r],M_=o=>D_.find(i=>i.test(o));function nx(o){const i=M_(o);if(kr(!!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===_r&&(l=C_(l)),l}const ax=(o,i)=>{const l=nx(o),u=nx(i);if(!l||!u)return bd(o,i);const f={...l};return p=>(f.red=Oy(l.red,u.red,p),f.green=Oy(l.green,u.green,p),f.blue=Oy(l.blue,u.blue,p),f.alpha=ct(l.alpha,u.alpha,p),xs.transform(f))},Jy=new Set(["none","hidden"]);function O_(o,i){return Jy.has(o)?l=>l<=0?o:i:l=>l>=1?i:o}function __(o,i){return l=>ct(o,i,l)}function _g(o){return typeof o=="number"?__:typeof o=="string"?Dg(o)?bd:jt.test(o)?ax:N_:Array.isArray(o)?sR:typeof o=="object"?jt.test(o)?ax:j_:bd}function sR(o,i){const l=[...o],u=l.length,f=o.map((p,h)=>_g(p)(p,i[h]));return p=>{for(let h=0;h<u;h++)l[h]=f[h](p);return l}}function j_(o,i){const l={...o,...i},u={};for(const f in l)o[f]!==void 0&&i[f]!==void 0&&(u[f]=_g(o[f])(o[f],i[f]));return f=>{for(const p in u)l[p]=u[p](f);return l}}function z_(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 N_=(o,i)=>{const l=ba.createTransformer(i),u=Ur(o),f=Ur(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?Jy.has(o)&&!f.values.length||Jy.has(i)&&!u.values.length?O_(o,i):Nu(sR(z_(u,f),f.values),l):(kr(!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"),bd(o,i))};function rR(o,i,l){return typeof o=="number"&&typeof i=="number"&&typeof l=="number"?ct(o,i,l):_g(o)(o,i)}const V_=o=>{const i=({timestamp:l})=>o(l);return{start:(l=!0)=>at.update(i,l),stop:()=>_i(i),now:()=>Zt.isProcessing?Zt.timestamp:fn.now()}},lR=(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)})`},Sd=2e4;function jg(o){let i=0;const l=50;let u=o.next(i);for(;!u.done&&i<Sd;)i+=l,u=o.next(i);return i>=Sd?1/0:i}function U_(o,i=100,l){const u=l({...o,keyframes:[0,i]}),f=Math.min(jg(u),Sd);return{type:"keyframes",ease:p=>u.next(f*p).value/i,duration:ta(f)}}const mt={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 Fy(o,i){return o*Math.sqrt(1-i*i)}const L_=12;function B_(o,i,l){let u=l;for(let f=1;f<L_;f++)u=u-o(u)/i(u);return u}const _y=.001;function k_({duration:o=mt.duration,bounce:i=mt.bounce,velocity:l=mt.velocity,mass:u=mt.mass}){let f,p;kr(o<=Tn(mt.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let h=1-i;h=to(mt.minDamping,mt.maxDamping,h),o=to(mt.minDuration,mt.maxDuration,ta(o)),h<1?(f=x=>{const T=x*h,v=T*o,g=T-l,w=Fy(x,h),C=Math.exp(-v);return _y-g/w*C},p=x=>{const v=x*h*o,g=v*l+l,w=Math.pow(h,2)*Math.pow(x,2)*o,C=Math.exp(-v),L=Fy(Math.pow(x,2),h);return(-f(x)+_y>0?-1:1)*((g-w)*C)/L}):(f=x=>{const T=Math.exp(-x*o),v=(x-l)*o+1;return-_y+T*v},p=x=>{const T=Math.exp(-x*o),v=(l-x)*(o*o);return T*v});const m=5/o,E=B_(f,p,m);if(o=Tn(o),isNaN(E))return{stiffness:mt.stiffness,damping:mt.damping,duration:o};{const x=Math.pow(E,2)*u;return{stiffness:x,damping:h*2*Math.sqrt(u*x),duration:o}}}const H_=["duration","bounce"],Y_=["stiffness","damping","mass"];function ox(o,i){return i.some(l=>o[l]!==void 0)}function q_(o){let i={velocity:mt.velocity,stiffness:mt.stiffness,damping:mt.damping,mass:mt.mass,isResolvedFromDuration:!1,...o};if(!ox(o,Y_)&&ox(o,H_))if(i.velocity=0,o.visualDuration){const l=o.visualDuration,u=2*Math.PI/(l*1.2),f=u*u,p=2*to(.05,1,1-(o.bounce||0))*Math.sqrt(f);i={...i,mass:mt.mass,stiffness:f,damping:p}}else{const l=k_({...o,velocity:0});i={...i,...l,mass:mt.mass},i.isResolvedFromDuration=!0}return i}function Td(o=mt.visualDuration,i=mt.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:E,damping:x,mass:T,duration:v,velocity:g,isResolvedFromDuration:w}=q_({...l,velocity:-ta(l.velocity||0)}),C=g||0,L=x/(2*Math.sqrt(E*T)),U=h-p,B=ta(Math.sqrt(E/T)),G=Math.abs(U)<5;u||(u=G?mt.restSpeed.granular:mt.restSpeed.default),f||(f=G?mt.restDelta.granular:mt.restDelta.default);let P,K,ne,se,le,F;if(L<1)ne=Fy(B,L),se=(C+L*B*U)/ne,P=Y=>{const W=Math.exp(-L*B*Y);return h-W*(se*Math.sin(ne*Y)+U*Math.cos(ne*Y))},le=L*B*se+U*ne,F=L*B*U-se*ne,K=Y=>Math.exp(-L*B*Y)*(le*Math.sin(ne*Y)+F*Math.cos(ne*Y));else if(L===1){P=W=>h-Math.exp(-B*W)*(U+(C+B*U)*W);const Y=C+B*U;K=W=>Math.exp(-B*W)*(B*Y*W-C)}else{const Y=B*Math.sqrt(L*L-1);P=Se=>{const De=Math.exp(-L*B*Se),Z=Math.min(Y*Se,300);return h-De*((C+L*B*U)*Math.sinh(Z)+Y*U*Math.cosh(Z))/Y};const W=(C+L*B*U)/Y,I=L*B*W-U*Y,Q=L*B*U-W*Y;K=Se=>{const De=Math.exp(-L*B*Se),Z=Math.min(Y*Se,300);return De*(I*Math.sinh(Z)+Q*Math.cosh(Z))}}const X={calculatedDuration:w&&v||null,velocity:Y=>Tn(K(Y)),next:Y=>{if(!w&&L<1){const I=Math.exp(-L*B*Y),Q=Math.sin(ne*Y),Se=Math.cos(ne*Y),De=h-I*(se*Q+U*Se),Z=Tn(I*(le*Q+F*Se));return m.done=Math.abs(Z)<=u&&Math.abs(h-De)<=f,m.value=m.done?h:De,m}const W=P(Y);if(w)m.done=Y>=v;else{const I=Tn(K(Y));m.done=Math.abs(I)<=u&&Math.abs(h-W)<=f}return m.value=m.done?h:W,m},toString:()=>{const Y=Math.min(jg(X),Sd),W=lR(I=>X.next(Y*I).value,Y,30);return Y+"ms "+W},toTransition:()=>{}};return X}Td.applyToOptions=o=>{const i=U_(o,100,Td);return o.ease=i.ease,o.duration=Tn(i.duration),o.type="keyframes",o};const G_=5;function uR(o,i,l){const u=Math.max(i-G_,0);return qw(l-o(u),i-u)}function Ky({keyframes:o,velocity:i=0,power:l=.8,timeConstant:u=325,bounceDamping:f=10,bounceStiffness:p=500,modifyTarget:h,min:m,max:E,restDelta:x=.5,restSpeed:T}){const v=o[0],g={done:!1,value:v},w=F=>m!==void 0&&F<m||E!==void 0&&F>E,C=F=>m===void 0?E:E===void 0||Math.abs(m-F)<Math.abs(E-F)?m:E;let L=l*i;const U=v+L,B=h===void 0?U:h(U);B!==U&&(L=B-v);const G=F=>-L*Math.exp(-F/u),P=F=>B+G(F),K=F=>{const X=G(F),Y=P(F);g.done=Math.abs(X)<=x,g.value=g.done?B:Y};let ne,se;const le=F=>{w(g.value)&&(ne=F,se=Td({keyframes:[g.value,C(g.value)],velocity:uR(P,F,g.value),damping:f,stiffness:p,restDelta:x,restSpeed:T}))};return le(0),{calculatedDuration:null,next:F=>{let X=!1;return!se&&ne===void 0&&(X=!0,K(F),le(F)),ne!==void 0&&F>=ne?se.next(F-ne):(!X&&K(F),g)}}}function P_(o,i,l){const u=[],f=l||Oi.mix||rR,p=o.length-1;for(let h=0;h<p;h++){let m=f(o[h],o[h+1]);if(i){const E=Array.isArray(i)?i[h]||na:i;m=Nu(E,m)}u.push(m)}return u}function $_(o,i,{clamp:l=!0,ease:u,mixer:f}={}){const p=o.length;if(Uo(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=P_(i,u,f),E=m.length,x=T=>{if(h&&T<o[0])return i[0];let v=0;if(E>1)for(;v<o.length-2&&!(T<o[v+1]);v++);const g=Mu(o[v],o[v+1],T);return m[v](g)};return l?T=>x(to(o[0],o[p-1],T)):x}function X_(o,i){const l=o[o.length-1];for(let u=1;u<=i;u++){const f=Mu(0,i,u);o.push(ct(l,1,f))}}function Q_(o){const i=[0];return X_(i,o.length-1),i}function Z_(o,i){return o.map(l=>l*i)}function I_(o,i){return o.map(()=>i||Fw).splice(0,o.length-1)}function jr({duration:o=300,keyframes:i,times:l,ease:u="easeInOut"}){const f=o_(u)?u.map(KE):KE(u),p={done:!1,value:i[0]},h=Z_(l&&l.length===i.length?l:Q_(i),o),m=$_(h,i,{ease:Array.isArray(f)?f:I_(i,f)});return{calculatedDuration:o,next:E=>(p.value=m(E),p.done=E>=o,p)}}const J_=o=>o!==null;function zd(o,{repeat:i,repeatType:l="loop"},u,f=1){const p=o.filter(J_),m=f<0||i&&l!=="loop"&&i%2===1?0:p.length-1;return!m||u===void 0?p[m]:u}const F_={decay:Ky,inertia:Ky,tween:jr,keyframes:jr,spring:Td};function cR(o){typeof o.type=="string"&&(o.type=F_[o.type])}class zg{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 K_=o=>o/100;class Ed extends zg{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!==fn.now()&&this.tick(fn.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;cR(i);const{type:l=jr,repeat:u=0,repeatDelay:f=0,repeatType:p,velocity:h=0}=i;let{keyframes:m}=i;const E=l||jr;E!==jr&&Uo(m.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${m}`,"spring-two-frames"),E!==jr&&typeof m[0]!="number"&&(this.mixKeyframes=Nu(K_,rR(m[0],m[1])),m=[0,100]);const x=E({...i,keyframes:m});p==="mirror"&&(this.mirroredGenerator=E({...i,keyframes:[...m].reverse(),velocity:-h})),x.calculatedDuration===null&&(x.calculatedDuration=jg(x));const{calculatedDuration:T}=x;this.calculatedDuration=T,this.resolvedDuration=T+f,this.totalDuration=this.resolvedDuration*(u+1)-f,this.generator=x}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:E}=this;if(this.startTime===null)return u.next(0);const{delay:x=0,keyframes:T,repeat:v,repeatType:g,repeatDelay:w,type:C,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-x*(this.playbackSpeed>=0?1:-1),G=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,K=u;if(v){const F=Math.min(this.currentTime,f)/m;let X=Math.floor(F),Y=F%1;!Y&&F>=1&&(Y=1),Y===1&&X--,X=Math.min(X,v+1),!!(X%2)&&(g==="reverse"?(Y=1-Y,w&&(Y-=w/m)):g==="mirror"&&(K=h)),P=to(0,1,Y)*m}let ne;G?(this.delayState.value=T[0],ne=this.delayState):ne=K.next(P),p&&!G&&(ne.value=p(ne.value));let{done:se}=ne;!G&&E!==null&&(se=this.playbackSpeed>=0?this.currentTime>=f:this.currentTime<=0);const le=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&se);return le&&C!==Ky&&(ne.value=zd(T,this.options,U,this.speed)),L&&L(ne.value),le&&this.finish(),ne}then(i,l){return this.finished.then(i,l)}get duration(){return ta(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+ta(i)}get time(){return ta(this.currentTime)}set time(i){i=Tn(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 uR(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(fn.now()),this.playbackSpeed=i,l&&this.driver&&(this.time=ta(this.currentTime))}play(){var f,p;if(this.isStopped)return;const{driver:i=V_,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(fn.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 W_(o){for(let i=1;i<o.length;i++)o[i]??(o[i]=o[i-1])}const ws=o=>o*180/Math.PI,Wy=o=>{const i=ws(Math.atan2(o[1],o[0]));return eg(i)},e3={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:o=>(Math.abs(o[0])+Math.abs(o[3]))/2,rotate:Wy,rotateZ:Wy,skewX:o=>ws(Math.atan(o[1])),skewY:o=>ws(Math.atan(o[2])),skew:o=>(Math.abs(o[1])+Math.abs(o[2]))/2},eg=o=>(o=o%360,o<0&&(o+=360),o),ix=Wy,sx=o=>Math.sqrt(o[0]*o[0]+o[1]*o[1]),rx=o=>Math.sqrt(o[4]*o[4]+o[5]*o[5]),t3={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:sx,scaleY:rx,scale:o=>(sx(o)+rx(o))/2,rotateX:o=>eg(ws(Math.atan2(o[6],o[5]))),rotateY:o=>eg(ws(Math.atan2(-o[2],o[0]))),rotateZ:ix,rotate:ix,skewX:o=>ws(Math.atan(o[4])),skewY:o=>ws(Math.atan(o[1])),skew:o=>(Math.abs(o[1])+Math.abs(o[4]))/2};function tg(o){return o.includes("scale")?1:0}function ng(o,i){if(!o||o==="none")return tg(i);const l=o.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let u,f;if(l)u=t3,f=l;else{const m=o.match(/^matrix\(([-\d.e\s,]+)\)$/u);u=e3,f=m}if(!f)return tg(i);const p=u[i],h=f[1].split(",").map(a3);return typeof p=="function"?p(h):h[p]}const n3=(o,i)=>{const{transform:l="none"}=getComputedStyle(o);return ng(l,i)};function a3(o){return parseFloat(o.trim())}const Yr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qr=new Set(Yr),lx=o=>o===Hr||o===he,o3=new Set(["x","y","z"]),i3=Yr.filter(o=>!o3.has(o));function s3(o){const i=[];return i3.forEach(l=>{const u=o.getValue(l);u!==void 0&&(i.push([l,u.get()]),u.set(l.startsWith("scale")?1:0))}),i}const Mi={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})=>ng(i,"x"),y:(o,{transform:i})=>ng(i,"y")};Mi.translateX=Mi.x;Mi.translateY=Mi.y;const Rs=new Set;let ag=!1,og=!1,ig=!1;function fR(){if(og){const o=Array.from(Rs).filter(u=>u.needsMeasurement),i=new Set(o.map(u=>u.element)),l=new Map;i.forEach(u=>{const f=s3(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)})}og=!1,ag=!1,Rs.forEach(o=>o.complete(ig)),Rs.clear()}function dR(){Rs.forEach(o=>{o.readKeyframes(),o.needsMeasurement&&(og=!0)})}function r3(){ig=!0,dR(),fR(),ig=!1}class Ng{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?(Rs.add(this),ag||(ag=!0,at.read(dR),at.resolveKeyframes(fR))):(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])}W_(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),Rs.delete(this)}cancel(){this.state==="scheduled"&&(Rs.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const l3=o=>o.startsWith("--");function hR(o,i,l){l3(i)?o.style.setProperty(i,l):o.style[i]=l}const u3={};function pR(o,i){const l=Yw(o);return()=>u3[i]??l()}const c3=pR(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),mR=pR(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),xu=([o,i,l,u])=>`cubic-bezier(${o}, ${i}, ${l}, ${u})`,ux={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xu([0,.65,.55,1]),circOut:xu([.55,0,1,.45]),backIn:xu([.31,.01,.66,-.59]),backOut:xu([.33,1.53,.69,.99])};function yR(o,i){if(o)return typeof o=="function"?mR()?lR(o,i):"ease-out":Kw(o)?xu(o):Array.isArray(o)?o.map(l=>yR(l,i)||ux.easeOut):ux[o]}function f3(o,i,l,{delay:u=0,duration:f=300,repeat:p=0,repeatType:h="loop",ease:m="easeOut",times:E}={},x=void 0){const T={[i]:l};E&&(T.offset=E);const v=yR(m,f);Array.isArray(v)&&(T.easing=v);const g={delay:u,duration:f,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:p+1,direction:h==="reverse"?"alternate":"normal"};return x&&(g.pseudoElement=x),o.animate(T,g)}function gR(o){return typeof o=="function"&&"applyToOptions"in o}function d3({type:o,...i}){return gR(o)&&mR()?o.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class vR extends zg{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:E}=i;this.isPseudoElement=!!p,this.allowFlatten=h,this.options=i,Uo(typeof i.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const x=d3(i);this.animation=f3(l,u,f,x,p),x.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!p){const T=zd(f,this.options,m,this.speed);this.updateMotionValue&&this.updateMotionValue(T),hR(l,u,T),this.animation.cancel()}E==null||E(),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 ta(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+ta(i)}get time(){return ta(Number(this.animation.currentTime)||0)}set time(i){const l=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Tn(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&&c3()?(this.animation.timeline=i,l&&(this.animation.rangeStart=l),u&&(this.animation.rangeEnd=u),na):f(this)}}const bR={anticipate:Zw,backInOut:Qw,circInOut:Jw};function h3(o){return o in bR}function p3(o){typeof o.ease=="string"&&h3(o.ease)&&(o.ease=bR[o.ease])}const jy=10;class m3 extends vR{constructor(i){p3(i),cR(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 Ed({...h,autoplay:!1}),E=Math.max(jy,fn.now()-this.startTime),x=to(0,jy,E-jy),T=m.sample(E).value,{name:v}=this.options;p&&v&&hR(p,v,T),l.setWithVelocity(m.sample(Math.max(0,E-x)).value,T,x),m.stop()}}const cx=(o,i)=>i==="zIndex"?!1:!!(typeof o=="number"||Array.isArray(o)||typeof o=="string"&&(ba.test(o)||o==="0")&&!o.startsWith("url("));function y3(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 g3(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=cx(f,i),m=cx(p,i);return kr(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:y3(o)||(l==="spring"||gR(l))&&u}function sg(o){o.duration=0,o.type="keyframes"}const SR=new Set(["opacity","clipPath","filter","transform"]),v3=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function b3(o){for(let i=0;i<o.length;i++)if(typeof o[i]=="string"&&v3.test(o[i]))return!0;return!1}const S3=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),T3=Yw(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function E3(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:x,transformTemplate:T}=i.owner.getProps();return T3()&&l&&(SR.has(l)||S3.has(l)&&b3(m))&&(l!=="transform"||!T)&&!x&&!u&&f!=="mirror"&&p!==0&&h!=="inertia"}const x3=40;class w3 extends zg{constructor({autoplay:i=!0,delay:l=0,type:u="keyframes",repeat:f=0,repeatDelay:p=0,repeatType:h="loop",keyframes:m,name:E,motionValue:x,element:T,...v}){var C;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=fn.now();const g={autoplay:i,delay:l,type:u,repeat:f,repeatDelay:p,repeatType:h,name:E,motionValue:x,element:T,...v},w=(T==null?void 0:T.KeyframeResolver)||Ng;this.keyframeResolver=new w(m,(L,U,B)=>this.onKeyframesResolved(L,U,g,!B),E,x,T),(C=this.keyframeResolver)==null||C.scheduleResolve()}onKeyframesResolved(i,l,u,f){var B,G;this.keyframeResolver=void 0;const{name:p,type:h,velocity:m,delay:E,isHandoff:x,onUpdate:T}=u;this.resolvedAt=fn.now();let v=!0;g3(i,p,h,m)||(v=!1,(Oi.instantAnimations||!E)&&(T==null||T(zd(i,u,l))),i[0]=i[i.length-1],sg(u),u.repeat=0);const w={startTime:f?this.resolvedAt?this.resolvedAt-this.createdAt>x3?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...u,keyframes:i},C=v&&!x&&E3(w),L=(G=(B=w.motionValue)==null?void 0:B.owner)==null?void 0:G.current;let U;if(C)try{U=new m3({...w,element:L})}catch{U=new Ed(w)}else U=new Ed(w);U.finished.then(()=>{this.notifyFinished()}).catch(na),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(),r3()),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 TR(o,i,l,u=0,f=1){const p=Array.from(o).sort((x,T)=>x.sortNodePosition(T)).indexOf(i),h=o.size,m=(h-1)*u;return typeof l=="function"?l(p,h):f===1?p*u:m-p*u}const R3=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function A3(o){const i=R3.exec(o);if(!i)return[,];const[,l,u,f]=i;return[`--${l??u}`,f]}const C3=4;function ER(o,i,l=1){Uo(l<=C3,`Max CSS variable fallback depth detected in property "${o}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[u,f]=A3(o);if(!u)return;const p=window.getComputedStyle(i).getPropertyValue(u);if(p){const h=p.trim();return Bw(h)?parseFloat(h):h}return Dg(f)?ER(f,i,l+1):f}const D3={type:"spring",stiffness:500,damping:25,restSpeed:10},M3=o=>({type:"spring",stiffness:550,damping:o===0?2*Math.sqrt(550):30,restSpeed:10}),O3={type:"keyframes",duration:.8},_3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},j3=(o,{keyframes:i})=>i.length>2?O3:qr.has(o)?o.startsWith("scale")?M3(i[1]):D3:_3;function xR(o,i){if(o!=null&&o.inherit&&i){const{inherit:l,...u}=o;return{...i,...u}}return o}function Vg(o,i){const l=(o==null?void 0:o[i])??(o==null?void 0:o.default)??o;return l!==o?xR(l,o):l}const z3=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function N3(o){for(const i in o)if(!z3.has(i))return!0;return!1}const Ug=(o,i,l,u={},f,p)=>h=>{const m=Vg(u,o)||{},E=m.delay||u.delay||0;let{elapsed:x=0}=u;x=x-Tn(E);const T={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:i.getVelocity(),...m,delay:-x,onUpdate:g=>{i.set(g),m.onUpdate&&m.onUpdate(g)},onComplete:()=>{h(),m.onComplete&&m.onComplete()},name:o,motionValue:i,element:p?void 0:f};N3(m)||Object.assign(T,j3(o,T)),T.duration&&(T.duration=Tn(T.duration)),T.repeatDelay&&(T.repeatDelay=Tn(T.repeatDelay)),T.from!==void 0&&(T.keyframes[0]=T.from);let v=!1;if((T.type===!1||T.duration===0&&!T.repeatDelay)&&(sg(T),T.delay===0&&(v=!0)),(Oi.instantAnimations||Oi.skipAnimations||f!=null&&f.shouldSkipAnimations)&&(v=!0,sg(T),T.delay=0),T.allowFlatten=!m.type&&!m.ease,v&&!p&&i.get()!==void 0){const g=zd(T.keyframes,m);if(g!==void 0){at.update(()=>{T.onUpdate(g),T.onComplete()});return}}return m.isSync?new Ed(T):new w3(T)};function fx(o){const i=[{},{}];return o==null||o.values.forEach((l,u)=>{i[0][u]=l.get(),i[1][u]=l.getVelocity()}),i}function Lg(o,i,l,u){if(typeof i=="function"){const[f,p]=fx(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]=fx(u);i=i(l!==void 0?l:o.custom,f,p)}return i}function As(o,i,l){const u=o.getProps();return Lg(u,i,l!==void 0?l:u.custom,o)}const wR=new Set(["width","height","top","left","right","bottom",...Yr]),dx=30,V3=o=>!isNaN(parseFloat(o));class U3{constructor(i,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=u=>{var p;const f=fn.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=fn.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=V3(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return jd(!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 Rg);const u=this.events[i].add(l);return i==="change"?()=>{u(),at.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=fn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>dx)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,dx);return qw(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 Lr(o,i){return new U3(o,i)}const rg=o=>Array.isArray(o);function L3(o,i,l){o.hasValue(i)?o.getValue(i).set(l):o.addValue(i,Lr(l))}function B3(o){return rg(o)?o[o.length-1]||0:o}function k3(o,i){const l=As(o,i);let{transitionEnd:u={},transition:f={},...p}=l||{};p={...p,...u};for(const h in p){const m=B3(p[h]);L3(o,h,m)}}const It=o=>!!(o&&o.getVelocity);function H3(o){return!!(It(o)&&o.add)}function lg(o,i){const l=o.getValue("willChange");if(H3(l))return l.add(i);if(!l&&Oi.WillChange){const u=new Oi.WillChange("auto");o.addValue("willChange",u),u.add(i)}}function Bg(o){return o.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const Y3="framerAppearId",RR="data-"+Bg(Y3);function AR(o){return o.props[RR]}function q3({protectedKeys:o,needsAnimating:i},l){const u=o.hasOwnProperty(l)&&i[l]!==!0;return i[l]=!1,u}function CR(o,i,{delay:l=0,transitionOverride:u,type:f}={}){let{transition:p,transitionEnd:h,...m}=i;const E=o.getDefaultTransition();p=p?xR(p,E):E;const x=p==null?void 0:p.reduceMotion;u&&(p=u);const T=[],v=f&&o.animationState&&o.animationState.getState()[f];for(const g in m){const w=o.getValue(g,o.latestValues[g]??null),C=m[g];if(C===void 0||v&&q3(v,g))continue;const L={delay:l,...Vg(p||{},g)},U=w.get();if(U!==void 0&&!w.isAnimating()&&!Array.isArray(C)&&C===U&&!L.velocity){at.update(()=>w.set(C));continue}let B=!1;if(window.MotionHandoffAnimation){const K=AR(o);if(K){const ne=window.MotionHandoffAnimation(K,g,at);ne!==null&&(L.startTime=ne,B=!0)}}lg(o,g);const G=x??o.shouldReduceMotion;w.start(Ug(g,w,C,G&&wR.has(g)?{type:!1}:L,o,B));const P=w.animation;P&&T.push(P)}if(h){const g=()=>at.update(()=>{h&&k3(o,h)});T.length?Promise.all(T).then(g):g()}return T}function ug(o,i,l={}){var E;const u=As(o,i,l.type==="exit"?(E=o.presenceContext)==null?void 0:E.custom:void 0);let{transition:f=o.getDefaultTransition()||{}}=u||{};l.transitionOverride&&(f=l.transitionOverride);const p=u?()=>Promise.all(CR(o,u,l)):()=>Promise.resolve(),h=o.variantChildren&&o.variantChildren.size?(x=0)=>{const{delayChildren:T=0,staggerChildren:v,staggerDirection:g}=f;return G3(o,i,x,T,v,g,l)}:()=>Promise.resolve(),{when:m}=f;if(m){const[x,T]=m==="beforeChildren"?[p,h]:[h,p];return x().then(()=>T())}else return Promise.all([p(),h(l.delay)])}function G3(o,i,l=0,u=0,f=0,p=1,h){const m=[];for(const E of o.variantChildren)E.notify("AnimationStart",i),m.push(ug(E,i,{...h,delay:l+(typeof u=="function"?0:u)+TR(o.variantChildren,E,u,f,p)}).then(()=>E.notify("AnimationComplete",i)));return Promise.all(m)}function P3(o,i,l={}){o.notify("AnimationStart",i);let u;if(Array.isArray(i)){const f=i.map(p=>ug(o,p,l));u=Promise.all(f)}else if(typeof i=="string")u=ug(o,i,l);else{const f=typeof i=="function"?As(o,i,l.custom):i;u=Promise.all(CR(o,f,l))}return u.then(()=>{o.notify("AnimationComplete",i)})}const $3={test:o=>o==="auto",parse:o=>o},DR=o=>i=>i.test(o),MR=[Hr,he,eo,Ci,y_,m_,$3],hx=o=>MR.find(DR(o));function X3(o){return typeof o=="number"?o===0:o!==null?o==="none"||o==="0"||Hw(o):!0}const Q3=new Set(["brightness","contrast","saturate","opacity"]);function Z3(o){const[i,l]=o.slice(0,-1).split("(");if(i==="drop-shadow")return o;const[u]=l.match(Mg)||[];if(!u)return o;const f=l.replace(u,"");let p=Q3.has(i)?1:0;return u!==l&&(p*=100),i+"("+p+f+")"}const I3=/\b([a-z-]*)\(.*?\)/gu,cg={...ba,getAnimatableNone:o=>{const i=o.match(I3);return i?i.map(Z3).join(" "):o}},fg={...ba,getAnimatableNone:o=>{const i=ba.parse(o);return ba.createTransformer(o)(i.map(u=>typeof u=="number"?0:typeof u=="object"?{...u,alpha:1}:u))}},px={...Hr,transform:Math.round},J3={rotate:Ci,rotateX:Ci,rotateY:Ci,rotateZ:Ci,scale:td,scaleX:td,scaleY:td,scaleZ:td,skew:Ci,skewX:Ci,skewY:Ci,distance:he,translateX:he,translateY:he,translateZ:he,x:he,y:he,z:he,perspective:he,transformPerspective:he,opacity:Ou,originX:ex,originY:ex,originZ:he},kg={borderWidth:he,borderTopWidth:he,borderRightWidth:he,borderBottomWidth:he,borderLeftWidth:he,borderRadius:he,borderTopLeftRadius:he,borderTopRightRadius:he,borderBottomRightRadius:he,borderBottomLeftRadius:he,width:he,maxWidth:he,height:he,maxHeight:he,top:he,right:he,bottom:he,left:he,inset:he,insetBlock:he,insetBlockStart:he,insetBlockEnd:he,insetInline:he,insetInlineStart:he,insetInlineEnd:he,padding:he,paddingTop:he,paddingRight:he,paddingBottom:he,paddingLeft:he,paddingBlock:he,paddingBlockStart:he,paddingBlockEnd:he,paddingInline:he,paddingInlineStart:he,paddingInlineEnd:he,margin:he,marginTop:he,marginRight:he,marginBottom:he,marginLeft:he,marginBlock:he,marginBlockStart:he,marginBlockEnd:he,marginInline:he,marginInlineStart:he,marginInlineEnd:he,fontSize:he,backgroundPositionX:he,backgroundPositionY:he,...J3,zIndex:px,fillOpacity:Ou,strokeOpacity:Ou,numOctaves:px},F3={...kg,color:jt,backgroundColor:jt,outlineColor:jt,fill:jt,stroke:jt,borderColor:jt,borderTopColor:jt,borderRightColor:jt,borderBottomColor:jt,borderLeftColor:jt,filter:cg,WebkitFilter:cg,mask:fg,WebkitMask:fg},OR=o=>F3[o],K3=new Set([cg,fg]);function _R(o,i){let l=OR(o);return K3.has(l)||(l=ba),l.getAnimatableNone?l.getAnimatableNone(i):void 0}const W3=new Set(["auto","none","0"]);function ej(o,i,l){let u=0,f;for(;u<o.length&&!f;){const p=o[u];typeof p=="string"&&!W3.has(p)&&Ur(p).values.length&&(f=o[u]),u++}if(f&&l)for(const p of i)o[p]=_R(l,f)}class tj extends Ng{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 T=0;T<i.length;T++){let v=i[T];if(typeof v=="string"&&(v=v.trim(),Dg(v))){const g=ER(v,l.current);g!==void 0&&(i[T]=g),T===i.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!wR.has(u)||i.length!==2)return;const[f,p]=i,h=hx(f),m=hx(p),E=WE(f),x=WE(p);if(E!==x&&Mi[u]){this.needsMeasurement=!0;return}if(h!==m)if(lx(h)&&lx(m))for(let T=0;T<i.length;T++){const v=i[T];typeof v=="string"&&(i[T]=parseFloat(v))}else Mi[u]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:l}=this,u=[];for(let f=0;f<i.length;f++)(i[f]===null||X3(i[f]))&&u.push(f);u.length&&ej(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=Mi[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]=Mi[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(([E,x])=>{i.getValue(E).set(x)}),this.resolveNoneKeyframes()}}function jR(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 zR=(o,i)=>i&&typeof o=="number"?i.transform(o):o;function cd(o){return kw(o)&&"offsetHeight"in o&&!("ownerSVGElement"in o)}const{schedule:Hg}=Ww(queueMicrotask,!1),va={x:!1,y:!1};function NR(){return va.x||va.y}function nj(o){return o==="x"||o==="y"?va[o]?null:(va[o]=!0,()=>{va[o]=!1}):va.x||va.y?null:(va.x=va.y=!0,()=>{va.x=va.y=!1})}function VR(o,i){const l=jR(o),u=new AbortController,f={passive:!0,...i,signal:u.signal};return[l,f,()=>u.abort()]}function aj(o){return!(o.pointerType==="touch"||NR())}function oj(o,i,l={}){const[u,f,p]=VR(o,l);return u.forEach(h=>{let m=!1,E=!1,x;const T=()=>{h.removeEventListener("pointerleave",C)},v=U=>{x&&(x(U),x=void 0),T()},g=U=>{m=!1,window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",g),E&&(E=!1,v(U))},w=()=>{m=!0,window.addEventListener("pointerup",g,f),window.addEventListener("pointercancel",g,f)},C=U=>{if(U.pointerType!=="touch"){if(m){E=!0;return}v(U)}},L=U=>{if(!aj(U))return;E=!1;const B=i(h,U);typeof B=="function"&&(x=B,h.addEventListener("pointerleave",C,f))};h.addEventListener("pointerenter",L,f),h.addEventListener("pointerdown",w,f)}),p}const UR=(o,i)=>i?o===i?!0:UR(o,i.parentElement):!1,Yg=o=>o.pointerType==="mouse"?typeof o.button!="number"||o.button<=0:o.isPrimary!==!1,ij=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function sj(o){return ij.has(o.tagName)||o.isContentEditable===!0}const rj=new Set(["INPUT","SELECT","TEXTAREA"]);function lj(o){return rj.has(o.tagName)||o.isContentEditable===!0}const fd=new WeakSet;function mx(o){return i=>{i.key==="Enter"&&o(i)}}function zy(o,i){o.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const uj=(o,i)=>{const l=o.currentTarget;if(!l)return;const u=mx(()=>{if(fd.has(l))return;zy(l,"down");const f=mx(()=>{zy(l,"up")}),p=()=>zy(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 yx(o){return Yg(o)&&!NR()}const gx=new WeakSet;function cj(o,i,l={}){const[u,f,p]=VR(o,l),h=m=>{const E=m.currentTarget;if(!yx(m)||gx.has(m))return;fd.add(E),l.stopPropagation&&gx.add(m);const x=i(E,m),T=(w,C)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",g),fd.has(E)&&fd.delete(E),yx(w)&&typeof x=="function"&&x(w,{success:C})},v=w=>{T(w,E===window||E===document||l.useGlobalTarget||UR(E,w.target))},g=w=>{T(w,!1)};window.addEventListener("pointerup",v,f),window.addEventListener("pointercancel",g,f)};return u.forEach(m=>{(l.useGlobalTarget?window:m).addEventListener("pointerdown",h,f),cd(m)&&(m.addEventListener("focus",x=>uj(x,f)),!sj(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),p}function qg(o){return kw(o)&&"ownerSVGElement"in o}const dd=new WeakMap;let Di;const LR=(o,i,l)=>(u,f)=>f&&f[0]?f[0][o+"Size"]:qg(u)&&"getBBox"in u?u.getBBox()[i]:u[l],fj=LR("inline","width","offsetWidth"),dj=LR("block","height","offsetHeight");function hj({target:o,borderBoxSize:i}){var l;(l=dd.get(o))==null||l.forEach(u=>{u(o,{get width(){return fj(o,i)},get height(){return dj(o,i)}})})}function pj(o){o.forEach(hj)}function mj(){typeof ResizeObserver>"u"||(Di=new ResizeObserver(pj))}function yj(o,i){Di||mj();const l=jR(o);return l.forEach(u=>{let f=dd.get(u);f||(f=new Set,dd.set(u,f)),f.add(i),Di==null||Di.observe(u)}),()=>{l.forEach(u=>{const f=dd.get(u);f==null||f.delete(i),f!=null&&f.size||Di==null||Di.unobserve(u)})}}const hd=new Set;let zr;function gj(){zr=()=>{const o={get width(){return window.innerWidth},get height(){return window.innerHeight}};hd.forEach(i=>i(o))},window.addEventListener("resize",zr)}function vj(o){return hd.add(o),zr||gj(),()=>{hd.delete(o),!hd.size&&typeof zr=="function"&&(window.removeEventListener("resize",zr),zr=void 0)}}function vx(o,i){return typeof o=="function"?vj(o):yj(o,i)}function bj(o){return qg(o)&&o.tagName==="svg"}const Sj=[...MR,jt,ba],Tj=o=>Sj.find(DR(o)),bx=()=>({translate:0,scale:1,origin:0,originPoint:0}),Nr=()=>({x:bx(),y:bx()}),Sx=()=>({min:0,max:0}),Lt=()=>({x:Sx(),y:Sx()}),Ej=new WeakMap;function Nd(o){return o!==null&&typeof o=="object"&&typeof o.start=="function"}function _u(o){return typeof o=="string"||Array.isArray(o)}const Gg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Pg=["initial",...Gg];function Vd(o){return Nd(o.animate)||Pg.some(i=>_u(o[i]))}function BR(o){return!!(Vd(o)||o.variants)}function xj(o,i,l){for(const u in i){const f=i[u],p=l[u];if(It(f))o.addValue(u,f);else if(It(p))o.addValue(u,Lr(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,Lr(h!==void 0?h:f,{owner:o}))}}for(const u in l)i[u]===void 0&&o.removeValue(u);return i}const xd={current:null},$g={current:!1},wj=typeof window<"u";function kR(){if($g.current=!0,!!wj)if(window.matchMedia){const o=window.matchMedia("(prefers-reduced-motion)"),i=()=>xd.current=o.matches;o.addEventListener("change",i),i()}else xd.current=!1}const Tx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let wd={};function HR(o){wd=o}function Rj(){return wd}class Aj{scrapeMotionValuesFromProps(i,l,u){return{}}constructor({parent:i,props:l,presenceContext:u,reducedMotionConfig:f,skipAnimations:p,blockInitialAnimation:h,visualState:m},E={}){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=Ng,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 w=fn.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,at.render(this.render,!1,!0))};const{latestValues:x,renderState:T}=m;this.latestValues=x,this.baseTarget={...x},this.initialValues=l.initial?{...x}:{},this.renderState=T,this.parent=i,this.props=l,this.presenceContext=u,this.depth=i?i.depth+1:0,this.reducedMotionConfig=f,this.skipAnimationsConfig=p,this.options=E,this.blockInitialAnimation=!!h,this.isControllingVariants=Vd(l),this.isVariantNode=BR(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:v,...g}=this.scrapeMotionValuesFromProps(l,{},this);for(const w in g){const C=g[w];x[w]!==void 0&&It(C)&&C.set(x[w])}}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,Ej.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:($g.current||kR(),this.shouldReduceMotion=xd.current),jd(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(),_i(this.notifyUpdate),_i(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&&SR.has(i)&&this.current instanceof HTMLElement){const{factory:h,keyframes:m,times:E,ease:x,duration:T}=l.accelerate,v=new vR({element:this.current,name:i,keyframes:m,times:E,ease:x,duration:Tn(T)}),g=h(v);this.valueSubscriptions.set(i,()=>{g(),v.cancel()});return}const u=qr.has(i);u&&this.onBindTransform&&this.onBindTransform();const f=l.on("change",h=>{this.latestValues[i]=h,this.props.onUpdate&&at.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 wd){const l=wd[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):Lt()}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<Tx.length;u++){const f=Tx[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=xj(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=Lr(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"&&(Bw(u)||Hw(u))?u=parseFloat(u):!Tj(u)&&ba.test(l)&&(u=_R(i,l)),this.setBaseTarget(i,It(u)?u.get():u)),It(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=Lg(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&&!It(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 Rg),this.events[i].add(l)}notify(i,...l){this.events[i]&&this.events[i].notify(...l)}scheduleRenderMicrotask(){Hg.render(this.render)}}class YR extends Aj{constructor(){super(...arguments),this.KeyframeResolver=tj}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;It(i)&&(this.childSubscription=i.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}class ji{constructor(i){this.isMounted=!1,this.node=i}update(){}}function qR({top:o,left:i,right:l,bottom:u}){return{x:{min:i,max:l},y:{min:o,max:u}}}function Cj({x:o,y:i}){return{top:i.min,right:o.max,bottom:i.max,left:o.min}}function Dj(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 Ny(o){return o===void 0||o===1}function dg({scale:o,scaleX:i,scaleY:l}){return!Ny(o)||!Ny(i)||!Ny(l)}function Es(o){return dg(o)||GR(o)||o.z||o.rotate||o.rotateX||o.rotateY||o.skewX||o.skewY}function GR(o){return Ex(o.x)||Ex(o.y)}function Ex(o){return o&&o!=="0%"}function Rd(o,i,l){const u=o-l,f=i*u;return l+f}function xx(o,i,l,u,f){return f!==void 0&&(o=Rd(o,f,u)),Rd(o,l,u)+i}function hg(o,i=0,l=1,u,f){o.min=xx(o.min,i,l,u,f),o.max=xx(o.max,i,l,u,f)}function PR(o,{x:i,y:l}){hg(o.x,i.translate,i.scale,i.originPoint),hg(o.y,l.translate,l.scale,l.originPoint)}const wx=.999999999999,Rx=1.0000000000001;function Mj(o,i,l,u=!1){var m;const f=l.length;if(!f)return;i.x=i.y=1;let p,h;for(let E=0;E<f;E++){p=l[E],h=p.projectionDelta;const{visualElement:x}=p.options;x&&x.props.style&&x.props.style.display==="contents"||(u&&p.options.layoutScroll&&p.scroll&&p!==p.root&&(Wa(o.x,-p.scroll.offset.x),Wa(o.y,-p.scroll.offset.y)),h&&(i.x*=h.x.scale,i.y*=h.y.scale,PR(o,h)),u&&Es(p.latestValues)&&pd(o,p.latestValues,(m=p.layout)==null?void 0:m.layoutBox))}i.x<Rx&&i.x>wx&&(i.x=1),i.y<Rx&&i.y>wx&&(i.y=1)}function Wa(o,i){o.min+=i,o.max+=i}function Ax(o,i,l,u,f=.5){const p=ct(o.min,o.max,f);hg(o,i,l,p,u)}function Cx(o,i){return typeof o=="string"?parseFloat(o)/100*(i.max-i.min):o}function pd(o,i,l){const u=l??o;Ax(o.x,Cx(i.x,u.x),i.scaleX,i.scale,i.originX),Ax(o.y,Cx(i.y,u.y),i.scaleY,i.scale,i.originY)}function $R(o,i){return qR(Dj(o.getBoundingClientRect(),i))}function Oj(o,i,l){const u=$R(o,l),{scroll:f}=i;return f&&(Wa(u.x,f.offset.x),Wa(u.y,f.offset.y)),u}const _j={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},jj=Yr.length;function zj(o,i,l){let u="",f=!0;for(let p=0;p<jj;p++){const h=Yr[p],m=o[h];if(m===void 0)continue;let E=!0;if(typeof m=="number")E=m===(h.startsWith("scale")?1:0);else{const x=parseFloat(m);E=h.startsWith("scale")?x===1:x===0}if(!E||l){const x=zR(m,kg[h]);if(!E){f=!1;const T=_j[h]||h;u+=`${T}(${x}) `}l&&(i[h]=x)}}return u=u.trim(),l?u=l(i,f?"":u):f&&(u="none"),u}function Xg(o,i,l){const{style:u,vars:f,transformOrigin:p}=o;let h=!1,m=!1;for(const E in i){const x=i[E];if(qr.has(E)){h=!0;continue}else if(tR(E)){f[E]=x;continue}else{const T=zR(x,kg[E]);E.startsWith("origin")?(m=!0,p[E]=T):u[E]=T}}if(i.transform||(h||l?u.transform=zj(i,o.transform,l):u.transform&&(u.transform="none")),m){const{originX:E="50%",originY:x="50%",originZ:T=0}=p;u.transformOrigin=`${E} ${x} ${T}`}}function XR(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 Dx(o,i){return i.max===i.min?0:o/(i.max-i.min)*100}const Su={correct:(o,i)=>{if(!i.target)return o;if(typeof o=="string")if(he.test(o))o=parseFloat(o);else return o;const l=Dx(o,i.target.x),u=Dx(o,i.target.y);return`${l}% ${u}%`}},Nj={correct:(o,{treeScale:i,projectionDelta:l})=>{const u=o,f=ba.parse(o);if(f.length>5)return u;const p=ba.createTransformer(o),h=typeof f[0]!="number"?1:0,m=l.x.scale*i.x,E=l.y.scale*i.y;f[0+h]/=m,f[1+h]/=E;const x=ct(m,E,.5);return typeof f[2+h]=="number"&&(f[2+h]/=x),typeof f[3+h]=="number"&&(f[3+h]/=x),p(f)}},pg={borderRadius:{...Su,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Su,borderTopRightRadius:Su,borderBottomLeftRadius:Su,borderBottomRightRadius:Su,boxShadow:Nj};function QR(o,{layout:i,layoutId:l}){return qr.has(o)||o.startsWith("origin")||(i||l!==void 0)&&(!!pg[o]||o==="opacity")}function Qg(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)(It(u[m])||f&&It(f[m])||QR(m,o)||((h=l==null?void 0:l.getValue(m))==null?void 0:h.liveStyle)!==void 0)&&(p[m]=u[m]);return p}function Vj(o){return window.getComputedStyle(o)}class Uj extends YR{constructor(){super(...arguments),this.type="html",this.renderInstance=XR}readValueFromInstance(i,l){var u;if(qr.has(l))return(u=this.projection)!=null&&u.isProjecting?tg(l):n3(i,l);{const f=Vj(i),p=(tR(l)?f.getPropertyValue(l):f[l])||0;return typeof p=="string"?p.trim():p}}measureInstanceViewportBox(i,{transformPagePoint:l}){return $R(i,l)}build(i,l,u){Xg(i,l,u.transformTemplate)}scrapeMotionValuesFromProps(i,l,u){return Qg(i,l,u)}}const Lj={offset:"stroke-dashoffset",array:"stroke-dasharray"},Bj={offset:"strokeDashoffset",array:"strokeDasharray"};function kj(o,i,l=1,u=0,f=!0){o.pathLength=1;const p=f?Lj:Bj;o[p.offset]=`${-u}`,o[p.array]=`${i} ${l}`}const Hj=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ZR(o,{attrX:i,attrY:l,attrScale:u,pathLength:f,pathSpacing:p=1,pathOffset:h=0,...m},E,x,T){if(Xg(o,m,x),E){o.style.viewBox&&(o.attrs.viewBox=o.style.viewBox);return}o.attrs=o.style,o.style={};const{attrs:v,style:g}=o;v.transform&&(g.transform=v.transform,delete v.transform),(g.transform||v.transformOrigin)&&(g.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),g.transform&&(g.transformBox=(T==null?void 0:T.transformBox)??"fill-box",delete v.transformBox);for(const w of Hj)v[w]!==void 0&&(g[w]=v[w],delete v[w]);i!==void 0&&(v.x=i),l!==void 0&&(v.y=l),u!==void 0&&(v.scale=u),f!==void 0&&kj(v,f,p,h,!1)}const IR=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"]),JR=o=>typeof o=="string"&&o.toLowerCase()==="svg";function Yj(o,i,l,u){XR(o,i,void 0,u);for(const f in i.attrs)o.setAttribute(IR.has(f)?f:Bg(f),i.attrs[f])}function FR(o,i,l){const u=Qg(o,i,l);for(const f in o)if(It(o[f])||It(i[f])){const p=Yr.indexOf(f)!==-1?"attr"+f.charAt(0).toUpperCase()+f.substring(1):f;u[p]=o[f]}return u}class qj extends YR{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Lt}getBaseTargetFromProps(i,l){return i[l]}readValueFromInstance(i,l){if(qr.has(l)){const u=OR(l);return u&&u.default||0}return l=IR.has(l)?l:Bg(l),i.getAttribute(l)}scrapeMotionValuesFromProps(i,l,u){return FR(i,l,u)}build(i,l,u){ZR(i,l,this.isSVGTag,u.transformTemplate,u.style)}renderInstance(i,l,u,f){Yj(i,l,u,f)}mount(i){this.isSVGTag=JR(i.tagName),super.mount(i)}}const Gj=Pg.length;function KR(o){if(!o)return;if(!o.isControllingVariants){const l=o.parent?KR(o.parent)||{}:{};return o.props.initial!==void 0&&(l.initial=o.props.initial),l}const i={};for(let l=0;l<Gj;l++){const u=Pg[l],f=o.props[u];(_u(f)||f===!1)&&(i[u]=f)}return i}function WR(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 Pj=[...Gg].reverse(),$j=Gg.length;function Xj(o){return i=>Promise.all(i.map(({animation:l,options:u})=>P3(o,l,u)))}function Qj(o){let i=Xj(o),l=Mx(),u=!0,f=!1;const p=x=>(T,v)=>{var w;const g=As(o,v,x==="exit"?(w=o.presenceContext)==null?void 0:w.custom:void 0);if(g){const{transition:C,transitionEnd:L,...U}=g;T={...T,...U,...L}}return T};function h(x){i=x(o)}function m(x){const{props:T}=o,v=KR(o.parent)||{},g=[],w=new Set;let C={},L=1/0;for(let B=0;B<$j;B++){const G=Pj[B],P=l[G],K=T[G]!==void 0?T[G]:v[G],ne=_u(K),se=G===x?P.isActive:null;se===!1&&(L=B);let le=K===v[G]&&K!==T[G]&&ne;if(le&&(u||f)&&o.manuallyAnimateOnMount&&(le=!1),P.protectedKeys={...C},!P.isActive&&se===null||!K&&!P.prevProp||Nd(K)||typeof K=="boolean")continue;if(G==="exit"&&P.isActive&&se!==!0){P.prevResolvedValues&&(C={...C,...P.prevResolvedValues});continue}const F=Zj(P.prevProp,K);let X=F||G===x&&P.isActive&&!le&&ne||B>L&&ne,Y=!1;const W=Array.isArray(K)?K:[K];let I=W.reduce(p(G),{});se===!1&&(I={});const{prevResolvedValues:Q={}}=P,Se={...Q,...I},De=oe=>{X=!0,w.has(oe)&&(Y=!0,w.delete(oe)),P.needsAnimating[oe]=!0;const me=o.getValue(oe);me&&(me.liveStyle=!1)};for(const oe in Se){const me=I[oe],Me=Q[oe];if(C.hasOwnProperty(oe))continue;let O=!1;rg(me)&&rg(Me)?O=!WR(me,Me):O=me!==Me,O?me!=null?De(oe):w.add(oe):me!==void 0&&w.has(oe)?De(oe):P.protectedKeys[oe]=!0}P.prevProp=K,P.prevResolvedValues=I,P.isActive&&(C={...C,...I}),(u||f)&&o.blockInitialAnimation&&(X=!1);const Z=le&&F;X&&(!Z||Y)&&g.push(...W.map(oe=>{const me={type:G};if(typeof oe=="string"&&(u||f)&&!Z&&o.manuallyAnimateOnMount&&o.parent){const{parent:Me}=o,O=As(Me,oe);if(Me.enteringChildren&&O){const{delayChildren:te}=O.transition||{};me.delay=TR(Me.enteringChildren,o,te)}}return{animation:oe,options:me}}))}if(w.size){const B={};if(typeof T.initial!="boolean"){const G=As(o,Array.isArray(T.initial)?T.initial[0]:T.initial);G&&G.transition&&(B.transition=G.transition)}w.forEach(G=>{const P=o.getBaseTarget(G),K=o.getValue(G);K&&(K.liveStyle=!0),B[G]=P??null}),g.push({animation:B})}let U=!!g.length;return u&&(T.initial===!1||T.initial===T.animate)&&!o.manuallyAnimateOnMount&&(U=!1),u=!1,f=!1,U?i(g):Promise.resolve()}function E(x,T){var g;if(l[x].isActive===T)return Promise.resolve();(g=o.variantChildren)==null||g.forEach(w=>{var C;return(C=w.animationState)==null?void 0:C.setActive(x,T)}),l[x].isActive=T;const v=m(x);for(const w in l)l[w].protectedKeys={};return v}return{animateChanges:m,setActive:E,setAnimateFunction:h,getState:()=>l,reset:()=>{l=Mx(),f=!0}}}function Zj(o,i){return typeof i=="string"?i!==o:Array.isArray(i)?!WR(i,o):!1}function Ts(o=!1){return{isActive:o,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Mx(){return{animate:Ts(!0),whileInView:Ts(),whileHover:Ts(),whileTap:Ts(),whileDrag:Ts(),whileFocus:Ts(),exit:Ts()}}function mg(o,i){o.min=i.min,o.max=i.max}function ga(o,i){mg(o.x,i.x),mg(o.y,i.y)}function Ox(o,i){o.translate=i.translate,o.scale=i.scale,o.originPoint=i.originPoint,o.origin=i.origin}const eA=1e-4,Ij=1-eA,Jj=1+eA,tA=.01,Fj=0-tA,Kj=0+tA;function dn(o){return o.max-o.min}function Wj(o,i,l){return Math.abs(o-i)<=l}function _x(o,i,l,u=.5){o.origin=u,o.originPoint=ct(i.min,i.max,o.origin),o.scale=dn(l)/dn(i),o.translate=ct(l.min,l.max,o.origin)-o.originPoint,(o.scale>=Ij&&o.scale<=Jj||isNaN(o.scale))&&(o.scale=1),(o.translate>=Fj&&o.translate<=Kj||isNaN(o.translate))&&(o.translate=0)}function Au(o,i,l,u){_x(o.x,i.x,l.x,u?u.originX:void 0),_x(o.y,i.y,l.y,u?u.originY:void 0)}function jx(o,i,l,u=0){const f=u?ct(l.min,l.max,u):l.min;o.min=f+i.min,o.max=o.min+dn(i)}function ez(o,i,l,u){jx(o.x,i.x,l.x,u==null?void 0:u.x),jx(o.y,i.y,l.y,u==null?void 0:u.y)}function zx(o,i,l,u=0){const f=u?ct(l.min,l.max,u):l.min;o.min=i.min-f,o.max=o.min+dn(i)}function Ad(o,i,l,u){zx(o.x,i.x,l.x,u==null?void 0:u.x),zx(o.y,i.y,l.y,u==null?void 0:u.y)}function Nx(o,i,l,u,f){return o-=i,o=Rd(o,1/l,u),f!==void 0&&(o=Rd(o,1/f,u)),o}function tz(o,i=0,l=1,u=.5,f,p=o,h=o){if(eo.test(i)&&(i=parseFloat(i),i=ct(h.min,h.max,i/100)-h.min),typeof i!="number")return;let m=ct(p.min,p.max,u);o===p&&(m-=i),o.min=Nx(o.min,i,l,m,f),o.max=Nx(o.max,i,l,m,f)}function Vx(o,i,[l,u,f],p,h){tz(o,i[l],i[u],i[f],i.scale,p,h)}const nz=["x","scaleX","originX"],az=["y","scaleY","originY"];function Ux(o,i,l,u){Vx(o.x,i,nz,l?l.x:void 0,u?u.x:void 0),Vx(o.y,i,az,l?l.y:void 0,u?u.y:void 0)}function Lx(o){return o.translate===0&&o.scale===1}function nA(o){return Lx(o.x)&&Lx(o.y)}function Bx(o,i){return o.min===i.min&&o.max===i.max}function oz(o,i){return Bx(o.x,i.x)&&Bx(o.y,i.y)}function kx(o,i){return Math.round(o.min)===Math.round(i.min)&&Math.round(o.max)===Math.round(i.max)}function aA(o,i){return kx(o.x,i.x)&&kx(o.y,i.y)}function Hx(o){return dn(o.x)/dn(o.y)}function Yx(o,i){return o.translate===i.translate&&o.scale===i.scale&&o.originPoint===i.originPoint}function Ka(o){return[o("x"),o("y")]}function iz(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:x,rotate:T,rotateX:v,rotateY:g,skewX:w,skewY:C}=l;x&&(u=`perspective(${x}px) ${u}`),T&&(u+=`rotate(${T}deg) `),v&&(u+=`rotateX(${v}deg) `),g&&(u+=`rotateY(${g}deg) `),w&&(u+=`skewX(${w}deg) `),C&&(u+=`skewY(${C}deg) `)}const m=o.x.scale*i.x,E=o.y.scale*i.y;return(m!==1||E!==1)&&(u+=`scale(${m}, ${E})`),u||"none"}const oA=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],sz=oA.length,qx=o=>typeof o=="string"?parseFloat(o):o,Gx=o=>typeof o=="number"||he.test(o);function rz(o,i,l,u,f,p){f?(o.opacity=ct(0,l.opacity??1,lz(u)),o.opacityExit=ct(i.opacity??1,0,uz(u))):p&&(o.opacity=ct(i.opacity??1,l.opacity??1,u));for(let h=0;h<sz;h++){const m=oA[h];let E=Px(i,m),x=Px(l,m);if(E===void 0&&x===void 0)continue;E||(E=0),x||(x=0),E===0||x===0||Gx(E)===Gx(x)?(o[m]=Math.max(ct(qx(E),qx(x),u),0),(eo.test(x)||eo.test(E))&&(o[m]+="%")):o[m]=x}(i.rotate||l.rotate)&&(o.rotate=ct(i.rotate||0,l.rotate||0,u))}function Px(o,i){return o[i]!==void 0?o[i]:o.borderRadius}const lz=iA(0,.5,Iw),uz=iA(.5,.95,na);function iA(o,i,l){return u=>u<o?0:u>i?1:l(Mu(o,i,u))}function cz(o,i,l){const u=It(o)?o:Lr(o);return u.start(Ug("",u,i,l)),u.animation}function ju(o,i,l,u={passive:!0}){return o.addEventListener(i,l,u),()=>o.removeEventListener(i,l)}const fz=(o,i)=>o.depth-i.depth;class dz{constructor(){this.children=[],this.isDirty=!1}add(i){wg(this.children,i),this.isDirty=!0}remove(i){vd(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(fz),this.isDirty=!1,this.children.forEach(i)}}function hz(o,i){const l=fn.now(),u=({timestamp:f})=>{const p=f-l;p>=i&&(_i(u),o(p-i))};return at.setup(u,!0),()=>_i(u)}function md(o){return It(o)?o.get():o}class pz{constructor(){this.members=[]}add(i){wg(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&&(vd(this.members,u),u.unmount())}i.scheduleRender()}remove(i){if(vd(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 yd={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Vy=["","X","Y","Z"],mz=1e3;let yz=0;function Uy(o,i,l,u){const{latestValues:f}=i;f[o]&&(l[o]=f[o],i.setStaticValue(o,0),u&&(u[o]=0))}function sA(o){if(o.hasCheckedOptimisedAppear=!0,o.root===o)return;const{visualElement:i}=o.options;if(!i)return;const l=AR(i);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:f,layoutId:p}=o.options;window.MotionCancelOptimisedAnimation(l,"transform",at,!(f||p))}const{parent:u}=o;u&&!u.hasCheckedOptimisedAppear&&sA(u)}function rA({attachResizeListener:o,defaultParent:i,measureScroll:l,checkIsScrollRoot:u,resetTransform:f}){return class{constructor(h={},m=i==null?void 0:i()){this.id=yz++,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(bz),this.nodes.forEach(Rz),this.nodes.forEach(Az),this.nodes.forEach(Sz)},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 E=0;E<this.path.length;E++)this.path[E].shouldResetTransform=!0;this.root===this&&(this.nodes=new dz)}addEventListener(h,m){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new Rg),this.eventHandlers.get(h).add(m)}notifyListeners(h,...m){const E=this.eventHandlers.get(h);E&&E.notify(...m)}hasListeners(h){return this.eventHandlers.has(h)}mount(h){if(this.instance)return;this.isSVG=qg(h)&&!bj(h),this.instance=h;const{layoutId:m,layout:E,visualElement:x}=this.options;if(x&&!x.current&&x.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(E||m)&&(this.isLayoutDirty=!0),o){let T,v=0;const g=()=>this.root.updateBlockedByResize=!1;at.read(()=>{v=window.innerWidth}),o(h,()=>{const w=window.innerWidth;w!==v&&(v=w,this.root.updateBlockedByResize=!0,T&&T(),T=hz(g,250),yd.hasAnimatedSinceResize&&(yd.hasAnimatedSinceResize=!1,this.nodes.forEach(Qx)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&x&&(m||E)&&this.addEventListener("didUpdate",({delta:T,hasLayoutChanged:v,hasRelativeLayoutChanged:g,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||x.getDefaultTransition()||_z,{onLayoutAnimationStart:L,onLayoutAnimationComplete:U}=x.getProps(),B=!this.targetLayout||!aA(this.targetLayout,w),G=!v&&g;if(this.options.layoutRoot||this.resumeFrom||G||v&&(B||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const P={...Vg(C,"layout"),onPlay:L,onComplete:U};(x.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P),this.setAnimationOrigin(T,G)}else v||Qx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}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(),_i(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(Cz),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&&sA(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let T=0;T<this.path.length;T++){const v=this.path[T];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:E}=this.options;if(m===void 0&&!E)return;const x=this.getTransformTemplate();this.prevTransformTemplateValue=x?x(this.latestValues,""):void 0,this.updateSnapshot(),h&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const E=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),E&&this.nodes.forEach(Ez),this.nodes.forEach($x);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Xx);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(xz),this.nodes.forEach(wz),this.nodes.forEach(gz),this.nodes.forEach(vz)):this.nodes.forEach(Xx),this.clearAllSnapshots();const m=fn.now();Zt.delta=to(0,1e3/60,m-Zt.timestamp),Zt.timestamp=m,Zt.isProcessing=!0,Cy.update.process(Zt),Cy.preRender.process(Zt),Cy.render.process(Zt),Zt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Tz),this.sharedNodes.forEach(Dz)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,at.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){at.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!dn(this.snapshot.measuredBox.x)&&!dn(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 E=0;E<this.path.length;E++)this.path[E].updateScroll();const h=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Lt()),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 E=u(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:E,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:E}}}resetTransform(){if(!f)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!nA(this.projectionDelta),E=this.getTransformTemplate(),x=E?E(this.latestValues,""):void 0,T=x!==this.prevTransformTemplateValue;h&&this.instance&&(m||Es(this.latestValues)||T)&&(f(this.instance,x),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const m=this.measurePageBox();let E=this.removeElementScroll(m);return h&&(E=this.removeTransform(E)),jz(E),{animationId:this.root.animationId,measuredBox:m,layoutBox:E,latestValues:{},source:this.id}}measurePageBox(){var x;const{visualElement:h}=this.options;if(!h)return Lt();const m=h.measureViewportBox();if(!(((x=this.scroll)==null?void 0:x.wasRoot)||this.path.some(zz))){const{scroll:T}=this.root;T&&(Wa(m.x,T.offset.x),Wa(m.y,T.offset.y))}return m}removeElementScroll(h){var E;const m=Lt();if(ga(m,h),(E=this.scroll)!=null&&E.wasRoot)return m;for(let x=0;x<this.path.length;x++){const T=this.path[x],{scroll:v,options:g}=T;T!==this.root&&v&&g.layoutScroll&&(v.wasRoot&&ga(m,h),Wa(m.x,v.offset.x),Wa(m.y,v.offset.y))}return m}applyTransform(h,m=!1,E){var T,v;const x=E||Lt();ga(x,h);for(let g=0;g<this.path.length;g++){const w=this.path[g];!m&&w.options.layoutScroll&&w.scroll&&w!==w.root&&(Wa(x.x,-w.scroll.offset.x),Wa(x.y,-w.scroll.offset.y)),Es(w.latestValues)&&pd(x,w.latestValues,(T=w.layout)==null?void 0:T.layoutBox)}return Es(this.latestValues)&&pd(x,this.latestValues,(v=this.layout)==null?void 0:v.layoutBox),x}removeTransform(h){var E;const m=Lt();ga(m,h);for(let x=0;x<this.path.length;x++){const T=this.path[x];if(!Es(T.latestValues))continue;let v;T.instance&&(dg(T.latestValues)&&T.updateSnapshot(),v=Lt(),ga(v,T.measurePageBox())),Ux(m,T.latestValues,(E=T.snapshot)==null?void 0:E.layoutBox,v)}return Es(this.latestValues)&&Ux(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!==Zt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(h=!1){var w;const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const E=!!this.resumingFrom||this!==m;if(!(h||E&&this.isSharedProjectionDirty||this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:T,layoutId:v}=this.options;if(!this.layout||!(T||v))return;this.resolvedRelativeTargetAt=Zt.timestamp;const g=this.getClosestProjectingParent();g&&this.linkedParentVersion!==g.layoutVersion&&!g.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&g&&g.layout?this.createRelativeTarget(g,this.layout.layoutBox,g.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Lt(),this.targetWithTransforms=Lt()),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):ga(this.target,this.layout.layoutBox),PR(this.target,this.targetDelta)):ga(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?this.createRelativeTarget(g,this.target,g.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||dg(this.parent.latestValues)||GR(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,E){this.relativeParent=h,this.linkedParentVersion=h.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lt(),this.relativeTargetOrigin=Lt(),Ad(this.relativeTargetOrigin,m,E,this.options.layoutAnchor||void 0),ga(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var C;const h=this.getLead(),m=!!this.resumingFrom||this!==h;let E=!0;if((this.isProjectionDirty||(C=this.parent)!=null&&C.isProjectionDirty)&&(E=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(E=!1),this.resolvedRelativeTargetAt===Zt.timestamp&&(E=!1),E)return;const{layout:x,layoutId:T}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(x||T))return;ga(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,g=this.treeScale.y;Mj(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=Lt());const{target:w}=h;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ox(this.prevProjectionDelta.x,this.projectionDelta.x),Ox(this.prevProjectionDelta.y,this.projectionDelta.y)),Au(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==g||!Yx(this.projectionDelta.x,this.prevProjectionDelta.x)||!Yx(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(h=!0){var m;if((m=this.options.visualElement)==null||m.scheduleRender(),h){const E=this.getStack();E&&E.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Nr(),this.projectionDelta=Nr(),this.projectionDeltaWithTransform=Nr()}setAnimationOrigin(h,m=!1){const E=this.snapshot,x=E?E.latestValues:{},T={...this.latestValues},v=Nr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const g=Lt(),w=E?E.source:void 0,C=this.layout?this.layout.source:void 0,L=w!==C,U=this.getStack(),B=!U||U.members.length<=1,G=!!(L&&!B&&this.options.crossfade===!0&&!this.path.some(Oz));this.animationProgress=0;let P;this.mixTargetDelta=K=>{const ne=K/1e3;Zx(v.x,h.x,ne),Zx(v.y,h.y,ne),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ad(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Mz(this.relativeTarget,this.relativeTargetOrigin,g,ne),P&&oz(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=Lt()),ga(P,this.relativeTarget)),L&&(this.animationValues=T,rz(T,x,this.latestValues,ne,G,B)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=ne},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){var m,E,x;this.notifyListeners("animationStart"),(m=this.currentAnimation)==null||m.stop(),(x=(E=this.resumingFrom)==null?void 0:E.currentAnimation)==null||x.stop(),this.pendingAnimation&&(_i(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=at.update(()=>{yd.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Lr(0)),this.motionValue.jump(0,!1),this.currentAnimation=cz(this.motionValue,[0,1e3],{...h,velocity:0,isSync:!0,onUpdate:T=>{this.mixTargetDelta(T),h.onUpdate&&h.onUpdate(T)},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(mz),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:m,target:E,layout:x,latestValues:T}=h;if(!(!m||!E||!x)){if(this!==h&&this.layout&&x&&lA(this.options.animationType,this.layout.layoutBox,x.layoutBox)){E=this.target||Lt();const v=dn(this.layout.layoutBox.x);E.x.min=h.target.x.min,E.x.max=E.x.min+v;const g=dn(this.layout.layoutBox.y);E.y.min=h.target.y.min,E.y.max=E.y.min+g}ga(m,E),pd(m,T),Au(this.projectionDeltaWithTransform,this.layoutCorrected,m,T)}}registerSharedNode(h,m){this.sharedNodes.has(h)||this.sharedNodes.set(h,new pz),this.sharedNodes.get(h).add(m);const x=m.options.initialPromotionConfig;m.promote({transition:x?x.transition:void 0,preserveFollowOpacity:x&&x.shouldPreserveFollowOpacity?x.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:E}={}){const x=this.getStack();x&&x.promote(this,E),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:E}=h;if((E.z||E.rotate||E.rotateX||E.rotateY||E.rotateZ||E.skewX||E.skewY)&&(m=!0),!m)return;const x={};E.z&&Uy("z",h,x,this.animationValues);for(let T=0;T<Vy.length;T++)Uy(`rotate${Vy[T]}`,h,x,this.animationValues),Uy(`skew${Vy[T]}`,h,x,this.animationValues);h.render();for(const T in x)h.setStaticValue(T,x[T]),this.animationValues&&(this.animationValues[T]=x[T]);h.scheduleRender()}applyProjectionStyles(h,m){if(!this.instance||this.isSVG)return;if(!this.isVisible){h.visibility="hidden";return}const E=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,h.visibility="",h.opacity="",h.pointerEvents=md(m==null?void 0:m.pointerEvents)||"",h.transform=E?E(this.latestValues,""):"none";return}const x=this.getLead();if(!this.projectionDelta||!this.layout||!x.target){this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=md(m==null?void 0:m.pointerEvents)||""),this.hasProjected&&!Es(this.latestValues)&&(h.transform=E?E({},""):"none",this.hasProjected=!1);return}h.visibility="";const T=x.animationValues||x.latestValues;this.applyTransformsToTarget();let v=iz(this.projectionDeltaWithTransform,this.treeScale,T);E&&(v=E(T,v)),h.transform=v;const{x:g,y:w}=this.projectionDelta;h.transformOrigin=`${g.origin*100}% ${w.origin*100}% 0`,x.animationValues?h.opacity=x===this?T.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:h.opacity=x===this?T.opacity!==void 0?T.opacity:"":T.opacityExit!==void 0?T.opacityExit:0;for(const C in pg){if(T[C]===void 0)continue;const{correct:L,applyTo:U,isCSSVariable:B}=pg[C],G=v==="none"?T[C]:L(T[C],x);if(U){const P=U.length;for(let K=0;K<P;K++)h[U[K]]=G}else B?this.options.visualElement.renderState.vars[C]=G:h[C]=G}this.options.layoutId&&(h.pointerEvents=x===this?md(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($x),this.root.sharedNodes.clear()}}}function gz(o){o.updateLayout()}function vz(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")Ka(v=>{const g=h?i.measuredBox[v]:i.layoutBox[v],w=dn(g);g.min=u[v].min,g.max=g.min+w});else if(p==="x"||p==="y"){const v=p==="x"?"y":"x";mg(h?i.measuredBox[v]:i.layoutBox[v],u[v])}else lA(p,i.layoutBox,u)&&Ka(v=>{const g=h?i.measuredBox[v]:i.layoutBox[v],w=dn(u[v]);g.max=g.min+w,o.relativeTarget&&!o.currentAnimation&&(o.isProjectionDirty=!0,o.relativeTarget[v].max=o.relativeTarget[v].min+w)});const m=Nr();Au(m,u,i.layoutBox);const E=Nr();h?Au(E,o.applyTransform(f,!0),i.measuredBox):Au(E,u,i.layoutBox);const x=!nA(m);let T=!1;if(!o.resumeFrom){const v=o.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:g,layout:w}=v;if(g&&w){const C=o.options.layoutAnchor||void 0,L=Lt();Ad(L,i.layoutBox,g.layoutBox,C);const U=Lt();Ad(U,u,w.layoutBox,C),aA(L,U)||(T=!0),v.options.layoutRoot&&(o.relativeTarget=U,o.relativeTargetOrigin=L,o.relativeParent=v)}}}o.notifyListeners("didUpdate",{layout:u,snapshot:i,delta:E,layoutDelta:m,hasLayoutChanged:x,hasRelativeLayoutChanged:T})}else if(o.isLead()){const{onExitComplete:u}=o.options;u&&u()}o.options.transition=void 0}function bz(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 Sz(o){o.isProjectionDirty=o.isSharedProjectionDirty=o.isTransformDirty=!1}function Tz(o){o.clearSnapshot()}function $x(o){o.clearMeasurements()}function Ez(o){o.isLayoutDirty=!0,o.updateLayout()}function Xx(o){o.isLayoutDirty=!1}function xz(o){o.isAnimationBlocked&&o.layout&&!o.isLayoutDirty&&(o.snapshot=o.layout,o.isLayoutDirty=!0)}function wz(o){const{visualElement:i}=o.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),o.resetTransform()}function Qx(o){o.finishAnimation(),o.targetDelta=o.relativeTarget=o.target=void 0,o.isProjectionDirty=!0}function Rz(o){o.resolveTargetDelta()}function Az(o){o.calcProjection()}function Cz(o){o.resetSkewAndRotation()}function Dz(o){o.removeLeadSnapshot()}function Zx(o,i,l){o.translate=ct(i.translate,0,l),o.scale=ct(i.scale,1,l),o.origin=i.origin,o.originPoint=i.originPoint}function Ix(o,i,l,u){o.min=ct(i.min,l.min,u),o.max=ct(i.max,l.max,u)}function Mz(o,i,l,u){Ix(o.x,i.x,l.x,u),Ix(o.y,i.y,l.y,u)}function Oz(o){return o.animationValues&&o.animationValues.opacityExit!==void 0}const _z={duration:.45,ease:[.4,0,.1,1]},Jx=o=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(o),Fx=Jx("applewebkit/")&&!Jx("chrome/")?Math.round:na;function Kx(o){o.min=Fx(o.min),o.max=Fx(o.max)}function jz(o){Kx(o.x),Kx(o.y)}function lA(o,i,l){return o==="position"||o==="preserve-aspect"&&!Wj(Hx(i),Hx(l),.2)}function zz(o){var i;return o!==o.root&&((i=o.scroll)==null?void 0:i.wasRoot)}const Nz=rA({attachResizeListener:(o,i)=>ju(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}),Ly={current:void 0},uA=rA({measureScroll:o=>({x:o.scrollLeft,y:o.scrollTop}),defaultParent:()=>{if(!Ly.current){const o=new Nz({});o.mount(window),o.setOptions({layoutScroll:!0}),Ly.current=o}return Ly.current},resetTransform:(o,i)=>{o.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:o=>window.getComputedStyle(o).position==="fixed"}),Zg=A.createContext({transformPagePoint:o=>o,isStatic:!1,reducedMotion:"never"});function Wx(o,i){if(typeof o=="function")return o(i);o!=null&&(o.current=i)}function Vz(...o){return i=>{let l=!1;const u=o.map(f=>{const p=Wx(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():Wx(o[f],null)}}}}function Uz(...o){return A.useCallback(Vz(...o),o)}class Lz extends A.Component{getSnapshotBeforeUpdate(i){const l=this.props.childRef.current;if(cd(l)&&i.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const u=l.offsetParent,f=cd(u)&&u.offsetWidth||0,p=cd(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 Bz({children:o,isPresent:i,anchorX:l,anchorY:u,root:f,pop:p}){var g;const h=A.useId(),m=A.useRef(null),E=A.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:x}=A.useContext(Zg),T=((g=o.props)==null?void 0:g.ref)??(o==null?void 0:o.ref),v=Uz(m,T);return A.useInsertionEffect(()=>{const{width:w,height:C,top:L,left:U,right:B,bottom:G}=E.current;if(i||p===!1||!m.current||!w||!C)return;const P=l==="left"?`left: ${U}`:`right: ${B}`,K=u==="bottom"?`bottom: ${G}`:`top: ${L}`;m.current.dataset.motionPopId=h;const ne=document.createElement("style");x&&(ne.nonce=x);const se=f??document.head;return se.appendChild(ne),ne.sheet&&ne.sheet.insertRule(`
289
- [data-motion-pop-id="${h}"] {
290
- position: absolute !important;
291
- width: ${w}px !important;
292
- height: ${C}px !important;
293
- ${P}px !important;
294
- ${K}px !important;
295
- }
296
- `),()=>{var le;(le=m.current)==null||le.removeAttribute("data-motion-pop-id"),se.contains(ne)&&se.removeChild(ne)}},[i]),j.jsx(Lz,{isPresent:i,childRef:m,sizeRef:E,pop:p,children:p===!1?o:A.cloneElement(o,{ref:v})})}const kz=({children:o,initial:i,isPresent:l,onExitComplete:u,custom:f,presenceAffectsLayout:p,mode:h,anchorX:m,anchorY:E,root:x})=>{const T=xg(Hz),v=A.useId();let g=!0,w=A.useMemo(()=>(g=!1,{id:v,initial:i,isPresent:l,custom:f,onExitComplete:C=>{T.set(C,!0);for(const L of T.values())if(!L)return;u&&u()},register:C=>(T.set(C,!1),()=>T.delete(C))}),[l,T,u]);return p&&g&&(w={...w}),A.useMemo(()=>{T.forEach((C,L)=>T.set(L,!1))},[l]),A.useEffect(()=>{!l&&!T.size&&u&&u()},[l]),o=j.jsx(Bz,{pop:h==="popLayout",isPresent:l,anchorX:m,anchorY:E,root:x,children:o}),j.jsx(_d.Provider,{value:w,children:o})};function Hz(){return new Map}function cA(o=!0){const i=A.useContext(_d);if(i===null)return[!0,null];const{isPresent:l,onExitComplete:u,register:f}=i,p=A.useId();A.useEffect(()=>{if(o)return f(p)},[o]);const h=A.useCallback(()=>o&&u&&u(p),[p,u,o]);return!l&&u?[!1,h]:[!0]}const nd=o=>o.key||"";function ew(o){const i=[];return A.Children.forEach(o,l=>{A.isValidElement(l)&&i.push(l)}),i}const Cd=({children:o,custom:i,initial:l=!0,onExitComplete:u,presenceAffectsLayout:f=!0,mode:p="sync",propagate:h=!1,anchorX:m="left",anchorY:E="top",root:x})=>{const[T,v]=cA(h),g=A.useMemo(()=>ew(o),[o]),w=h&&!T?[]:g.map(nd),C=A.useRef(!0),L=A.useRef(g),U=xg(()=>new Map),B=A.useRef(new Set),[G,P]=A.useState(g),[K,ne]=A.useState(g);Lw(()=>{C.current=!1,L.current=g;for(let F=0;F<K.length;F++){const X=nd(K[F]);w.includes(X)?(U.delete(X),B.current.delete(X)):U.get(X)!==!0&&U.set(X,!1)}},[K,w.length,w.join("-")]);const se=[];if(g!==G){let F=[...g];for(let X=0;X<K.length;X++){const Y=K[X],W=nd(Y);w.includes(W)||(F.splice(X,0,Y),se.push(Y))}return p==="wait"&&se.length&&(F=se),ne(ew(F)),P(g),null}p==="wait"&&K.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:le}=A.useContext(Eg);return j.jsx(j.Fragment,{children:K.map(F=>{const X=nd(F),Y=h&&!T?!1:g===K||w.includes(X),W=()=>{if(B.current.has(X))return;if(U.has(X))B.current.add(X),U.set(X,!0);else return;let I=!0;U.forEach(Q=>{Q||(I=!1)}),I&&(le==null||le(),ne(L.current),h&&(v==null||v()),u&&u())};return j.jsx(kz,{isPresent:Y,initial:!C.current||l?void 0:!1,custom:i,presenceAffectsLayout:f,mode:p,root:x,onExitComplete:Y?void 0:W,anchorX:m,anchorY:E,children:F},X)})})},fA=A.createContext({strict:!1}),tw={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 nw=!1;function Yz(){if(nw)return;const o={};for(const i in tw)o[i]={isEnabled:l=>tw[i].some(u=>!!l[u])};HR(o),nw=!0}function dA(){return Yz(),Rj()}function qz(o){const i=dA();for(const l in o)i[l]={...i[l],...o[l]};HR(i)}const Gz=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 Dd(o){return o.startsWith("while")||o.startsWith("drag")&&o!=="draggable"||o.startsWith("layout")||o.startsWith("onTap")||o.startsWith("onPan")||o.startsWith("onLayout")||Gz.has(o)}let hA=o=>!Dd(o);function Pz(o){typeof o=="function"&&(hA=i=>i.startsWith("on")?!Dd(i):o(i))}try{Pz(require("@emotion/is-prop-valid").default)}catch{}function $z(o,i,l){const u={};for(const f in o)f==="values"&&typeof o.values=="object"||It(o[f])||(hA(f)||l===!0&&Dd(f)||!i&&!Dd(f)||o.draggable&&f.startsWith("onDrag"))&&(u[f]=o[f]);return u}const Ud=A.createContext({});function Xz(o,i){if(Vd(o)){const{initial:l,animate:u}=o;return{initial:l===!1||_u(l)?l:void 0,animate:_u(u)?u:void 0}}return o.inherit!==!1?i:{}}function Qz(o){const{initial:i,animate:l}=Xz(o,A.useContext(Ud));return A.useMemo(()=>({initial:i,animate:l}),[aw(i),aw(l)])}function aw(o){return Array.isArray(o)?o.join(" "):o}const Ig=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function pA(o,i,l){for(const u in i)!It(i[u])&&!QR(u,l)&&(o[u]=i[u])}function Zz({transformTemplate:o},i){return A.useMemo(()=>{const l=Ig();return Xg(l,i,o),Object.assign({},l.vars,l.style)},[i])}function Iz(o,i){const l=o.style||{},u={};return pA(u,l,o),Object.assign(u,Zz(o,i)),u}function Jz(o,i){const l={},u=Iz(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 mA=()=>({...Ig(),attrs:{}});function Fz(o,i,l,u){const f=A.useMemo(()=>{const p=mA();return ZR(p,i,JR(u),o.transformTemplate,o.style),{...p.attrs,style:{...p.style}}},[i]);if(o.style){const p={};pA(p,o.style,o),f.style={...p,...f.style}}return f}const Kz=["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 Jg(o){return typeof o!="string"||o.includes("-")?!1:!!(Kz.indexOf(o)>-1||/[A-Z]/u.test(o))}function Wz(o,i,l,{latestValues:u},f,p=!1,h){const E=(h??Jg(o)?Fz:Jz)(i,u,f,o),x=$z(i,typeof o=="string",p),T=o!==A.Fragment?{...x,...E,ref:l}:{},{children:v}=i,g=A.useMemo(()=>It(v)?v.get():v,[v]);return A.createElement(o,{...T,children:g})}function e5({scrapeMotionValuesFromProps:o,createRenderState:i},l,u,f){return{latestValues:t5(l,u,f,o),renderState:i()}}function t5(o,i,l,u){const f={},p=u(o,{});for(const g in p)f[g]=md(p[g]);let{initial:h,animate:m}=o;const E=Vd(o),x=BR(o);i&&x&&!E&&o.inherit!==!1&&(h===void 0&&(h=i.initial),m===void 0&&(m=i.animate));let T=l?l.initial===!1:!1;T=T||h===!1;const v=T?m:h;if(v&&typeof v!="boolean"&&!Nd(v)){const g=Array.isArray(v)?v:[v];for(let w=0;w<g.length;w++){const C=Lg(o,g[w]);if(C){const{transitionEnd:L,transition:U,...B}=C;for(const G in B){let P=B[G];if(Array.isArray(P)){const K=T?P.length-1:0;P=P[K]}P!==null&&(f[G]=P)}for(const G in L)f[G]=L[G]}}}return f}const yA=o=>(i,l)=>{const u=A.useContext(Ud),f=A.useContext(_d),p=()=>e5(o,i,u,f);return l?p():xg(p)},n5=yA({scrapeMotionValuesFromProps:Qg,createRenderState:Ig}),a5=yA({scrapeMotionValuesFromProps:FR,createRenderState:mA}),o5=Symbol.for("motionComponentSymbol");function i5(o,i,l){const u=A.useRef(l);A.useInsertionEffect(()=>{u.current=l});const f=A.useRef(null);return A.useCallback(p=>{var m;p&&((m=o.onMount)==null||m.call(o,p));const h=u.current;if(typeof h=="function")if(p){const E=h(p);typeof E=="function"&&(f.current=E)}else f.current?(f.current(),f.current=null):h(p);else h&&(h.current=p);i&&(p?i.mount(p):i.unmount())},[i])}const gA=A.createContext({});function Or(o){return o&&typeof o=="object"&&Object.prototype.hasOwnProperty.call(o,"current")}function s5(o,i,l,u,f,p){var P,K;const{visualElement:h}=A.useContext(Ud),m=A.useContext(fA),E=A.useContext(_d),x=A.useContext(Zg),T=x.reducedMotion,v=x.skipAnimations,g=A.useRef(null),w=A.useRef(!1);u=u||m.renderer,!g.current&&u&&(g.current=u(o,{visualState:i,parent:h,props:l,presenceContext:E,blockInitialAnimation:E?E.initial===!1:!1,reducedMotionConfig:T,skipAnimations:v,isSVG:p}),w.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));const C=g.current,L=A.useContext(gA);C&&!C.projection&&f&&(C.type==="html"||C.type==="svg")&&r5(g.current,l,f,L);const U=A.useRef(!1);A.useInsertionEffect(()=>{C&&U.current&&C.update(l,E)});const B=l[RR],G=A.useRef(!!B&&typeof window<"u"&&!((P=window.MotionHandoffIsComplete)!=null&&P.call(window,B))&&((K=window.MotionHasOptimisedAnimation)==null?void 0:K.call(window,B)));return Lw(()=>{w.current=!0,C&&(U.current=!0,window.MotionIsMounted=!0,C.updateFeatures(),C.scheduleRenderMicrotask(),G.current&&C.animationState&&C.animationState.animateChanges())}),A.useEffect(()=>{C&&(!G.current&&C.animationState&&C.animationState.animateChanges(),G.current&&(queueMicrotask(()=>{var ne;(ne=window.MotionHandoffMarkAsComplete)==null||ne.call(window,B)}),G.current=!1),C.enteringChildren=void 0)}),C}function r5(o,i,l,u){const{layoutId:f,layout:p,drag:h,dragConstraints:m,layoutScroll:E,layoutRoot:x,layoutAnchor:T,layoutCrossfade:v}=i;o.projection=new l(o.latestValues,i["data-framer-portal-id"]?void 0:vA(o.parent)),o.projection.setOptions({layoutId:f,layout:p,alwaysMeasureLayout:!!h||m&&Or(m),visualElement:o,animationType:typeof p=="string"?p:"both",initialPromotionConfig:u,crossfade:v,layoutScroll:E,layoutRoot:x,layoutAnchor:T})}function vA(o){if(o)return o.options.allowProjection!==!1?o.projection:vA(o.parent)}function By(o,{forwardMotionProps:i=!1,type:l}={},u,f){u&&qz(u);const p=l?l==="svg":Jg(o),h=p?a5:n5;function m(x,T){let v;const g={...A.useContext(Zg),...x,layoutId:l5(x)},{isStatic:w}=g,C=Qz(x),L=h(x,w);if(!w&&typeof window<"u"){u5(g,u);const U=c5(g);v=U.MeasureLayout,C.visualElement=s5(o,L,g,f,U.ProjectionNode,p)}return j.jsxs(Ud.Provider,{value:C,children:[v&&C.visualElement?j.jsx(v,{visualElement:C.visualElement,...g}):null,Wz(o,x,i5(L,C.visualElement,T),L,w,i,p)]})}m.displayName=`motion.${typeof o=="string"?o:`create(${o.displayName??o.name??""})`}`;const E=A.forwardRef(m);return E[o5]=o,E}function l5({layoutId:o}){const i=A.useContext(Eg).id;return i&&o!==void 0?i+"-"+o:o}function u5(o,i){const l=A.useContext(fA).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?kr(!1,u,"lazy-strict-mode"):Uo(!1,u,"lazy-strict-mode")}}function c5(o){const i=dA(),{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 f5(o,i){if(typeof Proxy>"u")return By;const l=new Map,u=(p,h)=>By(p,h,o,i),f=(p,h)=>(jd(!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,By(h,void 0,o,i)),l.get(h))})}const d5=(o,i)=>i.isSVG??Jg(o)?new qj(i):new Uj(i,{allowProjection:o!==A.Fragment});class h5 extends ji{constructor(i){super(i),i.animationState||(i.animationState=Qj(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Nd(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 p5=0;class m5 extends ji{constructor(){super(...arguments),this.id=p5++,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 E=As(this.node,h,m);if(E){const{transition:x,transitionEnd:T,...v}=E;for(const g in v)(p=this.node.getValue(g))==null||p.jump(v[g])}}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 y5={animation:{Feature:h5},exit:{Feature:m5}};function Lu(o){return{point:{x:o.pageX,y:o.pageY}}}const g5=o=>i=>Yg(i)&&o(i,Lu(i));function Cu(o,i,l,u){return ju(o,i,g5(l),u)}const bA=({current:o})=>o?o.ownerDocument.defaultView:null,ow=(o,i)=>Math.abs(o-i);function v5(o,i){const l=ow(o.x,i.x),u=ow(o.y,i.y);return Math.sqrt(l**2+u**2)}const iw=new Set(["auto","scroll"]);class SA{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=w=>{this.handleScroll(w.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ad(this.lastRawMoveEventInfo,this.transformPagePoint));const w=ky(this.lastMoveEventInfo,this.history),C=this.startEvent!==null,L=v5(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!C&&!L)return;const{point:U}=w,{timestamp:B}=Zt;this.history.push({...U,timestamp:B});const{onStart:G,onMove:P}=this.handlers;C||(G&&G(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),P&&P(this.lastMoveEvent,w)},this.handlePointerMove=(w,C)=>{this.lastMoveEvent=w,this.lastRawMoveEventInfo=C,this.lastMoveEventInfo=ad(C,this.transformPagePoint),at.update(this.updatePoint,!0)},this.handlePointerUp=(w,C)=>{this.end();const{onEnd:L,onSessionEnd:U,resumeAnimation:B}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&B&&B(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const G=ky(w.type==="pointercancel"?this.lastMoveEventInfo:ad(C,this.transformPagePoint),this.history);this.startEvent&&L&&L(w,G),U&&U(w,G)},!Yg(i))return;this.dragSnapToOrigin=p,this.handlers=l,this.transformPagePoint=u,this.distanceThreshold=h,this.contextWindow=f||window;const E=Lu(i),x=ad(E,this.transformPagePoint),{point:T}=x,{timestamp:v}=Zt;this.history=[{...T,timestamp:v}];const{onSessionStart:g}=l;g&&g(i,ky(x,this.history)),this.removeListeners=Nu(Cu(this.contextWindow,"pointermove",this.handlePointerMove),Cu(this.contextWindow,"pointerup",this.handlePointerUp),Cu(this.contextWindow,"pointercancel",this.handlePointerUp)),m&&this.startScrollTracking(m)}startScrollTracking(i){let l=i.parentElement;for(;l;){const u=getComputedStyle(l);(iw.has(u.overflowX)||iw.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),at.update(this.updatePoint,!0))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),_i(this.updatePoint)}}function ad(o,i){return i?{point:i(o.point)}:o}function sw(o,i){return{x:o.x-i.x,y:o.y-i.y}}function ky({point:o},i){return{point:o,delta:sw(o,TA(i)),offset:sw(o,b5(i)),velocity:S5(i,.1)}}function b5(o){return o[0]}function TA(o){return o[o.length-1]}function S5(o,i){if(o.length<2)return{x:0,y:0};let l=o.length-1,u=null;const f=TA(o);for(;l>=0&&(u=o[l],!(f.timestamp-u.timestamp>Tn(i)));)l--;if(!u)return{x:0,y:0};u===o[0]&&o.length>2&&f.timestamp-u.timestamp>Tn(i)*2&&(u=o[1]);const p=ta(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 T5(o,{min:i,max:l},u){return i!==void 0&&o<i?o=u?ct(i,o,u.min):Math.max(o,i):l!==void 0&&o>l&&(o=u?ct(l,o,u.max):Math.min(o,l)),o}function rw(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 E5(o,{top:i,left:l,bottom:u,right:f}){return{x:rw(o.x,l,f),y:rw(o.y,i,u)}}function lw(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:lw(o.x,i.x),y:lw(o.y,i.y)}}function w5(o,i){let l=.5;const u=dn(o),f=dn(i);return f>u?l=Mu(i.min,i.max-u,o.min):u>f&&(l=Mu(o.min,o.max-f,i.min)),to(0,1,l)}function R5(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 yg=.35;function A5(o=yg){return o===!1?o=0:o===!0&&(o=yg),{x:uw(o,"left","right"),y:uw(o,"top","bottom")}}function uw(o,i,l){return{min:cw(o,i),max:cw(o,l)}}function cw(o,i){return typeof o=="number"?o:o[i]||0}const C5=new WeakMap;class D5{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=Lt(),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(Lu(v).point),this.stopAnimation()},h=(v,g)=>{const{drag:w,dragPropagation:C,onDragStart:L}=this.getProps();if(w&&!C&&(this.openDragLock&&this.openDragLock(),this.openDragLock=nj(w),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ka(B=>{let G=this.getAxisMotionValue(B).get()||0;if(eo.test(G)){const{projection:P}=this.visualElement;if(P&&P.layout){const K=P.layout.layoutBox[B];K&&(G=dn(K)*(parseFloat(G)/100))}}this.originPoint[B]=G}),L&&at.update(()=>L(v,g),!1,!0),lg(this.visualElement,"transform");const{animationState:U}=this.visualElement;U&&U.setActive("whileDrag",!0)},m=(v,g)=>{this.latestPointerEvent=v,this.latestPanInfo=g;const{dragPropagation:w,dragDirectionLock:C,onDirectionLock:L,onDrag:U}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:B}=g;if(C&&this.currentDirection===null){this.currentDirection=O5(B),this.currentDirection!==null&&L&&L(this.currentDirection);return}this.updateAxis("x",g.point,B),this.updateAxis("y",g.point,B),this.visualElement.render(),U&&at.update(()=>U(v,g),!1,!0)},E=(v,g)=>{this.latestPointerEvent=v,this.latestPanInfo=g,this.stop(v,g),this.latestPointerEvent=null,this.latestPanInfo=null},x=()=>{const{dragSnapToOrigin:v}=this.getProps();(v||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:T}=this.getProps();this.panSession=new SA(i,{onSessionStart:p,onStart:h,onMove:m,onSessionEnd:E,resumeAnimation:x},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:T,distanceThreshold:u,contextWindow:bA(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&&at.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||!od(i,f,this.currentDirection))return;const p=this.getAxisMotionValue(i);let h=this.originPoint[i]+u[i];this.constraints&&this.constraints[i]&&(h=T5(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&&Or(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&u?this.constraints=E5(u.layoutBox,i):this.constraints=!1,this.elastic=A5(l),f!==this.constraints&&!Or(i)&&u&&this.constraints&&!this.hasMutatedConstraints&&Ka(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=R5(u.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:l}=this.getProps();if(!i||!Or(i))return!1;const u=i.current;Uo(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=Oj(u,f.root,this.visualElement.getTransformPagePoint());let h=x5(f.layout.layoutBox,p);if(l){const m=l(Cj(h));this.hasMutatedConstraints=!!m,m&&(h=qR(m))}return h}startAnimation(i){const{drag:l,dragMomentum:u,dragElastic:f,dragTransition:p,dragSnapToOrigin:h,onDragTransitionEnd:m}=this.getProps(),E=this.constraints||{},x=Ka(T=>{if(!od(T,l,this.currentDirection))return;let v=E&&E[T]||{};(h===!0||h===T)&&(v={min:0,max:0});const g=f?200:1e6,w=f?40:1e7,C={type:"inertia",velocity:u?i[T]:0,bounceStiffness:g,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...p,...v};return this.startAxisValueAnimation(T,C)});return Promise.all(x).then(m)}startAxisValueAnimation(i,l){const u=this.getAxisMotionValue(i);return lg(this.visualElement,i),u.start(Ug(i,u,0,l,this.visualElement,!1))}stopAnimation(){Ka(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){Ka(l=>{const{drag:u}=this.getProps();if(!od(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],E=p.get()||0;p.set(i[l]-ct(h,m,.5)+E)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:l}=this.getProps(),{projection:u}=this.visualElement;if(!Or(l)||!u||!this.constraints)return;this.stopAnimation();const f={x:0,y:0};Ka(h=>{const m=this.getAxisMotionValue(h);if(m&&this.constraints!==!1){const E=m.get();f[h]=w5({min:E,max:E},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(),Ka(h=>{if(!od(h,i,null))return;const m=this.getAxisMotionValue(h),{min:E,max:x}=this.constraints[h];m.set(ct(E,x,f[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;C5.set(this.visualElement,this);const i=this.visualElement.current,l=Cu(i,"pointerdown",x=>{const{drag:T,dragListener:v=!0}=this.getProps(),g=x.target,w=g!==i&&lj(g);T&&v&&!w&&this.start(x)});let u;const f=()=>{const{dragConstraints:x}=this.getProps();Or(x)&&x.current&&(this.constraints=this.resolveRefConstraints(),u||(u=M5(i,x.current,()=>this.scalePositionWithinConstraints())))},{projection:p}=this.visualElement,h=p.addEventListener("measure",f);p&&!p.layout&&(p.root&&p.root.updateScroll(),p.updateLayout()),at.read(f);const m=ju(window,"resize",()=>this.scalePositionWithinConstraints()),E=p.addEventListener("didUpdate",({delta:x,hasLayoutChanged:T})=>{this.isDragging&&T&&(Ka(v=>{const g=this.getAxisMotionValue(v);g&&(this.originPoint[v]+=x[v].translate,g.set(g.get()+x[v].translate))}),this.visualElement.render())});return()=>{m(),l(),h(),E&&E(),u&&u()}}getProps(){const i=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:u=!1,dragPropagation:f=!1,dragConstraints:p=!1,dragElastic:h=yg,dragMomentum:m=!0}=i;return{...i,drag:l,dragDirectionLock:u,dragPropagation:f,dragConstraints:p,dragElastic:h,dragMomentum:m}}}function fw(o){let i=!0;return()=>{if(i){i=!1;return}o()}}function M5(o,i,l){const u=vx(o,fw(l)),f=vx(i,fw(l));return()=>{u(),f()}}function od(o,i,l){return(i===!0||i===o)&&(l===null||l===o)}function O5(o,i=10){let l=null;return Math.abs(o.y)>i?l="y":Math.abs(o.x)>i&&(l="x"),l}class _5 extends ji{constructor(i){super(i),this.removeGroupControls=na,this.removeListeners=na,this.controls=new D5(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||na}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 Hy=o=>(i,l)=>{o&&at.update(()=>o(i,l),!1,!0)};class j5 extends ji{constructor(){super(...arguments),this.removePointerDownListener=na}onPointerDown(i){this.session=new SA(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:bA(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:l,onPan:u,onPanEnd:f}=this.node.getProps();return{onSessionStart:Hy(i),onStart:Hy(l),onMove:Hy(u),onEnd:(p,h)=>{delete this.session,f&&at.postRender(()=>f(p,h))}}}mount(){this.removePointerDownListener=Cu(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 Yy=!1;class z5 extends A.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),Yy&&p.root.didUpdate(),p.addEventListener("animationComplete",()=>{this.safeToRemove()}),p.setOptions({...p.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),yd.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}),Yy=!0,f||i.layoutDependency!==l||l===void 0||i.isPresent!==p?h.willUpdate():this.safeToRemove(),i.isPresent!==p&&(p?h.promote():h.relegate()||at.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(),Hg.postRender(()=>{!u.currentAnimation&&u.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:u}=this.props,{projection:f}=i;Yy=!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 EA(o){const[i,l]=cA(),u=A.useContext(Eg);return j.jsx(z5,{...o,layoutGroup:u,switchLayoutGroup:A.useContext(gA),isPresent:i,safeToRemove:l})}const N5={pan:{Feature:j5},drag:{Feature:_5,ProjectionNode:uA,MeasureLayout:EA}};function dw(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&&at.postRender(()=>p(i,Lu(i)))}class V5 extends ji{mount(){const{current:i}=this.node;i&&(this.unmount=oj(i,(l,u)=>(dw(this.node,u,"Start"),f=>dw(this.node,f,"End"))))}unmount(){}}class U5 extends ji{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=Nu(ju(this.node.current,"focus",()=>this.onFocus()),ju(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function hw(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&&at.postRender(()=>p(i,Lu(i)))}class L5 extends ji{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:l,propagate:u}=this.node.props;this.unmount=cj(i,(f,p)=>(hw(this.node,p,"Start"),(h,{success:m})=>hw(this.node,h,m?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:(u==null?void 0:u.tap)===!1})}unmount(){}}const gg=new WeakMap,qy=new WeakMap,B5=o=>{const i=gg.get(o.target);i&&i(o)},k5=o=>{o.forEach(B5)};function H5({root:o,...i}){const l=o||document;qy.has(l)||qy.set(l,{});const u=qy.get(l),f=JSON.stringify(i);return u[f]||(u[f]=new IntersectionObserver(k5,{root:o,...i})),u[f]}function Y5(o,i,l){const u=H5(i);return gg.set(o,l),u.observe(o),()=>{gg.delete(o),u.unobserve(o)}}const q5={some:0,all:1};class G5 extends ji{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var E;(E=this.stopObserver)==null||E.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:q5[f]},m=x=>{const{isIntersecting:T}=x;if(this.isInView===T||(this.isInView=T,p&&!T&&this.hasEnteredView))return;T&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",T);const{onViewportEnter:v,onViewportLeave:g}=this.node.getProps(),w=T?v:g;w&&w(x)};this.stopObserver=Y5(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(P5(i,l))&&this.startObserver()}unmount(){var i;(i=this.stopObserver)==null||i.call(this),this.hasEnteredView=!1,this.isInView=!1}}function P5({viewport:o={}},{viewport:i={}}={}){return l=>o[l]!==i[l]}const $5={inView:{Feature:G5},tap:{Feature:L5},focus:{Feature:U5},hover:{Feature:V5}},X5={layout:{ProjectionNode:uA,MeasureLayout:EA}},Q5={...y5,...$5,...N5,...X5},Vo=f5(Q5,d5);function Z5(){!$g.current&&kR();const[o]=A.useState(xd.current);return jd(o!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),o}const xA=A.createContext(null),I5=xA.Provider;function J5(){return A.useContext(xA)}const wA=A.createContext(null),F5=wA.Provider;function K5(){return A.useContext(wA)}function Fg(o){const i=o.play();return i instanceof Promise?i:Promise.resolve()}function id(o,i,l=1){return o.src=i,o.defaultPlaybackRate=l,o.load(),o.playbackRate=l,Fg(o)}function W5(o,i,l,u=1,f=!0){o.src=i,o.defaultPlaybackRate=u,o.load(),o.playbackRate=u;const p=()=>{o.currentTime=l,f&&Fg(o).catch(()=>{})};o.readyState>=HTMLMediaElement.HAVE_METADATA?p():o.addEventListener("loadedmetadata",p,{once:!0})}function sd(o){o.pause(),o.removeAttribute("src"),o.load()}function rd(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]=A.useState(u),[E,x]=A.useState(!1),T=A.useRef(null),v=A.useRef(!1),g=A.useCallback(X=>{X.then(()=>x(!1),()=>x(!0))},[]),w=A.useRef(h);w.current=h;const C=A.useRef(l);C.current=l;const L=A.useRef(p);L.current=p;const U=A.useRef(f);U.current=f;const B=(o==null?void 0:o.steps[i])??null,G=(B==null?void 0:B.src)??null,P=A.useRef(!1),K=A.useCallback((X,Y)=>{P.current=!0,setTimeout(()=>{P.current=!1},0);const W=T.current;if(!W||!o||w.current)return;const I=o.steps[X],Q=I==null?void 0:I.src;if(!Q)return;const Se=(I==null?void 0:I.durationMs)??0;if(Y>=Se){sd(W);return}W5(W,Q,Y/1e3,U.current,C.current)},[o]);A.useEffect(()=>{!o||u||v.current||(rd(o),v.current=!0)},[o,u]),A.useEffect(()=>{const X=T.current;if(!X||!o)return;const Y=()=>{var W;return(W=L.current)==null?void 0:W.call(L)};return X.addEventListener("ended",Y),()=>X.removeEventListener("ended",Y)},[o]),A.useEffect(()=>{if(P.current){P.current=!1;return}const X=T.current;if(!(!X||!o)){if(w.current||!G||!C.current){sd(X);return}g(id(X,G,U.current))}},[i,G,o,g]),A.useEffect(()=>{const X=T.current;!X||!o||w.current||(l?G&&(X.src?g(Fg(X)):g(id(X,G,U.current))):X.pause())},[l,G,o,g]);const ne=A.useCallback(()=>{m(X=>{const Y=!X,W=T.current;return W&&(Y?(sd(W),x(!1)):(o&&!v.current&&(rd(o),v.current=!0),G&&g(id(W,G,U.current)))),Y})},[G,o,g]),se=A.useCallback(()=>{const X=T.current;!X||w.current||!G||(o&&!v.current&&(rd(o),v.current=!0),g(id(X,G,U.current)))},[G,o,g]),le=A.useCallback(X=>{const Y=T.current;Y&&(Y.volume=Math.max(0,Math.min(X,1)))},[]),F=A.useCallback(()=>{!o||v.current||(rd(o),v.current=!0)},[o]);return A.useEffect(()=>{const X=T.current;X&&(X.defaultPlaybackRate=f,X.playbackRate=f)},[f]),A.useEffect(()=>{const X=T.current;return()=>{X&&sd(X)}},[]),{muted:h,toggleMute:ne,audioRef:T,seekToStep:K,audioBlocked:E,unlock:se,setVolume:le,prefetch:F}}const vg=new Map;let tN=0;function nN(o){const i=`sp-${tN++}`;return vg.set(i,o),{id:i,unregister:()=>vg.delete(i)}}function pw(o){for(const[i,l]of vg)i!==o&&l()}function aN({steps:o,narrationManifest:i,muted:l,playbackRate:u,isVideoExport:f,prefersReducedMotion:p}){const h=Md(),m=o.length-1,[E,x]=A.useState(()=>p?m:0),[T,v]=A.useState(f?"playing":"idle"),g=T==="playing",w=h?Qy(h.currentTimeMs,h.stepStartTimesMs,m):E,C=A.useRef(w);C.current=w;const L=A.useRef(null),U=A.useRef(0),[B,G]=A.useState(0),P=A.useRef(Math.max(u,.25));P.current=Math.max(u,.25),A.useEffect(()=>{var Z,pe;if(h||!g||p)return;const W=P.current;if(w>=m){const oe=!l&&i?((Z=i.steps[w])==null?void 0:Z.durationMs)??0:0;if(oe>0){L.current=()=>v("paused");const me=setTimeout(()=>{L.current=null,v("paused")},(oe+2e3)/W);return()=>{clearTimeout(me),L.current=null}}v("paused");return}const I=w+1,Q=o[I].delayMs/W,Se=!l&&i?((pe=i.steps[w])==null?void 0:pe.durationMs)??0:0;if(Se>0){let oe=!1,me=!1,Me=!1;const O=()=>{Me||(Me=!0,L.current=null,x(I))},te=()=>{oe&&me&&O()};L.current=()=>{oe=!0,te()};const ve=setTimeout(()=>{me=!0,te()},Q),fe=setTimeout(O,(Math.max(o[I].delayMs,Se)+2e3)/W);return()=>{clearTimeout(ve),clearTimeout(fe),L.current=null}}const De=setTimeout(()=>x(I),Q);return()=>clearTimeout(De)},[h,g,w,o,m,p,l,i]);const K=A.useCallback(W=>{v("paused"),x(Math.max(0,Math.min(W,m)))},[m]),ne=A.useCallback((W,I)=>{const Q=Math.max(0,Math.min(W,I.totalDurationMs)),Se=Qy(Q,I.stepStartTimesMs,m),De=I.stepStartTimesMs[Se]??0;U.current=Q-De,x(Se),v(Z=>Z==="playing"?Z:"paused"),G(Z=>Z+1)},[m]),se=A.useCallback(()=>{C.current>=m&&x(0),v("playing")},[m]),le=A.useCallback(()=>{v("paused")},[]),F=A.useCallback(()=>{g?le():se()},[g,se,le]),X=A.useCallback(()=>{var W;(W=L.current)==null||W.call(L)},[]),Y=A.useCallback(W=>{L.current=W},[]);return{stepIndex:w,playbackState:T,playing:g,play:se,pause:le,togglePlay:F,goTo:K,seekToTime:ne,seekOffsetRef:U,seekGeneration:B,handleClipEnded:X,setPendingAdvance:Y,coordinatorId:void 0}}function RA(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 mw(o){return RA(Math.floor(Math.max(0,o)/1e3))}function AA(o,i,l){if(l==="remaining"){const u=Math.ceil(Math.max(0,i-o)/1e3);return`-${RA(u)}`}return`${mw(o)} / ${mw(i)}`}function oN(o,i,l,u,f,p,h,m,E,x,T){const v=A.useRef(0),g=A.useRef(0),w=A.useRef(0),C=A.useRef(p);C.current=p;const L=A.useRef(l);L.current=l;const U=A.useRef(Math.max(f,.25));U.current=Math.max(f,.25);const B=T==null?void 0:T.timeLabelRef,G=T==null?void 0:T.scrubbingRef,P=T==null?void 0:T.currentTimeMsRef,K=(T==null?void 0:T.timeDisplayMode)??"elapsed",ne=A.useRef(K);ne.current=K;const se=A.useRef(""),le=A.useRef(0),F=A.useCallback(W=>{if(G!=null&&G.current)return;const I=Math.max(0,Math.min(W,1));le.current=I,P&&(P.current=I*C.current.totalDurationMs);const Q=`${I*100}%`;if(h.current&&(h.current.style.width=Q),m.current&&(m.current.style.left=Q),B!=null&&B.current){const Se=C.current,De=AA(I*Se.totalDurationMs,Se.totalDurationMs,ne.current);De!==se.current&&(se.current=De,B.current.textContent=De)}},[h,m,B,G,P]),X=A.useRef(void 0);X.current=()=>{const W=performance.now();g.current+=(W-w.current)*U.current,w.current=W;const I=C.current,Q=L.current,Se=I.stepStartTimesMs[Q]??0,De=Q<u?I.stepStartTimesMs[Q+1]??I.totalDurationMs:I.totalDurationMs,Z=Math.max(De-Se,1),pe=Math.min(g.current/Z,1),oe=(Se+pe*(De-Se))/I.totalDurationMs;F(oe),v.current=requestAnimationFrame(()=>{var me;return(me=X.current)==null?void 0:me.call(X)})},A.useEffect(()=>(o?(w.current=performance.now(),v.current=requestAnimationFrame(()=>{var W;return(W=X.current)==null?void 0:W.call(X)})):cancelAnimationFrame(v.current),()=>cancelAnimationFrame(v.current)),[o]),A.useEffect(()=>{g.current=E.current,E.current=0,w.current=performance.now()},[l,x,E]);const Y=(T==null?void 0:T.domEpoch)??0;A.useEffect(()=>{se.current="",F(le.current)},[K,Y,F]),A.useEffect(()=>{if(i==="idle"){F(0);return}if(i==="paused"){const W=L.current,I=p.stepStartTimesMs[W]??0,Q=W<u?p.stepStartTimesMs[W+1]??p.totalDurationMs:p.totalDurationMs,Se=Math.max(Q-I,1),De=Math.min(g.current/Se,1),Z=(I+De*(Q-I))/p.totalDurationMs;F(Z)}},[i,l,x,u,p,F])}function iN({size:o,className:i}){return j.jsx("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"currentColor",className:i,"aria-hidden":!0,children:j.jsx("path",{d:"M8 5v14l11-7z"})})}function sN({size:o,className:i}){return j.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"currentColor",className:i,"aria-hidden":!0,children:[j.jsx("rect",{x:"6",y:"4",width:"4",height:"16"}),j.jsx("rect",{x:"14",y:"4",width:"4",height:"16"})]})}function rN({size:o,className:i}){return j.jsx("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"currentColor",className:i,"aria-hidden":!0,children:j.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 lN({kind:o,onComplete:i}){const l=o==="play"?iN:sN;return j.jsx("div",{"aria-hidden":!0,"data-playback-burst":o,className:"pointer-events-none absolute inset-0 z-[15] flex items-center justify-center",children:j.jsx(Vo.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:j.jsx(l,{size:28,className:o==="play"?"ml-1":void 0})})})}function uN({onEnableAudio:o}){return j.jsxs(Vo.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:[j.jsx(rN,{size:14}),"Tap to enable audio"]})}const cN=[.5,1,1.5,2];function fN({playbackRate:o,onSelectSpeed:i}){const[l,u]=A.useState(!1),f=A.useRef(null);return A.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]),j.jsxs("div",{ref:f,className:"relative",children:[j.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"]}),j.jsx(Cd,{children:l&&j.jsx(Vo.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:cN.map(p=>j.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:[j.jsxs("span",{children:[p,"x"]}),p===o&&j.jsx("span",{className:"text-[10px] text-primary",children:"●"})]},p))})})]})}const yw=1e4;function dN({visible:o,playing:i,muted:l,playbackRate:u,stepTimeline:f,showSpeedControl:p,hasNarration:h,onToggleFullscreen:m,isFullscreen:E=!1,progressTrackRef:x,playheadRef:T,onTogglePlay:v,onToggleMute:g,onSelectSpeed:w,onSeekToTime:C,onSkip:L,timeLabelRef:U,timeDisplayMode:B="elapsed",onToggleTimeDisplay:G,scrubbingRef:P}){const K=A.useMemo(()=>f.stepStartTimesMs.slice(1).map(Q=>Q/f.totalDurationMs*100),[f]),[ne,se]=A.useState(!1),le=A.useRef(0),F=A.useCallback(Q=>{le.current=Q;const Se=`${Q*100}%`;x.current&&(x.current.style.width=Se),T.current&&(T.current.style.left=Se),U!=null&&U.current&&(U.current.textContent=AA(Q*f.totalDurationMs,f.totalDurationMs,B))},[x,T,U,f,B]),X=A.useCallback(Q=>{const Se=Q.currentTarget.getBoundingClientRect();return Math.max(0,Math.min(1,(Q.clientX-Se.left)/Se.width))},[]),Y=A.useCallback(Q=>{Q.currentTarget.setPointerCapture(Q.pointerId),P&&(P.current=!0),se(!0),F(X(Q))},[P,F,X]),W=A.useCallback(Q=>{Q.currentTarget.hasPointerCapture(Q.pointerId)&&F(X(Q))},[F,X]),I=A.useCallback(Q=>{Q.currentTarget.hasPointerCapture(Q.pointerId)&&(Q.currentTarget.releasePointerCapture(Q.pointerId),F(X(Q)),P&&(P.current=!1),se(!1),C(le.current*f.totalDurationMs))},[F,X,P,C,f]);return j.jsxs(Vo.div,{className:"absolute inset-x-0 bottom-0 z-20 rounded-b-lg 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:Q=>Q.stopPropagation(),children:[j.jsxs("div",{className:`group relative mb-2 w-full cursor-pointer rounded-full bg-white/30 transition-[height] duration-150 ${ne?"h-2":"h-[5px] hover:h-2"}`,onPointerDown:Y,onPointerMove:W,onPointerUp:I,onPointerCancel:I,role:"progressbar","aria-label":"Playback progress","aria-valuemin":0,"aria-valuemax":100,children:[j.jsx("div",{ref:x,className:"absolute inset-y-0 left-0 rounded-full bg-white/80"}),j.jsx("div",{ref:T,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 ${ne?"opacity-100":"opacity-0 group-hover:opacity-100"}`}),K.map((Q,Se)=>j.jsx("div",{className:"absolute top-0 h-full w-0.5 rounded-full bg-black/50",style:{left:`${Q}%`}},Se))]}),j.jsxs("div",{className:"flex items-center gap-1.5",children:[j.jsx("button",{onClick:Q=>{Q.stopPropagation(),v()},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?j.jsx(pN,{}):j.jsx(hN,{})}),L&&j.jsxs(j.Fragment,{children:[j.jsx("button",{onClick:Q=>{Q.stopPropagation(),L(-yw)},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:j.jsx(mN,{})}),j.jsx("button",{onClick:Q=>{Q.stopPropagation(),L(yw)},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:j.jsx(yN,{})})]}),j.jsx("button",{onClick:Q=>{Q.stopPropagation(),h&&g()},disabled:!h,className:`flex h-9 w-9 items-center justify-center rounded transition-colors ${h?"text-white/90 hover:text-white":"text-white/40"}`,"aria-label":h?l?"Unmute narration":"Mute narration":"No narration audio",children:!h||l?j.jsx(vN,{}):j.jsx(gN,{})}),U&&j.jsx("button",{onClick:Q=>{Q.stopPropagation(),G==null||G()},className:"rounded px-1 text-xs font-medium tabular-nums text-white/90 transition-colors hover:text-white","aria-label":B==="elapsed"?"Show remaining time":"Show elapsed time",children:j.jsx("span",{ref:U})}),j.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[p&&j.jsx(fN,{playbackRate:u,onSelectSpeed:w}),m&&j.jsx("button",{onClick:Q=>{Q.stopPropagation(),m()},className:"flex h-9 w-9 items-center justify-center rounded text-white/90 transition-colors hover:text-white","aria-label":E?"Exit fullscreen":"Enter fullscreen",children:E?j.jsx(SN,{}):j.jsx(bN,{})})]})]})]})}function hN(){return j.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:j.jsx("path",{d:"M8 5v14l11-7z"})})}function pN(){return j.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:[j.jsx("rect",{x:"6",y:"4",width:"4",height:"16"}),j.jsx("rect",{x:"14",y:"4",width:"4",height:"16"})]})}function mN(){return j.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:[j.jsx("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),j.jsx("path",{d:"M3 3v5h5"}),j.jsx("text",{x:"12",y:"16",textAnchor:"middle",fontSize:"8.5",fontWeight:"600",fill:"currentColor",stroke:"none",fontFamily:"inherit",children:"10"})]})}function yN(){return j.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:[j.jsx("path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"}),j.jsx("path",{d:"M21 3v5h-5"}),j.jsx("text",{x:"12",y:"16",textAnchor:"middle",fontSize:"8.5",fontWeight:"600",fill:"currentColor",stroke:"none",fontFamily:"inherit",children:"10"})]})}function gN(){return j.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:[j.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5",fill:"currentColor"}),j.jsx("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14"}),j.jsx("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07"})]})}function vN(){return j.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:[j.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5",fill:"currentColor"}),j.jsx("line",{x1:"23",y1:"9",x2:"17",y2:"15"}),j.jsx("line",{x1:"17",y1:"9",x2:"23",y2:"15"})]})}function bN(){return j.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:[j.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),j.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),j.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),j.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function SN(){return j.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:[j.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),j.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),j.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),j.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]})}function TN(o){const i=typeof window<"u"&&window.parent!==window,l=o.enabled&&i,u=A.useRef(l);u.current=l;const f=A.useRef(null),p=A.useRef(o.controls);p.current=o.controls;const h=A.useCallback(T=>{!u.current||typeof window>"u"||window.parent.postMessage(GO(T),f.current??"*")},[]),m=A.useCallback(T=>{var g;const v=p.current;switch(T.type){case"play":v.play();break;case"pause":case"destroy":v.pause();break;case"seek":v.seekToTime(T.timeMs);break;case"setMuted":v.setMuted(T.muted);break;case"setVolume":v.setVolume(T.volume);break;case"setHostScale":(g=v.setHostScale)==null||g.call(v,T.scale);break;case"prefetch":v.prefetch();break}},[]);A.useEffect(()=>{if(!l)return;const T=v=>{if(v.source!==window.parent)return;const g=$O(v.data);g&&(v.origin&&v.origin!=="null"&&(f.current=v.origin),m(g))};return window.addEventListener("message",T),()=>window.removeEventListener("message",T)},[l,m]),A.useEffect(()=>{if(!l)return;const T=o.containerRef.current;if(!T||typeof ResizeObserver>"u")return;const v=new ResizeObserver(()=>{const g=T.getBoundingClientRect();h({type:"resize",widthPx:Math.round(g.width),heightPx:Math.round(g.height)})});return v.observe(T),()=>v.disconnect()},[l,o.containerRef,h]);const E=A.useRef(!1);A.useEffect(()=>{!l||E.current||(E.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 x=o.totalSteps-1;A.useEffect(()=>{l&&(o.playbackState==="playing"?h({type:"started"}):o.playbackState==="paused"&&h(o.stepIndex>=x?{type:"completed"}:{type:"paused"}))},[l,o.playbackState,o.stepIndex,x,h]),A.useEffect(()=>{if(!l)return;const T=o.stepTimeline.totalDurationMs,v=o.stepTimeline.stepStartTimesMs[o.stepIndex]??0,g=T>0?v/T:0;h({type:"stepchange",stepIndex:o.stepIndex,totalSteps:o.totalSteps}),h({type:"progress",stepIndex:o.stepIndex,totalSteps:o.totalSteps,fraction:g})},[l,o.stepIndex,o.totalSteps,o.stepTimeline,h]),A.useEffect(()=>{!l||!o.audioBlocked||h({type:"audioBlocked"})},[l,o.audioBlocked,h])}const EN=3e3;function CA({bundle:o,steps:i,children:l,className:u,onStepChange:f,narrationManifest:p,showSpeedControl:h=!0,embed:m=!1,embedViewport:E}){const x=i??(o==null?void 0:o.steps),T=p??(o==null?void 0:o.narrationManifest);if(!x||x.length===0)throw new Error("ScenarioPlayer requires steps. Provide a `bundle` or `steps` prop.");const v=Z5(),{isVideoExport:g,hideControls:w,initialMuted:C}=Od(),L=J5(),U=K5(),B=x.length-1,G=A.useRef(null),[P,K]=A.useState(()=>{if(typeof window>"u")return 1;const S=new URLSearchParams(window.location.search).get("__test_speed"),V=S?Number(S):NaN;return V>0&&V<=16?V:1}),ne=g?C:!1,[se,le]=A.useState(ne),F=aN({steps:x,narrationManifest:T,muted:se,playbackRate:P,isVideoExport:g,prefersReducedMotion:v}),{stepIndex:X,playbackState:Y,playing:W,play:I,pause:Q,seekToTime:Se,seekOffsetRef:De,seekGeneration:Z,handleClipEnded:pe}=F,oe=A.useRef(null);A.useEffect(()=>{if(!g)return oe.current=nN(()=>{Q()}),()=>{var S;return(S=oe.current)==null?void 0:S.unregister()}},[g,Q]),A.useEffect(()=>{const S=G.current;if(!S||g)return;const V=new IntersectionObserver(([J])=>{!(J!=null&&J.isIntersecting)&&W&&Q()},{threshold:.5});return V.observe(S),()=>V.disconnect()},[g,W,Q]);const{muted:me,toggleMute:Me,audioRef:O,seekToStep:te,audioBlocked:ve,unlock:fe,setVolume:ot,prefetch:hn}=eN({manifest:T,stepIndex:X,playing:W,initialMuted:ne,playbackRate:P,onClipEnded:pe});A.useEffect(()=>{le(me)},[me]);const xe=A.useMemo(()=>Dw(x,me?null:T),[x,me,T]);A.useEffect(()=>{f==null||f(x[X].data,X)},[X,x,f]);const[Tt,Et]=A.useState(!0),zt=A.useRef(void 0),ue=A.useCallback(()=>{zt.current&&clearTimeout(zt.current),zt.current=setTimeout(()=>Et(!1),EN)},[]),Lo=A.useCallback(()=>{Et(!0),Y==="playing"&&ue()},[Y,ue]);A.useEffect(()=>(Y!=="playing"?(Et(!0),zt.current&&clearTimeout(zt.current)):ue(),()=>{zt.current&&clearTimeout(zt.current)}),[Y,ue]);const En=A.useCallback(()=>{fe(),I(),oe.current&&pw(oe.current.id)},[I,fe]),Ln=A.useCallback(S=>{const V=Math.max(0,Math.min(S,xe.totalDurationMs)),J=Qy(V,xe.stepStartTimesMs,B),ae=xe.stepStartTimesMs[J]??0;te(J,Math.max(0,V-ae)),Se(V,xe),W&&oe.current&&pw(oe.current.id)},[Se,te,xe,B,W]),aa=A.useRef(0),Xe=A.useCallback(S=>{Ln(aa.current+S)},[Ln]),[xt,no]=A.useState(null),zi=A.useCallback(S=>{no(V=>({kind:S,key:((V==null?void 0:V.key)??0)+1}))},[]),de=A.useCallback(()=>no(null),[]),Bo=A.useCallback(()=>{W?(zi("pause"),Q()):(zi("play"),En())},[W,Q,En,zi]),Bn=A.useCallback(()=>{W?Q():En()},[W,Q,En]),ao=A.useCallback(()=>{fe()},[fe]),[Ta,Cs]=A.useState(!1),oo=m&&typeof document<"u"&&document.fullscreenEnabled;A.useEffect(()=>{if(!oo)return;const S=()=>Cs(document.fullscreenElement!=null);return document.addEventListener("fullscreenchange",S),()=>document.removeEventListener("fullscreenchange",S)},[oo]);const Ni=A.useCallback(()=>{document.fullscreenElement?document.exitFullscreen().catch(()=>{}):document.documentElement.requestFullscreen().catch(()=>{})},[]),oa=A.useRef(null),Vi=A.useRef(null),ko=A.useRef(null),Ho=A.useRef(!1),[Ea,xa]=A.useState("elapsed"),io=A.useCallback(()=>{xa(S=>S==="elapsed"?"remaining":"elapsed")},[]);oN(W,Y,X,B,P,xe,oa,Vi,De,Z,{timeLabelRef:ko,timeDisplayMode:Ea,scrubbingRef:Ho,currentTimeMsRef:aa,domEpoch:L?1:0}),TN({enabled:m,containerRef:G,playbackState:Y,stepIndex:X,totalSteps:x.length,stepTimeline:xe,hasNarration:!!T,audioBlocked:ve,viewport:E,controls:{play:En,pause:Q,seekToTime:Ln,setMuted:S=>{me!==S&&Me()},setVolume:ot,setHostScale:U??void 0,prefetch:hn}});const so=!w,Yo=ve&&!g&&Y!=="idle",ia=so&&j.jsx(dN,{visible:Tt,playing:W,muted:me,playbackRate:P,stepTimeline:xe,showSpeedControl:h,hasNarration:!!T,onToggleFullscreen:oo?Ni:void 0,isFullscreen:Ta,progressTrackRef:oa,playheadRef:Vi,onTogglePlay:Bn,onToggleMute:Me,onSelectSpeed:K,onSeekToTime:Ln,onSkip:Xe,timeLabelRef:ko,timeDisplayMode:Ea,onToggleTimeDisplay:io,scrubbingRef:Ho});return j.jsxs("div",{ref:G,className:u,"data-demo-step":X,"data-demo-state":Y,"data-demo-total-steps":x.length,"data-demo-audio-blocked":ve?"":void 0,onMouseMove:so?Lo:void 0,children:[j.jsxs("div",{className:"relative",onClick:Bo,style:{cursor:g?void 0:"pointer"},children:[l(x[X].data,X),j.jsx(Cd,{children:Yo&&j.jsx(uN,{onEnableAudio:ao})}),xt&&!g&&j.jsx(lN,{kind:xt.kind,onComplete:de},xt.key),L?Eu.createPortal(ia,L):ia]}),T&&j.jsx("audio",{ref:O,preload:"none",hidden:!0})]})}function gw(o){return o.scale===wu.scale&&o.x===wu.x&&o.y===wu.y}function xN(o,i){return o.scale===i.scale&&o.x===i.x&&o.y===i.y}function DA({children:o,transform:i,contentRef:l}){const{isVideoExport:u}=Od(),f=Md(),p=(f==null?void 0:f.currentTimeMs)??0,h=A.useRef({from:i,to:i,atTimeMs:0});if(u&&!xN(i,h.current.to)){const T=(p-h.current.atTimeMs)/ld;h.current={from:XE(h.current.from,h.current.to,T),to:i,atTimeMs:p}}const[m,E]=A.useState(!1);if(A.useEffect(()=>{u||E(!0)},[u,i.scale,i.x,i.y]),u){const T=XE(h.current.from,h.current.to,(p-h.current.atTimeMs)/ld);return j.jsx("div",{className:gw(T)?void 0:"overflow-hidden",children:j.jsx("div",{ref:l,style:{position:"relative",transformOrigin:"0 0",transform:`translate(${T.x}px, ${T.y}px) scale(${T.scale})`},children:o})})}const x=!gw(i)||m;return j.jsx("div",{className:x?"overflow-hidden":void 0,children:j.jsx(Vo.div,{ref:l,animate:{scale:i.scale,x:i.x,y:i.y},transition:{duration:ld/1e3,ease:Cw},onAnimationComplete:()=>E(!1),style:{position:"relative",transformOrigin:"0 0"},children:o})})}const wN=48,RN=36;function AN({children:o,insetX:i=wN,insetY:l=RN}){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 j.jsx("div",{style:u,children:j.jsx("div",{style:f,children:o})})}function Br(o,i){if(!o||!i)return null;const l=i.querySelector(Vr(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 CN(o,i){if(!o||!i)return null;const l=i.querySelector(qO(o));return l||(console.warn(`[scenar] scroll target "${o}" not found in DOM. Ensure a [data-scroll-target="${o}"] element exists.`),null)}function DN(o,i){if(!i)return null;const l=i.querySelector(Vr(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 MA(o,i){const l=CN(o.target,i.containerRef.current);l&&(i.isVideoExport?kO(l):jw(l))}function OA(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 _A(o,i){i.setCursorTarget(void 0)}function jA(o,i){const l=Br(o.target,i.containerRef.current);l&&l.click()}function zA(o,i,l){var h;if(!o.target)return;const u=DN(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 NA(o,i){const l=Br(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 VA(o,i){const l=Br(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 UA(o,i){const l=Br(o.target,i.containerRef.current);l&&(l.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0})),l.setAttribute("data-dragging","true"))}function LA(o,i){const l=Br(o.dragTarget,i.containerRef.current);l&&l.dispatchEvent(new PointerEvent("pointerup",{bubbles:!0}));const u=Br(o.target,i.containerRef.current);u&&u.removeAttribute("data-dragging")}const MN=1.5;function ON(o,i,l){const u=l.querySelector(Vr(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,E=(p.top-f.top+p.height/2)/h;return{scale:i,x:l.offsetWidth/2-m*i,y:l.offsetHeight/2-E*i}}function BA(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??MN,f=ON(o.target,u,l);f&&i.setViewportTransform(f)}function _N(o,i,l,u){const f=o.text??"",p=o.atPercent*l+vt+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 jN(o,i,l,u){const f=o.atPercent*l+vt+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 zN(o,i,l){const u=o.atPercent*i+vt+Du+vt;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 NN(o,i,l,u){const f=o.atPercent*l,p=f+BO;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 VN(o,i){const{stepIndex:l,narrationManifest:u,steps:f,playbackRate:p=1}=o;A.useEffect(()=>{var T;const h=(T=f[l])==null?void 0:T.interactions;if(!h||h.length===0)return;const m=Mw(l,u,f),E=Math.max(p,.25),x=[];for(const v of h){const g=v.atPercent*m/E;if(v.type==="click")x.push(setTimeout(()=>i.setCursorTarget(v.target),g)),x.push(setTimeout(()=>jA(v,i),g+vt/E));else if(v.type==="type"){const w=v.text??"";if(w.length===0)continue;const C=v.typeDelay??Ow;_N(v,C,m,l),x.push(setTimeout(()=>i.setCursorTarget(v.target),g));const L=g+vt/E;for(let U=0;U<w.length;U++){const B=w.substring(0,U+1);x.push(setTimeout(()=>zA(v,B,i),L+U*C/E))}}else if(v.type==="hover"){const w=v.hoverDuration??_w;jN(v,w,m,l),x.push(setTimeout(()=>{var C;(C=i.setShowRipple)==null||C.call(i,!1),i.setCursorTarget(v.target)},g)),x.push(setTimeout(()=>NA(v,i),g+vt/E)),x.push(setTimeout(()=>{var C;VA(v,i),(C=i.setShowRipple)==null||C.call(i,!0)},g+(vt+w)/E))}else v.type==="drag"?(zN(v,m,l),x.push(setTimeout(()=>{var w;(w=i.setShowRipple)==null||w.call(i,!1),i.setCursorTarget(v.target)},g)),x.push(setTimeout(()=>{var w;(w=i.setDragging)==null||w.call(i,!0),UA(v,i)},g+vt/E)),x.push(setTimeout(()=>i.setCursorTarget(v.dragTarget),g+(vt+Du)/E)),x.push(setTimeout(()=>{var w,C;LA(v,i),(w=i.setDragging)==null||w.call(i,!1),(C=i.setShowRipple)==null||C.call(i,!0)},g+(vt+Du+vt)/E))):v.type==="viewport_transition"?(NN(v,h,m,l),x.push(setTimeout(()=>BA(v,i),g))):x.push(setTimeout(()=>UN(v,i),g))}return()=>{for(const v of x)clearTimeout(v)}},[l,u,i,f,p])}function UN(o,i){switch(o.type){case"scroll_to":MA(o,i);break;case"set_cursor":OA(o,i);break;case"clear_cursor":_A(o,i);break;default:i.setCursorTarget(o.target);break}}function LN(o,i,l){const{stepIndex:u,narrationManifest:f,steps:p}=o,h=A.useRef(new Set);A.useEffect(()=>{var w;const E=(w=p[u])==null?void 0:w.interactions;if(!E||E.length===0)return;const x=l.stepStartTimesMs[u]??0,T=l.stepStartTimesMs[u+1],v=T!=null?T-x:Mw(u,f,p),g=l.currentTimeMs-x;for(const C of E){const L=C.atPercent*v;if(C.type==="click")m(`${u}-${C.atPercent}-click-cursor`,g,L,()=>{i.setCursorTarget(C.target)}),m(`${u}-${C.atPercent}-click-dispatch`,g,L+vt,()=>{jA(C,i)});else if(C.type==="type"){const U=C.text??"";if(U.length===0)continue;const B=C.typeDelay??Ow;m(`${u}-${C.atPercent}-type-cursor`,g,L,()=>{i.setCursorTarget(C.target)});const G=L+vt;if(g>=G){const P=Math.min(Math.floor((g-G)/B)+1,U.length);m(`${u}-${C.atPercent}-type-char-${P}`,g,0,()=>{zA(C,U.substring(0,P),i)})}}else if(C.type==="hover"){const U=C.hoverDuration??_w;m(`${u}-${C.atPercent}-hover-cursor`,g,L,()=>{var B;(B=i.setShowRipple)==null||B.call(i,!1),i.setCursorTarget(C.target)}),m(`${u}-${C.atPercent}-hover-enter`,g,L+vt,()=>{NA(C,i)}),m(`${u}-${C.atPercent}-hover-leave`,g,L+vt+U,()=>{var B;VA(C,i),(B=i.setShowRipple)==null||B.call(i,!0)})}else C.type==="drag"?(m(`${u}-${C.atPercent}-drag-cursor`,g,L,()=>{var U;(U=i.setShowRipple)==null||U.call(i,!1),i.setCursorTarget(C.target)}),m(`${u}-${C.atPercent}-drag-press`,g,L+vt,()=>{var U;(U=i.setDragging)==null||U.call(i,!0),UA(C,i)}),m(`${u}-${C.atPercent}-drag-move`,g,L+vt+Du,()=>{i.setCursorTarget(C.dragTarget)}),m(`${u}-${C.atPercent}-drag-release`,g,L+vt+Du+vt,()=>{var U,B;LA(C,i),(U=i.setDragging)==null||U.call(i,!1),(B=i.setShowRipple)==null||B.call(i,!0)})):C.type==="viewport_transition"?m(`${u}-${C.atPercent}-viewport`,g,L,()=>{BA(C,i)}):m(`${u}-${C.atPercent}-${C.type}`,g,L,()=>{BN(C,i)})}}),A.useEffect(()=>{h.current.clear()},[u]);function m(E,x,T,v){x>=T&&!h.current.has(E)&&(h.current.add(E),v())}}function BN(o,i){switch(o.type){case"scroll_to":MA(o,i);break;case"set_cursor":OA(o,i);break;case"clear_cursor":_A(o,i);break;default:i.setCursorTarget(o.target);break}}function kA(o){const i=Md(),{isVideoExport:l}=Od(),u=A.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?LN(o,u,i):VN(o,u)}const HA="data-scenar-shot-frame",kN=`[${HA}]`,vw=33;function HN({scenarioId:o,steps:i,renderStep:l,canonicalWidth:u,shellHeight:f,narrationManifest:p,stage:h=!1,providers:m,onReady:E,onError:x}){const[T,v]=A.useState(0),g=A.useRef(0);g.current=T;const w=A.useMemo(()=>Dw(i,p??null),[i,p]),C=A.useRef(!1);A.useEffect(()=>{if(C.current)return;C.current=!0;let U;try{U=LO(i,w)}catch(G){x(G instanceof Error?G:new Error(String(G)));return}const B=()=>new Promise(G=>{requestAnimationFrame(()=>requestAnimationFrame(()=>setTimeout(G,30)))});E({shots:U,timeline:w,frameSelector:kN,setTime:G=>Eu.flushSync(()=>v(G)),walkTo:async G=>{for(let P=g.current+vw;P<G;P+=vw)Eu.flushSync(()=>v(P));Eu.flushSync(()=>v(G)),Eu.flushSync(()=>{}),await B()}})},[]);const L=j.jsx(YN,{scenarioId:o,steps:i,renderStep:l,canonicalWidth:u,shellHeight:f,narrationManifest:p,stage:h});return j.jsx(ZO,{currentTimeMs:T,stepStartTimesMs:w.stepStartTimesMs,children:j.jsx(JO,{children:m?j.jsx(m,{children:L}):L})})}function YN({scenarioId:o,steps:i,renderStep:l,canonicalWidth:u,shellHeight:f,narrationManifest:p,stage:h}){const m=A.useRef(null),E=A.useRef(null),[x,T]=A.useState(0),[,v]=A.useState(void 0),[,g]=A.useState(!0),[,w]=A.useState(!1),[C,L]=A.useState(wu),U=A.useCallback((G,P)=>{T(P),v(void 0)},[]);kA({stepIndex:x,narrationManifest:p,containerRef:m,cameraRef:E,setCursorTarget:v,setShowRipple:g,setDragging:w,setViewportTransform:L,steps:i});const B=A.useMemo(()=>({id:o,steps:i,narrationManifest:p}),[o,i,p]);return j.jsx("div",{[HA]:"",ref:m,style:{width:u,position:"relative",overflow:"hidden","--scenar-shell-height":`${f}px`},children:j.jsx(DA,{transform:C,contentRef:E,children:j.jsx(CA,{bundle:B,onStepChange:U,children:h?(G,P)=>j.jsx(AN,{children:l(G,P)}):l})})})}const bw=.24,qN=.42,GN=1400,PN=.15;function $N(o){return{type:"spring",visualDuration:Math.min(qN,Math.max(bw,bw+o/GN)),bounce:PN}}const XN=80,Sw=12,QN=400,ZN=100;function Tw(o,i){const l=Tg(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 IN({target:o,containerRef:i,showRipple:l=!0,isDragging:u=!1}){const[f,p]=A.useState(null),h=A.useRef(null),m=A.useCallback(se=>{if(se===null){h.current=null,p(null);return}const le=h.current,F=le?Math.hypot(se.x-le.x,se.y-le.y):0;h.current=se,p({pos:se,distancePx:F})},[]),E=(f==null?void 0:f.pos)??null,x=Md(),[T,v]=A.useState(!1),g=A.useRef(void 0),w=A.useRef(void 0),C=A.useRef(void 0),[L,U]=A.useState(null),B=A.useRef(void 0);A.useEffect(()=>{x&&o!==B.current&&(B.current=o,U(o?x.currentTimeMs:null))},[o]);const G=l&&!u&&x!=null&&L!=null&&x.currentTimeMs-L>=vt,P=x?G:T&&!u,K=A.useRef(!1);K.current=x!=null,A.useEffect(()=>{if(!K.current)return;if(!o){m(null);return}const se=i.current;if(!se)return;const le=se.querySelector(Vr(o));le&&(Tw(o,le),m(wy(se,le)))},[o,i]),A.useEffect(()=>{if(K.current)return;if(clearTimeout(g.current),clearTimeout(w.current),clearTimeout(C.current),v(!1),!o){m(null);return}let se=!1,le=0;function F(){if(se)return;const Y=i.current;if(!Y)return;const W=Y.querySelector(Vr(o));if(!W){le<Sw?(le++,w.current=setTimeout(F,XN)):console.warn(`[Cursor] Could not find target "${o}" after ${Sw} retries.`);return}const I=jw(W);C.current=setTimeout(()=>{requestAnimationFrame(()=>{se||(Tw(o,W),m(wy(Y,W)),l&&(g.current=setTimeout(()=>{se||v(!0)},vt)))})},I?QN:0)}const X=requestAnimationFrame(F);return()=>{se=!0,cancelAnimationFrame(X),clearTimeout(w.current),clearTimeout(C.current),clearTimeout(g.current)}},[o,i,l]),A.useEffect(()=>()=>{clearTimeout(g.current),clearTimeout(w.current),clearTimeout(C.current)},[]);const ne=A.useCallback(()=>{const se=i.current;if(!se||!o)return;const le=se.querySelector(Vr(o));le&&m(wy(se,le))},[o,i]);return A.useEffect(()=>{if(K.current)return;const se=i.current;if(!se||!o)return;let le;const F=new ResizeObserver(()=>{clearTimeout(le),le=setTimeout(ne,ZN)});return F.observe(se),()=>{clearTimeout(le),F.disconnect()}},[o,i,ne]),j.jsx(Cd,{children:E&&j.jsxs(Vo.div,{className:"pointer-events-none absolute z-50",style:{top:0,left:0},initial:{x:E.x,y:E.y,opacity:0},animate:{x:E.x,y:E.y,opacity:1},exit:{opacity:0},transition:$N((f==null?void 0:f.distancePx)??0),children:[j.jsx(Vo.span,{className:"block",animate:P?{scale:[1,.85,1]}:{scale:1},transition:{duration:.25,ease:"easeOut"},style:{transformOrigin:"top left"},children:u?j.jsx(FN,{}):j.jsx(JN,{})}),j.jsx(Cd,{children:P&&j.jsx(Vo.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 JN(){return j.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:j.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 FN(){return j.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:[j.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"}),j.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 KN=896,WN=0,Ew="relative mx-auto overflow-hidden";function e4({containerRef:o,children:i,className:l,canonicalWidth:u=KN,minZoom:f=WN,shellHeight:p,wrapperClassName:h=Ew}){const{isVideoExport:m}=Od(),E=A.useRef(null),x=A.useRef(null),[T,v]=A.useState(1),[g,w]=A.useState(null),[C,L]=A.useState(1),U=o??x;A.useLayoutEffect(()=>{if(m)return;const K=E.current;if(!K)return;const ne=le=>{v(Math.max(Math.min(le/u,1),f))};ne(K.getBoundingClientRect().width);const se=new ResizeObserver(le=>{ne(le[0].contentRect.width)});return se.observe(K),()=>se.disconnect()},[m,u,f]);const B=l?`${h} ${l}`:h;if(m)return j.jsx("div",{ref:U,className:B,children:i});const G={width:u,zoom:T};p!=null&&(G["--scenar-shell-height"]=`${p}px`);const P=h===Ew?{maxWidth:u}:void 0;return j.jsxs("div",{ref:E,className:B,style:P,children:[j.jsx("div",{ref:U,className:"relative",style:G,children:j.jsx(I5,{value:g,children:j.jsx(F5,{value:L,children:i})})}),j.jsx("div",{ref:w,className:"pointer-events-none absolute inset-0",style:C!==1?{zoom:1/C}:void 0})]})}const xw="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 YA=(...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 t4=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 n4=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 ww=o=>{const i=n4(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 Gy={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 a4=o=>{for(const i in o)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},o4=A.createContext({}),i4=()=>A.useContext(o4),s4=A.forwardRef(({color:o,size:i,strokeWidth:l,absoluteStrokeWidth:u,className:f="",children:p,iconNode:h,...m},E)=>{const{size:x=24,strokeWidth:T=2,absoluteStrokeWidth:v=!1,color:g="currentColor",className:w=""}=i4()??{},C=u??v?Number(l??T)*24/Number(i??x):l??T;return A.createElement("svg",{ref:E,...Gy,width:i??x??Gy.width,height:i??x??Gy.height,stroke:o??g,strokeWidth:C,className:YA("lucide",w,f),...!p&&!a4(m)&&{"aria-hidden":"true"},...m},[...h.map(([L,U])=>A.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 Sa=(o,i)=>{const l=A.forwardRef(({className:u,...f},p)=>A.createElement(s4,{ref:p,iconNode:i,className:YA(`lucide-${t4(ww(o))}`,`lucide-${o}`,u),...f}));return l.displayName=ww(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 r4=[["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"}]],l4=Sa("bell",r4);/**
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 u4=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],c4=Sa("chevron-left",u4);/**
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 f4=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],d4=Sa("chevron-right",f4);/**
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 h4=[["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"}]],p4=Sa("ellipsis-vertical",h4);/**
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 m4=[["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"}]],y4=Sa("globe",m4);/**
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 g4=[["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"}]],v4=Sa("lock",g4);/**
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 b4=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],S4=Sa("plus",b4);/**
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 T4=[["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"}]],E4=Sa("rotate-ccw",T4);/**
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 x4=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],w4=Sa("search",x4);/**
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 R4=[["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"}]],A4=Sa("star",R4);/**
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 C4=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],D4=Sa("x",C4),M4=420;function O4(o){const i=o.replace(/^https?:\/\//,"");return i.split("/")[0]??i}function _4({url:o,contentKey:i,slideDirection:l,children:u,zoom:f}){const p=l==="forward"?24:l==="backward"?-24:0;return j.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border",style:{height:`var(--scenar-shell-height, ${M4}px)`,borderColor:"var(--scenar-border)",zoom:f??void 0},children:[j.jsxs("div",{className:"flex items-center bg-[var(--scenar-chrome)] px-2 pt-1.5",children:[j.jsxs("div",{className:"mr-3 flex gap-2 pl-1.5",children:[j.jsx("span",{className:"h-3 w-3 rounded-full bg-[#ff5f57]"}),j.jsx("span",{className:"h-3 w-3 rounded-full bg-[#febc2e]"}),j.jsx("span",{className:"h-3 w-3 rounded-full bg-[#28c840]"})]}),j.jsxs("div",{className:"flex items-center gap-1.5 rounded-t-lg bg-[var(--scenar-chrome-raised)] px-3 py-1.5",children:[j.jsx(y4,{className:"h-3.5 w-3.5 shrink-0 text-[#9aa0a6]"}),j.jsx("span",{className:"max-w-[180px] truncate text-xs text-[#e8eaed]",children:O4(o)}),j.jsx(D4,{className:"h-3 w-3 shrink-0 text-[#9aa0a6]"})]}),j.jsx(S4,{className:"ml-1 h-3.5 w-3.5 shrink-0 text-[#9aa0a6]"}),j.jsx("div",{className:"flex-1"}),j.jsx("div",{className:"mr-1 flex h-5 w-5 items-center justify-center rounded-full bg-[#5f6368]",children:j.jsx("span",{className:"text-[8px] font-medium leading-none text-[#e8eaed]",children:"J"})})]}),j.jsxs("div",{className:"flex items-center gap-2 bg-[var(--scenar-chrome-raised)] px-2 py-1",children:[j.jsxs("div",{className:"flex items-center gap-1",children:[j.jsx(c4,{className:"h-4 w-4 text-[#9aa0a6]"}),j.jsx(d4,{className:"h-4 w-4 text-[#9aa0a6]"}),j.jsx(E4,{className:"ml-0.5 h-3.5 w-3.5 text-[#9aa0a6]"})]}),j.jsxs("div",{className:"flex flex-1 items-center gap-1.5 rounded-full bg-[var(--scenar-chrome)] px-3 py-1.5",children:[j.jsx(v4,{className:"h-3 w-3 shrink-0 text-[#9aa0a6]"}),j.jsx("span",{className:"truncate text-xs text-[var(--scenar-chrome-foreground)]",children:o})]}),j.jsxs("div",{className:"flex items-center gap-1",children:[j.jsx(A4,{className:"h-3.5 w-3.5 text-[#9aa0a6]"}),j.jsx("div",{className:"h-4 w-4 rounded-full bg-[#5f6368]"}),j.jsx(p4,{className:"h-4 w-4 text-[#9aa0a6]"})]})]}),j.jsx(Vo.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 j4({header:o,sidebar:i,children:l,rightPanel:u}){return j.jsxs("div",{className:"flex h-full flex-col bg-[var(--scenar-surface)]",children:[o,j.jsxs("div",{className:"flex min-h-0 flex-1",children:[i,j.jsx("main",{className:"min-w-0 flex-1 overflow-y-auto",children:l}),u]})]})}function z4({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 j.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:[j.jsxs("div",{className:"flex items-center gap-3",children:[j.jsxs("div",{className:"flex items-center gap-2",children:[i??j.jsx("div",{className:"flex h-6 w-6 items-center justify-center rounded-md bg-[#3b82f6]",children:j.jsx("span",{className:"text-[10px] font-bold leading-none text-white",children:h})}),o&&j.jsx("span",{className:"text-[13px] font-semibold text-[var(--scenar-foreground)]",children:o})]}),l&&l.length>0&&j.jsx("nav",{className:"ml-4 flex items-center gap-1",children:l.map((E,x)=>j.jsx("span",{className:`rounded-md px-2.5 py-1 text-[12px] ${E.active?"bg-[var(--scenar-accent)] font-medium text-[var(--scenar-foreground)]":"text-[var(--scenar-muted-foreground)]"}`,children:E.label},x))})]}),j.jsxs("div",{className:"flex items-center gap-2.5",children:[!f&&j.jsx(w4,{className:"h-3.5 w-3.5 text-[var(--scenar-muted-foreground)]"}),!p&&j.jsx(l4,{className:"h-3.5 w-3.5 text-[var(--scenar-muted-foreground)]"}),j.jsx("div",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-[#6366f1]",children:j.jsx("span",{className:"text-[10px] font-medium leading-none text-white",children:h})})]})]})}function N4({items:o,width:i=200}){return j.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 j.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 j.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&&j.jsx("span",{className:"absolute left-0 top-1 bottom-1 w-[3px] rounded-r bg-[#3b82f6]"}),l.icon&&j.jsx("span",{className:"shrink-0",children:l.icon}),j.jsx("span",{className:"truncate",children:l.label})]},u)})})}function qA({title:o,subtitle:i,headerSlot:l,fields:u,submitLabel:f="Submit",footerText:p,width:h=280,children:m}){return j.jsxs("div",{className:"rounded-lg border border-[var(--scenar-border)] bg-[var(--scenar-card)] p-5 shadow-sm",style:{width:h},children:[(l||o)&&j.jsxs("div",{className:"mb-4 text-center",children:[l&&j.jsx("div",{className:"mb-2 flex justify-center",children:l}),o&&j.jsx("h3",{className:"text-[14px] font-semibold text-[var(--scenar-foreground)]",children:o}),i&&j.jsx("p",{className:"mt-0.5 text-[12px] text-[var(--scenar-muted-foreground)]",children:i})]}),j.jsx("div",{className:"space-y-2.5",children:u.map((E,x)=>j.jsxs("div",{children:[j.jsx("label",{className:"mb-0.5 block text-[11px] font-medium text-[var(--scenar-muted-foreground)]",children:E.label}),j.jsx("div",{className:"rounded-md border border-[var(--scenar-border)] bg-[var(--scenar-surface)] px-2.5 py-1.5 text-[12px]",children:E.type==="password"?j.jsx("span",{className:"text-[var(--scenar-muted-foreground)]",children:"•".repeat(12)}):E.value?j.jsx("span",{className:"text-[var(--scenar-foreground)]",children:E.value}):j.jsx("span",{className:"text-[var(--scenar-muted-foreground)]",children:E.placeholder??""})})]},x))}),m,j.jsx("div",{className:"mt-4",children:j.jsx("div",{className:"rounded-md bg-[#3b82f6] py-1.5 text-center text-[12px] font-medium text-white",children:f})}),p&&j.jsx("p",{className:"mt-3 text-center text-[11px] text-[var(--scenar-muted-foreground)]",children:p})]})}function V4({columns:o,rows:i,emptyText:l}){return j.jsx("div",{className:"overflow-hidden rounded-lg border border-[var(--scenar-border)]",children:j.jsxs("table",{className:"w-full text-[12px]",children:[j.jsx("thead",{children:j.jsx("tr",{className:"border-b border-[var(--scenar-border)] bg-[var(--scenar-accent)]",children:o.map(u=>j.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))})}),j.jsxs("tbody",{children:[i.length===0&&l&&j.jsx("tr",{children:j.jsx("td",{colSpan:o.length,className:"px-3 py-6 text-center text-[var(--scenar-muted-foreground)]",children:l})}),i.map(u=>j.jsx("tr",{className:"border-b border-[var(--scenar-border)] last:border-b-0",children:o.map(f=>j.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 U4={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 Py({label:o,variant:i="neutral"}){return j.jsx("span",{className:`inline-flex items-center rounded-full px-2 py-0.5 text-[11px] font-medium leading-none ${U4[i]}`,children:o})}function L4({appName:o,logo:i,subtitle:l,fields:u,submitLabel:f="Sign in",footerText:p,cardWidth:h=280,background:m,topBar:E,submitTargetId:x}){var g;const T=m??"linear-gradient(to bottom, var(--scenar-surface), color-mix(in srgb, var(--scenar-accent) 30%, var(--scenar-surface)))",v=i??j.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-[#3b82f6]/10",children:j.jsx("span",{className:"text-sm font-bold text-[#3b82f6]",children:((g=o[0])==null?void 0:g.toUpperCase())??"A"})});return j.jsxs("div",{className:"flex h-full flex-col",style:{background:T},children:[E,j.jsx("div",{className:"flex flex-1 items-center justify-center",children:j.jsx("div",{"data-cursor-target":x,children:j.jsx(qA,{title:o,subtitle:l??"Sign in to your account",headerSlot:v,fields:u,submitLabel:f,footerText:p,width:h})})})]})}function $y({appName:o,logo:i,navLinks:l,userName:u,sidebarItems:f,sidebarWidth:p,children:h}){return j.jsx(j4,{header:j.jsx(z4,{appName:o,logo:i,navLinks:l,userName:u}),sidebar:f?j.jsx(N4,{items:f,width:p}):void 0,children:h})}const B4=""+new URL("logo-f-5LjVqJ.png",import.meta.url).href;function GA(o,i){return Fe.jsxDEV(_4,{url:`https://${o.url}`,contentKey:String(i),children:H4(o.screen)},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:27,columnNumber:5},this)}const k4=[{label:"Home",active:!0},{label:"Projects"},{label:"Settings"}],Xy=[{label:"Workspace",isSection:!0},{label:"Overview",active:!0},{label:"Projects"},{label:"Members"},{label:"Account",isSection:!0},{label:"Profile"},{label:"Billing"}];function H4(o){switch(o){case"login":return Fe.jsxDEV(L4,{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",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 Fe.jsxDEV($y,{appName:"Acme Cloud",userName:"Jordan",navLinks:k4,sidebarItems:Xy,children:Fe.jsxDEV("div",{className:"p-5",children:[Fe.jsxDEV("div",{className:"mb-4 flex items-center gap-2",children:[Fe.jsxDEV("img",{src:B4,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:75,columnNumber:15},this),Fe.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:76,columnNumber:15},this)]},void 0,!0,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:74,columnNumber:13},this),Fe.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=>Fe.jsxDEV("div",{className:"rounded-lg border border-[var(--scenar-border)] bg-[var(--scenar-card)] p-4",children:[Fe.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:90,columnNumber:19},this),Fe.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:93,columnNumber:19},this)]},i.label,!0,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:86,columnNumber:17},this))},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:80,columnNumber:13},this)]},void 0,!0,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:73,columnNumber:11},this)},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:67,columnNumber:9},this);case"projects":return Fe.jsxDEV($y,{appName:"Acme Cloud",userName:"Jordan",navLinks:[{label:"Home"},{label:"Projects",active:!0},{label:"Settings"}],sidebarItems:Xy,children:Fe.jsxDEV("div",{className:"p-5",children:[Fe.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:116,columnNumber:13},this),Fe.jsxDEV(V4,{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:Fe.jsxDEV(Py,{label:"Healthy",variant:"success"},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:131,columnNumber:29},this)}},{id:"2",cells:{name:"web-frontend",env:"production",status:Fe.jsxDEV(Py,{label:"Deploying",variant:"info"},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:139,columnNumber:29},this)}},{id:"3",cells:{name:"billing-worker",env:"staging",status:Fe.jsxDEV(Py,{label:"Degraded",variant:"warning"},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:147,columnNumber:29},this)}}]},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:119,columnNumber:13},this)]},void 0,!0,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:115,columnNumber:11},this)},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:105,columnNumber:9},this);case"settings":return Fe.jsxDEV($y,{appName:"Acme Cloud",userName:"Jordan",navLinks:[{label:"Home"},{label:"Projects"},{label:"Settings",active:!0}],sidebarItems:Xy,children:Fe.jsxDEV("div",{className:"flex justify-center p-6",children:Fe.jsxDEV(qA,{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:169,columnNumber:13},this)},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:168,columnNumber:11},this)},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/index.tsx",lineNumber:158,columnNumber:9},this)}}const Y4=[{delayMs:0,data:{url:"app.acme.cloud/login",screen:"login"},shot:"login-screen"},{delayMs:2400,data:{url:"app.acme.cloud/home",screen:"dashboard"}},{delayMs:2600,data:{url:"app.acme.cloud/projects",screen:"projects"}},{delayMs:2600,data:{url:"app.acme.cloud/settings",screen:"settings"},shot:"settings-screen"}],q4=Object.freeze(Object.defineProperty({__proto__:null,steps:Y4},Symbol.toStringTag,{value:"Module"}));function G4(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 bg=G4(q4),P4=(()=>{try{return new URLSearchParams(window.location.search).get("theme")}catch{return null}})(),Kg=P4==="dark"?xw+" dark":xw,gd=(()=>{try{return new URLSearchParams(window.location.search).get("shot")}catch{return null}})();window.parent===window&&(document.body.classList.add(...Kg.split(" ")),document.body.style.background="var(--scenar-surface)");function $4(){const o=A.useRef(null),i=A.useRef(null),[l,u]=A.useState(0),[f,p]=A.useState(void 0),[h,m]=A.useState(!0),[E,x]=A.useState(!1),[T,v]=A.useState(wu),g=A.useCallback((C,L)=>{u(L),p(void 0)},[]);kA({stepIndex:l,narrationManifest:void 0,containerRef:o,cameraRef:i,setCursorTarget:p,setShowRipple:m,setDragging:x,setViewportTransform:v,steps:bg});const w={id:"welcome-tour",steps:bg,narrationManifest:void 0};return Fe.jsxDEV("div",{className:Kg,children:Fe.jsxDEV(e4,{containerRef:o,canonicalWidth:896,shellHeight:480,children:Fe.jsxDEV(DA,{transform:T,contentRef:i,children:[Fe.jsxDEV(CA,{bundle:w,embed:!0,embedViewport:{widthPx:896,heightPx:480},onStepChange:g,children:(C,L)=>GA(C,L)},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/.scenar-pack/entry.tsx",lineNumber:76,columnNumber:11},this),Fe.jsxDEV(IN,{target:f,containerRef:i,showRipple:h,isDragging:E},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/.scenar-pack/entry.tsx",lineNumber:79,columnNumber:11},this)]},void 0,!0,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/.scenar-pack/entry.tsx",lineNumber:75,columnNumber:9},this)},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/.scenar-pack/entry.tsx",lineNumber:74,columnNumber:7},this)},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/.scenar-pack/entry.tsx",lineNumber:72,columnNumber:5},this)}async function X4(o){Aw.createRoot(o).render(Fe.jsxDEV("div",{className:Kg,children:Fe.jsxDEV(HN,{scenarioId:"welcome-tour",steps:bg,renderStep:GA,canonicalWidth:896,shellHeight:480,narrationManifest:void 0,stage:!1,providers:void 0,onReady:l=>{if(window.__scenarShot=l,gd){const u=l.shots.find(f=>f.name===gd);if(!u){window.__scenarShotError='no shot named "'+gd+'" — 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:91,columnNumber:7},this)},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/.scenar-pack/entry.tsx",lineNumber:90,columnNumber:5},this))}const Sg=document.getElementById("root");if(!Sg)throw new Error("Embed root element #root not found");gd!==null?X4(Sg).catch(o=>{window.__scenarShotError=o instanceof Error?o.message:String(o)}):Aw.createRoot(Sg).render(Fe.jsxDEV($4,{},void 0,!1,{fileName:"/home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/.scenar-pack/entry.tsx",lineNumber:128,columnNumber:30},void 0));