@hailer/mcp 0.1.11 → 0.1.12

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 (62) hide show
  1. package/.claude/settings.json +12 -0
  2. package/CLAUDE.md +37 -1
  3. package/ai-hub/dist/assets/index-8ce6041d.css +1 -0
  4. package/ai-hub/dist/assets/index-930f01ca.js +348 -0
  5. package/ai-hub/dist/index.html +15 -0
  6. package/ai-hub/dist/manifest.json +14 -0
  7. package/ai-hub/dist/vite.svg +1 -0
  8. package/dist/app.js +5 -0
  9. package/dist/client/agents/base.d.ts +5 -0
  10. package/dist/client/agents/base.js +9 -2
  11. package/dist/client/agents/definitions.js +85 -0
  12. package/dist/client/agents/orchestrator.d.ts +21 -0
  13. package/dist/client/agents/orchestrator.js +292 -1
  14. package/dist/client/bot-entrypoint.d.ts +7 -0
  15. package/dist/client/bot-entrypoint.js +103 -0
  16. package/dist/client/bot-runner.d.ts +35 -0
  17. package/dist/client/bot-runner.js +188 -0
  18. package/dist/client/factory.d.ts +4 -0
  19. package/dist/client/factory.js +10 -0
  20. package/dist/client/server.d.ts +8 -0
  21. package/dist/client/server.js +251 -0
  22. package/dist/client/types.d.ts +29 -0
  23. package/dist/client/types.js +4 -1
  24. package/dist/core.d.ts +3 -0
  25. package/dist/core.js +72 -0
  26. package/dist/mcp/hailer-clients.d.ts +4 -0
  27. package/dist/mcp/hailer-clients.js +16 -1
  28. package/dist/mcp/tools/app-scaffold.js +127 -5
  29. package/dist/mcp/tools/bot-config.d.ts +78 -0
  30. package/dist/mcp/tools/bot-config.js +442 -0
  31. package/dist/mcp-server.js +109 -1
  32. package/dist/modules/bug-reports/bug-config.d.ts +25 -0
  33. package/dist/modules/bug-reports/bug-config.js +187 -0
  34. package/dist/modules/bug-reports/bug-monitor.d.ts +108 -0
  35. package/dist/modules/bug-reports/bug-monitor.js +510 -0
  36. package/dist/modules/bug-reports/giuseppe-ai.d.ts +59 -0
  37. package/dist/modules/bug-reports/giuseppe-ai.js +335 -0
  38. package/dist/modules/bug-reports/giuseppe-bot.d.ts +109 -0
  39. package/dist/modules/bug-reports/giuseppe-bot.js +765 -0
  40. package/dist/modules/bug-reports/giuseppe-files.d.ts +52 -0
  41. package/dist/modules/bug-reports/giuseppe-files.js +338 -0
  42. package/dist/modules/bug-reports/giuseppe-git.d.ts +48 -0
  43. package/dist/modules/bug-reports/giuseppe-git.js +298 -0
  44. package/dist/modules/bug-reports/giuseppe-prompt.d.ts +5 -0
  45. package/dist/modules/bug-reports/giuseppe-prompt.js +94 -0
  46. package/dist/modules/bug-reports/index.d.ts +76 -0
  47. package/dist/modules/bug-reports/index.js +213 -0
  48. package/dist/modules/bug-reports/pending-classification-registry.d.ts +28 -0
  49. package/dist/modules/bug-reports/pending-classification-registry.js +50 -0
  50. package/dist/modules/bug-reports/pending-fix-registry.d.ts +30 -0
  51. package/dist/modules/bug-reports/pending-fix-registry.js +42 -0
  52. package/dist/modules/bug-reports/pending-registry.d.ts +27 -0
  53. package/dist/modules/bug-reports/pending-registry.js +49 -0
  54. package/dist/modules/bug-reports/types.d.ts +123 -0
  55. package/dist/modules/bug-reports/types.js +9 -0
  56. package/dist/services/bug-monitor.d.ts +23 -0
  57. package/dist/services/bug-monitor.js +275 -0
  58. package/lineup-manager/dist/assets/index-b30c809f.js +600 -0
  59. package/lineup-manager/dist/index.html +1 -1
  60. package/lineup-manager/dist/manifest.json +5 -5
  61. package/package.json +6 -2
  62. package/lineup-manager/dist/assets/index-e168f265.js +0 -600
@@ -0,0 +1,348 @@
1
+ function Mw(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var ra=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ky={exports:{}},Xl={},Cy={exports:{}},H={};/**
2
+ * @license React
3
+ * react.production.min.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
+ */var As=Symbol.for("react.element"),Dw=Symbol.for("react.portal"),Iw=Symbol.for("react.fragment"),Lw=Symbol.for("react.strict_mode"),Bw=Symbol.for("react.profiler"),Fw=Symbol.for("react.provider"),jw=Symbol.for("react.context"),Ow=Symbol.for("react.forward_ref"),Vw=Symbol.for("react.suspense"),Nw=Symbol.for("react.memo"),Ww=Symbol.for("react.lazy"),Yp=Symbol.iterator;function Uw(e){return e===null||typeof e!="object"?null:(e=Yp&&e[Yp]||e["@@iterator"],typeof e=="function"?e:null)}var _y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ty=Object.assign,Py={};function ei(e,t,n){this.props=e,this.context=t,this.refs=Py,this.updater=n||_y}ei.prototype.isReactComponent={};ei.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ei.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ey(){}Ey.prototype=ei.prototype;function Pf(e,t,n){this.props=e,this.context=t,this.refs=Py,this.updater=n||_y}var Ef=Pf.prototype=new Ey;Ef.constructor=Pf;Ty(Ef,ei.prototype);Ef.isPureReactComponent=!0;var Xp=Array.isArray,$y=Object.prototype.hasOwnProperty,$f={current:null},Ay={key:!0,ref:!0,__self:!0,__source:!0};function Ry(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)$y.call(t,r)&&!Ay.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:As,type:e,key:i,ref:s,props:o,_owner:$f.current}}function Hw(e,t){return{$$typeof:As,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Af(e){return typeof e=="object"&&e!==null&&e.$$typeof===As}function qw(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Qp=/\/+/g;function Kc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?qw(""+e.key):t.toString(36)}function Ia(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case As:case Dw:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Kc(s,0):r,Xp(o)?(n="",e!=null&&(n=e.replace(Qp,"$&/")+"/"),Ia(o,t,n,"",function(c){return c})):o!=null&&(Af(o)&&(o=Hw(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Qp,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Xp(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+Kc(i,a);s+=Ia(i,t,n,l,o)}else if(l=Uw(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+Kc(i,a++),s+=Ia(i,t,n,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function oa(e,t,n){if(e==null)return e;var r=[],o=0;return Ia(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Kw(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var tt={current:null},La={transition:null},Gw={ReactCurrentDispatcher:tt,ReactCurrentBatchConfig:La,ReactCurrentOwner:$f};function zy(){throw Error("act(...) is not supported in production builds of React.")}H.Children={map:oa,forEach:function(e,t,n){oa(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return oa(e,function(){t++}),t},toArray:function(e){return oa(e,function(t){return t})||[]},only:function(e){if(!Af(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};H.Component=ei;H.Fragment=Iw;H.Profiler=Bw;H.PureComponent=Pf;H.StrictMode=Lw;H.Suspense=Vw;H.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gw;H.act=zy;H.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Ty({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=$f.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)$y.call(t,l)&&!Ay.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:As,type:e.type,key:o,ref:i,props:r,_owner:s}};H.createContext=function(e){return e={$$typeof:jw,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Fw,_context:e},e.Consumer=e};H.createElement=Ry;H.createFactory=function(e){var t=Ry.bind(null,e);return t.type=e,t};H.createRef=function(){return{current:null}};H.forwardRef=function(e){return{$$typeof:Ow,render:e}};H.isValidElement=Af;H.lazy=function(e){return{$$typeof:Ww,_payload:{_status:-1,_result:e},_init:Kw}};H.memo=function(e,t){return{$$typeof:Nw,type:e,compare:t===void 0?null:t}};H.startTransition=function(e){var t=La.transition;La.transition={};try{e()}finally{La.transition=t}};H.unstable_act=zy;H.useCallback=function(e,t){return tt.current.useCallback(e,t)};H.useContext=function(e){return tt.current.useContext(e)};H.useDebugValue=function(){};H.useDeferredValue=function(e){return tt.current.useDeferredValue(e)};H.useEffect=function(e,t){return tt.current.useEffect(e,t)};H.useId=function(){return tt.current.useId()};H.useImperativeHandle=function(e,t,n){return tt.current.useImperativeHandle(e,t,n)};H.useInsertionEffect=function(e,t){return tt.current.useInsertionEffect(e,t)};H.useLayoutEffect=function(e,t){return tt.current.useLayoutEffect(e,t)};H.useMemo=function(e,t){return tt.current.useMemo(e,t)};H.useReducer=function(e,t,n){return tt.current.useReducer(e,t,n)};H.useRef=function(e){return tt.current.useRef(e)};H.useState=function(e){return tt.current.useState(e)};H.useSyncExternalStore=function(e,t,n){return tt.current.useSyncExternalStore(e,t,n)};H.useTransition=function(){return tt.current.useTransition()};H.version="18.3.1";Cy.exports=H;var w=Cy.exports;const My=Tf(w),Zp=Mw({__proto__:null,default:My},[w]);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Yw=w,Xw=Symbol.for("react.element"),Qw=Symbol.for("react.fragment"),Zw=Object.prototype.hasOwnProperty,Jw=Yw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ek={key:!0,ref:!0,__self:!0,__source:!0};function Dy(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Zw.call(t,r)&&!ek.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Xw,type:e,key:i,ref:s,props:o,_owner:Jw.current}}Xl.Fragment=Qw;Xl.jsx=Dy;Xl.jsxs=Dy;ky.exports=Xl;var A=ky.exports,Zu={},Iy={exports:{}},Ct={},Ly={exports:{}},By={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */(function(e){function t(z,O){var V=z.length;z.push(O);e:for(;0<V;){var se=V-1>>>1,pe=z[se];if(0<o(pe,O))z[se]=O,z[V]=pe,V=se;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var O=z[0],V=z.pop();if(V!==O){z[0]=V;e:for(var se=0,pe=z.length,N=pe>>>1;se<N;){var ht=2*(se+1)-1,Vn=z[ht],We=ht+1,nn=z[We];if(0>o(Vn,V))We<pe&&0>o(nn,Vn)?(z[se]=nn,z[We]=V,se=We):(z[se]=Vn,z[ht]=V,se=ht);else if(We<pe&&0>o(nn,V))z[se]=nn,z[We]=V,se=We;else break e}}return O}function o(z,O){var V=z.sortIndex-O.sortIndex;return V!==0?V:z.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,f=3,g=!1,v=!1,b=!1,k=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(z){for(var O=n(c);O!==null;){if(O.callback===null)r(c);else if(O.startTime<=z)r(c),O.sortIndex=O.expirationTime,t(l,O);else break;O=n(c)}}function C(z){if(b=!1,y(z),!v)if(n(l)!==null)v=!0,tn(_);else{var O=n(c);O!==null&&X(C,O.startTime-z)}}function _(z,O){v=!1,b&&(b=!1,p($),$=-1),g=!0;var V=f;try{for(y(O),d=n(l);d!==null&&(!(d.expirationTime>O)||z&&!re());){var se=d.callback;if(typeof se=="function"){d.callback=null,f=d.priorityLevel;var pe=se(d.expirationTime<=O);O=e.unstable_now(),typeof pe=="function"?d.callback=pe:d===n(l)&&r(l),y(O)}else r(l);d=n(l)}if(d!==null)var N=!0;else{var ht=n(c);ht!==null&&X(C,ht.startTime-O),N=!1}return N}finally{d=null,f=V,g=!1}}var E=!1,P=null,$=-1,j=5,I=-1;function re(){return!(e.unstable_now()-I<j)}function Ne(){if(P!==null){var z=e.unstable_now();I=z;var O=!0;try{O=P(!0,z)}finally{O?Pt():(E=!1,P=null)}}else E=!1}var Pt;if(typeof h=="function")Pt=function(){h(Ne)};else if(typeof MessageChannel<"u"){var ft=new MessageChannel,Wt=ft.port2;ft.port1.onmessage=Ne,Pt=function(){Wt.postMessage(null)}}else Pt=function(){k(Ne,0)};function tn(z){P=z,E||(E=!0,Pt())}function X(z,O){$=k(function(){z(e.unstable_now())},O)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_continueExecution=function(){v||g||(v=!0,tn(_))},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(z){switch(f){case 1:case 2:case 3:var O=3;break;default:O=f}var V=f;f=O;try{return z()}finally{f=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(z,O){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var V=f;f=z;try{return O()}finally{f=V}},e.unstable_scheduleCallback=function(z,O,V){var se=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?se+V:se):V=se,z){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=V+pe,z={id:u++,callback:O,priorityLevel:z,startTime:V,expirationTime:pe,sortIndex:-1},V>se?(z.sortIndex=V,t(c,z),n(l)===null&&z===n(c)&&(b?(p($),$=-1):b=!0,X(C,V-se))):(z.sortIndex=pe,t(l,z),v||g||(v=!0,tn(_))),z},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(z){var O=f;return function(){var V=f;f=O;try{return z.apply(this,arguments)}finally{f=V}}}})(By);Ly.exports=By;var tk=Ly.exports;/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var nk=w,wt=tk;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Fy=new Set,ts={};function qr(e,t){Oo(e,t),Oo(e+"Capture",t)}function Oo(e,t){for(ts[e]=t,e=0;e<t.length;e++)Fy.add(t[e])}var Dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ju=Object.prototype.hasOwnProperty,rk=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Jp={},em={};function ok(e){return Ju.call(em,e)?!0:Ju.call(Jp,e)?!1:rk.test(e)?em[e]=!0:(Jp[e]=!0,!1)}function ik(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function sk(e,t,n,r){if(t===null||typeof t>"u"||ik(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function nt(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ve[e]=new nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ve[t]=new nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ve[e]=new nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ve[e]=new nt(e,2,!1,e,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".split(" ").forEach(function(e){Ve[e]=new nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ve[e]=new nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ve[e]=new nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ve[e]=new nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ve[e]=new nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Rf=/[\-:]([a-z])/g;function zf(e){return e[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".split(" ").forEach(function(e){var t=e.replace(Rf,zf);Ve[t]=new nt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Rf,zf);Ve[t]=new nt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Rf,zf);Ve[t]=new nt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ve[e]=new nt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ve.xlinkHref=new nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ve[e]=new nt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Mf(e,t,n,r){var o=Ve.hasOwnProperty(t)?Ve[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(sk(t,n,o,r)&&(n=null),r||o===null?ok(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var On=nk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ia=Symbol.for("react.element"),no=Symbol.for("react.portal"),ro=Symbol.for("react.fragment"),Df=Symbol.for("react.strict_mode"),ed=Symbol.for("react.profiler"),jy=Symbol.for("react.provider"),Oy=Symbol.for("react.context"),If=Symbol.for("react.forward_ref"),td=Symbol.for("react.suspense"),nd=Symbol.for("react.suspense_list"),Lf=Symbol.for("react.memo"),qn=Symbol.for("react.lazy"),Vy=Symbol.for("react.offscreen"),tm=Symbol.iterator;function ui(e){return e===null||typeof e!="object"?null:(e=tm&&e[tm]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Object.assign,Gc;function ki(e){if(Gc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Gc=t&&t[1]||""}return`
34
+ `+Gc+e}var Yc=!1;function Xc(e,t){if(!e||Yc)return"";Yc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
35
+ `),i=r.stack.split(`
36
+ `),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=`
37
+ `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Yc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ki(e):""}function ak(e){switch(e.tag){case 5:return ki(e.type);case 16:return ki("Lazy");case 13:return ki("Suspense");case 19:return ki("SuspenseList");case 0:case 2:case 15:return e=Xc(e.type,!1),e;case 11:return e=Xc(e.type.render,!1),e;case 1:return e=Xc(e.type,!0),e;default:return""}}function rd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ro:return"Fragment";case no:return"Portal";case ed:return"Profiler";case Df:return"StrictMode";case td:return"Suspense";case nd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Oy:return(e.displayName||"Context")+".Consumer";case jy:return(e._context.displayName||"Context")+".Provider";case If:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Lf:return t=e.displayName||null,t!==null?t:rd(e.type)||"Memo";case qn:t=e._payload,e=e._init;try{return rd(e(t))}catch{}}return null}function lk(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return rd(t);case 8:return t===Df?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function cr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ny(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ck(e){var t=Ny(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sa(e){e._valueTracker||(e._valueTracker=ck(e))}function Wy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ny(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ul(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function od(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function nm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=cr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Uy(e,t){t=t.checked,t!=null&&Mf(e,"checked",t,!1)}function id(e,t){Uy(e,t);var n=cr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?sd(e,t.type,n):t.hasOwnProperty("defaultValue")&&sd(e,t.type,cr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function rm(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function sd(e,t,n){(t!=="number"||ul(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ci=Array.isArray;function To(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+cr(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function ad(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return xe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function om(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(R(92));if(Ci(n)){if(1<n.length)throw Error(R(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:cr(n)}}function Hy(e,t){var n=cr(t.value),r=cr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function im(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function qy(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ld(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?qy(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var aa,Ky=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(aa=aa||document.createElement("div"),aa.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=aa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ns(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Li={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},uk=["Webkit","ms","Moz","O"];Object.keys(Li).forEach(function(e){uk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Li[t]=Li[e]})});function Gy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Li.hasOwnProperty(e)&&Li[e]?(""+t).trim():t+"px"}function Yy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Gy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var dk=xe({menuitem:!0},{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});function cd(e,t){if(t){if(dk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function ud(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dd=null;function Bf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fd=null,Po=null,Eo=null;function sm(e){if(e=Ms(e)){if(typeof fd!="function")throw Error(R(280));var t=e.stateNode;t&&(t=tc(t),fd(e.stateNode,e.type,t))}}function Xy(e){Po?Eo?Eo.push(e):Eo=[e]:Po=e}function Qy(){if(Po){var e=Po,t=Eo;if(Eo=Po=null,sm(e),t)for(e=0;e<t.length;e++)sm(t[e])}}function Zy(e,t){return e(t)}function Jy(){}var Qc=!1;function ev(e,t,n){if(Qc)return e(t,n);Qc=!0;try{return Zy(e,t,n)}finally{Qc=!1,(Po!==null||Eo!==null)&&(Jy(),Qy())}}function rs(e,t){var n=e.stateNode;if(n===null)return null;var r=tc(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(R(231,t,typeof n));return n}var hd=!1;if(Dn)try{var di={};Object.defineProperty(di,"passive",{get:function(){hd=!0}}),window.addEventListener("test",di,di),window.removeEventListener("test",di,di)}catch{hd=!1}function fk(e,t,n,r,o,i,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Bi=!1,dl=null,fl=!1,pd=null,hk={onError:function(e){Bi=!0,dl=e}};function pk(e,t,n,r,o,i,s,a,l){Bi=!1,dl=null,fk.apply(hk,arguments)}function mk(e,t,n,r,o,i,s,a,l){if(pk.apply(this,arguments),Bi){if(Bi){var c=dl;Bi=!1,dl=null}else throw Error(R(198));fl||(fl=!0,pd=c)}}function Kr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function tv(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function am(e){if(Kr(e)!==e)throw Error(R(188))}function gk(e){var t=e.alternate;if(!t){if(t=Kr(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return am(o),e;if(i===r)return am(o),t;i=i.sibling}throw Error(R(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(R(189))}}if(n.alternate!==r)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function nv(e){return e=gk(e),e!==null?rv(e):null}function rv(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=rv(e);if(t!==null)return t;e=e.sibling}return null}var ov=wt.unstable_scheduleCallback,lm=wt.unstable_cancelCallback,yk=wt.unstable_shouldYield,vk=wt.unstable_requestPaint,Te=wt.unstable_now,bk=wt.unstable_getCurrentPriorityLevel,Ff=wt.unstable_ImmediatePriority,iv=wt.unstable_UserBlockingPriority,hl=wt.unstable_NormalPriority,Sk=wt.unstable_LowPriority,sv=wt.unstable_IdlePriority,Ql=null,hn=null;function xk(e){if(hn&&typeof hn.onCommitFiberRoot=="function")try{hn.onCommitFiberRoot(Ql,e,void 0,(e.current.flags&128)===128)}catch{}}var Qt=Math.clz32?Math.clz32:Ck,wk=Math.log,kk=Math.LN2;function Ck(e){return e>>>=0,e===0?32:31-(wk(e)/kk|0)|0}var la=64,ca=4194304;function _i(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=_i(a):(i&=s,i!==0&&(r=_i(i)))}else s=n&~o,s!==0?r=_i(s):i!==0&&(r=_i(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Qt(t),o=1<<n,r|=e[n],t&=~o;return r}function _k(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Tk(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Qt(i),a=1<<s,l=o[s];l===-1?(!(a&n)||a&r)&&(o[s]=_k(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function md(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function av(){var e=la;return la<<=1,!(la&4194240)&&(la=64),e}function Zc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Rs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Qt(t),e[t]=n}function Pk(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Qt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function jf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Qt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var oe=0;function lv(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var cv,Of,uv,dv,fv,gd=!1,ua=[],tr=null,nr=null,rr=null,os=new Map,is=new Map,Yn=[],Ek="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".split(" ");function cm(e,t){switch(e){case"focusin":case"focusout":tr=null;break;case"dragenter":case"dragleave":nr=null;break;case"mouseover":case"mouseout":rr=null;break;case"pointerover":case"pointerout":os.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":is.delete(t.pointerId)}}function fi(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Ms(t),t!==null&&Of(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function $k(e,t,n,r,o){switch(t){case"focusin":return tr=fi(tr,e,t,n,r,o),!0;case"dragenter":return nr=fi(nr,e,t,n,r,o),!0;case"mouseover":return rr=fi(rr,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return os.set(i,fi(os.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,is.set(i,fi(is.get(i)||null,e,t,n,r,o)),!0}return!1}function hv(e){var t=Er(e.target);if(t!==null){var n=Kr(t);if(n!==null){if(t=n.tag,t===13){if(t=tv(n),t!==null){e.blockedOn=t,fv(e.priority,function(){uv(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ba(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=yd(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);dd=r,n.target.dispatchEvent(r),dd=null}else return t=Ms(n),t!==null&&Of(t),e.blockedOn=n,!1;t.shift()}return!0}function um(e,t,n){Ba(e)&&n.delete(t)}function Ak(){gd=!1,tr!==null&&Ba(tr)&&(tr=null),nr!==null&&Ba(nr)&&(nr=null),rr!==null&&Ba(rr)&&(rr=null),os.forEach(um),is.forEach(um)}function hi(e,t){e.blockedOn===t&&(e.blockedOn=null,gd||(gd=!0,wt.unstable_scheduleCallback(wt.unstable_NormalPriority,Ak)))}function ss(e){function t(o){return hi(o,e)}if(0<ua.length){hi(ua[0],e);for(var n=1;n<ua.length;n++){var r=ua[n];r.blockedOn===e&&(r.blockedOn=null)}}for(tr!==null&&hi(tr,e),nr!==null&&hi(nr,e),rr!==null&&hi(rr,e),os.forEach(t),is.forEach(t),n=0;n<Yn.length;n++)r=Yn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Yn.length&&(n=Yn[0],n.blockedOn===null);)hv(n),n.blockedOn===null&&Yn.shift()}var $o=On.ReactCurrentBatchConfig,ml=!0;function Rk(e,t,n,r){var o=oe,i=$o.transition;$o.transition=null;try{oe=1,Vf(e,t,n,r)}finally{oe=o,$o.transition=i}}function zk(e,t,n,r){var o=oe,i=$o.transition;$o.transition=null;try{oe=4,Vf(e,t,n,r)}finally{oe=o,$o.transition=i}}function Vf(e,t,n,r){if(ml){var o=yd(e,t,n,r);if(o===null)lu(e,t,r,gl,n),cm(e,r);else if($k(o,e,t,n,r))r.stopPropagation();else if(cm(e,r),t&4&&-1<Ek.indexOf(e)){for(;o!==null;){var i=Ms(o);if(i!==null&&cv(i),i=yd(e,t,n,r),i===null&&lu(e,t,r,gl,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else lu(e,t,r,null,n)}}var gl=null;function yd(e,t,n,r){if(gl=null,e=Bf(r),e=Er(e),e!==null)if(t=Kr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=tv(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return gl=e,null}function pv(e){switch(e){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 1;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 4;case"message":switch(bk()){case Ff:return 1;case iv:return 4;case hl:case Sk:return 16;case sv:return 536870912;default:return 16}default:return 16}}var Zn=null,Nf=null,Fa=null;function mv(){if(Fa)return Fa;var e,t=Nf,n=t.length,r,o="value"in Zn?Zn.value:Zn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return Fa=o.slice(e,1<r?1-r:void 0)}function ja(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function da(){return!0}function dm(){return!1}function _t(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?da:dm,this.isPropagationStopped=dm,this}return xe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=da)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=da)},persist:function(){},isPersistent:da}),t}var ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wf=_t(ti),zs=xe({},ti,{view:0,detail:0}),Mk=_t(zs),Jc,eu,pi,Zl=xe({},zs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Uf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==pi&&(pi&&e.type==="mousemove"?(Jc=e.screenX-pi.screenX,eu=e.screenY-pi.screenY):eu=Jc=0,pi=e),Jc)},movementY:function(e){return"movementY"in e?e.movementY:eu}}),fm=_t(Zl),Dk=xe({},Zl,{dataTransfer:0}),Ik=_t(Dk),Lk=xe({},zs,{relatedTarget:0}),tu=_t(Lk),Bk=xe({},ti,{animationName:0,elapsedTime:0,pseudoElement:0}),Fk=_t(Bk),jk=xe({},ti,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ok=_t(jk),Vk=xe({},ti,{data:0}),hm=_t(Vk),Nk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wk={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"},Uk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hk(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Uk[e])?!!t[e]:!1}function Uf(){return Hk}var qk=xe({},zs,{key:function(e){if(e.key){var t=Nk[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ja(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Wk[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uf,charCode:function(e){return e.type==="keypress"?ja(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ja(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Kk=_t(qk),Gk=xe({},Zl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pm=_t(Gk),Yk=xe({},zs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uf}),Xk=_t(Yk),Qk=xe({},ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zk=_t(Qk),Jk=xe({},Zl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),eC=_t(Jk),tC=[9,13,27,32],Hf=Dn&&"CompositionEvent"in window,Fi=null;Dn&&"documentMode"in document&&(Fi=document.documentMode);var nC=Dn&&"TextEvent"in window&&!Fi,gv=Dn&&(!Hf||Fi&&8<Fi&&11>=Fi),mm=String.fromCharCode(32),gm=!1;function yv(e,t){switch(e){case"keyup":return tC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oo=!1;function rC(e,t){switch(e){case"compositionend":return vv(t);case"keypress":return t.which!==32?null:(gm=!0,mm);case"textInput":return e=t.data,e===mm&&gm?null:e;default:return null}}function oC(e,t){if(oo)return e==="compositionend"||!Hf&&yv(e,t)?(e=mv(),Fa=Nf=Zn=null,oo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return gv&&t.locale!=="ko"?null:t.data;default:return null}}var iC={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 ym(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!iC[e.type]:t==="textarea"}function bv(e,t,n,r){Xy(r),t=yl(t,"onChange"),0<t.length&&(n=new Wf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ji=null,as=null;function sC(e){Av(e,0)}function Jl(e){var t=ao(e);if(Wy(t))return e}function aC(e,t){if(e==="change")return t}var Sv=!1;if(Dn){var nu;if(Dn){var ru="oninput"in document;if(!ru){var vm=document.createElement("div");vm.setAttribute("oninput","return;"),ru=typeof vm.oninput=="function"}nu=ru}else nu=!1;Sv=nu&&(!document.documentMode||9<document.documentMode)}function bm(){ji&&(ji.detachEvent("onpropertychange",xv),as=ji=null)}function xv(e){if(e.propertyName==="value"&&Jl(as)){var t=[];bv(t,as,e,Bf(e)),ev(sC,t)}}function lC(e,t,n){e==="focusin"?(bm(),ji=t,as=n,ji.attachEvent("onpropertychange",xv)):e==="focusout"&&bm()}function cC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jl(as)}function uC(e,t){if(e==="click")return Jl(t)}function dC(e,t){if(e==="input"||e==="change")return Jl(t)}function fC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jt=typeof Object.is=="function"?Object.is:fC;function ls(e,t){if(Jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Ju.call(t,o)||!Jt(e[o],t[o]))return!1}return!0}function Sm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xm(e,t){var n=Sm(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Sm(n)}}function wv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kv(){for(var e=window,t=ul();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ul(e.document)}return t}function qf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function hC(e){var t=kv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&wv(n.ownerDocument.documentElement,n)){if(r!==null&&qf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=xm(n,i);var s=xm(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var pC=Dn&&"documentMode"in document&&11>=document.documentMode,io=null,vd=null,Oi=null,bd=!1;function wm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bd||io==null||io!==ul(r)||(r=io,"selectionStart"in r&&qf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Oi&&ls(Oi,r)||(Oi=r,r=yl(vd,"onSelect"),0<r.length&&(t=new Wf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=io)))}function fa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var so={animationend:fa("Animation","AnimationEnd"),animationiteration:fa("Animation","AnimationIteration"),animationstart:fa("Animation","AnimationStart"),transitionend:fa("Transition","TransitionEnd")},ou={},Cv={};Dn&&(Cv=document.createElement("div").style,"AnimationEvent"in window||(delete so.animationend.animation,delete so.animationiteration.animation,delete so.animationstart.animation),"TransitionEvent"in window||delete so.transitionend.transition);function ec(e){if(ou[e])return ou[e];if(!so[e])return e;var t=so[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Cv)return ou[e]=t[n];return e}var _v=ec("animationend"),Tv=ec("animationiteration"),Pv=ec("animationstart"),Ev=ec("transitionend"),$v=new Map,km="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".split(" ");function hr(e,t){$v.set(e,t),qr(t,[e])}for(var iu=0;iu<km.length;iu++){var su=km[iu],mC=su.toLowerCase(),gC=su[0].toUpperCase()+su.slice(1);hr(mC,"on"+gC)}hr(_v,"onAnimationEnd");hr(Tv,"onAnimationIteration");hr(Pv,"onAnimationStart");hr("dblclick","onDoubleClick");hr("focusin","onFocus");hr("focusout","onBlur");hr(Ev,"onTransitionEnd");Oo("onMouseEnter",["mouseout","mouseover"]);Oo("onMouseLeave",["mouseout","mouseover"]);Oo("onPointerEnter",["pointerout","pointerover"]);Oo("onPointerLeave",["pointerout","pointerover"]);qr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));qr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));qr("onBeforeInput",["compositionend","keypress","textInput","paste"]);qr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));qr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));qr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ti="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),yC=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ti));function Cm(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,mk(r,t,void 0,e),e.currentTarget=null}function Av(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;Cm(o,a,c),i=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;Cm(o,a,c),i=l}}}if(fl)throw e=pd,fl=!1,pd=null,e}function ue(e,t){var n=t[Cd];n===void 0&&(n=t[Cd]=new Set);var r=e+"__bubble";n.has(r)||(Rv(t,e,2,!1),n.add(r))}function au(e,t,n){var r=0;t&&(r|=4),Rv(n,e,r,t)}var ha="_reactListening"+Math.random().toString(36).slice(2);function cs(e){if(!e[ha]){e[ha]=!0,Fy.forEach(function(n){n!=="selectionchange"&&(yC.has(n)||au(n,!1,e),au(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ha]||(t[ha]=!0,au("selectionchange",!1,t))}}function Rv(e,t,n,r){switch(pv(t)){case 1:var o=Rk;break;case 4:o=zk;break;default:o=Vf}n=o.bind(null,t,n,e),o=void 0,!hd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function lu(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;a!==null;){if(s=Er(a),s===null)return;if(l=s.tag,l===5||l===6){r=i=s;continue e}a=a.parentNode}}r=r.return}ev(function(){var c=i,u=Bf(n),d=[];e:{var f=$v.get(e);if(f!==void 0){var g=Wf,v=e;switch(e){case"keypress":if(ja(n)===0)break e;case"keydown":case"keyup":g=Kk;break;case"focusin":v="focus",g=tu;break;case"focusout":v="blur",g=tu;break;case"beforeblur":case"afterblur":g=tu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=fm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=Ik;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=Xk;break;case _v:case Tv:case Pv:g=Fk;break;case Ev:g=Zk;break;case"scroll":g=Mk;break;case"wheel":g=eC;break;case"copy":case"cut":case"paste":g=Ok;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=pm}var b=(t&4)!==0,k=!b&&e==="scroll",p=b?f!==null?f+"Capture":null:f;b=[];for(var h=c,y;h!==null;){y=h;var C=y.stateNode;if(y.tag===5&&C!==null&&(y=C,p!==null&&(C=rs(h,p),C!=null&&b.push(us(h,C,y)))),k)break;h=h.return}0<b.length&&(f=new g(f,v,null,n,u),d.push({event:f,listeners:b}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",f&&n!==dd&&(v=n.relatedTarget||n.fromElement)&&(Er(v)||v[In]))break e;if((g||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,g?(v=n.relatedTarget||n.toElement,g=c,v=v?Er(v):null,v!==null&&(k=Kr(v),v!==k||v.tag!==5&&v.tag!==6)&&(v=null)):(g=null,v=c),g!==v)){if(b=fm,C="onMouseLeave",p="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(b=pm,C="onPointerLeave",p="onPointerEnter",h="pointer"),k=g==null?f:ao(g),y=v==null?f:ao(v),f=new b(C,h+"leave",g,n,u),f.target=k,f.relatedTarget=y,C=null,Er(u)===c&&(b=new b(p,h+"enter",v,n,u),b.target=y,b.relatedTarget=k,C=b),k=C,g&&v)t:{for(b=g,p=v,h=0,y=b;y;y=Jr(y))h++;for(y=0,C=p;C;C=Jr(C))y++;for(;0<h-y;)b=Jr(b),h--;for(;0<y-h;)p=Jr(p),y--;for(;h--;){if(b===p||p!==null&&b===p.alternate)break t;b=Jr(b),p=Jr(p)}b=null}else b=null;g!==null&&_m(d,f,g,b,!1),v!==null&&k!==null&&_m(d,k,v,b,!0)}}e:{if(f=c?ao(c):window,g=f.nodeName&&f.nodeName.toLowerCase(),g==="select"||g==="input"&&f.type==="file")var _=aC;else if(ym(f))if(Sv)_=dC;else{_=cC;var E=lC}else(g=f.nodeName)&&g.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(_=uC);if(_&&(_=_(e,c))){bv(d,_,n,u);break e}E&&E(e,f,c),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&sd(f,"number",f.value)}switch(E=c?ao(c):window,e){case"focusin":(ym(E)||E.contentEditable==="true")&&(io=E,vd=c,Oi=null);break;case"focusout":Oi=vd=io=null;break;case"mousedown":bd=!0;break;case"contextmenu":case"mouseup":case"dragend":bd=!1,wm(d,n,u);break;case"selectionchange":if(pC)break;case"keydown":case"keyup":wm(d,n,u)}var P;if(Hf)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else oo?yv(e,n)&&($="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&($="onCompositionStart");$&&(gv&&n.locale!=="ko"&&(oo||$!=="onCompositionStart"?$==="onCompositionEnd"&&oo&&(P=mv()):(Zn=u,Nf="value"in Zn?Zn.value:Zn.textContent,oo=!0)),E=yl(c,$),0<E.length&&($=new hm($,e,null,n,u),d.push({event:$,listeners:E}),P?$.data=P:(P=vv(n),P!==null&&($.data=P)))),(P=nC?rC(e,n):oC(e,n))&&(c=yl(c,"onBeforeInput"),0<c.length&&(u=new hm("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=P))}Av(d,t)})}function us(e,t,n){return{instance:e,listener:t,currentTarget:n}}function yl(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=rs(e,n),i!=null&&r.unshift(us(e,i,o)),i=rs(e,t),i!=null&&r.push(us(e,i,o))),e=e.return}return r}function Jr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _m(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,o?(l=rs(n,i),l!=null&&s.unshift(us(n,l,a))):o||(l=rs(n,i),l!=null&&s.push(us(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var vC=/\r\n?/g,bC=/\u0000|\uFFFD/g;function Tm(e){return(typeof e=="string"?e:""+e).replace(vC,`
38
+ `).replace(bC,"")}function pa(e,t,n){if(t=Tm(t),Tm(e)!==t&&n)throw Error(R(425))}function vl(){}var Sd=null,xd=null;function wd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var kd=typeof setTimeout=="function"?setTimeout:void 0,SC=typeof clearTimeout=="function"?clearTimeout:void 0,Pm=typeof Promise=="function"?Promise:void 0,xC=typeof queueMicrotask=="function"?queueMicrotask:typeof Pm<"u"?function(e){return Pm.resolve(null).then(e).catch(wC)}:kd;function wC(e){setTimeout(function(){throw e})}function cu(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),ss(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);ss(t)}function or(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Em(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ni=Math.random().toString(36).slice(2),dn="__reactFiber$"+ni,ds="__reactProps$"+ni,In="__reactContainer$"+ni,Cd="__reactEvents$"+ni,kC="__reactListeners$"+ni,CC="__reactHandles$"+ni;function Er(e){var t=e[dn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[In]||n[dn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Em(e);e!==null;){if(n=e[dn])return n;e=Em(e)}return t}e=n,n=e.parentNode}return null}function Ms(e){return e=e[dn]||e[In],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ao(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function tc(e){return e[ds]||null}var _d=[],lo=-1;function pr(e){return{current:e}}function fe(e){0>lo||(e.current=_d[lo],_d[lo]=null,lo--)}function le(e,t){lo++,_d[lo]=e.current,e.current=t}var ur={},Xe=pr(ur),at=pr(!1),jr=ur;function Vo(e,t){var n=e.type.contextTypes;if(!n)return ur;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function lt(e){return e=e.childContextTypes,e!=null}function bl(){fe(at),fe(Xe)}function $m(e,t,n){if(Xe.current!==ur)throw Error(R(168));le(Xe,t),le(at,n)}function zv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,lk(e)||"Unknown",o));return xe({},n,r)}function Sl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ur,jr=Xe.current,le(Xe,e),le(at,at.current),!0}function Am(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=zv(e,t,jr),r.__reactInternalMemoizedMergedChildContext=e,fe(at),fe(Xe),le(Xe,e)):fe(at),le(at,n)}var kn=null,nc=!1,uu=!1;function Mv(e){kn===null?kn=[e]:kn.push(e)}function _C(e){nc=!0,Mv(e)}function mr(){if(!uu&&kn!==null){uu=!0;var e=0,t=oe;try{var n=kn;for(oe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}kn=null,nc=!1}catch(o){throw kn!==null&&(kn=kn.slice(e+1)),ov(Ff,mr),o}finally{oe=t,uu=!1}}return null}var co=[],uo=0,xl=null,wl=0,Dt=[],It=0,Or=null,Pn=1,En="";function kr(e,t){co[uo++]=wl,co[uo++]=xl,xl=e,wl=t}function Dv(e,t,n){Dt[It++]=Pn,Dt[It++]=En,Dt[It++]=Or,Or=e;var r=Pn;e=En;var o=32-Qt(r)-1;r&=~(1<<o),n+=1;var i=32-Qt(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Pn=1<<32-Qt(t)+o|n<<o|r,En=i+e}else Pn=1<<i|n<<o|r,En=e}function Kf(e){e.return!==null&&(kr(e,1),Dv(e,1,0))}function Gf(e){for(;e===xl;)xl=co[--uo],co[uo]=null,wl=co[--uo],co[uo]=null;for(;e===Or;)Or=Dt[--It],Dt[It]=null,En=Dt[--It],Dt[It]=null,Pn=Dt[--It],Dt[It]=null}var vt=null,yt=null,ye=!1,Yt=null;function Iv(e,t){var n=Lt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Rm(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,vt=e,yt=or(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,vt=e,yt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Or!==null?{id:Pn,overflow:En}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Lt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,vt=e,yt=null,!0):!1;default:return!1}}function Td(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Pd(e){if(ye){var t=yt;if(t){var n=t;if(!Rm(e,t)){if(Td(e))throw Error(R(418));t=or(n.nextSibling);var r=vt;t&&Rm(e,t)?Iv(r,n):(e.flags=e.flags&-4097|2,ye=!1,vt=e)}}else{if(Td(e))throw Error(R(418));e.flags=e.flags&-4097|2,ye=!1,vt=e}}}function zm(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;vt=e}function ma(e){if(e!==vt)return!1;if(!ye)return zm(e),ye=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!wd(e.type,e.memoizedProps)),t&&(t=yt)){if(Td(e))throw Lv(),Error(R(418));for(;t;)Iv(e,t),t=or(t.nextSibling)}if(zm(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){yt=or(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}yt=null}}else yt=vt?or(e.stateNode.nextSibling):null;return!0}function Lv(){for(var e=yt;e;)e=or(e.nextSibling)}function No(){yt=vt=null,ye=!1}function Yf(e){Yt===null?Yt=[e]:Yt.push(e)}var TC=On.ReactCurrentBatchConfig;function mi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(R(309));var r=n.stateNode}if(!r)throw Error(R(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(R(284));if(!n._owner)throw Error(R(290,e))}return e}function ga(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Mm(e){var t=e._init;return t(e._payload)}function Bv(e){function t(p,h){if(e){var y=p.deletions;y===null?(p.deletions=[h],p.flags|=16):y.push(h)}}function n(p,h){if(!e)return null;for(;h!==null;)t(p,h),h=h.sibling;return null}function r(p,h){for(p=new Map;h!==null;)h.key!==null?p.set(h.key,h):p.set(h.index,h),h=h.sibling;return p}function o(p,h){return p=lr(p,h),p.index=0,p.sibling=null,p}function i(p,h,y){return p.index=y,e?(y=p.alternate,y!==null?(y=y.index,y<h?(p.flags|=2,h):y):(p.flags|=2,h)):(p.flags|=1048576,h)}function s(p){return e&&p.alternate===null&&(p.flags|=2),p}function a(p,h,y,C){return h===null||h.tag!==6?(h=yu(y,p.mode,C),h.return=p,h):(h=o(h,y),h.return=p,h)}function l(p,h,y,C){var _=y.type;return _===ro?u(p,h,y.props.children,C,y.key):h!==null&&(h.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===qn&&Mm(_)===h.type)?(C=o(h,y.props),C.ref=mi(p,h,y),C.return=p,C):(C=qa(y.type,y.key,y.props,null,p.mode,C),C.ref=mi(p,h,y),C.return=p,C)}function c(p,h,y,C){return h===null||h.tag!==4||h.stateNode.containerInfo!==y.containerInfo||h.stateNode.implementation!==y.implementation?(h=vu(y,p.mode,C),h.return=p,h):(h=o(h,y.children||[]),h.return=p,h)}function u(p,h,y,C,_){return h===null||h.tag!==7?(h=Dr(y,p.mode,C,_),h.return=p,h):(h=o(h,y),h.return=p,h)}function d(p,h,y){if(typeof h=="string"&&h!==""||typeof h=="number")return h=yu(""+h,p.mode,y),h.return=p,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case ia:return y=qa(h.type,h.key,h.props,null,p.mode,y),y.ref=mi(p,null,h),y.return=p,y;case no:return h=vu(h,p.mode,y),h.return=p,h;case qn:var C=h._init;return d(p,C(h._payload),y)}if(Ci(h)||ui(h))return h=Dr(h,p.mode,y,null),h.return=p,h;ga(p,h)}return null}function f(p,h,y,C){var _=h!==null?h.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return _!==null?null:a(p,h,""+y,C);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ia:return y.key===_?l(p,h,y,C):null;case no:return y.key===_?c(p,h,y,C):null;case qn:return _=y._init,f(p,h,_(y._payload),C)}if(Ci(y)||ui(y))return _!==null?null:u(p,h,y,C,null);ga(p,y)}return null}function g(p,h,y,C,_){if(typeof C=="string"&&C!==""||typeof C=="number")return p=p.get(y)||null,a(h,p,""+C,_);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case ia:return p=p.get(C.key===null?y:C.key)||null,l(h,p,C,_);case no:return p=p.get(C.key===null?y:C.key)||null,c(h,p,C,_);case qn:var E=C._init;return g(p,h,y,E(C._payload),_)}if(Ci(C)||ui(C))return p=p.get(y)||null,u(h,p,C,_,null);ga(h,C)}return null}function v(p,h,y,C){for(var _=null,E=null,P=h,$=h=0,j=null;P!==null&&$<y.length;$++){P.index>$?(j=P,P=null):j=P.sibling;var I=f(p,P,y[$],C);if(I===null){P===null&&(P=j);break}e&&P&&I.alternate===null&&t(p,P),h=i(I,h,$),E===null?_=I:E.sibling=I,E=I,P=j}if($===y.length)return n(p,P),ye&&kr(p,$),_;if(P===null){for(;$<y.length;$++)P=d(p,y[$],C),P!==null&&(h=i(P,h,$),E===null?_=P:E.sibling=P,E=P);return ye&&kr(p,$),_}for(P=r(p,P);$<y.length;$++)j=g(P,p,$,y[$],C),j!==null&&(e&&j.alternate!==null&&P.delete(j.key===null?$:j.key),h=i(j,h,$),E===null?_=j:E.sibling=j,E=j);return e&&P.forEach(function(re){return t(p,re)}),ye&&kr(p,$),_}function b(p,h,y,C){var _=ui(y);if(typeof _!="function")throw Error(R(150));if(y=_.call(y),y==null)throw Error(R(151));for(var E=_=null,P=h,$=h=0,j=null,I=y.next();P!==null&&!I.done;$++,I=y.next()){P.index>$?(j=P,P=null):j=P.sibling;var re=f(p,P,I.value,C);if(re===null){P===null&&(P=j);break}e&&P&&re.alternate===null&&t(p,P),h=i(re,h,$),E===null?_=re:E.sibling=re,E=re,P=j}if(I.done)return n(p,P),ye&&kr(p,$),_;if(P===null){for(;!I.done;$++,I=y.next())I=d(p,I.value,C),I!==null&&(h=i(I,h,$),E===null?_=I:E.sibling=I,E=I);return ye&&kr(p,$),_}for(P=r(p,P);!I.done;$++,I=y.next())I=g(P,p,$,I.value,C),I!==null&&(e&&I.alternate!==null&&P.delete(I.key===null?$:I.key),h=i(I,h,$),E===null?_=I:E.sibling=I,E=I);return e&&P.forEach(function(Ne){return t(p,Ne)}),ye&&kr(p,$),_}function k(p,h,y,C){if(typeof y=="object"&&y!==null&&y.type===ro&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ia:e:{for(var _=y.key,E=h;E!==null;){if(E.key===_){if(_=y.type,_===ro){if(E.tag===7){n(p,E.sibling),h=o(E,y.props.children),h.return=p,p=h;break e}}else if(E.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===qn&&Mm(_)===E.type){n(p,E.sibling),h=o(E,y.props),h.ref=mi(p,E,y),h.return=p,p=h;break e}n(p,E);break}else t(p,E);E=E.sibling}y.type===ro?(h=Dr(y.props.children,p.mode,C,y.key),h.return=p,p=h):(C=qa(y.type,y.key,y.props,null,p.mode,C),C.ref=mi(p,h,y),C.return=p,p=C)}return s(p);case no:e:{for(E=y.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(p,h.sibling),h=o(h,y.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=vu(y,p.mode,C),h.return=p,p=h}return s(p);case qn:return E=y._init,k(p,h,E(y._payload),C)}if(Ci(y))return v(p,h,y,C);if(ui(y))return b(p,h,y,C);ga(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(p,h.sibling),h=o(h,y),h.return=p,p=h):(n(p,h),h=yu(y,p.mode,C),h.return=p,p=h),s(p)):n(p,h)}return k}var Wo=Bv(!0),Fv=Bv(!1),kl=pr(null),Cl=null,fo=null,Xf=null;function Qf(){Xf=fo=Cl=null}function Zf(e){var t=kl.current;fe(kl),e._currentValue=t}function Ed(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ao(e,t){Cl=e,Xf=fo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(st=!0),e.firstContext=null)}function Ot(e){var t=e._currentValue;if(Xf!==e)if(e={context:e,memoizedValue:t,next:null},fo===null){if(Cl===null)throw Error(R(308));fo=e,Cl.dependencies={lanes:0,firstContext:e}}else fo=fo.next=e;return t}var $r=null;function Jf(e){$r===null?$r=[e]:$r.push(e)}function jv(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Jf(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ln(e,r)}function Ln(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Kn=!1;function eh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ov(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function An(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ir(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Y&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ln(e,n)}return o=r.interleaved,o===null?(t.next=t,Jf(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ln(e,n)}function Oa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,jf(e,n)}}function Dm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function _l(e,t,n,r){var o=e.updateQueue;Kn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==s&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,u=c=l=null,a=i;do{var f=a.lane,g=a.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,b=a;switch(f=t,g=n,b.tag){case 1:if(v=b.payload,typeof v=="function"){d=v.call(g,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=b.payload,f=typeof v=="function"?v.call(g,d,f):v,f==null)break e;d=xe({},d,f);break e;case 2:Kn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else g={eventTime:g,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=g,l=d):u=u.next=g,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Nr|=s,e.lanes=s,e.memoizedState=d}}function Im(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(R(191,o));o.call(r)}}}var Ds={},pn=pr(Ds),fs=pr(Ds),hs=pr(Ds);function Ar(e){if(e===Ds)throw Error(R(174));return e}function th(e,t){switch(le(hs,t),le(fs,e),le(pn,Ds),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ld(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ld(t,e)}fe(pn),le(pn,t)}function Uo(){fe(pn),fe(fs),fe(hs)}function Vv(e){Ar(hs.current);var t=Ar(pn.current),n=ld(t,e.type);t!==n&&(le(fs,e),le(pn,n))}function nh(e){fs.current===e&&(fe(pn),fe(fs))}var ve=pr(0);function Tl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var du=[];function rh(){for(var e=0;e<du.length;e++)du[e]._workInProgressVersionPrimary=null;du.length=0}var Va=On.ReactCurrentDispatcher,fu=On.ReactCurrentBatchConfig,Vr=0,Se=null,ze=null,De=null,Pl=!1,Vi=!1,ps=0,PC=0;function Ue(){throw Error(R(321))}function oh(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jt(e[n],t[n]))return!1;return!0}function ih(e,t,n,r,o,i){if(Vr=i,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Va.current=e===null||e.memoizedState===null?RC:zC,e=n(r,o),Vi){i=0;do{if(Vi=!1,ps=0,25<=i)throw Error(R(301));i+=1,De=ze=null,t.updateQueue=null,Va.current=MC,e=n(r,o)}while(Vi)}if(Va.current=El,t=ze!==null&&ze.next!==null,Vr=0,De=ze=Se=null,Pl=!1,t)throw Error(R(300));return e}function sh(){var e=ps!==0;return ps=0,e}function an(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return De===null?Se.memoizedState=De=e:De=De.next=e,De}function Vt(){if(ze===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=De===null?Se.memoizedState:De.next;if(t!==null)De=t,ze=e;else{if(e===null)throw Error(R(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},De===null?Se.memoizedState=De=e:De=De.next=e}return De}function ms(e,t){return typeof t=="function"?t(e):t}function hu(e){var t=Vt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=ze,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,l=null,c=i;do{var u=c.lane;if((Vr&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=d,s=r):l=l.next=d,Se.lanes|=u,Nr|=u}c=c.next}while(c!==null&&c!==i);l===null?s=r:l.next=a,Jt(r,t.memoizedState)||(st=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Se.lanes|=i,Nr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function pu(e){var t=Vt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Jt(i,t.memoizedState)||(st=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Nv(){}function Wv(e,t){var n=Se,r=Vt(),o=t(),i=!Jt(r.memoizedState,o);if(i&&(r.memoizedState=o,st=!0),r=r.queue,ah(qv.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||De!==null&&De.memoizedState.tag&1){if(n.flags|=2048,gs(9,Hv.bind(null,n,r,o,t),void 0,null),Ie===null)throw Error(R(349));Vr&30||Uv(n,t,o)}return o}function Uv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Hv(e,t,n,r){t.value=n,t.getSnapshot=r,Kv(t)&&Gv(e)}function qv(e,t,n){return n(function(){Kv(t)&&Gv(e)})}function Kv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jt(e,n)}catch{return!0}}function Gv(e){var t=Ln(e,1);t!==null&&Zt(t,e,1,-1)}function Lm(e){var t=an();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ms,lastRenderedState:e},t.queue=e,e=e.dispatch=AC.bind(null,Se,e),[t.memoizedState,e]}function gs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Yv(){return Vt().memoizedState}function Na(e,t,n,r){var o=an();Se.flags|=e,o.memoizedState=gs(1|t,n,void 0,r===void 0?null:r)}function rc(e,t,n,r){var o=Vt();r=r===void 0?null:r;var i=void 0;if(ze!==null){var s=ze.memoizedState;if(i=s.destroy,r!==null&&oh(r,s.deps)){o.memoizedState=gs(t,n,i,r);return}}Se.flags|=e,o.memoizedState=gs(1|t,n,i,r)}function Bm(e,t){return Na(8390656,8,e,t)}function ah(e,t){return rc(2048,8,e,t)}function Xv(e,t){return rc(4,2,e,t)}function Qv(e,t){return rc(4,4,e,t)}function Zv(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Jv(e,t,n){return n=n!=null?n.concat([e]):null,rc(4,4,Zv.bind(null,t,e),n)}function lh(){}function e1(e,t){var n=Vt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&oh(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function t1(e,t){var n=Vt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&oh(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function n1(e,t,n){return Vr&21?(Jt(n,t)||(n=av(),Se.lanes|=n,Nr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,st=!0),e.memoizedState=n)}function EC(e,t){var n=oe;oe=n!==0&&4>n?n:4,e(!0);var r=fu.transition;fu.transition={};try{e(!1),t()}finally{oe=n,fu.transition=r}}function r1(){return Vt().memoizedState}function $C(e,t,n){var r=ar(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},o1(e))i1(t,n);else if(n=jv(e,t,n,r),n!==null){var o=Je();Zt(n,e,r,o),s1(n,t,r)}}function AC(e,t,n){var r=ar(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(o1(e))i1(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Jt(a,s)){var l=t.interleaved;l===null?(o.next=o,Jf(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=jv(e,t,o,r),n!==null&&(o=Je(),Zt(n,e,r,o),s1(n,t,r))}}function o1(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function i1(e,t){Vi=Pl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function s1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,jf(e,n)}}var El={readContext:Ot,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},RC={readContext:Ot,useCallback:function(e,t){return an().memoizedState=[e,t===void 0?null:t],e},useContext:Ot,useEffect:Bm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Na(4194308,4,Zv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Na(4194308,4,e,t)},useInsertionEffect:function(e,t){return Na(4,2,e,t)},useMemo:function(e,t){var n=an();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=an();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=$C.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=an();return e={current:e},t.memoizedState=e},useState:Lm,useDebugValue:lh,useDeferredValue:function(e){return an().memoizedState=e},useTransition:function(){var e=Lm(!1),t=e[0];return e=EC.bind(null,e[1]),an().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,o=an();if(ye){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Ie===null)throw Error(R(349));Vr&30||Uv(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Bm(qv.bind(null,r,i,e),[e]),r.flags|=2048,gs(9,Hv.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=an(),t=Ie.identifierPrefix;if(ye){var n=En,r=Pn;n=(r&~(1<<32-Qt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ps++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=PC++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},zC={readContext:Ot,useCallback:e1,useContext:Ot,useEffect:ah,useImperativeHandle:Jv,useInsertionEffect:Xv,useLayoutEffect:Qv,useMemo:t1,useReducer:hu,useRef:Yv,useState:function(){return hu(ms)},useDebugValue:lh,useDeferredValue:function(e){var t=Vt();return n1(t,ze.memoizedState,e)},useTransition:function(){var e=hu(ms)[0],t=Vt().memoizedState;return[e,t]},useMutableSource:Nv,useSyncExternalStore:Wv,useId:r1,unstable_isNewReconciler:!1},MC={readContext:Ot,useCallback:e1,useContext:Ot,useEffect:ah,useImperativeHandle:Jv,useInsertionEffect:Xv,useLayoutEffect:Qv,useMemo:t1,useReducer:pu,useRef:Yv,useState:function(){return pu(ms)},useDebugValue:lh,useDeferredValue:function(e){var t=Vt();return ze===null?t.memoizedState=e:n1(t,ze.memoizedState,e)},useTransition:function(){var e=pu(ms)[0],t=Vt().memoizedState;return[e,t]},useMutableSource:Nv,useSyncExternalStore:Wv,useId:r1,unstable_isNewReconciler:!1};function Kt(e,t){if(e&&e.defaultProps){t=xe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function $d(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:xe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var oc={isMounted:function(e){return(e=e._reactInternals)?Kr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Je(),o=ar(e),i=An(r,o);i.payload=t,n!=null&&(i.callback=n),t=ir(e,i,o),t!==null&&(Zt(t,e,o,r),Oa(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Je(),o=ar(e),i=An(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ir(e,i,o),t!==null&&(Zt(t,e,o,r),Oa(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Je(),r=ar(e),o=An(n,r);o.tag=2,t!=null&&(o.callback=t),t=ir(e,o,r),t!==null&&(Zt(t,e,r,n),Oa(t,e,r))}};function Fm(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!ls(n,r)||!ls(o,i):!0}function a1(e,t,n){var r=!1,o=ur,i=t.contextType;return typeof i=="object"&&i!==null?i=Ot(i):(o=lt(t)?jr:Xe.current,r=t.contextTypes,i=(r=r!=null)?Vo(e,o):ur),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=oc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function jm(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&oc.enqueueReplaceState(t,t.state,null)}function Ad(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},eh(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Ot(i):(i=lt(t)?jr:Xe.current,o.context=Vo(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&($d(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&oc.enqueueReplaceState(o,o.state,null),_l(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Ho(e,t){try{var n="",r=t;do n+=ak(r),r=r.return;while(r);var o=n}catch(i){o=`
39
+ Error generating stack: `+i.message+`
40
+ `+i.stack}return{value:e,source:t,stack:o,digest:null}}function mu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Rd(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var DC=typeof WeakMap=="function"?WeakMap:Map;function l1(e,t,n){n=An(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Al||(Al=!0,Vd=r),Rd(e,t)},n}function c1(e,t,n){n=An(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Rd(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Rd(e,t),typeof r!="function"&&(sr===null?sr=new Set([this]):sr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Om(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new DC;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=GC.bind(null,e,t,n),t.then(e,e))}function Vm(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Nm(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=An(-1,1),t.tag=2,ir(n,t,1))),n.lanes|=1),e)}var IC=On.ReactCurrentOwner,st=!1;function Qe(e,t,n,r){t.child=e===null?Fv(t,null,n,r):Wo(t,e.child,n,r)}function Wm(e,t,n,r,o){n=n.render;var i=t.ref;return Ao(t,o),r=ih(e,t,n,r,i,o),n=sh(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Bn(e,t,o)):(ye&&n&&Kf(t),t.flags|=1,Qe(e,t,r,o),t.child)}function Um(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!gh(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,u1(e,t,i,r,o)):(e=qa(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:ls,n(s,r)&&e.ref===t.ref)return Bn(e,t,o)}return t.flags|=1,e=lr(i,r),e.ref=t.ref,e.return=t,t.child=e}function u1(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(ls(i,r)&&e.ref===t.ref)if(st=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(st=!0);else return t.lanes=e.lanes,Bn(e,t,o)}return zd(e,t,n,r,o)}function d1(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},le(po,gt),gt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,le(po,gt),gt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,le(po,gt),gt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,le(po,gt),gt|=r;return Qe(e,t,o,n),t.child}function f1(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function zd(e,t,n,r,o){var i=lt(n)?jr:Xe.current;return i=Vo(t,i),Ao(t,o),n=ih(e,t,n,r,i,o),r=sh(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Bn(e,t,o)):(ye&&r&&Kf(t),t.flags|=1,Qe(e,t,n,o),t.child)}function Hm(e,t,n,r,o){if(lt(n)){var i=!0;Sl(t)}else i=!1;if(Ao(t,o),t.stateNode===null)Wa(e,t),a1(t,n,r),Ad(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ot(c):(c=lt(n)?jr:Xe.current,c=Vo(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==c)&&jm(t,s,r,c),Kn=!1;var f=t.memoizedState;s.state=f,_l(t,r,s,o),l=t.memoizedState,a!==r||f!==l||at.current||Kn?(typeof u=="function"&&($d(t,n,u,r),l=t.memoizedState),(a=Kn||Fm(t,n,a,r,f,l,c))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Ov(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Kt(t.type,a),s.props=c,d=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ot(l):(l=lt(n)?jr:Xe.current,l=Vo(t,l));var g=n.getDerivedStateFromProps;(u=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||f!==l)&&jm(t,s,r,l),Kn=!1,f=t.memoizedState,s.state=f,_l(t,r,s,o);var v=t.memoizedState;a!==d||f!==v||at.current||Kn?(typeof g=="function"&&($d(t,n,g,r),v=t.memoizedState),(c=Kn||Fm(t,n,c,r,f,v,l)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),s.props=r,s.state=v,s.context=l,r=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Md(e,t,n,r,i,o)}function Md(e,t,n,r,o,i){f1(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Am(t,n,!1),Bn(e,t,i);r=t.stateNode,IC.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Wo(t,e.child,null,i),t.child=Wo(t,null,a,i)):Qe(e,t,a,i),t.memoizedState=r.state,o&&Am(t,n,!0),t.child}function h1(e){var t=e.stateNode;t.pendingContext?$m(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$m(e,t.context,!1),th(e,t.containerInfo)}function qm(e,t,n,r,o){return No(),Yf(o),t.flags|=256,Qe(e,t,n,r),t.child}var Dd={dehydrated:null,treeContext:null,retryLane:0};function Id(e){return{baseLanes:e,cachePool:null,transitions:null}}function p1(e,t,n){var r=t.pendingProps,o=ve.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),le(ve,o&1),e===null)return Pd(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=ac(s,r,0,null),e=Dr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Id(n),t.memoizedState=Dd,e):ch(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return LC(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=lr(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=lr(a,i):(i=Dr(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?Id(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Dd,r}return i=e.child,e=i.sibling,r=lr(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ch(e,t){return t=ac({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ya(e,t,n,r){return r!==null&&Yf(r),Wo(t,e.child,null,n),e=ch(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function LC(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=mu(Error(R(422))),ya(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=ac({mode:"visible",children:r.children},o,0,null),i=Dr(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Wo(t,e.child,null,s),t.child.memoizedState=Id(s),t.memoizedState=Dd,i);if(!(t.mode&1))return ya(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(R(419)),r=mu(i,r,void 0),ya(e,t,s,r)}if(a=(s&e.childLanes)!==0,st||a){if(r=Ie,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Ln(e,o),Zt(r,e,o,-1))}return mh(),r=mu(Error(R(421))),ya(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=YC.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,yt=or(o.nextSibling),vt=t,ye=!0,Yt=null,e!==null&&(Dt[It++]=Pn,Dt[It++]=En,Dt[It++]=Or,Pn=e.id,En=e.overflow,Or=t),t=ch(t,r.children),t.flags|=4096,t)}function Km(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ed(e.return,t,n)}function gu(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function m1(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Qe(e,t,r.children,n),r=ve.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Km(e,n,t);else if(e.tag===19)Km(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(le(ve,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Tl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),gu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Tl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}gu(t,!0,n,null,i);break;case"together":gu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wa(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Bn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Nr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=lr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=lr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function BC(e,t,n){switch(t.tag){case 3:h1(t),No();break;case 5:Vv(t);break;case 1:lt(t.type)&&Sl(t);break;case 4:th(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;le(kl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(le(ve,ve.current&1),t.flags|=128,null):n&t.child.childLanes?p1(e,t,n):(le(ve,ve.current&1),e=Bn(e,t,n),e!==null?e.sibling:null);le(ve,ve.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return m1(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),le(ve,ve.current),r)break;return null;case 22:case 23:return t.lanes=0,d1(e,t,n)}return Bn(e,t,n)}var g1,Ld,y1,v1;g1=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ld=function(){};y1=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ar(pn.current);var i=null;switch(n){case"input":o=od(e,o),r=od(e,r),i=[];break;case"select":o=xe({},o,{value:void 0}),r=xe({},r,{value:void 0}),i=[];break;case"textarea":o=ad(e,o),r=ad(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=vl)}cd(n,r);var s;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var a=o[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ts.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(a=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(ts.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&ue("scroll",e),i||a===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};v1=function(e,t,n,r){n!==r&&(t.flags|=4)};function gi(e,t){if(!ye)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function FC(e,t,n){var r=t.pendingProps;switch(Gf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return lt(t.type)&&bl(),He(t),null;case 3:return r=t.stateNode,Uo(),fe(at),fe(Xe),rh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ma(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Yt!==null&&(Ud(Yt),Yt=null))),Ld(e,t),He(t),null;case 5:nh(t);var o=Ar(hs.current);if(n=t.type,e!==null&&t.stateNode!=null)y1(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return He(t),null}if(e=Ar(pn.current),ma(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[dn]=t,r[ds]=i,e=(t.mode&1)!==0,n){case"dialog":ue("cancel",r),ue("close",r);break;case"iframe":case"object":case"embed":ue("load",r);break;case"video":case"audio":for(o=0;o<Ti.length;o++)ue(Ti[o],r);break;case"source":ue("error",r);break;case"img":case"image":case"link":ue("error",r),ue("load",r);break;case"details":ue("toggle",r);break;case"input":nm(r,i),ue("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ue("invalid",r);break;case"textarea":om(r,i),ue("invalid",r)}cd(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&pa(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&pa(r.textContent,a,e),o=["children",""+a]):ts.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&ue("scroll",r)}switch(n){case"input":sa(r),rm(r,i,!0);break;case"textarea":sa(r),im(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=vl)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=qy(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[dn]=t,e[ds]=r,g1(e,t,!1,!1),t.stateNode=e;e:{switch(s=ud(n,r),n){case"dialog":ue("cancel",e),ue("close",e),o=r;break;case"iframe":case"object":case"embed":ue("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ti.length;o++)ue(Ti[o],e);o=r;break;case"source":ue("error",e),o=r;break;case"img":case"image":case"link":ue("error",e),ue("load",e),o=r;break;case"details":ue("toggle",e),o=r;break;case"input":nm(e,r),o=od(e,r),ue("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=xe({},r,{value:void 0}),ue("invalid",e);break;case"textarea":om(e,r),o=ad(e,r),ue("invalid",e);break;default:o=r}cd(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Yy(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Ky(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ns(e,l):typeof l=="number"&&ns(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ts.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ue("scroll",e):l!=null&&Mf(e,i,l,s))}switch(n){case"input":sa(e),rm(e,r,!1);break;case"textarea":sa(e),im(e);break;case"option":r.value!=null&&e.setAttribute("value",""+cr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?To(e,!!r.multiple,i,!1):r.defaultValue!=null&&To(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=vl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return He(t),null;case 6:if(e&&t.stateNode!=null)v1(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(n=Ar(hs.current),Ar(pn.current),ma(t)){if(r=t.stateNode,n=t.memoizedProps,r[dn]=t,(i=r.nodeValue!==n)&&(e=vt,e!==null))switch(e.tag){case 3:pa(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&pa(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[dn]=t,t.stateNode=r}return He(t),null;case 13:if(fe(ve),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ye&&yt!==null&&t.mode&1&&!(t.flags&128))Lv(),No(),t.flags|=98560,i=!1;else if(i=ma(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(R(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(R(317));i[dn]=t}else No(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;He(t),i=!1}else Yt!==null&&(Ud(Yt),Yt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ve.current&1?Me===0&&(Me=3):mh())),t.updateQueue!==null&&(t.flags|=4),He(t),null);case 4:return Uo(),Ld(e,t),e===null&&cs(t.stateNode.containerInfo),He(t),null;case 10:return Zf(t.type._context),He(t),null;case 17:return lt(t.type)&&bl(),He(t),null;case 19:if(fe(ve),i=t.memoizedState,i===null)return He(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)gi(i,!1);else{if(Me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Tl(e),s!==null){for(t.flags|=128,gi(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return le(ve,ve.current&1|2),t.child}e=e.sibling}i.tail!==null&&Te()>qo&&(t.flags|=128,r=!0,gi(i,!1),t.lanes=4194304)}else{if(!r)if(e=Tl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),gi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ye)return He(t),null}else 2*Te()-i.renderingStartTime>qo&&n!==1073741824&&(t.flags|=128,r=!0,gi(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Te(),t.sibling=null,n=ve.current,le(ve,r?n&1|2:n&1),t):(He(t),null);case 22:case 23:return ph(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gt&1073741824&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function jC(e,t){switch(Gf(t),t.tag){case 1:return lt(t.type)&&bl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Uo(),fe(at),fe(Xe),rh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return nh(t),null;case 13:if(fe(ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));No()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(ve),null;case 4:return Uo(),null;case 10:return Zf(t.type._context),null;case 22:case 23:return ph(),null;case 24:return null;default:return null}}var va=!1,Ge=!1,OC=typeof WeakSet=="function"?WeakSet:Set,D=null;function ho(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ce(e,t,r)}else n.current=null}function Bd(e,t,n){try{n()}catch(r){Ce(e,t,r)}}var Gm=!1;function VC(e,t){if(Sd=ml,e=kv(),qf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var g;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(g=d.firstChild)!==null;)f=d,d=g;for(;;){if(d===e)break t;if(f===n&&++c===o&&(a=s),f===i&&++u===r&&(l=s),(g=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=g}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(xd={focusedElem:e,selectionRange:n},ml=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var b=v.memoizedProps,k=v.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?b:Kt(t.type,b),k);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(C){Ce(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return v=Gm,Gm=!1,v}function Ni(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Bd(t,n,i)}o=o.next}while(o!==r)}}function ic(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Fd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function b1(e){var t=e.alternate;t!==null&&(e.alternate=null,b1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dn],delete t[ds],delete t[Cd],delete t[kC],delete t[CC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function S1(e){return e.tag===5||e.tag===3||e.tag===4}function Ym(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||S1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=vl));else if(r!==4&&(e=e.child,e!==null))for(jd(e,t,n),e=e.sibling;e!==null;)jd(e,t,n),e=e.sibling}function Od(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Od(e,t,n),e=e.sibling;e!==null;)Od(e,t,n),e=e.sibling}var Be=null,Gt=!1;function Nn(e,t,n){for(n=n.child;n!==null;)x1(e,t,n),n=n.sibling}function x1(e,t,n){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(Ql,n)}catch{}switch(n.tag){case 5:Ge||ho(n,t);case 6:var r=Be,o=Gt;Be=null,Nn(e,t,n),Be=r,Gt=o,Be!==null&&(Gt?(e=Be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Be.removeChild(n.stateNode));break;case 18:Be!==null&&(Gt?(e=Be,n=n.stateNode,e.nodeType===8?cu(e.parentNode,n):e.nodeType===1&&cu(e,n),ss(e)):cu(Be,n.stateNode));break;case 4:r=Be,o=Gt,Be=n.stateNode.containerInfo,Gt=!0,Nn(e,t,n),Be=r,Gt=o;break;case 0:case 11:case 14:case 15:if(!Ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Bd(n,t,s),o=o.next}while(o!==r)}Nn(e,t,n);break;case 1:if(!Ge&&(ho(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ce(n,t,a)}Nn(e,t,n);break;case 21:Nn(e,t,n);break;case 22:n.mode&1?(Ge=(r=Ge)||n.memoizedState!==null,Nn(e,t,n),Ge=r):Nn(e,t,n);break;default:Nn(e,t,n)}}function Xm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new OC),t.forEach(function(r){var o=XC.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ut(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Be=a.stateNode,Gt=!1;break e;case 3:Be=a.stateNode.containerInfo,Gt=!0;break e;case 4:Be=a.stateNode.containerInfo,Gt=!0;break e}a=a.return}if(Be===null)throw Error(R(160));x1(i,s,o),Be=null,Gt=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(c){Ce(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)w1(t,e),t=t.sibling}function w1(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ut(t,e),rn(e),r&4){try{Ni(3,e,e.return),ic(3,e)}catch(b){Ce(e,e.return,b)}try{Ni(5,e,e.return)}catch(b){Ce(e,e.return,b)}}break;case 1:Ut(t,e),rn(e),r&512&&n!==null&&ho(n,n.return);break;case 5:if(Ut(t,e),rn(e),r&512&&n!==null&&ho(n,n.return),e.flags&32){var o=e.stateNode;try{ns(o,"")}catch(b){Ce(e,e.return,b)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Uy(o,i),ud(a,s);var c=ud(a,i);for(s=0;s<l.length;s+=2){var u=l[s],d=l[s+1];u==="style"?Yy(o,d):u==="dangerouslySetInnerHTML"?Ky(o,d):u==="children"?ns(o,d):Mf(o,u,d,c)}switch(a){case"input":id(o,i);break;case"textarea":Hy(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?To(o,!!i.multiple,g,!1):f!==!!i.multiple&&(i.defaultValue!=null?To(o,!!i.multiple,i.defaultValue,!0):To(o,!!i.multiple,i.multiple?[]:"",!1))}o[ds]=i}catch(b){Ce(e,e.return,b)}}break;case 6:if(Ut(t,e),rn(e),r&4){if(e.stateNode===null)throw Error(R(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(b){Ce(e,e.return,b)}}break;case 3:if(Ut(t,e),rn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ss(t.containerInfo)}catch(b){Ce(e,e.return,b)}break;case 4:Ut(t,e),rn(e);break;case 13:Ut(t,e),rn(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(fh=Te())),r&4&&Xm(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(Ge=(c=Ge)||u,Ut(t,e),Ge=c):Ut(t,e),rn(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(D=e,u=e.child;u!==null;){for(d=D=u;D!==null;){switch(f=D,g=f.child,f.tag){case 0:case 11:case 14:case 15:Ni(4,f,f.return);break;case 1:ho(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(b){Ce(r,n,b)}}break;case 5:ho(f,f.return);break;case 22:if(f.memoizedState!==null){Zm(d);continue}}g!==null?(g.return=f,D=g):Zm(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{o=d.stateNode,c?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Gy("display",s))}catch(b){Ce(e,e.return,b)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(b){Ce(e,e.return,b)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ut(t,e),rn(e),r&4&&Xm(e);break;case 21:break;default:Ut(t,e),rn(e)}}function rn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(S1(n)){var r=n;break e}n=n.return}throw Error(R(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(ns(o,""),r.flags&=-33);var i=Ym(e);Od(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Ym(e);jd(e,a,s);break;default:throw Error(R(161))}}catch(l){Ce(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function NC(e,t,n){D=e,k1(e)}function k1(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var o=D,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||va;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||Ge;a=va;var c=Ge;if(va=s,(Ge=l)&&!c)for(D=o;D!==null;)s=D,l=s.child,s.tag===22&&s.memoizedState!==null?Jm(o):l!==null?(l.return=s,D=l):Jm(o);for(;i!==null;)D=i,k1(i),i=i.sibling;D=o,va=a,Ge=c}Qm(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,D=i):Qm(e)}}function Qm(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ge||ic(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ge)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Kt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Im(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Im(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&ss(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}Ge||t.flags&512&&Fd(t)}catch(f){Ce(t,t.return,f)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function Zm(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function Jm(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ic(4,t)}catch(l){Ce(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Ce(t,o,l)}}var i=t.return;try{Fd(t)}catch(l){Ce(t,i,l)}break;case 5:var s=t.return;try{Fd(t)}catch(l){Ce(t,s,l)}}}catch(l){Ce(t,t.return,l)}if(t===e){D=null;break}var a=t.sibling;if(a!==null){a.return=t.return,D=a;break}D=t.return}}var WC=Math.ceil,$l=On.ReactCurrentDispatcher,uh=On.ReactCurrentOwner,jt=On.ReactCurrentBatchConfig,Y=0,Ie=null,Ae=null,Oe=0,gt=0,po=pr(0),Me=0,ys=null,Nr=0,sc=0,dh=0,Wi=null,ot=null,fh=0,qo=1/0,wn=null,Al=!1,Vd=null,sr=null,ba=!1,Jn=null,Rl=0,Ui=0,Nd=null,Ua=-1,Ha=0;function Je(){return Y&6?Te():Ua!==-1?Ua:Ua=Te()}function ar(e){return e.mode&1?Y&2&&Oe!==0?Oe&-Oe:TC.transition!==null?(Ha===0&&(Ha=av()),Ha):(e=oe,e!==0||(e=window.event,e=e===void 0?16:pv(e.type)),e):1}function Zt(e,t,n,r){if(50<Ui)throw Ui=0,Nd=null,Error(R(185));Rs(e,n,r),(!(Y&2)||e!==Ie)&&(e===Ie&&(!(Y&2)&&(sc|=n),Me===4&&Xn(e,Oe)),ct(e,r),n===1&&Y===0&&!(t.mode&1)&&(qo=Te()+500,nc&&mr()))}function ct(e,t){var n=e.callbackNode;Tk(e,t);var r=pl(e,e===Ie?Oe:0);if(r===0)n!==null&&lm(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&lm(n),t===1)e.tag===0?_C(eg.bind(null,e)):Mv(eg.bind(null,e)),xC(function(){!(Y&6)&&mr()}),n=null;else{switch(lv(r)){case 1:n=Ff;break;case 4:n=iv;break;case 16:n=hl;break;case 536870912:n=sv;break;default:n=hl}n=R1(n,C1.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function C1(e,t){if(Ua=-1,Ha=0,Y&6)throw Error(R(327));var n=e.callbackNode;if(Ro()&&e.callbackNode!==n)return null;var r=pl(e,e===Ie?Oe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=zl(e,r);else{t=r;var o=Y;Y|=2;var i=T1();(Ie!==e||Oe!==t)&&(wn=null,qo=Te()+500,Mr(e,t));do try{qC();break}catch(a){_1(e,a)}while(1);Qf(),$l.current=i,Y=o,Ae!==null?t=0:(Ie=null,Oe=0,t=Me)}if(t!==0){if(t===2&&(o=md(e),o!==0&&(r=o,t=Wd(e,o))),t===1)throw n=ys,Mr(e,0),Xn(e,r),ct(e,Te()),n;if(t===6)Xn(e,r);else{if(o=e.current.alternate,!(r&30)&&!UC(o)&&(t=zl(e,r),t===2&&(i=md(e),i!==0&&(r=i,t=Wd(e,i))),t===1))throw n=ys,Mr(e,0),Xn(e,r),ct(e,Te()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:Cr(e,ot,wn);break;case 3:if(Xn(e,r),(r&130023424)===r&&(t=fh+500-Te(),10<t)){if(pl(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Je(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=kd(Cr.bind(null,e,ot,wn),t);break}Cr(e,ot,wn);break;case 4:if(Xn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Qt(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*WC(r/1960))-r,10<r){e.timeoutHandle=kd(Cr.bind(null,e,ot,wn),r);break}Cr(e,ot,wn);break;case 5:Cr(e,ot,wn);break;default:throw Error(R(329))}}}return ct(e,Te()),e.callbackNode===n?C1.bind(null,e):null}function Wd(e,t){var n=Wi;return e.current.memoizedState.isDehydrated&&(Mr(e,t).flags|=256),e=zl(e,t),e!==2&&(t=ot,ot=n,t!==null&&Ud(t)),e}function Ud(e){ot===null?ot=e:ot.push.apply(ot,e)}function UC(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Jt(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Xn(e,t){for(t&=~dh,t&=~sc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Qt(t),r=1<<n;e[n]=-1,t&=~r}}function eg(e){if(Y&6)throw Error(R(327));Ro();var t=pl(e,0);if(!(t&1))return ct(e,Te()),null;var n=zl(e,t);if(e.tag!==0&&n===2){var r=md(e);r!==0&&(t=r,n=Wd(e,r))}if(n===1)throw n=ys,Mr(e,0),Xn(e,t),ct(e,Te()),n;if(n===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Cr(e,ot,wn),ct(e,Te()),null}function hh(e,t){var n=Y;Y|=1;try{return e(t)}finally{Y=n,Y===0&&(qo=Te()+500,nc&&mr())}}function Wr(e){Jn!==null&&Jn.tag===0&&!(Y&6)&&Ro();var t=Y;Y|=1;var n=jt.transition,r=oe;try{if(jt.transition=null,oe=1,e)return e()}finally{oe=r,jt.transition=n,Y=t,!(Y&6)&&mr()}}function ph(){gt=po.current,fe(po)}function Mr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,SC(n)),Ae!==null)for(n=Ae.return;n!==null;){var r=n;switch(Gf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&bl();break;case 3:Uo(),fe(at),fe(Xe),rh();break;case 5:nh(r);break;case 4:Uo();break;case 13:fe(ve);break;case 19:fe(ve);break;case 10:Zf(r.type._context);break;case 22:case 23:ph()}n=n.return}if(Ie=e,Ae=e=lr(e.current,null),Oe=gt=t,Me=0,ys=null,dh=sc=Nr=0,ot=Wi=null,$r!==null){for(t=0;t<$r.length;t++)if(n=$r[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}$r=null}return e}function _1(e,t){do{var n=Ae;try{if(Qf(),Va.current=El,Pl){for(var r=Se.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Pl=!1}if(Vr=0,De=ze=Se=null,Vi=!1,ps=0,uh.current=null,n===null||n.return===null){Me=1,ys=t,Ae=null;break}e:{var i=e,s=n.return,a=n,l=t;if(t=Oe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var g=Vm(s);if(g!==null){g.flags&=-257,Nm(g,s,a,i,t),g.mode&1&&Om(i,c,t),t=g,l=c;var v=t.updateQueue;if(v===null){var b=new Set;b.add(l),t.updateQueue=b}else v.add(l);break e}else{if(!(t&1)){Om(i,c,t),mh();break e}l=Error(R(426))}}else if(ye&&a.mode&1){var k=Vm(s);if(k!==null){!(k.flags&65536)&&(k.flags|=256),Nm(k,s,a,i,t),Yf(Ho(l,a));break e}}i=l=Ho(l,a),Me!==4&&(Me=2),Wi===null?Wi=[i]:Wi.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var p=l1(i,l,t);Dm(i,p);break e;case 1:a=l;var h=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof h.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(sr===null||!sr.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var C=c1(i,a,t);Dm(i,C);break e}}i=i.return}while(i!==null)}E1(n)}catch(_){t=_,Ae===n&&n!==null&&(Ae=n=n.return);continue}break}while(1)}function T1(){var e=$l.current;return $l.current=El,e===null?El:e}function mh(){(Me===0||Me===3||Me===2)&&(Me=4),Ie===null||!(Nr&268435455)&&!(sc&268435455)||Xn(Ie,Oe)}function zl(e,t){var n=Y;Y|=2;var r=T1();(Ie!==e||Oe!==t)&&(wn=null,Mr(e,t));do try{HC();break}catch(o){_1(e,o)}while(1);if(Qf(),Y=n,$l.current=r,Ae!==null)throw Error(R(261));return Ie=null,Oe=0,Me}function HC(){for(;Ae!==null;)P1(Ae)}function qC(){for(;Ae!==null&&!yk();)P1(Ae)}function P1(e){var t=A1(e.alternate,e,gt);e.memoizedProps=e.pendingProps,t===null?E1(e):Ae=t,uh.current=null}function E1(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=jC(n,t),n!==null){n.flags&=32767,Ae=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Me=6,Ae=null;return}}else if(n=FC(n,t,gt),n!==null){Ae=n;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);Me===0&&(Me=5)}function Cr(e,t,n){var r=oe,o=jt.transition;try{jt.transition=null,oe=1,KC(e,t,n,r)}finally{jt.transition=o,oe=r}return null}function KC(e,t,n,r){do Ro();while(Jn!==null);if(Y&6)throw Error(R(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Pk(e,i),e===Ie&&(Ae=Ie=null,Oe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ba||(ba=!0,R1(hl,function(){return Ro(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=jt.transition,jt.transition=null;var s=oe;oe=1;var a=Y;Y|=4,uh.current=null,VC(e,n),w1(n,e),hC(xd),ml=!!Sd,xd=Sd=null,e.current=n,NC(n),vk(),Y=a,oe=s,jt.transition=i}else e.current=n;if(ba&&(ba=!1,Jn=e,Rl=o),i=e.pendingLanes,i===0&&(sr=null),xk(n.stateNode),ct(e,Te()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Al)throw Al=!1,e=Vd,Vd=null,e;return Rl&1&&e.tag!==0&&Ro(),i=e.pendingLanes,i&1?e===Nd?Ui++:(Ui=0,Nd=e):Ui=0,mr(),null}function Ro(){if(Jn!==null){var e=lv(Rl),t=jt.transition,n=oe;try{if(jt.transition=null,oe=16>e?16:e,Jn===null)var r=!1;else{if(e=Jn,Jn=null,Rl=0,Y&6)throw Error(R(331));var o=Y;for(Y|=4,D=e.current;D!==null;){var i=D,s=i.child;if(D.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(D=c;D!==null;){var u=D;switch(u.tag){case 0:case 11:case 15:Ni(8,u,i)}var d=u.child;if(d!==null)d.return=u,D=d;else for(;D!==null;){u=D;var f=u.sibling,g=u.return;if(b1(u),u===c){D=null;break}if(f!==null){f.return=g,D=f;break}D=g}}}var v=i.alternate;if(v!==null){var b=v.child;if(b!==null){v.child=null;do{var k=b.sibling;b.sibling=null,b=k}while(b!==null)}}D=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,D=s;else e:for(;D!==null;){if(i=D,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ni(9,i,i.return)}var p=i.sibling;if(p!==null){p.return=i.return,D=p;break e}D=i.return}}var h=e.current;for(D=h;D!==null;){s=D;var y=s.child;if(s.subtreeFlags&2064&&y!==null)y.return=s,D=y;else e:for(s=h;D!==null;){if(a=D,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:ic(9,a)}}catch(_){Ce(a,a.return,_)}if(a===s){D=null;break e}var C=a.sibling;if(C!==null){C.return=a.return,D=C;break e}D=a.return}}if(Y=o,mr(),hn&&typeof hn.onPostCommitFiberRoot=="function")try{hn.onPostCommitFiberRoot(Ql,e)}catch{}r=!0}return r}finally{oe=n,jt.transition=t}}return!1}function tg(e,t,n){t=Ho(n,t),t=l1(e,t,1),e=ir(e,t,1),t=Je(),e!==null&&(Rs(e,1,t),ct(e,t))}function Ce(e,t,n){if(e.tag===3)tg(e,e,n);else for(;t!==null;){if(t.tag===3){tg(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(sr===null||!sr.has(r))){e=Ho(n,e),e=c1(t,e,1),t=ir(t,e,1),e=Je(),t!==null&&(Rs(t,1,e),ct(t,e));break}}t=t.return}}function GC(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Je(),e.pingedLanes|=e.suspendedLanes&n,Ie===e&&(Oe&n)===n&&(Me===4||Me===3&&(Oe&130023424)===Oe&&500>Te()-fh?Mr(e,0):dh|=n),ct(e,t)}function $1(e,t){t===0&&(e.mode&1?(t=ca,ca<<=1,!(ca&130023424)&&(ca=4194304)):t=1);var n=Je();e=Ln(e,t),e!==null&&(Rs(e,t,n),ct(e,n))}function YC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$1(e,n)}function XC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),$1(e,n)}var A1;A1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||at.current)st=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return st=!1,BC(e,t,n);st=!!(e.flags&131072)}else st=!1,ye&&t.flags&1048576&&Dv(t,wl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wa(e,t),e=t.pendingProps;var o=Vo(t,Xe.current);Ao(t,n),o=ih(null,t,r,e,o,n);var i=sh();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,lt(r)?(i=!0,Sl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,eh(t),o.updater=oc,t.stateNode=o,o._reactInternals=t,Ad(t,r,e,n),t=Md(null,t,r,!0,i,n)):(t.tag=0,ye&&i&&Kf(t),Qe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wa(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ZC(r),e=Kt(r,e),o){case 0:t=zd(null,t,r,e,n);break e;case 1:t=Hm(null,t,r,e,n);break e;case 11:t=Wm(null,t,r,e,n);break e;case 14:t=Um(null,t,r,Kt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Kt(r,o),zd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Kt(r,o),Hm(e,t,r,o,n);case 3:e:{if(h1(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Ov(e,t),_l(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Ho(Error(R(423)),t),t=qm(e,t,r,n,o);break e}else if(r!==o){o=Ho(Error(R(424)),t),t=qm(e,t,r,n,o);break e}else for(yt=or(t.stateNode.containerInfo.firstChild),vt=t,ye=!0,Yt=null,n=Fv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(No(),r===o){t=Bn(e,t,n);break e}Qe(e,t,r,n)}t=t.child}return t;case 5:return Vv(t),e===null&&Pd(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,wd(r,o)?s=null:i!==null&&wd(r,i)&&(t.flags|=32),f1(e,t),Qe(e,t,s,n),t.child;case 6:return e===null&&Pd(t),null;case 13:return p1(e,t,n);case 4:return th(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wo(t,null,r,n):Qe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Kt(r,o),Wm(e,t,r,o,n);case 7:return Qe(e,t,t.pendingProps,n),t.child;case 8:return Qe(e,t,t.pendingProps.children,n),t.child;case 12:return Qe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,le(kl,r._currentValue),r._currentValue=s,i!==null)if(Jt(i.value,s)){if(i.children===o.children&&!at.current){t=Bn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=An(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Ed(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(R(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Ed(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Qe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ao(t,n),o=Ot(o),r=r(o),t.flags|=1,Qe(e,t,r,n),t.child;case 14:return r=t.type,o=Kt(r,t.pendingProps),o=Kt(r.type,o),Um(e,t,r,o,n);case 15:return u1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Kt(r,o),Wa(e,t),t.tag=1,lt(r)?(e=!0,Sl(t)):e=!1,Ao(t,n),a1(t,r,o),Ad(t,r,o,n),Md(null,t,r,!0,e,n);case 19:return m1(e,t,n);case 22:return d1(e,t,n)}throw Error(R(156,t.tag))};function R1(e,t){return ov(e,t)}function QC(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lt(e,t,n,r){return new QC(e,t,n,r)}function gh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ZC(e){if(typeof e=="function")return gh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===If)return 11;if(e===Lf)return 14}return 2}function lr(e,t){var n=e.alternate;return n===null?(n=Lt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function qa(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")gh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ro:return Dr(n.children,o,i,t);case Df:s=8,o|=8;break;case ed:return e=Lt(12,n,t,o|2),e.elementType=ed,e.lanes=i,e;case td:return e=Lt(13,n,t,o),e.elementType=td,e.lanes=i,e;case nd:return e=Lt(19,n,t,o),e.elementType=nd,e.lanes=i,e;case Vy:return ac(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jy:s=10;break e;case Oy:s=9;break e;case If:s=11;break e;case Lf:s=14;break e;case qn:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Lt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Dr(e,t,n,r){return e=Lt(7,e,r,t),e.lanes=n,e}function ac(e,t,n,r){return e=Lt(22,e,r,t),e.elementType=Vy,e.lanes=n,e.stateNode={isHidden:!1},e}function yu(e,t,n){return e=Lt(6,e,null,t),e.lanes=n,e}function vu(e,t,n){return t=Lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function JC(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Zc(0),this.expirationTimes=Zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function yh(e,t,n,r,o,i,s,a,l){return e=new JC(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Lt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},eh(i),e}function e_(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:no,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function z1(e){if(!e)return ur;e=e._reactInternals;e:{if(Kr(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(lt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var n=e.type;if(lt(n))return zv(e,n,t)}return t}function M1(e,t,n,r,o,i,s,a,l){return e=yh(n,r,!0,e,o,i,s,a,l),e.context=z1(null),n=e.current,r=Je(),o=ar(n),i=An(r,o),i.callback=t??null,ir(n,i,o),e.current.lanes=o,Rs(e,o,r),ct(e,r),e}function lc(e,t,n,r){var o=t.current,i=Je(),s=ar(o);return n=z1(n),t.context===null?t.context=n:t.pendingContext=n,t=An(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ir(o,t,s),e!==null&&(Zt(e,o,s,i),Oa(e,o,s)),s}function Ml(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ng(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function vh(e,t){ng(e,t),(e=e.alternate)&&ng(e,t)}function t_(){return null}var D1=typeof reportError=="function"?reportError:function(e){console.error(e)};function bh(e){this._internalRoot=e}cc.prototype.render=bh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));lc(e,t,null,null)};cc.prototype.unmount=bh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Wr(function(){lc(null,e,null,null)}),t[In]=null}};function cc(e){this._internalRoot=e}cc.prototype.unstable_scheduleHydration=function(e){if(e){var t=dv();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Yn.length&&t!==0&&t<Yn[n].priority;n++);Yn.splice(n,0,e),n===0&&hv(e)}};function Sh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function uc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function rg(){}function n_(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var c=Ml(s);i.call(c)}}var s=M1(t,r,e,0,null,!1,!1,"",rg);return e._reactRootContainer=s,e[In]=s.current,cs(e.nodeType===8?e.parentNode:e),Wr(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var c=Ml(l);a.call(c)}}var l=yh(e,0,!1,null,null,!1,!1,"",rg);return e._reactRootContainer=l,e[In]=l.current,cs(e.nodeType===8?e.parentNode:e),Wr(function(){lc(t,l,n,r)}),l}function dc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var l=Ml(s);a.call(l)}}lc(t,s,e,o)}else s=n_(n,t,e,o,r);return Ml(s)}cv=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=_i(t.pendingLanes);n!==0&&(jf(t,n|1),ct(t,Te()),!(Y&6)&&(qo=Te()+500,mr()))}break;case 13:Wr(function(){var r=Ln(e,1);if(r!==null){var o=Je();Zt(r,e,1,o)}}),vh(e,1)}};Of=function(e){if(e.tag===13){var t=Ln(e,134217728);if(t!==null){var n=Je();Zt(t,e,134217728,n)}vh(e,134217728)}};uv=function(e){if(e.tag===13){var t=ar(e),n=Ln(e,t);if(n!==null){var r=Je();Zt(n,e,t,r)}vh(e,t)}};dv=function(){return oe};fv=function(e,t){var n=oe;try{return oe=e,t()}finally{oe=n}};fd=function(e,t,n){switch(t){case"input":if(id(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=tc(r);if(!o)throw Error(R(90));Wy(r),id(r,o)}}}break;case"textarea":Hy(e,n);break;case"select":t=n.value,t!=null&&To(e,!!n.multiple,t,!1)}};Zy=hh;Jy=Wr;var r_={usingClientEntryPoint:!1,Events:[Ms,ao,tc,Xy,Qy,hh]},yi={findFiberByHostInstance:Er,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},o_={bundleType:yi.bundleType,version:yi.version,rendererPackageName:yi.rendererPackageName,rendererConfig:yi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:On.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=nv(e),e===null?null:e.stateNode},findFiberByHostInstance:yi.findFiberByHostInstance||t_,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sa.isDisabled&&Sa.supportsFiber)try{Ql=Sa.inject(o_),hn=Sa}catch{}}Ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r_;Ct.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Sh(t))throw Error(R(200));return e_(e,t,null,n)};Ct.createRoot=function(e,t){if(!Sh(e))throw Error(R(299));var n=!1,r="",o=D1;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=yh(e,1,!1,null,null,n,!1,r,o),e[In]=t.current,cs(e.nodeType===8?e.parentNode:e),new bh(t)};Ct.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=nv(t),e=e===null?null:e.stateNode,e};Ct.flushSync=function(e){return Wr(e)};Ct.hydrate=function(e,t,n){if(!uc(t))throw Error(R(200));return dc(null,e,t,!0,n)};Ct.hydrateRoot=function(e,t,n){if(!Sh(e))throw Error(R(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=D1;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=M1(t,null,e,1,n??null,o,!1,i,s),e[In]=t.current,cs(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new cc(t)};Ct.render=function(e,t,n){if(!uc(t))throw Error(R(200));return dc(null,e,t,!1,n)};Ct.unmountComponentAtNode=function(e){if(!uc(e))throw Error(R(40));return e._reactRootContainer?(Wr(function(){dc(null,null,e,!1,function(){e._reactRootContainer=null,e[In]=null})}),!0):!1};Ct.unstable_batchedUpdates=hh;Ct.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!uc(n))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return dc(e,t,n,!1,r)};Ct.version="18.3.1-next-f1338f8080-20240426";function I1(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(I1)}catch(e){console.error(e)}}I1(),Iy.exports=Ct;var xh=Iy.exports,og=xh;Zu.createRoot=og.createRoot,Zu.hydrateRoot=og.hydrateRoot;function i_(){return!!(globalThis!=null&&globalThis.document)}function s_(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(o in n&&delete n[o],n[o]=r[o]);return n}const Q=e=>e?"":void 0;function Hd(e){return Array.isArray(e)}function ut(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Hd(e)}function a_(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function l_(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function qd(e){if(e==null)return e;const{unitless:t}=l_(e);return t||typeof e=="number"?`${e}px`:e}const L1=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,wh=e=>Object.fromEntries(Object.entries(e).sort(L1));function ig(e){const t=wh(e);return Object.assign(Object.values(t),t)}function c_(e){const t=Object.keys(wh(e));return new Set(t)}function sg(e){if(!e)return e;e=qd(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function Pi(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${qd(e)})`),t&&n.push("and",`(max-width: ${qd(t)})`),n.join(" ")}function u_(e){if(!e)return null;e.base=e.base??"0px";const t=ig(e),n=Object.entries(e).sort(L1).map(([i,s],a,l)=>{let[,c]=l[a+1]??[];return c=parseFloat(c)>0?sg(c):void 0,{_minW:sg(s),breakpoint:i,minW:s,maxW:c,maxWQuery:Pi(null,c),minWQuery:Pi(s),minMaxQuery:Pi(s,c)}}),r=c_(e),o=Array.from(r.values());return{keys:r,normalized:t,isResponsive(i){const s=Object.keys(i);return s.length>0&&s.every(a=>r.has(a))},asObject:wh(e),asArray:ig(e),details:n,get(i){return n.find(s=>s.breakpoint===i)},media:[null,...t.map(i=>Pi(i)).slice(1)],toArrayValue(i){if(!ut(i))throw new Error("toArrayValue: value must be an object");const s=o.map(a=>i[a]??null);for(;a_(s)===null;)s.pop();return s},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((s,a,l)=>{const c=o[l];return c!=null&&a!=null&&(s[c]=a),s},{})}}}function mt(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function B1(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function d_(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function gr(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=w.createContext(s);a.displayName=t;function l(){var u;const c=w.useContext(a);if(!c&&n){const d=new Error(i??d_(r,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}const en=(...e)=>e.filter(Boolean).join(" ");function f_(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return e===void 0?n:e}const h_=e=>{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},F1=h_(f_),p_=e=>e.default||e;function j1(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function m_(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}const g_=e=>typeof e=="function";function Bt(e,...t){return g_(e)?e(...t):e}function y_(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),o=s=>{const a={};for(let l=0;l<s.length;l++){const c=s[l];n[c]&&(Object.defineProperty(a,c,n[c]),delete n[c])}return a},i=s=>o(Array.isArray(s)?s:r.filter(s));return t.map(i).concat(o(r))}function ag(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){if(ut(s)||Array.isArray(s)){const l={};for(const[c,u]of Object.entries(s)){const d=(o==null?void 0:o(c))??c,f=[...a,d];if(r!=null&&r(s,f))return t(s,a);l[d]=i(u,f)}return l}return t(s,a)}return i(e)}var Dl={exports:{}};Dl.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,a="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",f="[object Error]",g="[object Function]",v="[object GeneratorFunction]",b="[object Map]",k="[object Number]",p="[object Null]",h="[object Object]",y="[object Proxy]",C="[object RegExp]",_="[object Set]",E="[object String]",P="[object Undefined]",$="[object WeakMap]",j="[object ArrayBuffer]",I="[object DataView]",re="[object Float32Array]",Ne="[object Float64Array]",Pt="[object Int8Array]",ft="[object Int16Array]",Wt="[object Int32Array]",tn="[object Uint8Array]",X="[object Uint8ClampedArray]",z="[object Uint16Array]",O="[object Uint32Array]",V=/[\\^$.*+?()[\]{}|]/g,se=/^\[object .+?Constructor\]$/,pe=/^(?:0|[1-9]\d*)$/,N={};N[re]=N[Ne]=N[Pt]=N[ft]=N[Wt]=N[tn]=N[X]=N[z]=N[O]=!0,N[a]=N[l]=N[j]=N[u]=N[I]=N[d]=N[f]=N[g]=N[b]=N[k]=N[h]=N[C]=N[_]=N[E]=N[$]=!1;var ht=typeof ra=="object"&&ra&&ra.Object===Object&&ra,Vn=typeof self=="object"&&self&&self.Object===Object&&self,We=ht||Vn||Function("return this")(),nn=t&&!t.nodeType&&t,vr=nn&&!0&&e&&!e.nodeType&&e,qs=vr&&vr.exports===nn,si=qs&&ht.process,Ks=function(){try{var m=vr&&vr.require&&vr.require("util").types;return m||si&&si.binding&&si.binding("util")}catch{}}(),Gs=Ks&&Ks.isTypedArray;function $p(m,x,T){switch(T.length){case 0:return m.call(x);case 1:return m.call(x,T[0]);case 2:return m.call(x,T[0],T[1]);case 3:return m.call(x,T[0],T[1],T[2])}return m.apply(x,T)}function U(m,x){for(var T=-1,M=Array(m);++T<m;)M[T]=x(T);return M}function rt(m){return function(x){return m(x)}}function Et(m,x){return m==null?void 0:m[x]}function Xr(m,x){return function(T){return m(x(T))}}var _x=Array.prototype,Tx=Function.prototype,Ys=Object.prototype,Lc=We["__core-js_shared__"],Xs=Tx.toString,bn=Ys.hasOwnProperty,Ap=function(){var m=/[^.]+$/.exec(Lc&&Lc.keys&&Lc.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),Rp=Ys.toString,Px=Xs.call(Object),Ex=RegExp("^"+Xs.call(bn).replace(V,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qs=qs?We.Buffer:void 0,zp=We.Symbol,Mp=We.Uint8Array,Dp=Qs?Qs.allocUnsafe:void 0,Ip=Xr(Object.getPrototypeOf,Object),Lp=Object.create,$x=Ys.propertyIsEnumerable,Ax=_x.splice,br=zp?zp.toStringTag:void 0,Zs=function(){try{var m=jc(Object,"defineProperty");return m({},"",{}),m}catch{}}(),Rx=Qs?Qs.isBuffer:void 0,Bp=Math.max,zx=Date.now,Fp=jc(We,"Map"),ai=jc(Object,"create"),Mx=function(){function m(){}return function(x){if(!xr(x))return{};if(Lp)return Lp(x);m.prototype=x;var T=new m;return m.prototype=void 0,T}}();function Sr(m){var x=-1,T=m==null?0:m.length;for(this.clear();++x<T;){var M=m[x];this.set(M[0],M[1])}}function Dx(){this.__data__=ai?ai(null):{},this.size=0}function Ix(m){var x=this.has(m)&&delete this.__data__[m];return this.size-=x?1:0,x}function Lx(m){var x=this.__data__;if(ai){var T=x[m];return T===r?void 0:T}return bn.call(x,m)?x[m]:void 0}function Bx(m){var x=this.__data__;return ai?x[m]!==void 0:bn.call(x,m)}function Fx(m,x){var T=this.__data__;return this.size+=this.has(m)?0:1,T[m]=ai&&x===void 0?r:x,this}Sr.prototype.clear=Dx,Sr.prototype.delete=Ix,Sr.prototype.get=Lx,Sr.prototype.has=Bx,Sr.prototype.set=Fx;function Sn(m){var x=-1,T=m==null?0:m.length;for(this.clear();++x<T;){var M=m[x];this.set(M[0],M[1])}}function jx(){this.__data__=[],this.size=0}function Ox(m){var x=this.__data__,T=Js(x,m);if(T<0)return!1;var M=x.length-1;return T==M?x.pop():Ax.call(x,T,1),--this.size,!0}function Vx(m){var x=this.__data__,T=Js(x,m);return T<0?void 0:x[T][1]}function Nx(m){return Js(this.__data__,m)>-1}function Wx(m,x){var T=this.__data__,M=Js(T,m);return M<0?(++this.size,T.push([m,x])):T[M][1]=x,this}Sn.prototype.clear=jx,Sn.prototype.delete=Ox,Sn.prototype.get=Vx,Sn.prototype.has=Nx,Sn.prototype.set=Wx;function Qr(m){var x=-1,T=m==null?0:m.length;for(this.clear();++x<T;){var M=m[x];this.set(M[0],M[1])}}function Ux(){this.size=0,this.__data__={hash:new Sr,map:new(Fp||Sn),string:new Sr}}function Hx(m){var x=ta(this,m).delete(m);return this.size-=x?1:0,x}function qx(m){return ta(this,m).get(m)}function Kx(m){return ta(this,m).has(m)}function Gx(m,x){var T=ta(this,m),M=T.size;return T.set(m,x),this.size+=T.size==M?0:1,this}Qr.prototype.clear=Ux,Qr.prototype.delete=Hx,Qr.prototype.get=qx,Qr.prototype.has=Kx,Qr.prototype.set=Gx;function Zr(m){var x=this.__data__=new Sn(m);this.size=x.size}function Yx(){this.__data__=new Sn,this.size=0}function Xx(m){var x=this.__data__,T=x.delete(m);return this.size=x.size,T}function Qx(m){return this.__data__.get(m)}function Zx(m){return this.__data__.has(m)}function Jx(m,x){var T=this.__data__;if(T instanceof Sn){var M=T.__data__;if(!Fp||M.length<n-1)return M.push([m,x]),this.size=++T.size,this;T=this.__data__=new Qr(M)}return T.set(m,x),this.size=T.size,this}Zr.prototype.clear=Yx,Zr.prototype.delete=Xx,Zr.prototype.get=Qx,Zr.prototype.has=Zx,Zr.prototype.set=Jx;function ew(m,x){var T=Nc(m),M=!T&&Vc(m),G=!T&&!M&&Wp(m),ae=!T&&!M&&!G&&Hp(m),me=T||M||G||ae,q=me?U(m.length,String):[],ge=q.length;for(var $t in m)(x||bn.call(m,$t))&&!(me&&($t=="length"||G&&($t=="offset"||$t=="parent")||ae&&($t=="buffer"||$t=="byteLength"||$t=="byteOffset")||Vp($t,ge)))&&q.push($t);return q}function Bc(m,x,T){(T!==void 0&&!na(m[x],T)||T===void 0&&!(x in m))&&Fc(m,x,T)}function tw(m,x,T){var M=m[x];(!(bn.call(m,x)&&na(M,T))||T===void 0&&!(x in m))&&Fc(m,x,T)}function Js(m,x){for(var T=m.length;T--;)if(na(m[T][0],x))return T;return-1}function Fc(m,x,T){x=="__proto__"&&Zs?Zs(m,x,{configurable:!0,enumerable:!0,value:T,writable:!0}):m[x]=T}var nw=mw();function ea(m){return m==null?m===void 0?P:p:br&&br in Object(m)?gw(m):ww(m)}function jp(m){return li(m)&&ea(m)==a}function rw(m){if(!xr(m)||Sw(m))return!1;var x=Uc(m)?Ex:se;return x.test(Tw(m))}function ow(m){return li(m)&&Up(m.length)&&!!N[ea(m)]}function iw(m){if(!xr(m))return xw(m);var x=Np(m),T=[];for(var M in m)M=="constructor"&&(x||!bn.call(m,M))||T.push(M);return T}function Op(m,x,T,M,G){m!==x&&nw(x,function(ae,me){if(G||(G=new Zr),xr(ae))sw(m,x,me,T,Op,M,G);else{var q=M?M(Oc(m,me),ae,me+"",m,x,G):void 0;q===void 0&&(q=ae),Bc(m,me,q)}},qp)}function sw(m,x,T,M,G,ae,me){var q=Oc(m,T),ge=Oc(x,T),$t=me.get(ge);if($t){Bc(m,T,$t);return}var pt=ae?ae(q,ge,T+"",m,x,me):void 0,ci=pt===void 0;if(ci){var Hc=Nc(ge),qc=!Hc&&Wp(ge),Gp=!Hc&&!qc&&Hp(ge);pt=ge,Hc||qc||Gp?Nc(q)?pt=q:Pw(q)?pt=fw(q):qc?(ci=!1,pt=cw(ge,!0)):Gp?(ci=!1,pt=dw(ge,!0)):pt=[]:Ew(ge)||Vc(ge)?(pt=q,Vc(q)?pt=$w(q):(!xr(q)||Uc(q))&&(pt=yw(ge))):ci=!1}ci&&(me.set(ge,pt),G(pt,ge,M,ae,me),me.delete(ge)),Bc(m,T,pt)}function aw(m,x){return Cw(kw(m,x,Kp),m+"")}var lw=Zs?function(m,x){return Zs(m,"toString",{configurable:!0,enumerable:!1,value:Rw(x),writable:!0})}:Kp;function cw(m,x){if(x)return m.slice();var T=m.length,M=Dp?Dp(T):new m.constructor(T);return m.copy(M),M}function uw(m){var x=new m.constructor(m.byteLength);return new Mp(x).set(new Mp(m)),x}function dw(m,x){var T=x?uw(m.buffer):m.buffer;return new m.constructor(T,m.byteOffset,m.length)}function fw(m,x){var T=-1,M=m.length;for(x||(x=Array(M));++T<M;)x[T]=m[T];return x}function hw(m,x,T,M){var G=!T;T||(T={});for(var ae=-1,me=x.length;++ae<me;){var q=x[ae],ge=M?M(T[q],m[q],q,T,m):void 0;ge===void 0&&(ge=m[q]),G?Fc(T,q,ge):tw(T,q,ge)}return T}function pw(m){return aw(function(x,T){var M=-1,G=T.length,ae=G>1?T[G-1]:void 0,me=G>2?T[2]:void 0;for(ae=m.length>3&&typeof ae=="function"?(G--,ae):void 0,me&&vw(T[0],T[1],me)&&(ae=G<3?void 0:ae,G=1),x=Object(x);++M<G;){var q=T[M];q&&m(x,q,M,ae)}return x})}function mw(m){return function(x,T,M){for(var G=-1,ae=Object(x),me=M(x),q=me.length;q--;){var ge=me[m?q:++G];if(T(ae[ge],ge,ae)===!1)break}return x}}function ta(m,x){var T=m.__data__;return bw(x)?T[typeof x=="string"?"string":"hash"]:T.map}function jc(m,x){var T=Et(m,x);return rw(T)?T:void 0}function gw(m){var x=bn.call(m,br),T=m[br];try{m[br]=void 0;var M=!0}catch{}var G=Rp.call(m);return M&&(x?m[br]=T:delete m[br]),G}function yw(m){return typeof m.constructor=="function"&&!Np(m)?Mx(Ip(m)):{}}function Vp(m,x){var T=typeof m;return x=x??s,!!x&&(T=="number"||T!="symbol"&&pe.test(m))&&m>-1&&m%1==0&&m<x}function vw(m,x,T){if(!xr(T))return!1;var M=typeof x;return(M=="number"?Wc(T)&&Vp(x,T.length):M=="string"&&x in T)?na(T[x],m):!1}function bw(m){var x=typeof m;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?m!=="__proto__":m===null}function Sw(m){return!!Ap&&Ap in m}function Np(m){var x=m&&m.constructor,T=typeof x=="function"&&x.prototype||Ys;return m===T}function xw(m){var x=[];if(m!=null)for(var T in Object(m))x.push(T);return x}function ww(m){return Rp.call(m)}function kw(m,x,T){return x=Bp(x===void 0?m.length-1:x,0),function(){for(var M=arguments,G=-1,ae=Bp(M.length-x,0),me=Array(ae);++G<ae;)me[G]=M[x+G];G=-1;for(var q=Array(x+1);++G<x;)q[G]=M[G];return q[x]=T(me),$p(m,this,q)}}function Oc(m,x){if(!(x==="constructor"&&typeof m[x]=="function")&&x!="__proto__")return m[x]}var Cw=_w(lw);function _w(m){var x=0,T=0;return function(){var M=zx(),G=i-(M-T);if(T=M,G>0){if(++x>=o)return arguments[0]}else x=0;return m.apply(void 0,arguments)}}function Tw(m){if(m!=null){try{return Xs.call(m)}catch{}try{return m+""}catch{}}return""}function na(m,x){return m===x||m!==m&&x!==x}var Vc=jp(function(){return arguments}())?jp:function(m){return li(m)&&bn.call(m,"callee")&&!$x.call(m,"callee")},Nc=Array.isArray;function Wc(m){return m!=null&&Up(m.length)&&!Uc(m)}function Pw(m){return li(m)&&Wc(m)}var Wp=Rx||zw;function Uc(m){if(!xr(m))return!1;var x=ea(m);return x==g||x==v||x==c||x==y}function Up(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=s}function xr(m){var x=typeof m;return m!=null&&(x=="object"||x=="function")}function li(m){return m!=null&&typeof m=="object"}function Ew(m){if(!li(m)||ea(m)!=h)return!1;var x=Ip(m);if(x===null)return!0;var T=bn.call(x,"constructor")&&x.constructor;return typeof T=="function"&&T instanceof T&&Xs.call(T)==Px}var Hp=Gs?rt(Gs):ow;function $w(m){return hw(m,qp(m))}function qp(m){return Wc(m)?ew(m,!0):iw(m)}var Aw=pw(function(m,x,T,M){Op(m,x,T,M)});function Rw(m){return function(){return m}}function Kp(m){return m}function zw(){return!1}e.exports=Aw})(Dl,Dl.exports);var v_=Dl.exports;const Ft=Tf(v_);function Ka(e,t=[]){const n=w.useRef(e);return w.useEffect(()=>{n.current=e}),w.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}const zo=globalThis!=null&&globalThis.document?w.useLayoutEffect:w.useEffect,Kd=(e,t)=>{const n=w.useRef(!1),r=w.useRef(!1);w.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),w.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function b_(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 Il(...e){return t=>{e.forEach(n=>{b_(n,t)})}}function S_(e,t){const n=Ka(e);w.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const Re={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}`},on=e=>O1(t=>e(t,"&"),"[role=group]","[data-group]",".group"),xn=e=>O1(t=>e(t,"~ &"),"[data-peer]",".peer"),O1=(e,...t)=>t.map(e).join(", "),Mo={_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:on(Re.open),_groupClosed:on(Re.closed),_groupHover:on(Re.hover),_peerHover:xn(Re.hover),_groupFocus:on(Re.focus),_peerFocus:xn(Re.focus),_groupFocusVisible:on(Re.focusVisible),_peerFocusVisible:xn(Re.focusVisible),_groupActive:on(Re.active),_peerActive:xn(Re.active),_groupDisabled:on(Re.disabled),_peerDisabled:xn(Re.disabled),_groupInvalid:on(Re.invalid),_peerInvalid:xn(Re.invalid),_groupChecked:on(Re.checked),_peerChecked:xn(Re.checked),_groupFocusWithin:on(Re.focusWithin),_peerFocusWithin:xn(Re.focusWithin),_peerPlaceholderShown:xn(Re.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]"},V1=Object.keys(Mo),x_=e=>/!(important)?$/.test(e),lg=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,w_=(e,t)=>n=>{const r=String(t),o=x_(r),i=lg(r),s=e?`${e}.${i}`:i;let a=ut(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=lg(a),o?`${a} !important`:a};function kh(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{const a=w_(t,i)(s);let l=(n==null?void 0:n(a,s))??a;return r&&(l=r(l,s)),l}}const xa=(...e)=>t=>e.reduce((n,r)=>r(n),t);function At(e,t){return n=>{const r={property:n,scale:e};return r.transform=kh({scale:e,transform:t}),r}}const k_=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function C_(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:k_(t),transform:n?kh({scale:n,compose:r}):r}}const N1=["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 __(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...N1].join(" ")}function T_(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...N1].join(" ")}const P_={"--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(" ")},E_={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 $_(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 A_={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Gd={"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"},R_=new Set(Object.values(Gd)),Yd=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),z_=e=>e.trim();function M_(e,t){if(e==null||Yd.has(e))return e;if(!(Xd(e)||Yd.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],s=o==null?void 0:o[2];if(!i||!s)return e;const a=i.includes("-gradient")?i:`${i}-gradient`,[l,...c]=s.split(",").map(z_).filter(Boolean);if((c==null?void 0:c.length)===0)return e;const u=l in Gd?Gd[l]:l;c.unshift(u);const d=c.map(f=>{if(R_.has(f))return f;const g=f.indexOf(" "),[v,b]=g!==-1?[f.substr(0,g),f.substr(g+1)]:[f],k=Xd(b)?b:b&&b.split(" "),p=`colors.${v}`,h=p in t.__cssMap?t.__cssMap[p].varRef:v;return k?[h,...Array.isArray(k)?k:[k]].join(" "):h});return`${a}(${d.join(", ")})`}const Xd=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),D_=(e,t)=>M_(e,t??{});function I_(e){return/^var\(--.+\)$/.test(e)}const L_=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},sn=e=>t=>`${e}(${t})`,K={filter(e){return e!=="auto"?e:P_},backdropFilter(e){return e!=="auto"?e:E_},ring(e){return $_(K.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?__():e==="auto-gpu"?T_():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=L_(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(I_(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:D_,blur:sn("blur"),opacity:sn("opacity"),brightness:sn("brightness"),contrast:sn("contrast"),dropShadow:sn("drop-shadow"),grayscale:sn("grayscale"),hueRotate:e=>sn("hue-rotate")(K.degree(e)),invert:sn("invert"),saturate:sn("saturate"),sepia:sn("sepia"),bgImage(e){return e==null||Xd(e)||Yd.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:n}=A_[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},S={borderWidths:At("borderWidths"),borderStyles:At("borderStyles"),colors:At("colors"),borders:At("borders"),gradients:At("gradients",K.gradient),radii:At("radii",K.px),space:At("space",xa(K.vh,K.px)),spaceT:At("space",xa(K.vh,K.px)),degreeT(e){return{property:e,transform:K.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:kh({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:At("sizes",xa(K.vh,K.px)),sizesT:At("sizes",xa(K.vh,K.fraction)),shadows:At("shadows"),logical:C_,blur:At("blur",K.blur)},Ga={background:S.colors("background"),backgroundColor:S.colors("backgroundColor"),backgroundImage:S.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:K.bgClip},bgSize:S.prop("backgroundSize"),bgPosition:S.prop("backgroundPosition"),bg:S.colors("background"),bgColor:S.colors("backgroundColor"),bgPos:S.prop("backgroundPosition"),bgRepeat:S.prop("backgroundRepeat"),bgAttachment:S.prop("backgroundAttachment"),bgGradient:S.gradients("backgroundImage"),bgClip:{transform:K.bgClip}};Object.assign(Ga,{bgImage:Ga.backgroundImage,bgImg:Ga.backgroundImage});const Z={border:S.borders("border"),borderWidth:S.borderWidths("borderWidth"),borderStyle:S.borderStyles("borderStyle"),borderColor:S.colors("borderColor"),borderRadius:S.radii("borderRadius"),borderTop:S.borders("borderTop"),borderBlockStart:S.borders("borderBlockStart"),borderTopLeftRadius:S.radii("borderTopLeftRadius"),borderStartStartRadius:S.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:S.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:S.radii("borderTopRightRadius"),borderStartEndRadius:S.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:S.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:S.borders("borderRight"),borderInlineEnd:S.borders("borderInlineEnd"),borderBottom:S.borders("borderBottom"),borderBlockEnd:S.borders("borderBlockEnd"),borderBottomLeftRadius:S.radii("borderBottomLeftRadius"),borderBottomRightRadius:S.radii("borderBottomRightRadius"),borderLeft:S.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:S.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:S.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:S.borders(["borderLeft","borderRight"]),borderInline:S.borders("borderInline"),borderY:S.borders(["borderTop","borderBottom"]),borderBlock:S.borders("borderBlock"),borderTopWidth:S.borderWidths("borderTopWidth"),borderBlockStartWidth:S.borderWidths("borderBlockStartWidth"),borderTopColor:S.colors("borderTopColor"),borderBlockStartColor:S.colors("borderBlockStartColor"),borderTopStyle:S.borderStyles("borderTopStyle"),borderBlockStartStyle:S.borderStyles("borderBlockStartStyle"),borderBottomWidth:S.borderWidths("borderBottomWidth"),borderBlockEndWidth:S.borderWidths("borderBlockEndWidth"),borderBottomColor:S.colors("borderBottomColor"),borderBlockEndColor:S.colors("borderBlockEndColor"),borderBottomStyle:S.borderStyles("borderBottomStyle"),borderBlockEndStyle:S.borderStyles("borderBlockEndStyle"),borderLeftWidth:S.borderWidths("borderLeftWidth"),borderInlineStartWidth:S.borderWidths("borderInlineStartWidth"),borderLeftColor:S.colors("borderLeftColor"),borderInlineStartColor:S.colors("borderInlineStartColor"),borderLeftStyle:S.borderStyles("borderLeftStyle"),borderInlineStartStyle:S.borderStyles("borderInlineStartStyle"),borderRightWidth:S.borderWidths("borderRightWidth"),borderInlineEndWidth:S.borderWidths("borderInlineEndWidth"),borderRightColor:S.colors("borderRightColor"),borderInlineEndColor:S.colors("borderInlineEndColor"),borderRightStyle:S.borderStyles("borderRightStyle"),borderInlineEndStyle:S.borderStyles("borderInlineEndStyle"),borderTopRadius:S.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:S.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:S.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:S.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Z,{rounded:Z.borderRadius,roundedTop:Z.borderTopRadius,roundedTopLeft:Z.borderTopLeftRadius,roundedTopRight:Z.borderTopRightRadius,roundedTopStart:Z.borderStartStartRadius,roundedTopEnd:Z.borderStartEndRadius,roundedBottom:Z.borderBottomRadius,roundedBottomLeft:Z.borderBottomLeftRadius,roundedBottomRight:Z.borderBottomRightRadius,roundedBottomStart:Z.borderEndStartRadius,roundedBottomEnd:Z.borderEndEndRadius,roundedLeft:Z.borderLeftRadius,roundedRight:Z.borderRightRadius,roundedStart:Z.borderInlineStartRadius,roundedEnd:Z.borderInlineEndRadius,borderStart:Z.borderInlineStart,borderEnd:Z.borderInlineEnd,borderTopStartRadius:Z.borderStartStartRadius,borderTopEndRadius:Z.borderStartEndRadius,borderBottomStartRadius:Z.borderEndStartRadius,borderBottomEndRadius:Z.borderEndEndRadius,borderStartRadius:Z.borderInlineStartRadius,borderEndRadius:Z.borderInlineEndRadius,borderStartWidth:Z.borderInlineStartWidth,borderEndWidth:Z.borderInlineEndWidth,borderStartColor:Z.borderInlineStartColor,borderEndColor:Z.borderInlineEndColor,borderStartStyle:Z.borderInlineStartStyle,borderEndStyle:Z.borderInlineEndStyle});const B_={color:S.colors("color"),textColor:S.colors("color"),fill:S.colors("fill"),stroke:S.colors("stroke"),accentColor:S.colors("accentColor"),textFillColor:S.colors("textFillColor")},Ll={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:K.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:S.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:S.space("gap"),rowGap:S.space("rowGap"),columnGap:S.space("columnGap")};Object.assign(Ll,{flexDir:Ll.flexDirection});const zt={width:S.sizesT("width"),inlineSize:S.sizesT("inlineSize"),height:S.sizes("height"),blockSize:S.sizes("blockSize"),boxSize:S.sizes(["width","height"]),minWidth:S.sizes("minWidth"),minInlineSize:S.sizes("minInlineSize"),minHeight:S.sizes("minHeight"),minBlockSize:S.sizes("minBlockSize"),maxWidth:S.sizes("maxWidth"),maxInlineSize:S.sizes("maxInlineSize"),maxHeight:S.sizes("maxHeight"),maxBlockSize:S.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 o,i;return{[`@media screen and (min-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var o,i;return{[`@media screen and (max-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:S.propT("float",K.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(zt,{w:zt.width,h:zt.height,minW:zt.minWidth,maxW:zt.maxWidth,minH:zt.minHeight,maxH:zt.maxHeight,overscroll:zt.overscrollBehavior,overscrollX:zt.overscrollBehaviorX,overscrollY:zt.overscrollBehaviorY});const F_={filter:{transform:K.filter},blur:S.blur("--chakra-blur"),brightness:S.propT("--chakra-brightness",K.brightness),contrast:S.propT("--chakra-contrast",K.contrast),hueRotate:S.propT("--chakra-hue-rotate",K.hueRotate),invert:S.propT("--chakra-invert",K.invert),saturate:S.propT("--chakra-saturate",K.saturate),dropShadow:S.propT("--chakra-drop-shadow",K.dropShadow),backdropFilter:{transform:K.backdropFilter},backdropBlur:S.blur("--chakra-backdrop-blur"),backdropBrightness:S.propT("--chakra-backdrop-brightness",K.brightness),backdropContrast:S.propT("--chakra-backdrop-contrast",K.contrast),backdropHueRotate:S.propT("--chakra-backdrop-hue-rotate",K.hueRotate),backdropInvert:S.propT("--chakra-backdrop-invert",K.invert),backdropSaturate:S.propT("--chakra-backdrop-saturate",K.saturate)},j_={ring:{transform:K.ring},ringColor:S.colors("--chakra-ring-color"),ringOffset:S.prop("--chakra-ring-offset-width"),ringOffsetColor:S.colors("--chakra-ring-offset-color"),ringInset:S.prop("--chakra-ring-inset")},O_={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:K.outline},outlineOffset:!0,outlineColor:S.colors("outlineColor")},W1={gridGap:S.space("gridGap"),gridColumnGap:S.space("gridColumnGap"),gridRowGap:S.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 V_(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return e===void 0?n:e}const N_=e=>{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},W_=N_(V_),U_={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},H_={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},bu=(e,t,n)=>{const r={},o=W_(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},q_={srOnly:{transform(e){return e===!0?U_:e==="focusable"?H_:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>bu(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>bu(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>bu(t,e,n)}},Hi={position:!0,pos:S.prop("position"),zIndex:S.prop("zIndex","zIndices"),inset:S.spaceT("inset"),insetX:S.spaceT(["left","right"]),insetInline:S.spaceT("insetInline"),insetY:S.spaceT(["top","bottom"]),insetBlock:S.spaceT("insetBlock"),top:S.spaceT("top"),insetBlockStart:S.spaceT("insetBlockStart"),bottom:S.spaceT("bottom"),insetBlockEnd:S.spaceT("insetBlockEnd"),left:S.spaceT("left"),insetInlineStart:S.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:S.spaceT("right"),insetInlineEnd:S.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Hi,{insetStart:Hi.insetInlineStart,insetEnd:Hi.insetInlineEnd});const Qd={boxShadow:S.shadows("boxShadow"),mixBlendMode:!0,blendMode:S.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:S.prop("backgroundBlendMode"),opacity:!0};Object.assign(Qd,{shadow:Qd.boxShadow});const de={margin:S.spaceT("margin"),marginTop:S.spaceT("marginTop"),marginBlockStart:S.spaceT("marginBlockStart"),marginRight:S.spaceT("marginRight"),marginInlineEnd:S.spaceT("marginInlineEnd"),marginBottom:S.spaceT("marginBottom"),marginBlockEnd:S.spaceT("marginBlockEnd"),marginLeft:S.spaceT("marginLeft"),marginInlineStart:S.spaceT("marginInlineStart"),marginX:S.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:S.spaceT("marginInline"),marginY:S.spaceT(["marginTop","marginBottom"]),marginBlock:S.spaceT("marginBlock"),padding:S.space("padding"),paddingTop:S.space("paddingTop"),paddingBlockStart:S.space("paddingBlockStart"),paddingRight:S.space("paddingRight"),paddingBottom:S.space("paddingBottom"),paddingBlockEnd:S.space("paddingBlockEnd"),paddingLeft:S.space("paddingLeft"),paddingInlineStart:S.space("paddingInlineStart"),paddingInlineEnd:S.space("paddingInlineEnd"),paddingX:S.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:S.space("paddingInline"),paddingY:S.space(["paddingTop","paddingBottom"]),paddingBlock:S.space("paddingBlock")};Object.assign(de,{m:de.margin,mt:de.marginTop,mr:de.marginRight,me:de.marginInlineEnd,marginEnd:de.marginInlineEnd,mb:de.marginBottom,ml:de.marginLeft,ms:de.marginInlineStart,marginStart:de.marginInlineStart,mx:de.marginX,my:de.marginY,p:de.padding,pt:de.paddingTop,py:de.paddingY,px:de.paddingX,pb:de.paddingBottom,pl:de.paddingLeft,ps:de.paddingInlineStart,paddingStart:de.paddingInlineStart,pr:de.paddingRight,pe:de.paddingInlineEnd,paddingEnd:de.paddingInlineEnd});const K_={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:S.spaceT("scrollMargin"),scrollMarginTop:S.spaceT("scrollMarginTop"),scrollMarginBottom:S.spaceT("scrollMarginBottom"),scrollMarginLeft:S.spaceT("scrollMarginLeft"),scrollMarginRight:S.spaceT("scrollMarginRight"),scrollMarginX:S.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:S.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:S.spaceT("scrollPadding"),scrollPaddingTop:S.spaceT("scrollPaddingTop"),scrollPaddingBottom:S.spaceT("scrollPaddingBottom"),scrollPaddingLeft:S.spaceT("scrollPaddingLeft"),scrollPaddingRight:S.spaceT("scrollPaddingRight"),scrollPaddingX:S.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:S.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},G_={fontFamily:S.prop("fontFamily","fonts"),fontSize:S.prop("fontSize","fontSizes",K.px),fontWeight:S.prop("fontWeight","fontWeights"),lineHeight:S.prop("lineHeight","lineHeights"),letterSpacing:S.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"}},Y_={textDecorationColor:S.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:S.shadows("textShadow")},X_={clipPath:!0,transform:S.propT("transform",K.transform),transformOrigin:!0,translateX:S.spaceT("--chakra-translate-x"),translateY:S.spaceT("--chakra-translate-y"),skewX:S.degreeT("--chakra-skew-x"),skewY:S.degreeT("--chakra-skew-y"),scaleX:S.prop("--chakra-scale-x"),scaleY:S.prop("--chakra-scale-y"),scale:S.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:S.degreeT("--chakra-rotate")},Q_={listStyleType:!0,listStylePosition:!0,listStylePos:S.prop("listStylePosition"),listStyleImage:!0,listStyleImg:S.prop("listStyleImage")},Z_={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:S.prop("transitionDuration","transition.duration"),transitionProperty:S.prop("transitionProperty","transition.property"),transitionTimingFunction:S.prop("transitionTimingFunction","transition.easing")},Ch=Ft({},Ga,Z,B_,Ll,zt,F_,j_,O_,W1,q_,Hi,Qd,de,K_,G_,Y_,X_,Q_,Z_);Object.assign({},de,zt,Ll,W1,Hi);const J_=[...Object.keys(Ch),...V1],e2={...Ch,...Mo},t2=e=>e in e2,n2=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const s in e){let a=Bt(e[s],t);if(a==null)continue;if(a=ut(a)&&n(a)?r(a):a,!Array.isArray(a)){i[s]=a;continue}const l=a.slice(0,o.length).length;for(let c=0;c<l;c+=1){const u=o==null?void 0:o[c];if(!u){i[s]=a[c];continue}i[u]=i[u]||{},a[c]!=null&&(i[u][s]=a[c])}}return i};function r2(e){const t=[];let n="",r=!1;for(let o=0;o<e.length;o++){const i=e[o];i==="("?(r=!0,n+=i):i===")"?(r=!1,n+=i):i===","&&!r?(t.push(n),n=""):n+=i}return n=n.trim(),n&&t.push(n),t}function o2(e){return/^var\(--.+\)$/.test(e)}const i2=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!o2(t),s2=(e,t)=>{if(t==null)return t;const n=s=>{var a,l;return(l=(a=e.__cssMap)==null?void 0:a[s])==null?void 0:l.varRef},r=s=>n(s)??s,[o,i]=r2(t);return t=n(o)??r(i)??r(t),t};function a2(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,s=!1)=>{var u;const a=Bt(i,r),l=n2(a)(r);let c={};for(let d in l){const f=l[d];let g=Bt(f,r);d in n&&(d=n[d]),i2(d,g)&&(g=s2(r,g));let v=t[d];if(v===!0&&(v={property:d}),ut(g)){c[d]=c[d]??{},c[d]=Ft({},c[d],o(g,!0));continue}let b=((u=v==null?void 0:v.transform)==null?void 0:u.call(v,g,r,a))??g;b=v!=null&&v.processResult?o(b,!0):b;const k=Bt(v==null?void 0:v.property,r);if(!s&&(v!=null&&v.static)){const p=Bt(v.static,r);c=Ft({},c,p)}if(k&&Array.isArray(k)){for(const p of k)c[p]=b;continue}if(k){k==="&"&&ut(b)?c=Ft({},c,b):c[k]=b;continue}if(ut(b)){c=Ft({},c,b);continue}c[d]=b}return c};return o}const U1=e=>t=>a2({theme:t,pseudos:Mo,configs:Ch})(e);function ce(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function l2(e,t){if(Array.isArray(e))return e;if(ut(e))return t(e);if(e!=null)return[e]}function c2(e,t){for(let n=t+1;n<e.length;n++)if(e[n]!=null)return n;return-1}function u2(e){const t=e.__breakpoints;return function(r,o,i,s){var f,g;if(!t)return;const a={},l=l2(i,t.toArrayValue);if(!l)return a;const c=l.length,u=c===1,d=!!r.parts;for(let v=0;v<c;v++){const b=t.details[v],k=t.details[c2(l,v)],p=Pi(b.minW,k==null?void 0:k._minW),h=Bt((f=r[o])==null?void 0:f[l[v]],s);if(h){if(d){(g=r.parts)==null||g.forEach(y=>{Ft(a,{[y]:u?h[y]:{[p]:h[y]}})});continue}if(!d){u?Ft(a,h):a[p]=h;continue}a[p]=h}}return a}}function d2(e){return t=>{const{variant:n,size:r,theme:o}=t,i=u2(o);return Ft({},Bt(e.baseStyle??{},t),i(e,"sizes",r,t),i(e,"variants",n,t))}}function Gr(e){return j1(e,["styleConfig","size","variant","colorScheme"])}function H1(e){return ut(e)&&e.reference?e.reference:String(e)}const fc=(e,...t)=>t.map(H1).join(` ${e} `).replace(/calc/g,""),cg=(...e)=>`calc(${fc("+",...e)})`,ug=(...e)=>`calc(${fc("-",...e)})`,Zd=(...e)=>`calc(${fc("*",...e)})`,dg=(...e)=>`calc(${fc("/",...e)})`,fg=e=>{const t=H1(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Zd(t,-1)},Cn=Object.assign(e=>({add:(...t)=>Cn(cg(e,...t)),subtract:(...t)=>Cn(ug(e,...t)),multiply:(...t)=>Cn(Zd(e,...t)),divide:(...t)=>Cn(dg(e,...t)),negate:()=>Cn(fg(e)),toString:()=>e.toString()}),{add:cg,subtract:ug,multiply:Zd,divide:dg,negate:fg});function f2(e,t="-"){return e.replace(/\s+/g,t)}function h2(e){const t=f2(e.toString());return m2(p2(t))}function p2(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function m2(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function g2(e,t=""){return[t,e].filter(Boolean).join("-")}function y2(e,t){return`var(${e}${t?`, ${t}`:""})`}function v2(e,t=""){return h2(`--${g2(e,t)}`)}function B(e,t,n){const r=v2(e,n);return{variable:r,reference:y2(r,t)}}function b2(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=B(`${e}-${o}`,i);continue}n[r]=B(`${e}-${r}`)}return n}const S2=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function x2(e){return m_(e,S2)}function w2(e){return e.semanticTokens}function k2(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}function C2(e){const t=x2(e),n=w2(e),r=i=>V1.includes(i)||i==="default",o={};return ag(t,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!1,value:i})}),ag(n,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!0,value:i})},{stop:i=>Object.keys(i).every(r)}),o}function hg(e,t){return B(String(e).replace(/\./g,"-"),void 0,t)}function _2(e){var s;const t=C2(e),n=(s=e.config)==null?void 0:s.cssVarPrefix;let r={};const o={};function i(a,l){const u=[String(a).split(".")[0],l].join(".");if(!t[u])return l;const{reference:f}=hg(u,n);return f}for(const[a,l]of Object.entries(t)){const{isSemantic:c,value:u}=l,{variable:d,reference:f}=hg(a,n);if(!c){if(a.startsWith("space")){const v=a.split("."),[b,...k]=v,p=`${b}.-${k.join(".")}`,h=Cn.negate(u),y=Cn.negate(f);o[p]={value:h,var:d,varRef:y}}r[d]=u,o[a]={value:u,var:d,varRef:f};continue}const g=ut(u)?u:{default:u};r=Ft(r,Object.entries(g).reduce((v,[b,k])=>{if(!k)return v;const p=i(a,`${k}`);if(b==="default")return v[d]=p,v;const h=(Mo==null?void 0:Mo[b])??b;return v[h]={[d]:p},v},{})),o[a]={value:f,var:d,varRef:f}}return{cssVars:r,cssMap:o}}function T2(e){const t=k2(e),{cssMap:n,cssVars:r}=_2(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"},...r},__cssMap:n,__breakpoints:u_(t.breakpoints)}),t}function ne(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...u){r();for(const d of u)t[d]=l(d);return ne(e,t)}function i(...u){for(const d of u)d in t||(t[d]=l(d));return ne(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(u){const g=`chakra-${(["container","root"].includes(u??"")?[e]:[e,u]).filter(Boolean).join("__")}`;return{className:g,selector:`.${g}`,toString:()=>u}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}const P2=ne("accordion").parts("root","container","button","panel","icon"),E2=ne("alert").parts("title","description","container","icon","spinner"),$2=ne("avatar").parts("label","badge","container","excessLabel","group"),A2=ne("breadcrumb").parts("link","item","container","separator");ne("button").parts();const R2=ne("checkbox").parts("control","icon","container","label");ne("progress").parts("track","filledTrack","label");const z2=ne("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),M2=ne("editable").parts("preview","input","textarea"),D2=ne("form").parts("container","requiredIndicator","helperText"),I2=ne("formError").parts("text","icon"),L2=ne("input").parts("addon","field","element","group"),B2=ne("list").parts("container","item","icon"),F2=ne("menu").parts("button","list","item","groupTitle","icon","command","divider"),j2=ne("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),O2=ne("numberinput").parts("root","field","stepperGroup","stepper");ne("pininput").parts("field");const V2=ne("popover").parts("content","header","body","footer","popper","arrow","closeButton"),N2=ne("progress").parts("label","filledTrack","track"),W2=ne("radio").parts("container","control","label"),U2=ne("select").parts("field","icon"),H2=ne("slider").parts("container","track","thumb","filledTrack","mark"),q2=ne("stat").parts("container","label","helpText","number","icon"),K2=ne("switch").parts("container","track","thumb","label"),G2=ne("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Y2=ne("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),X2=ne("tag").parts("container","label","closeButton"),Q2=ne("card").parts("container","header","body","footer");ne("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:Z2,defineMultiStyleConfig:J2}=ce(P2.keys),eT={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},tT={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},nT={pt:"2",px:"4",pb:"5"},rT={fontSize:"1.25em"},oT=Z2({container:eT,button:tT,panel:nT,icon:rT}),iT=J2({baseStyle:oT});function Rr(e,t,n){return Math.min(Math.max(e,n),t)}class sT extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Ei=sT;function _h(e){if(typeof e!="string")throw new Ei(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=pT.test(e)?cT(e):e;const n=uT.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(vs(a,2),16)),parseInt(vs(s[3]||"f",2),16)/255]}const r=dT.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const o=fT.exec(t);if(o){const s=Array.from(o).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,10)),parseFloat(s[3]||"1")]}const i=hT.exec(t);if(i){const[s,a,l,c]=Array.from(i).slice(1).map(parseFloat);if(Rr(0,100,a)!==a)throw new Ei(e);if(Rr(0,100,l)!==l)throw new Ei(e);return[...mT(s,a,l),Number.isNaN(c)?1:c]}throw new Ei(e)}function aT(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const pg=e=>parseInt(e.replace(/_/g,""),36),lT="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 n=pg(t.substring(0,3)),r=pg(t.substring(3)).toString(16);let o="";for(let i=0;i<6-r.length;i++)o+="0";return e[n]=`${o}${r}`,e},{});function cT(e){const t=e.toLowerCase().trim(),n=lT[aT(t)];if(!n)throw new Ei(e);return`#${n}`}const vs=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),uT=new RegExp(`^#${vs("([a-f0-9])",3)}([a-f0-9])?$`,"i"),dT=new RegExp(`^#${vs("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),fT=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${vs(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),hT=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,pT=/^[a-z]+$/i,mg=e=>Math.round(e*255),mT=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(mg);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),s=i*(1-Math.abs(o%2-1));let a=0,l=0,c=0;o>=0&&o<1?(a=i,l=s):o>=1&&o<2?(a=s,l=i):o>=2&&o<3?(l=i,c=s):o>=3&&o<4?(l=s,c=i):o>=4&&o<5?(a=s,c=i):o>=5&&o<6&&(a=i,c=s);const u=r-i/2,d=a+u,f=l+u,g=c+u;return[d,f,g].map(mg)};function gT(e,t,n,r){return`rgba(${Rr(0,255,e).toFixed()}, ${Rr(0,255,t).toFixed()}, ${Rr(0,255,n).toFixed()}, ${parseFloat(Rr(0,1,r).toFixed(3))})`}function yT(e,t){const[n,r,o,i]=_h(e);return gT(n,r,o,i-t)}function vT(e){const[t,n,r,o]=_h(e);let i=s=>{const a=Rr(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${i(t)}${i(n)}${i(r)}${o<1?i(Math.round(o*255)):""}`}const bT=e=>Object.keys(e).length===0;function ST(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:o;return e===o?n:e}const Ze=(e,t,n)=>{const r=ST(e,`colors.${t}`,t);try{return vT(r),r}catch{return n??"#000000"}},xT=e=>{const[t,n,r]=_h(e);return(t*299+n*587+r*114)/1e3},wT=e=>t=>{const n=Ze(t,e);return xT(n)<128?"dark":"light"},kT=e=>t=>wT(e)(t)==="dark",Ko=(e,t)=>n=>{const r=Ze(n,e);return yT(r,1-t)};function gg(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
41
+ 45deg,
42
+ ${t} 25%,
43
+ transparent 25%,
44
+ transparent 50%,
45
+ ${t} 50%,
46
+ ${t} 75%,
47
+ transparent 75%,
48
+ transparent
49
+ )`,backgroundSize:`${e} ${e}`}}const CT=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function _T(e){const t=CT();return!e||bT(e)?t:e.string&&e.colors?PT(e.string,e.colors):e.string&&!e.colors?TT(e.string):e.colors&&!e.string?ET(e.colors):t}function TT(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1){const o=t>>r*8&255;n+=`00${o.toString(16)}`.substr(-2)}return n}function PT(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;r<e.length;r+=1)n=e.charCodeAt(r)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function ET(e){return e[Math.floor(Math.random()*e.length)]}function L(e,t){return n=>n.colorMode==="dark"?t:e}function Th(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function q1(e){return ut(e)&&e.reference?e.reference:String(e)}const hc=(e,...t)=>t.map(q1).join(` ${e} `).replace(/calc/g,""),yg=(...e)=>`calc(${hc("+",...e)})`,vg=(...e)=>`calc(${hc("-",...e)})`,Jd=(...e)=>`calc(${hc("*",...e)})`,bg=(...e)=>`calc(${hc("/",...e)})`,Sg=e=>{const t=q1(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Jd(t,-1)},_n=Object.assign(e=>({add:(...t)=>_n(yg(e,...t)),subtract:(...t)=>_n(vg(e,...t)),multiply:(...t)=>_n(Jd(e,...t)),divide:(...t)=>_n(bg(e,...t)),negate:()=>_n(Sg(e)),toString:()=>e.toString()}),{add:yg,subtract:vg,multiply:Jd,divide:bg,negate:Sg});function $T(e){return!Number.isInteger(parseFloat(e.toString()))}function AT(e,t="-"){return e.replace(/\s+/g,t)}function K1(e){const t=AT(e.toString());return t.includes("\\.")?e:$T(e)?t.replace(".","\\."):e}function RT(e,t=""){return[t,K1(e)].filter(Boolean).join("-")}function zT(e,t){return`var(${K1(e)}${t?`, ${t}`:""})`}function MT(e,t=""){return`--${RT(e,t)}`}function we(e,t){const n=MT(e,t==null?void 0:t.prefix);return{variable:n,reference:zT(n,DT(t==null?void 0:t.fallback))}}function DT(e){return typeof e=="string"?e:e==null?void 0:e.reference}const{definePartsStyle:Is,defineMultiStyleConfig:IT}=ce(E2.keys),bt=B("alert-fg"),Fn=B("alert-bg"),LT=Is({container:{bg:Fn.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:bt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:bt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Ph(e){const{theme:t,colorScheme:n}=e,r=Ko(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}const BT=Is(e=>{const{colorScheme:t}=e,n=Ph(e);return{container:{[bt.variable]:`colors.${t}.600`,[Fn.variable]:n.light,_dark:{[bt.variable]:`colors.${t}.200`,[Fn.variable]:n.dark}}}}),FT=Is(e=>{const{colorScheme:t}=e,n=Ph(e);return{container:{[bt.variable]:`colors.${t}.600`,[Fn.variable]:n.light,_dark:{[bt.variable]:`colors.${t}.200`,[Fn.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:bt.reference}}}),jT=Is(e=>{const{colorScheme:t}=e,n=Ph(e);return{container:{[bt.variable]:`colors.${t}.600`,[Fn.variable]:n.light,_dark:{[bt.variable]:`colors.${t}.200`,[Fn.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:bt.reference}}}),OT=Is(e=>{const{colorScheme:t}=e;return{container:{[bt.variable]:"colors.white",[Fn.variable]:`colors.${t}.600`,_dark:{[bt.variable]:"colors.gray.900",[Fn.variable]:`colors.${t}.200`},color:bt.reference}}}),VT={subtle:BT,"left-accent":FT,"top-accent":jT,solid:OT},NT=IT({baseStyle:LT,variants:VT,defaultProps:{variant:"subtle",colorScheme:"blue"}}),G1={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"},WT={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"},UT={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Y1={...G1,...WT,container:UT},HT=e=>typeof e=="function";function et(e,...t){return HT(e)?e(...t):e}const{definePartsStyle:X1,defineMultiStyleConfig:qT}=ce($2.keys),Do=B("avatar-border-color"),qi=B("avatar-bg"),bs=B("avatar-font-size"),Go=B("avatar-size"),KT={borderRadius:"full",border:"0.2em solid",borderColor:Do.reference,[Do.variable]:"white",_dark:{[Do.variable]:"colors.gray.800"}},GT={bg:qi.reference,fontSize:bs.reference,width:Go.reference,height:Go.reference,lineHeight:"1",[qi.variable]:"colors.gray.200",_dark:{[qi.variable]:"colors.whiteAlpha.400"}},YT=e=>{const{name:t,theme:n}=e,r=t?_T({string:t}):"colors.gray.400",o=kT(r)(n);let i="white";return o||(i="gray.800"),{bg:qi.reference,fontSize:bs.reference,color:i,borderColor:Do.reference,verticalAlign:"top",width:Go.reference,height:Go.reference,"&:not([data-loaded])":{[qi.variable]:r},[Do.variable]:"colors.white",_dark:{[Do.variable]:"colors.gray.800"}}},XT={fontSize:bs.reference,lineHeight:"1"},QT=X1(e=>({badge:et(KT,e),excessLabel:et(GT,e),container:et(YT,e),label:XT}));function Wn(e){const t=e!=="100%"?Y1[e]:void 0;return X1({container:{[Go.variable]:t??e,[bs.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Go.variable]:t??e,[bs.variable]:`calc(${t??e} / 2.5)`}})}const ZT={"2xs":Wn(4),xs:Wn(6),sm:Wn(8),md:Wn(12),lg:Wn(16),xl:Wn(24),"2xl":Wn(32),full:Wn("100%")},JT=qT({baseStyle:QT,sizes:ZT,defaultProps:{size:"md"}}),Pe=b2("badge",["bg","color","shadow"]),eP={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Pe.bg.reference,color:Pe.color.reference,boxShadow:Pe.shadow.reference},tP=e=>{const{colorScheme:t,theme:n}=e,r=Ko(`${t}.500`,.6)(n);return{[Pe.bg.variable]:`colors.${t}.500`,[Pe.color.variable]:"colors.white",_dark:{[Pe.bg.variable]:r,[Pe.color.variable]:"colors.whiteAlpha.800"}}},nP=e=>{const{colorScheme:t,theme:n}=e,r=Ko(`${t}.200`,.16)(n);return{[Pe.bg.variable]:`colors.${t}.100`,[Pe.color.variable]:`colors.${t}.800`,_dark:{[Pe.bg.variable]:r,[Pe.color.variable]:`colors.${t}.200`}}},rP=e=>{const{colorScheme:t,theme:n}=e,r=Ko(`${t}.200`,.8)(n);return{[Pe.color.variable]:`colors.${t}.500`,_dark:{[Pe.color.variable]:r},[Pe.shadow.variable]:`inset 0 0 0px 1px ${Pe.color.reference}`}},oP={solid:tP,subtle:nP,outline:rP},Ki={baseStyle:eP,variants:oP,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:iP,definePartsStyle:sP}=ce(A2.keys),Su=B("breadcrumb-link-decor"),aP={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Su.reference,[Su.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Su.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},lP=sP({link:aP}),cP=iP({baseStyle:lP}),uP={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"}}},Q1=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:L("gray.800","whiteAlpha.900")(e),_hover:{bg:L("gray.100","whiteAlpha.200")(e)},_active:{bg:L("gray.200","whiteAlpha.300")(e)}};const r=Ko(`${t}.200`,.12)(n),o=Ko(`${t}.200`,.24)(n);return{color:L(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:L(`${t}.50`,r)(e)},_active:{bg:L(`${t}.100`,o)(e)}}},dP=e=>{const{colorScheme:t}=e,n=L("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"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"},...et(Q1,e)}},fP={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},hP=e=>{const{colorScheme:t}=e;if(t==="gray"){const a=L("gray.100","whiteAlpha.200")(e);return{bg:a,color:L("gray.800","whiteAlpha.900")(e),_hover:{bg:L("gray.200","whiteAlpha.300")(e),_disabled:{bg:a}},_active:{bg:L("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=fP[t]??{},s=L(n,`${t}.200`)(e);return{bg:s,color:L(r,"gray.800")(e),_hover:{bg:L(o,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:L(i,`${t}.400`)(e)}}},pP=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:L(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:L(`${t}.700`,`${t}.500`)(e)}}},mP={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},gP={ghost:Q1,outline:dP,solid:hP,link:pP,unstyled:mP},yP={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"}},vP={baseStyle:uP,variants:gP,sizes:yP,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Ir,defineMultiStyleConfig:bP}=ce(Q2.keys),Bl=B("card-bg"),Rn=B("card-padding"),Z1=B("card-shadow"),Ya=B("card-radius"),J1=B("card-border-width","0"),eb=B("card-border-color"),SP=Ir({container:{[Bl.variable]:"colors.chakra-body-bg",backgroundColor:Bl.reference,boxShadow:Z1.reference,borderRadius:Ya.reference,color:"chakra-body-text",borderWidth:J1.reference,borderColor:eb.reference},body:{padding:Rn.reference,flex:"1 1 0%"},header:{padding:Rn.reference},footer:{padding:Rn.reference}}),xP={sm:Ir({container:{[Ya.variable]:"radii.base",[Rn.variable]:"space.3"}}),md:Ir({container:{[Ya.variable]:"radii.md",[Rn.variable]:"space.5"}}),lg:Ir({container:{[Ya.variable]:"radii.xl",[Rn.variable]:"space.7"}})},wP={elevated:Ir({container:{[Z1.variable]:"shadows.base",_dark:{[Bl.variable]:"colors.gray.700"}}}),outline:Ir({container:{[J1.variable]:"1px",[eb.variable]:"colors.chakra-border-color"}}),filled:Ir({container:{[Bl.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Rn.variable]:0},header:{[Rn.variable]:0},footer:{[Rn.variable]:0}}},kP=bP({baseStyle:SP,variants:wP,sizes:xP,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:Xa,defineMultiStyleConfig:CP}=ce(R2.keys),Gi=B("checkbox-size"),_P=e=>{const{colorScheme:t}=e;return{w:Gi.reference,h:Gi.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:L(`${t}.500`,`${t}.200`)(e),borderColor:L(`${t}.500`,`${t}.200`)(e),color:L("white","gray.900")(e),_hover:{bg:L(`${t}.600`,`${t}.300`)(e),borderColor:L(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:L("gray.200","transparent")(e),bg:L("gray.200","whiteAlpha.300")(e),color:L("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:L(`${t}.500`,`${t}.200`)(e),borderColor:L(`${t}.500`,`${t}.200`)(e),color:L("white","gray.900")(e)},_disabled:{bg:L("gray.100","whiteAlpha.100")(e),borderColor:L("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:L("red.500","red.300")(e)}}},TP={_disabled:{cursor:"not-allowed"}},PP={userSelect:"none",_disabled:{opacity:.4}},EP={transitionProperty:"transform",transitionDuration:"normal"},$P=Xa(e=>({icon:EP,container:TP,control:et(_P,e),label:PP})),AP={sm:Xa({control:{[Gi.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Xa({control:{[Gi.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Xa({control:{[Gi.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Gn=CP({baseStyle:$P,sizes:AP,defaultProps:{size:"md",colorScheme:"blue"}}),Yi=we("close-button-size"),vi=we("close-button-bg"),RP={w:[Yi.reference],h:[Yi.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[vi.variable]:"colors.blackAlpha.100",_dark:{[vi.variable]:"colors.whiteAlpha.100"}},_active:{[vi.variable]:"colors.blackAlpha.200",_dark:{[vi.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:vi.reference},zP={lg:{[Yi.variable]:"sizes.10",fontSize:"md"},md:{[Yi.variable]:"sizes.8",fontSize:"xs"},sm:{[Yi.variable]:"sizes.6",fontSize:"2xs"}},MP={baseStyle:RP,sizes:zP,defaultProps:{size:"md"}},{variants:DP,defaultProps:IP}=Ki,LP={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Pe.bg.reference,color:Pe.color.reference,boxShadow:Pe.shadow.reference},BP={baseStyle:LP,variants:DP,defaultProps:IP},FP={w:"100%",mx:"auto",maxW:"prose",px:"4"},jP={baseStyle:FP},OP={opacity:.6,borderColor:"inherit"},VP={borderStyle:"solid"},NP={borderStyle:"dashed"},WP={solid:VP,dashed:NP},UP={baseStyle:OP,variants:WP,defaultProps:{variant:"solid"}},{definePartsStyle:ef,defineMultiStyleConfig:HP}=ce(z2.keys),xu=B("drawer-bg"),wu=B("drawer-box-shadow");function eo(e){return ef(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const qP={bg:"blackAlpha.600",zIndex:"modal"},KP={display:"flex",zIndex:"modal",justifyContent:"center"},GP=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[xu.variable]:"colors.white",[wu.variable]:"shadows.lg",_dark:{[xu.variable]:"colors.gray.700",[wu.variable]:"shadows.dark-lg"},bg:xu.reference,boxShadow:wu.reference}},YP={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},XP={position:"absolute",top:"2",insetEnd:"3"},QP={px:"6",py:"2",flex:"1",overflow:"auto"},ZP={px:"6",py:"4"},JP=ef(e=>({overlay:qP,dialogContainer:KP,dialog:et(GP,e),header:YP,closeButton:XP,body:QP,footer:ZP})),eE={xs:eo("xs"),sm:eo("md"),md:eo("lg"),lg:eo("2xl"),xl:eo("4xl"),full:eo("full")},tE=HP({baseStyle:JP,sizes:eE,defaultProps:{size:"xs"}}),{definePartsStyle:nE,defineMultiStyleConfig:rE}=ce(M2.keys),oE={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},iE={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},sE={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},aE=nE({preview:oE,input:iE,textarea:sE}),lE=rE({baseStyle:aE}),{definePartsStyle:cE,defineMultiStyleConfig:uE}=ce(D2.keys),Io=B("form-control-color"),dE={marginStart:"1",[Io.variable]:"colors.red.500",_dark:{[Io.variable]:"colors.red.300"},color:Io.reference},fE={mt:"2",[Io.variable]:"colors.gray.600",_dark:{[Io.variable]:"colors.whiteAlpha.600"},color:Io.reference,lineHeight:"normal",fontSize:"sm"},hE=cE({container:{width:"100%",position:"relative"},requiredIndicator:dE,helperText:fE}),pE=uE({baseStyle:hE}),{definePartsStyle:mE,defineMultiStyleConfig:gE}=ce(I2.keys),Lo=B("form-error-color"),yE={[Lo.variable]:"colors.red.500",_dark:{[Lo.variable]:"colors.red.300"},color:Lo.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},vE={marginEnd:"0.5em",[Lo.variable]:"colors.red.500",_dark:{[Lo.variable]:"colors.red.300"},color:Lo.reference},bE=mE({text:yE,icon:vE}),SE=gE({baseStyle:bE}),xE={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},wE={baseStyle:xE},kE={fontFamily:"heading",fontWeight:"bold"},CE={"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}},_E={baseStyle:kE,sizes:CE,defaultProps:{size:"xl"}},{definePartsStyle:$n,defineMultiStyleConfig:TE}=ce(L2.keys),mo=B("input-height"),go=B("input-font-size"),yo=B("input-padding"),vo=B("input-border-radius"),PE=$n({addon:{height:mo.reference,fontSize:go.reference,px:yo.reference,borderRadius:vo.reference},field:{width:"100%",height:mo.reference,fontSize:go.reference,px:yo.reference,borderRadius:vo.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Un={lg:{[go.variable]:"fontSizes.lg",[yo.variable]:"space.4",[vo.variable]:"radii.md",[mo.variable]:"sizes.12"},md:{[go.variable]:"fontSizes.md",[yo.variable]:"space.4",[vo.variable]:"radii.md",[mo.variable]:"sizes.10"},sm:{[go.variable]:"fontSizes.sm",[yo.variable]:"space.3",[vo.variable]:"radii.sm",[mo.variable]:"sizes.8"},xs:{[go.variable]:"fontSizes.xs",[yo.variable]:"space.2",[vo.variable]:"radii.sm",[mo.variable]:"sizes.6"}},EE={lg:$n({field:Un.lg,group:Un.lg}),md:$n({field:Un.md,group:Un.md}),sm:$n({field:Un.sm,group:Un.sm}),xs:$n({field:Un.xs,group:Un.xs})};function Eh(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||L("blue.500","blue.300")(e),errorBorderColor:n||L("red.500","red.300")(e)}}const $E=$n(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Eh(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:L("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ze(t,r),boxShadow:`0 0 0 1px ${Ze(t,r)}`},_focusVisible:{zIndex:1,borderColor:Ze(t,n),boxShadow:`0 0 0 1px ${Ze(t,n)}`}},addon:{border:"1px solid",borderColor:L("inherit","whiteAlpha.50")(e),bg:L("gray.100","whiteAlpha.300")(e)}}}),AE=$n(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Eh(e);return{field:{border:"2px solid",borderColor:"transparent",bg:L("gray.100","whiteAlpha.50")(e),_hover:{bg:L("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ze(t,r)},_focusVisible:{bg:"transparent",borderColor:Ze(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:L("gray.100","whiteAlpha.50")(e)}}}),RE=$n(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Eh(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ze(t,r),boxShadow:`0px 1px 0px 0px ${Ze(t,r)}`},_focusVisible:{borderColor:Ze(t,n),boxShadow:`0px 1px 0px 0px ${Ze(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),zE=$n({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),ME={outline:$E,filled:AE,flushed:RE,unstyled:zE},te=TE({baseStyle:PE,sizes:EE,variants:ME,defaultProps:{size:"md",variant:"outline"}}),ku=B("kbd-bg"),DE={[ku.variable]:"colors.gray.100",_dark:{[ku.variable]:"colors.whiteAlpha.100"},bg:ku.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},IE={baseStyle:DE},LE={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},BE={baseStyle:LE},{defineMultiStyleConfig:FE,definePartsStyle:jE}=ce(B2.keys),OE={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},VE=jE({icon:OE}),NE=FE({baseStyle:VE}),{defineMultiStyleConfig:WE,definePartsStyle:UE}=ce(F2.keys),ln=B("menu-bg"),Cu=B("menu-shadow"),HE={[ln.variable]:"#fff",[Cu.variable]:"shadows.sm",_dark:{[ln.variable]:"colors.gray.700",[Cu.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:ln.reference,boxShadow:Cu.reference},qE={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[ln.variable]:"colors.gray.100",_dark:{[ln.variable]:"colors.whiteAlpha.100"}},_active:{[ln.variable]:"colors.gray.200",_dark:{[ln.variable]:"colors.whiteAlpha.200"}},_expanded:{[ln.variable]:"colors.gray.100",_dark:{[ln.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:ln.reference},KE={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},GE={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},YE={opacity:.6},XE={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},QE={transitionProperty:"common",transitionDuration:"normal"},ZE=UE({button:QE,list:HE,item:qE,groupTitle:KE,icon:GE,command:YE,divider:XE}),JE=WE({baseStyle:ZE}),{defineMultiStyleConfig:e5,definePartsStyle:tf}=ce(j2.keys),_u=B("modal-bg"),Tu=B("modal-shadow"),t5={bg:"blackAlpha.600",zIndex:"modal"},n5=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},r5=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[_u.variable]:"colors.white",[Tu.variable]:"shadows.lg",_dark:{[_u.variable]:"colors.gray.700",[Tu.variable]:"shadows.dark-lg"},bg:_u.reference,boxShadow:Tu.reference}},o5={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},i5={position:"absolute",top:"2",insetEnd:"3"},s5=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},a5={px:"6",py:"4"},l5=tf(e=>({overlay:t5,dialogContainer:et(n5,e),dialog:et(r5,e),header:o5,closeButton:i5,body:et(s5,e),footer:a5}));function Ht(e){return tf(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const c5={xs:Ht("xs"),sm:Ht("sm"),md:Ht("md"),lg:Ht("lg"),xl:Ht("xl"),"2xl":Ht("2xl"),"3xl":Ht("3xl"),"4xl":Ht("4xl"),"5xl":Ht("5xl"),"6xl":Ht("6xl"),full:Ht("full")},u5=e5({baseStyle:l5,sizes:c5,defaultProps:{size:"md"}}),tb={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:d5,definePartsStyle:nb}=ce(O2.keys),$h=we("number-input-stepper-width"),rb=we("number-input-input-padding"),f5=_n($h).add("0.5rem").toString(),Pu=we("number-input-bg"),Eu=we("number-input-color"),$u=we("number-input-border-color"),h5={[$h.variable]:"sizes.6",[rb.variable]:f5},p5=e=>{var t;return((t=et(te.baseStyle,e))==null?void 0:t.field)??{}},m5={width:$h.reference},g5={borderStart:"1px solid",borderStartColor:$u.reference,color:Eu.reference,bg:Pu.reference,[Eu.variable]:"colors.chakra-body-text",[$u.variable]:"colors.chakra-border-color",_dark:{[Eu.variable]:"colors.whiteAlpha.800",[$u.variable]:"colors.whiteAlpha.300"},_active:{[Pu.variable]:"colors.gray.200",_dark:{[Pu.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},y5=nb(e=>({root:h5,field:et(p5,e)??{},stepperGroup:m5,stepper:g5}));function wa(e){var i,s;const t=(i=te.sizes)==null?void 0:i[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=((s=t.field)==null?void 0:s.fontSize)??"md",o=tb.fontSizes[r];return nb({field:{...t.field,paddingInlineEnd:rb.reference,verticalAlign:"top"},stepper:{fontSize:_n(o).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const v5={xs:wa("xs"),sm:wa("sm"),md:wa("md"),lg:wa("lg")},b5=d5({baseStyle:y5,sizes:v5,variants:te.variants,defaultProps:te.defaultProps});var sy;const S5={...(sy=te.baseStyle)==null?void 0:sy.field,textAlign:"center"},x5={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 ay;const w5={outline:e=>{var t,n;return((n=et((t=te.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=et((t=te.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=et((t=te.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((ay=te.variants)==null?void 0:ay.unstyled.field)??{}},k5={baseStyle:S5,sizes:x5,variants:w5,defaultProps:te.defaultProps},{defineMultiStyleConfig:C5,definePartsStyle:_5}=ce(V2.keys),ka=we("popper-bg"),T5=we("popper-arrow-bg"),xg=we("popper-arrow-shadow-color"),P5={zIndex:"popover"},E5={[ka.variable]:"colors.white",bg:ka.reference,[T5.variable]:ka.reference,[xg.variable]:"colors.gray.200",_dark:{[ka.variable]:"colors.gray.700",[xg.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},$5={px:3,py:2,borderBottomWidth:"1px"},A5={px:3,py:2},R5={px:3,py:2,borderTopWidth:"1px"},z5={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},M5=_5({popper:P5,content:E5,header:$5,body:A5,footer:R5,closeButton:z5}),D5=C5({baseStyle:M5}),{defineMultiStyleConfig:I5,definePartsStyle:$i}=ce(N2.keys),L5=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=L(gg(),gg("1rem","rgba(0,0,0,0.1)"))(e),s=L(`${t}.500`,`${t}.200`)(e),a=`linear-gradient(
50
+ to right,
51
+ transparent 0%,
52
+ ${Ze(n,s)} 50%,
53
+ transparent 100%
54
+ )`;return{...!r&&o&&i,...r?{bgImage:a}:{bgColor:s}}},B5={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},F5=e=>({bg:L("gray.100","whiteAlpha.300")(e)}),j5=e=>({transitionProperty:"common",transitionDuration:"slow",...L5(e)}),O5=$i(e=>({label:B5,filledTrack:j5(e),track:F5(e)})),V5={xs:$i({track:{h:"1"}}),sm:$i({track:{h:"2"}}),md:$i({track:{h:"3"}}),lg:$i({track:{h:"4"}})},N5=I5({sizes:V5,baseStyle:O5,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:W5,definePartsStyle:Qa}=ce(W2.keys),U5=e=>{var n;const t=(n=et(Gn.baseStyle,e))==null?void 0:n.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"}}}},H5=Qa(e=>{var t,n;return{label:(t=Gn.baseStyle)==null?void 0:t.call(Gn,e).label,container:(n=Gn.baseStyle)==null?void 0:n.call(Gn,e).container,control:U5(e)}}),q5={md:Qa({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Qa({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Qa({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},K5=W5({baseStyle:H5,sizes:q5,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:G5,definePartsStyle:Y5}=ce(U2.keys),Ca=B("select-bg");var ly;const X5={...(ly=te.baseStyle)==null?void 0:ly.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Ca.reference,[Ca.variable]:"colors.white",_dark:{[Ca.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Ca.reference}},Q5={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Z5=Y5({field:X5,icon:Q5}),_a={paddingInlineEnd:"8"};var cy,uy,dy,fy,hy,py,my,gy;const J5={lg:{...(cy=te.sizes)==null?void 0:cy.lg,field:{...(uy=te.sizes)==null?void 0:uy.lg.field,..._a}},md:{...(dy=te.sizes)==null?void 0:dy.md,field:{...(fy=te.sizes)==null?void 0:fy.md.field,..._a}},sm:{...(hy=te.sizes)==null?void 0:hy.sm,field:{...(py=te.sizes)==null?void 0:py.sm.field,..._a}},xs:{...(my=te.sizes)==null?void 0:my.xs,field:{...(gy=te.sizes)==null?void 0:gy.xs.field,..._a},icon:{insetEnd:"1"}}},e$=G5({baseStyle:Z5,sizes:J5,variants:te.variants,defaultProps:te.defaultProps}),Au=B("skeleton-start-color"),Ru=B("skeleton-end-color"),t$={[Au.variable]:"colors.gray.100",[Ru.variable]:"colors.gray.400",_dark:{[Au.variable]:"colors.gray.800",[Ru.variable]:"colors.gray.600"},background:Au.reference,borderColor:Ru.reference,opacity:.7,borderRadius:"sm"},n$={baseStyle:t$},zu=B("skip-link-bg"),r$={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[zu.variable]:"colors.white",_dark:{[zu.variable]:"colors.gray.700"},bg:zu.reference}},o$={baseStyle:r$},{defineMultiStyleConfig:i$,definePartsStyle:pc}=ce(H2.keys),Ur=B("slider-thumb-size"),Ss=B("slider-track-size"),Qn=B("slider-bg"),s$=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Th({orientation:t,vertical:{h:"100%",px:Cn(Ur.reference).divide(2).toString()},horizontal:{w:"100%",py:Cn(Ur.reference).divide(2).toString()}})}},a$=e=>({...Th({orientation:e.orientation,horizontal:{h:Ss.reference},vertical:{w:Ss.reference}}),overflow:"hidden",borderRadius:"sm",[Qn.variable]:"colors.gray.200",_dark:{[Qn.variable]:"colors.whiteAlpha.200"},_disabled:{[Qn.variable]:"colors.gray.300",_dark:{[Qn.variable]:"colors.whiteAlpha.300"}},bg:Qn.reference}),l$=e=>{const{orientation:t}=e;return{...Th({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:Ur.reference,h:Ur.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"}}},c$=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Qn.variable]:`colors.${t}.500`,_dark:{[Qn.variable]:`colors.${t}.200`},bg:Qn.reference}},u$=pc(e=>({container:s$(e),track:a$(e),thumb:l$(e),filledTrack:c$(e)})),d$=pc({container:{[Ur.variable]:"sizes.4",[Ss.variable]:"sizes.1"}}),f$=pc({container:{[Ur.variable]:"sizes.3.5",[Ss.variable]:"sizes.1"}}),h$=pc({container:{[Ur.variable]:"sizes.2.5",[Ss.variable]:"sizes.0.5"}}),p$={lg:d$,md:f$,sm:h$},m$=i$({baseStyle:u$,sizes:p$,defaultProps:{size:"md",colorScheme:"blue"}}),Pr=we("spinner-size"),g$={width:[Pr.reference],height:[Pr.reference]},y$={xs:{[Pr.variable]:"sizes.3"},sm:{[Pr.variable]:"sizes.4"},md:{[Pr.variable]:"sizes.6"},lg:{[Pr.variable]:"sizes.8"},xl:{[Pr.variable]:"sizes.12"}},v$={baseStyle:g$,sizes:y$,defaultProps:{size:"md"}},{defineMultiStyleConfig:b$,definePartsStyle:ob}=ce(q2.keys),S$={fontWeight:"medium"},x$={opacity:.8,marginBottom:"2"},w$={verticalAlign:"baseline",fontWeight:"semibold"},k$={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},C$=ob({container:{},label:S$,helpText:x$,number:w$,icon:k$}),_$={md:ob({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},T$=b$({baseStyle:C$,sizes:_$,defaultProps:{size:"md"}}),{defineMultiStyleConfig:P$,definePartsStyle:Ai}=ce(["stepper","step","title","description","indicator","separator","icon","number"]),Tn=B("stepper-indicator-size"),bo=B("stepper-icon-size"),So=B("stepper-title-font-size"),Ri=B("stepper-description-font-size"),bi=B("stepper-accent-color"),E$=Ai(({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"},[bi.variable]:`colors.${e}.500`,_dark:{[bi.variable]:`colors.${e}.200`}},title:{fontSize:So.reference,fontWeight:"medium"},description:{fontSize:Ri.reference,color:"chakra-subtle-text"},number:{fontSize:So.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:bo.reference,height:bo.reference},indicator:{flexShrink:0,borderRadius:"full",width:Tn.reference,height:Tn.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:bi.reference},"&[data-status=complete]":{bg:bi.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:bi.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Tn.reference} - 8px)`,top:`calc(${Tn.reference} + 4px)`,insetStart:`calc(${Tn.reference} / 2 - 1px)`}}})),$$=P$({baseStyle:E$,sizes:{xs:Ai({stepper:{[Tn.variable]:"sizes.4",[bo.variable]:"sizes.3",[So.variable]:"fontSizes.xs",[Ri.variable]:"fontSizes.xs"}}),sm:Ai({stepper:{[Tn.variable]:"sizes.6",[bo.variable]:"sizes.4",[So.variable]:"fontSizes.sm",[Ri.variable]:"fontSizes.xs"}}),md:Ai({stepper:{[Tn.variable]:"sizes.8",[bo.variable]:"sizes.5",[So.variable]:"fontSizes.md",[Ri.variable]:"fontSizes.sm"}}),lg:Ai({stepper:{[Tn.variable]:"sizes.10",[bo.variable]:"sizes.6",[So.variable]:"fontSizes.lg",[Ri.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:A$,definePartsStyle:Za}=ce(K2.keys),Xi=we("switch-track-width"),Lr=we("switch-track-height"),Mu=we("switch-track-diff"),R$=_n.subtract(Xi,Lr),nf=we("switch-thumb-x"),Si=we("switch-bg"),z$=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Xi.reference],height:[Lr.reference],transitionProperty:"common",transitionDuration:"fast",[Si.variable]:"colors.gray.300",_dark:{[Si.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Si.variable]:`colors.${t}.500`,_dark:{[Si.variable]:`colors.${t}.200`}},bg:Si.reference}},M$={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Lr.reference],height:[Lr.reference],_checked:{transform:`translateX(${nf.reference})`}},D$=Za(e=>({container:{[Mu.variable]:R$,[nf.variable]:Mu.reference,_rtl:{[nf.variable]:_n(Mu).negate().toString()}},track:z$(e),thumb:M$})),I$={sm:Za({container:{[Xi.variable]:"1.375rem",[Lr.variable]:"sizes.3"}}),md:Za({container:{[Xi.variable]:"1.875rem",[Lr.variable]:"sizes.4"}}),lg:Za({container:{[Xi.variable]:"2.875rem",[Lr.variable]:"sizes.6"}})},L$=A$({baseStyle:D$,sizes:I$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:B$,definePartsStyle:Bo}=ce(G2.keys),F$=Bo({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"}}),Fl={"&[data-is-numeric=true]":{textAlign:"end"}},j$=Bo(e=>{const{colorScheme:t}=e;return{th:{color:L("gray.600","gray.400")(e),borderBottom:"1px",borderColor:L(`${t}.100`,`${t}.700`)(e),...Fl},td:{borderBottom:"1px",borderColor:L(`${t}.100`,`${t}.700`)(e),...Fl},caption:{color:L("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),O$=Bo(e=>{const{colorScheme:t}=e;return{th:{color:L("gray.600","gray.400")(e),borderBottom:"1px",borderColor:L(`${t}.100`,`${t}.700`)(e),...Fl},td:{borderBottom:"1px",borderColor:L(`${t}.100`,`${t}.700`)(e),...Fl},caption:{color:L("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:L(`${t}.100`,`${t}.700`)(e)},td:{background:L(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),V$={simple:j$,striped:O$,unstyled:{}},N$={sm:Bo({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:Bo({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Bo({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},W$=B$({baseStyle:F$,variants:V$,sizes:N$,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),it=B("tabs-color"),Xt=B("tabs-bg"),Ta=B("tabs-border-color"),{defineMultiStyleConfig:U$,definePartsStyle:mn}=ce(Y2.keys),H$=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},q$=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}}},K$=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},G$={p:4},Y$=mn(e=>({root:H$(e),tab:q$(e),tablist:K$(e),tabpanel:G$})),X$={sm:mn({tab:{py:1,px:4,fontSize:"sm"}}),md:mn({tab:{fontSize:"md",py:2,px:4}}),lg:mn({tab:{fontSize:"lg",py:3,px:4}})},Q$=mn(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[it.variable]:`colors.${t}.600`,_dark:{[it.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Xt.variable]:"colors.gray.200",_dark:{[Xt.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:it.reference,bg:Xt.reference}}}),Z$=mn(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Ta.variable]:"transparent",_selected:{[it.variable]:`colors.${t}.600`,[Ta.variable]:"colors.white",_dark:{[it.variable]:`colors.${t}.300`,[Ta.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Ta.reference},color:it.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),J$=mn(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Xt.variable]:"colors.gray.50",_dark:{[Xt.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Xt.variable]:"colors.white",[it.variable]:`colors.${t}.600`,_dark:{[Xt.variable]:"colors.gray.800",[it.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:it.reference,bg:Xt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),eA=mn(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Ze(n,`${t}.700`),bg:Ze(n,`${t}.100`)}}}}),tA=mn(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[it.variable]:"colors.gray.600",_dark:{[it.variable]:"inherit"},_selected:{[it.variable]:"colors.white",[Xt.variable]:`colors.${t}.600`,_dark:{[it.variable]:"colors.gray.800",[Xt.variable]:`colors.${t}.300`}},color:it.reference,bg:Xt.reference}}}),nA=mn({}),rA={line:Q$,enclosed:Z$,"enclosed-colored":J$,"soft-rounded":eA,"solid-rounded":tA,unstyled:nA},oA=U$({baseStyle:Y$,sizes:X$,variants:rA,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:iA,definePartsStyle:Br}=ce(X2.keys),wg=B("tag-bg"),kg=B("tag-color"),Du=B("tag-shadow"),Ja=B("tag-min-height"),el=B("tag-min-width"),tl=B("tag-font-size"),nl=B("tag-padding-inline"),sA={fontWeight:"medium",lineHeight:1.2,outline:0,[kg.variable]:Pe.color.reference,[wg.variable]:Pe.bg.reference,[Du.variable]:Pe.shadow.reference,color:kg.reference,bg:wg.reference,boxShadow:Du.reference,borderRadius:"md",minH:Ja.reference,minW:el.reference,fontSize:tl.reference,px:nl.reference,_focusVisible:{[Du.variable]:"shadows.outline"}},aA={lineHeight:1.2,overflow:"visible"},lA={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}},cA=Br({container:sA,label:aA,closeButton:lA}),uA={sm:Br({container:{[Ja.variable]:"sizes.5",[el.variable]:"sizes.5",[tl.variable]:"fontSizes.xs",[nl.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Br({container:{[Ja.variable]:"sizes.6",[el.variable]:"sizes.6",[tl.variable]:"fontSizes.sm",[nl.variable]:"space.2"}}),lg:Br({container:{[Ja.variable]:"sizes.8",[el.variable]:"sizes.8",[tl.variable]:"fontSizes.md",[nl.variable]:"space.3"}})},dA={subtle:Br(e=>{var t;return{container:(t=Ki.variants)==null?void 0:t.subtle(e)}}),solid:Br(e=>{var t;return{container:(t=Ki.variants)==null?void 0:t.solid(e)}}),outline:Br(e=>{var t;return{container:(t=Ki.variants)==null?void 0:t.outline(e)}})},fA=iA({variants:dA,baseStyle:cA,sizes:uA,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var yy;const hA={...(yy=te.baseStyle)==null?void 0:yy.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var vy;const pA={outline:e=>{var t;return((t=te.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=te.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=te.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((vy=te.variants)==null?void 0:vy.unstyled.field)??{}};var by,Sy,xy,wy;const mA={xs:((by=te.sizes)==null?void 0:by.xs.field)??{},sm:((Sy=te.sizes)==null?void 0:Sy.sm.field)??{},md:((xy=te.sizes)==null?void 0:xy.md.field)??{},lg:((wy=te.sizes)==null?void 0:wy.lg.field)??{}},gA={baseStyle:hA,sizes:mA,variants:pA,defaultProps:{size:"md",variant:"outline"}},Pa=we("tooltip-bg"),Iu=we("tooltip-fg"),yA=we("popper-arrow-bg"),vA={bg:Pa.reference,color:Iu.reference,[Pa.variable]:"colors.gray.700",[Iu.variable]:"colors.whiteAlpha.900",_dark:{[Pa.variable]:"colors.gray.300",[Iu.variable]:"colors.gray.900"},[yA.variable]:Pa.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},bA={baseStyle:vA},SA={Accordion:iT,Alert:NT,Avatar:JT,Badge:Ki,Breadcrumb:cP,Button:vP,Checkbox:Gn,CloseButton:MP,Code:BP,Container:jP,Divider:UP,Drawer:tE,Editable:lE,Form:pE,FormError:SE,FormLabel:wE,Heading:_E,Input:te,Kbd:IE,Link:BE,List:NE,Menu:JE,Modal:u5,NumberInput:b5,PinInput:k5,Popover:D5,Progress:N5,Radio:K5,Select:e$,Skeleton:n$,SkipLink:o$,Slider:m$,Spinner:v$,Stat:T$,Switch:L$,Table:W$,Tabs:oA,Tag:fA,Textarea:gA,Tooltip:bA,Card:kP,Stepper:$$},xA={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},wA={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},kA={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"}},CA={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},_A={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"},TA={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"},PA={"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)"},EA={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},$A={property:TA,easing:PA,duration:EA},AA={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},RA={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},zA={breakpoints:wA,zIndices:AA,radii:CA,blur:RA,colors:kA,...tb,sizes:Y1,shadows:_A,space:G1,borders:xA,transition:$A},MA={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"}}},DA={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"}}},IA=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function LA(e){return ut(e)?IA.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}const BA="ltr",FA={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},ib={semanticTokens:MA,direction:BA,...zA,components:SA,styles:DA,config:FA};var jA=!1;function OA(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 VA(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 NA=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!jA:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(VA(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=OA(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),qe="-ms-",jl="-moz-",J="-webkit-",sb="comm",Ah="rule",Rh="decl",WA="@import",ab="@keyframes",UA="@layer",HA=Math.abs,mc=String.fromCharCode,qA=Object.assign;function KA(e,t){return je(e,0)^45?(((t<<2^je(e,0))<<2^je(e,1))<<2^je(e,2))<<2^je(e,3):0}function lb(e){return e.trim()}function GA(e,t){return(e=t.exec(e))?e[0]:e}function ee(e,t,n){return e.replace(t,n)}function rf(e,t){return e.indexOf(t)}function je(e,t){return e.charCodeAt(t)|0}function xs(e,t,n){return e.slice(t,n)}function cn(e){return e.length}function zh(e){return e.length}function Ea(e,t){return t.push(e),e}function YA(e,t){return e.map(t).join("")}var gc=1,Yo=1,cb=0,dt=0,$e=0,ri="";function yc(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:gc,column:Yo,length:s,return:""}}function xi(e,t){return qA(yc("",null,null,"",null,null,0),e,{length:-e.length},t)}function XA(){return $e}function QA(){return $e=dt>0?je(ri,--dt):0,Yo--,$e===10&&(Yo=1,gc--),$e}function St(){return $e=dt<cb?je(ri,dt++):0,Yo++,$e===10&&(Yo=1,gc++),$e}function gn(){return je(ri,dt)}function rl(){return dt}function Ls(e,t){return xs(ri,e,t)}function ws(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 ub(e){return gc=Yo=1,cb=cn(ri=e),dt=0,[]}function db(e){return ri="",e}function ol(e){return lb(Ls(dt-1,of(e===91?e+2:e===40?e+1:e)))}function ZA(e){for(;($e=gn())&&$e<33;)St();return ws(e)>2||ws($e)>3?"":" "}function JA(e,t){for(;--t&&St()&&!($e<48||$e>102||$e>57&&$e<65||$e>70&&$e<97););return Ls(e,rl()+(t<6&&gn()==32&&St()==32))}function of(e){for(;St();)switch($e){case e:return dt;case 34:case 39:e!==34&&e!==39&&of($e);break;case 40:e===41&&of(e);break;case 92:St();break}return dt}function eR(e,t){for(;St()&&e+$e!==47+10;)if(e+$e===42+42&&gn()===47)break;return"/*"+Ls(t,dt-1)+"*"+mc(e===47?e:St())}function tR(e){for(;!ws(gn());)St();return Ls(e,dt)}function nR(e){return db(il("",null,null,null,[""],e=ub(e),0,[0],e))}function il(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,f=0,g=0,v=0,b=1,k=1,p=1,h=0,y="",C=o,_=i,E=r,P=y;k;)switch(v=h,h=St()){case 40:if(v!=108&&je(P,d-1)==58){rf(P+=ee(ol(h),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:P+=ol(h);break;case 9:case 10:case 13:case 32:P+=ZA(v);break;case 92:P+=JA(rl()-1,7);continue;case 47:switch(gn()){case 42:case 47:Ea(rR(eR(St(),rl()),t,n),l);break;default:P+="/"}break;case 123*b:a[c++]=cn(P)*p;case 125*b:case 59:case 0:switch(h){case 0:case 125:k=0;case 59+u:p==-1&&(P=ee(P,/\f/g,"")),g>0&&cn(P)-d&&Ea(g>32?_g(P+";",r,n,d-1):_g(ee(P," ","")+";",r,n,d-2),l);break;case 59:P+=";";default:if(Ea(E=Cg(P,t,n,c,u,o,a,y,C=[],_=[],d),i),h===123)if(u===0)il(P,t,E,E,C,i,d,a,_);else switch(f===99&&je(P,3)===110?100:f){case 100:case 108:case 109:case 115:il(e,E,E,r&&Ea(Cg(e,E,E,0,0,o,a,y,o,C=[],d),_),o,_,d,a,r?C:_);break;default:il(P,E,E,E,[""],_,0,a,_)}}c=u=g=0,b=p=1,y=P="",d=s;break;case 58:d=1+cn(P),g=v;default:if(b<1){if(h==123)--b;else if(h==125&&b++==0&&QA()==125)continue}switch(P+=mc(h),h*b){case 38:p=u>0?1:(P+="\f",-1);break;case 44:a[c++]=(cn(P)-1)*p,p=1;break;case 64:gn()===45&&(P+=ol(St())),f=gn(),u=d=cn(y=P+=tR(rl())),h++;break;case 45:v===45&&cn(P)==2&&(b=0)}}return i}function Cg(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,f=o===0?i:[""],g=zh(f),v=0,b=0,k=0;v<r;++v)for(var p=0,h=xs(e,d+1,d=HA(b=s[v])),y=e;p<g;++p)(y=lb(b>0?f[p]+" "+h:ee(h,/&\f/g,f[p])))&&(l[k++]=y);return yc(e,t,n,o===0?Ah:a,l,c,u)}function rR(e,t,n){return yc(e,t,n,sb,mc(XA()),xs(e,2,-2),0)}function _g(e,t,n,r){return yc(e,t,n,Rh,xs(e,0,r),xs(e,r+1,-1),r)}function Fo(e,t){for(var n="",r=zh(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function oR(e,t,n,r){switch(e.type){case UA:if(e.children.length)break;case WA:case Rh:return e.return=e.return||e.value;case sb:return"";case ab:return e.return=e.value+"{"+Fo(e.children,r)+"}";case Ah:e.value=e.props.join(",")}return cn(n=Fo(e.children,r))?e.return=e.value+"{"+n+"}":""}function iR(e){var t=zh(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function sR(e){return function(t){t.root||(t=t.return)&&e(t)}}var Tg=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var o=t(r);return n.set(r,o),o}};function fb(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var aR=function(t,n,r){for(var o=0,i=0;o=i,i=gn(),o===38&&i===12&&(n[r]=1),!ws(i);)St();return Ls(t,dt)},lR=function(t,n){var r=-1,o=44;do switch(ws(o)){case 0:o===38&&gn()===12&&(n[r]=1),t[r]+=aR(dt-1,n,r);break;case 2:t[r]+=ol(o);break;case 4:if(o===44){t[++r]=gn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=mc(o)}while(o=St());return t},cR=function(t,n){return db(lR(ub(t),n))},Pg=new WeakMap,uR=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Pg.get(r))&&!o){Pg.set(t,!0);for(var i=[],s=cR(n,i),a=r.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)t.props[c]=i[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},dR=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function hb(e,t){switch(KA(e,t)){case 5103:return J+"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 J+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return J+e+jl+e+qe+e+e;case 6828:case 4268:return J+e+qe+e+e;case 6165:return J+e+qe+"flex-"+e+e;case 5187:return J+e+ee(e,/(\w+).+(:[^]+)/,J+"box-$1$2"+qe+"flex-$1$2")+e;case 5443:return J+e+qe+"flex-item-"+ee(e,/flex-|-self/,"")+e;case 4675:return J+e+qe+"flex-line-pack"+ee(e,/align-content|flex-|-self/,"")+e;case 5548:return J+e+qe+ee(e,"shrink","negative")+e;case 5292:return J+e+qe+ee(e,"basis","preferred-size")+e;case 6060:return J+"box-"+ee(e,"-grow","")+J+e+qe+ee(e,"grow","positive")+e;case 4554:return J+ee(e,/([^-])(transform)/g,"$1"+J+"$2")+e;case 6187:return ee(ee(ee(e,/(zoom-|grab)/,J+"$1"),/(image-set)/,J+"$1"),e,"")+e;case 5495:case 3959:return ee(e,/(image-set\([^]*)/,J+"$1$`$1");case 4968:return ee(ee(e,/(.+:)(flex-)?(.*)/,J+"box-pack:$3"+qe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+J+e+e;case 4095:case 3583:case 4068:case 2532:return ee(e,/(.+)-inline(.+)/,J+"$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(cn(e)-1-t>6)switch(je(e,t+1)){case 109:if(je(e,t+4)!==45)break;case 102:return ee(e,/(.+:)(.+)-([^]+)/,"$1"+J+"$2-$3$1"+jl+(je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~rf(e,"stretch")?hb(ee(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(je(e,t+1)!==115)break;case 6444:switch(je(e,cn(e)-3-(~rf(e,"!important")&&10))){case 107:return ee(e,":",":"+J)+e;case 101:return ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+J+(je(e,14)===45?"inline-":"")+"box$3$1"+J+"$2$3$1"+qe+"$2box$3")+e}break;case 5936:switch(je(e,t+11)){case 114:return J+e+qe+ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return J+e+qe+ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return J+e+qe+ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return J+e+qe+e+e}return e}var fR=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Rh:t.return=hb(t.value,t.length);break;case ab:return Fo([xi(t,{value:ee(t.value,"@","@"+J)})],o);case Ah:if(t.length)return YA(t.props,function(i){switch(GA(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fo([xi(t,{props:[ee(i,/:(read-\w+)/,":"+jl+"$1")]})],o);case"::placeholder":return Fo([xi(t,{props:[ee(i,/:(plac\w+)/,":"+J+"input-$1")]}),xi(t,{props:[ee(i,/:(plac\w+)/,":"+jl+"$1")]}),xi(t,{props:[ee(i,/:(plac\w+)/,qe+"input-$1")]})],o)}return""})}},hR=[fR],pR=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(b){var k=b.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=t.stylisPlugins||hR,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var k=b.getAttribute("data-emotion").split(" "),p=1;p<k.length;p++)i[k[p]]=!0;a.push(b)});var l,c=[uR,dR];{var u,d=[oR,sR(function(b){u.insert(b)})],f=iR(c.concat(o,d)),g=function(k){return Fo(nR(k),f)};l=function(k,p,h,y){u=h,g(k?k+"{"+p.styles+"}":p.styles),y&&(v.inserted[p.name]=!0)}}var v={key:n,sheet:new NA({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return v.sheet.hydrate(a),v};function Ol(){return Ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ol.apply(null,arguments)}var pb={exports:{}},ie={};/** @license React v16.13.1
55
+ * react-is.production.min.js
56
+ *
57
+ * Copyright (c) Facebook, Inc. and its affiliates.
58
+ *
59
+ * This source code is licensed under the MIT license found in the
60
+ * LICENSE file in the root directory of this source tree.
61
+ */var Le=typeof Symbol=="function"&&Symbol.for,Mh=Le?Symbol.for("react.element"):60103,Dh=Le?Symbol.for("react.portal"):60106,vc=Le?Symbol.for("react.fragment"):60107,bc=Le?Symbol.for("react.strict_mode"):60108,Sc=Le?Symbol.for("react.profiler"):60114,xc=Le?Symbol.for("react.provider"):60109,wc=Le?Symbol.for("react.context"):60110,Ih=Le?Symbol.for("react.async_mode"):60111,kc=Le?Symbol.for("react.concurrent_mode"):60111,Cc=Le?Symbol.for("react.forward_ref"):60112,_c=Le?Symbol.for("react.suspense"):60113,mR=Le?Symbol.for("react.suspense_list"):60120,Tc=Le?Symbol.for("react.memo"):60115,Pc=Le?Symbol.for("react.lazy"):60116,gR=Le?Symbol.for("react.block"):60121,yR=Le?Symbol.for("react.fundamental"):60117,vR=Le?Symbol.for("react.responder"):60118,bR=Le?Symbol.for("react.scope"):60119;function Tt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Mh:switch(e=e.type,e){case Ih:case kc:case vc:case Sc:case bc:case _c:return e;default:switch(e=e&&e.$$typeof,e){case wc:case Cc:case Pc:case Tc:case xc:return e;default:return t}}case Dh:return t}}}function mb(e){return Tt(e)===kc}ie.AsyncMode=Ih;ie.ConcurrentMode=kc;ie.ContextConsumer=wc;ie.ContextProvider=xc;ie.Element=Mh;ie.ForwardRef=Cc;ie.Fragment=vc;ie.Lazy=Pc;ie.Memo=Tc;ie.Portal=Dh;ie.Profiler=Sc;ie.StrictMode=bc;ie.Suspense=_c;ie.isAsyncMode=function(e){return mb(e)||Tt(e)===Ih};ie.isConcurrentMode=mb;ie.isContextConsumer=function(e){return Tt(e)===wc};ie.isContextProvider=function(e){return Tt(e)===xc};ie.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Mh};ie.isForwardRef=function(e){return Tt(e)===Cc};ie.isFragment=function(e){return Tt(e)===vc};ie.isLazy=function(e){return Tt(e)===Pc};ie.isMemo=function(e){return Tt(e)===Tc};ie.isPortal=function(e){return Tt(e)===Dh};ie.isProfiler=function(e){return Tt(e)===Sc};ie.isStrictMode=function(e){return Tt(e)===bc};ie.isSuspense=function(e){return Tt(e)===_c};ie.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===vc||e===kc||e===Sc||e===bc||e===_c||e===mR||typeof e=="object"&&e!==null&&(e.$$typeof===Pc||e.$$typeof===Tc||e.$$typeof===xc||e.$$typeof===wc||e.$$typeof===Cc||e.$$typeof===yR||e.$$typeof===vR||e.$$typeof===bR||e.$$typeof===gR)};ie.typeOf=Tt;pb.exports=ie;var SR=pb.exports,gb=SR,xR={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},wR={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},yb={};yb[gb.ForwardRef]=xR;yb[gb.Memo]=wR;var kR=!0;function vb(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Lh=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||kR===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Bh=function(t,n,r){Lh(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function CR(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 _R={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},TR=!1,PR=/[A-Z]|^ms/g,ER=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bb=function(t){return t.charCodeAt(1)===45},Eg=function(t){return t!=null&&typeof t!="boolean"},Lu=fb(function(e){return bb(e)?e:e.replace(PR,"-$&").toLowerCase()}),$g=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ER,function(r,o,i){return un={name:o,styles:i,next:un},o})}return _R[t]!==1&&!bb(t)&&typeof n=="number"&&n!==0?n+"px":n},$R="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ks(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return un={name:o.name,styles:o.styles,next:un},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)un={name:s.name,styles:s.styles,next:un},s=s.next;var a=i.styles+";";return a}return AR(e,t,n)}case"function":{if(e!==void 0){var l=un,c=n(e);return un=l,ks(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function AR(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ks(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var a=s;t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":Eg(a)&&(r+=Lu(i)+":"+$g(i,a)+";")}else{if(i==="NO_COMPONENT_SELECTOR"&&TR)throw new Error($R);if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var l=0;l<s.length;l++)Eg(s[l])&&(r+=Lu(i)+":"+$g(i,s[l])+";");else{var c=ks(e,t,s);switch(i){case"animation":case"animationName":{r+=Lu(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}}return r}var Ag=/label:\s*([^\s;{]+)\s*(;|$)/g,un;function Ec(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";un=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=ks(n,t,i);else{var s=i;o+=s[0]}for(var a=1;a<e.length;a++)if(o+=ks(n,t,e[a]),r){var l=i;o+=l[a]}Ag.lastIndex=0;for(var c="",u;(u=Ag.exec(o))!==null;)c+="-"+u[1];var d=CR(o)+c;return{name:d,styles:o,next:un}}var RR=function(t){return t()},Sb=Zp["useInsertionEffect"]?Zp["useInsertionEffect"]:!1,xb=Sb||RR,Rg=Sb||w.useLayoutEffect,zR=!1,Fh=w.createContext(typeof HTMLElement<"u"?pR({key:"css"}):null);Fh.Provider;var MR=function(){return w.useContext(Fh)},jh=function(t){return w.forwardRef(function(n,r){var o=w.useContext(Fh);return t(n,o,r)})},Xo=w.createContext({}),DR=function(t,n){if(typeof n=="function"){var r=n(t);return r}return Ol({},t,n)},IR=Tg(function(e){return Tg(function(t){return DR(e,t)})}),LR=function(t){var n=w.useContext(Xo);return t.theme!==n&&(n=IR(n)(t.theme)),w.createElement(Xo.Provider,{value:n},t.children)},Oh={}.hasOwnProperty,sf="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",BR=function(t,n){var r={};for(var o in n)Oh.call(n,o)&&(r[o]=n[o]);return r[sf]=t,r},FR=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Lh(n,r,o),xb(function(){return Bh(n,r,o)}),null},jR=jh(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[sf],i=[r],s="";typeof e.className=="string"?s=vb(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var a=Ec(i,void 0,w.useContext(Xo));s+=t.key+"-"+a.name;var l={};for(var c in e)Oh.call(e,c)&&c!=="css"&&c!==sf&&!zR&&(l[c]=e[c]);return l.className=s,n&&(l.ref=n),w.createElement(w.Fragment,null,w.createElement(FR,{cache:t,serialized:a,isStringTag:typeof o=="string"}),w.createElement(o,l))}),OR=jR,zg=function(t,n){var r=arguments;if(n==null||!Oh.call(n,"css"))return w.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=OR,i[1]=BR(t,n);for(var s=2;s<o;s++)i[s]=r[s];return w.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(zg||(zg={}));var $c=jh(function(e,t){var n=e.styles,r=Ec([n],void 0,w.useContext(Xo)),o=w.useRef();return Rg(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",i),s.hydrate([l])),o.current=[s,a],function(){s.flush()}},[t]),Rg(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(r.next!==void 0&&Bh(t,r.next,!0),s.tags.length){var l=s.tags[s.tags.length-1].nextElementSibling;s.before=l,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function VR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ec(t)}function NR(){var e=VR.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_"}}}const Vh=w.createContext({});Vh.displayName="ColorModeContext";function Bs(){const e=w.useContext(Vh);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function WR(e,t){const{colorMode:n}=Bs();return n==="dark"?t:e}const $a={light:"chakra-ui-light",dark:"chakra-ui-dark"};function UR(e={}){const{preventTransition:t=!0,nonce:n}=e,r={setDataset:o=>{const i=t?r.preventTransition():void 0;document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o,i==null||i()},setClassName(o){document.body.classList.add(o?$a.dark:$a.light),document.body.classList.remove(o?$a.light:$a.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(o){return r.query().matches??o==="dark"?"dark":"light"},addListener(o){const i=r.query(),s=a=>{o(a.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(s):i.addEventListener("change",s),()=>{typeof i.removeListener=="function"?i.removeListener(s):i.removeEventListener("change",s)}},preventTransition(){const o=document.createElement("style");return o.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n!==void 0&&(o.nonce=n),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}}};return r}const HR="chakra-ui-color-mode";function qR(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const KR=qR(HR),Mg=()=>{},GR=i_()?w.useLayoutEffect:w.useEffect;function Dg(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const wb=function(t){const{value:n,children:r,options:{useSystemColorMode:o,initialColorMode:i,disableTransitionOnChange:s}={},colorModeManager:a=KR}=t,l=MR(),c=i==="dark"?"dark":"light",[u,d]=w.useState(()=>Dg(a,c)),[f,g]=w.useState(()=>Dg(a)),{getSystemTheme:v,setClassName:b,setDataset:k,addListener:p}=w.useMemo(()=>UR({preventTransition:s,nonce:l==null?void 0:l.nonce}),[s,l==null?void 0:l.nonce]),h=i==="system"&&!u?f:u,y=w.useCallback(E=>{const P=E==="system"?v():E;d(P),b(P==="dark"),k(P),a.set(P)},[a,v,b,k]);GR(()=>{i==="system"&&g(v())},[]),w.useEffect(()=>{const E=a.get();if(E){y(E);return}if(i==="system"){y("system");return}y(c)},[a,c,i,y]);const C=w.useCallback(()=>{y(h==="dark"?"light":"dark")},[h,y]);w.useEffect(()=>{if(o)return p(y)},[o,p,y]);const _=w.useMemo(()=>({colorMode:n??h,toggleColorMode:n?Mg:C,setColorMode:n?Mg:y,forced:n!==void 0}),[h,C,y,n]);return A.jsx(Vh.Provider,{value:_,children:r})};wb.displayName="ColorModeProvider";const kb=String.raw,Cb=kb`
62
+ :root,
63
+ :host {
64
+ --chakra-vh: 100vh;
65
+ }
66
+
67
+ @supports (height: -webkit-fill-available) {
68
+ :root,
69
+ :host {
70
+ --chakra-vh: -webkit-fill-available;
71
+ }
72
+ }
73
+
74
+ @supports (height: -moz-fill-available) {
75
+ :root,
76
+ :host {
77
+ --chakra-vh: -moz-fill-available;
78
+ }
79
+ }
80
+
81
+ @supports (height: 100dvh) {
82
+ :root,
83
+ :host {
84
+ --chakra-vh: 100dvh;
85
+ }
86
+ }
87
+ `,YR=()=>A.jsx($c,{styles:Cb}),XR=({scope:e=""})=>A.jsx($c,{styles:kb`
88
+ html {
89
+ line-height: 1.5;
90
+ -webkit-text-size-adjust: 100%;
91
+ font-family: system-ui, sans-serif;
92
+ -webkit-font-smoothing: antialiased;
93
+ text-rendering: optimizeLegibility;
94
+ -moz-osx-font-smoothing: grayscale;
95
+ touch-action: manipulation;
96
+ }
97
+
98
+ body {
99
+ position: relative;
100
+ min-height: 100%;
101
+ margin: 0;
102
+ font-feature-settings: "kern";
103
+ }
104
+
105
+ ${e} :where(*, *::before, *::after) {
106
+ border-width: 0;
107
+ border-style: solid;
108
+ box-sizing: border-box;
109
+ word-wrap: break-word;
110
+ }
111
+
112
+ main {
113
+ display: block;
114
+ }
115
+
116
+ ${e} hr {
117
+ border-top-width: 1px;
118
+ box-sizing: content-box;
119
+ height: 0;
120
+ overflow: visible;
121
+ }
122
+
123
+ ${e} :where(pre, code, kbd,samp) {
124
+ font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
125
+ font-size: 1em;
126
+ }
127
+
128
+ ${e} a {
129
+ background-color: transparent;
130
+ color: inherit;
131
+ text-decoration: inherit;
132
+ }
133
+
134
+ ${e} abbr[title] {
135
+ border-bottom: none;
136
+ text-decoration: underline;
137
+ -webkit-text-decoration: underline dotted;
138
+ text-decoration: underline dotted;
139
+ }
140
+
141
+ ${e} :where(b, strong) {
142
+ font-weight: bold;
143
+ }
144
+
145
+ ${e} small {
146
+ font-size: 80%;
147
+ }
148
+
149
+ ${e} :where(sub,sup) {
150
+ font-size: 75%;
151
+ line-height: 0;
152
+ position: relative;
153
+ vertical-align: baseline;
154
+ }
155
+
156
+ ${e} sub {
157
+ bottom: -0.25em;
158
+ }
159
+
160
+ ${e} sup {
161
+ top: -0.5em;
162
+ }
163
+
164
+ ${e} img {
165
+ border-style: none;
166
+ }
167
+
168
+ ${e} :where(button, input, optgroup, select, textarea) {
169
+ font-family: inherit;
170
+ font-size: 100%;
171
+ line-height: 1.15;
172
+ margin: 0;
173
+ }
174
+
175
+ ${e} :where(button, input) {
176
+ overflow: visible;
177
+ }
178
+
179
+ ${e} :where(button, select) {
180
+ text-transform: none;
181
+ }
182
+
183
+ ${e} :where(
184
+ button::-moz-focus-inner,
185
+ [type="button"]::-moz-focus-inner,
186
+ [type="reset"]::-moz-focus-inner,
187
+ [type="submit"]::-moz-focus-inner
188
+ ) {
189
+ border-style: none;
190
+ padding: 0;
191
+ }
192
+
193
+ ${e} fieldset {
194
+ padding: 0.35em 0.75em 0.625em;
195
+ }
196
+
197
+ ${e} legend {
198
+ box-sizing: border-box;
199
+ color: inherit;
200
+ display: table;
201
+ max-width: 100%;
202
+ padding: 0;
203
+ white-space: normal;
204
+ }
205
+
206
+ ${e} progress {
207
+ vertical-align: baseline;
208
+ }
209
+
210
+ ${e} textarea {
211
+ overflow: auto;
212
+ }
213
+
214
+ ${e} :where([type="checkbox"], [type="radio"]) {
215
+ box-sizing: border-box;
216
+ padding: 0;
217
+ }
218
+
219
+ ${e} input[type="number"]::-webkit-inner-spin-button,
220
+ ${e} input[type="number"]::-webkit-outer-spin-button {
221
+ -webkit-appearance: none !important;
222
+ }
223
+
224
+ ${e} input[type="number"] {
225
+ -moz-appearance: textfield;
226
+ }
227
+
228
+ ${e} input[type="search"] {
229
+ -webkit-appearance: textfield;
230
+ outline-offset: -2px;
231
+ }
232
+
233
+ ${e} input[type="search"]::-webkit-search-decoration {
234
+ -webkit-appearance: none !important;
235
+ }
236
+
237
+ ${e} ::-webkit-file-upload-button {
238
+ -webkit-appearance: button;
239
+ font: inherit;
240
+ }
241
+
242
+ ${e} details {
243
+ display: block;
244
+ }
245
+
246
+ ${e} summary {
247
+ display: list-item;
248
+ }
249
+
250
+ template {
251
+ display: none;
252
+ }
253
+
254
+ [hidden] {
255
+ display: none !important;
256
+ }
257
+
258
+ ${e} :where(
259
+ blockquote,
260
+ dl,
261
+ dd,
262
+ h1,
263
+ h2,
264
+ h3,
265
+ h4,
266
+ h5,
267
+ h6,
268
+ hr,
269
+ figure,
270
+ p,
271
+ pre
272
+ ) {
273
+ margin: 0;
274
+ }
275
+
276
+ ${e} button {
277
+ background: transparent;
278
+ padding: 0;
279
+ }
280
+
281
+ ${e} fieldset {
282
+ margin: 0;
283
+ padding: 0;
284
+ }
285
+
286
+ ${e} :where(ol, ul) {
287
+ margin: 0;
288
+ padding: 0;
289
+ }
290
+
291
+ ${e} textarea {
292
+ resize: vertical;
293
+ }
294
+
295
+ ${e} :where(button, [role="button"]) {
296
+ cursor: pointer;
297
+ }
298
+
299
+ ${e} button::-moz-focus-inner {
300
+ border: 0 !important;
301
+ }
302
+
303
+ ${e} table {
304
+ border-collapse: collapse;
305
+ }
306
+
307
+ ${e} :where(h1, h2, h3, h4, h5, h6) {
308
+ font-size: inherit;
309
+ font-weight: inherit;
310
+ }
311
+
312
+ ${e} :where(button, input, optgroup, select, textarea) {
313
+ padding: 0;
314
+ line-height: inherit;
315
+ color: inherit;
316
+ }
317
+
318
+ ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
319
+ display: block;
320
+ }
321
+
322
+ ${e} :where(img, video) {
323
+ max-width: 100%;
324
+ height: auto;
325
+ }
326
+
327
+ [data-js-focus-visible]
328
+ :focus:not([data-focus-visible-added]):not(
329
+ [data-focus-visible-disabled]
330
+ ) {
331
+ outline: none;
332
+ box-shadow: none;
333
+ }
334
+
335
+ ${e} select::-ms-expand {
336
+ display: none;
337
+ }
338
+
339
+ ${Cb}
340
+ `});function QR(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=w.useMemo(()=>T2(n),[n]);return A.jsxs(LR,{theme:o,children:[A.jsx(ZR,{root:t}),r]})}function ZR({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return A.jsx($c,{styles:n=>({[t]:n.__cssVars})})}gr({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function JR(){const{colorMode:e}=Bs();return A.jsx($c,{styles:t=>{const n=F1(t,"styles.global"),r=Bt(n,{theme:t,colorMode:e});return r?U1(r)(t):void 0}})}const[ez,tz]=gr({strict:!1,name:"PortalManagerContext"});function _b(e){const{children:t,zIndex:n}=e;return A.jsx(ez,{value:{zIndex:n},children:t})}_b.displayName="PortalManager";const Tb=w.createContext({getDocument(){return document},getWindow(){return window}});Tb.displayName="EnvironmentContext";function Pb(e){const{children:t,environment:n,disabled:r}=e,o=w.useRef(null),i=w.useMemo(()=>n||{getDocument:()=>{var a;return((a=o.current)==null?void 0:a.ownerDocument)??document},getWindow:()=>{var a;return((a=o.current)==null?void 0:a.ownerDocument.defaultView)??window}},[n]),s=!r||!n;return A.jsxs(Tb.Provider,{value:i,children:[t,s&&A.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}Pb.displayName="EnvironmentProvider";const nz=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:c,disableGlobalStyle:u}=e,d=A.jsx(Pb,{environment:a,disabled:c,children:t});return A.jsx(QR,{theme:s,cssVarsRoot:l,children:A.jsxs(wb,{colorModeManager:n,options:s.config,children:[i?A.jsx(XR,{scope:o}):A.jsx(YR,{}),!u&&A.jsx(JR,{}),r?A.jsx(_b,{zIndex:r,children:d}):d]})})},Nh=w.createContext({});function Wh(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const Fs=w.createContext(null),Uh=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class rz extends w.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function oz({children:e,isPresent:t}){const n=w.useId(),r=w.useRef(null),o=w.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=w.useContext(Uh);return w.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:c}=o.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return i&&(u.nonce=i),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
341
+ [data-motion-pop-id="${n}"] {
342
+ position: absolute !important;
343
+ width: ${s}px !important;
344
+ height: ${a}px !important;
345
+ top: ${l}px !important;
346
+ left: ${c}px !important;
347
+ }
348
+ `),()=>{document.head.removeChild(u)}},[t]),A.jsx(rz,{isPresent:t,childRef:r,sizeRef:o,children:w.cloneElement(e,{ref:r})})}const iz=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=Wh(sz),l=w.useId(),c=w.useCallback(d=>{a.set(d,!0);for(const f of a.values())if(!f)return;r&&r()},[a,r]),u=w.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c,register:d=>(a.set(d,!1),()=>a.delete(d))}),i?[Math.random(),c]:[n,c]);return w.useMemo(()=>{a.forEach((d,f)=>a.set(f,!1))},[n]),w.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=A.jsx(oz,{isPresent:n,children:e})),A.jsx(Fs.Provider,{value:u,children:e})};function sz(){return new Map}function Eb(e=!0){const t=w.useContext(Fs);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=w.useId();w.useEffect(()=>{e&&o(i)},[e]);const s=w.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}function az(){return lz(w.useContext(Fs))}function lz(e){return e===null?!0:e.isPresent}const Aa=e=>e.key||"";function Ig(e){const t=[];return w.Children.forEach(e,n=>{w.isValidElement(n)&&t.push(n)}),t}const Hh=typeof window<"u",$b=Hh?w.useLayoutEffect:w.useEffect,cz=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1})=>{const[a,l]=Eb(s),c=w.useMemo(()=>Ig(e),[e]),u=s&&!a?[]:c.map(Aa),d=w.useRef(!0),f=w.useRef(c),g=Wh(()=>new Map),[v,b]=w.useState(c),[k,p]=w.useState(c);$b(()=>{d.current=!1,f.current=c;for(let C=0;C<k.length;C++){const _=Aa(k[C]);u.includes(_)?g.delete(_):g.get(_)!==!0&&g.set(_,!1)}},[k,u.length,u.join("-")]);const h=[];if(c!==v){let C=[...c];for(let _=0;_<k.length;_++){const E=k[_],P=Aa(E);u.includes(P)||(C.splice(_,0,E),h.push(E))}i==="wait"&&h.length&&(C=h),p(Ig(C)),b(c);return}const{forceRender:y}=w.useContext(Nh);return A.jsx(A.Fragment,{children:k.map(C=>{const _=Aa(C),E=s&&!a?!1:c===k||u.includes(_),P=()=>{if(g.has(_))g.set(_,!0);else return;let $=!0;g.forEach(j=>{j||($=!1)}),$&&(y==null||y(),p(f.current),s&&(l==null||l()),r&&r())};return A.jsx(iz,{isPresent:E,initial:!d.current||n?void 0:!1,custom:E?void 0:t,presenceAffectsLayout:o,mode:i,onExitComplete:E?void 0:P,children:C},_)})})},xt=e=>e;let Ab=xt;function qh(e){let t;return()=>(t===void 0&&(t=e()),t)}const Qo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},zn=e=>e*1e3,Mn=e=>e/1e3,uz={skipAnimations:!1,useManualTiming:!1};function dz(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(l.schedule(c),e()),c(s)}const l={schedule:(c,u=!1,d=!1)=>{const g=d&&r?t:n;return u&&i.add(c),g.has(c)||g.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(s=c,r){o=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,o&&(o=!1,l.process(c))}};return l}const Ra=["read","resolveKeyframes","update","preRender","render","postRender"],fz=40;function Rb(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Ra.reduce((p,h)=>(p[h]=dz(i),p),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=s,g=()=>{const p=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(p-o.timestamp,fz),1),o.timestamp=p,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,o.isProcessing||e(g)};return{schedule:Ra.reduce((p,h)=>{const y=s[h];return p[h]=(C,_=!1,E=!1)=>(n||v(),y.schedule(C,_,E)),p},{}),cancel:p=>{for(let h=0;h<Ra.length;h++)s[Ra[h]].cancel(p)},state:o,steps:s}}const{schedule:he,cancel:dr,state:Fe,steps:Bu}=Rb(typeof requestAnimationFrame<"u"?requestAnimationFrame:xt,!0),zb=w.createContext({strict:!1}),Lg={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"]},Zo={};for(const e in Lg)Zo[e]={isEnabled:t=>Lg[e].some(n=>!!t[n])};function hz(e){for(const t in e)Zo[t]={...Zo[t],...e[t]}}const pz=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 Vl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||pz.has(e)}let Mb=e=>!Vl(e);function mz(e){e&&(Mb=t=>t.startsWith("on")?!Vl(t):e(t))}try{mz(require("@emotion/is-prop-valid").default)}catch{}function gz(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Mb(o)||n===!0&&Vl(o)||!t&&!Vl(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function yz(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}const Ac=w.createContext({});function Cs(e){return typeof e=="string"||Array.isArray(e)}function Rc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Kh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Gh=["initial",...Kh];function zc(e){return Rc(e.animate)||Gh.some(t=>Cs(e[t]))}function Db(e){return!!(zc(e)||e.variants)}function vz(e,t){if(zc(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Cs(n)?n:void 0,animate:Cs(r)?r:void 0}}return e.inherit!==!1?t:{}}function bz(e){const{initial:t,animate:n}=vz(e,w.useContext(Ac));return w.useMemo(()=>({initial:t,animate:n}),[Bg(t),Bg(n)])}function Bg(e){return Array.isArray(e)?e.join(" "):e}const Sz=Symbol.for("motionComponentSymbol");function xo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function xz(e,t,n){return w.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):xo(n)&&(n.current=r))},[t])}const Yh=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),wz="framerAppearId",Ib="data-"+Yh(wz),{schedule:Xh,cancel:WL}=Rb(queueMicrotask,!1),Lb=w.createContext({});function kz(e,t,n,r,o){var i,s;const{visualElement:a}=w.useContext(Ac),l=w.useContext(zb),c=w.useContext(Fs),u=w.useContext(Uh).reducedMotion,d=w.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,g=w.useContext(Lb);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&Cz(d.current,n,o,g);const v=w.useRef(!1);w.useInsertionEffect(()=>{f&&v.current&&f.update(n,c)});const b=n[Ib],k=w.useRef(!!b&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,b))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,b)));return $b(()=>{f&&(v.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Xh.render(f.render),k.current&&f.animationState&&f.animationState.animateChanges())}),w.useEffect(()=>{f&&(!k.current&&f.animationState&&f.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)===null||p===void 0||p.call(window,b)}),k.current=!1))}),f}function Cz(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Bb(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&xo(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function Bb(e){if(e)return e.options.allowProjection!==!1?e.projection:Bb(e.parent)}function _z({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var i,s;e&&hz(e);function a(c,u){let d;const f={...w.useContext(Uh),...c,layoutId:Tz(c)},{isStatic:g}=f,v=bz(c),b=r(c,g);if(!g&&Hh){Pz();const k=Ez(f);d=k.MeasureLayout,v.visualElement=kz(o,b,f,t,k.ProjectionNode)}return A.jsxs(Ac.Provider,{value:v,children:[d&&v.visualElement?A.jsx(d,{visualElement:v.visualElement,...f}):null,n(o,c,xz(b,v.visualElement,u),b,g,v.visualElement)]})}a.displayName=`motion.${typeof o=="string"?o:`create(${(s=(i=o.displayName)!==null&&i!==void 0?i:o.name)!==null&&s!==void 0?s:""})`}`;const l=w.forwardRef(a);return l[Sz]=o,l}function Tz({layoutId:e}){const t=w.useContext(Nh).id;return t&&e!==void 0?t+"-"+e:e}function Pz(e,t){w.useContext(zb).strict}function Ez(e){const{drag:t,layout:n}=Zo;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const $z=["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 Qh(e){return typeof e!="string"||e.includes("-")?!1:!!($z.indexOf(e)>-1||/[A-Z]/u.test(e))}function Fg(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Zh(e,t,n,r){if(typeof t=="function"){const[o,i]=Fg(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=Fg(r);t=t(n!==void 0?n:e.custom,o,i)}return t}const af=e=>Array.isArray(e),Az=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Rz=e=>af(e)?e[e.length-1]||0:e,Ye=e=>!!(e&&e.getVelocity);function sl(e){const t=Ye(e)?e.get():e;return Az(t)?t.toValue():t}function zz({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,i){const s={latestValues:Mz(r,o,i,e),renderState:t()};return n&&(s.onMount=a=>n({props:r,current:a,...s}),s.onUpdate=a=>n(a)),s}const Fb=e=>(t,n)=>{const r=w.useContext(Ac),o=w.useContext(Fs),i=()=>zz(e,t,r,o);return n?i():Wh(i)};function Mz(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=sl(i[f]);let{initial:s,animate:a}=e;const l=zc(e),c=Db(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!Rc(d)){const f=Array.isArray(d)?d:[d];for(let g=0;g<f.length;g++){const v=Zh(e,f[g]);if(v){const{transitionEnd:b,transition:k,...p}=v;for(const h in p){let y=p[h];if(Array.isArray(y)){const C=u?y.length-1:0;y=y[C]}y!==null&&(o[h]=y)}for(const h in b)o[h]=b[h]}}}return o}const oi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Yr=new Set(oi),jb=e=>t=>typeof t=="string"&&t.startsWith(e),Ob=jb("--"),Dz=jb("var(--"),Jh=e=>Dz(e)?Iz.test(e.split("/*")[0].trim()):!1,Iz=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Vb=(e,t)=>t&&typeof e=="number"?t.transform(e):e,jn=(e,t,n)=>n>t?t:n<e?e:n,ii={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},_s={...ii,transform:e=>jn(0,1,e)},za={...ii,default:1},js=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Hn=js("deg"),yn=js("%"),F=js("px"),Lz=js("vh"),Bz=js("vw"),jg={...yn,parse:e=>yn.parse(e)/100,transform:e=>yn.transform(e*100)},Fz={borderWidth:F,borderTopWidth:F,borderRightWidth:F,borderBottomWidth:F,borderLeftWidth:F,borderRadius:F,radius:F,borderTopLeftRadius:F,borderTopRightRadius:F,borderBottomRightRadius:F,borderBottomLeftRadius:F,width:F,maxWidth:F,height:F,maxHeight:F,top:F,right:F,bottom:F,left:F,padding:F,paddingTop:F,paddingRight:F,paddingBottom:F,paddingLeft:F,margin:F,marginTop:F,marginRight:F,marginBottom:F,marginLeft:F,backgroundPositionX:F,backgroundPositionY:F},jz={rotate:Hn,rotateX:Hn,rotateY:Hn,rotateZ:Hn,scale:za,scaleX:za,scaleY:za,scaleZ:za,skew:Hn,skewX:Hn,skewY:Hn,distance:F,translateX:F,translateY:F,translateZ:F,x:F,y:F,z:F,perspective:F,transformPerspective:F,opacity:_s,originX:jg,originY:jg,originZ:F},Og={...ii,transform:Math.round},ep={...Fz,...jz,zIndex:Og,size:F,fillOpacity:_s,strokeOpacity:_s,numOctaves:Og},Oz={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Vz=oi.length;function Nz(e,t,n){let r="",o=!0;for(let i=0;i<Vz;i++){const s=oi[i],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=Vb(a,ep[s]);if(!l){o=!1;const u=Oz[s]||s;r+=`${u}(${c}) `}n&&(t[s]=c)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function tp(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const c=t[l];if(Yr.has(l)){s=!0;continue}else if(Ob(l)){o[l]=c;continue}else{const u=Vb(c,ep[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(t.transform||(s||n?r.transform=Nz(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${c} ${u}`}}const Wz={offset:"stroke-dashoffset",array:"stroke-dasharray"},Uz={offset:"strokeDashoffset",array:"strokeDasharray"};function Hz(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Wz:Uz;e[i.offset]=F.transform(-r);const s=F.transform(t),a=F.transform(n);e[i.array]=`${s} ${a}`}function Vg(e,t,n){return typeof e=="string"?e:F.transform(t+n*e)}function qz(e,t,n){const r=Vg(t,e.x,e.width),o=Vg(n,e.y,e.height);return`${r} ${o}`}function np(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,d){if(tp(e,c,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:g,dimensions:v}=e;f.transform&&(v&&(g.transform=f.transform),delete f.transform),v&&(o!==void 0||i!==void 0||g.transform)&&(g.transformOrigin=qz(v,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&Hz(f,s,a,l,!1)}const rp=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Nb=()=>({...rp(),attrs:{}}),op=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Wb(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Ub=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 Hb(e,t,n,r){Wb(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Ub.has(o)?o:Yh(o),t.attrs[o])}const Nl={};function Kz(e){Object.assign(Nl,e)}function qb(e,{layout:t,layoutId:n}){return Yr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Nl[e]||e==="opacity")}function ip(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Ye(o[s])||t.style&&Ye(t.style[s])||qb(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return i}function Kb(e,t,n){const r=ip(e,t,n);for(const o in e)if(Ye(e[o])||Ye(t[o])){const i=oi.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function Gz(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 Ng=["x","y","width","height","cx","cy","r"],Yz={useVisualState:Fb({scrapeMotionValuesFromProps:Kb,createRenderState:Nb,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let i=!!e.drag;if(!i){for(const a in o)if(Yr.has(a)){i=!0;break}}if(!i)return;let s=!t;if(t)for(let a=0;a<Ng.length;a++){const l=Ng[a];e[l]!==t[l]&&(s=!0)}s&&he.read(()=>{Gz(n,r),he.render(()=>{np(r,o,op(n.tagName),e.transformTemplate),Hb(n,r)})})}})},Xz={useVisualState:Fb({scrapeMotionValuesFromProps:ip,createRenderState:rp})};function Gb(e,t,n){for(const r in t)!Ye(t[r])&&!qb(r,n)&&(e[r]=t[r])}function Qz({transformTemplate:e},t){return w.useMemo(()=>{const n=rp();return tp(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Zz(e,t){const n=e.style||{},r={};return Gb(r,n,e),Object.assign(r,Qz(e,t)),r}function Jz(e,t){const n={},r=Zz(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function e3(e,t,n,r){const o=w.useMemo(()=>{const i=Nb();return np(i,t,op(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Gb(i,e.style,e),o.style={...i,...o.style}}return o}function t3(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(Qh(n)?e3:Jz)(r,i,s,n),c=gz(r,typeof n=="string",e),u=n!==w.Fragment?{...c,...l,ref:o}:{},{children:d}=r,f=w.useMemo(()=>Ye(d)?d.get():d,[d]);return w.createElement(n,{...u,children:f})}}function n3(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const s={...Qh(r)?Yz:Xz,preloadedFeatures:e,useRender:t3(o),createVisualElement:t,Component:r};return _z(s)}}function Yb(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Mc(e,t,n){const r=e.getProps();return Zh(r,t,n!==void 0?n:r.custom,e)}const r3=qh(()=>window.ScrollTimeline!==void 0);class o3{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,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(o=>{if(r3()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{r.forEach((o,i)=>{o&&o(),this.animations[i].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 n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class i3 extends o3{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function sp(e,t){return e?e[t]||e.default||e:void 0}const lf=2e4;function Xb(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<lf;)t+=n,r=e.next(t);return t>=lf?1/0:t}function ap(e){return typeof e=="function"}function Wg(e,t){e.timeline=t,e.onfinish=null}const lp=e=>Array.isArray(e)&&typeof e[0]=="number",s3={linearEasing:void 0};function a3(e,t){const n=qh(e);return()=>{var r;return(r=s3[t])!==null&&r!==void 0?r:n()}}const Wl=a3(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Qb=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=e(Qo(0,o-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function Zb(e){return!!(typeof e=="function"&&Wl()||!e||typeof e=="string"&&(e in cf||Wl())||lp(e)||Array.isArray(e)&&e.every(Zb))}const zi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,cf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zi([0,.65,.55,1]),circOut:zi([.55,0,1,.45]),backIn:zi([.31,.01,.66,-.59]),backOut:zi([.33,1.53,.69,.99])};function Jb(e,t){if(e)return typeof e=="function"&&Wl()?Qb(e,t):lp(e)?zi(e):Array.isArray(e)?e.map(n=>Jb(n,t)||cf.easeOut):cf[e]}const qt={x:!1,y:!1};function eS(){return qt.x||qt.y}function l3(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;t&&(o=t.current);const i=(r=n==null?void 0:n[e])!==null&&r!==void 0?r:o.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function tS(e,t){const n=l3(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Ug(e){return t=>{t.pointerType==="touch"||eS()||e(t)}}function c3(e,t,n={}){const[r,o,i]=tS(e,n),s=Ug(a=>{const{target:l}=a,c=t(a);if(typeof c!="function"||!l)return;const u=Ug(d=>{c(d),l.removeEventListener("pointerleave",u)});l.addEventListener("pointerleave",u,o)});return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const nS=(e,t)=>t?e===t?!0:nS(e,t.parentElement):!1,cp=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,u3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function d3(e){return u3.has(e.tagName)||e.tabIndex!==-1}const Mi=new WeakSet;function Hg(e){return t=>{t.key==="Enter"&&e(t)}}function Fu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const f3=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Hg(()=>{if(Mi.has(n))return;Fu(n,"down");const o=Hg(()=>{Fu(n,"up")}),i=()=>Fu(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function qg(e){return cp(e)&&!eS()}function h3(e,t,n={}){const[r,o,i]=tS(e,n),s=a=>{const l=a.currentTarget;if(!qg(a)||Mi.has(l))return;Mi.add(l);const c=t(a),u=(g,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!qg(g)||!Mi.has(l))&&(Mi.delete(l),typeof c=="function"&&c(g,{success:v}))},d=g=>{u(g,n.useGlobalTarget||nS(l,g.target))},f=g=>{u(g,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{!d3(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),a.addEventListener("focus",c=>f3(c,o),o)}),i}function p3(e){return e==="x"||e==="y"?qt[e]?null:(qt[e]=!0,()=>{qt[e]=!1}):qt.x||qt.y?null:(qt.x=qt.y=!0,()=>{qt.x=qt.y=!1})}const rS=new Set(["width","height","top","left","right","bottom",...oi]);let al;function m3(){al=void 0}const vn={now:()=>(al===void 0&&vn.set(Fe.isProcessing||uz.useManualTiming?Fe.timestamp:performance.now()),al),set:e=>{al=e,queueMicrotask(m3)}};function up(e,t){e.indexOf(t)===-1&&e.push(t)}function dp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class fp{constructor(){this.subscriptions=[]}add(t){return up(this.subscriptions,t),()=>dp(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function oS(e,t){return t?e*(1e3/t):0}const Kg=30,g3=e=>!isNaN(parseFloat(e));class y3{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=vn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=vn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=g3(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new fp);const r=this.events[t].add(n);return t==="change"?()=>{r(),he.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=vn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Kg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Kg);return oS(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 Ts(e,t){return new y3(e,t)}function v3(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ts(n))}function b3(e,t){const n=Mc(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=Rz(i[s]);v3(e,s,a)}}function S3(e){return!!(Ye(e)&&e.add)}function uf(e,t){const n=e.getValue("willChange");if(S3(n))return n.add(t)}function iS(e){return e.props[Ib]}const sS=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,x3=1e-7,w3=12;function k3(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=sS(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>x3&&++a<w3);return s}function Os(e,t,n,r){if(e===t&&n===r)return xt;const o=i=>k3(i,0,1,e,n);return i=>i===0||i===1?i:sS(o(i),t,r)}const aS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,lS=e=>t=>1-e(1-t),cS=Os(.33,1.53,.69,.99),hp=lS(cS),uS=aS(hp),dS=e=>(e*=2)<1?.5*hp(e):.5*(2-Math.pow(2,-10*(e-1))),pp=e=>1-Math.sin(Math.acos(e)),fS=lS(pp),hS=aS(pp),pS=e=>/^0[^.\s]+$/u.test(e);function C3(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||pS(e):!0}const Qi=e=>Math.round(e*1e5)/1e5,mp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _3(e){return e==null}const T3=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,gp=(e,t)=>n=>!!(typeof n=="string"&&T3.test(n)&&n.startsWith(e)||t&&!_3(n)&&Object.prototype.hasOwnProperty.call(n,t)),mS=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(mp);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},P3=e=>jn(0,255,e),ju={...ii,transform:e=>Math.round(P3(e))},zr={test:gp("rgb","red"),parse:mS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ju.transform(e)+", "+ju.transform(t)+", "+ju.transform(n)+", "+Qi(_s.transform(r))+")"};function E3(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const df={test:gp("#"),parse:E3,transform:zr.transform},wo={test:gp("hsl","hue"),parse:mS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+yn.transform(Qi(t))+", "+yn.transform(Qi(n))+", "+Qi(_s.transform(r))+")"},Ke={test:e=>zr.test(e)||df.test(e)||wo.test(e),parse:e=>zr.test(e)?zr.parse(e):wo.test(e)?wo.parse(e):df.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?zr.transform(e):wo.transform(e)},$3=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function A3(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(mp))===null||t===void 0?void 0:t.length)||0)+(((n=e.match($3))===null||n===void 0?void 0:n.length)||0)>0}const gS="number",yS="color",R3="var",z3="var(",Gg="${}",M3=/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 Ps(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(M3,l=>(Ke.test(l)?(r.color.push(i),o.push(yS),n.push(Ke.parse(l))):l.startsWith(z3)?(r.var.push(i),o.push(R3),n.push(l)):(r.number.push(i),o.push(gS),n.push(parseFloat(l))),++i,Gg)).split(Gg);return{values:n,split:a,indexes:r,types:o}}function vS(e){return Ps(e).values}function bS(e){const{split:t,types:n}=Ps(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){const a=n[s];a===gS?i+=Qi(o[s]):a===yS?i+=Ke.transform(o[s]):i+=o[s]}return i}}const D3=e=>typeof e=="number"?0:e;function I3(e){const t=vS(e);return bS(e)(t.map(D3))}const fr={test:A3,parse:vS,createTransformer:bS,getAnimatableNone:I3},L3=new Set(["brightness","contrast","saturate","opacity"]);function B3(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(mp)||[];if(!r)return e;const o=n.replace(r,"");let i=L3.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const F3=/\b([a-z-]*)\(.*?\)/gu,ff={...fr,getAnimatableNone:e=>{const t=e.match(F3);return t?t.map(B3).join(" "):e}},j3={...ep,color:Ke,backgroundColor:Ke,outlineColor:Ke,fill:Ke,stroke:Ke,borderColor:Ke,borderTopColor:Ke,borderRightColor:Ke,borderBottomColor:Ke,borderLeftColor:Ke,filter:ff,WebkitFilter:ff},yp=e=>j3[e];function SS(e,t){let n=yp(e);return n!==ff&&(n=fr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const O3=new Set(["auto","none","0"]);function V3(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!O3.has(i)&&Ps(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=SS(n,o)}const Yg=e=>e===ii||e===F,Xg=(e,t)=>parseFloat(e.split(", ")[t]),Qg=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Xg(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Xg(i[1],e):0}},N3=new Set(["x","y","z"]),W3=oi.filter(e=>!N3.has(e));function U3(e){const t=[];return W3.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Jo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),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:Qg(4,13),y:Qg(5,14)};Jo.translateX=Jo.x;Jo.translateY=Jo.y;const Fr=new Set;let hf=!1,pf=!1;function xS(){if(pf){const e=Array.from(Fr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=U3(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}pf=!1,hf=!1,Fr.forEach(e=>e.complete()),Fr.clear()}function wS(){Fr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(pf=!0)})}function H3(){wS(),xS()}class vp{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Fr.add(this),hf||(hf=!0,he.read(wS),he.resolveKeyframes(xS))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const s=o==null?void 0:o.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),o&&s===void 0&&o.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Fr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Fr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const kS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),q3=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function K3(e){const t=q3.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function CS(e,t,n=1){const[r,o]=K3(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return kS(s)?parseFloat(s):s}return Jh(o)?CS(o,t,n+1):o}const _S=e=>t=>t.test(e),G3={test:e=>e==="auto",parse:e=>e},TS=[ii,F,yn,Hn,Bz,Lz,G3],Zg=e=>TS.find(_S(e));class PS extends vp{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),Jh(c))){const u=CS(c,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!rS.has(r)||t.length!==2)return;const[o,i]=t,s=Zg(o),a=Zg(i);if(s!==a)if(Yg(s)&&Yg(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)C3(t[o])&&r.push(o);r.length&&V3(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Jo[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const s=o.length-1,a=o[s];o[s]=Jo[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const Jg=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(fr.test(e)||e==="0")&&!e.startsWith("url("));function Y3(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function X3(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=Jg(o,t),a=Jg(i,t);return!s||!a?!1:Y3(e)||(n==="spring"||ap(n))&&r}const Q3=e=>e!==null;function Dc(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(Q3),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const Z3=40;class ES{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=vn.now(),this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Z3?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&H3(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=vn.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!X3(t,r,o,i))if(s)this.options.duration=0;else{l&&l(Dc(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const be=(e,t,n)=>e+(t-e)*n;function Ou(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function J3({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Ou(l,a,e+1/3),i=Ou(l,a,e),s=Ou(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Ul(e,t){return n=>n>0?t:e}const Vu=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},eM=[df,zr,wo],tM=e=>eM.find(t=>t.test(e));function e0(e){const t=tM(e);if(!t)return!1;let n=t.parse(e);return t===wo&&(n=J3(n)),n}const t0=(e,t)=>{const n=e0(e),r=e0(t);if(!n||!r)return Ul(e,t);const o={...n};return i=>(o.red=Vu(n.red,r.red,i),o.green=Vu(n.green,r.green,i),o.blue=Vu(n.blue,r.blue,i),o.alpha=be(n.alpha,r.alpha,i),zr.transform(o))},nM=(e,t)=>n=>t(e(n)),Vs=(...e)=>e.reduce(nM),mf=new Set(["none","hidden"]);function rM(e,t){return mf.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function oM(e,t){return n=>be(e,t,n)}function bp(e){return typeof e=="number"?oM:typeof e=="string"?Jh(e)?Ul:Ke.test(e)?t0:aM:Array.isArray(e)?$S:typeof e=="object"?Ke.test(e)?t0:iM:Ul}function $S(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>bp(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function iM(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=bp(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function sM(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][o[s]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[i]=l,o[s]++}return r}const aM=(e,t)=>{const n=fr.createTransformer(t),r=Ps(e),o=Ps(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?mf.has(e)&&!o.values.length||mf.has(t)&&!r.values.length?rM(e,t):Vs($S(sM(r,o),o.values),n):Ul(e,t)};function AS(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?be(e,t,n):bp(e)(e,t)}const lM=5;function RS(e,t,n){const r=Math.max(t-lM,0);return oS(n-e(r),t-r)}const ke={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},Nu=.001;function cM({duration:e=ke.duration,bounce:t=ke.bounce,velocity:n=ke.velocity,mass:r=ke.mass}){let o,i,s=1-t;s=jn(ke.minDamping,ke.maxDamping,s),e=jn(ke.minDuration,ke.maxDuration,Mn(e)),s<1?(o=c=>{const u=c*s,d=u*e,f=u-n,g=gf(c,s),v=Math.exp(-d);return Nu-f/g*v},i=c=>{const d=c*s*e,f=d*n+n,g=Math.pow(s,2)*Math.pow(c,2)*e,v=Math.exp(-d),b=gf(Math.pow(c,2),s);return(-o(c)+Nu>0?-1:1)*((f-g)*v)/b}):(o=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-Nu+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=dM(o,i,a);if(e=zn(e),isNaN(l))return{stiffness:ke.stiffness,damping:ke.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const uM=12;function dM(e,t,n){let r=n;for(let o=1;o<uM;o++)r=r-e(r)/t(r);return r}function gf(e,t){return e*Math.sqrt(1-t*t)}const fM=["duration","bounce"],hM=["stiffness","damping","mass"];function n0(e,t){return t.some(n=>e[n]!==void 0)}function pM(e){let t={velocity:ke.velocity,stiffness:ke.stiffness,damping:ke.damping,mass:ke.mass,isResolvedFromDuration:!1,...e};if(!n0(e,hM)&&n0(e,fM))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*jn(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:ke.mass,stiffness:o,damping:i}}else{const n=cM(e);t={...t,...n,mass:ke.mass},t.isResolvedFromDuration=!0}return t}function zS(e=ke.visualDuration,t=ke.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:g}=pM({...n,velocity:-Mn(n.velocity||0)}),v=f||0,b=c/(2*Math.sqrt(l*u)),k=s-i,p=Mn(Math.sqrt(l/u)),h=Math.abs(k)<5;r||(r=h?ke.restSpeed.granular:ke.restSpeed.default),o||(o=h?ke.restDelta.granular:ke.restDelta.default);let y;if(b<1){const _=gf(p,b);y=E=>{const P=Math.exp(-b*p*E);return s-P*((v+b*p*k)/_*Math.sin(_*E)+k*Math.cos(_*E))}}else if(b===1)y=_=>s-Math.exp(-p*_)*(k+(v+p*k)*_);else{const _=p*Math.sqrt(b*b-1);y=E=>{const P=Math.exp(-b*p*E),$=Math.min(_*E,300);return s-P*((v+b*p*k)*Math.sinh($)+_*k*Math.cosh($))/_}}const C={calculatedDuration:g&&d||null,next:_=>{const E=y(_);if(g)a.done=_>=d;else{let P=0;b<1&&(P=_===0?zn(v):RS(y,_,E));const $=Math.abs(P)<=r,j=Math.abs(s-E)<=o;a.done=$&&j}return a.value=a.done?s:E,a},toString:()=>{const _=Math.min(Xb(C),lf),E=Qb(P=>C.next(_*P).value,_,30);return _+"ms "+E}};return C}function r0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},g=$=>a!==void 0&&$<a||l!==void 0&&$>l,v=$=>a===void 0?l:l===void 0||Math.abs(a-$)<Math.abs(l-$)?a:l;let b=n*t;const k=d+b,p=s===void 0?k:s(k);p!==k&&(b=p-d);const h=$=>-b*Math.exp(-$/r),y=$=>p+h($),C=$=>{const j=h($),I=y($);f.done=Math.abs(j)<=c,f.value=f.done?p:I};let _,E;const P=$=>{g(f.value)&&(_=$,E=zS({keyframes:[f.value,v(f.value)],velocity:RS(y,$,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return P(0),{calculatedDuration:null,next:$=>{let j=!1;return!E&&_===void 0&&(j=!0,C($),P($)),_!==void 0&&$>=_?E.next($-_):(!j&&C($),f)}}}const mM=Os(.42,0,1,1),gM=Os(0,0,.58,1),MS=Os(.42,0,.58,1),yM=e=>Array.isArray(e)&&typeof e[0]!="number",vM={linear:xt,easeIn:mM,easeInOut:MS,easeOut:gM,circIn:pp,circInOut:hS,circOut:fS,backIn:hp,backInOut:uS,backOut:cS,anticipate:dS},o0=e=>{if(lp(e)){Ab(e.length===4);const[t,n,r,o]=e;return Os(t,n,r,o)}else if(typeof e=="string")return vM[e];return e};function bM(e,t,n){const r=[],o=n||AS,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||xt:t;a=Vs(l,a)}r.push(a)}return r}function SM(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Ab(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=bM(t,r,o),l=a.length,c=u=>{if(s&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=Qo(e[d],e[d+1],u);return a[d](f)};return n?u=>c(jn(e[0],e[i-1],u)):c}function xM(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Qo(0,t,r);e.push(be(n,1,o))}}function wM(e){const t=[0];return xM(t,e.length-1),t}function kM(e,t){return e.map(n=>n*t)}function CM(e,t){return e.map(()=>t||MS).splice(0,e.length-1)}function Hl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=yM(r)?r.map(o0):o0(r),i={done:!1,value:t[0]},s=kM(n&&n.length===t.length?n:wM(t),e),a=SM(s,t,{ease:Array.isArray(o)?o:CM(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const _M=e=>{const t=({timestamp:n})=>e(n);return{start:()=>he.update(t,!0),stop:()=>dr(t),now:()=>Fe.isProcessing?Fe.timestamp:vn.now()}},TM={decay:r0,inertia:r0,tween:Hl,keyframes:Hl,spring:zS},PM=e=>e/100;class Sp extends ES{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:l}=this.options;l&&l()};const{name:n,motionValue:r,element:o,keyframes:i}=this.options,s=(o==null?void 0:o.KeyframeResolver)||vp,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new s(i,a,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=ap(n)?n:TM[n]||Hl;let l,c;a!==Hl&&typeof t[0]!="number"&&(l=Vs(PM,AS(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});i==="mirror"&&(c=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=Xb(u));const{calculatedDuration:d}=u,f=d+o,g=f*(r+1)-o;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:$}=this.options;return{done:!0,value:$[$.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:g,repeatType:v,repeatDelay:b,onUpdate:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const p=this.currentTime-f*(this.speed>=0?1:-1),h=this.speed>=0?p<0:p>u;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let y=this.currentTime,C=i;if(g){const $=Math.min(this.currentTime,u)/d;let j=Math.floor($),I=$%1;!I&&$>=1&&(I=1),I===1&&j--,j=Math.min(j,g+1),!!(j%2)&&(v==="reverse"?(I=1-I,b&&(I-=b/d)):v==="mirror"&&(C=s)),y=jn(0,1,I)*d}const _=h?{done:!1,value:l[0]}:C.next(y);a&&(_.value=a(_.value));let{done:E}=_;!h&&c!==null&&(E=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return P&&o!==void 0&&(_.value=Dc(l,this.options,o)),k&&k(_.value),P&&this.finish(),_}get duration(){const{resolved:t}=this;return t?Mn(t.calculatedDuration):0}get time(){return Mn(this.currentTime)}set time(t){t=zn(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 n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Mn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=_M,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??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 EM=new Set(["opacity","clipPath","filter","transform"]);function $M(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Jb(a,o);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const AM=qh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ql=10,RM=2e4;function zM(e){return ap(e.type)||e.type==="spring"||!Zb(e.ease)}function MM(e,t){const n=new Sp({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<RM;)r=n.sample(i),o.push(r.value),i+=ql;return{times:void 0,keyframes:o,duration:i-ql,ease:"linear"}}const DS={anticipate:dS,backInOut:uS,circInOut:hS};function DM(e){return e in DS}class i0 extends ES{constructor(t){super(t);const{name:n,motionValue:r,element:o,keyframes:i}=this.options;this.resolver=new PS(i,(s,a)=>this.onKeyframesResolved(s,a),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:o,ease:i,type:s,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&Wl()&&DM(i)&&(i=DS[i]),zM(this.options)){const{onComplete:d,onUpdate:f,motionValue:g,element:v,...b}=this.options,k=MM(t,b);t=k.keyframes,t.length===1&&(t[1]=t[0]),r=k.duration,o=k.times,i=k.ease,s="keyframes"}const u=$M(a.owner.current,l,t,{...this.options,duration:r,times:o,ease:i});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(Wg(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(Dc(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:o,type:s,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Mn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Mn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=zn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return xt;const{animation:r}=n;Wg(r,t)}return xt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.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:n,keyframes:r,duration:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:d,element:f,...g}=this.options,v=new Sp({...g,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),b=zn(this.time);c.setWithVelocity(v.sample(b-ql).value,v.sample(b).value,ql)}const{onStop:l}=this.options;l&&l(),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:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return AM()&&r&&EM.has(r)&&!l&&!c&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}const IM={type:"spring",stiffness:500,damping:25,restSpeed:10},LM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),BM={type:"keyframes",duration:.8},FM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},jM=(e,{keyframes:t})=>t.length>2?BM:Yr.has(e)?e.startsWith("scale")?LM(t[1]):IM:FM;function OM({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const xp=(e,t,n,r={},o,i)=>s=>{const a=sp(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-zn(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};OM(a)||(u={...u,...jM(e,u)}),u.duration&&(u.duration=zn(u.duration)),u.repeatDelay&&(u.repeatDelay=zn(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=Dc(u.keyframes,a);if(f!==void 0)return he.update(()=>{u.onUpdate(f),u.onComplete()}),new i3([])}return!i&&i0.supports(u)?new i0(u):new Sp(u)};function VM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function IS(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),g=l[d];if(g===void 0||u&&VM(u,d))continue;const v={delay:n,...sp(s||{},d)};let b=!1;if(window.MotionHandoffAnimation){const p=iS(e);if(p){const h=window.MotionHandoffAnimation(p,d,he);h!==null&&(v.startTime=h,b=!0)}}uf(e,d),f.start(xp(d,f,g,e.shouldReduceMotion&&rS.has(d)?{type:!1}:v,e,b));const k=f.animation;k&&c.push(k)}return a&&Promise.all(c).then(()=>{he.update(()=>{a&&b3(e,a)})}),c}function yf(e,t,n={}){var r;const o=Mc(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(IS(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return NM(e,t,u+c,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,u]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function NM(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(WM).forEach((c,u)=>{c.notify("AnimationStart",t),s.push(yf(c,t,{...i,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function WM(e,t){return e.sortNodePosition(t)}function UM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>yf(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=yf(e,t,n);else{const o=typeof t=="function"?Mc(e,t,n.custom):t;r=Promise.all(IS(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const HM=Gh.length;function LS(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?LS(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<HM;n++){const r=Gh[n],o=e.props[r];(Cs(o)||o===!1)&&(t[r]=o)}return t}const qM=[...Kh].reverse(),KM=Kh.length;function GM(e){return t=>Promise.all(t.map(({animation:n,options:r})=>UM(e,n,r)))}function YM(e){let t=GM(e),n=s0(),r=!0;const o=l=>(c,u)=>{var d;const f=Mc(e,u,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:g,transitionEnd:v,...b}=f;c={...c,...b,...v}}return c};function i(l){t=l(e)}function s(l){const{props:c}=e,u=LS(e.parent)||{},d=[],f=new Set;let g={},v=1/0;for(let k=0;k<KM;k++){const p=qM[k],h=n[p],y=c[p]!==void 0?c[p]:u[p],C=Cs(y),_=p===l?h.isActive:null;_===!1&&(v=k);let E=y===u[p]&&y!==c[p]&&C;if(E&&r&&e.manuallyAnimateOnMount&&(E=!1),h.protectedKeys={...g},!h.isActive&&_===null||!y&&!h.prevProp||Rc(y)||typeof y=="boolean")continue;const P=XM(h.prevProp,y);let $=P||p===l&&h.isActive&&!E&&C||k>v&&C,j=!1;const I=Array.isArray(y)?y:[y];let re=I.reduce(o(p),{});_===!1&&(re={});const{prevResolvedValues:Ne={}}=h,Pt={...Ne,...re},ft=X=>{$=!0,f.has(X)&&(j=!0,f.delete(X)),h.needsAnimating[X]=!0;const z=e.getValue(X);z&&(z.liveStyle=!1)};for(const X in Pt){const z=re[X],O=Ne[X];if(g.hasOwnProperty(X))continue;let V=!1;af(z)&&af(O)?V=!Yb(z,O):V=z!==O,V?z!=null?ft(X):f.add(X):z!==void 0&&f.has(X)?ft(X):h.protectedKeys[X]=!0}h.prevProp=y,h.prevResolvedValues=re,h.isActive&&(g={...g,...re}),r&&e.blockInitialAnimation&&($=!1),$&&(!(E&&P)||j)&&d.push(...I.map(X=>({animation:X,options:{type:p}})))}if(f.size){const k={};f.forEach(p=>{const h=e.getBaseTarget(p),y=e.getValue(p);y&&(y.liveStyle=!0),k[p]=h??null}),d.push({animation:k})}let b=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(d):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(f=>{var g;return(g=f.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),n[l].isActive=c;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=s0(),r=!0}}}function XM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Yb(t,e):!1}function wr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function s0(){return{animate:wr(!0),whileInView:wr(),whileHover:wr(),whileTap:wr(),whileDrag:wr(),whileFocus:wr(),exit:wr()}}class yr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class QM extends yr{constructor(t){super(t),t.animationState||(t.animationState=YM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Rc(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let ZM=0;class JM extends yr{constructor(){super(...arguments),this.id=ZM++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const e4={animation:{Feature:QM},exit:{Feature:JM}};function Es(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ns(e){return{point:{x:e.pageX,y:e.pageY}}}const t4=e=>t=>cp(t)&&e(t,Ns(t));function Zi(e,t,n,r){return Es(e,t,t4(n),r)}const a0=(e,t)=>Math.abs(e-t);function n4(e,t){const n=a0(e.x,t.x),r=a0(e.y,t.y);return Math.sqrt(n**2+r**2)}class BS{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!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 d=Uu(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,g=n4(d.offset,{x:0,y:0})>=3;if(!f&&!g)return;const{point:v}=d,{timestamp:b}=Fe;this.history.push({...v,timestamp:b});const{onStart:k,onMove:p}=this.handlers;f||(k&&k(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Wu(f,this.transformPagePoint),he.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=Uu(d.type==="pointercancel"?this.lastMoveEventInfo:Wu(f,this.transformPagePoint),this.history);this.startEvent&&g&&g(d,k),v&&v(d,k)},!cp(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Ns(t),a=Wu(s,this.transformPagePoint),{point:l}=a,{timestamp:c}=Fe;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,Uu(a,this.history)),this.removeListeners=Vs(Zi(this.contextWindow,"pointermove",this.handlePointerMove),Zi(this.contextWindow,"pointerup",this.handlePointerUp),Zi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),dr(this.updatePoint)}}function Wu(e,t){return t?{point:t(e.point)}:e}function l0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Uu({point:e},t){return{point:e,delta:l0(e,FS(t)),offset:l0(e,r4(t)),velocity:o4(t,.1)}}function r4(e){return e[0]}function FS(e){return e[e.length-1]}function o4(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=FS(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>zn(t)));)n--;if(!r)return{x:0,y:0};const i=Mn(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const jS=1e-4,i4=1-jS,s4=1+jS,OS=.01,a4=0-OS,l4=0+OS;function kt(e){return e.max-e.min}function c4(e,t,n){return Math.abs(e-t)<=n}function c0(e,t,n,r=.5){e.origin=r,e.originPoint=be(t.min,t.max,e.origin),e.scale=kt(n)/kt(t),e.translate=be(n.min,n.max,e.origin)-e.originPoint,(e.scale>=i4&&e.scale<=s4||isNaN(e.scale))&&(e.scale=1),(e.translate>=a4&&e.translate<=l4||isNaN(e.translate))&&(e.translate=0)}function Ji(e,t,n,r){c0(e.x,t.x,n.x,r?r.originX:void 0),c0(e.y,t.y,n.y,r?r.originY:void 0)}function u0(e,t,n){e.min=n.min+t.min,e.max=e.min+kt(t)}function u4(e,t,n){u0(e.x,t.x,n.x),u0(e.y,t.y,n.y)}function d0(e,t,n){e.min=t.min-n.min,e.max=e.min+kt(t)}function es(e,t,n){d0(e.x,t.x,n.x),d0(e.y,t.y,n.y)}function d4(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?be(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?be(n,e,r.max):Math.min(e,n)),e}function f0(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function f4(e,{top:t,left:n,bottom:r,right:o}){return{x:f0(e.x,n,o),y:f0(e.y,t,r)}}function h0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function h4(e,t){return{x:h0(e.x,t.x),y:h0(e.y,t.y)}}function p4(e,t){let n=.5;const r=kt(e),o=kt(t);return o>r?n=Qo(t.min,t.max-r,e.min):r>o&&(n=Qo(e.min,e.max-o,t.min)),jn(0,1,n)}function m4(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const vf=.35;function g4(e=vf){return e===!1?e=0:e===!0&&(e=vf),{x:p0(e,"left","right"),y:p0(e,"top","bottom")}}function p0(e,t,n){return{min:m0(e,t),max:m0(e,n)}}function m0(e,t){return typeof e=="number"?e:e[t]||0}const g0=()=>({translate:0,scale:1,origin:0,originPoint:0}),ko=()=>({x:g0(),y:g0()}),y0=()=>({min:0,max:0}),_e=()=>({x:y0(),y:y0()});function Mt(e){return[e("x"),e("y")]}function VS({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function y4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function v4(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Hu(e){return e===void 0||e===1}function bf({scale:e,scaleX:t,scaleY:n}){return!Hu(e)||!Hu(t)||!Hu(n)}function _r(e){return bf(e)||NS(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function NS(e){return v0(e.x)||v0(e.y)}function v0(e){return e&&e!=="0%"}function Kl(e,t,n){const r=e-n,o=t*r;return n+o}function b0(e,t,n,r,o){return o!==void 0&&(e=Kl(e,o,r)),Kl(e,n,r)+t}function Sf(e,t=0,n=1,r,o){e.min=b0(e.min,t,n,r,o),e.max=b0(e.max,t,n,r,o)}function WS(e,{x:t,y:n}){Sf(e.x,t.translate,t.scale,t.originPoint),Sf(e.y,n.translate,n.scale,n.originPoint)}const S0=.999999999999,x0=1.0000000000001;function b4(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&_o(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,WS(e,s)),r&&_r(i.latestValues)&&_o(e,i.latestValues))}t.x<x0&&t.x>S0&&(t.x=1),t.y<x0&&t.y>S0&&(t.y=1)}function Co(e,t){e.min=e.min+t,e.max=e.max+t}function w0(e,t,n,r,o=.5){const i=be(e.min,e.max,o);Sf(e,t,n,i,r)}function _o(e,t){w0(e.x,t.x,t.scaleX,t.scale,t.originX),w0(e.y,t.y,t.scaleY,t.scale,t.originY)}function US(e,t){return VS(v4(e.getBoundingClientRect(),t))}function S4(e,t,n){const r=US(e,n),{scroll:o}=t;return o&&(Co(r.x,o.offset.x),Co(r.y,o.offset.y)),r}const HS=({current:e})=>e?e.ownerDocument.defaultView:null,x4=new WeakMap;class w4{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=_e(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ns(u).point)},i=(u,d)=>{const{drag:f,dragPropagation:g,onDragStart:v}=this.getProps();if(f&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=p3(f),!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),Mt(k=>{let p=this.getAxisMotionValue(k).get()||0;if(yn.test(p)){const{projection:h}=this.visualElement;if(h&&h.layout){const y=h.layout.layoutBox[k];y&&(p=kt(y)*(parseFloat(p)/100))}}this.originPoint[k]=p}),v&&he.postRender(()=>v(u,d)),uf(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(u,d)=>{const{dragPropagation:f,dragDirectionLock:g,onDirectionLock:v,onDrag:b}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:k}=d;if(g&&this.currentDirection===null){this.currentDirection=k4(k),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,k),this.updateAxis("y",d.point,k),this.visualElement.render(),b&&b(u,d)},a=(u,d)=>this.stop(u,d),l=()=>Mt(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new BS(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:HS(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&he.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Ma(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=d4(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&xo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=f4(o.layoutBox,n):this.constraints=!1,this.elastic=g4(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Mt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=m4(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!xo(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=S4(r,o.root,this.visualElement.getTransformPagePoint());let s=h4(o.layout.layoutBox,i);if(n){const a=n(y4(s));this.hasMutatedConstraints=!!a,a&&(s=VS(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Mt(u=>{if(!Ma(u,n,this.currentDirection))return;let d=l&&l[u]||{};s&&(d={min:0,max:0});const f=o?200:1e6,g=o?40:1e7,v={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,v)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return uf(this.visualElement,t),r.start(xp(t,r,0,n,this.visualElement,!1))}stopAnimation(){Mt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Mt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Mt(n=>{const{drag:r}=this.getProps();if(!Ma(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-be(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!xo(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Mt(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=p4({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Mt(s=>{if(!Ma(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(be(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;x4.set(this.visualElement,this);const t=this.visualElement.current,n=Zi(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();xo(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),he.read(r);const s=Es(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Mt(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=vf,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Ma(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function k4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class C4 extends yr{constructor(t){super(t),this.removeGroupControls=xt,this.removeListeners=xt,this.controls=new w4(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||xt}unmount(){this.removeGroupControls(),this.removeListeners()}}const k0=e=>(t,n)=>{e&&he.postRender(()=>e(t,n))};class _4 extends yr{constructor(){super(...arguments),this.removePointerDownListener=xt}onPointerDown(t){this.session=new BS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:HS(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:k0(t),onStart:k0(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&he.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Zi(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 ll={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function C0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const wi={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(F.test(e))e=parseFloat(e);else return e;const n=C0(e,t.target.x),r=C0(e,t.target.y);return`${n}% ${r}%`}},T4={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=fr.parse(e);if(o.length>5)return r;const i=fr.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=be(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),i(o)}};class P4 extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;Kz(E4),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),ll.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||he.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Xh.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function qS(e){const[t,n]=Eb(),r=w.useContext(Nh);return A.jsx(P4,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(Lb),isPresent:t,safeToRemove:n})}const E4={borderRadius:{...wi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wi,borderTopRightRadius:wi,borderBottomLeftRadius:wi,borderBottomRightRadius:wi,boxShadow:T4};function $4(e,t,n){const r=Ye(e)?e:Ts(e);return r.start(xp("",r,t,n)),r.animation}function A4(e){return e instanceof SVGElement&&e.tagName!=="svg"}const R4=(e,t)=>e.depth-t.depth;class z4{constructor(){this.children=[],this.isDirty=!1}add(t){up(this.children,t),this.isDirty=!0}remove(t){dp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(R4),this.isDirty=!1,this.children.forEach(t)}}function M4(e,t){const n=vn.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(dr(r),e(i-t))};return he.read(r,!0),()=>dr(r)}const KS=["TopLeft","TopRight","BottomLeft","BottomRight"],D4=KS.length,_0=e=>typeof e=="string"?parseFloat(e):e,T0=e=>typeof e=="number"||F.test(e);function I4(e,t,n,r,o,i){o?(e.opacity=be(0,n.opacity!==void 0?n.opacity:1,L4(r)),e.opacityExit=be(t.opacity!==void 0?t.opacity:1,0,B4(r))):i&&(e.opacity=be(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<D4;s++){const a=`border${KS[s]}Radius`;let l=P0(t,a),c=P0(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||T0(l)===T0(c)?(e[a]=Math.max(be(_0(l),_0(c),r),0),(yn.test(c)||yn.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=be(t.rotate||0,n.rotate||0,r))}function P0(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const L4=GS(0,.5,fS),B4=GS(.5,.95,xt);function GS(e,t,n){return r=>r<e?0:r>t?1:n(Qo(e,t,r))}function E0(e,t){e.min=t.min,e.max=t.max}function Rt(e,t){E0(e.x,t.x),E0(e.y,t.y)}function $0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function A0(e,t,n,r,o){return e-=t,e=Kl(e,1/n,r),o!==void 0&&(e=Kl(e,1/o,r)),e}function F4(e,t=0,n=1,r=.5,o,i=e,s=e){if(yn.test(t)&&(t=parseFloat(t),t=be(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=be(i.min,i.max,r);e===i&&(a-=t),e.min=A0(e.min,t,n,a,o),e.max=A0(e.max,t,n,a,o)}function R0(e,t,[n,r,o],i,s){F4(e,t[n],t[r],t[o],t.scale,i,s)}const j4=["x","scaleX","originX"],O4=["y","scaleY","originY"];function z0(e,t,n,r){R0(e.x,t,j4,n?n.x:void 0,r?r.x:void 0),R0(e.y,t,O4,n?n.y:void 0,r?r.y:void 0)}function M0(e){return e.translate===0&&e.scale===1}function YS(e){return M0(e.x)&&M0(e.y)}function D0(e,t){return e.min===t.min&&e.max===t.max}function V4(e,t){return D0(e.x,t.x)&&D0(e.y,t.y)}function I0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function XS(e,t){return I0(e.x,t.x)&&I0(e.y,t.y)}function L0(e){return kt(e.x)/kt(e.y)}function B0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class N4{constructor(){this.members=[]}add(t){up(this.members,t),t.scheduleRender()}remove(t){if(dp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function W4(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:g,skewY:v}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),g&&(r+=`skewX(${g}deg) `),v&&(r+=`skewY(${v}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Tr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Di=typeof window<"u"&&window.MotionDebug!==void 0,qu=["","X","Y","Z"],U4={visibility:"hidden"},F0=1e3;let H4=0;function Ku(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function QS(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=iS(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",he,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&QS(r)}function ZS({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=H4++,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,Di&&(Tr.totalNodes=Tr.resolvedTargetDeltas=Tr.recalculatedProjection=0),this.nodes.forEach(G4),this.nodes.forEach(J4),this.nodes.forEach(eD),this.nodes.forEach(Y4),Di&&window.MotionDebug.record(Tr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new z4)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new fp),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=A4(s),this.instance=s;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=M4(f,250),ll.hasAnimatedSinceResize&&(ll.hasAnimatedSinceResize=!1,this.nodes.forEach(O0))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||u.getDefaultTransition()||iD,{onLayoutAnimationStart:k,onLayoutAnimationComplete:p}=u.getProps(),h=!this.targetLayout||!XS(this.targetLayout,v)||g,y=!f&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,y);const C={...sp(b,"layout"),onPlay:k,onComplete:p};(u.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else f||O0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,dr(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(tD),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&QS(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(j0);return}this.isUpdating||this.nodes.forEach(Q4),this.isUpdating=!1,this.nodes.forEach(Z4),this.nodes.forEach(q4),this.nodes.forEach(K4),this.clearAllSnapshots();const a=vn.now();Fe.delta=jn(0,1e3/60,a-Fe.timestamp),Fe.timestamp=a,Fe.isProcessing=!0,Bu.update.process(Fe),Bu.preRender.process(Fe),Bu.render.process(Fe),Fe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Xh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(X4),this.sharedNodes.forEach(nD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,he.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){he.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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=_e(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!YS(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&(a||_r(this.latestValues)||u)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),sD(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:a}=this.options;if(!a)return _e();const l=a.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(aD))){const{scroll:u}=this.root;u&&(Co(l.x,u.offset.x),Co(l.y,u.offset.y))}return l}removeElementScroll(s){var a;const l=_e();if(Rt(l,s),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:f}=u;u!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&Rt(l,s),Co(l.x,d.offset.x),Co(l.y,d.offset.y))}return l}applyTransform(s,a=!1){const l=_e();Rt(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&_o(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),_r(u.latestValues)&&_o(l,u.latestValues)}return _r(this.latestValues)&&_o(l,this.latestValues),l}removeTransform(s){const a=_e();Rt(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!_r(c.latestValues))continue;bf(c.latestValues)&&c.updateSnapshot();const u=_e(),d=c.measurePageBox();Rt(u,d),z0(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return _r(this.latestValues)&&z0(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==Fe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=Fe.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_e(),this.relativeTargetOrigin=_e(),es(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Rt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=_e(),this.targetWithTransforms=_e()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),u4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Rt(this.target,this.layout.layoutBox),WS(this.target,this.targetDelta)):Rt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_e(),this.relativeTargetOrigin=_e(),es(this.relativeTargetOrigin,this.target,g.target),Rt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Di&&Tr.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||bf(this.parent.latestValues)||NS(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 s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Fe.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;Rt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,g=this.treeScale.y;b4(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=_e());const{target:v}=a;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($0(this.prevProjectionDelta.x,this.projectionDelta.x),$0(this.prevProjectionDelta.y,this.projectionDelta.y)),Ji(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==g||!B0(this.projectionDelta.x,this.prevProjectionDelta.x)||!B0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),Di&&Tr.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ko(),this.projectionDelta=ko(),this.projectionDeltaWithTransform=ko()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=ko();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=_e(),g=l?l.source:void 0,v=this.layout?this.layout.source:void 0,b=g!==v,k=this.getStack(),p=!k||k.members.length<=1,h=!!(b&&!p&&this.options.crossfade===!0&&!this.path.some(oD));this.animationProgress=0;let y;this.mixTargetDelta=C=>{const _=C/1e3;V0(d.x,s.x,_),V0(d.y,s.y,_),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(es(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rD(this.relativeTarget,this.relativeTargetOrigin,f,_),y&&V4(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=_e()),Rt(y,this.relativeTarget)),b&&(this.animationValues=u,I4(u,c,this.latestValues,_,h,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(dr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=he.update(()=>{ll.hasAnimatedSinceResize=!0,this.currentAnimation=$4(0,F0,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(F0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&JS(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||_e();const d=kt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=kt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Rt(a,l),_o(a,u),Ji(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new N4),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Ku("z",s,c,this.animationValues);for(let u=0;u<qu.length;u++)Ku(`rotate${qu[u]}`,s,c,this.animationValues),Ku(`skew${qu[u]}`,s,c,this.animationValues);s.render();for(const u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return U4;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=sl(s==null?void 0:s.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=sl(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!_r(this.latestValues)&&(b.transform=u?u({},""):"none",this.hasProjected=!1),b}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=W4(this.projectionDeltaWithTransform,this.treeScale,f),u&&(c.transform=u(f,c.transform));const{x:g,y:v}=this.projectionDelta;c.transformOrigin=`${g.origin*100}% ${v.origin*100}% 0`,d.animationValues?c.opacity=d===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:c.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const b in Nl){if(f[b]===void 0)continue;const{correct:k,applyTo:p}=Nl[b],h=c.transform==="none"?f[b]:k(f[b],d);if(p){const y=p.length;for(let C=0;C<y;C++)c[p[C]]=h}else c[b]=h}return this.options.layoutId&&(c.pointerEvents=d===this?sl(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(j0),this.root.sharedNodes.clear()}}}function q4(e){e.updateLayout()}function K4(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Mt(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],g=kt(f);f.min=r[d].min,f.max=f.min+g}):JS(i,n.layoutBox,r)&&Mt(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],g=kt(r[d]);f.max=f.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+g)});const a=ko();Ji(a,r,n.layoutBox);const l=ko();s?Ji(l,e.applyTransform(o,!0),n.measuredBox):Ji(l,r,n.layoutBox);const c=!YS(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:g}=d;if(f&&g){const v=_e();es(v,n.layoutBox,f.layoutBox);const b=_e();es(b,r,g.layoutBox),XS(v,b)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function G4(e){Di&&Tr.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 Y4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function X4(e){e.clearSnapshot()}function j0(e){e.clearMeasurements()}function Q4(e){e.isLayoutDirty=!1}function Z4(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function O0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function J4(e){e.resolveTargetDelta()}function eD(e){e.calcProjection()}function tD(e){e.resetSkewAndRotation()}function nD(e){e.removeLeadSnapshot()}function V0(e,t,n){e.translate=be(t.translate,0,n),e.scale=be(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function N0(e,t,n,r){e.min=be(t.min,n.min,r),e.max=be(t.max,n.max,r)}function rD(e,t,n,r){N0(e.x,t.x,n.x,r),N0(e.y,t.y,n.y,r)}function oD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const iD={duration:.45,ease:[.4,0,.1,1]},W0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),U0=W0("applewebkit/")&&!W0("chrome/")?Math.round:xt;function H0(e){e.min=U0(e.min),e.max=U0(e.max)}function sD(e){H0(e.x),H0(e.y)}function JS(e,t,n){return e==="position"||e==="preserve-aspect"&&!c4(L0(t),L0(n),.2)}function aD(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const lD=ZS({attachResizeListener:(e,t)=>Es(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Gu={current:void 0},ex=ZS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Gu.current){const e=new lD({});e.mount(window),e.setOptions({layoutScroll:!0}),Gu.current=e}return Gu.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),cD={pan:{Feature:_4},drag:{Feature:C4,ProjectionNode:ex,MeasureLayout:qS}};function q0(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&he.postRender(()=>i(t,Ns(t)))}class uD extends yr{mount(){const{current:t}=this.node;t&&(this.unmount=c3(t,n=>(q0(this.node,n,"Start"),r=>q0(this.node,r,"End"))))}unmount(){}}class dD extends yr{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=Vs(Es(this.node.current,"focus",()=>this.onFocus()),Es(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function K0(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&he.postRender(()=>i(t,Ns(t)))}class fD extends yr{mount(){const{current:t}=this.node;t&&(this.unmount=h3(t,n=>(K0(this.node,n,"Start"),(r,{success:o})=>K0(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const xf=new WeakMap,Yu=new WeakMap,hD=e=>{const t=xf.get(e.target);t&&t(e)},pD=e=>{e.forEach(hD)};function mD({root:e,...t}){const n=e||document;Yu.has(n)||Yu.set(n,{});const r=Yu.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(pD,{root:e,...t})),r[o]}function gD(e,t,n){const r=mD(t);return xf.set(e,n),r.observe(e),()=>{xf.delete(e),r.unobserve(e)}}const yD={some:0,all:1};class vD extends yr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:yD[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return gD(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(bD(t,n))&&this.startObserver()}unmount(){}}function bD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const SD={inView:{Feature:vD},tap:{Feature:fD},focus:{Feature:dD},hover:{Feature:uD}},xD={layout:{ProjectionNode:ex,MeasureLayout:qS}},wf={current:null},tx={current:!1};function wD(){if(tx.current=!0,!!Hh)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>wf.current=e.matches;e.addListener(t),t()}else wf.current=!1}const kD=[...TS,Ke,fr],CD=e=>kD.find(_S(e)),G0=new WeakMap;function _D(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Ye(o))e.addValue(r,o);else if(Ye(i))e.addValue(r,Ts(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,Ts(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Y0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class TD{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=vp,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 g=vn.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,he.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:u}=s;this.onUpdate=u,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=zc(n),this.isVariantNode=Db(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in f){const v=f[g];l[g]!==void 0&&Ye(v)&&v.set(l[g],!1)}}mount(t){this.current=t,G0.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((n,r)=>this.bindToMotionValue(r,n)),tx.current||wD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:wf.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){G0.delete(this.current),this.projection&&this.projection.unmount(),dr(this.notifyUpdate),dr(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 n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Yr.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&he.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i(),s&&s(),n.owner&&n.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 Zo){const n=Zo[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_e()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Y0.length;r++){const o=Y0[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=_D(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 n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ts(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(kS(o)||pS(o))?o=parseFloat(o):!CD(o)&&fr.test(n)&&(o=SS(t,n)),this.setBaseTarget(t,Ye(o)?o.get():o)),Ye(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=Zh(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ye(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new fp),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class nx extends TD{constructor(){super(...arguments),this.KeyframeResolver=PS}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ye(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function PD(e){return window.getComputedStyle(e)}class ED extends nx{constructor(){super(...arguments),this.type="html",this.renderInstance=Wb}readValueFromInstance(t,n){if(Yr.has(n)){const r=yp(n);return r&&r.default||0}else{const r=PD(t),o=(Ob(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return US(t,n)}build(t,n,r){tp(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return ip(t,n,r)}}class $D extends nx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=_e}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Yr.has(n)){const r=yp(n);return r&&r.default||0}return n=Ub.has(n)?n:Yh(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Kb(t,n,r)}build(t,n,r){np(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){Hb(t,n,r,o)}mount(t){this.isSVGTag=op(t.tagName),super.mount(t)}}const AD=(e,t)=>Qh(e)?new $D(t):new ED(t,{allowProjection:e!==w.Fragment}),RD=n3({...e4,...SD,...cD,...xD},AD),zD=yz(RD),MD=(e,t)=>e.find(n=>n.id===t);function X0(e,t){const n=rx(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function rx(e,t){for(const[n,r]of Object.entries(e))if(MD(r,t))return n}function DD(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function ID(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=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:n,top:r,bottom:o,right:i,left:s}}var LD=/^((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)-.*))$/,BD=fb(function(e){return LD.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),FD=!1,jD=BD,OD=function(t){return t!=="theme"},Q0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?jD:OD},Z0=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},VD=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Lh(n,r,o),xb(function(){return Bh(n,r,o)}),null},ND=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=Z0(t,n,r),l=a||Q0(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var g=u.length,v=1;v<g;v++)d.push(u[v],f[v])}var b=jh(function(k,p,h){var y=c&&k.as||o,C="",_=[],E=k;if(k.theme==null){E={};for(var P in k)E[P]=k[P];E.theme=w.useContext(Xo)}typeof k.className=="string"?C=vb(p.registered,_,k.className):k.className!=null&&(C=k.className+" ");var $=Ec(d.concat(_),p.registered,E);C+=p.key+"-"+$.name,s!==void 0&&(C+=" "+s);var j=c&&a===void 0?Q0(y):l,I={};for(var re in k)c&&re==="as"||j(re)&&(I[re]=k[re]);return I.className=C,h&&(I.ref=h),w.createElement(w.Fragment,null,w.createElement(VD,{cache:p,serialized:$,isStringTag:typeof y=="string"}),w.createElement(y,I))});return b.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=o,b.__emotion_styles=d,b.__emotion_forwardProp=a,Object.defineProperty(b,"toString",{value:function(){return s===void 0&&FD?"NO_COMPONENT_SELECTOR":"."+s}}),b.withComponent=function(k,p){var h=e(k,Ol({},n,p,{shouldForwardProp:Z0(b,p,!0)}));return h.apply(void 0,d)},b}},WD=["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"],kf=ND.bind(null);WD.forEach(function(e){kf[e]=kf(e)});const UD=new Set([...J_,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),HD=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function qD(e){return(HD.has(e)||!UD.has(e))&&e[0]!=="_"}const KD=p_(kf),GD=({baseStyle:e})=>t=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,[a]=y_(s,t2),l=Bt(e,t),c=s_({},o,l,B1(a),i),u=U1(c)(t.theme);return r?[u,r]:u};function Xu(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=qD);const o=GD({baseStyle:n}),i=KD(e,r)(o);return w.forwardRef(function(l,c){const{children:u,...d}=l,{colorMode:f,forced:g}=Bs(),v=g?f:void 0;return w.createElement(i,{ref:c,"data-theme":v,...d},u)})}function YD(){const e=new Map;return new Proxy(Xu,{apply(t,n,r){return Xu(...r)},get(t,n){return e.has(n)||e.set(n,Xu(n)),e.get(n)}})}const Ee=YD(),XD={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*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]}}},ox=w.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:c=XD,toastSpacing:u="0.5rem"}=e,[d,f]=w.useState(a),g=az();Kd(()=>{g||r==null||r()},[g]),Kd(()=>{f(a)},[a]);const v=()=>f(null),b=()=>f(a),k=()=>{g&&o()};w.useEffect(()=>{g&&i&&o()},[g,i,o]),S_(k,d);const p=w.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:u,...l}),[l,u]),h=w.useMemo(()=>DD(s),[s]);return A.jsx(zD.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:v,onHoverEnd:b,custom:{position:s},style:h,children:A.jsx(Ee.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:p,children:Bt(n,{id:t,onClose:k})})})});ox.displayName="ToastComponent";function Nt(e){return w.forwardRef(e)}var QD=typeof Element<"u",ZD=typeof Map=="function",JD=typeof Set=="function",eI=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function cl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!cl(e[r],t[r]))return!1;return!0}var i;if(ZD&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!cl(r.value[1],t.get(r.value[0])))return!1;return!0}if(JD&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(eI&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])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(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(QD&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!cl(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var tI=function(t,n){try{return cl(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const nI=Tf(tI);function rI(){const e=w.useContext(Xo);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function ix(){const e=Bs(),t=rI();return{...e,theme:t}}function oI(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0&&t!=="children"&&!w.isValidElement(n)))}function sx(e,t={}){const{styleConfig:n,...r}=t,{theme:o,colorMode:i}=ix(),s=e?F1(o,`components.${e}`):void 0,a=n||s,l=Ft({theme:o,colorMode:i},(a==null?void 0:a.defaultProps)??{},oI(r),(u,d)=>u?void 0:d),c=w.useRef({});if(a){const d=d2(a)(l);nI(c.current,d)||(c.current=d)}return c.current}function Ws(e,t={}){return sx(e,t)}function wp(e,t={}){return sx(e,t)}const J0={path:A.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[A.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"}),A.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"}),A.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Us=Nt((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...c}=e,u=en("chakra-icon",a),d=Ws("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},g={ref:t,focusable:i,className:u,__css:f},v=r??J0.viewBox;if(n&&typeof n!="string")return A.jsx(Ee.svg,{as:n,...g,...c});const b=s??J0.path;return A.jsx(Ee.svg,{verticalAlign:"middle",viewBox:v,...g,...c,children:b})});Us.displayName="Icon";function iI(e){return A.jsx(Us,{viewBox:"0 0 24 24",...e,children:A.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 sI(e){return A.jsx(Us,{viewBox:"0 0 24 24",...e,children:A.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 ey(e){return A.jsx(Us,{viewBox:"0 0 24 24",...e,children:A.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 aI=NR({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),kp=Nt((e,t)=>{const n=Ws("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=Gr(e),c=en("chakra-spinner",a),u={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${aI} ${i} linear infinite`,...n};return A.jsx(Ee.div,{ref:t,__css:u,className:c,...l,children:r&&A.jsx(Ee.span,{srOnly:!0,children:r})})});kp.displayName="Spinner";const[lI,Cp]=gr({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[cI,_p]=gr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),ax={info:{icon:sI,colorScheme:"blue"},warning:{icon:ey,colorScheme:"orange"},success:{icon:iI,colorScheme:"green"},error:{icon:ey,colorScheme:"red"},loading:{icon:kp,colorScheme:"blue"}};function uI(e){return ax[e].colorScheme}function dI(e){return ax[e].icon}const lx=Nt(function(t,n){const{status:r="info",addRole:o=!0,...i}=Gr(t),s=t.colorScheme??uI(r),a=wp("Alert",{...t,colorScheme:s}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...a.container};return A.jsx(lI,{value:{status:r},children:A.jsx(cI,{value:a,children:A.jsx(Ee.div,{"data-status":r,role:o?"alert":void 0,ref:n,...i,className:en("chakra-alert",t.className),__css:l})})})});lx.displayName="Alert";function cx(e){const{status:t}=Cp(),n=dI(t),r=_p(),o=t==="loading"?r.spinner:r.icon;return A.jsx(Ee.span,{display:"inherit","data-status":t,...e,className:en("chakra-alert__icon",e.className),__css:o,children:e.children||A.jsx(n,{h:"100%",w:"100%"})})}cx.displayName="AlertIcon";const ux=Nt(function(t,n){const r=_p(),{status:o}=Cp();return A.jsx(Ee.div,{ref:n,"data-status":o,...t,className:en("chakra-alert__title",t.className),__css:r.title})});ux.displayName="AlertTitle";const dx=Nt(function(t,n){const{status:r}=Cp(),o=_p(),i={display:"inline",...o.description};return A.jsx(Ee.div,{ref:n,"data-status":r,...t,className:en("chakra-alert__desc",t.className),__css:i})});dx.displayName="AlertDescription";function fI(e){return A.jsx(Us,{focusable:"false","aria-hidden":!0,...e,children:A.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 fx=Nt(function(t,n){const r=Ws("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=Gr(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return A.jsx(Ee.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...s},...a,children:o||A.jsx(fI,{width:"1em",height:"1em"})})});fx.displayName="CloseButton";const hI=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:s,description:a,colorScheme:l,icon:c}=e,u=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return A.jsxs(lx,{addRole:!1,status:t,variant:n,id:u==null?void 0:u.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[A.jsx(cx,{children:c}),A.jsxs(Ee.div,{flex:"1",maxWidth:"100%",children:[o&&A.jsx(ux,{id:u==null?void 0:u.title,children:o}),a&&A.jsx(dx,{id:u==null?void 0:u.description,display:"block",children:a})]}),i&&A.jsx(fx,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function hx(e={}){const{render:t,toastComponent:n=hI}=e;return o=>typeof t=="function"?t({...o,...e}):A.jsx(n,{...o,...e})}const pI={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},fn=mI(pI);function mI(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,i)=>{r(s=>({...s,[i]:s[i].filter(a=>a.id!=o)}))},notify:(o,i)=>{const s=gI(o,i),{position:a,id:l}=s;return r(c=>{const d=a.includes("top")?[s,...c[a]??[]]:[...c[a]??[],s];return{...c,[a]:d}}),l},update:(o,i)=>{o&&r(s=>{const a={...s},{position:l,index:c}=X0(a,o);return l&&c!==-1&&(a[l][c]={...a[l][c],...i,message:hx(i)}),a})},closeAll:({positions:o}={})=>{r(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,c)=>(l[c]=i[c].map(u=>({...u,requestClose:!0})),l),{...i}))},close:o=>{r(i=>{const s=rx(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!X0(fn.getState(),o).position}}let ty=0;function gI(e,t={}){ty+=1;const n=t.id??ty,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>fn.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[px,yI]=gr({strict:!1,name:"PortalContext"}),Tp="chakra-portal",vI=".chakra-portal",bI=e=>A.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),SI=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=w.useState(null),i=w.useRef(null),[,s]=w.useState({});w.useEffect(()=>s({}),[]);const a=yI(),l=tz();zo(()=>{if(!r)return;const u=r.ownerDocument,d=t?a??u.body:u.body;if(!d)return;i.current=u.createElement("div"),i.current.className=Tp,d.appendChild(i.current),s({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[r]);const c=l!=null&&l.zIndex?A.jsx(bI,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return i.current?xh.createPortal(A.jsx(px,{value:i.current,children:c}),i.current):A.jsx("span",{ref:u=>{u&&o(u)}})},xI=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=w.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=Tp),l},[o]),[,a]=w.useState({});return zo(()=>a({}),[]),zo(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?xh.createPortal(A.jsx(px,{value:r?s:null,children:t}),s):null};function Ic(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?A.jsx(xI,{containerRef:n,...r}):A.jsx(SI,{...r})}Ic.className=Tp;Ic.selector=vI;Ic.displayName="Portal";const[wI,kI]=gr({name:"ToastOptionsContext",strict:!1}),CI=e=>{const t=w.useSyncExternalStore(fn.subscribe,fn.getState,fn.getState),{motionVariants:n,component:r=ox,portalProps:o,animatePresenceProps:i}=e,a=Object.keys(t).map(l=>{const c=t[l];return A.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,id:`chakra-toast-manager-${l}`,style:ID(l),children:A.jsx(cz,{...i,initial:!1,children:c.map(u=>A.jsx(r,{motionVariants:n,...u},u.id))})},l)});return A.jsx(Ic,{...o,children:a})},_I=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return A.jsxs(nz,{theme:r,...i,children:[A.jsx(wI,{value:o==null?void 0:o.defaultOptions,children:n}),A.jsx(CI,{...o})]})},TI=_I(ib),mx=Nt(function(t,n){const r=Ws("Badge",t),{className:o,...i}=Gr(t);return A.jsx(Ee.span,{ref:n,className:en("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});mx.displayName="Badge";const $s=Ee("div");$s.displayName="Box";var PI=()=>typeof document<"u",ny=!1,Hs=null,Hr=!1,Cf=!1,_f=new Set;function Pp(e,t){_f.forEach(n=>n(e,t))}var EI=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function $I(e){return!(e.metaKey||!EI&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ry(e){Hr=!0,$I(e)&&(Hs="keyboard",Pp("keyboard",e))}function to(e){if(Hs="pointer",e.type==="mousedown"||e.type==="pointerdown"){Hr=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;Pp("pointer",e)}}function AI(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function RI(e){AI(e)&&(Hr=!0,Hs="virtual")}function zI(e){e.target===window||e.target===document||e.target instanceof Element&&e.target.hasAttribute("tabindex")||(!Hr&&!Cf&&(Hs="virtual",Pp("virtual",e)),Hr=!1,Cf=!1)}function MI(){Hr=!1,Cf=!0}function oy(){return Hs!=="pointer"}function DI(){if(!PI()||ny)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){Hr=!0,e.apply(this,n)},document.addEventListener("keydown",ry,!0),document.addEventListener("keyup",ry,!0),document.addEventListener("click",RI,!0),window.addEventListener("focus",zI,!0),window.addEventListener("blur",MI,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",to,!0),document.addEventListener("pointermove",to,!0),document.addEventListener("pointerup",to,!0)):(document.addEventListener("mousedown",to,!0),document.addEventListener("mousemove",to,!0),document.addEventListener("mouseup",to,!0)),ny=!0}function II(e){DI(),e(oy());const t=()=>e(oy());return _f.add(t),()=>{_f.delete(t)}}const[LI,BI]=gr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[FI,gx]=gr({strict:!1,name:"FormControlContext"});function jI(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,a=w.useId(),l=t||`field-${a}`,c=`${l}-label`,u=`${l}-feedback`,d=`${l}-helptext`,[f,g]=w.useState(!1),[v,b]=w.useState(!1),[k,p]=w.useState(!1),h=w.useCallback((P={},$=null)=>({id:d,...P,ref:Il($,j=>{j&&b(!0)})}),[d]),y=w.useCallback((P={},$=null)=>({...P,ref:$,"data-focus":Q(k),"data-disabled":Q(o),"data-invalid":Q(r),"data-readonly":Q(i),id:P.id!==void 0?P.id:c,htmlFor:P.htmlFor!==void 0?P.htmlFor:l}),[l,o,k,r,i,c]),C=w.useCallback((P={},$=null)=>({id:u,...P,ref:Il($,j=>{j&&g(!0)}),"aria-live":"polite"}),[u]),_=w.useCallback((P={},$=null)=>({...P,...s,ref:$,role:"group","data-focus":Q(k),"data-disabled":Q(o),"data-invalid":Q(r),"data-readonly":Q(i)}),[s,o,k,r,i]),E=w.useCallback((P={},$=null)=>({...P,ref:$,role:"presentation","aria-hidden":!0,children:P.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!k,onFocus:()=>p(!0),onBlur:()=>p(!1),hasFeedbackText:f,setHasFeedbackText:g,hasHelpText:v,setHasHelpText:b,id:l,labelId:c,feedbackId:u,helpTextId:d,htmlProps:s,getHelpTextProps:h,getErrorMessageProps:C,getRootProps:_,getLabelProps:y,getRequiredIndicatorProps:E}}const OI=Nt(function(t,n){const r=wp("Form",t),o=Gr(t),{getRootProps:i,htmlProps:s,...a}=jI(o),l=en("chakra-form-control",t.className);return A.jsx(FI,{value:a,children:A.jsx(LI,{value:r,children:A.jsx(Ee.div,{...i({},n),className:l,__css:r.container})})})});OI.displayName="FormControl";const VI=Nt(function(t,n){const r=gx(),o=BI(),i=en("chakra-form__helper-text",t.className);return A.jsx(Ee.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:o.helperText,className:i})});VI.displayName="FormHelperText";function NI(e){const t=gx(),{id:n,disabled:r,readOnly:o,required:i,isRequired:s,isInvalid:a,isReadOnly:l,isDisabled:c,onFocus:u,onBlur:d,...f}=e,g=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.hasFeedbackText&&(t!=null&&t.isInvalid)&&g.push(t.feedbackId),t!=null&&t.hasHelpText&&g.push(t.helpTextId),{...f,"aria-describedby":g.join(" ")||void 0,id:n??(t==null?void 0:t.id),isDisabled:r??c??(t==null?void 0:t.isDisabled),isReadOnly:o??l??(t==null?void 0:t.isReadOnly),isRequired:i??s??(t==null?void 0:t.isRequired),isInvalid:a??(t==null?void 0:t.isInvalid),onFocus:mt(t==null?void 0:t.onFocus,u),onBlur:mt(t==null?void 0:t.onBlur,d)}}const WI={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function UI(e={}){const t=NI(e),{isDisabled:n,isReadOnly:r,isRequired:o,isInvalid:i,id:s,onBlur:a,onFocus:l,"aria-describedby":c}=t,{defaultChecked:u,isChecked:d,isFocusable:f,onChange:g,isIndeterminate:v,name:b,value:k,tabIndex:p=void 0,"aria-label":h,"aria-labelledby":y,"aria-invalid":C,..._}=e,E=j1(_,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),P=Ka(g),$=Ka(a),j=Ka(l),[I,re]=w.useState(!1),[Ne,Pt]=w.useState(!1),[ft,Wt]=w.useState(!1),tn=w.useRef(!1);w.useEffect(()=>II(U=>{tn.current=U}),[]);const X=w.useRef(null),[z,O]=w.useState(!0),[V,se]=w.useState(!!u),pe=d!==void 0,N=pe?d:V,ht=w.useCallback(U=>{if(r||n){U.preventDefault();return}pe||se(N?U.currentTarget.checked:v?!0:U.currentTarget.checked),P==null||P(U)},[r,n,N,pe,v,P]);zo(()=>{X.current&&(X.current.indeterminate=!!v)},[v]),Kd(()=>{n&&re(!1)},[n,re]),zo(()=>{const U=X.current;if(!(U!=null&&U.form))return;const rt=()=>{se(!!u)};return U.form.addEventListener("reset",rt),()=>{var Et;return(Et=U.form)==null?void 0:Et.removeEventListener("reset",rt)}},[]);const Vn=n&&!f,We=w.useCallback(U=>{U.key===" "&&Wt(!0)},[Wt]),nn=w.useCallback(U=>{U.key===" "&&Wt(!1)},[Wt]);zo(()=>{if(!X.current)return;X.current.checked!==N&&se(X.current.checked)},[X.current]);const vr=w.useCallback((U={},rt=null)=>{const Et=Xr=>{I&&Xr.preventDefault(),Wt(!0)};return{...U,ref:rt,"data-active":Q(ft),"data-hover":Q(Ne),"data-checked":Q(N),"data-focus":Q(I),"data-focus-visible":Q(I&&tn.current),"data-indeterminate":Q(v),"data-disabled":Q(n),"data-invalid":Q(i),"data-readonly":Q(r),"aria-hidden":!0,onMouseDown:mt(U.onMouseDown,Et),onMouseUp:mt(U.onMouseUp,()=>Wt(!1)),onMouseEnter:mt(U.onMouseEnter,()=>Pt(!0)),onMouseLeave:mt(U.onMouseLeave,()=>Pt(!1))}},[ft,N,n,I,Ne,v,i,r]),qs=w.useCallback((U={},rt=null)=>({...U,ref:rt,"data-active":Q(ft),"data-hover":Q(Ne),"data-checked":Q(N),"data-focus":Q(I),"data-focus-visible":Q(I&&tn.current),"data-indeterminate":Q(v),"data-disabled":Q(n),"data-invalid":Q(i),"data-readonly":Q(r)}),[ft,N,n,I,Ne,v,i,r]),si=w.useCallback((U={},rt=null)=>({...E,...U,ref:Il(rt,Et=>{Et&&O(Et.tagName==="LABEL")}),onClick:mt(U.onClick,()=>{var Et;z||((Et=X.current)==null||Et.click(),requestAnimationFrame(()=>{var Xr;(Xr=X.current)==null||Xr.focus({preventScroll:!0})}))}),"data-disabled":Q(n),"data-checked":Q(N),"data-invalid":Q(i)}),[E,n,N,i,z]),Ks=w.useCallback((U={},rt=null)=>({...U,ref:Il(X,rt),type:"checkbox",name:b,value:k,id:s,tabIndex:p,onChange:mt(U.onChange,ht),onBlur:mt(U.onBlur,$,()=>re(!1)),onFocus:mt(U.onFocus,j,()=>re(!0)),onKeyDown:mt(U.onKeyDown,We),onKeyUp:mt(U.onKeyUp,nn),required:o,checked:N,disabled:Vn,readOnly:r,"aria-label":h,"aria-labelledby":y,"aria-invalid":C?!!C:i,"aria-describedby":c,"aria-disabled":n,"aria-checked":v?"mixed":N,style:WI}),[b,k,s,p,ht,$,j,We,nn,o,N,Vn,r,h,y,C,i,c,n,v]),Gs=w.useCallback((U={},rt=null)=>({...U,ref:rt,onMouseDown:mt(U.onMouseDown,HI),"data-disabled":Q(n),"data-checked":Q(N),"data-invalid":Q(i)}),[N,n,i]);return{state:{isInvalid:i,isFocused:I,isChecked:N,isActive:ft,isHovered:Ne,isIndeterminate:v,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:si,getCheckboxProps:vr,getIndicatorProps:qs,getInputProps:Ks,getLabelProps:Gs,htmlProps:E}}function HI(e){e.preventDefault(),e.stopPropagation()}function Ii(e){return typeof e=="function"}function qI(...e){return t=>e.reduce((n,r)=>r(n),t)}const KI=e=>function(...n){let r=[...n],o=n[n.length-1];return LA(o)&&r.length>1?r=r.slice(0,r.length-1):o=e,qI(...r.map(i=>s=>Ii(i)?i(s):YI(s,i)))(o)},GI=KI(ib);function YI(...e){return Ft({},...e,yx)}function yx(e,t,n,r){if((Ii(e)||Ii(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...o)=>{const i=Ii(e)?e(...o):e,s=Ii(t)?t(...o):t;return Ft({},i,s,yx)};if(ut(e)&&Hd(t)||Hd(e)&&ut(t))return t}const jo=Nt(function(t,n){const{direction:r,align:o,justify:i,wrap:s,basis:a,grow:l,shrink:c,...u}=t,d={display:"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:c};return A.jsx(Ee.div,{ref:n,__css:d,...u})});jo.displayName="Flex";const vx=Nt(function(t,n){const r=wp("Switch",t),{spacing:o="0.5rem",children:i,...s}=Gr(t),{getIndicatorProps:a,getInputProps:l,getCheckboxProps:c,getRootProps:u,getLabelProps:d}=UI(s),f=w.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),g=w.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),v=w.useMemo(()=>({userSelect:"none",marginStart:o,...r.label}),[o,r.label]);return A.jsxs(Ee.label,{...u(),className:en("chakra-switch",t.className),__css:f,children:[A.jsx("input",{className:"chakra-switch__input",...l({},n)}),A.jsx(Ee.span,{...c(),className:"chakra-switch__track",__css:g,children:A.jsx(Ee.span,{__css:r.thumb,className:"chakra-switch__thumb",...a()})}),i&&A.jsx(Ee.span,{className:"chakra-switch__label",...d(),__css:v,children:i})]})});vx.displayName="Switch";function XI(e,t){const n=e??"bottom",o={"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"}}[n];return(o==null?void 0:o[t])??n}function QI(e,t){const n=o=>({...t,...o,position:XI((o==null?void 0:o.position)??(t==null?void 0:t.position),e)}),r=o=>{const i=n(o),s=hx(i);return fn.notify(s,i)};return r.update=(o,i)=>{fn.update(o,n(i))},r.promise=(o,i)=>{const s=r({...i.loading,status:"loading",duration:null});o.then(a=>r.update(s,{status:"success",duration:5e3,...Bt(i.success,a)})).catch(a=>r.update(s,{status:"error",duration:5e3,...Bt(i.error,a)}))},r.closeAll=fn.closeAll,r.close=fn.close,r.isActive=fn.isActive,r}function ZI(e){const{theme:t}=ix(),n=kI();return w.useMemo(()=>QI(t.direction,{...n,...e}),[e,t.direction,n])}const er=Nt(function(t,n){const r=Ws("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=Gr(t),c=B1({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return A.jsx(Ee.p,{ref:n,className:en("chakra-text",t.className),...c,...l,__css:r})});er.displayName="Text";var JI=Object.create,bx=Object.defineProperty,eL=Object.getOwnPropertyDescriptor,tL=Object.getOwnPropertyNames,nL=Object.getPrototypeOf,rL=Object.prototype.hasOwnProperty,Ep=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),oL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of tL(t))!rL.call(e,o)&&o!==n&&bx(e,o,{get:()=>t[o],enumerable:!(r=eL(t,o))||r.enumerable});return e},iL=(e,t,n)=>(n=e!=null?JI(nL(e)):{},oL(t||!e||!e.__esModule?bx(n,"default",{value:e,enumerable:!0}):n,e)),sL=Ep(e=>{var t=e&&e.__awaiter||function(r,o,i,s){function a(l){return l instanceof i?l:new i(function(c){c(l)})}return new(i||(i=Promise))(function(l,c){function u(g){try{f(s.next(g))}catch(v){c(v)}}function d(g){try{f(s.throw(g))}catch(v){c(v)}}function f(g){g.done?l(g.value):a(g.value).then(u,d)}f((s=s.apply(r,o||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Client=void 0;var n=class{constructor(r,o){this.write=r,this.requests={},this.id=0,this.mtu=65535,o&&o.mtu&&(this.mtu=o.mtu)}destroy(){this.requests=null,this.write=null}messageReceived(r){let o=!!(r.err||r.ack||r.fin),i=r.ack||r.err||r.sig||r.fin,s=this.requests[i],a;if(s&&typeof s.cb=="function"){let l;r.fin?s.cb.call(s.context,null,null,!0):s.canceled?console.log("This request is canceled. Not calling the callback."):(l=r.err?r.data:null,a=s.cb.call(s.context,l,r.data,o))}return o&&delete this.requests[i],a}requestAsync(r,o){return t(this,void 0,void 0,function*(){return new Promise((i,s)=>{this.request(r,o,(a,l)=>{if(a)return s(l);i(l)})})})}request(r,o,i){this.id++;let s={op:r};return Array.isArray(o)&&(s.args=o),i&&(s.id=this.id,this.requests[s.id]={cb:i,context:{id:s.id,cancel:()=>{setTimeout((a=>()=>{this.requests[a]&&console.log("rpc-client.js: timeout, the request has not been removed while it was canceled",a,this.requests[a])})(s.id),1500),this.requests[s.id].canceled=!0,this.write({end:s.id})},emit:a=>this.write({sig:s.id,data:a})}}),this.write(s),s.id||null}send(r,o){this.write({push:r,data:o})}end(r){this.write({end:r})}};e.Client=n}),aL=Ep(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Server=void 0;var t=console.log,n=class{constructor(r){this.modules={},this.methods={},this.requests={},this.clientIdCounter=0,this.requestId=0,this.invokeId=0,r&&this.insertMethods(r)}destroy(){for(let r in this.requests){for(let o in this.requests[r])typeof this.requests[r][o].end=="function"&&this.requests[r][o].end();delete this.requests[r]}}insertMethods(r){this.addMethods("",r)}addMethods(r,o){let i=r?r+".":"";for(let s in o)if(s!=="_"&&s.substring(0,1)!=="_"&&o["_"+s])if(typeof o[s]=="function"){let a=o["_"+s].name||s;o["_"+s].fullname=i+a;try{this.modules[i+a]=o["_"+s],this.methods[i+a]=o[s]}catch(l){console.log("Kaboom! ",l)}}else typeof o[s]=="object"&&this.addMethods(i+s,o[s])}listMethods(r,o,i){let s={};function a(c,u){let d={};for(let f in c)u[f]||(d[f]=c[f]);return d}let l={fullname:!0};for(let c in this.modules)s[c]=a(this.modules[c],l);i(null,s)}clientOffline(r){for(let o in this.requests[r])typeof this.requests[r][o].end=="function"&&this.requests[r][o].end(),delete this.requests[r][o]}closeAll(){for(let r in this.requests)for(let o in this.requests[r])typeof this.requests[r][o].end=="function"&&this.requests[r][o].end(),delete this.requests[r][o]}parse(r,o,i,s){if(typeof s=="number")try{if(r.push){this.requests[s]&&this.requests[s][r.push]&&this.invokeRaw(r,o,this.requests[s][r.push].context,s);return}if(r.sig){this.requests[s]&&this.requests[s][r.sig]&&this.invokeRaw(r,o,this.requests[s][r.sig].context,s);return}if(r.end){let a=r.end;if(this.requests[s]&&this.requests[s][a]){typeof this.requests[s][a].end=="function"&&this.requests[s][a].end(),o({fin:a}),delete this.requests[s][a];return}if(!this.requests[s][a])return;typeof this.requests[s][a].end=="function"&&this.requests[a].end();return}if(r.op==="methods"){this.listMethods(r.args,i,function(a,l){o({ack:r.id,data:l})});return}if(typeof this.methods[r.op]>"u"){o({err:r.id,data:{code:300,msg:"No method found: "+r.op}});return}this.invokeRaw(r,o,i,s)}catch(a){t("Dynamic RPC failed to execute ",r.op,a,a.stack);try{console.log("RPC caught error",a.stack),o({ack:r.id,err:r.id,data:"caught error in "+r.op+": "+a.toString(),debug:a.stack})}catch(l){o({err:r.id,data:"rpc",errmsg:l.toString()})}}}emit(r,o){for(let i in this.requests)if(this.requests[i]){for(let s in this.requests[i])if(this.requests[i][s].op===r){let{send:a}=this.requests[i][s];a({sig:s,data:o})}}}invokeRaw(r,o,i,s){if(++this.requestId,!this.requests[s])return console.log("Session not opened for client. Use Server.open() first");if(r.push){let a=this.requests[s][r.push];if(r.data===null){console.log("msg.data is null:",r);return}a.data(r.data);return}if(r.sig){let a=this.requests[s][r.sig];try{this.methods[a.op].call(this.requests[s][r.sig],r.data,{send:l=>{typeof a.end=="function"&&a.end(),this.requests[s][r.sig]&&delete this.requests[s][r.sig],o({ack:r.sig,data:l})},emit:l=>(this.requests[s][r.sig]||typeof a.end=="function"&&a.end(),o({sig:r.sig,data:l})),error:l=>{typeof a.end=="function"&&a.end(),delete this.requests[s][r.sig],o({err:r.sig,data:l})},close:l=>{typeof a.end=="function"&&a.end(),delete this.requests[s][r.sig],o({fin:r.sig})}},i)}catch(l){console.log("Calling the method in RPC failed:",r.op,r.args,l.stack),delete this.requests[s][r.sig],o({err:r.sig,data:{msg:"rpc failed during execution of "+r.op,code:578}})}return}if(typeof r.id>"u"){let a={};this.methods[r.op].call(a,{args:r.args},{send:()=>{t("Trying to send response to event ("+r.op+"). Dropping.")},emit:()=>{t("Trying to emit response to event ("+r.op+"). Dropping.")},error:()=>{t("Trying to respond with error to event ("+r.op+"). Dropping.")},close:()=>{t("Trying to close event ("+r.op+"). Dropping.")}},i)}else{let a={id:r.id,op:r.op,args:r.args,context:i,end:null,send:o};this.requests[s]||(this.requests[s]={}),this.requests[s][r.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:",s,"msg",r,"stack trace:",new Error().stack),typeof this.requests[s][r.id].end=="function"&&this.requests[s][r.id].end(),delete this.requests[s][r.id],console.log("Removed old request by same id from same client...")),this.requests[s][r.id]=a;try{this.methods[r.op].call(a,{args:r.args},{send:l=>{typeof a.end=="function"&&a.end(),this.requests[s][r.id]&&delete this.requests[s][r.id],o({ack:r.id,data:l})},emit:l=>(this.requests[s][r.id]||typeof a.end=="function"&&a.end(),o({sig:r.id,data:l})),error:l=>{typeof a.end=="function"&&a.end(),delete this.requests[s][r.id],o({err:r.id,data:l})},close:l=>{typeof a.end=="function"&&a.end(),delete this.requests[s][r.id],o({fin:r.id})}},i)}catch(l){console.log("Calling the method in RPC failed:",r.op,r.args,l.stack),delete this.requests[s][r.id],o({err:r.id,data:{msg:"rpc failed during execution of "+r.op,code:578}})}}}close(r){for(let o in this.requests[r])typeof this.requests[r][o].end=="function"&&this.requests[r][o].end(),delete this.requests[r][o];delete this.requests[r]}open(){let r=++this.clientIdCounter;return this.requests[r]={},r}};e.Server=n}),lL=Ep(e=>{var t=e&&e.__createBinding||(Object.create?function(r,o,i,s){s===void 0&&(s=i),Object.defineProperty(r,s,{enumerable:!0,get:function(){return o[i]}})}:function(r,o,i,s){s===void 0&&(s=i),r[s]=o[i]}),n=e&&e.__exportStar||function(r,o){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(sL(),e),n(aL(),e)}),cL=iL(lL(),1),W=class Sx extends Error{constructor(t){super(),this.code=t.code,this.msg=t.msg,this.debug=t.debug,Object.setPrototypeOf(this,Sx.prototype)}},uL=class{constructor(e){this.client=e}async get(e){try{return await this.client.requestAsync("v1.user.get",[e])}catch(t){throw new W(t)}}async current(){try{return await this.client.requestAsync("v1.user.current",[])}catch(e){throw new W(e)}}async list(){try{return await this.client.requestAsync("v1.user.list",[])}catch(e){throw new W(e)}}},dL=class{constructor(e){this.client=e}async list(e,t){try{return await this.client.requestAsync("v1.activity.kanban.list",[e,...t?[t]:[]])}catch(n){throw new W(n)}}async load(e){try{return await this.client.requestAsync("v1.activity.kanban.load",[e])}catch(t){throw new W(t)}}async updatePriority(e,t){try{return await this.client.requestAsync("v1.activity.kanban.updatePriority",[{activityId:e,priority:t}])}catch(n){throw new W(n)}}},fL=class{constructor(e){this.client=e,this.kanban=new dL(e)}async list(e,t,n){try{return(await this.client.requestAsync("v1.activity.list",[e,t,n])).activities}catch(r){throw new W(r)}}async get(e){try{return await this.client.requestAsync("v1.activity.get",[e])}catch(t){throw new W(t)}}async create(e,t,n){try{return await this.client.requestAsync("v1.activity.create",[e,t,...n?[n]:[]])}catch(r){throw new W(r)}}async update(e,t){try{return await this.client.requestAsync("v1.activity.update",[e,...t?[t]:[]])}catch(n){throw new W(n)}}async remove(e){try{return await this.client.requestAsync("v1.activity.remove",[e])}catch(t){throw new W(t)}}},hL=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 W(e)}}async list(){try{return await this.client.requestAsync("v1.workspace.list",[])}catch(e){throw new W(e)}}async publishTemplate(e){try{return await this.client.requestAsync("v1.workspace.product.publishTemplate",[e])}catch(t){throw new W(t)}}async isProductInstalled(e){try{return await this.client.requestAsync("v1.workspace.product.isProductInstalled",[e])}catch(t){throw new W(t)}}async get(e){try{return await this.client.requestAsync("v1.workspace.product.get",[e])}catch(t){throw new W(t)}}async install(e){try{return await this.client.requestAsync("v1.workspace.product.install",[e])}catch(t){throw new W(t)}}async getManifest(e){try{return await this.client.requestAsync("v1.workspace.product.getManifest",[e])}catch(t){throw new W(t)}}},pL=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])}},mL=class{constructor(e){this.client=e}async open(e,t,n){await this.client.requestAsync("v1.ui.snackbar.open",[e,t,n])}},gL=class{constructor(e){this.client=e}async uploadFile(e,t,n){return await this.client.requestAsync("v1.ui.file.upload",[await this.toBase64(e),t,!!(n!=null&&n.isPublic)])}toBase64(e){return new Promise((t,n)=>{let r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result??""),r.onerror=n})}},yL=class{constructor(e){this.client=e,this.activity=new pL(e),this.snackbar=new mL(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 gL(e)}},vL=class{constructor(e){this.client=e}async list(){try{return await this.client.requestAsync("v1.process.list",[])}catch(e){throw new W(e)}}async get(e){try{return await this.client.requestAsync("v1.process.get",[e])}catch(t){throw new W(t)}}async getFieldIdByName(e,t){var n,r;try{return(r=Object.values(((n=await this.get(e))==null?void 0:n.fields)||{}).find(o=>o.label.toLowerCase()===t))==null?void 0:r._id}catch(o){throw new W(o)}}},bL=["https://app.hailer.com","https://next.hailer.com","https://testapp.hailer.biz","https://app.hailer.biz","https://localhost:9443"],Gl="https://api.hailer.com",SL={"https://app.hailer.com":Gl,"https://next.hailer.com":Gl,"https://app.hailer.biz":"https://api.hailer.biz","https://testapp.hailer.biz":"https://testapi.hailer.biz","https://localhost:9443":"http://localhost:1337"},xL=class{constructor(e){this.options=e}async config(){let e="manifest.json",t=window.location.origin+window.location.pathname,n=t+e;t.endsWith("/index.html")&&(n=t.slice(0,-10)+e);let r=await(await fetch(n)).text(),o=JSON.parse(r).appId;return await(await fetch(this.options.publicBackendUrl+"/api/v3/app/public",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify([o])})).json()}},wL=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 W(await t.json());return await t.json()}async submit(e,t){let n=await fetch(this.options.publicBackendUrl+"/api/v2/forms/activity/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify([e,t])});if(!n.ok)throw new W(await n.json());return await n.json()}},kL=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 W(await t.json());return await t.json()}async dataAsObject(e){let t=(await this.data(e)).data,n=[];return t.rows.forEach(r=>{let o={};t.headers.forEach((i,s)=>{o[i]=r[s]}),n.push(o)}),n}},CL=class{constructor(e){this.options=e}async list(e,t){let n=await fetch(this.options.publicBackendUrl+"/api/v3/product/list",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify([e,t])});if(!n.ok)throw new W(await n.json());return await n.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 W(await t.json());return await t.json()}},_L=class{constructor(e){this.insight=new kL(e),this.form=new wL(e),this.app=new xL(e),this.product=new CL(e)}},TL=class{constructor(e){this.client=e}async list(){try{return await this.client.requestAsync("v1.workflow.list",[])}catch(e){throw new W(e)}}async get(e){try{return await this.client.requestAsync("v1.workflow.get",[e])}catch(t){throw new W(t)}}},PL=class{constructor(e){this.client=e,this.config={update:async(t,n)=>{try{return await this.client.requestAsync("v1.app.config.update",[t,n])}catch(r){throw console.log("Errorasd ",r),new W(r)}}},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 W(t)}}async get(e){try{return await this.client.requestAsync("v1.app.product.get",[e])}catch(t){throw new W(t)}}async install(e){try{return await this.client.requestAsync("v1.app.product.install",[e])}catch(t){throw new W(t)}}async getInstalledVersion(e){try{return await this.client.requestAsync("v1.app.product.getInstalledVersion",[e])}catch(t){throw new W(t)}}async getManifest(e){try{return await this.client.requestAsync("v1.app.product.getManifest",[e])}catch(t){throw new W(t)}}},EL=class{constructor(e){this.client=e}async data(e,t){try{return await this.client.requestAsync("v1.insight.data",[e,...t?[t]:[]])}catch(n){throw new W(n)}}async list(){try{return await this.client.requestAsync("v1.insight.list",[])}catch(e){throw new W(e)}}async update(e,t){try{return await this.client.requestAsync("v1.insight.update",[e,t])}catch(n){throw new W(n)}}},$L=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 W(t)}}}},AL=class{constructor(e){this.client=e}async list(e,t){try{return await this.client.requestAsync("v1.product.list",[e,t])}catch(n){throw new W(n)}}async get(e){try{return await this.client.requestAsync("v1.product.get",[e])}catch(t){throw new W(t)}}async create(e){try{return await this.client.requestAsync("v1.product.create",[e])}catch(t){throw new W(t)}}async update(e,t){try{return await this.client.requestAsync("v1.product.update",[e,t])}catch(n){throw new W(n)}}async remove(e){try{return await this.client.requestAsync("v1.product.remove",[e])}catch(t){throw new W(t)}}async setPublic(e,t){try{return await this.client.requestAsync("v1.product.setPublic",[e,t])}catch(n){throw new W(n)}}},RL=class{constructor(e={}){this.options=e,this.outside=null;let t=e.allowedUrls??bL;this.apiVersion=e.apiVersion??1,this.subscribedSignals=e.subscribedSignals||[],this.client=new cL.Client(r=>{this.hostUrl&&parent.postMessage(JSON.stringify(r),this.hostUrl)}),this.user=new uL(this.client),this.app=new PL(this.client),this.activity=new fL(this.client),this.insight=new EL(this.client),this.workspace=new hL(this.client),this.process=new vL(this.client),this.workflow=new TL(this.client),this.permission=new $L(this.client),this.public=new _L(this.options),this.ui=new yL(this.client),this.product=new AL(this.client);let n=JSON.stringify({op:"register",args:[]});window.location===window.parent.location?(this.options.publicBackendUrl||(this.options.publicBackendUrl=Gl),this.public.app.config().then(r=>{var o,i;this.outside=!0,(i=(o=this.options).outside)==null||i.call(o,r)}).catch(r=>{var o,i;(i=(o=this.options).error)==null||i.call(o,r),console.error("Failed to get app configuration in Public App.",r)})):(t.forEach(r=>parent.postMessage(n,r)),this.timer=setTimeout(()=>{var r,o;this.outside=!0,(o=(r=this.options).outside)==null||o.call(r)},100)),this.createEventListener()}createEventListener(){window.addEventListener("message",async e=>{var n,r;let t=e.data;try{let o=JSON.parse(t);if(o.op==="register"){if(this.appId){console.error("App Id is already set...! Are you using hot-reload?");return}clearTimeout(this.timer),this.appId=o.data.appId,this.workspaceId=o.data.workspaceId,this.hostUrl=e.origin,this.options.publicBackendUrl||(this.options.publicBackendUrl=SL[this.hostUrl]||Gl),this.client.request("v1.ui.settings",[],(i,s,a)=>{var l,c;if(i){console.log("ui.settings error:",i,s);return}(c=(l=this.options).settings)==null||c.call(l,s)}),this.client.request("v1.config",[],(i,s,a)=>{var l,c;if(i){console.log("config error:",i,s);return}(c=(l=this.options).config)==null||c.call(l,s)}),this.subscribedSignals&&this.client.request("v1.signals",[this.subscribedSignals],(i,s,a)=>{var l,c;if(i){console.log("signals error:",i,s);return}s&&((c=(l=this.options).signals)==null||c.call(l,s))}),this.outside=!1,(r=(n=this.options).connected)==null||r.call(n);return}if(!this.appId)return;this.client.messageReceived(o)}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 zL=e=>{const[t,n]=w.useState(null),[r,o]=w.useState(null),[i,s]=w.useState(null),[a,l]=w.useState(!1),[c,u]=w.useState();return w.useEffect(()=>{u(window);const d=window;d.hailerApiInstance||(d.hailerApiInstance=new RL({...e!=null&&e.length?{allowedUrls:e}:{},connected:async()=>{d.hailerApiInstance&&l(!0)},outside:async()=>{l(!1)},config:f=>{o(f),d.hailerApiInstance&&n(d.hailerApiInstance.info())},settings:f=>s(f),signals:f=>{console.log("Signal:",f)}}))},[e]),{inside:a,info:t,config:r,settings:i,hailer:c==null?void 0:c.hailerApiInstance}},Yl={}.VITE_MCP_URL||"http://localhost:3030",xx=[{id:"hal",name:"HAL",description:"Main orchestrator - handles general chat and coordinates specialists",icon:"🤖"},{id:"giuseppe",name:"Giuseppe",description:"Bug fixing specialist - analyzes and repairs Hailer app issues",icon:"🔧"},{id:"hailerExpert",name:"Hailer Expert",description:"Workflow & data specialist - bulk operations, insights, reports",icon:"📊"},{id:"vastuullisuus",name:"Vastuullisuus",description:"Sustainability analysis for SMEs",icon:"🌱"}],wx="ai-hub-bot-config";function kx(){try{const e=localStorage.getItem(wx);if(e)return JSON.parse(e)}catch(e){console.error("Failed to load bot config",e)}return xx.reduce((e,t)=>(e[t.id]=!1,e),{})}function Cx(e){try{localStorage.setItem(wx,JSON.stringify(e))}catch(t){console.error("Failed to save bot config",t)}}async function ML(){try{console.log(`[API] Fetching bots from ${Yl}/api/bots`);const e=await fetch(`${Yl}/api/bots`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!e.ok)return console.warn(`[API] Failed to fetch bots: ${e.status} ${e.statusText}`),null;const t=await e.json();return console.log("[API] Bots fetched successfully:",t),t.bots}catch(e){return console.warn("[API] MCP server unavailable, using localStorage fallback:",e),null}}async function DL(e,t){try{console.log(`[API] Toggling bot ${e} to ${t} via ${Yl}/api/bots/${e}/toggle`);const n=await fetch(`${Yl}/api/bots/${e}/toggle`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:t})});if(!n.ok)return console.warn(`[API] Failed to toggle bot: ${n.status} ${n.statusText}`),!1;const r=await n.json();return console.log("[API] Bot toggled successfully:",r),!0}catch(n){return console.warn("[API] MCP server unavailable, using localStorage only:",n),!1}}async function IL(e,t){console.log("Bot config updated:",t)}async function LL(){const e=await ML();if(e){const n={};return e.forEach(r=>{n[r.id]=r.enabled}),Cx(n),e}console.log("[API] Using localStorage fallback for getAllBots");const t=kx();return xx.map(n=>({...n,enabled:t[n.id]||!1}))}async function BL(e,t){const n=kx(),r=!n[e],o=await DL(e,r);return n[e]=r,Cx(n),o||console.warn("[API] Bot toggle not synced to MCP server, localStorage only"),IL(t,n),r}function FL({bot:e,hailer:t,onUpdate:n}){const[r,o]=w.useState(!1),i=ZI(),s=async()=>{o(!0);try{const a=await BL(e.id,t);n(),i({description:`${e.name} ${a?"enabled":"disabled"}`,status:"success",duration:2e3})}catch{i({description:"Failed to update bot",status:"error"})}finally{o(!1)}};return A.jsx($s,{bg:"gray.700",p:4,borderRadius:"md",mb:3,children:A.jsxs(jo,{justify:"space-between",align:"center",children:[A.jsxs(jo,{align:"center",gap:3,children:[A.jsx(er,{fontSize:"2xl",children:e.icon}),A.jsxs($s,{children:[A.jsxs(jo,{align:"center",gap:2,children:[A.jsx(er,{fontWeight:"bold",color:"white",children:e.name}),A.jsx(mx,{colorScheme:e.enabled?"green":"gray",children:e.enabled?"🟢 Enabled":"⚪ Disabled"})]}),A.jsx(er,{fontSize:"sm",color:"gray.400",children:e.description})]})]}),A.jsx(vx,{isChecked:e.enabled,onChange:s,isDisabled:r,size:"lg",colorScheme:"green"})]})})}function jL(){const{inside:e,settings:t,hailer:n}=zL(),{setColorMode:r}=Bs(),[o,i]=w.useState([]),[s,a]=w.useState(!0),l=WR("gray.50","gray.800"),c=w.useCallback(async()=>{const u=await LL();i(u),a(!1)},[]);return w.useEffect(()=>{t&&r(t.theme==="dark"?"dark":"light")},[t,r]),w.useEffect(()=>{c()},[c]),e?s?A.jsx(jo,{h:"100vh",justify:"center",align:"center",bg:l,children:A.jsx(kp,{size:"xl"})}):A.jsxs($s,{p:6,maxW:"600px",mx:"auto",minH:"100vh",bg:l,children:[A.jsx(jo,{justify:"space-between",align:"center",mb:6,children:A.jsx(er,{fontSize:"xl",children:"🤖 AI Hub"})}),A.jsx(er,{fontSize:"lg",mb:4,children:"Your AI Agents"}),A.jsx(er,{fontSize:"sm",color:"gray.500",mb:4,children:"Toggle agents on/off. Changes sync to the MCP server."}),o.map(u=>A.jsx(FL,{bot:u,hailer:n,onUpdate:c},u.id))]}):A.jsx($s,{p:8,textAlign:"center",children:A.jsx(er,{children:"Please open this app inside Hailer"})})}const OL={accentGreen:"#41FF69",baseBlue:"#005ABA",baseBlueLight:"#A8DBFF",darkModeBodyText:"#EDEFF3"},Da=we("tooltip-bg"),Qu=we("tooltip-fg"),VL=we("popper-arrow-bg"),iy=we("popper-arrow-shadow-color"),NL=GI({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:OL},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:Da.reference,color:Qu.reference,[VL.variable]:Da.reference,borderRadius:"md",_light:{[Da.variable]:"white",[Qu.variable]:"chakra-body-text"},_dark:{[Da.variable]:"colors.gray.700",[Qu.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:{[iy.variable]:"white"},_dark:{[iy.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"}}}});Zu.createRoot(document.getElementById("root")).render(A.jsx(My.StrictMode,{children:A.jsx(TI,{theme:NL,children:A.jsx(jL,{})})}));