@hailer/mcp 0.1.11 → 0.1.13

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 (59) hide show
  1. package/.claude/settings.json +12 -0
  2. package/CLAUDE.md +37 -1
  3. package/dist/app.js +5 -0
  4. package/dist/client/agents/base.d.ts +5 -0
  5. package/dist/client/agents/base.js +9 -2
  6. package/dist/client/agents/definitions.js +85 -0
  7. package/dist/client/agents/orchestrator.d.ts +21 -0
  8. package/dist/client/agents/orchestrator.js +292 -1
  9. package/dist/client/bot-entrypoint.d.ts +7 -0
  10. package/dist/client/bot-entrypoint.js +103 -0
  11. package/dist/client/bot-runner.d.ts +35 -0
  12. package/dist/client/bot-runner.js +188 -0
  13. package/dist/client/factory.d.ts +4 -0
  14. package/dist/client/factory.js +10 -0
  15. package/dist/client/server.d.ts +8 -0
  16. package/dist/client/server.js +251 -0
  17. package/dist/client/types.d.ts +29 -0
  18. package/dist/client/types.js +4 -1
  19. package/dist/core.d.ts +3 -0
  20. package/dist/core.js +72 -0
  21. package/dist/mcp/hailer-clients.d.ts +4 -0
  22. package/dist/mcp/hailer-clients.js +16 -1
  23. package/dist/mcp/tools/app-scaffold.js +127 -5
  24. package/dist/mcp/tools/bot-config.d.ts +78 -0
  25. package/dist/mcp/tools/bot-config.js +442 -0
  26. package/dist/mcp-server.js +109 -1
  27. package/dist/modules/bug-reports/bug-config.d.ts +25 -0
  28. package/dist/modules/bug-reports/bug-config.js +187 -0
  29. package/dist/modules/bug-reports/bug-monitor.d.ts +108 -0
  30. package/dist/modules/bug-reports/bug-monitor.js +510 -0
  31. package/dist/modules/bug-reports/giuseppe-ai.d.ts +59 -0
  32. package/dist/modules/bug-reports/giuseppe-ai.js +335 -0
  33. package/dist/modules/bug-reports/giuseppe-bot.d.ts +109 -0
  34. package/dist/modules/bug-reports/giuseppe-bot.js +765 -0
  35. package/dist/modules/bug-reports/giuseppe-files.d.ts +52 -0
  36. package/dist/modules/bug-reports/giuseppe-files.js +338 -0
  37. package/dist/modules/bug-reports/giuseppe-git.d.ts +48 -0
  38. package/dist/modules/bug-reports/giuseppe-git.js +298 -0
  39. package/dist/modules/bug-reports/giuseppe-prompt.d.ts +5 -0
  40. package/dist/modules/bug-reports/giuseppe-prompt.js +94 -0
  41. package/dist/modules/bug-reports/index.d.ts +76 -0
  42. package/dist/modules/bug-reports/index.js +213 -0
  43. package/dist/modules/bug-reports/pending-classification-registry.d.ts +28 -0
  44. package/dist/modules/bug-reports/pending-classification-registry.js +50 -0
  45. package/dist/modules/bug-reports/pending-fix-registry.d.ts +30 -0
  46. package/dist/modules/bug-reports/pending-fix-registry.js +42 -0
  47. package/dist/modules/bug-reports/pending-registry.d.ts +27 -0
  48. package/dist/modules/bug-reports/pending-registry.js +49 -0
  49. package/dist/modules/bug-reports/types.d.ts +123 -0
  50. package/dist/modules/bug-reports/types.js +9 -0
  51. package/dist/services/bug-monitor.d.ts +23 -0
  52. package/dist/services/bug-monitor.js +275 -0
  53. package/package.json +6 -2
  54. package/.claude.tar.xz +0 -0
  55. package/lineup-manager/dist/assets/index-8ce6041d.css +0 -1
  56. package/lineup-manager/dist/assets/index-e168f265.js +0 -600
  57. package/lineup-manager/dist/index.html +0 -15
  58. package/lineup-manager/dist/manifest.json +0 -17
  59. package/lineup-manager/dist/vite.svg +0 -1
@@ -1,600 +0,0 @@
1
- function a3(e,t){for(var a=0;a<t.length;a++){const i=t[a];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const u=Object.getOwnPropertyDescriptor(i,s);u&&Object.defineProperty(e,s,u.get?u:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function a(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(s){if(s.ep)return;s.ep=!0;const u=a(s);fetch(s.href,u)}})();var Qm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dM={exports:{}},Fx={},fM={exports:{}},Hv={exports:{}};/**
2
- * @license React
3
- * react.development.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its 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
- */Hv.exports;(function(e,t){(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var a="18.3.1",i=Symbol.for("react.element"),s=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),m=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),k=Symbol.iterator,A="@@iterator";function _(C){if(C===null||typeof C!="object")return null;var j=k&&C[k]||C[A];return typeof j=="function"?j:null}var P={current:null},$={transition:null},L={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},U={current:null},F={},Q=null;function se(C){Q=C}F.setExtraStackFrame=function(C){Q=C},F.getCurrentStack=null,F.getStackAddendum=function(){var C="";Q&&(C+=Q);var j=F.getCurrentStack;return j&&(C+=j()||""),C};var ae=!1,ue=!1,Ge=!1,Y=!1,ce=!1,Ee={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:$,ReactCurrentOwner:U};Ee.ReactDebugCurrentFrame=F,Ee.ReactCurrentActQueue=L;function G(C){{for(var j=arguments.length,ee=new Array(j>1?j-1:0),oe=1;oe<j;oe++)ee[oe-1]=arguments[oe];X("warn",C,ee)}}function I(C){{for(var j=arguments.length,ee=new Array(j>1?j-1:0),oe=1;oe<j;oe++)ee[oe-1]=arguments[oe];X("error",C,ee)}}function X(C,j,ee){{var oe=Ee.ReactDebugCurrentFrame,Te=oe.getStackAddendum();Te!==""&&(j+="%s",ee=ee.concat([Te]));var Qe=ee.map(function(Ie){return String(Ie)});Qe.unshift("Warning: "+j),Function.prototype.apply.call(console[C],console,Qe)}}var pe={};function te(C,j){{var ee=C.constructor,oe=ee&&(ee.displayName||ee.name)||"ReactClass",Te=oe+"."+j;if(pe[Te])return;I("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.",j,oe),pe[Te]=!0}}var we={isMounted:function(C){return!1},enqueueForceUpdate:function(C,j,ee){te(C,"forceUpdate")},enqueueReplaceState:function(C,j,ee,oe){te(C,"replaceState")},enqueueSetState:function(C,j,ee,oe){te(C,"setState")}},xe=Object.assign,be={};Object.freeze(be);function Ve(C,j,ee){this.props=C,this.context=j,this.refs=be,this.updater=ee||we}Ve.prototype.isReactComponent={},Ve.prototype.setState=function(C,j){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,j,"setState")},Ve.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};{var Ue={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)."]},Xe=function(C,j){Object.defineProperty(Ve.prototype,C,{get:function(){G("%s(...) is deprecated in plain JavaScript React classes. %s",j[0],j[1])}})};for(var Rt in Ue)Ue.hasOwnProperty(Rt)&&Xe(Rt,Ue[Rt])}function pt(){}pt.prototype=Ve.prototype;function Ct(C,j,ee){this.props=C,this.context=j,this.refs=be,this.updater=ee||we}var ut=Ct.prototype=new pt;ut.constructor=Ct,xe(ut,Ve.prototype),ut.isPureReactComponent=!0;function Ft(){var C={current:null};return Object.seal(C),C}var ge=Array.isArray;function mt(C){return ge(C)}function kt(C){{var j=typeof Symbol=="function"&&Symbol.toStringTag,ee=j&&C[Symbol.toStringTag]||C.constructor.name||"Object";return ee}}function At(C){try{return Ot(C),!1}catch{return!0}}function Ot(C){return""+C}function Et(C){if(At(C))return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",kt(C)),Ot(C)}function on(C,j,ee){var oe=C.displayName;if(oe)return oe;var Te=j.displayName||j.name||"";return Te!==""?ee+"("+Te+")":ee}function Kt(C){return C.displayName||"Context"}function De(C){if(C==null)return null;if(typeof C.tag=="number"&&I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof C=="function")return C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case u:return"Fragment";case s:return"Portal";case f:return"Profiler";case c:return"StrictMode";case y:return"Suspense";case S:return"SuspenseList"}if(typeof C=="object")switch(C.$$typeof){case m:var j=C;return Kt(j)+".Consumer";case h:var ee=C;return Kt(ee._context)+".Provider";case v:return on(C,C.render,"ForwardRef");case x:var oe=C.displayName||null;return oe!==null?oe:De(C.type)||"Memo";case R:{var Te=C,Qe=Te._payload,Ie=Te._init;try{return De(Ie(Qe))}catch{return null}}}return null}var ot=Object.prototype.hasOwnProperty,dt={key:!0,ref:!0,__self:!0,__source:!0},et,St,st;st={};function Nt(C){if(ot.call(C,"ref")){var j=Object.getOwnPropertyDescriptor(C,"ref").get;if(j&&j.isReactWarning)return!1}return C.ref!==void 0}function We(C){if(ot.call(C,"key")){var j=Object.getOwnPropertyDescriptor(C,"key").get;if(j&&j.isReactWarning)return!1}return C.key!==void 0}function Dt(C,j){var ee=function(){et||(et=!0,I("%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://reactjs.org/link/special-props)",j))};ee.isReactWarning=!0,Object.defineProperty(C,"key",{get:ee,configurable:!0})}function en(C,j){var ee=function(){St||(St=!0,I("%s: `ref` 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://reactjs.org/link/special-props)",j))};ee.isReactWarning=!0,Object.defineProperty(C,"ref",{get:ee,configurable:!0})}function vt(C){if(typeof C.ref=="string"&&U.current&&C.__self&&U.current.stateNode!==C.__self){var j=De(U.current.type);st[j]||(I('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',j,C.ref),st[j]=!0)}}var ye=function(C,j,ee,oe,Te,Qe,Ie){var lt={$$typeof:i,type:C,key:j,ref:ee,props:Ie,_owner:Qe};return lt._store={},Object.defineProperty(lt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(lt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:oe}),Object.defineProperty(lt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Te}),Object.freeze&&(Object.freeze(lt.props),Object.freeze(lt)),lt};function ke(C,j,ee){var oe,Te={},Qe=null,Ie=null,lt=null,Bt=null;if(j!=null){Nt(j)&&(Ie=j.ref,vt(j)),We(j)&&(Et(j.key),Qe=""+j.key),lt=j.__self===void 0?null:j.__self,Bt=j.__source===void 0?null:j.__source;for(oe in j)ot.call(j,oe)&&!dt.hasOwnProperty(oe)&&(Te[oe]=j[oe])}var bn=arguments.length-2;if(bn===1)Te.children=ee;else if(bn>1){for(var En=Array(bn),Rn=0;Rn<bn;Rn++)En[Rn]=arguments[Rn+2];Object.freeze&&Object.freeze(En),Te.children=En}if(C&&C.defaultProps){var Ln=C.defaultProps;for(oe in Ln)Te[oe]===void 0&&(Te[oe]=Ln[oe])}if(Qe||Ie){var Xn=typeof C=="function"?C.displayName||C.name||"Unknown":C;Qe&&Dt(Te,Xn),Ie&&en(Te,Xn)}return ye(C,Qe,Ie,lt,Bt,U.current,Te)}function Ye(C,j){var ee=ye(C.type,j,C.ref,C._self,C._source,C._owner,C.props);return ee}function Fe(C,j,ee){if(C==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+C+".");var oe,Te=xe({},C.props),Qe=C.key,Ie=C.ref,lt=C._self,Bt=C._source,bn=C._owner;if(j!=null){Nt(j)&&(Ie=j.ref,bn=U.current),We(j)&&(Et(j.key),Qe=""+j.key);var En;C.type&&C.type.defaultProps&&(En=C.type.defaultProps);for(oe in j)ot.call(j,oe)&&!dt.hasOwnProperty(oe)&&(j[oe]===void 0&&En!==void 0?Te[oe]=En[oe]:Te[oe]=j[oe])}var Rn=arguments.length-2;if(Rn===1)Te.children=ee;else if(Rn>1){for(var Ln=Array(Rn),Xn=0;Xn<Rn;Xn++)Ln[Xn]=arguments[Xn+2];Te.children=Ln}return ye(C.type,Qe,Ie,lt,Bt,bn,Te)}function ft(C){return typeof C=="object"&&C!==null&&C.$$typeof===i}var Pt=".",jt=":";function gn(C){var j=/[=:]/g,ee={"=":"=0",":":"=2"},oe=C.replace(j,function(Te){return ee[Te]});return"$"+oe}var Mt=!1,Nn=/\/+/g;function It(C){return C.replace(Nn,"$&/")}function nt(C,j){return typeof C=="object"&&C!==null&&C.key!=null?(Et(C.key),gn(""+C.key)):j.toString(36)}function yn(C,j,ee,oe,Te){var Qe=typeof C;(Qe==="undefined"||Qe==="boolean")&&(C=null);var Ie=!1;if(C===null)Ie=!0;else switch(Qe){case"string":case"number":Ie=!0;break;case"object":switch(C.$$typeof){case i:case s:Ie=!0}}if(Ie){var lt=C,Bt=Te(lt),bn=oe===""?Pt+nt(lt,0):oe;if(mt(Bt)){var En="";bn!=null&&(En=It(bn)+"/"),yn(Bt,j,En,"",function(Vg){return Vg})}else Bt!=null&&(ft(Bt)&&(Bt.key&&(!lt||lt.key!==Bt.key)&&Et(Bt.key),Bt=Ye(Bt,ee+(Bt.key&&(!lt||lt.key!==Bt.key)?It(""+Bt.key)+"/":"")+bn)),j.push(Bt));return 1}var Rn,Ln,Xn=0,sn=oe===""?Pt:oe+jt;if(mt(C))for(var ss=0;ss<C.length;ss++)Rn=C[ss],Ln=sn+nt(Rn,ss),Xn+=yn(Rn,j,ee,Ln,Te);else{var ic=_(C);if(typeof ic=="function"){var td=C;ic===td.entries&&(Mt||G("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Mt=!0);for(var Ig=ic.call(td),bo,nd=0;!(bo=Ig.next()).done;)Rn=bo.value,Ln=sn+nt(Rn,nd++),Xn+=yn(Rn,j,ee,Ln,Te)}else if(Qe==="object"){var rd=String(C);throw new Error("Objects are not valid as a React child (found: "+(rd==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":rd)+"). If you meant to render a collection of children, use an array instead.")}}return Xn}function Gt(C,j,ee){if(C==null)return C;var oe=[],Te=0;return yn(C,oe,"","",function(Qe){return j.call(ee,Qe,Te++)}),oe}function ir(C){var j=0;return Gt(C,function(){j++}),j}function In(C,j,ee){Gt(C,function(){j.apply(this,arguments)},ee)}function Bn(C){return Gt(C,function(j){return j})||[]}function Un(C){if(!ft(C))throw new Error("React.Children.only expected to receive a single React element child.");return C}function dr(C){var j={$$typeof:m,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};j.Provider={$$typeof:h,_context:j};var ee=!1,oe=!1,Te=!1;{var Qe={$$typeof:m,_context:j};Object.defineProperties(Qe,{Provider:{get:function(){return oe||(oe=!0,I("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),j.Provider},set:function(Ie){j.Provider=Ie}},_currentValue:{get:function(){return j._currentValue},set:function(Ie){j._currentValue=Ie}},_currentValue2:{get:function(){return j._currentValue2},set:function(Ie){j._currentValue2=Ie}},_threadCount:{get:function(){return j._threadCount},set:function(Ie){j._threadCount=Ie}},Consumer:{get:function(){return ee||(ee=!0,I("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),j.Consumer}},displayName:{get:function(){return j.displayName},set:function(Ie){Te||(G("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Ie),Te=!0)}}}),j.Consumer=Qe}return j._currentRenderer=null,j._currentRenderer2=null,j}var Lt=-1,Jn=0,Pn=1,jn=2;function er(C){if(C._status===Lt){var j=C._result,ee=j();if(ee.then(function(Qe){if(C._status===Jn||C._status===Lt){var Ie=C;Ie._status=Pn,Ie._result=Qe}},function(Qe){if(C._status===Jn||C._status===Lt){var Ie=C;Ie._status=jn,Ie._result=Qe}}),C._status===Lt){var oe=C;oe._status=Jn,oe._result=ee}}if(C._status===Pn){var Te=C._result;return Te===void 0&&I(`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?`,Te),"default"in Te||I(`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'))`,Te),Te.default}else throw C._result}function z(C){var j={_status:Lt,_result:C},ee={$$typeof:R,_payload:j,_init:er};{var oe,Te;Object.defineProperties(ee,{defaultProps:{configurable:!0,get:function(){return oe},set:function(Qe){I("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),oe=Qe,Object.defineProperty(ee,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Te},set:function(Qe){I("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Te=Qe,Object.defineProperty(ee,"propTypes",{enumerable:!0})}}})}return ee}function ve(C){C!=null&&C.$$typeof===x?I("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof C!="function"?I("forwardRef requires a render function but was given %s.",C===null?"null":typeof C):C.length!==0&&C.length!==2&&I("forwardRef render functions accept exactly two parameters: props and ref. %s",C.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),C!=null&&(C.defaultProps!=null||C.propTypes!=null)&&I("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var j={$$typeof:v,render:C};{var ee;Object.defineProperty(j,"displayName",{enumerable:!1,configurable:!0,get:function(){return ee},set:function(oe){ee=oe,!C.name&&!C.displayName&&(C.displayName=oe)}})}return j}var _e;_e=Symbol.for("react.module.reference");function M(C){return!!(typeof C=="string"||typeof C=="function"||C===u||C===f||ce||C===c||C===y||C===S||Y||C===E||ae||ue||Ge||typeof C=="object"&&C!==null&&(C.$$typeof===R||C.$$typeof===x||C.$$typeof===h||C.$$typeof===m||C.$$typeof===v||C.$$typeof===_e||C.getModuleId!==void 0))}function le(C,j){M(C)||I("memo: The first argument must be a component. Instead received: %s",C===null?"null":typeof C);var ee={$$typeof:x,type:C,compare:j===void 0?null:j};{var oe;Object.defineProperty(ee,"displayName",{enumerable:!1,configurable:!0,get:function(){return oe},set:function(Te){oe=Te,!C.name&&!C.displayName&&(C.displayName=Te)}})}return ee}function he(){var C=P.current;return C===null&&I(`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://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),C}function Re(C){var j=he();if(C._context!==void 0){var ee=C._context;ee.Consumer===C?I("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):ee.Provider===C&&I("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return j.useContext(C)}function Ae(C){var j=he();return j.useState(C)}function tt(C,j,ee){var oe=he();return oe.useReducer(C,j,ee)}function Me(C){var j=he();return j.useRef(C)}function He(C,j){var ee=he();return ee.useEffect(C,j)}function tn(C,j){var ee=he();return ee.useInsertionEffect(C,j)}function Qt(C,j){var ee=he();return ee.useLayoutEffect(C,j)}function nn(C,j){var ee=he();return ee.useCallback(C,j)}function Zt(C,j){var ee=he();return ee.useMemo(C,j)}function Br(C,j,ee){var oe=he();return oe.useImperativeHandle(C,j,ee)}function fr(C,j){{var ee=he();return ee.useDebugValue(C,j)}}function Vn(){var C=he();return C.useTransition()}function ta(C){var j=he();return j.useDeferredValue(C)}function wt(){var C=he();return C.useId()}function Ua(C,j,ee){var oe=he();return oe.useSyncExternalStore(C,j,ee)}var Ni=0,Ws,Ys,ts,qs,Gs,Xs,Ks;function Jl(){}Jl.__reactDisabledLog=!0;function Zu(){{if(Ni===0){Ws=console.log,Ys=console.info,ts=console.warn,qs=console.error,Gs=console.group,Xs=console.groupCollapsed,Ks=console.groupEnd;var C={configurable:!0,enumerable:!0,value:Jl,writable:!0};Object.defineProperties(console,{info:C,log:C,warn:C,error:C,group:C,groupCollapsed:C,groupEnd:C})}Ni++}}function Qs(){{if(Ni--,Ni===0){var C={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:xe({},C,{value:Ws}),info:xe({},C,{value:Ys}),warn:xe({},C,{value:ts}),error:xe({},C,{value:qs}),group:xe({},C,{value:Gs}),groupCollapsed:xe({},C,{value:Xs}),groupEnd:xe({},C,{value:Ks})})}Ni<0&&I("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var mo=Ee.ReactCurrentDispatcher,ma;function Pi(C,j,ee){{if(ma===void 0)try{throw Error()}catch(Te){var oe=Te.stack.trim().match(/\n( *(at )?)/);ma=oe&&oe[1]||""}return`
22
- `+ma+C}}var Da=!1,ji;{var Zs=typeof WeakMap=="function"?WeakMap:Map;ji=new Zs}function ec(C,j){if(!C||Da)return"";{var ee=ji.get(C);if(ee!==void 0)return ee}var oe;Da=!0;var Te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Qe;Qe=mo.current,mo.current=null,Zu();try{if(j){var Ie=function(){throw Error()};if(Object.defineProperty(Ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ie,[])}catch(sn){oe=sn}Reflect.construct(C,[],Ie)}else{try{Ie.call()}catch(sn){oe=sn}C.call(Ie.prototype)}}else{try{throw Error()}catch(sn){oe=sn}C()}}catch(sn){if(sn&&oe&&typeof sn.stack=="string"){for(var lt=sn.stack.split(`
23
- `),Bt=oe.stack.split(`
24
- `),bn=lt.length-1,En=Bt.length-1;bn>=1&&En>=0&&lt[bn]!==Bt[En];)En--;for(;bn>=1&&En>=0;bn--,En--)if(lt[bn]!==Bt[En]){if(bn!==1||En!==1)do if(bn--,En--,En<0||lt[bn]!==Bt[En]){var Rn=`
25
- `+lt[bn].replace(" at new "," at ");return C.displayName&&Rn.includes("<anonymous>")&&(Rn=Rn.replace("<anonymous>",C.displayName)),typeof C=="function"&&ji.set(C,Rn),Rn}while(bn>=1&&En>=0);break}}}finally{Da=!1,mo.current=Qe,Qs(),Error.prepareStackTrace=Te}var Ln=C?C.displayName||C.name:"",Xn=Ln?Pi(Ln):"";return typeof C=="function"&&ji.set(C,Xn),Xn}function ns(C,j,ee){return ec(C,!1)}function Ju(C){var j=C.prototype;return!!(j&&j.isReactComponent)}function Li(C,j,ee){if(C==null)return"";if(typeof C=="function")return ec(C,Ju(C));if(typeof C=="string")return Pi(C);switch(C){case y:return Pi("Suspense");case S:return Pi("SuspenseList")}if(typeof C=="object")switch(C.$$typeof){case v:return ns(C.render);case x:return Li(C.type,j,ee);case R:{var oe=C,Te=oe._payload,Qe=oe._init;try{return Li(Qe(Te),j,ee)}catch{}}}return""}var tc={},rs=Ee.ReactDebugCurrentFrame;function as(C){if(C){var j=C._owner,ee=Li(C.type,C._source,j?j.type:null);rs.setExtraStackFrame(ee)}else rs.setExtraStackFrame(null)}function nc(C,j,ee,oe,Te){{var Qe=Function.call.bind(ot);for(var Ie in C)if(Qe(C,Ie)){var lt=void 0;try{if(typeof C[Ie]!="function"){var Bt=Error((oe||"React class")+": "+ee+" type `"+Ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof C[Ie]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Bt.name="Invariant Violation",Bt}lt=C[Ie](j,Ie,oe,ee,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(bn){lt=bn}lt&&!(lt instanceof Error)&&(as(Te),I("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",oe||"React class",ee,Ie,typeof lt),as(null)),lt instanceof Error&&!(lt.message in tc)&&(tc[lt.message]=!0,as(Te),I("Failed %s type: %s",ee,lt.message),as(null))}}}function Vt(C){if(C){var j=C._owner,ee=Li(C.type,C._source,j?j.type:null);se(ee)}else se(null)}var vo;vo=!1;function Js(){if(U.current){var C=De(U.current.type);if(C)return`
26
-
27
- Check the render method of \``+C+"`."}return""}function xt(C){if(C!==void 0){var j=C.fileName.replace(/^.*[\\\/]/,""),ee=C.lineNumber;return`
28
-
29
- Check your code at `+j+":"+ee+"."}return""}function rc(C){return C!=null?xt(C.__source):""}var tr={};function ui(C){var j=Js();if(!j){var ee=typeof C=="string"?C:C.displayName||C.name;ee&&(j=`
30
-
31
- Check the top-level render call using <`+ee+">.")}return j}function Ha(C,j){if(!(!C._store||C._store.validated||C.key!=null)){C._store.validated=!0;var ee=ui(j);if(!tr[ee]){tr[ee]=!0;var oe="";C&&C._owner&&C._owner!==U.current&&(oe=" It was passed a child from "+De(C._owner.type)+"."),Vt(C),I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ee,oe),Vt(null)}}}function is(C,j){if(typeof C=="object"){if(mt(C))for(var ee=0;ee<C.length;ee++){var oe=C[ee];ft(oe)&&Ha(oe,j)}else if(ft(C))C._store&&(C._store.validated=!0);else if(C){var Te=_(C);if(typeof Te=="function"&&Te!==C.entries)for(var Qe=Te.call(C),Ie;!(Ie=Qe.next()).done;)ft(Ie.value)&&Ha(Ie.value,j)}}}function or(C){{var j=C.type;if(j==null||typeof j=="string")return;var ee;if(typeof j=="function")ee=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===v||j.$$typeof===x))ee=j.propTypes;else return;if(ee){var oe=De(j);nc(ee,C.props,"prop",oe,C)}else if(j.PropTypes!==void 0&&!vo){vo=!0;var Te=De(j);I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Te||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function An(C){{for(var j=Object.keys(C.props),ee=0;ee<j.length;ee++){var oe=j[ee];if(oe!=="children"&&oe!=="key"){Vt(C),I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",oe),Vt(null);break}}C.ref!==null&&(Vt(C),I("Invalid attribute `ref` supplied to `React.Fragment`."),Vt(null))}}function os(C,j,ee){var oe=M(C);if(!oe){var Te="";(C===void 0||typeof C=="object"&&C!==null&&Object.keys(C).length===0)&&(Te+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Qe=rc(j);Qe?Te+=Qe:Te+=Js();var Ie;C===null?Ie="null":mt(C)?Ie="array":C!==void 0&&C.$$typeof===i?(Ie="<"+(De(C.type)||"Unknown")+" />",Te=" Did you accidentally export a JSX literal instead of a component?"):Ie=typeof C,I("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ie,Te)}var lt=ke.apply(this,arguments);if(lt==null)return lt;if(oe)for(var Bt=2;Bt<arguments.length;Bt++)is(arguments[Bt],C);return C===u?An(lt):or(lt),lt}var Ur=!1;function Gn(C){var j=os.bind(null,C);return j.type=C,Ur||(Ur=!0,G("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(j,"type",{enumerable:!1,get:function(){return G("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:C}),C}}),j}function Hr(C,j,ee){for(var oe=Fe.apply(this,arguments),Te=2;Te<arguments.length;Te++)is(arguments[Te],oe.type);return or(oe),oe}function ed(C,j){var ee=$.transition;$.transition={};var oe=$.transition;$.transition._updatedFibers=new Set;try{C()}finally{if($.transition=ee,ee===null&&oe._updatedFibers){var Te=oe._updatedFibers.size;Te>10&&G("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."),oe._updatedFibers.clear()}}}var go=!1,yo=null;function el(C){if(yo===null)try{var j=("require"+Math.random()).slice(0,7),ee=e&&e[j];yo=ee.call(e,"timers").setImmediate}catch{yo=function(Te){go===!1&&(go=!0,typeof MessageChannel>"u"&&I("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 Qe=new MessageChannel;Qe.port1.onmessage=Te,Qe.port2.postMessage(void 0)}}return yo(C)}var $i=0,ac=!1;function tl(C){{var j=$i;$i++,L.current===null&&(L.current=[]);var ee=L.isBatchingLegacy,oe;try{if(L.isBatchingLegacy=!0,oe=C(),!ee&&L.didScheduleLegacyUpdate){var Te=L.current;Te!==null&&(L.didScheduleLegacyUpdate=!1,re(Te))}}catch(Ln){throw di(j),Ln}finally{L.isBatchingLegacy=ee}if(oe!==null&&typeof oe=="object"&&typeof oe.then=="function"){var Qe=oe,Ie=!1,lt={then:function(Ln,Xn){Ie=!0,Qe.then(function(sn){di(j),$i===0?N(sn,Ln,Xn):Ln(sn)},function(sn){di(j),Xn(sn)})}};return!ac&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Ie||(ac=!0,I("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 () => ...);"))}),lt}else{var Bt=oe;if(di(j),$i===0){var bn=L.current;bn!==null&&(re(bn),L.current=null);var En={then:function(Ln,Xn){L.current===null?(L.current=[],N(Bt,Ln,Xn)):Ln(Bt)}};return En}else{var Rn={then:function(Ln,Xn){Ln(Bt)}};return Rn}}}}function di(C){C!==$i-1&&I("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),$i=C}function N(C,j,ee){{var oe=L.current;if(oe!==null)try{re(oe),el(function(){oe.length===0?(L.current=null,j(C)):N(C,j,ee)})}catch(Te){ee(Te)}else j(C)}}var V=!1;function re(C){if(!V){V=!0;var j=0;try{for(;j<C.length;j++){var ee=C[j];do ee=ee(!0);while(ee!==null)}C.length=0}catch(oe){throw C=C.slice(j+1),oe}finally{V=!1}}}var Le=os,$t=Hr,cn=Gn,Cn={map:Gt,forEach:In,count:ir,toArray:Bn,only:Un};t.Children=Cn,t.Component=Ve,t.Fragment=u,t.Profiler=f,t.PureComponent=Ct,t.StrictMode=c,t.Suspense=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ee,t.act=tl,t.cloneElement=$t,t.createContext=dr,t.createElement=Le,t.createFactory=cn,t.createRef=Ft,t.forwardRef=ve,t.isValidElement=ft,t.lazy=z,t.memo=le,t.startTransition=ed,t.unstable_act=tl,t.useCallback=nn,t.useContext=Re,t.useDebugValue=fr,t.useDeferredValue=ta,t.useEffect=He,t.useId=wt,t.useImperativeHandle=Br,t.useInsertionEffect=tn,t.useLayoutEffect=Qt,t.useMemo=Zt,t.useReducer=tt,t.useRef=Me,t.useState=Ae,t.useSyncExternalStore=Ua,t.useTransition=Vn,t.version=a,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(Hv,Hv.exports);var i3=Hv.exports;fM.exports=i3;var w=fM.exports;const dn=pg(w),HD=a3({__proto__:null,default:dn},[w]);/**
32
- * @license React
33
- * react-jsx-dev-runtime.development.js
34
- *
35
- * Copyright (c) Facebook, Inc. and its affiliates.
36
- *
37
- * This source code is licensed under the MIT license found in the
38
- * LICENSE file in the root directory of this source tree.
39
- */(function(){var e=w,t=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),R=Symbol.iterator,E="@@iterator";function k(z){if(z===null||typeof z!="object")return null;var ve=R&&z[R]||z[E];return typeof ve=="function"?ve:null}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(z){{for(var ve=arguments.length,_e=new Array(ve>1?ve-1:0),M=1;M<ve;M++)_e[M-1]=arguments[M];P("error",z,_e)}}function P(z,ve,_e){{var M=A.ReactDebugCurrentFrame,le=M.getStackAddendum();le!==""&&(ve+="%s",_e=_e.concat([le]));var he=_e.map(function(Re){return String(Re)});he.unshift("Warning: "+ve),Function.prototype.apply.call(console[z],console,he)}}var $=!1,L=!1,U=!1,F=!1,Q=!1,se;se=Symbol.for("react.module.reference");function ae(z){return!!(typeof z=="string"||typeof z=="function"||z===i||z===u||Q||z===s||z===m||z===v||F||z===x||$||L||U||typeof z=="object"&&z!==null&&(z.$$typeof===S||z.$$typeof===y||z.$$typeof===c||z.$$typeof===f||z.$$typeof===h||z.$$typeof===se||z.getModuleId!==void 0))}function ue(z,ve,_e){var M=z.displayName;if(M)return M;var le=ve.displayName||ve.name||"";return le!==""?_e+"("+le+")":_e}function Ge(z){return z.displayName||"Context"}function Y(z){if(z==null)return null;if(typeof z.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof z=="function")return z.displayName||z.name||null;if(typeof z=="string")return z;switch(z){case i:return"Fragment";case a:return"Portal";case u:return"Profiler";case s:return"StrictMode";case m:return"Suspense";case v:return"SuspenseList"}if(typeof z=="object")switch(z.$$typeof){case f:var ve=z;return Ge(ve)+".Consumer";case c:var _e=z;return Ge(_e._context)+".Provider";case h:return ue(z,z.render,"ForwardRef");case y:var M=z.displayName||null;return M!==null?M:Y(z.type)||"Memo";case S:{var le=z,he=le._payload,Re=le._init;try{return Y(Re(he))}catch{return null}}}return null}var ce=Object.assign,Ee=0,G,I,X,pe,te,we,xe;function be(){}be.__reactDisabledLog=!0;function Ve(){{if(Ee===0){G=console.log,I=console.info,X=console.warn,pe=console.error,te=console.group,we=console.groupCollapsed,xe=console.groupEnd;var z={configurable:!0,enumerable:!0,value:be,writable:!0};Object.defineProperties(console,{info:z,log:z,warn:z,error:z,group:z,groupCollapsed:z,groupEnd:z})}Ee++}}function Ue(){{if(Ee--,Ee===0){var z={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ce({},z,{value:G}),info:ce({},z,{value:I}),warn:ce({},z,{value:X}),error:ce({},z,{value:pe}),group:ce({},z,{value:te}),groupCollapsed:ce({},z,{value:we}),groupEnd:ce({},z,{value:xe})})}Ee<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Xe=A.ReactCurrentDispatcher,Rt;function pt(z,ve,_e){{if(Rt===void 0)try{throw Error()}catch(le){var M=le.stack.trim().match(/\n( *(at )?)/);Rt=M&&M[1]||""}return`
40
- `+Rt+z}}var Ct=!1,ut;{var Ft=typeof WeakMap=="function"?WeakMap:Map;ut=new Ft}function ge(z,ve){if(!z||Ct)return"";{var _e=ut.get(z);if(_e!==void 0)return _e}var M;Ct=!0;var le=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var he;he=Xe.current,Xe.current=null,Ve();try{if(ve){var Re=function(){throw Error()};if(Object.defineProperty(Re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Re,[])}catch(Zt){M=Zt}Reflect.construct(z,[],Re)}else{try{Re.call()}catch(Zt){M=Zt}z.call(Re.prototype)}}else{try{throw Error()}catch(Zt){M=Zt}z()}}catch(Zt){if(Zt&&M&&typeof Zt.stack=="string"){for(var Ae=Zt.stack.split(`
41
- `),tt=M.stack.split(`
42
- `),Me=Ae.length-1,He=tt.length-1;Me>=1&&He>=0&&Ae[Me]!==tt[He];)He--;for(;Me>=1&&He>=0;Me--,He--)if(Ae[Me]!==tt[He]){if(Me!==1||He!==1)do if(Me--,He--,He<0||Ae[Me]!==tt[He]){var tn=`
43
- `+Ae[Me].replace(" at new "," at ");return z.displayName&&tn.includes("<anonymous>")&&(tn=tn.replace("<anonymous>",z.displayName)),typeof z=="function"&&ut.set(z,tn),tn}while(Me>=1&&He>=0);break}}}finally{Ct=!1,Xe.current=he,Ue(),Error.prepareStackTrace=le}var Qt=z?z.displayName||z.name:"",nn=Qt?pt(Qt):"";return typeof z=="function"&&ut.set(z,nn),nn}function mt(z,ve,_e){return ge(z,!1)}function kt(z){var ve=z.prototype;return!!(ve&&ve.isReactComponent)}function At(z,ve,_e){if(z==null)return"";if(typeof z=="function")return ge(z,kt(z));if(typeof z=="string")return pt(z);switch(z){case m:return pt("Suspense");case v:return pt("SuspenseList")}if(typeof z=="object")switch(z.$$typeof){case h:return mt(z.render);case y:return At(z.type,ve,_e);case S:{var M=z,le=M._payload,he=M._init;try{return At(he(le),ve,_e)}catch{}}}return""}var Ot=Object.prototype.hasOwnProperty,Et={},on=A.ReactDebugCurrentFrame;function Kt(z){if(z){var ve=z._owner,_e=At(z.type,z._source,ve?ve.type:null);on.setExtraStackFrame(_e)}else on.setExtraStackFrame(null)}function De(z,ve,_e,M,le){{var he=Function.call.bind(Ot);for(var Re in z)if(he(z,Re)){var Ae=void 0;try{if(typeof z[Re]!="function"){var tt=Error((M||"React class")+": "+_e+" type `"+Re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof z[Re]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw tt.name="Invariant Violation",tt}Ae=z[Re](ve,Re,M,_e,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Me){Ae=Me}Ae&&!(Ae instanceof Error)&&(Kt(le),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",M||"React class",_e,Re,typeof Ae),Kt(null)),Ae instanceof Error&&!(Ae.message in Et)&&(Et[Ae.message]=!0,Kt(le),_("Failed %s type: %s",_e,Ae.message),Kt(null))}}}var ot=Array.isArray;function dt(z){return ot(z)}function et(z){{var ve=typeof Symbol=="function"&&Symbol.toStringTag,_e=ve&&z[Symbol.toStringTag]||z.constructor.name||"Object";return _e}}function St(z){try{return st(z),!1}catch{return!0}}function st(z){return""+z}function Nt(z){if(St(z))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",et(z)),st(z)}var We=A.ReactCurrentOwner,Dt={key:!0,ref:!0,__self:!0,__source:!0},en,vt,ye;ye={};function ke(z){if(Ot.call(z,"ref")){var ve=Object.getOwnPropertyDescriptor(z,"ref").get;if(ve&&ve.isReactWarning)return!1}return z.ref!==void 0}function Ye(z){if(Ot.call(z,"key")){var ve=Object.getOwnPropertyDescriptor(z,"key").get;if(ve&&ve.isReactWarning)return!1}return z.key!==void 0}function Fe(z,ve){if(typeof z.ref=="string"&&We.current&&ve&&We.current.stateNode!==ve){var _e=Y(We.current.type);ye[_e]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Y(We.current.type),z.ref),ye[_e]=!0)}}function ft(z,ve){{var _e=function(){en||(en=!0,_("%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://reactjs.org/link/special-props)",ve))};_e.isReactWarning=!0,Object.defineProperty(z,"key",{get:_e,configurable:!0})}}function Pt(z,ve){{var _e=function(){vt||(vt=!0,_("%s: `ref` 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://reactjs.org/link/special-props)",ve))};_e.isReactWarning=!0,Object.defineProperty(z,"ref",{get:_e,configurable:!0})}}var jt=function(z,ve,_e,M,le,he,Re){var Ae={$$typeof:t,type:z,key:ve,ref:_e,props:Re,_owner:he};return Ae._store={},Object.defineProperty(Ae._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ae,"_self",{configurable:!1,enumerable:!1,writable:!1,value:M}),Object.defineProperty(Ae,"_source",{configurable:!1,enumerable:!1,writable:!1,value:le}),Object.freeze&&(Object.freeze(Ae.props),Object.freeze(Ae)),Ae};function gn(z,ve,_e,M,le){{var he,Re={},Ae=null,tt=null;_e!==void 0&&(Nt(_e),Ae=""+_e),Ye(ve)&&(Nt(ve.key),Ae=""+ve.key),ke(ve)&&(tt=ve.ref,Fe(ve,le));for(he in ve)Ot.call(ve,he)&&!Dt.hasOwnProperty(he)&&(Re[he]=ve[he]);if(z&&z.defaultProps){var Me=z.defaultProps;for(he in Me)Re[he]===void 0&&(Re[he]=Me[he])}if(Ae||tt){var He=typeof z=="function"?z.displayName||z.name||"Unknown":z;Ae&&ft(Re,He),tt&&Pt(Re,He)}return jt(z,Ae,tt,le,M,We.current,Re)}}var Mt=A.ReactCurrentOwner,Nn=A.ReactDebugCurrentFrame;function It(z){if(z){var ve=z._owner,_e=At(z.type,z._source,ve?ve.type:null);Nn.setExtraStackFrame(_e)}else Nn.setExtraStackFrame(null)}var nt;nt=!1;function yn(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function Gt(){{if(Mt.current){var z=Y(Mt.current.type);if(z)return`
44
-
45
- Check the render method of \``+z+"`."}return""}}function ir(z){{if(z!==void 0){var ve=z.fileName.replace(/^.*[\\\/]/,""),_e=z.lineNumber;return`
46
-
47
- Check your code at `+ve+":"+_e+"."}return""}}var In={};function Bn(z){{var ve=Gt();if(!ve){var _e=typeof z=="string"?z:z.displayName||z.name;_e&&(ve=`
48
-
49
- Check the top-level render call using <`+_e+">.")}return ve}}function Un(z,ve){{if(!z._store||z._store.validated||z.key!=null)return;z._store.validated=!0;var _e=Bn(ve);if(In[_e])return;In[_e]=!0;var M="";z&&z._owner&&z._owner!==Mt.current&&(M=" It was passed a child from "+Y(z._owner.type)+"."),It(z),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_e,M),It(null)}}function dr(z,ve){{if(typeof z!="object")return;if(dt(z))for(var _e=0;_e<z.length;_e++){var M=z[_e];yn(M)&&Un(M,ve)}else if(yn(z))z._store&&(z._store.validated=!0);else if(z){var le=k(z);if(typeof le=="function"&&le!==z.entries)for(var he=le.call(z),Re;!(Re=he.next()).done;)yn(Re.value)&&Un(Re.value,ve)}}}function Lt(z){{var ve=z.type;if(ve==null||typeof ve=="string")return;var _e;if(typeof ve=="function")_e=ve.propTypes;else if(typeof ve=="object"&&(ve.$$typeof===h||ve.$$typeof===y))_e=ve.propTypes;else return;if(_e){var M=Y(ve);De(_e,z.props,"prop",M,z)}else if(ve.PropTypes!==void 0&&!nt){nt=!0;var le=Y(ve);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",le||"Unknown")}typeof ve.getDefaultProps=="function"&&!ve.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Jn(z){{for(var ve=Object.keys(z.props),_e=0;_e<ve.length;_e++){var M=ve[_e];if(M!=="children"&&M!=="key"){It(z),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",M),It(null);break}}z.ref!==null&&(It(z),_("Invalid attribute `ref` supplied to `React.Fragment`."),It(null))}}var Pn={};function jn(z,ve,_e,M,le,he){{var Re=ae(z);if(!Re){var Ae="";(z===void 0||typeof z=="object"&&z!==null&&Object.keys(z).length===0)&&(Ae+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var tt=ir(le);tt?Ae+=tt:Ae+=Gt();var Me;z===null?Me="null":dt(z)?Me="array":z!==void 0&&z.$$typeof===t?(Me="<"+(Y(z.type)||"Unknown")+" />",Ae=" Did you accidentally export a JSX literal instead of a component?"):Me=typeof z,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Me,Ae)}var He=gn(z,ve,_e,le,he);if(He==null)return He;if(Re){var tn=ve.children;if(tn!==void 0)if(M)if(dt(tn)){for(var Qt=0;Qt<tn.length;Qt++)dr(tn[Qt],z);Object.freeze&&Object.freeze(tn)}else _("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 dr(tn,z)}if(Ot.call(ve,"key")){var nn=Y(z),Zt=Object.keys(ve).filter(function(Vn){return Vn!=="key"}),Br=Zt.length>0?"{key: someKey, "+Zt.join(": ..., ")+": ...}":"{key: someKey}";if(!Pn[nn+Br]){var fr=Zt.length>0?"{"+Zt.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
50
- let props = %s;
51
- <%s {...props} />
52
- React keys must be passed directly to JSX without using spread:
53
- let props = %s;
54
- <%s key={someKey} {...props} />`,Br,nn,fr,nn),Pn[nn+Br]=!0}}return z===i?Jn(He):Lt(He),He}}var er=jn;Fx.Fragment=i,Fx.jsxDEV=er})();dM.exports=Fx;var q=dM.exports,Ix={},hM={exports:{}},$a={},pM={exports:{}},mM={};/**
55
- * @license React
56
- * scheduler.development.js
57
- *
58
- * Copyright (c) Facebook, Inc. and its 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
- */(function(e){(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=!1,a=!1,i=5;function s(ye,ke){var Ye=ye.length;ye.push(ke),f(ye,ke,Ye)}function u(ye){return ye.length===0?null:ye[0]}function c(ye){if(ye.length===0)return null;var ke=ye[0],Ye=ye.pop();return Ye!==ke&&(ye[0]=Ye,h(ye,Ye,0)),ke}function f(ye,ke,Ye){for(var Fe=Ye;Fe>0;){var ft=Fe-1>>>1,Pt=ye[ft];if(m(Pt,ke)>0)ye[ft]=ke,ye[Fe]=Pt,Fe=ft;else return}}function h(ye,ke,Ye){for(var Fe=Ye,ft=ye.length,Pt=ft>>>1;Fe<Pt;){var jt=(Fe+1)*2-1,gn=ye[jt],Mt=jt+1,Nn=ye[Mt];if(m(gn,ke)<0)Mt<ft&&m(Nn,gn)<0?(ye[Fe]=Nn,ye[Mt]=ke,Fe=Mt):(ye[Fe]=gn,ye[jt]=ke,Fe=jt);else if(Mt<ft&&m(Nn,ke)<0)ye[Fe]=Nn,ye[Mt]=ke,Fe=Mt;else return}}function m(ye,ke){var Ye=ye.sortIndex-ke.sortIndex;return Ye!==0?Ye:ye.id-ke.id}var v=1,y=2,S=3,x=4,R=5;function E(ye,ke){}var k=typeof performance=="object"&&typeof performance.now=="function";if(k){var A=performance;e.unstable_now=function(){return A.now()}}else{var _=Date,P=_.now();e.unstable_now=function(){return _.now()-P}}var $=1073741823,L=-1,U=250,F=5e3,Q=1e4,se=$,ae=[],ue=[],Ge=1,Y=null,ce=S,Ee=!1,G=!1,I=!1,X=typeof setTimeout=="function"?setTimeout:null,pe=typeof clearTimeout=="function"?clearTimeout:null,te=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function we(ye){for(var ke=u(ue);ke!==null;){if(ke.callback===null)c(ue);else if(ke.startTime<=ye)c(ue),ke.sortIndex=ke.expirationTime,s(ae,ke);else return;ke=u(ue)}}function xe(ye){if(I=!1,we(ye),!G)if(u(ae)!==null)G=!0,Nt(be);else{var ke=u(ue);ke!==null&&We(xe,ke.startTime-ye)}}function be(ye,ke){G=!1,I&&(I=!1,Dt()),Ee=!0;var Ye=ce;try{var Fe;if(!a)return Ve(ye,ke)}finally{Y=null,ce=Ye,Ee=!1}}function Ve(ye,ke){var Ye=ke;for(we(Ye),Y=u(ae);Y!==null&&!t&&!(Y.expirationTime>Ye&&(!ye||Kt()));){var Fe=Y.callback;if(typeof Fe=="function"){Y.callback=null,ce=Y.priorityLevel;var ft=Y.expirationTime<=Ye,Pt=Fe(ft);Ye=e.unstable_now(),typeof Pt=="function"?Y.callback=Pt:Y===u(ae)&&c(ae),we(Ye)}else c(ae);Y=u(ae)}if(Y!==null)return!0;var jt=u(ue);return jt!==null&&We(xe,jt.startTime-Ye),!1}function Ue(ye,ke){switch(ye){case v:case y:case S:case x:case R:break;default:ye=S}var Ye=ce;ce=ye;try{return ke()}finally{ce=Ye}}function Xe(ye){var ke;switch(ce){case v:case y:case S:ke=S;break;default:ke=ce;break}var Ye=ce;ce=ke;try{return ye()}finally{ce=Ye}}function Rt(ye){var ke=ce;return function(){var Ye=ce;ce=ke;try{return ye.apply(this,arguments)}finally{ce=Ye}}}function pt(ye,ke,Ye){var Fe=e.unstable_now(),ft;if(typeof Ye=="object"&&Ye!==null){var Pt=Ye.delay;typeof Pt=="number"&&Pt>0?ft=Fe+Pt:ft=Fe}else ft=Fe;var jt;switch(ye){case v:jt=L;break;case y:jt=U;break;case R:jt=se;break;case x:jt=Q;break;case S:default:jt=F;break}var gn=ft+jt,Mt={id:Ge++,callback:ke,priorityLevel:ye,startTime:ft,expirationTime:gn,sortIndex:-1};return ft>Fe?(Mt.sortIndex=ft,s(ue,Mt),u(ae)===null&&Mt===u(ue)&&(I?Dt():I=!0,We(xe,ft-Fe))):(Mt.sortIndex=gn,s(ae,Mt),!G&&!Ee&&(G=!0,Nt(be))),Mt}function Ct(){}function ut(){!G&&!Ee&&(G=!0,Nt(be))}function Ft(){return u(ae)}function ge(ye){ye.callback=null}function mt(){return ce}var kt=!1,At=null,Ot=-1,Et=i,on=-1;function Kt(){var ye=e.unstable_now()-on;return!(ye<Et)}function De(){}function ot(ye){if(ye<0||ye>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}ye>0?Et=Math.floor(1e3/ye):Et=i}var dt=function(){if(At!==null){var ye=e.unstable_now();on=ye;var ke=!0,Ye=!0;try{Ye=At(ke,ye)}finally{Ye?et():(kt=!1,At=null)}}else kt=!1},et;if(typeof te=="function")et=function(){te(dt)};else if(typeof MessageChannel<"u"){var St=new MessageChannel,st=St.port2;St.port1.onmessage=dt,et=function(){st.postMessage(null)}}else et=function(){X(dt,0)};function Nt(ye){At=ye,kt||(kt=!0,et())}function We(ye,ke){Ot=X(function(){ye(e.unstable_now())},ke)}function Dt(){pe(Ot),Ot=-1}var en=De,vt=null;e.unstable_IdlePriority=R,e.unstable_ImmediatePriority=v,e.unstable_LowPriority=x,e.unstable_NormalPriority=S,e.unstable_Profiling=vt,e.unstable_UserBlockingPriority=y,e.unstable_cancelCallback=ge,e.unstable_continueExecution=ut,e.unstable_forceFrameRate=ot,e.unstable_getCurrentPriorityLevel=mt,e.unstable_getFirstCallbackNode=Ft,e.unstable_next=Xe,e.unstable_pauseExecution=Ct,e.unstable_requestPaint=en,e.unstable_runWithPriority=Ue,e.unstable_scheduleCallback=pt,e.unstable_shouldYield=Kt,e.unstable_wrapCallback=Rt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(mM);pM.exports=mM;var o3=pM.exports;/**
63
- * @license React
64
- * react-dom.development.js
65
- *
66
- * Copyright (c) Facebook, Inc. and its affiliates.
67
- *
68
- * This source code is licensed under the MIT license found in the
69
- * LICENSE file in the root directory of this source tree.
70
- */(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=w,t=o3,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,i=!1;function s(n){i=n}function u(n){if(!i){for(var r=arguments.length,o=new Array(r>1?r-1:0),l=1;l<r;l++)o[l-1]=arguments[l];f("warn",n,o)}}function c(n){if(!i){for(var r=arguments.length,o=new Array(r>1?r-1:0),l=1;l<r;l++)o[l-1]=arguments[l];f("error",n,o)}}function f(n,r,o){{var l=a.ReactDebugCurrentFrame,d=l.getStackAddendum();d!==""&&(r+="%s",o=o.concat([d]));var p=o.map(function(g){return String(g)});p.unshift("Warning: "+r),Function.prototype.apply.call(console[n],console,p)}}var h=0,m=1,v=2,y=3,S=4,x=5,R=6,E=7,k=8,A=9,_=10,P=11,$=12,L=13,U=14,F=15,Q=16,se=17,ae=18,ue=19,Ge=21,Y=22,ce=23,Ee=24,G=25,I=!0,X=!1,pe=!1,te=!1,we=!1,xe=!0,be=!1,Ve=!0,Ue=!0,Xe=!0,Rt=!0,pt=new Set,Ct={},ut={};function Ft(n,r){ge(n,r),ge(n+"Capture",r)}function ge(n,r){Ct[n]&&c("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",n),Ct[n]=r;{var o=n.toLowerCase();ut[o]=n,n==="onDoubleClick"&&(ut.ondblclick=n)}for(var l=0;l<r.length;l++)pt.add(r[l])}var mt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kt=Object.prototype.hasOwnProperty;function At(n){{var r=typeof Symbol=="function"&&Symbol.toStringTag,o=r&&n[Symbol.toStringTag]||n.constructor.name||"Object";return o}}function Ot(n){try{return Et(n),!1}catch{return!0}}function Et(n){return""+n}function on(n,r){if(Ot(n))return c("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",r,At(n)),Et(n)}function Kt(n){if(Ot(n))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",At(n)),Et(n)}function De(n,r){if(Ot(n))return c("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",r,At(n)),Et(n)}function ot(n,r){if(Ot(n))return c("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",r,At(n)),Et(n)}function dt(n){if(Ot(n))return c("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",At(n)),Et(n)}function et(n){if(Ot(n))return c("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",At(n)),Et(n)}var St=0,st=1,Nt=2,We=3,Dt=4,en=5,vt=6,ye=":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",ke=ye+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ye=new RegExp("^["+ye+"]["+ke+"]*$"),Fe={},ft={};function Pt(n){return kt.call(ft,n)?!0:kt.call(Fe,n)?!1:Ye.test(n)?(ft[n]=!0,!0):(Fe[n]=!0,c("Invalid attribute name: `%s`",n),!1)}function jt(n,r,o){return r!==null?r.type===St:o?!1:n.length>2&&(n[0]==="o"||n[0]==="O")&&(n[1]==="n"||n[1]==="N")}function gn(n,r,o,l){if(o!==null&&o.type===St)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":{if(l)return!1;if(o!==null)return!o.acceptsBooleans;var d=n.toLowerCase().slice(0,5);return d!=="data-"&&d!=="aria-"}default:return!1}}function Mt(n,r,o,l){if(r===null||typeof r>"u"||gn(n,r,o,l))return!0;if(l)return!1;if(o!==null)switch(o.type){case We:return!r;case Dt:return r===!1;case en:return isNaN(r);case vt:return isNaN(r)||r<1}return!1}function Nn(n){return nt.hasOwnProperty(n)?nt[n]:null}function It(n,r,o,l,d,p,g){this.acceptsBooleans=r===Nt||r===We||r===Dt,this.attributeName=l,this.attributeNamespace=d,this.mustUseProperty=o,this.propertyName=n,this.type=r,this.sanitizeURL=p,this.removeEmptyString=g}var nt={},yn=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];yn.forEach(function(n){nt[n]=new It(n,St,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var r=n[0],o=n[1];nt[r]=new It(r,st,!1,o,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){nt[n]=new It(n,Nt,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){nt[n]=new It(n,Nt,!1,n,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(n){nt[n]=new It(n,We,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){nt[n]=new It(n,We,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){nt[n]=new It(n,Dt,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){nt[n]=new It(n,vt,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){nt[n]=new It(n,en,!1,n.toLowerCase(),null,!1,!1)});var Gt=/[\-\:]([a-z])/g,ir=function(n){return n[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(n){var r=n.replace(Gt,ir);nt[r]=new It(r,st,!1,n,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(n){var r=n.replace(Gt,ir);nt[r]=new It(r,st,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var r=n.replace(Gt,ir);nt[r]=new It(r,st,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){nt[n]=new It(n,st,!1,n.toLowerCase(),null,!1,!1)});var In="xlinkHref";nt[In]=new It("xlinkHref",st,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){nt[n]=new It(n,st,!1,n.toLowerCase(),null,!0,!0)});var Bn=/^[\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,Un=!1;function dr(n){!Un&&Bn.test(n)&&(Un=!0,c("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(n)))}function Lt(n,r,o,l){if(l.mustUseProperty){var d=l.propertyName;return n[d]}else{on(o,r),l.sanitizeURL&&dr(""+o);var p=l.attributeName,g=null;if(l.type===Dt){if(n.hasAttribute(p)){var b=n.getAttribute(p);return b===""?!0:Mt(r,o,l,!1)?b:b===""+o?o:b}}else if(n.hasAttribute(p)){if(Mt(r,o,l,!1))return n.getAttribute(p);if(l.type===We)return o;g=n.getAttribute(p)}return Mt(r,o,l,!1)?g===null?o:g:g===""+o?o:g}}function Jn(n,r,o,l){{if(!Pt(r))return;if(!n.hasAttribute(r))return o===void 0?void 0:null;var d=n.getAttribute(r);return on(o,r),d===""+o?o:d}}function Pn(n,r,o,l){var d=Nn(r);if(!jt(r,d,l)){if(Mt(r,o,d,l)&&(o=null),l||d===null){if(Pt(r)){var p=r;o===null?n.removeAttribute(p):(on(o,r),n.setAttribute(p,""+o))}return}var g=d.mustUseProperty;if(g){var b=d.propertyName;if(o===null){var T=d.type;n[b]=T===We?!1:""}else n[b]=o;return}var D=d.attributeName,O=d.attributeNamespace;if(o===null)n.removeAttribute(D);else{var H=d.type,B;H===We||H===Dt&&o===!0?B="":(on(o,D),B=""+o,d.sanitizeURL&&dr(B.toString())),O?n.setAttributeNS(O,D,B):n.setAttribute(D,B)}}}var jn=Symbol.for("react.element"),er=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),_e=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),le=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),Re=Symbol.for("react.suspense"),Ae=Symbol.for("react.suspense_list"),tt=Symbol.for("react.memo"),Me=Symbol.for("react.lazy"),He=Symbol.for("react.scope"),tn=Symbol.for("react.debug_trace_mode"),Qt=Symbol.for("react.offscreen"),nn=Symbol.for("react.legacy_hidden"),Zt=Symbol.for("react.cache"),Br=Symbol.for("react.tracing_marker"),fr=Symbol.iterator,Vn="@@iterator";function ta(n){if(n===null||typeof n!="object")return null;var r=fr&&n[fr]||n[Vn];return typeof r=="function"?r:null}var wt=Object.assign,Ua=0,Ni,Ws,Ys,ts,qs,Gs,Xs;function Ks(){}Ks.__reactDisabledLog=!0;function Jl(){{if(Ua===0){Ni=console.log,Ws=console.info,Ys=console.warn,ts=console.error,qs=console.group,Gs=console.groupCollapsed,Xs=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Ks,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}Ua++}}function Zu(){{if(Ua--,Ua===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:wt({},n,{value:Ni}),info:wt({},n,{value:Ws}),warn:wt({},n,{value:Ys}),error:wt({},n,{value:ts}),group:wt({},n,{value:qs}),groupCollapsed:wt({},n,{value:Gs}),groupEnd:wt({},n,{value:Xs})})}Ua<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Qs=a.ReactCurrentDispatcher,mo;function ma(n,r,o){{if(mo===void 0)try{throw Error()}catch(d){var l=d.stack.trim().match(/\n( *(at )?)/);mo=l&&l[1]||""}return`
71
- `+mo+n}}var Pi=!1,Da;{var ji=typeof WeakMap=="function"?WeakMap:Map;Da=new ji}function Zs(n,r){if(!n||Pi)return"";{var o=Da.get(n);if(o!==void 0)return o}var l;Pi=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=Qs.current,Qs.current=null,Jl();try{if(r){var g=function(){throw Error()};if(Object.defineProperty(g.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(g,[])}catch(ie){l=ie}Reflect.construct(n,[],g)}else{try{g.call()}catch(ie){l=ie}n.call(g.prototype)}}else{try{throw Error()}catch(ie){l=ie}n()}}catch(ie){if(ie&&l&&typeof ie.stack=="string"){for(var b=ie.stack.split(`
72
- `),T=l.stack.split(`
73
- `),D=b.length-1,O=T.length-1;D>=1&&O>=0&&b[D]!==T[O];)O--;for(;D>=1&&O>=0;D--,O--)if(b[D]!==T[O]){if(D!==1||O!==1)do if(D--,O--,O<0||b[D]!==T[O]){var H=`
74
- `+b[D].replace(" at new "," at ");return n.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",n.displayName)),typeof n=="function"&&Da.set(n,H),H}while(D>=1&&O>=0);break}}}finally{Pi=!1,Qs.current=p,Zu(),Error.prepareStackTrace=d}var B=n?n.displayName||n.name:"",ne=B?ma(B):"";return typeof n=="function"&&Da.set(n,ne),ne}function ec(n,r,o){return Zs(n,!0)}function ns(n,r,o){return Zs(n,!1)}function Ju(n){var r=n.prototype;return!!(r&&r.isReactComponent)}function Li(n,r,o){if(n==null)return"";if(typeof n=="function")return Zs(n,Ju(n));if(typeof n=="string")return ma(n);switch(n){case Re:return ma("Suspense");case Ae:return ma("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case he:return ns(n.render);case tt:return Li(n.type,r,o);case Me:{var l=n,d=l._payload,p=l._init;try{return Li(p(d),r,o)}catch{}}}return""}function tc(n){switch(n._debugOwner&&n._debugOwner.type,n._debugSource,n.tag){case x:return ma(n.type);case Q:return ma("Lazy");case L:return ma("Suspense");case ue:return ma("SuspenseList");case h:case v:case F:return ns(n.type);case P:return ns(n.type.render);case m:return ec(n.type);default:return""}}function rs(n){try{var r="",o=n;do r+=tc(o),o=o.return;while(o);return r}catch(l){return`
75
- Error generating stack: `+l.message+`
76
- `+l.stack}}function as(n,r,o){var l=n.displayName;if(l)return l;var d=r.displayName||r.name||"";return d!==""?o+"("+d+")":o}function nc(n){return n.displayName||"Context"}function Vt(n){if(n==null)return null;if(typeof n.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case z:return"Fragment";case er:return"Portal";case _e:return"Profiler";case ve:return"StrictMode";case Re:return"Suspense";case Ae:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case le:var r=n;return nc(r)+".Consumer";case M:var o=n;return nc(o._context)+".Provider";case he:return as(n,n.render,"ForwardRef");case tt:var l=n.displayName||null;return l!==null?l:Vt(n.type)||"Memo";case Me:{var d=n,p=d._payload,g=d._init;try{return Vt(g(p))}catch{return null}}}return null}function vo(n,r,o){var l=r.displayName||r.name||"";return n.displayName||(l!==""?o+"("+l+")":o)}function Js(n){return n.displayName||"Context"}function xt(n){var r=n.tag,o=n.type;switch(r){case Ee:return"Cache";case A:var l=o;return Js(l)+".Consumer";case _:var d=o;return Js(d._context)+".Provider";case ae:return"DehydratedFragment";case P:return vo(o,o.render,"ForwardRef");case E:return"Fragment";case x:return o;case S:return"Portal";case y:return"Root";case R:return"Text";case Q:return Vt(o);case k:return o===ve?"StrictMode":"Mode";case Y:return"Offscreen";case $:return"Profiler";case Ge:return"Scope";case L:return"Suspense";case ue:return"SuspenseList";case G:return"TracingMarker";case m:case h:case se:case v:case U:case F:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;break}return null}var rc=a.ReactDebugCurrentFrame,tr=null,ui=!1;function Ha(){{if(tr===null)return null;var n=tr._debugOwner;if(n!==null&&typeof n<"u")return xt(n)}return null}function is(){return tr===null?"":rs(tr)}function or(){rc.getCurrentStack=null,tr=null,ui=!1}function An(n){rc.getCurrentStack=n===null?null:is,tr=n,ui=!1}function os(){return tr}function Ur(n){ui=n}function Gn(n){return""+n}function Hr(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return et(n),n;default:return""}}var ed={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function go(n,r){ed[r.type]||r.onChange||r.onInput||r.readOnly||r.disabled||r.value==null||c("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`."),r.onChange||r.readOnly||r.disabled||r.checked==null||c("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 yo(n){var r=n.type,o=n.nodeName;return o&&o.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function el(n){return n._valueTracker}function $i(n){n._valueTracker=null}function ac(n){var r="";return n&&(yo(n)?r=n.checked?"true":"false":r=n.value),r}function tl(n){var r=yo(n)?"checked":"value",o=Object.getOwnPropertyDescriptor(n.constructor.prototype,r);et(n[r]);var l=""+n[r];if(!(n.hasOwnProperty(r)||typeof o>"u"||typeof o.get!="function"||typeof o.set!="function")){var d=o.get,p=o.set;Object.defineProperty(n,r,{configurable:!0,get:function(){return d.call(this)},set:function(b){et(b),l=""+b,p.call(this,b)}}),Object.defineProperty(n,r,{enumerable:o.enumerable});var g={getValue:function(){return l},setValue:function(b){et(b),l=""+b},stopTracking:function(){$i(n),delete n[r]}};return g}}function di(n){el(n)||(n._valueTracker=tl(n))}function N(n){if(!n)return!1;var r=el(n);if(!r)return!0;var o=r.getValue(),l=ac(n);return l!==o?(r.setValue(l),!0):!1}function V(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var re=!1,Le=!1,$t=!1,cn=!1;function Cn(n){var r=n.type==="checkbox"||n.type==="radio";return r?n.checked!=null:n.value!=null}function C(n,r){var o=n,l=r.checked,d=wt({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??o._wrapperState.initialChecked});return d}function j(n,r){go("input",r),r.checked!==void 0&&r.defaultChecked!==void 0&&!Le&&(c("%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://reactjs.org/link/controlled-components",Ha()||"A component",r.type),Le=!0),r.value!==void 0&&r.defaultValue!==void 0&&!re&&(c("%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://reactjs.org/link/controlled-components",Ha()||"A component",r.type),re=!0);var o=n,l=r.defaultValue==null?"":r.defaultValue;o._wrapperState={initialChecked:r.checked!=null?r.checked:r.defaultChecked,initialValue:Hr(r.value!=null?r.value:l),controlled:Cn(r)}}function ee(n,r){var o=n,l=r.checked;l!=null&&Pn(o,"checked",l,!1)}function oe(n,r){var o=n;{var l=Cn(r);!o._wrapperState.controlled&&l&&!cn&&(c("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://reactjs.org/link/controlled-components"),cn=!0),o._wrapperState.controlled&&!l&&!$t&&(c("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://reactjs.org/link/controlled-components"),$t=!0)}ee(n,r);var d=Hr(r.value),p=r.type;if(d!=null)p==="number"?(d===0&&o.value===""||o.value!=d)&&(o.value=Gn(d)):o.value!==Gn(d)&&(o.value=Gn(d));else if(p==="submit"||p==="reset"){o.removeAttribute("value");return}r.hasOwnProperty("value")?lt(o,r.type,d):r.hasOwnProperty("defaultValue")&&lt(o,r.type,Hr(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(o.defaultChecked=!!r.defaultChecked)}function Te(n,r,o){var l=n;if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var d=r.type,p=d==="submit"||d==="reset";if(p&&(r.value===void 0||r.value===null))return;var g=Gn(l._wrapperState.initialValue);o||g!==l.value&&(l.value=g),l.defaultValue=g}var b=l.name;b!==""&&(l.name=""),l.defaultChecked=!l.defaultChecked,l.defaultChecked=!!l._wrapperState.initialChecked,b!==""&&(l.name=b)}function Qe(n,r){var o=n;oe(o,r),Ie(o,r)}function Ie(n,r){var o=r.name;if(r.type==="radio"&&o!=null){for(var l=n;l.parentNode;)l=l.parentNode;on(o,"name");for(var d=l.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),p=0;p<d.length;p++){var g=d[p];if(!(g===n||g.form!==n.form)){var b=$p(g);if(!b)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");N(g),oe(g,b)}}}}function lt(n,r,o){(r!=="number"||V(n.ownerDocument)!==n)&&(o==null?n.defaultValue=Gn(n._wrapperState.initialValue):n.defaultValue!==Gn(o)&&(n.defaultValue=Gn(o)))}var Bt=!1,bn=!1,En=!1;function Rn(n,r){r.value==null&&(typeof r.children=="object"&&r.children!==null?e.Children.forEach(r.children,function(o){o!=null&&(typeof o=="string"||typeof o=="number"||bn||(bn=!0,c("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):r.dangerouslySetInnerHTML!=null&&(En||(En=!0,c("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),r.selected!=null&&!Bt&&(c("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Bt=!0)}function Ln(n,r){r.value!=null&&n.setAttribute("value",Gn(Hr(r.value)))}var Xn=Array.isArray;function sn(n){return Xn(n)}var ss;ss=!1;function ic(){var n=Ha();return n?`
77
-
78
- Check the render method of \``+n+"`.":""}var td=["value","defaultValue"];function Ig(n){{go("select",n);for(var r=0;r<td.length;r++){var o=td[r];if(n[o]!=null){var l=sn(n[o]);n.multiple&&!l?c("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",o,ic()):!n.multiple&&l&&c("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",o,ic())}}}}function bo(n,r,o,l){var d=n.options;if(r){for(var p=o,g={},b=0;b<p.length;b++)g["$"+p[b]]=!0;for(var T=0;T<d.length;T++){var D=g.hasOwnProperty("$"+d[T].value);d[T].selected!==D&&(d[T].selected=D),D&&l&&(d[T].defaultSelected=!0)}}else{for(var O=Gn(Hr(o)),H=null,B=0;B<d.length;B++){if(d[B].value===O){d[B].selected=!0,l&&(d[B].defaultSelected=!0);return}H===null&&!d[B].disabled&&(H=d[B])}H!==null&&(H.selected=!0)}}function nd(n,r){return wt({},r,{value:void 0})}function rd(n,r){var o=n;Ig(r),o._wrapperState={wasMultiple:!!r.multiple},r.value!==void 0&&r.defaultValue!==void 0&&!ss&&(c("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://reactjs.org/link/controlled-components"),ss=!0)}function Vg(n,r){var o=n;o.multiple=!!r.multiple;var l=r.value;l!=null?bo(o,!!r.multiple,l,!1):r.defaultValue!=null&&bo(o,!!r.multiple,r.defaultValue,!0)}function BL(n,r){var o=n,l=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!r.multiple;var d=r.value;d!=null?bo(o,!!r.multiple,d,!1):l!==!!r.multiple&&(r.defaultValue!=null?bo(o,!!r.multiple,r.defaultValue,!0):bo(o,!!r.multiple,r.multiple?[]:"",!1))}function UL(n,r){var o=n,l=r.value;l!=null&&bo(o,!!r.multiple,l,!1)}var $T=!1;function Bg(n,r){var o=n;if(r.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var l=wt({},r,{value:void 0,defaultValue:void 0,children:Gn(o._wrapperState.initialValue)});return l}function zT(n,r){var o=n;go("textarea",r),r.value!==void 0&&r.defaultValue!==void 0&&!$T&&(c("%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://reactjs.org/link/controlled-components",Ha()||"A component"),$T=!0);var l=r.value;if(l==null){var d=r.children,p=r.defaultValue;if(d!=null){c("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(p!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(sn(d)){if(d.length>1)throw new Error("<textarea> can only have at most one child.");d=d[0]}p=d}}p==null&&(p=""),l=p}o._wrapperState={initialValue:Hr(l)}}function FT(n,r){var o=n,l=Hr(r.value),d=Hr(r.defaultValue);if(l!=null){var p=Gn(l);p!==o.value&&(o.value=p),r.defaultValue==null&&o.defaultValue!==p&&(o.defaultValue=p)}d!=null&&(o.defaultValue=Gn(d))}function IT(n,r){var o=n,l=o.textContent;l===o._wrapperState.initialValue&&l!==""&&l!==null&&(o.value=l)}function HL(n,r){FT(n,r)}var So="http://www.w3.org/1999/xhtml",WL="http://www.w3.org/1998/Math/MathML",Ug="http://www.w3.org/2000/svg";function Hg(n){switch(n){case"svg":return Ug;case"math":return WL;default:return So}}function Wg(n,r){return n==null||n===So?Hg(r):n===Ug&&r==="foreignObject"?So:n}var YL=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,o,l,d){MSApp.execUnsafeLocalFunction(function(){return n(r,o,l,d)})}:n},Zh,VT=YL(function(n,r){if(n.namespaceURI===Ug&&!("innerHTML"in n)){Zh=Zh||document.createElement("div"),Zh.innerHTML="<svg>"+r.valueOf().toString()+"</svg>";for(var o=Zh.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)n.appendChild(o.firstChild);return}n.innerHTML=r}),va=1,xo=3,sr=8,wo=9,Yg=11,Jh=function(n,r){if(r){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===xo){o.nodeValue=r;return}}n.textContent=r},qL={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],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"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],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"],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"]},ad={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function GL(n,r){return n+r.charAt(0).toUpperCase()+r.substring(1)}var XL=["Webkit","ms","Moz","O"];Object.keys(ad).forEach(function(n){XL.forEach(function(r){ad[GL(r,n)]=ad[n]})});function qg(n,r,o){var l=r==null||typeof r=="boolean"||r==="";return l?"":!o&&typeof r=="number"&&r!==0&&!(ad.hasOwnProperty(n)&&ad[n])?r+"px":(ot(r,n),(""+r).trim())}var KL=/([A-Z])/g,QL=/^ms-/;function ZL(n){return n.replace(KL,"-$1").toLowerCase().replace(QL,"-ms-")}var BT=function(){};{var JL=/^(?:webkit|moz|o)[A-Z]/,e2=/^-ms-/,t2=/-(.)/g,UT=/;\s*$/,oc={},Gg={},HT=!1,WT=!1,n2=function(n){return n.replace(t2,function(r,o){return o.toUpperCase()})},r2=function(n){oc.hasOwnProperty(n)&&oc[n]||(oc[n]=!0,c("Unsupported style property %s. Did you mean %s?",n,n2(n.replace(e2,"ms-"))))},a2=function(n){oc.hasOwnProperty(n)&&oc[n]||(oc[n]=!0,c("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1)))},i2=function(n,r){Gg.hasOwnProperty(r)&&Gg[r]||(Gg[r]=!0,c(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,r.replace(UT,"")))},o2=function(n,r){HT||(HT=!0,c("`NaN` is an invalid value for the `%s` css style property.",n))},s2=function(n,r){WT||(WT=!0,c("`Infinity` is an invalid value for the `%s` css style property.",n))};BT=function(n,r){n.indexOf("-")>-1?r2(n):JL.test(n)?a2(n):UT.test(r)&&i2(n,r),typeof r=="number"&&(isNaN(r)?o2(n,r):isFinite(r)||s2(n,r))}}var l2=BT;function c2(n){{var r="",o="";for(var l in n)if(n.hasOwnProperty(l)){var d=n[l];if(d!=null){var p=l.indexOf("--")===0;r+=o+(p?l:ZL(l))+":",r+=qg(l,d,p),o=";"}}return r||null}}function YT(n,r){var o=n.style;for(var l in r)if(r.hasOwnProperty(l)){var d=l.indexOf("--")===0;d||l2(l,r[l]);var p=qg(l,r[l],d);l==="float"&&(l="cssFloat"),d?o.setProperty(l,p):o[l]=p}}function u2(n){return n==null||typeof n=="boolean"||n===""}function qT(n){var r={};for(var o in n)for(var l=qL[o]||[o],d=0;d<l.length;d++)r[l[d]]=o;return r}function d2(n,r){{if(!r)return;var o=qT(n),l=qT(r),d={};for(var p in o){var g=o[p],b=l[p];if(b&&g!==b){var T=g+","+b;if(d[T])continue;d[T]=!0,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.",u2(n[g])?"Removing":"Updating",g,b)}}}}var f2={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},h2=wt({menuitem:!0},f2),p2="__html";function Xg(n,r){if(r){if(h2[n]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw new Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof r.dangerouslySetInnerHTML!="object"||!(p2 in r.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!r.suppressContentEditableWarning&&r.contentEditable&&r.children!=null&&c("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."),r.style!=null&&typeof r.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function nl(n,r){if(n.indexOf("-")===-1)return typeof r.is=="string";switch(n){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}}var ep={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",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",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",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",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"},GT={"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},sc={},m2=new RegExp("^(aria)-["+ke+"]*$"),v2=new RegExp("^(aria)[A-Z]["+ke+"]*$");function g2(n,r){{if(kt.call(sc,r)&&sc[r])return!0;if(v2.test(r)){var o="aria-"+r.slice(4).toLowerCase(),l=GT.hasOwnProperty(o)?o:null;if(l==null)return c("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",r),sc[r]=!0,!0;if(r!==l)return c("Invalid ARIA attribute `%s`. Did you mean `%s`?",r,l),sc[r]=!0,!0}if(m2.test(r)){var d=r.toLowerCase(),p=GT.hasOwnProperty(d)?d:null;if(p==null)return sc[r]=!0,!1;if(r!==p)return c("Unknown ARIA attribute `%s`. Did you mean `%s`?",r,p),sc[r]=!0,!0}}return!0}function y2(n,r){{var o=[];for(var l in r){var d=g2(n,l);d||o.push(l)}var p=o.map(function(g){return"`"+g+"`"}).join(", ");o.length===1?c("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",p,n):o.length>1&&c("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",p,n)}}function b2(n,r){nl(n,r)||y2(n,r)}var XT=!1;function S2(n,r){{if(n!=="input"&&n!=="textarea"&&n!=="select")return;r!=null&&r.value===null&&!XT&&(XT=!0,n==="select"&&r.multiple?c("`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.",n):c("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",n))}}var KT=function(){};{var na={},QT=/^on./,x2=/^on[^A-Z]/,w2=new RegExp("^(aria)-["+ke+"]*$"),C2=new RegExp("^(aria)[A-Z]["+ke+"]*$");KT=function(n,r,o,l){if(kt.call(na,r)&&na[r])return!0;var d=r.toLowerCase();if(d==="onfocusin"||d==="onfocusout")return c("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."),na[r]=!0,!0;if(l!=null){var p=l.registrationNameDependencies,g=l.possibleRegistrationNames;if(p.hasOwnProperty(r))return!0;var b=g.hasOwnProperty(d)?g[d]:null;if(b!=null)return c("Invalid event handler property `%s`. Did you mean `%s`?",r,b),na[r]=!0,!0;if(QT.test(r))return c("Unknown event handler property `%s`. It will be ignored.",r),na[r]=!0,!0}else if(QT.test(r))return x2.test(r)&&c("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",r),na[r]=!0,!0;if(w2.test(r)||C2.test(r))return!0;if(d==="innerhtml")return c("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),na[r]=!0,!0;if(d==="aria")return c("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),na[r]=!0,!0;if(d==="is"&&o!==null&&o!==void 0&&typeof o!="string")return c("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof o),na[r]=!0,!0;if(typeof o=="number"&&isNaN(o))return c("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",r),na[r]=!0,!0;var T=Nn(r),D=T!==null&&T.type===St;if(ep.hasOwnProperty(d)){var O=ep[d];if(O!==r)return c("Invalid DOM property `%s`. Did you mean `%s`?",r,O),na[r]=!0,!0}else if(!D&&r!==d)return c("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.",r,d),na[r]=!0,!0;return typeof o=="boolean"&&gn(r,o,T,!1)?(o?c('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()}.',o,r,r,o,r):c('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.',o,r,r,o,r,r,r),na[r]=!0,!0):D?!0:gn(r,o,T,!1)?(na[r]=!0,!1):((o==="false"||o==="true")&&T!==null&&T.type===We&&(c("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",o,r,o==="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".',r,o),na[r]=!0),!0)}}var T2=function(n,r,o){{var l=[];for(var d in r){var p=KT(n,d,r[d],o);p||l.push(d)}var g=l.map(function(b){return"`"+b+"`"}).join(", ");l.length===1?c("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://reactjs.org/link/attribute-behavior ",g,n):l.length>1&&c("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://reactjs.org/link/attribute-behavior ",g,n)}};function E2(n,r,o){nl(n,r)||T2(n,r,o)}var ZT=1,Kg=2,id=4,R2=ZT|Kg|id,od=null;function k2(n){od!==null&&c("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),od=n}function D2(){od===null&&c("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),od=null}function _2(n){return n===od}function Qg(n){var r=n.target||n.srcElement||window;return r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===xo?r.parentNode:r}var Zg=null,lc=null,cc=null;function JT(n){var r=ms(n);if(r){if(typeof Zg!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var o=r.stateNode;if(o){var l=$p(o);Zg(r.stateNode,r.type,l)}}}function A2(n){Zg=n}function eE(n){lc?cc?cc.push(n):cc=[n]:lc=n}function O2(){return lc!==null||cc!==null}function tE(){if(lc){var n=lc,r=cc;if(lc=null,cc=null,JT(n),r)for(var o=0;o<r.length;o++)JT(r[o])}}var nE=function(n,r){return n(r)},rE=function(){},Jg=!1;function M2(){var n=O2();n&&(rE(),tE())}function aE(n,r,o){if(Jg)return n(r,o);Jg=!0;try{return nE(n,r,o)}finally{Jg=!1,M2()}}function N2(n,r,o){nE=n,rE=o}function P2(n){return n==="button"||n==="input"||n==="select"||n==="textarea"}function j2(n,r,o){switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(o.disabled&&P2(r));default:return!1}}function sd(n,r){var o=n.stateNode;if(o===null)return null;var l=$p(o);if(l===null)return null;var d=l[r];if(j2(r,n.type,l))return null;if(d&&typeof d!="function")throw new Error("Expected `"+r+"` listener to be a function, instead got a value of `"+typeof d+"` type.");return d}var ey=!1;if(mt)try{var ld={};Object.defineProperty(ld,"passive",{get:function(){ey=!0}}),window.addEventListener("test",ld,ld),window.removeEventListener("test",ld,ld)}catch{ey=!1}function iE(n,r,o,l,d,p,g,b,T){var D=Array.prototype.slice.call(arguments,3);try{r.apply(o,D)}catch(O){this.onError(O)}}var oE=iE;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var ty=document.createElement("react");oE=function(r,o,l,d,p,g,b,T,D){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var O=document.createEvent("Event"),H=!1,B=!0,ne=window.event,ie=Object.getOwnPropertyDescriptor(window,"event");function de(){ty.removeEventListener(fe,Ke,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=ne)}var Ne=Array.prototype.slice.call(arguments,3);function Ke(){H=!0,de(),o.apply(l,Ne),B=!1}var qe,Wt=!1,zt=!1;function Z(J){if(qe=J.error,Wt=!0,qe===null&&J.colno===0&&J.lineno===0&&(zt=!0),J.defaultPrevented&&qe!=null&&typeof qe=="object")try{qe._suppressLogging=!0}catch{}}var fe="react-"+(r||"invokeguardedcallback");if(window.addEventListener("error",Z),ty.addEventListener(fe,Ke,!1),O.initEvent(fe,!1,!1),ty.dispatchEvent(O),ie&&Object.defineProperty(window,"event",ie),H&&B&&(Wt?zt&&(qe=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):qe=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(qe)),window.removeEventListener("error",Z),!H)return de(),iE.apply(this,arguments)}}var L2=oE,uc=!1,tp=null,np=!1,ny=null,$2={onError:function(n){uc=!0,tp=n}};function ry(n,r,o,l,d,p,g,b,T){uc=!1,tp=null,L2.apply($2,arguments)}function z2(n,r,o,l,d,p,g,b,T){if(ry.apply(this,arguments),uc){var D=ay();np||(np=!0,ny=D)}}function F2(){if(np){var n=ny;throw np=!1,ny=null,n}}function I2(){return uc}function ay(){if(uc){var n=tp;return uc=!1,tp=null,n}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function dc(n){return n._reactInternals}function V2(n){return n._reactInternals!==void 0}function B2(n,r){n._reactInternals=r}var rt=0,fc=1,lr=2,Xt=4,rl=16,cd=32,iy=64,ln=128,Co=256,ls=512,al=1024,fi=2048,To=4096,il=8192,rp=16384,U2=fi|Xt|iy|ls|al|rp,H2=32767,ud=32768,ra=65536,oy=131072,sE=1048576,sy=2097152,ol=4194304,ly=8388608,Eo=16777216,ap=33554432,cy=Xt|al|0,uy=lr|Xt|rl|cd|ls|To|il,dd=Xt|iy|ls|il,hc=fi|rl,Ro=ol|ly|sy,W2=a.ReactCurrentOwner;function sl(n){var r=n,o=n;if(n.alternate)for(;r.return;)r=r.return;else{var l=r;do r=l,(r.flags&(lr|To))!==rt&&(o=r.return),l=r.return;while(l)}return r.tag===y?o:null}function lE(n){if(n.tag===L){var r=n.memoizedState;if(r===null){var o=n.alternate;o!==null&&(r=o.memoizedState)}if(r!==null)return r.dehydrated}return null}function cE(n){return n.tag===y?n.stateNode.containerInfo:null}function Y2(n){return sl(n)===n}function q2(n){{var r=W2.current;if(r!==null&&r.tag===m){var o=r,l=o.stateNode;l._warnedAboutRefsInRender||c("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",xt(o)||"A component"),l._warnedAboutRefsInRender=!0}}var d=dc(n);return d?sl(d)===d:!1}function uE(n){if(sl(n)!==n)throw new Error("Unable to find node on an unmounted component.")}function dE(n){var r=n.alternate;if(!r){var o=sl(n);if(o===null)throw new Error("Unable to find node on an unmounted component.");return o!==n?null:n}for(var l=n,d=r;;){var p=l.return;if(p===null)break;var g=p.alternate;if(g===null){var b=p.return;if(b!==null){l=d=b;continue}break}if(p.child===g.child){for(var T=p.child;T;){if(T===l)return uE(p),n;if(T===d)return uE(p),r;T=T.sibling}throw new Error("Unable to find node on an unmounted component.")}if(l.return!==d.return)l=p,d=g;else{for(var D=!1,O=p.child;O;){if(O===l){D=!0,l=p,d=g;break}if(O===d){D=!0,d=p,l=g;break}O=O.sibling}if(!D){for(O=g.child;O;){if(O===l){D=!0,l=g,d=p;break}if(O===d){D=!0,d=g,l=p;break}O=O.sibling}if(!D)throw new 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(l.alternate!==d)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(l.tag!==y)throw new Error("Unable to find node on an unmounted component.");return l.stateNode.current===l?n:r}function fE(n){var r=dE(n);return r!==null?hE(r):null}function hE(n){if(n.tag===x||n.tag===R)return n;for(var r=n.child;r!==null;){var o=hE(r);if(o!==null)return o;r=r.sibling}return null}function G2(n){var r=dE(n);return r!==null?pE(r):null}function pE(n){if(n.tag===x||n.tag===R)return n;for(var r=n.child;r!==null;){if(r.tag!==S){var o=pE(r);if(o!==null)return o}r=r.sibling}return null}var mE=t.unstable_scheduleCallback,X2=t.unstable_cancelCallback,K2=t.unstable_shouldYield,Q2=t.unstable_requestPaint,Cr=t.unstable_now,Z2=t.unstable_getCurrentPriorityLevel,ip=t.unstable_ImmediatePriority,dy=t.unstable_UserBlockingPriority,ll=t.unstable_NormalPriority,J2=t.unstable_LowPriority,fy=t.unstable_IdlePriority,e$=t.unstable_yieldValue,t$=t.unstable_setDisableYieldValue,pc=null,Wr=null,je=null,zi=!1,hi=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function n$(n){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var r=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(r.isDisabled)return!0;if(!r.supportsFiber)return c("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{Ue&&(n=wt({},n,{getLaneLabelMap:l$,injectProfilingHooks:s$})),pc=r.inject(n),Wr=r}catch(o){c("React instrumentation encountered an error: %s.",o)}return!!r.checkDCE}function r$(n,r){if(Wr&&typeof Wr.onScheduleFiberRoot=="function")try{Wr.onScheduleFiberRoot(pc,n,r)}catch(o){zi||(zi=!0,c("React instrumentation encountered an error: %s",o))}}function a$(n,r){if(Wr&&typeof Wr.onCommitFiberRoot=="function")try{var o=(n.current.flags&ln)===ln;if(Xe){var l;switch(r){case Oa:l=ip;break;case Do:l=dy;break;case _o:l=ll;break;case fp:l=fy;break;default:l=ll;break}Wr.onCommitFiberRoot(pc,n,l,o)}}catch(d){zi||(zi=!0,c("React instrumentation encountered an error: %s",d))}}function i$(n){if(Wr&&typeof Wr.onPostCommitFiberRoot=="function")try{Wr.onPostCommitFiberRoot(pc,n)}catch(r){zi||(zi=!0,c("React instrumentation encountered an error: %s",r))}}function o$(n){if(Wr&&typeof Wr.onCommitFiberUnmount=="function")try{Wr.onCommitFiberUnmount(pc,n)}catch(r){zi||(zi=!0,c("React instrumentation encountered an error: %s",r))}}function Tr(n){if(typeof e$=="function"&&(t$(n),s(n)),Wr&&typeof Wr.setStrictMode=="function")try{Wr.setStrictMode(pc,n)}catch(r){zi||(zi=!0,c("React instrumentation encountered an error: %s",r))}}function s$(n){je=n}function l$(){{for(var n=new Map,r=1,o=0;o<py;o++){var l=D$(r);n.set(r,l),r*=2}return n}}function c$(n){je!==null&&typeof je.markCommitStarted=="function"&&je.markCommitStarted(n)}function vE(){je!==null&&typeof je.markCommitStopped=="function"&&je.markCommitStopped()}function fd(n){je!==null&&typeof je.markComponentRenderStarted=="function"&&je.markComponentRenderStarted(n)}function mc(){je!==null&&typeof je.markComponentRenderStopped=="function"&&je.markComponentRenderStopped()}function u$(n){je!==null&&typeof je.markComponentPassiveEffectMountStarted=="function"&&je.markComponentPassiveEffectMountStarted(n)}function d$(){je!==null&&typeof je.markComponentPassiveEffectMountStopped=="function"&&je.markComponentPassiveEffectMountStopped()}function f$(n){je!==null&&typeof je.markComponentPassiveEffectUnmountStarted=="function"&&je.markComponentPassiveEffectUnmountStarted(n)}function h$(){je!==null&&typeof je.markComponentPassiveEffectUnmountStopped=="function"&&je.markComponentPassiveEffectUnmountStopped()}function p$(n){je!==null&&typeof je.markComponentLayoutEffectMountStarted=="function"&&je.markComponentLayoutEffectMountStarted(n)}function m$(){je!==null&&typeof je.markComponentLayoutEffectMountStopped=="function"&&je.markComponentLayoutEffectMountStopped()}function gE(n){je!==null&&typeof je.markComponentLayoutEffectUnmountStarted=="function"&&je.markComponentLayoutEffectUnmountStarted(n)}function yE(){je!==null&&typeof je.markComponentLayoutEffectUnmountStopped=="function"&&je.markComponentLayoutEffectUnmountStopped()}function v$(n,r,o){je!==null&&typeof je.markComponentErrored=="function"&&je.markComponentErrored(n,r,o)}function g$(n,r,o){je!==null&&typeof je.markComponentSuspended=="function"&&je.markComponentSuspended(n,r,o)}function y$(n){je!==null&&typeof je.markLayoutEffectsStarted=="function"&&je.markLayoutEffectsStarted(n)}function b$(){je!==null&&typeof je.markLayoutEffectsStopped=="function"&&je.markLayoutEffectsStopped()}function S$(n){je!==null&&typeof je.markPassiveEffectsStarted=="function"&&je.markPassiveEffectsStarted(n)}function x$(){je!==null&&typeof je.markPassiveEffectsStopped=="function"&&je.markPassiveEffectsStopped()}function bE(n){je!==null&&typeof je.markRenderStarted=="function"&&je.markRenderStarted(n)}function w$(){je!==null&&typeof je.markRenderYielded=="function"&&je.markRenderYielded()}function SE(){je!==null&&typeof je.markRenderStopped=="function"&&je.markRenderStopped()}function C$(n){je!==null&&typeof je.markRenderScheduled=="function"&&je.markRenderScheduled(n)}function T$(n,r){je!==null&&typeof je.markForceUpdateScheduled=="function"&&je.markForceUpdateScheduled(n,r)}function hy(n,r){je!==null&&typeof je.markStateUpdateScheduled=="function"&&je.markStateUpdateScheduled(n,r)}var Ze=0,Ut=1,Sn=2,Kn=8,Fi=16,xE=Math.clz32?Math.clz32:k$,E$=Math.log,R$=Math.LN2;function k$(n){var r=n>>>0;return r===0?32:31-(E$(r)/R$|0)|0}var py=31,Se=0,Er=0,gt=1,vc=2,ko=4,cl=8,Ii=16,hd=32,gc=4194240,pd=64,my=128,vy=256,gy=512,yy=1024,by=2048,Sy=4096,xy=8192,wy=16384,Cy=32768,Ty=65536,Ey=131072,Ry=262144,ky=524288,Dy=1048576,_y=2097152,op=130023424,yc=4194304,Ay=8388608,Oy=16777216,My=33554432,Ny=67108864,wE=yc,md=134217728,CE=268435455,vd=268435456,ul=536870912,_a=1073741824;function D$(n){{if(n&gt)return"Sync";if(n&vc)return"InputContinuousHydration";if(n&ko)return"InputContinuous";if(n&cl)return"DefaultHydration";if(n&Ii)return"Default";if(n&hd)return"TransitionHydration";if(n&gc)return"Transition";if(n&op)return"Retry";if(n&md)return"SelectiveHydration";if(n&vd)return"IdleHydration";if(n&ul)return"Idle";if(n&_a)return"Offscreen"}}var On=-1,sp=pd,lp=yc;function gd(n){switch(dl(n)){case gt:return gt;case vc:return vc;case ko:return ko;case cl:return cl;case Ii:return Ii;case hd:return hd;case pd:case my:case vy:case gy:case yy:case by:case Sy:case xy:case wy:case Cy:case Ty:case Ey:case Ry:case ky:case Dy:case _y:return n&gc;case yc:case Ay:case Oy:case My:case Ny:return n&op;case md:return md;case vd:return vd;case ul:return ul;case _a:return _a;default:return c("Should have found matching lanes. This is a bug in React."),n}}function cp(n,r){var o=n.pendingLanes;if(o===Se)return Se;var l=Se,d=n.suspendedLanes,p=n.pingedLanes,g=o&CE;if(g!==Se){var b=g&~d;if(b!==Se)l=gd(b);else{var T=g&p;T!==Se&&(l=gd(T))}}else{var D=o&~d;D!==Se?l=gd(D):p!==Se&&(l=gd(p))}if(l===Se)return Se;if(r!==Se&&r!==l&&(r&d)===Se){var O=dl(l),H=dl(r);if(O>=H||O===Ii&&(H&gc)!==Se)return r}(l&ko)!==Se&&(l|=o&Ii);var B=n.entangledLanes;if(B!==Se)for(var ne=n.entanglements,ie=l&B;ie>0;){var de=fl(ie),Ne=1<<de;l|=ne[de],ie&=~Ne}return l}function _$(n,r){for(var o=n.eventTimes,l=On;r>0;){var d=fl(r),p=1<<d,g=o[d];g>l&&(l=g),r&=~p}return l}function A$(n,r){switch(n){case gt:case vc:case ko:return r+250;case cl:case Ii:case hd:case pd:case my:case vy:case gy:case yy:case by:case Sy:case xy:case wy:case Cy:case Ty:case Ey:case Ry:case ky:case Dy:case _y:return r+5e3;case yc:case Ay:case Oy:case My:case Ny:return On;case md:case vd:case ul:case _a:return On;default:return c("Should have found matching lanes. This is a bug in React."),On}}function O$(n,r){for(var o=n.pendingLanes,l=n.suspendedLanes,d=n.pingedLanes,p=n.expirationTimes,g=o;g>0;){var b=fl(g),T=1<<b,D=p[b];D===On?((T&l)===Se||(T&d)!==Se)&&(p[b]=A$(T,r)):D<=r&&(n.expiredLanes|=T),g&=~T}}function M$(n){return gd(n.pendingLanes)}function Py(n){var r=n.pendingLanes&~_a;return r!==Se?r:r&_a?_a:Se}function N$(n){return(n&gt)!==Se}function jy(n){return(n&CE)!==Se}function TE(n){return(n&op)===n}function P$(n){var r=gt|ko|Ii;return(n&r)===Se}function j$(n){return(n&gc)===n}function up(n,r){var o=vc|ko|cl|Ii;return(r&o)!==Se}function L$(n,r){return(r&n.expiredLanes)!==Se}function EE(n){return(n&gc)!==Se}function RE(){var n=sp;return sp<<=1,(sp&gc)===Se&&(sp=pd),n}function $$(){var n=lp;return lp<<=1,(lp&op)===Se&&(lp=yc),n}function dl(n){return n&-n}function yd(n){return dl(n)}function fl(n){return 31-xE(n)}function Ly(n){return fl(n)}function Aa(n,r){return(n&r)!==Se}function bc(n,r){return(n&r)===r}function _t(n,r){return n|r}function dp(n,r){return n&~r}function kE(n,r){return n&r}function woe(n){return n}function z$(n,r){return n!==Er&&n<r?n:r}function $y(n){for(var r=[],o=0;o<py;o++)r.push(n);return r}function bd(n,r,o){n.pendingLanes|=r,r!==ul&&(n.suspendedLanes=Se,n.pingedLanes=Se);var l=n.eventTimes,d=Ly(r);l[d]=o}function F$(n,r){n.suspendedLanes|=r,n.pingedLanes&=~r;for(var o=n.expirationTimes,l=r;l>0;){var d=fl(l),p=1<<d;o[d]=On,l&=~p}}function DE(n,r,o){n.pingedLanes|=n.suspendedLanes&r}function I$(n,r){var o=n.pendingLanes&~r;n.pendingLanes=r,n.suspendedLanes=Se,n.pingedLanes=Se,n.expiredLanes&=r,n.mutableReadLanes&=r,n.entangledLanes&=r;for(var l=n.entanglements,d=n.eventTimes,p=n.expirationTimes,g=o;g>0;){var b=fl(g),T=1<<b;l[b]=Se,d[b]=On,p[b]=On,g&=~T}}function zy(n,r){for(var o=n.entangledLanes|=r,l=n.entanglements,d=o;d;){var p=fl(d),g=1<<p;g&r|l[p]&r&&(l[p]|=r),d&=~g}}function V$(n,r){var o=dl(r),l;switch(o){case ko:l=vc;break;case Ii:l=cl;break;case pd:case my:case vy:case gy:case yy:case by:case Sy:case xy:case wy:case Cy:case Ty:case Ey:case Ry:case ky:case Dy:case _y:case yc:case Ay:case Oy:case My:case Ny:l=hd;break;case ul:l=vd;break;default:l=Er;break}return(l&(n.suspendedLanes|r))!==Er?Er:l}function _E(n,r,o){if(hi)for(var l=n.pendingUpdatersLaneMap;o>0;){var d=Ly(o),p=1<<d,g=l[d];g.add(r),o&=~p}}function AE(n,r){if(hi)for(var o=n.pendingUpdatersLaneMap,l=n.memoizedUpdaters;r>0;){var d=Ly(r),p=1<<d,g=o[d];g.size>0&&(g.forEach(function(b){var T=b.alternate;(T===null||!l.has(T))&&l.add(b)}),g.clear()),r&=~p}}function OE(n,r){return null}var Oa=gt,Do=ko,_o=Ii,fp=ul,Sd=Er;function pi(){return Sd}function Rr(n){Sd=n}function B$(n,r){var o=Sd;try{return Sd=n,r()}finally{Sd=o}}function U$(n,r){return n!==0&&n<r?n:r}function H$(n,r){return n===0||n>r?n:r}function Fy(n,r){return n!==0&&n<r}function ME(n){var r=dl(n);return Fy(Oa,r)?Fy(Do,r)?jy(r)?_o:fp:Do:Oa}function hp(n){var r=n.current.memoizedState;return r.isDehydrated}var NE;function W$(n){NE=n}function Y$(n){NE(n)}var Iy;function q$(n){Iy=n}var PE;function G$(n){PE=n}var jE;function X$(n){jE=n}var LE;function K$(n){LE=n}var Vy=!1,pp=[],cs=null,us=null,ds=null,xd=new Map,wd=new Map,fs=[],Q$=["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","submit"];function Z$(n){return Q$.indexOf(n)>-1}function J$(n,r,o,l,d){return{blockedOn:n,domEventName:r,eventSystemFlags:o,nativeEvent:d,targetContainers:[l]}}function $E(n,r){switch(n){case"focusin":case"focusout":cs=null;break;case"dragenter":case"dragleave":us=null;break;case"mouseover":case"mouseout":ds=null;break;case"pointerover":case"pointerout":{var o=r.pointerId;xd.delete(o);break}case"gotpointercapture":case"lostpointercapture":{var l=r.pointerId;wd.delete(l);break}}}function Cd(n,r,o,l,d,p){if(n===null||n.nativeEvent!==p){var g=J$(r,o,l,d,p);if(r!==null){var b=ms(r);b!==null&&Iy(b)}return g}n.eventSystemFlags|=l;var T=n.targetContainers;return d!==null&&T.indexOf(d)===-1&&T.push(d),n}function ez(n,r,o,l,d){switch(r){case"focusin":{var p=d;return cs=Cd(cs,n,r,o,l,p),!0}case"dragenter":{var g=d;return us=Cd(us,n,r,o,l,g),!0}case"mouseover":{var b=d;return ds=Cd(ds,n,r,o,l,b),!0}case"pointerover":{var T=d,D=T.pointerId;return xd.set(D,Cd(xd.get(D)||null,n,r,o,l,T)),!0}case"gotpointercapture":{var O=d,H=O.pointerId;return wd.set(H,Cd(wd.get(H)||null,n,r,o,l,O)),!0}}return!1}function zE(n){var r=ml(n.target);if(r!==null){var o=sl(r);if(o!==null){var l=o.tag;if(l===L){var d=lE(o);if(d!==null){n.blockedOn=d,LE(n.priority,function(){PE(o)});return}}else if(l===y){var p=o.stateNode;if(hp(p)){n.blockedOn=cE(o);return}}}}n.blockedOn=null}function tz(n){for(var r=jE(),o={blockedOn:null,target:n,priority:r},l=0;l<fs.length&&Fy(r,fs[l].priority);l++);fs.splice(l,0,o),l===0&&zE(o)}function mp(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;r.length>0;){var o=r[0],l=Hy(n.domEventName,n.eventSystemFlags,o,n.nativeEvent);if(l===null){var d=n.nativeEvent,p=new d.constructor(d.type,d);k2(p),d.target.dispatchEvent(p),D2()}else{var g=ms(l);return g!==null&&Iy(g),n.blockedOn=l,!1}r.shift()}return!0}function FE(n,r,o){mp(n)&&o.delete(r)}function nz(){Vy=!1,cs!==null&&mp(cs)&&(cs=null),us!==null&&mp(us)&&(us=null),ds!==null&&mp(ds)&&(ds=null),xd.forEach(FE),wd.forEach(FE)}function Td(n,r){n.blockedOn===r&&(n.blockedOn=null,Vy||(Vy=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,nz)))}function Ed(n){if(pp.length>0){Td(pp[0],n);for(var r=1;r<pp.length;r++){var o=pp[r];o.blockedOn===n&&(o.blockedOn=null)}}cs!==null&&Td(cs,n),us!==null&&Td(us,n),ds!==null&&Td(ds,n);var l=function(b){return Td(b,n)};xd.forEach(l),wd.forEach(l);for(var d=0;d<fs.length;d++){var p=fs[d];p.blockedOn===n&&(p.blockedOn=null)}for(;fs.length>0;){var g=fs[0];if(g.blockedOn!==null)break;zE(g),g.blockedOn===null&&fs.shift()}}var Sc=a.ReactCurrentBatchConfig,By=!0;function IE(n){By=!!n}function rz(){return By}function az(n,r,o){var l=VE(r),d;switch(l){case Oa:d=iz;break;case Do:d=oz;break;case _o:default:d=Uy;break}return d.bind(null,r,o,n)}function iz(n,r,o,l){var d=pi(),p=Sc.transition;Sc.transition=null;try{Rr(Oa),Uy(n,r,o,l)}finally{Rr(d),Sc.transition=p}}function oz(n,r,o,l){var d=pi(),p=Sc.transition;Sc.transition=null;try{Rr(Do),Uy(n,r,o,l)}finally{Rr(d),Sc.transition=p}}function Uy(n,r,o,l){By&&sz(n,r,o,l)}function sz(n,r,o,l){var d=Hy(n,r,o,l);if(d===null){ab(n,r,l,vp,o),$E(n,l);return}if(ez(d,n,r,o,l)){l.stopPropagation();return}if($E(n,l),r&id&&Z$(n)){for(;d!==null;){var p=ms(d);p!==null&&Y$(p);var g=Hy(n,r,o,l);if(g===null&&ab(n,r,l,vp,o),g===d)break;d=g}d!==null&&l.stopPropagation();return}ab(n,r,l,null,o)}var vp=null;function Hy(n,r,o,l){vp=null;var d=Qg(l),p=ml(d);if(p!==null){var g=sl(p);if(g===null)p=null;else{var b=g.tag;if(b===L){var T=lE(g);if(T!==null)return T;p=null}else if(b===y){var D=g.stateNode;if(hp(D))return cE(g);p=null}else g!==p&&(p=null)}}return vp=p,null}function VE(n){switch(n){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"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 Oa;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Do;case"message":{var r=Z2();switch(r){case ip:return Oa;case dy:return Do;case ll:case J2:return _o;case fy:return fp;default:return _o}}default:return _o}}function lz(n,r,o){return n.addEventListener(r,o,!1),o}function cz(n,r,o){return n.addEventListener(r,o,!0),o}function uz(n,r,o,l){return n.addEventListener(r,o,{capture:!0,passive:l}),o}function dz(n,r,o,l){return n.addEventListener(r,o,{passive:l}),o}var Rd=null,Wy=null,kd=null;function fz(n){return Rd=n,Wy=UE(),!0}function hz(){Rd=null,Wy=null,kd=null}function BE(){if(kd)return kd;var n,r=Wy,o=r.length,l,d=UE(),p=d.length;for(n=0;n<o&&r[n]===d[n];n++);var g=o-n;for(l=1;l<=g&&r[o-l]===d[p-l];l++);var b=l>1?1-l:void 0;return kd=d.slice(n,b),kd}function UE(){return"value"in Rd?Rd.value:Rd.textContent}function gp(n){var r,o=n.keyCode;return"charCode"in n?(r=n.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),r>=32||r===13?r:0}function yp(){return!0}function HE(){return!1}function Ma(n){function r(o,l,d,p,g){this._reactName=o,this._targetInst=d,this.type=l,this.nativeEvent=p,this.target=g,this.currentTarget=null;for(var b in n)if(n.hasOwnProperty(b)){var T=n[b];T?this[b]=T(p):this[b]=p[b]}var D=p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1;return D?this.isDefaultPrevented=yp:this.isDefaultPrevented=HE,this.isPropagationStopped=HE,this}return wt(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=yp)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=yp)},persist:function(){},isPersistent:yp}),r}var xc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yy=Ma(xc),Dd=wt({},xc,{view:0,detail:0}),pz=Ma(Dd),qy,Gy,_d;function mz(n){n!==_d&&(_d&&n.type==="mousemove"?(qy=n.screenX-_d.screenX,Gy=n.screenY-_d.screenY):(qy=0,Gy=0),_d=n)}var bp=wt({},Dd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ky,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(mz(n),qy)},movementY:function(n){return"movementY"in n?n.movementY:Gy}}),WE=Ma(bp),vz=wt({},bp,{dataTransfer:0}),gz=Ma(vz),yz=wt({},Dd,{relatedTarget:0}),Xy=Ma(yz),bz=wt({},xc,{animationName:0,elapsedTime:0,pseudoElement:0}),Sz=Ma(bz),xz=wt({},xc,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),wz=Ma(xz),Cz=wt({},xc,{data:0}),YE=Ma(Cz),Tz=YE,Ez={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rz={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"};function kz(n){if(n.key){var r=Ez[n.key]||n.key;if(r!=="Unidentified")return r}if(n.type==="keypress"){var o=gp(n);return o===13?"Enter":String.fromCharCode(o)}return n.type==="keydown"||n.type==="keyup"?Rz[n.keyCode]||"Unidentified":""}var Dz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _z(n){var r=this,o=r.nativeEvent;if(o.getModifierState)return o.getModifierState(n);var l=Dz[n];return l?!!o[l]:!1}function Ky(n){return _z}var Az=wt({},Dd,{key:kz,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ky,charCode:function(n){return n.type==="keypress"?gp(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?gp(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),Oz=Ma(Az),Mz=wt({},bp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qE=Ma(Mz),Nz=wt({},Dd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ky}),Pz=Ma(Nz),jz=wt({},xc,{propertyName:0,elapsedTime:0,pseudoElement:0}),Lz=Ma(jz),$z=wt({},bp,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),zz=Ma($z),Fz=[9,13,27,32],GE=229,Qy=mt&&"CompositionEvent"in window,Ad=null;mt&&"documentMode"in document&&(Ad=document.documentMode);var Iz=mt&&"TextEvent"in window&&!Ad,XE=mt&&(!Qy||Ad&&Ad>8&&Ad<=11),KE=32,QE=String.fromCharCode(KE);function Vz(){Ft("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ft("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Ft("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Ft("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var ZE=!1;function Bz(n){return(n.ctrlKey||n.altKey||n.metaKey)&&!(n.ctrlKey&&n.altKey)}function Uz(n){switch(n){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function Hz(n,r){return n==="keydown"&&r.keyCode===GE}function JE(n,r){switch(n){case"keyup":return Fz.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==GE;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function e1(n){var r=n.detail;return typeof r=="object"&&"data"in r?r.data:null}function t1(n){return n.locale==="ko"}var wc=!1;function Wz(n,r,o,l,d){var p,g;if(Qy?p=Uz(r):wc?JE(r,l)&&(p="onCompositionEnd"):Hz(r,l)&&(p="onCompositionStart"),!p)return null;XE&&!t1(l)&&(!wc&&p==="onCompositionStart"?wc=fz(d):p==="onCompositionEnd"&&wc&&(g=BE()));var b=Tp(o,p);if(b.length>0){var T=new YE(p,r,null,l,d);if(n.push({event:T,listeners:b}),g)T.data=g;else{var D=e1(l);D!==null&&(T.data=D)}}}function Yz(n,r){switch(n){case"compositionend":return e1(r);case"keypress":var o=r.which;return o!==KE?null:(ZE=!0,QE);case"textInput":var l=r.data;return l===QE&&ZE?null:l;default:return null}}function qz(n,r){if(wc){if(n==="compositionend"||!Qy&&JE(n,r)){var o=BE();return hz(),wc=!1,o}return null}switch(n){case"paste":return null;case"keypress":if(!Bz(r)){if(r.char&&r.char.length>1)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return XE&&!t1(r)?null:r.data;default:return null}}function Gz(n,r,o,l,d){var p;if(Iz?p=Yz(r,l):p=qz(r,l),!p)return null;var g=Tp(o,"onBeforeInput");if(g.length>0){var b=new Tz("onBeforeInput","beforeinput",null,l,d);n.push({event:b,listeners:g}),b.data=p}}function Xz(n,r,o,l,d,p,g){Wz(n,r,o,l,d),Gz(n,r,o,l,d)}var Kz={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};function n1(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!Kz[n.type]:r==="textarea"}/**
79
- * Checks if an event is supported in the current execution environment.
80
- *
81
- * NOTE: This will not work correctly for non-generic events such as `change`,
82
- * `reset`, `load`, `error`, and `select`.
83
- *
84
- * Borrows from Modernizr.
85
- *
86
- * @param {string} eventNameSuffix Event name, e.g. "click".
87
- * @return {boolean} True if the event is supported.
88
- * @internal
89
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
90
- */function Qz(n){if(!mt)return!1;var r="on"+n,o=r in document;if(!o){var l=document.createElement("div");l.setAttribute(r,"return;"),o=typeof l[r]=="function"}return o}function Zz(){Ft("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function r1(n,r,o,l){eE(l);var d=Tp(r,"onChange");if(d.length>0){var p=new Yy("onChange","change",null,o,l);n.push({event:p,listeners:d})}}var Od=null,Md=null;function Jz(n){var r=n.nodeName&&n.nodeName.toLowerCase();return r==="select"||r==="input"&&n.type==="file"}function eF(n){var r=[];r1(r,Md,n,Qg(n)),aE(tF,r)}function tF(n){x1(n,0)}function Sp(n){var r=Dc(n);if(N(r))return n}function nF(n,r){if(n==="change")return r}var a1=!1;mt&&(a1=Qz("input")&&(!document.documentMode||document.documentMode>9));function rF(n,r){Od=n,Md=r,Od.attachEvent("onpropertychange",o1)}function i1(){Od&&(Od.detachEvent("onpropertychange",o1),Od=null,Md=null)}function o1(n){n.propertyName==="value"&&Sp(Md)&&eF(n)}function aF(n,r,o){n==="focusin"?(i1(),rF(r,o)):n==="focusout"&&i1()}function iF(n,r){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Sp(Md)}function oF(n){var r=n.nodeName;return r&&r.toLowerCase()==="input"&&(n.type==="checkbox"||n.type==="radio")}function sF(n,r){if(n==="click")return Sp(r)}function lF(n,r){if(n==="input"||n==="change")return Sp(r)}function cF(n){var r=n._wrapperState;!r||!r.controlled||n.type!=="number"||lt(n,"number",n.value)}function uF(n,r,o,l,d,p,g){var b=o?Dc(o):window,T,D;if(Jz(b)?T=nF:n1(b)?a1?T=lF:(T=iF,D=aF):oF(b)&&(T=sF),T){var O=T(r,o);if(O){r1(n,O,l,d);return}}D&&D(r,b,o),r==="focusout"&&cF(b)}function dF(){ge("onMouseEnter",["mouseout","mouseover"]),ge("onMouseLeave",["mouseout","mouseover"]),ge("onPointerEnter",["pointerout","pointerover"]),ge("onPointerLeave",["pointerout","pointerover"])}function fF(n,r,o,l,d,p,g){var b=r==="mouseover"||r==="pointerover",T=r==="mouseout"||r==="pointerout";if(b&&!_2(l)){var D=l.relatedTarget||l.fromElement;if(D&&(ml(D)||qd(D)))return}if(!(!T&&!b)){var O;if(d.window===d)O=d;else{var H=d.ownerDocument;H?O=H.defaultView||H.parentWindow:O=window}var B,ne;if(T){var ie=l.relatedTarget||l.toElement;if(B=o,ne=ie?ml(ie):null,ne!==null){var de=sl(ne);(ne!==de||ne.tag!==x&&ne.tag!==R)&&(ne=null)}}else B=null,ne=o;if(B!==ne){var Ne=WE,Ke="onMouseLeave",qe="onMouseEnter",Wt="mouse";(r==="pointerout"||r==="pointerover")&&(Ne=qE,Ke="onPointerLeave",qe="onPointerEnter",Wt="pointer");var zt=B==null?O:Dc(B),Z=ne==null?O:Dc(ne),fe=new Ne(Ke,Wt+"leave",B,l,d);fe.target=zt,fe.relatedTarget=Z;var J=null,Ce=ml(d);if(Ce===o){var ze=new Ne(qe,Wt+"enter",ne,l,d);ze.target=Z,ze.relatedTarget=zt,J=ze}LF(n,fe,J,B,ne)}}}function hF(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var Na=typeof Object.is=="function"?Object.is:hF;function Nd(n,r){if(Na(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var o=Object.keys(n),l=Object.keys(r);if(o.length!==l.length)return!1;for(var d=0;d<o.length;d++){var p=o[d];if(!kt.call(r,p)||!Na(n[p],r[p]))return!1}return!0}function s1(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function pF(n){for(;n;){if(n.nextSibling)return n.nextSibling;n=n.parentNode}}function l1(n,r){for(var o=s1(n),l=0,d=0;o;){if(o.nodeType===xo){if(d=l+o.textContent.length,l<=r&&d>=r)return{node:o,offset:r-l};l=d}o=s1(pF(o))}}function mF(n){var r=n.ownerDocument,o=r&&r.defaultView||window,l=o.getSelection&&o.getSelection();if(!l||l.rangeCount===0)return null;var d=l.anchorNode,p=l.anchorOffset,g=l.focusNode,b=l.focusOffset;try{d.nodeType,g.nodeType}catch{return null}return vF(n,d,p,g,b)}function vF(n,r,o,l,d){var p=0,g=-1,b=-1,T=0,D=0,O=n,H=null;e:for(;;){for(var B=null;O===r&&(o===0||O.nodeType===xo)&&(g=p+o),O===l&&(d===0||O.nodeType===xo)&&(b=p+d),O.nodeType===xo&&(p+=O.nodeValue.length),(B=O.firstChild)!==null;)H=O,O=B;for(;;){if(O===n)break e;if(H===r&&++T===o&&(g=p),H===l&&++D===d&&(b=p),(B=O.nextSibling)!==null)break;O=H,H=O.parentNode}O=B}return g===-1||b===-1?null:{start:g,end:b}}function gF(n,r){var o=n.ownerDocument||document,l=o&&o.defaultView||window;if(l.getSelection){var d=l.getSelection(),p=n.textContent.length,g=Math.min(r.start,p),b=r.end===void 0?g:Math.min(r.end,p);if(!d.extend&&g>b){var T=b;b=g,g=T}var D=l1(n,g),O=l1(n,b);if(D&&O){if(d.rangeCount===1&&d.anchorNode===D.node&&d.anchorOffset===D.offset&&d.focusNode===O.node&&d.focusOffset===O.offset)return;var H=o.createRange();H.setStart(D.node,D.offset),d.removeAllRanges(),g>b?(d.addRange(H),d.extend(O.node,O.offset)):(H.setEnd(O.node,O.offset),d.addRange(H))}}}function c1(n){return n&&n.nodeType===xo}function u1(n,r){return!n||!r?!1:n===r?!0:c1(n)?!1:c1(r)?u1(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1}function yF(n){return n&&n.ownerDocument&&u1(n.ownerDocument.documentElement,n)}function bF(n){try{return typeof n.contentWindow.location.href=="string"}catch{return!1}}function d1(){for(var n=window,r=V();r instanceof n.HTMLIFrameElement;){if(bF(r))n=r.contentWindow;else return r;r=V(n.document)}return r}function Zy(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}function SF(){var n=d1();return{focusedElem:n,selectionRange:Zy(n)?wF(n):null}}function xF(n){var r=d1(),o=n.focusedElem,l=n.selectionRange;if(r!==o&&yF(o)){l!==null&&Zy(o)&&CF(o,l);for(var d=[],p=o;p=p.parentNode;)p.nodeType===va&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});typeof o.focus=="function"&&o.focus();for(var g=0;g<d.length;g++){var b=d[g];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}}function wF(n){var r;return"selectionStart"in n?r={start:n.selectionStart,end:n.selectionEnd}:r=mF(n),r||{start:0,end:0}}function CF(n,r){var o=r.start,l=r.end;l===void 0&&(l=o),"selectionStart"in n?(n.selectionStart=o,n.selectionEnd=Math.min(l,n.value.length)):gF(n,r)}var TF=mt&&"documentMode"in document&&document.documentMode<=11;function EF(){Ft("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Cc=null,Jy=null,Pd=null,eb=!1;function RF(n){if("selectionStart"in n&&Zy(n))return{start:n.selectionStart,end:n.selectionEnd};var r=n.ownerDocument&&n.ownerDocument.defaultView||window,o=r.getSelection();return{anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}}function kF(n){return n.window===n?n.document:n.nodeType===wo?n:n.ownerDocument}function f1(n,r,o){var l=kF(o);if(!(eb||Cc==null||Cc!==V(l))){var d=RF(Cc);if(!Pd||!Nd(Pd,d)){Pd=d;var p=Tp(Jy,"onSelect");if(p.length>0){var g=new Yy("onSelect","select",null,r,o);n.push({event:g,listeners:p}),g.target=Cc}}}}function DF(n,r,o,l,d,p,g){var b=o?Dc(o):window;switch(r){case"focusin":(n1(b)||b.contentEditable==="true")&&(Cc=b,Jy=o,Pd=null);break;case"focusout":Cc=null,Jy=null,Pd=null;break;case"mousedown":eb=!0;break;case"contextmenu":case"mouseup":case"dragend":eb=!1,f1(n,l,d);break;case"selectionchange":if(TF)break;case"keydown":case"keyup":f1(n,l,d)}}function xp(n,r){var o={};return o[n.toLowerCase()]=r.toLowerCase(),o["Webkit"+n]="webkit"+r,o["Moz"+n]="moz"+r,o}var Tc={animationend:xp("Animation","AnimationEnd"),animationiteration:xp("Animation","AnimationIteration"),animationstart:xp("Animation","AnimationStart"),transitionend:xp("Transition","TransitionEnd")},tb={},h1={};mt&&(h1=document.createElement("div").style,"AnimationEvent"in window||(delete Tc.animationend.animation,delete Tc.animationiteration.animation,delete Tc.animationstart.animation),"TransitionEvent"in window||delete Tc.transitionend.transition);function wp(n){if(tb[n])return tb[n];if(!Tc[n])return n;var r=Tc[n];for(var o in r)if(r.hasOwnProperty(o)&&o in h1)return tb[n]=r[o];return n}var p1=wp("animationend"),m1=wp("animationiteration"),v1=wp("animationstart"),g1=wp("transitionend"),y1=new Map,b1=["abort","auxClick","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"];function hs(n,r){y1.set(n,r),Ft(r,[n])}function _F(){for(var n=0;n<b1.length;n++){var r=b1[n],o=r.toLowerCase(),l=r[0].toUpperCase()+r.slice(1);hs(o,"on"+l)}hs(p1,"onAnimationEnd"),hs(m1,"onAnimationIteration"),hs(v1,"onAnimationStart"),hs("dblclick","onDoubleClick"),hs("focusin","onFocus"),hs("focusout","onBlur"),hs(g1,"onTransitionEnd")}function AF(n,r,o,l,d,p,g){var b=y1.get(r);if(b!==void 0){var T=Yy,D=r;switch(r){case"keypress":if(gp(l)===0)return;case"keydown":case"keyup":T=Oz;break;case"focusin":D="focus",T=Xy;break;case"focusout":D="blur",T=Xy;break;case"beforeblur":case"afterblur":T=Xy;break;case"click":if(l.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":T=WE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=gz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=Pz;break;case p1:case m1:case v1:T=Sz;break;case g1:T=Lz;break;case"scroll":T=pz;break;case"wheel":T=zz;break;case"copy":case"cut":case"paste":T=wz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=qE;break}var O=(p&id)!==0;{var H=!O&&r==="scroll",B=PF(o,b,l.type,O,H);if(B.length>0){var ne=new T(b,D,null,l,d);n.push({event:ne,listeners:B})}}}}_F(),dF(),Zz(),EF(),Vz();function OF(n,r,o,l,d,p,g){AF(n,r,o,l,d,p);var b=(p&R2)===0;b&&(fF(n,r,o,l,d),uF(n,r,o,l,d),DF(n,r,o,l,d),Xz(n,r,o,l,d))}var jd=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],nb=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(jd));function S1(n,r,o){var l=n.type||"unknown-event";n.currentTarget=o,z2(l,r,void 0,n),n.currentTarget=null}function MF(n,r,o){var l;if(o)for(var d=r.length-1;d>=0;d--){var p=r[d],g=p.instance,b=p.currentTarget,T=p.listener;if(g!==l&&n.isPropagationStopped())return;S1(n,T,b),l=g}else for(var D=0;D<r.length;D++){var O=r[D],H=O.instance,B=O.currentTarget,ne=O.listener;if(H!==l&&n.isPropagationStopped())return;S1(n,ne,B),l=H}}function x1(n,r){for(var o=(r&id)!==0,l=0;l<n.length;l++){var d=n[l],p=d.event,g=d.listeners;MF(p,g,o)}F2()}function NF(n,r,o,l,d){var p=Qg(o),g=[];OF(g,n,l,o,p,r),x1(g,r)}function $n(n,r){nb.has(n)||c('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',n);var o=!1,l=cI(r),d=$F(n,o);l.has(d)||(w1(r,n,Kg,o),l.add(d))}function rb(n,r,o){nb.has(n)&&!r&&c('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',n);var l=0;r&&(l|=id),w1(o,n,l,r)}var Cp="_reactListening"+Math.random().toString(36).slice(2);function Ld(n){if(!n[Cp]){n[Cp]=!0,pt.forEach(function(o){o!=="selectionchange"&&(nb.has(o)||rb(o,!1,n),rb(o,!0,n))});var r=n.nodeType===wo?n:n.ownerDocument;r!==null&&(r[Cp]||(r[Cp]=!0,rb("selectionchange",!1,r)))}}function w1(n,r,o,l,d){var p=az(n,r,o),g=void 0;ey&&(r==="touchstart"||r==="touchmove"||r==="wheel")&&(g=!0),n=n,l?g!==void 0?uz(n,r,p,g):cz(n,r,p):g!==void 0?dz(n,r,p,g):lz(n,r,p)}function C1(n,r){return n===r||n.nodeType===sr&&n.parentNode===r}function ab(n,r,o,l,d){var p=l;if(!(r&ZT)&&!(r&Kg)){var g=d;if(l!==null){var b=l;e:for(;;){if(b===null)return;var T=b.tag;if(T===y||T===S){var D=b.stateNode.containerInfo;if(C1(D,g))break;if(T===S)for(var O=b.return;O!==null;){var H=O.tag;if(H===y||H===S){var B=O.stateNode.containerInfo;if(C1(B,g))return}O=O.return}for(;D!==null;){var ne=ml(D);if(ne===null)return;var ie=ne.tag;if(ie===x||ie===R){b=p=ne;continue e}D=D.parentNode}}b=b.return}}}aE(function(){return NF(n,r,o,p)})}function $d(n,r,o){return{instance:n,listener:r,currentTarget:o}}function PF(n,r,o,l,d,p){for(var g=r!==null?r+"Capture":null,b=l?g:r,T=[],D=n,O=null;D!==null;){var H=D,B=H.stateNode,ne=H.tag;if(ne===x&&B!==null&&(O=B,b!==null)){var ie=sd(D,b);ie!=null&&T.push($d(D,ie,O))}if(d)break;D=D.return}return T}function Tp(n,r){for(var o=r+"Capture",l=[],d=n;d!==null;){var p=d,g=p.stateNode,b=p.tag;if(b===x&&g!==null){var T=g,D=sd(d,o);D!=null&&l.unshift($d(d,D,T));var O=sd(d,r);O!=null&&l.push($d(d,O,T))}d=d.return}return l}function Ec(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==x);return n||null}function jF(n,r){for(var o=n,l=r,d=0,p=o;p;p=Ec(p))d++;for(var g=0,b=l;b;b=Ec(b))g++;for(;d-g>0;)o=Ec(o),d--;for(;g-d>0;)l=Ec(l),g--;for(var T=d;T--;){if(o===l||l!==null&&o===l.alternate)return o;o=Ec(o),l=Ec(l)}return null}function T1(n,r,o,l,d){for(var p=r._reactName,g=[],b=o;b!==null&&b!==l;){var T=b,D=T.alternate,O=T.stateNode,H=T.tag;if(D!==null&&D===l)break;if(H===x&&O!==null){var B=O;if(d){var ne=sd(b,p);ne!=null&&g.unshift($d(b,ne,B))}else if(!d){var ie=sd(b,p);ie!=null&&g.push($d(b,ie,B))}}b=b.return}g.length!==0&&n.push({event:r,listeners:g})}function LF(n,r,o,l,d){var p=l&&d?jF(l,d):null;l!==null&&T1(n,r,l,p,!1),d!==null&&o!==null&&T1(n,o,d,p,!0)}function $F(n,r){return n+"__"+(r?"capture":"bubble")}var ga=!1,zd="dangerouslySetInnerHTML",Ep="suppressContentEditableWarning",ps="suppressHydrationWarning",E1="autoFocus",hl="children",pl="style",Rp="__html",ib,kp,Fd,R1,Dp,k1,D1;ib={dialog:!0,webview:!0},kp=function(n,r){b2(n,r),S2(n,r),E2(n,r,{registrationNameDependencies:Ct,possibleRegistrationNames:ut})},k1=mt&&!document.documentMode,Fd=function(n,r,o){if(!ga){var l=_p(o),d=_p(r);d!==l&&(ga=!0,c("Prop `%s` did not match. Server: %s Client: %s",n,JSON.stringify(d),JSON.stringify(l)))}},R1=function(n){if(!ga){ga=!0;var r=[];n.forEach(function(o){r.push(o)}),c("Extra attributes from the server: %s",r)}},Dp=function(n,r){r===!1?c("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.",n,n,n):c("Expected `%s` listener to be a function, instead got a value of `%s` type.",n,typeof r)},D1=function(n,r){var o=n.namespaceURI===So?n.ownerDocument.createElement(n.tagName):n.ownerDocument.createElementNS(n.namespaceURI,n.tagName);return o.innerHTML=r,o.innerHTML};var zF=/\r\n?/g,FF=/\u0000|\uFFFD/g;function _p(n){dt(n);var r=typeof n=="string"?n:""+n;return r.replace(zF,`
91
- `).replace(FF,"")}function Ap(n,r,o,l){var d=_p(r),p=_p(n);if(p!==d&&(l&&(ga||(ga=!0,c('Text content did not match. Server: "%s" Client: "%s"',p,d))),o&&I))throw new Error("Text content does not match server-rendered HTML.")}function _1(n){return n.nodeType===wo?n:n.ownerDocument}function IF(){}function Op(n){n.onclick=IF}function VF(n,r,o,l,d){for(var p in l)if(l.hasOwnProperty(p)){var g=l[p];if(p===pl)g&&Object.freeze(g),YT(r,g);else if(p===zd){var b=g?g[Rp]:void 0;b!=null&&VT(r,b)}else if(p===hl)if(typeof g=="string"){var T=n!=="textarea"||g!=="";T&&Jh(r,g)}else typeof g=="number"&&Jh(r,""+g);else p===Ep||p===ps||p===E1||(Ct.hasOwnProperty(p)?g!=null&&(typeof g!="function"&&Dp(p,g),p==="onScroll"&&$n("scroll",r)):g!=null&&Pn(r,p,g,d))}}function BF(n,r,o,l){for(var d=0;d<r.length;d+=2){var p=r[d],g=r[d+1];p===pl?YT(n,g):p===zd?VT(n,g):p===hl?Jh(n,g):Pn(n,p,g,l)}}function UF(n,r,o,l){var d,p=_1(o),g,b=l;if(b===So&&(b=Hg(n)),b===So){if(d=nl(n,r),!d&&n!==n.toLowerCase()&&c("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),n==="script"){var T=p.createElement("div");T.innerHTML="<script><\/script>";var D=T.firstChild;g=T.removeChild(D)}else if(typeof r.is=="string")g=p.createElement(n,{is:r.is});else if(g=p.createElement(n),n==="select"){var O=g;r.multiple?O.multiple=!0:r.size&&(O.size=r.size)}}else g=p.createElementNS(b,n);return b===So&&!d&&Object.prototype.toString.call(g)==="[object HTMLUnknownElement]"&&!kt.call(ib,n)&&(ib[n]=!0,c("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",n)),g}function HF(n,r){return _1(r).createTextNode(n)}function WF(n,r,o,l){var d=nl(r,o);kp(r,o);var p;switch(r){case"dialog":$n("cancel",n),$n("close",n),p=o;break;case"iframe":case"object":case"embed":$n("load",n),p=o;break;case"video":case"audio":for(var g=0;g<jd.length;g++)$n(jd[g],n);p=o;break;case"source":$n("error",n),p=o;break;case"img":case"image":case"link":$n("error",n),$n("load",n),p=o;break;case"details":$n("toggle",n),p=o;break;case"input":j(n,o),p=C(n,o),$n("invalid",n);break;case"option":Rn(n,o),p=o;break;case"select":rd(n,o),p=nd(n,o),$n("invalid",n);break;case"textarea":zT(n,o),p=Bg(n,o),$n("invalid",n);break;default:p=o}switch(Xg(r,p),VF(r,n,l,p,d),r){case"input":di(n),Te(n,o,!1);break;case"textarea":di(n),IT(n);break;case"option":Ln(n,o);break;case"select":Vg(n,o);break;default:typeof p.onClick=="function"&&Op(n);break}}function YF(n,r,o,l,d){kp(r,l);var p=null,g,b;switch(r){case"input":g=C(n,o),b=C(n,l),p=[];break;case"select":g=nd(n,o),b=nd(n,l),p=[];break;case"textarea":g=Bg(n,o),b=Bg(n,l),p=[];break;default:g=o,b=l,typeof g.onClick!="function"&&typeof b.onClick=="function"&&Op(n);break}Xg(r,b);var T,D,O=null;for(T in g)if(!(b.hasOwnProperty(T)||!g.hasOwnProperty(T)||g[T]==null))if(T===pl){var H=g[T];for(D in H)H.hasOwnProperty(D)&&(O||(O={}),O[D]="")}else T===zd||T===hl||T===Ep||T===ps||T===E1||(Ct.hasOwnProperty(T)?p||(p=[]):(p=p||[]).push(T,null));for(T in b){var B=b[T],ne=g!=null?g[T]:void 0;if(!(!b.hasOwnProperty(T)||B===ne||B==null&&ne==null))if(T===pl)if(B&&Object.freeze(B),ne){for(D in ne)ne.hasOwnProperty(D)&&(!B||!B.hasOwnProperty(D))&&(O||(O={}),O[D]="");for(D in B)B.hasOwnProperty(D)&&ne[D]!==B[D]&&(O||(O={}),O[D]=B[D])}else O||(p||(p=[]),p.push(T,O)),O=B;else if(T===zd){var ie=B?B[Rp]:void 0,de=ne?ne[Rp]:void 0;ie!=null&&de!==ie&&(p=p||[]).push(T,ie)}else T===hl?(typeof B=="string"||typeof B=="number")&&(p=p||[]).push(T,""+B):T===Ep||T===ps||(Ct.hasOwnProperty(T)?(B!=null&&(typeof B!="function"&&Dp(T,B),T==="onScroll"&&$n("scroll",n)),!p&&ne!==B&&(p=[])):(p=p||[]).push(T,B))}return O&&(d2(O,b[pl]),(p=p||[]).push(pl,O)),p}function qF(n,r,o,l,d){o==="input"&&d.type==="radio"&&d.name!=null&&ee(n,d);var p=nl(o,l),g=nl(o,d);switch(BF(n,r,p,g),o){case"input":oe(n,d);break;case"textarea":FT(n,d);break;case"select":BL(n,d);break}}function GF(n){{var r=n.toLowerCase();return ep.hasOwnProperty(r)&&ep[r]||null}}function XF(n,r,o,l,d,p,g){var b,T;switch(b=nl(r,o),kp(r,o),r){case"dialog":$n("cancel",n),$n("close",n);break;case"iframe":case"object":case"embed":$n("load",n);break;case"video":case"audio":for(var D=0;D<jd.length;D++)$n(jd[D],n);break;case"source":$n("error",n);break;case"img":case"image":case"link":$n("error",n),$n("load",n);break;case"details":$n("toggle",n);break;case"input":j(n,o),$n("invalid",n);break;case"option":Rn(n,o);break;case"select":rd(n,o),$n("invalid",n);break;case"textarea":zT(n,o),$n("invalid",n);break}Xg(r,o);{T=new Set;for(var O=n.attributes,H=0;H<O.length;H++){var B=O[H].name.toLowerCase();switch(B){case"value":break;case"checked":break;case"selected":break;default:T.add(O[H].name)}}}var ne=null;for(var ie in o)if(o.hasOwnProperty(ie)){var de=o[ie];if(ie===hl)typeof de=="string"?n.textContent!==de&&(o[ps]!==!0&&Ap(n.textContent,de,p,g),ne=[hl,de]):typeof de=="number"&&n.textContent!==""+de&&(o[ps]!==!0&&Ap(n.textContent,de,p,g),ne=[hl,""+de]);else if(Ct.hasOwnProperty(ie))de!=null&&(typeof de!="function"&&Dp(ie,de),ie==="onScroll"&&$n("scroll",n));else if(g&&typeof b=="boolean"){var Ne=void 0,Ke=b&&be?null:Nn(ie);if(o[ps]!==!0){if(!(ie===Ep||ie===ps||ie==="value"||ie==="checked"||ie==="selected")){if(ie===zd){var qe=n.innerHTML,Wt=de?de[Rp]:void 0;if(Wt!=null){var zt=D1(n,Wt);zt!==qe&&Fd(ie,qe,zt)}}else if(ie===pl){if(T.delete(ie),k1){var Z=c2(de);Ne=n.getAttribute("style"),Z!==Ne&&Fd(ie,Ne,Z)}}else if(b&&!be)T.delete(ie.toLowerCase()),Ne=Jn(n,ie,de),de!==Ne&&Fd(ie,Ne,de);else if(!jt(ie,Ke,b)&&!Mt(ie,de,Ke,b)){var fe=!1;if(Ke!==null)T.delete(Ke.attributeName),Ne=Lt(n,ie,de,Ke);else{var J=l;if(J===So&&(J=Hg(r)),J===So)T.delete(ie.toLowerCase());else{var Ce=GF(ie);Ce!==null&&Ce!==ie&&(fe=!0,T.delete(Ce)),T.delete(ie)}Ne=Jn(n,ie,de)}var ze=be;!ze&&de!==Ne&&!fe&&Fd(ie,Ne,de)}}}}}switch(g&&T.size>0&&o[ps]!==!0&&R1(T),r){case"input":di(n),Te(n,o,!0);break;case"textarea":di(n),IT(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&Op(n);break}return ne}function KF(n,r,o){var l=n.nodeValue!==r;return l}function ob(n,r){{if(ga)return;ga=!0,c("Did not expect server HTML to contain a <%s> in <%s>.",r.nodeName.toLowerCase(),n.nodeName.toLowerCase())}}function sb(n,r){{if(ga)return;ga=!0,c('Did not expect server HTML to contain the text node "%s" in <%s>.',r.nodeValue,n.nodeName.toLowerCase())}}function lb(n,r,o){{if(ga)return;ga=!0,c("Expected server HTML to contain a matching <%s> in <%s>.",r,n.nodeName.toLowerCase())}}function cb(n,r){{if(r===""||ga)return;ga=!0,c('Expected server HTML to contain a matching text node for "%s" in <%s>.',r,n.nodeName.toLowerCase())}}function QF(n,r,o){switch(r){case"input":Qe(n,o);return;case"textarea":HL(n,o);return;case"select":UL(n,o);return}}var Id=function(){},Vd=function(){};{var ZF=["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"],A1=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],JF=A1.concat(["button"]),e5=["dd","dt","li","option","optgroup","p","rp","rt"],O1={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Vd=function(n,r){var o=wt({},n||O1),l={tag:r};return A1.indexOf(r)!==-1&&(o.aTagInScope=null,o.buttonTagInScope=null,o.nobrTagInScope=null),JF.indexOf(r)!==-1&&(o.pTagInButtonScope=null),ZF.indexOf(r)!==-1&&r!=="address"&&r!=="div"&&r!=="p"&&(o.listItemTagAutoclosing=null,o.dlItemTagAutoclosing=null),o.current=l,r==="form"&&(o.formTag=l),r==="a"&&(o.aTagInScope=l),r==="button"&&(o.buttonTagInScope=l),r==="nobr"&&(o.nobrTagInScope=l),r==="p"&&(o.pTagInButtonScope=l),r==="li"&&(o.listItemTagAutoclosing=l),(r==="dd"||r==="dt")&&(o.dlItemTagAutoclosing=l),o};var t5=function(n,r){switch(r){case"select":return n==="option"||n==="optgroup"||n==="#text";case"optgroup":return n==="option"||n==="#text";case"option":return n==="#text";case"tr":return n==="th"||n==="td"||n==="style"||n==="script"||n==="template";case"tbody":case"thead":case"tfoot":return n==="tr"||n==="style"||n==="script"||n==="template";case"colgroup":return n==="col"||n==="template";case"table":return n==="caption"||n==="colgroup"||n==="tbody"||n==="tfoot"||n==="thead"||n==="style"||n==="script"||n==="template";case"head":return n==="base"||n==="basefont"||n==="bgsound"||n==="link"||n==="meta"||n==="title"||n==="noscript"||n==="noframes"||n==="style"||n==="script"||n==="template";case"html":return n==="head"||n==="body"||n==="frameset";case"frameset":return n==="frame";case"#document":return n==="html"}switch(n){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return r!=="h1"&&r!=="h2"&&r!=="h3"&&r!=="h4"&&r!=="h5"&&r!=="h6";case"rp":case"rt":return e5.indexOf(r)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return r==null}return!0},n5=function(n,r){switch(n){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 r.pTagInButtonScope;case"form":return r.formTag||r.pTagInButtonScope;case"li":return r.listItemTagAutoclosing;case"dd":case"dt":return r.dlItemTagAutoclosing;case"button":return r.buttonTagInScope;case"a":return r.aTagInScope;case"nobr":return r.nobrTagInScope}return null},M1={};Id=function(n,r,o){o=o||O1;var l=o.current,d=l&&l.tag;r!=null&&(n!=null&&c("validateDOMNesting: when childText is passed, childTag should be null"),n="#text");var p=t5(n,d)?null:l,g=p?null:n5(n,o),b=p||g;if(b){var T=b.tag,D=!!p+"|"+n+"|"+T;if(!M1[D]){M1[D]=!0;var O=n,H="";if(n==="#text"?/\S/.test(r)?O="Text nodes":(O="Whitespace text nodes",H=" Make sure you don't have any extra whitespace between tags on each line of your source code."):O="<"+n+">",p){var B="";T==="table"&&n==="tr"&&(B+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),c("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",O,T,H,B)}else c("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",O,T)}}}}var Mp="suppressHydrationWarning",Np="$",Pp="/$",Bd="$?",Ud="$!",r5="style",ub=null,db=null;function a5(n){var r,o,l=n.nodeType;switch(l){case wo:case Yg:{r=l===wo?"#document":"#fragment";var d=n.documentElement;o=d?d.namespaceURI:Wg(null,"");break}default:{var p=l===sr?n.parentNode:n,g=p.namespaceURI||null;r=p.tagName,o=Wg(g,r);break}}{var b=r.toLowerCase(),T=Vd(null,b);return{namespace:o,ancestorInfo:T}}}function i5(n,r,o){{var l=n,d=Wg(l.namespace,r),p=Vd(l.ancestorInfo,r);return{namespace:d,ancestorInfo:p}}}function Coe(n){return n}function o5(n){ub=rz(),db=SF();var r=null;return IE(!1),r}function s5(n){xF(db),IE(ub),ub=null,db=null}function l5(n,r,o,l,d){var p;{var g=l;if(Id(n,null,g.ancestorInfo),typeof r.children=="string"||typeof r.children=="number"){var b=""+r.children,T=Vd(g.ancestorInfo,n);Id(null,b,T)}p=g.namespace}var D=UF(n,r,o,p);return Yd(d,D),bb(D,r),D}function c5(n,r){n.appendChild(r)}function u5(n,r,o,l,d){switch(WF(n,r,o,l),r){case"button":case"input":case"select":case"textarea":return!!o.autoFocus;case"img":return!0;default:return!1}}function d5(n,r,o,l,d,p){{var g=p;if(typeof l.children!=typeof o.children&&(typeof l.children=="string"||typeof l.children=="number")){var b=""+l.children,T=Vd(g.ancestorInfo,r);Id(null,b,T)}}return YF(n,r,o,l)}function fb(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}function f5(n,r,o,l){{var d=o;Id(null,n,d.ancestorInfo)}var p=HF(n,r);return Yd(l,p),p}function h5(){var n=window.event;return n===void 0?_o:VE(n.type)}var hb=typeof setTimeout=="function"?setTimeout:void 0,p5=typeof clearTimeout=="function"?clearTimeout:void 0,pb=-1,N1=typeof Promise=="function"?Promise:void 0,m5=typeof queueMicrotask=="function"?queueMicrotask:typeof N1<"u"?function(n){return N1.resolve(null).then(n).catch(v5)}:hb;function v5(n){setTimeout(function(){throw n})}function g5(n,r,o,l){switch(r){case"button":case"input":case"select":case"textarea":o.autoFocus&&n.focus();return;case"img":{o.src&&(n.src=o.src);return}}}function y5(n,r,o,l,d,p){qF(n,r,o,l,d),bb(n,d)}function P1(n){Jh(n,"")}function b5(n,r,o){n.nodeValue=o}function S5(n,r){n.appendChild(r)}function x5(n,r){var o;n.nodeType===sr?(o=n.parentNode,o.insertBefore(r,n)):(o=n,o.appendChild(r));var l=n._reactRootContainer;l==null&&o.onclick===null&&Op(o)}function w5(n,r,o){n.insertBefore(r,o)}function C5(n,r,o){n.nodeType===sr?n.parentNode.insertBefore(r,o):n.insertBefore(r,o)}function T5(n,r){n.removeChild(r)}function E5(n,r){n.nodeType===sr?n.parentNode.removeChild(r):n.removeChild(r)}function mb(n,r){var o=r,l=0;do{var d=o.nextSibling;if(n.removeChild(o),d&&d.nodeType===sr){var p=d.data;if(p===Pp)if(l===0){n.removeChild(d),Ed(r);return}else l--;else(p===Np||p===Bd||p===Ud)&&l++}o=d}while(o);Ed(r)}function R5(n,r){n.nodeType===sr?mb(n.parentNode,r):n.nodeType===va&&mb(n,r),Ed(n)}function k5(n){n=n;var r=n.style;typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none"}function D5(n){n.nodeValue=""}function _5(n,r){n=n;var o=r[r5],l=o!=null&&o.hasOwnProperty("display")?o.display:null;n.style.display=qg("display",l)}function A5(n,r){n.nodeValue=r}function O5(n){n.nodeType===va?n.textContent="":n.nodeType===wo&&n.documentElement&&n.removeChild(n.documentElement)}function M5(n,r,o){return n.nodeType!==va||r.toLowerCase()!==n.nodeName.toLowerCase()?null:n}function N5(n,r){return r===""||n.nodeType!==xo?null:n}function P5(n){return n.nodeType!==sr?null:n}function j1(n){return n.data===Bd}function vb(n){return n.data===Ud}function j5(n){var r=n.nextSibling&&n.nextSibling.dataset,o,l,d;return r&&(o=r.dgst,l=r.msg,d=r.stck),{message:l,digest:o,stack:d}}function L5(n,r){n._reactRetry=r}function jp(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===va||r===xo)break;if(r===sr){var o=n.data;if(o===Np||o===Ud||o===Bd)break;if(o===Pp)return null}}return n}function Hd(n){return jp(n.nextSibling)}function $5(n){return jp(n.firstChild)}function z5(n){return jp(n.firstChild)}function F5(n){return jp(n.nextSibling)}function I5(n,r,o,l,d,p,g){Yd(p,n),bb(n,o);var b;{var T=d;b=T.namespace}var D=(p.mode&Ut)!==Ze;return XF(n,r,o,b,l,D,g)}function V5(n,r,o,l){return Yd(o,n),o.mode&Ut,KF(n,r)}function B5(n,r){Yd(r,n)}function U5(n){for(var r=n.nextSibling,o=0;r;){if(r.nodeType===sr){var l=r.data;if(l===Pp){if(o===0)return Hd(r);o--}else(l===Np||l===Ud||l===Bd)&&o++}r=r.nextSibling}return null}function L1(n){for(var r=n.previousSibling,o=0;r;){if(r.nodeType===sr){var l=r.data;if(l===Np||l===Ud||l===Bd){if(o===0)return r;o--}else l===Pp&&o++}r=r.previousSibling}return null}function H5(n){Ed(n)}function W5(n){Ed(n)}function Y5(n){return n!=="head"&&n!=="body"}function q5(n,r,o,l){var d=!0;Ap(r.nodeValue,o,l,d)}function G5(n,r,o,l,d,p){if(r[Mp]!==!0){var g=!0;Ap(l.nodeValue,d,p,g)}}function X5(n,r){r.nodeType===va?ob(n,r):r.nodeType===sr||sb(n,r)}function K5(n,r){{var o=n.parentNode;o!==null&&(r.nodeType===va?ob(o,r):r.nodeType===sr||sb(o,r))}}function Q5(n,r,o,l,d){(d||r[Mp]!==!0)&&(l.nodeType===va?ob(o,l):l.nodeType===sr||sb(o,l))}function Z5(n,r,o){lb(n,r)}function J5(n,r){cb(n,r)}function eI(n,r,o){{var l=n.parentNode;l!==null&&lb(l,r)}}function tI(n,r){{var o=n.parentNode;o!==null&&cb(o,r)}}function nI(n,r,o,l,d,p){(p||r[Mp]!==!0)&&lb(o,l)}function rI(n,r,o,l,d){(d||r[Mp]!==!0)&&cb(o,l)}function aI(n){c("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",n.nodeName.toLowerCase())}function iI(n){Ld(n)}var Rc=Math.random().toString(36).slice(2),kc="__reactFiber$"+Rc,gb="__reactProps$"+Rc,Wd="__reactContainer$"+Rc,yb="__reactEvents$"+Rc,oI="__reactListeners$"+Rc,sI="__reactHandles$"+Rc;function lI(n){delete n[kc],delete n[gb],delete n[yb],delete n[oI],delete n[sI]}function Yd(n,r){r[kc]=n}function Lp(n,r){r[Wd]=n}function $1(n){n[Wd]=null}function qd(n){return!!n[Wd]}function ml(n){var r=n[kc];if(r)return r;for(var o=n.parentNode;o;){if(r=o[Wd]||o[kc],r){var l=r.alternate;if(r.child!==null||l!==null&&l.child!==null)for(var d=L1(n);d!==null;){var p=d[kc];if(p)return p;d=L1(d)}return r}n=o,o=n.parentNode}return null}function ms(n){var r=n[kc]||n[Wd];return r&&(r.tag===x||r.tag===R||r.tag===L||r.tag===y)?r:null}function Dc(n){if(n.tag===x||n.tag===R)return n.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function $p(n){return n[gb]||null}function bb(n,r){n[gb]=r}function cI(n){var r=n[yb];return r===void 0&&(r=n[yb]=new Set),r}var z1={},F1=a.ReactDebugCurrentFrame;function zp(n){if(n){var r=n._owner,o=Li(n.type,n._source,r?r.type:null);F1.setExtraStackFrame(o)}else F1.setExtraStackFrame(null)}function mi(n,r,o,l,d){{var p=Function.call.bind(kt);for(var g in n)if(p(n,g)){var b=void 0;try{if(typeof n[g]!="function"){var T=Error((l||"React class")+": "+o+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}b=n[g](r,g,l,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(D){b=D}b&&!(b instanceof Error)&&(zp(d),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",l||"React class",o,g,typeof b),zp(null)),b instanceof Error&&!(b.message in z1)&&(z1[b.message]=!0,zp(d),c("Failed %s type: %s",o,b.message),zp(null))}}}var Sb=[],Fp;Fp=[];var Ao=-1;function vs(n){return{current:n}}function Yr(n,r){if(Ao<0){c("Unexpected pop.");return}r!==Fp[Ao]&&c("Unexpected Fiber popped."),n.current=Sb[Ao],Sb[Ao]=null,Fp[Ao]=null,Ao--}function qr(n,r,o){Ao++,Sb[Ao]=n.current,Fp[Ao]=o,n.current=r}var xb;xb={};var Pa={};Object.freeze(Pa);var Oo=vs(Pa),Vi=vs(!1),wb=Pa;function _c(n,r,o){return o&&Bi(r)?wb:Oo.current}function I1(n,r,o){{var l=n.stateNode;l.__reactInternalMemoizedUnmaskedChildContext=r,l.__reactInternalMemoizedMaskedChildContext=o}}function Ac(n,r){{var o=n.type,l=o.contextTypes;if(!l)return Pa;var d=n.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===r)return d.__reactInternalMemoizedMaskedChildContext;var p={};for(var g in l)p[g]=r[g];{var b=xt(n)||"Unknown";mi(l,p,"context",b)}return d&&I1(n,r,p),p}}function Ip(){return Vi.current}function Bi(n){{var r=n.childContextTypes;return r!=null}}function Vp(n){Yr(Vi,n),Yr(Oo,n)}function Cb(n){Yr(Vi,n),Yr(Oo,n)}function V1(n,r,o){{if(Oo.current!==Pa)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");qr(Oo,r,n),qr(Vi,o,n)}}function B1(n,r,o){{var l=n.stateNode,d=r.childContextTypes;if(typeof l.getChildContext!="function"){{var p=xt(n)||"Unknown";xb[p]||(xb[p]=!0,c("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",p,p))}return o}var g=l.getChildContext();for(var b in g)if(!(b in d))throw new Error((xt(n)||"Unknown")+'.getChildContext(): key "'+b+'" is not defined in childContextTypes.');{var T=xt(n)||"Unknown";mi(d,g,"child context",T)}return wt({},o,g)}}function Bp(n){{var r=n.stateNode,o=r&&r.__reactInternalMemoizedMergedChildContext||Pa;return wb=Oo.current,qr(Oo,o,n),qr(Vi,Vi.current,n),!0}}function U1(n,r,o){{var l=n.stateNode;if(!l)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(o){var d=B1(n,r,wb);l.__reactInternalMemoizedMergedChildContext=d,Yr(Vi,n),Yr(Oo,n),qr(Oo,d,n),qr(Vi,o,n)}else Yr(Vi,n),qr(Vi,o,n)}}function uI(n){{if(!Y2(n)||n.tag!==m)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var r=n;do{switch(r.tag){case y:return r.stateNode.context;case m:{var o=r.type;if(Bi(o))return r.stateNode.__reactInternalMemoizedMergedChildContext;break}}r=r.return}while(r!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var gs=0,Up=1,Mo=null,Tb=!1,Eb=!1;function H1(n){Mo===null?Mo=[n]:Mo.push(n)}function dI(n){Tb=!0,H1(n)}function W1(){Tb&&ys()}function ys(){if(!Eb&&Mo!==null){Eb=!0;var n=0,r=pi();try{var o=!0,l=Mo;for(Rr(Oa);n<l.length;n++){var d=l[n];do d=d(o);while(d!==null)}Mo=null,Tb=!1}catch(p){throw Mo!==null&&(Mo=Mo.slice(n+1)),mE(ip,ys),p}finally{Rr(r),Eb=!1}}return null}var Oc=[],Mc=0,Hp=null,Wp=0,Wa=[],Ya=0,vl=null,No=1,Po="";function fI(n){return yl(),(n.flags&sE)!==rt}function hI(n){return yl(),Wp}function pI(){var n=Po,r=No,o=r&~mI(r);return o.toString(32)+n}function gl(n,r){yl(),Oc[Mc++]=Wp,Oc[Mc++]=Hp,Hp=n,Wp=r}function Y1(n,r,o){yl(),Wa[Ya++]=No,Wa[Ya++]=Po,Wa[Ya++]=vl,vl=n;var l=No,d=Po,p=Yp(l)-1,g=l&~(1<<p),b=o+1,T=Yp(r)+p;if(T>30){var D=p-p%5,O=(1<<D)-1,H=(g&O).toString(32),B=g>>D,ne=p-D,ie=Yp(r)+ne,de=b<<ne,Ne=de|B,Ke=H+d;No=1<<ie|Ne,Po=Ke}else{var qe=b<<p,Wt=qe|g,zt=d;No=1<<T|Wt,Po=zt}}function Rb(n){yl();var r=n.return;if(r!==null){var o=1,l=0;gl(n,o),Y1(n,o,l)}}function Yp(n){return 32-xE(n)}function mI(n){return 1<<Yp(n)-1}function kb(n){for(;n===Hp;)Hp=Oc[--Mc],Oc[Mc]=null,Wp=Oc[--Mc],Oc[Mc]=null;for(;n===vl;)vl=Wa[--Ya],Wa[Ya]=null,Po=Wa[--Ya],Wa[Ya]=null,No=Wa[--Ya],Wa[Ya]=null}function vI(){return yl(),vl!==null?{id:No,overflow:Po}:null}function gI(n,r){yl(),Wa[Ya++]=No,Wa[Ya++]=Po,Wa[Ya++]=vl,No=r.id,Po=r.overflow,vl=n}function yl(){Ar()||c("Expected to be hydrating. This is a bug in React. Please file an issue.")}var _r=null,qa=null,gi=!1,bl=!1,bs=null;function yI(){gi&&c("We should not be hydrating here. This is a bug in React. Please file a bug.")}function q1(){bl=!0}function bI(){return bl}function SI(n){var r=n.stateNode.containerInfo;return qa=z5(r),_r=n,gi=!0,bs=null,bl=!1,!0}function xI(n,r,o){return qa=F5(r),_r=n,gi=!0,bs=null,bl=!1,o!==null&&gI(n,o),!0}function G1(n,r){switch(n.tag){case y:{X5(n.stateNode.containerInfo,r);break}case x:{var o=(n.mode&Ut)!==Ze;Q5(n.type,n.memoizedProps,n.stateNode,r,o);break}case L:{var l=n.memoizedState;l.dehydrated!==null&&K5(l.dehydrated,r);break}}}function X1(n,r){G1(n,r);var o=EU();o.stateNode=r,o.return=n;var l=n.deletions;l===null?(n.deletions=[o],n.flags|=rl):l.push(o)}function Db(n,r){{if(bl)return;switch(n.tag){case y:{var o=n.stateNode.containerInfo;switch(r.tag){case x:var l=r.type;r.pendingProps,Z5(o,l);break;case R:var d=r.pendingProps;J5(o,d);break}break}case x:{var p=n.type,g=n.memoizedProps,b=n.stateNode;switch(r.tag){case x:{var T=r.type,D=r.pendingProps,O=(n.mode&Ut)!==Ze;nI(p,g,b,T,D,O);break}case R:{var H=r.pendingProps,B=(n.mode&Ut)!==Ze;rI(p,g,b,H,B);break}}break}case L:{var ne=n.memoizedState,ie=ne.dehydrated;if(ie!==null)switch(r.tag){case x:var de=r.type;r.pendingProps,eI(ie,de);break;case R:var Ne=r.pendingProps;tI(ie,Ne);break}break}default:return}}}function K1(n,r){r.flags=r.flags&~To|lr,Db(n,r)}function Q1(n,r){switch(n.tag){case x:{var o=n.type;n.pendingProps;var l=M5(r,o);return l!==null?(n.stateNode=l,_r=n,qa=$5(l),!0):!1}case R:{var d=n.pendingProps,p=N5(r,d);return p!==null?(n.stateNode=p,_r=n,qa=null,!0):!1}case L:{var g=P5(r);if(g!==null){var b={dehydrated:g,treeContext:vI(),retryLane:_a};n.memoizedState=b;var T=RU(g);return T.return=n,n.child=T,_r=n,qa=null,!0}return!1}default:return!1}}function _b(n){return(n.mode&Ut)!==Ze&&(n.flags&ln)===rt}function Ab(n){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function Ob(n){if(gi){var r=qa;if(!r){_b(n)&&(Db(_r,n),Ab()),K1(_r,n),gi=!1,_r=n;return}var o=r;if(!Q1(n,r)){_b(n)&&(Db(_r,n),Ab()),r=Hd(o);var l=_r;if(!r||!Q1(n,r)){K1(_r,n),gi=!1,_r=n;return}X1(l,o)}}}function wI(n,r,o){var l=n.stateNode,d=!bl,p=I5(l,n.type,n.memoizedProps,r,o,n,d);return n.updateQueue=p,p!==null}function CI(n){var r=n.stateNode,o=n.memoizedProps,l=V5(r,o,n);if(l){var d=_r;if(d!==null)switch(d.tag){case y:{var p=d.stateNode.containerInfo,g=(d.mode&Ut)!==Ze;q5(p,r,o,g);break}case x:{var b=d.type,T=d.memoizedProps,D=d.stateNode,O=(d.mode&Ut)!==Ze;G5(b,T,D,r,o,O);break}}}return l}function TI(n){var r=n.memoizedState,o=r!==null?r.dehydrated:null;if(!o)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");B5(o,n)}function EI(n){var r=n.memoizedState,o=r!==null?r.dehydrated:null;if(!o)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return U5(o)}function Z1(n){for(var r=n.return;r!==null&&r.tag!==x&&r.tag!==y&&r.tag!==L;)r=r.return;_r=r}function qp(n){if(n!==_r)return!1;if(!gi)return Z1(n),gi=!0,!1;if(n.tag!==y&&(n.tag!==x||Y5(n.type)&&!fb(n.type,n.memoizedProps))){var r=qa;if(r)if(_b(n))J1(n),Ab();else for(;r;)X1(n,r),r=Hd(r)}return Z1(n),n.tag===L?qa=EI(n):qa=_r?Hd(n.stateNode):null,!0}function RI(){return gi&&qa!==null}function J1(n){for(var r=qa;r;)G1(n,r),r=Hd(r)}function Nc(){_r=null,qa=null,gi=!1,bl=!1}function eR(){bs!==null&&(qk(bs),bs=null)}function Ar(){return gi}function Mb(n){bs===null?bs=[n]:bs.push(n)}var kI=a.ReactCurrentBatchConfig,DI=null;function _I(){return kI.transition}var yi={recordUnsafeLifecycleWarnings:function(n,r){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(n,r){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var AI=function(n){for(var r=null,o=n;o!==null;)o.mode&Kn&&(r=o),o=o.return;return r},Sl=function(n){var r=[];return n.forEach(function(o){r.push(o)}),r.sort().join(", ")},Gd=[],Xd=[],Kd=[],Qd=[],Zd=[],Jd=[],xl=new Set;yi.recordUnsafeLifecycleWarnings=function(n,r){xl.has(n.type)||(typeof r.componentWillMount=="function"&&r.componentWillMount.__suppressDeprecationWarning!==!0&&Gd.push(n),n.mode&Kn&&typeof r.UNSAFE_componentWillMount=="function"&&Xd.push(n),typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Kd.push(n),n.mode&Kn&&typeof r.UNSAFE_componentWillReceiveProps=="function"&&Qd.push(n),typeof r.componentWillUpdate=="function"&&r.componentWillUpdate.__suppressDeprecationWarning!==!0&&Zd.push(n),n.mode&Kn&&typeof r.UNSAFE_componentWillUpdate=="function"&&Jd.push(n))},yi.flushPendingUnsafeLifecycleWarnings=function(){var n=new Set;Gd.length>0&&(Gd.forEach(function(B){n.add(xt(B)||"Component"),xl.add(B.type)}),Gd=[]);var r=new Set;Xd.length>0&&(Xd.forEach(function(B){r.add(xt(B)||"Component"),xl.add(B.type)}),Xd=[]);var o=new Set;Kd.length>0&&(Kd.forEach(function(B){o.add(xt(B)||"Component"),xl.add(B.type)}),Kd=[]);var l=new Set;Qd.length>0&&(Qd.forEach(function(B){l.add(xt(B)||"Component"),xl.add(B.type)}),Qd=[]);var d=new Set;Zd.length>0&&(Zd.forEach(function(B){d.add(xt(B)||"Component"),xl.add(B.type)}),Zd=[]);var p=new Set;if(Jd.length>0&&(Jd.forEach(function(B){p.add(xt(B)||"Component"),xl.add(B.type)}),Jd=[]),r.size>0){var g=Sl(r);c(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
92
-
93
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
94
-
95
- Please update the following components: %s`,g)}if(l.size>0){var b=Sl(l);c(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
96
-
97
- * Move data fetching code or side effects to componentDidUpdate.
98
- * 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://reactjs.org/link/derived-state
99
-
100
- Please update the following components: %s`,b)}if(p.size>0){var T=Sl(p);c(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
101
-
102
- * Move data fetching code or side effects to componentDidUpdate.
103
-
104
- Please update the following components: %s`,T)}if(n.size>0){var D=Sl(n);u(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
105
-
106
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
107
- * 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.
108
-
109
- Please update the following components: %s`,D)}if(o.size>0){var O=Sl(o);u(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
110
-
111
- * Move data fetching code or side effects to componentDidUpdate.
112
- * 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://reactjs.org/link/derived-state
113
- * 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.
114
-
115
- Please update the following components: %s`,O)}if(d.size>0){var H=Sl(d);u(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
116
-
117
- * Move data fetching code or side effects to componentDidUpdate.
118
- * 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.
119
-
120
- Please update the following components: %s`,H)}};var Gp=new Map,tR=new Set;yi.recordLegacyContextWarning=function(n,r){var o=AI(n);if(o===null){c("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.");return}if(!tR.has(n.type)){var l=Gp.get(o);(n.type.contextTypes!=null||n.type.childContextTypes!=null||r!==null&&typeof r.getChildContext=="function")&&(l===void 0&&(l=[],Gp.set(o,l)),l.push(n))}},yi.flushLegacyContextWarning=function(){Gp.forEach(function(n,r){if(n.length!==0){var o=n[0],l=new Set;n.forEach(function(p){l.add(xt(p)||"Component"),tR.add(p.type)});var d=Sl(l);try{An(o),c(`Legacy context API has been detected within a strict-mode tree.
121
-
122
- The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
123
-
124
- Please update the following components: %s
125
-
126
- Learn more about this warning here: https://reactjs.org/link/legacy-context`,d)}finally{or()}}})},yi.discardPendingWarnings=function(){Gd=[],Xd=[],Kd=[],Qd=[],Zd=[],Jd=[],Gp=new Map}}var Nb,Pb,jb,Lb,$b,nR=function(n,r){};Nb=!1,Pb=!1,jb={},Lb={},$b={},nR=function(n,r){if(!(n===null||typeof n!="object")&&!(!n._store||n._store.validated||n.key!=null)){if(typeof n._store!="object")throw new 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=!0;var o=xt(r)||"Component";Lb[o]||(Lb[o]=!0,c('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function OI(n){return n.prototype&&n.prototype.isReactComponent}function ef(n,r,o){var l=o.ref;if(l!==null&&typeof l!="function"&&typeof l!="object"){if((n.mode&Kn||Ve)&&!(o._owner&&o._self&&o._owner.stateNode!==o._self)&&!(o._owner&&o._owner.tag!==m)&&!(typeof o.type=="function"&&!OI(o.type))&&o._owner){var d=xt(n)||"Component";jb[d]||(c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',d,l),jb[d]=!0)}if(o._owner){var p=o._owner,g;if(p){var b=p;if(b.tag!==m)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");g=b.stateNode}if(!g)throw new Error("Missing owner for string ref "+l+". This error is likely caused by a bug in React. Please file an issue.");var T=g;De(l,"ref");var D=""+l;if(r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===D)return r.ref;var O=function(H){var B=T.refs;H===null?delete B[D]:B[D]=H};return O._stringRef=D,O}else{if(typeof l!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!o._owner)throw new Error("Element ref was specified as a string ("+l+`) but no owner was set. This could happen for one of the following reasons:
127
- 1. You may be adding a ref to a function component
128
- 2. You may be adding a ref to a component that was not created inside a component's render method
129
- 3. You have multiple copies of React loaded
130
- See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return l}function Xp(n,r){var o=Object.prototype.toString.call(r);throw new Error("Objects are not valid as a React child (found: "+(o==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.")}function Kp(n){{var r=xt(n)||"Component";if($b[r])return;$b[r]=!0,c("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function rR(n){var r=n._payload,o=n._init;return o(r)}function aR(n){function r(Z,fe){if(n){var J=Z.deletions;J===null?(Z.deletions=[fe],Z.flags|=rl):J.push(fe)}}function o(Z,fe){if(!n)return null;for(var J=fe;J!==null;)r(Z,J),J=J.sibling;return null}function l(Z,fe){for(var J=new Map,Ce=fe;Ce!==null;)Ce.key!==null?J.set(Ce.key,Ce):J.set(Ce.index,Ce),Ce=Ce.sibling;return J}function d(Z,fe){var J=Al(Z,fe);return J.index=0,J.sibling=null,J}function p(Z,fe,J){if(Z.index=J,!n)return Z.flags|=sE,fe;var Ce=Z.alternate;if(Ce!==null){var ze=Ce.index;return ze<fe?(Z.flags|=lr,fe):ze}else return Z.flags|=lr,fe}function g(Z){return n&&Z.alternate===null&&(Z.flags|=lr),Z}function b(Z,fe,J,Ce){if(fe===null||fe.tag!==R){var ze=MS(J,Z.mode,Ce);return ze.return=Z,ze}else{var Pe=d(fe,J);return Pe.return=Z,Pe}}function T(Z,fe,J,Ce){var ze=J.type;if(ze===z)return O(Z,fe,J.props.children,Ce,J.key);if(fe!==null&&(fe.elementType===ze||cD(fe,J)||typeof ze=="object"&&ze!==null&&ze.$$typeof===Me&&rR(ze)===fe.type)){var Pe=d(fe,J.props);return Pe.ref=ef(Z,fe,J),Pe.return=Z,Pe._debugSource=J._source,Pe._debugOwner=J._owner,Pe}var ct=OS(J,Z.mode,Ce);return ct.ref=ef(Z,fe,J),ct.return=Z,ct}function D(Z,fe,J,Ce){if(fe===null||fe.tag!==S||fe.stateNode.containerInfo!==J.containerInfo||fe.stateNode.implementation!==J.implementation){var ze=NS(J,Z.mode,Ce);return ze.return=Z,ze}else{var Pe=d(fe,J.children||[]);return Pe.return=Z,Pe}}function O(Z,fe,J,Ce,ze){if(fe===null||fe.tag!==E){var Pe=As(J,Z.mode,Ce,ze);return Pe.return=Z,Pe}else{var ct=d(fe,J);return ct.return=Z,ct}}function H(Z,fe,J){if(typeof fe=="string"&&fe!==""||typeof fe=="number"){var Ce=MS(""+fe,Z.mode,J);return Ce.return=Z,Ce}if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case jn:{var ze=OS(fe,Z.mode,J);return ze.ref=ef(Z,null,fe),ze.return=Z,ze}case er:{var Pe=NS(fe,Z.mode,J);return Pe.return=Z,Pe}case Me:{var ct=fe._payload,bt=fe._init;return H(Z,bt(ct),J)}}if(sn(fe)||ta(fe)){var wn=As(fe,Z.mode,J,null);return wn.return=Z,wn}Xp(Z,fe)}return typeof fe=="function"&&Kp(Z),null}function B(Z,fe,J,Ce){var ze=fe!==null?fe.key:null;if(typeof J=="string"&&J!==""||typeof J=="number")return ze!==null?null:b(Z,fe,""+J,Ce);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case jn:return J.key===ze?T(Z,fe,J,Ce):null;case er:return J.key===ze?D(Z,fe,J,Ce):null;case Me:{var Pe=J._payload,ct=J._init;return B(Z,fe,ct(Pe),Ce)}}if(sn(J)||ta(J))return ze!==null?null:O(Z,fe,J,Ce,null);Xp(Z,J)}return typeof J=="function"&&Kp(Z),null}function ne(Z,fe,J,Ce,ze){if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number"){var Pe=Z.get(J)||null;return b(fe,Pe,""+Ce,ze)}if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case jn:{var ct=Z.get(Ce.key===null?J:Ce.key)||null;return T(fe,ct,Ce,ze)}case er:{var bt=Z.get(Ce.key===null?J:Ce.key)||null;return D(fe,bt,Ce,ze)}case Me:var wn=Ce._payload,rn=Ce._init;return ne(Z,fe,J,rn(wn),ze)}if(sn(Ce)||ta(Ce)){var nr=Z.get(J)||null;return O(fe,nr,Ce,ze,null)}Xp(fe,Ce)}return typeof Ce=="function"&&Kp(fe),null}function ie(Z,fe,J){{if(typeof Z!="object"||Z===null)return fe;switch(Z.$$typeof){case jn:case er:nR(Z,J);var Ce=Z.key;if(typeof Ce!="string")break;if(fe===null){fe=new Set,fe.add(Ce);break}if(!fe.has(Ce)){fe.add(Ce);break}c("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.",Ce);break;case Me:var ze=Z._payload,Pe=Z._init;ie(Pe(ze),fe,J);break}}return fe}function de(Z,fe,J,Ce){for(var ze=null,Pe=0;Pe<J.length;Pe++){var ct=J[Pe];ze=ie(ct,ze,Z)}for(var bt=null,wn=null,rn=fe,nr=0,an=0,Qn=null;rn!==null&&an<J.length;an++){rn.index>an?(Qn=rn,rn=null):Qn=rn.sibling;var Xr=B(Z,rn,J[an],Ce);if(Xr===null){rn===null&&(rn=Qn);break}n&&rn&&Xr.alternate===null&&r(Z,rn),nr=p(Xr,nr,an),wn===null?bt=Xr:wn.sibling=Xr,wn=Xr,rn=Qn}if(an===J.length){if(o(Z,rn),Ar()){var $r=an;gl(Z,$r)}return bt}if(rn===null){for(;an<J.length;an++){var La=H(Z,J[an],Ce);La!==null&&(nr=p(La,nr,an),wn===null?bt=La:wn.sibling=La,wn=La)}if(Ar()){var sa=an;gl(Z,sa)}return bt}for(var la=l(Z,rn);an<J.length;an++){var Kr=ne(la,Z,an,J[an],Ce);Kr!==null&&(n&&Kr.alternate!==null&&la.delete(Kr.key===null?an:Kr.key),nr=p(Kr,nr,an),wn===null?bt=Kr:wn.sibling=Kr,wn=Kr)}if(n&&la.forEach(function(Zc){return r(Z,Zc)}),Ar()){var Vo=an;gl(Z,Vo)}return bt}function Ne(Z,fe,J,Ce){var ze=ta(J);if(typeof ze!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&J[Symbol.toStringTag]==="Generator"&&(Pb||c("Using Generators 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. Keep in mind you might need to polyfill these features for older browsers."),Pb=!0),J.entries===ze&&(Nb||c("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Nb=!0);var Pe=ze.call(J);if(Pe)for(var ct=null,bt=Pe.next();!bt.done;bt=Pe.next()){var wn=bt.value;ct=ie(wn,ct,Z)}}var rn=ze.call(J);if(rn==null)throw new Error("An iterable object provided no iterator.");for(var nr=null,an=null,Qn=fe,Xr=0,$r=0,La=null,sa=rn.next();Qn!==null&&!sa.done;$r++,sa=rn.next()){Qn.index>$r?(La=Qn,Qn=null):La=Qn.sibling;var la=B(Z,Qn,sa.value,Ce);if(la===null){Qn===null&&(Qn=La);break}n&&Qn&&la.alternate===null&&r(Z,Qn),Xr=p(la,Xr,$r),an===null?nr=la:an.sibling=la,an=la,Qn=La}if(sa.done){if(o(Z,Qn),Ar()){var Kr=$r;gl(Z,Kr)}return nr}if(Qn===null){for(;!sa.done;$r++,sa=rn.next()){var Vo=H(Z,sa.value,Ce);Vo!==null&&(Xr=p(Vo,Xr,$r),an===null?nr=Vo:an.sibling=Vo,an=Vo)}if(Ar()){var Zc=$r;gl(Z,Zc)}return nr}for(var Nf=l(Z,Qn);!sa.done;$r++,sa=rn.next()){var Ki=ne(Nf,Z,$r,sa.value,Ce);Ki!==null&&(n&&Ki.alternate!==null&&Nf.delete(Ki.key===null?$r:Ki.key),Xr=p(Ki,Xr,$r),an===null?nr=Ki:an.sibling=Ki,an=Ki)}if(n&&Nf.forEach(function(r3){return r(Z,r3)}),Ar()){var n3=$r;gl(Z,n3)}return nr}function Ke(Z,fe,J,Ce){if(fe!==null&&fe.tag===R){o(Z,fe.sibling);var ze=d(fe,J);return ze.return=Z,ze}o(Z,fe);var Pe=MS(J,Z.mode,Ce);return Pe.return=Z,Pe}function qe(Z,fe,J,Ce){for(var ze=J.key,Pe=fe;Pe!==null;){if(Pe.key===ze){var ct=J.type;if(ct===z){if(Pe.tag===E){o(Z,Pe.sibling);var bt=d(Pe,J.props.children);return bt.return=Z,bt._debugSource=J._source,bt._debugOwner=J._owner,bt}}else if(Pe.elementType===ct||cD(Pe,J)||typeof ct=="object"&&ct!==null&&ct.$$typeof===Me&&rR(ct)===Pe.type){o(Z,Pe.sibling);var wn=d(Pe,J.props);return wn.ref=ef(Z,Pe,J),wn.return=Z,wn._debugSource=J._source,wn._debugOwner=J._owner,wn}o(Z,Pe);break}else r(Z,Pe);Pe=Pe.sibling}if(J.type===z){var rn=As(J.props.children,Z.mode,Ce,J.key);return rn.return=Z,rn}else{var nr=OS(J,Z.mode,Ce);return nr.ref=ef(Z,fe,J),nr.return=Z,nr}}function Wt(Z,fe,J,Ce){for(var ze=J.key,Pe=fe;Pe!==null;){if(Pe.key===ze)if(Pe.tag===S&&Pe.stateNode.containerInfo===J.containerInfo&&Pe.stateNode.implementation===J.implementation){o(Z,Pe.sibling);var ct=d(Pe,J.children||[]);return ct.return=Z,ct}else{o(Z,Pe);break}else r(Z,Pe);Pe=Pe.sibling}var bt=NS(J,Z.mode,Ce);return bt.return=Z,bt}function zt(Z,fe,J,Ce){var ze=typeof J=="object"&&J!==null&&J.type===z&&J.key===null;if(ze&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case jn:return g(qe(Z,fe,J,Ce));case er:return g(Wt(Z,fe,J,Ce));case Me:var Pe=J._payload,ct=J._init;return zt(Z,fe,ct(Pe),Ce)}if(sn(J))return de(Z,fe,J,Ce);if(ta(J))return Ne(Z,fe,J,Ce);Xp(Z,J)}return typeof J=="string"&&J!==""||typeof J=="number"?g(Ke(Z,fe,""+J,Ce)):(typeof J=="function"&&Kp(Z),o(Z,fe))}return zt}var Pc=aR(!0),iR=aR(!1);function MI(n,r){if(n!==null&&r.child!==n.child)throw new Error("Resuming work not yet implemented.");if(r.child!==null){var o=r.child,l=Al(o,o.pendingProps);for(r.child=l,l.return=r;o.sibling!==null;)o=o.sibling,l=l.sibling=Al(o,o.pendingProps),l.return=r;l.sibling=null}}function NI(n,r){for(var o=n.child;o!==null;)SU(o,r),o=o.sibling}var zb=vs(null),Fb;Fb={};var Qp=null,jc=null,Ib=null,Zp=!1;function Jp(){Qp=null,jc=null,Ib=null,Zp=!1}function oR(){Zp=!0}function sR(){Zp=!1}function lR(n,r,o){qr(zb,r._currentValue,n),r._currentValue=o,r._currentRenderer!==void 0&&r._currentRenderer!==null&&r._currentRenderer!==Fb&&c("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),r._currentRenderer=Fb}function Vb(n,r){var o=zb.current;Yr(zb,r),n._currentValue=o}function Bb(n,r,o){for(var l=n;l!==null;){var d=l.alternate;if(bc(l.childLanes,r)?d!==null&&!bc(d.childLanes,r)&&(d.childLanes=_t(d.childLanes,r)):(l.childLanes=_t(l.childLanes,r),d!==null&&(d.childLanes=_t(d.childLanes,r))),l===o)break;l=l.return}l!==o&&c("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 PI(n,r,o){jI(n,r,o)}function jI(n,r,o){var l=n.child;for(l!==null&&(l.return=n);l!==null;){var d=void 0,p=l.dependencies;if(p!==null){d=l.child;for(var g=p.firstContext;g!==null;){if(g.context===r){if(l.tag===m){var b=yd(o),T=jo(On,b);T.tag=tm;var D=l.updateQueue;if(D!==null){var O=D.shared,H=O.pending;H===null?T.next=T:(T.next=H.next,H.next=T),O.pending=T}}l.lanes=_t(l.lanes,o);var B=l.alternate;B!==null&&(B.lanes=_t(B.lanes,o)),Bb(l.return,o,n),p.lanes=_t(p.lanes,o);break}g=g.next}}else if(l.tag===_)d=l.type===n.type?null:l.child;else if(l.tag===ae){var ne=l.return;if(ne===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ne.lanes=_t(ne.lanes,o);var ie=ne.alternate;ie!==null&&(ie.lanes=_t(ie.lanes,o)),Bb(ne,o,n),d=l.sibling}else d=l.child;if(d!==null)d.return=l;else for(d=l;d!==null;){if(d===n){d=null;break}var de=d.sibling;if(de!==null){de.return=d.return,d=de;break}d=d.return}l=d}}function Lc(n,r){Qp=n,jc=null,Ib=null;var o=n.dependencies;if(o!==null){var l=o.firstContext;l!==null&&(Aa(o.lanes,r)&&vf(),o.firstContext=null)}}function cr(n){Zp&&c("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().");var r=n._currentValue;if(Ib!==n){var o={context:n,memoizedValue:r,next:null};if(jc===null){if(Qp===null)throw new 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().");jc=o,Qp.dependencies={lanes:Se,firstContext:o}}else jc=jc.next=o}return r}var wl=null;function Ub(n){wl===null?wl=[n]:wl.push(n)}function LI(){if(wl!==null){for(var n=0;n<wl.length;n++){var r=wl[n],o=r.interleaved;if(o!==null){r.interleaved=null;var l=o.next,d=r.pending;if(d!==null){var p=d.next;d.next=l,o.next=p}r.pending=o}}wl=null}}function cR(n,r,o,l){var d=r.interleaved;return d===null?(o.next=o,Ub(r)):(o.next=d.next,d.next=o),r.interleaved=o,em(n,l)}function $I(n,r,o,l){var d=r.interleaved;d===null?(o.next=o,Ub(r)):(o.next=d.next,d.next=o),r.interleaved=o}function zI(n,r,o,l){var d=r.interleaved;return d===null?(o.next=o,Ub(r)):(o.next=d.next,d.next=o),r.interleaved=o,em(n,l)}function ya(n,r){return em(n,r)}var FI=em;function em(n,r){n.lanes=_t(n.lanes,r);var o=n.alternate;o!==null&&(o.lanes=_t(o.lanes,r)),o===null&&(n.flags&(lr|To))!==rt&&iD(n);for(var l=n,d=n.return;d!==null;)d.childLanes=_t(d.childLanes,r),o=d.alternate,o!==null?o.childLanes=_t(o.childLanes,r):(d.flags&(lr|To))!==rt&&iD(n),l=d,d=d.return;if(l.tag===y){var p=l.stateNode;return p}else return null}var uR=0,dR=1,tm=2,Hb=3,nm=!1,Wb,rm;Wb=!1,rm=null;function Yb(n){var r={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Se},effects:null};n.updateQueue=r}function fR(n,r){var o=r.updateQueue,l=n.updateQueue;if(o===l){var d={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,effects:l.effects};r.updateQueue=d}}function jo(n,r){var o={eventTime:n,lane:r,tag:uR,payload:null,callback:null,next:null};return o}function Ss(n,r,o){var l=n.updateQueue;if(l===null)return null;var d=l.shared;if(rm===d&&!Wb&&(c("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."),Wb=!0),$B()){var p=d.pending;return p===null?r.next=r:(r.next=p.next,p.next=r),d.pending=r,FI(n,o)}else return zI(n,d,r,o)}function am(n,r,o){var l=r.updateQueue;if(l!==null){var d=l.shared;if(EE(o)){var p=d.lanes;p=kE(p,n.pendingLanes);var g=_t(p,o);d.lanes=g,zy(n,g)}}}function qb(n,r){var o=n.updateQueue,l=n.alternate;if(l!==null){var d=l.updateQueue;if(o===d){var p=null,g=null,b=o.firstBaseUpdate;if(b!==null){var T=b;do{var D={eventTime:T.eventTime,lane:T.lane,tag:T.tag,payload:T.payload,callback:T.callback,next:null};g===null?p=g=D:(g.next=D,g=D),T=T.next}while(T!==null);g===null?p=g=r:(g.next=r,g=r)}else p=g=r;o={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:d.shared,effects:d.effects},n.updateQueue=o;return}}var O=o.lastBaseUpdate;O===null?o.firstBaseUpdate=r:O.next=r,o.lastBaseUpdate=r}function II(n,r,o,l,d,p){switch(o.tag){case dR:{var g=o.payload;if(typeof g=="function"){oR();var b=g.call(p,l,d);{if(n.mode&Kn){Tr(!0);try{g.call(p,l,d)}finally{Tr(!1)}}sR()}return b}return g}case Hb:n.flags=n.flags&~ra|ln;case uR:{var T=o.payload,D;if(typeof T=="function"){oR(),D=T.call(p,l,d);{if(n.mode&Kn){Tr(!0);try{T.call(p,l,d)}finally{Tr(!1)}}sR()}}else D=T;return D==null?l:wt({},l,D)}case tm:return nm=!0,l}return l}function im(n,r,o,l){var d=n.updateQueue;nm=!1,rm=d.shared;var p=d.firstBaseUpdate,g=d.lastBaseUpdate,b=d.shared.pending;if(b!==null){d.shared.pending=null;var T=b,D=T.next;T.next=null,g===null?p=D:g.next=D,g=T;var O=n.alternate;if(O!==null){var H=O.updateQueue,B=H.lastBaseUpdate;B!==g&&(B===null?H.firstBaseUpdate=D:B.next=D,H.lastBaseUpdate=T)}}if(p!==null){var ne=d.baseState,ie=Se,de=null,Ne=null,Ke=null,qe=p;do{var Wt=qe.lane,zt=qe.eventTime;if(bc(l,Wt)){if(Ke!==null){var fe={eventTime:zt,lane:Er,tag:qe.tag,payload:qe.payload,callback:qe.callback,next:null};Ke=Ke.next=fe}ne=II(n,d,qe,ne,r,o);var J=qe.callback;if(J!==null&&qe.lane!==Er){n.flags|=iy;var Ce=d.effects;Ce===null?d.effects=[qe]:Ce.push(qe)}}else{var Z={eventTime:zt,lane:Wt,tag:qe.tag,payload:qe.payload,callback:qe.callback,next:null};Ke===null?(Ne=Ke=Z,de=ne):Ke=Ke.next=Z,ie=_t(ie,Wt)}if(qe=qe.next,qe===null){if(b=d.shared.pending,b===null)break;var ze=b,Pe=ze.next;ze.next=null,qe=Pe,d.lastBaseUpdate=ze,d.shared.pending=null}}while(!0);Ke===null&&(de=ne),d.baseState=de,d.firstBaseUpdate=Ne,d.lastBaseUpdate=Ke;var ct=d.shared.interleaved;if(ct!==null){var bt=ct;do ie=_t(ie,bt.lane),bt=bt.next;while(bt!==ct)}else p===null&&(d.shared.lanes=Se);Df(ie),n.lanes=ie,n.memoizedState=ne}rm=null}function VI(n,r){if(typeof n!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+n));n.call(r)}function hR(){nm=!1}function om(){return nm}function pR(n,r,o){var l=r.effects;if(r.effects=null,l!==null)for(var d=0;d<l.length;d++){var p=l[d],g=p.callback;g!==null&&(p.callback=null,VI(g,o))}}var tf={},xs=vs(tf),nf=vs(tf),sm=vs(tf);function lm(n){if(n===tf)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return n}function mR(){var n=lm(sm.current);return n}function Gb(n,r){qr(sm,r,n),qr(nf,n,n),qr(xs,tf,n);var o=a5(r);Yr(xs,n),qr(xs,o,n)}function $c(n){Yr(xs,n),Yr(nf,n),Yr(sm,n)}function Xb(){var n=lm(xs.current);return n}function vR(n){lm(sm.current);var r=lm(xs.current),o=i5(r,n.type);r!==o&&(qr(nf,n,n),qr(xs,o,n))}function Kb(n){nf.current===n&&(Yr(xs,n),Yr(nf,n))}var BI=0,gR=1,yR=1,rf=2,bi=vs(BI);function Qb(n,r){return(n&r)!==0}function zc(n){return n&gR}function Zb(n,r){return n&gR|r}function UI(n,r){return n|r}function ws(n,r){qr(bi,r,n)}function Fc(n){Yr(bi,n)}function HI(n,r){var o=n.memoizedState;return o!==null?o.dehydrated!==null:(n.memoizedProps,!0)}function cm(n){for(var r=n;r!==null;){if(r.tag===L){var o=r.memoizedState;if(o!==null){var l=o.dehydrated;if(l===null||j1(l)||vb(l))return r}}else if(r.tag===ue&&r.memoizedProps.revealOrder!==void 0){var d=(r.flags&ln)!==rt;if(d)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)return null;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var ba=0,hr=1,Ui=2,pr=4,Or=8,Jb=[];function e0(){for(var n=0;n<Jb.length;n++){var r=Jb[n];r._workInProgressVersionPrimary=null}Jb.length=0}function WI(n,r){var o=r._getVersion,l=o(r._source);n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[r,l]:n.mutableSourceEagerHydrationData.push(r,l)}var $e=a.ReactCurrentDispatcher,af=a.ReactCurrentBatchConfig,t0,Ic;t0=new Set;var Cl=Se,xn=null,mr=null,vr=null,um=!1,of=!1,sf=0,YI=0,qI=25,me=null,Ga=null,Cs=-1,n0=!1;function un(){{var n=me;Ga===null?Ga=[n]:Ga.push(n)}}function Oe(){{var n=me;Ga!==null&&(Cs++,Ga[Cs]!==n&&GI(n))}}function Vc(n){n!=null&&!sn(n)&&c("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",me,typeof n)}function GI(n){{var r=xt(xn);if(!t0.has(r)&&(t0.add(r),Ga!==null)){for(var o="",l=30,d=0;d<=Cs;d++){for(var p=Ga[d],g=d===Cs?n:p,b=d+1+". "+p;b.length<l;)b+=" ";b+=g+`
131
- `,o+=b}c(`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://reactjs.org/link/rules-of-hooks
132
-
133
- Previous render Next render
134
- ------------------------------------------------------
135
- %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
136
- `,r,o)}}}function Gr(){throw new 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:
137
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
138
- 2. You might be breaking the Rules of Hooks
139
- 3. You might have more than one copy of React in the same app
140
- See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function r0(n,r){if(n0)return!1;if(r===null)return c("%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.",me),!1;n.length!==r.length&&c(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
141
-
142
- Previous: %s
143
- Incoming: %s`,me,"["+r.join(", ")+"]","["+n.join(", ")+"]");for(var o=0;o<r.length&&o<n.length;o++)if(!Na(n[o],r[o]))return!1;return!0}function Bc(n,r,o,l,d,p){Cl=p,xn=r,Ga=n!==null?n._debugHookTypes:null,Cs=-1,n0=n!==null&&n.type!==r.type,r.memoizedState=null,r.updateQueue=null,r.lanes=Se,n!==null&&n.memoizedState!==null?$e.current=IR:Ga!==null?$e.current=FR:$e.current=zR;var g=o(l,d);if(of){var b=0;do{if(of=!1,sf=0,b>=qI)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");b+=1,n0=!1,mr=null,vr=null,r.updateQueue=null,Cs=-1,$e.current=VR,g=o(l,d)}while(of)}$e.current=Cm,r._debugHookTypes=Ga;var T=mr!==null&&mr.next!==null;if(Cl=Se,xn=null,mr=null,vr=null,me=null,Ga=null,Cs=-1,n!==null&&(n.flags&Ro)!==(r.flags&Ro)&&(n.mode&Ut)!==Ze&&c("Internal React error: Expected static flag was missing. Please notify the React team."),um=!1,T)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return g}function Uc(){var n=sf!==0;return sf=0,n}function bR(n,r,o){r.updateQueue=n.updateQueue,(r.mode&Fi)!==Ze?r.flags&=~(ap|Eo|fi|Xt):r.flags&=~(fi|Xt),n.lanes=dp(n.lanes,o)}function SR(){if($e.current=Cm,um){for(var n=xn.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}um=!1}Cl=Se,xn=null,mr=null,vr=null,Ga=null,Cs=-1,me=null,NR=!1,of=!1,sf=0}function Hi(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vr===null?xn.memoizedState=vr=n:vr=vr.next=n,vr}function Xa(){var n;if(mr===null){var r=xn.alternate;r!==null?n=r.memoizedState:n=null}else n=mr.next;var o;if(vr===null?o=xn.memoizedState:o=vr.next,o!==null)vr=o,o=vr.next,mr=n;else{if(n===null)throw new Error("Rendered more hooks than during the previous render.");mr=n;var l={memoizedState:mr.memoizedState,baseState:mr.baseState,baseQueue:mr.baseQueue,queue:mr.queue,next:null};vr===null?xn.memoizedState=vr=l:vr=vr.next=l}return vr}function xR(){return{lastEffect:null,stores:null}}function a0(n,r){return typeof r=="function"?r(n):r}function i0(n,r,o){var l=Hi(),d;o!==void 0?d=o(r):d=r,l.memoizedState=l.baseState=d;var p={pending:null,interleaved:null,lanes:Se,dispatch:null,lastRenderedReducer:n,lastRenderedState:d};l.queue=p;var g=p.dispatch=ZI.bind(null,xn,p);return[l.memoizedState,g]}function o0(n,r,o){var l=Xa(),d=l.queue;if(d===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");d.lastRenderedReducer=n;var p=mr,g=p.baseQueue,b=d.pending;if(b!==null){if(g!==null){var T=g.next,D=b.next;g.next=D,b.next=T}p.baseQueue!==g&&c("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),p.baseQueue=g=b,d.pending=null}if(g!==null){var O=g.next,H=p.baseState,B=null,ne=null,ie=null,de=O;do{var Ne=de.lane;if(bc(Cl,Ne)){if(ie!==null){var qe={lane:Er,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null};ie=ie.next=qe}if(de.hasEagerState)H=de.eagerState;else{var Wt=de.action;H=n(H,Wt)}}else{var Ke={lane:Ne,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null};ie===null?(ne=ie=Ke,B=H):ie=ie.next=Ke,xn.lanes=_t(xn.lanes,Ne),Df(Ne)}de=de.next}while(de!==null&&de!==O);ie===null?B=H:ie.next=ne,Na(H,l.memoizedState)||vf(),l.memoizedState=H,l.baseState=B,l.baseQueue=ie,d.lastRenderedState=H}var zt=d.interleaved;if(zt!==null){var Z=zt;do{var fe=Z.lane;xn.lanes=_t(xn.lanes,fe),Df(fe),Z=Z.next}while(Z!==zt)}else g===null&&(d.lanes=Se);var J=d.dispatch;return[l.memoizedState,J]}function s0(n,r,o){var l=Xa(),d=l.queue;if(d===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");d.lastRenderedReducer=n;var p=d.dispatch,g=d.pending,b=l.memoizedState;if(g!==null){d.pending=null;var T=g.next,D=T;do{var O=D.action;b=n(b,O),D=D.next}while(D!==T);Na(b,l.memoizedState)||vf(),l.memoizedState=b,l.baseQueue===null&&(l.baseState=b),d.lastRenderedState=b}return[b,p]}function Toe(n,r,o){}function Eoe(n,r,o){}function l0(n,r,o){var l=xn,d=Hi(),p,g=Ar();if(g){if(o===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");p=o(),Ic||p!==o()&&(c("The result of getServerSnapshot should be cached to avoid an infinite loop"),Ic=!0)}else{if(p=r(),!Ic){var b=r();Na(p,b)||(c("The result of getSnapshot should be cached to avoid an infinite loop"),Ic=!0)}var T=Bm();if(T===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");up(T,Cl)||wR(l,r,p)}d.memoizedState=p;var D={value:p,getSnapshot:r};return d.queue=D,mm(TR.bind(null,l,D,n),[n]),l.flags|=fi,lf(hr|Or,CR.bind(null,l,D,p,r),void 0,null),p}function dm(n,r,o){var l=xn,d=Xa(),p=r();if(!Ic){var g=r();Na(p,g)||(c("The result of getSnapshot should be cached to avoid an infinite loop"),Ic=!0)}var b=d.memoizedState,T=!Na(b,p);T&&(d.memoizedState=p,vf());var D=d.queue;if(uf(TR.bind(null,l,D,n),[n]),D.getSnapshot!==r||T||vr!==null&&vr.memoizedState.tag&hr){l.flags|=fi,lf(hr|Or,CR.bind(null,l,D,p,r),void 0,null);var O=Bm();if(O===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");up(O,Cl)||wR(l,r,p)}return p}function wR(n,r,o){n.flags|=rp;var l={getSnapshot:r,value:o},d=xn.updateQueue;if(d===null)d=xR(),xn.updateQueue=d,d.stores=[l];else{var p=d.stores;p===null?d.stores=[l]:p.push(l)}}function CR(n,r,o,l){r.value=o,r.getSnapshot=l,ER(r)&&RR(n)}function TR(n,r,o){var l=function(){ER(r)&&RR(n)};return o(l)}function ER(n){var r=n.getSnapshot,o=n.value;try{var l=r();return!Na(o,l)}catch{return!0}}function RR(n){var r=ya(n,gt);r!==null&&Sr(r,n,gt,On)}function fm(n){var r=Hi();typeof n=="function"&&(n=n()),r.memoizedState=r.baseState=n;var o={pending:null,interleaved:null,lanes:Se,dispatch:null,lastRenderedReducer:a0,lastRenderedState:n};r.queue=o;var l=o.dispatch=JI.bind(null,xn,o);return[r.memoizedState,l]}function c0(n){return o0(a0)}function u0(n){return s0(a0)}function lf(n,r,o,l){var d={tag:n,create:r,destroy:o,deps:l,next:null},p=xn.updateQueue;if(p===null)p=xR(),xn.updateQueue=p,p.lastEffect=d.next=d;else{var g=p.lastEffect;if(g===null)p.lastEffect=d.next=d;else{var b=g.next;g.next=d,d.next=b,p.lastEffect=d}}return d}function d0(n){var r=Hi();{var o={current:n};return r.memoizedState=o,o}}function hm(n){var r=Xa();return r.memoizedState}function cf(n,r,o,l){var d=Hi(),p=l===void 0?null:l;xn.flags|=n,d.memoizedState=lf(hr|r,o,void 0,p)}function pm(n,r,o,l){var d=Xa(),p=l===void 0?null:l,g=void 0;if(mr!==null){var b=mr.memoizedState;if(g=b.destroy,p!==null){var T=b.deps;if(r0(p,T)){d.memoizedState=lf(r,o,g,p);return}}}xn.flags|=n,d.memoizedState=lf(hr|r,o,g,p)}function mm(n,r){return(xn.mode&Fi)!==Ze?cf(ap|fi|ly,Or,n,r):cf(fi|ly,Or,n,r)}function uf(n,r){return pm(fi,Or,n,r)}function f0(n,r){return cf(Xt,Ui,n,r)}function vm(n,r){return pm(Xt,Ui,n,r)}function h0(n,r){var o=Xt;return o|=ol,(xn.mode&Fi)!==Ze&&(o|=Eo),cf(o,pr,n,r)}function gm(n,r){return pm(Xt,pr,n,r)}function kR(n,r){if(typeof r=="function"){var o=r,l=n();return o(l),function(){o(null)}}else if(r!=null){var d=r;d.hasOwnProperty("current")||c("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(d).join(", ")+"}");var p=n();return d.current=p,function(){d.current=null}}}function p0(n,r,o){typeof r!="function"&&c("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",r!==null?typeof r:"null");var l=o!=null?o.concat([n]):null,d=Xt;return d|=ol,(xn.mode&Fi)!==Ze&&(d|=Eo),cf(d,pr,kR.bind(null,r,n),l)}function ym(n,r,o){typeof r!="function"&&c("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",r!==null?typeof r:"null");var l=o!=null?o.concat([n]):null;return pm(Xt,pr,kR.bind(null,r,n),l)}function XI(n,r){}var bm=XI;function m0(n,r){var o=Hi(),l=r===void 0?null:r;return o.memoizedState=[n,l],n}function Sm(n,r){var o=Xa(),l=r===void 0?null:r,d=o.memoizedState;if(d!==null&&l!==null){var p=d[1];if(r0(l,p))return d[0]}return o.memoizedState=[n,l],n}function v0(n,r){var o=Hi(),l=r===void 0?null:r,d=n();return o.memoizedState=[d,l],d}function xm(n,r){var o=Xa(),l=r===void 0?null:r,d=o.memoizedState;if(d!==null&&l!==null){var p=d[1];if(r0(l,p))return d[0]}var g=n();return o.memoizedState=[g,l],g}function g0(n){var r=Hi();return r.memoizedState=n,n}function DR(n){var r=Xa(),o=mr,l=o.memoizedState;return AR(r,l,n)}function _R(n){var r=Xa();if(mr===null)return r.memoizedState=n,n;var o=mr.memoizedState;return AR(r,o,n)}function AR(n,r,o){var l=!P$(Cl);if(l){if(!Na(o,r)){var d=RE();xn.lanes=_t(xn.lanes,d),Df(d),n.baseState=!0}return r}else return n.baseState&&(n.baseState=!1,vf()),n.memoizedState=o,o}function KI(n,r,o){var l=pi();Rr(U$(l,Do)),n(!0);var d=af.transition;af.transition={};var p=af.transition;af.transition._updatedFibers=new Set;try{n(!1),r()}finally{if(Rr(l),af.transition=d,d===null&&p._updatedFibers){var g=p._updatedFibers.size;g>10&&u("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."),p._updatedFibers.clear()}}}function y0(){var n=fm(!1),r=n[0],o=n[1],l=KI.bind(null,o),d=Hi();return d.memoizedState=l,[r,l]}function OR(){var n=c0(),r=n[0],o=Xa(),l=o.memoizedState;return[r,l]}function MR(){var n=u0(),r=n[0],o=Xa(),l=o.memoizedState;return[r,l]}var NR=!1;function QI(){return NR}function b0(){var n=Hi(),r=Bm(),o=r.identifierPrefix,l;if(Ar()){var d=pI();l=":"+o+"R"+d;var p=sf++;p>0&&(l+="H"+p.toString(32)),l+=":"}else{var g=YI++;l=":"+o+"r"+g.toString(32)+":"}return n.memoizedState=l,l}function wm(){var n=Xa(),r=n.memoizedState;return r}function ZI(n,r,o){typeof arguments[3]=="function"&&c("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().");var l=Ds(n),d={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null};if(PR(n))jR(r,d);else{var p=cR(n,r,d,l);if(p!==null){var g=oa();Sr(p,n,l,g),LR(p,r,l)}}$R(n,l)}function JI(n,r,o){typeof arguments[3]=="function"&&c("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().");var l=Ds(n),d={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null};if(PR(n))jR(r,d);else{var p=n.alternate;if(n.lanes===Se&&(p===null||p.lanes===Se)){var g=r.lastRenderedReducer;if(g!==null){var b;b=$e.current,$e.current=Si;try{var T=r.lastRenderedState,D=g(T,o);if(d.hasEagerState=!0,d.eagerState=D,Na(D,T)){$I(n,r,d,l);return}}catch{}finally{$e.current=b}}}var O=cR(n,r,d,l);if(O!==null){var H=oa();Sr(O,n,l,H),LR(O,r,l)}}$R(n,l)}function PR(n){var r=n.alternate;return n===xn||r!==null&&r===xn}function jR(n,r){of=um=!0;var o=n.pending;o===null?r.next=r:(r.next=o.next,o.next=r),n.pending=r}function LR(n,r,o){if(EE(o)){var l=r.lanes;l=kE(l,n.pendingLanes);var d=_t(l,o);r.lanes=d,zy(n,d)}}function $R(n,r,o){hy(n,r)}var Cm={readContext:cr,useCallback:Gr,useContext:Gr,useEffect:Gr,useImperativeHandle:Gr,useInsertionEffect:Gr,useLayoutEffect:Gr,useMemo:Gr,useReducer:Gr,useRef:Gr,useState:Gr,useDebugValue:Gr,useDeferredValue:Gr,useTransition:Gr,useMutableSource:Gr,useSyncExternalStore:Gr,useId:Gr,unstable_isNewReconciler:X},zR=null,FR=null,IR=null,VR=null,Wi=null,Si=null,Tm=null;{var S0=function(){c("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().")},yt=function(){c("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://reactjs.org/link/rules-of-hooks")};zR={readContext:function(n){return cr(n)},useCallback:function(n,r){return me="useCallback",un(),Vc(r),m0(n,r)},useContext:function(n){return me="useContext",un(),cr(n)},useEffect:function(n,r){return me="useEffect",un(),Vc(r),mm(n,r)},useImperativeHandle:function(n,r,o){return me="useImperativeHandle",un(),Vc(o),p0(n,r,o)},useInsertionEffect:function(n,r){return me="useInsertionEffect",un(),Vc(r),f0(n,r)},useLayoutEffect:function(n,r){return me="useLayoutEffect",un(),Vc(r),h0(n,r)},useMemo:function(n,r){me="useMemo",un(),Vc(r);var o=$e.current;$e.current=Wi;try{return v0(n,r)}finally{$e.current=o}},useReducer:function(n,r,o){me="useReducer",un();var l=$e.current;$e.current=Wi;try{return i0(n,r,o)}finally{$e.current=l}},useRef:function(n){return me="useRef",un(),d0(n)},useState:function(n){me="useState",un();var r=$e.current;$e.current=Wi;try{return fm(n)}finally{$e.current=r}},useDebugValue:function(n,r){return me="useDebugValue",un(),void 0},useDeferredValue:function(n){return me="useDeferredValue",un(),g0(n)},useTransition:function(){return me="useTransition",un(),y0()},useMutableSource:function(n,r,o){return me="useMutableSource",un(),void 0},useSyncExternalStore:function(n,r,o){return me="useSyncExternalStore",un(),l0(n,r,o)},useId:function(){return me="useId",un(),b0()},unstable_isNewReconciler:X},FR={readContext:function(n){return cr(n)},useCallback:function(n,r){return me="useCallback",Oe(),m0(n,r)},useContext:function(n){return me="useContext",Oe(),cr(n)},useEffect:function(n,r){return me="useEffect",Oe(),mm(n,r)},useImperativeHandle:function(n,r,o){return me="useImperativeHandle",Oe(),p0(n,r,o)},useInsertionEffect:function(n,r){return me="useInsertionEffect",Oe(),f0(n,r)},useLayoutEffect:function(n,r){return me="useLayoutEffect",Oe(),h0(n,r)},useMemo:function(n,r){me="useMemo",Oe();var o=$e.current;$e.current=Wi;try{return v0(n,r)}finally{$e.current=o}},useReducer:function(n,r,o){me="useReducer",Oe();var l=$e.current;$e.current=Wi;try{return i0(n,r,o)}finally{$e.current=l}},useRef:function(n){return me="useRef",Oe(),d0(n)},useState:function(n){me="useState",Oe();var r=$e.current;$e.current=Wi;try{return fm(n)}finally{$e.current=r}},useDebugValue:function(n,r){return me="useDebugValue",Oe(),void 0},useDeferredValue:function(n){return me="useDeferredValue",Oe(),g0(n)},useTransition:function(){return me="useTransition",Oe(),y0()},useMutableSource:function(n,r,o){return me="useMutableSource",Oe(),void 0},useSyncExternalStore:function(n,r,o){return me="useSyncExternalStore",Oe(),l0(n,r,o)},useId:function(){return me="useId",Oe(),b0()},unstable_isNewReconciler:X},IR={readContext:function(n){return cr(n)},useCallback:function(n,r){return me="useCallback",Oe(),Sm(n,r)},useContext:function(n){return me="useContext",Oe(),cr(n)},useEffect:function(n,r){return me="useEffect",Oe(),uf(n,r)},useImperativeHandle:function(n,r,o){return me="useImperativeHandle",Oe(),ym(n,r,o)},useInsertionEffect:function(n,r){return me="useInsertionEffect",Oe(),vm(n,r)},useLayoutEffect:function(n,r){return me="useLayoutEffect",Oe(),gm(n,r)},useMemo:function(n,r){me="useMemo",Oe();var o=$e.current;$e.current=Si;try{return xm(n,r)}finally{$e.current=o}},useReducer:function(n,r,o){me="useReducer",Oe();var l=$e.current;$e.current=Si;try{return o0(n,r,o)}finally{$e.current=l}},useRef:function(n){return me="useRef",Oe(),hm()},useState:function(n){me="useState",Oe();var r=$e.current;$e.current=Si;try{return c0(n)}finally{$e.current=r}},useDebugValue:function(n,r){return me="useDebugValue",Oe(),bm()},useDeferredValue:function(n){return me="useDeferredValue",Oe(),DR(n)},useTransition:function(){return me="useTransition",Oe(),OR()},useMutableSource:function(n,r,o){return me="useMutableSource",Oe(),void 0},useSyncExternalStore:function(n,r,o){return me="useSyncExternalStore",Oe(),dm(n,r)},useId:function(){return me="useId",Oe(),wm()},unstable_isNewReconciler:X},VR={readContext:function(n){return cr(n)},useCallback:function(n,r){return me="useCallback",Oe(),Sm(n,r)},useContext:function(n){return me="useContext",Oe(),cr(n)},useEffect:function(n,r){return me="useEffect",Oe(),uf(n,r)},useImperativeHandle:function(n,r,o){return me="useImperativeHandle",Oe(),ym(n,r,o)},useInsertionEffect:function(n,r){return me="useInsertionEffect",Oe(),vm(n,r)},useLayoutEffect:function(n,r){return me="useLayoutEffect",Oe(),gm(n,r)},useMemo:function(n,r){me="useMemo",Oe();var o=$e.current;$e.current=Tm;try{return xm(n,r)}finally{$e.current=o}},useReducer:function(n,r,o){me="useReducer",Oe();var l=$e.current;$e.current=Tm;try{return s0(n,r,o)}finally{$e.current=l}},useRef:function(n){return me="useRef",Oe(),hm()},useState:function(n){me="useState",Oe();var r=$e.current;$e.current=Tm;try{return u0(n)}finally{$e.current=r}},useDebugValue:function(n,r){return me="useDebugValue",Oe(),bm()},useDeferredValue:function(n){return me="useDeferredValue",Oe(),_R(n)},useTransition:function(){return me="useTransition",Oe(),MR()},useMutableSource:function(n,r,o){return me="useMutableSource",Oe(),void 0},useSyncExternalStore:function(n,r,o){return me="useSyncExternalStore",Oe(),dm(n,r)},useId:function(){return me="useId",Oe(),wm()},unstable_isNewReconciler:X},Wi={readContext:function(n){return S0(),cr(n)},useCallback:function(n,r){return me="useCallback",yt(),un(),m0(n,r)},useContext:function(n){return me="useContext",yt(),un(),cr(n)},useEffect:function(n,r){return me="useEffect",yt(),un(),mm(n,r)},useImperativeHandle:function(n,r,o){return me="useImperativeHandle",yt(),un(),p0(n,r,o)},useInsertionEffect:function(n,r){return me="useInsertionEffect",yt(),un(),f0(n,r)},useLayoutEffect:function(n,r){return me="useLayoutEffect",yt(),un(),h0(n,r)},useMemo:function(n,r){me="useMemo",yt(),un();var o=$e.current;$e.current=Wi;try{return v0(n,r)}finally{$e.current=o}},useReducer:function(n,r,o){me="useReducer",yt(),un();var l=$e.current;$e.current=Wi;try{return i0(n,r,o)}finally{$e.current=l}},useRef:function(n){return me="useRef",yt(),un(),d0(n)},useState:function(n){me="useState",yt(),un();var r=$e.current;$e.current=Wi;try{return fm(n)}finally{$e.current=r}},useDebugValue:function(n,r){return me="useDebugValue",yt(),un(),void 0},useDeferredValue:function(n){return me="useDeferredValue",yt(),un(),g0(n)},useTransition:function(){return me="useTransition",yt(),un(),y0()},useMutableSource:function(n,r,o){return me="useMutableSource",yt(),un(),void 0},useSyncExternalStore:function(n,r,o){return me="useSyncExternalStore",yt(),un(),l0(n,r,o)},useId:function(){return me="useId",yt(),un(),b0()},unstable_isNewReconciler:X},Si={readContext:function(n){return S0(),cr(n)},useCallback:function(n,r){return me="useCallback",yt(),Oe(),Sm(n,r)},useContext:function(n){return me="useContext",yt(),Oe(),cr(n)},useEffect:function(n,r){return me="useEffect",yt(),Oe(),uf(n,r)},useImperativeHandle:function(n,r,o){return me="useImperativeHandle",yt(),Oe(),ym(n,r,o)},useInsertionEffect:function(n,r){return me="useInsertionEffect",yt(),Oe(),vm(n,r)},useLayoutEffect:function(n,r){return me="useLayoutEffect",yt(),Oe(),gm(n,r)},useMemo:function(n,r){me="useMemo",yt(),Oe();var o=$e.current;$e.current=Si;try{return xm(n,r)}finally{$e.current=o}},useReducer:function(n,r,o){me="useReducer",yt(),Oe();var l=$e.current;$e.current=Si;try{return o0(n,r,o)}finally{$e.current=l}},useRef:function(n){return me="useRef",yt(),Oe(),hm()},useState:function(n){me="useState",yt(),Oe();var r=$e.current;$e.current=Si;try{return c0(n)}finally{$e.current=r}},useDebugValue:function(n,r){return me="useDebugValue",yt(),Oe(),bm()},useDeferredValue:function(n){return me="useDeferredValue",yt(),Oe(),DR(n)},useTransition:function(){return me="useTransition",yt(),Oe(),OR()},useMutableSource:function(n,r,o){return me="useMutableSource",yt(),Oe(),void 0},useSyncExternalStore:function(n,r,o){return me="useSyncExternalStore",yt(),Oe(),dm(n,r)},useId:function(){return me="useId",yt(),Oe(),wm()},unstable_isNewReconciler:X},Tm={readContext:function(n){return S0(),cr(n)},useCallback:function(n,r){return me="useCallback",yt(),Oe(),Sm(n,r)},useContext:function(n){return me="useContext",yt(),Oe(),cr(n)},useEffect:function(n,r){return me="useEffect",yt(),Oe(),uf(n,r)},useImperativeHandle:function(n,r,o){return me="useImperativeHandle",yt(),Oe(),ym(n,r,o)},useInsertionEffect:function(n,r){return me="useInsertionEffect",yt(),Oe(),vm(n,r)},useLayoutEffect:function(n,r){return me="useLayoutEffect",yt(),Oe(),gm(n,r)},useMemo:function(n,r){me="useMemo",yt(),Oe();var o=$e.current;$e.current=Si;try{return xm(n,r)}finally{$e.current=o}},useReducer:function(n,r,o){me="useReducer",yt(),Oe();var l=$e.current;$e.current=Si;try{return s0(n,r,o)}finally{$e.current=l}},useRef:function(n){return me="useRef",yt(),Oe(),hm()},useState:function(n){me="useState",yt(),Oe();var r=$e.current;$e.current=Si;try{return u0(n)}finally{$e.current=r}},useDebugValue:function(n,r){return me="useDebugValue",yt(),Oe(),bm()},useDeferredValue:function(n){return me="useDeferredValue",yt(),Oe(),_R(n)},useTransition:function(){return me="useTransition",yt(),Oe(),MR()},useMutableSource:function(n,r,o){return me="useMutableSource",yt(),Oe(),void 0},useSyncExternalStore:function(n,r,o){return me="useSyncExternalStore",yt(),Oe(),dm(n,r)},useId:function(){return me="useId",yt(),Oe(),wm()},unstable_isNewReconciler:X}}var Ts=t.unstable_now,BR=0,Em=-1,df=-1,Rm=-1,x0=!1,km=!1;function UR(){return x0}function eV(){km=!0}function tV(){x0=!1,km=!1}function nV(){x0=km,km=!1}function HR(){return BR}function WR(){BR=Ts()}function w0(n){df=Ts(),n.actualStartTime<0&&(n.actualStartTime=Ts())}function YR(n){df=-1}function Dm(n,r){if(df>=0){var o=Ts()-df;n.actualDuration+=o,r&&(n.selfBaseDuration=o),df=-1}}function Yi(n){if(Em>=0){var r=Ts()-Em;Em=-1;for(var o=n.return;o!==null;){switch(o.tag){case y:var l=o.stateNode;l.effectDuration+=r;return;case $:var d=o.stateNode;d.effectDuration+=r;return}o=o.return}}}function C0(n){if(Rm>=0){var r=Ts()-Rm;Rm=-1;for(var o=n.return;o!==null;){switch(o.tag){case y:var l=o.stateNode;l!==null&&(l.passiveEffectDuration+=r);return;case $:var d=o.stateNode;d!==null&&(d.passiveEffectDuration+=r);return}o=o.return}}}function qi(){Em=Ts()}function T0(){Rm=Ts()}function E0(n){for(var r=n.child;r;)n.actualDuration+=r.actualDuration,r=r.sibling}function xi(n,r){if(n&&n.defaultProps){var o=wt({},r),l=n.defaultProps;for(var d in l)o[d]===void 0&&(o[d]=l[d]);return o}return r}var R0={},k0,D0,_0,A0,O0,qR,_m,M0,N0,P0,ff;{k0=new Set,D0=new Set,_0=new Set,A0=new Set,M0=new Set,O0=new Set,N0=new Set,P0=new Set,ff=new Set;var GR=new Set;_m=function(n,r){if(!(n===null||typeof n=="function")){var o=r+"_"+n;GR.has(o)||(GR.add(o),c("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r,n))}},qR=function(n,r){if(r===void 0){var o=Vt(n)||"Component";O0.has(o)||(O0.add(o),c("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",o))}},Object.defineProperty(R0,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(R0)}function j0(n,r,o,l){var d=n.memoizedState,p=o(l,d);{if(n.mode&Kn){Tr(!0);try{p=o(l,d)}finally{Tr(!1)}}qR(r,p)}var g=p==null?d:wt({},d,p);if(n.memoizedState=g,n.lanes===Se){var b=n.updateQueue;b.baseState=g}}var L0={isMounted:q2,enqueueSetState:function(n,r,o){var l=dc(n),d=oa(),p=Ds(l),g=jo(d,p);g.payload=r,o!=null&&(_m(o,"setState"),g.callback=o);var b=Ss(l,g,p);b!==null&&(Sr(b,l,p,d),am(b,l,p)),hy(l,p)},enqueueReplaceState:function(n,r,o){var l=dc(n),d=oa(),p=Ds(l),g=jo(d,p);g.tag=dR,g.payload=r,o!=null&&(_m(o,"replaceState"),g.callback=o);var b=Ss(l,g,p);b!==null&&(Sr(b,l,p,d),am(b,l,p)),hy(l,p)},enqueueForceUpdate:function(n,r){var o=dc(n),l=oa(),d=Ds(o),p=jo(l,d);p.tag=tm,r!=null&&(_m(r,"forceUpdate"),p.callback=r);var g=Ss(o,p,d);g!==null&&(Sr(g,o,d,l),am(g,o,d)),T$(o,d)}};function XR(n,r,o,l,d,p,g){var b=n.stateNode;if(typeof b.shouldComponentUpdate=="function"){var T=b.shouldComponentUpdate(l,p,g);{if(n.mode&Kn){Tr(!0);try{T=b.shouldComponentUpdate(l,p,g)}finally{Tr(!1)}}T===void 0&&c("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Vt(r)||"Component")}return T}return r.prototype&&r.prototype.isPureReactComponent?!Nd(o,l)||!Nd(d,p):!0}function rV(n,r,o){var l=n.stateNode;{var d=Vt(r)||"Component",p=l.render;p||(r.prototype&&typeof r.prototype.render=="function"?c("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",d):c("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",d)),l.getInitialState&&!l.getInitialState.isReactClassApproved&&!l.state&&c("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?",d),l.getDefaultProps&&!l.getDefaultProps.isReactClassApproved&&c("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.",d),l.propTypes&&c("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",d),l.contextType&&c("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",d),r.childContextTypes&&!ff.has(r)&&(n.mode&Kn)===Ze&&(ff.add(r),c(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
144
-
145
- .Learn more about this warning here: https://reactjs.org/link/legacy-context`,d)),r.contextTypes&&!ff.has(r)&&(n.mode&Kn)===Ze&&(ff.add(r),c(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
146
-
147
- Learn more about this warning here: https://reactjs.org/link/legacy-context`,d)),l.contextTypes&&c("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",d),r.contextType&&r.contextTypes&&!N0.has(r)&&(N0.add(r),c("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",d)),typeof l.componentShouldUpdate=="function"&&c("%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.",d),r.prototype&&r.prototype.isPureReactComponent&&typeof l.shouldComponentUpdate<"u"&&c("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Vt(r)||"A pure component"),typeof l.componentDidUnmount=="function"&&c("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",d),typeof l.componentDidReceiveProps=="function"&&c("%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().",d),typeof l.componentWillRecieveProps=="function"&&c("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",d),typeof l.UNSAFE_componentWillRecieveProps=="function"&&c("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",d);var g=l.props!==o;l.props!==void 0&&g&&c("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",d,d),l.defaultProps&&c("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",d,d),typeof l.getSnapshotBeforeUpdate=="function"&&typeof l.componentDidUpdate!="function"&&!_0.has(r)&&(_0.add(r),c("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Vt(r))),typeof l.getDerivedStateFromProps=="function"&&c("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof l.getDerivedStateFromError=="function"&&c("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof r.getSnapshotBeforeUpdate=="function"&&c("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",d);var b=l.state;b&&(typeof b!="object"||sn(b))&&c("%s.state: must be set to an object or null",d),typeof l.getChildContext=="function"&&typeof r.childContextTypes!="object"&&c("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",d)}}function KR(n,r){r.updater=L0,n.stateNode=r,B2(r,n),r._reactInternalInstance=R0}function QR(n,r,o){var l=!1,d=Pa,p=Pa,g=r.contextType;if("contextType"in r){var b=g===null||g!==void 0&&g.$$typeof===le&&g._context===void 0;if(!b&&!P0.has(r)){P0.add(r);var T="";g===void 0?T=" 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 g!="object"?T=" However, it is set to a "+typeof g+".":g.$$typeof===M?T=" Did you accidentally pass the Context.Provider instead?":g._context!==void 0?T=" Did you accidentally pass the Context.Consumer instead?":T=" However, it is set to an object with keys {"+Object.keys(g).join(", ")+"}.",c("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Vt(r)||"Component",T)}}if(typeof g=="object"&&g!==null)p=cr(g);else{d=_c(n,r,!0);var D=r.contextTypes;l=D!=null,p=l?Ac(n,d):Pa}var O=new r(o,p);if(n.mode&Kn){Tr(!0);try{O=new r(o,p)}finally{Tr(!1)}}var H=n.memoizedState=O.state!==null&&O.state!==void 0?O.state:null;KR(n,O);{if(typeof r.getDerivedStateFromProps=="function"&&H===null){var B=Vt(r)||"Component";D0.has(B)||(D0.add(B),c("`%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.",B,O.state===null?"null":"undefined",B))}if(typeof r.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"){var ne=null,ie=null,de=null;if(typeof O.componentWillMount=="function"&&O.componentWillMount.__suppressDeprecationWarning!==!0?ne="componentWillMount":typeof O.UNSAFE_componentWillMount=="function"&&(ne="UNSAFE_componentWillMount"),typeof O.componentWillReceiveProps=="function"&&O.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ie="componentWillReceiveProps":typeof O.UNSAFE_componentWillReceiveProps=="function"&&(ie="UNSAFE_componentWillReceiveProps"),typeof O.componentWillUpdate=="function"&&O.componentWillUpdate.__suppressDeprecationWarning!==!0?de="componentWillUpdate":typeof O.UNSAFE_componentWillUpdate=="function"&&(de="UNSAFE_componentWillUpdate"),ne!==null||ie!==null||de!==null){var Ne=Vt(r)||"Component",Ke=typeof r.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";A0.has(Ne)||(A0.add(Ne),c(`Unsafe legacy lifecycles will not be called for components using new component APIs.
148
-
149
- %s uses %s but also contains the following legacy lifecycles:%s%s%s
150
-
151
- The above lifecycles should be removed. Learn more about this warning here:
152
- https://reactjs.org/link/unsafe-component-lifecycles`,Ne,Ke,ne!==null?`
153
- `+ne:"",ie!==null?`
154
- `+ie:"",de!==null?`
155
- `+de:""))}}}return l&&I1(n,d,p),O}function aV(n,r){var o=r.state;typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),o!==r.state&&(c("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",xt(n)||"Component"),L0.enqueueReplaceState(r,r.state,null))}function ZR(n,r,o,l){var d=r.state;if(typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,l),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,l),r.state!==d){{var p=xt(n)||"Component";k0.has(p)||(k0.add(p),c("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",p))}L0.enqueueReplaceState(r,r.state,null)}}function $0(n,r,o,l){rV(n,r,o);var d=n.stateNode;d.props=o,d.state=n.memoizedState,d.refs={},Yb(n);var p=r.contextType;if(typeof p=="object"&&p!==null)d.context=cr(p);else{var g=_c(n,r,!0);d.context=Ac(n,g)}{if(d.state===o){var b=Vt(r)||"Component";M0.has(b)||(M0.add(b),c("%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.",b))}n.mode&Kn&&yi.recordLegacyContextWarning(n,d),yi.recordUnsafeLifecycleWarnings(n,d)}d.state=n.memoizedState;var T=r.getDerivedStateFromProps;if(typeof T=="function"&&(j0(n,r,T,o),d.state=n.memoizedState),typeof r.getDerivedStateFromProps!="function"&&typeof d.getSnapshotBeforeUpdate!="function"&&(typeof d.UNSAFE_componentWillMount=="function"||typeof d.componentWillMount=="function")&&(aV(n,d),im(n,o,d,l),d.state=n.memoizedState),typeof d.componentDidMount=="function"){var D=Xt;D|=ol,(n.mode&Fi)!==Ze&&(D|=Eo),n.flags|=D}}function iV(n,r,o,l){var d=n.stateNode,p=n.memoizedProps;d.props=p;var g=d.context,b=r.contextType,T=Pa;if(typeof b=="object"&&b!==null)T=cr(b);else{var D=_c(n,r,!0);T=Ac(n,D)}var O=r.getDerivedStateFromProps,H=typeof O=="function"||typeof d.getSnapshotBeforeUpdate=="function";!H&&(typeof d.UNSAFE_componentWillReceiveProps=="function"||typeof d.componentWillReceiveProps=="function")&&(p!==o||g!==T)&&ZR(n,d,o,T),hR();var B=n.memoizedState,ne=d.state=B;if(im(n,o,d,l),ne=n.memoizedState,p===o&&B===ne&&!Ip()&&!om()){if(typeof d.componentDidMount=="function"){var ie=Xt;ie|=ol,(n.mode&Fi)!==Ze&&(ie|=Eo),n.flags|=ie}return!1}typeof O=="function"&&(j0(n,r,O,o),ne=n.memoizedState);var de=om()||XR(n,r,p,o,B,ne,T);if(de){if(!H&&(typeof d.UNSAFE_componentWillMount=="function"||typeof d.componentWillMount=="function")&&(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"){var Ne=Xt;Ne|=ol,(n.mode&Fi)!==Ze&&(Ne|=Eo),n.flags|=Ne}}else{if(typeof d.componentDidMount=="function"){var Ke=Xt;Ke|=ol,(n.mode&Fi)!==Ze&&(Ke|=Eo),n.flags|=Ke}n.memoizedProps=o,n.memoizedState=ne}return d.props=o,d.state=ne,d.context=T,de}function oV(n,r,o,l,d){var p=r.stateNode;fR(n,r);var g=r.memoizedProps,b=r.type===r.elementType?g:xi(r.type,g);p.props=b;var T=r.pendingProps,D=p.context,O=o.contextType,H=Pa;if(typeof O=="object"&&O!==null)H=cr(O);else{var B=_c(r,o,!0);H=Ac(r,B)}var ne=o.getDerivedStateFromProps,ie=typeof ne=="function"||typeof p.getSnapshotBeforeUpdate=="function";!ie&&(typeof p.UNSAFE_componentWillReceiveProps=="function"||typeof p.componentWillReceiveProps=="function")&&(g!==T||D!==H)&&ZR(r,p,l,H),hR();var de=r.memoizedState,Ne=p.state=de;if(im(r,l,p,d),Ne=r.memoizedState,g===T&&de===Ne&&!Ip()&&!om()&&!pe)return typeof p.componentDidUpdate=="function"&&(g!==n.memoizedProps||de!==n.memoizedState)&&(r.flags|=Xt),typeof p.getSnapshotBeforeUpdate=="function"&&(g!==n.memoizedProps||de!==n.memoizedState)&&(r.flags|=al),!1;typeof ne=="function"&&(j0(r,o,ne,l),Ne=r.memoizedState);var Ke=om()||XR(r,o,b,l,de,Ne,H)||pe;return Ke?(!ie&&(typeof p.UNSAFE_componentWillUpdate=="function"||typeof p.componentWillUpdate=="function")&&(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(l,Ne,H),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(l,Ne,H)),typeof p.componentDidUpdate=="function"&&(r.flags|=Xt),typeof p.getSnapshotBeforeUpdate=="function"&&(r.flags|=al)):(typeof p.componentDidUpdate=="function"&&(g!==n.memoizedProps||de!==n.memoizedState)&&(r.flags|=Xt),typeof p.getSnapshotBeforeUpdate=="function"&&(g!==n.memoizedProps||de!==n.memoizedState)&&(r.flags|=al),r.memoizedProps=l,r.memoizedState=Ne),p.props=l,p.state=Ne,p.context=H,Ke}function Tl(n,r){return{value:n,source:r,stack:rs(r),digest:null}}function z0(n,r,o){return{value:n,source:null,stack:o??null,digest:r??null}}function sV(n,r){return!0}function F0(n,r){try{var o=sV(n,r);if(o===!1)return;var l=r.value,d=r.source,p=r.stack,g=p!==null?p:"";if(l!=null&&l._suppressLogging){if(n.tag===m)return;console.error(l)}var b=d?xt(d):null,T=b?"The above error occurred in the <"+b+"> component:":"The above error occurred in one of your React components:",D;if(n.tag===y)D=`Consider adding an error boundary to your tree to customize error handling behavior.
156
- Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var O=xt(n)||"Anonymous";D="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+O+".")}var H=T+`
157
- `+g+`
158
-
159
- `+(""+D);console.error(H)}catch(B){setTimeout(function(){throw B})}}var lV=typeof WeakMap=="function"?WeakMap:Map;function JR(n,r,o){var l=jo(On,o);l.tag=Hb,l.payload={element:null};var d=r.value;return l.callback=function(){eU(d),F0(n,r)},l}function I0(n,r,o){var l=jo(On,o);l.tag=Hb;var d=n.type.getDerivedStateFromError;if(typeof d=="function"){var p=r.value;l.payload=function(){return d(p)},l.callback=function(){uD(n),F0(n,r)}}var g=n.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(l.callback=function(){uD(n),F0(n,r),typeof d!="function"&&ZB(this);var T=r.value,D=r.stack;this.componentDidCatch(T,{componentStack:D!==null?D:""}),typeof d!="function"&&(Aa(n.lanes,gt)||c("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",xt(n)||"Unknown"))}),l}function ek(n,r,o){var l=n.pingCache,d;if(l===null?(l=n.pingCache=new lV,d=new Set,l.set(r,d)):(d=l.get(r),d===void 0&&(d=new Set,l.set(r,d))),!d.has(o)){d.add(o);var p=tU.bind(null,n,r,o);hi&&_f(n,o),r.then(p,p)}}function cV(n,r,o,l){var d=n.updateQueue;if(d===null){var p=new Set;p.add(o),n.updateQueue=p}else d.add(o)}function uV(n,r){var o=n.tag;if((n.mode&Ut)===Ze&&(o===h||o===P||o===F)){var l=n.alternate;l?(n.updateQueue=l.updateQueue,n.memoizedState=l.memoizedState,n.lanes=l.lanes):(n.updateQueue=null,n.memoizedState=null)}}function tk(n){var r=n;do{if(r.tag===L&&HI(r))return r;r=r.return}while(r!==null);return null}function nk(n,r,o,l,d){if((n.mode&Ut)===Ze){if(n===r)n.flags|=ra;else{if(n.flags|=ln,o.flags|=oy,o.flags&=~(U2|ud),o.tag===m){var p=o.alternate;if(p===null)o.tag=se;else{var g=jo(On,gt);g.tag=tm,Ss(o,g,gt)}}o.lanes=_t(o.lanes,gt)}return n}return n.flags|=ra,n.lanes=d,n}function dV(n,r,o,l,d){if(o.flags|=ud,hi&&_f(n,d),l!==null&&typeof l=="object"&&typeof l.then=="function"){var p=l;uV(o),Ar()&&o.mode&Ut&&q1();var g=tk(r);if(g!==null){g.flags&=~Co,nk(g,r,o,n,d),g.mode&Ut&&ek(n,p,d),cV(g,n,p);return}else{if(!N$(d)){ek(n,p,d),bS();return}var b=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");l=b}}else if(Ar()&&o.mode&Ut){q1();var T=tk(r);if(T!==null){(T.flags&ra)===rt&&(T.flags|=Co),nk(T,r,o,n,d),Mb(Tl(l,o));return}}l=Tl(l,o),HB(l);var D=r;do{switch(D.tag){case y:{var O=l;D.flags|=ra;var H=yd(d);D.lanes=_t(D.lanes,H);var B=JR(D,O,H);qb(D,B);return}case m:var ne=l,ie=D.type,de=D.stateNode;if((D.flags&ln)===rt&&(typeof ie.getDerivedStateFromError=="function"||de!==null&&typeof de.componentDidCatch=="function"&&!tD(de))){D.flags|=ra;var Ne=yd(d);D.lanes=_t(D.lanes,Ne);var Ke=I0(D,ne,Ne);qb(D,Ke);return}break}D=D.return}while(D!==null)}function fV(){return null}var hf=a.ReactCurrentOwner,wi=!1,V0,pf,B0,U0,H0,El,W0,Am,mf;V0={},pf={},B0={},U0={},H0={},El=!1,W0={},Am={},mf={};function aa(n,r,o,l){n===null?r.child=iR(r,null,o,l):r.child=Pc(r,n.child,o,l)}function hV(n,r,o,l){r.child=Pc(r,n.child,null,l),r.child=Pc(r,null,o,l)}function rk(n,r,o,l,d){if(r.type!==r.elementType){var p=o.propTypes;p&&mi(p,l,"prop",Vt(o))}var g=o.render,b=r.ref,T,D;Lc(r,d),fd(r);{if(hf.current=r,Ur(!0),T=Bc(n,r,g,l,b,d),D=Uc(),r.mode&Kn){Tr(!0);try{T=Bc(n,r,g,l,b,d),D=Uc()}finally{Tr(!1)}}Ur(!1)}return mc(),n!==null&&!wi?(bR(n,r,d),Lo(n,r,d)):(Ar()&&D&&Rb(r),r.flags|=fc,aa(n,r,T,d),r.child)}function ak(n,r,o,l,d){if(n===null){var p=o.type;if(yU(p)&&o.compare===null&&o.defaultProps===void 0){var g=p;return g=Qc(p),r.tag=F,r.type=g,G0(r,p),ik(n,r,g,l,d)}{var b=p.propTypes;if(b&&mi(b,l,"prop",Vt(p)),o.defaultProps!==void 0){var T=Vt(p)||"Unknown";mf[T]||(c("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",T),mf[T]=!0)}}var D=AS(o.type,null,l,r,r.mode,d);return D.ref=r.ref,D.return=r,r.child=D,D}{var O=o.type,H=O.propTypes;H&&mi(H,l,"prop",Vt(O))}var B=n.child,ne=eS(n,d);if(!ne){var ie=B.memoizedProps,de=o.compare;if(de=de!==null?de:Nd,de(ie,l)&&n.ref===r.ref)return Lo(n,r,d)}r.flags|=fc;var Ne=Al(B,l);return Ne.ref=r.ref,Ne.return=r,r.child=Ne,Ne}function ik(n,r,o,l,d){if(r.type!==r.elementType){var p=r.elementType;if(p.$$typeof===Me){var g=p,b=g._payload,T=g._init;try{p=T(b)}catch{p=null}var D=p&&p.propTypes;D&&mi(D,l,"prop",Vt(p))}}if(n!==null){var O=n.memoizedProps;if(Nd(O,l)&&n.ref===r.ref&&r.type===n.type)if(wi=!1,r.pendingProps=l=O,eS(n,d))(n.flags&oy)!==rt&&(wi=!0);else return r.lanes=n.lanes,Lo(n,r,d)}return Y0(n,r,o,l,d)}function ok(n,r,o){var l=r.pendingProps,d=l.children,p=n!==null?n.memoizedState:null;if(l.mode==="hidden"||te)if((r.mode&Ut)===Ze){var g={baseLanes:Se,cachePool:null,transitions:null};r.memoizedState=g,Um(r,o)}else if(Aa(o,_a)){var H={baseLanes:Se,cachePool:null,transitions:null};r.memoizedState=H;var B=p!==null?p.baseLanes:o;Um(r,B)}else{var b=null,T;if(p!==null){var D=p.baseLanes;T=_t(D,o)}else T=o;r.lanes=r.childLanes=_a;var O={baseLanes:T,cachePool:b,transitions:null};return r.memoizedState=O,r.updateQueue=null,Um(r,T),null}else{var ne;p!==null?(ne=_t(p.baseLanes,o),r.memoizedState=null):ne=o,Um(r,ne)}return aa(n,r,d,o),r.child}function pV(n,r,o){var l=r.pendingProps;return aa(n,r,l,o),r.child}function mV(n,r,o){var l=r.pendingProps.children;return aa(n,r,l,o),r.child}function vV(n,r,o){{r.flags|=Xt;{var l=r.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}}var d=r.pendingProps,p=d.children;return aa(n,r,p,o),r.child}function sk(n,r){var o=r.ref;(n===null&&o!==null||n!==null&&n.ref!==o)&&(r.flags|=ls,r.flags|=sy)}function Y0(n,r,o,l,d){if(r.type!==r.elementType){var p=o.propTypes;p&&mi(p,l,"prop",Vt(o))}var g;{var b=_c(r,o,!0);g=Ac(r,b)}var T,D;Lc(r,d),fd(r);{if(hf.current=r,Ur(!0),T=Bc(n,r,o,l,g,d),D=Uc(),r.mode&Kn){Tr(!0);try{T=Bc(n,r,o,l,g,d),D=Uc()}finally{Tr(!1)}}Ur(!1)}return mc(),n!==null&&!wi?(bR(n,r,d),Lo(n,r,d)):(Ar()&&D&&Rb(r),r.flags|=fc,aa(n,r,T,d),r.child)}function lk(n,r,o,l,d){{switch(NU(r)){case!1:{var p=r.stateNode,g=r.type,b=new g(r.memoizedProps,p.context),T=b.state;p.updater.enqueueSetState(p,T,null);break}case!0:{r.flags|=ln,r.flags|=ra;var D=new Error("Simulated error coming from DevTools"),O=yd(d);r.lanes=_t(r.lanes,O);var H=I0(r,Tl(D,r),O);qb(r,H);break}}if(r.type!==r.elementType){var B=o.propTypes;B&&mi(B,l,"prop",Vt(o))}}var ne;Bi(o)?(ne=!0,Bp(r)):ne=!1,Lc(r,d);var ie=r.stateNode,de;ie===null?(Mm(n,r),QR(r,o,l),$0(r,o,l,d),de=!0):n===null?de=iV(r,o,l,d):de=oV(n,r,o,l,d);var Ne=q0(n,r,o,de,ne,d);{var Ke=r.stateNode;de&&Ke.props!==l&&(El||c("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",xt(r)||"a component"),El=!0)}return Ne}function q0(n,r,o,l,d,p){sk(n,r);var g=(r.flags&ln)!==rt;if(!l&&!g)return d&&U1(r,o,!1),Lo(n,r,p);var b=r.stateNode;hf.current=r;var T;if(g&&typeof o.getDerivedStateFromError!="function")T=null,YR();else{fd(r);{if(Ur(!0),T=b.render(),r.mode&Kn){Tr(!0);try{b.render()}finally{Tr(!1)}}Ur(!1)}mc()}return r.flags|=fc,n!==null&&g?hV(n,r,T,p):aa(n,r,T,p),r.memoizedState=b.state,d&&U1(r,o,!0),r.child}function ck(n){var r=n.stateNode;r.pendingContext?V1(n,r.pendingContext,r.pendingContext!==r.context):r.context&&V1(n,r.context,!1),Gb(n,r.containerInfo)}function gV(n,r,o){if(ck(r),n===null)throw new Error("Should have a current fiber. This is a bug in React.");var l=r.pendingProps,d=r.memoizedState,p=d.element;fR(n,r),im(r,l,null,o);var g=r.memoizedState;r.stateNode;var b=g.element;if(d.isDehydrated){var T={element:b,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},D=r.updateQueue;if(D.baseState=T,r.memoizedState=T,r.flags&Co){var O=Tl(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),r);return uk(n,r,b,o,O)}else if(b!==p){var H=Tl(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),r);return uk(n,r,b,o,H)}else{SI(r);var B=iR(r,null,b,o);r.child=B;for(var ne=B;ne;)ne.flags=ne.flags&~lr|To,ne=ne.sibling}}else{if(Nc(),b===p)return Lo(n,r,o);aa(n,r,b,o)}return r.child}function uk(n,r,o,l,d){return Nc(),Mb(d),r.flags|=Co,aa(n,r,o,l),r.child}function yV(n,r,o){vR(r),n===null&&Ob(r);var l=r.type,d=r.pendingProps,p=n!==null?n.memoizedProps:null,g=d.children,b=fb(l,d);return b?g=null:p!==null&&fb(l,p)&&(r.flags|=cd),sk(n,r),aa(n,r,g,o),r.child}function bV(n,r){return n===null&&Ob(r),null}function SV(n,r,o,l){Mm(n,r);var d=r.pendingProps,p=o,g=p._payload,b=p._init,T=b(g);r.type=T;var D=r.tag=bU(T),O=xi(T,d),H;switch(D){case h:return G0(r,T),r.type=T=Qc(T),H=Y0(null,r,T,O,l),H;case m:return r.type=T=TS(T),H=lk(null,r,T,O,l),H;case P:return r.type=T=ES(T),H=rk(null,r,T,O,l),H;case U:{if(r.type!==r.elementType){var B=T.propTypes;B&&mi(B,O,"prop",Vt(T))}return H=ak(null,r,T,xi(T.type,O),l),H}}var ne="";throw T!==null&&typeof T=="object"&&T.$$typeof===Me&&(ne=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+T+". "+("Lazy element type must resolve to a class or function."+ne))}function xV(n,r,o,l,d){Mm(n,r),r.tag=m;var p;return Bi(o)?(p=!0,Bp(r)):p=!1,Lc(r,d),QR(r,o,l),$0(r,o,l,d),q0(null,r,o,!0,p,d)}function wV(n,r,o,l){Mm(n,r);var d=r.pendingProps,p;{var g=_c(r,o,!1);p=Ac(r,g)}Lc(r,l);var b,T;fd(r);{if(o.prototype&&typeof o.prototype.render=="function"){var D=Vt(o)||"Unknown";V0[D]||(c("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.",D,D),V0[D]=!0)}r.mode&Kn&&yi.recordLegacyContextWarning(r,null),Ur(!0),hf.current=r,b=Bc(null,r,o,d,p,l),T=Uc(),Ur(!1)}if(mc(),r.flags|=fc,typeof b=="object"&&b!==null&&typeof b.render=="function"&&b.$$typeof===void 0){var O=Vt(o)||"Unknown";pf[O]||(c("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",O,O,O),pf[O]=!0)}if(typeof b=="object"&&b!==null&&typeof b.render=="function"&&b.$$typeof===void 0){{var H=Vt(o)||"Unknown";pf[H]||(c("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",H,H,H),pf[H]=!0)}r.tag=m,r.memoizedState=null,r.updateQueue=null;var B=!1;return Bi(o)?(B=!0,Bp(r)):B=!1,r.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,Yb(r),KR(r,b),$0(r,o,d,l),q0(null,r,o,!0,B,l)}else{if(r.tag=h,r.mode&Kn){Tr(!0);try{b=Bc(null,r,o,d,p,l),T=Uc()}finally{Tr(!1)}}return Ar()&&T&&Rb(r),aa(null,r,b,l),G0(r,o),r.child}}function G0(n,r){{if(r&&r.childContextTypes&&c("%s(...): childContextTypes cannot be defined on a function component.",r.displayName||r.name||"Component"),n.ref!==null){var o="",l=Ha();l&&(o+=`
160
-
161
- Check the render method of \``+l+"`.");var d=l||"",p=n._debugSource;p&&(d=p.fileName+":"+p.lineNumber),H0[d]||(H0[d]=!0,c("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",o))}if(r.defaultProps!==void 0){var g=Vt(r)||"Unknown";mf[g]||(c("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",g),mf[g]=!0)}if(typeof r.getDerivedStateFromProps=="function"){var b=Vt(r)||"Unknown";U0[b]||(c("%s: Function components do not support getDerivedStateFromProps.",b),U0[b]=!0)}if(typeof r.contextType=="object"&&r.contextType!==null){var T=Vt(r)||"Unknown";B0[T]||(c("%s: Function components do not support contextType.",T),B0[T]=!0)}}}var X0={dehydrated:null,treeContext:null,retryLane:Er};function K0(n){return{baseLanes:n,cachePool:fV(),transitions:null}}function CV(n,r){var o=null;return{baseLanes:_t(n.baseLanes,r),cachePool:o,transitions:n.transitions}}function TV(n,r,o,l){if(r!==null){var d=r.memoizedState;if(d===null)return!1}return Qb(n,rf)}function EV(n,r){return dp(n.childLanes,r)}function dk(n,r,o){var l=r.pendingProps;PU(r)&&(r.flags|=ln);var d=bi.current,p=!1,g=(r.flags&ln)!==rt;if(g||TV(d,n)?(p=!0,r.flags&=~ln):(n===null||n.memoizedState!==null)&&(d=UI(d,yR)),d=zc(d),ws(r,d),n===null){Ob(r);var b=r.memoizedState;if(b!==null){var T=b.dehydrated;if(T!==null)return AV(r,T)}var D=l.children,O=l.fallback;if(p){var H=RV(r,D,O,o),B=r.child;return B.memoizedState=K0(o),r.memoizedState=X0,H}else return Q0(r,D)}else{var ne=n.memoizedState;if(ne!==null){var ie=ne.dehydrated;if(ie!==null)return OV(n,r,g,l,ie,ne,o)}if(p){var de=l.fallback,Ne=l.children,Ke=DV(n,r,Ne,de,o),qe=r.child,Wt=n.child.memoizedState;return qe.memoizedState=Wt===null?K0(o):CV(Wt,o),qe.childLanes=EV(n,o),r.memoizedState=X0,Ke}else{var zt=l.children,Z=kV(n,r,zt,o);return r.memoizedState=null,Z}}}function Q0(n,r,o){var l=n.mode,d={mode:"visible",children:r},p=Z0(d,l);return p.return=n,n.child=p,p}function RV(n,r,o,l){var d=n.mode,p=n.child,g={mode:"hidden",children:r},b,T;return(d&Ut)===Ze&&p!==null?(b=p,b.childLanes=Se,b.pendingProps=g,n.mode&Sn&&(b.actualDuration=0,b.actualStartTime=-1,b.selfBaseDuration=0,b.treeBaseDuration=0),T=As(o,d,l,null)):(b=Z0(g,d),T=As(o,d,l,null)),b.return=n,T.return=n,b.sibling=T,n.child=b,T}function Z0(n,r,o){return fD(n,r,Se,null)}function fk(n,r){return Al(n,r)}function kV(n,r,o,l){var d=n.child,p=d.sibling,g=fk(d,{mode:"visible",children:o});if((r.mode&Ut)===Ze&&(g.lanes=l),g.return=r,g.sibling=null,p!==null){var b=r.deletions;b===null?(r.deletions=[p],r.flags|=rl):b.push(p)}return r.child=g,g}function DV(n,r,o,l,d){var p=r.mode,g=n.child,b=g.sibling,T={mode:"hidden",children:o},D;if((p&Ut)===Ze&&r.child!==g){var O=r.child;D=O,D.childLanes=Se,D.pendingProps=T,r.mode&Sn&&(D.actualDuration=0,D.actualStartTime=-1,D.selfBaseDuration=g.selfBaseDuration,D.treeBaseDuration=g.treeBaseDuration),r.deletions=null}else D=fk(g,T),D.subtreeFlags=g.subtreeFlags&Ro;var H;return b!==null?H=Al(b,l):(H=As(l,p,d,null),H.flags|=lr),H.return=r,D.return=r,D.sibling=H,r.child=D,H}function Om(n,r,o,l){l!==null&&Mb(l),Pc(r,n.child,null,o);var d=r.pendingProps,p=d.children,g=Q0(r,p);return g.flags|=lr,r.memoizedState=null,g}function _V(n,r,o,l,d){var p=r.mode,g={mode:"visible",children:o},b=Z0(g,p),T=As(l,p,d,null);return T.flags|=lr,b.return=r,T.return=r,b.sibling=T,r.child=b,(r.mode&Ut)!==Ze&&Pc(r,n.child,null,d),T}function AV(n,r,o){return(n.mode&Ut)===Ze?(c("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),n.lanes=gt):vb(r)?n.lanes=cl:n.lanes=_a,null}function OV(n,r,o,l,d,p,g){if(o)if(r.flags&Co){r.flags&=~Co;var Z=z0(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return Om(n,r,g,Z)}else{if(r.memoizedState!==null)return r.child=n.child,r.flags|=ln,null;var fe=l.children,J=l.fallback,Ce=_V(n,r,fe,J,g),ze=r.child;return ze.memoizedState=K0(g),r.memoizedState=X0,Ce}else{if(yI(),(r.mode&Ut)===Ze)return Om(n,r,g,null);if(vb(d)){var b,T,D;{var O=j5(d);b=O.digest,T=O.message,D=O.stack}var H;T?H=new Error(T):H=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var B=z0(H,b,D);return Om(n,r,g,B)}var ne=Aa(g,n.childLanes);if(wi||ne){var ie=Bm();if(ie!==null){var de=V$(ie,g);if(de!==Er&&de!==p.retryLane){p.retryLane=de;var Ne=On;ya(n,de),Sr(ie,n,de,Ne)}}bS();var Ke=z0(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return Om(n,r,g,Ke)}else if(j1(d)){r.flags|=ln,r.child=n.child;var qe=nU.bind(null,n);return L5(d,qe),null}else{xI(r,d,p.treeContext);var Wt=l.children,zt=Q0(r,Wt);return zt.flags|=To,zt}}}function hk(n,r,o){n.lanes=_t(n.lanes,r);var l=n.alternate;l!==null&&(l.lanes=_t(l.lanes,r)),Bb(n.return,r,o)}function MV(n,r,o){for(var l=r;l!==null;){if(l.tag===L){var d=l.memoizedState;d!==null&&hk(l,o,n)}else if(l.tag===ue)hk(l,o,n);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)return;for(;l.sibling===null;){if(l.return===null||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}}function NV(n){for(var r=n,o=null;r!==null;){var l=r.alternate;l!==null&&cm(l)===null&&(o=r),r=r.sibling}return o}function PV(n){if(n!==void 0&&n!=="forwards"&&n!=="backwards"&&n!=="together"&&!W0[n])if(W0[n]=!0,typeof n=="string")switch(n.toLowerCase()){case"together":case"forwards":case"backwards":{c('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',n,n.toLowerCase());break}case"forward":case"backward":{c('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',n,n.toLowerCase());break}default:c('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',n);break}else c('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',n)}function jV(n,r){n!==void 0&&!Am[n]&&(n!=="collapsed"&&n!=="hidden"?(Am[n]=!0,c('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',n)):r!=="forwards"&&r!=="backwards"&&(Am[n]=!0,c('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',n)))}function pk(n,r){{var o=sn(n),l=!o&&typeof ta(n)=="function";if(o||l){var d=o?"array":"iterable";return c("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>",d,r,d),!1}}return!0}function LV(n,r){if((r==="forwards"||r==="backwards")&&n!==void 0&&n!==null&&n!==!1)if(sn(n)){for(var o=0;o<n.length;o++)if(!pk(n[o],o))return}else{var l=ta(n);if(typeof l=="function"){var d=l.call(n);if(d)for(var p=d.next(),g=0;!p.done;p=d.next()){if(!pk(p.value,g))return;g++}}else c('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',r)}}function J0(n,r,o,l,d){var p=n.memoizedState;p===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:d}:(p.isBackwards=r,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=o,p.tailMode=d)}function mk(n,r,o){var l=r.pendingProps,d=l.revealOrder,p=l.tail,g=l.children;PV(d),jV(p,d),LV(g,d),aa(n,r,g,o);var b=bi.current,T=Qb(b,rf);if(T)b=Zb(b,rf),r.flags|=ln;else{var D=n!==null&&(n.flags&ln)!==rt;D&&MV(r,r.child,o),b=zc(b)}if(ws(r,b),(r.mode&Ut)===Ze)r.memoizedState=null;else switch(d){case"forwards":{var O=NV(r.child),H;O===null?(H=r.child,r.child=null):(H=O.sibling,O.sibling=null),J0(r,!1,H,O,p);break}case"backwards":{var B=null,ne=r.child;for(r.child=null;ne!==null;){var ie=ne.alternate;if(ie!==null&&cm(ie)===null){r.child=ne;break}var de=ne.sibling;ne.sibling=B,B=ne,ne=de}J0(r,!0,B,null,p);break}case"together":{J0(r,!1,null,null,void 0);break}default:r.memoizedState=null}return r.child}function $V(n,r,o){Gb(r,r.stateNode.containerInfo);var l=r.pendingProps;return n===null?r.child=Pc(r,null,l,o):aa(n,r,l,o),r.child}var vk=!1;function zV(n,r,o){var l=r.type,d=l._context,p=r.pendingProps,g=r.memoizedProps,b=p.value;{"value"in p||vk||(vk=!0,c("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var T=r.type.propTypes;T&&mi(T,p,"prop","Context.Provider")}if(lR(r,d,b),g!==null){var D=g.value;if(Na(D,b)){if(g.children===p.children&&!Ip())return Lo(n,r,o)}else PI(r,d,o)}var O=p.children;return aa(n,r,O,o),r.child}var gk=!1;function FV(n,r,o){var l=r.type;l._context===void 0?l!==l.Consumer&&(gk||(gk=!0,c("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):l=l._context;var d=r.pendingProps,p=d.children;typeof p!="function"&&c("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."),Lc(r,o);var g=cr(l);fd(r);var b;return hf.current=r,Ur(!0),b=p(g),Ur(!1),mc(),r.flags|=fc,aa(n,r,b,o),r.child}function vf(){wi=!0}function Mm(n,r){(r.mode&Ut)===Ze&&n!==null&&(n.alternate=null,r.alternate=null,r.flags|=lr)}function Lo(n,r,o){return n!==null&&(r.dependencies=n.dependencies),YR(),Df(r.lanes),Aa(o,r.childLanes)?(MI(n,r),r.child):null}function IV(n,r,o){{var l=r.return;if(l===null)throw new Error("Cannot swap the root fiber.");if(n.alternate=null,r.alternate=null,o.index=r.index,o.sibling=r.sibling,o.return=r.return,o.ref=r.ref,r===l.child)l.child=o;else{var d=l.child;if(d===null)throw new Error("Expected parent to have a child.");for(;d.sibling!==r;)if(d=d.sibling,d===null)throw new Error("Expected to find the previous sibling.");d.sibling=o}var p=l.deletions;return p===null?(l.deletions=[n],l.flags|=rl):p.push(n),o.flags|=lr,o}}function eS(n,r){var o=n.lanes;return!!Aa(o,r)}function VV(n,r,o){switch(r.tag){case y:ck(r),r.stateNode,Nc();break;case x:vR(r);break;case m:{var l=r.type;Bi(l)&&Bp(r);break}case S:Gb(r,r.stateNode.containerInfo);break;case _:{var d=r.memoizedProps.value,p=r.type._context;lR(r,p,d);break}case $:{var g=Aa(o,r.childLanes);g&&(r.flags|=Xt);{var b=r.stateNode;b.effectDuration=0,b.passiveEffectDuration=0}}break;case L:{var T=r.memoizedState;if(T!==null){if(T.dehydrated!==null)return ws(r,zc(bi.current)),r.flags|=ln,null;var D=r.child,O=D.childLanes;if(Aa(o,O))return dk(n,r,o);ws(r,zc(bi.current));var H=Lo(n,r,o);return H!==null?H.sibling:null}else ws(r,zc(bi.current));break}case ue:{var B=(n.flags&ln)!==rt,ne=Aa(o,r.childLanes);if(B){if(ne)return mk(n,r,o);r.flags|=ln}var ie=r.memoizedState;if(ie!==null&&(ie.rendering=null,ie.tail=null,ie.lastEffect=null),ws(r,bi.current),ne)break;return null}case Y:case ce:return r.lanes=Se,ok(n,r,o)}return Lo(n,r,o)}function yk(n,r,o){if(r._debugNeedsRemount&&n!==null)return IV(n,r,AS(r.type,r.key,r.pendingProps,r._debugOwner||null,r.mode,r.lanes));if(n!==null){var l=n.memoizedProps,d=r.pendingProps;if(l!==d||Ip()||r.type!==n.type)wi=!0;else{var p=eS(n,o);if(!p&&(r.flags&ln)===rt)return wi=!1,VV(n,r,o);(n.flags&oy)!==rt?wi=!0:wi=!1}}else if(wi=!1,Ar()&&fI(r)){var g=r.index,b=hI();Y1(r,b,g)}switch(r.lanes=Se,r.tag){case v:return wV(n,r,r.type,o);case Q:{var T=r.elementType;return SV(n,r,T,o)}case h:{var D=r.type,O=r.pendingProps,H=r.elementType===D?O:xi(D,O);return Y0(n,r,D,H,o)}case m:{var B=r.type,ne=r.pendingProps,ie=r.elementType===B?ne:xi(B,ne);return lk(n,r,B,ie,o)}case y:return gV(n,r,o);case x:return yV(n,r,o);case R:return bV(n,r);case L:return dk(n,r,o);case S:return $V(n,r,o);case P:{var de=r.type,Ne=r.pendingProps,Ke=r.elementType===de?Ne:xi(de,Ne);return rk(n,r,de,Ke,o)}case E:return pV(n,r,o);case k:return mV(n,r,o);case $:return vV(n,r,o);case _:return zV(n,r,o);case A:return FV(n,r,o);case U:{var qe=r.type,Wt=r.pendingProps,zt=xi(qe,Wt);if(r.type!==r.elementType){var Z=qe.propTypes;Z&&mi(Z,zt,"prop",Vt(qe))}return zt=xi(qe.type,zt),ak(n,r,qe,zt,o)}case F:return ik(n,r,r.type,r.pendingProps,o);case se:{var fe=r.type,J=r.pendingProps,Ce=r.elementType===fe?J:xi(fe,J);return xV(n,r,fe,Ce,o)}case ue:return mk(n,r,o);case Ge:break;case Y:return ok(n,r,o)}throw new Error("Unknown unit of work tag ("+r.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Hc(n){n.flags|=Xt}function bk(n){n.flags|=ls,n.flags|=sy}var Sk,tS,xk,wk;Sk=function(n,r,o,l){for(var d=r.child;d!==null;){if(d.tag===x||d.tag===R)c5(n,d.stateNode);else if(d.tag!==S){if(d.child!==null){d.child.return=d,d=d.child;continue}}if(d===r)return;for(;d.sibling===null;){if(d.return===null||d.return===r)return;d=d.return}d.sibling.return=d.return,d=d.sibling}},tS=function(n,r){},xk=function(n,r,o,l,d){var p=n.memoizedProps;if(p!==l){var g=r.stateNode,b=Xb(),T=d5(g,o,p,l,d,b);r.updateQueue=T,T&&Hc(r)}},wk=function(n,r,o,l){o!==l&&Hc(r)};function gf(n,r){if(!Ar())switch(n.tailMode){case"hidden":{for(var o=n.tail,l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?n.tail=null:l.sibling=null;break}case"collapsed":{for(var d=n.tail,p=null;d!==null;)d.alternate!==null&&(p=d),d=d.sibling;p===null?!r&&n.tail!==null?n.tail.sibling=null:n.tail=null:p.sibling=null;break}}}function Mr(n){var r=n.alternate!==null&&n.alternate.child===n.child,o=Se,l=rt;if(r){if((n.mode&Sn)!==Ze){for(var T=n.selfBaseDuration,D=n.child;D!==null;)o=_t(o,_t(D.lanes,D.childLanes)),l|=D.subtreeFlags&Ro,l|=D.flags&Ro,T+=D.treeBaseDuration,D=D.sibling;n.treeBaseDuration=T}else for(var O=n.child;O!==null;)o=_t(o,_t(O.lanes,O.childLanes)),l|=O.subtreeFlags&Ro,l|=O.flags&Ro,O.return=n,O=O.sibling;n.subtreeFlags|=l}else{if((n.mode&Sn)!==Ze){for(var d=n.actualDuration,p=n.selfBaseDuration,g=n.child;g!==null;)o=_t(o,_t(g.lanes,g.childLanes)),l|=g.subtreeFlags,l|=g.flags,d+=g.actualDuration,p+=g.treeBaseDuration,g=g.sibling;n.actualDuration=d,n.treeBaseDuration=p}else for(var b=n.child;b!==null;)o=_t(o,_t(b.lanes,b.childLanes)),l|=b.subtreeFlags,l|=b.flags,b.return=n,b=b.sibling;n.subtreeFlags|=l}return n.childLanes=o,r}function BV(n,r,o){if(RI()&&(r.mode&Ut)!==Ze&&(r.flags&ln)===rt)return J1(r),Nc(),r.flags|=Co|ud|ra,!1;var l=qp(r);if(o!==null&&o.dehydrated!==null)if(n===null){if(!l)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(TI(r),Mr(r),(r.mode&Sn)!==Ze){var d=o!==null;if(d){var p=r.child;p!==null&&(r.treeBaseDuration-=p.treeBaseDuration)}}return!1}else{if(Nc(),(r.flags&ln)===rt&&(r.memoizedState=null),r.flags|=Xt,Mr(r),(r.mode&Sn)!==Ze){var g=o!==null;if(g){var b=r.child;b!==null&&(r.treeBaseDuration-=b.treeBaseDuration)}}return!1}else return eR(),!0}function Ck(n,r,o){var l=r.pendingProps;switch(kb(r),r.tag){case v:case Q:case F:case h:case P:case E:case k:case $:case A:case U:return Mr(r),null;case m:{var d=r.type;return Bi(d)&&Vp(r),Mr(r),null}case y:{var p=r.stateNode;if($c(r),Cb(r),e0(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),n===null||n.child===null){var g=qp(r);if(g)Hc(r);else if(n!==null){var b=n.memoizedState;(!b.isDehydrated||(r.flags&Co)!==rt)&&(r.flags|=al,eR())}}return tS(n,r),Mr(r),null}case x:{Kb(r);var T=mR(),D=r.type;if(n!==null&&r.stateNode!=null)xk(n,r,D,l,T),n.ref!==r.ref&&bk(r);else{if(!l){if(r.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Mr(r),null}var O=Xb(),H=qp(r);if(H)wI(r,T,O)&&Hc(r);else{var B=l5(D,l,T,O,r);Sk(B,r,!1,!1),r.stateNode=B,u5(B,D,l,T)&&Hc(r)}r.ref!==null&&bk(r)}return Mr(r),null}case R:{var ne=l;if(n&&r.stateNode!=null){var ie=n.memoizedProps;wk(n,r,ie,ne)}else{if(typeof ne!="string"&&r.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var de=mR(),Ne=Xb(),Ke=qp(r);Ke?CI(r)&&Hc(r):r.stateNode=f5(ne,de,Ne,r)}return Mr(r),null}case L:{Fc(r);var qe=r.memoizedState;if(n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){var Wt=BV(n,r,qe);if(!Wt)return r.flags&ra?r:null}if((r.flags&ln)!==rt)return r.lanes=o,(r.mode&Sn)!==Ze&&E0(r),r;var zt=qe!==null,Z=n!==null&&n.memoizedState!==null;if(zt!==Z&&zt){var fe=r.child;if(fe.flags|=il,(r.mode&Ut)!==Ze){var J=n===null&&(r.memoizedProps.unstable_avoidThisFallback!==!0||!we);J||Qb(bi.current,yR)?UB():bS()}}var Ce=r.updateQueue;if(Ce!==null&&(r.flags|=Xt),Mr(r),(r.mode&Sn)!==Ze&&zt){var ze=r.child;ze!==null&&(r.treeBaseDuration-=ze.treeBaseDuration)}return null}case S:return $c(r),tS(n,r),n===null&&iI(r.stateNode.containerInfo),Mr(r),null;case _:var Pe=r.type._context;return Vb(Pe,r),Mr(r),null;case se:{var ct=r.type;return Bi(ct)&&Vp(r),Mr(r),null}case ue:{Fc(r);var bt=r.memoizedState;if(bt===null)return Mr(r),null;var wn=(r.flags&ln)!==rt,rn=bt.rendering;if(rn===null)if(wn)gf(bt,!1);else{var nr=WB()&&(n===null||(n.flags&ln)===rt);if(!nr)for(var an=r.child;an!==null;){var Qn=cm(an);if(Qn!==null){wn=!0,r.flags|=ln,gf(bt,!1);var Xr=Qn.updateQueue;return Xr!==null&&(r.updateQueue=Xr,r.flags|=Xt),r.subtreeFlags=rt,NI(r,o),ws(r,Zb(bi.current,rf)),r.child}an=an.sibling}bt.tail!==null&&Cr()>Hk()&&(r.flags|=ln,wn=!0,gf(bt,!1),r.lanes=wE)}else{if(!wn){var $r=cm(rn);if($r!==null){r.flags|=ln,wn=!0;var La=$r.updateQueue;if(La!==null&&(r.updateQueue=La,r.flags|=Xt),gf(bt,!0),bt.tail===null&&bt.tailMode==="hidden"&&!rn.alternate&&!Ar())return Mr(r),null}else Cr()*2-bt.renderingStartTime>Hk()&&o!==_a&&(r.flags|=ln,wn=!0,gf(bt,!1),r.lanes=wE)}if(bt.isBackwards)rn.sibling=r.child,r.child=rn;else{var sa=bt.last;sa!==null?sa.sibling=rn:r.child=rn,bt.last=rn}}if(bt.tail!==null){var la=bt.tail;bt.rendering=la,bt.tail=la.sibling,bt.renderingStartTime=Cr(),la.sibling=null;var Kr=bi.current;return wn?Kr=Zb(Kr,rf):Kr=zc(Kr),ws(r,Kr),la}return Mr(r),null}case Ge:break;case Y:case ce:{yS(r);var Vo=r.memoizedState,Zc=Vo!==null;if(n!==null){var Nf=n.memoizedState,Ki=Nf!==null;Ki!==Zc&&!te&&(r.flags|=il)}return!Zc||(r.mode&Ut)===Ze?Mr(r):Aa(Xi,_a)&&(Mr(r),r.subtreeFlags&(lr|Xt)&&(r.flags|=il)),null}case Ee:return null;case G:return null}throw new Error("Unknown unit of work tag ("+r.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function UV(n,r,o){switch(kb(r),r.tag){case m:{var l=r.type;Bi(l)&&Vp(r);var d=r.flags;return d&ra?(r.flags=d&~ra|ln,(r.mode&Sn)!==Ze&&E0(r),r):null}case y:{r.stateNode,$c(r),Cb(r),e0();var p=r.flags;return(p&ra)!==rt&&(p&ln)===rt?(r.flags=p&~ra|ln,r):null}case x:return Kb(r),null;case L:{Fc(r);var g=r.memoizedState;if(g!==null&&g.dehydrated!==null){if(r.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Nc()}var b=r.flags;return b&ra?(r.flags=b&~ra|ln,(r.mode&Sn)!==Ze&&E0(r),r):null}case ue:return Fc(r),null;case S:return $c(r),null;case _:var T=r.type._context;return Vb(T,r),null;case Y:case ce:return yS(r),null;case Ee:return null;default:return null}}function Tk(n,r,o){switch(kb(r),r.tag){case m:{var l=r.type.childContextTypes;l!=null&&Vp(r);break}case y:{r.stateNode,$c(r),Cb(r),e0();break}case x:{Kb(r);break}case S:$c(r);break;case L:Fc(r);break;case ue:Fc(r);break;case _:var d=r.type._context;Vb(d,r);break;case Y:case ce:yS(r);break}}var Ek=null;Ek=new Set;var Nm=!1,Nr=!1,HV=typeof WeakSet=="function"?WeakSet:Set,Be=null,Wc=null,Yc=null;function WV(n){ry(null,function(){throw n}),ay()}var YV=function(n,r){if(r.props=n.memoizedProps,r.state=n.memoizedState,n.mode&Sn)try{qi(),r.componentWillUnmount()}finally{Yi(n)}else r.componentWillUnmount()};function Rk(n,r){try{Es(pr,n)}catch(o){kn(n,r,o)}}function nS(n,r,o){try{YV(n,o)}catch(l){kn(n,r,l)}}function qV(n,r,o){try{o.componentDidMount()}catch(l){kn(n,r,l)}}function kk(n,r){try{_k(n)}catch(o){kn(n,r,o)}}function qc(n,r){var o=n.ref;if(o!==null)if(typeof o=="function"){var l;try{if(Xe&&Rt&&n.mode&Sn)try{qi(),l=o(null)}finally{Yi(n)}else l=o(null)}catch(d){kn(n,r,d)}typeof l=="function"&&c("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",xt(n))}else o.current=null}function Pm(n,r,o){try{o()}catch(l){kn(n,r,l)}}var Dk=!1;function GV(n,r){o5(n.containerInfo),Be=r,XV();var o=Dk;return Dk=!1,o}function XV(){for(;Be!==null;){var n=Be,r=n.child;(n.subtreeFlags&cy)!==rt&&r!==null?(r.return=n,Be=r):KV()}}function KV(){for(;Be!==null;){var n=Be;An(n);try{QV(n)}catch(o){kn(n,n.return,o)}or();var r=n.sibling;if(r!==null){r.return=n.return,Be=r;return}Be=n.return}}function QV(n){var r=n.alternate,o=n.flags;if((o&al)!==rt){switch(An(n),n.tag){case h:case P:case F:break;case m:{if(r!==null){var l=r.memoizedProps,d=r.memoizedState,p=n.stateNode;n.type===n.elementType&&!El&&(p.props!==n.memoizedProps&&c("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.",xt(n)||"instance"),p.state!==n.memoizedState&&c("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.",xt(n)||"instance"));var g=p.getSnapshotBeforeUpdate(n.elementType===n.type?l:xi(n.type,l),d);{var b=Ek;g===void 0&&!b.has(n.type)&&(b.add(n.type),c("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",xt(n)))}p.__reactInternalSnapshotBeforeUpdate=g}break}case y:{{var T=n.stateNode;O5(T.containerInfo)}break}case x:case R:case S:case se:break;default:throw new 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.")}or()}}function Ci(n,r,o){var l=r.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var p=d.next,g=p;do{if((g.tag&n)===n){var b=g.destroy;g.destroy=void 0,b!==void 0&&((n&Or)!==ba?f$(r):(n&pr)!==ba&&gE(r),(n&Ui)!==ba&&Af(!0),Pm(r,o,b),(n&Ui)!==ba&&Af(!1),(n&Or)!==ba?h$():(n&pr)!==ba&&yE())}g=g.next}while(g!==p)}}function Es(n,r){var o=r.updateQueue,l=o!==null?o.lastEffect:null;if(l!==null){var d=l.next,p=d;do{if((p.tag&n)===n){(n&Or)!==ba?u$(r):(n&pr)!==ba&&p$(r);var g=p.create;(n&Ui)!==ba&&Af(!0),p.destroy=g(),(n&Ui)!==ba&&Af(!1),(n&Or)!==ba?d$():(n&pr)!==ba&&m$();{var b=p.destroy;if(b!==void 0&&typeof b!="function"){var T=void 0;(p.tag&pr)!==rt?T="useLayoutEffect":(p.tag&Ui)!==rt?T="useInsertionEffect":T="useEffect";var D=void 0;b===null?D=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof b.then=="function"?D=`
162
-
163
- It looks like you wrote `+T+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
164
-
165
- `+T+`(() => {
166
- async function fetchData() {
167
- // You can await here
168
- const response = await MyAPI.getData(someId);
169
- // ...
170
- }
171
- fetchData();
172
- }, [someId]); // Or [] if effect doesn't need props or state
173
-
174
- Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:D=" You returned: "+b,c("%s must not return anything besides a function, which is used for clean-up.%s",T,D)}}}p=p.next}while(p!==d)}}function ZV(n,r){if((r.flags&Xt)!==rt)switch(r.tag){case $:{var o=r.stateNode.passiveEffectDuration,l=r.memoizedProps,d=l.id,p=l.onPostCommit,g=HR(),b=r.alternate===null?"mount":"update";UR()&&(b="nested-update"),typeof p=="function"&&p(d,b,o,g);var T=r.return;e:for(;T!==null;){switch(T.tag){case y:var D=T.stateNode;D.passiveEffectDuration+=o;break e;case $:var O=T.stateNode;O.passiveEffectDuration+=o;break e}T=T.return}break}}}function JV(n,r,o,l){if((o.flags&dd)!==rt)switch(o.tag){case h:case P:case F:{if(!Nr)if(o.mode&Sn)try{qi(),Es(pr|hr,o)}finally{Yi(o)}else Es(pr|hr,o);break}case m:{var d=o.stateNode;if(o.flags&Xt&&!Nr)if(r===null)if(o.type===o.elementType&&!El&&(d.props!==o.memoizedProps&&c("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.",xt(o)||"instance"),d.state!==o.memoizedState&&c("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.",xt(o)||"instance")),o.mode&Sn)try{qi(),d.componentDidMount()}finally{Yi(o)}else d.componentDidMount();else{var p=o.elementType===o.type?r.memoizedProps:xi(o.type,r.memoizedProps),g=r.memoizedState;if(o.type===o.elementType&&!El&&(d.props!==o.memoizedProps&&c("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.",xt(o)||"instance"),d.state!==o.memoizedState&&c("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.",xt(o)||"instance")),o.mode&Sn)try{qi(),d.componentDidUpdate(p,g,d.__reactInternalSnapshotBeforeUpdate)}finally{Yi(o)}else d.componentDidUpdate(p,g,d.__reactInternalSnapshotBeforeUpdate)}var b=o.updateQueue;b!==null&&(o.type===o.elementType&&!El&&(d.props!==o.memoizedProps&&c("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.",xt(o)||"instance"),d.state!==o.memoizedState&&c("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.",xt(o)||"instance")),pR(o,b,d));break}case y:{var T=o.updateQueue;if(T!==null){var D=null;if(o.child!==null)switch(o.child.tag){case x:D=o.child.stateNode;break;case m:D=o.child.stateNode;break}pR(o,T,D)}break}case x:{var O=o.stateNode;if(r===null&&o.flags&Xt){var H=o.type,B=o.memoizedProps;g5(O,H,B)}break}case R:break;case S:break;case $:{{var ne=o.memoizedProps,ie=ne.onCommit,de=ne.onRender,Ne=o.stateNode.effectDuration,Ke=HR(),qe=r===null?"mount":"update";UR()&&(qe="nested-update"),typeof de=="function"&&de(o.memoizedProps.id,qe,o.actualDuration,o.treeBaseDuration,o.actualStartTime,Ke);{typeof ie=="function"&&ie(o.memoizedProps.id,qe,Ne,Ke),KB(o);var Wt=o.return;e:for(;Wt!==null;){switch(Wt.tag){case y:var zt=Wt.stateNode;zt.effectDuration+=Ne;break e;case $:var Z=Wt.stateNode;Z.effectDuration+=Ne;break e}Wt=Wt.return}}}break}case L:{sB(n,o);break}case ue:case se:case Ge:case Y:case ce:case G:break;default:throw new 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.")}Nr||o.flags&ls&&_k(o)}function eB(n){switch(n.tag){case h:case P:case F:{if(n.mode&Sn)try{qi(),Rk(n,n.return)}finally{Yi(n)}else Rk(n,n.return);break}case m:{var r=n.stateNode;typeof r.componentDidMount=="function"&&qV(n,n.return,r),kk(n,n.return);break}case x:{kk(n,n.return);break}}}function tB(n,r){for(var o=null,l=n;;){if(l.tag===x){if(o===null){o=l;try{var d=l.stateNode;r?k5(d):_5(l.stateNode,l.memoizedProps)}catch(g){kn(n,n.return,g)}}}else if(l.tag===R){if(o===null)try{var p=l.stateNode;r?D5(p):A5(p,l.memoizedProps)}catch(g){kn(n,n.return,g)}}else if(!((l.tag===Y||l.tag===ce)&&l.memoizedState!==null&&l!==n)){if(l.child!==null){l.child.return=l,l=l.child;continue}}if(l===n)return;for(;l.sibling===null;){if(l.return===null||l.return===n)return;o===l&&(o=null),l=l.return}o===l&&(o=null),l.sibling.return=l.return,l=l.sibling}}function _k(n){var r=n.ref;if(r!==null){var o=n.stateNode,l;switch(n.tag){case x:l=o;break;default:l=o}if(typeof r=="function"){var d;if(n.mode&Sn)try{qi(),d=r(l)}finally{Yi(n)}else d=r(l);typeof d=="function"&&c("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",xt(n))}else r.hasOwnProperty("current")||c("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",xt(n)),r.current=l}}function nB(n){var r=n.alternate;r!==null&&(r.return=null),n.return=null}function Ak(n){var r=n.alternate;r!==null&&(n.alternate=null,Ak(r));{if(n.child=null,n.deletions=null,n.sibling=null,n.tag===x){var o=n.stateNode;o!==null&&lI(o)}n.stateNode=null,n._debugOwner=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}}function rB(n){for(var r=n.return;r!==null;){if(Ok(r))return r;r=r.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function Ok(n){return n.tag===x||n.tag===y||n.tag===S}function Mk(n){var r=n;e:for(;;){for(;r.sibling===null;){if(r.return===null||Ok(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==x&&r.tag!==R&&r.tag!==ae;){if(r.flags&lr||r.child===null||r.tag===S)continue e;r.child.return=r,r=r.child}if(!(r.flags&lr))return r.stateNode}}function aB(n){var r=rB(n);switch(r.tag){case x:{var o=r.stateNode;r.flags&cd&&(P1(o),r.flags&=~cd);var l=Mk(n);aS(n,l,o);break}case y:case S:{var d=r.stateNode.containerInfo,p=Mk(n);rS(n,p,d);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function rS(n,r,o){var l=n.tag,d=l===x||l===R;if(d){var p=n.stateNode;r?C5(o,p,r):x5(o,p)}else if(l!==S){var g=n.child;if(g!==null){rS(g,r,o);for(var b=g.sibling;b!==null;)rS(b,r,o),b=b.sibling}}}function aS(n,r,o){var l=n.tag,d=l===x||l===R;if(d){var p=n.stateNode;r?w5(o,p,r):S5(o,p)}else if(l!==S){var g=n.child;if(g!==null){aS(g,r,o);for(var b=g.sibling;b!==null;)aS(b,r,o),b=b.sibling}}}var Pr=null,Ti=!1;function iB(n,r,o){{var l=r;e:for(;l!==null;){switch(l.tag){case x:{Pr=l.stateNode,Ti=!1;break e}case y:{Pr=l.stateNode.containerInfo,Ti=!0;break e}case S:{Pr=l.stateNode.containerInfo,Ti=!0;break e}}l=l.return}if(Pr===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Nk(n,r,o),Pr=null,Ti=!1}nB(o)}function Rs(n,r,o){for(var l=o.child;l!==null;)Nk(n,r,l),l=l.sibling}function Nk(n,r,o){switch(o$(o),o.tag){case x:Nr||qc(o,r);case R:{{var l=Pr,d=Ti;Pr=null,Rs(n,r,o),Pr=l,Ti=d,Pr!==null&&(Ti?E5(Pr,o.stateNode):T5(Pr,o.stateNode))}return}case ae:{Pr!==null&&(Ti?R5(Pr,o.stateNode):mb(Pr,o.stateNode));return}case S:{{var p=Pr,g=Ti;Pr=o.stateNode.containerInfo,Ti=!0,Rs(n,r,o),Pr=p,Ti=g}return}case h:case P:case U:case F:{if(!Nr){var b=o.updateQueue;if(b!==null){var T=b.lastEffect;if(T!==null){var D=T.next,O=D;do{var H=O,B=H.destroy,ne=H.tag;B!==void 0&&((ne&Ui)!==ba?Pm(o,r,B):(ne&pr)!==ba&&(gE(o),o.mode&Sn?(qi(),Pm(o,r,B),Yi(o)):Pm(o,r,B),yE())),O=O.next}while(O!==D)}}}Rs(n,r,o);return}case m:{if(!Nr){qc(o,r);var ie=o.stateNode;typeof ie.componentWillUnmount=="function"&&nS(o,r,ie)}Rs(n,r,o);return}case Ge:{Rs(n,r,o);return}case Y:{if(o.mode&Ut){var de=Nr;Nr=de||o.memoizedState!==null,Rs(n,r,o),Nr=de}else Rs(n,r,o);break}default:{Rs(n,r,o);return}}}function oB(n){n.memoizedState}function sB(n,r){var o=r.memoizedState;if(o===null){var l=r.alternate;if(l!==null){var d=l.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&W5(p)}}}}function Pk(n){var r=n.updateQueue;if(r!==null){n.updateQueue=null;var o=n.stateNode;o===null&&(o=n.stateNode=new HV),r.forEach(function(l){var d=rU.bind(null,n,l);if(!o.has(l)){if(o.add(l),hi)if(Wc!==null&&Yc!==null)_f(Yc,Wc);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");l.then(d,d)}})}}function lB(n,r,o){Wc=o,Yc=n,An(r),jk(r,n),An(r),Wc=null,Yc=null}function Ei(n,r,o){var l=r.deletions;if(l!==null)for(var d=0;d<l.length;d++){var p=l[d];try{iB(n,r,p)}catch(T){kn(p,r,T)}}var g=os();if(r.subtreeFlags&uy)for(var b=r.child;b!==null;)An(b),jk(b,n),b=b.sibling;An(g)}function jk(n,r,o){var l=n.alternate,d=n.flags;switch(n.tag){case h:case P:case U:case F:{if(Ei(r,n),Gi(n),d&Xt){try{Ci(Ui|hr,n,n.return),Es(Ui|hr,n)}catch(ct){kn(n,n.return,ct)}if(n.mode&Sn){try{qi(),Ci(pr|hr,n,n.return)}catch(ct){kn(n,n.return,ct)}Yi(n)}else try{Ci(pr|hr,n,n.return)}catch(ct){kn(n,n.return,ct)}}return}case m:{Ei(r,n),Gi(n),d&ls&&l!==null&&qc(l,l.return);return}case x:{Ei(r,n),Gi(n),d&ls&&l!==null&&qc(l,l.return);{if(n.flags&cd){var p=n.stateNode;try{P1(p)}catch(ct){kn(n,n.return,ct)}}if(d&Xt){var g=n.stateNode;if(g!=null){var b=n.memoizedProps,T=l!==null?l.memoizedProps:b,D=n.type,O=n.updateQueue;if(n.updateQueue=null,O!==null)try{y5(g,O,D,T,b,n)}catch(ct){kn(n,n.return,ct)}}}}return}case R:{if(Ei(r,n),Gi(n),d&Xt){if(n.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var H=n.stateNode,B=n.memoizedProps,ne=l!==null?l.memoizedProps:B;try{b5(H,ne,B)}catch(ct){kn(n,n.return,ct)}}return}case y:{if(Ei(r,n),Gi(n),d&Xt&&l!==null){var ie=l.memoizedState;if(ie.isDehydrated)try{H5(r.containerInfo)}catch(ct){kn(n,n.return,ct)}}return}case S:{Ei(r,n),Gi(n);return}case L:{Ei(r,n),Gi(n);var de=n.child;if(de.flags&il){var Ne=de.stateNode,Ke=de.memoizedState,qe=Ke!==null;if(Ne.isHidden=qe,qe){var Wt=de.alternate!==null&&de.alternate.memoizedState!==null;Wt||BB()}}if(d&Xt){try{oB(n)}catch(ct){kn(n,n.return,ct)}Pk(n)}return}case Y:{var zt=l!==null&&l.memoizedState!==null;if(n.mode&Ut){var Z=Nr;Nr=Z||zt,Ei(r,n),Nr=Z}else Ei(r,n);if(Gi(n),d&il){var fe=n.stateNode,J=n.memoizedState,Ce=J!==null,ze=n;if(fe.isHidden=Ce,Ce&&!zt&&(ze.mode&Ut)!==Ze){Be=ze;for(var Pe=ze.child;Pe!==null;)Be=Pe,uB(Pe),Pe=Pe.sibling}tB(ze,Ce)}return}case ue:{Ei(r,n),Gi(n),d&Xt&&Pk(n);return}case Ge:return;default:{Ei(r,n),Gi(n);return}}}function Gi(n){var r=n.flags;if(r&lr){try{aB(n)}catch(o){kn(n,n.return,o)}n.flags&=~lr}r&To&&(n.flags&=~To)}function cB(n,r,o){Wc=o,Yc=r,Be=n,Lk(n,r,o),Wc=null,Yc=null}function Lk(n,r,o){for(var l=(n.mode&Ut)!==Ze;Be!==null;){var d=Be,p=d.child;if(d.tag===Y&&l){var g=d.memoizedState!==null,b=g||Nm;if(b){iS(n,r,o);continue}else{var T=d.alternate,D=T!==null&&T.memoizedState!==null,O=D||Nr,H=Nm,B=Nr;Nm=b,Nr=O,Nr&&!B&&(Be=d,dB(d));for(var ne=p;ne!==null;)Be=ne,Lk(ne,r,o),ne=ne.sibling;Be=d,Nm=H,Nr=B,iS(n,r,o);continue}}(d.subtreeFlags&dd)!==rt&&p!==null?(p.return=d,Be=p):iS(n,r,o)}}function iS(n,r,o){for(;Be!==null;){var l=Be;if((l.flags&dd)!==rt){var d=l.alternate;An(l);try{JV(r,d,l,o)}catch(g){kn(l,l.return,g)}or()}if(l===n){Be=null;return}var p=l.sibling;if(p!==null){p.return=l.return,Be=p;return}Be=l.return}}function uB(n){for(;Be!==null;){var r=Be,o=r.child;switch(r.tag){case h:case P:case U:case F:{if(r.mode&Sn)try{qi(),Ci(pr,r,r.return)}finally{Yi(r)}else Ci(pr,r,r.return);break}case m:{qc(r,r.return);var l=r.stateNode;typeof l.componentWillUnmount=="function"&&nS(r,r.return,l);break}case x:{qc(r,r.return);break}case Y:{var d=r.memoizedState!==null;if(d){$k(n);continue}break}}o!==null?(o.return=r,Be=o):$k(n)}}function $k(n){for(;Be!==null;){var r=Be;if(r===n){Be=null;return}var o=r.sibling;if(o!==null){o.return=r.return,Be=o;return}Be=r.return}}function dB(n){for(;Be!==null;){var r=Be,o=r.child;if(r.tag===Y){var l=r.memoizedState!==null;if(l){zk(n);continue}}o!==null?(o.return=r,Be=o):zk(n)}}function zk(n){for(;Be!==null;){var r=Be;An(r);try{eB(r)}catch(l){kn(r,r.return,l)}if(or(),r===n){Be=null;return}var o=r.sibling;if(o!==null){o.return=r.return,Be=o;return}Be=r.return}}function fB(n,r,o,l){Be=r,hB(r,n,o,l)}function hB(n,r,o,l){for(;Be!==null;){var d=Be,p=d.child;(d.subtreeFlags&hc)!==rt&&p!==null?(p.return=d,Be=p):pB(n,r,o,l)}}function pB(n,r,o,l){for(;Be!==null;){var d=Be;if((d.flags&fi)!==rt){An(d);try{mB(r,d,o,l)}catch(g){kn(d,d.return,g)}or()}if(d===n){Be=null;return}var p=d.sibling;if(p!==null){p.return=d.return,Be=p;return}Be=d.return}}function mB(n,r,o,l){switch(r.tag){case h:case P:case F:{if(r.mode&Sn){T0();try{Es(Or|hr,r)}finally{C0(r)}}else Es(Or|hr,r);break}}}function vB(n){Be=n,gB()}function gB(){for(;Be!==null;){var n=Be,r=n.child;if((Be.flags&rl)!==rt){var o=n.deletions;if(o!==null){for(var l=0;l<o.length;l++){var d=o[l];Be=d,SB(d,n)}{var p=n.alternate;if(p!==null){var g=p.child;if(g!==null){p.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(g!==null)}}}Be=n}}(n.subtreeFlags&hc)!==rt&&r!==null?(r.return=n,Be=r):yB()}}function yB(){for(;Be!==null;){var n=Be;(n.flags&fi)!==rt&&(An(n),bB(n),or());var r=n.sibling;if(r!==null){r.return=n.return,Be=r;return}Be=n.return}}function bB(n){switch(n.tag){case h:case P:case F:{n.mode&Sn?(T0(),Ci(Or|hr,n,n.return),C0(n)):Ci(Or|hr,n,n.return);break}}}function SB(n,r){for(;Be!==null;){var o=Be;An(o),wB(o,r),or();var l=o.child;l!==null?(l.return=o,Be=l):xB(n)}}function xB(n){for(;Be!==null;){var r=Be,o=r.sibling,l=r.return;if(Ak(r),r===n){Be=null;return}if(o!==null){o.return=l,Be=o;return}Be=l}}function wB(n,r){switch(n.tag){case h:case P:case F:{n.mode&Sn?(T0(),Ci(Or,n,r),C0(n)):Ci(Or,n,r);break}}}function CB(n){switch(n.tag){case h:case P:case F:{try{Es(pr|hr,n)}catch(o){kn(n,n.return,o)}break}case m:{var r=n.stateNode;try{r.componentDidMount()}catch(o){kn(n,n.return,o)}break}}}function TB(n){switch(n.tag){case h:case P:case F:{try{Es(Or|hr,n)}catch(r){kn(n,n.return,r)}break}}}function EB(n){switch(n.tag){case h:case P:case F:{try{Ci(pr|hr,n,n.return)}catch(o){kn(n,n.return,o)}break}case m:{var r=n.stateNode;typeof r.componentWillUnmount=="function"&&nS(n,n.return,r);break}}}function RB(n){switch(n.tag){case h:case P:case F:try{Ci(Or|hr,n,n.return)}catch(r){kn(n,n.return,r)}}}if(typeof Symbol=="function"&&Symbol.for){var yf=Symbol.for;yf("selector.component"),yf("selector.has_pseudo_class"),yf("selector.role"),yf("selector.test_id"),yf("selector.text")}var kB=[];function DB(){kB.forEach(function(n){return n()})}var _B=a.ReactCurrentActQueue;function AB(n){{var r=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,o=typeof jest<"u";return o&&r!==!1}}function Fk(){{var n=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!n&&_B.current!==null&&c("The current testing environment is not configured to support act(...)"),n}}var OB=Math.ceil,oS=a.ReactCurrentDispatcher,sS=a.ReactCurrentOwner,jr=a.ReactCurrentBatchConfig,Ri=a.ReactCurrentActQueue,gr=0,Ik=1,Lr=2,Ka=4,$o=0,bf=1,Rl=2,jm=3,Sf=4,Vk=5,lS=6,Ht=gr,ia=null,Hn=null,yr=Se,Xi=Se,cS=vs(Se),br=$o,xf=null,Lm=Se,wf=Se,$m=Se,Cf=null,Sa=null,uS=0,Bk=500,Uk=1/0,MB=500,zo=null;function Tf(){Uk=Cr()+MB}function Hk(){return Uk}var zm=!1,dS=null,Gc=null,kl=!1,ks=null,Ef=Se,fS=[],hS=null,NB=50,Rf=0,pS=null,mS=!1,Fm=!1,PB=50,Xc=0,Im=null,kf=On,Vm=Se,Wk=!1;function Bm(){return ia}function oa(){return(Ht&(Lr|Ka))!==gr?Cr():(kf!==On||(kf=Cr()),kf)}function Ds(n){var r=n.mode;if((r&Ut)===Ze)return gt;if((Ht&Lr)!==gr&&yr!==Se)return yd(yr);var o=_I()!==DI;if(o){if(jr.transition!==null){var l=jr.transition;l._updatedFibers||(l._updatedFibers=new Set),l._updatedFibers.add(n)}return Vm===Er&&(Vm=RE()),Vm}var d=pi();if(d!==Er)return d;var p=h5();return p}function jB(n){var r=n.mode;return(r&Ut)===Ze?gt:$$()}function Sr(n,r,o,l){iU(),Wk&&c("useInsertionEffect must not schedule updates."),mS&&(Fm=!0),bd(n,o,l),(Ht&Lr)!==Se&&n===ia?lU(r):(hi&&_E(n,r,o),cU(r),n===ia&&((Ht&Lr)===gr&&(wf=_t(wf,o)),br===Sf&&_s(n,yr)),xa(n,l),o===gt&&Ht===gr&&(r.mode&Ut)===Ze&&!Ri.isBatchingLegacy&&(Tf(),W1()))}function LB(n,r,o){var l=n.current;l.lanes=r,bd(n,r,o),xa(n,o)}function $B(n){return(Ht&Lr)!==gr}function xa(n,r){var o=n.callbackNode;O$(n,r);var l=cp(n,n===ia?yr:Se);if(l===Se){o!==null&&sD(o),n.callbackNode=null,n.callbackPriority=Er;return}var d=dl(l),p=n.callbackPriority;if(p===d&&!(Ri.current!==null&&o!==wS)){o==null&&p!==gt&&c("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}o!=null&&sD(o);var g;if(d===gt)n.tag===gs?(Ri.isBatchingLegacy!==null&&(Ri.didScheduleLegacyUpdate=!0),dI(Gk.bind(null,n))):H1(Gk.bind(null,n)),Ri.current!==null?Ri.current.push(ys):m5(function(){(Ht&(Lr|Ka))===gr&&ys()}),g=null;else{var b;switch(ME(l)){case Oa:b=ip;break;case Do:b=dy;break;case _o:b=ll;break;case fp:b=fy;break;default:b=ll;break}g=CS(b,Yk.bind(null,n))}n.callbackPriority=d,n.callbackNode=g}function Yk(n,r){if(tV(),kf=On,Vm=Se,(Ht&(Lr|Ka))!==gr)throw new Error("Should not already be working.");var o=n.callbackNode,l=Io();if(l&&n.callbackNode!==o)return null;var d=cp(n,n===ia?yr:Se);if(d===Se)return null;var p=!up(n,d)&&!L$(n,d)&&!r,g=p?qB(n,d):Hm(n,d);if(g!==$o){if(g===Rl){var b=Py(n);b!==Se&&(d=b,g=vS(n,b))}if(g===bf){var T=xf;throw Dl(n,Se),_s(n,d),xa(n,Cr()),T}if(g===lS)_s(n,d);else{var D=!up(n,d),O=n.current.alternate;if(D&&!FB(O)){if(g=Hm(n,d),g===Rl){var H=Py(n);H!==Se&&(d=H,g=vS(n,H))}if(g===bf){var B=xf;throw Dl(n,Se),_s(n,d),xa(n,Cr()),B}}n.finishedWork=O,n.finishedLanes=d,zB(n,g,d)}}return xa(n,Cr()),n.callbackNode===o?Yk.bind(null,n):null}function vS(n,r){var o=Cf;if(hp(n)){var l=Dl(n,r);l.flags|=Co,aI(n.containerInfo)}var d=Hm(n,r);if(d!==Rl){var p=Sa;Sa=o,p!==null&&qk(p)}return d}function qk(n){Sa===null?Sa=n:Sa.push.apply(Sa,n)}function zB(n,r,o){switch(r){case $o:case bf:throw new Error("Root did not complete. This is a bug in React.");case Rl:{_l(n,Sa,zo);break}case jm:{if(_s(n,o),TE(o)&&!lD()){var l=uS+Bk-Cr();if(l>10){var d=cp(n,Se);if(d!==Se)break;var p=n.suspendedLanes;if(!bc(p,o)){oa(),DE(n,p);break}n.timeoutHandle=hb(_l.bind(null,n,Sa,zo),l);break}}_l(n,Sa,zo);break}case Sf:{if(_s(n,o),j$(o))break;if(!lD()){var g=_$(n,o),b=g,T=Cr()-b,D=aU(T)-T;if(D>10){n.timeoutHandle=hb(_l.bind(null,n,Sa,zo),D);break}}_l(n,Sa,zo);break}case Vk:{_l(n,Sa,zo);break}default:throw new Error("Unknown root exit status.")}}function FB(n){for(var r=n;;){if(r.flags&rp){var o=r.updateQueue;if(o!==null){var l=o.stores;if(l!==null)for(var d=0;d<l.length;d++){var p=l[d],g=p.getSnapshot,b=p.value;try{if(!Na(g(),b))return!1}catch{return!1}}}}var T=r.child;if(r.subtreeFlags&rp&&T!==null){T.return=r,r=T;continue}if(r===n)return!0;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}return!0}function _s(n,r){r=dp(r,$m),r=dp(r,wf),F$(n,r)}function Gk(n){if(nV(),(Ht&(Lr|Ka))!==gr)throw new Error("Should not already be working.");Io();var r=cp(n,Se);if(!Aa(r,gt))return xa(n,Cr()),null;var o=Hm(n,r);if(n.tag!==gs&&o===Rl){var l=Py(n);l!==Se&&(r=l,o=vS(n,l))}if(o===bf){var d=xf;throw Dl(n,Se),_s(n,r),xa(n,Cr()),d}if(o===lS)throw new Error("Root did not complete. This is a bug in React.");var p=n.current.alternate;return n.finishedWork=p,n.finishedLanes=r,_l(n,Sa,zo),xa(n,Cr()),null}function IB(n,r){r!==Se&&(zy(n,_t(r,gt)),xa(n,Cr()),(Ht&(Lr|Ka))===gr&&(Tf(),ys()))}function gS(n,r){var o=Ht;Ht|=Ik;try{return n(r)}finally{Ht=o,Ht===gr&&!Ri.isBatchingLegacy&&(Tf(),W1())}}function VB(n,r,o,l,d){var p=pi(),g=jr.transition;try{return jr.transition=null,Rr(Oa),n(r,o,l,d)}finally{Rr(p),jr.transition=g,Ht===gr&&Tf()}}function Fo(n){ks!==null&&ks.tag===gs&&(Ht&(Lr|Ka))===gr&&Io();var r=Ht;Ht|=Ik;var o=jr.transition,l=pi();try{return jr.transition=null,Rr(Oa),n?n():void 0}finally{Rr(l),jr.transition=o,Ht=r,(Ht&(Lr|Ka))===gr&&ys()}}function Xk(){return(Ht&(Lr|Ka))!==gr}function Um(n,r){qr(cS,Xi,n),Xi=_t(Xi,r)}function yS(n){Xi=cS.current,Yr(cS,n)}function Dl(n,r){n.finishedWork=null,n.finishedLanes=Se;var o=n.timeoutHandle;if(o!==pb&&(n.timeoutHandle=pb,p5(o)),Hn!==null)for(var l=Hn.return;l!==null;){var d=l.alternate;Tk(d,l),l=l.return}ia=n;var p=Al(n.current,null);return Hn=p,yr=Xi=r,br=$o,xf=null,Lm=Se,wf=Se,$m=Se,Cf=null,Sa=null,LI(),yi.discardPendingWarnings(),p}function Kk(n,r){do{var o=Hn;try{if(Jp(),SR(),or(),sS.current=null,o===null||o.return===null){br=bf,xf=r,Hn=null;return}if(Xe&&o.mode&Sn&&Dm(o,!0),Ue)if(mc(),r!==null&&typeof r=="object"&&typeof r.then=="function"){var l=r;g$(o,l,yr)}else v$(o,r,yr);dV(n,o.return,o,r,yr),eD(o)}catch(d){r=d,Hn===o&&o!==null?(o=o.return,Hn=o):o=Hn;continue}return}while(!0)}function Qk(){var n=oS.current;return oS.current=Cm,n===null?Cm:n}function Zk(n){oS.current=n}function BB(){uS=Cr()}function Df(n){Lm=_t(n,Lm)}function UB(){br===$o&&(br=jm)}function bS(){(br===$o||br===jm||br===Rl)&&(br=Sf),ia!==null&&(jy(Lm)||jy(wf))&&_s(ia,yr)}function HB(n){br!==Sf&&(br=Rl),Cf===null?Cf=[n]:Cf.push(n)}function WB(){return br===$o}function Hm(n,r){var o=Ht;Ht|=Lr;var l=Qk();if(ia!==n||yr!==r){if(hi){var d=n.memoizedUpdaters;d.size>0&&(_f(n,yr),d.clear()),AE(n,r)}zo=OE(),Dl(n,r)}bE(r);do try{YB();break}catch(p){Kk(n,p)}while(!0);if(Jp(),Ht=o,Zk(l),Hn!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return SE(),ia=null,yr=Se,br}function YB(){for(;Hn!==null;)Jk(Hn)}function qB(n,r){var o=Ht;Ht|=Lr;var l=Qk();if(ia!==n||yr!==r){if(hi){var d=n.memoizedUpdaters;d.size>0&&(_f(n,yr),d.clear()),AE(n,r)}zo=OE(),Tf(),Dl(n,r)}bE(r);do try{GB();break}catch(p){Kk(n,p)}while(!0);return Jp(),Zk(l),Ht=o,Hn!==null?(w$(),$o):(SE(),ia=null,yr=Se,br)}function GB(){for(;Hn!==null&&!K2();)Jk(Hn)}function Jk(n){var r=n.alternate;An(n);var o;(n.mode&Sn)!==Ze?(w0(n),o=SS(r,n,Xi),Dm(n,!0)):o=SS(r,n,Xi),or(),n.memoizedProps=n.pendingProps,o===null?eD(n):Hn=o,sS.current=null}function eD(n){var r=n;do{var o=r.alternate,l=r.return;if((r.flags&ud)===rt){An(r);var d=void 0;if((r.mode&Sn)===Ze?d=Ck(o,r,Xi):(w0(r),d=Ck(o,r,Xi),Dm(r,!1)),or(),d!==null){Hn=d;return}}else{var p=UV(o,r);if(p!==null){p.flags&=H2,Hn=p;return}if((r.mode&Sn)!==Ze){Dm(r,!1);for(var g=r.actualDuration,b=r.child;b!==null;)g+=b.actualDuration,b=b.sibling;r.actualDuration=g}if(l!==null)l.flags|=ud,l.subtreeFlags=rt,l.deletions=null;else{br=lS,Hn=null;return}}var T=r.sibling;if(T!==null){Hn=T;return}r=l,Hn=r}while(r!==null);br===$o&&(br=Vk)}function _l(n,r,o){var l=pi(),d=jr.transition;try{jr.transition=null,Rr(Oa),XB(n,r,o,l)}finally{jr.transition=d,Rr(l)}return null}function XB(n,r,o,l){do Io();while(ks!==null);if(oU(),(Ht&(Lr|Ka))!==gr)throw new Error("Should not already be working.");var d=n.finishedWork,p=n.finishedLanes;if(c$(p),d===null)return vE(),null;if(p===Se&&c("root.finishedLanes should not be empty during a commit. This is a bug in React."),n.finishedWork=null,n.finishedLanes=Se,d===n.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");n.callbackNode=null,n.callbackPriority=Er;var g=_t(d.lanes,d.childLanes);I$(n,g),n===ia&&(ia=null,Hn=null,yr=Se),((d.subtreeFlags&hc)!==rt||(d.flags&hc)!==rt)&&(kl||(kl=!0,hS=o,CS(ll,function(){return Io(),null})));var b=(d.subtreeFlags&(cy|uy|dd|hc))!==rt,T=(d.flags&(cy|uy|dd|hc))!==rt;if(b||T){var D=jr.transition;jr.transition=null;var O=pi();Rr(Oa);var H=Ht;Ht|=Ka,sS.current=null,GV(n,d),WR(),lB(n,d,p),s5(n.containerInfo),n.current=d,y$(p),cB(d,n,p),b$(),Q2(),Ht=H,Rr(O),jr.transition=D}else n.current=d,WR();var B=kl;if(kl?(kl=!1,ks=n,Ef=p):(Xc=0,Im=null),g=n.pendingLanes,g===Se&&(Gc=null),B||aD(n.current,!1),a$(d.stateNode,l),hi&&n.memoizedUpdaters.clear(),DB(),xa(n,Cr()),r!==null)for(var ne=n.onRecoverableError,ie=0;ie<r.length;ie++){var de=r[ie],Ne=de.stack,Ke=de.digest;ne(de.value,{componentStack:Ne,digest:Ke})}if(zm){zm=!1;var qe=dS;throw dS=null,qe}return Aa(Ef,gt)&&n.tag!==gs&&Io(),g=n.pendingLanes,Aa(g,gt)?(eV(),n===pS?Rf++:(Rf=0,pS=n)):Rf=0,ys(),vE(),null}function Io(){if(ks!==null){var n=ME(Ef),r=H$(_o,n),o=jr.transition,l=pi();try{return jr.transition=null,Rr(r),QB()}finally{Rr(l),jr.transition=o}}return!1}function KB(n){fS.push(n),kl||(kl=!0,CS(ll,function(){return Io(),null}))}function QB(){if(ks===null)return!1;var n=hS;hS=null;var r=ks,o=Ef;if(ks=null,Ef=Se,(Ht&(Lr|Ka))!==gr)throw new Error("Cannot flush passive effects while already rendering.");mS=!0,Fm=!1,S$(o);var l=Ht;Ht|=Ka,vB(r.current),fB(r,r.current,o,n);{var d=fS;fS=[];for(var p=0;p<d.length;p++){var g=d[p];ZV(r,g)}}x$(),aD(r.current,!0),Ht=l,ys(),Fm?r===Im?Xc++:(Xc=0,Im=r):Xc=0,mS=!1,Fm=!1,i$(r);{var b=r.current.stateNode;b.effectDuration=0,b.passiveEffectDuration=0}return!0}function tD(n){return Gc!==null&&Gc.has(n)}function ZB(n){Gc===null?Gc=new Set([n]):Gc.add(n)}function JB(n){zm||(zm=!0,dS=n)}var eU=JB;function nD(n,r,o){var l=Tl(o,r),d=JR(n,l,gt),p=Ss(n,d,gt),g=oa();p!==null&&(bd(p,gt,g),xa(p,g))}function kn(n,r,o){if(WV(o),Af(!1),n.tag===y){nD(n,n,o);return}var l=null;for(l=r;l!==null;){if(l.tag===y){nD(l,n,o);return}else if(l.tag===m){var d=l.type,p=l.stateNode;if(typeof d.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&!tD(p)){var g=Tl(o,n),b=I0(l,g,gt),T=Ss(l,b,gt),D=oa();T!==null&&(bd(T,gt,D),xa(T,D));return}}l=l.return}c(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
175
-
176
- Error message:
177
-
178
- %s`,o)}function tU(n,r,o){var l=n.pingCache;l!==null&&l.delete(r);var d=oa();DE(n,o),uU(n),ia===n&&bc(yr,o)&&(br===Sf||br===jm&&TE(yr)&&Cr()-uS<Bk?Dl(n,Se):$m=_t($m,o)),xa(n,d)}function rD(n,r){r===Er&&(r=jB(n));var o=oa(),l=ya(n,r);l!==null&&(bd(l,r,o),xa(l,o))}function nU(n){var r=n.memoizedState,o=Er;r!==null&&(o=r.retryLane),rD(n,o)}function rU(n,r){var o=Er,l;switch(n.tag){case L:l=n.stateNode;var d=n.memoizedState;d!==null&&(o=d.retryLane);break;case ue:l=n.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}l!==null&&l.delete(r),rD(n,o)}function aU(n){return n<120?120:n<480?480:n<1080?1080:n<1920?1920:n<3e3?3e3:n<4320?4320:OB(n/1960)*1960}function iU(){if(Rf>NB)throw Rf=0,pS=null,new 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.");Xc>PB&&(Xc=0,Im=null,c("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."))}function oU(){yi.flushLegacyContextWarning(),yi.flushPendingUnsafeLifecycleWarnings()}function aD(n,r){An(n),Wm(n,Eo,EB),r&&Wm(n,ap,RB),Wm(n,Eo,CB),r&&Wm(n,ap,TB),or()}function Wm(n,r,o){for(var l=n,d=null;l!==null;){var p=l.subtreeFlags&r;l!==d&&l.child!==null&&p!==rt?l=l.child:((l.flags&r)!==rt&&o(l),l.sibling!==null?l=l.sibling:l=d=l.return)}}var Ym=null;function iD(n){{if((Ht&Lr)!==gr||!(n.mode&Ut))return;var r=n.tag;if(r!==v&&r!==y&&r!==m&&r!==h&&r!==P&&r!==U&&r!==F)return;var o=xt(n)||"ReactComponent";if(Ym!==null){if(Ym.has(o))return;Ym.add(o)}else Ym=new Set([o]);var l=tr;try{An(n),c("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 later calls tries to update the component. Move this work to useEffect instead.")}finally{l?An(n):or()}}}var SS;{var sU=null;SS=function(n,r,o){var l=hD(sU,r);try{return yk(n,r,o)}catch(p){if(bI()||p!==null&&typeof p=="object"&&typeof p.then=="function")throw p;if(Jp(),SR(),Tk(n,r),hD(r,l),r.mode&Sn&&w0(r),ry(null,yk,null,n,r,o),I2()){var d=ay();typeof d=="object"&&d!==null&&d._suppressLogging&&typeof p=="object"&&p!==null&&!p._suppressLogging&&(p._suppressLogging=!0)}throw p}}}var oD=!1,xS;xS=new Set;function lU(n){if(ui&&!QI())switch(n.tag){case h:case P:case F:{var r=Hn&&xt(Hn)||"Unknown",o=r;if(!xS.has(o)){xS.add(o);var l=xt(n)||"Unknown";c("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://reactjs.org/link/setstate-in-render",l,r,r)}break}case m:{oD||(c("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),oD=!0);break}}}function _f(n,r){if(hi){var o=n.memoizedUpdaters;o.forEach(function(l){_E(n,l,r)})}}var wS={};function CS(n,r){{var o=Ri.current;return o!==null?(o.push(r),wS):mE(n,r)}}function sD(n){if(n!==wS)return X2(n)}function lD(){return Ri.current!==null}function cU(n){{if(n.mode&Ut){if(!Fk())return}else if(!AB()||Ht!==gr||n.tag!==h&&n.tag!==P&&n.tag!==F)return;if(Ri.current===null){var r=tr;try{An(n),c(`An update to %s inside a test was not wrapped in act(...).
179
-
180
- When testing, code that causes React state updates should be wrapped into act(...):
181
-
182
- act(() => {
183
- /* fire events that update state */
184
- });
185
- /* assert on the output */
186
-
187
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,xt(n))}finally{r?An(n):or()}}}}function uU(n){n.tag!==gs&&Fk()&&Ri.current===null&&c(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
188
-
189
- When testing, code that resolves suspended data should be wrapped into act(...):
190
-
191
- act(() => {
192
- /* finish loading suspended data */
193
- });
194
- /* assert on the output */
195
-
196
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function Af(n){Wk=n}var Qa=null,Kc=null,dU=function(n){Qa=n};function Qc(n){{if(Qa===null)return n;var r=Qa(n);return r===void 0?n:r.current}}function TS(n){return Qc(n)}function ES(n){{if(Qa===null)return n;var r=Qa(n);if(r===void 0){if(n!=null&&typeof n.render=="function"){var o=Qc(n.render);if(n.render!==o){var l={$$typeof:he,render:o};return n.displayName!==void 0&&(l.displayName=n.displayName),l}}return n}return r.current}}function cD(n,r){{if(Qa===null)return!1;var o=n.elementType,l=r.type,d=!1,p=typeof l=="object"&&l!==null?l.$$typeof:null;switch(n.tag){case m:{typeof l=="function"&&(d=!0);break}case h:{(typeof l=="function"||p===Me)&&(d=!0);break}case P:{(p===he||p===Me)&&(d=!0);break}case U:case F:{(p===tt||p===Me)&&(d=!0);break}default:return!1}if(d){var g=Qa(o);if(g!==void 0&&g===Qa(l))return!0}return!1}}function uD(n){{if(Qa===null||typeof WeakSet!="function")return;Kc===null&&(Kc=new WeakSet),Kc.add(n)}}var fU=function(n,r){{if(Qa===null)return;var o=r.staleFamilies,l=r.updatedFamilies;Io(),Fo(function(){RS(n.current,l,o)})}},hU=function(n,r){{if(n.context!==Pa)return;Io(),Fo(function(){Of(r,n,null,null)})}};function RS(n,r,o){{var l=n.alternate,d=n.child,p=n.sibling,g=n.tag,b=n.type,T=null;switch(g){case h:case F:case m:T=b;break;case P:T=b.render;break}if(Qa===null)throw new Error("Expected resolveFamily to be set during hot reload.");var D=!1,O=!1;if(T!==null){var H=Qa(T);H!==void 0&&(o.has(H)?O=!0:r.has(H)&&(g===m?O=!0:D=!0))}if(Kc!==null&&(Kc.has(n)||l!==null&&Kc.has(l))&&(O=!0),O&&(n._debugNeedsRemount=!0),O||D){var B=ya(n,gt);B!==null&&Sr(B,n,gt,On)}d!==null&&!O&&RS(d,r,o),p!==null&&RS(p,r,o)}}var pU=function(n,r){{var o=new Set,l=new Set(r.map(function(d){return d.current}));return kS(n.current,l,o),o}};function kS(n,r,o){{var l=n.child,d=n.sibling,p=n.tag,g=n.type,b=null;switch(p){case h:case F:case m:b=g;break;case P:b=g.render;break}var T=!1;b!==null&&r.has(b)&&(T=!0),T?mU(n,o):l!==null&&kS(l,r,o),d!==null&&kS(d,r,o)}}function mU(n,r){{var o=vU(n,r);if(o)return;for(var l=n;;){switch(l.tag){case x:r.add(l.stateNode);return;case S:r.add(l.stateNode.containerInfo);return;case y:r.add(l.stateNode.containerInfo);return}if(l.return===null)throw new Error("Expected to reach root first.");l=l.return}}}function vU(n,r){for(var o=n,l=!1;;){if(o.tag===x)l=!0,r.add(o.stateNode);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)return l;for(;o.sibling===null;){if(o.return===null||o.return===n)return l;o=o.return}o.sibling.return=o.return,o=o.sibling}return!1}var DS;{DS=!1;try{var dD=Object.preventExtensions({})}catch{DS=!0}}function gU(n,r,o,l){this.tag=n,this.key=o,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=r,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=l,this.flags=rt,this.subtreeFlags=rt,this.deletions=null,this.lanes=Se,this.childLanes=Se,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!DS&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var ja=function(n,r,o,l){return new gU(n,r,o,l)};function _S(n){var r=n.prototype;return!!(r&&r.isReactComponent)}function yU(n){return typeof n=="function"&&!_S(n)&&n.defaultProps===void 0}function bU(n){if(typeof n=="function")return _S(n)?m:h;if(n!=null){var r=n.$$typeof;if(r===he)return P;if(r===tt)return U}return v}function Al(n,r){var o=n.alternate;o===null?(o=ja(n.tag,r,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o._debugSource=n._debugSource,o._debugOwner=n._debugOwner,o._debugHookTypes=n._debugHookTypes,o.alternate=n,n.alternate=o):(o.pendingProps=r,o.type=n.type,o.flags=rt,o.subtreeFlags=rt,o.deletions=null,o.actualDuration=0,o.actualStartTime=-1),o.flags=n.flags&Ro,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue;var l=n.dependencies;switch(o.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o.selfBaseDuration=n.selfBaseDuration,o.treeBaseDuration=n.treeBaseDuration,o._debugNeedsRemount=n._debugNeedsRemount,o.tag){case v:case h:case F:o.type=Qc(n.type);break;case m:o.type=TS(n.type);break;case P:o.type=ES(n.type);break}return o}function SU(n,r){n.flags&=Ro|lr;var o=n.alternate;if(o===null)n.childLanes=Se,n.lanes=r,n.child=null,n.subtreeFlags=rt,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null,n.selfBaseDuration=0,n.treeBaseDuration=0;else{n.childLanes=o.childLanes,n.lanes=o.lanes,n.child=o.child,n.subtreeFlags=rt,n.deletions=null,n.memoizedProps=o.memoizedProps,n.memoizedState=o.memoizedState,n.updateQueue=o.updateQueue,n.type=o.type;var l=o.dependencies;n.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},n.selfBaseDuration=o.selfBaseDuration,n.treeBaseDuration=o.treeBaseDuration}return n}function xU(n,r,o){var l;return n===Up?(l=Ut,r===!0&&(l|=Kn,l|=Fi)):l=Ze,hi&&(l|=Sn),ja(y,null,null,l)}function AS(n,r,o,l,d,p){var g=v,b=n;if(typeof n=="function")_S(n)?(g=m,b=TS(b)):b=Qc(b);else if(typeof n=="string")g=x;else e:switch(n){case z:return As(o.children,d,p,r);case ve:g=k,d|=Kn,(d&Ut)!==Ze&&(d|=Fi);break;case _e:return wU(o,d,p,r);case Re:return CU(o,d,p,r);case Ae:return TU(o,d,p,r);case Qt:return fD(o,d,p,r);case nn:case He:case Zt:case Br:case tn:default:{if(typeof n=="object"&&n!==null)switch(n.$$typeof){case M:g=_;break e;case le:g=A;break e;case he:g=P,b=ES(b);break e;case tt:g=U;break e;case Me:g=Q,b=null;break e}var T="";{(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(T+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var D=l?xt(l):null;D&&(T+=`
197
-
198
- Check the render method of \``+D+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(n==null?n:typeof n)+"."+T))}}var O=ja(g,o,r,d);return O.elementType=n,O.type=b,O.lanes=p,O._debugOwner=l,O}function OS(n,r,o){var l=null;l=n._owner;var d=n.type,p=n.key,g=n.props,b=AS(d,p,g,l,r,o);return b._debugSource=n._source,b._debugOwner=n._owner,b}function As(n,r,o,l){var d=ja(E,n,l,r);return d.lanes=o,d}function wU(n,r,o,l){typeof n.id!="string"&&c('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof n.id);var d=ja($,n,l,r|Sn);return d.elementType=_e,d.lanes=o,d.stateNode={effectDuration:0,passiveEffectDuration:0},d}function CU(n,r,o,l){var d=ja(L,n,l,r);return d.elementType=Re,d.lanes=o,d}function TU(n,r,o,l){var d=ja(ue,n,l,r);return d.elementType=Ae,d.lanes=o,d}function fD(n,r,o,l){var d=ja(Y,n,l,r);d.elementType=Qt,d.lanes=o;var p={isHidden:!1};return d.stateNode=p,d}function MS(n,r,o){var l=ja(R,n,null,r);return l.lanes=o,l}function EU(){var n=ja(x,null,null,Ze);return n.elementType="DELETED",n}function RU(n){var r=ja(ae,null,null,Ze);return r.stateNode=n,r}function NS(n,r,o){var l=n.children!==null?n.children:[],d=ja(S,l,n.key,r);return d.lanes=o,d.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},d}function hD(n,r){return n===null&&(n=ja(v,null,null,Ze)),n.tag=r.tag,n.key=r.key,n.elementType=r.elementType,n.type=r.type,n.stateNode=r.stateNode,n.return=r.return,n.child=r.child,n.sibling=r.sibling,n.index=r.index,n.ref=r.ref,n.pendingProps=r.pendingProps,n.memoizedProps=r.memoizedProps,n.updateQueue=r.updateQueue,n.memoizedState=r.memoizedState,n.dependencies=r.dependencies,n.mode=r.mode,n.flags=r.flags,n.subtreeFlags=r.subtreeFlags,n.deletions=r.deletions,n.lanes=r.lanes,n.childLanes=r.childLanes,n.alternate=r.alternate,n.actualDuration=r.actualDuration,n.actualStartTime=r.actualStartTime,n.selfBaseDuration=r.selfBaseDuration,n.treeBaseDuration=r.treeBaseDuration,n._debugSource=r._debugSource,n._debugOwner=r._debugOwner,n._debugNeedsRemount=r._debugNeedsRemount,n._debugHookTypes=r._debugHookTypes,n}function kU(n,r,o,l,d){this.tag=r,this.containerInfo=n,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=pb,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=Er,this.eventTimes=$y(Se),this.expirationTimes=$y(On),this.pendingLanes=Se,this.suspendedLanes=Se,this.pingedLanes=Se,this.expiredLanes=Se,this.mutableReadLanes=Se,this.finishedLanes=Se,this.entangledLanes=Se,this.entanglements=$y(Se),this.identifierPrefix=l,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var p=this.pendingUpdatersLaneMap=[],g=0;g<py;g++)p.push(new Set)}switch(r){case Up:this._debugRootType=o?"hydrateRoot()":"createRoot()";break;case gs:this._debugRootType=o?"hydrate()":"render()";break}}function pD(n,r,o,l,d,p,g,b,T,D){var O=new kU(n,r,o,b,T),H=xU(r,p);O.current=H,H.stateNode=O;{var B={element:l,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null};H.memoizedState=B}return Yb(H),O}var PS="18.3.1";function DU(n,r,o){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Kt(l),{$$typeof:er,key:l==null?null:""+l,children:n,containerInfo:r,implementation:o}}var jS,LS;jS=!1,LS={};function mD(n){if(!n)return Pa;var r=dc(n),o=uI(r);if(r.tag===m){var l=r.type;if(Bi(l))return B1(r,l,o)}return o}function _U(n,r){{var o=dc(n);if(o===void 0){if(typeof n.render=="function")throw new Error("Unable to find node on an unmounted component.");var l=Object.keys(n).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+l)}var d=fE(o);if(d===null)return null;if(d.mode&Kn){var p=xt(o)||"Component";if(!LS[p]){LS[p]=!0;var g=tr;try{An(d),o.mode&Kn?c("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",r,r,p):c("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",r,r,p)}finally{g?An(g):or()}}}return d.stateNode}}function vD(n,r,o,l,d,p,g,b){var T=!1,D=null;return pD(n,r,T,D,o,l,d,p,g)}function gD(n,r,o,l,d,p,g,b,T,D){var O=!0,H=pD(o,l,O,n,d,p,g,b,T);H.context=mD(null);var B=H.current,ne=oa(),ie=Ds(B),de=jo(ne,ie);return de.callback=r??null,Ss(B,de,ie),LB(H,ie,ne),H}function Of(n,r,o,l){r$(r,n);var d=r.current,p=oa(),g=Ds(d);C$(g);var b=mD(o);r.context===null?r.context=b:r.pendingContext=b,ui&&tr!==null&&!jS&&(jS=!0,c(`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.
199
-
200
- Check the render method of %s.`,xt(tr)||"Unknown"));var T=jo(p,g);T.payload={element:n},l=l===void 0?null:l,l!==null&&(typeof l!="function"&&c("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",l),T.callback=l);var D=Ss(d,T,g);return D!==null&&(Sr(D,d,g,p),am(D,d,g)),g}function qm(n){var r=n.current;if(!r.child)return null;switch(r.child.tag){case x:return r.child.stateNode;default:return r.child.stateNode}}function AU(n){switch(n.tag){case y:{var r=n.stateNode;if(hp(r)){var o=M$(r);IB(r,o)}break}case L:{Fo(function(){var d=ya(n,gt);if(d!==null){var p=oa();Sr(d,n,gt,p)}});var l=gt;$S(n,l);break}}}function yD(n,r){var o=n.memoizedState;o!==null&&o.dehydrated!==null&&(o.retryLane=z$(o.retryLane,r))}function $S(n,r){yD(n,r);var o=n.alternate;o&&yD(o,r)}function OU(n){if(n.tag===L){var r=md,o=ya(n,r);if(o!==null){var l=oa();Sr(o,n,r,l)}$S(n,r)}}function MU(n){if(n.tag===L){var r=Ds(n),o=ya(n,r);if(o!==null){var l=oa();Sr(o,n,r,l)}$S(n,r)}}function bD(n){var r=G2(n);return r===null?null:r.stateNode}var SD=function(n){return null};function NU(n){return SD(n)}var xD=function(n){return!1};function PU(n){return xD(n)}var wD=null,CD=null,TD=null,ED=null,RD=null,kD=null,DD=null,_D=null,AD=null;{var OD=function(n,r,o){var l=r[o],d=sn(n)?n.slice():wt({},n);return o+1===r.length?(sn(d)?d.splice(l,1):delete d[l],d):(d[l]=OD(n[l],r,o+1),d)},MD=function(n,r){return OD(n,r,0)},ND=function(n,r,o,l){var d=r[l],p=sn(n)?n.slice():wt({},n);if(l+1===r.length){var g=o[l];p[g]=p[d],sn(p)?p.splice(d,1):delete p[d]}else p[d]=ND(n[d],r,o,l+1);return p},PD=function(n,r,o){if(r.length!==o.length){u("copyWithRename() expects paths of the same length");return}else for(var l=0;l<o.length-1;l++)if(r[l]!==o[l]){u("copyWithRename() expects paths to be the same except for the deepest key");return}return ND(n,r,o,0)},jD=function(n,r,o,l){if(o>=r.length)return l;var d=r[o],p=sn(n)?n.slice():wt({},n);return p[d]=jD(n[d],r,o+1,l),p},LD=function(n,r,o){return jD(n,r,0,o)},zS=function(n,r){for(var o=n.memoizedState;o!==null&&r>0;)o=o.next,r--;return o};wD=function(n,r,o,l){var d=zS(n,r);if(d!==null){var p=LD(d.memoizedState,o,l);d.memoizedState=p,d.baseState=p,n.memoizedProps=wt({},n.memoizedProps);var g=ya(n,gt);g!==null&&Sr(g,n,gt,On)}},CD=function(n,r,o){var l=zS(n,r);if(l!==null){var d=MD(l.memoizedState,o);l.memoizedState=d,l.baseState=d,n.memoizedProps=wt({},n.memoizedProps);var p=ya(n,gt);p!==null&&Sr(p,n,gt,On)}},TD=function(n,r,o,l){var d=zS(n,r);if(d!==null){var p=PD(d.memoizedState,o,l);d.memoizedState=p,d.baseState=p,n.memoizedProps=wt({},n.memoizedProps);var g=ya(n,gt);g!==null&&Sr(g,n,gt,On)}},ED=function(n,r,o){n.pendingProps=LD(n.memoizedProps,r,o),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var l=ya(n,gt);l!==null&&Sr(l,n,gt,On)},RD=function(n,r){n.pendingProps=MD(n.memoizedProps,r),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var o=ya(n,gt);o!==null&&Sr(o,n,gt,On)},kD=function(n,r,o){n.pendingProps=PD(n.memoizedProps,r,o),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var l=ya(n,gt);l!==null&&Sr(l,n,gt,On)},DD=function(n){var r=ya(n,gt);r!==null&&Sr(r,n,gt,On)},_D=function(n){SD=n},AD=function(n){xD=n}}function jU(n){var r=fE(n);return r===null?null:r.stateNode}function LU(n){return null}function $U(){return tr}function zU(n){var r=n.findFiberByHostInstance,o=a.ReactCurrentDispatcher;return n$({bundleType:n.bundleType,version:n.version,rendererPackageName:n.rendererPackageName,rendererConfig:n.rendererConfig,overrideHookState:wD,overrideHookStateDeletePath:CD,overrideHookStateRenamePath:TD,overrideProps:ED,overridePropsDeletePath:RD,overridePropsRenamePath:kD,setErrorHandler:_D,setSuspenseHandler:AD,scheduleUpdate:DD,currentDispatcherRef:o,findHostInstanceByFiber:jU,findFiberByHostInstance:r||LU,findHostInstancesForRefresh:pU,scheduleRefresh:fU,scheduleRoot:hU,setRefreshHandler:dU,getCurrentFiber:$U,reconcilerVersion:PS})}var $D=typeof reportError=="function"?reportError:function(n){console.error(n)};function FS(n){this._internalRoot=n}Gm.prototype.render=FS.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?c("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Xm(arguments[1])?c("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 arguments[1]<"u"&&c("You passed a second argument to root.render(...) but it only accepts one argument.");var o=r.containerInfo;if(o.nodeType!==sr){var l=bD(r.current);l&&l.parentNode!==o&&c("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}Of(n,r,null,null)},Gm.prototype.unmount=FS.prototype.unmount=function(){typeof arguments[0]=="function"&&c("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;Xk()&&c("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."),Fo(function(){Of(null,n,null,null)}),$1(r)}};function FU(n,r){if(!Xm(n))throw new Error("createRoot(...): Target container is not a DOM element.");zD(n);var o=!1,l=!1,d="",p=$D;r!=null&&(r.hydrate?u("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof r=="object"&&r!==null&&r.$$typeof===jn&&c(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
201
-
202
- let root = createRoot(domContainer);
203
- root.render(<App />);`),r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(d=r.identifierPrefix),r.onRecoverableError!==void 0&&(p=r.onRecoverableError),r.transitionCallbacks!==void 0&&r.transitionCallbacks);var g=vD(n,Up,null,o,l,d,p);Lp(g.current,n);var b=n.nodeType===sr?n.parentNode:n;return Ld(b),new FS(g)}function Gm(n){this._internalRoot=n}function IU(n){n&&tz(n)}Gm.prototype.unstable_scheduleHydration=IU;function VU(n,r,o){if(!Xm(n))throw new Error("hydrateRoot(...): Target container is not a DOM element.");zD(n),r===void 0&&c("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var l=o??null,d=o!=null&&o.hydratedSources||null,p=!1,g=!1,b="",T=$D;o!=null&&(o.unstable_strictMode===!0&&(p=!0),o.identifierPrefix!==void 0&&(b=o.identifierPrefix),o.onRecoverableError!==void 0&&(T=o.onRecoverableError));var D=gD(r,null,n,Up,l,p,g,b,T);if(Lp(D.current,n),Ld(n),d)for(var O=0;O<d.length;O++){var H=d[O];WI(D,H)}return new Gm(D)}function Xm(n){return!!(n&&(n.nodeType===va||n.nodeType===wo||n.nodeType===Yg||!xe))}function Mf(n){return!!(n&&(n.nodeType===va||n.nodeType===wo||n.nodeType===Yg||n.nodeType===sr&&n.nodeValue===" react-mount-point-unstable "))}function zD(n){n.nodeType===va&&n.tagName&&n.tagName.toUpperCase()==="BODY"&&c("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),qd(n)&&(n._reactRootContainer?c("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):c("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."))}var BU=a.ReactCurrentOwner,FD;FD=function(n){if(n._reactRootContainer&&n.nodeType!==sr){var r=bD(n._reactRootContainer.current);r&&r.parentNode!==n&&c("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var o=!!n._reactRootContainer,l=IS(n),d=!!(l&&ms(l));d&&!o&&c("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),n.nodeType===va&&n.tagName&&n.tagName.toUpperCase()==="BODY"&&c("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function IS(n){return n?n.nodeType===wo?n.documentElement:n.firstChild:null}function ID(){}function UU(n,r,o,l,d){if(d){if(typeof l=="function"){var p=l;l=function(){var B=qm(g);p.call(B)}}var g=gD(r,l,n,gs,null,!1,!1,"",ID);n._reactRootContainer=g,Lp(g.current,n);var b=n.nodeType===sr?n.parentNode:n;return Ld(b),Fo(),g}else{for(var T;T=n.lastChild;)n.removeChild(T);if(typeof l=="function"){var D=l;l=function(){var B=qm(O);D.call(B)}}var O=vD(n,gs,null,!1,!1,"",ID);n._reactRootContainer=O,Lp(O.current,n);var H=n.nodeType===sr?n.parentNode:n;return Ld(H),Fo(function(){Of(r,O,o,l)}),O}}function HU(n,r){n!==null&&typeof n!="function"&&c("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r,n)}function Km(n,r,o,l,d){FD(o),HU(d===void 0?null:d,"render");var p=o._reactRootContainer,g;if(!p)g=UU(o,r,n,d,l);else{if(g=p,typeof d=="function"){var b=d;d=function(){var T=qm(g);b.call(T)}}Of(r,g,n,d)}return qm(g)}var VD=!1;function WU(n){{VD||(VD=!0,c("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var r=BU.current;if(r!==null&&r.stateNode!==null){var o=r.stateNode._warnedAboutRefsInRender;o||c("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Vt(r.type)||"A component"),r.stateNode._warnedAboutRefsInRender=!0}}return n==null?null:n.nodeType===va?n:_U(n,"findDOMNode")}function YU(n,r,o){if(c("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Mf(r))throw new Error("Target container is not a DOM element.");{var l=qd(r)&&r._reactRootContainer===void 0;l&&c("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return Km(null,n,r,!0,o)}function qU(n,r,o){if(c("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Mf(r))throw new Error("Target container is not a DOM element.");{var l=qd(r)&&r._reactRootContainer===void 0;l&&c("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return Km(null,n,r,!1,o)}function GU(n,r,o,l){if(c("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Mf(o))throw new Error("Target container is not a DOM element.");if(n==null||!V2(n))throw new Error("parentComponent must be a valid React Component");return Km(n,r,o,!1,l)}var BD=!1;function XU(n){if(BD||(BD=!0,c("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!Mf(n))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var r=qd(n)&&n._reactRootContainer===void 0;r&&c("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(n._reactRootContainer){{var o=IS(n),l=o&&!ms(o);l&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Fo(function(){Km(null,null,n,!1,function(){n._reactRootContainer=null,$1(n)})}),!0}else{{var d=IS(n),p=!!(d&&ms(d)),g=n.nodeType===va&&Mf(n.parentNode)&&!!n.parentNode._reactRootContainer;p&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",g?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}W$(AU),q$(OU),G$(MU),X$(pi),K$(B$),(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")&&c("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"),A2(QF),N2(gS,VB,Fo);function KU(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Xm(r))throw new Error("Target container is not a DOM element.");return DU(n,r,null,o)}function QU(n,r,o,l){return GU(n,r,o,l)}var VS={usingClientEntryPoint:!1,Events:[ms,Dc,$p,eE,tE,gS]};function ZU(n,r){return VS.usingClientEntryPoint||c('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),FU(n,r)}function JU(n,r,o){return VS.usingClientEntryPoint||c('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),VU(n,r,o)}function e3(n){return Xk()&&c("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."),Fo(n)}var t3=zU({findFiberByHostInstance:ml,bundleType:1,version:PS,rendererPackageName:"react-dom"});if(!t3&&mt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var UD=window.location.protocol;/^(https?|file):$/.test(UD)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(UD==="file:"?`
204
- You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}$a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=VS,$a.createPortal=KU,$a.createRoot=ZU,$a.findDOMNode=WU,$a.flushSync=e3,$a.hydrate=YU,$a.hydrateRoot=JU,$a.render=qU,$a.unmountComponentAtNode=XU,$a.unstable_batchedUpdates=gS,$a.unstable_renderSubtreeIntoContainer=QU,$a.version=PS,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})();hM.exports=$a;var $s=hM.exports,BS=$s;{var Zm=BS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ix.createRoot=function(e,t){Zm.usingClientEntryPoint=!0;try{return BS.createRoot(e,t)}finally{Zm.usingClientEntryPoint=!1}},Ix.hydrateRoot=function(e,t,a){Zm.usingClientEntryPoint=!0;try{return BS.hydrateRoot(e,t,a)}finally{Zm.usingClientEntryPoint=!1}}}var s3=Object.create,vM=Object.defineProperty,l3=Object.getOwnPropertyDescriptor,c3=Object.getOwnPropertyNames,u3=Object.getPrototypeOf,d3=Object.prototype.hasOwnProperty,Uw=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),f3=(e,t,a,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of c3(t))!d3.call(e,s)&&s!==a&&vM(e,s,{get:()=>t[s],enumerable:!(i=l3(t,s))||i.enumerable});return e},h3=(e,t,a)=>(a=e!=null?s3(u3(e)):{},f3(t||!e||!e.__esModule?vM(a,"default",{value:e,enumerable:!0}):a,e)),p3=Uw(e=>{var t=e&&e.__awaiter||function(i,s,u,c){function f(h){return h instanceof u?h:new u(function(m){m(h)})}return new(u||(u=Promise))(function(h,m){function v(x){try{S(c.next(x))}catch(R){m(R)}}function y(x){try{S(c.throw(x))}catch(R){m(R)}}function S(x){x.done?h(x.value):f(x.value).then(v,y)}S((c=c.apply(i,s||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Client=void 0;var a=class{constructor(i,s){this.write=i,this.requests={},this.id=0,this.mtu=65535,s&&s.mtu&&(this.mtu=s.mtu)}destroy(){this.requests=null,this.write=null}messageReceived(i){let s=!!(i.err||i.ack||i.fin),u=i.ack||i.err||i.sig||i.fin,c=this.requests[u],f;if(c&&typeof c.cb=="function"){let h;i.fin?c.cb.call(c.context,null,null,!0):c.canceled?console.log("This request is canceled. Not calling the callback."):(h=i.err?i.data:null,f=c.cb.call(c.context,h,i.data,s))}return s&&delete this.requests[u],f}requestAsync(i,s){return t(this,void 0,void 0,function*(){return new Promise((u,c)=>{this.request(i,s,(f,h)=>{if(f)return c(h);u(h)})})})}request(i,s,u){this.id++;let c={op:i};return Array.isArray(s)&&(c.args=s),u&&(c.id=this.id,this.requests[c.id]={cb:u,context:{id:c.id,cancel:()=>{setTimeout((f=>()=>{this.requests[f]&&console.log("rpc-client.js: timeout, the request has not been removed while it was canceled",f,this.requests[f])})(c.id),1500),this.requests[c.id].canceled=!0,this.write({end:c.id})},emit:f=>this.write({sig:c.id,data:f})}}),this.write(c),c.id||null}send(i,s){this.write({push:i,data:s})}end(i){this.write({end:i})}};e.Client=a}),m3=Uw(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Server=void 0;var t=console.log,a=class{constructor(i){this.modules={},this.methods={},this.requests={},this.clientIdCounter=0,this.requestId=0,this.invokeId=0,i&&this.insertMethods(i)}destroy(){for(let i in this.requests){for(let s in this.requests[i])typeof this.requests[i][s].end=="function"&&this.requests[i][s].end();delete this.requests[i]}}insertMethods(i){this.addMethods("",i)}addMethods(i,s){let u=i?i+".":"";for(let c in s)if(c!=="_"&&c.substring(0,1)!=="_"&&s["_"+c])if(typeof s[c]=="function"){let f=s["_"+c].name||c;s["_"+c].fullname=u+f;try{this.modules[u+f]=s["_"+c],this.methods[u+f]=s[c]}catch(h){console.log("Kaboom! ",h)}}else typeof s[c]=="object"&&this.addMethods(u+c,s[c])}listMethods(i,s,u){let c={};function f(m,v){let y={};for(let S in m)v[S]||(y[S]=m[S]);return y}let h={fullname:!0};for(let m in this.modules)c[m]=f(this.modules[m],h);u(null,c)}clientOffline(i){for(let s in this.requests[i])typeof this.requests[i][s].end=="function"&&this.requests[i][s].end(),delete this.requests[i][s]}closeAll(){for(let i in this.requests)for(let s in this.requests[i])typeof this.requests[i][s].end=="function"&&this.requests[i][s].end(),delete this.requests[i][s]}parse(i,s,u,c){if(typeof c=="number")try{if(i.push){this.requests[c]&&this.requests[c][i.push]&&this.invokeRaw(i,s,this.requests[c][i.push].context,c);return}if(i.sig){this.requests[c]&&this.requests[c][i.sig]&&this.invokeRaw(i,s,this.requests[c][i.sig].context,c);return}if(i.end){let f=i.end;if(this.requests[c]&&this.requests[c][f]){typeof this.requests[c][f].end=="function"&&this.requests[c][f].end(),s({fin:f}),delete this.requests[c][f];return}if(!this.requests[c][f])return;typeof this.requests[c][f].end=="function"&&this.requests[f].end();return}if(i.op==="methods"){this.listMethods(i.args,u,function(f,h){s({ack:i.id,data:h})});return}if(typeof this.methods[i.op]>"u"){s({err:i.id,data:{code:300,msg:"No method found: "+i.op}});return}this.invokeRaw(i,s,u,c)}catch(f){t("Dynamic RPC failed to execute ",i.op,f,f.stack);try{console.log("RPC caught error",f.stack),s({ack:i.id,err:i.id,data:"caught error in "+i.op+": "+f.toString(),debug:f.stack})}catch(h){s({err:i.id,data:"rpc",errmsg:h.toString()})}}}emit(i,s){for(let u in this.requests)if(this.requests[u]){for(let c in this.requests[u])if(this.requests[u][c].op===i){let{send:f}=this.requests[u][c];f({sig:c,data:s})}}}invokeRaw(i,s,u,c){if(++this.requestId,!this.requests[c])return console.log("Session not opened for client. Use Server.open() first");if(i.push){let f=this.requests[c][i.push];if(i.data===null){console.log("msg.data is null:",i);return}f.data(i.data);return}if(i.sig){let f=this.requests[c][i.sig];try{this.methods[f.op].call(this.requests[c][i.sig],i.data,{send:h=>{typeof f.end=="function"&&f.end(),this.requests[c][i.sig]&&delete this.requests[c][i.sig],s({ack:i.sig,data:h})},emit:h=>(this.requests[c][i.sig]||typeof f.end=="function"&&f.end(),s({sig:i.sig,data:h})),error:h=>{typeof f.end=="function"&&f.end(),delete this.requests[c][i.sig],s({err:i.sig,data:h})},close:h=>{typeof f.end=="function"&&f.end(),delete this.requests[c][i.sig],s({fin:i.sig})}},u)}catch(h){console.log("Calling the method in RPC failed:",i.op,i.args,h.stack),delete this.requests[c][i.sig],s({err:i.sig,data:{msg:"rpc failed during execution of "+i.op,code:578}})}return}if(typeof i.id>"u"){let f={};this.methods[i.op].call(f,{args:i.args},{send:()=>{t("Trying to send response to event ("+i.op+"). Dropping.")},emit:()=>{t("Trying to emit response to event ("+i.op+"). Dropping.")},error:()=>{t("Trying to respond with error to event ("+i.op+"). Dropping.")},close:()=>{t("Trying to close event ("+i.op+"). Dropping.")}},u)}else{let f={id:i.id,op:i.op,args:i.args,context:u,end:null,send:s};this.requests[c]||(this.requests[c]={}),this.requests[c][i.id]&&(console.log("Serious warning. There is already a request by that id, we'll kill it off! This session is likely not clean. clientId:",c,"msg",i,"stack trace:",new Error().stack),typeof this.requests[c][i.id].end=="function"&&this.requests[c][i.id].end(),delete this.requests[c][i.id],console.log("Removed old request by same id from same client...")),this.requests[c][i.id]=f;try{this.methods[i.op].call(f,{args:i.args},{send:h=>{typeof f.end=="function"&&f.end(),this.requests[c][i.id]&&delete this.requests[c][i.id],s({ack:i.id,data:h})},emit:h=>(this.requests[c][i.id]||typeof f.end=="function"&&f.end(),s({sig:i.id,data:h})),error:h=>{typeof f.end=="function"&&f.end(),delete this.requests[c][i.id],s({err:i.id,data:h})},close:h=>{typeof f.end=="function"&&f.end(),delete this.requests[c][i.id],s({fin:i.id})}},u)}catch(h){console.log("Calling the method in RPC failed:",i.op,i.args,h.stack),delete this.requests[c][i.id],s({err:i.id,data:{msg:"rpc failed during execution of "+i.op,code:578}})}}}close(i){for(let s in this.requests[i])typeof this.requests[i][s].end=="function"&&this.requests[i][s].end(),delete this.requests[i][s];delete this.requests[i]}open(){let i=++this.clientIdCounter;return this.requests[i]={},i}};e.Server=a}),v3=Uw(e=>{var t=e&&e.__createBinding||(Object.create?function(i,s,u,c){c===void 0&&(c=u),Object.defineProperty(i,c,{enumerable:!0,get:function(){return s[u]}})}:function(i,s,u,c){c===void 0&&(c=u),i[c]=s[u]}),a=e&&e.__exportStar||function(i,s){for(var u in i)u!=="default"&&!Object.prototype.hasOwnProperty.call(s,u)&&t(s,i,u)};Object.defineProperty(e,"__esModule",{value:!0}),a(p3(),e),a(m3(),e)}),g3=h3(v3(),1),Tt=class gM extends Error{constructor(t){super(),this.code=t.code,this.msg=t.msg,this.debug=t.debug,Object.setPrototypeOf(this,gM.prototype)}},y3=class{constructor(e){this.client=e}async get(e){try{return await this.client.requestAsync("v1.user.get",[e])}catch(t){throw new Tt(t)}}async current(){try{return await this.client.requestAsync("v1.user.current",[])}catch(e){throw new Tt(e)}}async list(){try{return await this.client.requestAsync("v1.user.list",[])}catch(e){throw new Tt(e)}}},b3=class{constructor(e){this.client=e}async list(e,t){try{return await this.client.requestAsync("v1.activity.kanban.list",[e,...t?[t]:[]])}catch(a){throw new Tt(a)}}async load(e){try{return await this.client.requestAsync("v1.activity.kanban.load",[e])}catch(t){throw new Tt(t)}}async updatePriority(e,t){try{return await this.client.requestAsync("v1.activity.kanban.updatePriority",[{activityId:e,priority:t}])}catch(a){throw new Tt(a)}}},S3=class{constructor(e){this.client=e,this.kanban=new b3(e)}async list(e,t,a){try{return(await this.client.requestAsync("v1.activity.list",[e,t,a])).activities}catch(i){throw new Tt(i)}}async get(e){try{return await this.client.requestAsync("v1.activity.get",[e])}catch(t){throw new Tt(t)}}async create(e,t,a){try{return await this.client.requestAsync("v1.activity.create",[e,t,...a?[a]:[]])}catch(i){throw new Tt(i)}}async update(e,t){try{return await this.client.requestAsync("v1.activity.update",[e,...t?[t]:[]])}catch(a){throw new Tt(a)}}async remove(e){try{return await this.client.requestAsync("v1.activity.remove",[e])}catch(t){throw new Tt(t)}}},x3=class{constructor(e){this.client=e,this.product={publishTemplate:this.publishTemplate.bind(this),isProductInstalled:this.isProductInstalled.bind(this),get:this.get.bind(this),install:this.install.bind(this),getManifest:this.getManifest.bind(this)}}async current(){try{return await this.client.requestAsync("v1.workspace.current",[])}catch(e){throw new Tt(e)}}async list(){try{return await this.client.requestAsync("v1.workspace.list",[])}catch(e){throw new Tt(e)}}async publishTemplate(e){try{return await this.client.requestAsync("v1.workspace.product.publishTemplate",[e])}catch(t){throw new Tt(t)}}async isProductInstalled(e){try{return await this.client.requestAsync("v1.workspace.product.isProductInstalled",[e])}catch(t){throw new Tt(t)}}async get(e){try{return await this.client.requestAsync("v1.workspace.product.get",[e])}catch(t){throw new Tt(t)}}async install(e){try{return await this.client.requestAsync("v1.workspace.product.install",[e])}catch(t){throw new Tt(t)}}async getManifest(e){try{return await this.client.requestAsync("v1.workspace.product.getManifest",[e])}catch(t){throw new Tt(t)}}},w3=class{constructor(e){this.client=e}async open(e,t){await this.client.requestAsync("v1.ui.activity.open",[e,...t?[t]:[]])}async create(e,t){return await this.client.requestAsync("v1.ui.activity.create",[e,...t?[t]:[]])}async editMultiple(e){return await this.client.requestAsync("v1.ui.activity.editMultiple",[e])}},C3=class{constructor(e){this.client=e}async open(e,t,a){await this.client.requestAsync("v1.ui.snackbar.open",[e,t,a])}},T3=class{constructor(e){this.client=e}async uploadFile(e,t,a){return await this.client.requestAsync("v1.ui.file.upload",[await this.toBase64(e),t,!!(a!=null&&a.isPublic)])}toBase64(e){return new Promise((t,a)=>{let i=new FileReader;i.readAsDataURL(e),i.onload=()=>t(i.result??""),i.onerror=a})}},E3=class{constructor(e){this.client=e,this.activity=new w3(e),this.snackbar=new C3(e),this.insight={create:async t=>{await e.requestAsync("v1.ui.insight.create",[t])},edit:async t=>{await e.requestAsync("v1.ui.insight.edit",[t])},delete:async t=>{await e.requestAsync("v1.ui.insight.delete",[t])},permission:async t=>{await e.requestAsync("v1.ui.insight.permission",[t])}},this.files=new T3(e)}},R3=class{constructor(e){this.client=e}async list(){try{return await this.client.requestAsync("v1.process.list",[])}catch(e){throw new Tt(e)}}async get(e){try{return await this.client.requestAsync("v1.process.get",[e])}catch(t){throw new Tt(t)}}async getFieldIdByName(e,t){var a,i;try{return(i=Object.values(((a=await this.get(e))==null?void 0:a.fields)||{}).find(s=>s.label.toLowerCase()===t))==null?void 0:i._id}catch(s){throw new Tt(s)}}},k3=["https://app.hailer.com","https://next.hailer.com","https://testapp.hailer.biz","https://app.hailer.biz","https://localhost:9443"],Wv="https://api.hailer.com",D3={"https://app.hailer.com":Wv,"https://next.hailer.com":Wv,"https://app.hailer.biz":"https://api.hailer.biz","https://testapp.hailer.biz":"https://testapi.hailer.biz","https://localhost:9443":"http://localhost:1337"},_3=class{constructor(e){this.options=e}async config(){let e="manifest.json",t=window.location.origin+window.location.pathname,a=t+e;t.endsWith("/index.html")&&(a=t.slice(0,-10)+e);let i=await(await fetch(a)).text(),s=JSON.parse(i).appId;return await(await fetch(this.options.publicBackendUrl+"/api/v3/app/public",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify([s])})).json()}},A3=class{constructor(e){this.options=e}async data(e){let t=await fetch(this.options.publicBackendUrl+"/api/v2/forms/process/get",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify([e])});if(!t.ok)throw new Tt(await t.json());return await t.json()}async submit(e,t){let a=await fetch(this.options.publicBackendUrl+"/api/v2/forms/activity/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify([e,t])});if(!a.ok)throw new Tt(await a.json());return await a.json()}},O3=class{constructor(e){this.options=e}async data(e){let t=await fetch(this.options.publicBackendUrl+"/api/v3/insight/public",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify([e])});if(!t.ok)throw new Tt(await t.json());return await t.json()}async dataAsObject(e){let t=(await this.data(e)).data,a=[];return t.rows.forEach(i=>{let s={};t.headers.forEach((u,c)=>{s[u]=i[c]}),a.push(s)}),a}},M3=class{constructor(e){this.options=e}async list(e,t){let a=await fetch(this.options.publicBackendUrl+"/api/v3/product/list",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify([e,t])});if(!a.ok)throw new Tt(await a.json());return await a.json()}async get(e){let t=await fetch(this.options.publicBackendUrl+"/api/v3/product/get",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify([e])});if(!t.ok)throw new Tt(await t.json());return await t.json()}},N3=class{constructor(e){this.insight=new O3(e),this.form=new A3(e),this.app=new _3(e),this.product=new M3(e)}},P3=class{constructor(e){this.client=e}async list(){try{return await this.client.requestAsync("v1.workflow.list",[])}catch(e){throw new Tt(e)}}async get(e){try{return await this.client.requestAsync("v1.workflow.get",[e])}catch(t){throw new Tt(t)}}},j3=class{constructor(e){this.client=e,this.config={update:async(t,a)=>{try{return await this.client.requestAsync("v1.app.config.update",[t,a])}catch(i){throw console.log("Errorasd ",i),new Tt(i)}}},this.product={isProductInstalled:this.isProductInstalled.bind(this),get:this.get.bind(this),install:this.install.bind(this),getInstalledVersion:this.getInstalledVersion.bind(this),getManifest:this.getManifest.bind(this)}}async isProductInstalled(e){try{return await this.client.requestAsync("v1.app.product.isProductInstalled",[e])}catch(t){throw new Tt(t)}}async get(e){try{return await this.client.requestAsync("v1.app.product.get",[e])}catch(t){throw new Tt(t)}}async install(e){try{return await this.client.requestAsync("v1.app.product.install",[e])}catch(t){throw new Tt(t)}}async getInstalledVersion(e){try{return await this.client.requestAsync("v1.app.product.getInstalledVersion",[e])}catch(t){throw new Tt(t)}}async getManifest(e){try{return await this.client.requestAsync("v1.app.product.getManifest",[e])}catch(t){throw new Tt(t)}}},L3=class{constructor(e){this.client=e}async data(e,t){try{return await this.client.requestAsync("v1.insight.data",[e,...t?[t]:[]])}catch(a){throw new Tt(a)}}async list(){try{return await this.client.requestAsync("v1.insight.list",[])}catch(e){throw new Tt(e)}}async update(e,t){try{return await this.client.requestAsync("v1.insight.update",[e,t])}catch(a){throw new Tt(a)}}},$3=class{constructor(e){this.client=e,this.map=async()=>{try{return await this.client.requestAsync("v1.permission.map",[])}catch(t){throw console.log("Failed to read permissions from Hailer, error:",t),new Tt(t)}}}},z3=class{constructor(e){this.client=e}async list(e,t){try{return await this.client.requestAsync("v1.product.list",[e,t])}catch(a){throw new Tt(a)}}async get(e){try{return await this.client.requestAsync("v1.product.get",[e])}catch(t){throw new Tt(t)}}async create(e){try{return await this.client.requestAsync("v1.product.create",[e])}catch(t){throw new Tt(t)}}async update(e,t){try{return await this.client.requestAsync("v1.product.update",[e,t])}catch(a){throw new Tt(a)}}async remove(e){try{return await this.client.requestAsync("v1.product.remove",[e])}catch(t){throw new Tt(t)}}async setPublic(e,t){try{return await this.client.requestAsync("v1.product.setPublic",[e,t])}catch(a){throw new Tt(a)}}},F3=class{constructor(e={}){this.options=e,this.outside=null;let t=e.allowedUrls??k3;this.apiVersion=e.apiVersion??1,this.subscribedSignals=e.subscribedSignals||[],this.client=new g3.Client(i=>{this.hostUrl&&parent.postMessage(JSON.stringify(i),this.hostUrl)}),this.user=new y3(this.client),this.app=new j3(this.client),this.activity=new S3(this.client),this.insight=new L3(this.client),this.workspace=new x3(this.client),this.process=new R3(this.client),this.workflow=new P3(this.client),this.permission=new $3(this.client),this.public=new N3(this.options),this.ui=new E3(this.client),this.product=new z3(this.client);let a=JSON.stringify({op:"register",args:[]});window.location===window.parent.location?(this.options.publicBackendUrl||(this.options.publicBackendUrl=Wv),this.public.app.config().then(i=>{var s,u;this.outside=!0,(u=(s=this.options).outside)==null||u.call(s,i)}).catch(i=>{var s,u;(u=(s=this.options).error)==null||u.call(s,i),console.error("Failed to get app configuration in Public App.",i)})):(t.forEach(i=>parent.postMessage(a,i)),this.timer=setTimeout(()=>{var i,s;this.outside=!0,(s=(i=this.options).outside)==null||s.call(i)},100)),this.createEventListener()}createEventListener(){window.addEventListener("message",async e=>{var a,i;let t=e.data;try{let s=JSON.parse(t);if(s.op==="register"){if(this.appId){console.error("App Id is already set...! Are you using hot-reload?");return}clearTimeout(this.timer),this.appId=s.data.appId,this.workspaceId=s.data.workspaceId,this.hostUrl=e.origin,this.options.publicBackendUrl||(this.options.publicBackendUrl=D3[this.hostUrl]||Wv),this.client.request("v1.ui.settings",[],(u,c,f)=>{var h,m;if(u){console.log("ui.settings error:",u,c);return}(m=(h=this.options).settings)==null||m.call(h,c)}),this.client.request("v1.config",[],(u,c,f)=>{var h,m;if(u){console.log("config error:",u,c);return}(m=(h=this.options).config)==null||m.call(h,c)}),this.subscribedSignals&&this.client.request("v1.signals",[this.subscribedSignals],(u,c,f)=>{var h,m;if(u){console.log("signals error:",u,c);return}c&&((m=(h=this.options).signals)==null||m.call(h,c))}),this.outside=!1,(i=(a=this.options).connected)==null||i.call(a);return}if(!this.appId)return;this.client.messageReceived(s)}catch{console.log("Dropped invalid JSON message")}})}info(){return{hostUrl:this.hostUrl,config:this.config,outside:this.outside,workspaceId:this.workspaceId}}async request(e,t){return await this.client.requestAsync(e,t)}};const I3=(e,t)=>{const[a,i]=w.useState(null),[s,u]=w.useState(null),[c,f]=w.useState(null),[h,m]=w.useState(!1),[v,y]=w.useState();return w.useEffect(()=>{y(window);const S=window;S.hailerApiInstance||(S.hailerApiInstance=new F3({...e!=null&&e.length?{allowedUrls:e}:{},connected:async()=>{S.hailerApiInstance&&m(!0)},outside:async()=>{m(!1)},config:x=>{u(x),S.hailerApiInstance&&i(S.hailerApiInstance.info())},settings:x=>f(x),signals:x=>{console.log("Signal:",x),t&&t(x)}}))},[e,t]),{inside:h,info:a,config:s,settings:c,hailer:v==null?void 0:v.hailerApiInstance}};function yM(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function V3(){return!!(globalThis!=null&&globalThis.document)}function bM(e){return e.parentElement&&bM(e.parentElement)?!0:e.hidden}function B3(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function U3(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function H3(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const a={...e};for(const i of t)if(i!=null)for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&(s in a&&delete a[s],a[s]=i[s]);return a}const _i=e=>e?"":void 0,US=e=>e?!0:void 0;function Vx(e){return Array.isArray(e)}function da(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Vx(e)}function W3(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function Y3(e){const t=parseFloat(e.toString()),a=e.toString().replace(String(t),"");return{unitless:!a,value:t,unit:a}}function Bx(e){if(e==null)return e;const{unitless:t}=Y3(e);return t||typeof e=="number"?`${e}px`:e}const SM=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Hw=e=>Object.fromEntries(Object.entries(e).sort(SM));function WD(e){const t=Hw(e);return Object.assign(Object.values(t),t)}function q3(e){const t=Object.keys(Hw(e));return new Set(t)}function YD(e){if(!e)return e;e=Bx(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,a=>`${parseFloat(a)+t}`)}function Vf(e,t){const a=["@media screen"];return e&&a.push("and",`(min-width: ${Bx(e)})`),t&&a.push("and",`(max-width: ${Bx(t)})`),a.join(" ")}function G3(e){if(!e)return null;e.base=e.base??"0px";const t=WD(e),a=Object.entries(e).sort(SM).map(([u,c],f,h)=>{let[,m]=h[f+1]??[];return m=parseFloat(m)>0?YD(m):void 0,{_minW:YD(c),breakpoint:u,minW:c,maxW:m,maxWQuery:Vf(null,m),minWQuery:Vf(c),minMaxQuery:Vf(c,m)}}),i=q3(e),s=Array.from(i.values());return{keys:i,normalized:t,isResponsive(u){const c=Object.keys(u);return c.length>0&&c.every(f=>i.has(f))},asObject:Hw(e),asArray:WD(e),details:a,get(u){return a.find(c=>c.breakpoint===u)},media:[null,...t.map(u=>Vf(u)).slice(1)],toArrayValue(u){if(!da(u))throw new Error("toArrayValue: value must be an object");const c=s.map(f=>u[f]??null);for(;W3(c)===null;)c.pop();return c},toObjectValue(u){if(!Array.isArray(u))throw new Error("toObjectValue: value must be an array");return u.reduce((c,f,h)=>{const m=s[h];return m!=null&&f!=null&&(c[m]=f),c},{})}}}function ca(...e){return function(a){e.some(i=>(i==null||i(a),a==null?void 0:a.defaultPrevented))}}function X3(e){return w.Children.toArray(e).filter(t=>w.isValidElement(t))}function xM(e){const t=Object.assign({},e);for(let a in t)t[a]===void 0&&delete t[a];return t}function K3(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function ha(e={}){const{name:t,strict:a=!0,hookName:i="useContext",providerName:s="Provider",errorMessage:u,defaultValue:c}=e,f=w.createContext(c);f.displayName=t;function h(){var v;const m=w.useContext(f);if(!m&&a){const y=new Error(u??K3(i,s));throw y.name="ContextError",(v=Error.captureStackTrace)==null||v.call(Error,y,h),y}return m}return[f.Provider,h,f]}const Yt=(...e)=>e.filter(Boolean).join(" "),Q3=e=>e.hasAttribute("tabindex");function Z3(e){if(!yM(e)||bM(e)||U3(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const i={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in i?i[t]():B3(e)?!0:Q3(e)}const J3=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],e4=J3.join(),t4=e=>e.offsetWidth>0&&e.offsetHeight>0;function n4(e){const t=Array.from(e.querySelectorAll(e4));return t.unshift(e),t.filter(a=>Z3(a)&&t4(a))}function r4(e,t,a,i){const s=typeof t=="string"?t.split("."):[t];for(i=0;i<s.length&&e;i+=1)e=e[s[i]];return e===void 0?a:e}const a4=e=>{const t=new WeakMap;return(i,s,u,c)=>{if(typeof i>"u")return e(i,s,u);t.has(i)||t.set(i,new Map);const f=t.get(i);if(f.has(s))return f.get(s);const h=e(i,s,u,c);return f.set(s,h),h}},wM=a4(r4),i4=e=>e.default||e;function Ww(e,t=[]){const a=Object.assign({},e);for(const i of t)i in a&&delete a[i];return a}function CM(e,t){const a={};for(const i of t)i in e&&(a[i]=e[i]);return a}function o4(e,t){return Array.isArray(e)?e.map(a=>a===null?null:t(a)):da(e)?Object.keys(e).reduce((a,i)=>(a[i]=t(e[i]),a),{}):e!=null?t(e):null}const s4=e=>typeof e=="function";function ai(e,...t){return s4(e)?e(...t):e}function l4(e){const t=e.ownerDocument.defaultView||window,{overflow:a,overflowX:i,overflowY:s}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(a+s+i)}function c4(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function TM(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:yM(e)&&l4(e)?e:TM(c4(e))}function u4(e,t){const a={},i={};for(const[s,u]of Object.entries(e))t.includes(s)?a[s]=u:i[s]=u;return[a,i]}function d4(e,...t){const a=Object.getOwnPropertyDescriptors(e),i=Object.keys(a),s=c=>{const f={};for(let h=0;h<c.length;h++){const m=c[h];a[m]&&(Object.defineProperty(f,m,a[m]),delete a[m])}return f},u=c=>s(Array.isArray(c)?c:i.filter(c));return t.map(u).concat(s(i))}function qD(e,t,a={}){const{stop:i,getKey:s}=a;function u(c,f=[]){if(da(c)||Array.isArray(c)){const h={};for(const[m,v]of Object.entries(c)){const y=(s==null?void 0:s(m))??m,S=[...f,y];if(i!=null&&i(c,S))return t(c,f);h[y]=u(v,S)}return h}return t(c,f)}return u(e)}const jh=e=>{const{condition:t,message:a}=e;t&&console.warn(a)};var Yv={exports:{}};Yv.exports;(function(e,t){var a=200,i="__lodash_hash_undefined__",s=800,u=16,c=9007199254740991,f="[object Arguments]",h="[object Array]",m="[object AsyncFunction]",v="[object Boolean]",y="[object Date]",S="[object Error]",x="[object Function]",R="[object GeneratorFunction]",E="[object Map]",k="[object Number]",A="[object Null]",_="[object Object]",P="[object Proxy]",$="[object RegExp]",L="[object Set]",U="[object String]",F="[object Undefined]",Q="[object WeakMap]",se="[object ArrayBuffer]",ae="[object DataView]",ue="[object Float32Array]",Ge="[object Float64Array]",Y="[object Int8Array]",ce="[object Int16Array]",Ee="[object Int32Array]",G="[object Uint8Array]",I="[object Uint8ClampedArray]",X="[object Uint16Array]",pe="[object Uint32Array]",te=/[\\^$.*+?()[\]{}|]/g,we=/^\[object .+?Constructor\]$/,xe=/^(?:0|[1-9]\d*)$/,be={};be[ue]=be[Ge]=be[Y]=be[ce]=be[Ee]=be[G]=be[I]=be[X]=be[pe]=!0,be[f]=be[h]=be[se]=be[v]=be[ae]=be[y]=be[S]=be[x]=be[E]=be[k]=be[_]=be[$]=be[L]=be[U]=be[Q]=!1;var Ve=typeof Qm=="object"&&Qm&&Qm.Object===Object&&Qm,Ue=typeof self=="object"&&self&&self.Object===Object&&self,Xe=Ve||Ue||Function("return this")(),Rt=t&&!t.nodeType&&t,pt=Rt&&!0&&e&&!e.nodeType&&e,Ct=pt&&pt.exports===Rt,ut=Ct&&Ve.process,Ft=function(){try{var N=pt&&pt.require&&pt.require("util").types;return N||ut&&ut.binding&&ut.binding("util")}catch{}}(),ge=Ft&&Ft.isTypedArray;function mt(N,V,re){switch(re.length){case 0:return N.call(V);case 1:return N.call(V,re[0]);case 2:return N.call(V,re[0],re[1]);case 3:return N.call(V,re[0],re[1],re[2])}return N.apply(V,re)}function kt(N,V){for(var re=-1,Le=Array(N);++re<N;)Le[re]=V(re);return Le}function At(N){return function(V){return N(V)}}function Ot(N,V){return N==null?void 0:N[V]}function Et(N,V){return function(re){return N(V(re))}}var on=Array.prototype,Kt=Function.prototype,De=Object.prototype,ot=Xe["__core-js_shared__"],dt=Kt.toString,et=De.hasOwnProperty,St=function(){var N=/[^.]+$/.exec(ot&&ot.keys&&ot.keys.IE_PROTO||"");return N?"Symbol(src)_1."+N:""}(),st=De.toString,Nt=dt.call(Object),We=RegExp("^"+dt.call(et).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dt=Ct?Xe.Buffer:void 0,en=Xe.Symbol,vt=Xe.Uint8Array,ye=Dt?Dt.allocUnsafe:void 0,ke=Et(Object.getPrototypeOf,Object),Ye=Object.create,Fe=De.propertyIsEnumerable,ft=on.splice,Pt=en?en.toStringTag:void 0,jt=function(){try{var N=ji(Object,"defineProperty");return N({},"",{}),N}catch{}}(),gn=Dt?Dt.isBuffer:void 0,Mt=Math.max,Nn=Date.now,It=ji(Xe,"Map"),nt=ji(Object,"create"),yn=function(){function N(){}return function(V){if(!Gn(V))return{};if(Ye)return Ye(V);N.prototype=V;var re=new N;return N.prototype=void 0,re}}();function Gt(N){var V=-1,re=N==null?0:N.length;for(this.clear();++V<re;){var Le=N[V];this.set(Le[0],Le[1])}}function ir(){this.__data__=nt?nt(null):{},this.size=0}function In(N){var V=this.has(N)&&delete this.__data__[N];return this.size-=V?1:0,V}function Bn(N){var V=this.__data__;if(nt){var re=V[N];return re===i?void 0:re}return et.call(V,N)?V[N]:void 0}function Un(N){var V=this.__data__;return nt?V[N]!==void 0:et.call(V,N)}function dr(N,V){var re=this.__data__;return this.size+=this.has(N)?0:1,re[N]=nt&&V===void 0?i:V,this}Gt.prototype.clear=ir,Gt.prototype.delete=In,Gt.prototype.get=Bn,Gt.prototype.has=Un,Gt.prototype.set=dr;function Lt(N){var V=-1,re=N==null?0:N.length;for(this.clear();++V<re;){var Le=N[V];this.set(Le[0],Le[1])}}function Jn(){this.__data__=[],this.size=0}function Pn(N){var V=this.__data__,re=fr(V,N);if(re<0)return!1;var Le=V.length-1;return re==Le?V.pop():ft.call(V,re,1),--this.size,!0}function jn(N){var V=this.__data__,re=fr(V,N);return re<0?void 0:V[re][1]}function er(N){return fr(this.__data__,N)>-1}function z(N,V){var re=this.__data__,Le=fr(re,N);return Le<0?(++this.size,re.push([N,V])):re[Le][1]=V,this}Lt.prototype.clear=Jn,Lt.prototype.delete=Pn,Lt.prototype.get=jn,Lt.prototype.has=er,Lt.prototype.set=z;function ve(N){var V=-1,re=N==null?0:N.length;for(this.clear();++V<re;){var Le=N[V];this.set(Le[0],Le[1])}}function _e(){this.size=0,this.__data__={hash:new Gt,map:new(It||Lt),string:new Gt}}function M(N){var V=Da(this,N).delete(N);return this.size-=V?1:0,V}function le(N){return Da(this,N).get(N)}function he(N){return Da(this,N).has(N)}function Re(N,V){var re=Da(this,N),Le=re.size;return re.set(N,V),this.size+=re.size==Le?0:1,this}ve.prototype.clear=_e,ve.prototype.delete=M,ve.prototype.get=le,ve.prototype.has=he,ve.prototype.set=Re;function Ae(N){var V=this.__data__=new Lt(N);this.size=V.size}function tt(){this.__data__=new Lt,this.size=0}function Me(N){var V=this.__data__,re=V.delete(N);return this.size=V.size,re}function He(N){return this.__data__.get(N)}function tn(N){return this.__data__.has(N)}function Qt(N,V){var re=this.__data__;if(re instanceof Lt){var Le=re.__data__;if(!It||Le.length<a-1)return Le.push([N,V]),this.size=++re.size,this;re=this.__data__=new ve(Le)}return re.set(N,V),this.size=re.size,this}Ae.prototype.clear=tt,Ae.prototype.delete=Me,Ae.prototype.get=He,Ae.prototype.has=tn,Ae.prototype.set=Qt;function nn(N,V){var re=Ha(N),Le=!re&&ui(N),$t=!re&&!Le&&An(N),cn=!re&&!Le&&!$t&&go(N),Cn=re||Le||$t||cn,C=Cn?kt(N.length,String):[],j=C.length;for(var ee in N)(V||et.call(N,ee))&&!(Cn&&(ee=="length"||$t&&(ee=="offset"||ee=="parent")||cn&&(ee=="buffer"||ee=="byteLength"||ee=="byteOffset")||ns(ee,j)))&&C.push(ee);return C}function Zt(N,V,re){(re!==void 0&&!tr(N[V],re)||re===void 0&&!(V in N))&&Vn(N,V,re)}function Br(N,V,re){var Le=N[V];(!(et.call(N,V)&&tr(Le,re))||re===void 0&&!(V in N))&&Vn(N,V,re)}function fr(N,V){for(var re=N.length;re--;)if(tr(N[re][0],V))return re;return-1}function Vn(N,V,re){V=="__proto__"&&jt?jt(N,V,{configurable:!0,enumerable:!0,value:re,writable:!0}):N[V]=re}var ta=Pi();function wt(N){return N==null?N===void 0?F:A:Pt&&Pt in Object(N)?Zs(N):nc(N)}function Ua(N){return Hr(N)&&wt(N)==f}function Ni(N){if(!Gn(N)||tc(N))return!1;var V=os(N)?We:we;return V.test(rc(N))}function Ws(N){return Hr(N)&&Ur(N.length)&&!!be[wt(N)]}function Ys(N){if(!Gn(N))return as(N);var V=rs(N),re=[];for(var Le in N)Le=="constructor"&&(V||!et.call(N,Le))||re.push(Le);return re}function ts(N,V,re,Le,$t){N!==V&&ta(V,function(cn,Cn){if($t||($t=new Ae),Gn(cn))qs(N,V,Cn,re,ts,Le,$t);else{var C=Le?Le(vo(N,Cn),cn,Cn+"",N,V,$t):void 0;C===void 0&&(C=cn),Zt(N,Cn,C)}},el)}function qs(N,V,re,Le,$t,cn,Cn){var C=vo(N,re),j=vo(V,re),ee=Cn.get(j);if(ee){Zt(N,re,ee);return}var oe=cn?cn(C,j,re+"",N,V,Cn):void 0,Te=oe===void 0;if(Te){var Qe=Ha(j),Ie=!Qe&&An(j),lt=!Qe&&!Ie&&go(j);oe=j,Qe||Ie||lt?Ha(C)?oe=C:or(C)?oe=Qs(C):Ie?(Te=!1,oe=Ks(j,!0)):lt?(Te=!1,oe=Zu(j,!0)):oe=[]:ed(j)||ui(j)?(oe=C,ui(C)?oe=yo(C):(!Gn(C)||os(C))&&(oe=ec(j))):Te=!1}Te&&(Cn.set(j,oe),$t(oe,j,Le,cn,Cn),Cn.delete(j)),Zt(N,re,oe)}function Gs(N,V){return Js(Vt(N,V,tl),N+"")}var Xs=jt?function(N,V){return jt(N,"toString",{configurable:!0,enumerable:!1,value:ac(V),writable:!0})}:tl;function Ks(N,V){if(V)return N.slice();var re=N.length,Le=ye?ye(re):new N.constructor(re);return N.copy(Le),Le}function Jl(N){var V=new N.constructor(N.byteLength);return new vt(V).set(new vt(N)),V}function Zu(N,V){var re=V?Jl(N.buffer):N.buffer;return new N.constructor(re,N.byteOffset,N.length)}function Qs(N,V){var re=-1,Le=N.length;for(V||(V=Array(Le));++re<Le;)V[re]=N[re];return V}function mo(N,V,re,Le){var $t=!re;re||(re={});for(var cn=-1,Cn=V.length;++cn<Cn;){var C=V[cn],j=Le?Le(re[C],N[C],C,re,N):void 0;j===void 0&&(j=N[C]),$t?Vn(re,C,j):Br(re,C,j)}return re}function ma(N){return Gs(function(V,re){var Le=-1,$t=re.length,cn=$t>1?re[$t-1]:void 0,Cn=$t>2?re[2]:void 0;for(cn=N.length>3&&typeof cn=="function"?($t--,cn):void 0,Cn&&Ju(re[0],re[1],Cn)&&(cn=$t<3?void 0:cn,$t=1),V=Object(V);++Le<$t;){var C=re[Le];C&&N(V,C,Le,cn)}return V})}function Pi(N){return function(V,re,Le){for(var $t=-1,cn=Object(V),Cn=Le(V),C=Cn.length;C--;){var j=Cn[N?C:++$t];if(re(cn[j],j,cn)===!1)break}return V}}function Da(N,V){var re=N.__data__;return Li(V)?re[typeof V=="string"?"string":"hash"]:re.map}function ji(N,V){var re=Ot(N,V);return Ni(re)?re:void 0}function Zs(N){var V=et.call(N,Pt),re=N[Pt];try{N[Pt]=void 0;var Le=!0}catch{}var $t=st.call(N);return Le&&(V?N[Pt]=re:delete N[Pt]),$t}function ec(N){return typeof N.constructor=="function"&&!rs(N)?yn(ke(N)):{}}function ns(N,V){var re=typeof N;return V=V??c,!!V&&(re=="number"||re!="symbol"&&xe.test(N))&&N>-1&&N%1==0&&N<V}function Ju(N,V,re){if(!Gn(re))return!1;var Le=typeof V;return(Le=="number"?is(re)&&ns(V,re.length):Le=="string"&&V in re)?tr(re[V],N):!1}function Li(N){var V=typeof N;return V=="string"||V=="number"||V=="symbol"||V=="boolean"?N!=="__proto__":N===null}function tc(N){return!!St&&St in N}function rs(N){var V=N&&N.constructor,re=typeof V=="function"&&V.prototype||De;return N===re}function as(N){var V=[];if(N!=null)for(var re in Object(N))V.push(re);return V}function nc(N){return st.call(N)}function Vt(N,V,re){return V=Mt(V===void 0?N.length-1:V,0),function(){for(var Le=arguments,$t=-1,cn=Mt(Le.length-V,0),Cn=Array(cn);++$t<cn;)Cn[$t]=Le[V+$t];$t=-1;for(var C=Array(V+1);++$t<V;)C[$t]=Le[$t];return C[V]=re(Cn),mt(N,this,C)}}function vo(N,V){if(!(V==="constructor"&&typeof N[V]=="function")&&V!="__proto__")return N[V]}var Js=xt(Xs);function xt(N){var V=0,re=0;return function(){var Le=Nn(),$t=u-(Le-re);if(re=Le,$t>0){if(++V>=s)return arguments[0]}else V=0;return N.apply(void 0,arguments)}}function rc(N){if(N!=null){try{return dt.call(N)}catch{}try{return N+""}catch{}}return""}function tr(N,V){return N===V||N!==N&&V!==V}var ui=Ua(function(){return arguments}())?Ua:function(N){return Hr(N)&&et.call(N,"callee")&&!Fe.call(N,"callee")},Ha=Array.isArray;function is(N){return N!=null&&Ur(N.length)&&!os(N)}function or(N){return Hr(N)&&is(N)}var An=gn||di;function os(N){if(!Gn(N))return!1;var V=wt(N);return V==x||V==R||V==m||V==P}function Ur(N){return typeof N=="number"&&N>-1&&N%1==0&&N<=c}function Gn(N){var V=typeof N;return N!=null&&(V=="object"||V=="function")}function Hr(N){return N!=null&&typeof N=="object"}function ed(N){if(!Hr(N)||wt(N)!=_)return!1;var V=ke(N);if(V===null)return!0;var re=et.call(V,"constructor")&&V.constructor;return typeof re=="function"&&re instanceof re&&dt.call(re)==Nt}var go=ge?At(ge):Ws;function yo(N){return mo(N,el(N))}function el(N){return is(N)?nn(N,!0):Ys(N)}var $i=ma(function(N,V,re,Le){ts(N,V,re,Le)});function ac(N){return function(){return N}}function tl(N){return N}function di(){return!1}e.exports=$i})(Yv,Yv.exports);var f4=Yv.exports;const ii=pg(f4);function $l(e,t=[]){const a=w.useRef(e);return w.useEffect(()=>{a.current=e}),w.useCallback((...i)=>{var s;return(s=a.current)==null?void 0:s.call(a,...i)},t)}function HS(e,t,a,i){const s=$l(a);return w.useEffect(()=>{const u=typeof e=="function"?e():e??document;if(!(!a||!u))return u.addEventListener(t,s,i),()=>{u.removeEventListener(t,s,i)}},[t,e,i,s,a]),()=>{const u=typeof e=="function"?e():e??document;u==null||u.removeEventListener(t,s,i)}}function h4(e){const{value:t,defaultValue:a,onChange:i,shouldUpdate:s=(S,x)=>S!==x}=e,u=$l(i),c=$l(s),[f,h]=w.useState(a),m=t!==void 0,v=m?t:f,y=$l(S=>{const R=typeof S=="function"?S(v):S;c(v,R)&&(m||h(R),u(R))},[m,u,v,c]);return[v,y]}function Ux(e={}){const{onClose:t,onOpen:a,isOpen:i,id:s}=e,u=$l(a),c=$l(t),[f,h]=w.useState(e.defaultIsOpen||!1),m=i!==void 0?i:f,v=i!==void 0,y=w.useId(),S=s??`disclosure-${y}`,x=w.useCallback(()=>{v||h(!1),c==null||c()},[v,c]),R=w.useCallback(()=>{v||h(!0),u==null||u()},[v,u]),E=w.useCallback(()=>{m?x():R()},[m,R,x]);function k(_={}){return{..._,"aria-expanded":m,"aria-controls":S,onClick(P){var $;($=_.onClick)==null||$.call(_,P),E()}}}function A(_={}){return{..._,hidden:!m,id:S}}return{isOpen:m,onOpen:R,onClose:x,onToggle:E,isControlled:v,getButtonProps:k,getDisclosureProps:A}}const Hx=globalThis!=null&&globalThis.document?w.useLayoutEffect:w.useEffect,GD=(e,t)=>{const a=w.useRef(!1),i=w.useRef(!1);w.useEffect(()=>{if(a.current&&i.current)return e();i.current=!0},t),w.useEffect(()=>(a.current=!0,()=>{a.current=!1}),[])};function p4(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function fo(...e){return t=>{e.forEach(a=>{p4(a,t)})}}function m4(...e){return w.useMemo(()=>fo(...e),e)}function v4(e){const t=w.useRef(void 0);return w.useEffect(()=>{t.current=e},[e]),t.current}function g4(e,t){const a=$l(e);w.useEffect(()=>{if(t==null)return;let i=null;return i=window.setTimeout(()=>{a()},t),()=>{i&&window.clearTimeout(i)}},[t,a])}const xr={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Qi=e=>EM(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Bo=e=>EM(t=>e(t,"~ &"),"[data-peer]",".peer"),EM=(e,...t)=>t.map(e).join(", "),Su={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:Qi(xr.open),_groupClosed:Qi(xr.closed),_groupHover:Qi(xr.hover),_peerHover:Bo(xr.hover),_groupFocus:Qi(xr.focus),_peerFocus:Bo(xr.focus),_groupFocusVisible:Qi(xr.focusVisible),_peerFocusVisible:Bo(xr.focusVisible),_groupActive:Qi(xr.active),_peerActive:Bo(xr.active),_groupDisabled:Qi(xr.disabled),_peerDisabled:Bo(xr.disabled),_groupInvalid:Qi(xr.invalid),_peerInvalid:Bo(xr.invalid),_groupChecked:Qi(xr.checked),_peerChecked:Bo(xr.checked),_groupFocusWithin:Qi(xr.focusWithin),_peerFocusWithin:Bo(xr.focusWithin),_peerPlaceholderShown:Bo(xr.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},RM=Object.keys(Su),y4=e=>/!(important)?$/.test(e),XD=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,b4=(e,t)=>a=>{const i=String(t),s=y4(i),u=XD(i),c=e?`${e}.${u}`:u;let f=da(a.__cssMap)&&c in a.__cssMap?a.__cssMap[c].varRef:t;return f=XD(f),s?`${f} !important`:f};function Yw(e){const{scale:t,transform:a,compose:i}=e;return(u,c)=>{const f=b4(t,u)(c);let h=(a==null?void 0:a(f,c))??f;return i&&(h=i(h,c)),h}}const Jm=(...e)=>t=>e.reduce((a,i)=>i(a),t);function Za(e,t){return a=>{const i={property:a,scale:e};return i.transform=Yw({scale:e,transform:t}),i}}const S4=({rtl:e,ltr:t})=>a=>a.direction==="rtl"?e:t;function x4(e){const{property:t,scale:a,transform:i}=e;return{scale:a,property:S4(t),transform:a?Yw({scale:a,compose:i}):i}}const kM=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function w4(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...kM].join(" ")}function C4(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...kM].join(" ")}const T4={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},E4={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function R4(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}const k4={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Wx={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},D4=new Set(Object.values(Wx)),Yx=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),_4=e=>e.trim();function A4(e,t){if(e==null||Yx.has(e))return e;if(!(qx(e)||Yx.has(e)))return`url('${e}')`;const s=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),u=s==null?void 0:s[1],c=s==null?void 0:s[2];if(!u||!c)return e;const f=u.includes("-gradient")?u:`${u}-gradient`,[h,...m]=c.split(",").map(_4).filter(Boolean);if((m==null?void 0:m.length)===0)return e;const v=h in Wx?Wx[h]:h;m.unshift(v);const y=m.map(S=>{if(D4.has(S))return S;const x=S.indexOf(" "),[R,E]=x!==-1?[S.substr(0,x),S.substr(x+1)]:[S],k=qx(E)?E:E&&E.split(" "),A=`colors.${R}`,_=A in t.__cssMap?t.__cssMap[A].varRef:R;return k?[_,...Array.isArray(k)?k:[k]].join(" "):_});return`${f}(${y.join(", ")})`}const qx=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),O4=(e,t)=>A4(e,t??{});function M4(e){return/^var\(--.+\)$/.test(e)}const N4=e=>{const t=parseFloat(e.toString()),a=e.toString().replace(String(t),"");return{unitless:!a,value:t,unit:a}},Zi=e=>t=>`${e}(${t})`,Jt={filter(e){return e!=="auto"?e:T4},backdropFilter(e){return e!=="auto"?e:E4},ring(e){return R4(Jt.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?w4():e==="auto-gpu"?C4():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=N4(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const a={left:"right",right:"left"};return t.direction==="rtl"?a[e]:e},degree(e){if(M4(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:O4,blur:Zi("blur"),opacity:Zi("opacity"),brightness:Zi("brightness"),contrast:Zi("contrast"),dropShadow:Zi("drop-shadow"),grayscale:Zi("grayscale"),hueRotate:e=>Zi("hue-rotate")(Jt.degree(e)),invert:Zi("invert"),saturate:Zi("saturate"),sepia:Zi("sepia"),bgImage(e){return e==null||qx(e)||Yx.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:a}=k4[e]??{},i={flexDirection:e};return t&&(i[t]=1),a&&(i[a]=1),i}},W={borderWidths:Za("borderWidths"),borderStyles:Za("borderStyles"),colors:Za("colors"),borders:Za("borders"),gradients:Za("gradients",Jt.gradient),radii:Za("radii",Jt.px),space:Za("space",Jm(Jt.vh,Jt.px)),spaceT:Za("space",Jm(Jt.vh,Jt.px)),degreeT(e){return{property:e,transform:Jt.degree}},prop(e,t,a){return{property:e,scale:t,...t&&{transform:Yw({scale:t,transform:a})}}},propT(e,t){return{property:e,transform:t}},sizes:Za("sizes",Jm(Jt.vh,Jt.px)),sizesT:Za("sizes",Jm(Jt.vh,Jt.fraction)),shadows:Za("shadows"),logical:x4,blur:Za("blur",Jt.blur)},Sv={background:W.colors("background"),backgroundColor:W.colors("backgroundColor"),backgroundImage:W.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Jt.bgClip},bgSize:W.prop("backgroundSize"),bgPosition:W.prop("backgroundPosition"),bg:W.colors("background"),bgColor:W.colors("backgroundColor"),bgPos:W.prop("backgroundPosition"),bgRepeat:W.prop("backgroundRepeat"),bgAttachment:W.prop("backgroundAttachment"),bgGradient:W.gradients("backgroundImage"),bgClip:{transform:Jt.bgClip}};Object.assign(Sv,{bgImage:Sv.backgroundImage,bgImg:Sv.backgroundImage});const fn={border:W.borders("border"),borderWidth:W.borderWidths("borderWidth"),borderStyle:W.borderStyles("borderStyle"),borderColor:W.colors("borderColor"),borderRadius:W.radii("borderRadius"),borderTop:W.borders("borderTop"),borderBlockStart:W.borders("borderBlockStart"),borderTopLeftRadius:W.radii("borderTopLeftRadius"),borderStartStartRadius:W.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:W.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:W.radii("borderTopRightRadius"),borderStartEndRadius:W.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:W.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:W.borders("borderRight"),borderInlineEnd:W.borders("borderInlineEnd"),borderBottom:W.borders("borderBottom"),borderBlockEnd:W.borders("borderBlockEnd"),borderBottomLeftRadius:W.radii("borderBottomLeftRadius"),borderBottomRightRadius:W.radii("borderBottomRightRadius"),borderLeft:W.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:W.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:W.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:W.borders(["borderLeft","borderRight"]),borderInline:W.borders("borderInline"),borderY:W.borders(["borderTop","borderBottom"]),borderBlock:W.borders("borderBlock"),borderTopWidth:W.borderWidths("borderTopWidth"),borderBlockStartWidth:W.borderWidths("borderBlockStartWidth"),borderTopColor:W.colors("borderTopColor"),borderBlockStartColor:W.colors("borderBlockStartColor"),borderTopStyle:W.borderStyles("borderTopStyle"),borderBlockStartStyle:W.borderStyles("borderBlockStartStyle"),borderBottomWidth:W.borderWidths("borderBottomWidth"),borderBlockEndWidth:W.borderWidths("borderBlockEndWidth"),borderBottomColor:W.colors("borderBottomColor"),borderBlockEndColor:W.colors("borderBlockEndColor"),borderBottomStyle:W.borderStyles("borderBottomStyle"),borderBlockEndStyle:W.borderStyles("borderBlockEndStyle"),borderLeftWidth:W.borderWidths("borderLeftWidth"),borderInlineStartWidth:W.borderWidths("borderInlineStartWidth"),borderLeftColor:W.colors("borderLeftColor"),borderInlineStartColor:W.colors("borderInlineStartColor"),borderLeftStyle:W.borderStyles("borderLeftStyle"),borderInlineStartStyle:W.borderStyles("borderInlineStartStyle"),borderRightWidth:W.borderWidths("borderRightWidth"),borderInlineEndWidth:W.borderWidths("borderInlineEndWidth"),borderRightColor:W.colors("borderRightColor"),borderInlineEndColor:W.colors("borderInlineEndColor"),borderRightStyle:W.borderStyles("borderRightStyle"),borderInlineEndStyle:W.borderStyles("borderInlineEndStyle"),borderTopRadius:W.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:W.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:W.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:W.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(fn,{rounded:fn.borderRadius,roundedTop:fn.borderTopRadius,roundedTopLeft:fn.borderTopLeftRadius,roundedTopRight:fn.borderTopRightRadius,roundedTopStart:fn.borderStartStartRadius,roundedTopEnd:fn.borderStartEndRadius,roundedBottom:fn.borderBottomRadius,roundedBottomLeft:fn.borderBottomLeftRadius,roundedBottomRight:fn.borderBottomRightRadius,roundedBottomStart:fn.borderEndStartRadius,roundedBottomEnd:fn.borderEndEndRadius,roundedLeft:fn.borderLeftRadius,roundedRight:fn.borderRightRadius,roundedStart:fn.borderInlineStartRadius,roundedEnd:fn.borderInlineEndRadius,borderStart:fn.borderInlineStart,borderEnd:fn.borderInlineEnd,borderTopStartRadius:fn.borderStartStartRadius,borderTopEndRadius:fn.borderStartEndRadius,borderBottomStartRadius:fn.borderEndStartRadius,borderBottomEndRadius:fn.borderEndEndRadius,borderStartRadius:fn.borderInlineStartRadius,borderEndRadius:fn.borderInlineEndRadius,borderStartWidth:fn.borderInlineStartWidth,borderEndWidth:fn.borderInlineEndWidth,borderStartColor:fn.borderInlineStartColor,borderEndColor:fn.borderInlineEndColor,borderStartStyle:fn.borderInlineStartStyle,borderEndStyle:fn.borderInlineEndStyle});const P4={color:W.colors("color"),textColor:W.colors("color"),fill:W.colors("fill"),stroke:W.colors("stroke"),accentColor:W.colors("accentColor"),textFillColor:W.colors("textFillColor")},qv={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Jt.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:W.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:W.space("gap"),rowGap:W.space("rowGap"),columnGap:W.space("columnGap")};Object.assign(qv,{flexDir:qv.flexDirection});const ei={width:W.sizesT("width"),inlineSize:W.sizesT("inlineSize"),height:W.sizes("height"),blockSize:W.sizes("blockSize"),boxSize:W.sizes(["width","height"]),minWidth:W.sizes("minWidth"),minInlineSize:W.sizes("minInlineSize"),minHeight:W.sizes("minHeight"),minBlockSize:W.sizes("minBlockSize"),maxWidth:W.sizes("maxWidth"),maxInlineSize:W.sizes("maxInlineSize"),maxHeight:W.sizes("maxHeight"),maxBlockSize:W.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var s,u;return{[`@media screen and (min-width: ${((u=(s=t.__breakpoints)==null?void 0:s.get(e))==null?void 0:u.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var s,u;return{[`@media screen and (max-width: ${((u=(s=t.__breakpoints)==null?void 0:s.get(e))==null?void 0:u._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:W.propT("float",Jt.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(ei,{w:ei.width,h:ei.height,minW:ei.minWidth,maxW:ei.maxWidth,minH:ei.minHeight,maxH:ei.maxHeight,overscroll:ei.overscrollBehavior,overscrollX:ei.overscrollBehaviorX,overscrollY:ei.overscrollBehaviorY});const j4={filter:{transform:Jt.filter},blur:W.blur("--chakra-blur"),brightness:W.propT("--chakra-brightness",Jt.brightness),contrast:W.propT("--chakra-contrast",Jt.contrast),hueRotate:W.propT("--chakra-hue-rotate",Jt.hueRotate),invert:W.propT("--chakra-invert",Jt.invert),saturate:W.propT("--chakra-saturate",Jt.saturate),dropShadow:W.propT("--chakra-drop-shadow",Jt.dropShadow),backdropFilter:{transform:Jt.backdropFilter},backdropBlur:W.blur("--chakra-backdrop-blur"),backdropBrightness:W.propT("--chakra-backdrop-brightness",Jt.brightness),backdropContrast:W.propT("--chakra-backdrop-contrast",Jt.contrast),backdropHueRotate:W.propT("--chakra-backdrop-hue-rotate",Jt.hueRotate),backdropInvert:W.propT("--chakra-backdrop-invert",Jt.invert),backdropSaturate:W.propT("--chakra-backdrop-saturate",Jt.saturate)},L4={ring:{transform:Jt.ring},ringColor:W.colors("--chakra-ring-color"),ringOffset:W.prop("--chakra-ring-offset-width"),ringOffsetColor:W.colors("--chakra-ring-offset-color"),ringInset:W.prop("--chakra-ring-inset")},$4={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Jt.outline},outlineOffset:!0,outlineColor:W.colors("outlineColor")},DM={gridGap:W.space("gridGap"),gridColumnGap:W.space("gridColumnGap"),gridRowGap:W.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};function z4(e,t,a,i){const s=typeof t=="string"?t.split("."):[t];for(i=0;i<s.length&&e;i+=1)e=e[s[i]];return e===void 0?a:e}const F4=e=>{const t=new WeakMap;return(i,s,u,c)=>{if(typeof i>"u")return e(i,s,u);t.has(i)||t.set(i,new Map);const f=t.get(i);if(f.has(s))return f.get(s);const h=e(i,s,u,c);return f.set(s,h),h}},I4=F4(z4),V4={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},B4={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},WS=(e,t,a)=>{const i={},s=I4(e,t,{});for(const u in s)u in a&&a[u]!=null||(i[u]=s[u]);return i},U4={srOnly:{transform(e){return e===!0?V4:e==="focusable"?B4:{}}},layerStyle:{processResult:!0,transform:(e,t,a)=>WS(t,`layerStyles.${e}`,a)},textStyle:{processResult:!0,transform:(e,t,a)=>WS(t,`textStyles.${e}`,a)},apply:{processResult:!0,transform:(e,t,a)=>WS(t,e,a)}},Jf={position:!0,pos:W.prop("position"),zIndex:W.prop("zIndex","zIndices"),inset:W.spaceT("inset"),insetX:W.spaceT(["left","right"]),insetInline:W.spaceT("insetInline"),insetY:W.spaceT(["top","bottom"]),insetBlock:W.spaceT("insetBlock"),top:W.spaceT("top"),insetBlockStart:W.spaceT("insetBlockStart"),bottom:W.spaceT("bottom"),insetBlockEnd:W.spaceT("insetBlockEnd"),left:W.spaceT("left"),insetInlineStart:W.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:W.spaceT("right"),insetInlineEnd:W.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Jf,{insetStart:Jf.insetInlineStart,insetEnd:Jf.insetInlineEnd});const Gx={boxShadow:W.shadows("boxShadow"),mixBlendMode:!0,blendMode:W.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:W.prop("backgroundBlendMode"),opacity:!0};Object.assign(Gx,{shadow:Gx.boxShadow});const zn={margin:W.spaceT("margin"),marginTop:W.spaceT("marginTop"),marginBlockStart:W.spaceT("marginBlockStart"),marginRight:W.spaceT("marginRight"),marginInlineEnd:W.spaceT("marginInlineEnd"),marginBottom:W.spaceT("marginBottom"),marginBlockEnd:W.spaceT("marginBlockEnd"),marginLeft:W.spaceT("marginLeft"),marginInlineStart:W.spaceT("marginInlineStart"),marginX:W.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:W.spaceT("marginInline"),marginY:W.spaceT(["marginTop","marginBottom"]),marginBlock:W.spaceT("marginBlock"),padding:W.space("padding"),paddingTop:W.space("paddingTop"),paddingBlockStart:W.space("paddingBlockStart"),paddingRight:W.space("paddingRight"),paddingBottom:W.space("paddingBottom"),paddingBlockEnd:W.space("paddingBlockEnd"),paddingLeft:W.space("paddingLeft"),paddingInlineStart:W.space("paddingInlineStart"),paddingInlineEnd:W.space("paddingInlineEnd"),paddingX:W.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:W.space("paddingInline"),paddingY:W.space(["paddingTop","paddingBottom"]),paddingBlock:W.space("paddingBlock")};Object.assign(zn,{m:zn.margin,mt:zn.marginTop,mr:zn.marginRight,me:zn.marginInlineEnd,marginEnd:zn.marginInlineEnd,mb:zn.marginBottom,ml:zn.marginLeft,ms:zn.marginInlineStart,marginStart:zn.marginInlineStart,mx:zn.marginX,my:zn.marginY,p:zn.padding,pt:zn.paddingTop,py:zn.paddingY,px:zn.paddingX,pb:zn.paddingBottom,pl:zn.paddingLeft,ps:zn.paddingInlineStart,paddingStart:zn.paddingInlineStart,pr:zn.paddingRight,pe:zn.paddingInlineEnd,paddingEnd:zn.paddingInlineEnd});const H4={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:W.spaceT("scrollMargin"),scrollMarginTop:W.spaceT("scrollMarginTop"),scrollMarginBottom:W.spaceT("scrollMarginBottom"),scrollMarginLeft:W.spaceT("scrollMarginLeft"),scrollMarginRight:W.spaceT("scrollMarginRight"),scrollMarginX:W.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:W.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:W.spaceT("scrollPadding"),scrollPaddingTop:W.spaceT("scrollPaddingTop"),scrollPaddingBottom:W.spaceT("scrollPaddingBottom"),scrollPaddingLeft:W.spaceT("scrollPaddingLeft"),scrollPaddingRight:W.spaceT("scrollPaddingRight"),scrollPaddingX:W.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:W.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},W4={fontFamily:W.prop("fontFamily","fonts"),fontSize:W.prop("fontSize","fontSizes",Jt.px),fontWeight:W.prop("fontWeight","fontWeights"),lineHeight:W.prop("lineHeight","lineHeights"),letterSpacing:W.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},Y4={textDecorationColor:W.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:W.shadows("textShadow")},q4={clipPath:!0,transform:W.propT("transform",Jt.transform),transformOrigin:!0,translateX:W.spaceT("--chakra-translate-x"),translateY:W.spaceT("--chakra-translate-y"),skewX:W.degreeT("--chakra-skew-x"),skewY:W.degreeT("--chakra-skew-y"),scaleX:W.prop("--chakra-scale-x"),scaleY:W.prop("--chakra-scale-y"),scale:W.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:W.degreeT("--chakra-rotate")},G4={listStyleType:!0,listStylePosition:!0,listStylePos:W.prop("listStylePosition"),listStyleImage:!0,listStyleImg:W.prop("listStyleImage")},X4={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:W.prop("transitionDuration","transition.duration"),transitionProperty:W.prop("transitionProperty","transition.property"),transitionTimingFunction:W.prop("transitionTimingFunction","transition.easing")},qw=ii({},Sv,fn,P4,qv,ei,j4,L4,$4,DM,U4,Jf,Gx,zn,H4,W4,Y4,q4,G4,X4),K4=Object.assign({},zn,ei,qv,DM,Jf),Q4=Object.keys(K4),Z4=[...Object.keys(qw),...RM],J4={...qw,...Su},e6=e=>e in J4,t6=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:a,toArrayValue:i,media:s}=t.__breakpoints,u={};for(const c in e){let f=ai(e[c],t);if(f==null)continue;if(f=da(f)&&a(f)?i(f):f,!Array.isArray(f)){u[c]=f;continue}const h=f.slice(0,s.length).length;for(let m=0;m<h;m+=1){const v=s==null?void 0:s[m];if(!v){u[c]=f[m];continue}u[v]=u[v]||{},f[m]!=null&&(u[v][c]=f[m])}}return u};function n6(e){const t=[];let a="",i=!1;for(let s=0;s<e.length;s++){const u=e[s];u==="("?(i=!0,a+=u):u===")"?(i=!1,a+=u):u===","&&!i?(t.push(a),a=""):a+=u}return a=a.trim(),a&&t.push(a),t}function r6(e){return/^var\(--.+\)$/.test(e)}const a6=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!r6(t),i6=(e,t)=>{if(t==null)return t;const a=c=>{var f,h;return(h=(f=e.__cssMap)==null?void 0:f[c])==null?void 0:h.varRef},i=c=>a(c)??c,[s,u]=n6(t);return t=a(s)??i(u)??i(t),t};function o6(e){const{configs:t={},pseudos:a={},theme:i}=e,s=(u,c=!1)=>{var v;const f=ai(u,i),h=t6(f)(i);let m={};for(let y in h){const S=h[y];let x=ai(S,i);y in a&&(y=a[y]),a6(y,x)&&(x=i6(i,x));let R=t[y];if(R===!0&&(R={property:y}),da(x)){m[y]=m[y]??{},m[y]=ii({},m[y],s(x,!0));continue}let E=((v=R==null?void 0:R.transform)==null?void 0:v.call(R,x,i,f))??x;E=R!=null&&R.processResult?s(E,!0):E;const k=ai(R==null?void 0:R.property,i);if(!c&&(R!=null&&R.static)){const A=ai(R.static,i);m=ii({},m,A)}if(k&&Array.isArray(k)){for(const A of k)m[A]=E;continue}if(k){k==="&"&&da(E)?m=ii({},m,E):m[k]=E;continue}if(da(E)){m=ii({},m,E);continue}m[y]=E}return m};return s}const _M=e=>t=>o6({theme:t,pseudos:Su,configs:qw})(e);function Mn(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function s6(e,t,a){var i,s;return((s=(i=e.__cssMap)==null?void 0:i[`${t}.${a}`])==null?void 0:s.varRef)??a}function l6(e,t){if(Array.isArray(e))return e;if(da(e))return t(e);if(e!=null)return[e]}function c6(e,t){for(let a=t+1;a<e.length;a++)if(e[a]!=null)return a;return-1}function u6(e){const t=e.__breakpoints;return function(i,s,u,c){var S,x;if(!t)return;const f={},h=l6(u,t.toArrayValue);if(!h)return f;const m=h.length,v=m===1,y=!!i.parts;for(let R=0;R<m;R++){const E=t.details[R],k=t.details[c6(h,R)],A=Vf(E.minW,k==null?void 0:k._minW),_=ai((S=i[s])==null?void 0:S[h[R]],c);if(_){if(y){(x=i.parts)==null||x.forEach(P=>{ii(f,{[P]:v?_[P]:{[A]:_[P]}})});continue}if(!y){v?ii(f,_):f[A]=_;continue}f[A]=_}}return f}}function d6(e){return t=>{const{variant:a,size:i,theme:s}=t,u=u6(s);return ii({},ai(e.baseStyle??{},t),u(e,"sizes",i,t),u(e,"variants",a,t))}}function ea(e){return Ww(e,["styleConfig","size","variant","colorScheme"])}function AM(e){return da(e)&&e.reference?e.reference:String(e)}const mg=(e,...t)=>t.map(AM).join(` ${e} `).replace(/calc/g,""),KD=(...e)=>`calc(${mg("+",...e)})`,QD=(...e)=>`calc(${mg("-",...e)})`,Xx=(...e)=>`calc(${mg("*",...e)})`,ZD=(...e)=>`calc(${mg("/",...e)})`,JD=e=>{const t=AM(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Xx(t,-1)},Uo=Object.assign(e=>({add:(...t)=>Uo(KD(e,...t)),subtract:(...t)=>Uo(QD(e,...t)),multiply:(...t)=>Uo(Xx(e,...t)),divide:(...t)=>Uo(ZD(e,...t)),negate:()=>Uo(JD(e)),toString:()=>e.toString()}),{add:KD,subtract:QD,multiply:Xx,divide:ZD,negate:JD});function f6(e,t="-"){return e.replace(/\s+/g,t)}function h6(e){const t=f6(e.toString());return m6(p6(t))}function p6(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function m6(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function v6(e,t=""){return[t,e].filter(Boolean).join("-")}function g6(e,t){return`var(${e}${t?`, ${t}`:""})`}function y6(e,t=""){return h6(`--${v6(e,t)}`)}function Je(e,t,a){const i=y6(e,a);return{variable:i,reference:g6(i,t)}}function b6(e,t){const a={};for(const i of t){if(Array.isArray(i)){const[s,u]=i;a[s]=Je(`${e}-${s}`,u);continue}a[i]=Je(`${e}-${i}`)}return a}const S6=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function x6(e){return CM(e,S6)}function w6(e){return e.semanticTokens}function C6(e){const{__cssMap:t,__cssVars:a,__breakpoints:i,...s}=e;return s}function T6(e){const t=x6(e),a=w6(e),i=u=>RM.includes(u)||u==="default",s={};return qD(t,(u,c)=>{u!=null&&(s[c.join(".")]={isSemantic:!1,value:u})}),qD(a,(u,c)=>{u!=null&&(s[c.join(".")]={isSemantic:!0,value:u})},{stop:u=>Object.keys(u).every(i)}),s}function e_(e,t){return Je(String(e).replace(/\./g,"-"),void 0,t)}function E6(e){var c;const t=T6(e),a=(c=e.config)==null?void 0:c.cssVarPrefix;let i={};const s={};function u(f,h){const v=[String(f).split(".")[0],h].join(".");if(!t[v])return h;const{reference:S}=e_(v,a);return S}for(const[f,h]of Object.entries(t)){const{isSemantic:m,value:v}=h,{variable:y,reference:S}=e_(f,a);if(!m){if(f.startsWith("space")){const R=f.split("."),[E,...k]=R,A=`${E}.-${k.join(".")}`,_=Uo.negate(v),P=Uo.negate(S);s[A]={value:_,var:y,varRef:P}}i[y]=v,s[f]={value:v,var:y,varRef:S};continue}const x=da(v)?v:{default:v};i=ii(i,Object.entries(x).reduce((R,[E,k])=>{if(!k)return R;const A=u(f,`${k}`);if(E==="default")return R[y]=A,R;const _=(Su==null?void 0:Su[E])??E;return R[_]={[y]:A},R},{})),s[f]={value:S,var:y,varRef:S}}return{cssVars:i,cssMap:s}}function R6(e){const t=C6(e),{cssMap:a,cssVars:i}=E6(t);return Object.assign(t,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...i},__cssMap:a,__breakpoints:G3(t.breakpoints)}),t}function vn(e,t={}){let a=!1;function i(){if(!a){a=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function s(...v){i();for(const y of v)t[y]=h(y);return vn(e,t)}function u(...v){for(const y of v)y in t||(t[y]=h(y));return vn(e,t)}function c(){return Object.fromEntries(Object.entries(t).map(([y,S])=>[y,S.selector]))}function f(){return Object.fromEntries(Object.entries(t).map(([y,S])=>[y,S.className]))}function h(v){const x=`chakra-${(["container","root"].includes(v??"")?[e]:[e,v]).filter(Boolean).join("__")}`;return{className:x,selector:`.${x}`,toString:()=>v}}return{parts:s,toPart:h,extend:u,selectors:c,classnames:f,get keys(){return Object.keys(t)},__type:{}}}const k6=vn("accordion").parts("root","container","button","panel","icon"),D6=vn("alert").parts("title","description","container","icon","spinner"),_6=vn("avatar").parts("label","badge","container","excessLabel","group"),A6=vn("breadcrumb").parts("link","item","container","separator");vn("button").parts();const O6=vn("checkbox").parts("control","icon","container","label");vn("progress").parts("track","filledTrack","label");const M6=vn("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),N6=vn("editable").parts("preview","input","textarea"),P6=vn("form").parts("container","requiredIndicator","helperText"),j6=vn("formError").parts("text","icon"),L6=vn("input").parts("addon","field","element","group"),$6=vn("list").parts("container","item","icon"),z6=vn("menu").parts("button","list","item","groupTitle","icon","command","divider"),F6=vn("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),I6=vn("numberinput").parts("root","field","stepperGroup","stepper");vn("pininput").parts("field");const V6=vn("popover").parts("content","header","body","footer","popper","arrow","closeButton"),B6=vn("progress").parts("label","filledTrack","track"),U6=vn("radio").parts("container","control","label"),H6=vn("select").parts("field","icon"),W6=vn("slider").parts("container","track","thumb","filledTrack","mark"),Y6=vn("stat").parts("container","label","helpText","number","icon"),q6=vn("switch").parts("container","track","thumb","label"),G6=vn("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),X6=vn("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),K6=vn("tag").parts("container","label","closeButton"),Q6=vn("card").parts("container","header","body","footer");vn("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:Z6,defineMultiStyleConfig:J6}=Mn(k6.keys),eH={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},tH={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},nH={pt:"2",px:"4",pb:"5"},rH={fontSize:"1.25em"},aH=Z6({container:eH,button:tH,panel:nH,icon:rH}),iH=J6({baseStyle:aH});function jl(e,t,a){return Math.min(Math.max(e,a),t)}class oH extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Bf=oH;function Gw(e){if(typeof e!="string")throw new Bf(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=pH.test(e)?cH(e):e;const a=uH.exec(t);if(a){const c=Array.from(a).slice(1);return[...c.slice(0,3).map(f=>parseInt(mh(f,2),16)),parseInt(mh(c[3]||"f",2),16)/255]}const i=dH.exec(t);if(i){const c=Array.from(i).slice(1);return[...c.slice(0,3).map(f=>parseInt(f,16)),parseInt(c[3]||"ff",16)/255]}const s=fH.exec(t);if(s){const c=Array.from(s).slice(1);return[...c.slice(0,3).map(f=>parseInt(f,10)),parseFloat(c[3]||"1")]}const u=hH.exec(t);if(u){const[c,f,h,m]=Array.from(u).slice(1).map(parseFloat);if(jl(0,100,f)!==f)throw new Bf(e);if(jl(0,100,h)!==h)throw new Bf(e);return[...mH(c,f,h),Number.isNaN(m)?1:m]}throw new Bf(e)}function sH(e){let t=5381,a=e.length;for(;a;)t=t*33^e.charCodeAt(--a);return(t>>>0)%2341}const t_=e=>parseInt(e.replace(/_/g,""),36),lH="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const a=t_(t.substring(0,3)),i=t_(t.substring(3)).toString(16);let s="";for(let u=0;u<6-i.length;u++)s+="0";return e[a]=`${s}${i}`,e},{});function cH(e){const t=e.toLowerCase().trim(),a=lH[sH(t)];if(!a)throw new Bf(e);return`#${a}`}const mh=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),uH=new RegExp(`^#${mh("([a-f0-9])",3)}([a-f0-9])?$`,"i"),dH=new RegExp(`^#${mh("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),fH=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${mh(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),hH=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,pH=/^[a-z]+$/i,n_=e=>Math.round(e*255),mH=(e,t,a)=>{let i=a/100;if(t===0)return[i,i,i].map(n_);const s=(e%360+360)%360/60,u=(1-Math.abs(2*i-1))*(t/100),c=u*(1-Math.abs(s%2-1));let f=0,h=0,m=0;s>=0&&s<1?(f=u,h=c):s>=1&&s<2?(f=c,h=u):s>=2&&s<3?(h=u,m=c):s>=3&&s<4?(h=c,m=u):s>=4&&s<5?(f=c,m=u):s>=5&&s<6&&(f=u,m=c);const v=i-u/2,y=f+v,S=h+v,x=m+v;return[y,S,x].map(n_)};function vH(e,t,a,i){return`rgba(${jl(0,255,e).toFixed()}, ${jl(0,255,t).toFixed()}, ${jl(0,255,a).toFixed()}, ${parseFloat(jl(0,1,i).toFixed(3))})`}function gH(e,t){const[a,i,s,u]=Gw(e);return vH(a,i,s,u-t)}function yH(e){const[t,a,i,s]=Gw(e);let u=c=>{const f=jl(0,255,c).toString(16);return f.length===1?`0${f}`:f};return`#${u(t)}${u(a)}${u(i)}${s<1?u(Math.round(s*255)):""}`}const bH=e=>Object.keys(e).length===0;function SH(e,t,a,i,s){for(t=t.split?t.split("."):t,i=0;i<t.length;i++)e=e?e[t[i]]:s;return e===s?a:e}const ua=(e,t,a)=>{const i=SH(e,`colors.${t}`,t);try{return yH(i),i}catch{return a??"#000000"}},xH=e=>{const[t,a,i]=Gw(e);return(t*299+a*587+i*114)/1e3},wH=e=>t=>{const a=ua(t,e);return xH(a)<128?"dark":"light"},CH=e=>t=>wH(e)(t)==="dark",Au=(e,t)=>a=>{const i=ua(a,e);return gH(i,1-t)};function r_(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
205
- 45deg,
206
- ${t} 25%,
207
- transparent 25%,
208
- transparent 50%,
209
- ${t} 50%,
210
- ${t} 75%,
211
- transparent 75%,
212
- transparent
213
- )`,backgroundSize:`${e} ${e}`}}const TH=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function EH(e){const t=TH();return!e||bH(e)?t:e.string&&e.colors?kH(e.string,e.colors):e.string&&!e.colors?RH(e.string):e.colors&&!e.string?DH(e.colors):t}function RH(e){let t=0;if(e.length===0)return t.toString();for(let i=0;i<e.length;i+=1)t=e.charCodeAt(i)+((t<<5)-t),t=t&t;let a="#";for(let i=0;i<3;i+=1){const s=t>>i*8&255;a+=`00${s.toString(16)}`.substr(-2)}return a}function kH(e,t){let a=0;if(e.length===0)return t[0];for(let i=0;i<e.length;i+=1)a=e.charCodeAt(i)+((a<<5)-a),a=a&a;return a=(a%t.length+t.length)%t.length,t[a]}function DH(e){return e[Math.floor(Math.random()*e.length)]}function at(e,t){return a=>a.colorMode==="dark"?t:e}function Xw(e){const{orientation:t,vertical:a,horizontal:i}=e;return t?t==="vertical"?a:i:{}}function OM(e){return da(e)&&e.reference?e.reference:String(e)}const vg=(e,...t)=>t.map(OM).join(` ${e} `).replace(/calc/g,""),a_=(...e)=>`calc(${vg("+",...e)})`,i_=(...e)=>`calc(${vg("-",...e)})`,Kx=(...e)=>`calc(${vg("*",...e)})`,o_=(...e)=>`calc(${vg("/",...e)})`,s_=e=>{const t=OM(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Kx(t,-1)},Ho=Object.assign(e=>({add:(...t)=>Ho(a_(e,...t)),subtract:(...t)=>Ho(i_(e,...t)),multiply:(...t)=>Ho(Kx(e,...t)),divide:(...t)=>Ho(o_(e,...t)),negate:()=>Ho(s_(e)),toString:()=>e.toString()}),{add:a_,subtract:i_,multiply:Kx,divide:o_,negate:s_});function _H(e){return!Number.isInteger(parseFloat(e.toString()))}function AH(e,t="-"){return e.replace(/\s+/g,t)}function MM(e){const t=AH(e.toString());return t.includes("\\.")?e:_H(e)?t.replace(".","\\."):e}function OH(e,t=""){return[t,MM(e)].filter(Boolean).join("-")}function MH(e,t){return`var(${MM(e)}${t?`, ${t}`:""})`}function NH(e,t=""){return`--${OH(e,t)}`}function qn(e,t){const a=NH(e,t==null?void 0:t.prefix);return{variable:a,reference:MH(a,PH(t==null?void 0:t.fallback))}}function PH(e){return typeof e=="string"?e:e==null?void 0:e.reference}const{definePartsStyle:Lh,defineMultiStyleConfig:jH}=Mn(D6.keys),Fa=Je("alert-fg"),Ko=Je("alert-bg"),LH=Lh({container:{bg:Ko.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Fa.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Fa.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Kw(e){const{theme:t,colorScheme:a}=e,i=Au(`${a}.200`,.16)(t);return{light:`colors.${a}.100`,dark:i}}const $H=Lh(e=>{const{colorScheme:t}=e,a=Kw(e);return{container:{[Fa.variable]:`colors.${t}.600`,[Ko.variable]:a.light,_dark:{[Fa.variable]:`colors.${t}.200`,[Ko.variable]:a.dark}}}}),zH=Lh(e=>{const{colorScheme:t}=e,a=Kw(e);return{container:{[Fa.variable]:`colors.${t}.600`,[Ko.variable]:a.light,_dark:{[Fa.variable]:`colors.${t}.200`,[Ko.variable]:a.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Fa.reference}}}),FH=Lh(e=>{const{colorScheme:t}=e,a=Kw(e);return{container:{[Fa.variable]:`colors.${t}.600`,[Ko.variable]:a.light,_dark:{[Fa.variable]:`colors.${t}.200`,[Ko.variable]:a.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Fa.reference}}}),IH=Lh(e=>{const{colorScheme:t}=e;return{container:{[Fa.variable]:"colors.white",[Ko.variable]:`colors.${t}.600`,_dark:{[Fa.variable]:"colors.gray.900",[Ko.variable]:`colors.${t}.200`},color:Fa.reference}}}),VH={subtle:$H,"left-accent":zH,"top-accent":FH,solid:IH},BH=jH({baseStyle:LH,variants:VH,defaultProps:{variant:"subtle",colorScheme:"blue"}}),NM={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},UH={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},HH={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},PM={...NM,...UH,container:HH},WH=e=>typeof e=="function";function fa(e,...t){return WH(e)?e(...t):e}const{definePartsStyle:jM,defineMultiStyleConfig:YH}=Mn(_6.keys),xu=Je("avatar-border-color"),eh=Je("avatar-bg"),vh=Je("avatar-font-size"),Ou=Je("avatar-size"),qH={borderRadius:"full",border:"0.2em solid",borderColor:xu.reference,[xu.variable]:"white",_dark:{[xu.variable]:"colors.gray.800"}},GH={bg:eh.reference,fontSize:vh.reference,width:Ou.reference,height:Ou.reference,lineHeight:"1",[eh.variable]:"colors.gray.200",_dark:{[eh.variable]:"colors.whiteAlpha.400"}},XH=e=>{const{name:t,theme:a}=e,i=t?EH({string:t}):"colors.gray.400",s=CH(i)(a);let u="white";return s||(u="gray.800"),{bg:eh.reference,fontSize:vh.reference,color:u,borderColor:xu.reference,verticalAlign:"top",width:Ou.reference,height:Ou.reference,"&:not([data-loaded])":{[eh.variable]:i},[xu.variable]:"colors.white",_dark:{[xu.variable]:"colors.gray.800"}}},KH={fontSize:vh.reference,lineHeight:"1"},QH=jM(e=>({badge:fa(qH,e),excessLabel:fa(GH,e),container:fa(XH,e),label:KH}));function Os(e){const t=e!=="100%"?PM[e]:void 0;return jM({container:{[Ou.variable]:t??e,[vh.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Ou.variable]:t??e,[vh.variable]:`calc(${t??e} / 2.5)`}})}const ZH={"2xs":Os(4),xs:Os(6),sm:Os(8),md:Os(12),lg:Os(16),xl:Os(24),"2xl":Os(32),full:Os("100%")},JH=YH({baseStyle:QH,sizes:ZH,defaultProps:{size:"md"}}),ar=b6("badge",["bg","color","shadow"]),eW={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:ar.bg.reference,color:ar.color.reference,boxShadow:ar.shadow.reference},tW=e=>{const{colorScheme:t,theme:a}=e,i=Au(`${t}.500`,.6)(a);return{[ar.bg.variable]:`colors.${t}.500`,[ar.color.variable]:"colors.white",_dark:{[ar.bg.variable]:i,[ar.color.variable]:"colors.whiteAlpha.800"}}},nW=e=>{const{colorScheme:t,theme:a}=e,i=Au(`${t}.200`,.16)(a);return{[ar.bg.variable]:`colors.${t}.100`,[ar.color.variable]:`colors.${t}.800`,_dark:{[ar.bg.variable]:i,[ar.color.variable]:`colors.${t}.200`}}},rW=e=>{const{colorScheme:t,theme:a}=e,i=Au(`${t}.200`,.8)(a);return{[ar.color.variable]:`colors.${t}.500`,_dark:{[ar.color.variable]:i},[ar.shadow.variable]:`inset 0 0 0px 1px ${ar.color.reference}`}},aW={solid:tW,subtle:nW,outline:rW},th={baseStyle:eW,variants:aW,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:iW,definePartsStyle:oW}=Mn(A6.keys),YS=Je("breadcrumb-link-decor"),sW={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:YS.reference,[YS.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[YS.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},lW=oW({link:sW}),cW=iW({baseStyle:lW}),uW={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},LM=e=>{const{colorScheme:t,theme:a}=e;if(t==="gray")return{color:at("gray.800","whiteAlpha.900")(e),_hover:{bg:at("gray.100","whiteAlpha.200")(e)},_active:{bg:at("gray.200","whiteAlpha.300")(e)}};const i=Au(`${t}.200`,.12)(a),s=Au(`${t}.200`,.24)(a);return{color:at(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:at(`${t}.50`,i)(e)},_active:{bg:at(`${t}.100`,s)(e)}}},dW=e=>{const{colorScheme:t}=e,a=at("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?a:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...fa(LM,e)}},fW={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},hW=e=>{const{colorScheme:t}=e;if(t==="gray"){const f=at("gray.100","whiteAlpha.200")(e);return{bg:f,color:at("gray.800","whiteAlpha.900")(e),_hover:{bg:at("gray.200","whiteAlpha.300")(e),_disabled:{bg:f}},_active:{bg:at("gray.300","whiteAlpha.400")(e)}}}const{bg:a=`${t}.500`,color:i="white",hoverBg:s=`${t}.600`,activeBg:u=`${t}.700`}=fW[t]??{},c=at(a,`${t}.200`)(e);return{bg:c,color:at(i,"gray.800")(e),_hover:{bg:at(s,`${t}.300`)(e),_disabled:{bg:c}},_active:{bg:at(u,`${t}.400`)(e)}}},pW=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:at(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:at(`${t}.700`,`${t}.500`)(e)}}},mW={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},vW={ghost:LM,outline:dW,solid:hW,link:pW,unstyled:mW},gW={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},yW={baseStyle:uW,variants:vW,sizes:gW,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:zl,defineMultiStyleConfig:bW}=Mn(Q6.keys),Gv=Je("card-bg"),qo=Je("card-padding"),$M=Je("card-shadow"),xv=Je("card-radius"),zM=Je("card-border-width","0"),FM=Je("card-border-color"),SW=zl({container:{[Gv.variable]:"colors.chakra-body-bg",backgroundColor:Gv.reference,boxShadow:$M.reference,borderRadius:xv.reference,color:"chakra-body-text",borderWidth:zM.reference,borderColor:FM.reference},body:{padding:qo.reference,flex:"1 1 0%"},header:{padding:qo.reference},footer:{padding:qo.reference}}),xW={sm:zl({container:{[xv.variable]:"radii.base",[qo.variable]:"space.3"}}),md:zl({container:{[xv.variable]:"radii.md",[qo.variable]:"space.5"}}),lg:zl({container:{[xv.variable]:"radii.xl",[qo.variable]:"space.7"}})},wW={elevated:zl({container:{[$M.variable]:"shadows.base",_dark:{[Gv.variable]:"colors.gray.700"}}}),outline:zl({container:{[zM.variable]:"1px",[FM.variable]:"colors.chakra-border-color"}}),filled:zl({container:{[Gv.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[qo.variable]:0},header:{[qo.variable]:0},footer:{[qo.variable]:0}}},CW=bW({baseStyle:SW,variants:wW,sizes:xW,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:wv,defineMultiStyleConfig:TW}=Mn(O6.keys),nh=Je("checkbox-size"),EW=e=>{const{colorScheme:t}=e;return{w:nh.reference,h:nh.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:at(`${t}.500`,`${t}.200`)(e),borderColor:at(`${t}.500`,`${t}.200`)(e),color:at("white","gray.900")(e),_hover:{bg:at(`${t}.600`,`${t}.300`)(e),borderColor:at(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:at("gray.200","transparent")(e),bg:at("gray.200","whiteAlpha.300")(e),color:at("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:at(`${t}.500`,`${t}.200`)(e),borderColor:at(`${t}.500`,`${t}.200`)(e),color:at("white","gray.900")(e)},_disabled:{bg:at("gray.100","whiteAlpha.100")(e),borderColor:at("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:at("red.500","red.300")(e)}}},RW={_disabled:{cursor:"not-allowed"}},kW={userSelect:"none",_disabled:{opacity:.4}},DW={transitionProperty:"transform",transitionDuration:"normal"},_W=wv(e=>({icon:DW,container:RW,control:fa(EW,e),label:kW})),AW={sm:wv({control:{[nh.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:wv({control:{[nh.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:wv({control:{[nh.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Ps=TW({baseStyle:_W,sizes:AW,defaultProps:{size:"md",colorScheme:"blue"}}),rh=qn("close-button-size"),Pf=qn("close-button-bg"),OW={w:[rh.reference],h:[rh.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Pf.variable]:"colors.blackAlpha.100",_dark:{[Pf.variable]:"colors.whiteAlpha.100"}},_active:{[Pf.variable]:"colors.blackAlpha.200",_dark:{[Pf.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Pf.reference},MW={lg:{[rh.variable]:"sizes.10",fontSize:"md"},md:{[rh.variable]:"sizes.8",fontSize:"xs"},sm:{[rh.variable]:"sizes.6",fontSize:"2xs"}},NW={baseStyle:OW,sizes:MW,defaultProps:{size:"md"}},{variants:PW,defaultProps:jW}=th,LW={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:ar.bg.reference,color:ar.color.reference,boxShadow:ar.shadow.reference},$W={baseStyle:LW,variants:PW,defaultProps:jW},zW={w:"100%",mx:"auto",maxW:"prose",px:"4"},FW={baseStyle:zW},IW={opacity:.6,borderColor:"inherit"},VW={borderStyle:"solid"},BW={borderStyle:"dashed"},UW={solid:VW,dashed:BW},HW={baseStyle:IW,variants:UW,defaultProps:{variant:"solid"}},{definePartsStyle:Qx,defineMultiStyleConfig:WW}=Mn(M6.keys),qS=Je("drawer-bg"),GS=Je("drawer-box-shadow");function Jc(e){return Qx(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const YW={bg:"blackAlpha.600",zIndex:"modal"},qW={display:"flex",zIndex:"modal",justifyContent:"center"},GW=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[qS.variable]:"colors.white",[GS.variable]:"shadows.lg",_dark:{[qS.variable]:"colors.gray.700",[GS.variable]:"shadows.dark-lg"},bg:qS.reference,boxShadow:GS.reference}},XW={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},KW={position:"absolute",top:"2",insetEnd:"3"},QW={px:"6",py:"2",flex:"1",overflow:"auto"},ZW={px:"6",py:"4"},JW=Qx(e=>({overlay:YW,dialogContainer:qW,dialog:fa(GW,e),header:XW,closeButton:KW,body:QW,footer:ZW})),e9={xs:Jc("xs"),sm:Jc("md"),md:Jc("lg"),lg:Jc("2xl"),xl:Jc("4xl"),full:Jc("full")},t9=WW({baseStyle:JW,sizes:e9,defaultProps:{size:"xs"}}),{definePartsStyle:n9,defineMultiStyleConfig:r9}=Mn(N6.keys),a9={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},i9={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},o9={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},s9=n9({preview:a9,input:i9,textarea:o9}),l9=r9({baseStyle:s9}),{definePartsStyle:c9,defineMultiStyleConfig:u9}=Mn(P6.keys),wu=Je("form-control-color"),d9={marginStart:"1",[wu.variable]:"colors.red.500",_dark:{[wu.variable]:"colors.red.300"},color:wu.reference},f9={mt:"2",[wu.variable]:"colors.gray.600",_dark:{[wu.variable]:"colors.whiteAlpha.600"},color:wu.reference,lineHeight:"normal",fontSize:"sm"},h9=c9({container:{width:"100%",position:"relative"},requiredIndicator:d9,helperText:f9}),p9=u9({baseStyle:h9}),{definePartsStyle:m9,defineMultiStyleConfig:v9}=Mn(j6.keys),Cu=Je("form-error-color"),g9={[Cu.variable]:"colors.red.500",_dark:{[Cu.variable]:"colors.red.300"},color:Cu.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},y9={marginEnd:"0.5em",[Cu.variable]:"colors.red.500",_dark:{[Cu.variable]:"colors.red.300"},color:Cu.reference},b9=m9({text:g9,icon:y9}),S9=v9({baseStyle:b9}),x9={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},w9={baseStyle:x9},C9={fontFamily:"heading",fontWeight:"bold"},T9={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},E9={baseStyle:C9,sizes:T9,defaultProps:{size:"xl"}},{definePartsStyle:Yo,defineMultiStyleConfig:R9}=Mn(L6.keys),lu=Je("input-height"),cu=Je("input-font-size"),uu=Je("input-padding"),du=Je("input-border-radius"),k9=Yo({addon:{height:lu.reference,fontSize:cu.reference,px:uu.reference,borderRadius:du.reference},field:{width:"100%",height:lu.reference,fontSize:cu.reference,px:uu.reference,borderRadius:du.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Ms={lg:{[cu.variable]:"fontSizes.lg",[uu.variable]:"space.4",[du.variable]:"radii.md",[lu.variable]:"sizes.12"},md:{[cu.variable]:"fontSizes.md",[uu.variable]:"space.4",[du.variable]:"radii.md",[lu.variable]:"sizes.10"},sm:{[cu.variable]:"fontSizes.sm",[uu.variable]:"space.3",[du.variable]:"radii.sm",[lu.variable]:"sizes.8"},xs:{[cu.variable]:"fontSizes.xs",[uu.variable]:"space.2",[du.variable]:"radii.sm",[lu.variable]:"sizes.6"}},D9={lg:Yo({field:Ms.lg,group:Ms.lg}),md:Yo({field:Ms.md,group:Ms.md}),sm:Yo({field:Ms.sm,group:Ms.sm}),xs:Yo({field:Ms.xs,group:Ms.xs})};function Qw(e){const{focusBorderColor:t,errorBorderColor:a}=e;return{focusBorderColor:t||at("blue.500","blue.300")(e),errorBorderColor:a||at("red.500","red.300")(e)}}const _9=Yo(e=>{const{theme:t}=e,{focusBorderColor:a,errorBorderColor:i}=Qw(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:at("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ua(t,i),boxShadow:`0 0 0 1px ${ua(t,i)}`},_focusVisible:{zIndex:1,borderColor:ua(t,a),boxShadow:`0 0 0 1px ${ua(t,a)}`}},addon:{border:"1px solid",borderColor:at("inherit","whiteAlpha.50")(e),bg:at("gray.100","whiteAlpha.300")(e)}}}),A9=Yo(e=>{const{theme:t}=e,{focusBorderColor:a,errorBorderColor:i}=Qw(e);return{field:{border:"2px solid",borderColor:"transparent",bg:at("gray.100","whiteAlpha.50")(e),_hover:{bg:at("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ua(t,i)},_focusVisible:{bg:"transparent",borderColor:ua(t,a)}},addon:{border:"2px solid",borderColor:"transparent",bg:at("gray.100","whiteAlpha.50")(e)}}}),O9=Yo(e=>{const{theme:t}=e,{focusBorderColor:a,errorBorderColor:i}=Qw(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ua(t,i),boxShadow:`0px 1px 0px 0px ${ua(t,i)}`},_focusVisible:{borderColor:ua(t,a),boxShadow:`0px 1px 0px 0px ${ua(t,a)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),M9=Yo({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),N9={outline:_9,filled:A9,flushed:O9,unstyled:M9},mn=R9({baseStyle:k9,sizes:D9,variants:N9,defaultProps:{size:"md",variant:"outline"}}),XS=Je("kbd-bg"),P9={[XS.variable]:"colors.gray.100",_dark:{[XS.variable]:"colors.whiteAlpha.100"},bg:XS.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},j9={baseStyle:P9},L9={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},$9={baseStyle:L9},{defineMultiStyleConfig:z9,definePartsStyle:F9}=Mn($6.keys),I9={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},V9=F9({icon:I9}),B9=z9({baseStyle:V9}),{defineMultiStyleConfig:U9,definePartsStyle:H9}=Mn(z6.keys),eo=Je("menu-bg"),KS=Je("menu-shadow"),W9={[eo.variable]:"#fff",[KS.variable]:"shadows.sm",_dark:{[eo.variable]:"colors.gray.700",[KS.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:eo.reference,boxShadow:KS.reference},Y9={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[eo.variable]:"colors.gray.100",_dark:{[eo.variable]:"colors.whiteAlpha.100"}},_active:{[eo.variable]:"colors.gray.200",_dark:{[eo.variable]:"colors.whiteAlpha.200"}},_expanded:{[eo.variable]:"colors.gray.100",_dark:{[eo.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:eo.reference},q9={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},G9={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},X9={opacity:.6},K9={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},Q9={transitionProperty:"common",transitionDuration:"normal"},Z9=H9({button:Q9,list:W9,item:Y9,groupTitle:q9,icon:G9,command:X9,divider:K9}),J9=U9({baseStyle:Z9}),{defineMultiStyleConfig:e8,definePartsStyle:Zx}=Mn(F6.keys),QS=Je("modal-bg"),ZS=Je("modal-shadow"),t8={bg:"blackAlpha.600",zIndex:"modal"},n8=e=>{const{isCentered:t,scrollBehavior:a}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:a==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},r8=e=>{const{isCentered:t,scrollBehavior:a}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:a==="inside"?"calc(100% - 7.5rem)":void 0,[QS.variable]:"colors.white",[ZS.variable]:"shadows.lg",_dark:{[QS.variable]:"colors.gray.700",[ZS.variable]:"shadows.dark-lg"},bg:QS.reference,boxShadow:ZS.reference}},a8={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},i8={position:"absolute",top:"2",insetEnd:"3"},o8=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},s8={px:"6",py:"4"},l8=Zx(e=>({overlay:t8,dialogContainer:fa(n8,e),dialog:fa(r8,e),header:a8,closeButton:i8,body:fa(o8,e),footer:s8}));function ki(e){return Zx(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const c8={xs:ki("xs"),sm:ki("sm"),md:ki("md"),lg:ki("lg"),xl:ki("xl"),"2xl":ki("2xl"),"3xl":ki("3xl"),"4xl":ki("4xl"),"5xl":ki("5xl"),"6xl":ki("6xl"),full:ki("full")},u8=e8({baseStyle:l8,sizes:c8,defaultProps:{size:"md"}}),IM={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:d8,definePartsStyle:VM}=Mn(I6.keys),Zw=qn("number-input-stepper-width"),BM=qn("number-input-input-padding"),f8=Ho(Zw).add("0.5rem").toString(),JS=qn("number-input-bg"),ex=qn("number-input-color"),tx=qn("number-input-border-color"),h8={[Zw.variable]:"sizes.6",[BM.variable]:f8},p8=e=>{var t;return((t=fa(mn.baseStyle,e))==null?void 0:t.field)??{}},m8={width:Zw.reference},v8={borderStart:"1px solid",borderStartColor:tx.reference,color:ex.reference,bg:JS.reference,[ex.variable]:"colors.chakra-body-text",[tx.variable]:"colors.chakra-border-color",_dark:{[ex.variable]:"colors.whiteAlpha.800",[tx.variable]:"colors.whiteAlpha.300"},_active:{[JS.variable]:"colors.gray.200",_dark:{[JS.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},g8=VM(e=>({root:h8,field:fa(p8,e)??{},stepperGroup:m8,stepper:v8}));function ev(e){var u,c;const t=(u=mn.sizes)==null?void 0:u[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},i=((c=t.field)==null?void 0:c.fontSize)??"md",s=IM.fontSizes[i];return VM({field:{...t.field,paddingInlineEnd:BM.reference,verticalAlign:"top"},stepper:{fontSize:Ho(s).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}})}const y8={xs:ev("xs"),sm:ev("sm"),md:ev("md"),lg:ev("lg")},b8=d8({baseStyle:g8,sizes:y8,variants:mn.variants,defaultProps:mn.defaultProps});var GO;const S8={...(GO=mn.baseStyle)==null?void 0:GO.field,textAlign:"center"},x8={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}};var XO;const w8={outline:e=>{var t,a;return((a=fa((t=mn.variants)==null?void 0:t.outline,e))==null?void 0:a.field)??{}},flushed:e=>{var t,a;return((a=fa((t=mn.variants)==null?void 0:t.flushed,e))==null?void 0:a.field)??{}},filled:e=>{var t,a;return((a=fa((t=mn.variants)==null?void 0:t.filled,e))==null?void 0:a.field)??{}},unstyled:((XO=mn.variants)==null?void 0:XO.unstyled.field)??{}},C8={baseStyle:S8,sizes:x8,variants:w8,defaultProps:mn.defaultProps},{defineMultiStyleConfig:T8,definePartsStyle:E8}=Mn(V6.keys),tv=qn("popper-bg"),R8=qn("popper-arrow-bg"),l_=qn("popper-arrow-shadow-color"),k8={zIndex:"popover"},D8={[tv.variable]:"colors.white",bg:tv.reference,[R8.variable]:tv.reference,[l_.variable]:"colors.gray.200",_dark:{[tv.variable]:"colors.gray.700",[l_.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},_8={px:3,py:2,borderBottomWidth:"1px"},A8={px:3,py:2},O8={px:3,py:2,borderTopWidth:"1px"},M8={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},N8=E8({popper:k8,content:D8,header:_8,body:A8,footer:O8,closeButton:M8}),P8=T8({baseStyle:N8}),{defineMultiStyleConfig:j8,definePartsStyle:Uf}=Mn(B6.keys),L8=e=>{const{colorScheme:t,theme:a,isIndeterminate:i,hasStripe:s}=e,u=at(r_(),r_("1rem","rgba(0,0,0,0.1)"))(e),c=at(`${t}.500`,`${t}.200`)(e),f=`linear-gradient(
214
- to right,
215
- transparent 0%,
216
- ${ua(a,c)} 50%,
217
- transparent 100%
218
- )`;return{...!i&&s&&u,...i?{bgImage:f}:{bgColor:c}}},$8={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},z8=e=>({bg:at("gray.100","whiteAlpha.300")(e)}),F8=e=>({transitionProperty:"common",transitionDuration:"slow",...L8(e)}),I8=Uf(e=>({label:$8,filledTrack:F8(e),track:z8(e)})),V8={xs:Uf({track:{h:"1"}}),sm:Uf({track:{h:"2"}}),md:Uf({track:{h:"3"}}),lg:Uf({track:{h:"4"}})},B8=j8({sizes:V8,baseStyle:I8,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:U8,definePartsStyle:Cv}=Mn(U6.keys),H8=e=>{var a;const t=(a=fa(Ps.baseStyle,e))==null?void 0:a.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},W8=Cv(e=>{var t,a;return{label:(t=Ps.baseStyle)==null?void 0:t.call(Ps,e).label,container:(a=Ps.baseStyle)==null?void 0:a.call(Ps,e).container,control:H8(e)}}),Y8={md:Cv({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Cv({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Cv({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},q8=U8({baseStyle:W8,sizes:Y8,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:G8,definePartsStyle:X8}=Mn(H6.keys),nv=Je("select-bg");var KO;const K8={...(KO=mn.baseStyle)==null?void 0:KO.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:nv.reference,[nv.variable]:"colors.white",_dark:{[nv.variable]:"colors.gray.700"},"> option, > optgroup":{bg:nv.reference}},Q8={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Z8=X8({field:K8,icon:Q8}),rv={paddingInlineEnd:"8"};var QO,ZO,JO,eM,tM,nM,rM,aM;const J8={lg:{...(QO=mn.sizes)==null?void 0:QO.lg,field:{...(ZO=mn.sizes)==null?void 0:ZO.lg.field,...rv}},md:{...(JO=mn.sizes)==null?void 0:JO.md,field:{...(eM=mn.sizes)==null?void 0:eM.md.field,...rv}},sm:{...(tM=mn.sizes)==null?void 0:tM.sm,field:{...(nM=mn.sizes)==null?void 0:nM.sm.field,...rv}},xs:{...(rM=mn.sizes)==null?void 0:rM.xs,field:{...(aM=mn.sizes)==null?void 0:aM.xs.field,...rv},icon:{insetEnd:"1"}}},e7=G8({baseStyle:Z8,sizes:J8,variants:mn.variants,defaultProps:mn.defaultProps}),nx=Je("skeleton-start-color"),rx=Je("skeleton-end-color"),t7={[nx.variable]:"colors.gray.100",[rx.variable]:"colors.gray.400",_dark:{[nx.variable]:"colors.gray.800",[rx.variable]:"colors.gray.600"},background:nx.reference,borderColor:rx.reference,opacity:.7,borderRadius:"sm"},n7={baseStyle:t7},ax=Je("skip-link-bg"),r7={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[ax.variable]:"colors.white",_dark:{[ax.variable]:"colors.gray.700"},bg:ax.reference}},a7={baseStyle:r7},{defineMultiStyleConfig:i7,definePartsStyle:gg}=Mn(W6.keys),Wl=Je("slider-thumb-size"),gh=Je("slider-track-size"),Ls=Je("slider-bg"),o7=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Xw({orientation:t,vertical:{h:"100%",px:Uo(Wl.reference).divide(2).toString()},horizontal:{w:"100%",py:Uo(Wl.reference).divide(2).toString()}})}},s7=e=>({...Xw({orientation:e.orientation,horizontal:{h:gh.reference},vertical:{w:gh.reference}}),overflow:"hidden",borderRadius:"sm",[Ls.variable]:"colors.gray.200",_dark:{[Ls.variable]:"colors.whiteAlpha.200"},_disabled:{[Ls.variable]:"colors.gray.300",_dark:{[Ls.variable]:"colors.whiteAlpha.300"}},bg:Ls.reference}),l7=e=>{const{orientation:t}=e;return{...Xw({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:Wl.reference,h:Wl.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_active:{"--slider-thumb-scale":"1.15"},_disabled:{bg:"gray.300"}}},c7=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Ls.variable]:`colors.${t}.500`,_dark:{[Ls.variable]:`colors.${t}.200`},bg:Ls.reference}},u7=gg(e=>({container:o7(e),track:s7(e),thumb:l7(e),filledTrack:c7(e)})),d7=gg({container:{[Wl.variable]:"sizes.4",[gh.variable]:"sizes.1"}}),f7=gg({container:{[Wl.variable]:"sizes.3.5",[gh.variable]:"sizes.1"}}),h7=gg({container:{[Wl.variable]:"sizes.2.5",[gh.variable]:"sizes.0.5"}}),p7={lg:d7,md:f7,sm:h7},m7=i7({baseStyle:u7,sizes:p7,defaultProps:{size:"md",colorScheme:"blue"}}),Pl=qn("spinner-size"),v7={width:[Pl.reference],height:[Pl.reference]},g7={xs:{[Pl.variable]:"sizes.3"},sm:{[Pl.variable]:"sizes.4"},md:{[Pl.variable]:"sizes.6"},lg:{[Pl.variable]:"sizes.8"},xl:{[Pl.variable]:"sizes.12"}},y7={baseStyle:v7,sizes:g7,defaultProps:{size:"md"}},{defineMultiStyleConfig:b7,definePartsStyle:UM}=Mn(Y6.keys),S7={fontWeight:"medium"},x7={opacity:.8,marginBottom:"2"},w7={verticalAlign:"baseline",fontWeight:"semibold"},C7={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},T7=UM({container:{},label:S7,helpText:x7,number:w7,icon:C7}),E7={md:UM({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},R7=b7({baseStyle:T7,sizes:E7,defaultProps:{size:"md"}}),{defineMultiStyleConfig:k7,definePartsStyle:Hf}=Mn(["stepper","step","title","description","indicator","separator","icon","number"]),Wo=Je("stepper-indicator-size"),fu=Je("stepper-icon-size"),hu=Je("stepper-title-font-size"),Wf=Je("stepper-description-font-size"),jf=Je("stepper-accent-color"),D7=Hf(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[jf.variable]:`colors.${e}.500`,_dark:{[jf.variable]:`colors.${e}.200`}},title:{fontSize:hu.reference,fontWeight:"medium"},description:{fontSize:Wf.reference,color:"chakra-subtle-text"},number:{fontSize:hu.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:fu.reference,height:fu.reference},indicator:{flexShrink:0,borderRadius:"full",width:Wo.reference,height:Wo.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:jf.reference},"&[data-status=complete]":{bg:jf.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:jf.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Wo.reference} - 8px)`,top:`calc(${Wo.reference} + 4px)`,insetStart:`calc(${Wo.reference} / 2 - 1px)`}}})),_7=k7({baseStyle:D7,sizes:{xs:Hf({stepper:{[Wo.variable]:"sizes.4",[fu.variable]:"sizes.3",[hu.variable]:"fontSizes.xs",[Wf.variable]:"fontSizes.xs"}}),sm:Hf({stepper:{[Wo.variable]:"sizes.6",[fu.variable]:"sizes.4",[hu.variable]:"fontSizes.sm",[Wf.variable]:"fontSizes.xs"}}),md:Hf({stepper:{[Wo.variable]:"sizes.8",[fu.variable]:"sizes.5",[hu.variable]:"fontSizes.md",[Wf.variable]:"fontSizes.sm"}}),lg:Hf({stepper:{[Wo.variable]:"sizes.10",[fu.variable]:"sizes.6",[hu.variable]:"fontSizes.lg",[Wf.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:A7,definePartsStyle:Tv}=Mn(q6.keys),ah=qn("switch-track-width"),Fl=qn("switch-track-height"),ix=qn("switch-track-diff"),O7=Ho.subtract(ah,Fl),Jx=qn("switch-thumb-x"),Lf=qn("switch-bg"),M7=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[ah.reference],height:[Fl.reference],transitionProperty:"common",transitionDuration:"fast",[Lf.variable]:"colors.gray.300",_dark:{[Lf.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Lf.variable]:`colors.${t}.500`,_dark:{[Lf.variable]:`colors.${t}.200`}},bg:Lf.reference}},N7={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Fl.reference],height:[Fl.reference],_checked:{transform:`translateX(${Jx.reference})`}},P7=Tv(e=>({container:{[ix.variable]:O7,[Jx.variable]:ix.reference,_rtl:{[Jx.variable]:Ho(ix).negate().toString()}},track:M7(e),thumb:N7})),j7={sm:Tv({container:{[ah.variable]:"1.375rem",[Fl.variable]:"sizes.3"}}),md:Tv({container:{[ah.variable]:"1.875rem",[Fl.variable]:"sizes.4"}}),lg:Tv({container:{[ah.variable]:"2.875rem",[Fl.variable]:"sizes.6"}})},L7=A7({baseStyle:P7,sizes:j7,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:$7,definePartsStyle:Tu}=Mn(G6.keys),z7=Tu({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Xv={"&[data-is-numeric=true]":{textAlign:"end"}},F7=Tu(e=>{const{colorScheme:t}=e;return{th:{color:at("gray.600","gray.400")(e),borderBottom:"1px",borderColor:at(`${t}.100`,`${t}.700`)(e),...Xv},td:{borderBottom:"1px",borderColor:at(`${t}.100`,`${t}.700`)(e),...Xv},caption:{color:at("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),I7=Tu(e=>{const{colorScheme:t}=e;return{th:{color:at("gray.600","gray.400")(e),borderBottom:"1px",borderColor:at(`${t}.100`,`${t}.700`)(e),...Xv},td:{borderBottom:"1px",borderColor:at(`${t}.100`,`${t}.700`)(e),...Xv},caption:{color:at("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:at(`${t}.100`,`${t}.700`)(e)},td:{background:at(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),V7={simple:F7,striped:I7,unstyled:{}},B7={sm:Tu({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Tu({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Tu({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},U7=$7({baseStyle:z7,variants:V7,sizes:B7,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Ca=Je("tabs-color"),Ai=Je("tabs-bg"),av=Je("tabs-border-color"),{defineMultiStyleConfig:H7,definePartsStyle:io}=Mn(X6.keys),W7=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},Y7=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},q7=e=>{const{align:t="start",orientation:a}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:a==="vertical"?"column":"row"}},G7={p:4},X7=io(e=>({root:W7(e),tab:Y7(e),tablist:q7(e),tabpanel:G7})),K7={sm:io({tab:{py:1,px:4,fontSize:"sm"}}),md:io({tab:{fontSize:"md",py:2,px:4}}),lg:io({tab:{fontSize:"lg",py:3,px:4}})},Q7=io(e=>{const{colorScheme:t,orientation:a}=e,i=a==="vertical",s=i?"borderStart":"borderBottom",u=i?"marginStart":"marginBottom";return{tablist:{[s]:"2px solid",borderColor:"inherit"},tab:{[s]:"2px solid",borderColor:"transparent",[u]:"-2px",_selected:{[Ca.variable]:`colors.${t}.600`,_dark:{[Ca.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Ai.variable]:"colors.gray.200",_dark:{[Ai.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Ca.reference,bg:Ai.reference}}}),Z7=io(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[av.variable]:"transparent",_selected:{[Ca.variable]:`colors.${t}.600`,[av.variable]:"colors.white",_dark:{[Ca.variable]:`colors.${t}.300`,[av.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:av.reference},color:Ca.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),J7=io(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Ai.variable]:"colors.gray.50",_dark:{[Ai.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Ai.variable]:"colors.white",[Ca.variable]:`colors.${t}.600`,_dark:{[Ai.variable]:"colors.gray.800",[Ca.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Ca.reference,bg:Ai.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),eY=io(e=>{const{colorScheme:t,theme:a}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:ua(a,`${t}.700`),bg:ua(a,`${t}.100`)}}}}),tY=io(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Ca.variable]:"colors.gray.600",_dark:{[Ca.variable]:"inherit"},_selected:{[Ca.variable]:"colors.white",[Ai.variable]:`colors.${t}.600`,_dark:{[Ca.variable]:"colors.gray.800",[Ai.variable]:`colors.${t}.300`}},color:Ca.reference,bg:Ai.reference}}}),nY=io({}),rY={line:Q7,enclosed:Z7,"enclosed-colored":J7,"soft-rounded":eY,"solid-rounded":tY,unstyled:nY},aY=H7({baseStyle:X7,sizes:K7,variants:rY,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:iY,definePartsStyle:Il}=Mn(K6.keys),c_=Je("tag-bg"),u_=Je("tag-color"),ox=Je("tag-shadow"),Ev=Je("tag-min-height"),Rv=Je("tag-min-width"),kv=Je("tag-font-size"),Dv=Je("tag-padding-inline"),oY={fontWeight:"medium",lineHeight:1.2,outline:0,[u_.variable]:ar.color.reference,[c_.variable]:ar.bg.reference,[ox.variable]:ar.shadow.reference,color:u_.reference,bg:c_.reference,boxShadow:ox.reference,borderRadius:"md",minH:Ev.reference,minW:Rv.reference,fontSize:kv.reference,px:Dv.reference,_focusVisible:{[ox.variable]:"shadows.outline"}},sY={lineHeight:1.2,overflow:"visible"},lY={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},cY=Il({container:oY,label:sY,closeButton:lY}),uY={sm:Il({container:{[Ev.variable]:"sizes.5",[Rv.variable]:"sizes.5",[kv.variable]:"fontSizes.xs",[Dv.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Il({container:{[Ev.variable]:"sizes.6",[Rv.variable]:"sizes.6",[kv.variable]:"fontSizes.sm",[Dv.variable]:"space.2"}}),lg:Il({container:{[Ev.variable]:"sizes.8",[Rv.variable]:"sizes.8",[kv.variable]:"fontSizes.md",[Dv.variable]:"space.3"}})},dY={subtle:Il(e=>{var t;return{container:(t=th.variants)==null?void 0:t.subtle(e)}}),solid:Il(e=>{var t;return{container:(t=th.variants)==null?void 0:t.solid(e)}}),outline:Il(e=>{var t;return{container:(t=th.variants)==null?void 0:t.outline(e)}})},fY=iY({variants:dY,baseStyle:cY,sizes:uY,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var iM;const hY={...(iM=mn.baseStyle)==null?void 0:iM.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var oM;const pY={outline:e=>{var t;return((t=mn.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=mn.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=mn.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((oM=mn.variants)==null?void 0:oM.unstyled.field)??{}};var sM,lM,cM,uM;const mY={xs:((sM=mn.sizes)==null?void 0:sM.xs.field)??{},sm:((lM=mn.sizes)==null?void 0:lM.sm.field)??{},md:((cM=mn.sizes)==null?void 0:cM.md.field)??{},lg:((uM=mn.sizes)==null?void 0:uM.lg.field)??{}},vY={baseStyle:hY,sizes:mY,variants:pY,defaultProps:{size:"md",variant:"outline"}},iv=qn("tooltip-bg"),sx=qn("tooltip-fg"),gY=qn("popper-arrow-bg"),yY={bg:iv.reference,color:sx.reference,[iv.variable]:"colors.gray.700",[sx.variable]:"colors.whiteAlpha.900",_dark:{[iv.variable]:"colors.gray.300",[sx.variable]:"colors.gray.900"},[gY.variable]:iv.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},bY={baseStyle:yY},SY={Accordion:iH,Alert:BH,Avatar:JH,Badge:th,Breadcrumb:cW,Button:yW,Checkbox:Ps,CloseButton:NW,Code:$W,Container:FW,Divider:HW,Drawer:t9,Editable:l9,Form:p9,FormError:S9,FormLabel:w9,Heading:E9,Input:mn,Kbd:j9,Link:$9,List:B9,Menu:J9,Modal:u8,NumberInput:b8,PinInput:C8,Popover:P8,Progress:B8,Radio:q8,Select:e7,Skeleton:n7,SkipLink:a7,Slider:m7,Spinner:y7,Stat:R7,Switch:L7,Table:U7,Tabs:aY,Tag:fY,Textarea:vY,Tooltip:bY,Card:CW,Stepper:_7},xY={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},wY={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},CY={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},TY={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},EY={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},RY={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},kY={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},DY={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},_Y={property:RY,easing:kY,duration:DY},AY={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},OY={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},MY={breakpoints:wY,zIndices:AY,radii:TY,blur:OY,colors:CY,...IM,sizes:PM,shadows:EY,space:NM,borders:xY,transition:_Y},NY={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},PY={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},jY=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function LY(e){return da(e)?jY.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}const $Y="ltr",zY={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},HM={semanticTokens:NY,direction:$Y,...MY,components:SY,styles:PY,config:zY};var WM={exports:{}},_v={};/**
219
- * @license React
220
- * react-jsx-runtime.development.js
221
- *
222
- * Copyright (c) Facebook, Inc. and its affiliates.
223
- *
224
- * This source code is licensed under the MIT license found in the
225
- * LICENSE file in the root directory of this source tree.
226
- */(function(){var e=w,t=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),R=Symbol.iterator,E="@@iterator";function k(M){if(M===null||typeof M!="object")return null;var le=R&&M[R]||M[E];return typeof le=="function"?le:null}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(M){{for(var le=arguments.length,he=new Array(le>1?le-1:0),Re=1;Re<le;Re++)he[Re-1]=arguments[Re];P("error",M,he)}}function P(M,le,he){{var Re=A.ReactDebugCurrentFrame,Ae=Re.getStackAddendum();Ae!==""&&(le+="%s",he=he.concat([Ae]));var tt=he.map(function(Me){return String(Me)});tt.unshift("Warning: "+le),Function.prototype.apply.call(console[M],console,tt)}}var $=!1,L=!1,U=!1,F=!1,Q=!1,se;se=Symbol.for("react.module.reference");function ae(M){return!!(typeof M=="string"||typeof M=="function"||M===i||M===u||Q||M===s||M===m||M===v||F||M===x||$||L||U||typeof M=="object"&&M!==null&&(M.$$typeof===S||M.$$typeof===y||M.$$typeof===c||M.$$typeof===f||M.$$typeof===h||M.$$typeof===se||M.getModuleId!==void 0))}function ue(M,le,he){var Re=M.displayName;if(Re)return Re;var Ae=le.displayName||le.name||"";return Ae!==""?he+"("+Ae+")":he}function Ge(M){return M.displayName||"Context"}function Y(M){if(M==null)return null;if(typeof M.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof M=="function")return M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case i:return"Fragment";case a:return"Portal";case u:return"Profiler";case s:return"StrictMode";case m:return"Suspense";case v:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case f:var le=M;return Ge(le)+".Consumer";case c:var he=M;return Ge(he._context)+".Provider";case h:return ue(M,M.render,"ForwardRef");case y:var Re=M.displayName||null;return Re!==null?Re:Y(M.type)||"Memo";case S:{var Ae=M,tt=Ae._payload,Me=Ae._init;try{return Y(Me(tt))}catch{return null}}}return null}var ce=Object.assign,Ee=0,G,I,X,pe,te,we,xe;function be(){}be.__reactDisabledLog=!0;function Ve(){{if(Ee===0){G=console.log,I=console.info,X=console.warn,pe=console.error,te=console.group,we=console.groupCollapsed,xe=console.groupEnd;var M={configurable:!0,enumerable:!0,value:be,writable:!0};Object.defineProperties(console,{info:M,log:M,warn:M,error:M,group:M,groupCollapsed:M,groupEnd:M})}Ee++}}function Ue(){{if(Ee--,Ee===0){var M={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ce({},M,{value:G}),info:ce({},M,{value:I}),warn:ce({},M,{value:X}),error:ce({},M,{value:pe}),group:ce({},M,{value:te}),groupCollapsed:ce({},M,{value:we}),groupEnd:ce({},M,{value:xe})})}Ee<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Xe=A.ReactCurrentDispatcher,Rt;function pt(M,le,he){{if(Rt===void 0)try{throw Error()}catch(Ae){var Re=Ae.stack.trim().match(/\n( *(at )?)/);Rt=Re&&Re[1]||""}return`
227
- `+Rt+M}}var Ct=!1,ut;{var Ft=typeof WeakMap=="function"?WeakMap:Map;ut=new Ft}function ge(M,le){if(!M||Ct)return"";{var he=ut.get(M);if(he!==void 0)return he}var Re;Ct=!0;var Ae=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var tt;tt=Xe.current,Xe.current=null,Ve();try{if(le){var Me=function(){throw Error()};if(Object.defineProperty(Me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Me,[])}catch(Vn){Re=Vn}Reflect.construct(M,[],Me)}else{try{Me.call()}catch(Vn){Re=Vn}M.call(Me.prototype)}}else{try{throw Error()}catch(Vn){Re=Vn}M()}}catch(Vn){if(Vn&&Re&&typeof Vn.stack=="string"){for(var He=Vn.stack.split(`
228
- `),tn=Re.stack.split(`
229
- `),Qt=He.length-1,nn=tn.length-1;Qt>=1&&nn>=0&&He[Qt]!==tn[nn];)nn--;for(;Qt>=1&&nn>=0;Qt--,nn--)if(He[Qt]!==tn[nn]){if(Qt!==1||nn!==1)do if(Qt--,nn--,nn<0||He[Qt]!==tn[nn]){var Zt=`
230
- `+He[Qt].replace(" at new "," at ");return M.displayName&&Zt.includes("<anonymous>")&&(Zt=Zt.replace("<anonymous>",M.displayName)),typeof M=="function"&&ut.set(M,Zt),Zt}while(Qt>=1&&nn>=0);break}}}finally{Ct=!1,Xe.current=tt,Ue(),Error.prepareStackTrace=Ae}var Br=M?M.displayName||M.name:"",fr=Br?pt(Br):"";return typeof M=="function"&&ut.set(M,fr),fr}function mt(M,le,he){return ge(M,!1)}function kt(M){var le=M.prototype;return!!(le&&le.isReactComponent)}function At(M,le,he){if(M==null)return"";if(typeof M=="function")return ge(M,kt(M));if(typeof M=="string")return pt(M);switch(M){case m:return pt("Suspense");case v:return pt("SuspenseList")}if(typeof M=="object")switch(M.$$typeof){case h:return mt(M.render);case y:return At(M.type,le,he);case S:{var Re=M,Ae=Re._payload,tt=Re._init;try{return At(tt(Ae),le,he)}catch{}}}return""}var Ot=Object.prototype.hasOwnProperty,Et={},on=A.ReactDebugCurrentFrame;function Kt(M){if(M){var le=M._owner,he=At(M.type,M._source,le?le.type:null);on.setExtraStackFrame(he)}else on.setExtraStackFrame(null)}function De(M,le,he,Re,Ae){{var tt=Function.call.bind(Ot);for(var Me in M)if(tt(M,Me)){var He=void 0;try{if(typeof M[Me]!="function"){var tn=Error((Re||"React class")+": "+he+" type `"+Me+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof M[Me]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw tn.name="Invariant Violation",tn}He=M[Me](le,Me,Re,he,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Qt){He=Qt}He&&!(He instanceof Error)&&(Kt(Ae),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Re||"React class",he,Me,typeof He),Kt(null)),He instanceof Error&&!(He.message in Et)&&(Et[He.message]=!0,Kt(Ae),_("Failed %s type: %s",he,He.message),Kt(null))}}}var ot=Array.isArray;function dt(M){return ot(M)}function et(M){{var le=typeof Symbol=="function"&&Symbol.toStringTag,he=le&&M[Symbol.toStringTag]||M.constructor.name||"Object";return he}}function St(M){try{return st(M),!1}catch{return!0}}function st(M){return""+M}function Nt(M){if(St(M))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",et(M)),st(M)}var We=A.ReactCurrentOwner,Dt={key:!0,ref:!0,__self:!0,__source:!0},en,vt,ye;ye={};function ke(M){if(Ot.call(M,"ref")){var le=Object.getOwnPropertyDescriptor(M,"ref").get;if(le&&le.isReactWarning)return!1}return M.ref!==void 0}function Ye(M){if(Ot.call(M,"key")){var le=Object.getOwnPropertyDescriptor(M,"key").get;if(le&&le.isReactWarning)return!1}return M.key!==void 0}function Fe(M,le){if(typeof M.ref=="string"&&We.current&&le&&We.current.stateNode!==le){var he=Y(We.current.type);ye[he]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Y(We.current.type),M.ref),ye[he]=!0)}}function ft(M,le){{var he=function(){en||(en=!0,_("%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://reactjs.org/link/special-props)",le))};he.isReactWarning=!0,Object.defineProperty(M,"key",{get:he,configurable:!0})}}function Pt(M,le){{var he=function(){vt||(vt=!0,_("%s: `ref` 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://reactjs.org/link/special-props)",le))};he.isReactWarning=!0,Object.defineProperty(M,"ref",{get:he,configurable:!0})}}var jt=function(M,le,he,Re,Ae,tt,Me){var He={$$typeof:t,type:M,key:le,ref:he,props:Me,_owner:tt};return He._store={},Object.defineProperty(He._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(He,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Re}),Object.defineProperty(He,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ae}),Object.freeze&&(Object.freeze(He.props),Object.freeze(He)),He};function gn(M,le,he,Re,Ae){{var tt,Me={},He=null,tn=null;he!==void 0&&(Nt(he),He=""+he),Ye(le)&&(Nt(le.key),He=""+le.key),ke(le)&&(tn=le.ref,Fe(le,Ae));for(tt in le)Ot.call(le,tt)&&!Dt.hasOwnProperty(tt)&&(Me[tt]=le[tt]);if(M&&M.defaultProps){var Qt=M.defaultProps;for(tt in Qt)Me[tt]===void 0&&(Me[tt]=Qt[tt])}if(He||tn){var nn=typeof M=="function"?M.displayName||M.name||"Unknown":M;He&&ft(Me,nn),tn&&Pt(Me,nn)}return jt(M,He,tn,Ae,Re,We.current,Me)}}var Mt=A.ReactCurrentOwner,Nn=A.ReactDebugCurrentFrame;function It(M){if(M){var le=M._owner,he=At(M.type,M._source,le?le.type:null);Nn.setExtraStackFrame(he)}else Nn.setExtraStackFrame(null)}var nt;nt=!1;function yn(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function Gt(){{if(Mt.current){var M=Y(Mt.current.type);if(M)return`
231
-
232
- Check the render method of \``+M+"`."}return""}}function ir(M){{if(M!==void 0){var le=M.fileName.replace(/^.*[\\\/]/,""),he=M.lineNumber;return`
233
-
234
- Check your code at `+le+":"+he+"."}return""}}var In={};function Bn(M){{var le=Gt();if(!le){var he=typeof M=="string"?M:M.displayName||M.name;he&&(le=`
235
-
236
- Check the top-level render call using <`+he+">.")}return le}}function Un(M,le){{if(!M._store||M._store.validated||M.key!=null)return;M._store.validated=!0;var he=Bn(le);if(In[he])return;In[he]=!0;var Re="";M&&M._owner&&M._owner!==Mt.current&&(Re=" It was passed a child from "+Y(M._owner.type)+"."),It(M),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',he,Re),It(null)}}function dr(M,le){{if(typeof M!="object")return;if(dt(M))for(var he=0;he<M.length;he++){var Re=M[he];yn(Re)&&Un(Re,le)}else if(yn(M))M._store&&(M._store.validated=!0);else if(M){var Ae=k(M);if(typeof Ae=="function"&&Ae!==M.entries)for(var tt=Ae.call(M),Me;!(Me=tt.next()).done;)yn(Me.value)&&Un(Me.value,le)}}}function Lt(M){{var le=M.type;if(le==null||typeof le=="string")return;var he;if(typeof le=="function")he=le.propTypes;else if(typeof le=="object"&&(le.$$typeof===h||le.$$typeof===y))he=le.propTypes;else return;if(he){var Re=Y(le);De(he,M.props,"prop",Re,M)}else if(le.PropTypes!==void 0&&!nt){nt=!0;var Ae=Y(le);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ae||"Unknown")}typeof le.getDefaultProps=="function"&&!le.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Jn(M){{for(var le=Object.keys(M.props),he=0;he<le.length;he++){var Re=le[he];if(Re!=="children"&&Re!=="key"){It(M),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Re),It(null);break}}M.ref!==null&&(It(M),_("Invalid attribute `ref` supplied to `React.Fragment`."),It(null))}}var Pn={};function jn(M,le,he,Re,Ae,tt){{var Me=ae(M);if(!Me){var He="";(M===void 0||typeof M=="object"&&M!==null&&Object.keys(M).length===0)&&(He+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var tn=ir(Ae);tn?He+=tn:He+=Gt();var Qt;M===null?Qt="null":dt(M)?Qt="array":M!==void 0&&M.$$typeof===t?(Qt="<"+(Y(M.type)||"Unknown")+" />",He=" Did you accidentally export a JSX literal instead of a component?"):Qt=typeof M,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Qt,He)}var nn=gn(M,le,he,Ae,tt);if(nn==null)return nn;if(Me){var Zt=le.children;if(Zt!==void 0)if(Re)if(dt(Zt)){for(var Br=0;Br<Zt.length;Br++)dr(Zt[Br],M);Object.freeze&&Object.freeze(Zt)}else _("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 dr(Zt,M)}if(Ot.call(le,"key")){var fr=Y(M),Vn=Object.keys(le).filter(function(Ua){return Ua!=="key"}),ta=Vn.length>0?"{key: someKey, "+Vn.join(": ..., ")+": ...}":"{key: someKey}";if(!Pn[fr+ta]){var wt=Vn.length>0?"{"+Vn.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
237
- let props = %s;
238
- <%s {...props} />
239
- React keys must be passed directly to JSX without using spread:
240
- let props = %s;
241
- <%s key={someKey} {...props} />`,ta,fr,wt,fr),Pn[fr+ta]=!0}}return M===i?Jn(nn):Lt(nn),nn}}function er(M,le,he){return jn(M,le,he,!0)}function z(M,le,he){return jn(M,le,he,!1)}var ve=z,_e=er;_v.Fragment=i,_v.jsx=ve,_v.jsxs=_e})();WM.exports=_v;var K=WM.exports,FY=!0;function IY(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function VY(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var BY=function(){function e(a){var i=this;this._insertTag=function(s){var u;i.tags.length===0?i.insertionPoint?u=i.insertionPoint.nextSibling:i.prepend?u=i.container.firstChild:u=i.before:u=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(s,u),i.tags.push(s)},this.isSpeedy=a.speedy===void 0?!FY:a.speedy,this.tags=[],this.ctr=0,this.nonce=a.nonce,this.key=a.key,this.container=a.container,this.prepend=a.prepend,this.insertionPoint=a.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(VY(this));var s=this.tags[this.tags.length-1];{var u=i.charCodeAt(0)===64&&i.charCodeAt(1)===105;u&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
242
- `+i+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!u}if(this.isSpeedy){var c=IY(s);try{c.insertRule(i,c.cssRules.length)}catch(f){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(i)||console.error('There was a problem inserting the following rule: "'+i+'"',f)}}else s.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var s;return(s=i.parentNode)==null?void 0:s.removeChild(i)}),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),Qr="-ms-",Kv="-moz-",hn="-webkit-",Jw="comm",eC="rule",tC="decl",UY="@import",YM="@keyframes",HY="@layer",WY=Math.abs,yg=String.fromCharCode,YY=Object.assign;function qY(e,t){return Fr(e,0)^45?(((t<<2^Fr(e,0))<<2^Fr(e,1))<<2^Fr(e,2))<<2^Fr(e,3):0}function qM(e){return e.trim()}function GY(e,t){return(e=t.exec(e))?e[0]:e}function pn(e,t,a){return e.replace(t,a)}function ew(e,t){return e.indexOf(t)}function Fr(e,t){return e.charCodeAt(t)|0}function yh(e,t,a){return e.slice(t,a)}function to(e){return e.length}function nC(e){return e.length}function ov(e,t){return t.push(e),e}function XY(e,t){return e.map(t).join("")}var bg=1,Mu=1,GM=0,ka=0,ur=0,Bu="";function Sg(e,t,a,i,s,u,c){return{value:e,root:t,parent:a,type:i,props:s,children:u,line:bg,column:Mu,length:c,return:""}}function $f(e,t){return YY(Sg("",null,null,"",null,null,0),e,{length:-e.length},t)}function KY(){return ur}function QY(){return ur=ka>0?Fr(Bu,--ka):0,Mu--,ur===10&&(Mu=1,bg--),ur}function Ia(){return ur=ka<GM?Fr(Bu,ka++):0,Mu++,ur===10&&(Mu=1,bg++),ur}function oo(){return Fr(Bu,ka)}function Av(){return ka}function $h(e,t){return yh(Bu,e,t)}function bh(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function XM(e){return bg=Mu=1,GM=to(Bu=e),ka=0,[]}function KM(e){return Bu="",e}function Ov(e){return qM($h(ka-1,tw(e===91?e+2:e===40?e+1:e)))}function ZY(e){for(;(ur=oo())&&ur<33;)Ia();return bh(e)>2||bh(ur)>3?"":" "}function JY(e,t){for(;--t&&Ia()&&!(ur<48||ur>102||ur>57&&ur<65||ur>70&&ur<97););return $h(e,Av()+(t<6&&oo()==32&&Ia()==32))}function tw(e){for(;Ia();)switch(ur){case e:return ka;case 34:case 39:e!==34&&e!==39&&tw(ur);break;case 40:e===41&&tw(e);break;case 92:Ia();break}return ka}function eq(e,t){for(;Ia()&&e+ur!==47+10;)if(e+ur===42+42&&oo()===47)break;return"/*"+$h(t,ka-1)+"*"+yg(e===47?e:Ia())}function tq(e){for(;!bh(oo());)Ia();return $h(e,ka)}function nq(e){return KM(Mv("",null,null,null,[""],e=XM(e),0,[0],e))}function Mv(e,t,a,i,s,u,c,f,h){for(var m=0,v=0,y=c,S=0,x=0,R=0,E=1,k=1,A=1,_=0,P="",$=s,L=u,U=i,F=P;k;)switch(R=_,_=Ia()){case 40:if(R!=108&&Fr(F,y-1)==58){ew(F+=pn(Ov(_),"&","&\f"),"&\f")!=-1&&(A=-1);break}case 34:case 39:case 91:F+=Ov(_);break;case 9:case 10:case 13:case 32:F+=ZY(R);break;case 92:F+=JY(Av()-1,7);continue;case 47:switch(oo()){case 42:case 47:ov(rq(eq(Ia(),Av()),t,a),h);break;default:F+="/"}break;case 123*E:f[m++]=to(F)*A;case 125*E:case 59:case 0:switch(_){case 0:case 125:k=0;case 59+v:A==-1&&(F=pn(F,/\f/g,"")),x>0&&to(F)-y&&ov(x>32?f_(F+";",i,a,y-1):f_(pn(F," ","")+";",i,a,y-2),h);break;case 59:F+=";";default:if(ov(U=d_(F,t,a,m,v,s,f,P,$=[],L=[],y),u),_===123)if(v===0)Mv(F,t,U,U,$,u,y,f,L);else switch(S===99&&Fr(F,3)===110?100:S){case 100:case 108:case 109:case 115:Mv(e,U,U,i&&ov(d_(e,U,U,0,0,s,f,P,s,$=[],y),L),s,L,y,f,i?$:L);break;default:Mv(F,U,U,U,[""],L,0,f,L)}}m=v=x=0,E=A=1,P=F="",y=c;break;case 58:y=1+to(F),x=R;default:if(E<1){if(_==123)--E;else if(_==125&&E++==0&&QY()==125)continue}switch(F+=yg(_),_*E){case 38:A=v>0?1:(F+="\f",-1);break;case 44:f[m++]=(to(F)-1)*A,A=1;break;case 64:oo()===45&&(F+=Ov(Ia())),S=oo(),v=y=to(P=F+=tq(Av())),_++;break;case 45:R===45&&to(F)==2&&(E=0)}}return u}function d_(e,t,a,i,s,u,c,f,h,m,v){for(var y=s-1,S=s===0?u:[""],x=nC(S),R=0,E=0,k=0;R<i;++R)for(var A=0,_=yh(e,y+1,y=WY(E=c[R])),P=e;A<x;++A)(P=qM(E>0?S[A]+" "+_:pn(_,/&\f/g,S[A])))&&(h[k++]=P);return Sg(e,t,a,s===0?eC:f,h,m,v)}function rq(e,t,a){return Sg(e,t,a,Jw,yg(KY()),yh(e,2,-2),0)}function f_(e,t,a,i){return Sg(e,t,a,tC,yh(e,0,i),yh(e,i+1,-1),i)}function Eu(e,t){for(var a="",i=nC(e),s=0;s<i;s++)a+=t(e[s],s,e,t)||"";return a}function aq(e,t,a,i){switch(e.type){case HY:if(e.children.length)break;case UY:case tC:return e.return=e.return||e.value;case Jw:return"";case YM:return e.return=e.value+"{"+Eu(e.children,i)+"}";case eC:e.value=e.props.join(",")}return to(a=Eu(e.children,i))?e.return=e.value+"{"+a+"}":""}function iq(e){var t=nC(e);return function(a,i,s,u){for(var c="",f=0;f<t;f++)c+=e[f](a,i,s,u)||"";return c}}var h_=function(t){var a=new WeakMap;return function(i){if(a.has(i))return a.get(i);var s=t(i);return a.set(i,s),s}};function QM(e){var t=Object.create(null);return function(a){return t[a]===void 0&&(t[a]=e(a)),t[a]}}var oq=function(t,a,i){for(var s=0,u=0;s=u,u=oo(),s===38&&u===12&&(a[i]=1),!bh(u);)Ia();return $h(t,ka)},sq=function(t,a){var i=-1,s=44;do switch(bh(s)){case 0:s===38&&oo()===12&&(a[i]=1),t[i]+=oq(ka-1,a,i);break;case 2:t[i]+=Ov(s);break;case 4:if(s===44){t[++i]=oo()===58?"&\f":"",a[i]=t[i].length;break}default:t[i]+=yg(s)}while(s=Ia());return t},lq=function(t,a){return KM(sq(XM(t),a))},p_=new WeakMap,cq=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var a=t.value,i=t.parent,s=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&a.charCodeAt(0)!==58&&!p_.get(i))&&!s){p_.set(t,!0);for(var u=[],c=lq(a,u),f=i.props,h=0,m=0;h<c.length;h++)for(var v=0;v<f.length;v++,m++)t.props[m]=u[h]?c[h].replace(/&\f/g,f[v]):f[v]+" "+c[h]}}},uq=function(t){if(t.type==="decl"){var a=t.value;a.charCodeAt(0)===108&&a.charCodeAt(2)===98&&(t.return="",t.value="")}},dq="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",fq=function(t){return t.type==="comm"&&t.children.indexOf(dq)>-1},hq=function(t){return function(a,i,s){if(!(a.type!=="rule"||t.compat)){var u=a.value.match(/(:first|:nth|:nth-last)-child/g);if(u){for(var c=!!a.parent,f=c?a.parent.children:s,h=f.length-1;h>=0;h--){var m=f[h];if(m.line<a.line)break;if(m.column<a.column){if(fq(m))return;break}}u.forEach(function(v){console.error('The pseudo class "'+v+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+v.split("-child")[0]+'-of-type".')})}}}},ZM=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},pq=function(t,a){for(var i=t-1;i>=0;i--)if(!ZM(a[i]))return!0;return!1},m_=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},mq=function(t,a,i){ZM(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),m_(t)):pq(a,i)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),m_(t)))};function JM(e,t){switch(qY(e,t)){case 5103:return hn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return hn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return hn+e+Kv+e+Qr+e+e;case 6828:case 4268:return hn+e+Qr+e+e;case 6165:return hn+e+Qr+"flex-"+e+e;case 5187:return hn+e+pn(e,/(\w+).+(:[^]+)/,hn+"box-$1$2"+Qr+"flex-$1$2")+e;case 5443:return hn+e+Qr+"flex-item-"+pn(e,/flex-|-self/,"")+e;case 4675:return hn+e+Qr+"flex-line-pack"+pn(e,/align-content|flex-|-self/,"")+e;case 5548:return hn+e+Qr+pn(e,"shrink","negative")+e;case 5292:return hn+e+Qr+pn(e,"basis","preferred-size")+e;case 6060:return hn+"box-"+pn(e,"-grow","")+hn+e+Qr+pn(e,"grow","positive")+e;case 4554:return hn+pn(e,/([^-])(transform)/g,"$1"+hn+"$2")+e;case 6187:return pn(pn(pn(e,/(zoom-|grab)/,hn+"$1"),/(image-set)/,hn+"$1"),e,"")+e;case 5495:case 3959:return pn(e,/(image-set\([^]*)/,hn+"$1$`$1");case 4968:return pn(pn(e,/(.+:)(flex-)?(.*)/,hn+"box-pack:$3"+Qr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+hn+e+e;case 4095:case 3583:case 4068:case 2532:return pn(e,/(.+)-inline(.+)/,hn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(to(e)-1-t>6)switch(Fr(e,t+1)){case 109:if(Fr(e,t+4)!==45)break;case 102:return pn(e,/(.+:)(.+)-([^]+)/,"$1"+hn+"$2-$3$1"+Kv+(Fr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ew(e,"stretch")?JM(pn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Fr(e,t+1)!==115)break;case 6444:switch(Fr(e,to(e)-3-(~ew(e,"!important")&&10))){case 107:return pn(e,":",":"+hn)+e;case 101:return pn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+hn+(Fr(e,14)===45?"inline-":"")+"box$3$1"+hn+"$2$3$1"+Qr+"$2box$3")+e}break;case 5936:switch(Fr(e,t+11)){case 114:return hn+e+Qr+pn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return hn+e+Qr+pn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return hn+e+Qr+pn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return hn+e+Qr+e+e}return e}var vq=function(t,a,i,s){if(t.length>-1&&!t.return)switch(t.type){case tC:t.return=JM(t.value,t.length);break;case YM:return Eu([$f(t,{value:pn(t.value,"@","@"+hn)})],s);case eC:if(t.length)return XY(t.props,function(u){switch(GY(u,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Eu([$f(t,{props:[pn(u,/:(read-\w+)/,":"+Kv+"$1")]})],s);case"::placeholder":return Eu([$f(t,{props:[pn(u,/:(plac\w+)/,":"+hn+"input-$1")]}),$f(t,{props:[pn(u,/:(plac\w+)/,":"+Kv+"$1")]}),$f(t,{props:[pn(u,/:(plac\w+)/,Qr+"input-$1")]})],s)}return""})}},gq=[vq],nw;{var yq=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;nw=function(t){var a=t.match(yq);if(a)return a[a.length-1]}}var bq=function(t){var a=t.key;if(!a)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
243
- If multiple caches share the same key they might "fight" for each other's style elements.`);if(a==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(E){var k=E.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var s=t.stylisPlugins||gq;if(/[^a-z-]/.test(a))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+a+'" was passed');var u={},c,f=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(E){for(var k=E.getAttribute("data-emotion").split(" "),A=1;A<k.length;A++)u[k[A]]=!0;f.push(E)});var h,m=[cq,uq];m.push(hq({get compat(){return R.compat}}),mq);{var v,y=[aq,function(E){E.root||(E.return?v.insert(E.return):E.value&&E.type!==Jw&&v.insert(E.value+"{}"))}],S=iq(m.concat(s,y)),x=function(k){return Eu(nq(k),S)};h=function(k,A,_,P){if(v=_,nw){var $=nw(A.styles);$&&(v={insert:function(U){_.insert(U+$)}})}x(k?k+"{"+A.styles+"}":A.styles),P&&(R.inserted[A.name]=!0)}}var R={key:a,sheet:new BY({key:a,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:u,registered:{},insert:h};return R.sheet.hydrate(f),R};function Yl(){return Yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},Yl.apply(null,arguments)}var eN={exports:{}},Tn={};/** @license React v16.13.1
244
- * react-is.development.js
245
- *
246
- * Copyright (c) Facebook, Inc. and its affiliates.
247
- *
248
- * This source code is licensed under the MIT license found in the
249
- * LICENSE file in the root directory of this source tree.
250
- */(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,S=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,k=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function P(ge){return typeof ge=="string"||typeof ge=="function"||ge===i||ge===m||ge===u||ge===s||ge===y||ge===S||typeof ge=="object"&&ge!==null&&(ge.$$typeof===R||ge.$$typeof===x||ge.$$typeof===c||ge.$$typeof===f||ge.$$typeof===v||ge.$$typeof===k||ge.$$typeof===A||ge.$$typeof===_||ge.$$typeof===E)}function $(ge){if(typeof ge=="object"&&ge!==null){var mt=ge.$$typeof;switch(mt){case t:var kt=ge.type;switch(kt){case h:case m:case i:case u:case s:case y:return kt;default:var At=kt&&kt.$$typeof;switch(At){case f:case v:case R:case x:case c:return At;default:return mt}}case a:return mt}}}var L=h,U=m,F=f,Q=c,se=t,ae=v,ue=i,Ge=R,Y=x,ce=a,Ee=u,G=s,I=y,X=!1;function pe(ge){return X||(X=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),te(ge)||$(ge)===h}function te(ge){return $(ge)===m}function we(ge){return $(ge)===f}function xe(ge){return $(ge)===c}function be(ge){return typeof ge=="object"&&ge!==null&&ge.$$typeof===t}function Ve(ge){return $(ge)===v}function Ue(ge){return $(ge)===i}function Xe(ge){return $(ge)===R}function Rt(ge){return $(ge)===x}function pt(ge){return $(ge)===a}function Ct(ge){return $(ge)===u}function ut(ge){return $(ge)===s}function Ft(ge){return $(ge)===y}Tn.AsyncMode=L,Tn.ConcurrentMode=U,Tn.ContextConsumer=F,Tn.ContextProvider=Q,Tn.Element=se,Tn.ForwardRef=ae,Tn.Fragment=ue,Tn.Lazy=Ge,Tn.Memo=Y,Tn.Portal=ce,Tn.Profiler=Ee,Tn.StrictMode=G,Tn.Suspense=I,Tn.isAsyncMode=pe,Tn.isConcurrentMode=te,Tn.isContextConsumer=we,Tn.isContextProvider=xe,Tn.isElement=be,Tn.isForwardRef=Ve,Tn.isFragment=Ue,Tn.isLazy=Xe,Tn.isMemo=Rt,Tn.isPortal=pt,Tn.isProfiler=Ct,Tn.isStrictMode=ut,Tn.isSuspense=Ft,Tn.isValidElementType=P,Tn.typeOf=$})();eN.exports=Tn;var rC=eN.exports,tN=rC,Sq={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},xq={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},nN={};nN[tN.ForwardRef]=Sq;nN[tN.Memo]=xq;var wq=!0;function aC(e,t,a){var i="";return a.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(i+=s+" ")}),i}var xg=function(t,a,i){var s=t.key+"-"+a.name;(i===!1||wq===!1)&&t.registered[s]===void 0&&(t.registered[s]=a.styles)},wg=function(t,a,i){xg(t,a,i);var s=t.key+"-"+a.name;if(t.inserted[a.name]===void 0){var u=a;do t.insert(a===u?"."+s:"",u,t.sheet,!0),u=u.next;while(u!==void 0)}};function Cq(e){for(var t=0,a,i=0,s=e.length;s>=4;++i,s-=4)a=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,t=(a&65535)*1540483477+((a>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Tq={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Eq=!0,v_=`You have illegal escape sequence in your template literal, most likely inside content's property value.
251
- Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
252
- You can read more about this here:
253
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Rq="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",kq=/[A-Z]|^ms/g,rN=/_EMO_([^_]+?)_([^]*?)_EMO_/g,iC=function(t){return t.charCodeAt(1)===45},g_=function(t){return t!=null&&typeof t!="boolean"},lx=QM(function(e){return iC(e)?e:e.replace(kq,"-$&").toLowerCase()}),Qv=function(t,a){switch(t){case"animation":case"animationName":if(typeof a=="string")return a.replace(rN,function(i,s,u){return no={name:s,styles:u,next:no},s})}return Tq[t]!==1&&!iC(t)&&typeof a=="number"&&a!==0?a+"px":a};{var Dq=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,_q=["normal","none","initial","inherit","unset"],Aq=Qv,Oq=/^-ms-/,Mq=/-(.)/g,y_={};Qv=function(t,a){if(t==="content"&&(typeof a!="string"||_q.indexOf(a)===-1&&!Dq.test(a)&&(a.charAt(0)!==a.charAt(a.length-1)||a.charAt(0)!=='"'&&a.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+a+"\"'`");var i=Aq(t,a);return i!==""&&!iC(t)&&t.indexOf("-")!==-1&&y_[t]===void 0&&(y_[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(Oq,"ms-").replace(Mq,function(s,u){return u.toUpperCase()})+"?")),i}}var aN="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Sh(e,t,a){if(a==null)return"";var i=a;if(i.__emotion_styles!==void 0){if(String(i)==="NO_COMPONENT_SELECTOR")throw new Error(aN);return i}switch(typeof a){case"boolean":return"";case"object":{var s=a;if(s.anim===1)return no={name:s.name,styles:s.styles,next:no},s.name;var u=a;if(u.styles!==void 0){var c=u.next;if(c!==void 0)for(;c!==void 0;)no={name:c.name,styles:c.styles,next:no},c=c.next;var f=u.styles+";";return f}return Nq(e,t,a)}case"function":{if(e!==void 0){var h=no,m=a(e);return no=h,Sh(e,t,m)}else console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":{var v=[],y=a.replace(rN,function(R,E,k){var A="animation"+v.length;return v.push("const "+A+" = keyframes`"+k.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+A+"}"});v.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(v,["`"+y+"`"]).join(`
254
- `)+`
255
-
256
- You should wrap it with \`css\` like this:
257
-
258
- css\``+y+"`")}break}var S=a;if(t==null)return S;var x=t[S];return x!==void 0?x:S}function Nq(e,t,a){var i="";if(Array.isArray(a))for(var s=0;s<a.length;s++)i+=Sh(e,t,a[s])+";";else for(var u in a){var c=a[u];if(typeof c!="object"){var f=c;t!=null&&t[f]!==void 0?i+=u+"{"+t[f]+"}":g_(f)&&(i+=lx(u)+":"+Qv(u,f)+";")}else{if(u==="NO_COMPONENT_SELECTOR"&&Eq)throw new Error(aN);if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var h=0;h<c.length;h++)g_(c[h])&&(i+=lx(u)+":"+Qv(u,c[h])+";");else{var m=Sh(e,t,c);switch(u){case"animation":case"animationName":{i+=lx(u)+":"+m+";";break}default:u==="undefined"&&console.error(Rq),i+=u+"{"+m+"}"}}}}return i}var b_=/label:\s*([^\s;{]+)\s*(;|$)/g,no;function Nu(e,t,a){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,s="";no=void 0;var u=e[0];if(u==null||u.raw===void 0)i=!1,s+=Sh(a,t,u);else{var c=u;c[0]===void 0&&console.error(v_),s+=c[0]}for(var f=1;f<e.length;f++)if(s+=Sh(a,t,e[f]),i){var h=u;h[f]===void 0&&console.error(v_),s+=h[f]}b_.lastIndex=0;for(var m="",v;(v=b_.exec(s))!==null;)m+="-"+v[1];var y=Cq(s)+m;{var S={name:y,styles:s,next:no,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};return S}}var Pq=function(t){return t()},iN=HD["useInsertionEffect"]?HD["useInsertionEffect"]:!1,oC=iN||Pq,S_=iN||w.useLayoutEffect,Cg=w.createContext(typeof HTMLElement<"u"?bq({key:"css"}):null);Cg.displayName="EmotionCacheContext";Cg.Provider;var jq=function(){return w.useContext(Cg)},Tg=function(t){return w.forwardRef(function(a,i){var s=w.useContext(Cg);return t(a,s,i)})},zs=w.createContext({});zs.displayName="EmotionThemeContext";var Lq=function(t,a){if(typeof a=="function"){var i=a(t);if(i==null||typeof i!="object"||Array.isArray(i))throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!");return i}if(a==null||typeof a!="object"||Array.isArray(a))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return Yl({},t,a)},$q=h_(function(e){return h_(function(t){return Lq(e,t)})}),zq=function(t){var a=w.useContext(zs);return t.theme!==a&&(a=$q(a)(t.theme)),w.createElement(zs.Provider,{value:a},t.children)},sC={}.hasOwnProperty,x_=function(t){var a=t.split(".");return a[a.length-1]},Fq=function(t){var a=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);if(a||(a=/^([A-Za-z0-9$.]+)@/.exec(t),a))return x_(a[1])},Iq=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),Vq=function(t){return t.replace(/\$/g,"-")},Bq=function(t){if(t)for(var a=t.split(`
259
- `),i=0;i<a.length;i++){var s=Fq(a[i]);if(s){if(Iq.has(s))break;if(/^[A-Z]/.test(s))return Vq(s)}}},rw="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",aw="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Uq=function(t,a){if(typeof a.css=="string"&&a.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+a.css+"`");var i={};for(var s in a)sC.call(a,s)&&(i[s]=a[s]);if(i[rw]=t,typeof globalThis<"u"&&globalThis.EMOTION_RUNTIME_AUTO_LABEL&&a.css&&(typeof a.css!="object"||!("name"in a.css)||typeof a.css.name!="string"||a.css.name.indexOf("-")===-1)){var u=Bq(new Error().stack);u&&(i[aw]=u)}return i},Hq=function(t){var a=t.cache,i=t.serialized,s=t.isStringTag;return xg(a,i,s),oC(function(){return wg(a,i,s)}),null},oN=Tg(function(e,t,a){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var s=e[rw],u=[i],c="";typeof e.className=="string"?c=aC(t.registered,u,e.className):e.className!=null&&(c=e.className+" ");var f=Nu(u,void 0,w.useContext(zs));if(f.name.indexOf("-")===-1){var h=e[aw];h&&(f=Nu([f,"label:"+h+";"]))}c+=t.key+"-"+f.name;var m={};for(var v in e)sC.call(e,v)&&v!=="css"&&v!==rw&&v!==aw&&(m[v]=e[v]);return m.className=c,a&&(m.ref=a),w.createElement(w.Fragment,null,w.createElement(Hq,{cache:t,serialized:f,isStringTag:typeof s=="string"}),w.createElement(s,m))});oN.displayName="EmotionCssPropInternal";var Wq=oN,w_=!0,Yq={name:"@emotion/react",version:"11.14.0",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",types:"dist/emotion-react.cjs.d.ts",exports:{".":{types:{import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},development:{"edge-light":{module:"./dist/emotion-react.development.edge-light.esm.js",import:"./dist/emotion-react.development.edge-light.cjs.mjs",default:"./dist/emotion-react.development.edge-light.cjs.js"},worker:{module:"./dist/emotion-react.development.edge-light.esm.js",import:"./dist/emotion-react.development.edge-light.cjs.mjs",default:"./dist/emotion-react.development.edge-light.cjs.js"},workerd:{module:"./dist/emotion-react.development.edge-light.esm.js",import:"./dist/emotion-react.development.edge-light.cjs.mjs",default:"./dist/emotion-react.development.edge-light.cjs.js"},browser:{module:"./dist/emotion-react.browser.development.esm.js",import:"./dist/emotion-react.browser.development.cjs.mjs",default:"./dist/emotion-react.browser.development.cjs.js"},module:"./dist/emotion-react.development.esm.js",import:"./dist/emotion-react.development.cjs.mjs",default:"./dist/emotion-react.development.cjs.js"},"edge-light":{module:"./dist/emotion-react.edge-light.esm.js",import:"./dist/emotion-react.edge-light.cjs.mjs",default:"./dist/emotion-react.edge-light.cjs.js"},worker:{module:"./dist/emotion-react.edge-light.esm.js",import:"./dist/emotion-react.edge-light.cjs.mjs",default:"./dist/emotion-react.edge-light.cjs.js"},workerd:{module:"./dist/emotion-react.edge-light.esm.js",import:"./dist/emotion-react.edge-light.cjs.mjs",default:"./dist/emotion-react.edge-light.cjs.js"},browser:{module:"./dist/emotion-react.browser.esm.js",import:"./dist/emotion-react.browser.cjs.mjs",default:"./dist/emotion-react.browser.cjs.js"},module:"./dist/emotion-react.esm.js",import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{types:{import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},development:{"edge-light":{module:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js",import:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js"},worker:{module:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js",import:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js"},workerd:{module:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js",import:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js"},browser:{module:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.esm.js",import:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.cjs.js"},module:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.esm.js",import:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.development.cjs.js"},"edge-light":{module:"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js",import:"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js"},worker:{module:"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js",import:"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js"},workerd:{module:"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js",import:"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js"},browser:{module:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",import:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.cjs.js"},module:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js",import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{types:{import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},development:{"edge-light":{module:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js",import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js"},worker:{module:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js",import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js"},workerd:{module:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js",import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js"},browser:{module:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js",import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.js"},module:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.esm.js",import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.js"},"edge-light":{module:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js",import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js"},worker:{module:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js",import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js"},workerd:{module:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js",import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js"},browser:{module:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.js"},module:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js",import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{types:{import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},development:{"edge-light":{module:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js",import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js"},worker:{module:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js",import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js"},workerd:{module:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js",import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js"},browser:{module:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.esm.js",import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.cjs.js"},module:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.esm.js",import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.cjs.js"},"edge-light":{module:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js",import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js"},worker:{module:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js",import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js"},workerd:{module:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js",import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js"},browser:{module:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.js"},module:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js",import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},imports:{"#is-development":{development:"./src/conditions/true.ts",default:"./src/conditions/false.ts"},"#is-browser":{"edge-light":"./src/conditions/false.ts",workerd:"./src/conditions/false.ts",worker:"./src/conditions/false.ts",browser:"./src/conditions/true.ts",default:"./src/conditions/is-browser.ts"}},files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/css-prop.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.13.5","@emotion/cache":"^11.14.0","@emotion/serialize":"^1.3.3","@emotion/use-insertion-effect-with-fallbacks":"^1.2.0","@emotion/utils":"^1.4.2","@emotion/weak-memoize":"^0.4.0","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.13.5","@emotion/css-prettifier":"1.2.0","@emotion/server":"11.11.0","@emotion/styled":"11.14.0","@types/hoist-non-react-statics":"^3.3.5","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^5.4.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.ts","./jsx-runtime.ts","./jsx-dev-runtime.ts","./_isolated-hnrs.ts"],umdName:"emotionReact",exports:{extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},C_=function(t,a){var i=arguments;if(a==null||!sC.call(a,"css"))return w.createElement.apply(void 0,i);var s=i.length,u=new Array(s);u[0]=Wq,u[1]=Uq(t,a);for(var c=2;c<s;c++)u[c]=i[c];return w.createElement.apply(null,u)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(C_||(C_={}));var T_=!1,zh=Tg(function(e,t){!T_&&("className"in e&&e.className||"css"in e&&e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),T_=!0);var a=e.styles,i=Nu([a],void 0,w.useContext(zs)),s=w.useRef();return S_(function(){var u=t.key+"-global",c=new t.sheet.constructor({key:u,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),f=!1,h=document.querySelector('style[data-emotion="'+u+" "+i.name+'"]');return t.sheet.tags.length&&(c.before=t.sheet.tags[0]),h!==null&&(f=!0,h.setAttribute("data-emotion",u),c.hydrate([h])),s.current=[c,f],function(){c.flush()}},[t]),S_(function(){var u=s.current,c=u[0],f=u[1];if(f){u[1]=!1;return}if(i.next!==void 0&&wg(t,i.next,!0),c.tags.length){var h=c.tags[c.tags.length-1].nextElementSibling;c.before=h,c.flush()}t.insert("",i,c,!1)},[t,i.name]),null});zh.displayName="EmotionGlobal";function qq(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Nu(t)}function lC(){var e=qq.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Gq=function e(t){for(var a=t.length,i=0,s="";i<a;i++){var u=t[i];if(u!=null){var c=void 0;switch(typeof u){case"boolean":break;case"object":{if(Array.isArray(u))c=e(u);else{u.styles!==void 0&&u.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),c="";for(var f in u)u[f]&&f&&(c&&(c+=" "),c+=f)}break}default:c=u}c&&(s&&(s+=" "),s+=c)}}return s};function Xq(e,t,a){var i=[],s=aC(e,i,a);return i.length<2?a:s+t(i)}var Kq=function(t){var a=t.cache,i=t.serializedArr;return oC(function(){for(var s=0;s<i.length;s++)wg(a,i[s],!1)}),null},Qq=Tg(function(e,t){var a=!1,i=[],s=function(){if(a&&w_)throw new Error("css can only be used during render");for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];var S=Nu(v,t.registered);return i.push(S),xg(t,S,!1),t.key+"-"+S.name},u=function(){if(a&&w_)throw new Error("cx can only be used during render");for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];return Xq(t.registered,s,Gq(v))},c={css:s,cx:u,theme:w.useContext(zs)},f=e.children(c);return a=!0,w.createElement(w.Fragment,null,w.createElement(Kq,{cache:t,serializedArr:i}),f)});Qq.displayName="EmotionClassNames";{var E_=typeof document<"u",Zq=typeof jest<"u"||typeof vi<"u";if(E_&&!Zq){var R_=typeof globalThis<"u"?globalThis:E_?window:global,k_="__EMOTION_REACT_"+Yq.version.split(".")[0]+"__";R_[k_]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),R_[k_]=!0}}const cC=w.createContext({});cC.displayName="ColorModeContext";function Fh(){const e=w.useContext(cC);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function za(e,t){const{colorMode:a}=Fh();return a==="dark"?t:e}const sv={light:"chakra-ui-light",dark:"chakra-ui-dark"};function Jq(e={}){const{preventTransition:t=!0,nonce:a}=e,i={setDataset:s=>{const u=t?i.preventTransition():void 0;document.documentElement.dataset.theme=s,document.documentElement.style.colorScheme=s,u==null||u()},setClassName(s){document.body.classList.add(s?sv.dark:sv.light),document.body.classList.remove(s?sv.light:sv.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(s){return i.query().matches??s==="dark"?"dark":"light"},addListener(s){const u=i.query(),c=f=>{s(f.matches?"dark":"light")};return typeof u.addListener=="function"?u.addListener(c):u.addEventListener("change",c),()=>{typeof u.removeListener=="function"?u.removeListener(c):u.removeEventListener("change",c)}},preventTransition(){const s=document.createElement("style");return s.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),a!==void 0&&(s.nonce=a),document.head.appendChild(s),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(s)})})}}};return i}const eG="chakra-ui-color-mode";function tG(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let a;try{a=localStorage.getItem(e)||t}catch{}return a||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const nG=tG(eG),D_=()=>{},rG=V3()?w.useLayoutEffect:w.useEffect;function __(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const sN=function(t){const{value:a,children:i,options:{useSystemColorMode:s,initialColorMode:u,disableTransitionOnChange:c}={},colorModeManager:f=nG}=t,h=jq(),m=u==="dark"?"dark":"light",[v,y]=w.useState(()=>__(f,m)),[S,x]=w.useState(()=>__(f)),{getSystemTheme:R,setClassName:E,setDataset:k,addListener:A}=w.useMemo(()=>Jq({preventTransition:c,nonce:h==null?void 0:h.nonce}),[c,h==null?void 0:h.nonce]),_=u==="system"&&!v?S:v,P=w.useCallback(U=>{const F=U==="system"?R():U;y(F),E(F==="dark"),k(F),f.set(F)},[f,R,E,k]);rG(()=>{u==="system"&&x(R())},[]),w.useEffect(()=>{const U=f.get();if(U){P(U);return}if(u==="system"){P("system");return}P(m)},[f,m,u,P]);const $=w.useCallback(()=>{P(_==="dark"?"light":"dark")},[_,P]);w.useEffect(()=>{if(s)return A(P)},[s,A,P]);const L=w.useMemo(()=>({colorMode:a??_,toggleColorMode:a?D_:$,setColorMode:a?D_:P,forced:a!==void 0}),[_,$,P,a]);return K.jsx(cC.Provider,{value:L,children:i})};sN.displayName="ColorModeProvider";const lN=String.raw,cN=lN`
260
- :root,
261
- :host {
262
- --chakra-vh: 100vh;
263
- }
264
-
265
- @supports (height: -webkit-fill-available) {
266
- :root,
267
- :host {
268
- --chakra-vh: -webkit-fill-available;
269
- }
270
- }
271
-
272
- @supports (height: -moz-fill-available) {
273
- :root,
274
- :host {
275
- --chakra-vh: -moz-fill-available;
276
- }
277
- }
278
-
279
- @supports (height: 100dvh) {
280
- :root,
281
- :host {
282
- --chakra-vh: 100dvh;
283
- }
284
- }
285
- `,aG=()=>K.jsx(zh,{styles:cN}),iG=({scope:e=""})=>K.jsx(zh,{styles:lN`
286
- html {
287
- line-height: 1.5;
288
- -webkit-text-size-adjust: 100%;
289
- font-family: system-ui, sans-serif;
290
- -webkit-font-smoothing: antialiased;
291
- text-rendering: optimizeLegibility;
292
- -moz-osx-font-smoothing: grayscale;
293
- touch-action: manipulation;
294
- }
295
-
296
- body {
297
- position: relative;
298
- min-height: 100%;
299
- margin: 0;
300
- font-feature-settings: "kern";
301
- }
302
-
303
- ${e} :where(*, *::before, *::after) {
304
- border-width: 0;
305
- border-style: solid;
306
- box-sizing: border-box;
307
- word-wrap: break-word;
308
- }
309
-
310
- main {
311
- display: block;
312
- }
313
-
314
- ${e} hr {
315
- border-top-width: 1px;
316
- box-sizing: content-box;
317
- height: 0;
318
- overflow: visible;
319
- }
320
-
321
- ${e} :where(pre, code, kbd,samp) {
322
- font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
323
- font-size: 1em;
324
- }
325
-
326
- ${e} a {
327
- background-color: transparent;
328
- color: inherit;
329
- text-decoration: inherit;
330
- }
331
-
332
- ${e} abbr[title] {
333
- border-bottom: none;
334
- text-decoration: underline;
335
- -webkit-text-decoration: underline dotted;
336
- text-decoration: underline dotted;
337
- }
338
-
339
- ${e} :where(b, strong) {
340
- font-weight: bold;
341
- }
342
-
343
- ${e} small {
344
- font-size: 80%;
345
- }
346
-
347
- ${e} :where(sub,sup) {
348
- font-size: 75%;
349
- line-height: 0;
350
- position: relative;
351
- vertical-align: baseline;
352
- }
353
-
354
- ${e} sub {
355
- bottom: -0.25em;
356
- }
357
-
358
- ${e} sup {
359
- top: -0.5em;
360
- }
361
-
362
- ${e} img {
363
- border-style: none;
364
- }
365
-
366
- ${e} :where(button, input, optgroup, select, textarea) {
367
- font-family: inherit;
368
- font-size: 100%;
369
- line-height: 1.15;
370
- margin: 0;
371
- }
372
-
373
- ${e} :where(button, input) {
374
- overflow: visible;
375
- }
376
-
377
- ${e} :where(button, select) {
378
- text-transform: none;
379
- }
380
-
381
- ${e} :where(
382
- button::-moz-focus-inner,
383
- [type="button"]::-moz-focus-inner,
384
- [type="reset"]::-moz-focus-inner,
385
- [type="submit"]::-moz-focus-inner
386
- ) {
387
- border-style: none;
388
- padding: 0;
389
- }
390
-
391
- ${e} fieldset {
392
- padding: 0.35em 0.75em 0.625em;
393
- }
394
-
395
- ${e} legend {
396
- box-sizing: border-box;
397
- color: inherit;
398
- display: table;
399
- max-width: 100%;
400
- padding: 0;
401
- white-space: normal;
402
- }
403
-
404
- ${e} progress {
405
- vertical-align: baseline;
406
- }
407
-
408
- ${e} textarea {
409
- overflow: auto;
410
- }
411
-
412
- ${e} :where([type="checkbox"], [type="radio"]) {
413
- box-sizing: border-box;
414
- padding: 0;
415
- }
416
-
417
- ${e} input[type="number"]::-webkit-inner-spin-button,
418
- ${e} input[type="number"]::-webkit-outer-spin-button {
419
- -webkit-appearance: none !important;
420
- }
421
-
422
- ${e} input[type="number"] {
423
- -moz-appearance: textfield;
424
- }
425
-
426
- ${e} input[type="search"] {
427
- -webkit-appearance: textfield;
428
- outline-offset: -2px;
429
- }
430
-
431
- ${e} input[type="search"]::-webkit-search-decoration {
432
- -webkit-appearance: none !important;
433
- }
434
-
435
- ${e} ::-webkit-file-upload-button {
436
- -webkit-appearance: button;
437
- font: inherit;
438
- }
439
-
440
- ${e} details {
441
- display: block;
442
- }
443
-
444
- ${e} summary {
445
- display: list-item;
446
- }
447
-
448
- template {
449
- display: none;
450
- }
451
-
452
- [hidden] {
453
- display: none !important;
454
- }
455
-
456
- ${e} :where(
457
- blockquote,
458
- dl,
459
- dd,
460
- h1,
461
- h2,
462
- h3,
463
- h4,
464
- h5,
465
- h6,
466
- hr,
467
- figure,
468
- p,
469
- pre
470
- ) {
471
- margin: 0;
472
- }
473
-
474
- ${e} button {
475
- background: transparent;
476
- padding: 0;
477
- }
478
-
479
- ${e} fieldset {
480
- margin: 0;
481
- padding: 0;
482
- }
483
-
484
- ${e} :where(ol, ul) {
485
- margin: 0;
486
- padding: 0;
487
- }
488
-
489
- ${e} textarea {
490
- resize: vertical;
491
- }
492
-
493
- ${e} :where(button, [role="button"]) {
494
- cursor: pointer;
495
- }
496
-
497
- ${e} button::-moz-focus-inner {
498
- border: 0 !important;
499
- }
500
-
501
- ${e} table {
502
- border-collapse: collapse;
503
- }
504
-
505
- ${e} :where(h1, h2, h3, h4, h5, h6) {
506
- font-size: inherit;
507
- font-weight: inherit;
508
- }
509
-
510
- ${e} :where(button, input, optgroup, select, textarea) {
511
- padding: 0;
512
- line-height: inherit;
513
- color: inherit;
514
- }
515
-
516
- ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
517
- display: block;
518
- }
519
-
520
- ${e} :where(img, video) {
521
- max-width: 100%;
522
- height: auto;
523
- }
524
-
525
- [data-js-focus-visible]
526
- :focus:not([data-focus-visible-added]):not(
527
- [data-focus-visible-disabled]
528
- ) {
529
- outline: none;
530
- box-shadow: none;
531
- }
532
-
533
- ${e} select::-ms-expand {
534
- display: none;
535
- }
536
-
537
- ${cN}
538
- `});function oG(e){const{cssVarsRoot:t,theme:a,children:i}=e,s=w.useMemo(()=>R6(a),[a]);return K.jsxs(zq,{theme:s,children:[K.jsx(sG,{root:t}),i]})}function sG({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return K.jsx(zh,{styles:a=>({[t]:a.__cssVars})})}ha({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function lG(){const{colorMode:e}=Fh();return K.jsx(zh,{styles:t=>{const a=wM(t,"styles.global"),i=ai(a,{theme:t,colorMode:e});return i?_M(i)(t):void 0}})}const[cG,uG]=ha({strict:!1,name:"PortalManagerContext"});function uN(e){const{children:t,zIndex:a}=e;return K.jsx(cG,{value:{zIndex:a},children:t})}uN.displayName="PortalManager";const dN=w.createContext({getDocument(){return document},getWindow(){return window}});dN.displayName="EnvironmentContext";function fN(e){const{children:t,environment:a,disabled:i}=e,s=w.useRef(null),u=w.useMemo(()=>a||{getDocument:()=>{var f;return((f=s.current)==null?void 0:f.ownerDocument)??document},getWindow:()=>{var f;return((f=s.current)==null?void 0:f.ownerDocument.defaultView)??window}},[a]),c=!i||!a;return K.jsxs(dN.Provider,{value:u,children:[t,c&&K.jsx("span",{id:"__chakra_env",hidden:!0,ref:s})]})}fN.displayName="EnvironmentProvider";const dG=e=>{const{children:t,colorModeManager:a,portalZIndex:i,resetScope:s,resetCSS:u=!0,theme:c={},environment:f,cssVarsRoot:h,disableEnvironment:m,disableGlobalStyle:v}=e,y=K.jsx(fN,{environment:f,disabled:m,children:t});return K.jsx(oG,{theme:c,cssVarsRoot:h,children:K.jsxs(sN,{colorModeManager:a,options:c.config,children:[u?K.jsx(iG,{scope:s}):K.jsx(aG,{}),!v&&K.jsx(lG,{}),i?K.jsx(uN,{zIndex:i,children:y}):y]})})},uC=w.createContext({});function dC(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ih=w.createContext(null),fC=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class fG extends w.Component{getSnapshotBeforeUpdate(t){const a=this.props.childRef.current;if(a&&t.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=a.offsetHeight||0,i.width=a.offsetWidth||0,i.top=a.offsetTop,i.left=a.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function hG({children:e,isPresent:t}){const a=w.useId(),i=w.useRef(null),s=w.useRef({width:0,height:0,top:0,left:0}),{nonce:u}=w.useContext(fC);return w.useInsertionEffect(()=>{const{width:c,height:f,top:h,left:m}=s.current;if(t||!i.current||!c||!f)return;i.current.dataset.motionPopId=a;const v=document.createElement("style");return u&&(v.nonce=u),document.head.appendChild(v),v.sheet&&v.sheet.insertRule(`
539
- [data-motion-pop-id="${a}"] {
540
- position: absolute !important;
541
- width: ${c}px !important;
542
- height: ${f}px !important;
543
- top: ${h}px !important;
544
- left: ${m}px !important;
545
- }
546
- `),()=>{document.head.removeChild(v)}},[t]),K.jsx(fG,{isPresent:t,childRef:i,sizeRef:s,children:w.cloneElement(e,{ref:i})})}const pG=({children:e,initial:t,isPresent:a,onExitComplete:i,custom:s,presenceAffectsLayout:u,mode:c})=>{const f=dC(mG),h=w.useId(),m=w.useCallback(y=>{f.set(y,!0);for(const S of f.values())if(!S)return;i&&i()},[f,i]),v=w.useMemo(()=>({id:h,initial:t,isPresent:a,custom:s,onExitComplete:m,register:y=>(f.set(y,!1),()=>f.delete(y))}),u?[Math.random(),m]:[a,m]);return w.useMemo(()=>{f.forEach((y,S)=>f.set(S,!1))},[a]),w.useEffect(()=>{!a&&!f.size&&i&&i()},[a]),c==="popLayout"&&(e=K.jsx(hG,{isPresent:a,children:e})),K.jsx(Ih.Provider,{value:v,children:e})};function mG(){return new Map}function hC(e=!0){const t=w.useContext(Ih);if(t===null)return[!0,null];const{isPresent:a,onExitComplete:i,register:s}=t,u=w.useId();w.useEffect(()=>{e&&s(u)},[e]);const c=w.useCallback(()=>e&&i&&i(u),[u,i,e]);return!a&&i?[!1,c]:[!0]}function vG(){return gG(w.useContext(Ih))}function gG(e){return e===null?!0:e.isPresent}const lv=e=>e.key||"";function A_(e){const t=[];return w.Children.forEach(e,a=>{w.isValidElement(a)&&t.push(a)}),t}const pC=typeof window<"u",hN=pC?w.useLayoutEffect:w.useEffect,Ql=({children:e,custom:t,initial:a=!0,onExitComplete:i,presenceAffectsLayout:s=!0,mode:u="sync",propagate:c=!1})=>{const[f,h]=hC(c),m=w.useMemo(()=>A_(e),[e]),v=c&&!f?[]:m.map(lv),y=w.useRef(!0),S=w.useRef(m),x=dC(()=>new Map),[R,E]=w.useState(m),[k,A]=w.useState(m);hN(()=>{y.current=!1,S.current=m;for(let $=0;$<k.length;$++){const L=lv(k[$]);v.includes(L)?x.delete(L):x.get(L)!==!0&&x.set(L,!1)}},[k,v.length,v.join("-")]);const _=[];if(m!==R){let $=[...m];for(let L=0;L<k.length;L++){const U=k[L],F=lv(U);v.includes(F)||($.splice(L,0,U),_.push(U))}u==="wait"&&_.length&&($=_),A(A_($)),E(m);return}u==="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:P}=w.useContext(uC);return K.jsx(K.Fragment,{children:k.map($=>{const L=lv($),U=c&&!f?!1:m===k||v.includes(L),F=()=>{if(x.has(L))x.set(L,!0);else return;let Q=!0;x.forEach(se=>{se||(Q=!1)}),Q&&(P==null||P(),A(S.current),c&&(h==null||h()),i&&i())};return K.jsx(pG,{isPresent:U,initial:!y.current||a?void 0:!1,custom:U?void 0:t,presenceAffectsLayout:s,mode:u,onExitComplete:U?void 0:F,children:$},L)})})},Ta=e=>e;let Uu=Ta,Fs=Ta;Uu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Fs=(e,t)=>{if(!e)throw new Error(t)};function mC(e){let t;return()=>(t===void 0&&(t=e()),t)}const Pu=(e,t,a)=>{const i=t-e;return i===0?1:(a-e)/i},so=e=>e*1e3,Go=e=>e/1e3,yG={skipAnimations:!1,useManualTiming:!1};function bG(e){let t=new Set,a=new Set,i=!1,s=!1;const u=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function f(m){u.has(m)&&(h.schedule(m),e()),m(c)}const h={schedule:(m,v=!1,y=!1)=>{const x=y&&i?t:a;return v&&u.add(m),x.has(m)||x.add(m),m},cancel:m=>{a.delete(m),u.delete(m)},process:m=>{if(c=m,i){s=!0;return}i=!0,[t,a]=[a,t],t.forEach(f),t.clear(),i=!1,s&&(s=!1,h.process(m))}};return h}const cv=["read","resolveKeyframes","update","preRender","render","postRender"],SG=40;function pN(e,t){let a=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},u=()=>a=!0,c=cv.reduce((A,_)=>(A[_]=bG(u),A),{}),{read:f,resolveKeyframes:h,update:m,preRender:v,render:y,postRender:S}=c,x=()=>{const A=performance.now();a=!1,s.delta=i?1e3/60:Math.max(Math.min(A-s.timestamp,SG),1),s.timestamp=A,s.isProcessing=!0,f.process(s),h.process(s),m.process(s),v.process(s),y.process(s),S.process(s),s.isProcessing=!1,a&&t&&(i=!1,e(x))},R=()=>{a=!0,i=!0,s.isProcessing||e(x)};return{schedule:cv.reduce((A,_)=>{const P=c[_];return A[_]=($,L=!1,U=!1)=>(a||R(),P.schedule($,L,U)),A},{}),cancel:A=>{for(let _=0;_<cv.length;_++)c[cv[_]].cancel(A)},state:s,steps:c}}const{schedule:Fn,cancel:Is,state:zr,steps:cx}=pN(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ta,!0),mN=w.createContext({strict:!1}),O_={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"]},ju={};for(const e in O_)ju[e]={isEnabled:t=>O_[e].some(a=>!!t[a])};function xG(e){for(const t in e)ju[t]={...ju[t],...e[t]}}const wG=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","ignoreStrict","viewport"]);function Zv(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||wG.has(e)}let vN=e=>!Zv(e);function CG(e){e&&(vN=t=>t.startsWith("on")?!Zv(t):e(t))}try{CG(require("@emotion/is-prop-valid").default)}catch{}function TG(e,t,a){const i={};for(const s in e)s==="values"&&typeof e.values=="object"||(vN(s)||a===!0&&Zv(s)||!t&&!Zv(s)||e.draggable&&s.startsWith("onDrag"))&&(i[s]=e[s]);return i}const M_=new Set;function Eg(e,t,a){e||M_.has(t)||(console.warn(t),a&&console.warn(a),M_.add(t))}function EG(e){if(typeof Proxy>"u")return e;const t=new Map,a=(...i)=>(Eg(!1,"motion() is deprecated. Use motion.create() instead."),e(...i));return new Proxy(a,{get:(i,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const Rg=w.createContext({});function xh(e){return typeof e=="string"||Array.isArray(e)}function kg(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const vC=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gC=["initial",...vC];function Dg(e){return kg(e.animate)||gC.some(t=>xh(e[t]))}function gN(e){return!!(Dg(e)||e.variants)}function RG(e,t){if(Dg(e)){const{initial:a,animate:i}=e;return{initial:a===!1||xh(a)?a:void 0,animate:xh(i)?i:void 0}}return e.inherit!==!1?t:{}}function kG(e){const{initial:t,animate:a}=RG(e,w.useContext(Rg));return w.useMemo(()=>({initial:t,animate:a}),[N_(t),N_(a)])}function N_(e){return Array.isArray(e)?e.join(" "):e}const DG=Symbol.for("motionComponentSymbol");function pu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function _G(e,t,a){return w.useCallback(i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),a&&(typeof a=="function"?a(i):pu(a)&&(a.current=i))},[t])}const yC=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),AG="framerAppearId",yN="data-"+yC(AG),{schedule:bC,cancel:Roe}=pN(queueMicrotask,!1),bN=w.createContext({});function OG(e,t,a,i,s){var u,c;const{visualElement:f}=w.useContext(Rg),h=w.useContext(mN),m=w.useContext(Ih),v=w.useContext(fC).reducedMotion,y=w.useRef(null);i=i||h.renderer,!y.current&&i&&(y.current=i(e,{visualState:t,parent:f,props:a,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:v}));const S=y.current,x=w.useContext(bN);S&&!S.projection&&s&&(S.type==="html"||S.type==="svg")&&MG(y.current,a,s,x);const R=w.useRef(!1);w.useInsertionEffect(()=>{S&&R.current&&S.update(a,m)});const E=a[yN],k=w.useRef(!!E&&!(!((u=window.MotionHandoffIsComplete)===null||u===void 0)&&u.call(window,E))&&((c=window.MotionHasOptimisedAnimation)===null||c===void 0?void 0:c.call(window,E)));return hN(()=>{S&&(R.current=!0,window.MotionIsMounted=!0,S.updateFeatures(),bC.render(S.render),k.current&&S.animationState&&S.animationState.animateChanges())}),w.useEffect(()=>{S&&(!k.current&&S.animationState&&S.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{var A;(A=window.MotionHandoffMarkAsComplete)===null||A===void 0||A.call(window,E)}),k.current=!1))}),S}function MG(e,t,a,i){const{layoutId:s,layout:u,drag:c,dragConstraints:f,layoutScroll:h,layoutRoot:m}=t;e.projection=new a(e.latestValues,t["data-framer-portal-id"]?void 0:SN(e.parent)),e.projection.setOptions({layoutId:s,layout:u,alwaysMeasureLayout:!!c||f&&pu(f),visualElement:e,animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:h,layoutRoot:m})}function SN(e){if(e)return e.options.allowProjection!==!1?e.projection:SN(e.parent)}function NG({preloadedFeatures:e,createVisualElement:t,useRender:a,useVisualState:i,Component:s}){var u,c;e&&xG(e);function f(m,v){let y;const S={...w.useContext(fC),...m,layoutId:PG(m)},{isStatic:x}=S,R=kG(m),E=i(m,x);if(!x&&pC){jG(S,e);const k=LG(S);y=k.MeasureLayout,R.visualElement=OG(s,E,S,t,k.ProjectionNode)}return K.jsxs(Rg.Provider,{value:R,children:[y&&R.visualElement?K.jsx(y,{visualElement:R.visualElement,...S}):null,a(s,m,_G(E,R.visualElement,v),E,x,R.visualElement)]})}f.displayName=`motion.${typeof s=="string"?s:`create(${(c=(u=s.displayName)!==null&&u!==void 0?u:s.name)!==null&&c!==void 0?c:""})`}`;const h=w.forwardRef(f);return h[DG]=s,h}function PG({layoutId:e}){const t=w.useContext(uC).id;return t&&e!==void 0?t+"-"+e:e}function jG(e,t){const a=w.useContext(mN).strict;if(t&&a){const i="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Uu(!1,i):Fs(!1,i)}}function LG(e){const{drag:t,layout:a}=ju;if(!t&&!a)return{};const i={...t,...a};return{MeasureLayout:t!=null&&t.isEnabled(e)||a!=null&&a.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const $G=["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 SC(e){return typeof e!="string"||e.includes("-")?!1:!!($G.indexOf(e)>-1||/[A-Z]/u.test(e))}function P_(e){const t=[{},{}];return e==null||e.values.forEach((a,i)=>{t[0][i]=a.get(),t[1][i]=a.getVelocity()}),t}function xC(e,t,a,i){if(typeof t=="function"){const[s,u]=P_(i);t=t(a!==void 0?a:e.custom,s,u)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,u]=P_(i);t=t(a!==void 0?a:e.custom,s,u)}return t}const iw=e=>Array.isArray(e),zG=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),FG=e=>iw(e)?e[e.length-1]||0:e,Jr=e=>!!(e&&e.getVelocity);function Nv(e){const t=Jr(e)?e.get():e;return zG(t)?t.toValue():t}function IG({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:a},i,s,u){const c={latestValues:VG(i,s,u,e),renderState:t()};return a&&(c.onMount=f=>a({props:i,current:f,...c}),c.onUpdate=f=>a(f)),c}const xN=e=>(t,a)=>{const i=w.useContext(Rg),s=w.useContext(Ih),u=()=>IG(e,t,i,s);return a?u():dC(u)};function VG(e,t,a,i){const s={},u=i(e,{});for(const S in u)s[S]=Nv(u[S]);let{initial:c,animate:f}=e;const h=Dg(e),m=gN(e);t&&m&&!h&&e.inherit!==!1&&(c===void 0&&(c=t.initial),f===void 0&&(f=t.animate));let v=a?a.initial===!1:!1;v=v||c===!1;const y=v?f:c;if(y&&typeof y!="boolean"&&!kg(y)){const S=Array.isArray(y)?y:[y];for(let x=0;x<S.length;x++){const R=xC(e,S[x]);if(R){const{transitionEnd:E,transition:k,...A}=R;for(const _ in A){let P=A[_];if(Array.isArray(P)){const $=v?P.length-1:0;P=P[$]}P!==null&&(s[_]=P)}for(const _ in E)s[_]=E[_]}}}return s}const Hu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zl=new Set(Hu),wN=e=>t=>typeof t=="string"&&t.startsWith(e),CN=wN("--"),BG=wN("var(--"),wC=e=>BG(e)?UG.test(e.split("/*")[0].trim()):!1,UG=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,TN=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Qo=(e,t,a)=>a>t?t:a<e?e:a,Wu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},wh={...Wu,transform:e=>Qo(0,1,e)},uv={...Wu,default:1},Vh=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ns=Vh("deg"),lo=Vh("%"),ht=Vh("px"),HG=Vh("vh"),WG=Vh("vw"),j_={...lo,parse:e=>lo.parse(e)/100,transform:e=>lo.transform(e*100)},YG={borderWidth:ht,borderTopWidth:ht,borderRightWidth:ht,borderBottomWidth:ht,borderLeftWidth:ht,borderRadius:ht,radius:ht,borderTopLeftRadius:ht,borderTopRightRadius:ht,borderBottomRightRadius:ht,borderBottomLeftRadius:ht,width:ht,maxWidth:ht,height:ht,maxHeight:ht,top:ht,right:ht,bottom:ht,left:ht,padding:ht,paddingTop:ht,paddingRight:ht,paddingBottom:ht,paddingLeft:ht,margin:ht,marginTop:ht,marginRight:ht,marginBottom:ht,marginLeft:ht,backgroundPositionX:ht,backgroundPositionY:ht},qG={rotate:Ns,rotateX:Ns,rotateY:Ns,rotateZ:Ns,scale:uv,scaleX:uv,scaleY:uv,scaleZ:uv,skew:Ns,skewX:Ns,skewY:Ns,distance:ht,translateX:ht,translateY:ht,translateZ:ht,x:ht,y:ht,z:ht,perspective:ht,transformPerspective:ht,opacity:wh,originX:j_,originY:j_,originZ:ht},L_={...Wu,transform:Math.round},CC={...YG,...qG,zIndex:L_,size:ht,fillOpacity:wh,strokeOpacity:wh,numOctaves:L_},GG={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},XG=Hu.length;function KG(e,t,a){let i="",s=!0;for(let u=0;u<XG;u++){const c=Hu[u],f=e[c];if(f===void 0)continue;let h=!0;if(typeof f=="number"?h=f===(c.startsWith("scale")?1:0):h=parseFloat(f)===0,!h||a){const m=TN(f,CC[c]);if(!h){s=!1;const v=GG[c]||c;i+=`${v}(${m}) `}a&&(t[c]=m)}}return i=i.trim(),a?i=a(t,s?"":i):s&&(i="none"),i}function TC(e,t,a){const{style:i,vars:s,transformOrigin:u}=e;let c=!1,f=!1;for(const h in t){const m=t[h];if(Zl.has(h)){c=!0;continue}else if(CN(h)){s[h]=m;continue}else{const v=TN(m,CC[h]);h.startsWith("origin")?(f=!0,u[h]=v):i[h]=v}}if(t.transform||(c||a?i.transform=KG(t,e.transform,a):i.transform&&(i.transform="none")),f){const{originX:h="50%",originY:m="50%",originZ:v=0}=u;i.transformOrigin=`${h} ${m} ${v}`}}const QG={offset:"stroke-dashoffset",array:"stroke-dasharray"},ZG={offset:"strokeDashoffset",array:"strokeDasharray"};function JG(e,t,a=1,i=0,s=!0){e.pathLength=1;const u=s?QG:ZG;e[u.offset]=ht.transform(-i);const c=ht.transform(t),f=ht.transform(a);e[u.array]=`${c} ${f}`}function $_(e,t,a){return typeof e=="string"?e:ht.transform(t+a*e)}function eX(e,t,a){const i=$_(t,e.x,e.width),s=$_(a,e.y,e.height);return`${i} ${s}`}function EC(e,{attrX:t,attrY:a,attrScale:i,originX:s,originY:u,pathLength:c,pathSpacing:f=1,pathOffset:h=0,...m},v,y){if(TC(e,m,y),v){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:S,style:x,dimensions:R}=e;S.transform&&(R&&(x.transform=S.transform),delete S.transform),R&&(s!==void 0||u!==void 0||x.transform)&&(x.transformOrigin=eX(R,s!==void 0?s:.5,u!==void 0?u:.5)),t!==void 0&&(S.x=t),a!==void 0&&(S.y=a),i!==void 0&&(S.scale=i),c!==void 0&&JG(S,c,f,h,!1)}const RC=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),EN=()=>({...RC(),attrs:{}}),kC=e=>typeof e=="string"&&e.toLowerCase()==="svg";function RN(e,{style:t,vars:a},i,s){Object.assign(e.style,t,s&&s.getProjectionStyles(i));for(const u in a)e.style.setProperty(u,a[u])}const kN=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"]);function DN(e,t,a,i){RN(e,t,void 0,i);for(const s in t.attrs)e.setAttribute(kN.has(s)?s:yC(s),t.attrs[s])}const Jv={};function tX(e){Object.assign(Jv,e)}function _N(e,{layout:t,layoutId:a}){return Zl.has(e)||e.startsWith("origin")||(t||a!==void 0)&&(!!Jv[e]||e==="opacity")}function DC(e,t,a){var i;const{style:s}=e,u={};for(const c in s)(Jr(s[c])||t.style&&Jr(t.style[c])||_N(c,e)||((i=a==null?void 0:a.getValue(c))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(u[c]=s[c]);return u}function AN(e,t,a){const i=DC(e,t,a);for(const s in e)if(Jr(e[s])||Jr(t[s])){const u=Hu.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[u]=e[s]}return i}function nX(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const z_=["x","y","width","height","cx","cy","r"],rX={useVisualState:xN({scrapeMotionValuesFromProps:AN,createRenderState:EN,onUpdate:({props:e,prevProps:t,current:a,renderState:i,latestValues:s})=>{if(!a)return;let u=!!e.drag;if(!u){for(const f in s)if(Zl.has(f)){u=!0;break}}if(!u)return;let c=!t;if(t)for(let f=0;f<z_.length;f++){const h=z_[f];e[h]!==t[h]&&(c=!0)}c&&Fn.read(()=>{nX(a,i),Fn.render(()=>{EC(i,s,kC(a.tagName),e.transformTemplate),DN(a,i)})})}})},aX={useVisualState:xN({scrapeMotionValuesFromProps:DC,createRenderState:RC})};function ON(e,t,a){for(const i in t)!Jr(t[i])&&!_N(i,a)&&(e[i]=t[i])}function iX({transformTemplate:e},t){return w.useMemo(()=>{const a=RC();return TC(a,t,e),Object.assign({},a.vars,a.style)},[t])}function oX(e,t){const a=e.style||{},i={};return ON(i,a,e),Object.assign(i,iX(e,t)),i}function sX(e,t){const a={},i=oX(e,t);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=i,a}function lX(e,t,a,i){const s=w.useMemo(()=>{const u=EN();return EC(u,t,kC(i),e.transformTemplate),{...u.attrs,style:{...u.style}}},[t]);if(e.style){const u={};ON(u,e.style,e),s.style={...u,...s.style}}return s}function cX(e=!1){return(a,i,s,{latestValues:u},c)=>{const h=(SC(a)?lX:sX)(i,u,c,a),m=TG(i,typeof a=="string",e),v=a!==w.Fragment?{...m,...h,ref:s}:{},{children:y}=i,S=w.useMemo(()=>Jr(y)?y.get():y,[y]);return w.createElement(a,{...v,children:S})}}function uX(e,t){return function(i,{forwardMotionProps:s}={forwardMotionProps:!1}){const c={...SC(i)?rX:aX,preloadedFeatures:e,useRender:cX(s),createVisualElement:t,Component:i};return NG(c)}}function MN(e,t){if(!Array.isArray(t))return!1;const a=t.length;if(a!==e.length)return!1;for(let i=0;i<a;i++)if(t[i]!==e[i])return!1;return!0}function _g(e,t,a){const i=e.getProps();return xC(i,t,a!==void 0?a:i.custom,e)}const dX=mC(()=>window.ScrollTimeline!==void 0);class fX{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,a){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=a}attachTimeline(t,a){const i=this.animations.map(s=>{if(dX()&&s.attachTimeline)return s.attachTimeline(t);if(typeof a=="function")return a(s)});return()=>{i.forEach((s,u)=>{s&&s(),this.animations[u].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let a=0;a<this.animations.length;a++)t=Math.max(t,this.animations[a].duration);return t}runAll(t){this.animations.forEach(a=>a[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class hX extends fX{then(t,a){return Promise.all(this.animations).then(t).catch(a)}}function _C(e,t){return e?e[t]||e.default||e:void 0}const ow=2e4;function NN(e){let t=0;const a=50;let i=e.next(t);for(;!i.done&&t<ow;)t+=a,i=e.next(t);return t>=ow?1/0:t}function AC(e){return typeof e=="function"}function F_(e,t){e.timeline=t,e.onfinish=null}const OC=e=>Array.isArray(e)&&typeof e[0]=="number",pX={linearEasing:void 0};function mX(e,t){const a=mC(e);return()=>{var i;return(i=pX[t])!==null&&i!==void 0?i:a()}}const eg=mX(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),PN=(e,t,a=10)=>{let i="";const s=Math.max(Math.round(t/a),2);for(let u=0;u<s;u++)i+=e(Pu(0,s-1,u))+", ";return`linear(${i.substring(0,i.length-2)})`};function jN(e){return!!(typeof e=="function"&&eg()||!e||typeof e=="string"&&(e in sw||eg())||OC(e)||Array.isArray(e)&&e.every(jN))}const Yf=([e,t,a,i])=>`cubic-bezier(${e}, ${t}, ${a}, ${i})`,sw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Yf([0,.65,.55,1]),circOut:Yf([.55,0,1,.45]),backIn:Yf([.31,.01,.66,-.59]),backOut:Yf([.33,1.53,.69,.99])};function LN(e,t){if(e)return typeof e=="function"&&eg()?PN(e,t):OC(e)?Yf(e):Array.isArray(e)?e.map(a=>LN(a,t)||sw.easeOut):sw[e]}const Di={x:!1,y:!1};function $N(){return Di.x||Di.y}function vX(e,t,a){var i;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;t&&(s=t.current);const u=(i=a==null?void 0:a[e])!==null&&i!==void 0?i:s.querySelectorAll(e);return u?Array.from(u):[]}return Array.from(e)}function zN(e,t){const a=vX(e),i=new AbortController,s={passive:!0,...t,signal:i.signal};return[a,s,()=>i.abort()]}function I_(e){return t=>{t.pointerType==="touch"||$N()||e(t)}}function gX(e,t,a={}){const[i,s,u]=zN(e,a),c=I_(f=>{const{target:h}=f,m=t(f);if(typeof m!="function"||!h)return;const v=I_(y=>{m(y),h.removeEventListener("pointerleave",v)});h.addEventListener("pointerleave",v,s)});return i.forEach(f=>{f.addEventListener("pointerenter",c,s)}),u}const FN=(e,t)=>t?e===t?!0:FN(e,t.parentElement):!1,MC=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,yX=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function bX(e){return yX.has(e.tagName)||e.tabIndex!==-1}const qf=new WeakSet;function V_(e){return t=>{t.key==="Enter"&&e(t)}}function ux(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const SX=(e,t)=>{const a=e.currentTarget;if(!a)return;const i=V_(()=>{if(qf.has(a))return;ux(a,"down");const s=V_(()=>{ux(a,"up")}),u=()=>ux(a,"cancel");a.addEventListener("keyup",s,t),a.addEventListener("blur",u,t)});a.addEventListener("keydown",i,t),a.addEventListener("blur",()=>a.removeEventListener("keydown",i),t)};function B_(e){return MC(e)&&!$N()}function xX(e,t,a={}){const[i,s,u]=zN(e,a),c=f=>{const h=f.currentTarget;if(!B_(f)||qf.has(h))return;qf.add(h);const m=t(f),v=(x,R)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",S),!(!B_(x)||!qf.has(h))&&(qf.delete(h),typeof m=="function"&&m(x,{success:R}))},y=x=>{v(x,a.useGlobalTarget||FN(h,x.target))},S=x=>{v(x,!1)};window.addEventListener("pointerup",y,s),window.addEventListener("pointercancel",S,s)};return i.forEach(f=>{!bX(f)&&f.getAttribute("tabindex")===null&&(f.tabIndex=0),(a.useGlobalTarget?window:f).addEventListener("pointerdown",c,s),f.addEventListener("focus",m=>SX(m,s),s)}),u}function wX(e){return e==="x"||e==="y"?Di[e]?null:(Di[e]=!0,()=>{Di[e]=!1}):Di.x||Di.y?null:(Di.x=Di.y=!0,()=>{Di.x=Di.y=!1})}const IN=new Set(["width","height","top","left","right","bottom",...Hu]);let Pv;function CX(){Pv=void 0}const co={now:()=>(Pv===void 0&&co.set(zr.isProcessing||yG.useManualTiming?zr.timestamp:performance.now()),Pv),set:e=>{Pv=e,queueMicrotask(CX)}};function NC(e,t){e.indexOf(t)===-1&&e.push(t)}function PC(e,t){const a=e.indexOf(t);a>-1&&e.splice(a,1)}class jC{constructor(){this.subscriptions=[]}add(t){return NC(this.subscriptions,t),()=>PC(this.subscriptions,t)}notify(t,a,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,a,i);else for(let u=0;u<s;u++){const c=this.subscriptions[u];c&&c(t,a,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function VN(e,t){return t?e*(1e3/t):0}const U_=30,TX=e=>!isNaN(parseFloat(e));class EX{constructor(t,a={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,s=!0)=>{const u=co.now();this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=a.owner}setCurrent(t){this.current=t,this.updatedAt=co.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=TX(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return Eg(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,a){this.events[t]||(this.events[t]=new jC);const i=this.events[t].add(a);return t==="change"?()=>{i(),Fn.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,a){this.passiveEffect=t,this.stopPassiveEffect=a}set(t,a=!0){!a||!this.passiveEffect?this.updateAndNotify(t,a):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,a,i){this.set(a),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,a=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=co.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>U_)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,U_);return VN(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(t){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=t(a),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(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ch(e,t){return new EX(e,t)}function RX(e,t,a){e.hasValue(t)?e.getValue(t).set(a):e.addValue(t,Ch(a))}function kX(e,t){const a=_g(e,t);let{transitionEnd:i={},transition:s={},...u}=a||{};u={...u,...i};for(const c in u){const f=FG(u[c]);RX(e,c,f)}}function DX(e){return!!(Jr(e)&&e.add)}function lw(e,t){const a=e.getValue("willChange");if(DX(a))return a.add(t)}function BN(e){return e.props[yN]}const UN=(e,t,a)=>(((1-3*a+3*t)*e+(3*a-6*t))*e+3*t)*e,_X=1e-7,AX=12;function OX(e,t,a,i,s){let u,c,f=0;do c=t+(a-t)/2,u=UN(c,i,s)-e,u>0?a=c:t=c;while(Math.abs(u)>_X&&++f<AX);return c}function Bh(e,t,a,i){if(e===t&&a===i)return Ta;const s=u=>OX(u,0,1,e,a);return u=>u===0||u===1?u:UN(s(u),t,i)}const HN=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,WN=e=>t=>1-e(1-t),YN=Bh(.33,1.53,.69,.99),LC=WN(YN),qN=HN(LC),GN=e=>(e*=2)<1?.5*LC(e):.5*(2-Math.pow(2,-10*(e-1))),$C=e=>1-Math.sin(Math.acos(e)),XN=WN($C),KN=HN($C),QN=e=>/^0[^.\s]+$/u.test(e);function MX(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||QN(e):!0}const ih=e=>Math.round(e*1e5)/1e5,zC=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function NX(e){return e==null}const PX=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,FC=(e,t)=>a=>!!(typeof a=="string"&&PX.test(a)&&a.startsWith(e)||t&&!NX(a)&&Object.prototype.hasOwnProperty.call(a,t)),ZN=(e,t,a)=>i=>{if(typeof i!="string")return i;const[s,u,c,f]=i.match(zC);return{[e]:parseFloat(s),[t]:parseFloat(u),[a]:parseFloat(c),alpha:f!==void 0?parseFloat(f):1}},jX=e=>Qo(0,255,e),dx={...Wu,transform:e=>Math.round(jX(e))},Ll={test:FC("rgb","red"),parse:ZN("red","green","blue"),transform:({red:e,green:t,blue:a,alpha:i=1})=>"rgba("+dx.transform(e)+", "+dx.transform(t)+", "+dx.transform(a)+", "+ih(wh.transform(i))+")"};function LX(e){let t="",a="",i="",s="";return e.length>5?(t=e.substring(1,3),a=e.substring(3,5),i=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),a=e.substring(2,3),i=e.substring(3,4),s=e.substring(4,5),t+=t,a+=a,i+=i,s+=s),{red:parseInt(t,16),green:parseInt(a,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const cw={test:FC("#"),parse:LX,transform:Ll.transform},mu={test:FC("hsl","hue"),parse:ZN("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:a,alpha:i=1})=>"hsla("+Math.round(e)+", "+lo.transform(ih(t))+", "+lo.transform(ih(a))+", "+ih(wh.transform(i))+")"},Zr={test:e=>Ll.test(e)||cw.test(e)||mu.test(e),parse:e=>Ll.test(e)?Ll.parse(e):mu.test(e)?mu.parse(e):cw.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ll.transform(e):mu.transform(e)},$X=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function zX(e){var t,a;return isNaN(e)&&typeof e=="string"&&(((t=e.match(zC))===null||t===void 0?void 0:t.length)||0)+(((a=e.match($X))===null||a===void 0?void 0:a.length)||0)>0}const JN="number",eP="color",FX="var",IX="var(",H_="${}",VX=/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 Th(e){const t=e.toString(),a=[],i={color:[],number:[],var:[]},s=[];let u=0;const f=t.replace(VX,h=>(Zr.test(h)?(i.color.push(u),s.push(eP),a.push(Zr.parse(h))):h.startsWith(IX)?(i.var.push(u),s.push(FX),a.push(h)):(i.number.push(u),s.push(JN),a.push(parseFloat(h))),++u,H_)).split(H_);return{values:a,split:f,indexes:i,types:s}}function tP(e){return Th(e).values}function nP(e){const{split:t,types:a}=Th(e),i=t.length;return s=>{let u="";for(let c=0;c<i;c++)if(u+=t[c],s[c]!==void 0){const f=a[c];f===JN?u+=ih(s[c]):f===eP?u+=Zr.transform(s[c]):u+=s[c]}return u}}const BX=e=>typeof e=="number"?0:e;function UX(e){const t=tP(e);return nP(e)(t.map(BX))}const Vs={test:zX,parse:tP,createTransformer:nP,getAnimatableNone:UX},HX=new Set(["brightness","contrast","saturate","opacity"]);function WX(e){const[t,a]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=a.match(zC)||[];if(!i)return e;const s=a.replace(i,"");let u=HX.has(t)?1:0;return i!==a&&(u*=100),t+"("+u+s+")"}const YX=/\b([a-z-]*)\(.*?\)/gu,uw={...Vs,getAnimatableNone:e=>{const t=e.match(YX);return t?t.map(WX).join(" "):e}},qX={...CC,color:Zr,backgroundColor:Zr,outlineColor:Zr,fill:Zr,stroke:Zr,borderColor:Zr,borderTopColor:Zr,borderRightColor:Zr,borderBottomColor:Zr,borderLeftColor:Zr,filter:uw,WebkitFilter:uw},IC=e=>qX[e];function rP(e,t){let a=IC(e);return a!==uw&&(a=Vs),a.getAnimatableNone?a.getAnimatableNone(t):void 0}const GX=new Set(["auto","none","0"]);function XX(e,t,a){let i=0,s;for(;i<e.length&&!s;){const u=e[i];typeof u=="string"&&!GX.has(u)&&Th(u).values.length&&(s=e[i]),i++}if(s&&a)for(const u of t)e[u]=rP(a,s)}const W_=e=>e===Wu||e===ht,Y_=(e,t)=>parseFloat(e.split(", ")[t]),q_=(e,t)=>(a,{transform:i})=>{if(i==="none"||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/u);if(s)return Y_(s[1],t);{const u=i.match(/^matrix\((.+)\)$/u);return u?Y_(u[1],e):0}},KX=new Set(["x","y","z"]),QX=Hu.filter(e=>!KX.has(e));function ZX(e){const t=[];return QX.forEach(a=>{const i=e.getValue(a);i!==void 0&&(t.push([a,i.get()]),i.set(a.startsWith("scale")?1:0))}),t}const Lu={width:({x:e},{paddingLeft:t="0",paddingRight:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),height:({y:e},{paddingTop:t="0",paddingBottom:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:q_(4,13),y:q_(5,14)};Lu.translateX=Lu.x;Lu.translateY=Lu.y;const Vl=new Set;let dw=!1,fw=!1;function aP(){if(fw){const e=Array.from(Vl).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),a=new Map;t.forEach(i=>{const s=ZX(i);s.length&&(a.set(i,s),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const s=a.get(i);s&&s.forEach(([u,c])=>{var f;(f=i.getValue(u))===null||f===void 0||f.set(c)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}fw=!1,dw=!1,Vl.forEach(e=>e.complete()),Vl.clear()}function iP(){Vl.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(fw=!0)})}function JX(){iP(),aP()}class VC{constructor(t,a,i,s,u,c=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=a,this.name=i,this.motionValue=s,this.element=u,this.isAsync=c}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Vl.add(this),dw||(dw=!0,Fn.read(iP),Fn.resolveKeyframes(aP))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:a,element:i,motionValue:s}=this;for(let u=0;u<t.length;u++)if(t[u]===null)if(u===0){const c=s==null?void 0:s.get(),f=t[t.length-1];if(c!==void 0)t[0]=c;else if(i&&a){const h=i.readValue(a,f);h!=null&&(t[0]=h)}t[0]===void 0&&(t[0]=f),s&&c===void 0&&s.set(t[0])}else t[u]=t[u-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Vl.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Vl.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const oP=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),eK=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function tK(e){const t=eK.exec(e);if(!t)return[,];const[,a,i,s]=t;return[`--${a??i}`,s]}const nK=4;function sP(e,t,a=1){Fs(a<=nK,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[i,s]=tK(e);if(!i)return;const u=window.getComputedStyle(t).getPropertyValue(i);if(u){const c=u.trim();return oP(c)?parseFloat(c):c}return wC(s)?sP(s,t,a+1):s}const lP=e=>t=>t.test(e),rK={test:e=>e==="auto",parse:e=>e},cP=[Wu,ht,lo,Ns,WG,HG,rK],G_=e=>cP.find(lP(e));class uP extends VC{constructor(t,a,i,s,u){super(t,a,i,s,u,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:a,name:i}=this;if(!a||!a.current)return;super.readKeyframes();for(let h=0;h<t.length;h++){let m=t[h];if(typeof m=="string"&&(m=m.trim(),wC(m))){const v=sP(m,a.current);v!==void 0&&(t[h]=v),h===t.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!IN.has(i)||t.length!==2)return;const[s,u]=t,c=G_(s),f=G_(u);if(c!==f)if(W_(c)&&W_(f))for(let h=0;h<t.length;h++){const m=t[h];typeof m=="string"&&(t[h]=parseFloat(m))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:a}=this,i=[];for(let s=0;s<t.length;s++)MX(t[s])&&i.push(s);i.length&&XX(t,i,a)}measureInitialState(){const{element:t,unresolvedKeyframes:a,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Lu[i](t.measureViewportBox(),window.getComputedStyle(t.current)),a[0]=this.measuredOrigin;const s=a[a.length-1];s!==void 0&&t.getValue(i,s).jump(s,!1)}measureEndState(){var t;const{element:a,name:i,unresolvedKeyframes:s}=this;if(!a||!a.current)return;const u=a.getValue(i);u&&u.jump(this.measuredOrigin,!1);const c=s.length-1,f=s[c];s[c]=Lu[i](a.measureViewportBox(),window.getComputedStyle(a.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([h,m])=>{a.getValue(h).set(m)}),this.resolveNoneKeyframes()}}const X_=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Vs.test(e)||e==="0")&&!e.startsWith("url("));function aK(e){const t=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==t)return!0}function iK(e,t,a,i){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const u=e[e.length-1],c=X_(s,t),f=X_(u,t);return Uu(c===f,`You are trying to animate ${t} from "${s}" to "${u}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${u} via the \`style\` property.`),!c||!f?!1:aK(e)||(a==="spring"||AC(a))&&i}const oK=e=>e!==null;function Ag(e,{repeat:t,repeatType:a="loop"},i){const s=e.filter(oK),u=t&&a!=="loop"&&t%2===1?0:s.length-1;return!u||i===void 0?s[u]:i}const sK=40;class dP{constructor({autoplay:t=!0,delay:a=0,type:i="keyframes",repeat:s=0,repeatDelay:u=0,repeatType:c="loop",...f}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=co.now(),this.options={autoplay:t,delay:a,type:i,repeat:s,repeatDelay:u,repeatType:c,...f},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>sK?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&JX(),this._resolved}onKeyframesResolved(t,a){this.resolvedAt=co.now(),this.hasAttemptedResolve=!0;const{name:i,type:s,velocity:u,delay:c,onComplete:f,onUpdate:h,isGenerator:m}=this.options;if(!m&&!iK(t,i,s,u))if(c)this.options.duration=0;else{h&&h(Ag(t,this.options,a)),f&&f(),this.resolveFinishedPromise();return}const v=this.initPlayback(t,a);v!==!1&&(this._resolved={keyframes:t,finalKeyframe:a,...v},this.onPostResolved())}onPostResolved(){}then(t,a){return this.currentFinishedPromise.then(t,a)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Yn=(e,t,a)=>e+(t-e)*a;function fx(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(t-e)*6*a:a<1/2?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function lK({hue:e,saturation:t,lightness:a,alpha:i}){e/=360,t/=100,a/=100;let s=0,u=0,c=0;if(!t)s=u=c=a;else{const f=a<.5?a*(1+t):a+t-a*t,h=2*a-f;s=fx(h,f,e+1/3),u=fx(h,f,e),c=fx(h,f,e-1/3)}return{red:Math.round(s*255),green:Math.round(u*255),blue:Math.round(c*255),alpha:i}}function tg(e,t){return a=>a>0?t:e}const hx=(e,t,a)=>{const i=e*e,s=a*(t*t-i)+i;return s<0?0:Math.sqrt(s)},cK=[cw,Ll,mu],uK=e=>cK.find(t=>t.test(e));function K_(e){const t=uK(e);if(Uu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let a=t.parse(e);return t===mu&&(a=lK(a)),a}const Q_=(e,t)=>{const a=K_(e),i=K_(t);if(!a||!i)return tg(e,t);const s={...a};return u=>(s.red=hx(a.red,i.red,u),s.green=hx(a.green,i.green,u),s.blue=hx(a.blue,i.blue,u),s.alpha=Yn(a.alpha,i.alpha,u),Ll.transform(s))},dK=(e,t)=>a=>t(e(a)),Uh=(...e)=>e.reduce(dK),hw=new Set(["none","hidden"]);function fK(e,t){return hw.has(e)?a=>a<=0?e:t:a=>a>=1?t:e}function hK(e,t){return a=>Yn(e,t,a)}function BC(e){return typeof e=="number"?hK:typeof e=="string"?wC(e)?tg:Zr.test(e)?Q_:vK:Array.isArray(e)?fP:typeof e=="object"?Zr.test(e)?Q_:pK:tg}function fP(e,t){const a=[...e],i=a.length,s=e.map((u,c)=>BC(u)(u,t[c]));return u=>{for(let c=0;c<i;c++)a[c]=s[c](u);return a}}function pK(e,t){const a={...e,...t},i={};for(const s in a)e[s]!==void 0&&t[s]!==void 0&&(i[s]=BC(e[s])(e[s],t[s]));return s=>{for(const u in i)a[u]=i[u](s);return a}}function mK(e,t){var a;const i=[],s={color:0,var:0,number:0};for(let u=0;u<t.values.length;u++){const c=t.types[u],f=e.indexes[c][s[c]],h=(a=e.values[f])!==null&&a!==void 0?a:0;i[u]=h,s[c]++}return i}const vK=(e,t)=>{const a=Vs.createTransformer(t),i=Th(e),s=Th(t);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?hw.has(e)&&!s.values.length||hw.has(t)&&!i.values.length?fK(e,t):Uh(fP(mK(i,s),s.values),a):(Uu(!0,`Complex values '${e}' and '${t}' 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.`),tg(e,t))};function hP(e,t,a){return typeof e=="number"&&typeof t=="number"&&typeof a=="number"?Yn(e,t,a):BC(e)(e,t)}const gK=5;function pP(e,t,a){const i=Math.max(t-gK,0);return VN(a-e(i),t-i)}const Wn={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},px=.001;function yK({duration:e=Wn.duration,bounce:t=Wn.bounce,velocity:a=Wn.velocity,mass:i=Wn.mass}){let s,u;Uu(e<=so(Wn.maxDuration),"Spring duration must be 10 seconds or less");let c=1-t;c=Qo(Wn.minDamping,Wn.maxDamping,c),e=Qo(Wn.minDuration,Wn.maxDuration,Go(e)),c<1?(s=m=>{const v=m*c,y=v*e,S=v-a,x=pw(m,c),R=Math.exp(-y);return px-S/x*R},u=m=>{const y=m*c*e,S=y*a+a,x=Math.pow(c,2)*Math.pow(m,2)*e,R=Math.exp(-y),E=pw(Math.pow(m,2),c);return(-s(m)+px>0?-1:1)*((S-x)*R)/E}):(s=m=>{const v=Math.exp(-m*e),y=(m-a)*e+1;return-px+v*y},u=m=>{const v=Math.exp(-m*e),y=(a-m)*(e*e);return v*y});const f=5/e,h=SK(s,u,f);if(e=so(e),isNaN(h))return{stiffness:Wn.stiffness,damping:Wn.damping,duration:e};{const m=Math.pow(h,2)*i;return{stiffness:m,damping:c*2*Math.sqrt(i*m),duration:e}}}const bK=12;function SK(e,t,a){let i=a;for(let s=1;s<bK;s++)i=i-e(i)/t(i);return i}function pw(e,t){return e*Math.sqrt(1-t*t)}const xK=["duration","bounce"],wK=["stiffness","damping","mass"];function Z_(e,t){return t.some(a=>e[a]!==void 0)}function CK(e){let t={velocity:Wn.velocity,stiffness:Wn.stiffness,damping:Wn.damping,mass:Wn.mass,isResolvedFromDuration:!1,...e};if(!Z_(e,wK)&&Z_(e,xK))if(e.visualDuration){const a=e.visualDuration,i=2*Math.PI/(a*1.2),s=i*i,u=2*Qo(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:Wn.mass,stiffness:s,damping:u}}else{const a=yK(e);t={...t,...a,mass:Wn.mass},t.isResolvedFromDuration=!0}return t}function mP(e=Wn.visualDuration,t=Wn.bounce){const a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:s}=a;const u=a.keyframes[0],c=a.keyframes[a.keyframes.length-1],f={done:!1,value:u},{stiffness:h,damping:m,mass:v,duration:y,velocity:S,isResolvedFromDuration:x}=CK({...a,velocity:-Go(a.velocity||0)}),R=S||0,E=m/(2*Math.sqrt(h*v)),k=c-u,A=Go(Math.sqrt(h/v)),_=Math.abs(k)<5;i||(i=_?Wn.restSpeed.granular:Wn.restSpeed.default),s||(s=_?Wn.restDelta.granular:Wn.restDelta.default);let P;if(E<1){const L=pw(A,E);P=U=>{const F=Math.exp(-E*A*U);return c-F*((R+E*A*k)/L*Math.sin(L*U)+k*Math.cos(L*U))}}else if(E===1)P=L=>c-Math.exp(-A*L)*(k+(R+A*k)*L);else{const L=A*Math.sqrt(E*E-1);P=U=>{const F=Math.exp(-E*A*U),Q=Math.min(L*U,300);return c-F*((R+E*A*k)*Math.sinh(Q)+L*k*Math.cosh(Q))/L}}const $={calculatedDuration:x&&y||null,next:L=>{const U=P(L);if(x)f.done=L>=y;else{let F=0;E<1&&(F=L===0?so(R):pP(P,L,U));const Q=Math.abs(F)<=i,se=Math.abs(c-U)<=s;f.done=Q&&se}return f.value=f.done?c:U,f},toString:()=>{const L=Math.min(NN($),ow),U=PN(F=>$.next(L*F).value,L,30);return L+"ms "+U}};return $}function J_({keyframes:e,velocity:t=0,power:a=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:u=500,modifyTarget:c,min:f,max:h,restDelta:m=.5,restSpeed:v}){const y=e[0],S={done:!1,value:y},x=Q=>f!==void 0&&Q<f||h!==void 0&&Q>h,R=Q=>f===void 0?h:h===void 0||Math.abs(f-Q)<Math.abs(h-Q)?f:h;let E=a*t;const k=y+E,A=c===void 0?k:c(k);A!==k&&(E=A-y);const _=Q=>-E*Math.exp(-Q/i),P=Q=>A+_(Q),$=Q=>{const se=_(Q),ae=P(Q);S.done=Math.abs(se)<=m,S.value=S.done?A:ae};let L,U;const F=Q=>{x(S.value)&&(L=Q,U=mP({keyframes:[S.value,R(S.value)],velocity:pP(P,Q,S.value),damping:s,stiffness:u,restDelta:m,restSpeed:v}))};return F(0),{calculatedDuration:null,next:Q=>{let se=!1;return!U&&L===void 0&&(se=!0,$(Q),F(Q)),L!==void 0&&Q>=L?U.next(Q-L):(!se&&$(Q),S)}}}const TK=Bh(.42,0,1,1),EK=Bh(0,0,.58,1),vP=Bh(.42,0,.58,1),RK=e=>Array.isArray(e)&&typeof e[0]!="number",eA={linear:Ta,easeIn:TK,easeInOut:vP,easeOut:EK,circIn:$C,circInOut:KN,circOut:XN,backIn:LC,backInOut:qN,backOut:YN,anticipate:GN},tA=e=>{if(OC(e)){Fs(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,a,i,s]=e;return Bh(t,a,i,s)}else if(typeof e=="string")return Fs(eA[e]!==void 0,`Invalid easing type '${e}'`),eA[e];return e};function kK(e,t,a){const i=[],s=a||hP,u=e.length-1;for(let c=0;c<u;c++){let f=s(e[c],e[c+1]);if(t){const h=Array.isArray(t)?t[c]||Ta:t;f=Uh(h,f)}i.push(f)}return i}function DK(e,t,{clamp:a=!0,ease:i,mixer:s}={}){const u=e.length;if(Fs(u===t.length,"Both input and output ranges must be the same length"),u===1)return()=>t[0];if(u===2&&t[0]===t[1])return()=>t[1];const c=e[0]===e[1];e[0]>e[u-1]&&(e=[...e].reverse(),t=[...t].reverse());const f=kK(t,i,s),h=f.length,m=v=>{if(c&&v<e[0])return t[0];let y=0;if(h>1)for(;y<e.length-2&&!(v<e[y+1]);y++);const S=Pu(e[y],e[y+1],v);return f[y](S)};return a?v=>m(Qo(e[0],e[u-1],v)):m}function _K(e,t){const a=e[e.length-1];for(let i=1;i<=t;i++){const s=Pu(0,t,i);e.push(Yn(a,1,s))}}function AK(e){const t=[0];return _K(t,e.length-1),t}function OK(e,t){return e.map(a=>a*t)}function MK(e,t){return e.map(()=>t||vP).splice(0,e.length-1)}function ng({duration:e=300,keyframes:t,times:a,ease:i="easeInOut"}){const s=RK(i)?i.map(tA):tA(i),u={done:!1,value:t[0]},c=OK(a&&a.length===t.length?a:AK(t),e),f=DK(c,t,{ease:Array.isArray(s)?s:MK(t,s)});return{calculatedDuration:e,next:h=>(u.value=f(h),u.done=h>=e,u)}}const NK=e=>{const t=({timestamp:a})=>e(a);return{start:()=>Fn.update(t,!0),stop:()=>Is(t),now:()=>zr.isProcessing?zr.timestamp:co.now()}},PK={decay:J_,inertia:J_,tween:ng,keyframes:ng,spring:mP},jK=e=>e/100;class UC extends dP{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:h}=this.options;h&&h()};const{name:a,motionValue:i,element:s,keyframes:u}=this.options,c=(s==null?void 0:s.KeyframeResolver)||VC,f=(h,m)=>this.onKeyframesResolved(h,m);this.resolver=new c(u,f,a,i,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:a="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:u,velocity:c=0}=this.options,f=AC(a)?a:PK[a]||ng;let h,m;f!==ng&&typeof t[0]!="number"&&(Fs(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),h=Uh(jK,hP(t[0],t[1])),t=[0,100]);const v=f({...this.options,keyframes:t});u==="mirror"&&(m=f({...this.options,keyframes:[...t].reverse(),velocity:-c})),v.calculatedDuration===null&&(v.calculatedDuration=NN(v));const{calculatedDuration:y}=v,S=y+s,x=S*(i+1)-s;return{generator:v,mirroredGenerator:m,mapPercentToKeyframes:h,calculatedDuration:y,resolvedDuration:S,totalDuration:x}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,a=!1){const{resolved:i}=this;if(!i){const{keyframes:Q}=this.options;return{done:!0,value:Q[Q.length-1]}}const{finalKeyframe:s,generator:u,mirroredGenerator:c,mapPercentToKeyframes:f,keyframes:h,calculatedDuration:m,totalDuration:v,resolvedDuration:y}=i;if(this.startTime===null)return u.next(0);const{delay:S,repeat:x,repeatType:R,repeatDelay:E,onUpdate:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-v/this.speed,this.startTime)),a?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const A=this.currentTime-S*(this.speed>=0?1:-1),_=this.speed>=0?A<0:A>v;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=v);let P=this.currentTime,$=u;if(x){const Q=Math.min(this.currentTime,v)/y;let se=Math.floor(Q),ae=Q%1;!ae&&Q>=1&&(ae=1),ae===1&&se--,se=Math.min(se,x+1),!!(se%2)&&(R==="reverse"?(ae=1-ae,E&&(ae-=E/y)):R==="mirror"&&($=c)),P=Qo(0,1,ae)*y}const L=_?{done:!1,value:h[0]}:$.next(P);f&&(L.value=f(L.value));let{done:U}=L;!_&&m!==null&&(U=this.speed>=0?this.currentTime>=v:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&U);return F&&s!==void 0&&(L.value=Ag(h,this.options,s)),k&&k(L.value),F&&this.finish(),L}get duration(){const{resolved:t}=this;return t?Go(t.calculatedDuration):0}get time(){return Go(this.currentTime)}set time(t){t=so(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const a=this.playbackSpeed!==t;this.playbackSpeed=t,a&&(this.time=Go(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=NK,onPlay:a,startTime:i}=this.options;this.driver||(this.driver=t(u=>this.tick(u))),a&&a();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const LK=new Set(["opacity","clipPath","filter","transform"]);function $K(e,t,a,{delay:i=0,duration:s=300,repeat:u=0,repeatType:c="loop",ease:f="easeInOut",times:h}={}){const m={[t]:a};h&&(m.offset=h);const v=LN(f,s);return Array.isArray(v)&&(m.easing=v),e.animate(m,{delay:i,duration:s,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:u+1,direction:c==="reverse"?"alternate":"normal"})}const zK=mC(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),rg=10,FK=2e4;function IK(e){return AC(e.type)||e.type==="spring"||!jN(e.ease)}function VK(e,t){const a=new UC({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:e[0]};const s=[];let u=0;for(;!i.done&&u<FK;)i=a.sample(u),s.push(i.value),u+=rg;return{times:void 0,keyframes:s,duration:u-rg,ease:"linear"}}const gP={anticipate:GN,backInOut:qN,circInOut:KN};function BK(e){return e in gP}class nA extends dP{constructor(t){super(t);const{name:a,motionValue:i,element:s,keyframes:u}=this.options;this.resolver=new uP(u,(c,f)=>this.onKeyframesResolved(c,f),a,i,s),this.resolver.scheduleResolve()}initPlayback(t,a){let{duration:i=300,times:s,ease:u,type:c,motionValue:f,name:h,startTime:m}=this.options;if(!f.owner||!f.owner.current)return!1;if(typeof u=="string"&&eg()&&BK(u)&&(u=gP[u]),IK(this.options)){const{onComplete:y,onUpdate:S,motionValue:x,element:R,...E}=this.options,k=VK(t,E);t=k.keyframes,t.length===1&&(t[1]=t[0]),i=k.duration,s=k.times,u=k.ease,c="keyframes"}const v=$K(f.owner.current,h,t,{...this.options,duration:i,times:s,ease:u});return v.startTime=m??this.calcStartTime(),this.pendingTimeline?(F_(v,this.pendingTimeline),this.pendingTimeline=void 0):v.onfinish=()=>{const{onComplete:y}=this.options;f.set(Ag(t,this.options,a)),y&&y(),this.cancel(),this.resolveFinishedPromise()},{animation:v,duration:i,times:s,type:c,ease:u,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:a}=t;return Go(a)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:a}=t;return Go(a.currentTime||0)}set time(t){const{resolved:a}=this;if(!a)return;const{animation:i}=a;i.currentTime=so(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:a}=t;return a.playbackRate}set speed(t){const{resolved:a}=this;if(!a)return;const{animation:i}=a;i.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:a}=t;return a.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:a}=t;return a.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:a}=this;if(!a)return Ta;const{animation:i}=a;F_(i,t)}return Ta}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:a}=t;a.playState==="finished"&&this.updateFinishedPromise(),a.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:a}=t;a.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:a,keyframes:i,duration:s,type:u,ease:c,times:f}=t;if(a.playState==="idle"||a.playState==="finished")return;if(this.time){const{motionValue:m,onUpdate:v,onComplete:y,element:S,...x}=this.options,R=new UC({...x,keyframes:i,duration:s,type:u,ease:c,times:f,isGenerator:!0}),E=so(this.time);m.setWithVelocity(R.sample(E-rg).value,R.sample(E).value,rg)}const{onStop:h}=this.options;h&&h(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:a,name:i,repeatDelay:s,repeatType:u,damping:c,type:f}=t;if(!a||!a.owner||!(a.owner.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:m}=a.owner.getProps();return zK()&&i&&LK.has(i)&&!h&&!m&&!s&&u!=="mirror"&&c!==0&&f!=="inertia"}}const UK={type:"spring",stiffness:500,damping:25,restSpeed:10},HK=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),WK={type:"keyframes",duration:.8},YK={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qK=(e,{keyframes:t})=>t.length>2?WK:Zl.has(e)?e.startsWith("scale")?HK(t[1]):UK:YK;function GK({when:e,delay:t,delayChildren:a,staggerChildren:i,staggerDirection:s,repeat:u,repeatType:c,repeatDelay:f,from:h,elapsed:m,...v}){return!!Object.keys(v).length}const HC=(e,t,a,i={},s,u)=>c=>{const f=_C(i,e)||{},h=f.delay||i.delay||0;let{elapsed:m=0}=i;m=m-so(h);let v={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:t.getVelocity(),...f,delay:-m,onUpdate:S=>{t.set(S),f.onUpdate&&f.onUpdate(S)},onComplete:()=>{c(),f.onComplete&&f.onComplete()},name:e,motionValue:t,element:u?void 0:s};GK(f)||(v={...v,...qK(e,v)}),v.duration&&(v.duration=so(v.duration)),v.repeatDelay&&(v.repeatDelay=so(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let y=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(v.duration=0,v.delay===0&&(y=!0)),y&&!u&&t.get()!==void 0){const S=Ag(v.keyframes,f);if(S!==void 0)return Fn.update(()=>{v.onUpdate(S),v.onComplete()}),new hX([])}return!u&&nA.supports(v)?new nA(v):new UC(v)};function XK({protectedKeys:e,needsAnimating:t},a){const i=e.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,i}function yP(e,t,{delay:a=0,transitionOverride:i,type:s}={}){var u;let{transition:c=e.getDefaultTransition(),transitionEnd:f,...h}=t;i&&(c=i);const m=[],v=s&&e.animationState&&e.animationState.getState()[s];for(const y in h){const S=e.getValue(y,(u=e.latestValues[y])!==null&&u!==void 0?u:null),x=h[y];if(x===void 0||v&&XK(v,y))continue;const R={delay:a,..._C(c||{},y)};let E=!1;if(window.MotionHandoffAnimation){const A=BN(e);if(A){const _=window.MotionHandoffAnimation(A,y,Fn);_!==null&&(R.startTime=_,E=!0)}}lw(e,y),S.start(HC(y,S,x,e.shouldReduceMotion&&IN.has(y)?{type:!1}:R,e,E));const k=S.animation;k&&m.push(k)}return f&&Promise.all(m).then(()=>{Fn.update(()=>{f&&kX(e,f)})}),m}function mw(e,t,a={}){var i;const s=_g(e,t,a.type==="exit"?(i=e.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:u=e.getDefaultTransition()||{}}=s||{};a.transitionOverride&&(u=a.transitionOverride);const c=s?()=>Promise.all(yP(e,s,a)):()=>Promise.resolve(),f=e.variantChildren&&e.variantChildren.size?(m=0)=>{const{delayChildren:v=0,staggerChildren:y,staggerDirection:S}=u;return KK(e,t,v+m,y,S,a)}:()=>Promise.resolve(),{when:h}=u;if(h){const[m,v]=h==="beforeChildren"?[c,f]:[f,c];return m().then(()=>v())}else return Promise.all([c(),f(a.delay)])}function KK(e,t,a=0,i=0,s=1,u){const c=[],f=(e.variantChildren.size-1)*i,h=s===1?(m=0)=>m*i:(m=0)=>f-m*i;return Array.from(e.variantChildren).sort(QK).forEach((m,v)=>{m.notify("AnimationStart",t),c.push(mw(m,t,{...u,delay:a+h(v)}).then(()=>m.notify("AnimationComplete",t)))}),Promise.all(c)}function QK(e,t){return e.sortNodePosition(t)}function ZK(e,t,a={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const s=t.map(u=>mw(e,u,a));i=Promise.all(s)}else if(typeof t=="string")i=mw(e,t,a);else{const s=typeof t=="function"?_g(e,t,a.custom):t;i=Promise.all(yP(e,s,a))}return i.then(()=>{e.notify("AnimationComplete",t)})}const JK=gC.length;function bP(e){if(!e)return;if(!e.isControllingVariants){const a=e.parent?bP(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}const t={};for(let a=0;a<JK;a++){const i=gC[a],s=e.props[i];(xh(s)||s===!1)&&(t[i]=s)}return t}const eQ=[...vC].reverse(),tQ=vC.length;function nQ(e){return t=>Promise.all(t.map(({animation:a,options:i})=>ZK(e,a,i)))}function rQ(e){let t=nQ(e),a=rA(),i=!0;const s=h=>(m,v)=>{var y;const S=_g(e,v,h==="exit"?(y=e.presenceContext)===null||y===void 0?void 0:y.custom:void 0);if(S){const{transition:x,transitionEnd:R,...E}=S;m={...m,...E,...R}}return m};function u(h){t=h(e)}function c(h){const{props:m}=e,v=bP(e.parent)||{},y=[],S=new Set;let x={},R=1/0;for(let k=0;k<tQ;k++){const A=eQ[k],_=a[A],P=m[A]!==void 0?m[A]:v[A],$=xh(P),L=A===h?_.isActive:null;L===!1&&(R=k);let U=P===v[A]&&P!==m[A]&&$;if(U&&i&&e.manuallyAnimateOnMount&&(U=!1),_.protectedKeys={...x},!_.isActive&&L===null||!P&&!_.prevProp||kg(P)||typeof P=="boolean")continue;const F=aQ(_.prevProp,P);let Q=F||A===h&&_.isActive&&!U&&$||k>R&&$,se=!1;const ae=Array.isArray(P)?P:[P];let ue=ae.reduce(s(A),{});L===!1&&(ue={});const{prevResolvedValues:Ge={}}=_,Y={...Ge,...ue},ce=I=>{Q=!0,S.has(I)&&(se=!0,S.delete(I)),_.needsAnimating[I]=!0;const X=e.getValue(I);X&&(X.liveStyle=!1)};for(const I in Y){const X=ue[I],pe=Ge[I];if(x.hasOwnProperty(I))continue;let te=!1;iw(X)&&iw(pe)?te=!MN(X,pe):te=X!==pe,te?X!=null?ce(I):S.add(I):X!==void 0&&S.has(I)?ce(I):_.protectedKeys[I]=!0}_.prevProp=P,_.prevResolvedValues=ue,_.isActive&&(x={...x,...ue}),i&&e.blockInitialAnimation&&(Q=!1),Q&&(!(U&&F)||se)&&y.push(...ae.map(I=>({animation:I,options:{type:A}})))}if(S.size){const k={};S.forEach(A=>{const _=e.getBaseTarget(A),P=e.getValue(A);P&&(P.liveStyle=!0),k[A]=_??null}),y.push({animation:k})}let E=!!y.length;return i&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(E=!1),i=!1,E?t(y):Promise.resolve()}function f(h,m){var v;if(a[h].isActive===m)return Promise.resolve();(v=e.variantChildren)===null||v===void 0||v.forEach(S=>{var x;return(x=S.animationState)===null||x===void 0?void 0:x.setActive(h,m)}),a[h].isActive=m;const y=c(h);for(const S in a)a[S].protectedKeys={};return y}return{animateChanges:c,setActive:f,setAnimateFunction:u,getState:()=>a,reset:()=>{a=rA(),i=!0}}}function aQ(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!MN(t,e):!1}function Ol(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rA(){return{animate:Ol(!0),whileInView:Ol(),whileHover:Ol(),whileTap:Ol(),whileDrag:Ol(),whileFocus:Ol(),exit:Ol()}}class Bs{constructor(t){this.isMounted=!1,this.node=t}update(){}}class iQ extends Bs{constructor(t){super(t),t.animationState||(t.animationState=rQ(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();kg(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:a}=this.node.prevProps||{};t!==a&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let oQ=0;class sQ extends Bs{constructor(){super(...arguments),this.id=oQ++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:a}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const s=this.node.animationState.setActive("exit",!t);a&&!t&&s.then(()=>a(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const lQ={animation:{Feature:iQ},exit:{Feature:sQ}};function Eh(e,t,a,i={passive:!0}){return e.addEventListener(t,a,i),()=>e.removeEventListener(t,a)}function Hh(e){return{point:{x:e.pageX,y:e.pageY}}}const cQ=e=>t=>MC(t)&&e(t,Hh(t));function oh(e,t,a,i){return Eh(e,t,cQ(a),i)}const aA=(e,t)=>Math.abs(e-t);function uQ(e,t){const a=aA(e.x,t.x),i=aA(e.y,t.y);return Math.sqrt(a**2+i**2)}class SP{constructor(t,a,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:u=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=vx(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,x=uQ(y.offset,{x:0,y:0})>=3;if(!S&&!x)return;const{point:R}=y,{timestamp:E}=zr;this.history.push({...R,timestamp:E});const{onStart:k,onMove:A}=this.handlers;S||(k&&k(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,y)},this.handlePointerMove=(y,S)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=mx(S,this.transformPagePoint),Fn.update(this.updatePoint,!0)},this.handlePointerUp=(y,S)=>{this.end();const{onEnd:x,onSessionEnd:R,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=vx(y.type==="pointercancel"?this.lastMoveEventInfo:mx(S,this.transformPagePoint),this.history);this.startEvent&&x&&x(y,k),R&&R(y,k)},!MC(t))return;this.dragSnapToOrigin=u,this.handlers=a,this.transformPagePoint=i,this.contextWindow=s||window;const c=Hh(t),f=mx(c,this.transformPagePoint),{point:h}=f,{timestamp:m}=zr;this.history=[{...h,timestamp:m}];const{onSessionStart:v}=a;v&&v(t,vx(f,this.history)),this.removeListeners=Uh(oh(this.contextWindow,"pointermove",this.handlePointerMove),oh(this.contextWindow,"pointerup",this.handlePointerUp),oh(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Is(this.updatePoint)}}function mx(e,t){return t?{point:t(e.point)}:e}function iA(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vx({point:e},t){return{point:e,delta:iA(e,xP(t)),offset:iA(e,dQ(t)),velocity:fQ(t,.1)}}function dQ(e){return e[0]}function xP(e){return e[e.length-1]}function fQ(e,t){if(e.length<2)return{x:0,y:0};let a=e.length-1,i=null;const s=xP(e);for(;a>=0&&(i=e[a],!(s.timestamp-i.timestamp>so(t)));)a--;if(!i)return{x:0,y:0};const u=Go(s.timestamp-i.timestamp);if(u===0)return{x:0,y:0};const c={x:(s.x-i.x)/u,y:(s.y-i.y)/u};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}const wP=1e-4,hQ=1-wP,pQ=1+wP,CP=.01,mQ=0-CP,vQ=0+CP;function Va(e){return e.max-e.min}function gQ(e,t,a){return Math.abs(e-t)<=a}function oA(e,t,a,i=.5){e.origin=i,e.originPoint=Yn(t.min,t.max,e.origin),e.scale=Va(a)/Va(t),e.translate=Yn(a.min,a.max,e.origin)-e.originPoint,(e.scale>=hQ&&e.scale<=pQ||isNaN(e.scale))&&(e.scale=1),(e.translate>=mQ&&e.translate<=vQ||isNaN(e.translate))&&(e.translate=0)}function sh(e,t,a,i){oA(e.x,t.x,a.x,i?i.originX:void 0),oA(e.y,t.y,a.y,i?i.originY:void 0)}function sA(e,t,a){e.min=a.min+t.min,e.max=e.min+Va(t)}function yQ(e,t,a){sA(e.x,t.x,a.x),sA(e.y,t.y,a.y)}function lA(e,t,a){e.min=t.min-a.min,e.max=e.min+Va(t)}function lh(e,t,a){lA(e.x,t.x,a.x),lA(e.y,t.y,a.y)}function bQ(e,{min:t,max:a},i){return t!==void 0&&e<t?e=i?Yn(t,e,i.min):Math.max(e,t):a!==void 0&&e>a&&(e=i?Yn(a,e,i.max):Math.min(e,a)),e}function cA(e,t,a){return{min:t!==void 0?e.min+t:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function SQ(e,{top:t,left:a,bottom:i,right:s}){return{x:cA(e.x,a,s),y:cA(e.y,t,i)}}function uA(e,t){let a=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([a,i]=[i,a]),{min:a,max:i}}function xQ(e,t){return{x:uA(e.x,t.x),y:uA(e.y,t.y)}}function wQ(e,t){let a=.5;const i=Va(e),s=Va(t);return s>i?a=Pu(t.min,t.max-i,e.min):i>s&&(a=Pu(e.min,e.max-s,t.min)),Qo(0,1,a)}function CQ(e,t){const a={};return t.min!==void 0&&(a.min=t.min-e.min),t.max!==void 0&&(a.max=t.max-e.min),a}const vw=.35;function TQ(e=vw){return e===!1?e=0:e===!0&&(e=vw),{x:dA(e,"left","right"),y:dA(e,"top","bottom")}}function dA(e,t,a){return{min:fA(e,t),max:fA(e,a)}}function fA(e,t){return typeof e=="number"?e:e[t]||0}const hA=()=>({translate:0,scale:1,origin:0,originPoint:0}),vu=()=>({x:hA(),y:hA()}),pA=()=>({min:0,max:0}),rr=()=>({x:pA(),y:pA()});function ti(e){return[e("x"),e("y")]}function TP({top:e,left:t,right:a,bottom:i}){return{x:{min:t,max:a},y:{min:e,max:i}}}function EQ({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function RQ(e,t){if(!t)return e;const a=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:i.y,right:i.x}}function gx(e){return e===void 0||e===1}function gw({scale:e,scaleX:t,scaleY:a}){return!gx(e)||!gx(t)||!gx(a)}function Ml(e){return gw(e)||EP(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function EP(e){return mA(e.x)||mA(e.y)}function mA(e){return e&&e!=="0%"}function ag(e,t,a){const i=e-a,s=t*i;return a+s}function vA(e,t,a,i,s){return s!==void 0&&(e=ag(e,s,i)),ag(e,a,i)+t}function yw(e,t=0,a=1,i,s){e.min=vA(e.min,t,a,i,s),e.max=vA(e.max,t,a,i,s)}function RP(e,{x:t,y:a}){yw(e.x,t.translate,t.scale,t.originPoint),yw(e.y,a.translate,a.scale,a.originPoint)}const gA=.999999999999,yA=1.0000000000001;function kQ(e,t,a,i=!1){const s=a.length;if(!s)return;t.x=t.y=1;let u,c;for(let f=0;f<s;f++){u=a[f],c=u.projectionDelta;const{visualElement:h}=u.options;h&&h.props.style&&h.props.style.display==="contents"||(i&&u.options.layoutScroll&&u.scroll&&u!==u.root&&yu(e,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,RP(e,c)),i&&Ml(u.latestValues)&&yu(e,u.latestValues))}t.x<yA&&t.x>gA&&(t.x=1),t.y<yA&&t.y>gA&&(t.y=1)}function gu(e,t){e.min=e.min+t,e.max=e.max+t}function bA(e,t,a,i,s=.5){const u=Yn(e.min,e.max,s);yw(e,t,a,u,i)}function yu(e,t){bA(e.x,t.x,t.scaleX,t.scale,t.originX),bA(e.y,t.y,t.scaleY,t.scale,t.originY)}function kP(e,t){return TP(RQ(e.getBoundingClientRect(),t))}function DQ(e,t,a){const i=kP(e,a),{scroll:s}=t;return s&&(gu(i.x,s.offset.x),gu(i.y,s.offset.y)),i}const DP=({current:e})=>e?e.ownerDocument.defaultView:null,_Q=new WeakMap;class AQ{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rr(),this.visualElement=t}start(t,{snapToCursor:a=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=v=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),a&&this.snapToCursor(Hh(v).point)},u=(v,y)=>{const{drag:S,dragPropagation:x,onDragStart:R}=this.getProps();if(S&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=wX(S),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ti(k=>{let A=this.getAxisMotionValue(k).get()||0;if(lo.test(A)){const{projection:_}=this.visualElement;if(_&&_.layout){const P=_.layout.layoutBox[k];P&&(A=Va(P)*(parseFloat(A)/100))}}this.originPoint[k]=A}),R&&Fn.postRender(()=>R(v,y)),lw(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},c=(v,y)=>{const{dragPropagation:S,dragDirectionLock:x,onDirectionLock:R,onDrag:E}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:k}=y;if(x&&this.currentDirection===null){this.currentDirection=OQ(k),this.currentDirection!==null&&R&&R(this.currentDirection);return}this.updateAxis("x",y.point,k),this.updateAxis("y",y.point,k),this.visualElement.render(),E&&E(v,y)},f=(v,y)=>this.stop(v,y),h=()=>ti(v=>{var y;return this.getAnimationState(v)==="paused"&&((y=this.getAxisMotionValue(v).animation)===null||y===void 0?void 0:y.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new SP(t,{onSessionStart:s,onStart:u,onMove:c,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,contextWindow:DP(this.visualElement)})}stop(t,a){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:s}=a;this.startAnimation(s);const{onDragEnd:u}=this.getProps();u&&Fn.postRender(()=>u(t,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:a}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}updateAxis(t,a,i){const{drag:s}=this.getProps();if(!i||!dv(t,s,this.currentDirection))return;const u=this.getAxisMotionValue(t);let c=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(c=bQ(c,this.constraints[t],this.elastic[t])),u.set(c)}resolveConstraints(){var t;const{dragConstraints:a,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,u=this.constraints;a&&pu(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&s?this.constraints=SQ(s.layoutBox,a):this.constraints=!1,this.elastic=TQ(i),u!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&ti(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=CQ(s.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!pu(t))return!1;const i=t.current;Fs(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const u=DQ(i,s.root,this.visualElement.getTransformPagePoint());let c=xQ(s.layout.layoutBox,u);if(a){const f=a(EQ(c));this.hasMutatedConstraints=!!f,f&&(c=TP(f))}return c}startAnimation(t){const{drag:a,dragMomentum:i,dragElastic:s,dragTransition:u,dragSnapToOrigin:c,onDragTransitionEnd:f}=this.getProps(),h=this.constraints||{},m=ti(v=>{if(!dv(v,a,this.currentDirection))return;let y=h&&h[v]||{};c&&(y={min:0,max:0});const S=s?200:1e6,x=s?40:1e7,R={type:"inertia",velocity:i?t[v]:0,bounceStiffness:S,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...u,...y};return this.startAxisValueAnimation(v,R)});return Promise.all(m).then(f)}startAxisValueAnimation(t,a){const i=this.getAxisMotionValue(t);return lw(this.visualElement,t),i.start(HC(t,i,0,a,this.visualElement,!1))}stopAnimation(){ti(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ti(t=>{var a;return(a=this.getAxisMotionValue(t).animation)===null||a===void 0?void 0:a.pause()})}getAnimationState(t){var a;return(a=this.getAxisMotionValue(t).animation)===null||a===void 0?void 0:a.state}getAxisMotionValue(t){const a=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),s=i[a];return s||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){ti(a=>{const{drag:i}=this.getProps();if(!dv(a,i,this.currentDirection))return;const{projection:s}=this.visualElement,u=this.getAxisMotionValue(a);if(s&&s.layout){const{min:c,max:f}=s.layout.layoutBox[a];u.set(t[a]-Yn(c,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:a}=this.getProps(),{projection:i}=this.visualElement;if(!pu(a)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};ti(c=>{const f=this.getAxisMotionValue(c);if(f&&this.constraints!==!1){const h=f.get();s[c]=wQ({min:h,max:h},this.constraints[c])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),ti(c=>{if(!dv(c,t,null))return;const f=this.getAxisMotionValue(c),{min:h,max:m}=this.constraints[c];f.set(Yn(h,m,s[c]))})}addListeners(){if(!this.visualElement.current)return;_Q.set(this.visualElement,this);const t=this.visualElement.current,a=oh(t,"pointerdown",h=>{const{drag:m,dragListener:v=!0}=this.getProps();m&&v&&this.start(h)}),i=()=>{const{dragConstraints:h}=this.getProps();pu(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,u=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Fn.read(i);const c=Eh(window,"resize",()=>this.scalePositionWithinConstraints()),f=s.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m})=>{this.isDragging&&m&&(ti(v=>{const y=this.getAxisMotionValue(v);y&&(this.originPoint[v]+=h[v].translate,y.set(y.get()+h[v].translate))}),this.visualElement.render())});return()=>{c(),a(),u(),f&&f()}}getProps(){const t=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:u=!1,dragElastic:c=vw,dragMomentum:f=!0}=t;return{...t,drag:a,dragDirectionLock:i,dragPropagation:s,dragConstraints:u,dragElastic:c,dragMomentum:f}}}function dv(e,t,a){return(t===!0||t===e)&&(a===null||a===e)}function OQ(e,t=10){let a=null;return Math.abs(e.y)>t?a="y":Math.abs(e.x)>t&&(a="x"),a}class MQ extends Bs{constructor(t){super(t),this.removeGroupControls=Ta,this.removeListeners=Ta,this.controls=new AQ(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ta}unmount(){this.removeGroupControls(),this.removeListeners()}}const SA=e=>(t,a)=>{e&&Fn.postRender(()=>e(t,a))};class NQ extends Bs{constructor(){super(...arguments),this.removePointerDownListener=Ta}onPointerDown(t){this.session=new SP(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:DP(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:a,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:SA(t),onStart:SA(a),onMove:i,onEnd:(u,c)=>{delete this.session,s&&Fn.postRender(()=>s(u,c))}}}mount(){this.removePointerDownListener=oh(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const jv={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function xA(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const zf={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ht.test(e))e=parseFloat(e);else return e;const a=xA(e,t.target.x),i=xA(e,t.target.y);return`${a}% ${i}%`}},PQ={correct:(e,{treeScale:t,projectionDelta:a})=>{const i=e,s=Vs.parse(e);if(s.length>5)return i;const u=Vs.createTransformer(e),c=typeof s[0]!="number"?1:0,f=a.x.scale*t.x,h=a.y.scale*t.y;s[0+c]/=f,s[1+c]/=h;const m=Yn(f,h,.5);return typeof s[2+c]=="number"&&(s[2+c]/=m),typeof s[3+c]=="number"&&(s[3+c]/=m),u(s)}};class jQ extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:i,layoutId:s}=this.props,{projection:u}=t;tX(LQ),u&&(a.group&&a.group.add(u),i&&i.register&&s&&i.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),jv.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:a,visualElement:i,drag:s,isPresent:u}=this.props,c=i.projection;return c&&(c.isPresent=u,s||t.layoutDependency!==a||a===void 0?c.willUpdate():this.safeToRemove(),t.isPresent!==u&&(u?c.promote():c.relegate()||Fn.postRender(()=>{const f=c.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),bC.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:i}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function _P(e){const[t,a]=hC(),i=w.useContext(uC);return K.jsx(jQ,{...e,layoutGroup:i,switchLayoutGroup:w.useContext(bN),isPresent:t,safeToRemove:a})}const LQ={borderRadius:{...zf,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:zf,borderTopRightRadius:zf,borderBottomLeftRadius:zf,borderBottomRightRadius:zf,boxShadow:PQ};function $Q(e,t,a){const i=Jr(e)?e:Ch(e);return i.start(HC("",i,t,a)),i.animation}function zQ(e){return e instanceof SVGElement&&e.tagName!=="svg"}const FQ=(e,t)=>e.depth-t.depth;class IQ{constructor(){this.children=[],this.isDirty=!1}add(t){NC(this.children,t),this.isDirty=!0}remove(t){PC(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(FQ),this.isDirty=!1,this.children.forEach(t)}}function VQ(e,t){const a=co.now(),i=({timestamp:s})=>{const u=s-a;u>=t&&(Is(i),e(u-t))};return Fn.read(i,!0),()=>Is(i)}const AP=["TopLeft","TopRight","BottomLeft","BottomRight"],BQ=AP.length,wA=e=>typeof e=="string"?parseFloat(e):e,CA=e=>typeof e=="number"||ht.test(e);function UQ(e,t,a,i,s,u){s?(e.opacity=Yn(0,a.opacity!==void 0?a.opacity:1,HQ(i)),e.opacityExit=Yn(t.opacity!==void 0?t.opacity:1,0,WQ(i))):u&&(e.opacity=Yn(t.opacity!==void 0?t.opacity:1,a.opacity!==void 0?a.opacity:1,i));for(let c=0;c<BQ;c++){const f=`border${AP[c]}Radius`;let h=TA(t,f),m=TA(a,f);if(h===void 0&&m===void 0)continue;h||(h=0),m||(m=0),h===0||m===0||CA(h)===CA(m)?(e[f]=Math.max(Yn(wA(h),wA(m),i),0),(lo.test(m)||lo.test(h))&&(e[f]+="%")):e[f]=m}(t.rotate||a.rotate)&&(e.rotate=Yn(t.rotate||0,a.rotate||0,i))}function TA(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const HQ=OP(0,.5,XN),WQ=OP(.5,.95,Ta);function OP(e,t,a){return i=>i<e?0:i>t?1:a(Pu(e,t,i))}function EA(e,t){e.min=t.min,e.max=t.max}function Ja(e,t){EA(e.x,t.x),EA(e.y,t.y)}function RA(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function kA(e,t,a,i,s){return e-=t,e=ag(e,1/a,i),s!==void 0&&(e=ag(e,1/s,i)),e}function YQ(e,t=0,a=1,i=.5,s,u=e,c=e){if(lo.test(t)&&(t=parseFloat(t),t=Yn(c.min,c.max,t/100)-c.min),typeof t!="number")return;let f=Yn(u.min,u.max,i);e===u&&(f-=t),e.min=kA(e.min,t,a,f,s),e.max=kA(e.max,t,a,f,s)}function DA(e,t,[a,i,s],u,c){YQ(e,t[a],t[i],t[s],t.scale,u,c)}const qQ=["x","scaleX","originX"],GQ=["y","scaleY","originY"];function _A(e,t,a,i){DA(e.x,t,qQ,a?a.x:void 0,i?i.x:void 0),DA(e.y,t,GQ,a?a.y:void 0,i?i.y:void 0)}function AA(e){return e.translate===0&&e.scale===1}function MP(e){return AA(e.x)&&AA(e.y)}function OA(e,t){return e.min===t.min&&e.max===t.max}function XQ(e,t){return OA(e.x,t.x)&&OA(e.y,t.y)}function MA(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function NP(e,t){return MA(e.x,t.x)&&MA(e.y,t.y)}function NA(e){return Va(e.x)/Va(e.y)}function PA(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class KQ{constructor(){this.members=[]}add(t){NC(this.members,t),t.scheduleRender()}remove(t){if(PC(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(t){const a=this.members.findIndex(s=>t===s);if(a===0)return!1;let i;for(let s=a;s>=0;s--){const u=this.members[s];if(u.isPresent!==!1){i=u;break}}return i?(this.promote(i),!0):!1}promote(t,a){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,a&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:a,resumingFrom:i}=t;a.onExitComplete&&a.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function QQ(e,t,a){let i="";const s=e.x.translate/t.x,u=e.y.translate/t.y,c=(a==null?void 0:a.z)||0;if((s||u||c)&&(i=`translate3d(${s}px, ${u}px, ${c}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),a){const{transformPerspective:m,rotate:v,rotateX:y,rotateY:S,skewX:x,skewY:R}=a;m&&(i=`perspective(${m}px) ${i}`),v&&(i+=`rotate(${v}deg) `),y&&(i+=`rotateX(${y}deg) `),S&&(i+=`rotateY(${S}deg) `),x&&(i+=`skewX(${x}deg) `),R&&(i+=`skewY(${R}deg) `)}const f=e.x.scale*t.x,h=e.y.scale*t.y;return(f!==1||h!==1)&&(i+=`scale(${f}, ${h})`),i||"none"}const Nl={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Gf=typeof window<"u"&&window.MotionDebug!==void 0,yx=["","X","Y","Z"],ZQ={visibility:"hidden"},jA=1e3;let JQ=0;function bx(e,t,a,i){const{latestValues:s}=t;s[e]&&(a[e]=s[e],t.setStaticValue(e,0),i&&(i[e]=0))}function PP(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const a=BN(t);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:s,layoutId:u}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",Fn,!(s||u))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&PP(i)}function jP({attachResizeListener:e,defaultParent:t,measureScroll:a,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(c={},f=t==null?void 0:t()){this.id=JQ++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Gf&&(Nl.totalNodes=Nl.resolvedTargetDeltas=Nl.recalculatedProjection=0),this.nodes.forEach(nZ),this.nodes.forEach(sZ),this.nodes.forEach(lZ),this.nodes.forEach(rZ),Gf&&window.MotionDebug.record(Nl)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new IQ)}addEventListener(c,f){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new jC),this.eventHandlers.get(c).add(f)}notifyListeners(c,...f){const h=this.eventHandlers.get(c);h&&h.notify(...f)}hasListeners(c){return this.eventHandlers.has(c)}mount(c,f=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=zQ(c),this.instance=c;const{layoutId:h,layout:m,visualElement:v}=this.options;if(v&&!v.current&&v.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),f&&(m||h)&&(this.isLayoutDirty=!0),e){let y;const S=()=>this.root.updateBlockedByResize=!1;e(c,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=VQ(S,250),jv.hasAnimatedSinceResize&&(jv.hasAnimatedSinceResize=!1,this.nodes.forEach($A))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&v&&(h||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:S,hasRelativeTargetChanged:x,layout:R})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||v.getDefaultTransition()||hZ,{onLayoutAnimationStart:k,onLayoutAnimationComplete:A}=v.getProps(),_=!this.targetLayout||!NP(this.targetLayout,R)||x,P=!S&&x;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||P||S&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,P);const $={..._C(E,"layout"),onPlay:k,onComplete:A};(v.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else S||$A(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=R})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Is(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:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&PP(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const y=this.path[v];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:f,layout:h}=this.options;if(f===void 0&&!h)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(LA);return}this.isUpdating||this.nodes.forEach(iZ),this.isUpdating=!1,this.nodes.forEach(oZ),this.nodes.forEach(eZ),this.nodes.forEach(tZ),this.clearAllSnapshots();const f=co.now();zr.delta=Qo(0,1e3/60,f-zr.timestamp),zr.timestamp=f,zr.isProcessing=!0,cx.update.process(zr),cx.preRender.process(zr),cx.render.process(zr),zr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,bC.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(aZ),this.sharedNodes.forEach(uZ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Fn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Fn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(f=!1),f){const h=i(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:h,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!s)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!MP(this.projectionDelta),h=this.getTransformTemplate(),m=h?h(this.latestValues,""):void 0,v=m!==this.prevTransformTemplateValue;c&&(f||Ml(this.latestValues)||v)&&(s(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const f=this.measurePageBox();let h=this.removeElementScroll(f);return c&&(h=this.removeTransform(h)),pZ(h),{animationId:this.root.animationId,measuredBox:f,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:f}=this.options;if(!f)return rr();const h=f.measureViewportBox();if(!(((c=this.scroll)===null||c===void 0?void 0:c.wasRoot)||this.path.some(mZ))){const{scroll:v}=this.root;v&&(gu(h.x,v.offset.x),gu(h.y,v.offset.y))}return h}removeElementScroll(c){var f;const h=rr();if(Ja(h,c),!((f=this.scroll)===null||f===void 0)&&f.wasRoot)return h;for(let m=0;m<this.path.length;m++){const v=this.path[m],{scroll:y,options:S}=v;v!==this.root&&y&&S.layoutScroll&&(y.wasRoot&&Ja(h,c),gu(h.x,y.offset.x),gu(h.y,y.offset.y))}return h}applyTransform(c,f=!1){const h=rr();Ja(h,c);for(let m=0;m<this.path.length;m++){const v=this.path[m];!f&&v.options.layoutScroll&&v.scroll&&v!==v.root&&yu(h,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),Ml(v.latestValues)&&yu(h,v.latestValues)}return Ml(this.latestValues)&&yu(h,this.latestValues),h}removeTransform(c){const f=rr();Ja(f,c);for(let h=0;h<this.path.length;h++){const m=this.path[h];if(!m.instance||!Ml(m.latestValues))continue;gw(m.latestValues)&&m.updateSnapshot();const v=rr(),y=m.measurePageBox();Ja(v,y),_A(f,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,v)}return Ml(this.latestValues)&&_A(f,this.latestValues),f}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.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!==zr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var f;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(c||m&&this.isSharedProjectionDirty||this.isProjectionDirty||!((f=this.parent)===null||f===void 0)&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:S}=this.options;if(!(!this.layout||!(y||S))){if(this.resolvedRelativeTargetAt=zr.timestamp,!this.targetDelta&&!this.relativeTarget){const x=this.getClosestProjectingParent();x&&x.layout&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rr(),this.relativeTargetOrigin=rr(),lh(this.relativeTargetOrigin,this.layout.layoutBox,x.layout.layoutBox),Ja(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=rr(),this.targetWithTransforms=rr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),yQ(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ja(this.target,this.layout.layoutBox),RP(this.target,this.targetDelta)):Ja(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const x=this.getClosestProjectingParent();x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rr(),this.relativeTargetOrigin=rr(),lh(this.relativeTargetOrigin,this.target,x.target),Ja(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Gf&&Nl.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||gw(this.parent.latestValues)||EP(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var c;const f=this.getLead(),h=!!this.resumingFrom||this!==f;let m=!0;if((this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===zr.timestamp&&(m=!1),m)return;const{layout:v,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(v||y))return;Ja(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,x=this.treeScale.y;kQ(this.layoutCorrected,this.treeScale,this.path,h),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=rr());const{target:R}=f;if(!R){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(RA(this.prevProjectionDelta.x,this.projectionDelta.x),RA(this.prevProjectionDelta.y,this.projectionDelta.y)),sh(this.projectionDelta,this.layoutCorrected,R,this.latestValues),(this.treeScale.x!==S||this.treeScale.y!==x||!PA(this.projectionDelta.x,this.prevProjectionDelta.x)||!PA(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",R)),Gf&&Nl.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var f;if((f=this.options.visualElement)===null||f===void 0||f.scheduleRender(),c){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=vu(),this.projectionDelta=vu(),this.projectionDeltaWithTransform=vu()}setAnimationOrigin(c,f=!1){const h=this.snapshot,m=h?h.latestValues:{},v={...this.latestValues},y=vu();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const S=rr(),x=h?h.source:void 0,R=this.layout?this.layout.source:void 0,E=x!==R,k=this.getStack(),A=!k||k.members.length<=1,_=!!(E&&!A&&this.options.crossfade===!0&&!this.path.some(fZ));this.animationProgress=0;let P;this.mixTargetDelta=$=>{const L=$/1e3;zA(y.x,c.x,L),zA(y.y,c.y,L),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(lh(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dZ(this.relativeTarget,this.relativeTargetOrigin,S,L),P&&XQ(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=rr()),Ja(P,this.relativeTarget)),E&&(this.animationValues=v,UQ(v,m,this.latestValues,L,_,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=L},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Is(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Fn.update(()=>{jv.hasAnimatedSinceResize=!0,this.currentAnimation=$Q(0,jA,{...c,onUpdate:f=>{this.mixTargetDelta(f),c.onUpdate&&c.onUpdate(f)},onComplete:()=>{c.onComplete&&c.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 c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(jA),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:f,target:h,layout:m,latestValues:v}=c;if(!(!f||!h||!m)){if(this!==c&&this.layout&&m&&LP(this.options.animationType,this.layout.layoutBox,m.layoutBox)){h=this.target||rr();const y=Va(this.layout.layoutBox.x);h.x.min=c.target.x.min,h.x.max=h.x.min+y;const S=Va(this.layout.layoutBox.y);h.y.min=c.target.y.min,h.y.max=h.y.min+S}Ja(f,h),yu(f,v),sh(this.projectionDeltaWithTransform,this.layoutCorrected,f,v)}}registerSharedNode(c,f){this.sharedNodes.has(c)||this.sharedNodes.set(c,new KQ),this.sharedNodes.get(c).add(f);const m=f.options.initialPromotionConfig;f.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(f):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var c;const{layoutId:f}=this.options;return f?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:f}=this.options;return f?(c=this.getStack())===null||c===void 0?void 0:c.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:f,preserveFollowOpacity:h}={}){const m=this.getStack();m&&m.promote(this,h),c&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let f=!1;const{latestValues:h}=c;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(f=!0),!f)return;const m={};h.z&&bx("z",c,m,this.animationValues);for(let v=0;v<yx.length;v++)bx(`rotate${yx[v]}`,c,m,this.animationValues),bx(`skew${yx[v]}`,c,m,this.animationValues);c.render();for(const v in m)c.setStaticValue(v,m[v]),this.animationValues&&(this.animationValues[v]=m[v]);c.scheduleRender()}getProjectionStyles(c){var f,h;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ZQ;const m={visibility:""},v=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,m.opacity="",m.pointerEvents=Nv(c==null?void 0:c.pointerEvents)||"",m.transform=v?v(this.latestValues,""):"none",m;const y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){const E={};return this.options.layoutId&&(E.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,E.pointerEvents=Nv(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!Ml(this.latestValues)&&(E.transform=v?v({},""):"none",this.hasProjected=!1),E}const S=y.animationValues||y.latestValues;this.applyTransformsToTarget(),m.transform=QQ(this.projectionDeltaWithTransform,this.treeScale,S),v&&(m.transform=v(S,m.transform));const{x,y:R}=this.projectionDelta;m.transformOrigin=`${x.origin*100}% ${R.origin*100}% 0`,y.animationValues?m.opacity=y===this?(h=(f=S.opacity)!==null&&f!==void 0?f:this.latestValues.opacity)!==null&&h!==void 0?h:1:this.preserveOpacity?this.latestValues.opacity:S.opacityExit:m.opacity=y===this?S.opacity!==void 0?S.opacity:"":S.opacityExit!==void 0?S.opacityExit:0;for(const E in Jv){if(S[E]===void 0)continue;const{correct:k,applyTo:A}=Jv[E],_=m.transform==="none"?S[E]:k(S[E],y);if(A){const P=A.length;for(let $=0;$<P;$++)m[A[$]]=_}else m[E]=_}return this.options.layoutId&&(m.pointerEvents=y===this?Nv(c==null?void 0:c.pointerEvents)||"":"none"),m}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var f;return(f=c.currentAnimation)===null||f===void 0?void 0:f.stop()}),this.root.nodes.forEach(LA),this.root.sharedNodes.clear()}}}function eZ(e){e.updateLayout()}function tZ(e){var t;const a=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=e.layout,{animationType:u}=e.options,c=a.source!==e.layout.source;u==="size"?ti(y=>{const S=c?a.measuredBox[y]:a.layoutBox[y],x=Va(S);S.min=i[y].min,S.max=S.min+x}):LP(u,a.layoutBox,i)&&ti(y=>{const S=c?a.measuredBox[y]:a.layoutBox[y],x=Va(i[y]);S.max=S.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+x)});const f=vu();sh(f,i,a.layoutBox);const h=vu();c?sh(h,e.applyTransform(s,!0),a.measuredBox):sh(h,i,a.layoutBox);const m=!MP(f);let v=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:S,layout:x}=y;if(S&&x){const R=rr();lh(R,a.layoutBox,S.layoutBox);const E=rr();lh(E,i,x.layoutBox),NP(R,E)||(v=!0),y.options.layoutRoot&&(e.relativeTarget=E,e.relativeTargetOrigin=R,e.relativeParent=y)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:a,delta:h,layoutDelta:f,hasLayoutChanged:m,hasRelativeTargetChanged:v})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function nZ(e){Gf&&Nl.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rZ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function aZ(e){e.clearSnapshot()}function LA(e){e.clearMeasurements()}function iZ(e){e.isLayoutDirty=!1}function oZ(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function $A(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function sZ(e){e.resolveTargetDelta()}function lZ(e){e.calcProjection()}function cZ(e){e.resetSkewAndRotation()}function uZ(e){e.removeLeadSnapshot()}function zA(e,t,a){e.translate=Yn(t.translate,0,a),e.scale=Yn(t.scale,1,a),e.origin=t.origin,e.originPoint=t.originPoint}function FA(e,t,a,i){e.min=Yn(t.min,a.min,i),e.max=Yn(t.max,a.max,i)}function dZ(e,t,a,i){FA(e.x,t.x,a.x,i),FA(e.y,t.y,a.y,i)}function fZ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const hZ={duration:.45,ease:[.4,0,.1,1]},IA=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),VA=IA("applewebkit/")&&!IA("chrome/")?Math.round:Ta;function BA(e){e.min=VA(e.min),e.max=VA(e.max)}function pZ(e){BA(e.x),BA(e.y)}function LP(e,t,a){return e==="position"||e==="preserve-aspect"&&!gQ(NA(t),NA(a),.2)}function mZ(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const vZ=jP({attachResizeListener:(e,t)=>Eh(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Sx={current:void 0},$P=jP({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Sx.current){const e=new vZ({});e.mount(window),e.setOptions({layoutScroll:!0}),Sx.current=e}return Sx.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),gZ={pan:{Feature:NQ},drag:{Feature:MQ,ProjectionNode:$P,MeasureLayout:_P}};function UA(e,t,a){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",a==="Start");const s="onHover"+a,u=i[s];u&&Fn.postRender(()=>u(t,Hh(t)))}class yZ extends Bs{mount(){const{current:t}=this.node;t&&(this.unmount=gX(t,a=>(UA(this.node,a,"Start"),i=>UA(this.node,i,"End"))))}unmount(){}}class bZ extends Bs{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Uh(Eh(this.node.current,"focus",()=>this.onFocus()),Eh(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function HA(e,t,a){const{props:i}=e;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",a==="Start");const s="onTap"+(a==="End"?"":a),u=i[s];u&&Fn.postRender(()=>u(t,Hh(t)))}class SZ extends Bs{mount(){const{current:t}=this.node;t&&(this.unmount=xX(t,a=>(HA(this.node,a,"Start"),(i,{success:s})=>HA(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const bw=new WeakMap,xx=new WeakMap,xZ=e=>{const t=bw.get(e.target);t&&t(e)},wZ=e=>{e.forEach(xZ)};function CZ({root:e,...t}){const a=e||document;xx.has(a)||xx.set(a,{});const i=xx.get(a),s=JSON.stringify(t);return i[s]||(i[s]=new IntersectionObserver(wZ,{root:e,...t})),i[s]}function TZ(e,t,a){const i=CZ(t);return bw.set(e,a),i.observe(e),()=>{bw.delete(e),i.unobserve(e)}}const EZ={some:0,all:1};class RZ extends Bs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:a,margin:i,amount:s="some",once:u}=t,c={root:a?a.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:EZ[s]},f=h=>{const{isIntersecting:m}=h;if(this.isInView===m||(this.isInView=m,u&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:v,onViewportLeave:y}=this.node.getProps(),S=m?v:y;S&&S(h)};return TZ(this.node.current,c,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:a}=this.node;["amount","margin","root"].some(kZ(t,a))&&this.startObserver()}unmount(){}}function kZ({viewport:e={}},{viewport:t={}}={}){return a=>e[a]!==t[a]}const DZ={inView:{Feature:RZ},tap:{Feature:SZ},focus:{Feature:bZ},hover:{Feature:yZ}},_Z={layout:{ProjectionNode:$P,MeasureLayout:_P}},Sw={current:null},zP={current:!1};function AZ(){if(zP.current=!0,!!pC)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Sw.current=e.matches;e.addListener(t),t()}else Sw.current=!1}const OZ=[...cP,Zr,Vs],MZ=e=>OZ.find(lP(e)),WA=new WeakMap;function NZ(e,t,a){for(const i in t){const s=t[i],u=a[i];if(Jr(s))e.addValue(i,s),Eg(s.version==="11.18.2",`Attempting to mix Motion versions ${s.version} with 11.18.2 may not work as expected.`);else if(Jr(u))e.addValue(i,Ch(s,{owner:e}));else if(u!==s)if(e.hasValue(i)){const c=e.getValue(i);c.liveStyle===!0?c.jump(s):c.hasAnimated||c.set(s)}else{const c=e.getStaticValue(i);e.addValue(i,Ch(c!==void 0?c:s,{owner:e}))}}for(const i in a)t[i]===void 0&&e.removeValue(i);return t}const YA=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class PZ{scrapeMotionValuesFromProps(t,a,i){return{}}constructor({parent:t,props:a,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:u,visualState:c},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=VC,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const x=co.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,Fn.render(this.render,!1,!0))};const{latestValues:h,renderState:m,onUpdate:v}=c;this.onUpdate=v,this.latestValues=h,this.baseTarget={...h},this.initialValues=a.initial?{...h}:{},this.renderState=m,this.parent=t,this.props=a,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=f,this.blockInitialAnimation=!!u,this.isControllingVariants=Dg(a),this.isVariantNode=gN(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:y,...S}=this.scrapeMotionValuesFromProps(a,{},this);for(const x in S){const R=S[x];h[x]!==void 0&&Jr(R)&&R.set(h[x],!1)}}mount(t){this.current=t,WA.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,i)=>this.bindToMotionValue(i,a)),zP.current||AZ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Sw.current,Eg(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){WA.delete(this.current),this.projection&&this.projection.unmount(),Is(this.notifyUpdate),Is(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const a=this.features[t];a&&(a.unmount(),a.isMounted=!1)}this.current=null}bindToMotionValue(t,a){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const i=Zl.has(t),s=a.on("change",f=>{this.latestValues[t]=f,this.props.onUpdate&&Fn.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),u=a.on("renderRequest",this.scheduleRender);let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,t,a)),this.valueSubscriptions.set(t,()=>{s(),u(),c&&c(),a.owner&&a.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ju){const a=ju[t];if(!a)continue;const{isEnabled:i,Feature:s}=a;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){const u=this.features[t];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,a){this.latestValues[t]=a}update(t,a){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let i=0;i<YA.length;i++){const s=YA[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const u="on"+s,c=t[u];c&&(this.propEventSubscriptions[s]=this.on(s,c))}this.prevMotionValues=NZ(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(t),()=>a.variantChildren.delete(t)}addValue(t,a){const i=this.values.get(t);a!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,a),this.values.set(t,a),this.latestValues[t]=a.get())}removeValue(t){this.values.delete(t);const a=this.valueSubscriptions.get(t);a&&(a(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,a){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&a!==void 0&&(i=Ch(a===null?void 0:a,{owner:this}),this.addValue(t,i)),i}readValue(t,a){var i;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(i=this.getBaseTargetFromProps(this.props,t))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(oP(s)||QN(s))?s=parseFloat(s):!MZ(s)&&Vs.test(a)&&(s=rP(t,a)),this.setBaseTarget(t,Jr(s)?s.get():s)),Jr(s)?s.get():s}setBaseTarget(t,a){this.baseTarget[t]=a}getBaseTarget(t){var a;const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const c=xC(this.props,i,(a=this.presenceContext)===null||a===void 0?void 0:a.custom);c&&(s=c[t])}if(i&&s!==void 0)return s;const u=this.getBaseTargetFromProps(this.props,t);return u!==void 0&&!Jr(u)?u:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,a){return this.events[t]||(this.events[t]=new jC),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}}class FP extends PZ{constructor(){super(...arguments),this.KeyframeResolver=uP}sortInstanceNodePosition(t,a){return t.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(t,a){return t.style?t.style[a]:void 0}removeValueFromRenderState(t,{vars:a,style:i}){delete a[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Jr(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}function jZ(e){return window.getComputedStyle(e)}class LZ extends FP{constructor(){super(...arguments),this.type="html",this.renderInstance=RN}readValueFromInstance(t,a){if(Zl.has(a)){const i=IC(a);return i&&i.default||0}else{const i=jZ(t),s=(CN(a)?i.getPropertyValue(a):i[a])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:a}){return kP(t,a)}build(t,a,i){TC(t,a,i.transformTemplate)}scrapeMotionValuesFromProps(t,a,i){return DC(t,a,i)}}class $Z extends FP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rr}getBaseTargetFromProps(t,a){return t[a]}readValueFromInstance(t,a){if(Zl.has(a)){const i=IC(a);return i&&i.default||0}return a=kN.has(a)?a:yC(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,i){return AN(t,a,i)}build(t,a,i){EC(t,a,this.isSVGTag,i.transformTemplate)}renderInstance(t,a,i,s){DN(t,a,i,s)}mount(t){this.isSVGTag=kC(t.tagName),super.mount(t)}}const zZ=(e,t)=>SC(e)?new $Z(t):new LZ(t,{allowProjection:e!==w.Fragment}),FZ=uX({...lQ,...DZ,...gZ,..._Z},zZ),Us=EG(FZ),IZ=(e,t)=>e.find(a=>a.id===t);function qA(e,t){const a=IP(e,t),i=a?e[a].findIndex(s=>s.id===t):-1;return{position:a,index:i}}function IP(e,t){for(const[a,i]of Object.entries(e))if(IZ(i,t))return a}function VZ(e){const t=e.includes("right"),a=e.includes("left");let i="center";return t&&(i="flex-end"),a&&(i="flex-start"),{display:"flex",flexDirection:"column",alignItems:i}}function BZ(e){const a=e==="top"||e==="bottom"?"0 auto":void 0,i=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,s=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,u=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",c=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:a,top:i,bottom:s,right:u,left:c}}var UZ=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,HZ=QM(function(e){return UZ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),WZ=!0,YZ=HZ,qZ=function(t){return t!=="theme"},GA=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?YZ:qZ},XA=function(t,a,i){var s;if(a){var u=a.shouldForwardProp;s=t.__emotion_forwardProp&&u?function(c){return t.__emotion_forwardProp(c)&&u(c)}:u}return typeof s!="function"&&i&&(s=t.__emotion_forwardProp),s},KA=`You have illegal escape sequence in your template literal, most likely inside content's property value.
547
- Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
548
- You can read more about this here:
549
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,GZ=function(t){var a=t.cache,i=t.serialized,s=t.isStringTag;return xg(a,i,s),oC(function(){return wg(a,i,s)}),null},XZ=function e(t,a){if(t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
550
- You may have forgotten to import it.`);var i=t.__emotion_real===t,s=i&&t.__emotion_base||t,u,c;a!==void 0&&(u=a.label,c=a.target);var f=XA(t,a,i),h=f||GA(s),m=!h("as");return function(){var v=arguments,y=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(u!==void 0&&y.push("label:"+u+";"),v[0]==null||v[0].raw===void 0)y.push.apply(y,v);else{var S=v[0];S[0]===void 0&&console.error(KA),y.push(S[0]);for(var x=v.length,R=1;R<x;R++)S[R]===void 0&&console.error(KA),y.push(v[R],S[R])}var E=Tg(function(k,A,_){var P=m&&k.as||s,$="",L=[],U=k;if(k.theme==null){U={};for(var F in k)U[F]=k[F];U.theme=w.useContext(zs)}typeof k.className=="string"?$=aC(A.registered,L,k.className):k.className!=null&&($=k.className+" ");var Q=Nu(y.concat(L),A.registered,U);$+=A.key+"-"+Q.name,c!==void 0&&($+=" "+c);var se=m&&f===void 0?GA(P):h,ae={};for(var ue in k)m&&ue==="as"||se(ue)&&(ae[ue]=k[ue]);return ae.className=$,_&&(ae.ref=_),w.createElement(w.Fragment,null,w.createElement(GZ,{cache:A,serialized:Q,isStringTag:typeof P=="string"}),w.createElement(P,ae))});return E.displayName=u!==void 0?u:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",E.defaultProps=t.defaultProps,E.__emotion_real=E,E.__emotion_base=s,E.__emotion_styles=y,E.__emotion_forwardProp=f,Object.defineProperty(E,"toString",{value:function(){return c===void 0&&WZ?"NO_COMPONENT_SELECTOR":"."+c}}),E.withComponent=function(k,A){var _=e(k,Yl({},a,A,{shouldForwardProp:XA(E,A,!0)}));return _.apply(void 0,y)},E}},KZ=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],xw=XZ.bind(null);KZ.forEach(function(e){xw[e]=xw(e)});const QZ=new Set([...Z4,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),ZZ=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function JZ(e){return(ZZ.has(e)||!QZ.has(e))&&e[0]!=="_"}const eJ=i4(xw),tJ=({baseStyle:e})=>t=>{const{theme:a,css:i,__css:s,sx:u,...c}=t,[f]=d4(c,e6),h=ai(e,t),m=H3({},s,h,xM(f),u),v=_M(m)(t.theme);return i?[v,i]:v};function wx(e,t){const{baseStyle:a,...i}=t??{};i.shouldForwardProp||(i.shouldForwardProp=JZ);const s=tJ({baseStyle:a}),u=eJ(e,i)(s);return w.forwardRef(function(h,m){const{children:v,...y}=h,{colorMode:S,forced:x}=Fh(),R=x?S:void 0;return w.createElement(u,{ref:m,"data-theme":R,...y},v)})}function nJ(){const e=new Map;return new Proxy(wx,{apply(t,a,i){return wx(...i)},get(t,a){return e.has(a)||e.set(a,wx(a)),e.get(a)}})}const it=nJ(),rJ={initial:e=>{const{position:t}=e,a=["top","bottom"].includes(t)?"y":"x";let i=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(i=1),{opacity:0,[a]:i*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},VP=w.memo(e=>{const{id:t,message:a,onCloseComplete:i,onRequestRemove:s,requestClose:u=!1,position:c="bottom",duration:f=5e3,containerStyle:h,motionVariants:m=rJ,toastSpacing:v="0.5rem"}=e,[y,S]=w.useState(f),x=vG();GD(()=>{x||i==null||i()},[x]),GD(()=>{S(f)},[f]);const R=()=>S(null),E=()=>S(f),k=()=>{x&&s()};w.useEffect(()=>{x&&u&&s()},[x,u,s]),g4(k,y);const A=w.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:v,...h}),[h,v]),_=w.useMemo(()=>VZ(c),[c]);return K.jsx(Us.div,{layout:!0,className:"chakra-toast",variants:m,initial:"initial",animate:"animate",exit:"exit",onHoverStart:R,onHoverEnd:E,custom:{position:c},style:_,children:K.jsx(it.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:A,children:ai(a,{id:t,onClose:k})})})});VP.displayName="ToastComponent";function qt(e){return w.forwardRef(e)}var aJ=typeof Element<"u",iJ=typeof Map=="function",oJ=typeof Set=="function",sJ=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Lv(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var a,i,s;if(Array.isArray(e)){if(a=e.length,a!=t.length)return!1;for(i=a;i--!==0;)if(!Lv(e[i],t[i]))return!1;return!0}var u;if(iJ&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(u=e.entries();!(i=u.next()).done;)if(!t.has(i.value[0]))return!1;for(u=e.entries();!(i=u.next()).done;)if(!Lv(i.value[1],t.get(i.value[0])))return!1;return!0}if(oJ&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(u=e.entries();!(i=u.next()).done;)if(!t.has(i.value[0]))return!1;return!0}if(sJ&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(a=e.length,a!=t.length)return!1;for(i=a;i--!==0;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),a=s.length,a!==Object.keys(t).length)return!1;for(i=a;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[i]))return!1;if(aJ&&e instanceof Element)return!1;for(i=a;i--!==0;)if(!((s[i]==="_owner"||s[i]==="__v"||s[i]==="__o")&&e.$$typeof)&&!Lv(e[s[i]],t[s[i]]))return!1;return!0}return e!==e&&t!==t}var lJ=function(t,a){try{return Lv(t,a)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}};const cJ=pg(lJ);function WC(){const e=w.useContext(zs);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function BP(){const e=Fh(),t=WC();return{...e,theme:t}}function uJ(e,t,a){if(t==null)return t;const i=s=>{var u,c;return(c=(u=e.__breakpoints)==null?void 0:u.asArray)==null?void 0:c[s]};return i(t)??i(a)??a}function dJ(e,t,a){if(t==null)return t;const i=s=>{var u,c;return(c=(u=e.__cssMap)==null?void 0:u[s])==null?void 0:c.value};return i(t)??i(a)??a}function fJ(e,t,a){const i=WC();return hJ(e,t,a)(i)}function hJ(e,t,a){const i=Array.isArray(t)?t:[t],s=Array.isArray(a)?a:[a];return u=>{const c=s.filter(Boolean),f=i.map((h,m)=>{if(e==="breakpoints")return uJ(u,h,c[m]??h);const v=`${e}.${h}`;return dJ(u,v,c[m]??h)});return Array.isArray(t)?f:f[0]}}function pJ(e){return Object.fromEntries(Object.entries(e).filter(([t,a])=>a!==void 0&&t!=="children"&&!w.isValidElement(a)))}function UP(e,t={}){const{styleConfig:a,...i}=t,{theme:s,colorMode:u}=BP(),c=e?wM(s,`components.${e}`):void 0,f=a||c,h=ii({theme:s,colorMode:u},(f==null?void 0:f.defaultProps)??{},pJ(i),(v,y)=>v?void 0:y),m=w.useRef({});if(f){const y=d6(f)(h);cJ(m.current,y)||(m.current=y)}return m.current}function ci(e,t={}){return UP(e,t)}function Yu(e,t={}){return UP(e,t)}const QA={path:K.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[K.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),K.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),K.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},qu=qt((e,t)=>{const{as:a,viewBox:i,color:s="currentColor",focusable:u=!1,children:c,className:f,__css:h,...m}=e,v=Yt("chakra-icon",f),y=ci("Icon",e),S={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:s,...h,...y},x={ref:t,focusable:u,className:v,__css:S},R=i??QA.viewBox;if(a&&typeof a!="string")return K.jsx(it.svg,{as:a,...x,...m});const E=c??QA.path;return K.jsx(it.svg,{verticalAlign:"middle",viewBox:R,...x,...m,children:E})});qu.displayName="Icon";function mJ(e){return K.jsx(qu,{viewBox:"0 0 24 24",...e,children:K.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function vJ(e){return K.jsx(qu,{viewBox:"0 0 24 24",...e,children:K.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function ZA(e){return K.jsx(qu,{viewBox:"0 0 24 24",...e,children:K.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const gJ=lC({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Wh=qt((e,t)=>{const a=ci("Spinner",e),{label:i="Loading...",thickness:s="2px",speed:u="0.45s",emptyColor:c="transparent",className:f,...h}=ea(e),m=Yt("chakra-spinner",f),v={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:s,borderBottomColor:c,borderLeftColor:c,animation:`${gJ} ${u} linear infinite`,...a};return K.jsx(it.div,{ref:t,__css:v,className:m,...h,children:i&&K.jsx(it.span,{srOnly:!0,children:i})})});Wh.displayName="Spinner";const[yJ,YC]=ha({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[bJ,qC]=ha({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),HP={info:{icon:vJ,colorScheme:"blue"},warning:{icon:ZA,colorScheme:"orange"},success:{icon:mJ,colorScheme:"green"},error:{icon:ZA,colorScheme:"red"},loading:{icon:Wh,colorScheme:"blue"}};function SJ(e){return HP[e].colorScheme}function xJ(e){return HP[e].icon}const WP=qt(function(t,a){const{status:i="info",addRole:s=!0,...u}=ea(t),c=t.colorScheme??SJ(i),f=Yu("Alert",{...t,colorScheme:c}),h={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...f.container};return K.jsx(yJ,{value:{status:i},children:K.jsx(bJ,{value:f,children:K.jsx(it.div,{"data-status":i,role:s?"alert":void 0,ref:a,...u,className:Yt("chakra-alert",t.className),__css:h})})})});WP.displayName="Alert";function YP(e){const{status:t}=YC(),a=xJ(t),i=qC(),s=t==="loading"?i.spinner:i.icon;return K.jsx(it.span,{display:"inherit","data-status":t,...e,className:Yt("chakra-alert__icon",e.className),__css:s,children:e.children||K.jsx(a,{h:"100%",w:"100%"})})}YP.displayName="AlertIcon";const qP=qt(function(t,a){const i=qC(),{status:s}=YC();return K.jsx(it.div,{ref:a,"data-status":s,...t,className:Yt("chakra-alert__title",t.className),__css:i.title})});qP.displayName="AlertTitle";const GP=qt(function(t,a){const{status:i}=YC(),s=qC(),u={display:"inline",...s.description};return K.jsx(it.div,{ref:a,"data-status":i,...t,className:Yt("chakra-alert__desc",t.className),__css:u})});GP.displayName="AlertDescription";function wJ(e){return K.jsx(qu,{focusable:"false","aria-hidden":!0,...e,children:K.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}const GC=qt(function(t,a){const i=ci("CloseButton",t),{children:s,isDisabled:u,__css:c,...f}=ea(t),h={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return K.jsx(it.button,{type:"button","aria-label":"Close",ref:a,disabled:u,__css:{...h,...i,...c},...f,children:s||K.jsx(wJ,{width:"1em",height:"1em"})})});GC.displayName="CloseButton";const CJ=e=>{const{status:t,variant:a="solid",id:i,title:s,isClosable:u,onClose:c,description:f,colorScheme:h,icon:m}=e,v=i?{root:`toast-${i}`,title:`toast-${i}-title`,description:`toast-${i}-description`}:void 0;return K.jsxs(WP,{addRole:!1,status:t,variant:a,id:v==null?void 0:v.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:h,children:[K.jsx(YP,{children:m}),K.jsxs(it.div,{flex:"1",maxWidth:"100%",children:[s&&K.jsx(qP,{id:v==null?void 0:v.title,children:s}),f&&K.jsx(GP,{id:v==null?void 0:v.description,display:"block",children:f})]}),u&&K.jsx(GC,{size:"sm",onClick:c,position:"absolute",insetEnd:1,top:1})]})};function XP(e={}){const{render:t,toastComponent:a=CJ}=e;return s=>typeof t=="function"?t({...s,...e}):K.jsx(a,{...s,...e})}const TJ={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},ro=EJ(TJ);function EJ(e){let t=e;const a=new Set,i=s=>{t=s(t),a.forEach(u=>u())};return{getState:()=>t,subscribe:s=>(a.add(s),()=>{i(()=>e),a.delete(s)}),removeToast:(s,u)=>{i(c=>({...c,[u]:c[u].filter(f=>f.id!=s)}))},notify:(s,u)=>{const c=RJ(s,u),{position:f,id:h}=c;return i(m=>{const y=f.includes("top")?[c,...m[f]??[]]:[...m[f]??[],c];return{...m,[f]:y}}),h},update:(s,u)=>{s&&i(c=>{const f={...c},{position:h,index:m}=qA(f,s);return h&&m!==-1&&(f[h][m]={...f[h][m],...u,message:XP(u)}),f})},closeAll:({positions:s}={})=>{i(u=>(s??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((h,m)=>(h[m]=u[m].map(v=>({...v,requestClose:!0})),h),{...u}))},close:s=>{i(u=>{const c=IP(u,s);return c?{...u,[c]:u[c].map(f=>f.id==s?{...f,requestClose:!0}:f)}:u})},isActive:s=>!!qA(ro.getState(),s).position}}let JA=0;function RJ(e,t={}){JA+=1;const a=t.id??JA,i=t.position??"bottom";return{id:a,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>ro.removeToast(String(a),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[KP,kJ]=ha({strict:!1,name:"PortalContext"}),XC="chakra-portal",DJ=".chakra-portal",_J=e=>K.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),AJ=e=>{const{appendToParentPortal:t,children:a}=e,[i,s]=w.useState(null),u=w.useRef(null),[,c]=w.useState({});w.useEffect(()=>c({}),[]);const f=kJ(),h=uG();Hx(()=>{if(!i)return;const v=i.ownerDocument,y=t?f??v.body:v.body;if(!y)return;u.current=v.createElement("div"),u.current.className=XC,y.appendChild(u.current),c({});const S=u.current;return()=>{y.contains(S)&&y.removeChild(S)}},[i]);const m=h!=null&&h.zIndex?K.jsx(_J,{zIndex:h==null?void 0:h.zIndex,children:a}):a;return u.current?$s.createPortal(K.jsx(KP,{value:u.current,children:m}),u.current):K.jsx("span",{ref:v=>{v&&s(v)}})},OJ=e=>{const{children:t,containerRef:a,appendToParentPortal:i}=e,s=a.current,u=s??(typeof window<"u"?document.body:void 0),c=w.useMemo(()=>{const h=s==null?void 0:s.ownerDocument.createElement("div");return h&&(h.className=XC),h},[s]),[,f]=w.useState({});return Hx(()=>f({}),[]),Hx(()=>{if(!(!c||!u))return u.appendChild(c),()=>{u.removeChild(c)}},[c,u]),u&&c?$s.createPortal(K.jsx(KP,{value:i?c:null,children:t}),c):null};function Gu(e){const t={appendToParentPortal:!0,...e},{containerRef:a,...i}=t;return a?K.jsx(OJ,{containerRef:a,...i}):K.jsx(AJ,{...i})}Gu.className=XC;Gu.selector=DJ;Gu.displayName="Portal";const[MJ,NJ]=ha({name:"ToastOptionsContext",strict:!1}),PJ=e=>{const t=w.useSyncExternalStore(ro.subscribe,ro.getState,ro.getState),{motionVariants:a,component:i=VP,portalProps:s,animatePresenceProps:u}=e,f=Object.keys(t).map(h=>{const m=t[h];return K.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${h}`,id:`chakra-toast-manager-${h}`,style:BZ(h),children:K.jsx(Ql,{...u,initial:!1,children:m.map(v=>K.jsx(i,{motionVariants:a,...v},v.id))})},h)});return K.jsx(Gu,{...s,children:f})},jJ=e=>function({children:a,theme:i=e,toastOptions:s,...u}){return K.jsxs(dG,{theme:i,...u,children:[K.jsx(MJ,{value:s==null?void 0:s.defaultOptions,children:a}),K.jsx(PJ,{...s})]})},LJ=jJ(HM);function eO(e){return e.sort((t,a)=>{const i=t.compareDocumentPosition(a);if(i&Node.DOCUMENT_POSITION_FOLLOWING||i&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(i&Node.DOCUMENT_POSITION_PRECEDING||i&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(i&Node.DOCUMENT_POSITION_DISCONNECTED||i&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}const $J=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function tO(e,t,a){let i=e+1;return a&&i>=t&&(i=0),i}function nO(e,t,a){let i=e-1;return a&&i<0&&(i=t),i}const Cx=typeof window<"u"?w.useLayoutEffect:w.useEffect,rO=e=>e;var zJ=Object.defineProperty,FJ=(e,t,a)=>t in e?zJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Zn=(e,t,a)=>(FJ(e,typeof t!="symbol"?t+"":t,a),a);class IJ{constructor(){Zn(this,"descendants",new Map),Zn(this,"register",t=>{if(t!=null)return $J(t)?this.registerNode(t):a=>{this.registerNode(a,t)}}),Zn(this,"unregister",t=>{this.descendants.delete(t);const a=eO(Array.from(this.descendants.keys()));this.assignIndex(a)}),Zn(this,"destroy",()=>{this.descendants.clear()}),Zn(this,"assignIndex",t=>{this.descendants.forEach(a=>{const i=t.indexOf(a.node);a.index=i,a.node.dataset.index=a.index.toString()})}),Zn(this,"count",()=>this.descendants.size),Zn(this,"enabledCount",()=>this.enabledValues().length),Zn(this,"values",()=>Array.from(this.descendants.values()).sort((a,i)=>a.index-i.index)),Zn(this,"enabledValues",()=>this.values().filter(t=>!t.disabled)),Zn(this,"item",t=>{if(this.count()!==0)return this.values()[t]}),Zn(this,"enabledItem",t=>{if(this.enabledCount()!==0)return this.enabledValues()[t]}),Zn(this,"first",()=>this.item(0)),Zn(this,"firstEnabled",()=>this.enabledItem(0)),Zn(this,"last",()=>this.item(this.descendants.size-1)),Zn(this,"lastEnabled",()=>{const t=this.enabledValues().length-1;return this.enabledItem(t)}),Zn(this,"indexOf",t=>{var a;return t?((a=this.descendants.get(t))==null?void 0:a.index)??-1:-1}),Zn(this,"enabledIndexOf",t=>t==null?-1:this.enabledValues().findIndex(a=>a.node.isSameNode(t))),Zn(this,"next",(t,a=!0)=>{const i=tO(t,this.count(),a);return this.item(i)}),Zn(this,"nextEnabled",(t,a=!0)=>{const i=this.item(t);if(!i)return;const s=this.enabledIndexOf(i.node),u=tO(s,this.enabledCount(),a);return this.enabledItem(u)}),Zn(this,"prev",(t,a=!0)=>{const i=nO(t,this.count()-1,a);return this.item(i)}),Zn(this,"prevEnabled",(t,a=!0)=>{const i=this.item(t);if(!i)return;const s=this.enabledIndexOf(i.node),u=nO(s,this.enabledCount()-1,a);return this.enabledItem(u)}),Zn(this,"registerNode",(t,a)=>{if(!t||this.descendants.has(t))return;const i=Array.from(this.descendants.keys()).concat(t),s=eO(i);a!=null&&a.disabled&&(a.disabled=!!a.disabled);const u={node:t,index:-1,...a};this.descendants.set(t,u),this.assignIndex(s)})}}function VJ(){const[e,t]=ha({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[e,t,()=>{const s=w.useRef(new IJ);return Cx(()=>()=>s.current.destroy()),s.current},s=>{const u=t(),[c,f]=w.useState(-1),h=w.useRef(null);Cx(()=>()=>{h.current&&u.unregister(h.current)},[]),Cx(()=>{if(!h.current)return;const v=Number(h.current.dataset.index);c!=v&&!Number.isNaN(v)&&f(v)});const m=rO(s?u.register(s):u.register);return{descendants:u,index:c,enabledIndex:u.enabledIndexOf(h.current),register:fo(m,h)}}]}const[BJ,Og]=ha({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:"<Accordion />"}),[UJ,KC]=ha({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItem />"}),[HJ,Doe,WJ,YJ]=VJ();function qJ(e){const{onChange:t,defaultIndex:a,index:i,allowMultiple:s,allowToggle:u,...c}=e;KJ(e),QJ(e);const f=WJ(),[h,m]=w.useState(-1);w.useEffect(()=>()=>{m(-1)},[]);const[v,y]=h4({value:i,defaultValue(){return s?a??[]:a??-1},onChange:t});return{index:v,setIndex:y,htmlProps:c,getAccordionItemProps:x=>{let R=!1;return x!==null&&(R=Array.isArray(v)?v.includes(x):v===x),{isOpen:R,onChange:k=>{if(x!==null)if(s&&Array.isArray(v)){const A=k?v.concat(x):v.filter(_=>_!==x);y(A)}else k?y(x):u&&y(-1)}}},focusedIndex:h,setFocusedIndex:m,descendants:f}}const[GJ,QC]=ha({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function XJ(e){const{isDisabled:t,isFocusable:a,id:i,...s}=e,{getAccordionItemProps:u,setFocusedIndex:c}=QC(),f=w.useRef(null),h=w.useId(),m=i??h,v=`accordion-button-${m}`,y=`accordion-panel-${m}`;ZJ(e);const{register:S,index:x,descendants:R}=YJ({disabled:t&&!a}),{isOpen:E,onChange:k}=u(x===-1?null:x);JJ({isOpen:E,isDisabled:t});const A=()=>{k==null||k(!0)},_=()=>{k==null||k(!1)},P=w.useCallback(()=>{k==null||k(!E),c(x)},[x,c,E,k]),$=w.useCallback(Q=>{const ae={ArrowDown:()=>{const ue=R.nextEnabled(x);ue==null||ue.node.focus()},ArrowUp:()=>{const ue=R.prevEnabled(x);ue==null||ue.node.focus()},Home:()=>{const ue=R.firstEnabled();ue==null||ue.node.focus()},End:()=>{const ue=R.lastEnabled();ue==null||ue.node.focus()}}[Q.key];ae&&(Q.preventDefault(),ae(Q))},[R,x]),L=w.useCallback(()=>{c(x)},[c,x]),U=w.useCallback(function(se={},ae=null){return{...se,type:"button",ref:fo(S,f,ae),id:v,disabled:!!t,"aria-expanded":!!E,"aria-controls":y,onClick:ca(se.onClick,P),onFocus:ca(se.onFocus,L),onKeyDown:ca(se.onKeyDown,$)}},[v,t,E,P,L,$,y,S]),F=w.useCallback(function(se={},ae=null){return{...se,ref:ae,role:"region",id:y,"aria-labelledby":v,hidden:!E}},[v,E,y]);return{isOpen:E,isDisabled:t,isFocusable:a,onOpen:A,onClose:_,getButtonProps:U,getPanelProps:F,htmlProps:s}}function KJ(e){const t=e.index||e.defaultIndex,a=t!=null&&!Array.isArray(t)&&e.allowMultiple;jh({condition:!!a,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function QJ(e){jh({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function ZJ(e){jh({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.
551
- `})}function JJ(e){jh({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}const QP=qt(function({children:t,reduceMotion:a,...i},s){const u=Yu("Accordion",i),c=ea(i),{htmlProps:f,descendants:h,...m}=qJ(c),v=w.useMemo(()=>({...m,reduceMotion:!!a}),[m,a]);return K.jsx(HJ,{value:h,children:K.jsx(GJ,{value:v,children:K.jsx(BJ,{value:u,children:K.jsx(it.div,{ref:s,...f,className:Yt("chakra-accordion",i.className),__css:u.root,children:t})})})})});QP.displayName="Accordion";const ZP=qt(function(t,a){const{getButtonProps:i}=KC(),s=i(t,a),c={display:"flex",alignItems:"center",width:"100%",outline:0,...Og().button};return K.jsx(it.button,{...s,className:Yt("chakra-accordion__button",t.className),__css:c})});ZP.displayName="AccordionButton";function JP(e){const{isOpen:t,isDisabled:a}=KC(),{reduceMotion:i}=QC(),s=Yt("chakra-accordion__icon",e.className),u=Og(),c={opacity:a?.4:1,transform:t?"rotate(-180deg)":void 0,transition:i?void 0:"transform 0.2s",transformOrigin:"center",...u.icon};return K.jsx(qu,{viewBox:"0 0 24 24","aria-hidden":!0,className:s,__css:c,...e,children:K.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}JP.displayName="AccordionIcon";const ej=qt(function(t,a){const{children:i,className:s}=t,{htmlProps:u,...c}=XJ(t),f=Og(),h={...f.container,overflowAnchor:"none"},m=w.useMemo(()=>c,[c]);return K.jsx(UJ,{value:m,children:K.jsx(it.div,{ref:a,...u,className:Yt("chakra-accordion__item",s),__css:h,children:typeof i=="function"?i({isExpanded:!!c.isOpen,isDisabled:!!c.isDisabled}):i})})});ej.displayName="AccordionItem";const bu={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Bl={enter:{duration:.2,ease:bu.easeOut},exit:{duration:.1,ease:bu.easeIn}},Xo={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},eee=e=>e!=null&&parseInt(e.toString(),10)>0,aO={exit:{height:{duration:.2,ease:bu.ease},opacity:{duration:.3,ease:bu.ease}},enter:{height:{duration:.3,ease:bu.ease},opacity:{duration:.4,ease:bu.ease}}},tee={exit:({animateOpacity:e,startingHeight:t,transition:a,transitionEnd:i,delay:s})=>({...e&&{opacity:eee(t)?1:0},height:t,transitionEnd:i==null?void 0:i.exit,transition:(a==null?void 0:a.exit)??Xo.exit(aO.exit,s)}),enter:({animateOpacity:e,endingHeight:t,transition:a,transitionEnd:i,delay:s})=>({...e&&{opacity:1},height:t,transitionEnd:i==null?void 0:i.enter,transition:(a==null?void 0:a.enter)??Xo.enter(aO.enter,s)})},tj=w.forwardRef((e,t)=>{const{in:a,unmountOnExit:i,animateOpacity:s=!0,startingHeight:u=0,endingHeight:c="auto",style:f,className:h,transition:m,transitionEnd:v,animatePresenceProps:y,...S}=e,[x,R]=w.useState(!1);w.useEffect(()=>{const P=setTimeout(()=>{R(!0)});return()=>clearTimeout(P)},[]),jh({condition:Number(u)>0&&!!i,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const E=parseFloat(u.toString())>0,k={startingHeight:u,endingHeight:c,animateOpacity:s,transition:x?m:{enter:{duration:0}},transitionEnd:{enter:v==null?void 0:v.enter,exit:i?v==null?void 0:v.exit:{...v==null?void 0:v.exit,display:E?"block":"none"}}},A=i?a:!0,_=a||i?"enter":"exit";return K.jsx(Ql,{...y,initial:!1,custom:k,children:A&&K.jsx(Us.div,{ref:t,...S,className:Yt("chakra-collapse",h),style:{overflow:"hidden",display:"block",...f},custom:k,variants:tee,initial:i?"exit":!1,animate:_,exit:"exit"})})});tj.displayName="Collapse";const nj=qt(function(t,a){const{className:i,motionProps:s,...u}=t,{reduceMotion:c}=QC(),{getPanelProps:f,isOpen:h}=KC(),m=f(u,a),v=Yt("chakra-accordion__panel",i),y=Og();c||delete m.hidden;const S=K.jsx(it.div,{...m,__css:y.panel,className:v});return c?S:K.jsx(tj,{in:h,...s,children:S})});nj.displayName="AccordionPanel";const $v=qt(function(t,a){const i=ci("Badge",t),{className:s,...u}=ea(t);return K.jsx(it.span,{ref:a,className:Yt("chakra-badge",t.className),...u,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...i}})});$v.displayName="Badge";const Dr=it("div");Dr.displayName="Box";const[_oe,nee]=ha({strict:!1,name:"ButtonGroupContext"});function Xf(e){const{children:t,className:a,...i}=e,s=w.isValidElement(t)?w.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,u=Yt("chakra-button__icon",a);return K.jsx(it.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:u,children:s})}Xf.displayName="ButtonIcon";function ww(e){const{label:t,placement:a,spacing:i="0.5rem",children:s=K.jsx(Wh,{color:"currentColor",width:"1em",height:"1em"}),className:u,__css:c,...f}=e,h=Yt("chakra-button__spinner",u),m=a==="start"?"marginEnd":"marginStart",v=w.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[m]:t?i:0,fontSize:"1em",lineHeight:"normal",...c}),[c,t,m,i]);return K.jsx(it.div,{className:h,...f,__css:v,children:s})}ww.displayName="ButtonSpinner";function ree(e){const[t,a]=w.useState(!e);return{ref:w.useCallback(u=>{u&&a(u.tagName==="BUTTON")},[]),type:t?"button":void 0}}const Oi=qt((e,t)=>{const a=nee(),i=ci("Button",{...a,...e}),{isDisabled:s=a==null?void 0:a.isDisabled,isLoading:u,isActive:c,children:f,leftIcon:h,rightIcon:m,loadingText:v,iconSpacing:y="0.5rem",type:S,spinner:x,spinnerPlacement:R="start",className:E,as:k,shouldWrapChildren:A,..._}=ea(e),P=w.useMemo(()=>{const F={...i==null?void 0:i._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...i,...!!a&&{_focus:F}}},[i,a]),{ref:$,type:L}=ree(k),U={rightIcon:m,leftIcon:h,iconSpacing:y,children:f,shouldWrapChildren:A};return K.jsxs(it.button,{disabled:s||u,ref:m4(t,$),as:k,type:S??L,"data-active":_i(c),"data-loading":_i(u),__css:P,className:Yt("chakra-button",E),..._,children:[u&&R==="start"&&K.jsx(ww,{className:"chakra-button__spinner--start",label:v,placement:"start",spacing:y,children:x}),u?v||K.jsx(it.span,{opacity:0,children:K.jsx(iO,{...U})}):K.jsx(iO,{...U}),u&&R==="end"&&K.jsx(ww,{className:"chakra-button__spinner--end",label:v,placement:"end",spacing:y,children:x})]})});Oi.displayName="Button";function iO(e){const{leftIcon:t,rightIcon:a,children:i,iconSpacing:s,shouldWrapChildren:u}=e;return u?K.jsxs("span",{style:{display:"contents"},children:[t&&K.jsx(Xf,{marginEnd:s,children:t}),i,a&&K.jsx(Xf,{marginStart:s,children:a})]}):K.jsxs(K.Fragment,{children:[t&&K.jsx(Xf,{marginEnd:s,children:t}),i,a&&K.jsx(Xf,{marginStart:s,children:a})]})}const Kf=qt((e,t)=>{const{icon:a,children:i,isRound:s,"aria-label":u,...c}=e,f=a||i,h=w.isValidElement(f)?w.cloneElement(f,{"aria-hidden":!0,focusable:!1}):null;return K.jsx(Oi,{px:"0",py:"0",borderRadius:s?"full":void 0,ref:t,"aria-label":u,...c,children:h})});Kf.displayName="IconButton";const ig=it("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});ig.displayName="Center";const aee={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};qt(function(t,a){const{axis:i="both",...s}=t;return K.jsx(it.div,{ref:a,__css:aee[i],...s,position:"absolute"})});const[iee,rj]=ha({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[oee,Mg]=ha({strict:!1,name:"FormControlContext"});function see(e){const{id:t,isRequired:a,isInvalid:i,isDisabled:s,isReadOnly:u,...c}=e,f=w.useId(),h=t||`field-${f}`,m=`${h}-label`,v=`${h}-feedback`,y=`${h}-helptext`,[S,x]=w.useState(!1),[R,E]=w.useState(!1),[k,A]=w.useState(!1),_=w.useCallback((F={},Q=null)=>({id:y,...F,ref:fo(Q,se=>{se&&E(!0)})}),[y]),P=w.useCallback((F={},Q=null)=>({...F,ref:Q,"data-focus":_i(k),"data-disabled":_i(s),"data-invalid":_i(i),"data-readonly":_i(u),id:F.id!==void 0?F.id:m,htmlFor:F.htmlFor!==void 0?F.htmlFor:h}),[h,s,k,i,u,m]),$=w.useCallback((F={},Q=null)=>({id:v,...F,ref:fo(Q,se=>{se&&x(!0)}),"aria-live":"polite"}),[v]),L=w.useCallback((F={},Q=null)=>({...F,...c,ref:Q,role:"group","data-focus":_i(k),"data-disabled":_i(s),"data-invalid":_i(i),"data-readonly":_i(u)}),[c,s,k,i,u]),U=w.useCallback((F={},Q=null)=>({...F,ref:Q,role:"presentation","aria-hidden":!0,children:F.children||"*"}),[]);return{isRequired:!!a,isInvalid:!!i,isReadOnly:!!u,isDisabled:!!s,isFocused:!!k,onFocus:()=>A(!0),onBlur:()=>A(!1),hasFeedbackText:S,setHasFeedbackText:x,hasHelpText:R,setHasHelpText:E,id:h,labelId:m,feedbackId:v,helpTextId:y,htmlProps:c,getHelpTextProps:_,getErrorMessageProps:$,getRootProps:L,getLabelProps:P,getRequiredIndicatorProps:U}}const iu=qt(function(t,a){const i=Yu("Form",t),s=ea(t),{getRootProps:u,htmlProps:c,...f}=see(s),h=Yt("chakra-form-control",t.className);return K.jsx(oee,{value:f,children:K.jsx(iee,{value:i,children:K.jsx(it.div,{...u({},a),className:h,__css:i.container})})})});iu.displayName="FormControl";const lee=qt(function(t,a){const i=Mg(),s=rj(),u=Yt("chakra-form__helper-text",t.className);return K.jsx(it.div,{...i==null?void 0:i.getHelpTextProps(t,a),__css:s.helperText,className:u})});lee.displayName="FormHelperText";function ZC(e){const{isDisabled:t,isInvalid:a,isReadOnly:i,isRequired:s,...u}=cee(e);return{...u,disabled:t,readOnly:i,required:s,"aria-invalid":US(a),"aria-required":US(s),"aria-readonly":US(i)}}function cee(e){const t=Mg(),{id:a,disabled:i,readOnly:s,required:u,isRequired:c,isInvalid:f,isReadOnly:h,isDisabled:m,onFocus:v,onBlur:y,...S}=e,x=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.hasFeedbackText&&(t!=null&&t.isInvalid)&&x.push(t.feedbackId),t!=null&&t.hasHelpText&&x.push(t.helpTextId),{...S,"aria-describedby":x.join(" ")||void 0,id:a??(t==null?void 0:t.id),isDisabled:i??m??(t==null?void 0:t.isDisabled),isReadOnly:s??h??(t==null?void 0:t.isReadOnly),isRequired:u??c??(t==null?void 0:t.isRequired),isInvalid:f??(t==null?void 0:t.isInvalid),onFocus:ca(t==null?void 0:t.onFocus,v),onBlur:ca(t==null?void 0:t.onBlur,y)}}const Cw=qt(function(t,a){const{className:i,centerContent:s,...u}=ea(t),c=ci("Container",t);return K.jsx(it.div,{ref:a,className:Yt("chakra-container",i),...u,__css:{...c,...s&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});Cw.displayName="Container";function Qf(e){return typeof e=="function"}function uee(...e){return t=>e.reduce((a,i)=>i(a),t)}const dee=e=>function(...a){let i=[...a],s=a[a.length-1];return LY(s)&&i.length>1?i=i.slice(0,i.length-1):s=e,uee(...i.map(u=>c=>Qf(u)?u(c):hee(c,u)))(s)},fee=dee(HM);function hee(...e){return ii({},...e,aj)}function aj(e,t,a,i){if((Qf(e)||Qf(t))&&Object.prototype.hasOwnProperty.call(i,a))return(...s)=>{const u=Qf(e)?e(...s):e,c=Qf(t)?t(...s):t;return ii({},u,c,aj)};if(da(e)&&Vx(t)||Vx(e)&&da(t))return t}const ij=qt(function(t,a){const{direction:i,align:s,justify:u,wrap:c,basis:f,grow:h,shrink:m,...v}=t,y={display:"flex",flexDirection:i,alignItems:s,justifyContent:u,flexWrap:c,flexBasis:f,flexGrow:h,flexShrink:m};return K.jsx(it.div,{ref:a,__css:y,...v})});ij.displayName="Flex";function pee(e,t){if(e==null)return{};var a={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;a[i]=e[i]}return a}var oj={exports:{}};/*
552
- object-assign
553
- (c) Sindre Sorhus
554
- @license MIT
555
- */var oO=Object.getOwnPropertySymbols,mee=Object.prototype.hasOwnProperty,vee=Object.prototype.propertyIsEnumerable;function gee(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function yee(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;var i=Object.getOwnPropertyNames(t).map(function(u){return t[u]});if(i.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(u){s[u]=u}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var bee=yee()?Object.assign:function(e,t){for(var a,i=gee(e),s,u=1;u<arguments.length;u++){a=Object(arguments[u]);for(var c in a)mee.call(a,c)&&(i[c]=a[c]);if(oO){s=oO(a);for(var f=0;f<s.length;f++)vee.call(a,s[f])&&(i[s[f]]=a[s[f]])}}return i},See="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",sj=See,lj=Function.call.bind(Object.prototype.hasOwnProperty),Tw=function(){};{var xee=sj,Ew={},wee=lj;Tw=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function cj(e,t,a,i,s){for(var u in e)if(wee(e,u)){var c;try{if(typeof e[u]!="function"){var f=Error((i||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}c=e[u](t,u,i,a,null,xee)}catch(m){c=m}if(c&&!(c instanceof Error)&&Tw((i||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in Ew)){Ew[c.message]=!0;var h=s?s():"";Tw("Failed "+a+" type: "+c.message+(h??""))}}}cj.resetWarningCache=function(){Ew={}};var Cee=cj,Tee=rC,Eee=bee,eu=sj,Tx=lj,sO=Cee,ou=function(){};ou=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}};function fv(){return null}var Ree=function(e,t){var a=typeof Symbol=="function"&&Symbol.iterator,i="@@iterator";function s(Y){var ce=Y&&(a&&Y[a]||Y[i]);if(typeof ce=="function")return ce}var u="<<anonymous>>",c={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:y(),arrayOf:S,element:x(),elementType:R(),instanceOf:E,node:P(),objectOf:A,oneOf:k,oneOfType:_,shape:L,exact:U};function f(Y,ce){return Y===ce?Y!==0||1/Y===1/ce:Y!==Y&&ce!==ce}function h(Y,ce){this.message=Y,this.data=ce&&typeof ce=="object"?ce:{},this.stack=""}h.prototype=Error.prototype;function m(Y){var ce={},Ee=0;function G(X,pe,te,we,xe,be,Ve){if(we=we||u,be=be||te,Ve!==eu){if(t){var Ue=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Ue.name="Invariant Violation",Ue}else if(typeof console<"u"){var Xe=we+":"+te;!ce[Xe]&&Ee<3&&(ou("You are manually calling a React.PropTypes validation function for the `"+be+"` prop on `"+we+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),ce[Xe]=!0,Ee++)}}return pe[te]==null?X?pe[te]===null?new h("The "+xe+" `"+be+"` is marked as required "+("in `"+we+"`, but its value is `null`.")):new h("The "+xe+" `"+be+"` is marked as required in "+("`"+we+"`, but its value is `undefined`.")):null:Y(pe,te,we,xe,be)}var I=G.bind(null,!1);return I.isRequired=G.bind(null,!0),I}function v(Y){function ce(Ee,G,I,X,pe,te){var we=Ee[G],xe=se(we);if(xe!==Y){var be=ae(we);return new h("Invalid "+X+" `"+pe+"` of type "+("`"+be+"` supplied to `"+I+"`, expected ")+("`"+Y+"`."),{expectedType:Y})}return null}return m(ce)}function y(){return m(fv)}function S(Y){function ce(Ee,G,I,X,pe){if(typeof Y!="function")return new h("Property `"+pe+"` of component `"+I+"` has invalid PropType notation inside arrayOf.");var te=Ee[G];if(!Array.isArray(te)){var we=se(te);return new h("Invalid "+X+" `"+pe+"` of type "+("`"+we+"` supplied to `"+I+"`, expected an array."))}for(var xe=0;xe<te.length;xe++){var be=Y(te,xe,I,X,pe+"["+xe+"]",eu);if(be instanceof Error)return be}return null}return m(ce)}function x(){function Y(ce,Ee,G,I,X){var pe=ce[Ee];if(!e(pe)){var te=se(pe);return new h("Invalid "+I+" `"+X+"` of type "+("`"+te+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return m(Y)}function R(){function Y(ce,Ee,G,I,X){var pe=ce[Ee];if(!Tee.isValidElementType(pe)){var te=se(pe);return new h("Invalid "+I+" `"+X+"` of type "+("`"+te+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return m(Y)}function E(Y){function ce(Ee,G,I,X,pe){if(!(Ee[G]instanceof Y)){var te=Y.name||u,we=Ge(Ee[G]);return new h("Invalid "+X+" `"+pe+"` of type "+("`"+we+"` supplied to `"+I+"`, expected ")+("instance of `"+te+"`."))}return null}return m(ce)}function k(Y){if(!Array.isArray(Y))return arguments.length>1?ou("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):ou("Invalid argument supplied to oneOf, expected an array."),fv;function ce(Ee,G,I,X,pe){for(var te=Ee[G],we=0;we<Y.length;we++)if(f(te,Y[we]))return null;var xe=JSON.stringify(Y,function(Ve,Ue){var Xe=ae(Ue);return Xe==="symbol"?String(Ue):Ue});return new h("Invalid "+X+" `"+pe+"` of value `"+String(te)+"` "+("supplied to `"+I+"`, expected one of "+xe+"."))}return m(ce)}function A(Y){function ce(Ee,G,I,X,pe){if(typeof Y!="function")return new h("Property `"+pe+"` of component `"+I+"` has invalid PropType notation inside objectOf.");var te=Ee[G],we=se(te);if(we!=="object")return new h("Invalid "+X+" `"+pe+"` of type "+("`"+we+"` supplied to `"+I+"`, expected an object."));for(var xe in te)if(Tx(te,xe)){var be=Y(te,xe,I,X,pe+"."+xe,eu);if(be instanceof Error)return be}return null}return m(ce)}function _(Y){if(!Array.isArray(Y))return ou("Invalid argument supplied to oneOfType, expected an instance of array."),fv;for(var ce=0;ce<Y.length;ce++){var Ee=Y[ce];if(typeof Ee!="function")return ou("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ue(Ee)+" at index "+ce+"."),fv}function G(I,X,pe,te,we){for(var xe=[],be=0;be<Y.length;be++){var Ve=Y[be],Ue=Ve(I,X,pe,te,we,eu);if(Ue==null)return null;Ue.data&&Tx(Ue.data,"expectedType")&&xe.push(Ue.data.expectedType)}var Xe=xe.length>0?", expected one of type ["+xe.join(", ")+"]":"";return new h("Invalid "+te+" `"+we+"` supplied to "+("`"+pe+"`"+Xe+"."))}return m(G)}function P(){function Y(ce,Ee,G,I,X){return F(ce[Ee])?null:new h("Invalid "+I+" `"+X+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return m(Y)}function $(Y,ce,Ee,G,I){return new h((Y||"React class")+": "+ce+" type `"+Ee+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+I+"`.")}function L(Y){function ce(Ee,G,I,X,pe){var te=Ee[G],we=se(te);if(we!=="object")return new h("Invalid "+X+" `"+pe+"` of type `"+we+"` "+("supplied to `"+I+"`, expected `object`."));for(var xe in Y){var be=Y[xe];if(typeof be!="function")return $(I,X,pe,xe,ae(be));var Ve=be(te,xe,I,X,pe+"."+xe,eu);if(Ve)return Ve}return null}return m(ce)}function U(Y){function ce(Ee,G,I,X,pe){var te=Ee[G],we=se(te);if(we!=="object")return new h("Invalid "+X+" `"+pe+"` of type `"+we+"` "+("supplied to `"+I+"`, expected `object`."));var xe=Eee({},Ee[G],Y);for(var be in xe){var Ve=Y[be];if(Tx(Y,be)&&typeof Ve!="function")return $(I,X,pe,be,ae(Ve));if(!Ve)return new h("Invalid "+X+" `"+pe+"` key `"+be+"` supplied to `"+I+"`.\nBad object: "+JSON.stringify(Ee[G],null," ")+`
556
- Valid keys: `+JSON.stringify(Object.keys(Y),null," "));var Ue=Ve(te,be,I,X,pe+"."+be,eu);if(Ue)return Ue}return null}return m(ce)}function F(Y){switch(typeof Y){case"number":case"string":case"undefined":return!0;case"boolean":return!Y;case"object":if(Array.isArray(Y))return Y.every(F);if(Y===null||e(Y))return!0;var ce=s(Y);if(ce){var Ee=ce.call(Y),G;if(ce!==Y.entries){for(;!(G=Ee.next()).done;)if(!F(G.value))return!1}else for(;!(G=Ee.next()).done;){var I=G.value;if(I&&!F(I[1]))return!1}}else return!1;return!0;default:return!1}}function Q(Y,ce){return Y==="symbol"?!0:ce?ce["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ce instanceof Symbol:!1}function se(Y){var ce=typeof Y;return Array.isArray(Y)?"array":Y instanceof RegExp?"object":Q(ce,Y)?"symbol":ce}function ae(Y){if(typeof Y>"u"||Y===null)return""+Y;var ce=se(Y);if(ce==="object"){if(Y instanceof Date)return"date";if(Y instanceof RegExp)return"regexp"}return ce}function ue(Y){var ce=ae(Y);switch(ce){case"array":case"object":return"an "+ce;case"boolean":case"date":case"regexp":return"a "+ce;default:return ce}}function Ge(Y){return!Y.constructor||!Y.constructor.name?u:Y.constructor.name}return c.checkPropTypes=sO,c.resetWarningCache=sO.resetWarningCache,c.PropTypes=c,c};{var kee=rC,Dee=!0;oj.exports=Ree(kee.isElement,Dee)}var Dn=oj.exports;const uj=pg(Dn);var Rw="data-focus-lock",dj="data-focus-lock-disabled",_ee="data-no-focus-lock",Aee="data-autofocus-inside",Oee="data-no-autofocus";function Ex(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Mee(e,t){var a=w.useState(function(){return{value:e,callback:t,facade:{get current(){return a.value},set current(i){var s=a.value;s!==i&&(a.value=i,a.callback(i,s))}}}})[0];return a.callback=t,a.facade}var Nee=typeof window<"u"?w.useLayoutEffect:w.useEffect,lO=new WeakMap;function fj(e,t){var a=Mee(t||null,function(i){return e.forEach(function(s){return Ex(s,i)})});return Nee(function(){var i=lO.get(a);if(i){var s=new Set(i),u=new Set(e),c=a.current;s.forEach(function(f){u.has(f)||Ex(f,null)}),u.forEach(function(f){s.has(f)||Ex(f,c)})}lO.set(a,e)},[e]),a}var Rx={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};uj.node;var ao=function(){return ao=Object.assign||function(t){for(var a,i=1,s=arguments.length;i<s;i++){a=arguments[i];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])}return t},ao.apply(this,arguments)};function hj(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(a[i[s]]=e[i[s]]);return a}function Pee(e,t,a){if(a||arguments.length===2)for(var i=0,s=t.length,u;i<s;i++)(u||!(i in t))&&(u||(u=Array.prototype.slice.call(t,0,i)),u[i]=t[i]);return e.concat(u||Array.prototype.slice.call(t))}function pj(e){return e}function mj(e,t){t===void 0&&(t=pj);var a=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:e},useMedium:function(u){var c=t(u,i);return a.push(c),function(){a=a.filter(function(f){return f!==c})}},assignSyncMedium:function(u){for(i=!0;a.length;){var c=a;a=[],c.forEach(u)}a={push:function(f){return u(f)},filter:function(){return a}}},assignMedium:function(u){i=!0;var c=[];if(a.length){var f=a;a=[],f.forEach(u),c=a}var h=function(){var v=c;c=[],v.forEach(u)},m=function(){return Promise.resolve().then(h)};m(),a={push:function(v){c.push(v),m()},filter:function(v){return c=c.filter(v),a}}}};return s}function JC(e,t){return t===void 0&&(t=pj),mj(e,t)}function vj(e){e===void 0&&(e={});var t=mj(null);return t.options=ao({async:!0,ssr:!1},e),t}var gj=function(e){var t=e.sideCar,a=hj(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return w.createElement(i,ao({},a))};gj.isSideCarExport=!0;function jee(e,t){return e.useMedium(t),gj}var yj=JC({},function(e){var t=e.target,a=e.currentTarget;return{target:t,currentTarget:a}}),bj=JC(),Lee=JC(),$ee=vj({async:!0,ssr:typeof document<"u"}),zee=w.createContext(void 0),Fee=[],Sj=w.forwardRef(function(t,a){var i,s=w.useState(),u=s[0],c=s[1],f=w.useRef(),h=w.useRef(!1),m=w.useRef(null),v=w.useState({}),y=v[1],S=t.children,x=t.disabled,R=x===void 0?!1:x,E=t.noFocusGuards,k=E===void 0?!1:E,A=t.persistentFocus,_=A===void 0?!1:A,P=t.crossFrame,$=P===void 0?!0:P,L=t.autoFocus,U=L===void 0?!0:L,F=t.allowTextSelection,Q=t.group,se=t.className,ae=t.whiteList,ue=t.hasPositiveIndices,Ge=t.shards,Y=Ge===void 0?Fee:Ge,ce=t.as,Ee=ce===void 0?"div":ce,G=t.lockProps,I=G===void 0?{}:G,X=t.sideCar,pe=t.returnFocus,te=pe===void 0?!1:pe,we=t.focusOptions,xe=t.onActivation,be=t.onDeactivation,Ve=w.useState({}),Ue=Ve[0],Xe=w.useCallback(function(Et){var on=Et.captureFocusRestore;if(!m.current){var Kt,De=(Kt=document)==null?void 0:Kt.activeElement;m.current=De,De!==document.body&&(m.current=on(De))}f.current&&xe&&xe(f.current),h.current=!0,y()},[xe]),Rt=w.useCallback(function(){h.current=!1,be&&be(f.current),y()},[be]),pt=w.useCallback(function(Et){var on=m.current;if(on){var Kt=(typeof on=="function"?on():on)||document.body,De=typeof te=="function"?te(Kt):te;if(De){var ot=typeof De=="object"?De:void 0;m.current=null,Et?Promise.resolve().then(function(){return Kt.focus(ot)}):Kt.focus(ot)}}},[te]),Ct=w.useCallback(function(Et){h.current&&yj.useMedium(Et)},[]),ut=bj.useMedium,Ft=w.useCallback(function(Et){f.current!==Et&&(f.current=Et,c(Et))},[]);typeof F<"u"&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),w.useEffect(function(){!f.current&&typeof Ee!="string"&&console.error("FocusLock: could not obtain ref to internal node")},[]);var ge=Yl((i={},i[dj]=R&&"disabled",i[Rw]=Q,i),I),mt=k!==!0,kt=mt&&k!=="tail",At=fj([a,Ft]),Ot=w.useMemo(function(){return{observed:f,shards:Y,enabled:!R,get active(){return h.current}}},[R,h,Y,f]);return dn.createElement(w.Fragment,null,mt&&[dn.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:R?-1:0,style:Rx}),ue?dn.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:R?-1:1,style:Rx}):null],!R&&dn.createElement(X,{id:Ue,sideCar:$ee,observed:u,disabled:R,persistentFocus:_,crossFrame:$,autoFocus:U,whiteList:ae,shards:Y,onActivation:Xe,onDeactivation:Rt,returnFocus:pt,focusOptions:we,noFocusGuards:k}),dn.createElement(Ee,Yl({ref:At},ge,{className:se,onBlur:ut,onFocus:Ct}),dn.createElement(zee.Provider,{value:Ot},S)),kt&&dn.createElement("div",{"data-focus-guard":!0,tabIndex:R?-1:0,style:Rx}))});Sj.propTypes={children:Dn.node,disabled:Dn.bool,returnFocus:Dn.oneOfType([Dn.bool,Dn.object,Dn.func]),focusOptions:Dn.object,noFocusGuards:Dn.bool,hasPositiveIndices:Dn.bool,allowTextSelection:Dn.bool,autoFocus:Dn.bool,persistentFocus:Dn.bool,crossFrame:Dn.bool,group:Dn.string,className:Dn.string,whiteList:Dn.func,shards:Dn.arrayOf(Dn.any),as:Dn.oneOfType([Dn.string,Dn.func,Dn.object]),lockProps:Dn.object,onActivation:Dn.func,onDeactivation:Dn.func,sideCar:Dn.any.isRequired};const xj=Sj;function kw(e,t){return kw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,i){return a.__proto__=i,a},kw(e,t)}function Iee(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,kw(e,t)}function Rh(e){"@babel/helpers - typeof";return Rh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rh(e)}function Vee(e,t){if(Rh(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var i=a.call(e,t||"default");if(Rh(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bee(e){var t=Vee(e,"string");return Rh(t)=="symbol"?t:t+""}function Uee(e,t,a){return(t=Bee(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Hee(e,t){{if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.")}function a(i){return i.displayName||i.name||"Component"}return function(s){if(typeof s!="function")throw new Error("Expected WrappedComponent to be a React component.");var u=[],c;function f(){c=e(u.map(function(m){return m.props})),t(c)}var h=function(m){Iee(v,m);function v(){return m.apply(this,arguments)||this}v.peek=function(){return c};var y=v.prototype;return y.componentDidMount=function(){u.push(this),f()},y.componentDidUpdate=function(){f()},y.componentWillUnmount=function(){var x=u.indexOf(this);u.splice(x,1),f()},y.render=function(){return dn.createElement(s,this.props)},v}(w.PureComponent);return Uee(h,"displayName","SideEffect("+a(s)+")"),h}}var po=function(e){for(var t=Array(e.length),a=0;a<e.length;++a)t[a]=e[a];return t},ql=function(e){return Array.isArray(e)?e:[e]},wj=function(e){return Array.isArray(e)?e[0]:e},Wee=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},Cj=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},Tj=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Yee=function(e){return e.hasAttribute("inert")},qee=function(e,t){return!e||Tj(e)||!Wee(e)&&!Yee(e)&&t(Cj(e))},Ej=function(e,t){var a=e.get(t);if(a!==void 0)return a;var i=qee(t,Ej.bind(void 0,e));return e.set(t,i),i},Gee=function(e,t){return e&&!Tj(e)?Qee(e)?t(Cj(e)):!1:!0},Rj=function(e,t){var a=e.get(t);if(a!==void 0)return a;var i=Gee(t,Rj.bind(void 0,e));return e.set(t,i),i},kj=function(e){return e.dataset},Xee=function(e){return e.tagName==="BUTTON"},Dj=function(e){return e.tagName==="INPUT"},_j=function(e){return Dj(e)&&e.type==="radio"},Kee=function(e){return!((Dj(e)||Xee(e))&&(e.type==="hidden"||e.disabled))},Qee=function(e){var t=e.getAttribute(Oee);return![!0,"true",""].includes(t)},eT=function(e){var t;return!!(e&&(!((t=kj(e))===null||t===void 0)&&t.focusGuard))},Dw=function(e){return!eT(e)},Zee=function(e){return!!e},Jee=function(e,t){var a=Math.max(0,e.tabIndex),i=Math.max(0,t.tabIndex),s=a-i,u=e.index-t.index;if(s){if(!a)return 1;if(!i)return-1}return s||u},ete=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex},tT=function(e,t,a){return po(e).map(function(i,s){var u=ete(i);return{node:i,index:s,tabIndex:a&&u===-1?(i.dataset||{}).focusGuard?0:-1:u}}).filter(function(i){return!t||i.tabIndex>=0}).sort(Jee)},tte=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],nT=tte.join(","),nte="".concat(nT,", [data-focus-guard]"),Aj=function(e,t){return po((e.shadowRoot||e).children).reduce(function(a,i){return a.concat(i.matches(t?nte:nT)?[i]:[],Aj(i))},[])},rte=function(e,t){var a;return e instanceof HTMLIFrameElement&&(!((a=e.contentDocument)===null||a===void 0)&&a.body)?$u([e.contentDocument.body],t):[e]},$u=function(e,t){return e.reduce(function(a,i){var s,u=Aj(i,t),c=(s=[]).concat.apply(s,u.map(function(f){return rte(f,t)}));return a.concat(c,i.parentNode?po(i.parentNode.querySelectorAll(nT)).filter(function(f){return f===i}):[])},[])},ate=function(e){var t=e.querySelectorAll("[".concat(Aee,"]"));return po(t).map(function(a){return $u([a])}).reduce(function(a,i){return a.concat(i)},[])},rT=function(e,t){return po(e).filter(function(a){return Ej(t,a)}).filter(function(a){return Kee(a)})},cO=function(e,t){return t===void 0&&(t=new Map),po(e).filter(function(a){return Rj(t,a)})},aT=function(e,t,a){return tT(rT($u(e,a),t),!0,a)},kh=function(e,t){return tT(rT($u(e),t),!1)},ite=function(e,t){return rT(ate(e),t)},Ul=function(e,t){return e.shadowRoot?Ul(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:po(e.children).some(function(a){var i;if(a instanceof HTMLIFrameElement){var s=(i=a.contentDocument)===null||i===void 0?void 0:i.body;return s?Ul(s,t):!1}return Ul(a,t)})},ote=function(e){for(var t=new Set,a=e.length,i=0;i<a;i+=1)for(var s=i+1;s<a;s+=1){var u=e[i].compareDocumentPosition(e[s]);(u&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(s),(u&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(i)}return e.filter(function(c,f){return!t.has(f)})},Oj=function(e){return e.parentNode?Oj(e.parentNode):e},iT=function(e){var t=ql(e);return t.filter(Boolean).reduce(function(a,i){var s=i.getAttribute(Rw);return a.push.apply(a,s?ote(po(Oj(i).querySelectorAll("[".concat(Rw,'="').concat(s,'"]:not([').concat(dj,'="disabled"])')))):[i]),a},[])},ste=function(e){try{return e()}catch{return}},Dh=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Dh(t.shadowRoot):t instanceof HTMLIFrameElement&&ste(function(){return t.contentWindow.document})?Dh(t.contentWindow.document):t}},lte=function(e,t){return e===t},cte=function(e,t){return!!po(e.querySelectorAll("iframe")).some(function(a){return lte(a,t)})},Mj=function(e,t){return t===void 0&&(t=Dh(wj(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:iT(e).some(function(a){return Ul(a,t)||cte(a,t)})},ute=function(e){e===void 0&&(e=document);var t=Dh(e);return t?po(e.querySelectorAll("[".concat(_ee,"]"))).some(function(a){return Ul(a,t)}):!1},dte=function(e,t){return t.filter(_j).filter(function(a){return a.name===e.name}).filter(function(a){return a.checked})[0]||e},oT=function(e,t){return _j(e)&&e.name?dte(e,t):e},fte=function(e){var t=new Set;return e.forEach(function(a){return t.add(oT(a,e))}),e.filter(function(a){return t.has(a)})},uO=function(e){return e[0]&&e.length>1?oT(e[0],e):e[0]},dO=function(e,t){return e.indexOf(oT(t,e))},_w="NEW_FOCUS",hte=function(e,t,a,i,s){var u=e.length,c=e[0],f=e[u-1],h=eT(i);if(!(i&&e.indexOf(i)>=0)){var m=i!==void 0?a.indexOf(i):-1,v=s?a.indexOf(s):m,y=s?e.indexOf(s):-1;if(m===-1)return y!==-1?y:_w;if(y===-1)return _w;var S=m-v,x=a.indexOf(c),R=a.indexOf(f),E=fte(a),k=i!==void 0?E.indexOf(i):-1,A=s?E.indexOf(s):k,_=E.filter(function(Q){return Q.tabIndex>=0}),P=i!==void 0?_.indexOf(i):-1,$=s?_.indexOf(s):P,L=P>=0&&$>=0?$-P:A-k;if(!S&&y>=0||t.length===0)return y;var U=dO(e,t[0]),F=dO(e,t[t.length-1]);if(m<=x&&h&&Math.abs(S)>1)return F;if(m>=R&&h&&Math.abs(S)>1)return U;if(S&&Math.abs(L)>1)return y;if(m<=x)return F;if(m>R)return U;if(S)return Math.abs(S)>1?y:(u+y+S)%u}},pte=function(e){return function(t){var a,i=(a=kj(t))===null||a===void 0?void 0:a.autofocus;return t.autofocus||i!==void 0&&i!=="false"||e.indexOf(t)>=0}},fO=function(e,t,a){var i=e.map(function(u){var c=u.node;return c}),s=cO(i.filter(pte(a)));return s&&s.length?uO(s):uO(cO(t))},Aw=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Aw(e.parentNode.host||e.parentNode,t),t},kx=function(e,t){for(var a=Aw(e),i=Aw(t),s=0;s<a.length;s+=1){var u=a[s];if(i.indexOf(u)>=0)return u}return!1},Nj=function(e,t,a){var i=ql(e),s=ql(t),u=i[0],c=!1;return s.filter(Boolean).forEach(function(f){c=kx(c||f,f)||c,a.filter(Boolean).forEach(function(h){var m=kx(u,h);m&&(!c||Ul(m,c)?c=m:c=kx(m,c))})}),c},hO=function(e,t){return e.reduce(function(a,i){return a.concat(ite(i,t))},[])},mte=function(e,t){var a=new Map;return t.forEach(function(i){return a.set(i.node,i)}),e.map(function(i){return a.get(i)}).filter(Zee)},vte=function(e,t){var a=Dh(ql(e).length>0?document:wj(e).ownerDocument),i=iT(e).filter(Dw),s=Nj(a||e,e,i),u=new Map,c=kh(i,u),f=c.filter(function(R){var E=R.node;return Dw(E)});if(f[0]){var h=kh([s],u).map(function(R){var E=R.node;return E}),m=mte(h,f),v=m.map(function(R){var E=R.node;return E}),y=m.filter(function(R){var E=R.tabIndex;return E>=0}).map(function(R){var E=R.node;return E}),S=hte(v,y,h,a,t);if(S===_w){var x=fO(c,y,hO(i,u))||fO(c,v,hO(i,u));if(x)return{node:x};console.warn("focus-lock: cannot find any node to move focus into");return}return S===void 0?S:m[S]}},gte=function(e){var t=iT(e).filter(Dw),a=Nj(e,e,t),i=tT($u([a],!0),!0,!0),s=$u(t,!1);return i.map(function(u){var c=u.node,f=u.index;return{node:c,index:f,lockItem:s.indexOf(c)>=0,guard:eT(c)}})},sT=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Dx=0,_x=!1,Pj=function(e,t,a){a===void 0&&(a={});var i=vte(e,t);if(!_x&&i){if(Dx>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),_x=!0,setTimeout(function(){_x=!1},1);return}Dx++,sT(i.node,a.focusOptions),Dx--}};function Ff(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var yte=function(e){if(!e)return null;for(var t=[],a=e;a&&a!==document.body;)t.push({current:Ff(a),parent:Ff(a.parentElement),left:Ff(a.previousElementSibling),right:Ff(a.nextElementSibling)}),a=a.parentElement;return{element:Ff(e),stack:t,ownerDocument:e.ownerDocument}},bte=function(e){var t,a,i,s,u;if(e)for(var c=e.stack,f=e.ownerDocument,h=new Map,m=0,v=c;m<v.length;m++){var y=v[m],S=(t=y.parent)===null||t===void 0?void 0:t.call(y);if(S&&f.contains(S)){for(var x=(a=y.left)===null||a===void 0?void 0:a.call(y),R=y.current(),E=S.contains(R)?R:void 0,k=(i=y.right)===null||i===void 0?void 0:i.call(y),A=aT([S],h),_=(u=(s=E??(x==null?void 0:x.nextElementSibling))!==null&&s!==void 0?s:k)!==null&&u!==void 0?u:x;_;){for(var P=0,$=A;P<$.length;P++){var L=$[P];if(_!=null&&_.contains(L.node))return L.node}_=_.nextElementSibling}if(A.length)return A[0].node}}},jj=function(e){var t=yte(e);return function(){return bte(t)}},Ste=function(e,t,a){if(!e||!t)return console.error("no element or scope given"),{};var i=ql(t);if(i.every(function(c){return!Ul(c,e)}))return console.error("Active element is not contained in the scope"),{};var s=a?aT(i,new Map):kh(i,new Map),u=s.findIndex(function(c){var f=c.node;return f===e});if(u!==-1)return{prev:s[u-1],next:s[u+1],first:s[0],last:s[s.length-1]}},xte=function(e,t){var a=t?aT(ql(e),new Map):kh(ql(e),new Map);return{first:a[0],last:a[a.length-1]}},wte=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)},Lj=function(e,t,a){t===void 0&&(t={});var i=wte(t),s=Ste(e,i.scope,i.onlyTabbable);if(s){var u=a(s,i.cycle);u&&sT(u.node,i.focusOptions)}},Cte=function(e,t){t===void 0&&(t={}),Lj(e,t,function(a,i){var s=a.next,u=a.first;return s||i&&u})},Tte=function(e,t){t===void 0&&(t={}),Lj(e,t,function(a,i){var s=a.prev,u=a.last;return s||i&&u})},$j=function(e,t,a){var i,s=xte(e,(i=t.onlyTabbable)!==null&&i!==void 0?i:!0),u=s[a];u&&sT(u.node,t.focusOptions)},Ete=function(e,t){t===void 0&&(t={}),$j(e,t,"first")},Rte=function(e,t){t===void 0&&(t={}),$j(e,t,"last")};function lT(e){setTimeout(e,1)}var kte=function(t){return t&&"current"in t?t.current:t},zj=function(){return document&&document.activeElement===document.body},Dte=function(){return zj()||ute()},Ru=null,wa=null,pO=function(){return null},ku=null,_h=!1,cT=!1,_te=function(){return!0},Ate=function(t){return(Ru.whiteList||_te)(t)},Ote=function(t,a){ku={observerNode:t,portaledElement:a}},Mte=function(t){return ku&&ku.portaledElement===t};function mO(e,t,a,i){var s=null,u=e;do{var c=i[u];if(c.guard)c.node.dataset.focusAutoGuard&&(s=c);else if(c.lockItem){if(u!==e)return;s=null}else break}while((u+=a)!==t);s&&(s.node.tabIndex=0)}var Nte=function(t){return t?!!_h:_h==="meanwhile"},Pte=function e(t,a,i){return a&&(a.host===t&&(!a.activeElement||i.contains(a.activeElement))||a.parentNode&&e(t,a.parentNode,i))},jte=function(t,a){return a.some(function(i){return Pte(t,i,i)})},Fj=function(t){return kh(t,new Map)},Lte=function(t){return!Fj([t.parentNode]).some(function(a){return a.node===t})},og=function(){var t=!1;if(Ru){var a=Ru,i=a.observed,s=a.persistentFocus,u=a.autoFocus,c=a.shards,f=a.crossFrame,h=a.focusOptions,m=a.noFocusGuards,v=i||ku&&ku.portaledElement;if(zj()&&wa&&wa!==document.body&&(!document.body.contains(wa)||Lte(wa))){var y=pO();y&&y.focus()}var S=document&&document.activeElement;if(v){var x=[v].concat(c.map(kte).filter(Boolean)),R=function(){if(!Nte(f)||!m||!wa||cT)return!1;var P=Fj(x),$=P.findIndex(function(L){var U=L.node;return U===wa});return $===0||$===P.length-1};if((!S||Ate(S))&&(s||R()||!Dte()||!wa&&u)&&(v&&!(Mj(x)||S&&jte(S,x)||Mte(S))&&(document&&!wa&&S&&!u?(S.blur&&S.blur(),document.body.focus()):(t=Pj(x,wa,{focusOptions:h}),ku={})),wa=document&&document.activeElement,wa!==document.body&&(pO=jj(wa)),_h=!1),document&&S!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var E=document&&document.activeElement,k=gte(x),A=k.map(function(_){var P=_.node;return P}).indexOf(E);A>-1&&(k.filter(function(_){var P=_.guard,$=_.node;return P&&$.dataset.focusAutoGuard}).forEach(function(_){var P=_.node;return P.removeAttribute("tabIndex")}),mO(A,k.length,1,k),mO(A,-1,-1,k))}}}return t},Ij=function(t){og()&&t&&(t.stopPropagation(),t.preventDefault())},uT=function(){return lT(og)},$te=function(t){var a=t.target,i=t.currentTarget;i.contains(a)||Ote(i,a)},zte=function(){return null};uj.node.isRequired;var Vj=function(){cT=!0},Bj=function(){cT=!1,_h="just",lT(function(){_h="meanwhile"})},Fte=function(){document.addEventListener("focusin",Ij),document.addEventListener("focusout",uT),window.addEventListener("focus",Vj),window.addEventListener("blur",Bj)},Ite=function(){document.removeEventListener("focusin",Ij),document.removeEventListener("focusout",uT),window.removeEventListener("focus",Vj),window.removeEventListener("blur",Bj)};function Vte(e){return e.filter(function(t){var a=t.disabled;return!a})}var Uj={moveFocusInside:Pj,focusInside:Mj,focusNextElement:Cte,focusPrevElement:Tte,focusFirstElement:Ete,focusLastElement:Rte,captureFocusRestore:jj};function Bte(e){var t=e.slice(-1)[0];t&&!Ru&&Fte();var a=Ru,i=a&&t&&t.id===a.id;Ru=t,a&&!i&&(a.onDeactivation(),e.filter(function(s){var u=s.id;return u===a.id}).length||a.returnFocus(!t)),t?(wa=null,(!i||a.observed!==t.observed)&&t.onActivation(Uj),og(),lT(og)):(Ite(),wa=null)}yj.assignSyncMedium($te);bj.assignMedium(uT);Lee.assignMedium(function(e){return e(Uj)});const Ute=Hee(Vte,Bte)(zte);var Hj=w.forwardRef(function(t,a){return dn.createElement(xj,Yl({sideCar:Ute,ref:a},t))}),Wj=xj.propTypes||{};Wj.sideCar;var Hte=pee(Wj,["sideCar"]);Hj.propTypes=Hte;const vO=Hj,Wte=vO.default??vO,Yj=e=>{const{initialFocusRef:t,finalFocusRef:a,contentRef:i,restoreFocus:s,children:u,isDisabled:c,autoFocus:f,persistentFocus:h,lockFocusAcrossFrames:m}=e,v=w.useCallback(()=>{t!=null&&t.current?t.current.focus():i!=null&&i.current&&n4(i.current).length===0&&requestAnimationFrame(()=>{var R;(R=i.current)==null||R.focus()})},[t,i]),y=w.useCallback(()=>{var x;(x=a==null?void 0:a.current)==null||x.focus()},[a]),S=s&&!a;return K.jsx(Wte,{crossFrame:m,persistentFocus:h,autoFocus:f,disabled:c,onActivation:v,onDeactivation:y,returnFocus:S,children:u})};Yj.displayName="FocusLock";const su=qt(function(t,a){const i=ci("FormLabel",t),s=ea(t),{className:u,children:c,requiredIndicator:f=K.jsx(qj,{}),optionalIndicator:h=null,...m}=s,v=Mg(),y=(v==null?void 0:v.getLabelProps(m,a))??{ref:a,...m};return K.jsxs(it.label,{...y,className:Yt("chakra-form__label",s.className),__css:{display:"block",textAlign:"start",...i},children:[c,v!=null&&v.isRequired?f:h]})});su.displayName="FormLabel";const qj=qt(function(t,a){const i=Mg(),s=rj();if(!(i!=null&&i.isRequired))return null;const u=Yt("chakra-form__required-indicator",t.className);return K.jsx(it.span,{...i==null?void 0:i.getRequiredIndicatorProps(t,a),__css:s.requiredIndicator,className:u})});qj.displayName="RequiredIndicator";const dT=qt(function(t,a){const{htmlSize:i,...s}=t,u=Yu("Input",s),c=ea(s),f=ZC(c),h=Yt("chakra-input",t.className);return K.jsx(it.input,{size:i,...f,__css:u.field,ref:a,className:h})});dT.displayName="Input";dT.id="Input";var Ea="top",si="bottom",li="right",Ra="left",fT="auto",Yh=[Ea,si,li,Ra],zu="start",Ah="end",Yte="clippingParents",Gj="viewport",If="popper",qte="reference",gO=Yh.reduce(function(e,t){return e.concat([t+"-"+zu,t+"-"+Ah])},[]),Xj=[].concat(Yh,[fT]).reduce(function(e,t){return e.concat([t,t+"-"+zu,t+"-"+Ah])},[]),Gte="beforeRead",Xte="read",Kte="afterRead",Qte="beforeMain",Zte="main",Jte="afterMain",ene="beforeWrite",tne="write",nne="afterWrite",rne=[Gte,Xte,Kte,Qte,Zte,Jte,ene,tne,nne];function ho(e){return e?(e.nodeName||"").toLowerCase():null}function Ba(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gl(e){var t=Ba(e).Element;return e instanceof t||e instanceof Element}function oi(e){var t=Ba(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function hT(e){if(typeof ShadowRoot>"u")return!1;var t=Ba(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ane(e){var t=e.state;Object.keys(t.elements).forEach(function(a){var i=t.styles[a]||{},s=t.attributes[a]||{},u=t.elements[a];!oi(u)||!ho(u)||(Object.assign(u.style,i),Object.keys(s).forEach(function(c){var f=s[c];f===!1?u.removeAttribute(c):u.setAttribute(c,f===!0?"":f)}))})}function ine(e){var t=e.state,a={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,a.popper),t.styles=a,t.elements.arrow&&Object.assign(t.elements.arrow.style,a.arrow),function(){Object.keys(t.elements).forEach(function(i){var s=t.elements[i],u=t.attributes[i]||{},c=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:a[i]),f=c.reduce(function(h,m){return h[m]="",h},{});!oi(s)||!ho(s)||(Object.assign(s.style,f),Object.keys(u).forEach(function(h){s.removeAttribute(h)}))})}}const one={name:"applyStyles",enabled:!0,phase:"write",fn:ane,effect:ine,requires:["computeStyles"]};function uo(e){return e.split("-")[0]}var Hl=Math.max,sg=Math.min,Fu=Math.round;function Ow(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Kj(){return!/^((?!chrome|android).)*safari/i.test(Ow())}function Iu(e,t,a){t===void 0&&(t=!1),a===void 0&&(a=!1);var i=e.getBoundingClientRect(),s=1,u=1;t&&oi(e)&&(s=e.offsetWidth>0&&Fu(i.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Fu(i.height)/e.offsetHeight||1);var c=Gl(e)?Ba(e):window,f=c.visualViewport,h=!Kj()&&a,m=(i.left+(h&&f?f.offsetLeft:0))/s,v=(i.top+(h&&f?f.offsetTop:0))/u,y=i.width/s,S=i.height/u;return{width:y,height:S,top:v,right:m+y,bottom:v+S,left:m,x:m,y:v}}function pT(e){var t=Iu(e),a=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-a)<=1&&(a=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:a,height:i}}function Qj(e,t){var a=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(a&&hT(a)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Zo(e){return Ba(e).getComputedStyle(e)}function sne(e){return["table","td","th"].indexOf(ho(e))>=0}function Hs(e){return((Gl(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ng(e){return ho(e)==="html"?e:e.assignedSlot||e.parentNode||(hT(e)?e.host:null)||Hs(e)}function yO(e){return!oi(e)||Zo(e).position==="fixed"?null:e.offsetParent}function lne(e){var t=/firefox/i.test(Ow()),a=/Trident/i.test(Ow());if(a&&oi(e)){var i=Zo(e);if(i.position==="fixed")return null}var s=Ng(e);for(hT(s)&&(s=s.host);oi(s)&&["html","body"].indexOf(ho(s))<0;){var u=Zo(s);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||t&&u.willChange==="filter"||t&&u.filter&&u.filter!=="none")return s;s=s.parentNode}return null}function qh(e){for(var t=Ba(e),a=yO(e);a&&sne(a)&&Zo(a).position==="static";)a=yO(a);return a&&(ho(a)==="html"||ho(a)==="body"&&Zo(a).position==="static")?t:a||lne(e)||t}function mT(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ch(e,t,a){return Hl(e,sg(t,a))}function cne(e,t,a){var i=ch(e,t,a);return i>a?a:i}function Zj(){return{top:0,right:0,bottom:0,left:0}}function Jj(e){return Object.assign({},Zj(),e)}function eL(e,t){return t.reduce(function(a,i){return a[i]=e,a},{})}var une=function(t,a){return t=typeof t=="function"?t(Object.assign({},a.rects,{placement:a.placement})):t,Jj(typeof t!="number"?t:eL(t,Yh))};function dne(e){var t,a=e.state,i=e.name,s=e.options,u=a.elements.arrow,c=a.modifiersData.popperOffsets,f=uo(a.placement),h=mT(f),m=[Ra,li].indexOf(f)>=0,v=m?"height":"width";if(!(!u||!c)){var y=une(s.padding,a),S=pT(u),x=h==="y"?Ea:Ra,R=h==="y"?si:li,E=a.rects.reference[v]+a.rects.reference[h]-c[h]-a.rects.popper[v],k=c[h]-a.rects.reference[h],A=qh(u),_=A?h==="y"?A.clientHeight||0:A.clientWidth||0:0,P=E/2-k/2,$=y[x],L=_-S[v]-y[R],U=_/2-S[v]/2+P,F=ch($,U,L),Q=h;a.modifiersData[i]=(t={},t[Q]=F,t.centerOffset=F-U,t)}}function fne(e){var t=e.state,a=e.options,i=a.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||Qj(t.elements.popper,s)&&(t.elements.arrow=s))}const hne={name:"arrow",enabled:!0,phase:"main",fn:dne,effect:fne,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vu(e){return e.split("-")[1]}var pne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mne(e,t){var a=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Fu(a*s)/s||0,y:Fu(i*s)/s||0}}function bO(e){var t,a=e.popper,i=e.popperRect,s=e.placement,u=e.variation,c=e.offsets,f=e.position,h=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,y=e.isFixed,S=c.x,x=S===void 0?0:S,R=c.y,E=R===void 0?0:R,k=typeof v=="function"?v({x,y:E}):{x,y:E};x=k.x,E=k.y;var A=c.hasOwnProperty("x"),_=c.hasOwnProperty("y"),P=Ra,$=Ea,L=window;if(m){var U=qh(a),F="clientHeight",Q="clientWidth";if(U===Ba(a)&&(U=Hs(a),Zo(U).position!=="static"&&f==="absolute"&&(F="scrollHeight",Q="scrollWidth")),U=U,s===Ea||(s===Ra||s===li)&&u===Ah){$=si;var se=y&&U===L&&L.visualViewport?L.visualViewport.height:U[F];E-=se-i.height,E*=h?1:-1}if(s===Ra||(s===Ea||s===si)&&u===Ah){P=li;var ae=y&&U===L&&L.visualViewport?L.visualViewport.width:U[Q];x-=ae-i.width,x*=h?1:-1}}var ue=Object.assign({position:f},m&&pne),Ge=v===!0?mne({x,y:E},Ba(a)):{x,y:E};if(x=Ge.x,E=Ge.y,h){var Y;return Object.assign({},ue,(Y={},Y[$]=_?"0":"",Y[P]=A?"0":"",Y.transform=(L.devicePixelRatio||1)<=1?"translate("+x+"px, "+E+"px)":"translate3d("+x+"px, "+E+"px, 0)",Y))}return Object.assign({},ue,(t={},t[$]=_?E+"px":"",t[P]=A?x+"px":"",t.transform="",t))}function vne(e){var t=e.state,a=e.options,i=a.gpuAcceleration,s=i===void 0?!0:i,u=a.adaptive,c=u===void 0?!0:u,f=a.roundOffsets,h=f===void 0?!0:f,m={placement:uo(t.placement),variation:Vu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,bO(Object.assign({},m,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:h})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,bO(Object.assign({},m,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const gne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vne,data:{}};var hv={passive:!0};function yne(e){var t=e.state,a=e.instance,i=e.options,s=i.scroll,u=s===void 0?!0:s,c=i.resize,f=c===void 0?!0:c,h=Ba(t.elements.popper),m=[].concat(t.scrollParents.reference,t.scrollParents.popper);return u&&m.forEach(function(v){v.addEventListener("scroll",a.update,hv)}),f&&h.addEventListener("resize",a.update,hv),function(){u&&m.forEach(function(v){v.removeEventListener("scroll",a.update,hv)}),f&&h.removeEventListener("resize",a.update,hv)}}const bne={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yne,data:{}};var Sne={left:"right",right:"left",bottom:"top",top:"bottom"};function zv(e){return e.replace(/left|right|bottom|top/g,function(t){return Sne[t]})}var xne={start:"end",end:"start"};function SO(e){return e.replace(/start|end/g,function(t){return xne[t]})}function vT(e){var t=Ba(e),a=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:a,scrollTop:i}}function gT(e){return Iu(Hs(e)).left+vT(e).scrollLeft}function wne(e,t){var a=Ba(e),i=Hs(e),s=a.visualViewport,u=i.clientWidth,c=i.clientHeight,f=0,h=0;if(s){u=s.width,c=s.height;var m=Kj();(m||!m&&t==="fixed")&&(f=s.offsetLeft,h=s.offsetTop)}return{width:u,height:c,x:f+gT(e),y:h}}function Cne(e){var t,a=Hs(e),i=vT(e),s=(t=e.ownerDocument)==null?void 0:t.body,u=Hl(a.scrollWidth,a.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),c=Hl(a.scrollHeight,a.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),f=-i.scrollLeft+gT(e),h=-i.scrollTop;return Zo(s||a).direction==="rtl"&&(f+=Hl(a.clientWidth,s?s.clientWidth:0)-u),{width:u,height:c,x:f,y:h}}function yT(e){var t=Zo(e),a=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(a+s+i)}function tL(e){return["html","body","#document"].indexOf(ho(e))>=0?e.ownerDocument.body:oi(e)&&yT(e)?e:tL(Ng(e))}function uh(e,t){var a;t===void 0&&(t=[]);var i=tL(e),s=i===((a=e.ownerDocument)==null?void 0:a.body),u=Ba(i),c=s?[u].concat(u.visualViewport||[],yT(i)?i:[]):i,f=t.concat(c);return s?f:f.concat(uh(Ng(c)))}function Mw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Tne(e,t){var a=Iu(e,!1,t==="fixed");return a.top=a.top+e.clientTop,a.left=a.left+e.clientLeft,a.bottom=a.top+e.clientHeight,a.right=a.left+e.clientWidth,a.width=e.clientWidth,a.height=e.clientHeight,a.x=a.left,a.y=a.top,a}function xO(e,t,a){return t===Gj?Mw(wne(e,a)):Gl(t)?Tne(t,a):Mw(Cne(Hs(e)))}function Ene(e){var t=uh(Ng(e)),a=["absolute","fixed"].indexOf(Zo(e).position)>=0,i=a&&oi(e)?qh(e):e;return Gl(i)?t.filter(function(s){return Gl(s)&&Qj(s,i)&&ho(s)!=="body"}):[]}function Rne(e,t,a,i){var s=t==="clippingParents"?Ene(e):[].concat(t),u=[].concat(s,[a]),c=u[0],f=u.reduce(function(h,m){var v=xO(e,m,i);return h.top=Hl(v.top,h.top),h.right=sg(v.right,h.right),h.bottom=sg(v.bottom,h.bottom),h.left=Hl(v.left,h.left),h},xO(e,c,i));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function nL(e){var t=e.reference,a=e.element,i=e.placement,s=i?uo(i):null,u=i?Vu(i):null,c=t.x+t.width/2-a.width/2,f=t.y+t.height/2-a.height/2,h;switch(s){case Ea:h={x:c,y:t.y-a.height};break;case si:h={x:c,y:t.y+t.height};break;case li:h={x:t.x+t.width,y:f};break;case Ra:h={x:t.x-a.width,y:f};break;default:h={x:t.x,y:t.y}}var m=s?mT(s):null;if(m!=null){var v=m==="y"?"height":"width";switch(u){case zu:h[m]=h[m]-(t[v]/2-a[v]/2);break;case Ah:h[m]=h[m]+(t[v]/2-a[v]/2);break}}return h}function Oh(e,t){t===void 0&&(t={});var a=t,i=a.placement,s=i===void 0?e.placement:i,u=a.strategy,c=u===void 0?e.strategy:u,f=a.boundary,h=f===void 0?Yte:f,m=a.rootBoundary,v=m===void 0?Gj:m,y=a.elementContext,S=y===void 0?If:y,x=a.altBoundary,R=x===void 0?!1:x,E=a.padding,k=E===void 0?0:E,A=Jj(typeof k!="number"?k:eL(k,Yh)),_=S===If?qte:If,P=e.rects.popper,$=e.elements[R?_:S],L=Rne(Gl($)?$:$.contextElement||Hs(e.elements.popper),h,v,c),U=Iu(e.elements.reference),F=nL({reference:U,element:P,strategy:"absolute",placement:s}),Q=Mw(Object.assign({},P,F)),se=S===If?Q:U,ae={top:L.top-se.top+A.top,bottom:se.bottom-L.bottom+A.bottom,left:L.left-se.left+A.left,right:se.right-L.right+A.right},ue=e.modifiersData.offset;if(S===If&&ue){var Ge=ue[s];Object.keys(ae).forEach(function(Y){var ce=[li,si].indexOf(Y)>=0?1:-1,Ee=[Ea,si].indexOf(Y)>=0?"y":"x";ae[Y]+=Ge[Ee]*ce})}return ae}function kne(e,t){t===void 0&&(t={});var a=t,i=a.placement,s=a.boundary,u=a.rootBoundary,c=a.padding,f=a.flipVariations,h=a.allowedAutoPlacements,m=h===void 0?Xj:h,v=Vu(i),y=v?f?gO:gO.filter(function(R){return Vu(R)===v}):Yh,S=y.filter(function(R){return m.indexOf(R)>=0});S.length===0&&(S=y);var x=S.reduce(function(R,E){return R[E]=Oh(e,{placement:E,boundary:s,rootBoundary:u,padding:c})[uo(E)],R},{});return Object.keys(x).sort(function(R,E){return x[R]-x[E]})}function Dne(e){if(uo(e)===fT)return[];var t=zv(e);return[SO(e),t,SO(t)]}function _ne(e){var t=e.state,a=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=a.mainAxis,u=s===void 0?!0:s,c=a.altAxis,f=c===void 0?!0:c,h=a.fallbackPlacements,m=a.padding,v=a.boundary,y=a.rootBoundary,S=a.altBoundary,x=a.flipVariations,R=x===void 0?!0:x,E=a.allowedAutoPlacements,k=t.options.placement,A=uo(k),_=A===k,P=h||(_||!R?[zv(k)]:Dne(k)),$=[k].concat(P).reduce(function(Ve,Ue){return Ve.concat(uo(Ue)===fT?kne(t,{placement:Ue,boundary:v,rootBoundary:y,padding:m,flipVariations:R,allowedAutoPlacements:E}):Ue)},[]),L=t.rects.reference,U=t.rects.popper,F=new Map,Q=!0,se=$[0],ae=0;ae<$.length;ae++){var ue=$[ae],Ge=uo(ue),Y=Vu(ue)===zu,ce=[Ea,si].indexOf(Ge)>=0,Ee=ce?"width":"height",G=Oh(t,{placement:ue,boundary:v,rootBoundary:y,altBoundary:S,padding:m}),I=ce?Y?li:Ra:Y?si:Ea;L[Ee]>U[Ee]&&(I=zv(I));var X=zv(I),pe=[];if(u&&pe.push(G[Ge]<=0),f&&pe.push(G[I]<=0,G[X]<=0),pe.every(function(Ve){return Ve})){se=ue,Q=!1;break}F.set(ue,pe)}if(Q)for(var te=R?3:1,we=function(Ue){var Xe=$.find(function(Rt){var pt=F.get(Rt);if(pt)return pt.slice(0,Ue).every(function(Ct){return Ct})});if(Xe)return se=Xe,"break"},xe=te;xe>0;xe--){var be=we(xe);if(be==="break")break}t.placement!==se&&(t.modifiersData[i]._skip=!0,t.placement=se,t.reset=!0)}}const Ane={name:"flip",enabled:!0,phase:"main",fn:_ne,requiresIfExists:["offset"],data:{_skip:!1}};function wO(e,t,a){return a===void 0&&(a={x:0,y:0}),{top:e.top-t.height-a.y,right:e.right-t.width+a.x,bottom:e.bottom-t.height+a.y,left:e.left-t.width-a.x}}function CO(e){return[Ea,li,si,Ra].some(function(t){return e[t]>=0})}function One(e){var t=e.state,a=e.name,i=t.rects.reference,s=t.rects.popper,u=t.modifiersData.preventOverflow,c=Oh(t,{elementContext:"reference"}),f=Oh(t,{altBoundary:!0}),h=wO(c,i),m=wO(f,s,u),v=CO(h),y=CO(m);t.modifiersData[a]={referenceClippingOffsets:h,popperEscapeOffsets:m,isReferenceHidden:v,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":y})}const Mne={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:One};function Nne(e,t,a){var i=uo(e),s=[Ra,Ea].indexOf(i)>=0?-1:1,u=typeof a=="function"?a(Object.assign({},t,{placement:e})):a,c=u[0],f=u[1];return c=c||0,f=(f||0)*s,[Ra,li].indexOf(i)>=0?{x:f,y:c}:{x:c,y:f}}function Pne(e){var t=e.state,a=e.options,i=e.name,s=a.offset,u=s===void 0?[0,0]:s,c=Xj.reduce(function(v,y){return v[y]=Nne(y,t.rects,u),v},{}),f=c[t.placement],h=f.x,m=f.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=h,t.modifiersData.popperOffsets.y+=m),t.modifiersData[i]=c}const jne={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Pne};function Lne(e){var t=e.state,a=e.name;t.modifiersData[a]=nL({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const $ne={name:"popperOffsets",enabled:!0,phase:"read",fn:Lne,data:{}};function zne(e){return e==="x"?"y":"x"}function Fne(e){var t=e.state,a=e.options,i=e.name,s=a.mainAxis,u=s===void 0?!0:s,c=a.altAxis,f=c===void 0?!1:c,h=a.boundary,m=a.rootBoundary,v=a.altBoundary,y=a.padding,S=a.tether,x=S===void 0?!0:S,R=a.tetherOffset,E=R===void 0?0:R,k=Oh(t,{boundary:h,rootBoundary:m,padding:y,altBoundary:v}),A=uo(t.placement),_=Vu(t.placement),P=!_,$=mT(A),L=zne($),U=t.modifiersData.popperOffsets,F=t.rects.reference,Q=t.rects.popper,se=typeof E=="function"?E(Object.assign({},t.rects,{placement:t.placement})):E,ae=typeof se=="number"?{mainAxis:se,altAxis:se}:Object.assign({mainAxis:0,altAxis:0},se),ue=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Ge={x:0,y:0};if(U){if(u){var Y,ce=$==="y"?Ea:Ra,Ee=$==="y"?si:li,G=$==="y"?"height":"width",I=U[$],X=I+k[ce],pe=I-k[Ee],te=x?-Q[G]/2:0,we=_===zu?F[G]:Q[G],xe=_===zu?-Q[G]:-F[G],be=t.elements.arrow,Ve=x&&be?pT(be):{width:0,height:0},Ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Zj(),Xe=Ue[ce],Rt=Ue[Ee],pt=ch(0,F[G],Ve[G]),Ct=P?F[G]/2-te-pt-Xe-ae.mainAxis:we-pt-Xe-ae.mainAxis,ut=P?-F[G]/2+te+pt+Rt+ae.mainAxis:xe+pt+Rt+ae.mainAxis,Ft=t.elements.arrow&&qh(t.elements.arrow),ge=Ft?$==="y"?Ft.clientTop||0:Ft.clientLeft||0:0,mt=(Y=ue==null?void 0:ue[$])!=null?Y:0,kt=I+Ct-mt-ge,At=I+ut-mt,Ot=ch(x?sg(X,kt):X,I,x?Hl(pe,At):pe);U[$]=Ot,Ge[$]=Ot-I}if(f){var Et,on=$==="x"?Ea:Ra,Kt=$==="x"?si:li,De=U[L],ot=L==="y"?"height":"width",dt=De+k[on],et=De-k[Kt],St=[Ea,Ra].indexOf(A)!==-1,st=(Et=ue==null?void 0:ue[L])!=null?Et:0,Nt=St?dt:De-F[ot]-Q[ot]-st+ae.altAxis,We=St?De+F[ot]+Q[ot]-st-ae.altAxis:et,Dt=x&&St?cne(Nt,De,We):ch(x?Nt:dt,De,x?We:et);U[L]=Dt,Ge[L]=Dt-De}t.modifiersData[i]=Ge}}const Ine={name:"preventOverflow",enabled:!0,phase:"main",fn:Fne,requiresIfExists:["offset"]};function Vne(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Bne(e){return e===Ba(e)||!oi(e)?vT(e):Vne(e)}function Une(e){var t=e.getBoundingClientRect(),a=Fu(t.width)/e.offsetWidth||1,i=Fu(t.height)/e.offsetHeight||1;return a!==1||i!==1}function Hne(e,t,a){a===void 0&&(a=!1);var i=oi(t),s=oi(t)&&Une(t),u=Hs(t),c=Iu(e,s,a),f={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(i||!i&&!a)&&((ho(t)!=="body"||yT(u))&&(f=Bne(t)),oi(t)?(h=Iu(t,!0),h.x+=t.clientLeft,h.y+=t.clientTop):u&&(h.x=gT(u))),{x:c.left+f.scrollLeft-h.x,y:c.top+f.scrollTop-h.y,width:c.width,height:c.height}}function Wne(e){var t=new Map,a=new Set,i=[];e.forEach(function(u){t.set(u.name,u)});function s(u){a.add(u.name);var c=[].concat(u.requires||[],u.requiresIfExists||[]);c.forEach(function(f){if(!a.has(f)){var h=t.get(f);h&&s(h)}}),i.push(u)}return e.forEach(function(u){a.has(u.name)||s(u)}),i}function Yne(e){var t=Wne(e);return rne.reduce(function(a,i){return a.concat(t.filter(function(s){return s.phase===i}))},[])}function qne(e){var t;return function(){return t||(t=new Promise(function(a){Promise.resolve().then(function(){t=void 0,a(e())})})),t}}function Gne(e){var t=e.reduce(function(a,i){var s=a[i.name];return a[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,a},{});return Object.keys(t).map(function(a){return t[a]})}var TO={placement:"bottom",modifiers:[],strategy:"absolute"};function EO(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Xne(e){e===void 0&&(e={});var t=e,a=t.defaultModifiers,i=a===void 0?[]:a,s=t.defaultOptions,u=s===void 0?TO:s;return function(f,h,m){m===void 0&&(m=u);var v={placement:"bottom",orderedModifiers:[],options:Object.assign({},TO,u),modifiersData:{},elements:{reference:f,popper:h},attributes:{},styles:{}},y=[],S=!1,x={state:v,setOptions:function(A){var _=typeof A=="function"?A(v.options):A;E(),v.options=Object.assign({},u,v.options,_),v.scrollParents={reference:Gl(f)?uh(f):f.contextElement?uh(f.contextElement):[],popper:uh(h)};var P=Yne(Gne([].concat(i,v.options.modifiers)));return v.orderedModifiers=P.filter(function($){return $.enabled}),R(),x.update()},forceUpdate:function(){if(!S){var A=v.elements,_=A.reference,P=A.popper;if(EO(_,P)){v.rects={reference:Hne(_,qh(P),v.options.strategy==="fixed"),popper:pT(P)},v.reset=!1,v.placement=v.options.placement,v.orderedModifiers.forEach(function(ae){return v.modifiersData[ae.name]=Object.assign({},ae.data)});for(var $=0;$<v.orderedModifiers.length;$++){if(v.reset===!0){v.reset=!1,$=-1;continue}var L=v.orderedModifiers[$],U=L.fn,F=L.options,Q=F===void 0?{}:F,se=L.name;typeof U=="function"&&(v=U({state:v,options:Q,name:se,instance:x})||v)}}}},update:qne(function(){return new Promise(function(k){x.forceUpdate(),k(v)})}),destroy:function(){E(),S=!0}};if(!EO(f,h))return x;x.setOptions(m).then(function(k){!S&&m.onFirstUpdate&&m.onFirstUpdate(k)});function R(){v.orderedModifiers.forEach(function(k){var A=k.name,_=k.options,P=_===void 0?{}:_,$=k.effect;if(typeof $=="function"){var L=$({state:v,name:A,instance:x,options:P}),U=function(){};y.push(L||U)}})}function E(){y.forEach(function(k){return k()}),y=[]}return x}}var Kne=[bne,$ne,gne,one,jne,Ane,Ine,hne,Mne],Qne=Xne({defaultModifiers:Kne});const tu=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Ir={arrowShadowColor:tu("--popper-arrow-shadow-color"),arrowSize:tu("--popper-arrow-size","8px"),arrowSizeHalf:tu("--popper-arrow-size-half"),arrowBg:tu("--popper-arrow-bg"),transformOrigin:tu("--popper-transform-origin"),arrowOffset:tu("--popper-arrow-offset")};function Zne(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}const Jne={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},ere=e=>Jne[e],RO={scroll:!0,resize:!0};function tre(e){let t;return typeof e=="object"?t={enabled:!0,options:{...RO,...e}}:t={enabled:e,options:RO},t}const nre={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},rre={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{kO(e)},effect:({state:e})=>()=>{kO(e)}},kO=e=>{e.elements.popper.style.setProperty(Ir.transformOrigin.var,ere(e.placement))},are={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{ire(e)}},ire=e=>{var a;if(!e.placement)return;const t=ore(e.placement);if((a=e.elements)!=null&&a.arrow&&t){Object.assign(e.elements.arrow.style,{[t.property]:t.value,width:Ir.arrowSize.varRef,height:Ir.arrowSize.varRef,zIndex:-1});const i={[Ir.arrowSizeHalf.var]:`calc(${Ir.arrowSize.varRef} / 2 - 1px)`,[Ir.arrowOffset.var]:`calc(${Ir.arrowSizeHalf.varRef} * -1)`};for(const s in i)e.elements.arrow.style.setProperty(s,i[s])}},ore=e=>{if(e.startsWith("top"))return{property:"bottom",value:Ir.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Ir.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Ir.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Ir.arrowOffset.varRef}},sre={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{DO(e)},effect:({state:e})=>()=>{DO(e)}},DO=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const a=Zne(e.placement);a&&t.style.setProperty("--popper-arrow-default-shadow",a),Object.assign(t.style,{transform:"rotate(45deg)",background:Ir.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},lre={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},cre={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function ure(e,t="ltr"){var i;const a=((i=lre[e])==null?void 0:i[t])||e;return t==="ltr"?a:cre[e]??a}function dre(e={}){const{enabled:t=!0,modifiers:a,placement:i="bottom",strategy:s="absolute",arrowPadding:u=8,eventListeners:c=!0,offset:f,gutter:h=8,flip:m=!0,boundary:v="clippingParents",preventOverflow:y=!0,matchWidth:S,direction:x="ltr"}=e,R=w.useRef(null),E=w.useRef(null),k=w.useRef(null),A=ure(i,x),_=w.useRef(()=>{}),P=w.useCallback(()=>{var ae;!t||!R.current||!E.current||((ae=_.current)==null||ae.call(_),k.current=Qne(R.current,E.current,{placement:A,modifiers:[sre,are,rre,{...nre,enabled:!!S},{name:"eventListeners",...tre(c)},{name:"arrow",options:{padding:u}},{name:"offset",options:{offset:f??[0,h]}},{name:"flip",enabled:!!m,options:{padding:8}},{name:"preventOverflow",enabled:!!y,options:{boundary:v}},...a??[]],strategy:s}),k.current.forceUpdate(),_.current=k.current.destroy)},[A,t,a,S,c,u,f,h,m,y,v,s]);w.useEffect(()=>()=>{var ae;!R.current&&!E.current&&((ae=k.current)==null||ae.destroy(),k.current=null)},[]);const $=w.useCallback(ae=>{R.current=ae,P()},[P]),L=w.useCallback((ae={},ue=null)=>({...ae,ref:fo($,ue)}),[$]),U=w.useCallback(ae=>{E.current=ae,P()},[P]),F=w.useCallback((ae={},ue=null)=>({...ae,ref:fo(U,ue),style:{...ae.style,position:s,minWidth:S?void 0:"max-content",inset:"0 auto auto 0"}}),[s,U,S]),Q=w.useCallback((ae={},ue=null)=>{const{size:Ge,shadowColor:Y,bg:ce,style:Ee,...G}=ae;return{...G,ref:ue,"data-popper-arrow":"",style:fre(ae)}},[]),se=w.useCallback((ae={},ue=null)=>({...ae,ref:ue,"data-popper-arrow-inner":""}),[]);return{update(){var ae;(ae=k.current)==null||ae.update()},forceUpdate(){var ae;(ae=k.current)==null||ae.forceUpdate()},transformOrigin:Ir.transformOrigin.varRef,referenceRef:$,popperRef:U,getPopperProps:F,getArrowProps:Q,getArrowInnerProps:se,getReferenceProps:L}}function fre(e){const{size:t,shadowColor:a,bg:i,style:s}=e,u={...s,position:"absolute"};return t&&(u["--popper-arrow-size"]=t),a&&(u["--popper-arrow-shadow-color"]=a),i&&(u["--popper-arrow-bg"]=i),u}var hre=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},nu=new WeakMap,pv=new WeakMap,mv={},Ax=0,rL=function(e){return e&&(e.host||rL(e.parentNode))},pre=function(e,t){return t.map(function(a){if(e.contains(a))return a;var i=rL(a);return i&&e.contains(i)?i:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},mre=function(e,t,a,i){var s=pre(t,Array.isArray(e)?e:[e]);mv[a]||(mv[a]=new WeakMap);var u=mv[a],c=[],f=new Set,h=new Set(s),m=function(y){!y||f.has(y)||(f.add(y),m(y.parentNode))};s.forEach(m);var v=function(y){!y||h.has(y)||Array.prototype.forEach.call(y.children,function(S){if(f.has(S))v(S);else try{var x=S.getAttribute(i),R=x!==null&&x!=="false",E=(nu.get(S)||0)+1,k=(u.get(S)||0)+1;nu.set(S,E),u.set(S,k),c.push(S),E===1&&R&&pv.set(S,!0),k===1&&S.setAttribute(a,"true"),R||S.setAttribute(i,"true")}catch(A){console.error("aria-hidden: cannot operate on ",S,A)}})};return v(t),f.clear(),Ax++,function(){c.forEach(function(y){var S=nu.get(y)-1,x=u.get(y)-1;nu.set(y,S),u.set(y,x),S||(pv.has(y)||y.removeAttribute(i),pv.delete(y)),x||y.removeAttribute(a)}),Ax--,Ax||(nu=new WeakMap,nu=new WeakMap,pv=new WeakMap,mv={})}},vre=function(e,t,a){a===void 0&&(a="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=t||hre(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),mre(i,s,a,"aria-hidden")):function(){return null}},gre=Object.defineProperty,yre=(e,t,a)=>t in e?gre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,bre=(e,t,a)=>(yre(e,typeof t!="symbol"?t+"":t,a),a);class Sre{constructor(){bre(this,"modals"),this.modals=new Set}add(t){return this.modals.add(t),this.modals.size}remove(t){this.modals.delete(t)}isTopModal(t){if(!t)return!1;const a=Array.from(this.modals)[this.modals.size-1];return t===a}}const Nw=new Sre;function aL(e,t){const[a,i]=w.useState(0);return w.useEffect(()=>{const s=e.current;if(s){if(t){const u=Nw.add(s);i(u)}return()=>{Nw.remove(s),i(0)}}},[t,e]),a}function xre(e){const{isOpen:t,onClose:a,id:i,closeOnOverlayClick:s=!0,closeOnEsc:u=!0,useInert:c=!0,onOverlayClick:f,onEsc:h}=e,m=w.useRef(null),v=w.useRef(null),[y,S,x]=Cre(i,"chakra-modal","chakra-modal--header","chakra-modal--body");wre(m,t&&c);const R=aL(m,t),E=w.useRef(null),k=w.useCallback(se=>{E.current=se.target},[]),A=w.useCallback(se=>{se.key==="Escape"&&(se.stopPropagation(),u&&(a==null||a()),h==null||h())},[u,a,h]),[_,P]=w.useState(!1),[$,L]=w.useState(!1),U=w.useCallback((se={},ae=null)=>({role:"dialog",...se,ref:fo(ae,m),id:y,tabIndex:-1,"aria-modal":!0,"aria-labelledby":_?S:void 0,"aria-describedby":$?x:void 0,onClick:ca(se.onClick,ue=>ue.stopPropagation())}),[x,$,y,S,_]),F=w.useCallback(se=>{se.stopPropagation(),E.current===se.target&&Nw.isTopModal(m.current)&&(s&&(a==null||a()),f==null||f())},[a,s,f]),Q=w.useCallback((se={},ae=null)=>({...se,ref:fo(ae,v),onClick:ca(se.onClick,F),onKeyDown:ca(se.onKeyDown,A),onMouseDown:ca(se.onMouseDown,k)}),[A,k,F]);return{isOpen:t,onClose:a,headerId:S,bodyId:x,setBodyMounted:L,setHeaderMounted:P,dialogRef:m,overlayRef:v,getDialogProps:U,getDialogContainerProps:Q,index:R}}function wre(e,t){const a=e.current;w.useEffect(()=>{if(!(!e.current||!t))return vre(e.current)},[t,e,a])}function Cre(e,...t){const a=w.useId(),i=e||a;return w.useMemo(()=>t.map(s=>`${s}-${i}`),[i,t])}const[Tre,Xu]=ha({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[Ere,Xl]=ha({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),bT=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:e.lockFocusAcrossFrames??!0},{portalProps:a,children:i,autoFocus:s,trapFocus:u,initialFocusRef:c,finalFocusRef:f,returnFocusOnClose:h,blockScrollOnMount:m,allowPinchZoom:v,preserveScrollBarGap:y,motionPreset:S,lockFocusAcrossFrames:x,animatePresenceProps:R,onCloseComplete:E}=t,k=Yu("Modal",t),_={...xre(t),autoFocus:s,trapFocus:u,initialFocusRef:c,finalFocusRef:f,returnFocusOnClose:h,blockScrollOnMount:m,allowPinchZoom:v,preserveScrollBarGap:y,motionPreset:S,lockFocusAcrossFrames:x};return K.jsx(Ere,{value:_,children:K.jsx(Tre,{value:k,children:K.jsx(Ql,{...R,onExitComplete:E,children:_.isOpen&&K.jsx(Gu,{...a,children:i})})})})};bT.displayName="Modal";var Fv="right-scroll-bar-position",Iv="width-before-scroll-bar",Rre="with-scroll-bars-hidden",kre="--removed-body-scroll-bar-size",iL=vj(),Ox=function(){},Pg=w.forwardRef(function(e,t){var a=w.useRef(null),i=w.useState({onScrollCapture:Ox,onWheelCapture:Ox,onTouchMoveCapture:Ox}),s=i[0],u=i[1],c=e.forwardProps,f=e.children,h=e.className,m=e.removeScrollBar,v=e.enabled,y=e.shards,S=e.sideCar,x=e.noRelative,R=e.noIsolation,E=e.inert,k=e.allowPinchZoom,A=e.as,_=A===void 0?"div":A,P=e.gapMode,$=hj(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=S,U=fj([a,t]),F=ao(ao({},$),s);return w.createElement(w.Fragment,null,v&&w.createElement(L,{sideCar:iL,removeScrollBar:m,shards:y,noRelative:x,noIsolation:R,inert:E,setCallbacks:u,allowPinchZoom:!!k,lockRef:a,gapMode:P}),c?w.cloneElement(w.Children.only(f),ao(ao({},F),{ref:U})):w.createElement(_,ao({},F,{className:h,ref:U}),f))});Pg.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Pg.classNames={fullWidth:Iv,zeroRight:Fv};var _O,Dre=function(){if(_O)return _O;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _re(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Dre();return t&&e.setAttribute("nonce",t),e}function Are(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ore(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Mre=function(){var e=0,t=null;return{add:function(a){e==0&&(t=_re())&&(Are(t,a),Ore(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Nre=function(){var e=Mre();return function(t,a){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&a])}},oL=function(){var e=Nre(),t=function(a){var i=a.styles,s=a.dynamic;return e(i,s),null};return t},Pre={left:0,top:0,right:0,gap:0},Mx=function(e){return parseInt(e||"",10)||0},jre=function(e){var t=window.getComputedStyle(document.body),a=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Mx(a),Mx(i),Mx(s)]},Lre=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Pre;var t=jre(e),a=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-a+t[2]-t[0])}},$re=oL(),Du="data-scroll-locked",zre=function(e,t,a,i){var s=e.left,u=e.top,c=e.right,f=e.gap;return a===void 0&&(a="margin"),`
557
- .`.concat(Rre,` {
558
- overflow: hidden `).concat(i,`;
559
- padding-right: `).concat(f,"px ").concat(i,`;
560
- }
561
- body[`).concat(Du,`] {
562
- overflow: hidden `).concat(i,`;
563
- overscroll-behavior: contain;
564
- `).concat([t&&"position: relative ".concat(i,";"),a==="margin"&&`
565
- padding-left: `.concat(s,`px;
566
- padding-top: `).concat(u,`px;
567
- padding-right: `).concat(c,`px;
568
- margin-left:0;
569
- margin-top:0;
570
- margin-right: `).concat(f,"px ").concat(i,`;
571
- `),a==="padding"&&"padding-right: ".concat(f,"px ").concat(i,";")].filter(Boolean).join(""),`
572
- }
573
-
574
- .`).concat(Fv,` {
575
- right: `).concat(f,"px ").concat(i,`;
576
- }
577
-
578
- .`).concat(Iv,` {
579
- margin-right: `).concat(f,"px ").concat(i,`;
580
- }
581
-
582
- .`).concat(Fv," .").concat(Fv,` {
583
- right: 0 `).concat(i,`;
584
- }
585
-
586
- .`).concat(Iv," .").concat(Iv,` {
587
- margin-right: 0 `).concat(i,`;
588
- }
589
-
590
- body[`).concat(Du,`] {
591
- `).concat(kre,": ").concat(f,`px;
592
- }
593
- `)},AO=function(){var e=parseInt(document.body.getAttribute(Du)||"0",10);return isFinite(e)?e:0},Fre=function(){w.useEffect(function(){return document.body.setAttribute(Du,(AO()+1).toString()),function(){var e=AO()-1;e<=0?document.body.removeAttribute(Du):document.body.setAttribute(Du,e.toString())}},[])},Ire=function(e){var t=e.noRelative,a=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;Fre();var u=w.useMemo(function(){return Lre(s)},[s]);return w.createElement($re,{styles:zre(u,!t,s,a?"":"!important")})},Pw=!1;if(typeof window<"u")try{var vv=Object.defineProperty({},"passive",{get:function(){return Pw=!0,!0}});window.addEventListener("test",vv,vv),window.removeEventListener("test",vv,vv)}catch{Pw=!1}var ru=Pw?{passive:!1}:!1,Vre=function(e){return e.tagName==="TEXTAREA"},sL=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!Vre(e)&&a[t]==="visible")},Bre=function(e){return sL(e,"overflowY")},Ure=function(e){return sL(e,"overflowX")},OO=function(e,t){var a=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=lL(e,i);if(s){var u=cL(e,i),c=u[1],f=u[2];if(c>f)return!0}i=i.parentNode}while(i&&i!==a.body);return!1},Hre=function(e){var t=e.scrollTop,a=e.scrollHeight,i=e.clientHeight;return[t,a,i]},Wre=function(e){var t=e.scrollLeft,a=e.scrollWidth,i=e.clientWidth;return[t,a,i]},lL=function(e,t){return e==="v"?Bre(t):Ure(t)},cL=function(e,t){return e==="v"?Hre(t):Wre(t)},Yre=function(e,t){return e==="h"&&t==="rtl"?-1:1},qre=function(e,t,a,i,s){var u=Yre(e,window.getComputedStyle(t).direction),c=u*i,f=a.target,h=t.contains(f),m=!1,v=c>0,y=0,S=0;do{if(!f)break;var x=cL(e,f),R=x[0],E=x[1],k=x[2],A=E-k-u*R;(R||A)&&lL(e,f)&&(y+=A,S+=R);var _=f.parentNode;f=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!h&&f!==document.body||h&&(t.contains(f)||t===f));return(v&&(s&&Math.abs(y)<1||!s&&c>y)||!v&&(s&&Math.abs(S)<1||!s&&-c>S))&&(m=!0),m},gv=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},MO=function(e){return[e.deltaX,e.deltaY]},NO=function(e){return e&&"current"in e?e.current:e},Gre=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Xre=function(e){return`
594
- .block-interactivity-`.concat(e,` {pointer-events: none;}
595
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
596
- `)},Kre=0,au=[];function Qre(e){var t=w.useRef([]),a=w.useRef([0,0]),i=w.useRef(),s=w.useState(Kre++)[0],u=w.useState(oL)[0],c=w.useRef(e);w.useEffect(function(){c.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var E=Pee([e.lockRef.current],(e.shards||[]).map(NO),!0).filter(Boolean);return E.forEach(function(k){return k.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),E.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var f=w.useCallback(function(E,k){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!c.current.allowPinchZoom;var A=gv(E),_=a.current,P="deltaX"in E?E.deltaX:_[0]-A[0],$="deltaY"in E?E.deltaY:_[1]-A[1],L,U=E.target,F=Math.abs(P)>Math.abs($)?"h":"v";if("touches"in E&&F==="h"&&U.type==="range")return!1;var Q=window.getSelection(),se=Q&&Q.anchorNode,ae=se?se===U||se.contains(U):!1;if(ae)return!1;var ue=OO(F,U);if(!ue)return!0;if(ue?L=F:(L=F==="v"?"h":"v",ue=OO(F,U)),!ue)return!1;if(!i.current&&"changedTouches"in E&&(P||$)&&(i.current=L),!L)return!0;var Ge=i.current||L;return qre(Ge,k,E,Ge==="h"?P:$,!0)},[]),h=w.useCallback(function(E){var k=E;if(!(!au.length||au[au.length-1]!==u)){var A="deltaY"in k?MO(k):gv(k),_=t.current.filter(function(L){return L.name===k.type&&(L.target===k.target||k.target===L.shadowParent)&&Gre(L.delta,A)})[0];if(_&&_.should){k.cancelable&&k.preventDefault();return}if(!_){var P=(c.current.shards||[]).map(NO).filter(Boolean).filter(function(L){return L.contains(k.target)}),$=P.length>0?f(k,P[0]):!c.current.noIsolation;$&&k.cancelable&&k.preventDefault()}}},[]),m=w.useCallback(function(E,k,A,_){var P={name:E,delta:k,target:A,should:_,shadowParent:Zre(A)};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function($){return $!==P})},1)},[]),v=w.useCallback(function(E){a.current=gv(E),i.current=void 0},[]),y=w.useCallback(function(E){m(E.type,MO(E),E.target,f(E,e.lockRef.current))},[]),S=w.useCallback(function(E){m(E.type,gv(E),E.target,f(E,e.lockRef.current))},[]);w.useEffect(function(){return au.push(u),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:S}),document.addEventListener("wheel",h,ru),document.addEventListener("touchmove",h,ru),document.addEventListener("touchstart",v,ru),function(){au=au.filter(function(E){return E!==u}),document.removeEventListener("wheel",h,ru),document.removeEventListener("touchmove",h,ru),document.removeEventListener("touchstart",v,ru)}},[]);var x=e.removeScrollBar,R=e.inert;return w.createElement(w.Fragment,null,R?w.createElement(u,{styles:Xre(s)}):null,x?w.createElement(Ire,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Zre(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Jre=jee(iL,Qre);var uL=w.forwardRef(function(e,t){return w.createElement(Pg,ao({},e,{ref:t,sideCar:Jre}))});uL.classNames=Pg.classNames;const eae=uL;function tae(e){const{autoFocus:t,trapFocus:a,dialogRef:i,initialFocusRef:s,blockScrollOnMount:u,allowPinchZoom:c,finalFocusRef:f,returnFocusOnClose:h,preserveScrollBarGap:m,lockFocusAcrossFrames:v,isOpen:y}=Xl(),[S,x]=hC();w.useEffect(()=>{!S&&x&&setTimeout(x)},[S,x]);const R=aL(i,y);return K.jsx(Yj,{autoFocus:t,isDisabled:!a,initialFocusRef:s,finalFocusRef:f,restoreFocus:h,contentRef:i,lockFocusAcrossFrames:v,children:K.jsx(eae,{removeScrollBar:!m,allowPinchZoom:c,enabled:R===1&&u,forwardProps:!0,children:e.children})})}const nae={initial:({offsetX:e,offsetY:t,transition:a,transitionEnd:i,delay:s})=>({opacity:0,x:e,y:t,transition:(a==null?void 0:a.exit)??Xo.exit(Bl.exit,s),transitionEnd:i==null?void 0:i.exit}),enter:({transition:e,transitionEnd:t,delay:a})=>({opacity:1,x:0,y:0,transition:(e==null?void 0:e.enter)??Xo.enter(Bl.enter,a),transitionEnd:t==null?void 0:t.enter}),exit:({offsetY:e,offsetX:t,transition:a,transitionEnd:i,reverse:s,delay:u})=>{const c={x:t,y:e};return{opacity:0,transition:(a==null?void 0:a.exit)??Xo.exit(Bl.exit,u),...s?{...c,transitionEnd:i==null?void 0:i.exit}:{transitionEnd:{...c,...i==null?void 0:i.exit}}}}},Zf={initial:"initial",animate:"enter",exit:"exit",variants:nae},rae=w.forwardRef(function(t,a){const{unmountOnExit:i,in:s,reverse:u=!0,className:c,offsetX:f=0,offsetY:h=8,transition:m,transitionEnd:v,delay:y,animatePresenceProps:S,...x}=t,R=i?s&&i:!0,E=s||i?"enter":"exit",k={offsetX:f,offsetY:h,reverse:u,transition:m,transitionEnd:v,delay:y};return K.jsx(Ql,{...S,custom:k,children:R&&K.jsx(Us.div,{ref:a,className:Yt("chakra-offset-slide",c),custom:k,...Zf,animate:E,...x})})});rae.displayName="SlideFade";const aae={exit:({reverse:e,initialScale:t,transition:a,transitionEnd:i,delay:s})=>({opacity:0,...e?{scale:t,transitionEnd:i==null?void 0:i.exit}:{transitionEnd:{scale:t,...i==null?void 0:i.exit}},transition:(a==null?void 0:a.exit)??Xo.exit(Bl.exit,s)}),enter:({transitionEnd:e,transition:t,delay:a})=>({opacity:1,scale:1,transition:(t==null?void 0:t.enter)??Xo.enter(Bl.enter,a),transitionEnd:e==null?void 0:e.enter})},dL={initial:"exit",animate:"enter",exit:"exit",variants:aae},iae=w.forwardRef(function(t,a){const{unmountOnExit:i,in:s,reverse:u=!0,initialScale:c=.95,className:f,transition:h,transitionEnd:m,delay:v,animatePresenceProps:y,...S}=t,x=i?s&&i:!0,R=s||i?"enter":"exit",E={initialScale:c,reverse:u,transition:h,transitionEnd:m,delay:v};return K.jsx(Ql,{...y,custom:E,children:x&&K.jsx(Us.div,{ref:a,className:Yt("chakra-offset-slide",f),...dL,animate:R,custom:E,...S})})});iae.displayName="ScaleFade";const oae={slideInBottom:{...Zf,custom:{offsetY:16,reverse:!0}},slideInRight:{...Zf,custom:{offsetX:16,reverse:!0}},slideInTop:{...Zf,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Zf,custom:{offsetX:-16,reverse:!0}},scale:{...dL,custom:{initialScale:.95,reverse:!0}},none:{}},sae=it(Us.section),lae=e=>oae[e||"none"],fL=w.forwardRef((e,t)=>{const{preset:a,motionProps:i=lae(a),...s}=e;return K.jsx(sae,{ref:t,...i,...s})});fL.displayName="ModalTransition";const ST=qt((e,t)=>{const{className:a,children:i,containerProps:s,motionProps:u,...c}=e,{getDialogProps:f,getDialogContainerProps:h}=Xl(),m=f(c,t),v=h(s),y=Yt("chakra-modal__content",a),S=Xu(),x={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...S.dialog},R={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...S.dialogContainer},{motionPreset:E}=Xl();return K.jsx(tae,{children:K.jsx(it.div,{...v,className:"chakra-modal__content-container",tabIndex:-1,__css:R,children:K.jsx(fL,{preset:E,motionProps:u,className:y,...m,__css:x,children:i})})})});ST.displayName="ModalContent";const xT=qt((e,t)=>{const{className:a,...i}=e,{bodyId:s,setBodyMounted:u}=Xl();w.useEffect(()=>(u(!0),()=>u(!1)),[u]);const c=Yt("chakra-modal__body",a),f=Xu();return K.jsx(it.div,{ref:t,className:c,id:s,...i,__css:f.body})});xT.displayName="ModalBody";const wT=qt((e,t)=>{const{onClick:a,className:i,...s}=e,{onClose:u}=Xl(),c=Yt("chakra-modal__close-btn",i),f=Xu();return K.jsx(GC,{ref:t,__css:f.closeButton,className:c,onClick:ca(a,h=>{h.stopPropagation(),u()}),...s})});wT.displayName="ModalCloseButton";const hL=qt((e,t)=>{const{className:a,...i}=e,s=Yt("chakra-modal__footer",a),u=Xu(),c={display:"flex",alignItems:"center",justifyContent:"flex-end",...u.footer};return K.jsx(it.footer,{ref:t,...i,__css:c,className:s})});hL.displayName="ModalFooter";const CT=qt((e,t)=>{const{className:a,...i}=e,{headerId:s,setHeaderMounted:u}=Xl();w.useEffect(()=>(u(!0),()=>u(!1)),[u]);const c=Yt("chakra-modal__header",a),f=Xu(),h={flex:0,...f.header};return K.jsx(it.header,{ref:t,className:c,id:s,...i,__css:h})});CT.displayName="ModalHeader";const cae={enter:({transition:e,transitionEnd:t,delay:a}={})=>({opacity:1,transition:(e==null?void 0:e.enter)??Xo.enter(Bl.enter,a),transitionEnd:t==null?void 0:t.enter}),exit:({transition:e,transitionEnd:t,delay:a}={})=>({opacity:0,transition:(e==null?void 0:e.exit)??Xo.exit(Bl.exit,a),transitionEnd:t==null?void 0:t.exit})},pL={initial:"exit",animate:"enter",exit:"exit",variants:cae},uae=w.forwardRef(function(t,a){const{unmountOnExit:i,in:s,className:u,transition:c,transitionEnd:f,delay:h,animatePresenceProps:m,...v}=t,y=s||i?"enter":"exit",S=i?s&&i:!0,x={transition:c,transitionEnd:f,delay:h};return K.jsx(Ql,{...m,custom:x,children:S&&K.jsx(Us.div,{ref:a,className:Yt("chakra-fade",u),custom:x,...pL,animate:y,...v})})});uae.displayName="Fade";const dae=it(Us.div),TT=qt((e,t)=>{const{className:a,transition:i,motionProps:s,...u}=e,c=Yt("chakra-modal__overlay",a),h={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Xu().overlay},{motionPreset:m}=Xl(),y=s||(m==="none"?{}:pL);return K.jsx(dae,{...y,__css:h,ref:t,className:c,...u})});TT.displayName="ModalOverlay";function fae(e){var a;const t=w.version;return typeof t!="string"||t.startsWith("18.")?e==null?void 0:e.ref:(a=e==null?void 0:e.props)==null?void 0:a.ref}const mL=qt(function(t,a){const{children:i,placeholder:s,className:u,...c}=t;return K.jsxs(it.select,{...c,ref:a,className:Yt("chakra-select",u),children:[s&&K.jsx("option",{value:"",children:s}),i]})});mL.displayName="SelectField";const dh=qt((e,t)=>{var P;const a=Yu("Select",e),{rootProps:i,placeholder:s,icon:u,color:c,height:f,h,minH:m,minHeight:v,iconColor:y,iconSize:S,...x}=ea(e),[R,E]=u4(x,Q4),k=ZC(E),A={width:"100%",height:"fit-content",position:"relative",color:c},_={paddingEnd:"2rem",...a.field,_focus:{zIndex:"unset",...(P=a.field)==null?void 0:P._focus}};return K.jsxs(it.div,{className:"chakra-select__wrapper",__css:A,...R,...i,children:[K.jsx(mL,{ref:t,height:h??f,minH:m??v,placeholder:s,...k,__css:_,children:e.children}),K.jsx(vL,{"data-disabled":_i(k.disabled),...(y||c)&&{color:y||c},__css:a.icon,...S&&{fontSize:S},children:u})]})});dh.displayName="Select";const hae=e=>K.jsx("svg",{viewBox:"0 0 24 24",...e,children:K.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),pae=it("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),vL=e=>{const{children:t=K.jsx(hae,{}),...a}=e,i=w.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return K.jsx(pae,{...a,className:"chakra-select__icon-wrapper",children:w.isValidElement(t)?i:null})};vL.displayName="SelectIcon";function mae(){const e=w.useRef(!0);return w.useEffect(()=>{e.current=!1},[]),e.current}const vae=it("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),jw=Je("skeleton-start-color"),Lw=Je("skeleton-end-color"),gae=lC({from:{opacity:0},to:{opacity:1}}),yae=lC({from:{borderColor:jw.reference,background:jw.reference},to:{borderColor:Lw.reference,background:Lw.reference}}),Vv=qt((e,t)=>{const a={...e,fadeDuration:typeof e.fadeDuration=="number"?e.fadeDuration:.4,speed:typeof e.speed=="number"?e.speed:.8},i=ci("Skeleton",a),s=mae(),{startColor:u="",endColor:c="",isLoaded:f,fadeDuration:h,speed:m,className:v,fitContent:y,animation:S,...x}=ea(a),[R,E]=fJ("colors",[u,c]),k=v4(f),A=Yt("chakra-skeleton",v),_={...R&&{[jw.variable]:R},...E&&{[Lw.variable]:E}};if(f){const P=s||k?"none":`${gae} ${h}s`;return K.jsx(it.div,{ref:t,className:A,__css:{animation:P},...x})}return K.jsx(vae,{ref:t,className:A,...x,__css:{width:y?"fit-content":void 0,...i,..._,_dark:{...i._dark,..._},animation:S||`${m}s linear infinite alternate ${yae}`}})});Vv.displayName="Skeleton";const gL=e=>K.jsx(it.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});gL.displayName="StackItem";function bae(e){const{spacing:t,direction:a}=e,i={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":o4(a,s=>i[s])}}const ET=qt((e,t)=>{const{isInline:a,direction:i,align:s,justify:u,spacing:c="0.5rem",wrap:f,children:h,divider:m,className:v,shouldWrapChildren:y,...S}=e,x=a?"row":i??"column",R=w.useMemo(()=>bae({spacing:c,direction:x}),[c,x]),E=!!m,k=!y&&!E,A=w.useMemo(()=>{const P=X3(h);return k?P:P.map(($,L)=>{const U=typeof $.key<"u"?$.key:L,F=L+1===P.length,se=y?K.jsx(gL,{children:$},U):$;if(!E)return se;const ae=w.cloneElement(m,{__css:R}),ue=F?null:ae;return K.jsxs(w.Fragment,{children:[se,ue]},U)})},[m,R,E,k,y,h]),_=Yt("chakra-stack",v);return K.jsx(it.div,{ref:t,display:"flex",alignItems:s,justifyContent:u,flexDirection:x,flexWrap:f,gap:E?void 0:c,className:_,...S,children:A})});ET.displayName="Stack";const Kl=qt((e,t)=>K.jsx(ET,{align:"center",...e,direction:"row",ref:t}));Kl.displayName="HStack";const Jo=qt((e,t)=>K.jsx(ET,{align:"center",...e,direction:"column",ref:t}));Jo.displayName="VStack";const Sae=["h","minH","height","minHeight"],yL=qt((e,t)=>{const a=ci("Textarea",e),{className:i,rows:s,...u}=ea(e),c=ZC(u),f=s?Ww(a,Sae):a;return K.jsx(it.textarea,{ref:t,rows:s,...c,className:Yt("chakra-textarea",i),__css:f})});yL.displayName="Textarea";function xae(e,t){const a=e??"bottom",s={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[a];return(s==null?void 0:s[t])??a}function wae(e,t){const a=s=>({...t,...s,position:xae((s==null?void 0:s.position)??(t==null?void 0:t.position),e)}),i=s=>{const u=a(s),c=XP(u);return ro.notify(c,u)};return i.update=(s,u)=>{ro.update(s,a(u))},i.promise=(s,u)=>{const c=i({...u.loading,status:"loading",duration:null});s.then(f=>i.update(c,{status:"success",duration:5e3,...ai(u.success,f)})).catch(f=>i.update(c,{status:"error",duration:5e3,...ai(u.error,f)}))},i.closeAll=ro.closeAll,i.close=ro.close,i.isActive=ro.isActive,i}function RT(e){const{theme:t}=BP(),a=NJ();return w.useMemo(()=>wae(t.direction,{...a,...e}),[e,t.direction,a])}const Cae={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},$w=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},Bv=e=>{var t,a;return((a=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:a.defaultView)||window};function Tae(e={}){const{openDelay:t=0,closeDelay:a=0,closeOnClick:i=!0,closeOnMouseDown:s,closeOnScroll:u,closeOnPointerDown:c=s,closeOnEsc:f=!0,onOpen:h,onClose:m,placement:v,id:y,isOpen:S,defaultIsOpen:x,arrowSize:R=10,arrowShadowColor:E,arrowPadding:k,modifiers:A,isDisabled:_,gutter:P,offset:$,direction:L,...U}=e,{isOpen:F,onOpen:Q,onClose:se}=Ux({isOpen:S,defaultIsOpen:x,onOpen:h,onClose:m}),{referenceRef:ae,getPopperProps:ue,getArrowInnerProps:Ge,getArrowProps:Y}=dre({enabled:F,placement:v,arrowPadding:k,modifiers:A,gutter:P,offset:$,direction:L}),ce=w.useId(),G=`tooltip-${y??ce}`,I=w.useRef(null),X=w.useRef(void 0),pe=w.useCallback(()=>{X.current&&(clearTimeout(X.current),X.current=void 0)},[]),te=w.useRef(void 0),we=w.useCallback(()=>{te.current&&(clearTimeout(te.current),te.current=void 0)},[]),xe=w.useCallback(()=>{we(),se()},[se,we]),be=Eae(I,xe),Ve=w.useCallback(()=>{if(!_&&!X.current){F&&be();const ge=Bv(I);X.current=ge.setTimeout(Q,t)}},[be,_,F,Q,t]),Ue=w.useCallback(()=>{pe();const ge=Bv(I);te.current=ge.setTimeout(xe,a)},[a,xe,pe]),Xe=w.useCallback(()=>{F&&i&&Ue()},[i,Ue,F]),Rt=w.useCallback(()=>{F&&c&&Ue()},[c,Ue,F]),pt=w.useCallback(ge=>{F&&ge.key==="Escape"&&Ue()},[F,Ue]);HS(()=>$w(I),"keydown",f?pt:void 0),HS(()=>{if(!u)return null;const ge=I.current;if(!ge)return null;const mt=TM(ge);return mt.localName==="body"?Bv(I):mt},"scroll",()=>{F&&u&&xe()},{passive:!0,capture:!0}),w.useEffect(()=>{_&&(pe(),F&&se())},[_,F,se,pe]),w.useEffect(()=>()=>{pe(),we()},[pe,we]),HS(()=>I.current,"pointerleave",Ue);const Ct=w.useCallback((ge={},mt=null)=>({...ge,ref:fo(I,mt,ae),onPointerEnter:ca(ge.onPointerEnter,At=>{At.pointerType!=="touch"&&Ve()}),onClick:ca(ge.onClick,Xe),onPointerDown:ca(ge.onPointerDown,Rt),onFocus:ca(ge.onFocus,Ve),onBlur:ca(ge.onBlur,Ue),"aria-describedby":F?G:void 0}),[Ve,Ue,Rt,F,G,Xe,ae]),ut=w.useCallback((ge={},mt=null)=>ue({...ge,style:{...ge.style,[Ir.arrowSize.var]:R?`${R}px`:void 0,[Ir.arrowShadowColor.var]:E}},mt),[ue,R,E]),Ft=w.useCallback((ge={},mt=null)=>{const kt={...ge.style,position:"relative",transformOrigin:Ir.transformOrigin.varRef};return{ref:mt,...U,...ge,id:G,role:"tooltip",style:kt}},[U,G]);return{isOpen:F,show:Ve,hide:Ue,getTriggerProps:Ct,getTooltipProps:Ft,getTooltipPositionerProps:ut,getArrowProps:Y,getArrowInnerProps:Ge}}const Nx="chakra-ui:close-tooltip";function Eae(e,t){return w.useEffect(()=>{const a=$w(e);return a.addEventListener(Nx,t),()=>a.removeEventListener(Nx,t)},[t,e]),()=>{const a=$w(e),i=Bv(e);a.dispatchEvent(new i.CustomEvent(Nx))}}const Rae=it(Us.div),Ji=qt((e,t)=>{const a=ci("Tooltip",e),i=ea(e),s=WC(),{children:u,label:c,shouldWrapChildren:f,"aria-label":h,hasArrow:m,bg:v,portalProps:y,background:S,backgroundColor:x,bgColor:R,motionProps:E,animatePresenceProps:k,...A}=i,_=S??x??v??R;if(_){a.bg=_;const ae=s6(s,"colors",_);a[Ir.arrowBg.var]=ae}const P=Tae({...A,direction:s.direction}),$=!w.isValidElement(u)||f;let L;if($)L=K.jsx(it.span,{display:"inline-block",tabIndex:0,...P.getTriggerProps(),children:u});else{const ae=w.Children.only(u);L=w.cloneElement(ae,P.getTriggerProps(ae.props,fae(ae)))}const U=!!h,F=P.getTooltipProps({},t),Q=U?Ww(F,["role","id"]):F,se=CM(F,["role","id"]);return c?K.jsxs(K.Fragment,{children:[L,K.jsx(Ql,{...k,children:P.isOpen&&K.jsx(Gu,{...y,children:K.jsx(it.div,{...P.getTooltipPositionerProps(),__css:{zIndex:a.zIndex,pointerEvents:"none"},children:K.jsxs(Rae,{variants:Cae,initial:"exit",animate:"enter",exit:"exit",...E,...Q,__css:a,children:[c,U&&K.jsx(it.span,{srOnly:!0,...se,children:h}),m&&K.jsx(it.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:K.jsx(it.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:a.bg}})})]})})})})]}):K.jsx(K.Fragment,{children:u})});Ji.displayName="Tooltip";const zw=qt(function(t,a){const i=ci("Heading",t),{className:s,...u}=ea(t);return K.jsx(it.h2,{ref:a,className:Yt("chakra-heading",t.className),...u,__css:i})});zw.displayName="Heading";const Vr=qt(function(t,a){const i=ci("Text",t),{className:s,align:u,decoration:c,casing:f,...h}=ea(t),m=xM({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return K.jsx(it.p,{ref:a,className:Yt("chakra-text",t.className),...m,...h,__css:i})});Vr.displayName="Text";const jg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ku(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function kT(e){return"nodeType"in e}function pa(e){var t,a;return e?Ku(e)?e:kT(e)&&(t=(a=e.ownerDocument)==null?void 0:a.defaultView)!=null?t:window:window}function DT(e){const{Document:t}=pa(e);return e instanceof t}function Gh(e){return Ku(e)?!1:e instanceof pa(e).HTMLElement}function bL(e){return e instanceof pa(e).SVGElement}function Qu(e){return e?Ku(e)?e.document:kT(e)?DT(e)?e:Gh(e)||bL(e)?e.ownerDocument:document:document:document}const es=jg?w.useLayoutEffect:w.useEffect;function Lg(e){const t=w.useRef(e);return es(()=>{t.current=e}),w.useCallback(function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return t.current==null?void 0:t.current(...i)},[])}function kae(){const e=w.useRef(null),t=w.useCallback((i,s)=>{e.current=setInterval(i,s)},[]),a=w.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,a]}function Mh(e,t){t===void 0&&(t=[e]);const a=w.useRef(e);return es(()=>{a.current!==e&&(a.current=e)},t),a}function Xh(e,t){const a=w.useRef();return w.useMemo(()=>{const i=e(a.current);return a.current=i,i},[...t])}function lg(e){const t=Lg(e),a=w.useRef(null),i=w.useCallback(s=>{s!==a.current&&(t==null||t(s,a.current)),a.current=s},[]);return[a,i]}function cg(e){const t=w.useRef();return w.useEffect(()=>{t.current=e},[e]),t.current}let Px={};function $g(e,t){return w.useMemo(()=>{if(t)return t;const a=Px[e]==null?0:Px[e]+1;return Px[e]=a,e+"-"+a},[e,t])}function SL(e){return function(t){for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];return i.reduce((u,c)=>{const f=Object.entries(c);for(const[h,m]of f){const v=u[h];v!=null&&(u[h]=v+e*m)}return u},{...t})}}const _u=SL(1),ug=SL(-1);function Dae(e){return"clientX"in e&&"clientY"in e}function _T(e){if(!e)return!1;const{KeyboardEvent:t}=pa(e.target);return t&&e instanceof t}function _ae(e){if(!e)return!1;const{TouchEvent:t}=pa(e.target);return t&&e instanceof t}function dg(e){if(_ae(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:a}=e.touches[0];return{x:t,y:a}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:a}=e.changedTouches[0];return{x:t,y:a}}}return Dae(e)?{x:e.clientX,y:e.clientY}:null}const Nh=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:a}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(a?Math.round(a):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:a}=e;return"scaleX("+t+") scaleY("+a+")"}},Transform:{toString(e){if(e)return[Nh.Translate.toString(e),Nh.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:a,easing:i}=e;return t+" "+a+"ms "+i}}}),PO="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Aae(e){return e.matches(PO)?e:e.querySelector(PO)}const Oae={display:"none"};function Mae(e){let{id:t,value:a}=e;return dn.createElement("div",{id:t,style:Oae},a)}function Nae(e){let{id:t,announcement:a,ariaLiveType:i="assertive"}=e;const s={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return dn.createElement("div",{id:t,style:s,role:"status","aria-live":i,"aria-atomic":!0},a)}function Pae(){const[e,t]=w.useState("");return{announce:w.useCallback(i=>{i!=null&&t(i)},[]),announcement:e}}const xL=w.createContext(null);function jae(e){const t=w.useContext(xL);w.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Lae(){const[e]=w.useState(()=>new Set),t=w.useCallback(i=>(e.add(i),()=>e.delete(i)),[e]);return[w.useCallback(i=>{let{type:s,event:u}=i;e.forEach(c=>{var f;return(f=c[s])==null?void 0:f.call(c,u)})},[e]),t]}const $ae={draggable:`
597
- To pick up a draggable item, press the space bar.
598
- While dragging, use the arrow keys to move the item.
599
- Press space again to drop the item in its new position, or press escape to cancel.
600
- `},zae={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:a}=e;return a?"Draggable item "+t.id+" was moved over droppable area "+a.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:a}=e;return a?"Draggable item "+t.id+" was dropped over droppable area "+a.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Fae(e){let{announcements:t=zae,container:a,hiddenTextDescribedById:i,screenReaderInstructions:s=$ae}=e;const{announce:u,announcement:c}=Pae(),f=$g("DndLiveRegion"),[h,m]=w.useState(!1);if(w.useEffect(()=>{m(!0)},[]),jae(w.useMemo(()=>({onDragStart(y){let{active:S}=y;u(t.onDragStart({active:S}))},onDragMove(y){let{active:S,over:x}=y;t.onDragMove&&u(t.onDragMove({active:S,over:x}))},onDragOver(y){let{active:S,over:x}=y;u(t.onDragOver({active:S,over:x}))},onDragEnd(y){let{active:S,over:x}=y;u(t.onDragEnd({active:S,over:x}))},onDragCancel(y){let{active:S,over:x}=y;u(t.onDragCancel({active:S,over:x}))}}),[u,t])),!h)return null;const v=dn.createElement(dn.Fragment,null,dn.createElement(Mae,{id:i,value:s.draggable}),dn.createElement(Nae,{id:f,announcement:c}));return a?$s.createPortal(v,a):v}var wr;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(wr||(wr={}));function fg(){}function Iae(e,t){return w.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Vae(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return w.useMemo(()=>[...t].filter(i=>i!=null),[...t])}const Mi=Object.freeze({x:0,y:0});function Bae(e,t){const a=dg(e);if(!a)return"0 0";const i={x:(a.x-t.left)/t.width*100,y:(a.y-t.top)/t.height*100};return i.x+"% "+i.y+"%"}function Uae(e,t){let{data:{value:a}}=e,{data:{value:i}}=t;return i-a}function Hae(e,t){if(!e||e.length===0)return null;const[a]=e;return t?a[t]:a}function Wae(e,t){const a=Math.max(t.top,e.top),i=Math.max(t.left,e.left),s=Math.min(t.left+t.width,e.left+e.width),u=Math.min(t.top+t.height,e.top+e.height),c=s-i,f=u-a;if(i<s&&a<u){const h=t.width*t.height,m=e.width*e.height,v=c*f,y=v/(h+m-v);return Number(y.toFixed(4))}return 0}const Yae=e=>{let{collisionRect:t,droppableRects:a,droppableContainers:i}=e;const s=[];for(const u of i){const{id:c}=u,f=a.get(c);if(f){const h=Wae(f,t);h>0&&s.push({id:c,data:{droppableContainer:u,value:h}})}}return s.sort(Uae)};function qae(e,t,a){return{...e,scaleX:t&&a?t.width/a.width:1,scaleY:t&&a?t.height/a.height:1}}function wL(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Mi}function Gae(e){return function(a){for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];return s.reduce((c,f)=>({...c,top:c.top+e*f.y,bottom:c.bottom+e*f.y,left:c.left+e*f.x,right:c.right+e*f.x}),{...a})}}const Xae=Gae(1);function CL(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Kae(e,t,a){const i=CL(t);if(!i)return e;const{scaleX:s,scaleY:u,x:c,y:f}=i,h=e.left-c-(1-s)*parseFloat(a),m=e.top-f-(1-u)*parseFloat(a.slice(a.indexOf(" ")+1)),v=s?e.width/s:e.width,y=u?e.height/u:e.height;return{width:v,height:y,top:m,right:h+v,bottom:m+y,left:h}}const Qae={ignoreTransform:!1};function Kh(e,t){t===void 0&&(t=Qae);let a=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:m,transformOrigin:v}=pa(e).getComputedStyle(e);m&&(a=Kae(a,m,v))}const{top:i,left:s,width:u,height:c,bottom:f,right:h}=a;return{top:i,left:s,width:u,height:c,bottom:f,right:h}}function jO(e){return Kh(e,{ignoreTransform:!0})}function Zae(e){const t=e.innerWidth,a=e.innerHeight;return{top:0,left:0,right:t,bottom:a,width:t,height:a}}function Jae(e,t){return t===void 0&&(t=pa(e).getComputedStyle(e)),t.position==="fixed"}function eie(e,t){t===void 0&&(t=pa(e).getComputedStyle(e));const a=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(s=>{const u=t[s];return typeof u=="string"?a.test(u):!1})}function AT(e,t){const a=[];function i(s){if(t!=null&&a.length>=t||!s)return a;if(DT(s)&&s.scrollingElement!=null&&!a.includes(s.scrollingElement))return a.push(s.scrollingElement),a;if(!Gh(s)||bL(s)||a.includes(s))return a;const u=pa(e).getComputedStyle(s);return s!==e&&eie(s,u)&&a.push(s),Jae(s,u)?a:i(s.parentNode)}return e?i(e):a}function TL(e){const[t]=AT(e,1);return t??null}function jx(e){return!jg||!e?null:Ku(e)?e:kT(e)?DT(e)||e===Qu(e).scrollingElement?window:Gh(e)?e:null:null}function EL(e){return Ku(e)?e.scrollX:e.scrollLeft}function RL(e){return Ku(e)?e.scrollY:e.scrollTop}function Fw(e){return{x:EL(e),y:RL(e)}}var kr;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(kr||(kr={}));function kL(e){return!jg||!e?!1:e===document.scrollingElement}function DL(e){const t={x:0,y:0},a=kL(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-a.width,y:e.scrollHeight-a.height},s=e.scrollTop<=t.y,u=e.scrollLeft<=t.x,c=e.scrollTop>=i.y,f=e.scrollLeft>=i.x;return{isTop:s,isLeft:u,isBottom:c,isRight:f,maxScroll:i,minScroll:t}}const tie={x:.2,y:.2};function nie(e,t,a,i,s){let{top:u,left:c,right:f,bottom:h}=a;i===void 0&&(i=10),s===void 0&&(s=tie);const{isTop:m,isBottom:v,isLeft:y,isRight:S}=DL(e),x={x:0,y:0},R={x:0,y:0},E={height:t.height*s.y,width:t.width*s.x};return!m&&u<=t.top+E.height?(x.y=kr.Backward,R.y=i*Math.abs((t.top+E.height-u)/E.height)):!v&&h>=t.bottom-E.height&&(x.y=kr.Forward,R.y=i*Math.abs((t.bottom-E.height-h)/E.height)),!S&&f>=t.right-E.width?(x.x=kr.Forward,R.x=i*Math.abs((t.right-E.width-f)/E.width)):!y&&c<=t.left+E.width&&(x.x=kr.Backward,R.x=i*Math.abs((t.left+E.width-c)/E.width)),{direction:x,speed:R}}function rie(e){if(e===document.scrollingElement){const{innerWidth:u,innerHeight:c}=window;return{top:0,left:0,right:u,bottom:c,width:u,height:c}}const{top:t,left:a,right:i,bottom:s}=e.getBoundingClientRect();return{top:t,left:a,right:i,bottom:s,width:e.clientWidth,height:e.clientHeight}}function _L(e){return e.reduce((t,a)=>_u(t,Fw(a)),Mi)}function aie(e){return e.reduce((t,a)=>t+EL(a),0)}function iie(e){return e.reduce((t,a)=>t+RL(a),0)}function AL(e,t){if(t===void 0&&(t=Kh),!e)return;const{top:a,left:i,bottom:s,right:u}=t(e);TL(e)&&(s<=0||u<=0||a>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const oie=[["x",["left","right"],aie],["y",["top","bottom"],iie]];class OT{constructor(t,a){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const i=AT(a),s=_L(i);this.rect={...t},this.width=t.width,this.height=t.height;for(const[u,c,f]of oie)for(const h of c)Object.defineProperty(this,h,{get:()=>{const m=f(i),v=s[u]-m;return this.rect[h]+v},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class fh{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(a=>{var i;return(i=this.target)==null?void 0:i.removeEventListener(...a)})},this.target=t}add(t,a,i){var s;(s=this.target)==null||s.addEventListener(t,a,i),this.listeners.push([t,a,i])}}function sie(e){const{EventTarget:t}=pa(e);return e instanceof t?e:Qu(e)}function Lx(e,t){const a=Math.abs(e.x),i=Math.abs(e.y);return typeof t=="number"?Math.sqrt(a**2+i**2)>t:"x"in t&&"y"in t?a>t.x&&i>t.y:"x"in t?a>t.x:"y"in t?i>t.y:!1}var ni;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(ni||(ni={}));function LO(e){e.preventDefault()}function lie(e){e.stopPropagation()}var _n;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(_n||(_n={}));const OL={start:[_n.Space,_n.Enter],cancel:[_n.Esc],end:[_n.Space,_n.Enter,_n.Tab]},cie=(e,t)=>{let{currentCoordinates:a}=t;switch(e.code){case _n.Right:return{...a,x:a.x+25};case _n.Left:return{...a,x:a.x-25};case _n.Down:return{...a,y:a.y+25};case _n.Up:return{...a,y:a.y-25}}};class ML{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:a}}=t;this.props=t,this.listeners=new fh(Qu(a)),this.windowListeners=new fh(pa(a)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ni.Resize,this.handleCancel),this.windowListeners.add(ni.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ni.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:a}=this.props,i=t.node.current;i&&AL(i),a(Mi)}handleKeyDown(t){if(_T(t)){const{active:a,context:i,options:s}=this.props,{keyboardCodes:u=OL,coordinateGetter:c=cie,scrollBehavior:f="smooth"}=s,{code:h}=t;if(u.end.includes(h)){this.handleEnd(t);return}if(u.cancel.includes(h)){this.handleCancel(t);return}const{collisionRect:m}=i.current,v=m?{x:m.left,y:m.top}:Mi;this.referenceCoordinates||(this.referenceCoordinates=v);const y=c(t,{active:a,context:i.current,currentCoordinates:v});if(y){const S=ug(y,v),x={x:0,y:0},{scrollableAncestors:R}=i.current;for(const E of R){const k=t.code,{isTop:A,isRight:_,isLeft:P,isBottom:$,maxScroll:L,minScroll:U}=DL(E),F=rie(E),Q={x:Math.min(k===_n.Right?F.right-F.width/2:F.right,Math.max(k===_n.Right?F.left:F.left+F.width/2,y.x)),y:Math.min(k===_n.Down?F.bottom-F.height/2:F.bottom,Math.max(k===_n.Down?F.top:F.top+F.height/2,y.y))},se=k===_n.Right&&!_||k===_n.Left&&!P,ae=k===_n.Down&&!$||k===_n.Up&&!A;if(se&&Q.x!==y.x){const ue=E.scrollLeft+S.x,Ge=k===_n.Right&&ue<=L.x||k===_n.Left&&ue>=U.x;if(Ge&&!S.y){E.scrollTo({left:ue,behavior:f});return}Ge?x.x=E.scrollLeft-ue:x.x=k===_n.Right?E.scrollLeft-L.x:E.scrollLeft-U.x,x.x&&E.scrollBy({left:-x.x,behavior:f});break}else if(ae&&Q.y!==y.y){const ue=E.scrollTop+S.y,Ge=k===_n.Down&&ue<=L.y||k===_n.Up&&ue>=U.y;if(Ge&&!S.x){E.scrollTo({top:ue,behavior:f});return}Ge?x.y=E.scrollTop-ue:x.y=k===_n.Down?E.scrollTop-L.y:E.scrollTop-U.y,x.y&&E.scrollBy({top:-x.y,behavior:f});break}}this.handleMove(t,_u(ug(y,this.referenceCoordinates),x))}}}handleMove(t,a){const{onMove:i}=this.props;t.preventDefault(),i(a)}handleEnd(t){const{onEnd:a}=this.props;t.preventDefault(),this.detach(),a()}handleCancel(t){const{onCancel:a}=this.props;t.preventDefault(),this.detach(),a()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}ML.activators=[{eventName:"onKeyDown",handler:(e,t,a)=>{let{keyboardCodes:i=OL,onActivation:s}=t,{active:u}=a;const{code:c}=e.nativeEvent;if(i.start.includes(c)){const f=u.activatorNode.current;return f&&e.target!==f?!1:(e.preventDefault(),s==null||s({event:e.nativeEvent}),!0)}return!1}}];function $O(e){return!!(e&&"distance"in e)}function zO(e){return!!(e&&"delay"in e)}class MT{constructor(t,a,i){var s;i===void 0&&(i=sie(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=a;const{event:u}=t,{target:c}=u;this.props=t,this.events=a,this.document=Qu(c),this.documentListeners=new fh(this.document),this.listeners=new fh(i),this.windowListeners=new fh(pa(c)),this.initialCoordinates=(s=dg(u))!=null?s:Mi,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:a,bypassActivationConstraint:i}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(ni.Resize,this.handleCancel),this.windowListeners.add(ni.DragStart,LO),this.windowListeners.add(ni.VisibilityChange,this.handleCancel),this.windowListeners.add(ni.ContextMenu,LO),this.documentListeners.add(ni.Keydown,this.handleKeydown),a){if(i!=null&&i({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(zO(a)){this.timeoutId=setTimeout(this.handleStart,a.delay),this.handlePending(a);return}if($O(a)){this.handlePending(a);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,a){const{active:i,onPending:s}=this.props;s(i,t,this.initialCoordinates,a)}handleStart(){const{initialCoordinates:t}=this,{onStart:a}=this.props;t&&(this.activated=!0,this.documentListeners.add(ni.Click,lie,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ni.SelectionChange,this.removeTextSelection),a(t))}handleMove(t){var a;const{activated:i,initialCoordinates:s,props:u}=this,{onMove:c,options:{activationConstraint:f}}=u;if(!s)return;const h=(a=dg(t))!=null?a:Mi,m=ug(s,h);if(!i&&f){if($O(f)){if(f.tolerance!=null&&Lx(m,f.tolerance))return this.handleCancel();if(Lx(m,f.distance))return this.handleStart()}if(zO(f)&&Lx(m,f.tolerance))return this.handleCancel();this.handlePending(f,m);return}t.cancelable&&t.preventDefault(),c(h)}handleEnd(){const{onAbort:t,onEnd:a}=this.props;this.detach(),this.activated||t(this.props.active),a()}handleCancel(){const{onAbort:t,onCancel:a}=this.props;this.detach(),this.activated||t(this.props.active),a()}handleKeydown(t){t.code===_n.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const uie={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class NT extends MT{constructor(t){const{event:a}=t,i=Qu(a.target);super(t,uie,i)}}NT.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:i}=t;return!a.isPrimary||a.button!==0?!1:(i==null||i({event:a}),!0)}}];const die={move:{name:"mousemove"},end:{name:"mouseup"}};var Iw;(function(e){e[e.RightClick=2]="RightClick"})(Iw||(Iw={}));class fie extends MT{constructor(t){super(t,die,Qu(t.event.target))}}fie.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:i}=t;return a.button===Iw.RightClick?!1:(i==null||i({event:a}),!0)}}];const $x={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class hie extends MT{constructor(t){super(t,$x)}static setup(){return window.addEventListener($x.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener($x.move.name,t)};function t(){}}}hie.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:i}=t;const{touches:s}=a;return s.length>1?!1:(i==null||i({event:a}),!0)}}];var hh;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(hh||(hh={}));var hg;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(hg||(hg={}));function pie(e){let{acceleration:t,activator:a=hh.Pointer,canScroll:i,draggingRect:s,enabled:u,interval:c=5,order:f=hg.TreeOrder,pointerCoordinates:h,scrollableAncestors:m,scrollableAncestorRects:v,delta:y,threshold:S}=e;const x=vie({delta:y,disabled:!u}),[R,E]=kae(),k=w.useRef({x:0,y:0}),A=w.useRef({x:0,y:0}),_=w.useMemo(()=>{switch(a){case hh.Pointer:return h?{top:h.y,bottom:h.y,left:h.x,right:h.x}:null;case hh.DraggableRect:return s}},[a,s,h]),P=w.useRef(null),$=w.useCallback(()=>{const U=P.current;if(!U)return;const F=k.current.x*A.current.x,Q=k.current.y*A.current.y;U.scrollBy(F,Q)},[]),L=w.useMemo(()=>f===hg.TreeOrder?[...m].reverse():m,[f,m]);w.useEffect(()=>{if(!u||!m.length||!_){E();return}for(const U of L){if((i==null?void 0:i(U))===!1)continue;const F=m.indexOf(U),Q=v[F];if(!Q)continue;const{direction:se,speed:ae}=nie(U,Q,_,t,S);for(const ue of["x","y"])x[ue][se[ue]]||(ae[ue]=0,se[ue]=0);if(ae.x>0||ae.y>0){E(),P.current=U,R($,c),k.current=ae,A.current=se;return}}k.current={x:0,y:0},A.current={x:0,y:0},E()},[t,$,i,E,u,c,JSON.stringify(_),JSON.stringify(x),R,m,L,v,JSON.stringify(S)])}const mie={x:{[kr.Backward]:!1,[kr.Forward]:!1},y:{[kr.Backward]:!1,[kr.Forward]:!1}};function vie(e){let{delta:t,disabled:a}=e;const i=cg(t);return Xh(s=>{if(a||!i||!s)return mie;const u={x:Math.sign(t.x-i.x),y:Math.sign(t.y-i.y)};return{x:{[kr.Backward]:s.x[kr.Backward]||u.x===-1,[kr.Forward]:s.x[kr.Forward]||u.x===1},y:{[kr.Backward]:s.y[kr.Backward]||u.y===-1,[kr.Forward]:s.y[kr.Forward]||u.y===1}}},[a,t,i])}function gie(e,t){const a=t!=null?e.get(t):void 0,i=a?a.node.current:null;return Xh(s=>{var u;return t==null?null:(u=i??s)!=null?u:null},[i,t])}function yie(e,t){return w.useMemo(()=>e.reduce((a,i)=>{const{sensor:s}=i,u=s.activators.map(c=>({eventName:c.eventName,handler:t(c.handler,i)}));return[...a,...u]},[]),[e,t])}var Ph;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Ph||(Ph={}));var Vw;(function(e){e.Optimized="optimized"})(Vw||(Vw={}));const FO=new Map;function bie(e,t){let{dragging:a,dependencies:i,config:s}=t;const[u,c]=w.useState(null),{frequency:f,measure:h,strategy:m}=s,v=w.useRef(e),y=k(),S=Mh(y),x=w.useCallback(function(A){A===void 0&&(A=[]),!S.current&&c(_=>_===null?A:_.concat(A.filter(P=>!_.includes(P))))},[S]),R=w.useRef(null),E=Xh(A=>{if(y&&!a)return FO;if(!A||A===FO||v.current!==e||u!=null){const _=new Map;for(let P of e){if(!P)continue;if(u&&u.length>0&&!u.includes(P.id)&&P.rect.current){_.set(P.id,P.rect.current);continue}const $=P.node.current,L=$?new OT(h($),$):null;P.rect.current=L,L&&_.set(P.id,L)}return _}return A},[e,u,a,y,h]);return w.useEffect(()=>{v.current=e},[e]),w.useEffect(()=>{y||x()},[a,y]),w.useEffect(()=>{u&&u.length>0&&c(null)},[JSON.stringify(u)]),w.useEffect(()=>{y||typeof f!="number"||R.current!==null||(R.current=setTimeout(()=>{x(),R.current=null},f))},[f,y,x,...i]),{droppableRects:E,measureDroppableContainers:x,measuringScheduled:u!=null};function k(){switch(m){case Ph.Always:return!1;case Ph.BeforeDragging:return a;default:return!a}}}function PT(e,t){return Xh(a=>e?a||(typeof t=="function"?t(e):e):null,[t,e])}function Sie(e,t){return PT(e,t)}function xie(e){let{callback:t,disabled:a}=e;const i=Lg(t),s=w.useMemo(()=>{if(a||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:u}=window;return new u(i)},[i,a]);return w.useEffect(()=>()=>s==null?void 0:s.disconnect(),[s]),s}function zg(e){let{callback:t,disabled:a}=e;const i=Lg(t),s=w.useMemo(()=>{if(a||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:u}=window;return new u(i)},[a]);return w.useEffect(()=>()=>s==null?void 0:s.disconnect(),[s]),s}function wie(e){return new OT(Kh(e),e)}function IO(e,t,a){t===void 0&&(t=wie);const[i,s]=w.useState(null);function u(){s(h=>{if(!e)return null;if(e.isConnected===!1){var m;return(m=h??a)!=null?m:null}const v=t(e);return JSON.stringify(h)===JSON.stringify(v)?h:v})}const c=xie({callback(h){if(e)for(const m of h){const{type:v,target:y}=m;if(v==="childList"&&y instanceof HTMLElement&&y.contains(e)){u();break}}}}),f=zg({callback:u});return es(()=>{u(),e?(f==null||f.observe(e),c==null||c.observe(document.body,{childList:!0,subtree:!0})):(f==null||f.disconnect(),c==null||c.disconnect())},[e]),i}function Cie(e){const t=PT(e);return wL(e,t)}const VO=[];function Tie(e){const t=w.useRef(e),a=Xh(i=>e?i&&i!==VO&&e&&t.current&&e.parentNode===t.current.parentNode?i:AT(e):VO,[e]);return w.useEffect(()=>{t.current=e},[e]),a}function Eie(e){const[t,a]=w.useState(null),i=w.useRef(e),s=w.useCallback(u=>{const c=jx(u.target);c&&a(f=>f?(f.set(c,Fw(c)),new Map(f)):null)},[]);return w.useEffect(()=>{const u=i.current;if(e!==u){c(u);const f=e.map(h=>{const m=jx(h);return m?(m.addEventListener("scroll",s,{passive:!0}),[m,Fw(m)]):null}).filter(h=>h!=null);a(f.length?new Map(f):null),i.current=e}return()=>{c(e),c(u)};function c(f){f.forEach(h=>{const m=jx(h);m==null||m.removeEventListener("scroll",s)})}},[s,e]),w.useMemo(()=>e.length?t?Array.from(t.values()).reduce((u,c)=>_u(u,c),Mi):_L(e):Mi,[e,t])}function BO(e,t){t===void 0&&(t=[]);const a=w.useRef(null);return w.useEffect(()=>{a.current=null},t),w.useEffect(()=>{const i=e!==Mi;i&&!a.current&&(a.current=e),!i&&a.current&&(a.current=null)},[e]),a.current?ug(e,a.current):Mi}function Rie(e){w.useEffect(()=>{if(!jg)return;const t=e.map(a=>{let{sensor:i}=a;return i.setup==null?void 0:i.setup()});return()=>{for(const a of t)a==null||a()}},e.map(t=>{let{sensor:a}=t;return a}))}function kie(e,t){return w.useMemo(()=>e.reduce((a,i)=>{let{eventName:s,handler:u}=i;return a[s]=c=>{u(c,t)},a},{}),[e,t])}function NL(e){return w.useMemo(()=>e?Zae(e):null,[e])}const UO=[];function Die(e,t){t===void 0&&(t=Kh);const[a]=e,i=NL(a?pa(a):null),[s,u]=w.useState(UO);function c(){u(()=>e.length?e.map(h=>kL(h)?i:new OT(t(h),h)):UO)}const f=zg({callback:c});return es(()=>{f==null||f.disconnect(),c(),e.forEach(h=>f==null?void 0:f.observe(h))},[e]),s}function PL(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Gh(t)?t:e}function _ie(e){let{measure:t}=e;const[a,i]=w.useState(null),s=w.useCallback(m=>{for(const{target:v}of m)if(Gh(v)){i(y=>{const S=t(v);return y?{...y,width:S.width,height:S.height}:S});break}},[t]),u=zg({callback:s}),c=w.useCallback(m=>{const v=PL(m);u==null||u.disconnect(),v&&(u==null||u.observe(v)),i(v?t(v):null)},[t,u]),[f,h]=lg(c);return w.useMemo(()=>({nodeRef:f,rect:a,setRef:h}),[a,f,h])}const Aie=[{sensor:NT,options:{}},{sensor:ML,options:{}}],Oie={current:{}},Uv={draggable:{measure:jO},droppable:{measure:jO,strategy:Ph.WhileDragging,frequency:Vw.Optimized},dragOverlay:{measure:Kh}};class ph extends Map{get(t){var a;return t!=null&&(a=super.get(t))!=null?a:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:a}=t;return!a})}getNodeFor(t){var a,i;return(a=(i=this.get(t))==null?void 0:i.node.current)!=null?a:void 0}}const Mie={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ph,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:fg},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Uv,measureDroppableContainers:fg,windowRect:null,measuringScheduled:!1},jL={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:fg,draggableNodes:new Map,over:null,measureDroppableContainers:fg},Qh=w.createContext(jL),LL=w.createContext(Mie);function Nie(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ph}}}function Pie(e,t){switch(t.type){case wr.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case wr.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case wr.DragEnd:case wr.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case wr.RegisterDroppable:{const{element:a}=t,{id:i}=a,s=new ph(e.droppable.containers);return s.set(i,a),{...e,droppable:{...e.droppable,containers:s}}}case wr.SetDroppableDisabled:{const{id:a,key:i,disabled:s}=t,u=e.droppable.containers.get(a);if(!u||i!==u.key)return e;const c=new ph(e.droppable.containers);return c.set(a,{...u,disabled:s}),{...e,droppable:{...e.droppable,containers:c}}}case wr.UnregisterDroppable:{const{id:a,key:i}=t,s=e.droppable.containers.get(a);if(!s||i!==s.key)return e;const u=new ph(e.droppable.containers);return u.delete(a),{...e,droppable:{...e.droppable,containers:u}}}default:return e}}function jie(e){let{disabled:t}=e;const{active:a,activatorEvent:i,draggableNodes:s}=w.useContext(Qh),u=cg(i),c=cg(a==null?void 0:a.id);return w.useEffect(()=>{if(!t&&!i&&u&&c!=null){if(!_T(u)||document.activeElement===u.target)return;const f=s.get(c);if(!f)return;const{activatorNode:h,node:m}=f;if(!h.current&&!m.current)return;requestAnimationFrame(()=>{for(const v of[h.current,m.current]){if(!v)continue;const y=Aae(v);if(y){y.focus();break}}})}},[i,t,s,c,u]),null}function $L(e,t){let{transform:a,...i}=t;return e!=null&&e.length?e.reduce((s,u)=>u({transform:s,...i}),a):a}function Lie(e){return w.useMemo(()=>({draggable:{...Uv.draggable,...e==null?void 0:e.draggable},droppable:{...Uv.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Uv.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function $ie(e){let{activeNode:t,measure:a,initialRect:i,config:s=!0}=e;const u=w.useRef(!1),{x:c,y:f}=typeof s=="boolean"?{x:s,y:s}:s;es(()=>{if(!c&&!f||!t){u.current=!1;return}if(u.current||!i)return;const m=t==null?void 0:t.node.current;if(!m||m.isConnected===!1)return;const v=a(m),y=wL(v,i);if(c||(y.x=0),f||(y.y=0),u.current=!0,Math.abs(y.x)>0||Math.abs(y.y)>0){const S=TL(m);S&&S.scrollBy({top:y.y,left:y.x})}},[t,c,f,i,a])}const Fg=w.createContext({...Mi,scaleX:1,scaleY:1});var js;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(js||(js={}));const zie=w.memo(function(t){var a,i,s,u;let{id:c,accessibility:f,autoScroll:h=!0,children:m,sensors:v=Aie,collisionDetection:y=Yae,measuring:S,modifiers:x,...R}=t;const E=w.useReducer(Pie,void 0,Nie),[k,A]=E,[_,P]=Lae(),[$,L]=w.useState(js.Uninitialized),U=$===js.Initialized,{draggable:{active:F,nodes:Q,translate:se},droppable:{containers:ae}}=k,ue=F!=null?Q.get(F):null,Ge=w.useRef({initial:null,translated:null}),Y=w.useMemo(()=>{var nt;return F!=null?{id:F,data:(nt=ue==null?void 0:ue.data)!=null?nt:Oie,rect:Ge}:null},[F,ue]),ce=w.useRef(null),[Ee,G]=w.useState(null),[I,X]=w.useState(null),pe=Mh(R,Object.values(R)),te=$g("DndDescribedBy",c),we=w.useMemo(()=>ae.getEnabled(),[ae]),xe=Lie(S),{droppableRects:be,measureDroppableContainers:Ve,measuringScheduled:Ue}=bie(we,{dragging:U,dependencies:[se.x,se.y],config:xe.droppable}),Xe=gie(Q,F),Rt=w.useMemo(()=>I?dg(I):null,[I]),pt=It(),Ct=Sie(Xe,xe.draggable.measure);$ie({activeNode:F!=null?Q.get(F):null,config:pt.layoutShiftCompensation,initialRect:Ct,measure:xe.draggable.measure});const ut=IO(Xe,xe.draggable.measure,Ct),Ft=IO(Xe?Xe.parentElement:null),ge=w.useRef({activatorEvent:null,active:null,activeNode:Xe,collisionRect:null,collisions:null,droppableRects:be,draggableNodes:Q,draggingNode:null,draggingNodeRect:null,droppableContainers:ae,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),mt=ae.getNodeFor((a=ge.current.over)==null?void 0:a.id),kt=_ie({measure:xe.dragOverlay.measure}),At=(i=kt.nodeRef.current)!=null?i:Xe,Ot=U?(s=kt.rect)!=null?s:ut:null,Et=!!(kt.nodeRef.current&&kt.rect),on=Cie(Et?null:ut),Kt=NL(At?pa(At):null),De=Tie(U?mt??Xe:null),ot=Die(De),dt=$L(x,{transform:{x:se.x-on.x,y:se.y-on.y,scaleX:1,scaleY:1},activatorEvent:I,active:Y,activeNodeRect:ut,containerNodeRect:Ft,draggingNodeRect:Ot,over:ge.current.over,overlayNodeRect:kt.rect,scrollableAncestors:De,scrollableAncestorRects:ot,windowRect:Kt}),et=Rt?_u(Rt,se):null,St=Eie(De),st=BO(St),Nt=BO(St,[ut]),We=_u(dt,st),Dt=Ot?Xae(Ot,dt):null,en=Y&&Dt?y({active:Y,collisionRect:Dt,droppableRects:be,droppableContainers:we,pointerCoordinates:et}):null,vt=Hae(en,"id"),[ye,ke]=w.useState(null),Ye=Et?dt:_u(dt,Nt),Fe=qae(Ye,(u=ye==null?void 0:ye.rect)!=null?u:null,ut),ft=w.useRef(null),Pt=w.useCallback((nt,yn)=>{let{sensor:Gt,options:ir}=yn;if(ce.current==null)return;const In=Q.get(ce.current);if(!In)return;const Bn=nt.nativeEvent,Un=new Gt({active:ce.current,activeNode:In,event:Bn,options:ir,context:ge,onAbort(Lt){if(!Q.get(Lt))return;const{onDragAbort:Pn}=pe.current,jn={id:Lt};Pn==null||Pn(jn),_({type:"onDragAbort",event:jn})},onPending(Lt,Jn,Pn,jn){if(!Q.get(Lt))return;const{onDragPending:z}=pe.current,ve={id:Lt,constraint:Jn,initialCoordinates:Pn,offset:jn};z==null||z(ve),_({type:"onDragPending",event:ve})},onStart(Lt){const Jn=ce.current;if(Jn==null)return;const Pn=Q.get(Jn);if(!Pn)return;const{onDragStart:jn}=pe.current,er={activatorEvent:Bn,active:{id:Jn,data:Pn.data,rect:Ge}};$s.unstable_batchedUpdates(()=>{jn==null||jn(er),L(js.Initializing),A({type:wr.DragStart,initialCoordinates:Lt,active:Jn}),_({type:"onDragStart",event:er}),G(ft.current),X(Bn)})},onMove(Lt){A({type:wr.DragMove,coordinates:Lt})},onEnd:dr(wr.DragEnd),onCancel:dr(wr.DragCancel)});ft.current=Un;function dr(Lt){return async function(){const{active:Pn,collisions:jn,over:er,scrollAdjustedTranslate:z}=ge.current;let ve=null;if(Pn&&z){const{cancelDrop:_e}=pe.current;ve={activatorEvent:Bn,active:Pn,collisions:jn,delta:z,over:er},Lt===wr.DragEnd&&typeof _e=="function"&&await Promise.resolve(_e(ve))&&(Lt=wr.DragCancel)}ce.current=null,$s.unstable_batchedUpdates(()=>{A({type:Lt}),L(js.Uninitialized),ke(null),G(null),X(null),ft.current=null;const _e=Lt===wr.DragEnd?"onDragEnd":"onDragCancel";if(ve){const M=pe.current[_e];M==null||M(ve),_({type:_e,event:ve})}})}}},[Q]),jt=w.useCallback((nt,yn)=>(Gt,ir)=>{const In=Gt.nativeEvent,Bn=Q.get(ir);if(ce.current!==null||!Bn||In.dndKit||In.defaultPrevented)return;const Un={active:Bn};nt(Gt,yn.options,Un)===!0&&(In.dndKit={capturedBy:yn.sensor},ce.current=ir,Pt(Gt,yn))},[Q,Pt]),gn=yie(v,jt);Rie(v),es(()=>{ut&&$===js.Initializing&&L(js.Initialized)},[ut,$]),w.useEffect(()=>{const{onDragMove:nt}=pe.current,{active:yn,activatorEvent:Gt,collisions:ir,over:In}=ge.current;if(!yn||!Gt)return;const Bn={active:yn,activatorEvent:Gt,collisions:ir,delta:{x:We.x,y:We.y},over:In};$s.unstable_batchedUpdates(()=>{nt==null||nt(Bn),_({type:"onDragMove",event:Bn})})},[We.x,We.y]),w.useEffect(()=>{const{active:nt,activatorEvent:yn,collisions:Gt,droppableContainers:ir,scrollAdjustedTranslate:In}=ge.current;if(!nt||ce.current==null||!yn||!In)return;const{onDragOver:Bn}=pe.current,Un=ir.get(vt),dr=Un&&Un.rect.current?{id:Un.id,rect:Un.rect.current,data:Un.data,disabled:Un.disabled}:null,Lt={active:nt,activatorEvent:yn,collisions:Gt,delta:{x:In.x,y:In.y},over:dr};$s.unstable_batchedUpdates(()=>{ke(dr),Bn==null||Bn(Lt),_({type:"onDragOver",event:Lt})})},[vt]),es(()=>{ge.current={activatorEvent:I,active:Y,activeNode:Xe,collisionRect:Dt,collisions:en,droppableRects:be,draggableNodes:Q,draggingNode:At,draggingNodeRect:Ot,droppableContainers:ae,over:ye,scrollableAncestors:De,scrollAdjustedTranslate:We},Ge.current={initial:Ot,translated:Dt}},[Y,Xe,en,Dt,Q,At,Ot,be,ae,ye,De,We]),pie({...pt,delta:se,draggingRect:Dt,pointerCoordinates:et,scrollableAncestors:De,scrollableAncestorRects:ot});const Mt=w.useMemo(()=>({active:Y,activeNode:Xe,activeNodeRect:ut,activatorEvent:I,collisions:en,containerNodeRect:Ft,dragOverlay:kt,draggableNodes:Q,droppableContainers:ae,droppableRects:be,over:ye,measureDroppableContainers:Ve,scrollableAncestors:De,scrollableAncestorRects:ot,measuringConfiguration:xe,measuringScheduled:Ue,windowRect:Kt}),[Y,Xe,ut,I,en,Ft,kt,Q,ae,be,ye,Ve,De,ot,xe,Ue,Kt]),Nn=w.useMemo(()=>({activatorEvent:I,activators:gn,active:Y,activeNodeRect:ut,ariaDescribedById:{draggable:te},dispatch:A,draggableNodes:Q,over:ye,measureDroppableContainers:Ve}),[I,gn,Y,ut,A,te,Q,ye,Ve]);return dn.createElement(xL.Provider,{value:P},dn.createElement(Qh.Provider,{value:Nn},dn.createElement(LL.Provider,{value:Mt},dn.createElement(Fg.Provider,{value:Fe},m)),dn.createElement(jie,{disabled:(f==null?void 0:f.restoreFocus)===!1})),dn.createElement(Fae,{...f,hiddenTextDescribedById:te}));function It(){const nt=(Ee==null?void 0:Ee.autoScrollEnabled)===!1,yn=typeof h=="object"?h.enabled===!1:h===!1,Gt=U&&!nt&&!yn;return typeof h=="object"?{...h,enabled:Gt}:{enabled:Gt}}}),Fie=w.createContext(null),HO="button",Iie="Draggable";function jT(e){let{id:t,data:a,disabled:i=!1,attributes:s}=e;const u=$g(Iie),{activators:c,activatorEvent:f,active:h,activeNodeRect:m,ariaDescribedById:v,draggableNodes:y,over:S}=w.useContext(Qh),{role:x=HO,roleDescription:R="draggable",tabIndex:E=0}=s??{},k=(h==null?void 0:h.id)===t,A=w.useContext(k?Fg:Fie),[_,P]=lg(),[$,L]=lg(),U=kie(c,t),F=Mh(a);es(()=>(y.set(t,{id:t,key:u,node:_,activatorNode:$,data:F}),()=>{const se=y.get(t);se&&se.key===u&&y.delete(t)}),[y,t]);const Q=w.useMemo(()=>({role:x,tabIndex:E,"aria-disabled":i,"aria-pressed":k&&x===HO?!0:void 0,"aria-roledescription":R,"aria-describedby":v.draggable}),[i,x,E,k,R,v.draggable]);return{active:h,activatorEvent:f,activeNodeRect:m,attributes:Q,isDragging:k,listeners:i?void 0:U,node:_,over:S,setNodeRef:P,setActivatorNodeRef:L,transform:A}}function Vie(){return w.useContext(LL)}const Bie="Droppable",Uie={timeout:25};function zL(e){let{data:t,disabled:a=!1,id:i,resizeObserverConfig:s}=e;const u=$g(Bie),{active:c,dispatch:f,over:h,measureDroppableContainers:m}=w.useContext(Qh),v=w.useRef({disabled:a}),y=w.useRef(!1),S=w.useRef(null),x=w.useRef(null),{disabled:R,updateMeasurementsFor:E,timeout:k}={...Uie,...s},A=Mh(E??i),_=w.useCallback(()=>{if(!y.current){y.current=!0;return}x.current!=null&&clearTimeout(x.current),x.current=setTimeout(()=>{m(Array.isArray(A.current)?A.current:[A.current]),x.current=null},k)},[k]),P=zg({callback:_,disabled:R||!c}),$=w.useCallback((Q,se)=>{P&&(se&&(P.unobserve(se),y.current=!1),Q&&P.observe(Q))},[P]),[L,U]=lg($),F=Mh(t);return w.useEffect(()=>{!P||!L.current||(P.disconnect(),y.current=!1,P.observe(L.current))},[L,P]),w.useEffect(()=>(f({type:wr.RegisterDroppable,element:{id:i,key:u,disabled:a,node:L,rect:S,data:F}}),()=>f({type:wr.UnregisterDroppable,key:u,id:i})),[i]),w.useEffect(()=>{a!==v.current.disabled&&(f({type:wr.SetDroppableDisabled,id:i,key:u,disabled:a}),v.current.disabled=a)},[i,u,a,f]),{active:c,rect:S,isOver:(h==null?void 0:h.id)===i,node:L,over:h,setNodeRef:U}}function Hie(e){let{animation:t,children:a}=e;const[i,s]=w.useState(null),[u,c]=w.useState(null),f=cg(a);return!a&&!i&&f&&s(f),es(()=>{if(!u)return;const h=i==null?void 0:i.key,m=i==null?void 0:i.props.id;if(h==null||m==null){s(null);return}Promise.resolve(t(m,u)).then(()=>{s(null)})},[t,i,u]),dn.createElement(dn.Fragment,null,a,i?w.cloneElement(i,{ref:c}):null)}const Wie={x:0,y:0,scaleX:1,scaleY:1};function Yie(e){let{children:t}=e;return dn.createElement(Qh.Provider,{value:jL},dn.createElement(Fg.Provider,{value:Wie},t))}const qie={position:"fixed",touchAction:"none"},Gie=e=>_T(e)?"transform 250ms ease":void 0,Xie=w.forwardRef((e,t)=>{let{as:a,activatorEvent:i,adjustScale:s,children:u,className:c,rect:f,style:h,transform:m,transition:v=Gie}=e;if(!f)return null;const y=s?m:{...m,scaleX:1,scaleY:1},S={...qie,width:f.width,height:f.height,top:f.top,left:f.left,transform:Nh.Transform.toString(y),transformOrigin:s&&i?Bae(i,f):void 0,transition:typeof v=="function"?v(i):v,...h};return dn.createElement(a,{className:c,style:S,ref:t},u)}),Kie=e=>t=>{let{active:a,dragOverlay:i}=t;const s={},{styles:u,className:c}=e;if(u!=null&&u.active)for(const[f,h]of Object.entries(u.active))h!==void 0&&(s[f]=a.node.style.getPropertyValue(f),a.node.style.setProperty(f,h));if(u!=null&&u.dragOverlay)for(const[f,h]of Object.entries(u.dragOverlay))h!==void 0&&i.node.style.setProperty(f,h);return c!=null&&c.active&&a.node.classList.add(c.active),c!=null&&c.dragOverlay&&i.node.classList.add(c.dragOverlay),function(){for(const[h,m]of Object.entries(s))a.node.style.setProperty(h,m);c!=null&&c.active&&a.node.classList.remove(c.active)}},Qie=e=>{let{transform:{initial:t,final:a}}=e;return[{transform:Nh.Transform.toString(t)},{transform:Nh.Transform.toString(a)}]},Zie={duration:250,easing:"ease",keyframes:Qie,sideEffects:Kie({styles:{active:{opacity:"0"}}})};function Jie(e){let{config:t,draggableNodes:a,droppableContainers:i,measuringConfiguration:s}=e;return Lg((u,c)=>{if(t===null)return;const f=a.get(u);if(!f)return;const h=f.node.current;if(!h)return;const m=PL(c);if(!m)return;const{transform:v}=pa(c).getComputedStyle(c),y=CL(v);if(!y)return;const S=typeof t=="function"?t:eoe(t);return AL(h,s.draggable.measure),S({active:{id:u,data:f.data,node:h,rect:s.draggable.measure(h)},draggableNodes:a,dragOverlay:{node:c,rect:s.dragOverlay.measure(m)},droppableContainers:i,measuringConfiguration:s,transform:y})})}function eoe(e){const{duration:t,easing:a,sideEffects:i,keyframes:s}={...Zie,...e};return u=>{let{active:c,dragOverlay:f,transform:h,...m}=u;if(!t)return;const v={x:f.rect.left-c.rect.left,y:f.rect.top-c.rect.top},y={scaleX:h.scaleX!==1?c.rect.width*h.scaleX/f.rect.width:1,scaleY:h.scaleY!==1?c.rect.height*h.scaleY/f.rect.height:1},S={x:h.x-v.x,y:h.y-v.y,...y},x=s({...m,active:c,dragOverlay:f,transform:{initial:h,final:S}}),[R]=x,E=x[x.length-1];if(JSON.stringify(R)===JSON.stringify(E))return;const k=i==null?void 0:i({active:c,dragOverlay:f,...m}),A=f.node.animate(x,{duration:t,easing:a,fill:"forwards"});return new Promise(_=>{A.onfinish=()=>{k==null||k(),_()}})}}let WO=0;function toe(e){return w.useMemo(()=>{if(e!=null)return WO++,WO},[e])}const noe=dn.memo(e=>{let{adjustScale:t=!1,children:a,dropAnimation:i,style:s,transition:u,modifiers:c,wrapperElement:f="div",className:h,zIndex:m=999}=e;const{activatorEvent:v,active:y,activeNodeRect:S,containerNodeRect:x,draggableNodes:R,droppableContainers:E,dragOverlay:k,over:A,measuringConfiguration:_,scrollableAncestors:P,scrollableAncestorRects:$,windowRect:L}=Vie(),U=w.useContext(Fg),F=toe(y==null?void 0:y.id),Q=$L(c,{activatorEvent:v,active:y,activeNodeRect:S,containerNodeRect:x,draggingNodeRect:k.rect,over:A,overlayNodeRect:k.rect,scrollableAncestors:P,scrollableAncestorRects:$,transform:U,windowRect:L}),se=PT(S),ae=Jie({config:i,draggableNodes:R,droppableContainers:E,measuringConfiguration:_}),ue=se?k.setRef:void 0;return dn.createElement(Yie,null,dn.createElement(Hie,{animation:ae},y&&F?dn.createElement(Xie,{key:F,id:y.id,ref:ue,as:f,activatorEvent:v,adjustScale:t,className:h,transition:u,rect:se,style:{zIndex:m,...s},transform:Q},a):null))}),YO={"4-3-3":{name:"4-3-3",positions:[{id:"gk",x:50,y:88,type:"GK"},{id:"lb",x:15,y:72,type:"DEF"},{id:"cb1",x:38,y:72,type:"DEF"},{id:"cb2",x:62,y:72,type:"DEF"},{id:"rb",x:85,y:72,type:"DEF"},{id:"cm1",x:25,y:50,type:"MID"},{id:"cm2",x:50,y:50,type:"MID"},{id:"cm3",x:75,y:50,type:"MID"},{id:"lw",x:18,y:25,type:"FWD"},{id:"st",x:50,y:20,type:"FWD"},{id:"rw",x:82,y:25,type:"FWD"}]},"4-4-2":{name:"4-4-2",positions:[{id:"gk",x:50,y:88,type:"GK"},{id:"lb",x:15,y:72,type:"DEF"},{id:"cb1",x:38,y:72,type:"DEF"},{id:"cb2",x:62,y:72,type:"DEF"},{id:"rb",x:85,y:72,type:"DEF"},{id:"lm",x:15,y:50,type:"MID"},{id:"cm1",x:40,y:50,type:"MID"},{id:"cm2",x:60,y:50,type:"MID"},{id:"rm",x:85,y:50,type:"MID"},{id:"st1",x:38,y:22,type:"FWD"},{id:"st2",x:62,y:22,type:"FWD"}]},"3-5-2":{name:"3-5-2",positions:[{id:"gk",x:50,y:88,type:"GK"},{id:"cb1",x:28,y:72,type:"DEF"},{id:"cb2",x:50,y:72,type:"DEF"},{id:"cb3",x:72,y:72,type:"DEF"},{id:"lwb",x:12,y:55,type:"MID"},{id:"cm1",x:32,y:50,type:"MID"},{id:"cm2",x:50,y:50,type:"MID"},{id:"cm3",x:68,y:50,type:"MID"},{id:"rwb",x:88,y:55,type:"MID"},{id:"st1",x:38,y:22,type:"FWD"},{id:"st2",x:62,y:22,type:"FWD"}]},"4-2-3-1":{name:"4-2-3-1",positions:[{id:"gk",x:50,y:88,type:"GK"},{id:"lb",x:15,y:72,type:"DEF"},{id:"cb1",x:38,y:72,type:"DEF"},{id:"cb2",x:62,y:72,type:"DEF"},{id:"rb",x:85,y:72,type:"DEF"},{id:"cdm1",x:38,y:58,type:"MID"},{id:"cdm2",x:62,y:58,type:"MID"},{id:"lam",x:18,y:38,type:"MID"},{id:"cam",x:50,y:38,type:"MID"},{id:"ram",x:82,y:38,type:"MID"},{id:"st",x:50,y:18,type:"FWD"}]},"3-4-3":{name:"3-4-3",positions:[{id:"gk",x:50,y:88,type:"GK"},{id:"cb1",x:28,y:72,type:"DEF"},{id:"cb2",x:50,y:72,type:"DEF"},{id:"cb3",x:72,y:72,type:"DEF"},{id:"lm",x:18,y:52,type:"MID"},{id:"cm1",x:40,y:52,type:"MID"},{id:"cm2",x:60,y:52,type:"MID"},{id:"rm",x:82,y:52,type:"MID"},{id:"lw",x:18,y:25,type:"FWD"},{id:"st",x:50,y:20,type:"FWD"},{id:"rw",x:82,y:25,type:"FWD"}]}},roe="691ffdf84217e9e8434e5693",aoe="691ffdf84217e9e8434e569f",Bw="6957cf01e7e22f224d6ef000",FL="6957cf01e7e22f224d6eeffd",IL="6957cf01e7e22f224d6eeffe",ioe={tacticName:"6957cf01e7e22f224d6eeff5",formation:"6957cf01e7e22f224d6eeff6",category:"6957cf01e7e22f224d6eeff7",setPieceType:"6957cf01e7e22f224d6eeff8",description:"6957cf01e7e22f224d6eeff9",tags:"6957cf01e7e22f224d6eeffa",tacticData:"6957cf01e7e22f224d6eeffb",keyPlayers:"6957cf01e7e22f224d6eeffc"},ri=ioe,ooe=roe,soe=aoe,yv={playerName:"691ffdf84217e9e8434e5694",jerseyNumber:"691ffdf84217e9e8434e5695",position:"691ffdf84217e9e8434e5696",nationality:"691ffdf84217e9e8434e5698"};function LT({player:e}){const t=za("white","gray.800"),a=za("gray.300","gray.600");return q.jsxDEV(Dr,{bg:t,border:"2px solid",borderColor:a,borderRadius:"md",p:2,minW:"80px",textAlign:"center",cursor:"grab",_active:{cursor:"grabbing"},boxShadow:"md",children:q.jsxDEV(Jo,{spacing:0,children:[q.jsxDEV(Vr,{fontSize:"2xl",fontWeight:"bold",lineHeight:"1",children:e.jerseyNumber},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/PlayerCard.tsx",lineNumber:26,columnNumber:9},this),q.jsxDEV(Vr,{fontSize:"xs",fontWeight:"semibold",noOfLines:1,children:e.name},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/PlayerCard.tsx",lineNumber:29,columnNumber:9},this),q.jsxDEV(Vr,{fontSize:"xs",color:"gray.500",noOfLines:1,children:e.position},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/PlayerCard.tsx",lineNumber:32,columnNumber:9},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/PlayerCard.tsx",lineNumber:25,columnNumber:7},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/PlayerCard.tsx",lineNumber:13,columnNumber:5},this)}function loe({position:e,player:t,animatedX:a,animatedY:i,isAnimating:s}){const{setNodeRef:u}=zL({id:(t==null?void 0:t.id)||`empty-${e.id}`}),{attributes:c,listeners:f,setNodeRef:h,isDragging:m}=jT({id:(t==null?void 0:t.id)||`empty-${e.id}`,disabled:!t}),v=s&&a!==void 0?a:e.x,y=s&&i!==void 0?i:e.y;return q.jsxDEV(Dr,{ref:u,position:"absolute",left:`${v}%`,top:`${y}%`,transform:"translate(-50%, -50%)",zIndex:m?0:1,transition:s?"none":"left 0.3s, top 0.3s",children:t?q.jsxDEV(Dr,{ref:h,...f,...c,opacity:m?.5:1,children:q.jsxDEV(LT,{player:t},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/PitchPosition.tsx",lineNumber:45,columnNumber:11},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/PitchPosition.tsx",lineNumber:39,columnNumber:9},this):q.jsxDEV(Dr,{w:"80px",h:"60px",border:"2px dashed",borderColor:"whiteAlpha.500",borderRadius:"md",bg:"blackAlpha.200"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/PitchPosition.tsx",lineNumber:48,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/PitchPosition.tsx",lineNumber:29,columnNumber:5},this)}function coe({children:e}){const t=za("green.500","green.700"),a="white";return q.jsxDEV(Dr,{bg:t,borderRadius:"lg",position:"relative",h:"1020px",border:"4px solid white",boxShadow:"0 4px 20px rgba(0,0,0,0.3)",overflow:"hidden",children:[q.jsxDEV("svg",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,pointerEvents:"none"},viewBox:"0 0 100 150",preserveAspectRatio:"none",children:[q.jsxDEV("line",{x1:"0",y1:"75",x2:"100",y2:"75",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:35,columnNumber:9},this),q.jsxDEV("ellipse",{cx:"50",cy:"75",rx:"8",ry:"12",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:38,columnNumber:9},this),q.jsxDEV("circle",{cx:"50",cy:"75",r:"1",fill:a},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:39,columnNumber:9},this),q.jsxDEV("rect",{x:"20",y:"0",width:"60",height:"24",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:42,columnNumber:9},this),q.jsxDEV("rect",{x:"32",y:"0",width:"36",height:"9",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:44,columnNumber:9},this),q.jsxDEV("rect",{x:"40",y:"0",width:"20",height:"2",fill:"rgba(255,255,255,0.3)",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:46,columnNumber:9},this),q.jsxDEV("path",{d:"M 35 24 Q 50 35 65 24",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:48,columnNumber:9},this),q.jsxDEV("circle",{cx:"50",cy:"18",r:"1",fill:a},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:50,columnNumber:9},this),q.jsxDEV("rect",{x:"20",y:"126",width:"60",height:"24",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:53,columnNumber:9},this),q.jsxDEV("rect",{x:"32",y:"141",width:"36",height:"9",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:55,columnNumber:9},this),q.jsxDEV("rect",{x:"40",y:"148",width:"20",height:"2",fill:"rgba(255,255,255,0.3)",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:57,columnNumber:9},this),q.jsxDEV("path",{d:"M 35 126 Q 50 115 65 126",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:59,columnNumber:9},this),q.jsxDEV("circle",{cx:"50",cy:"132",r:"1",fill:a},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:61,columnNumber:9},this),q.jsxDEV("path",{d:"M 0 4 Q 4 4 4 0",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:64,columnNumber:9},this),q.jsxDEV("path",{d:"M 96 0 Q 96 4 100 4",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:65,columnNumber:9},this),q.jsxDEV("path",{d:"M 0 146 Q 4 146 4 150",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:66,columnNumber:9},this),q.jsxDEV("path",{d:"M 96 150 Q 96 146 100 146",fill:"none",stroke:a,strokeWidth:"0.4"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:67,columnNumber:9},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:22,columnNumber:7},this),q.jsxDEV(Dr,{position:"absolute",inset:0,zIndex:1,children:e},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:70,columnNumber:7},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Pitch.tsx",lineNumber:13,columnNumber:5},this)}function uoe({player:e}){const{setNodeRef:t}=zL({id:e.id}),{attributes:a,listeners:i,setNodeRef:s,isDragging:u}=jT({id:e.id});return q.jsxDEV(Dr,{ref:t,children:q.jsxDEV(Dr,{ref:s,...i,...a,opacity:u?.5:1,children:q.jsxDEV(LT,{player:e},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstituteSlot.tsx",lineNumber:27,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstituteSlot.tsx",lineNumber:21,columnNumber:7},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstituteSlot.tsx",lineNumber:20,columnNumber:5},this)}function doe({onDismiss:e}){const t=za("gray.100","gray.700"),a=za("gray.300","gray.600");return q.jsxDEV(Dr,{bg:t,border:"2px dashed",borderColor:a,borderRadius:"md",p:2,minW:"80px",textAlign:"center",boxShadow:"md",sx:{"@keyframes pulse":{"0%, 100%":{opacity:.6},"50%":{opacity:1}},animation:"pulse 1.5s ease-in-out infinite"},children:q.jsxDEV(Jo,{spacing:1,children:q.jsxDEV(Kl,{width:"100%",justify:"center",position:"relative",children:[q.jsxDEV(Jo,{spacing:1,flex:1,children:[q.jsxDEV(Vv,{height:"28px",width:"40px",borderRadius:"md"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/GhostPlayerCard.tsx",lineNumber:32,columnNumber:13},this),q.jsxDEV(Vv,{height:"12px",width:"60px",borderRadius:"md"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/GhostPlayerCard.tsx",lineNumber:33,columnNumber:13},this),q.jsxDEV(Vv,{height:"10px",width:"50px",borderRadius:"md"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/GhostPlayerCard.tsx",lineNumber:34,columnNumber:13},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/GhostPlayerCard.tsx",lineNumber:31,columnNumber:11},this),e&&q.jsxDEV(Oi,{size:"xs",variant:"ghost",colorScheme:"red",onClick:e,padding:"0",minWidth:"auto",height:"auto",fontSize:"16px",_hover:{bg:"transparent"},children:"×"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/GhostPlayerCard.tsx",lineNumber:37,columnNumber:13},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/GhostPlayerCard.tsx",lineNumber:30,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/GhostPlayerCard.tsx",lineNumber:29,columnNumber:7},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/GhostPlayerCard.tsx",lineNumber:12,columnNumber:5},this)}function VL(e){const t=e.toLowerCase();return t.includes("goalkeeper")||t==="gk"?"GK":t.includes("defender")||t.includes("defence")?"DEF":t.includes("midfielder")||t.includes("midfield")?"MID":t.includes("forward")||t.includes("striker")||t.includes("attacker")?"FWD":"MID"}function foe({substitutes:e,players:t,hailer:a,onPlayerCreated:i,registerSignalCallback:s}){const u=RT(),[c,f]=w.useState(!1),h=za("white","gray.700"),m=za("gray.200","gray.600"),v=za("gray.50","gray.800"),y=w.useRef(null),S=e.map(A=>t.find(_=>_.id===A)).filter(A=>A!==void 0),x={GK:[],DEF:[],MID:[],FWD:[]};S.forEach(A=>{const _=VL(A.position);x[_].push(A)});const R={GK:"Goalkeeper",DEF:"Defender",MID:"Midfielder",FWD:"Forward"},E=async()=>{if(!a){u({description:"Hailer SDK not available",status:"error",isClosable:!0});return}if(!a.ui||!a.ui.activity||typeof a.ui.activity.create!="function"){u({description:"Player creation feature not available",status:"error",isClosable:!0});return}if(!s){u({description:"Signal handling not available",status:"error",isClosable:!0});return}f(!0);const A="691ffdf84217e9e8434e5693",_=s(P=>{var $;P.sig==="activity.create"&&(($=P.meta)==null?void 0:$.workflowId)===A&&(u({description:"Player created",status:"success",isClosable:!0}),i&&i(),f(!1),_(),y.current=null)});y.current=_;try{a.ui.activity.create(A).catch(()=>{})}catch{u({description:"Failed to open player creation",status:"error",isClosable:!0}),f(!1),_(),y.current=null}},k=()=>{f(!1),y.current&&(y.current(),y.current=null)};return w.useEffect(()=>()=>{y.current&&(y.current(),y.current=null)},[]),q.jsxDEV(Dr,{bg:h,borderRadius:"lg",border:"1px solid",borderColor:m,w:"280px",h:"1020px",overflow:"auto",boxShadow:"0 4px 12px rgba(0,0,0,0.2)",children:[q.jsxDEV(Dr,{bg:v,p:3,borderTopRadius:"lg",children:q.jsxDEV(Jo,{spacing:2,children:[q.jsxDEV(Vr,{fontWeight:"bold",fontSize:"lg",textAlign:"center",children:"Substitutes Bench"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:171,columnNumber:11},this),a&&q.jsxDEV(Oi,{size:"sm",colorScheme:"blue",onClick:E,isLoading:c,loadingText:"Creating...",width:"full",children:"+ Add Player"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:175,columnNumber:13},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:170,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:169,columnNumber:7},this),q.jsxDEV(QP,{allowMultiple:!0,defaultIndex:[],children:Object.entries(R).map(([A,_])=>{const P=x[A],$=P.length;return q.jsxDEV(ej,{border:"none",children:[q.jsxDEV(ZP,{_hover:{bg:za("gray.100","gray.600")},py:3,children:[q.jsxDEV(Dr,{flex:"1",textAlign:"left",children:q.jsxDEV(Vr,{fontWeight:"semibold",children:[_," (",$,")"]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:201,columnNumber:19},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:200,columnNumber:17},this),q.jsxDEV(JP,{},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:205,columnNumber:17},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:196,columnNumber:15},this),q.jsxDEV(nj,{pb:3,children:q.jsxDEV(Jo,{spacing:2,align:"stretch",children:[c&&A==="FWD"&&q.jsxDEV(doe,{onDismiss:k},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:209,columnNumber:52},this),P.map(L=>q.jsxDEV(uoe,{player:L},L.id,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:211,columnNumber:21},this)),$===0&&!c&&q.jsxDEV(Vr,{fontSize:"sm",color:"gray.500",textAlign:"center",children:"No substitutes"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:214,columnNumber:21},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:208,columnNumber:17},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:207,columnNumber:15},this)]},A,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:195,columnNumber:13},this)})},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:189,columnNumber:7},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SubstitutesPanel.tsx",lineNumber:159,columnNumber:5},this)}function hoe({width:e,height:t,drawMode:a,drawType:i,drawings:s,lineup:u,ballPosition:c,isPlaying:f,onAddDrawing:h,onDeleteDrawing:m,onPlayerClick:v}){const y=w.useRef(null),[S,x]=w.useState(!1),[R,E]=w.useState([]),[k,A]=w.useState(null),[_,P]=w.useState(0),$=w.useCallback(G=>{const I=y.current;if(!I)return{x:0,y:0};const X=I.getBoundingClientRect(),pe=(G.clientX-X.left)/X.width*100,te=(G.clientY-X.top)/X.height*100;return{x:pe,y:te}},[]),L=w.useCallback((G,I,X,pe,te,we,xe=1)=>{var Ft,ge;const be=(((Ft=y.current)==null?void 0:Ft.width)||e)/100,Ve=(((ge=y.current)==null?void 0:ge.height)||t)/100;G.save(),G.globalAlpha=xe,G.strokeStyle=we,G.fillStyle=we,G.lineWidth=3;const Ue=I*be,Xe=X*Ve,Rt=pe*be,pt=te*Ve;G.beginPath(),G.moveTo(Ue,Xe),G.lineTo(Rt,pt),G.stroke();const Ct=Math.atan2(pt-Xe,Rt-Ue),ut=15;G.beginPath(),G.moveTo(Rt,pt),G.lineTo(Rt-ut*Math.cos(Ct-Math.PI/6),pt-ut*Math.sin(Ct-Math.PI/6)),G.lineTo(Rt-ut*Math.cos(Ct+Math.PI/6),pt-ut*Math.sin(Ct+Math.PI/6)),G.closePath(),G.fill(),G.restore()},[e,t]),U=w.useCallback((G,I,X,pe=1)=>{var xe,be;if(I.length<2)return;const te=(((xe=y.current)==null?void 0:xe.width)||e)/100,we=(((be=y.current)==null?void 0:be.height)||t)/100;G.save(),G.globalAlpha=pe,G.strokeStyle=X,G.lineWidth=3,G.lineCap="round",G.lineJoin="round",G.setLineDash([5,5]),G.beginPath(),G.moveTo(I[0].x*te,I[0].y*we);for(let Ve=1;Ve<I.length;Ve++)G.lineTo(I[Ve].x*te,I[Ve].y*we);G.stroke(),G.restore()},[e,t]),F=w.useCallback(()=>{const G=y.current;if(!G)return;const I=G.getContext("2d");if(!I)return;const X=G.width/100,pe=G.height/100;if(I.clearRect(0,0,G.width,G.height),k&&a)if(k==="ball")I.save(),I.strokeStyle="#ffd43b",I.lineWidth=4,I.setLineDash([8,4]),I.beginPath(),I.arc(c.x*X,c.y*pe,30,0,Math.PI*2),I.stroke(),I.restore();else{const te=u.find(we=>we.playerId===k);te&&(I.save(),I.strokeStyle="#ffd43b",I.lineWidth=4,I.setLineDash([8,4]),I.beginPath(),I.arc(te.x*X,te.y*pe,50,0,Math.PI*2),I.stroke(),I.restore())}if(s.forEach((te,we)=>{const xe=f?Math.min(1,Math.max(0,_*s.length-we)):1;te.type==="arrow"&&te.endX!==void 0&&te.endY!==void 0?(L(I,te.startX,te.startY,te.endX,te.endY,te.color,xe),te.step>1&&(I.save(),I.fillStyle=te.color,I.font="bold 16px sans-serif",I.fillText(`${te.step}`,te.startX*X-10,te.startY*pe-10),I.restore())):te.type==="path"&&te.points&&te.points.length>1?(U(I,te.points,te.color,xe),te.step>1&&(I.save(),I.fillStyle=te.color,I.font="bold 16px sans-serif",I.fillText(`${te.step}`,te.points[0].x*X-10,te.points[0].y*pe-10),I.restore())):te.type==="pass"&&te.endX!==void 0&&te.endY!==void 0&&(L(I,te.startX,te.startY,te.endX,te.endY,te.color,xe),te.step>1&&(I.save(),I.fillStyle=te.color,I.font="bold 16px sans-serif",I.fillText(`${te.step}`,te.startX*X-10,te.startY*pe-10),I.restore()))}),S&&R.length>0){let te="#ff6b6b";i==="pass"&&(te="#ffa94d"),(i==="arrow"||i==="pass")&&R.length===2?L(I,R[0].x,R[0].y,R[1].x,R[1].y,te):i==="path"&&R.length>1&&U(I,R,te)}},[s,R,S,i,f,_,L,U,k,a,u]);w.useEffect(()=>{F()},[F,c]),w.useEffect(()=>{if(f){let G=0;const I=60,X=()=>{G++,P(G/I),G<I?requestAnimationFrame(X):P(0)};requestAnimationFrame(X)}else P(0)},[f]);const Q=G=>u.find(I=>{if(!I.playerId)return!1;const X=Math.abs(I.x-G.x),pe=Math.abs(I.y-G.y);return X<8&&pe<6}),se=G=>{const I=Math.abs(c.x-G.x),X=Math.abs(c.y-G.y);return I<5&&X<5},ae=G=>{for(const X of s)if((X.type==="arrow"||X.type==="pass")&&X.endX!==void 0&&X.endY!==void 0){if(Math.sqrt(Math.pow(G.x-X.endX,2)+Math.pow(G.y-X.endY,2))<8)return{drawing:X,step:X.step}}else if(X.type==="path"&&X.points&&X.points.length>0){const pe=X.points[X.points.length-1];if(Math.sqrt(Math.pow(G.x-pe.x,2)+Math.pow(G.y-pe.y,2))<8)return{drawing:X,step:X.step}}return null},ue=G=>{for(const X of s)if(X.type==="arrow"||X.type==="pass"){if(X.endX!==void 0&&X.endY!==void 0){const pe=Math.sqrt(Math.pow(G.x-X.startX,2)+Math.pow(G.y-X.startY,2)),te=Math.sqrt(Math.pow(G.x-X.endX,2)+Math.pow(G.y-X.endY,2));if(pe<10||te<10)return X;const we=X.endX-X.startX,xe=X.endY-X.startY,be=Math.sqrt(we*we+xe*xe),Ve=((G.x-X.startX)*we+(G.y-X.startY)*xe)/(be*be);if(Ve>=0&&Ve<=1){const Ue=X.startX+Ve*we,Xe=X.startY+Ve*xe;if(Math.sqrt(Math.pow(G.x-Ue,2)+Math.pow(G.y-Xe,2))<10)return X}}}else if(X.type==="path"&&X.points){for(const pe of X.points)if(Math.sqrt(Math.pow(G.x-pe.x,2)+Math.pow(G.y-pe.y,2))<10)return X}return null},Ge=G=>{if(!a||!i)return;const I=$(G);if(i==="delete"){const te=ue(I);te&&m(te.id);return}const X=ae(I);if(X){const te=X.drawing.endX!==void 0&&X.drawing.endY!==void 0?{x:X.drawing.endX,y:X.drawing.endY}:X.drawing.points&&X.drawing.points.length>0?X.drawing.points[X.drawing.points.length-1]:I;if(i==="arrow"||i==="path"){let we=X.drawing.playerId;if(!we&&X.drawing.type==="pass"){const xe=Q(te);xe!=null&&xe.playerId&&(we=xe.playerId)}if(we){A(we),x(!0),E([te]),G.currentTarget.chainStep=X.step+1,v&&v(we);return}}if(i==="pass"){let we;if(X.drawing.type==="pass")we="ball";else{const xe=Q(te);we=(xe==null?void 0:xe.playerId)||X.drawing.playerId}A(we||null),x(!0),E([te]),G.currentTarget.chainStep=X.step+1;return}}if(i==="pass"){const te=Q(I);te&&te.playerId&&(A(te.playerId),x(!0),E([{x:te.x,y:te.y}]),v&&v(te.playerId));return}if(se(I)){A("ball"),x(!0),E([{x:c.x,y:c.y}]);return}const pe=Q(I);pe&&pe.playerId?(A(pe.playerId),x(!0),E([{x:pe.x,y:pe.y}]),v&&v(pe.playerId)):(x(!0),E([I]))},Y=G=>{if(!S||!a||!i)return;const I=$(G);i==="arrow"||i==="pass"?E([R[0],I]):i==="path"&&E([...R,I])},ce=G=>{if(!S||!a||!i)return;const I=G.currentTarget.chainStep||1;if(delete G.currentTarget.chainStep,i==="arrow"&&R.length===2){const X={id:`drawing-${Date.now()}`,type:"arrow",startX:R[0].x,startY:R[0].y,endX:R[1].x,endY:R[1].y,playerId:k||void 0,color:"#ff6b6b",step:I};h(X)}else if(i==="pass"&&R.length===2){const X={id:`drawing-${Date.now()}`,type:"pass",startX:R[0].x,startY:R[0].y,endX:R[1].x,endY:R[1].y,passerId:k||void 0,color:"#ffa94d",step:I};h(X)}else if(i==="path"&&R.length>1){const X={id:`drawing-${Date.now()}`,type:"path",startX:R[0].x,startY:R[0].y,points:R,playerId:k||void 0,color:"#51cf66",step:I};h(X)}x(!1),E([]),A(null)},Ee=G=>{if(!a)return;const I=$(G),X=u.find(pe=>{const te=Math.abs(pe.x-I.x),we=Math.abs(pe.y-I.y);return te<5&&we<5});X&&X.playerId&&(A(X.playerId),v&&v(X.playerId))};return q.jsxDEV(Dr,{position:"absolute",inset:0,pointerEvents:a?"auto":"none",children:q.jsxDEV("canvas",{ref:y,width:e,height:t,style:{width:"100%",height:"100%",cursor:a?i==="delete"?"not-allowed":"crosshair":"default"},onMouseDown:Ge,onMouseMove:Y,onMouseUp:ce,onClick:Ee},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsCanvas.tsx",lineNumber:499,columnNumber:7},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsCanvas.tsx",lineNumber:498,columnNumber:5},this)}function poe({drawMode:e,drawType:t,isPlaying:a,onToggleDrawMode:i,onSetDrawType:s,onClear:u,onPlay:c,onSave:f,onLoad:h}){const m=za("white","gray.700"),v=za("gray.200","gray.600");return q.jsxDEV(Kl,{spacing:2,p:3,bg:m,borderRadius:"md",border:"1px solid",borderColor:v,boxShadow:"sm",children:[q.jsxDEV(Ji,{label:"Toggle draw mode",children:q.jsxDEV(Oi,{size:"sm",colorScheme:e?"blue":"gray",onClick:i,children:e?"Exit Draw Mode":"Draw Mode"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:40,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:39,columnNumber:7},this),e&&q.jsxDEV(q.Fragment,{children:[q.jsxDEV(Vr,{fontSize:"sm",color:"gray.500",children:"|"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:51,columnNumber:11},this),q.jsxDEV(Ji,{label:"Draw arrows",children:q.jsxDEV(Kf,{"aria-label":"Draw arrow",icon:q.jsxDEV(Vr,{fontSize:"lg",children:"→"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:55,columnNumber:21},this),size:"sm",colorScheme:t==="arrow"?"green":"gray",onClick:()=>s(t==="arrow"?null:"arrow")},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:53,columnNumber:13},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:52,columnNumber:11},this),q.jsxDEV(Ji,{label:"Draw paths",children:q.jsxDEV(Kf,{"aria-label":"Draw path",icon:q.jsxDEV(Vr,{fontSize:"lg",children:"∿"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:65,columnNumber:21},this),size:"sm",colorScheme:t==="path"?"green":"gray",onClick:()=>s(t==="path"?null:"path")},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:63,columnNumber:13},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:62,columnNumber:11},this),q.jsxDEV(Ji,{label:"Draw pass",children:q.jsxDEV(Kf,{"aria-label":"Draw pass",icon:q.jsxDEV(Vr,{fontSize:"lg",children:"⚽"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:75,columnNumber:21},this),size:"sm",colorScheme:t==="pass"?"orange":"gray",onClick:()=>s(t==="pass"?null:"pass")},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:73,columnNumber:13},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:72,columnNumber:11},this),q.jsxDEV(Ji,{label:"Delete drawing",children:q.jsxDEV(Kf,{"aria-label":"Delete drawing",icon:q.jsxDEV(Vr,{fontSize:"lg",children:"✕"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:85,columnNumber:21},this),size:"sm",colorScheme:t==="delete"?"red":"gray",onClick:()=>s(t==="delete"?null:"delete")},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:83,columnNumber:13},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:82,columnNumber:11},this),q.jsxDEV(Ji,{label:"Clear all drawings",children:q.jsxDEV(Oi,{size:"sm",colorScheme:"red",variant:"outline",onClick:u,children:"Clear"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:93,columnNumber:13},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:92,columnNumber:11},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:50,columnNumber:9},this),q.jsxDEV(Vr,{fontSize:"sm",color:"gray.500",children:"|"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:100,columnNumber:7},this),q.jsxDEV(Ji,{label:"Play animation",children:q.jsxDEV(Oi,{size:"sm",colorScheme:"purple",onClick:c,isDisabled:a,children:a?"Playing...":"Play"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:103,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:102,columnNumber:7},this),q.jsxDEV(Ji,{label:"Save tactic",children:q.jsxDEV(Oi,{size:"sm",colorScheme:"green",onClick:f,children:"Save"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:114,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:113,columnNumber:7},this),q.jsxDEV(Ji,{label:"Load tactic",children:q.jsxDEV(Oi,{size:"sm",colorScheme:"teal",variant:"outline",onClick:h,children:"Load"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:120,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:119,columnNumber:7},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/TacticsToolbar.tsx",lineNumber:30,columnNumber:5},this)}function moe({x:e,y:t,animatedX:a,animatedY:i,isAnimating:s}){const{attributes:u,listeners:c,setNodeRef:f,isDragging:h}=jT({id:"ball"}),m=s&&a!==void 0?a:e,v=s&&i!==void 0?i:t;return q.jsxDEV(Dr,{ref:f,...c,...u,position:"absolute",left:`${m}%`,top:`${v}%`,transform:"translate(-50%, -50%)",fontSize:"32px",cursor:h?"grabbing":"grab",opacity:h?.5:1,zIndex:h?0:2,transition:s?"none":"left 0.3s, top 0.3s",userSelect:"none",children:"⚽"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/Ball.tsx",lineNumber:21,columnNumber:5},this)}function voe({isOpen:e,onClose:t,hailer:a,formation:i,drawings:s,ballPosition:u}){const[c,f]=w.useState(""),[h,m]=w.useState("Attack"),[v,y]=w.useState(""),[S,x]=w.useState(""),[R,E]=w.useState("draft"),[k,A]=w.useState(!1),_=RT(),P=async()=>{if(!c.trim()){_({description:"Please enter a tactic name",status:"warning"});return}A(!0);try{const $=JSON.stringify({formation:i,drawings:s,ballPosition:u,version:1}),L=R==="active"?IL:FL;await a.activity.create(Bw,[{name:c.trim(),phaseId:L,fields:{[ri.tacticName]:c.trim(),[ri.formation]:i,[ri.category]:h,[ri.setPieceType]:v||"",[ri.description]:S||"",[ri.tacticData]:$}}]),_({description:"Tactic saved successfully",status:"success"}),t(),f(""),x("")}catch($){console.error("Failed to save tactic:",$),_({description:"Failed to save tactic",status:"error"})}finally{A(!1)}};return q.jsxDEV(bT,{isOpen:e,onClose:t,children:[q.jsxDEV(TT,{},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:93,columnNumber:7},this),q.jsxDEV(ST,{children:[q.jsxDEV(CT,{children:"Save Tactic"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:95,columnNumber:9},this),q.jsxDEV(wT,{},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:96,columnNumber:9},this),q.jsxDEV(xT,{children:q.jsxDEV(Jo,{spacing:4,children:[q.jsxDEV(iu,{isRequired:!0,children:[q.jsxDEV(su,{children:"Tactic Name"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:100,columnNumber:15},this),q.jsxDEV(dT,{value:c,onChange:$=>f($.target.value),placeholder:"e.g., Counter Attack Left Wing"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:101,columnNumber:15},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:99,columnNumber:13},this),q.jsxDEV(iu,{children:[q.jsxDEV(su,{children:"Save as"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:109,columnNumber:15},this),q.jsxDEV(dh,{value:R,onChange:$=>E($.target.value),children:[q.jsxDEV("option",{value:"draft",children:"Draft (work in progress)"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:111,columnNumber:17},this),q.jsxDEV("option",{value:"active",children:"Active (ready to use)"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:112,columnNumber:17},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:110,columnNumber:15},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:108,columnNumber:13},this),q.jsxDEV(iu,{children:[q.jsxDEV(su,{children:"Category"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:117,columnNumber:15},this),q.jsxDEV(dh,{value:h,onChange:$=>m($.target.value),children:[q.jsxDEV("option",{value:"Attack",children:"Attack"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:119,columnNumber:17},this),q.jsxDEV("option",{value:"Defense",children:"Defense"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:120,columnNumber:17},this),q.jsxDEV("option",{value:"Set Piece",children:"Set Piece"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:121,columnNumber:17},this),q.jsxDEV("option",{value:"Transition",children:"Transition"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:122,columnNumber:17},this),q.jsxDEV("option",{value:"Pressing",children:"Pressing"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:123,columnNumber:17},this),q.jsxDEV("option",{value:"Build-up",children:"Build-up"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:124,columnNumber:17},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:118,columnNumber:15},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:116,columnNumber:13},this),h==="Set Piece"&&q.jsxDEV(iu,{children:[q.jsxDEV(su,{children:"Set Piece Type"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:130,columnNumber:17},this),q.jsxDEV(dh,{value:v,onChange:$=>y($.target.value),children:[q.jsxDEV("option",{value:"",children:"Select type..."},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:132,columnNumber:19},this),q.jsxDEV("option",{value:"Corner Kick",children:"Corner Kick"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:133,columnNumber:19},this),q.jsxDEV("option",{value:"Free Kick",children:"Free Kick"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:134,columnNumber:19},this),q.jsxDEV("option",{value:"Penalty",children:"Penalty"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:135,columnNumber:19},this),q.jsxDEV("option",{value:"Throw-in",children:"Throw-in"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:136,columnNumber:19},this),q.jsxDEV("option",{value:"Goal Kick",children:"Goal Kick"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:137,columnNumber:19},this),q.jsxDEV("option",{value:"Kick-off",children:"Kick-off"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:138,columnNumber:19},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:131,columnNumber:17},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:129,columnNumber:15},this),q.jsxDEV(iu,{children:[q.jsxDEV(su,{children:"Description"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:144,columnNumber:15},this),q.jsxDEV(yL,{value:S,onChange:$=>x($.target.value),placeholder:"Describe the tactic...",rows:3},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:145,columnNumber:15},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:143,columnNumber:13},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:98,columnNumber:11},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:97,columnNumber:9},this),q.jsxDEV(hL,{children:[q.jsxDEV(Oi,{variant:"ghost",mr:3,onClick:t,children:"Cancel"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:156,columnNumber:11},this),q.jsxDEV(Oi,{colorScheme:"blue",onClick:P,isLoading:k,children:"Save Tactic"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:159,columnNumber:11},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:155,columnNumber:9},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:94,columnNumber:7},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/SaveTacticModal.tsx",lineNumber:92,columnNumber:5},this)}function goe({isOpen:e,onClose:t,hailer:a,onLoad:i}){const[s,u]=w.useState([]),[c,f]=w.useState(!1),h=za("white","gray.700"),m=za("gray.50","gray.600");w.useEffect(()=>{e&&a&&v()},[e,a]);const v=async()=>{var x,R,E,k,A,_;f(!0);try{const[P,$]=await Promise.all([a.activity.list(Bw,FL,{limit:100}),a.activity.list(Bw,IL,{limit:100})]),L=[...P,...$],U=[];for(const F of L){const Q=F.fields;if(!Q)continue;const se=(x=Q[ri.tacticData])==null?void 0:x.value;if(se)try{const ae=JSON.parse(se);U.push({_id:F._id,name:F.name||((R=Q[ri.tacticName])==null?void 0:R.value)||"Unnamed",category:((E=Q[ri.category])==null?void 0:E.value)||"Attack",setPieceType:((k=Q[ri.setPieceType])==null?void 0:k.value)||void 0,formation:((A=Q[ri.formation])==null?void 0:A.value)||ae.formation,description:((_=Q[ri.description])==null?void 0:_.value)||void 0,tacticData:ae})}catch{}}u(U)}catch(P){console.error("Failed to load tactics:",P)}finally{f(!1)}},y=x=>{i(x),t()},S=x=>{switch(x){case"Attack":return"red";case"Defense":return"blue";case"Set Piece":return"purple";case"Transition":return"orange";case"Pressing":return"yellow";case"Build-up":return"green";default:return"gray"}};return q.jsxDEV(bT,{isOpen:e,onClose:t,size:"lg",children:[q.jsxDEV(TT,{},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:124,columnNumber:7},this),q.jsxDEV(ST,{maxH:"80vh",children:[q.jsxDEV(CT,{children:"Load Tactic"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:126,columnNumber:9},this),q.jsxDEV(wT,{},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:127,columnNumber:9},this),q.jsxDEV(xT,{pb:6,overflowY:"auto",children:c?q.jsxDEV(ig,{py:8,children:q.jsxDEV(Wh,{size:"lg"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:131,columnNumber:15},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:130,columnNumber:13},this):s.length===0?q.jsxDEV(ig,{py:8,children:q.jsxDEV(Vr,{color:"gray.500",children:"No saved tactics found"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:135,columnNumber:15},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:134,columnNumber:13},this):q.jsxDEV(Jo,{spacing:3,align:"stretch",children:s.map(x=>q.jsxDEV(Dr,{p:4,bg:h,borderRadius:"md",border:"1px solid",borderColor:"gray.200",cursor:"pointer",_hover:{bg:m},onClick:()=>y(x),children:[q.jsxDEV(Kl,{justify:"space-between",mb:2,children:[q.jsxDEV(Vr,{fontWeight:"bold",children:x.name},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:152,columnNumber:21},this),q.jsxDEV(Kl,{children:[q.jsxDEV($v,{colorScheme:S(x.category),children:x.category},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:154,columnNumber:23},this),q.jsxDEV($v,{variant:"outline",children:x.formation},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:157,columnNumber:23},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:153,columnNumber:21},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:151,columnNumber:19},this),x.setPieceType&&q.jsxDEV($v,{size:"sm",colorScheme:"purple",mb:2,children:x.setPieceType},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:161,columnNumber:21},this),x.description&&q.jsxDEV(Vr,{fontSize:"sm",color:"gray.500",noOfLines:2,children:x.description},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:166,columnNumber:21},this)]},x._id,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:140,columnNumber:17},this))},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:138,columnNumber:13},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:128,columnNumber:9},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:125,columnNumber:7},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/components/LoadTacticModal.tsx",lineNumber:123,columnNumber:5},this)}function yoe(){var on,Kt;const[e,t]=w.useState([]),a=De=>{e.forEach(ot=>ot(De))},{hailer:i,inside:s,settings:u,config:c}=I3(void 0,a),{setColorMode:f}=Fh(),h=RT(),{isOpen:m,onOpen:v,onClose:y}=Ux(),{isOpen:S,onOpen:x,onClose:R}=Ux(),[E,k]=w.useState([]),[A,_]=w.useState("4-3-3"),[P,$]=w.useState([]),[L,U]=w.useState([]),[F,Q]=w.useState(!0),[se,ae]=w.useState(null),[ue,Ge]=w.useState(!1),[Y,ce]=w.useState(null),[Ee,G]=w.useState([]),[I,X]=w.useState(!1),[pe,te]=w.useState({}),[we,xe]=w.useState({x:50,y:50}),be=De=>(t(ot=>[...ot,De]),()=>{t(ot=>ot.filter(dt=>dt!==De))}),Ve=Vae(Iae(NT,{activationConstraint:{distance:8}}));w.useEffect(()=>{u&&f(u.theme==="dark"?"dark":"light")},[u,f]),w.useEffect(()=>{i&&s&&c&&Ue()},[s,c]),w.useEffect(()=>{E.length>0&&Xe()},[A,E]);const Ue=async()=>{if(i)try{Q(!0);const dt=(await i.activity.list(ooe,soe,{limit:100})).map(et=>{var en,vt,ye,ke;const St=et.fields;if(!St)return null;const st=(en=St[yv.playerName])==null?void 0:en.value,Nt=(vt=St[yv.jerseyNumber])==null?void 0:vt.value,We=(ye=St[yv.position])==null?void 0:ye.value,Dt=(ke=St[yv.nationality])==null?void 0:ke.value;return!st||!Nt||!We?null:{id:et._id,name:st,jerseyNumber:Nt,position:We,nationality:Dt}}).filter(et=>et!==null).sort((et,St)=>et.jerseyNumber-St.jerseyNumber);k(dt),h({description:`Loaded ${dt.length} players`,status:"success",isClosable:!0})}catch{h({description:"Failed to load players",status:"error",isClosable:!0})}finally{Q(!1)}},Xe=()=>{const De=YO[A],ot=new Set,dt={GK:[],DEF:[],MID:[],FWD:[]};E.forEach(st=>{const Nt=VL(st.position);dt[Nt].push(st)});const et=De.positions.map(st=>{const Nt=dt[st.type].filter(We=>!ot.has(We.id));if(Nt.length>0){const We=Nt[0];return ot.add(We.id),{...st,playerId:We.id}}return{...st,playerId:null}}),St=E.filter(st=>!ot.has(st.id)).map(st=>st.id);$(et),U(St)},Rt=De=>{ae(De.active.id)},pt=De=>{const{active:ot,over:dt,delta:et}=De;ae(null);const St=ot.id;if(St==="ball"){if(et.x!==0||et.y!==0){const ke=et.x/680*100,Ye=et.y/1020*100;xe({x:Math.max(0,Math.min(100,we.x+ke)),y:Math.max(0,Math.min(100,we.y+Ye))})}return}if(!dt||ot.id===dt.id)return;const st=dt.id,Nt=P.findIndex(vt=>vt.playerId===St),We=L.indexOf(St),Dt=P.findIndex(vt=>vt.playerId===st),en=L.indexOf(st);if(Nt!==-1&&Dt!==-1){const vt=[...P];[vt[Nt].playerId,vt[Dt].playerId]=[vt[Dt].playerId,vt[Nt].playerId],$(vt)}else if(Nt!==-1&&en!==-1){const vt=[...P],ye=[...L];vt[Nt].playerId=ye[en],ye[en]=St,$(vt),U(ye)}else if(We!==-1&&Dt!==-1){const vt=[...P],ye=[...L],ke=vt[Dt].playerId;ke&&(ye[We]=ke),vt[Dt].playerId=St,$(vt),U(ye)}else if(We!==-1&&en!==-1){const vt=[...L];[vt[We],vt[en]]=[vt[en],vt[We]],U(vt)}},Ct=()=>{Ge(!ue),ue&&ce(null)},ut=De=>{ce(De)},Ft=De=>{G([...Ee,De])},ge=De=>{G(Ee.filter(ot=>ot.id!==De)),h({description:"Drawing deleted",status:"info",isClosable:!0})},mt=()=>{G([]),h({description:"Cleared all drawings",status:"info",isClosable:!0})},kt=()=>{if(Ee.length===0){h({description:"No drawings to animate",status:"warning",isClosable:!0});return}X(!0),te({});const De=Math.max(...Ee.map(We=>We.step)),ot={};for(let We=1;We<=De;We++)ot[We]=Ee.filter(Dt=>Dt.step===We);const dt=1500;let et=1;const St={};let st=null;const Nt=()=>{if(et>De){setTimeout(()=>{X(!1),te({})},500);return}const We=ot[et],Dt=Date.now(),en=St.ball||we;if(!st){const ye=P.find(ke=>{if(!ke.playerId)return!1;const Ye=St[ke.playerId]||{x:ke.x,y:ke.y},Fe=Math.abs(Ye.x-en.x),ft=Math.abs(Ye.y-en.y);return Fe<10&&ft<8});ye!=null&&ye.playerId&&(st=ye.playerId)}const vt=()=>{const ye=Date.now()-Dt,ke=Math.min(ye/dt,1),Ye={...St};We.forEach(Fe=>{if(Fe.type==="pass"&&Fe.endX!==void 0&&Fe.endY!==void 0){if(Ye.ball={x:Fe.startX+(Fe.endX-Fe.startX)*ke,y:Fe.startY+(Fe.endY-Fe.startY)*ke},ke<1&&(st=null),ke===1){const ft={x:Fe.endX,y:Fe.endY},Pt=P.find(jt=>{if(!jt.playerId)return!1;const gn=Ye[jt.playerId]||St[jt.playerId]||{x:jt.x,y:jt.y},Mt=Math.abs(gn.x-ft.x),Nn=Math.abs(gn.y-ft.y);return Mt<10&&Nn<8});Pt&&Pt.playerId&&(st=Pt.playerId)}}else if(Fe.playerId){if(Fe.type==="arrow"&&Fe.endX!==void 0&&Fe.endY!==void 0){const ft={x:Fe.startX+(Fe.endX-Fe.startX)*ke,y:Fe.startY+(Fe.endY-Fe.startY)*ke};Ye[Fe.playerId]=ft,st===Fe.playerId&&(Ye.ball=ft)}else if(Fe.type==="path"&&Fe.points&&Fe.points.length>1){const ft=Fe.points.length-1,Pt=Math.min(Math.floor(ke*ft),ft-1),jt=ke*ft-Pt,gn=Fe.points[Pt],Mt=Fe.points[Pt+1]||gn,Nn={x:gn.x+(Mt.x-gn.x)*jt,y:gn.y+(Mt.y-gn.y)*jt};Ye[Fe.playerId]=Nn,st===Fe.playerId&&(Ye.ball=Nn)}}}),te(Ye),ke<1?requestAnimationFrame(vt):(Object.assign(St,Ye),et++,setTimeout(Nt,300))};requestAnimationFrame(vt)};Nt()},At=()=>{if(Ee.length===0){h({description:"Draw some tactics before saving",status:"warning",isClosable:!0});return}v()},Ot=De=>{_(De.tacticData.formation),G(De.tacticData.drawings),xe(De.tacticData.ballPosition),h({description:"Tactic loaded",status:"success",isClosable:!0})},Et=E.find(De=>De.id===se);return F?q.jsxDEV(ig,{h:"100vh",children:q.jsxDEV(Wh,{size:"xl"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:464,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:463,columnNumber:7},this):s?q.jsxDEV(zie,{sensors:Ve,onDragStart:Rt,onDragEnd:pt,children:[q.jsxDEV(Cw,{maxW:"1400px",py:4,children:q.jsxDEV(Jo,{spacing:4,align:"stretch",children:[q.jsxDEV(Kl,{justify:"space-between",align:"center",children:[q.jsxDEV(zw,{size:"lg",children:"Lineup Manager"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:484,columnNumber:13},this),q.jsxDEV(Kl,{children:[q.jsxDEV(Vr,{fontWeight:"medium",children:"Formation:"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:486,columnNumber:15},this),q.jsxDEV(dh,{value:A,onChange:De=>_(De.target.value),width:"150px",children:Object.keys(YO).map(De=>q.jsxDEV("option",{value:De,children:De},De,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:493,columnNumber:19},this))},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:487,columnNumber:15},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:485,columnNumber:13},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:483,columnNumber:11},this),q.jsxDEV(poe,{drawMode:ue,drawType:Y,isPlaying:I,onToggleDrawMode:Ct,onSetDrawType:ut,onClear:mt,onPlay:kt,onSave:At,onLoad:x},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:501,columnNumber:11},this),q.jsxDEV(ij,{gap:4,align:"flex-start",children:[q.jsxDEV(Dr,{flex:"1",children:q.jsxDEV(coe,{children:[P.map(De=>{const ot=E.find(et=>et.id===De.playerId),dt=De.playerId?pe[De.playerId]:void 0;return q.jsxDEV(loe,{position:De,player:ot||null,animatedX:dt==null?void 0:dt.x,animatedY:dt==null?void 0:dt.y,isAnimating:I},De.id,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:520,columnNumber:21},this)}),q.jsxDEV(moe,{x:we.x,y:we.y,animatedX:(on=pe.ball)==null?void 0:on.x,animatedY:(Kt=pe.ball)==null?void 0:Kt.y,isAnimating:I},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:530,columnNumber:17},this),q.jsxDEV(hoe,{width:680,height:1020,drawMode:ue,drawType:Y,drawings:Ee,players:E,lineup:P,ballPosition:we,isPlaying:I,onAddDrawing:Ft,onDeleteDrawing:ge},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:537,columnNumber:17},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:515,columnNumber:15},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:514,columnNumber:13},this),q.jsxDEV(foe,{substitutes:L,players:E,hailer:i,onPlayerCreated:Ue,registerSignalCallback:be},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:553,columnNumber:13},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:513,columnNumber:11},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:482,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:481,columnNumber:7},this),q.jsxDEV(noe,{children:Et?q.jsxDEV(Dr,{opacity:.8,children:q.jsxDEV(LT,{player:Et},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:567,columnNumber:13},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:566,columnNumber:11},this):null},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:564,columnNumber:7},this),i&&q.jsxDEV(q.Fragment,{children:[q.jsxDEV(voe,{isOpen:m,onClose:y,hailer:i,formation:A,drawings:Ee,ballPosition:we},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:574,columnNumber:11},this),q.jsxDEV(goe,{isOpen:S,onClose:R,hailer:i,onLoad:Ot},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:582,columnNumber:11},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:573,columnNumber:9},this)]},void 0,!0,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:480,columnNumber:5},this):q.jsxDEV(Cw,{maxW:"container.md",py:8,children:q.jsxDEV(zw,{fontSize:"lg",color:"subtleText",children:"You are outside of Hailer"},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:472,columnNumber:9},this)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/App.tsx",lineNumber:471,columnNumber:7},this)}const boe={accentGreen:"#41FF69",baseBlue:"#005ABA",baseBlueLight:"#A8DBFF",darkModeBodyText:"#EDEFF3"},bv=qn("tooltip-bg"),zx=qn("tooltip-fg"),Soe=qn("popper-arrow-bg"),qO=qn("popper-arrow-shadow-color"),xoe=fee({config:{initialColorMode:void 0,useSystemColorMode:!0},fonts:{body:"Nunito Sans, sans-serif, emoji",heading:"Nunito Sans, sans-serif, emoji"},colors:{gray:{50:"#f9fafd",100:"#f3f4f7",200:"#e9ebee",300:"#c7cad1",400:"#999ca4",500:"#53565F",600:"#34373f",700:"#292c33",800:"#202124",900:"#151618"},green:{50:"#f0fff4",100:"#B7E8C6",200:"#7DD197",300:"#36ba5f",400:"#20a250",500:"#17873f",600:"#006c32",700:"#01592a",800:"#003217",900:"#001d0d"},red:{50:"#fef0f0",100:"#f6dfdf",200:"#edbebe",300:"#e49c9c",400:"#f15353",500:"#e42b00",600:"#cc1318",700:"#9a1d00",800:"#611a0a",900:"#3e1309"},blue:{50:"#ebeef6",100:"#d9e8f7",200:"#a2b9d6",300:"#6a8ab4",400:"#4c71a0",500:"#2e4d71",600:"#253c56",700:"#172a3f",800:"#081826",900:"#071623"},orange:{50:"#fffff0",100:"#fffadf",200:"#fee39c",300:"#ffc224",400:"#e7a224",500:"#ce8223",600:"#a16425",700:"#775728",800:"#62512A",900:"#4c4a2b"},customColors:boe},semanticTokens:{colors:{"chakra-placeholder-color":{_light:"gray.400",_dark:"gray.400"},"chakra-subtle-text":{_light:"gray.500",_dark:"gray.400"},subtleText:{_light:"gray.500",_dark:"gray.400"},"chakra-body-text":{_light:"gray.800",_dark:"customColors.darkModeBodyText"},bodyText:{_light:"gray.800",_dark:"customColors.darkModeBodyText"},"chakra-body-bg":{_light:"gray.100",_dark:"gray.800"}}},styles:{global:{html:{WebkitFontSmoothing:"unset"},".chakra-alert":{'&[data-status="success"]':{borderRadius:"4px"},'&[data-status="error"]':{borderRadius:"4px"},'&[data-status="warning"]':{borderRadius:"4px"},'&[data-status="info"]':{borderRadius:"4px"},'&[data-status="loading"]':{borderRadius:"4px"}}}},shadows:{outline:"0 0 0 3px var(--chakra-colors-customColors-baseBlue)"},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.5rem",lg:"0.625rem",xl:"0.938rem","2xl":"1.25rem","3xl":"1.563rem",full:"9999px"},components:{Link:{baseStyle:{_light:{color:"customColors.baseBlue"},_dark:{color:"customColors.baseBlueLight"}}},Button:{baseStyle:{fontWeight:"bold",textTransform:"uppercase",borderRadius:"30px",letterSpacing:"wider",lineHeight:1,_disabled:{opacity:.3},_light:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlue)"}},_dark:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlueLight)"}}},sizes:{xs:{fontSize:"xs",svg:{height:"1rem",width:"1rem"}},sm:{fontSize:"xs",py:.5,px:4,svg:{height:"1.375rem",width:"1.375rem",marginLeft:"-3px",marginRight:"-3px"}},md:{fontSize:"xs",py:3,px:4,svg:{height:"1.5rem",width:"1.5rem",marginLeft:"-3px",marginRight:"-3px"}},lg:{fontSize:"xs",height:"2.75rem",minWidth:"2.75rem",py:3.5,svg:{height:"1.5rem",width:"1.5rem"}}},variants:{solid:e=>({_light:{color:e.colorScheme==="gray"?"blue.600":void 0,bg:e.colorScheme==="green"?"green.500":e.colorScheme==="red"?"red.500":e.colorScheme==="blue"?"blue.600":void 0,_hover:{bg:e.colorScheme==="green"?"green.600":e.colorScheme==="red"?"red.600":e.colorScheme==="blue"?"blue.700":void 0},_active:{bg:e.colorScheme==="green"?"green.700":e.colorScheme==="red"?"red.700":e.colorScheme==="blue"?"blue.800":void 0}},_dark:{color:e.colorScheme==="green"||e.colorScheme==="red"||e.colorScheme==="blue"?"whiteAlpha.900":void 0,bg:e.colorScheme==="green"?"green.500":e.colorScheme==="red"?"red.500":e.colorScheme==="blue"?"blue.600":void 0,_hover:{bg:e.colorScheme==="green"?"green.600":e.colorScheme==="red"?"red.600":e.colorScheme==="blue"?"blue.700":void 0},_active:{bg:e.colorScheme==="green"?"green.700":e.colorScheme==="red"?"red.700":e.colorScheme==="blue"?"blue.800":void 0}}}),outline:e=>({border:"2px solid",_light:{color:e.colorScheme==="gray"?"blue.600":void 0,_hover:{bg:"gray.100"},_active:{bg:"gray.200"}},_dark:{color:e.colorScheme==="green"?"green.400":e.colorScheme==="red"?"red.400":e.colorScheme==="blue"?"blue.300":void 0,_hover:{bg:e.colorScheme==="green"||e.colorScheme==="red"||e.colorScheme==="blue"?"gray.600":void 0},_active:{bg:e.colorScheme==="green"||e.colorScheme==="red"||e.colorScheme==="blue"?"gray.500":void 0}}}),ghost:e=>({_light:{color:e.colorScheme==="gray"?"blue.600":void 0,_hover:{bg:"gray.100"},_active:{bg:"gray.200"}},_dark:{color:e.colorScheme==="green"?"green.400":e.colorScheme==="red"?"red.400":e.colorScheme==="blue"?"blue.300":void 0,_hover:{bg:e.colorScheme==="green"||e.colorScheme==="red"||e.colorScheme==="blue"?"gray.600":void 0},_active:{bg:e.colorScheme==="green"||e.colorScheme==="red"||e.colorScheme==="blue"?"gray.500":void 0}}}),link:e=>({_light:{color:e.colorScheme==="green"?"green.400":e.colorScheme==="red"?"red.500":e.colorScheme==="blue"?"customColors.baseBlue":void 0},_dark:{color:e.colorScheme==="green"?"green.200":e.colorScheme==="red"?"red.300":e.colorScheme==="blue"?"customColors.baseBlueLight":void 0}})}},IconButton:{variants:{ghost:{_light:{_hover:{bg:"gray.200"},_active:{bg:"gray.300"}},_dark:{_hover:{bg:"gray.700"},_active:{bg:"gray.600"}}}}},CloseButton:{baseStyle:{borderRadius:"full",_light:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlue)"}},_dark:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlueLight)"}}}},Checkbox:{baseStyle:{label:{fontSize:"sm"},control:{height:4,width:4,borderRadius:"3px",_disabled:{opacity:.3},_light:{borderColor:"gray.300",_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlue)",outlineOffset:"2px"},_checked:{bg:"green.500",borderColor:"green.500",color:"white",_hover:{bg:"green.600",borderColor:"green.600"}}},_dark:{borderColor:"gray.500",_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlueLight)",outlineOffset:"2px"},_checked:{bg:"green.500",borderColor:"green.500",color:"whiteAlpha.900",_hover:{bg:"green.600",borderColor:"green.600"}}}},icon:{fontSize:"2xs"}},defaultProps:{colorScheme:"green",size:null},sizes:{sm:null}},Switch:{baseStyle:{track:{_light:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlue)",outlineOffset:"2px"},_checked:{bg:"green.500",_hover:{bg:"green.600"}}},_dark:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlueLight)",outlineOffset:"2px"},_checked:{bg:"green.500",_hover:{bg:"green.600"}}}}},defaultProps:{colorScheme:"green"}},Radio:{baseStyle:{label:{fontSize:"sm"},control:{height:4,width:4,_disabled:{opacity:.3},_light:{borderColor:"gray.300",_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlue) !important",outlineOffset:"1px"},_checked:{bg:"green.500",color:"green.500",border:"2px solid white",outline:"2px solid var(--chakra-colors-green-500)",_hover:{bg:"green.600",color:"green.600",outline:"2px solid var(--chakra-colors-green-600)"}}},_dark:{borderColor:"gray.500",_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlueLight) !important",outlineOffset:"2px"},_checked:{bg:"green.500",color:"green.500",border:"2px solid var(--chakra-colors-gray-800)",outline:"2px solid var(--chakra-colors-green-500)",_hover:{bg:"green.600",color:"green.600",outline:"2px solid var(--chakra-colors-green-600)"}}}}},defaultProps:{colorScheme:"green",size:null},sizes:{sm:null}},Tabs:{variants:{hailer:e=>({tab:{color:"chakra-placeholder-color",borderBottom:"2px solid",borderColor:"chakra-border-color",_active:{bg:e.colorMode==="dark"?"gray.700":"gray.50"},_selected:{borderColor:"green.500",color:"chakra-body-text"},_light:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlue)"}},_dark:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlueLight)"}}}})},defaultProps:{variant:"hailer",isFitted:!0}},Input:{variants:{filled:{field:{borderRadius:"lg",_light:{_focus:{bg:"gray.50"},_focusVisible:{bg:"gray.50"}},_dark:{_focus:{bg:"gray.800"},_focusVisible:{bg:"gray.800"}}}}},defaultProps:{variant:"filled",focusBorderColor:"green.500",errorBorderColor:"red.500"}},NumberInput:{variants:{filled:e=>({field:{borderRadius:"lg",_focus:{bg:e.colorMode==="dark"?"gray.800":"gray.50"},_focusVisible:{bg:e.colorMode==="dark"?"gray.800":"gray.50"}}})},defaultProps:{variant:"filled",focusBorderColor:"green.500",errorBorderColor:"red.500"}},Textarea:{variants:{filled:{borderRadius:"lg",_light:{_focus:{bg:"gray.50"},_focusVisible:{bg:"gray.50"}},_dark:{_focus:{bg:"gray.800"},_focusVisible:{bg:"gray.800"}}}},defaultProps:{variant:"filled",focusBorderColor:"green.500",errorBorderColor:"red.500"}},Select:{variants:{filled:e=>({field:{borderRadius:"lg",_focus:{bg:e.colorMode==="dark"?"gray.800":"gray.50",borderColor:"green.500"},_focusVisible:{bg:e.colorMode==="dark"?"gray.800":"gray.50",borderColor:"green.500"},_invalid:{borderColor:"red.500"}}})},defaultProps:{variant:"filled"}},FormLabel:{baseStyle:{fontSize:"xs",fontWeight:"bold",mb:.5,mt:4}},Form:{baseStyle:{helperText:{fontSize:"xs",mt:.5},requiredIndicator:{color:"chakra-body-text"}}},FormError:{baseStyle:{text:{fontSize:"xs",mt:.5}}},Menu:{baseStyle:{item:{fontSize:"sm",letterSpacing:"wide",minHeight:"44px"},groupTitle:{fontWeight:"bold"},list:{border:"none",shadow:"lg"},divider:{color:"gray.200",_dark:{color:"gray.500"}}}},Tooltip:{variants:{hailer:{bg:bv.reference,color:zx.reference,[Soe.variable]:bv.reference,borderRadius:"md",_light:{[bv.variable]:"white",[zx.variable]:"chakra-body-text"},_dark:{[bv.variable]:"colors.gray.700",[zx.variable]:"chakra-body-text"}}},defaultProps:{variant:"hailer"}},Badge:{baseStyle:{borderRadius:"md"},defaultProps:{variant:"solid"}},Tag:{baseStyle:{container:{borderRadius:"full"},closeButton:{_light:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlue)"}},_dark:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlueLight)"}}}},sizes:{sm:{container:{minHeight:"1rem"}}},defaultProps:{size:"sm",variant:"solid"}},Stat:{baseStyle:{label:{fontWeight:"semibold"},number:{fontWeight:"bold"}}},Table:{baseStyle:e=>({thead:{bg:e.colorMode==="dark"?"gray.800":"gray.100",color:e.colorMode==="dark"?"gray.400":"gray.600","th:first-child":{borderTopLeftRadius:"sm"},"th:last-child":{borderTopRightRadius:"sm"}},th:{textTransform:"none",letterSpacing:"wide"}}),sizes:{sm:{thead:{height:"2rem"}},md:{th:{fontSize:"xs"},td:{fontSize:"sm"}},lg:{th:{fontSize:"sm"}}},variants:{striped:e=>({tbody:{tr:{"&:nth-of-type(even)":{"th, td":{borderBottomWidth:"1px",borderColor:e.colorMode==="dark"?"gray.600":"gray.50"},td:{background:e.colorMode==="dark"?"gray.600":"gray.50"}},"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:e.colorMode==="dark"?"gray.600":"gray.50"},td:{background:"transparent"}}}}}),simple:e=>({tbody:{tr:{"th, td":{borderBottomWidth:"1px",borderColor:e.colorMode==="dark"?"chakra-border-color":"gray.200"}}}})},defaultProps:{variant:"simple"}},Card:{baseStyle:{container:{borderRadius:"lg"}},variants:{filled:e=>({container:{bg:e.colorMode==="dark"?"gray.700":"white"}}),elevated:{container:{shadow:"md"}}},defaultProps:{variant:"filled"}},Modal:{baseStyle:{dialog:{borderRadius:"lg"},header:{color:"whiteAlpha.900",borderTopLeftRadius:"lg",borderTopRightRadius:"lg",fontWeight:"bold",fontSize:"lg",maxHeight:"56px",_light:{bg:"blue.600"},_dark:{bg:"gray.800"}},body:{pt:6},footer:{pb:6,button:{width:"175px",m:1.5}},closeButton:{color:"whiteAlpha.900",mt:1}},sizes:{"7xl":{dialog:{m:5}},md:{footer:{button:{width:"50%"}}},full:{header:{borderTopLeftRadius:0,borderTopRightRadius:0}}}},Popover:{baseStyle:{content:{border:"none",shadow:"lg"},arrow:{_light:{[qO.variable]:"white"},_dark:{[qO.variable]:"colors.gray.700"}},header:{color:"whiteAlpha.900",borderTopLeftRadius:"lg",borderTopRightRadius:"lg",borderBottomWidth:0,fontWeight:"semibold",fontSize:"md",_light:{bg:"blue.600"},_dark:{bg:"gray.800"}},body:{px:5},footer:{display:"flex",justifyContent:"center",borderTopWidth:0,pt:0,button:{width:"50%",m:1.5}},closeButton:{color:"whiteAlpha.900",mt:1}}},Alert:{variants:{subtle:e=>({container:{_light:{bg:e.colorScheme==="red"?"red.50":e.colorScheme==="green"?"green.50":e.colorScheme==="orange"?"orange.100":e.colorScheme==="blue"?"blue.50":void 0,color:e.colorScheme==="red"?"red.900":e.colorScheme==="green"?"green.900":e.colorScheme==="orange"?"orange.900":e.colorScheme==="blue"?"blue.900":void 0},_dark:{bg:e.colorScheme==="red"?"red.700":e.colorScheme==="green"?"green.700":e.colorScheme==="orange"?"orange.900":e.colorScheme==="blue"?"blue.700":void 0,color:"whiteAlpha.900"}},icon:{_light:{color:e.colorScheme==="red"?"red.500":e.colorScheme==="green"?"green.500":e.colorScheme==="orange"?"orange.500":e.colorScheme==="blue"?"blue.500":void 0},_dark:{color:e.colorScheme==="red"?"red.100":e.colorScheme==="green"?"green.100":e.colorScheme==="orange"?"orange.100":e.colorScheme==="blue"?"blue.100":void 0}},spinner:{_light:{color:e.colorScheme==="red"?"red.600":e.colorScheme==="green"?"green.600":e.colorScheme==="orange"?"orange.600":e.colorScheme==="blue"?"blue.600":void 0},_dark:{color:e.colorScheme==="red"?"red.100":e.colorScheme==="green"?"green.100":e.colorScheme==="orange"?"orange.100":e.colorScheme==="blue"?"blue.100":void 0}}}),solid:e=>({container:{_light:{bg:e.colorScheme==="red"?"red.500":e.colorScheme==="green"?"green.500":e.colorScheme==="orange"?"orange.500":e.colorScheme==="blue"?"blue.500":void 0,color:"white"},_dark:{bg:e.colorScheme==="red"?"red.700":e.colorScheme==="green"?"green.700":e.colorScheme==="orange"?"orange.900":e.colorScheme==="blue"?"blue.700":void 0,color:"whiteAlpha.900"}},icon:{_light:{color:e.colorScheme==="red"?"red.50":e.colorScheme==="green"?"green.50":e.colorScheme==="orange"?"orange.50":e.colorScheme==="blue"?"blue.50":void 0},_dark:{color:e.colorScheme==="red"?"red.100":e.colorScheme==="green"?"green.100":e.colorScheme==="orange"?"orange.100":e.colorScheme==="blue"?"blue.100":void 0}},spinner:{_light:{color:e.colorScheme==="red"?"red.50":e.colorScheme==="green"?"green.50":e.colorScheme==="orange"?"orange.50":e.colorScheme==="blue"?"blue.50":void 0},_dark:{color:e.colorScheme==="red"?"red.100":e.colorScheme==="green"?"green.100":e.colorScheme==="orange"?"orange.100":e.colorScheme==="blue"?"blue.100":void 0}}})},defaultProps:{variant:"subtle"}},Drawer:{baseStyle:{footer:{button:{width:"175px",m:1}}}},Avatar:{sizes:{"hailer-sm":e=>({container:{height:9,width:9,fontSize:"sm","&:not([data-loaded])":{bg:"gray.400"}},badge:{boxSize:"0.9em",borderWidth:"0.1em",bg:"gray.400"},excessLabel:{bg:"blue.600",color:"white",height:9,width:9,borderWidth:"2px",borderColor:e.colorMode==="dark"?"gray.800":"white",fontSize:"sm"}}),"hailer-md":e=>({container:{height:10,width:10,fontSize:"md","&:not([data-loaded])":{bg:"gray.400"}},badge:{boxSize:"0.9em",borderWidth:"0.1em",bg:"gray.400"},excessLabel:{bg:"blue.600",color:"white",height:10,width:10,borderWidth:"2px",borderColor:e.colorMode==="dark"?"gray.800":"white",fontSize:"md"}}),"hailer-lg":e=>({container:{height:"2.75rem",width:"2.75rem",fontSize:"lg","&:not([data-loaded])":{bg:"gray.400"}},badge:{boxSize:"0.9em",borderWidth:"0.1em",bg:"gray.400"},excessLabel:{bg:"blue.600",color:"white",height:"2.75rem",width:"2.75rem",borderWidth:"2px",borderColor:e.colorMode==="dark"?"gray.800":"white",fontSize:"lg"}})},defaultProps:{size:"hailer-md"}},Slider:{baseStyle:e=>({thumb:{_light:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlue)"}},_dark:{_focusVisible:{boxShadow:"none",outline:"2px solid var(--chakra-colors-customColors-baseBlueLight)"}}},filledTrack:{_dark:{bg:e.colorScheme==="green"?"green.500":e.colorScheme==="blue"?"blue.500":void 0}}}),defaultProps:{colorScheme:"green"}},Progress:{baseStyle:e=>({filledTrack:{_dark:{bg:e.colorScheme==="green"?"green.500":e.colorScheme==="blue"?"blue.500":void 0}}}),defaultProps:{colorScheme:"green"}}}});Ix.createRoot(document.getElementById("root")).render(q.jsxDEV(dn.StrictMode,{children:q.jsxDEV(LJ,{theme:xoe,children:q.jsxDEV(yoe,{},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/main.tsx",lineNumber:11,columnNumber:7},globalThis)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/main.tsx",lineNumber:10,columnNumber:5},globalThis)},void 0,!1,{fileName:"/home/brodolf/Desktop/hailer-mcp/hailer-mcp/lineup-manager/src/main.tsx",lineNumber:9,columnNumber:3},globalThis));