@techlabi/kycrazy-ui-kit 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/index.es.js +3585 -0
  2. package/dist/index.umd.js +56 -0
  3. package/dist/types/App.d.ts +2 -0
  4. package/dist/types/components/CameraCard.d.ts +10 -0
  5. package/dist/types/components/KYCrazy.d.ts +7 -0
  6. package/dist/types/components/steps/DocumentSelectionStep.d.ts +10 -0
  7. package/dist/types/components/steps/LandingStep.d.ts +6 -0
  8. package/dist/types/components/steps/NameStep.d.ts +9 -0
  9. package/dist/types/components/steps/PhotoConfirmationStep.d.ts +10 -0
  10. package/dist/types/components/steps/PreSelfieStep.d.ts +7 -0
  11. package/dist/types/components/steps/ProcessingStep.d.ts +6 -0
  12. package/dist/types/components/steps/VerifyStep.d.ts +8 -0
  13. package/dist/types/components/steps/shared/KycStepCardHeader.d.ts +7 -0
  14. package/dist/types/components/ui/accordion.d.ts +7 -0
  15. package/dist/types/components/ui/alert-dialog.d.ts +20 -0
  16. package/dist/types/components/ui/alert.d.ts +8 -0
  17. package/dist/types/components/ui/aspect-ratio.d.ts +3 -0
  18. package/dist/types/components/ui/avatar.d.ts +6 -0
  19. package/dist/types/components/ui/badge.d.ts +9 -0
  20. package/dist/types/components/ui/breadcrumb.d.ts +19 -0
  21. package/dist/types/components/ui/button.d.ts +11 -0
  22. package/dist/types/components/ui/calendar.d.ts +8 -0
  23. package/dist/types/components/ui/card.d.ts +8 -0
  24. package/dist/types/components/ui/carousel.d.ts +18 -0
  25. package/dist/types/components/ui/chart.d.ts +62 -0
  26. package/dist/types/components/ui/checkbox.d.ts +4 -0
  27. package/dist/types/components/ui/collapsible.d.ts +5 -0
  28. package/dist/types/components/ui/command.d.ts +82 -0
  29. package/dist/types/components/ui/context-menu.d.ts +27 -0
  30. package/dist/types/components/ui/dialog.d.ts +19 -0
  31. package/dist/types/components/ui/drawer.d.ts +22 -0
  32. package/dist/types/components/ui/dropdown-menu.d.ts +27 -0
  33. package/dist/types/components/ui/form.d.ts +23 -0
  34. package/dist/types/components/ui/hover-card.d.ts +6 -0
  35. package/dist/types/components/ui/input-otp.d.ts +34 -0
  36. package/dist/types/components/ui/input.d.ts +3 -0
  37. package/dist/types/components/ui/label.d.ts +5 -0
  38. package/dist/types/components/ui/navigation-menu.d.ts +12 -0
  39. package/dist/types/components/ui/pagination.d.ts +28 -0
  40. package/dist/types/components/ui/popover.d.ts +6 -0
  41. package/dist/types/components/ui/progress.d.ts +4 -0
  42. package/dist/types/components/ui/radio-group.d.ts +5 -0
  43. package/dist/types/components/ui/resizable.d.ts +23 -0
  44. package/dist/types/components/ui/scroll-area.d.ts +5 -0
  45. package/dist/types/components/ui/select.d.ts +13 -0
  46. package/dist/types/components/ui/separator.d.ts +4 -0
  47. package/dist/types/components/ui/sheet.d.ts +25 -0
  48. package/dist/types/components/ui/sidebar.d.ts +66 -0
  49. package/dist/types/components/ui/skeleton.d.ts +2 -0
  50. package/dist/types/components/ui/slider.d.ts +4 -0
  51. package/dist/types/components/ui/sonner.d.ts +4 -0
  52. package/dist/types/components/ui/switch.d.ts +4 -0
  53. package/dist/types/components/ui/table.d.ts +10 -0
  54. package/dist/types/components/ui/tabs.d.ts +7 -0
  55. package/dist/types/components/ui/textarea.d.ts +5 -0
  56. package/dist/types/components/ui/toast.d.ts +15 -0
  57. package/dist/types/components/ui/toaster.d.ts +1 -0
  58. package/dist/types/components/ui/toggle-group.d.ts +12 -0
  59. package/dist/types/components/ui/toggle.d.ts +12 -0
  60. package/dist/types/components/ui/tooltip.d.ts +7 -0
  61. package/dist/types/components/ui/use-toast.d.ts +2 -0
  62. package/dist/types/hooks/use-mobile.d.ts +1 -0
  63. package/dist/types/hooks/use-toast.d.ts +44 -0
  64. package/dist/types/index.d.ts +1 -0
  65. package/dist/types/lib/index.d.ts +2 -0
  66. package/dist/types/lib/utils.d.ts +2 -0
  67. package/dist/types/main.d.ts +0 -0
  68. package/dist/types/types.d.ts +1 -0
  69. package/package.json +1 -1
  70. package/dist/assets/index-B9Nnpd6w.css +0 -1
  71. package/dist/assets/index-CxkFjrTL.js +0 -101
  72. package/dist/index.html +0 -16
@@ -1,101 +0,0 @@
1
- var yc=e=>{throw TypeError(e)};var dl=(e,t,n)=>t.has(e)||yc("Cannot "+n);var b=(e,t,n)=>(dl(e,t,"read from private field"),n?n.call(e):t.get(e)),Y=(e,t,n)=>t.has(e)?yc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),F=(e,t,n,r)=>(dl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),pe=(e,t,n)=>(dl(e,t,"access private method"),n);var xs=(e,t,n,r)=>({set _(o){F(e,t,o,n)},get _(){return b(e,t,r)}});function pg(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 s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{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 s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function hf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mf={exports:{}},Li={},gf={exports:{}},G={};/**
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"),hg=Symbol.for("react.portal"),mg=Symbol.for("react.fragment"),gg=Symbol.for("react.strict_mode"),vg=Symbol.for("react.profiler"),yg=Symbol.for("react.provider"),wg=Symbol.for("react.context"),xg=Symbol.for("react.forward_ref"),Sg=Symbol.for("react.suspense"),Cg=Symbol.for("react.memo"),Eg=Symbol.for("react.lazy"),wc=Symbol.iterator;function kg(e){return e===null||typeof e!="object"?null:(e=wc&&e[wc]||e["@@iterator"],typeof e=="function"?e:null)}var vf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yf=Object.assign,wf={};function lo(e,t,n){this.props=e,this.context=t,this.refs=wf,this.updater=n||vf}lo.prototype.isReactComponent={};lo.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")};lo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function xf(){}xf.prototype=lo.prototype;function qa(e,t,n){this.props=e,this.context=t,this.refs=wf,this.updater=n||vf}var Za=qa.prototype=new xf;Za.constructor=qa;yf(Za,lo.prototype);Za.isPureReactComponent=!0;var xc=Array.isArray,Sf=Object.prototype.hasOwnProperty,Ja={current:null},Cf={key:!0,ref:!0,__self:!0,__source:!0};function Ef(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)Sf.call(t,r)&&!Cf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:as,type:e,key:s,ref:i,props:o,_owner:Ja.current}}function bg(e,t){return{$$typeof:as,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function eu(e){return typeof e=="object"&&e!==null&&e.$$typeof===as}function Pg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Sc=/\/+/g;function fl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Pg(""+e.key):t.toString(36)}function Vs(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case as:case hg:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+fl(i,0):r,xc(o)?(n="",e!=null&&(n=e.replace(Sc,"$&/")+"/"),Vs(o,t,n,"",function(u){return u})):o!=null&&(eu(o)&&(o=bg(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Sc,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",xc(e))for(var l=0;l<e.length;l++){s=e[l];var a=r+fl(s,l);i+=Vs(s,t,n,a,o)}else if(a=kg(e),typeof a=="function")for(e=a.call(e),l=0;!(s=e.next()).done;)s=s.value,a=r+fl(s,l++),i+=Vs(s,t,n,a,o);else if(s==="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 i}function Ss(e,t,n){if(e==null)return e;var r=[],o=0;return Vs(e,r,"","",function(s){return t.call(n,s,o++)}),r}function Tg(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 De={current:null},Hs={transition:null},Ng={ReactCurrentDispatcher:De,ReactCurrentBatchConfig:Hs,ReactCurrentOwner:Ja};function kf(){throw Error("act(...) is not supported in production builds of React.")}G.Children={map:Ss,forEach:function(e,t,n){Ss(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ss(e,function(){t++}),t},toArray:function(e){return Ss(e,function(t){return t})||[]},only:function(e){if(!eu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};G.Component=lo;G.Fragment=mg;G.Profiler=vg;G.PureComponent=qa;G.StrictMode=gg;G.Suspense=Sg;G.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ng;G.act=kf;G.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=yf({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=Ja.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Sf.call(t,a)&&!Cf.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:as,type:e.type,key:o,ref:s,props:r,_owner:i}};G.createContext=function(e){return e={$$typeof:wg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:yg,_context:e},e.Consumer=e};G.createElement=Ef;G.createFactory=function(e){var t=Ef.bind(null,e);return t.type=e,t};G.createRef=function(){return{current:null}};G.forwardRef=function(e){return{$$typeof:xg,render:e}};G.isValidElement=eu;G.lazy=function(e){return{$$typeof:Eg,_payload:{_status:-1,_result:e},_init:Tg}};G.memo=function(e,t){return{$$typeof:Cg,type:e,compare:t===void 0?null:t}};G.startTransition=function(e){var t=Hs.transition;Hs.transition={};try{e()}finally{Hs.transition=t}};G.unstable_act=kf;G.useCallback=function(e,t){return De.current.useCallback(e,t)};G.useContext=function(e){return De.current.useContext(e)};G.useDebugValue=function(){};G.useDeferredValue=function(e){return De.current.useDeferredValue(e)};G.useEffect=function(e,t){return De.current.useEffect(e,t)};G.useId=function(){return De.current.useId()};G.useImperativeHandle=function(e,t,n){return De.current.useImperativeHandle(e,t,n)};G.useInsertionEffect=function(e,t){return De.current.useInsertionEffect(e,t)};G.useLayoutEffect=function(e,t){return De.current.useLayoutEffect(e,t)};G.useMemo=function(e,t){return De.current.useMemo(e,t)};G.useReducer=function(e,t,n){return De.current.useReducer(e,t,n)};G.useRef=function(e){return De.current.useRef(e)};G.useState=function(e){return De.current.useState(e)};G.useSyncExternalStore=function(e,t,n){return De.current.useSyncExternalStore(e,t,n)};G.useTransition=function(){return De.current.useTransition()};G.version="18.3.1";gf.exports=G;var x=gf.exports;const j=hf(x),Rg=pg({__proto__:null,default:j},[x]);/**
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 Og=x,jg=Symbol.for("react.element"),_g=Symbol.for("react.fragment"),Ag=Object.prototype.hasOwnProperty,Mg=Og.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Lg={key:!0,ref:!0,__self:!0,__source:!0};function bf(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Ag.call(t,r)&&!Lg.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:jg,type:e,key:s,ref:i,props:o,_owner:Mg.current}}Li.Fragment=_g;Li.jsx=bf;Li.jsxs=bf;mf.exports=Li;var y=mf.exports,Pf={exports:{}},Ze={},Tf={exports:{}},Nf={};/**
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(T,N){var L=T.length;T.push(N);e:for(;0<L;){var H=L-1>>>1,z=T[H];if(0<o(z,N))T[H]=N,T[L]=z,L=H;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var N=T[0],L=T.pop();if(L!==N){T[0]=L;e:for(var H=0,z=T.length,K=z>>>1;H<K;){var q=2*(H+1)-1,me=T[q],Te=q+1,J=T[Te];if(0>o(me,L))Te<z&&0>o(J,me)?(T[H]=J,T[Te]=L,H=Te):(T[H]=me,T[q]=L,H=q);else if(Te<z&&0>o(J,L))T[H]=J,T[Te]=L,H=Te;else break e}}return N}function o(T,N){var L=T.sortIndex-N.sortIndex;return L!==0?L:T.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var a=[],u=[],d=1,p=null,m=3,c=!1,S=!1,v=!1,C=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(T){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=T)r(u),N.sortIndex=N.expirationTime,t(a,N);else break;N=n(u)}}function w(T){if(v=!1,g(T),!S)if(n(a)!==null)S=!0,U(E);else{var N=n(u);N!==null&&V(w,N.startTime-T)}}function E(T,N){S=!1,v&&(v=!1,h(R),R=-1),c=!0;var L=m;try{for(g(N),p=n(a);p!==null&&(!(p.expirationTime>N)||T&&!$());){var H=p.callback;if(typeof H=="function"){p.callback=null,m=p.priorityLevel;var z=H(p.expirationTime<=N);N=e.unstable_now(),typeof z=="function"?p.callback=z:p===n(a)&&r(a),g(N)}else r(a);p=n(a)}if(p!==null)var K=!0;else{var q=n(u);q!==null&&V(w,q.startTime-N),K=!1}return K}finally{p=null,m=L,c=!1}}var k=!1,P=null,R=-1,A=5,_=-1;function $(){return!(e.unstable_now()-_<A)}function I(){if(P!==null){var T=e.unstable_now();_=T;var N=!0;try{N=P(!0,T)}finally{N?Q():(k=!1,P=null)}}else k=!1}var Q;if(typeof f=="function")Q=function(){f(I)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,X=M.port2;M.port1.onmessage=I,Q=function(){X.postMessage(null)}}else Q=function(){C(I,0)};function U(T){P=T,k||(k=!0,Q())}function V(T,N){R=C(function(){T(e.unstable_now())},N)}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(T){T.callback=null},e.unstable_continueExecution=function(){S||c||(S=!0,U(E))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(T){switch(m){case 1:case 2:case 3:var N=3;break;default:N=m}var L=m;m=N;try{return T()}finally{m=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,N){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var L=m;m=T;try{return N()}finally{m=L}},e.unstable_scheduleCallback=function(T,N,L){var H=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?H+L:H):L=H,T){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=L+z,T={id:d++,callback:N,priorityLevel:T,startTime:L,expirationTime:z,sortIndex:-1},L>H?(T.sortIndex=L,t(u,T),n(a)===null&&T===n(u)&&(v?(h(R),R=-1):v=!0,V(w,L-H))):(T.sortIndex=z,t(a,T),S||c||(S=!0,U(E))),T},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(T){var N=m;return function(){var L=m;m=N;try{return T.apply(this,arguments)}finally{m=L}}}})(Nf);Tf.exports=Nf;var Dg=Tf.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 Ig=x,qe=Dg;function O(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 Rf=new Set,$o={};function pr(e,t){Zr(e,t),Zr(e+"Capture",t)}function Zr(e,t){for($o[e]=t,e=0;e<t.length;e++)Rf.add(t[e])}var Yt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ql=Object.prototype.hasOwnProperty,zg=/^[: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]*$/,Cc={},Ec={};function Fg(e){return Ql.call(Ec,e)?!0:Ql.call(Cc,e)?!1:zg.test(e)?Ec[e]=!0:(Cc[e]=!0,!1)}function $g(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 Ug(e,t,n,r){if(t===null||typeof t>"u"||$g(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 Ie(e,t,n,r,o,s,i){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=s,this.removeEmptyString=i}var Pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Pe[e]=new Ie(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Pe[t]=new Ie(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Pe[e]=new Ie(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Pe[e]=new Ie(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){Pe[e]=new Ie(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Pe[e]=new Ie(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Pe[e]=new Ie(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Pe[e]=new Ie(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Pe[e]=new Ie(e,5,!1,e.toLowerCase(),null,!1,!1)});var tu=/[\-:]([a-z])/g;function nu(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(tu,nu);Pe[t]=new Ie(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(tu,nu);Pe[t]=new Ie(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(tu,nu);Pe[t]=new Ie(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Pe[e]=new Ie(e,1,!1,e.toLowerCase(),null,!1,!1)});Pe.xlinkHref=new Ie("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Pe[e]=new Ie(e,1,!1,e.toLowerCase(),null,!0,!0)});function ru(e,t,n,r){var o=Pe.hasOwnProperty(t)?Pe[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ug(t,n,o,r)&&(n=null),r||o===null?Fg(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 en=Ig.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Cs=Symbol.for("react.element"),Cr=Symbol.for("react.portal"),Er=Symbol.for("react.fragment"),ou=Symbol.for("react.strict_mode"),Kl=Symbol.for("react.profiler"),Of=Symbol.for("react.provider"),jf=Symbol.for("react.context"),su=Symbol.for("react.forward_ref"),Yl=Symbol.for("react.suspense"),Gl=Symbol.for("react.suspense_list"),iu=Symbol.for("react.memo"),hn=Symbol.for("react.lazy"),_f=Symbol.for("react.offscreen"),kc=Symbol.iterator;function go(e){return e===null||typeof e!="object"?null:(e=kc&&e[kc]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Object.assign,pl;function Po(e){if(pl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);pl=t&&t[1]||""}return`
34
- `+pl+e}var hl=!1;function ml(e,t){if(!e||hl)return"";hl=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
35
- `),s=r.stack.split(`
36
- `),i=o.length-1,l=s.length-1;1<=i&&0<=l&&o[i]!==s[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==s[l]){if(i!==1||l!==1)do if(i--,l--,0>l||o[i]!==s[l]){var a=`
37
- `+o[i].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=i&&0<=l);break}}}finally{hl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Po(e):""}function Bg(e){switch(e.tag){case 5:return Po(e.type);case 16:return Po("Lazy");case 13:return Po("Suspense");case 19:return Po("SuspenseList");case 0:case 2:case 15:return e=ml(e.type,!1),e;case 11:return e=ml(e.type.render,!1),e;case 1:return e=ml(e.type,!0),e;default:return""}}function Xl(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 Er:return"Fragment";case Cr:return"Portal";case Kl:return"Profiler";case ou:return"StrictMode";case Yl:return"Suspense";case Gl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case jf:return(e.displayName||"Context")+".Consumer";case Of:return(e._context.displayName||"Context")+".Provider";case su:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case iu:return t=e.displayName||null,t!==null?t:Xl(e.type)||"Memo";case hn:t=e._payload,e=e._init;try{return Xl(e(t))}catch{}}return null}function Vg(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 Xl(t);case 8:return t===ou?"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 Ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Af(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Hg(e){var t=Af(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,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Es(e){e._valueTracker||(e._valueTracker=Hg(e))}function Mf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Af(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function si(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 ql(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ln(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 Lf(e,t){t=t.checked,t!=null&&ru(e,"checked",t,!1)}function Zl(e,t){Lf(e,t);var n=Ln(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")?Jl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Jl(e,t.type,Ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pc(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 Jl(e,t,n){(t!=="number"||si(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var To=Array.isArray;function Lr(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=""+Ln(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 ea(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return ce({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Tc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(To(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ln(n)}}function Df(e,t){var n=Ln(t.value),r=Ln(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 Nc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function If(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 ta(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?If(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ks,zf=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(ks=ks||document.createElement("div"),ks.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ks.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Uo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Oo={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},Wg=["Webkit","ms","Moz","O"];Object.keys(Oo).forEach(function(e){Wg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Oo[t]=Oo[e]})});function Ff(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Oo.hasOwnProperty(e)&&Oo[e]?(""+t).trim():t+"px"}function $f(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Ff(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Qg=ce({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 na(e,t){if(t){if(Qg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function ra(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 oa=null;function lu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sa=null,Dr=null,Ir=null;function Rc(e){if(e=ds(e)){if(typeof sa!="function")throw Error(O(280));var t=e.stateNode;t&&(t=$i(t),sa(e.stateNode,e.type,t))}}function Uf(e){Dr?Ir?Ir.push(e):Ir=[e]:Dr=e}function Bf(){if(Dr){var e=Dr,t=Ir;if(Ir=Dr=null,Rc(e),t)for(e=0;e<t.length;e++)Rc(t[e])}}function Vf(e,t){return e(t)}function Hf(){}var gl=!1;function Wf(e,t,n){if(gl)return e(t,n);gl=!0;try{return Vf(e,t,n)}finally{gl=!1,(Dr!==null||Ir!==null)&&(Hf(),Bf())}}function Bo(e,t){var n=e.stateNode;if(n===null)return null;var r=$i(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(O(231,t,typeof n));return n}var ia=!1;if(Yt)try{var vo={};Object.defineProperty(vo,"passive",{get:function(){ia=!0}}),window.addEventListener("test",vo,vo),window.removeEventListener("test",vo,vo)}catch{ia=!1}function Kg(e,t,n,r,o,s,i,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var jo=!1,ii=null,li=!1,la=null,Yg={onError:function(e){jo=!0,ii=e}};function Gg(e,t,n,r,o,s,i,l,a){jo=!1,ii=null,Kg.apply(Yg,arguments)}function Xg(e,t,n,r,o,s,i,l,a){if(Gg.apply(this,arguments),jo){if(jo){var u=ii;jo=!1,ii=null}else throw Error(O(198));li||(li=!0,la=u)}}function hr(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 Qf(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 Oc(e){if(hr(e)!==e)throw Error(O(188))}function qg(e){var t=e.alternate;if(!t){if(t=hr(e),t===null)throw Error(O(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Oc(o),e;if(s===r)return Oc(o),t;s=s.sibling}throw Error(O(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=s;break}if(l===r){i=!0,r=o,n=s;break}l=l.sibling}if(!i){for(l=s.child;l;){if(l===n){i=!0,n=s,r=o;break}if(l===r){i=!0,r=s,n=o;break}l=l.sibling}if(!i)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function Kf(e){return e=qg(e),e!==null?Yf(e):null}function Yf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Yf(e);if(t!==null)return t;e=e.sibling}return null}var Gf=qe.unstable_scheduleCallback,jc=qe.unstable_cancelCallback,Zg=qe.unstable_shouldYield,Jg=qe.unstable_requestPaint,he=qe.unstable_now,ev=qe.unstable_getCurrentPriorityLevel,au=qe.unstable_ImmediatePriority,Xf=qe.unstable_UserBlockingPriority,ai=qe.unstable_NormalPriority,tv=qe.unstable_LowPriority,qf=qe.unstable_IdlePriority,Di=null,At=null;function nv(e){if(At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(Di,e,void 0,(e.current.flags&128)===128)}catch{}}var xt=Math.clz32?Math.clz32:sv,rv=Math.log,ov=Math.LN2;function sv(e){return e>>>=0,e===0?32:31-(rv(e)/ov|0)|0}var bs=64,Ps=4194304;function No(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 ui(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=No(l):(s&=i,s!==0&&(r=No(s)))}else i=n&~o,i!==0?r=No(i):s!==0&&(r=No(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&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-xt(t),o=1<<n,r|=e[n],t&=~o;return r}function iv(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 lv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-xt(s),l=1<<i,a=o[i];a===-1?(!(l&n)||l&r)&&(o[i]=iv(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function aa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Zf(){var e=bs;return bs<<=1,!(bs&4194240)&&(bs=64),e}function vl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function us(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=n}function av(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-xt(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function uu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-xt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ee=0;function Jf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ep,cu,tp,np,rp,ua=!1,Ts=[],Tn=null,Nn=null,Rn=null,Vo=new Map,Ho=new Map,gn=[],uv="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 _c(e,t){switch(e){case"focusin":case"focusout":Tn=null;break;case"dragenter":case"dragleave":Nn=null;break;case"mouseover":case"mouseout":Rn=null;break;case"pointerover":case"pointerout":Vo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ho.delete(t.pointerId)}}function yo(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=ds(t),t!==null&&cu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function cv(e,t,n,r,o){switch(t){case"focusin":return Tn=yo(Tn,e,t,n,r,o),!0;case"dragenter":return Nn=yo(Nn,e,t,n,r,o),!0;case"mouseover":return Rn=yo(Rn,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return Vo.set(s,yo(Vo.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,Ho.set(s,yo(Ho.get(s)||null,e,t,n,r,o)),!0}return!1}function op(e){var t=Xn(e.target);if(t!==null){var n=hr(t);if(n!==null){if(t=n.tag,t===13){if(t=Qf(n),t!==null){e.blockedOn=t,rp(e.priority,function(){tp(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 Ws(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ca(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);oa=r,n.target.dispatchEvent(r),oa=null}else return t=ds(n),t!==null&&cu(t),e.blockedOn=n,!1;t.shift()}return!0}function Ac(e,t,n){Ws(e)&&n.delete(t)}function dv(){ua=!1,Tn!==null&&Ws(Tn)&&(Tn=null),Nn!==null&&Ws(Nn)&&(Nn=null),Rn!==null&&Ws(Rn)&&(Rn=null),Vo.forEach(Ac),Ho.forEach(Ac)}function wo(e,t){e.blockedOn===t&&(e.blockedOn=null,ua||(ua=!0,qe.unstable_scheduleCallback(qe.unstable_NormalPriority,dv)))}function Wo(e){function t(o){return wo(o,e)}if(0<Ts.length){wo(Ts[0],e);for(var n=1;n<Ts.length;n++){var r=Ts[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Tn!==null&&wo(Tn,e),Nn!==null&&wo(Nn,e),Rn!==null&&wo(Rn,e),Vo.forEach(t),Ho.forEach(t),n=0;n<gn.length;n++)r=gn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<gn.length&&(n=gn[0],n.blockedOn===null);)op(n),n.blockedOn===null&&gn.shift()}var zr=en.ReactCurrentBatchConfig,ci=!0;function fv(e,t,n,r){var o=ee,s=zr.transition;zr.transition=null;try{ee=1,du(e,t,n,r)}finally{ee=o,zr.transition=s}}function pv(e,t,n,r){var o=ee,s=zr.transition;zr.transition=null;try{ee=4,du(e,t,n,r)}finally{ee=o,zr.transition=s}}function du(e,t,n,r){if(ci){var o=ca(e,t,n,r);if(o===null)Tl(e,t,r,di,n),_c(e,r);else if(cv(o,e,t,n,r))r.stopPropagation();else if(_c(e,r),t&4&&-1<uv.indexOf(e)){for(;o!==null;){var s=ds(o);if(s!==null&&ep(s),s=ca(e,t,n,r),s===null&&Tl(e,t,r,di,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else Tl(e,t,r,null,n)}}var di=null;function ca(e,t,n,r){if(di=null,e=lu(r),e=Xn(e),e!==null)if(t=hr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Qf(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 di=e,null}function sp(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(ev()){case au:return 1;case Xf:return 4;case ai:case tv:return 16;case qf:return 536870912;default:return 16}default:return 16}}var bn=null,fu=null,Qs=null;function ip(){if(Qs)return Qs;var e,t=fu,n=t.length,r,o="value"in bn?bn.value:bn.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return Qs=o.slice(e,1<r?1-r:void 0)}function Ks(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 Ns(){return!0}function Mc(){return!1}function Je(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ns:Mc,this.isPropagationStopped=Mc,this}return ce(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=Ns)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ns)},persist:function(){},isPersistent:Ns}),t}var ao={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pu=Je(ao),cs=ce({},ao,{view:0,detail:0}),hv=Je(cs),yl,wl,xo,Ii=ce({},cs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hu,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!==xo&&(xo&&e.type==="mousemove"?(yl=e.screenX-xo.screenX,wl=e.screenY-xo.screenY):wl=yl=0,xo=e),yl)},movementY:function(e){return"movementY"in e?e.movementY:wl}}),Lc=Je(Ii),mv=ce({},Ii,{dataTransfer:0}),gv=Je(mv),vv=ce({},cs,{relatedTarget:0}),xl=Je(vv),yv=ce({},ao,{animationName:0,elapsedTime:0,pseudoElement:0}),wv=Je(yv),xv=ce({},ao,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Sv=Je(xv),Cv=ce({},ao,{data:0}),Dc=Je(Cv),Ev={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kv={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"},bv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=bv[e])?!!t[e]:!1}function hu(){return Pv}var Tv=ce({},cs,{key:function(e){if(e.key){var t=Ev[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ks(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?kv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hu,charCode:function(e){return e.type==="keypress"?Ks(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ks(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Nv=Je(Tv),Rv=ce({},Ii,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ic=Je(Rv),Ov=ce({},cs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hu}),jv=Je(Ov),_v=ce({},ao,{propertyName:0,elapsedTime:0,pseudoElement:0}),Av=Je(_v),Mv=ce({},Ii,{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}),Lv=Je(Mv),Dv=[9,13,27,32],mu=Yt&&"CompositionEvent"in window,_o=null;Yt&&"documentMode"in document&&(_o=document.documentMode);var Iv=Yt&&"TextEvent"in window&&!_o,lp=Yt&&(!mu||_o&&8<_o&&11>=_o),zc=" ",Fc=!1;function ap(e,t){switch(e){case"keyup":return Dv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function up(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kr=!1;function zv(e,t){switch(e){case"compositionend":return up(t);case"keypress":return t.which!==32?null:(Fc=!0,zc);case"textInput":return e=t.data,e===zc&&Fc?null:e;default:return null}}function Fv(e,t){if(kr)return e==="compositionend"||!mu&&ap(e,t)?(e=ip(),Qs=fu=bn=null,kr=!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 lp&&t.locale!=="ko"?null:t.data;default:return null}}var $v={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 $c(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$v[e.type]:t==="textarea"}function cp(e,t,n,r){Uf(r),t=fi(t,"onChange"),0<t.length&&(n=new pu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ao=null,Qo=null;function Uv(e){Sp(e,0)}function zi(e){var t=Tr(e);if(Mf(t))return e}function Bv(e,t){if(e==="change")return t}var dp=!1;if(Yt){var Sl;if(Yt){var Cl="oninput"in document;if(!Cl){var Uc=document.createElement("div");Uc.setAttribute("oninput","return;"),Cl=typeof Uc.oninput=="function"}Sl=Cl}else Sl=!1;dp=Sl&&(!document.documentMode||9<document.documentMode)}function Bc(){Ao&&(Ao.detachEvent("onpropertychange",fp),Qo=Ao=null)}function fp(e){if(e.propertyName==="value"&&zi(Qo)){var t=[];cp(t,Qo,e,lu(e)),Wf(Uv,t)}}function Vv(e,t,n){e==="focusin"?(Bc(),Ao=t,Qo=n,Ao.attachEvent("onpropertychange",fp)):e==="focusout"&&Bc()}function Hv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zi(Qo)}function Wv(e,t){if(e==="click")return zi(t)}function Qv(e,t){if(e==="input"||e==="change")return zi(t)}function Kv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:Kv;function Ko(e,t){if(Ct(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(!Ql.call(t,o)||!Ct(e[o],t[o]))return!1}return!0}function Vc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hc(e,t){var n=Vc(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=Vc(n)}}function pp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hp(){for(var e=window,t=si();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=si(e.document)}return t}function gu(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 Yv(e){var t=hp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pp(n.ownerDocument.documentElement,n)){if(r!==null&&gu(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,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=Hc(n,s);var i=Hc(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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 Gv=Yt&&"documentMode"in document&&11>=document.documentMode,br=null,da=null,Mo=null,fa=!1;function Wc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fa||br==null||br!==si(r)||(r=br,"selectionStart"in r&&gu(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}),Mo&&Ko(Mo,r)||(Mo=r,r=fi(da,"onSelect"),0<r.length&&(t=new pu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}function Rs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Pr={animationend:Rs("Animation","AnimationEnd"),animationiteration:Rs("Animation","AnimationIteration"),animationstart:Rs("Animation","AnimationStart"),transitionend:Rs("Transition","TransitionEnd")},El={},mp={};Yt&&(mp=document.createElement("div").style,"AnimationEvent"in window||(delete Pr.animationend.animation,delete Pr.animationiteration.animation,delete Pr.animationstart.animation),"TransitionEvent"in window||delete Pr.transitionend.transition);function Fi(e){if(El[e])return El[e];if(!Pr[e])return e;var t=Pr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in mp)return El[e]=t[n];return e}var gp=Fi("animationend"),vp=Fi("animationiteration"),yp=Fi("animationstart"),wp=Fi("transitionend"),xp=new Map,Qc="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 Un(e,t){xp.set(e,t),pr(t,[e])}for(var kl=0;kl<Qc.length;kl++){var bl=Qc[kl],Xv=bl.toLowerCase(),qv=bl[0].toUpperCase()+bl.slice(1);Un(Xv,"on"+qv)}Un(gp,"onAnimationEnd");Un(vp,"onAnimationIteration");Un(yp,"onAnimationStart");Un("dblclick","onDoubleClick");Un("focusin","onFocus");Un("focusout","onBlur");Un(wp,"onTransitionEnd");Zr("onMouseEnter",["mouseout","mouseover"]);Zr("onMouseLeave",["mouseout","mouseover"]);Zr("onPointerEnter",["pointerout","pointerover"]);Zr("onPointerLeave",["pointerout","pointerover"]);pr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));pr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));pr("onBeforeInput",["compositionend","keypress","textInput","paste"]);pr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));pr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));pr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ro="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(" "),Zv=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ro));function Kc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Xg(r,t,void 0,e),e.currentTarget=null}function Sp(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 s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==s&&o.isPropagationStopped())break e;Kc(o,l,u),s=a}else for(i=0;i<r.length;i++){if(l=r[i],a=l.instance,u=l.currentTarget,l=l.listener,a!==s&&o.isPropagationStopped())break e;Kc(o,l,u),s=a}}}if(li)throw e=la,li=!1,la=null,e}function oe(e,t){var n=t[va];n===void 0&&(n=t[va]=new Set);var r=e+"__bubble";n.has(r)||(Cp(t,e,2,!1),n.add(r))}function Pl(e,t,n){var r=0;t&&(r|=4),Cp(n,e,r,t)}var Os="_reactListening"+Math.random().toString(36).slice(2);function Yo(e){if(!e[Os]){e[Os]=!0,Rf.forEach(function(n){n!=="selectionchange"&&(Zv.has(n)||Pl(n,!1,e),Pl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Os]||(t[Os]=!0,Pl("selectionchange",!1,t))}}function Cp(e,t,n,r){switch(sp(t)){case 1:var o=fv;break;case 4:o=pv;break;default:o=du}n=o.bind(null,t,n,e),o=void 0,!ia||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 Tl(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var a=i.tag;if((a===3||a===4)&&(a=i.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;i=i.return}for(;l!==null;){if(i=Xn(l),i===null)return;if(a=i.tag,a===5||a===6){r=s=i;continue e}l=l.parentNode}}r=r.return}Wf(function(){var u=s,d=lu(n),p=[];e:{var m=xp.get(e);if(m!==void 0){var c=pu,S=e;switch(e){case"keypress":if(Ks(n)===0)break e;case"keydown":case"keyup":c=Nv;break;case"focusin":S="focus",c=xl;break;case"focusout":S="blur",c=xl;break;case"beforeblur":case"afterblur":c=xl;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":c=Lc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=gv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=jv;break;case gp:case vp:case yp:c=wv;break;case wp:c=Av;break;case"scroll":c=hv;break;case"wheel":c=Lv;break;case"copy":case"cut":case"paste":c=Sv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=Ic}var v=(t&4)!==0,C=!v&&e==="scroll",h=v?m!==null?m+"Capture":null:m;v=[];for(var f=u,g;f!==null;){g=f;var w=g.stateNode;if(g.tag===5&&w!==null&&(g=w,h!==null&&(w=Bo(f,h),w!=null&&v.push(Go(f,w,g)))),C)break;f=f.return}0<v.length&&(m=new c(m,S,null,n,d),p.push({event:m,listeners:v}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",c=e==="mouseout"||e==="pointerout",m&&n!==oa&&(S=n.relatedTarget||n.fromElement)&&(Xn(S)||S[Gt]))break e;if((c||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,c?(S=n.relatedTarget||n.toElement,c=u,S=S?Xn(S):null,S!==null&&(C=hr(S),S!==C||S.tag!==5&&S.tag!==6)&&(S=null)):(c=null,S=u),c!==S)){if(v=Lc,w="onMouseLeave",h="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(v=Ic,w="onPointerLeave",h="onPointerEnter",f="pointer"),C=c==null?m:Tr(c),g=S==null?m:Tr(S),m=new v(w,f+"leave",c,n,d),m.target=C,m.relatedTarget=g,w=null,Xn(d)===u&&(v=new v(h,f+"enter",S,n,d),v.target=g,v.relatedTarget=C,w=v),C=w,c&&S)t:{for(v=c,h=S,f=0,g=v;g;g=Sr(g))f++;for(g=0,w=h;w;w=Sr(w))g++;for(;0<f-g;)v=Sr(v),f--;for(;0<g-f;)h=Sr(h),g--;for(;f--;){if(v===h||h!==null&&v===h.alternate)break t;v=Sr(v),h=Sr(h)}v=null}else v=null;c!==null&&Yc(p,m,c,v,!1),S!==null&&C!==null&&Yc(p,C,S,v,!0)}}e:{if(m=u?Tr(u):window,c=m.nodeName&&m.nodeName.toLowerCase(),c==="select"||c==="input"&&m.type==="file")var E=Bv;else if($c(m))if(dp)E=Qv;else{E=Hv;var k=Vv}else(c=m.nodeName)&&c.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(E=Wv);if(E&&(E=E(e,u))){cp(p,E,n,d);break e}k&&k(e,m,u),e==="focusout"&&(k=m._wrapperState)&&k.controlled&&m.type==="number"&&Jl(m,"number",m.value)}switch(k=u?Tr(u):window,e){case"focusin":($c(k)||k.contentEditable==="true")&&(br=k,da=u,Mo=null);break;case"focusout":Mo=da=br=null;break;case"mousedown":fa=!0;break;case"contextmenu":case"mouseup":case"dragend":fa=!1,Wc(p,n,d);break;case"selectionchange":if(Gv)break;case"keydown":case"keyup":Wc(p,n,d)}var P;if(mu)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else kr?ap(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(lp&&n.locale!=="ko"&&(kr||R!=="onCompositionStart"?R==="onCompositionEnd"&&kr&&(P=ip()):(bn=d,fu="value"in bn?bn.value:bn.textContent,kr=!0)),k=fi(u,R),0<k.length&&(R=new Dc(R,e,null,n,d),p.push({event:R,listeners:k}),P?R.data=P:(P=up(n),P!==null&&(R.data=P)))),(P=Iv?zv(e,n):Fv(e,n))&&(u=fi(u,"onBeforeInput"),0<u.length&&(d=new Dc("onBeforeInput","beforeinput",null,n,d),p.push({event:d,listeners:u}),d.data=P))}Sp(p,t)})}function Go(e,t,n){return{instance:e,listener:t,currentTarget:n}}function fi(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=Bo(e,n),s!=null&&r.unshift(Go(e,s,o)),s=Bo(e,t),s!=null&&r.push(Go(e,s,o))),e=e.return}return r}function Sr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Yc(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,o?(a=Bo(n,s),a!=null&&i.unshift(Go(n,a,l))):o||(a=Bo(n,s),a!=null&&i.push(Go(n,a,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var Jv=/\r\n?/g,ey=/\u0000|\uFFFD/g;function Gc(e){return(typeof e=="string"?e:""+e).replace(Jv,`
38
- `).replace(ey,"")}function js(e,t,n){if(t=Gc(t),Gc(e)!==t&&n)throw Error(O(425))}function pi(){}var pa=null,ha=null;function ma(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 ga=typeof setTimeout=="function"?setTimeout:void 0,ty=typeof clearTimeout=="function"?clearTimeout:void 0,Xc=typeof Promise=="function"?Promise:void 0,ny=typeof queueMicrotask=="function"?queueMicrotask:typeof Xc<"u"?function(e){return Xc.resolve(null).then(e).catch(ry)}:ga;function ry(e){setTimeout(function(){throw e})}function Nl(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),Wo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Wo(t)}function On(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 qc(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 uo=Math.random().toString(36).slice(2),jt="__reactFiber$"+uo,Xo="__reactProps$"+uo,Gt="__reactContainer$"+uo,va="__reactEvents$"+uo,oy="__reactListeners$"+uo,sy="__reactHandles$"+uo;function Xn(e){var t=e[jt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gt]||n[jt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=qc(e);e!==null;){if(n=e[jt])return n;e=qc(e)}return t}e=n,n=e.parentNode}return null}function ds(e){return e=e[jt]||e[Gt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Tr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function $i(e){return e[Xo]||null}var ya=[],Nr=-1;function Bn(e){return{current:e}}function se(e){0>Nr||(e.current=ya[Nr],ya[Nr]=null,Nr--)}function ne(e,t){Nr++,ya[Nr]=e.current,e.current=t}var Dn={},je=Bn(Dn),Ve=Bn(!1),ir=Dn;function Jr(e,t){var n=e.type.contextTypes;if(!n)return Dn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function He(e){return e=e.childContextTypes,e!=null}function hi(){se(Ve),se(je)}function Zc(e,t,n){if(je.current!==Dn)throw Error(O(168));ne(je,t),ne(Ve,n)}function Ep(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(O(108,Vg(e)||"Unknown",o));return ce({},n,r)}function mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dn,ir=je.current,ne(je,e),ne(Ve,Ve.current),!0}function Jc(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=Ep(e,t,ir),r.__reactInternalMemoizedMergedChildContext=e,se(Ve),se(je),ne(je,e)):se(Ve),ne(Ve,n)}var Ut=null,Ui=!1,Rl=!1;function kp(e){Ut===null?Ut=[e]:Ut.push(e)}function iy(e){Ui=!0,kp(e)}function Vn(){if(!Rl&&Ut!==null){Rl=!0;var e=0,t=ee;try{var n=Ut;for(ee=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ut=null,Ui=!1}catch(o){throw Ut!==null&&(Ut=Ut.slice(e+1)),Gf(au,Vn),o}finally{ee=t,Rl=!1}}return null}var Rr=[],Or=0,gi=null,vi=0,rt=[],ot=0,lr=null,Ht=1,Wt="";function Yn(e,t){Rr[Or++]=vi,Rr[Or++]=gi,gi=e,vi=t}function bp(e,t,n){rt[ot++]=Ht,rt[ot++]=Wt,rt[ot++]=lr,lr=e;var r=Ht;e=Wt;var o=32-xt(r)-1;r&=~(1<<o),n+=1;var s=32-xt(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Ht=1<<32-xt(t)+o|n<<o|r,Wt=s+e}else Ht=1<<s|n<<o|r,Wt=e}function vu(e){e.return!==null&&(Yn(e,1),bp(e,1,0))}function yu(e){for(;e===gi;)gi=Rr[--Or],Rr[Or]=null,vi=Rr[--Or],Rr[Or]=null;for(;e===lr;)lr=rt[--ot],rt[ot]=null,Wt=rt[--ot],rt[ot]=null,Ht=rt[--ot],rt[ot]=null}var Ge=null,Ye=null,le=!1,wt=null;function Pp(e,t){var n=st(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 ed(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,Ge=e,Ye=On(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ge=e,Ye=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=lr!==null?{id:Ht,overflow:Wt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=st(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ge=e,Ye=null,!0):!1;default:return!1}}function wa(e){return(e.mode&1)!==0&&(e.flags&128)===0}function xa(e){if(le){var t=Ye;if(t){var n=t;if(!ed(e,t)){if(wa(e))throw Error(O(418));t=On(n.nextSibling);var r=Ge;t&&ed(e,t)?Pp(r,n):(e.flags=e.flags&-4097|2,le=!1,Ge=e)}}else{if(wa(e))throw Error(O(418));e.flags=e.flags&-4097|2,le=!1,Ge=e}}}function td(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ge=e}function _s(e){if(e!==Ge)return!1;if(!le)return td(e),le=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ma(e.type,e.memoizedProps)),t&&(t=Ye)){if(wa(e))throw Tp(),Error(O(418));for(;t;)Pp(e,t),t=On(t.nextSibling)}if(td(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ye=On(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ye=null}}else Ye=Ge?On(e.stateNode.nextSibling):null;return!0}function Tp(){for(var e=Ye;e;)e=On(e.nextSibling)}function eo(){Ye=Ge=null,le=!1}function wu(e){wt===null?wt=[e]:wt.push(e)}var ly=en.ReactCurrentBatchConfig;function So(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(O(309));var r=n.stateNode}if(!r)throw Error(O(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var l=o.refs;i===null?delete l[s]:l[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function As(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function nd(e){var t=e._init;return t(e._payload)}function Np(e){function t(h,f){if(e){var g=h.deletions;g===null?(h.deletions=[f],h.flags|=16):g.push(f)}}function n(h,f){if(!e)return null;for(;f!==null;)t(h,f),f=f.sibling;return null}function r(h,f){for(h=new Map;f!==null;)f.key!==null?h.set(f.key,f):h.set(f.index,f),f=f.sibling;return h}function o(h,f){return h=Mn(h,f),h.index=0,h.sibling=null,h}function s(h,f,g){return h.index=g,e?(g=h.alternate,g!==null?(g=g.index,g<f?(h.flags|=2,f):g):(h.flags|=2,f)):(h.flags|=1048576,f)}function i(h){return e&&h.alternate===null&&(h.flags|=2),h}function l(h,f,g,w){return f===null||f.tag!==6?(f=Dl(g,h.mode,w),f.return=h,f):(f=o(f,g),f.return=h,f)}function a(h,f,g,w){var E=g.type;return E===Er?d(h,f,g.props.children,w,g.key):f!==null&&(f.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===hn&&nd(E)===f.type)?(w=o(f,g.props),w.ref=So(h,f,g),w.return=h,w):(w=ei(g.type,g.key,g.props,null,h.mode,w),w.ref=So(h,f,g),w.return=h,w)}function u(h,f,g,w){return f===null||f.tag!==4||f.stateNode.containerInfo!==g.containerInfo||f.stateNode.implementation!==g.implementation?(f=Il(g,h.mode,w),f.return=h,f):(f=o(f,g.children||[]),f.return=h,f)}function d(h,f,g,w,E){return f===null||f.tag!==7?(f=sr(g,h.mode,w,E),f.return=h,f):(f=o(f,g),f.return=h,f)}function p(h,f,g){if(typeof f=="string"&&f!==""||typeof f=="number")return f=Dl(""+f,h.mode,g),f.return=h,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Cs:return g=ei(f.type,f.key,f.props,null,h.mode,g),g.ref=So(h,null,f),g.return=h,g;case Cr:return f=Il(f,h.mode,g),f.return=h,f;case hn:var w=f._init;return p(h,w(f._payload),g)}if(To(f)||go(f))return f=sr(f,h.mode,g,null),f.return=h,f;As(h,f)}return null}function m(h,f,g,w){var E=f!==null?f.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return E!==null?null:l(h,f,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Cs:return g.key===E?a(h,f,g,w):null;case Cr:return g.key===E?u(h,f,g,w):null;case hn:return E=g._init,m(h,f,E(g._payload),w)}if(To(g)||go(g))return E!==null?null:d(h,f,g,w,null);As(h,g)}return null}function c(h,f,g,w,E){if(typeof w=="string"&&w!==""||typeof w=="number")return h=h.get(g)||null,l(f,h,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Cs:return h=h.get(w.key===null?g:w.key)||null,a(f,h,w,E);case Cr:return h=h.get(w.key===null?g:w.key)||null,u(f,h,w,E);case hn:var k=w._init;return c(h,f,g,k(w._payload),E)}if(To(w)||go(w))return h=h.get(g)||null,d(f,h,w,E,null);As(f,w)}return null}function S(h,f,g,w){for(var E=null,k=null,P=f,R=f=0,A=null;P!==null&&R<g.length;R++){P.index>R?(A=P,P=null):A=P.sibling;var _=m(h,P,g[R],w);if(_===null){P===null&&(P=A);break}e&&P&&_.alternate===null&&t(h,P),f=s(_,f,R),k===null?E=_:k.sibling=_,k=_,P=A}if(R===g.length)return n(h,P),le&&Yn(h,R),E;if(P===null){for(;R<g.length;R++)P=p(h,g[R],w),P!==null&&(f=s(P,f,R),k===null?E=P:k.sibling=P,k=P);return le&&Yn(h,R),E}for(P=r(h,P);R<g.length;R++)A=c(P,h,R,g[R],w),A!==null&&(e&&A.alternate!==null&&P.delete(A.key===null?R:A.key),f=s(A,f,R),k===null?E=A:k.sibling=A,k=A);return e&&P.forEach(function($){return t(h,$)}),le&&Yn(h,R),E}function v(h,f,g,w){var E=go(g);if(typeof E!="function")throw Error(O(150));if(g=E.call(g),g==null)throw Error(O(151));for(var k=E=null,P=f,R=f=0,A=null,_=g.next();P!==null&&!_.done;R++,_=g.next()){P.index>R?(A=P,P=null):A=P.sibling;var $=m(h,P,_.value,w);if($===null){P===null&&(P=A);break}e&&P&&$.alternate===null&&t(h,P),f=s($,f,R),k===null?E=$:k.sibling=$,k=$,P=A}if(_.done)return n(h,P),le&&Yn(h,R),E;if(P===null){for(;!_.done;R++,_=g.next())_=p(h,_.value,w),_!==null&&(f=s(_,f,R),k===null?E=_:k.sibling=_,k=_);return le&&Yn(h,R),E}for(P=r(h,P);!_.done;R++,_=g.next())_=c(P,h,R,_.value,w),_!==null&&(e&&_.alternate!==null&&P.delete(_.key===null?R:_.key),f=s(_,f,R),k===null?E=_:k.sibling=_,k=_);return e&&P.forEach(function(I){return t(h,I)}),le&&Yn(h,R),E}function C(h,f,g,w){if(typeof g=="object"&&g!==null&&g.type===Er&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Cs:e:{for(var E=g.key,k=f;k!==null;){if(k.key===E){if(E=g.type,E===Er){if(k.tag===7){n(h,k.sibling),f=o(k,g.props.children),f.return=h,h=f;break e}}else if(k.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===hn&&nd(E)===k.type){n(h,k.sibling),f=o(k,g.props),f.ref=So(h,k,g),f.return=h,h=f;break e}n(h,k);break}else t(h,k);k=k.sibling}g.type===Er?(f=sr(g.props.children,h.mode,w,g.key),f.return=h,h=f):(w=ei(g.type,g.key,g.props,null,h.mode,w),w.ref=So(h,f,g),w.return=h,h=w)}return i(h);case Cr:e:{for(k=g.key;f!==null;){if(f.key===k)if(f.tag===4&&f.stateNode.containerInfo===g.containerInfo&&f.stateNode.implementation===g.implementation){n(h,f.sibling),f=o(f,g.children||[]),f.return=h,h=f;break e}else{n(h,f);break}else t(h,f);f=f.sibling}f=Il(g,h.mode,w),f.return=h,h=f}return i(h);case hn:return k=g._init,C(h,f,k(g._payload),w)}if(To(g))return S(h,f,g,w);if(go(g))return v(h,f,g,w);As(h,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,f!==null&&f.tag===6?(n(h,f.sibling),f=o(f,g),f.return=h,h=f):(n(h,f),f=Dl(g,h.mode,w),f.return=h,h=f),i(h)):n(h,f)}return C}var to=Np(!0),Rp=Np(!1),yi=Bn(null),wi=null,jr=null,xu=null;function Su(){xu=jr=wi=null}function Cu(e){var t=yi.current;se(yi),e._currentValue=t}function Sa(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 Fr(e,t){wi=e,xu=jr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Be=!0),e.firstContext=null)}function lt(e){var t=e._currentValue;if(xu!==e)if(e={context:e,memoizedValue:t,next:null},jr===null){if(wi===null)throw Error(O(308));jr=e,wi.dependencies={lanes:0,firstContext:e}}else jr=jr.next=e;return t}var qn=null;function Eu(e){qn===null?qn=[e]:qn.push(e)}function Op(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Eu(t)):(n.next=o.next,o.next=n),t.interleaved=n,Xt(e,r)}function Xt(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 mn=!1;function ku(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function jp(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 Qt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function jn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Z&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Xt(e,n)}return o=r.interleaved,o===null?(t.next=t,Eu(r)):(t.next=o.next,o.next=t),r.interleaved=t,Xt(e,n)}function Ys(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,uu(e,n)}}function rd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,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 xi(e,t,n,r){var o=e.updateQueue;mn=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,i===null?s=u:i.next=u,i=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==i&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=a))}if(s!==null){var p=o.baseState;i=0,d=u=a=null,l=s;do{var m=l.lane,c=l.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:c,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var S=e,v=l;switch(m=t,c=n,v.tag){case 1:if(S=v.payload,typeof S=="function"){p=S.call(c,p,m);break e}p=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=v.payload,m=typeof S=="function"?S.call(c,p,m):S,m==null)break e;p=ce({},p,m);break e;case 2:mn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[l]:m.push(l))}else c={eventTime:c,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=c,a=p):d=d.next=c,i|=m;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;m=l,l=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(a=p),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);ur|=i,e.lanes=i,e.memoizedState=p}}function od(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(O(191,o));o.call(r)}}}var fs={},Mt=Bn(fs),qo=Bn(fs),Zo=Bn(fs);function Zn(e){if(e===fs)throw Error(O(174));return e}function bu(e,t){switch(ne(Zo,t),ne(qo,e),ne(Mt,fs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ta(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ta(t,e)}se(Mt),ne(Mt,t)}function no(){se(Mt),se(qo),se(Zo)}function _p(e){Zn(Zo.current);var t=Zn(Mt.current),n=ta(t,e.type);t!==n&&(ne(qo,e),ne(Mt,n))}function Pu(e){qo.current===e&&(se(Mt),se(qo))}var ae=Bn(0);function Si(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 Ol=[];function Tu(){for(var e=0;e<Ol.length;e++)Ol[e]._workInProgressVersionPrimary=null;Ol.length=0}var Gs=en.ReactCurrentDispatcher,jl=en.ReactCurrentBatchConfig,ar=0,ue=null,ve=null,Se=null,Ci=!1,Lo=!1,Jo=0,ay=0;function Ne(){throw Error(O(321))}function Nu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ct(e[n],t[n]))return!1;return!0}function Ru(e,t,n,r,o,s){if(ar=s,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Gs.current=e===null||e.memoizedState===null?fy:py,e=n(r,o),Lo){s=0;do{if(Lo=!1,Jo=0,25<=s)throw Error(O(301));s+=1,Se=ve=null,t.updateQueue=null,Gs.current=hy,e=n(r,o)}while(Lo)}if(Gs.current=Ei,t=ve!==null&&ve.next!==null,ar=0,Se=ve=ue=null,Ci=!1,t)throw Error(O(300));return e}function Ou(){var e=Jo!==0;return Jo=0,e}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Se===null?ue.memoizedState=Se=e:Se=Se.next=e,Se}function at(){if(ve===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=ve.next;var t=Se===null?ue.memoizedState:Se.next;if(t!==null)Se=t,ve=e;else{if(e===null)throw Error(O(310));ve=e,e={memoizedState:ve.memoizedState,baseState:ve.baseState,baseQueue:ve.baseQueue,queue:ve.queue,next:null},Se===null?ue.memoizedState=Se=e:Se=Se.next=e}return Se}function es(e,t){return typeof t=="function"?t(e):t}function _l(e){var t=at(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=ve,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var l=i=null,a=null,u=s;do{var d=u.lane;if((ar&d)===d)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=p,i=r):a=a.next=p,ue.lanes|=d,ur|=d}u=u.next}while(u!==null&&u!==s);a===null?i=r:a.next=l,Ct(r,t.memoizedState)||(Be=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,ue.lanes|=s,ur|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Al(e){var t=at(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);Ct(s,t.memoizedState)||(Be=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Ap(){}function Mp(e,t){var n=ue,r=at(),o=t(),s=!Ct(r.memoizedState,o);if(s&&(r.memoizedState=o,Be=!0),r=r.queue,ju(Ip.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Se!==null&&Se.memoizedState.tag&1){if(n.flags|=2048,ts(9,Dp.bind(null,n,r,o,t),void 0,null),Ce===null)throw Error(O(349));ar&30||Lp(n,t,o)}return o}function Lp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ue.updateQueue,t===null?(t={lastEffect:null,stores:null},ue.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Dp(e,t,n,r){t.value=n,t.getSnapshot=r,zp(t)&&Fp(e)}function Ip(e,t,n){return n(function(){zp(t)&&Fp(e)})}function zp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ct(e,n)}catch{return!0}}function Fp(e){var t=Xt(e,1);t!==null&&St(t,e,1,-1)}function sd(e){var t=Tt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:es,lastRenderedState:e},t.queue=e,e=e.dispatch=dy.bind(null,ue,e),[t.memoizedState,e]}function ts(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ue.updateQueue,t===null?(t={lastEffect:null,stores:null},ue.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 $p(){return at().memoizedState}function Xs(e,t,n,r){var o=Tt();ue.flags|=e,o.memoizedState=ts(1|t,n,void 0,r===void 0?null:r)}function Bi(e,t,n,r){var o=at();r=r===void 0?null:r;var s=void 0;if(ve!==null){var i=ve.memoizedState;if(s=i.destroy,r!==null&&Nu(r,i.deps)){o.memoizedState=ts(t,n,s,r);return}}ue.flags|=e,o.memoizedState=ts(1|t,n,s,r)}function id(e,t){return Xs(8390656,8,e,t)}function ju(e,t){return Bi(2048,8,e,t)}function Up(e,t){return Bi(4,2,e,t)}function Bp(e,t){return Bi(4,4,e,t)}function Vp(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 Hp(e,t,n){return n=n!=null?n.concat([e]):null,Bi(4,4,Vp.bind(null,t,e),n)}function _u(){}function Wp(e,t){var n=at();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Nu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qp(e,t){var n=at();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Nu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Kp(e,t,n){return ar&21?(Ct(n,t)||(n=Zf(),ue.lanes|=n,ur|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Be=!0),e.memoizedState=n)}function uy(e,t){var n=ee;ee=n!==0&&4>n?n:4,e(!0);var r=jl.transition;jl.transition={};try{e(!1),t()}finally{ee=n,jl.transition=r}}function Yp(){return at().memoizedState}function cy(e,t,n){var r=An(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Gp(e))Xp(t,n);else if(n=Op(e,t,n,r),n!==null){var o=Le();St(n,e,r,o),qp(n,t,r)}}function dy(e,t,n){var r=An(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gp(e))Xp(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,l=s(i,n);if(o.hasEagerState=!0,o.eagerState=l,Ct(l,i)){var a=t.interleaved;a===null?(o.next=o,Eu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Op(e,t,o,r),n!==null&&(o=Le(),St(n,e,r,o),qp(n,t,r))}}function Gp(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function Xp(e,t){Lo=Ci=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,uu(e,n)}}var Ei={readContext:lt,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useInsertionEffect:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useSyncExternalStore:Ne,useId:Ne,unstable_isNewReconciler:!1},fy={readContext:lt,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:id,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Xs(4194308,4,Vp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xs(4,2,e,t)},useMemo:function(e,t){var n=Tt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Tt();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=cy.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:sd,useDebugValue:_u,useDeferredValue:function(e){return Tt().memoizedState=e},useTransition:function(){var e=sd(!1),t=e[0];return e=uy.bind(null,e[1]),Tt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,o=Tt();if(le){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Ce===null)throw Error(O(349));ar&30||Lp(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,id(Ip.bind(null,r,s,e),[e]),r.flags|=2048,ts(9,Dp.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Tt(),t=Ce.identifierPrefix;if(le){var n=Wt,r=Ht;n=(r&~(1<<32-xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Jo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ay++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},py={readContext:lt,useCallback:Wp,useContext:lt,useEffect:ju,useImperativeHandle:Hp,useInsertionEffect:Up,useLayoutEffect:Bp,useMemo:Qp,useReducer:_l,useRef:$p,useState:function(){return _l(es)},useDebugValue:_u,useDeferredValue:function(e){var t=at();return Kp(t,ve.memoizedState,e)},useTransition:function(){var e=_l(es)[0],t=at().memoizedState;return[e,t]},useMutableSource:Ap,useSyncExternalStore:Mp,useId:Yp,unstable_isNewReconciler:!1},hy={readContext:lt,useCallback:Wp,useContext:lt,useEffect:ju,useImperativeHandle:Hp,useInsertionEffect:Up,useLayoutEffect:Bp,useMemo:Qp,useReducer:Al,useRef:$p,useState:function(){return Al(es)},useDebugValue:_u,useDeferredValue:function(e){var t=at();return ve===null?t.memoizedState=e:Kp(t,ve.memoizedState,e)},useTransition:function(){var e=Al(es)[0],t=at().memoizedState;return[e,t]},useMutableSource:Ap,useSyncExternalStore:Mp,useId:Yp,unstable_isNewReconciler:!1};function mt(e,t){if(e&&e.defaultProps){t=ce({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ca(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ce({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vi={isMounted:function(e){return(e=e._reactInternals)?hr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Le(),o=An(e),s=Qt(r,o);s.payload=t,n!=null&&(s.callback=n),t=jn(e,s,o),t!==null&&(St(t,e,o,r),Ys(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Le(),o=An(e),s=Qt(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=jn(e,s,o),t!==null&&(St(t,e,o,r),Ys(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Le(),r=An(e),o=Qt(n,r);o.tag=2,t!=null&&(o.callback=t),t=jn(e,o,r),t!==null&&(St(t,e,r,n),Ys(t,e,r))}};function ld(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!Ko(n,r)||!Ko(o,s):!0}function Zp(e,t,n){var r=!1,o=Dn,s=t.contextType;return typeof s=="object"&&s!==null?s=lt(s):(o=He(t)?ir:je.current,r=t.contextTypes,s=(r=r!=null)?Jr(e,o):Dn),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Vi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function ad(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&&Vi.enqueueReplaceState(t,t.state,null)}function Ea(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},ku(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=lt(s):(s=He(t)?ir:je.current,o.context=Jr(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Ca(e,t,s,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&&Vi.enqueueReplaceState(o,o.state,null),xi(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function ro(e,t){try{var n="",r=t;do n+=Bg(r),r=r.return;while(r);var o=n}catch(s){o=`
39
- Error generating stack: `+s.message+`
40
- `+s.stack}return{value:e,source:t,stack:o,digest:null}}function Ml(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ka(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var my=typeof WeakMap=="function"?WeakMap:Map;function Jp(e,t,n){n=Qt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){bi||(bi=!0,Ma=r),ka(e,t)},n}function eh(e,t,n){n=Qt(-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(){ka(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){ka(e,t),typeof r!="function"&&(_n===null?_n=new Set([this]):_n.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function ud(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new my;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=Ry.bind(null,e,t,n),t.then(e,e))}function cd(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 dd(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=Qt(-1,1),t.tag=2,jn(n,t,1))),n.lanes|=1),e)}var gy=en.ReactCurrentOwner,Be=!1;function Me(e,t,n,r){t.child=e===null?Rp(t,null,n,r):to(t,e.child,n,r)}function fd(e,t,n,r,o){n=n.render;var s=t.ref;return Fr(t,o),r=Ru(e,t,n,r,s,o),n=Ou(),e!==null&&!Be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qt(e,t,o)):(le&&n&&vu(t),t.flags|=1,Me(e,t,r,o),t.child)}function pd(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!$u(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,th(e,t,s,r,o)):(e=ei(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:Ko,n(i,r)&&e.ref===t.ref)return qt(e,t,o)}return t.flags|=1,e=Mn(s,r),e.ref=t.ref,e.return=t,t.child=e}function th(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(Ko(s,r)&&e.ref===t.ref)if(Be=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(Be=!0);else return t.lanes=e.lanes,qt(e,t,o)}return ba(e,t,n,r,o)}function nh(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ne(Ar,Qe),Qe|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ne(Ar,Qe),Qe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ne(Ar,Qe),Qe|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ne(Ar,Qe),Qe|=r;return Me(e,t,o,n),t.child}function rh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ba(e,t,n,r,o){var s=He(n)?ir:je.current;return s=Jr(t,s),Fr(t,o),n=Ru(e,t,n,r,s,o),r=Ou(),e!==null&&!Be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qt(e,t,o)):(le&&r&&vu(t),t.flags|=1,Me(e,t,n,o),t.child)}function hd(e,t,n,r,o){if(He(n)){var s=!0;mi(t)}else s=!1;if(Fr(t,o),t.stateNode===null)qs(e,t),Zp(t,n,r),Ea(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var a=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=lt(u):(u=He(n)?ir:je.current,u=Jr(t,u));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||a!==u)&&ad(t,i,r,u),mn=!1;var m=t.memoizedState;i.state=m,xi(t,r,i,o),a=t.memoizedState,l!==r||m!==a||Ve.current||mn?(typeof d=="function"&&(Ca(t,n,d,r),a=t.memoizedState),(l=mn||ld(t,n,l,r,m,a,u))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=u,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,jp(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:mt(t.type,l),i.props=u,p=t.pendingProps,m=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=lt(a):(a=He(n)?ir:je.current,a=Jr(t,a));var c=n.getDerivedStateFromProps;(d=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==p||m!==a)&&ad(t,i,r,a),mn=!1,m=t.memoizedState,i.state=m,xi(t,r,i,o);var S=t.memoizedState;l!==p||m!==S||Ve.current||mn?(typeof c=="function"&&(Ca(t,n,c,r),S=t.memoizedState),(u=mn||ld(t,n,u,r,m,S,a)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,S,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,S,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),i.props=r,i.state=S,i.context=a,r=u):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Pa(e,t,n,r,s,o)}function Pa(e,t,n,r,o,s){rh(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&Jc(t,n,!1),qt(e,t,s);r=t.stateNode,gy.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=to(t,e.child,null,s),t.child=to(t,null,l,s)):Me(e,t,l,s),t.memoizedState=r.state,o&&Jc(t,n,!0),t.child}function oh(e){var t=e.stateNode;t.pendingContext?Zc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Zc(e,t.context,!1),bu(e,t.containerInfo)}function md(e,t,n,r,o){return eo(),wu(o),t.flags|=256,Me(e,t,n,r),t.child}var Ta={dehydrated:null,treeContext:null,retryLane:0};function Na(e){return{baseLanes:e,cachePool:null,transitions:null}}function sh(e,t,n){var r=t.pendingProps,o=ae.current,s=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ne(ae,o&1),e===null)return xa(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):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=Qi(i,r,0,null),e=sr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Na(n),t.memoizedState=Ta,e):Au(t,i));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return vy(e,t,i,r,l,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,l=o.sibling;var a={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Mn(o,a),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?s=Mn(l,s):(s=sr(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?Na(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=Ta,r}return s=e.child,e=s.sibling,r=Mn(s,{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 Au(e,t){return t=Qi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ms(e,t,n,r){return r!==null&&wu(r),to(t,e.child,null,n),e=Au(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vy(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=Ml(Error(O(422))),Ms(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Qi({mode:"visible",children:r.children},o,0,null),s=sr(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&to(t,e.child,null,i),t.child.memoizedState=Na(i),t.memoizedState=Ta,s);if(!(t.mode&1))return Ms(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(O(419)),r=Ml(s,r,void 0),Ms(e,t,i,r)}if(l=(i&e.childLanes)!==0,Be||l){if(r=Ce,r!==null){switch(i&-i){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|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,Xt(e,o),St(r,e,o,-1))}return Fu(),r=Ml(Error(O(421))),Ms(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Oy.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,Ye=On(o.nextSibling),Ge=t,le=!0,wt=null,e!==null&&(rt[ot++]=Ht,rt[ot++]=Wt,rt[ot++]=lr,Ht=e.id,Wt=e.overflow,lr=t),t=Au(t,r.children),t.flags|=4096,t)}function gd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Sa(e.return,t,n)}function Ll(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function ih(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(Me(e,t,r.children,n),r=ae.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&&gd(e,n,t);else if(e.tag===19)gd(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(ne(ae,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&&Si(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ll(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Si(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ll(t,!0,n,null,s);break;case"together":Ll(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qs(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ur|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,n=Mn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Mn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function yy(e,t,n){switch(t.tag){case 3:oh(t),eo();break;case 5:_p(t);break;case 1:He(t.type)&&mi(t);break;case 4:bu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ne(yi,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ne(ae,ae.current&1),t.flags|=128,null):n&t.child.childLanes?sh(e,t,n):(ne(ae,ae.current&1),e=qt(e,t,n),e!==null?e.sibling:null);ne(ae,ae.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return ih(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ne(ae,ae.current),r)break;return null;case 22:case 23:return t.lanes=0,nh(e,t,n)}return qt(e,t,n)}var lh,Ra,ah,uh;lh=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}};Ra=function(){};ah=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Zn(Mt.current);var s=null;switch(n){case"input":o=ql(e,o),r=ql(e,r),s=[];break;case"select":o=ce({},o,{value:void 0}),r=ce({},r,{value:void 0}),s=[];break;case"textarea":o=ea(e,o),r=ea(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=pi)}na(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&($o.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var a=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(i in l)!l.hasOwnProperty(i)||a&&a.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in a)a.hasOwnProperty(i)&&l[i]!==a[i]&&(n||(n={}),n[i]=a[i])}else n||(s||(s=[]),s.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&($o.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&oe("scroll",e),s||l===a||(s=[])):(s=s||[]).push(u,a))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};uh=function(e,t,n,r){n!==r&&(t.flags|=4)};function Co(e,t){if(!le)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 Re(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 wy(e,t,n){var r=t.pendingProps;switch(yu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Re(t),null;case 1:return He(t.type)&&hi(),Re(t),null;case 3:return r=t.stateNode,no(),se(Ve),se(je),Tu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(_s(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,wt!==null&&(Ia(wt),wt=null))),Ra(e,t),Re(t),null;case 5:Pu(t);var o=Zn(Zo.current);if(n=t.type,e!==null&&t.stateNode!=null)ah(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return Re(t),null}if(e=Zn(Mt.current),_s(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[jt]=t,r[Xo]=s,e=(t.mode&1)!==0,n){case"dialog":oe("cancel",r),oe("close",r);break;case"iframe":case"object":case"embed":oe("load",r);break;case"video":case"audio":for(o=0;o<Ro.length;o++)oe(Ro[o],r);break;case"source":oe("error",r);break;case"img":case"image":case"link":oe("error",r),oe("load",r);break;case"details":oe("toggle",r);break;case"input":bc(r,s),oe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},oe("invalid",r);break;case"textarea":Tc(r,s),oe("invalid",r)}na(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&js(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&js(r.textContent,l,e),o=["children",""+l]):$o.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&oe("scroll",r)}switch(n){case"input":Es(r),Pc(r,s,!0);break;case"textarea":Es(r),Nc(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=pi)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=If(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[jt]=t,e[Xo]=r,lh(e,t,!1,!1),t.stateNode=e;e:{switch(i=ra(n,r),n){case"dialog":oe("cancel",e),oe("close",e),o=r;break;case"iframe":case"object":case"embed":oe("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ro.length;o++)oe(Ro[o],e);o=r;break;case"source":oe("error",e),o=r;break;case"img":case"image":case"link":oe("error",e),oe("load",e),o=r;break;case"details":oe("toggle",e),o=r;break;case"input":bc(e,r),o=ql(e,r),oe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=ce({},r,{value:void 0}),oe("invalid",e);break;case"textarea":Tc(e,r),o=ea(e,r),oe("invalid",e);break;default:o=r}na(n,o),l=o;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?$f(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&zf(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Uo(e,a):typeof a=="number"&&Uo(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&($o.hasOwnProperty(s)?a!=null&&s==="onScroll"&&oe("scroll",e):a!=null&&ru(e,s,a,i))}switch(n){case"input":Es(e),Pc(e,r,!1);break;case"textarea":Es(e),Nc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ln(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Lr(e,!!r.multiple,s,!1):r.defaultValue!=null&&Lr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=pi)}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 Re(t),null;case 6:if(e&&t.stateNode!=null)uh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=Zn(Zo.current),Zn(Mt.current),_s(t)){if(r=t.stateNode,n=t.memoizedProps,r[jt]=t,(s=r.nodeValue!==n)&&(e=Ge,e!==null))switch(e.tag){case 3:js(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&js(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[jt]=t,t.stateNode=r}return Re(t),null;case 13:if(se(ae),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(le&&Ye!==null&&t.mode&1&&!(t.flags&128))Tp(),eo(),t.flags|=98560,s=!1;else if(s=_s(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(O(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(O(317));s[jt]=t}else eo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Re(t),s=!1}else wt!==null&&(Ia(wt),wt=null),s=!0;if(!s)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||ae.current&1?we===0&&(we=3):Fu())),t.updateQueue!==null&&(t.flags|=4),Re(t),null);case 4:return no(),Ra(e,t),e===null&&Yo(t.stateNode.containerInfo),Re(t),null;case 10:return Cu(t.type._context),Re(t),null;case 17:return He(t.type)&&hi(),Re(t),null;case 19:if(se(ae),s=t.memoizedState,s===null)return Re(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Co(s,!1);else{if(we!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Si(e),i!==null){for(t.flags|=128,Co(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ne(ae,ae.current&1|2),t.child}e=e.sibling}s.tail!==null&&he()>oo&&(t.flags|=128,r=!0,Co(s,!1),t.lanes=4194304)}else{if(!r)if(e=Si(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Co(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!le)return Re(t),null}else 2*he()-s.renderingStartTime>oo&&n!==1073741824&&(t.flags|=128,r=!0,Co(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=he(),t.sibling=null,n=ae.current,ne(ae,r?n&1|2:n&1),t):(Re(t),null);case 22:case 23:return zu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Qe&1073741824&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function xy(e,t){switch(yu(t),t.tag){case 1:return He(t.type)&&hi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return no(),se(Ve),se(je),Tu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pu(t),null;case 13:if(se(ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));eo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(ae),null;case 4:return no(),null;case 10:return Cu(t.type._context),null;case 22:case 23:return zu(),null;case 24:return null;default:return null}}var Ls=!1,Oe=!1,Sy=typeof WeakSet=="function"?WeakSet:Set,D=null;function _r(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function Oa(e,t,n){try{n()}catch(r){fe(e,t,r)}}var vd=!1;function Cy(e,t){if(pa=ci,e=hp(),gu(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,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,l=-1,a=-1,u=0,d=0,p=e,m=null;t:for(;;){for(var c;p!==n||o!==0&&p.nodeType!==3||(l=i+o),p!==s||r!==0&&p.nodeType!==3||(a=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(c=p.firstChild)!==null;)m=p,p=c;for(;;){if(p===e)break t;if(m===n&&++u===o&&(l=i),m===s&&++d===r&&(a=i),(c=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=c}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ha={focusedElem:e,selectionRange:n},ci=!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 S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var v=S.memoizedProps,C=S.memoizedState,h=t.stateNode,f=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:mt(t.type,v),C);h.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(w){fe(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return S=vd,vd=!1,S}function Do(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 s=o.destroy;o.destroy=void 0,s!==void 0&&Oa(t,n,s)}o=o.next}while(o!==r)}}function Hi(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 ja(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 ch(e){var t=e.alternate;t!==null&&(e.alternate=null,ch(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[jt],delete t[Xo],delete t[va],delete t[oy],delete t[sy])),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 dh(e){return e.tag===5||e.tag===3||e.tag===4}function yd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dh(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 _a(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=pi));else if(r!==4&&(e=e.child,e!==null))for(_a(e,t,n),e=e.sibling;e!==null;)_a(e,t,n),e=e.sibling}function Aa(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(Aa(e,t,n),e=e.sibling;e!==null;)Aa(e,t,n),e=e.sibling}var Ee=null,yt=!1;function cn(e,t,n){for(n=n.child;n!==null;)fh(e,t,n),n=n.sibling}function fh(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(Di,n)}catch{}switch(n.tag){case 5:Oe||_r(n,t);case 6:var r=Ee,o=yt;Ee=null,cn(e,t,n),Ee=r,yt=o,Ee!==null&&(yt?(e=Ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ee.removeChild(n.stateNode));break;case 18:Ee!==null&&(yt?(e=Ee,n=n.stateNode,e.nodeType===8?Nl(e.parentNode,n):e.nodeType===1&&Nl(e,n),Wo(e)):Nl(Ee,n.stateNode));break;case 4:r=Ee,o=yt,Ee=n.stateNode.containerInfo,yt=!0,cn(e,t,n),Ee=r,yt=o;break;case 0:case 11:case 14:case 15:if(!Oe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&Oa(n,t,i),o=o.next}while(o!==r)}cn(e,t,n);break;case 1:if(!Oe&&(_r(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){fe(n,t,l)}cn(e,t,n);break;case 21:cn(e,t,n);break;case 22:n.mode&1?(Oe=(r=Oe)||n.memoizedState!==null,cn(e,t,n),Oe=r):cn(e,t,n);break;default:cn(e,t,n)}}function wd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Sy),t.forEach(function(r){var o=jy.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 5:Ee=l.stateNode,yt=!1;break e;case 3:Ee=l.stateNode.containerInfo,yt=!0;break e;case 4:Ee=l.stateNode.containerInfo,yt=!0;break e}l=l.return}if(Ee===null)throw Error(O(160));fh(s,i,o),Ee=null,yt=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){fe(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ph(t,e),t=t.sibling}function ph(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pt(t,e),Pt(e),r&4){try{Do(3,e,e.return),Hi(3,e)}catch(v){fe(e,e.return,v)}try{Do(5,e,e.return)}catch(v){fe(e,e.return,v)}}break;case 1:pt(t,e),Pt(e),r&512&&n!==null&&_r(n,n.return);break;case 5:if(pt(t,e),Pt(e),r&512&&n!==null&&_r(n,n.return),e.flags&32){var o=e.stateNode;try{Uo(o,"")}catch(v){fe(e,e.return,v)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&Lf(o,s),ra(l,i);var u=ra(l,s);for(i=0;i<a.length;i+=2){var d=a[i],p=a[i+1];d==="style"?$f(o,p):d==="dangerouslySetInnerHTML"?zf(o,p):d==="children"?Uo(o,p):ru(o,d,p,u)}switch(l){case"input":Zl(o,s);break;case"textarea":Df(o,s);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var c=s.value;c!=null?Lr(o,!!s.multiple,c,!1):m!==!!s.multiple&&(s.defaultValue!=null?Lr(o,!!s.multiple,s.defaultValue,!0):Lr(o,!!s.multiple,s.multiple?[]:"",!1))}o[Xo]=s}catch(v){fe(e,e.return,v)}}break;case 6:if(pt(t,e),Pt(e),r&4){if(e.stateNode===null)throw Error(O(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(v){fe(e,e.return,v)}}break;case 3:if(pt(t,e),Pt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Wo(t.containerInfo)}catch(v){fe(e,e.return,v)}break;case 4:pt(t,e),Pt(e);break;case 13:pt(t,e),Pt(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(Du=he())),r&4&&wd(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Oe=(u=Oe)||d,pt(t,e),Oe=u):pt(t,e),Pt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(D=e,d=e.child;d!==null;){for(p=D=d;D!==null;){switch(m=D,c=m.child,m.tag){case 0:case 11:case 14:case 15:Do(4,m,m.return);break;case 1:_r(m,m.return);var S=m.stateNode;if(typeof S.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,S.props=t.memoizedProps,S.state=t.memoizedState,S.componentWillUnmount()}catch(v){fe(r,n,v)}}break;case 5:_r(m,m.return);break;case 22:if(m.memoizedState!==null){Sd(p);continue}}c!==null?(c.return=m,D=c):Sd(p)}d=d.sibling}e:for(d=null,p=e;;){if(p.tag===5){if(d===null){d=p;try{o=p.stateNode,u?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=p.stateNode,a=p.memoizedProps.style,i=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=Ff("display",i))}catch(v){fe(e,e.return,v)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(v){fe(e,e.return,v)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:pt(t,e),Pt(e),r&4&&wd(e);break;case 21:break;default:pt(t,e),Pt(e)}}function Pt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(dh(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Uo(o,""),r.flags&=-33);var s=yd(e);Aa(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,l=yd(e);_a(e,l,i);break;default:throw Error(O(161))}}catch(a){fe(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ey(e,t,n){D=e,hh(e)}function hh(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var o=D,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||Ls;if(!i){var l=o.alternate,a=l!==null&&l.memoizedState!==null||Oe;l=Ls;var u=Oe;if(Ls=i,(Oe=a)&&!u)for(D=o;D!==null;)i=D,a=i.child,i.tag===22&&i.memoizedState!==null?Cd(o):a!==null?(a.return=i,D=a):Cd(o);for(;s!==null;)D=s,hh(s),s=s.sibling;D=o,Ls=l,Oe=u}xd(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,D=s):xd(e)}}function xd(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:Oe||Hi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Oe)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:mt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&od(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}od(t,i,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&Wo(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}Oe||t.flags&512&&ja(t)}catch(m){fe(t,t.return,m)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function Sd(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 Cd(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Hi(4,t)}catch(a){fe(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){fe(t,o,a)}}var s=t.return;try{ja(t)}catch(a){fe(t,s,a)}break;case 5:var i=t.return;try{ja(t)}catch(a){fe(t,i,a)}}}catch(a){fe(t,t.return,a)}if(t===e){D=null;break}var l=t.sibling;if(l!==null){l.return=t.return,D=l;break}D=t.return}}var ky=Math.ceil,ki=en.ReactCurrentDispatcher,Mu=en.ReactCurrentOwner,it=en.ReactCurrentBatchConfig,Z=0,Ce=null,ge=null,be=0,Qe=0,Ar=Bn(0),we=0,ns=null,ur=0,Wi=0,Lu=0,Io=null,Ue=null,Du=0,oo=1/0,$t=null,bi=!1,Ma=null,_n=null,Ds=!1,Pn=null,Pi=0,zo=0,La=null,Zs=-1,Js=0;function Le(){return Z&6?he():Zs!==-1?Zs:Zs=he()}function An(e){return e.mode&1?Z&2&&be!==0?be&-be:ly.transition!==null?(Js===0&&(Js=Zf()),Js):(e=ee,e!==0||(e=window.event,e=e===void 0?16:sp(e.type)),e):1}function St(e,t,n,r){if(50<zo)throw zo=0,La=null,Error(O(185));us(e,n,r),(!(Z&2)||e!==Ce)&&(e===Ce&&(!(Z&2)&&(Wi|=n),we===4&&vn(e,be)),We(e,r),n===1&&Z===0&&!(t.mode&1)&&(oo=he()+500,Ui&&Vn()))}function We(e,t){var n=e.callbackNode;lv(e,t);var r=ui(e,e===Ce?be:0);if(r===0)n!==null&&jc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&jc(n),t===1)e.tag===0?iy(Ed.bind(null,e)):kp(Ed.bind(null,e)),ny(function(){!(Z&6)&&Vn()}),n=null;else{switch(Jf(r)){case 1:n=au;break;case 4:n=Xf;break;case 16:n=ai;break;case 536870912:n=qf;break;default:n=ai}n=Ch(n,mh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function mh(e,t){if(Zs=-1,Js=0,Z&6)throw Error(O(327));var n=e.callbackNode;if($r()&&e.callbackNode!==n)return null;var r=ui(e,e===Ce?be:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ti(e,r);else{t=r;var o=Z;Z|=2;var s=vh();(Ce!==e||be!==t)&&($t=null,oo=he()+500,or(e,t));do try{Ty();break}catch(l){gh(e,l)}while(!0);Su(),ki.current=s,Z=o,ge!==null?t=0:(Ce=null,be=0,t=we)}if(t!==0){if(t===2&&(o=aa(e),o!==0&&(r=o,t=Da(e,o))),t===1)throw n=ns,or(e,0),vn(e,r),We(e,he()),n;if(t===6)vn(e,r);else{if(o=e.current.alternate,!(r&30)&&!by(o)&&(t=Ti(e,r),t===2&&(s=aa(e),s!==0&&(r=s,t=Da(e,s))),t===1))throw n=ns,or(e,0),vn(e,r),We(e,he()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:Gn(e,Ue,$t);break;case 3:if(vn(e,r),(r&130023424)===r&&(t=Du+500-he(),10<t)){if(ui(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Le(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ga(Gn.bind(null,e,Ue,$t),t);break}Gn(e,Ue,$t);break;case 4:if(vn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-xt(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=he()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ky(r/1960))-r,10<r){e.timeoutHandle=ga(Gn.bind(null,e,Ue,$t),r);break}Gn(e,Ue,$t);break;case 5:Gn(e,Ue,$t);break;default:throw Error(O(329))}}}return We(e,he()),e.callbackNode===n?mh.bind(null,e):null}function Da(e,t){var n=Io;return e.current.memoizedState.isDehydrated&&(or(e,t).flags|=256),e=Ti(e,t),e!==2&&(t=Ue,Ue=n,t!==null&&Ia(t)),e}function Ia(e){Ue===null?Ue=e:Ue.push.apply(Ue,e)}function by(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],s=o.getSnapshot;o=o.value;try{if(!Ct(s(),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 vn(e,t){for(t&=~Lu,t&=~Wi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-xt(t),r=1<<n;e[n]=-1,t&=~r}}function Ed(e){if(Z&6)throw Error(O(327));$r();var t=ui(e,0);if(!(t&1))return We(e,he()),null;var n=Ti(e,t);if(e.tag!==0&&n===2){var r=aa(e);r!==0&&(t=r,n=Da(e,r))}if(n===1)throw n=ns,or(e,0),vn(e,t),We(e,he()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Gn(e,Ue,$t),We(e,he()),null}function Iu(e,t){var n=Z;Z|=1;try{return e(t)}finally{Z=n,Z===0&&(oo=he()+500,Ui&&Vn())}}function cr(e){Pn!==null&&Pn.tag===0&&!(Z&6)&&$r();var t=Z;Z|=1;var n=it.transition,r=ee;try{if(it.transition=null,ee=1,e)return e()}finally{ee=r,it.transition=n,Z=t,!(Z&6)&&Vn()}}function zu(){Qe=Ar.current,se(Ar)}function or(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ty(n)),ge!==null)for(n=ge.return;n!==null;){var r=n;switch(yu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&hi();break;case 3:no(),se(Ve),se(je),Tu();break;case 5:Pu(r);break;case 4:no();break;case 13:se(ae);break;case 19:se(ae);break;case 10:Cu(r.type._context);break;case 22:case 23:zu()}n=n.return}if(Ce=e,ge=e=Mn(e.current,null),be=Qe=t,we=0,ns=null,Lu=Wi=ur=0,Ue=Io=null,qn!==null){for(t=0;t<qn.length;t++)if(n=qn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}qn=null}return e}function gh(e,t){do{var n=ge;try{if(Su(),Gs.current=Ei,Ci){for(var r=ue.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Ci=!1}if(ar=0,Se=ve=ue=null,Lo=!1,Jo=0,Mu.current=null,n===null||n.return===null){we=1,ns=t,ge=null;break}e:{var s=e,i=n.return,l=n,a=t;if(t=be,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,d=l,p=d.tag;if(!(d.mode&1)&&(p===0||p===11||p===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var c=cd(i);if(c!==null){c.flags&=-257,dd(c,i,l,s,t),c.mode&1&&ud(s,u,t),t=c,a=u;var S=t.updateQueue;if(S===null){var v=new Set;v.add(a),t.updateQueue=v}else S.add(a);break e}else{if(!(t&1)){ud(s,u,t),Fu();break e}a=Error(O(426))}}else if(le&&l.mode&1){var C=cd(i);if(C!==null){!(C.flags&65536)&&(C.flags|=256),dd(C,i,l,s,t),wu(ro(a,l));break e}}s=a=ro(a,l),we!==4&&(we=2),Io===null?Io=[s]:Io.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var h=Jp(s,a,t);rd(s,h);break e;case 1:l=a;var f=s.type,g=s.stateNode;if(!(s.flags&128)&&(typeof f.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(_n===null||!_n.has(g)))){s.flags|=65536,t&=-t,s.lanes|=t;var w=eh(s,l,t);rd(s,w);break e}}s=s.return}while(s!==null)}wh(n)}catch(E){t=E,ge===n&&n!==null&&(ge=n=n.return);continue}break}while(!0)}function vh(){var e=ki.current;return ki.current=Ei,e===null?Ei:e}function Fu(){(we===0||we===3||we===2)&&(we=4),Ce===null||!(ur&268435455)&&!(Wi&268435455)||vn(Ce,be)}function Ti(e,t){var n=Z;Z|=2;var r=vh();(Ce!==e||be!==t)&&($t=null,or(e,t));do try{Py();break}catch(o){gh(e,o)}while(!0);if(Su(),Z=n,ki.current=r,ge!==null)throw Error(O(261));return Ce=null,be=0,we}function Py(){for(;ge!==null;)yh(ge)}function Ty(){for(;ge!==null&&!Zg();)yh(ge)}function yh(e){var t=Sh(e.alternate,e,Qe);e.memoizedProps=e.pendingProps,t===null?wh(e):ge=t,Mu.current=null}function wh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=xy(n,t),n!==null){n.flags&=32767,ge=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{we=6,ge=null;return}}else if(n=wy(n,t,Qe),n!==null){ge=n;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);we===0&&(we=5)}function Gn(e,t,n){var r=ee,o=it.transition;try{it.transition=null,ee=1,Ny(e,t,n,r)}finally{it.transition=o,ee=r}return null}function Ny(e,t,n,r){do $r();while(Pn!==null);if(Z&6)throw Error(O(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(O(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(av(e,s),e===Ce&&(ge=Ce=null,be=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ds||(Ds=!0,Ch(ai,function(){return $r(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=it.transition,it.transition=null;var i=ee;ee=1;var l=Z;Z|=4,Mu.current=null,Cy(e,n),ph(n,e),Yv(ha),ci=!!pa,ha=pa=null,e.current=n,Ey(n),Jg(),Z=l,ee=i,it.transition=s}else e.current=n;if(Ds&&(Ds=!1,Pn=e,Pi=o),s=e.pendingLanes,s===0&&(_n=null),nv(n.stateNode),We(e,he()),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(bi)throw bi=!1,e=Ma,Ma=null,e;return Pi&1&&e.tag!==0&&$r(),s=e.pendingLanes,s&1?e===La?zo++:(zo=0,La=e):zo=0,Vn(),null}function $r(){if(Pn!==null){var e=Jf(Pi),t=it.transition,n=ee;try{if(it.transition=null,ee=16>e?16:e,Pn===null)var r=!1;else{if(e=Pn,Pn=null,Pi=0,Z&6)throw Error(O(331));var o=Z;for(Z|=4,D=e.current;D!==null;){var s=D,i=s.child;if(D.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(D=u;D!==null;){var d=D;switch(d.tag){case 0:case 11:case 15:Do(8,d,s)}var p=d.child;if(p!==null)p.return=d,D=p;else for(;D!==null;){d=D;var m=d.sibling,c=d.return;if(ch(d),d===u){D=null;break}if(m!==null){m.return=c,D=m;break}D=c}}}var S=s.alternate;if(S!==null){var v=S.child;if(v!==null){S.child=null;do{var C=v.sibling;v.sibling=null,v=C}while(v!==null)}}D=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,D=i;else e:for(;D!==null;){if(s=D,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Do(9,s,s.return)}var h=s.sibling;if(h!==null){h.return=s.return,D=h;break e}D=s.return}}var f=e.current;for(D=f;D!==null;){i=D;var g=i.child;if(i.subtreeFlags&2064&&g!==null)g.return=i,D=g;else e:for(i=f;D!==null;){if(l=D,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Hi(9,l)}}catch(E){fe(l,l.return,E)}if(l===i){D=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,D=w;break e}D=l.return}}if(Z=o,Vn(),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(Di,e)}catch{}r=!0}return r}finally{ee=n,it.transition=t}}return!1}function kd(e,t,n){t=ro(n,t),t=Jp(e,t,1),e=jn(e,t,1),t=Le(),e!==null&&(us(e,1,t),We(e,t))}function fe(e,t,n){if(e.tag===3)kd(e,e,n);else for(;t!==null;){if(t.tag===3){kd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(_n===null||!_n.has(r))){e=ro(n,e),e=eh(t,e,1),t=jn(t,e,1),e=Le(),t!==null&&(us(t,1,e),We(t,e));break}}t=t.return}}function Ry(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Le(),e.pingedLanes|=e.suspendedLanes&n,Ce===e&&(be&n)===n&&(we===4||we===3&&(be&130023424)===be&&500>he()-Du?or(e,0):Lu|=n),We(e,t)}function xh(e,t){t===0&&(e.mode&1?(t=Ps,Ps<<=1,!(Ps&130023424)&&(Ps=4194304)):t=1);var n=Le();e=Xt(e,t),e!==null&&(us(e,t,n),We(e,n))}function Oy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xh(e,n)}function jy(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(O(314))}r!==null&&r.delete(t),xh(e,n)}var Sh;Sh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ve.current)Be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Be=!1,yy(e,t,n);Be=!!(e.flags&131072)}else Be=!1,le&&t.flags&1048576&&bp(t,vi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qs(e,t),e=t.pendingProps;var o=Jr(t,je.current);Fr(t,n),o=Ru(null,t,r,e,o,n);var s=Ou();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,He(r)?(s=!0,mi(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ku(t),o.updater=Vi,t.stateNode=o,o._reactInternals=t,Ea(t,r,e,n),t=Pa(null,t,r,!0,s,n)):(t.tag=0,le&&s&&vu(t),Me(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(qs(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Ay(r),e=mt(r,e),o){case 0:t=ba(null,t,r,e,n);break e;case 1:t=hd(null,t,r,e,n);break e;case 11:t=fd(null,t,r,e,n);break e;case 14:t=pd(null,t,r,mt(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),ba(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),hd(e,t,r,o,n);case 3:e:{if(oh(t),e===null)throw Error(O(387));r=t.pendingProps,s=t.memoizedState,o=s.element,jp(e,t),xi(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=ro(Error(O(423)),t),t=md(e,t,r,n,o);break e}else if(r!==o){o=ro(Error(O(424)),t),t=md(e,t,r,n,o);break e}else for(Ye=On(t.stateNode.containerInfo.firstChild),Ge=t,le=!0,wt=null,n=Rp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(eo(),r===o){t=qt(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return _p(t),e===null&&xa(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,ma(r,o)?i=null:s!==null&&ma(r,s)&&(t.flags|=32),rh(e,t),Me(e,t,i,n),t.child;case 6:return e===null&&xa(t),null;case 13:return sh(e,t,n);case 4:return bu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=to(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),fd(e,t,r,o,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,ne(yi,r._currentValue),r._currentValue=i,s!==null)if(Ct(s.value,i)){if(s.children===o.children&&!Ve.current){t=qt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){i=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=Qt(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Sa(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(O(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Sa(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Me(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Fr(t,n),o=lt(o),r=r(o),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,o=mt(r,t.pendingProps),o=mt(r.type,o),pd(e,t,r,o,n);case 15:return th(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),qs(e,t),t.tag=1,He(r)?(e=!0,mi(t)):e=!1,Fr(t,n),Zp(t,r,o),Ea(t,r,o,n),Pa(null,t,r,!0,e,n);case 19:return ih(e,t,n);case 22:return nh(e,t,n)}throw Error(O(156,t.tag))};function Ch(e,t){return Gf(e,t)}function _y(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 st(e,t,n,r){return new _y(e,t,n,r)}function $u(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ay(e){if(typeof e=="function")return $u(e)?1:0;if(e!=null){if(e=e.$$typeof,e===su)return 11;if(e===iu)return 14}return 2}function Mn(e,t){var n=e.alternate;return n===null?(n=st(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 ei(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")$u(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Er:return sr(n.children,o,s,t);case ou:i=8,o|=8;break;case Kl:return e=st(12,n,t,o|2),e.elementType=Kl,e.lanes=s,e;case Yl:return e=st(13,n,t,o),e.elementType=Yl,e.lanes=s,e;case Gl:return e=st(19,n,t,o),e.elementType=Gl,e.lanes=s,e;case _f:return Qi(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Of:i=10;break e;case jf:i=9;break e;case su:i=11;break e;case iu:i=14;break e;case hn:i=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=st(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function sr(e,t,n,r){return e=st(7,e,r,t),e.lanes=n,e}function Qi(e,t,n,r){return e=st(22,e,r,t),e.elementType=_f,e.lanes=n,e.stateNode={isHidden:!1},e}function Dl(e,t,n){return e=st(6,e,null,t),e.lanes=n,e}function Il(e,t,n){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function My(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=vl(0),this.expirationTimes=vl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Uu(e,t,n,r,o,s,i,l,a){return e=new My(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=st(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ku(s),e}function Ly(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Cr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Eh(e){if(!e)return Dn;e=e._reactInternals;e:{if(hr(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(He(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(He(n))return Ep(e,n,t)}return t}function kh(e,t,n,r,o,s,i,l,a){return e=Uu(n,r,!0,e,o,s,i,l,a),e.context=Eh(null),n=e.current,r=Le(),o=An(n),s=Qt(r,o),s.callback=t??null,jn(n,s,o),e.current.lanes=o,us(e,o,r),We(e,r),e}function Ki(e,t,n,r){var o=t.current,s=Le(),i=An(o);return n=Eh(n),t.context===null?t.context=n:t.pendingContext=n,t=Qt(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=jn(o,t,i),e!==null&&(St(e,o,i,s),Ys(e,o,i)),i}function Ni(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 bd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Bu(e,t){bd(e,t),(e=e.alternate)&&bd(e,t)}function Dy(){return null}var bh=typeof reportError=="function"?reportError:function(e){console.error(e)};function Vu(e){this._internalRoot=e}Yi.prototype.render=Vu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));Ki(e,t,null,null)};Yi.prototype.unmount=Vu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;cr(function(){Ki(null,e,null,null)}),t[Gt]=null}};function Yi(e){this._internalRoot=e}Yi.prototype.unstable_scheduleHydration=function(e){if(e){var t=np();e={blockedOn:null,target:e,priority:t};for(var n=0;n<gn.length&&t!==0&&t<gn[n].priority;n++);gn.splice(n,0,e),n===0&&op(e)}};function Hu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Gi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Pd(){}function Iy(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var u=Ni(i);s.call(u)}}var i=kh(t,r,e,0,null,!1,!1,"",Pd);return e._reactRootContainer=i,e[Gt]=i.current,Yo(e.nodeType===8?e.parentNode:e),cr(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=Ni(a);l.call(u)}}var a=Uu(e,0,!1,null,null,!1,!1,"",Pd);return e._reactRootContainer=a,e[Gt]=a.current,Yo(e.nodeType===8?e.parentNode:e),cr(function(){Ki(t,a,n,r)}),a}function Xi(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var l=o;o=function(){var a=Ni(i);l.call(a)}}Ki(t,i,e,o)}else i=Iy(n,t,e,o,r);return Ni(i)}ep=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=No(t.pendingLanes);n!==0&&(uu(t,n|1),We(t,he()),!(Z&6)&&(oo=he()+500,Vn()))}break;case 13:cr(function(){var r=Xt(e,1);if(r!==null){var o=Le();St(r,e,1,o)}}),Bu(e,1)}};cu=function(e){if(e.tag===13){var t=Xt(e,134217728);if(t!==null){var n=Le();St(t,e,134217728,n)}Bu(e,134217728)}};tp=function(e){if(e.tag===13){var t=An(e),n=Xt(e,t);if(n!==null){var r=Le();St(n,e,t,r)}Bu(e,t)}};np=function(){return ee};rp=function(e,t){var n=ee;try{return ee=e,t()}finally{ee=n}};sa=function(e,t,n){switch(t){case"input":if(Zl(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=$i(r);if(!o)throw Error(O(90));Mf(r),Zl(r,o)}}}break;case"textarea":Df(e,n);break;case"select":t=n.value,t!=null&&Lr(e,!!n.multiple,t,!1)}};Vf=Iu;Hf=cr;var zy={usingClientEntryPoint:!1,Events:[ds,Tr,$i,Uf,Bf,Iu]},Eo={findFiberByHostInstance:Xn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Fy={bundleType:Eo.bundleType,version:Eo.version,rendererPackageName:Eo.rendererPackageName,rendererConfig:Eo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:en.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Kf(e),e===null?null:e.stateNode},findFiberByHostInstance:Eo.findFiberByHostInstance||Dy,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 Is=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Is.isDisabled&&Is.supportsFiber)try{Di=Is.inject(Fy),At=Is}catch{}}Ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zy;Ze.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Hu(t))throw Error(O(200));return Ly(e,t,null,n)};Ze.createRoot=function(e,t){if(!Hu(e))throw Error(O(299));var n=!1,r="",o=bh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Uu(e,1,!1,null,null,n,!1,r,o),e[Gt]=t.current,Yo(e.nodeType===8?e.parentNode:e),new Vu(t)};Ze.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(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=Kf(t),e=e===null?null:e.stateNode,e};Ze.flushSync=function(e){return cr(e)};Ze.hydrate=function(e,t,n){if(!Gi(t))throw Error(O(200));return Xi(null,e,t,!0,n)};Ze.hydrateRoot=function(e,t,n){if(!Hu(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=bh;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=kh(t,null,e,1,n??null,o,!1,s,i),e[Gt]=t.current,Yo(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 Yi(t)};Ze.render=function(e,t,n){if(!Gi(t))throw Error(O(200));return Xi(null,e,t,!1,n)};Ze.unmountComponentAtNode=function(e){if(!Gi(e))throw Error(O(40));return e._reactRootContainer?(cr(function(){Xi(null,null,e,!1,function(){e._reactRootContainer=null,e[Gt]=null})}),!0):!1};Ze.unstable_batchedUpdates=Iu;Ze.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Gi(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return Xi(e,t,n,!1,r)};Ze.version="18.3.1-next-f1338f8080-20240426";function Ph(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ph)}catch(e){console.error(e)}}Ph(),Pf.exports=Ze;var ps=Pf.exports;const Th=hf(ps);var Nh,Td=ps;Nh=Td.createRoot,Td.hydrateRoot;const $y=1,Uy=1e6;let zl=0;function By(){return zl=(zl+1)%Number.MAX_SAFE_INTEGER,zl.toString()}const Fl=new Map,Nd=e=>{if(Fl.has(e))return;const t=setTimeout(()=>{Fl.delete(e),Fo({type:"REMOVE_TOAST",toastId:e})},Uy);Fl.set(e,t)},Vy=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,$y)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Nd(n):e.toasts.forEach(r=>{Nd(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ti=[];let ni={toasts:[]};function Fo(e){ni=Vy(ni,e),ti.forEach(t=>{t(ni)})}function Hy({...e}){const t=By(),n=o=>Fo({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Fo({type:"DISMISS_TOAST",toastId:t});return Fo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Wu(){const[e,t]=x.useState(ni);return x.useEffect(()=>(ti.push(t),()=>{const n=ti.indexOf(t);n>-1&&ti.splice(n,1)}),[e]),{...e,toast:Hy,dismiss:n=>Fo({type:"DISMISS_TOAST",toastId:n})}}function ye(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Rd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Rh(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Rd(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Rd(e[o],null)}}}}function Et(...e){return x.useCallback(Rh(...e),e)}function qi(e,t=[]){let n=[];function r(s,i){const l=x.createContext(i),a=n.length;n=[...n,i];const u=p=>{var h;const{scope:m,children:c,...S}=p,v=((h=m==null?void 0:m[e])==null?void 0:h[a])||l,C=x.useMemo(()=>S,Object.values(S));return y.jsx(v.Provider,{value:C,children:c})};u.displayName=s+"Provider";function d(p,m){var v;const c=((v=m==null?void 0:m[e])==null?void 0:v[a])||l,S=x.useContext(c);if(S)return S;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(i=>x.createContext(i));return function(l){const a=(l==null?void 0:l[e])||s;return x.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,Wy(o,...t)]}function Wy(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((l,{useScope:a,scopeName:u})=>{const p=a(s)[`__scope${u}`];return{...l,...p}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Ri(e){const t=Ky(e),n=x.forwardRef((r,o)=>{const{children:s,...i}=r,l=x.Children.toArray(s),a=l.find(Gy);if(a){const u=a.props.children,d=l.map(p=>p===a?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:p);return y.jsx(t,{...i,ref:o,children:x.isValidElement(u)?x.cloneElement(u,void 0,d):null})}return y.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var Qy=Ri("Slot");function Ky(e){const t=x.forwardRef((n,r)=>{const{children:o,...s}=n;if(x.isValidElement(o)){const i=qy(o),l=Xy(s,o.props);return o.type!==x.Fragment&&(l.ref=r?Rh(r,i):i),x.cloneElement(o,l)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Oh=Symbol("radix.slottable");function Yy(e){const t=({children:n})=>y.jsx(y.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Oh,t}function Gy(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Oh}function Xy(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const a=s(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function qy(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Zy(e){const t=e+"CollectionProvider",[n,r]=qi(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:C,children:h}=v,f=j.useRef(null),g=j.useRef(new Map).current;return y.jsx(o,{scope:C,itemMap:g,collectionRef:f,children:h})};i.displayName=t;const l=e+"CollectionSlot",a=Ri(l),u=j.forwardRef((v,C)=>{const{scope:h,children:f}=v,g=s(l,h),w=Et(C,g.collectionRef);return y.jsx(a,{ref:w,children:f})});u.displayName=l;const d=e+"CollectionItemSlot",p="data-radix-collection-item",m=Ri(d),c=j.forwardRef((v,C)=>{const{scope:h,children:f,...g}=v,w=j.useRef(null),E=Et(C,w),k=s(d,h);return j.useEffect(()=>(k.itemMap.set(w,{ref:w,...g}),()=>void k.itemMap.delete(w))),y.jsx(m,{[p]:"",ref:E,children:f})});c.displayName=d;function S(v){const C=s(e+"CollectionConsumer",v);return j.useCallback(()=>{const f=C.collectionRef.current;if(!f)return[];const g=Array.from(f.querySelectorAll(`[${p}]`));return Array.from(C.itemMap.values()).sort((k,P)=>g.indexOf(k.ref.current)-g.indexOf(P.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:i,Slot:u,ItemSlot:c},S,r]}var Jy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ze=Jy.reduce((e,t)=>{const n=Ri(`Primitive.${t}`),r=x.forwardRef((o,s)=>{const{asChild:i,...l}=o,a=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(a,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function jh(e,t){e&&ps.flushSync(()=>e.dispatchEvent(t))}function In(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function e0(e,t=globalThis==null?void 0:globalThis.document){const n=In(e);x.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var t0="DismissableLayer",za="dismissableLayer.update",n0="dismissableLayer.pointerDownOutside",r0="dismissableLayer.focusOutside",Od,_h=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qu=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...a}=e,u=x.useContext(_h),[d,p]=x.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,c]=x.useState({}),S=Et(t,P=>p(P)),v=Array.from(u.layers),[C]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=v.indexOf(C),f=d?v.indexOf(d):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,w=f>=h,E=s0(P=>{const R=P.target,A=[...u.branches].some(_=>_.contains(R));!w||A||(o==null||o(P),i==null||i(P),P.defaultPrevented||l==null||l())},m),k=i0(P=>{const R=P.target;[...u.branches].some(_=>_.contains(R))||(s==null||s(P),i==null||i(P),P.defaultPrevented||l==null||l())},m);return e0(P=>{f===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&l&&(P.preventDefault(),l()))},m),x.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Od=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),jd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Od)}},[d,m,n,u]),x.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),jd())},[d,u]),x.useEffect(()=>{const P=()=>c({});return document.addEventListener(za,P),()=>document.removeEventListener(za,P)},[]),y.jsx(ze.div,{...a,ref:S,style:{pointerEvents:g?w?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,k.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,E.onPointerDownCapture)})});Qu.displayName=t0;var o0="DismissableLayerBranch",Ah=x.forwardRef((e,t)=>{const n=x.useContext(_h),r=x.useRef(null),o=Et(t,r);return x.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),y.jsx(ze.div,{...e,ref:o})});Ah.displayName=o0;function s0(e,t=globalThis==null?void 0:globalThis.document){const n=In(e),r=x.useRef(!1),o=x.useRef(()=>{});return x.useEffect(()=>{const s=l=>{if(l.target&&!r.current){let a=function(){Mh(n0,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function i0(e,t=globalThis==null?void 0:globalThis.document){const n=In(e),r=x.useRef(!1);return x.useEffect(()=>{const o=s=>{s.target&&!r.current&&Mh(r0,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function jd(){const e=new CustomEvent(za);document.dispatchEvent(e)}function Mh(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?jh(o,s):o.dispatchEvent(s)}var l0=Qu,a0=Ah,zn=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},u0="Portal",Lh=x.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,s]=x.useState(!1);zn(()=>s(!0),[]);const i=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?Th.createPortal(y.jsx(ze.div,{...r,ref:t}),i):null});Lh.displayName=u0;function c0(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var Ku=e=>{const{present:t,children:n}=e,r=d0(t),o=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),s=Et(r.ref,f0(o));return typeof n=="function"||r.isPresent?x.cloneElement(o,{ref:s}):null};Ku.displayName="Presence";function d0(e){const[t,n]=x.useState(),r=x.useRef(null),o=x.useRef(e),s=x.useRef("none"),i=e?"mounted":"unmounted",[l,a]=c0(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=zs(r.current);s.current=l==="mounted"?u:"none"},[l]),zn(()=>{const u=r.current,d=o.current;if(d!==e){const m=s.current,c=zs(u);e?a("MOUNT"):c==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(d&&m!==c?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),zn(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=c=>{const v=zs(r.current).includes(CSS.escape(c.animationName));if(c.target===t&&v&&(a("ANIMATION_END"),!o.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},m=c=>{c.target===t&&(s.current=zs(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:x.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function zs(e){return(e==null?void 0:e.animationName)||"none"}function f0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var p0=Rg[" useInsertionEffect ".trim().toString()]||zn;function h0({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=m0({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const d=x.useRef(e!==void 0);x.useEffect(()=>{const p=d.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,r])}const u=x.useCallback(d=>{var p;if(l){const m=g0(d)?d(e):d;m!==e&&((p=i.current)==null||p.call(i,m))}else s(d)},[l,e,s,i]);return[a,u]}function m0({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),o=x.useRef(n),s=x.useRef(t);return p0(()=>{s.current=t},[t]),x.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function g0(e){return typeof e=="function"}var v0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),y0="VisuallyHidden",Zi=x.forwardRef((e,t)=>y.jsx(ze.span,{...e,ref:t,style:{...v0,...e.style}}));Zi.displayName=y0;var w0=Zi,Yu="ToastProvider",[Gu,x0,S0]=Zy("Toast"),[Dh,zS]=qi("Toast",[S0]),[C0,Ji]=Dh(Yu),Ih=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[l,a]=x.useState(null),[u,d]=x.useState(0),p=x.useRef(!1),m=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Yu}\`. Expected non-empty \`string\`.`),y.jsx(Gu.Provider,{scope:t,children:y.jsx(C0,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:l,onViewportChange:a,onToastAdd:x.useCallback(()=>d(c=>c+1),[]),onToastRemove:x.useCallback(()=>d(c=>c-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:m,children:i})})};Ih.displayName=Yu;var zh="ToastViewport",E0=["F8"],Fa="toast.viewportPause",$a="toast.viewportResume",Fh=x.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=E0,label:o="Notifications ({hotkey})",...s}=e,i=Ji(zh,n),l=x0(n),a=x.useRef(null),u=x.useRef(null),d=x.useRef(null),p=x.useRef(null),m=Et(t,p,i.onViewportChange),c=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=i.toastCount>0;x.useEffect(()=>{const C=h=>{var g;r.length!==0&&r.every(w=>h[w]||h.code===w)&&((g=p.current)==null||g.focus())};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[r]),x.useEffect(()=>{const C=a.current,h=p.current;if(S&&C&&h){const f=()=>{if(!i.isClosePausedRef.current){const k=new CustomEvent(Fa);h.dispatchEvent(k),i.isClosePausedRef.current=!0}},g=()=>{if(i.isClosePausedRef.current){const k=new CustomEvent($a);h.dispatchEvent(k),i.isClosePausedRef.current=!1}},w=k=>{!C.contains(k.relatedTarget)&&g()},E=()=>{C.contains(document.activeElement)||g()};return C.addEventListener("focusin",f),C.addEventListener("focusout",w),C.addEventListener("pointermove",f),C.addEventListener("pointerleave",E),window.addEventListener("blur",f),window.addEventListener("focus",g),()=>{C.removeEventListener("focusin",f),C.removeEventListener("focusout",w),C.removeEventListener("pointermove",f),C.removeEventListener("pointerleave",E),window.removeEventListener("blur",f),window.removeEventListener("focus",g)}}},[S,i.isClosePausedRef]);const v=x.useCallback(({tabbingDirection:C})=>{const f=l().map(g=>{const w=g.ref.current,E=[w,...D0(w)];return C==="forwards"?E:E.reverse()});return(C==="forwards"?f.reverse():f).flat()},[l]);return x.useEffect(()=>{const C=p.current;if(C){const h=f=>{var E,k,P;const g=f.altKey||f.ctrlKey||f.metaKey;if(f.key==="Tab"&&!g){const R=document.activeElement,A=f.shiftKey;if(f.target===C&&A){(E=u.current)==null||E.focus();return}const I=v({tabbingDirection:A?"backwards":"forwards"}),Q=I.findIndex(M=>M===R);$l(I.slice(Q+1))?f.preventDefault():A?(k=u.current)==null||k.focus():(P=d.current)==null||P.focus()}};return C.addEventListener("keydown",h),()=>C.removeEventListener("keydown",h)}},[l,v]),y.jsxs(a0,{ref:a,role:"region","aria-label":o.replace("{hotkey}",c),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&y.jsx(Ua,{ref:u,onFocusFromOutsideViewport:()=>{const C=v({tabbingDirection:"forwards"});$l(C)}}),y.jsx(Gu.Slot,{scope:n,children:y.jsx(ze.ol,{tabIndex:-1,...s,ref:m})}),S&&y.jsx(Ua,{ref:d,onFocusFromOutsideViewport:()=>{const C=v({tabbingDirection:"backwards"});$l(C)}})]})});Fh.displayName=zh;var $h="ToastFocusProxy",Ua=x.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=Ji($h,n);return y.jsx(Zi,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const l=i.relatedTarget;!((u=s.viewport)!=null&&u.contains(l))&&r()}})});Ua.displayName=$h;var hs="Toast",k0="toast.swipeStart",b0="toast.swipeMove",P0="toast.swipeCancel",T0="toast.swipeEnd",Uh=x.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[l,a]=h0({prop:r,defaultProp:o??!0,onChange:s,caller:hs});return y.jsx(Ku,{present:n||l,children:y.jsx(O0,{open:l,...i,ref:t,onClose:()=>a(!1),onPause:In(e.onPause),onResume:In(e.onResume),onSwipeStart:ye(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ye(e.onSwipeMove,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:ye(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ye(e.onSwipeEnd,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),a(!1)})})})});Uh.displayName=hs;var[N0,R0]=Dh(hs,{onClose(){}}),O0=x.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:l,onPause:a,onResume:u,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:m,onSwipeEnd:c,...S}=e,v=Ji(hs,n),[C,h]=x.useState(null),f=Et(t,M=>h(M)),g=x.useRef(null),w=x.useRef(null),E=o||v.duration,k=x.useRef(0),P=x.useRef(E),R=x.useRef(0),{onToastAdd:A,onToastRemove:_}=v,$=In(()=>{var X;(C==null?void 0:C.contains(document.activeElement))&&((X=v.viewport)==null||X.focus()),i()}),I=x.useCallback(M=>{!M||M===1/0||(window.clearTimeout(R.current),k.current=new Date().getTime(),R.current=window.setTimeout($,M))},[$]);x.useEffect(()=>{const M=v.viewport;if(M){const X=()=>{I(P.current),u==null||u()},U=()=>{const V=new Date().getTime()-k.current;P.current=P.current-V,window.clearTimeout(R.current),a==null||a()};return M.addEventListener(Fa,U),M.addEventListener($a,X),()=>{M.removeEventListener(Fa,U),M.removeEventListener($a,X)}}},[v.viewport,E,a,u,I]),x.useEffect(()=>{s&&!v.isClosePausedRef.current&&I(E)},[s,E,v.isClosePausedRef,I]),x.useEffect(()=>(A(),()=>_()),[A,_]);const Q=x.useMemo(()=>C?Yh(C):null,[C]);return v.viewport?y.jsxs(y.Fragment,{children:[Q&&y.jsx(j0,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:Q}),y.jsx(N0,{scope:n,onClose:$,children:ps.createPortal(y.jsx(Gu.ItemSlot,{scope:n,children:y.jsx(l0,{asChild:!0,onEscapeKeyDown:ye(l,()=>{v.isFocusedToastEscapeKeyDownRef.current||$(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:y.jsx(ze.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":v.swipeDirection,...S,ref:f,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ye(e.onKeyDown,M=>{M.key==="Escape"&&(l==null||l(M.nativeEvent),M.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:ye(e.onPointerDown,M=>{M.button===0&&(g.current={x:M.clientX,y:M.clientY})}),onPointerMove:ye(e.onPointerMove,M=>{if(!g.current)return;const X=M.clientX-g.current.x,U=M.clientY-g.current.y,V=!!w.current,T=["left","right"].includes(v.swipeDirection),N=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,L=T?N(0,X):0,H=T?0:N(0,U),z=M.pointerType==="touch"?10:2,K={x:L,y:H},q={originalEvent:M,delta:K};V?(w.current=K,Fs(b0,p,q,{discrete:!1})):_d(K,v.swipeDirection,z)?(w.current=K,Fs(k0,d,q,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(X)>z||Math.abs(U)>z)&&(g.current=null)}),onPointerUp:ye(e.onPointerUp,M=>{const X=w.current,U=M.target;if(U.hasPointerCapture(M.pointerId)&&U.releasePointerCapture(M.pointerId),w.current=null,g.current=null,X){const V=M.currentTarget,T={originalEvent:M,delta:X};_d(X,v.swipeDirection,v.swipeThreshold)?Fs(T0,c,T,{discrete:!0}):Fs(P0,m,T,{discrete:!0}),V.addEventListener("click",N=>N.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),j0=e=>{const{__scopeToast:t,children:n,...r}=e,o=Ji(hs,t),[s,i]=x.useState(!1),[l,a]=x.useState(!1);return M0(()=>i(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:y.jsx(Lh,{asChild:!0,children:y.jsx(Zi,{...r,children:s&&y.jsxs(y.Fragment,{children:[o.label," ",n]})})})},_0="ToastTitle",Bh=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return y.jsx(ze.div,{...r,ref:t})});Bh.displayName=_0;var A0="ToastDescription",Vh=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return y.jsx(ze.div,{...r,ref:t})});Vh.displayName=A0;var Hh="ToastAction",Wh=x.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?y.jsx(Kh,{altText:n,asChild:!0,children:y.jsx(Xu,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Hh}\`. Expected non-empty \`string\`.`),null)});Wh.displayName=Hh;var Qh="ToastClose",Xu=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=R0(Qh,n);return y.jsx(Kh,{asChild:!0,children:y.jsx(ze.button,{type:"button",...r,ref:t,onClick:ye(e.onClick,o.onClose)})})});Xu.displayName=Qh;var Kh=x.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return y.jsx(ze.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Yh(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),L0(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...Yh(r))}}),t}function Fs(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?jh(o,s):o.dispatchEvent(s)}var _d=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function M0(e=()=>{}){const t=In(e);zn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function L0(e){return e.nodeType===e.ELEMENT_NODE}function D0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $l(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var I0=Ih,Gh=Fh,Xh=Uh,qh=Bh,Zh=Vh,Jh=Wh,em=Xu;function tm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=tm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function nm(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=tm(e))&&(r&&(r+=" "),r+=t);return r}const Ad=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Md=nm,qu=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Md(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],p=s==null?void 0:s[u];if(d===null)return null;const m=Ad(d)||Ad(p);return o[u][m]}),l=n&&Object.entries(n).reduce((u,d)=>{let[p,m]=d;return m===void 0||(u[p]=m),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:p,className:m,...c}=d;return Object.entries(c).every(S=>{let[v,C]=S;return Array.isArray(C)?C.includes({...s,...l}[v]):{...s,...l}[v]===C})?[...u,p,m]:u},[]);return Md(e,i,a,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41
- * @license lucide-react v0.462.0 - ISC
42
- *
43
- * This source code is licensed under the ISC license.
44
- * See the LICENSE file in the root directory of this source tree.
45
- */const z0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),rm=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46
- * @license lucide-react v0.462.0 - ISC
47
- *
48
- * This source code is licensed under the ISC license.
49
- * See the LICENSE file in the root directory of this source tree.
50
- */var F0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51
- * @license lucide-react v0.462.0 - ISC
52
- *
53
- * This source code is licensed under the ISC license.
54
- * See the LICENSE file in the root directory of this source tree.
55
- */const $0=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...l},a)=>x.createElement("svg",{ref:a,...F0,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:rm("lucide",o),...l},[...i.map(([u,d])=>x.createElement(u,d)),...Array.isArray(s)?s:[s]]));/**
56
- * @license lucide-react v0.462.0 - ISC
57
- *
58
- * This source code is licensed under the ISC license.
59
- * See the LICENSE file in the root directory of this source tree.
60
- */const Hn=(e,t)=>{const n=x.forwardRef(({className:r,...o},s)=>x.createElement($0,{ref:s,iconNode:t,className:rm(`lucide-${z0(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
61
- * @license lucide-react v0.462.0 - ISC
62
- *
63
- * This source code is licensed under the ISC license.
64
- * See the LICENSE file in the root directory of this source tree.
65
- */const om=Hn("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
66
- * @license lucide-react v0.462.0 - ISC
67
- *
68
- * This source code is licensed under the ISC license.
69
- * See the LICENSE file in the root directory of this source tree.
70
- */const U0=Hn("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
71
- * @license lucide-react v0.462.0 - ISC
72
- *
73
- * This source code is licensed under the ISC license.
74
- * See the LICENSE file in the root directory of this source tree.
75
- */const B0=Hn("Car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]);/**
76
- * @license lucide-react v0.462.0 - ISC
77
- *
78
- * This source code is licensed under the ISC license.
79
- * See the LICENSE file in the root directory of this source tree.
80
- */const sm=Hn("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
81
- * @license lucide-react v0.462.0 - ISC
82
- *
83
- * This source code is licensed under the ISC license.
84
- * See the LICENSE file in the root directory of this source tree.
85
- */const V0=Hn("IdCard",[["path",{d:"M16 10h2",key:"8sgtl7"}],["path",{d:"M16 14h2",key:"epxaof"}],["path",{d:"M6.17 15a3 3 0 0 1 5.66 0",key:"n6f512"}],["circle",{cx:"9",cy:"11",r:"2",key:"yxgjnd"}],["rect",{x:"2",y:"5",width:"20",height:"14",rx:"2",key:"qneu4z"}]]);/**
86
- * @license lucide-react v0.462.0 - ISC
87
- *
88
- * This source code is licensed under the ISC license.
89
- * See the LICENSE file in the root directory of this source tree.
90
- */const H0=Hn("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
91
- * @license lucide-react v0.462.0 - ISC
92
- *
93
- * This source code is licensed under the ISC license.
94
- * See the LICENSE file in the root directory of this source tree.
95
- */const W0=Hn("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
96
- * @license lucide-react v0.462.0 - ISC
97
- *
98
- * This source code is licensed under the ISC license.
99
- * See the LICENSE file in the root directory of this source tree.
100
- */const Q0=Hn("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Zu="-",K0=e=>{const t=G0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const l=i.split(Zu);return l[0]===""&&l.length!==1&&l.shift(),im(l,t)||Y0(i)},getConflictingClassGroupIds:(i,l)=>{const a=n[i]||[];return l&&r[i]?[...a,...r[i]]:a}}},im=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?im(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Zu);return(i=t.validators.find(({validator:l})=>l(s)))==null?void 0:i.classGroupId},Ld=/^\[(.+)\]$/,Y0=e=>{if(Ld.test(e)){const t=Ld.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},G0=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return q0(Object.entries(e.classGroups),n).forEach(([s,i])=>{Ba(i,r,s,t)}),r},Ba=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Dd(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(X0(o)){Ba(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Ba(i,Dd(t,s),n,r)})})},Dd=(e,t)=>{let n=e;return t.split(Zu).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},X0=e=>e.isThemeGetter,q0=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,l])=>[t+i,l])):s);return[n,o]}):e,Z0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},lm="!",J0=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=l=>{const a=[];let u=0,d=0,p;for(let C=0;C<l.length;C++){let h=l[C];if(u===0){if(h===o&&(r||l.slice(C,C+s)===t)){a.push(l.slice(d,C)),d=C+s;continue}if(h==="/"){p=C;continue}}h==="["?u++:h==="]"&&u--}const m=a.length===0?l:l.substring(d),c=m.startsWith(lm),S=c?m.substring(1):m,v=p&&p>d?p-d:void 0;return{modifiers:a,hasImportantModifier:c,baseClassName:S,maybePostfixModifierPosition:v}};return n?l=>n({className:l,parseClassName:i}):i},ew=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},tw=e=>({cache:Z0(e.cacheSize),parseClassName:J0(e),...K0(e)}),nw=/\s+/,rw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(nw);let l="";for(let a=i.length-1;a>=0;a-=1){const u=i[a],{modifiers:d,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:c}=n(u);let S=!!c,v=r(S?m.substring(0,c):m);if(!v){if(!S){l=u+(l.length>0?" "+l:l);continue}if(v=r(m),!v){l=u+(l.length>0?" "+l:l);continue}S=!1}const C=ew(d).join(":"),h=p?C+lm:C,f=h+v;if(s.includes(f))continue;s.push(f);const g=o(v,S);for(let w=0;w<g.length;++w){const E=g[w];s.push(h+E)}l=u+(l.length>0?" "+l:l)}return l};function ow(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=am(t))&&(r&&(r+=" "),r+=n);return r}const am=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=am(e[r]))&&(n&&(n+=" "),n+=t);return n};function sw(e,...t){let n,r,o,s=i;function i(a){const u=t.reduce((d,p)=>p(d),e());return n=tw(u),r=n.cache.get,o=n.cache.set,s=l,l(a)}function l(a){const u=r(a);if(u)return u;const d=rw(a,n);return o(a,d),d}return function(){return s(ow.apply(null,arguments))}}const re=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},um=/^\[(?:([a-z-]+):)?(.+)\]$/i,iw=/^\d+\/\d+$/,lw=new Set(["px","full","screen"]),aw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,uw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,cw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,dw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zt=e=>Ur(e)||lw.has(e)||iw.test(e),dn=e=>co(e,"length",xw),Ur=e=>!!e&&!Number.isNaN(Number(e)),Ul=e=>co(e,"number",Ur),ko=e=>!!e&&Number.isInteger(Number(e)),pw=e=>e.endsWith("%")&&Ur(e.slice(0,-1)),W=e=>um.test(e),fn=e=>aw.test(e),hw=new Set(["length","size","percentage"]),mw=e=>co(e,hw,cm),gw=e=>co(e,"position",cm),vw=new Set(["image","url"]),yw=e=>co(e,vw,Cw),ww=e=>co(e,"",Sw),bo=()=>!0,co=(e,t,n)=>{const r=um.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},xw=e=>uw.test(e)&&!cw.test(e),cm=()=>!1,Sw=e=>dw.test(e),Cw=e=>fw.test(e),Ew=()=>{const e=re("colors"),t=re("spacing"),n=re("blur"),r=re("brightness"),o=re("borderColor"),s=re("borderRadius"),i=re("borderSpacing"),l=re("borderWidth"),a=re("contrast"),u=re("grayscale"),d=re("hueRotate"),p=re("invert"),m=re("gap"),c=re("gradientColorStops"),S=re("gradientColorStopPositions"),v=re("inset"),C=re("margin"),h=re("opacity"),f=re("padding"),g=re("saturate"),w=re("scale"),E=re("sepia"),k=re("skew"),P=re("space"),R=re("translate"),A=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",W,t],I=()=>[W,t],Q=()=>["",zt,dn],M=()=>["auto",Ur,W],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>["start","end","center","between","around","evenly","stretch"],N=()=>["","0",W],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[Ur,W];return{cacheSize:500,separator:":",theme:{colors:[bo],spacing:[zt,dn],blur:["none","",fn,W],brightness:H(),borderColor:[e],borderRadius:["none","","full",fn,W],borderSpacing:I(),borderWidth:Q(),contrast:H(),grayscale:N(),hueRotate:H(),invert:N(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[pw,dn],inset:$(),margin:$(),opacity:H(),padding:I(),saturate:H(),scale:H(),sepia:N(),skew:H(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[fn]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...X(),W]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ko,W]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",ko,W]}],"grid-cols":[{"grid-cols":[bo]}],"col-start-end":[{col:["auto",{span:["full",ko,W]},W]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[bo]}],"row-start-end":[{row:["auto",{span:[ko,W]},W]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[f]}],px:[{px:[f]}],py:[{py:[f]}],ps:[{ps:[f]}],pe:[{pe:[f]}],pt:[{pt:[f]}],pr:[{pr:[f]}],pb:[{pb:[f]}],pl:[{pl:[f]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",W,t]}],"min-w":[{"min-w":[W,t,"min","max","fit"]}],"max-w":[{"max-w":[W,t,"none","full","min","max","fit","prose",{screen:[fn]},fn]}],h:[{h:[W,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W,t,"auto","min","max","fit"]}],"font-size":[{text:["base",fn,dn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ul]}],"font-family":[{font:[bo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",W]}],"line-clamp":[{"line-clamp":["none",Ur,Ul]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",zt,W]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",zt,dn]}],"underline-offset":[{"underline-offset":["auto",zt,W]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),gw]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",mw]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},yw]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[c]}],"gradient-via":[{via:[c]}],"gradient-to":[{to:[c]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:U()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[zt,W]}],"outline-w":[{outline:[zt,dn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[zt,dn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",fn,ww]}],"shadow-color":[{shadow:[bo]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",fn,W]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[g]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[ko,W]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[zt,dn,Ul]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},kw=sw(Ew);function _e(...e){return kw(nm(e))}const bw=I0,dm=x.forwardRef(({className:e,...t},n)=>y.jsx(Gh,{ref:n,className:_e("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));dm.displayName=Gh.displayName;const Pw=qu("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),fm=x.forwardRef(({className:e,variant:t,...n},r)=>y.jsx(Xh,{ref:r,className:_e(Pw({variant:t}),e),...n}));fm.displayName=Xh.displayName;const Tw=x.forwardRef(({className:e,...t},n)=>y.jsx(Jh,{ref:n,className:_e("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Tw.displayName=Jh.displayName;const pm=x.forwardRef(({className:e,...t},n)=>y.jsx(em,{ref:n,className:_e("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:y.jsx(Q0,{className:"h-4 w-4"})}));pm.displayName=em.displayName;const hm=x.forwardRef(({className:e,...t},n)=>y.jsx(qh,{ref:n,className:_e("text-sm font-semibold",e),...t}));hm.displayName=qh.displayName;const mm=x.forwardRef(({className:e,...t},n)=>y.jsx(Zh,{ref:n,className:_e("text-sm opacity-90",e),...t}));mm.displayName=Zh.displayName;function Nw(){const{toasts:e}=Wu();return y.jsxs(bw,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return y.jsxs(fm,{...s,children:[y.jsxs("div",{className:"grid gap-1",children:[n&&y.jsx(hm,{children:n}),r&&y.jsx(mm,{children:r})]}),o,y.jsx(pm,{})]},t)}),y.jsx(dm,{})]})}var Id=["light","dark"],Rw="(prefers-color-scheme: dark)",Ow=x.createContext(void 0),jw={setTheme:e=>{},themes:[]},_w=()=>{var e;return(e=x.useContext(Ow))!=null?e:jw};x.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:l,nonce:a})=>{let u=s==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(S=>`'${S}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=o?Id.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(S,v=!1,C=!0)=>{let h=i?i[S]:S,f=v?S+"|| ''":`'${h}'`,g="";return o&&C&&!v&&Id.includes(S)&&(g+=`d.style.colorScheme = '${S}';`),n==="class"?v||h?g+=`c.add(${f})`:g+="null":h&&(g+=`d[s](n,${f})`),g},c=e?`!function(){${d}${m(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${Rw}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${m(i?"x[e]":"e",!0)}}${u?"":"else{"+m(s,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${m(i?"x[e]":"e",!0)}}else{${m(s,!1,!1)};}${p}}catch(t){}}();`;return x.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:c}})});var Aw=e=>{switch(e){case"success":return Dw;case"info":return zw;case"warning":return Iw;case"error":return Fw;default:return null}},Mw=Array(12).fill(0),Lw=({visible:e,className:t})=>j.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},j.createElement("div",{className:"sonner-spinner"},Mw.map((n,r)=>j.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Dw=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Iw=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},j.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),zw=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Fw=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},j.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),$w=j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},j.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),j.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Uw=()=>{let[e,t]=j.useState(document.hidden);return j.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Va=1,Bw=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Va++,s=this.toasts.find(l=>l.id===o),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:i,title:n}):l):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,s,i=r.then(async a=>{if(s=["resolve",a],j.isValidElement(a))o=!1,this.create({id:n,type:"default",message:a});else if(Hw(a)&&!a.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(a):t.success,d=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async a=>{if(s=["reject",a],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(a):t.error,d=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var a;o&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),l=()=>new Promise((a,u)=>i.then(()=>s[0]==="reject"?u(s[1]):a(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Va++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},$e=new Bw,Vw=(e,t)=>{let n=(t==null?void 0:t.id)||Va++;return $e.addToast({title:e,...t,id:n}),n},Hw=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Ww=Vw,Qw=()=>$e.toasts,Kw=()=>$e.getActiveToasts();Object.assign(Ww,{success:$e.success,info:$e.info,warning:$e.warning,error:$e.error,custom:$e.custom,message:$e.message,promise:$e.promise,dismiss:$e.dismiss,loading:$e.loading},{getHistory:Qw,getToasts:Kw});function Yw(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Yw(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
101
- `);function $s(e){return e.label!==void 0}var Gw=3,Xw="32px",qw="16px",zd=4e3,Zw=356,Jw=14,ex=20,tx=200;function ht(...e){return e.filter(Boolean).join(" ")}function nx(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var rx=e=>{var t,n,r,o,s,i,l,a,u,d,p;let{invert:m,toast:c,unstyled:S,interacting:v,setHeights:C,visibleToasts:h,heights:f,index:g,toasts:w,expanded:E,removeToast:k,defaultRichColors:P,closeButton:R,style:A,cancelButtonStyle:_,actionButtonStyle:$,className:I="",descriptionClassName:Q="",duration:M,position:X,gap:U,loadingIcon:V,expandByDefault:T,classNames:N,icons:L,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:z}=e,[K,q]=j.useState(null),[me,Te]=j.useState(null),[J,mr]=j.useState(!1),[rn,Wn]=j.useState(!1),[on,gr]=j.useState(!1),[sn,vs]=j.useState(!1),[ll,ys]=j.useState(!1),[al,ho]=j.useState(0),[vr,fc]=j.useState(0),mo=j.useRef(c.duration||M||zd),pc=j.useRef(null),Qn=j.useRef(null),og=g===0,sg=g+1<=h,et=c.type,yr=c.dismissible!==!1,ig=c.className||"",lg=c.descriptionClassName||"",ws=j.useMemo(()=>f.findIndex(B=>B.toastId===c.id)||0,[f,c.id]),ag=j.useMemo(()=>{var B;return(B=c.closeButton)!=null?B:R},[c.closeButton,R]),hc=j.useMemo(()=>c.duration||M||zd,[c.duration,M]),ul=j.useRef(0),wr=j.useRef(0),mc=j.useRef(0),xr=j.useRef(null),[ug,cg]=X.split("-"),gc=j.useMemo(()=>f.reduce((B,te,ie)=>ie>=ws?B:B+te.height,0),[f,ws]),vc=Uw(),dg=c.invert||m,cl=et==="loading";wr.current=j.useMemo(()=>ws*U+gc,[ws,gc]),j.useEffect(()=>{mo.current=hc},[hc]),j.useEffect(()=>{mr(!0)},[]),j.useEffect(()=>{let B=Qn.current;if(B){let te=B.getBoundingClientRect().height;return fc(te),C(ie=>[{toastId:c.id,height:te,position:c.position},...ie]),()=>C(ie=>ie.filter(ct=>ct.toastId!==c.id))}},[C,c.id]),j.useLayoutEffect(()=>{if(!J)return;let B=Qn.current,te=B.style.height;B.style.height="auto";let ie=B.getBoundingClientRect().height;B.style.height=te,fc(ie),C(ct=>ct.find(dt=>dt.toastId===c.id)?ct.map(dt=>dt.toastId===c.id?{...dt,height:ie}:dt):[{toastId:c.id,height:ie,position:c.position},...ct])},[J,c.title,c.description,C,c.id]);let ln=j.useCallback(()=>{Wn(!0),ho(wr.current),C(B=>B.filter(te=>te.toastId!==c.id)),setTimeout(()=>{k(c)},tx)},[c,k,C,wr]);j.useEffect(()=>{if(c.promise&&et==="loading"||c.duration===1/0||c.type==="loading")return;let B;return E||v||z&&vc?(()=>{if(mc.current<ul.current){let te=new Date().getTime()-ul.current;mo.current=mo.current-te}mc.current=new Date().getTime()})():mo.current!==1/0&&(ul.current=new Date().getTime(),B=setTimeout(()=>{var te;(te=c.onAutoClose)==null||te.call(c,c),ln()},mo.current)),()=>clearTimeout(B)},[E,v,c,et,z,vc,ln]),j.useEffect(()=>{c.delete&&ln()},[ln,c.delete]);function fg(){var B,te,ie;return L!=null&&L.loading?j.createElement("div",{className:ht(N==null?void 0:N.loader,(B=c==null?void 0:c.classNames)==null?void 0:B.loader,"sonner-loader"),"data-visible":et==="loading"},L.loading):V?j.createElement("div",{className:ht(N==null?void 0:N.loader,(te=c==null?void 0:c.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":et==="loading"},V):j.createElement(Lw,{className:ht(N==null?void 0:N.loader,(ie=c==null?void 0:c.classNames)==null?void 0:ie.loader),visible:et==="loading"})}return j.createElement("li",{tabIndex:0,ref:Qn,className:ht(I,ig,N==null?void 0:N.toast,(t=c==null?void 0:c.classNames)==null?void 0:t.toast,N==null?void 0:N.default,N==null?void 0:N[et],(n=c==null?void 0:c.classNames)==null?void 0:n[et]),"data-sonner-toast":"","data-rich-colors":(r=c.richColors)!=null?r:P,"data-styled":!(c.jsx||c.unstyled||S),"data-mounted":J,"data-promise":!!c.promise,"data-swiped":ll,"data-removed":rn,"data-visible":sg,"data-y-position":ug,"data-x-position":cg,"data-index":g,"data-front":og,"data-swiping":on,"data-dismissible":yr,"data-type":et,"data-invert":dg,"data-swipe-out":sn,"data-swipe-direction":me,"data-expanded":!!(E||T&&J),style:{"--index":g,"--toasts-before":g,"--z-index":w.length-g,"--offset":`${rn?al:wr.current}px`,"--initial-height":T?"auto":`${vr}px`,...A,...c.style},onDragEnd:()=>{gr(!1),q(null),xr.current=null},onPointerDown:B=>{cl||!yr||(pc.current=new Date,ho(wr.current),B.target.setPointerCapture(B.pointerId),B.target.tagName!=="BUTTON"&&(gr(!0),xr.current={x:B.clientX,y:B.clientY}))},onPointerUp:()=>{var B,te,ie,ct;if(sn||!yr)return;xr.current=null;let dt=Number(((B=Qn.current)==null?void 0:B.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),an=Number(((te=Qn.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Kn=new Date().getTime()-((ie=pc.current)==null?void 0:ie.getTime()),ft=K==="x"?dt:an,un=Math.abs(ft)/Kn;if(Math.abs(ft)>=ex||un>.11){ho(wr.current),(ct=c.onDismiss)==null||ct.call(c,c),Te(K==="x"?dt>0?"right":"left":an>0?"down":"up"),ln(),vs(!0),ys(!1);return}gr(!1),q(null)},onPointerMove:B=>{var te,ie,ct,dt;if(!xr.current||!yr||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let an=B.clientY-xr.current.y,Kn=B.clientX-xr.current.x,ft=(ie=e.swipeDirections)!=null?ie:nx(X);!K&&(Math.abs(Kn)>1||Math.abs(an)>1)&&q(Math.abs(Kn)>Math.abs(an)?"x":"y");let un={x:0,y:0};K==="y"?(ft.includes("top")||ft.includes("bottom"))&&(ft.includes("top")&&an<0||ft.includes("bottom")&&an>0)&&(un.y=an):K==="x"&&(ft.includes("left")||ft.includes("right"))&&(ft.includes("left")&&Kn<0||ft.includes("right")&&Kn>0)&&(un.x=Kn),(Math.abs(un.x)>0||Math.abs(un.y)>0)&&ys(!0),(ct=Qn.current)==null||ct.style.setProperty("--swipe-amount-x",`${un.x}px`),(dt=Qn.current)==null||dt.style.setProperty("--swipe-amount-y",`${un.y}px`)}},ag&&!c.jsx?j.createElement("button",{"aria-label":H,"data-disabled":cl,"data-close-button":!0,onClick:cl||!yr?()=>{}:()=>{var B;ln(),(B=c.onDismiss)==null||B.call(c,c)},className:ht(N==null?void 0:N.closeButton,(o=c==null?void 0:c.classNames)==null?void 0:o.closeButton)},(s=L==null?void 0:L.close)!=null?s:$w):null,c.jsx||x.isValidElement(c.title)?c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title:j.createElement(j.Fragment,null,et||c.icon||c.promise?j.createElement("div",{"data-icon":"",className:ht(N==null?void 0:N.icon,(i=c==null?void 0:c.classNames)==null?void 0:i.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||fg():null,c.type!=="loading"?c.icon||(L==null?void 0:L[et])||Aw(et):null):null,j.createElement("div",{"data-content":"",className:ht(N==null?void 0:N.content,(l=c==null?void 0:c.classNames)==null?void 0:l.content)},j.createElement("div",{"data-title":"",className:ht(N==null?void 0:N.title,(a=c==null?void 0:c.classNames)==null?void 0:a.title)},typeof c.title=="function"?c.title():c.title),c.description?j.createElement("div",{"data-description":"",className:ht(Q,lg,N==null?void 0:N.description,(u=c==null?void 0:c.classNames)==null?void 0:u.description)},typeof c.description=="function"?c.description():c.description):null),x.isValidElement(c.cancel)?c.cancel:c.cancel&&$s(c.cancel)?j.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||_,onClick:B=>{var te,ie;$s(c.cancel)&&yr&&((ie=(te=c.cancel).onClick)==null||ie.call(te,B),ln())},className:ht(N==null?void 0:N.cancelButton,(d=c==null?void 0:c.classNames)==null?void 0:d.cancelButton)},c.cancel.label):null,x.isValidElement(c.action)?c.action:c.action&&$s(c.action)?j.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||$,onClick:B=>{var te,ie;$s(c.action)&&((ie=(te=c.action).onClick)==null||ie.call(te,B),!B.defaultPrevented&&ln())},className:ht(N==null?void 0:N.actionButton,(p=c==null?void 0:c.classNames)==null?void 0:p.actionButton)},c.action.label):null))};function Fd(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function ox(e,t){let n={};return[e,t].forEach((r,o)=>{let s=o===1,i=s?"--mobile-offset":"--offset",l=s?qw:Xw;function a(u){["top","right","bottom","left"].forEach(d=>{n[`${i}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=l:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(l)}),n}var sx=x.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:i,className:l,offset:a,mobileOffset:u,theme:d="light",richColors:p,duration:m,style:c,visibleToasts:S=Gw,toastOptions:v,dir:C=Fd(),gap:h=Jw,loadingIcon:f,icons:g,containerAriaLabel:w="Notifications",pauseWhenPageIsHidden:E}=e,[k,P]=j.useState([]),R=j.useMemo(()=>Array.from(new Set([r].concat(k.filter(z=>z.position).map(z=>z.position)))),[k,r]),[A,_]=j.useState([]),[$,I]=j.useState(!1),[Q,M]=j.useState(!1),[X,U]=j.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=j.useRef(null),T=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=j.useRef(null),L=j.useRef(!1),H=j.useCallback(z=>{P(K=>{var q;return(q=K.find(me=>me.id===z.id))!=null&&q.delete||$e.dismiss(z.id),K.filter(({id:me})=>me!==z.id)})},[]);return j.useEffect(()=>$e.subscribe(z=>{if(z.dismiss){P(K=>K.map(q=>q.id===z.id?{...q,delete:!0}:q));return}setTimeout(()=>{Th.flushSync(()=>{P(K=>{let q=K.findIndex(me=>me.id===z.id);return q!==-1?[...K.slice(0,q),{...K[q],...z},...K.slice(q+1)]:[z,...K]})})})}),[]),j.useEffect(()=>{if(d!=="system"){U(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?U("dark"):U("light")),typeof window>"u")return;let z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:K})=>{U(K?"dark":"light")})}catch{z.addListener(({matches:q})=>{try{U(q?"dark":"light")}catch(me){console.error(me)}})}},[d]),j.useEffect(()=>{k.length<=1&&I(!1)},[k]),j.useEffect(()=>{let z=K=>{var q,me;o.every(Te=>K[Te]||K.code===Te)&&(I(!0),(q=V.current)==null||q.focus()),K.code==="Escape"&&(document.activeElement===V.current||(me=V.current)!=null&&me.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[o]),j.useEffect(()=>{if(V.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,L.current=!1)}},[V.current]),j.createElement("section",{ref:t,"aria-label":`${w} ${T}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},R.map((z,K)=>{var q;let[me,Te]=z.split("-");return k.length?j.createElement("ol",{key:z,dir:C==="auto"?Fd():C,tabIndex:-1,ref:V,className:l,"data-sonner-toaster":!0,"data-theme":X,"data-y-position":me,"data-lifted":$&&k.length>1&&!s,"data-x-position":Te,style:{"--front-toast-height":`${((q=A[0])==null?void 0:q.height)||0}px`,"--width":`${Zw}px`,"--gap":`${h}px`,...c,...ox(a,u)},onBlur:J=>{L.current&&!J.currentTarget.contains(J.relatedTarget)&&(L.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||L.current||(L.current=!0,N.current=J.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{Q||I(!1)},onDragEnd:()=>I(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||M(!0)},onPointerUp:()=>M(!1)},k.filter(J=>!J.position&&K===0||J.position===z).map((J,mr)=>{var rn,Wn;return j.createElement(rx,{key:J.id,icons:g,index:mr,toast:J,defaultRichColors:p,duration:(rn=v==null?void 0:v.duration)!=null?rn:m,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:S,closeButton:(Wn=v==null?void 0:v.closeButton)!=null?Wn:i,interacting:Q,position:z,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:H,toasts:k.filter(on=>on.position==J.position),heights:A.filter(on=>on.position==J.position),setHeights:_,expandByDefault:s,gap:h,loadingIcon:f,expanded:$,pauseWhenPageIsHidden:E,swipeDirections:e.swipeDirections})})):null}))});const ix=({...e})=>{const{theme:t="system"}=_w();return y.jsx(sx,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},lx=["top","right","bottom","left"],Fn=Math.min,Ke=Math.max,Oi=Math.round,Us=Math.floor,Lt=e=>({x:e,y:e}),ax={left:"right",right:"left",bottom:"top",top:"bottom"},ux={start:"end",end:"start"};function Ha(e,t,n){return Ke(e,Fn(t,n))}function Zt(e,t){return typeof e=="function"?e(t):e}function Jt(e){return e.split("-")[0]}function fo(e){return e.split("-")[1]}function Ju(e){return e==="x"?"y":"x"}function ec(e){return e==="y"?"height":"width"}const cx=new Set(["top","bottom"]);function _t(e){return cx.has(Jt(e))?"y":"x"}function tc(e){return Ju(_t(e))}function dx(e,t,n){n===void 0&&(n=!1);const r=fo(e),o=tc(e),s=ec(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=ji(i)),[i,ji(i)]}function fx(e){const t=ji(e);return[Wa(e),t,Wa(t)]}function Wa(e){return e.replace(/start|end/g,t=>ux[t])}const $d=["left","right"],Ud=["right","left"],px=["top","bottom"],hx=["bottom","top"];function mx(e,t,n){switch(e){case"top":case"bottom":return n?t?Ud:$d:t?$d:Ud;case"left":case"right":return t?px:hx;default:return[]}}function gx(e,t,n,r){const o=fo(e);let s=mx(Jt(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Wa)))),s}function ji(e){return e.replace(/left|right|bottom|top/g,t=>ax[t])}function vx(e){return{top:0,right:0,bottom:0,left:0,...e}}function gm(e){return typeof e!="number"?vx(e):{top:e,right:e,bottom:e,left:e}}function _i(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Bd(e,t,n){let{reference:r,floating:o}=e;const s=_t(t),i=tc(t),l=ec(i),a=Jt(t),u=s==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m=r[l]/2-o[l]/2;let c;switch(a){case"top":c={x:d,y:r.y-o.height};break;case"bottom":c={x:d,y:r.y+r.height};break;case"right":c={x:r.x+r.width,y:p};break;case"left":c={x:r.x-o.width,y:p};break;default:c={x:r.x,y:r.y}}switch(fo(t)){case"start":c[i]-=m*(n&&u?-1:1);break;case"end":c[i]+=m*(n&&u?-1:1);break}return c}const yx=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),a=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=Bd(u,r,a),m=r,c={},S=0;for(let v=0;v<l.length;v++){const{name:C,fn:h}=l[v],{x:f,y:g,data:w,reset:E}=await h({x:d,y:p,initialPlacement:r,placement:m,strategy:o,middlewareData:c,rects:u,platform:i,elements:{reference:e,floating:t}});d=f??d,p=g??p,c={...c,[C]:{...c[C],...w}},E&&S<=50&&(S++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(u=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:d,y:p}=Bd(u,m,a)),v=-1)}return{x:d,y:p,placement:m,strategy:o,middlewareData:c}};async function rs(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:l,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:m=!1,padding:c=0}=Zt(t,e),S=gm(c),C=l[m?p==="floating"?"reference":"floating":p],h=_i(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(C)))==null||n?C:C.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:a})),f=p==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,g=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),w=await(s.isElement==null?void 0:s.isElement(g))?await(s.getScale==null?void 0:s.getScale(g))||{x:1,y:1}:{x:1,y:1},E=_i(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:f,offsetParent:g,strategy:a}):f);return{top:(h.top-E.top+S.top)/w.y,bottom:(E.bottom-h.bottom+S.bottom)/w.y,left:(h.left-E.left+S.left)/w.x,right:(E.right-h.right+S.right)/w.x}}const wx=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:l,middlewareData:a}=t,{element:u,padding:d=0}=Zt(e,t)||{};if(u==null)return{};const p=gm(d),m={x:n,y:r},c=tc(o),S=ec(c),v=await i.getDimensions(u),C=c==="y",h=C?"top":"left",f=C?"bottom":"right",g=C?"clientHeight":"clientWidth",w=s.reference[S]+s.reference[c]-m[c]-s.floating[S],E=m[c]-s.reference[c],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let P=k?k[g]:0;(!P||!await(i.isElement==null?void 0:i.isElement(k)))&&(P=l.floating[g]||s.floating[S]);const R=w/2-E/2,A=P/2-v[S]/2-1,_=Fn(p[h],A),$=Fn(p[f],A),I=_,Q=P-v[S]-$,M=P/2-v[S]/2+R,X=Ha(I,M,Q),U=!a.arrow&&fo(o)!=null&&M!==X&&s.reference[S]/2-(M<I?_:$)-v[S]/2<0,V=U?M<I?M-I:M-Q:0;return{[c]:m[c]+V,data:{[c]:X,centerOffset:M-X-V,...U&&{alignmentOffset:V}},reset:U}}}),xx=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:l,platform:a,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:v=!0,...C}=Zt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const h=Jt(o),f=_t(l),g=Jt(l)===l,w=await(a.isRTL==null?void 0:a.isRTL(u.floating)),E=m||(g||!v?[ji(l)]:fx(l)),k=S!=="none";!m&&k&&E.push(...gx(l,v,S,w));const P=[l,...E],R=await rs(t,C),A=[];let _=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&A.push(R[h]),p){const M=dx(o,i,w);A.push(R[M[0]],R[M[1]])}if(_=[..._,{placement:o,overflows:A}],!A.every(M=>M<=0)){var $,I;const M=((($=s.flip)==null?void 0:$.index)||0)+1,X=P[M];if(X&&(!(p==="alignment"?f!==_t(X):!1)||_.every(T=>_t(T.placement)===f?T.overflows[0]>0:!0)))return{data:{index:M,overflows:_},reset:{placement:X}};let U=(I=_.filter(V=>V.overflows[0]<=0).sort((V,T)=>V.overflows[1]-T.overflows[1])[0])==null?void 0:I.placement;if(!U)switch(c){case"bestFit":{var Q;const V=(Q=_.filter(T=>{if(k){const N=_t(T.placement);return N===f||N==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(N=>N>0).reduce((N,L)=>N+L,0)]).sort((T,N)=>T[1]-N[1])[0])==null?void 0:Q[0];V&&(U=V);break}case"initialPlacement":U=l;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function Vd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Hd(e){return lx.some(t=>e[t]>=0)}const Sx=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Zt(e,t);switch(r){case"referenceHidden":{const s=await rs(t,{...o,elementContext:"reference"}),i=Vd(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Hd(i)}}}case"escaped":{const s=await rs(t,{...o,altBoundary:!0}),i=Vd(s,n.floating);return{data:{escapedOffsets:i,escaped:Hd(i)}}}default:return{}}}}},vm=new Set(["left","top"]);async function Cx(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Jt(n),l=fo(n),a=_t(n)==="y",u=vm.has(i)?-1:1,d=s&&a?-1:1,p=Zt(t,e);let{mainAxis:m,crossAxis:c,alignmentAxis:S}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof S=="number"&&(c=l==="end"?S*-1:S),a?{x:c*d,y:m*u}:{x:m*u,y:c*d}}const Ex=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:l}=t,a=await Cx(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:s+a.y,data:{...a,placement:i}}}}},kx=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:C=>{let{x:h,y:f}=C;return{x:h,y:f}}},...a}=Zt(e,t),u={x:n,y:r},d=await rs(t,a),p=_t(Jt(o)),m=Ju(p);let c=u[m],S=u[p];if(s){const C=m==="y"?"top":"left",h=m==="y"?"bottom":"right",f=c+d[C],g=c-d[h];c=Ha(f,c,g)}if(i){const C=p==="y"?"top":"left",h=p==="y"?"bottom":"right",f=S+d[C],g=S-d[h];S=Ha(f,S,g)}const v=l.fn({...t,[m]:c,[p]:S});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[m]:s,[p]:i}}}}}},bx=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=Zt(e,t),d={x:n,y:r},p=_t(o),m=Ju(p);let c=d[m],S=d[p];const v=Zt(l,t),C=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(a){const g=m==="y"?"height":"width",w=s.reference[m]-s.floating[g]+C.mainAxis,E=s.reference[m]+s.reference[g]-C.mainAxis;c<w?c=w:c>E&&(c=E)}if(u){var h,f;const g=m==="y"?"width":"height",w=vm.has(Jt(o)),E=s.reference[p]-s.floating[g]+(w&&((h=i.offset)==null?void 0:h[p])||0)+(w?0:C.crossAxis),k=s.reference[p]+s.reference[g]+(w?0:((f=i.offset)==null?void 0:f[p])||0)-(w?C.crossAxis:0);S<E?S=E:S>k&&(S=k)}return{[m]:c,[p]:S}}}},Px=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:l}=t,{apply:a=()=>{},...u}=Zt(e,t),d=await rs(t,u),p=Jt(o),m=fo(o),c=_t(o)==="y",{width:S,height:v}=s.floating;let C,h;p==="top"||p==="bottom"?(C=p,h=m===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(h=p,C=m==="end"?"top":"bottom");const f=v-d.top-d.bottom,g=S-d.left-d.right,w=Fn(v-d[C],f),E=Fn(S-d[h],g),k=!t.middlewareData.shift;let P=w,R=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=g),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=f),k&&!m){const _=Ke(d.left,0),$=Ke(d.right,0),I=Ke(d.top,0),Q=Ke(d.bottom,0);c?R=S-2*(_!==0||$!==0?_+$:Ke(d.left,d.right)):P=v-2*(I!==0||Q!==0?I+Q:Ke(d.top,d.bottom))}await a({...t,availableWidth:R,availableHeight:P});const A=await i.getDimensions(l.floating);return S!==A.width||v!==A.height?{reset:{rects:!0}}:{}}}};function el(){return typeof window<"u"}function po(e){return ym(e)?(e.nodeName||"").toLowerCase():"#document"}function Xe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function It(e){var t;return(t=(ym(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ym(e){return el()?e instanceof Node||e instanceof Xe(e).Node:!1}function kt(e){return el()?e instanceof Element||e instanceof Xe(e).Element:!1}function Dt(e){return el()?e instanceof HTMLElement||e instanceof Xe(e).HTMLElement:!1}function Wd(e){return!el()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xe(e).ShadowRoot}const Tx=new Set(["inline","contents"]);function ms(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=bt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Tx.has(o)}const Nx=new Set(["table","td","th"]);function Rx(e){return Nx.has(po(e))}const Ox=[":popover-open",":modal"];function tl(e){return Ox.some(t=>{try{return e.matches(t)}catch{return!1}})}const jx=["transform","translate","scale","rotate","perspective"],_x=["transform","translate","scale","rotate","perspective","filter"],Ax=["paint","layout","strict","content"];function nc(e){const t=rc(),n=kt(e)?bt(e):e;return jx.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||_x.some(r=>(n.willChange||"").includes(r))||Ax.some(r=>(n.contain||"").includes(r))}function Mx(e){let t=$n(e);for(;Dt(t)&&!so(t);){if(nc(t))return t;if(tl(t))return null;t=$n(t)}return null}function rc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Lx=new Set(["html","body","#document"]);function so(e){return Lx.has(po(e))}function bt(e){return Xe(e).getComputedStyle(e)}function nl(e){return kt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $n(e){if(po(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Wd(e)&&e.host||It(e);return Wd(t)?t.host:t}function wm(e){const t=$n(e);return so(t)?e.ownerDocument?e.ownerDocument.body:e.body:Dt(t)&&ms(t)?t:wm(t)}function os(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=wm(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Xe(o);if(s){const l=Qa(i);return t.concat(i,i.visualViewport||[],ms(o)?o:[],l&&n?os(l):[])}return t.concat(o,os(o,[],n))}function Qa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xm(e){const t=bt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Dt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=Oi(n)!==s||Oi(r)!==i;return l&&(n=s,r=i),{width:n,height:r,$:l}}function oc(e){return kt(e)?e:e.contextElement}function Br(e){const t=oc(e);if(!Dt(t))return Lt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=xm(t);let i=(s?Oi(n.width):n.width)/r,l=(s?Oi(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Dx=Lt(0);function Sm(e){const t=Xe(e);return!rc()||!t.visualViewport?Dx:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ix(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xe(e)?!1:t}function dr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=oc(e);let i=Lt(1);t&&(r?kt(r)&&(i=Br(r)):i=Br(e));const l=Ix(s,n,r)?Sm(s):Lt(0);let a=(o.left+l.x)/i.x,u=(o.top+l.y)/i.y,d=o.width/i.x,p=o.height/i.y;if(s){const m=Xe(s),c=r&&kt(r)?Xe(r):r;let S=m,v=Qa(S);for(;v&&r&&c!==S;){const C=Br(v),h=v.getBoundingClientRect(),f=bt(v),g=h.left+(v.clientLeft+parseFloat(f.paddingLeft))*C.x,w=h.top+(v.clientTop+parseFloat(f.paddingTop))*C.y;a*=C.x,u*=C.y,d*=C.x,p*=C.y,a+=g,u+=w,S=Xe(v),v=Qa(S)}}return _i({width:d,height:p,x:a,y:u})}function rl(e,t){const n=nl(e).scrollLeft;return t?t.left+n:dr(It(e)).left+n}function Cm(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-rl(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function zx(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=It(r),l=t?tl(t.floating):!1;if(r===i||l&&s)return n;let a={scrollLeft:0,scrollTop:0},u=Lt(1);const d=Lt(0),p=Dt(r);if((p||!p&&!s)&&((po(r)!=="body"||ms(i))&&(a=nl(r)),Dt(r))){const c=dr(r);u=Br(r),d.x=c.x+r.clientLeft,d.y=c.y+r.clientTop}const m=i&&!p&&!s?Cm(i,a):Lt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+d.x+m.x,y:n.y*u.y-a.scrollTop*u.y+d.y+m.y}}function Fx(e){return Array.from(e.getClientRects())}function $x(e){const t=It(e),n=nl(e),r=e.ownerDocument.body,o=Ke(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Ke(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+rl(e);const l=-n.scrollTop;return bt(r).direction==="rtl"&&(i+=Ke(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:l}}const Qd=25;function Ux(e,t){const n=Xe(e),r=It(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,l=0,a=0;if(o){s=o.width,i=o.height;const d=rc();(!d||d&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}const u=rl(r);if(u<=0){const d=r.ownerDocument,p=d.body,m=getComputedStyle(p),c=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,S=Math.abs(r.clientWidth-p.clientWidth-c);S<=Qd&&(s-=S)}else u<=Qd&&(s+=u);return{width:s,height:i,x:l,y:a}}const Bx=new Set(["absolute","fixed"]);function Vx(e,t){const n=dr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Dt(e)?Br(e):Lt(1),i=e.clientWidth*s.x,l=e.clientHeight*s.y,a=o*s.x,u=r*s.y;return{width:i,height:l,x:a,y:u}}function Kd(e,t,n){let r;if(t==="viewport")r=Ux(e,n);else if(t==="document")r=$x(It(e));else if(kt(t))r=Vx(t,n);else{const o=Sm(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return _i(r)}function Em(e,t){const n=$n(e);return n===t||!kt(n)||so(n)?!1:bt(n).position==="fixed"||Em(n,t)}function Hx(e,t){const n=t.get(e);if(n)return n;let r=os(e,[],!1).filter(l=>kt(l)&&po(l)!=="body"),o=null;const s=bt(e).position==="fixed";let i=s?$n(e):e;for(;kt(i)&&!so(i);){const l=bt(i),a=nc(i);!a&&l.position==="fixed"&&(o=null),(s?!a&&!o:!a&&l.position==="static"&&!!o&&Bx.has(o.position)||ms(i)&&!a&&Em(e,i))?r=r.filter(d=>d!==i):o=l,i=$n(i)}return t.set(e,r),r}function Wx(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?tl(t)?[]:Hx(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((u,d)=>{const p=Kd(t,d,o);return u.top=Ke(p.top,u.top),u.right=Fn(p.right,u.right),u.bottom=Fn(p.bottom,u.bottom),u.left=Ke(p.left,u.left),u},Kd(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Qx(e){const{width:t,height:n}=xm(e);return{width:t,height:n}}function Kx(e,t,n){const r=Dt(t),o=It(t),s=n==="fixed",i=dr(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const a=Lt(0);function u(){a.x=rl(o)}if(r||!r&&!s)if((po(t)!=="body"||ms(o))&&(l=nl(t)),r){const c=dr(t,!0,s,t);a.x=c.x+t.clientLeft,a.y=c.y+t.clientTop}else o&&u();s&&!r&&o&&u();const d=o&&!r&&!s?Cm(o,l):Lt(0),p=i.left+l.scrollLeft-a.x-d.x,m=i.top+l.scrollTop-a.y-d.y;return{x:p,y:m,width:i.width,height:i.height}}function Bl(e){return bt(e).position==="static"}function Yd(e,t){if(!Dt(e)||bt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return It(e)===n&&(n=n.ownerDocument.body),n}function km(e,t){const n=Xe(e);if(tl(e))return n;if(!Dt(e)){let o=$n(e);for(;o&&!so(o);){if(kt(o)&&!Bl(o))return o;o=$n(o)}return n}let r=Yd(e,t);for(;r&&Rx(r)&&Bl(r);)r=Yd(r,t);return r&&so(r)&&Bl(r)&&!nc(r)?n:r||Mx(e)||n}const Yx=async function(e){const t=this.getOffsetParent||km,n=this.getDimensions,r=await n(e.floating);return{reference:Kx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Gx(e){return bt(e).direction==="rtl"}const Xx={convertOffsetParentRelativeRectToViewportRelativeRect:zx,getDocumentElement:It,getClippingRect:Wx,getOffsetParent:km,getElementRects:Yx,getClientRects:Fx,getDimensions:Qx,getScale:Br,isElement:kt,isRTL:Gx};function bm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qx(e,t){let n=null,r;const o=It(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),s();const u=e.getBoundingClientRect(),{left:d,top:p,width:m,height:c}=u;if(l||t(),!m||!c)return;const S=Us(p),v=Us(o.clientWidth-(d+m)),C=Us(o.clientHeight-(p+c)),h=Us(d),g={rootMargin:-S+"px "+-v+"px "+-C+"px "+-h+"px",threshold:Ke(0,Fn(1,a))||1};let w=!0;function E(k){const P=k[0].intersectionRatio;if(P!==a){if(!w)return i();P?i(!1,P):r=setTimeout(()=>{i(!1,1e-7)},1e3)}P===1&&!bm(u,e.getBoundingClientRect())&&i(),w=!1}try{n=new IntersectionObserver(E,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,g)}n.observe(e)}return i(!0),s}function Zx(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=oc(e),d=o||s?[...u?os(u):[],...os(t)]:[];d.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),s&&h.addEventListener("resize",n)});const p=u&&l?qx(u,n):null;let m=-1,c=null;i&&(c=new ResizeObserver(h=>{let[f]=h;f&&f.target===u&&c&&(c.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var g;(g=c)==null||g.observe(t)})),n()}),u&&!a&&c.observe(u),c.observe(t));let S,v=a?dr(e):null;a&&C();function C(){const h=dr(e);v&&!bm(v,h)&&n(),v=h,S=requestAnimationFrame(C)}return n(),()=>{var h;d.forEach(f=>{o&&f.removeEventListener("scroll",n),s&&f.removeEventListener("resize",n)}),p==null||p(),(h=c)==null||h.disconnect(),c=null,a&&cancelAnimationFrame(S)}}const Jx=Ex,e1=kx,t1=xx,n1=Px,r1=Sx,Gd=wx,o1=bx,s1=(e,t,n)=>{const r=new Map,o={platform:Xx,...n},s={...o.platform,_c:r};return yx(e,t,{...o,platform:s})};var i1=typeof document<"u",l1=function(){},ri=i1?x.useLayoutEffect:l1;function Ai(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ai(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Ai(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Pm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xd(e,t){const n=Pm(e);return Math.round(t*n)/n}function Vl(e){const t=x.useRef(e);return ri(()=>{t.current=e}),t}function a1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[d,p]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,c]=x.useState(r);Ai(m,r)||c(r);const[S,v]=x.useState(null),[C,h]=x.useState(null),f=x.useCallback(T=>{T!==k.current&&(k.current=T,v(T))},[]),g=x.useCallback(T=>{T!==P.current&&(P.current=T,h(T))},[]),w=s||S,E=i||C,k=x.useRef(null),P=x.useRef(null),R=x.useRef(d),A=a!=null,_=Vl(a),$=Vl(o),I=Vl(u),Q=x.useCallback(()=>{if(!k.current||!P.current)return;const T={placement:t,strategy:n,middleware:m};$.current&&(T.platform=$.current),s1(k.current,P.current,T).then(N=>{const L={...N,isPositioned:I.current!==!1};M.current&&!Ai(R.current,L)&&(R.current=L,ps.flushSync(()=>{p(L)}))})},[m,t,n,$,I]);ri(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(T=>({...T,isPositioned:!1})))},[u]);const M=x.useRef(!1);ri(()=>(M.current=!0,()=>{M.current=!1}),[]),ri(()=>{if(w&&(k.current=w),E&&(P.current=E),w&&E){if(_.current)return _.current(w,E,Q);Q()}},[w,E,Q,_,A]);const X=x.useMemo(()=>({reference:k,floating:P,setReference:f,setFloating:g}),[f,g]),U=x.useMemo(()=>({reference:w,floating:E}),[w,E]),V=x.useMemo(()=>{const T={position:n,left:0,top:0};if(!U.floating)return T;const N=Xd(U.floating,d.x),L=Xd(U.floating,d.y);return l?{...T,transform:"translate("+N+"px, "+L+"px)",...Pm(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:L}},[n,l,U.floating,d.x,d.y]);return x.useMemo(()=>({...d,update:Q,refs:X,elements:U,floatingStyles:V}),[d,Q,X,U,V])}const u1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Gd({element:r.current,padding:o}).fn(n):{}:r?Gd({element:r,padding:o}).fn(n):{}}}},c1=(e,t)=>({...Jx(e),options:[e,t]}),d1=(e,t)=>({...e1(e),options:[e,t]}),f1=(e,t)=>({...o1(e),options:[e,t]}),p1=(e,t)=>({...t1(e),options:[e,t]}),h1=(e,t)=>({...n1(e),options:[e,t]}),m1=(e,t)=>({...r1(e),options:[e,t]}),g1=(e,t)=>({...u1(e),options:[e,t]});var v1="Arrow",Tm=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return y.jsx(ze.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});Tm.displayName=v1;var y1=Tm;function w1(e){const[t,n]=x.useState(void 0);return zn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,l;if("borderBoxSize"in s){const a=s.borderBoxSize,u=Array.isArray(a)?a[0]:a;i=u.inlineSize,l=u.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Nm="Popper",[Rm,Om]=qi(Nm),[FS,jm]=Rm(Nm),_m="PopperAnchor",Am=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=jm(_m,n),i=x.useRef(null),l=Et(t,i),a=x.useRef(null);return x.useEffect(()=>{const u=a.current;a.current=(r==null?void 0:r.current)||i.current,u!==a.current&&s.onAnchorChange(a.current)}),r?null:y.jsx(ze.div,{...o,ref:l})});Am.displayName=_m;var sc="PopperContent",[x1,S1]=Rm(sc),Mm=x.forwardRef((e,t)=>{var J,mr,rn,Wn,on,gr;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:c="optimized",onPlaced:S,...v}=e,C=jm(sc,n),[h,f]=x.useState(null),g=Et(t,sn=>f(sn)),[w,E]=x.useState(null),k=w1(w),P=(k==null?void 0:k.width)??0,R=(k==null?void 0:k.height)??0,A=r+(s!=="center"?"-"+s:""),_=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},$=Array.isArray(u)?u:[u],I=$.length>0,Q={padding:_,boundary:$.filter(E1),altBoundary:I},{refs:M,floatingStyles:X,placement:U,isPositioned:V,middlewareData:T}=a1({strategy:"fixed",placement:A,whileElementsMounted:(...sn)=>Zx(...sn,{animationFrame:c==="always"}),elements:{reference:C.anchor},middleware:[c1({mainAxis:o+R,alignmentAxis:i}),a&&d1({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?f1():void 0,...Q}),a&&p1({...Q}),h1({...Q,apply:({elements:sn,rects:vs,availableWidth:ll,availableHeight:ys})=>{const{width:al,height:ho}=vs.reference,vr=sn.floating.style;vr.setProperty("--radix-popper-available-width",`${ll}px`),vr.setProperty("--radix-popper-available-height",`${ys}px`),vr.setProperty("--radix-popper-anchor-width",`${al}px`),vr.setProperty("--radix-popper-anchor-height",`${ho}px`)}}),w&&g1({element:w,padding:l}),k1({arrowWidth:P,arrowHeight:R}),m&&m1({strategy:"referenceHidden",...Q})]}),[N,L]=Im(U),H=In(S);zn(()=>{V&&(H==null||H())},[V,H]);const z=(J=T.arrow)==null?void 0:J.x,K=(mr=T.arrow)==null?void 0:mr.y,q=((rn=T.arrow)==null?void 0:rn.centerOffset)!==0,[me,Te]=x.useState();return zn(()=>{h&&Te(window.getComputedStyle(h).zIndex)},[h]),y.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:V?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[(Wn=T.transformOrigin)==null?void 0:Wn.x,(on=T.transformOrigin)==null?void 0:on.y].join(" "),...((gr=T.hide)==null?void 0:gr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(x1,{scope:n,placedSide:N,onArrowChange:E,arrowX:z,arrowY:K,shouldHideArrow:q,children:y.jsx(ze.div,{"data-side":N,"data-align":L,...v,ref:g,style:{...v.style,animation:V?void 0:"none"}})})})});Mm.displayName=sc;var Lm="PopperArrow",C1={top:"bottom",right:"left",bottom:"top",left:"right"},Dm=x.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=S1(Lm,r),i=C1[s.placedSide];return y.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:y.jsx(y1,{...o,ref:n,style:{...o.style,display:"block"}})})});Dm.displayName=Lm;function E1(e){return e!==null}var k1=e=>({name:"transformOrigin",options:e,fn(t){var C,h,f;const{placement:n,rects:r,middlewareData:o}=t,i=((C=o.arrow)==null?void 0:C.centerOffset)!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[u,d]=Im(n),p={start:"0%",center:"50%",end:"100%"}[d],m=(((h=o.arrow)==null?void 0:h.x)??0)+l/2,c=(((f=o.arrow)==null?void 0:f.y)??0)+a/2;let S="",v="";return u==="bottom"?(S=i?p:`${m}px`,v=`${-a}px`):u==="top"?(S=i?p:`${m}px`,v=`${r.floating.height+a}px`):u==="right"?(S=`${-a}px`,v=i?p:`${c}px`):u==="left"&&(S=`${r.floating.width+a}px`,v=i?p:`${c}px`),{data:{x:S,y:v}}}});function Im(e){const[t,n="center"]=e.split("-");return[t,n]}var b1=Am,P1=Mm,T1=Dm,[ol,$S]=qi("Tooltip",[Om]),ic=Om(),zm="TooltipProvider",N1=700,qd="tooltip.open",[R1,Fm]=ol(zm),$m=e=>{const{__scopeTooltip:t,delayDuration:n=N1,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=x.useRef(!0),l=x.useRef(!1),a=x.useRef(0);return x.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),y.jsx(R1,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(a.current),i.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:x.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:s})};$m.displayName=zm;var Um="Tooltip",[US,sl]=ol(Um),Ka="TooltipTrigger",O1=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=sl(Ka,n),s=Fm(Ka,n),i=ic(n),l=x.useRef(null),a=Et(t,l,o.onTriggerChange),u=x.useRef(!1),d=x.useRef(!1),p=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),y.jsx(b1,{asChild:!0,...i,children:y.jsx(ze.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:ye(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:ye(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:ye(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ye(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ye(e.onBlur,o.onClose),onClick:ye(e.onClick,o.onClose)})})});O1.displayName=Ka;var j1="TooltipPortal",[BS,_1]=ol(j1,{forceMount:void 0}),io="TooltipContent",Bm=x.forwardRef((e,t)=>{const n=_1(io,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=sl(io,e.__scopeTooltip);return y.jsx(Ku,{present:r||i.open,children:i.disableHoverableContent?y.jsx(Vm,{side:o,...s,ref:t}):y.jsx(A1,{side:o,...s,ref:t})})}),A1=x.forwardRef((e,t)=>{const n=sl(io,e.__scopeTooltip),r=Fm(io,e.__scopeTooltip),o=x.useRef(null),s=Et(t,o),[i,l]=x.useState(null),{trigger:a,onClose:u}=n,d=o.current,{onPointerInTransitChange:p}=r,m=x.useCallback(()=>{l(null),p(!1)},[p]),c=x.useCallback((S,v)=>{const C=S.currentTarget,h={x:S.clientX,y:S.clientY},f=z1(h,C.getBoundingClientRect()),g=F1(h,f),w=$1(v.getBoundingClientRect()),E=B1([...g,...w]);l(E),p(!0)},[p]);return x.useEffect(()=>()=>m(),[m]),x.useEffect(()=>{if(a&&d){const S=C=>c(C,d),v=C=>c(C,a);return a.addEventListener("pointerleave",S),d.addEventListener("pointerleave",v),()=>{a.removeEventListener("pointerleave",S),d.removeEventListener("pointerleave",v)}}},[a,d,c,m]),x.useEffect(()=>{if(i){const S=v=>{const C=v.target,h={x:v.clientX,y:v.clientY},f=(a==null?void 0:a.contains(C))||(d==null?void 0:d.contains(C)),g=!U1(h,i);f?m():g&&(m(),u())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[a,d,i,u,m]),y.jsx(Vm,{...e,ref:s})}),[M1,L1]=ol(Um,{isInside:!1}),D1=Yy("TooltipContent"),Vm=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...l}=e,a=sl(io,n),u=ic(n),{onClose:d}=a;return x.useEffect(()=>(document.addEventListener(qd,d),()=>document.removeEventListener(qd,d)),[d]),x.useEffect(()=>{if(a.trigger){const p=m=>{const c=m.target;c!=null&&c.contains(a.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[a.trigger,d]),y.jsx(Qu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:y.jsxs(P1,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[y.jsx(D1,{children:r}),y.jsx(M1,{scope:n,isInside:!0,children:y.jsx(w0,{id:a.contentId,role:"tooltip",children:o||r})})]})})});Bm.displayName=io;var Hm="TooltipArrow",I1=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ic(n);return L1(Hm,n).isInside?null:y.jsx(T1,{...o,...r,ref:t})});I1.displayName=Hm;function z1(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function F1(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function $1(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function U1(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const l=t[s],a=t[i],u=l.x,d=l.y,p=a.x,m=a.y;d>r!=m>r&&n<(p-u)*(r-d)/(m-d)+u&&(o=!o)}return o}function B1(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),V1(t)}function V1(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var H1=$m,Wm=Bm;const W1=H1,Q1=x.forwardRef(({className:e,sideOffset:t=4,...n},r)=>y.jsx(Wm,{ref:r,sideOffset:t,className:_e("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Q1.displayName=Wm.displayName;var gs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},il=typeof window>"u"||"Deno"in globalThis;function nt(){}function K1(e,t){return typeof e=="function"?e(t):e}function Y1(e){return typeof e=="number"&&e>=0&&e!==1/0}function G1(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ya(e,t){return typeof e=="function"?e(t):e}function X1(e,t){return typeof e=="function"?e(t):e}function Zd(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:l}=e;if(i){if(r){if(t.queryHash!==lc(i,t.options))return!1}else if(!ss(t.queryKey,i))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||s&&!s(t))}function Jd(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(fr(t.options.mutationKey)!==fr(s))return!1}else if(!ss(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function lc(e,t){return((t==null?void 0:t.queryKeyHashFn)||fr)(e)}function fr(e){return JSON.stringify(e,(t,n)=>Ga(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function ss(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ss(e[n],t[n])):!1}function Qm(e,t){if(e===t)return e;const n=ef(e)&&ef(t);if(n||Ga(e)&&Ga(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,l=n?[]:{},a=new Set(r);let u=0;for(let d=0;d<i;d++){const p=n?d:s[d];(!n&&a.has(p)||n)&&e[p]===void 0&&t[p]===void 0?(l[p]=void 0,u++):(l[p]=Qm(e[p],t[p]),l[p]===e[p]&&e[p]!==void 0&&u++)}return o===i&&u===o?e:l}return t}function q1(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function ef(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ga(e){if(!tf(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!tf(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function tf(e){return Object.prototype.toString.call(e)==="[object Object]"}function Z1(e){return new Promise(t=>{setTimeout(t,e)})}function J1(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Qm(e,t):t}function eS(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function tS(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ac=Symbol();function Km(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===ac?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function nS(e,t){return typeof e=="function"?e(...t):!!e}var Jn,yn,Vr,of,rS=(of=class extends gs{constructor(){super();Y(this,Jn);Y(this,yn);Y(this,Vr);F(this,Vr,t=>{if(!il&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){b(this,yn)||this.setEventListener(b(this,Vr))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,yn))==null||t.call(this),F(this,yn,void 0))}setEventListener(t){var n;F(this,Vr,t),(n=b(this,yn))==null||n.call(this),F(this,yn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){b(this,Jn)!==t&&(F(this,Jn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof b(this,Jn)=="boolean"?b(this,Jn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Jn=new WeakMap,yn=new WeakMap,Vr=new WeakMap,of),Ym=new rS,Hr,wn,Wr,sf,oS=(sf=class extends gs{constructor(){super();Y(this,Hr,!0);Y(this,wn);Y(this,Wr);F(this,Wr,t=>{if(!il&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){b(this,wn)||this.setEventListener(b(this,Wr))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,wn))==null||t.call(this),F(this,wn,void 0))}setEventListener(t){var n;F(this,Wr,t),(n=b(this,wn))==null||n.call(this),F(this,wn,t(this.setOnline.bind(this)))}setOnline(t){b(this,Hr)!==t&&(F(this,Hr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return b(this,Hr)}},Hr=new WeakMap,wn=new WeakMap,Wr=new WeakMap,sf),Mi=new oS;function sS(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function iS(e){return Math.min(1e3*2**e,3e4)}function Gm(e){return(e??"online")==="online"?Mi.isOnline():!0}var Xm=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function qm(e){let t=!1,n=0,r;const o=sS(),s=()=>o.status!=="pending",i=v=>{var C;s()||(m(new Xm(v)),(C=e.abort)==null||C.call(e))},l=()=>{t=!0},a=()=>{t=!1},u=()=>Ym.isFocused()&&(e.networkMode==="always"||Mi.isOnline())&&e.canRun(),d=()=>Gm(e.networkMode)&&e.canRun(),p=v=>{s()||(r==null||r(),o.resolve(v))},m=v=>{s()||(r==null||r(),o.reject(v))},c=()=>new Promise(v=>{var C;r=h=>{(s()||u())&&v(h)},(C=e.onPause)==null||C.call(e)}).then(()=>{var v;r=void 0,s()||(v=e.onContinue)==null||v.call(e)}),S=()=>{if(s())return;let v;const C=n===0?e.initialPromise:void 0;try{v=C??e.fn()}catch(h){v=Promise.reject(h)}Promise.resolve(v).then(p).catch(h=>{var k;if(s())return;const f=e.retry??(il?0:3),g=e.retryDelay??iS,w=typeof g=="function"?g(n,h):g,E=f===!0||typeof f=="number"&&n<f||typeof f=="function"&&f(n,h);if(t||!E){m(h);return}n++,(k=e.onFail)==null||k.call(e,n,h),Z1(w).then(()=>u()?void 0:c()).then(()=>{t?m(h):S()})})};return{promise:o,status:()=>o.status,cancel:i,continue:()=>(r==null||r(),o),cancelRetry:l,continueRetry:a,canStart:d,start:()=>(d()?S():c().then(S),o)}}var lS=e=>setTimeout(e,0);function aS(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=lS;const s=l=>{t?e.push(l):o(()=>{n(l)})},i=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||i()}return a},batchCalls:l=>(...a)=>{s(()=>{l(...a)})},schedule:s,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var ke=aS(),er,lf,Zm=(lf=class{constructor(){Y(this,er)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Y1(this.gcTime)&&F(this,er,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(il?1/0:5*60*1e3))}clearGcTimeout(){b(this,er)&&(clearTimeout(b(this,er)),F(this,er,void 0))}},er=new WeakMap,lf),Qr,Kr,tt,tr,xe,is,nr,gt,Ft,af,uS=(af=class extends Zm{constructor(t){super();Y(this,gt);Y(this,Qr);Y(this,Kr);Y(this,tt);Y(this,tr);Y(this,xe);Y(this,is);Y(this,nr);F(this,nr,!1),F(this,is,t.defaultOptions),this.setOptions(t.options),this.observers=[],F(this,tr,t.client),F(this,tt,b(this,tr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,F(this,Qr,dS(this.options)),this.state=t.state??b(this,Qr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=b(this,xe))==null?void 0:t.promise}setOptions(t){this.options={...b(this,is),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,tt).remove(this)}setData(t,n){const r=J1(this.state.data,t,this.options);return pe(this,gt,Ft).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){pe(this,gt,Ft).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=b(this,xe))==null?void 0:r.promise;return(o=b(this,xe))==null||o.cancel(t),n?n.then(nt).catch(nt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(b(this,Qr))}isActive(){return this.observers.some(t=>X1(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ac||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ya(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!G1(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,xe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,xe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),b(this,tt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(b(this,xe)&&(b(this,nr)?b(this,xe).cancel({revert:!0}):b(this,xe).cancelRetry()),this.scheduleGc()),b(this,tt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pe(this,gt,Ft).call(this,{type:"invalidate"})}async fetch(t,n){var a,u,d,p,m,c,S,v,C,h,f,g;if(this.state.fetchStatus!=="idle"&&((a=b(this,xe))==null?void 0:a.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(b(this,xe))return b(this,xe).continueRetry(),b(this,xe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(E=>E.options.queryFn);w&&this.setOptions(w.options)}const r=new AbortController,o=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(F(this,nr,!0),r.signal)})},s=()=>{const w=Km(this.options,n),k=(()=>{const P={client:b(this,tr),queryKey:this.queryKey,meta:this.meta};return o(P),P})();return F(this,nr,!1),this.options.persister?this.options.persister(w,k,this):w(k)},l=(()=>{const w={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:b(this,tr),state:this.state,fetchFn:s};return o(w),w})();(u=this.options.behavior)==null||u.onFetch(l,this),F(this,Kr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&pe(this,gt,Ft).call(this,{type:"fetch",meta:(p=l.fetchOptions)==null?void 0:p.meta}),F(this,xe,qm({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onFail:(w,E)=>{pe(this,gt,Ft).call(this,{type:"failed",failureCount:w,error:E})},onPause:()=>{pe(this,gt,Ft).call(this,{type:"pause"})},onContinue:()=>{pe(this,gt,Ft).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const w=await b(this,xe).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(c=(m=b(this,tt).config).onSuccess)==null||c.call(m,w,this),(v=(S=b(this,tt).config).onSettled)==null||v.call(S,w,this.state.error,this),w}catch(w){if(w instanceof Xm){if(w.silent)return b(this,xe).promise;if(w.revert){if(this.setState({...b(this,Kr),fetchStatus:"idle"}),this.state.data===void 0)throw w;return this.state.data}}throw pe(this,gt,Ft).call(this,{type:"error",error:w}),(h=(C=b(this,tt).config).onError)==null||h.call(C,w,this),(g=(f=b(this,tt).config).onSettled)==null||g.call(f,this.state.data,w,this),w}finally{this.scheduleGc()}}},Qr=new WeakMap,Kr=new WeakMap,tt=new WeakMap,tr=new WeakMap,xe=new WeakMap,is=new WeakMap,nr=new WeakMap,gt=new WeakSet,Ft=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...cS(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return F(this,Kr,t.manual?o:void 0),o;case"error":const s=t.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ke.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),b(this,tt).notify({query:this,type:"updated",action:t})})},af);function cS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Gm(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function dS(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Nt,uf,fS=(uf=class extends gs{constructor(t={}){super();Y(this,Nt);this.config=t,F(this,Nt,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??lc(o,n);let i=this.get(s);return i||(i=new uS({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){b(this,Nt).has(t.queryHash)||(b(this,Nt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=b(this,Nt).get(t.queryHash);n&&(t.destroy(),n===t&&b(this,Nt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ke.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return b(this,Nt).get(t)}getAll(){return[...b(this,Nt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Zd(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Zd(t,r)):n}notify(t){ke.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ke.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ke.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Nt=new WeakMap,uf),Rt,Ae,rr,Ot,pn,cf,pS=(cf=class extends Zm{constructor(t){super();Y(this,Ot);Y(this,Rt);Y(this,Ae);Y(this,rr);this.mutationId=t.mutationId,F(this,Ae,t.mutationCache),F(this,Rt,[]),this.state=t.state||Jm(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){b(this,Rt).includes(t)||(b(this,Rt).push(t),this.clearGcTimeout(),b(this,Ae).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){F(this,Rt,b(this,Rt).filter(n=>n!==t)),this.scheduleGc(),b(this,Ae).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){b(this,Rt).length||(this.state.status==="pending"?this.scheduleGc():b(this,Ae).remove(this))}continue(){var t;return((t=b(this,rr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,l,a,u,d,p,m,c,S,v,C,h,f,g,w,E,k,P,R;const n=()=>{pe(this,Ot,pn).call(this,{type:"continue"})};F(this,rr,qm({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(A,_)=>{pe(this,Ot,pn).call(this,{type:"failed",failureCount:A,error:_})},onPause:()=>{pe(this,Ot,pn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,Ae).canRun(this)}));const r=this.state.status==="pending",o=!b(this,rr).canStart();try{if(r)n();else{pe(this,Ot,pn).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=b(this,Ae).config).onMutate)==null?void 0:i.call(s,t,this));const _=await((a=(l=this.options).onMutate)==null?void 0:a.call(l,t));_!==this.state.context&&pe(this,Ot,pn).call(this,{type:"pending",context:_,variables:t,isPaused:o})}const A=await b(this,rr).start();return await((d=(u=b(this,Ae).config).onSuccess)==null?void 0:d.call(u,A,t,this.state.context,this)),await((m=(p=this.options).onSuccess)==null?void 0:m.call(p,A,t,this.state.context)),await((S=(c=b(this,Ae).config).onSettled)==null?void 0:S.call(c,A,null,this.state.variables,this.state.context,this)),await((C=(v=this.options).onSettled)==null?void 0:C.call(v,A,null,t,this.state.context)),pe(this,Ot,pn).call(this,{type:"success",data:A}),A}catch(A){try{throw await((f=(h=b(this,Ae).config).onError)==null?void 0:f.call(h,A,t,this.state.context,this)),await((w=(g=this.options).onError)==null?void 0:w.call(g,A,t,this.state.context)),await((k=(E=b(this,Ae).config).onSettled)==null?void 0:k.call(E,void 0,A,this.state.variables,this.state.context,this)),await((R=(P=this.options).onSettled)==null?void 0:R.call(P,void 0,A,t,this.state.context)),A}finally{pe(this,Ot,pn).call(this,{type:"error",error:A})}}finally{b(this,Ae).runNext(this)}}},Rt=new WeakMap,Ae=new WeakMap,rr=new WeakMap,Ot=new WeakSet,pn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ke.batch(()=>{b(this,Rt).forEach(r=>{r.onMutationUpdate(t)}),b(this,Ae).notify({mutation:this,type:"updated",action:t})})},cf);function Jm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Bt,vt,ls,df,hS=(df=class extends gs{constructor(t={}){super();Y(this,Bt);Y(this,vt);Y(this,ls);this.config=t,F(this,Bt,new Set),F(this,vt,new Map),F(this,ls,0)}build(t,n,r){const o=new pS({mutationCache:this,mutationId:++xs(this,ls)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){b(this,Bt).add(t);const n=Bs(t);if(typeof n=="string"){const r=b(this,vt).get(n);r?r.push(t):b(this,vt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(b(this,Bt).delete(t)){const n=Bs(t);if(typeof n=="string"){const r=b(this,vt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&b(this,vt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Bs(t);if(typeof n=="string"){const r=b(this,vt).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Bs(t);if(typeof n=="string"){const o=(r=b(this,vt).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ke.batch(()=>{b(this,Bt).forEach(t=>{this.notify({type:"removed",mutation:t})}),b(this,Bt).clear(),b(this,vt).clear()})}getAll(){return Array.from(b(this,Bt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Jd(n,r))}findAll(t={}){return this.getAll().filter(n=>Jd(t,n))}notify(t){ke.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ke.batch(()=>Promise.all(t.map(n=>n.continue().catch(nt))))}},Bt=new WeakMap,vt=new WeakMap,ls=new WeakMap,df);function Bs(e){var t;return(t=e.options.scope)==null?void 0:t.id}function nf(e){return{onFetch:(t,n)=>{var d,p,m,c,S;const r=t.options,o=(m=(p=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:p.fetchMore)==null?void 0:m.direction,s=((c=t.state.data)==null?void 0:c.pages)||[],i=((S=t.state.data)==null?void 0:S.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let v=!1;const C=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},h=Km(t.options,t.fetchOptions),f=async(g,w,E)=>{if(v)return Promise.reject();if(w==null&&g.pages.length)return Promise.resolve(g);const P=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:w,direction:E?"backward":"forward",meta:t.options.meta};return C($),$})(),R=await h(P),{maxPages:A}=t.options,_=E?tS:eS;return{pages:_(g.pages,R,A),pageParams:_(g.pageParams,w,A)}};if(o&&s.length){const g=o==="backward",w=g?mS:rf,E={pages:s,pageParams:i},k=w(r,E);l=await f(E,k,g)}else{const g=e??s.length;do{const w=a===0?i[0]??r.initialPageParam:rf(r,l);if(a>0&&w==null)break;l=await f(l,w),a++}while(a<g)}return l};t.options.persister?t.fetchFn=()=>{var v,C;return(C=(v=t.options).persister)==null?void 0:C.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function rf(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function mS(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var de,xn,Sn,Yr,Gr,Cn,Xr,qr,ff,gS=(ff=class{constructor(e={}){Y(this,de);Y(this,xn);Y(this,Sn);Y(this,Yr);Y(this,Gr);Y(this,Cn);Y(this,Xr);Y(this,qr);F(this,de,e.queryCache||new fS),F(this,xn,e.mutationCache||new hS),F(this,Sn,e.defaultOptions||{}),F(this,Yr,new Map),F(this,Gr,new Map),F(this,Cn,0)}mount(){xs(this,Cn)._++,b(this,Cn)===1&&(F(this,Xr,Ym.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,de).onFocus())})),F(this,qr,Mi.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,de).onOnline())})))}unmount(){var e,t;xs(this,Cn)._--,b(this,Cn)===0&&((e=b(this,Xr))==null||e.call(this),F(this,Xr,void 0),(t=b(this,qr))==null||t.call(this),F(this,qr,void 0))}isFetching(e){return b(this,de).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return b(this,xn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,de).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=b(this,de).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ya(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return b(this,de).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=b(this,de).get(r.queryHash),s=o==null?void 0:o.state.data,i=K1(t,s);if(i!==void 0)return b(this,de).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return ke.batch(()=>b(this,de).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,de).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=b(this,de);ke.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=b(this,de);return ke.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ke.batch(()=>b(this,de).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(nt).catch(nt)}invalidateQueries(e,t={}){return ke.batch(()=>(b(this,de).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=ke.batch(()=>b(this,de).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(nt)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(nt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=b(this,de).build(this,t);return n.isStaleByTime(Ya(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(nt).catch(nt)}fetchInfiniteQuery(e){return e.behavior=nf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(nt).catch(nt)}ensureInfiniteQueryData(e){return e.behavior=nf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Mi.isOnline()?b(this,xn).resumePausedMutations():Promise.resolve()}getQueryCache(){return b(this,de)}getMutationCache(){return b(this,xn)}getDefaultOptions(){return b(this,Sn)}setDefaultOptions(e){F(this,Sn,e)}setQueryDefaults(e,t){b(this,Yr).set(fr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...b(this,Yr).values()],n={};return t.forEach(r=>{ss(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){b(this,Gr).set(fr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...b(this,Gr).values()],n={};return t.forEach(r=>{ss(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...b(this,Sn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=lc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ac&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...b(this,Sn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){b(this,de).clear(),b(this,xn).clear()}},de=new WeakMap,xn=new WeakMap,Sn=new WeakMap,Yr=new WeakMap,Gr=new WeakMap,Cn=new WeakMap,Xr=new WeakMap,qr=new WeakMap,ff),En,kn,Fe,Vt,Kt,oi,Xa,pf,vS=(pf=class extends gs{constructor(n,r){super();Y(this,Kt);Y(this,En);Y(this,kn);Y(this,Fe);Y(this,Vt);F(this,En,n),this.setOptions(r),this.bindMethods(),pe(this,Kt,oi).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=b(this,En).defaultMutationOptions(n),q1(this.options,r)||b(this,En).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,Fe),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&fr(r.mutationKey)!==fr(this.options.mutationKey)?this.reset():((o=b(this,Fe))==null?void 0:o.state.status)==="pending"&&b(this,Fe).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=b(this,Fe))==null||n.removeObserver(this)}onMutationUpdate(n){pe(this,Kt,oi).call(this),pe(this,Kt,Xa).call(this,n)}getCurrentResult(){return b(this,kn)}reset(){var n;(n=b(this,Fe))==null||n.removeObserver(this),F(this,Fe,void 0),pe(this,Kt,oi).call(this),pe(this,Kt,Xa).call(this)}mutate(n,r){var o;return F(this,Vt,r),(o=b(this,Fe))==null||o.removeObserver(this),F(this,Fe,b(this,En).getMutationCache().build(b(this,En),this.options)),b(this,Fe).addObserver(this),b(this,Fe).execute(n)}},En=new WeakMap,kn=new WeakMap,Fe=new WeakMap,Vt=new WeakMap,Kt=new WeakSet,oi=function(){var r;const n=((r=b(this,Fe))==null?void 0:r.state)??Jm();F(this,kn,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Xa=function(n){ke.batch(()=>{var r,o,s,i,l,a,u,d;if(b(this,Vt)&&this.hasListeners()){const p=b(this,kn).variables,m=b(this,kn).context;(n==null?void 0:n.type)==="success"?((o=(r=b(this,Vt)).onSuccess)==null||o.call(r,n.data,p,m),(i=(s=b(this,Vt)).onSettled)==null||i.call(s,n.data,null,p,m)):(n==null?void 0:n.type)==="error"&&((a=(l=b(this,Vt)).onError)==null||a.call(l,n.error,p,m),(d=(u=b(this,Vt)).onSettled)==null||d.call(u,void 0,n.error,p,m))}this.listeners.forEach(p=>{p(b(this,kn))})})},pf),eg=x.createContext(void 0),yS=e=>{const t=x.useContext(eg);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},wS=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(eg.Provider,{value:e,children:t}));function xS(e,t){const n=yS(),[r]=x.useState(()=>new vS(n,e));x.useEffect(()=>{r.setOptions(e)},[r,e]);const o=x.useSyncExternalStore(x.useCallback(i=>r.subscribe(ke.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=x.useCallback((i,l)=>{r.mutate(i,l).catch(nt)},[r]);if(o.error&&nS(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const SS=qu("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ut=x.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?Qy:"button";return y.jsx(i,{className:_e(SS({variant:t,size:n,className:e})),ref:s,...o})});ut.displayName="Button";const tn=x.forwardRef(({className:e,...t},n)=>y.jsx("div",{ref:n,className:_e("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));tn.displayName="Card";const uc=x.forwardRef(({className:e,...t},n)=>y.jsx("div",{ref:n,className:_e("flex flex-col space-y-1.5 p-6",e),...t}));uc.displayName="CardHeader";const cc=x.forwardRef(({className:e,...t},n)=>y.jsx("h3",{ref:n,className:_e("text-2xl font-semibold leading-none tracking-tight",e),...t}));cc.displayName="CardTitle";const CS=x.forwardRef(({className:e,...t},n)=>y.jsx("p",{ref:n,className:_e("text-sm text-muted-foreground",e),...t}));CS.displayName="CardDescription";const nn=x.forwardRef(({className:e,...t},n)=>y.jsx("div",{ref:n,className:_e("p-6 pt-0",e),...t}));nn.displayName="CardContent";const ES=x.forwardRef(({className:e,...t},n)=>y.jsx("div",{ref:n,className:_e("flex items-center p-6 pt-0",e),...t}));ES.displayName="CardFooter";const kS=({onContinue:e})=>y.jsx(tn,{className:"w-full max-w-md mx-auto",children:y.jsxs(nn,{className:"pt-8 text-center",children:[y.jsx("div",{className:"bg-gradient-to-br from-primary/10 to-primary/5 rounded-3xl p-8 mb-8",children:y.jsx("div",{className:"relative mb-8",children:y.jsxs("div",{className:"relative mx-auto w-48 h-32",children:[y.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary to-primary/80 rounded-2xl transform rotate-3 shadow-lg",children:y.jsx("div",{className:"flex items-center justify-center h-full",children:y.jsx("div",{className:"w-12 h-12 bg-white/20 rounded-full flex items-center justify-center",children:y.jsx("svg",{viewBox:"0 0 24 24",className:"w-6 h-6 text-white",fill:"currentColor",children:y.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})})})})}),y.jsx("div",{className:"absolute top-4 right-0 bg-card rounded-xl shadow-lg p-4 transform -rotate-3",children:y.jsxs("div",{className:"flex items-center space-x-2",children:[y.jsx("div",{className:"w-8 h-8 bg-primary/20 rounded-full"}),y.jsxs("div",{className:"space-y-1",children:[y.jsx("div",{className:"w-12 h-2 bg-primary rounded"}),y.jsx("div",{className:"w-8 h-2 bg-primary/60 rounded"})]})]})}),y.jsx("div",{className:"absolute -top-2 -right-2 w-10 h-10 bg-primary rounded-full flex items-center justify-center shadow-lg",children:y.jsx(sm,{className:"w-6 h-6 text-white"})})]})})}),y.jsx("h1",{className:"text-3xl font-bold text-foreground mb-4",children:"Verify your identity"}),y.jsx("p",{className:"text-lg text-muted-foreground mb-12",children:"We need some information to help us confirm your identity."}),y.jsx(ut,{className:"w-full h-14 text-lg font-semibold",onClick:e,children:"Start"}),y.jsx("p",{className:"text-sm text-muted-foreground mt-6",children:"Verifying usually takes a few seconds."})]})}),tg=x.forwardRef(({className:e,type:t,...n},r)=>y.jsx("input",{type:t,className:_e("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));tg.displayName="Input";var bS="Label",ng=x.forwardRef((e,t)=>y.jsx(ze.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));ng.displayName=bS;var rg=ng;const PS=qu("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Mr=x.forwardRef(({className:e,...t},n)=>y.jsx(rg,{ref:n,className:_e(PS(),e),...t}));Mr.displayName=rg.displayName;const TS=({fullName:e,onNameChange:t,onContinue:n,renderProgress:r})=>y.jsxs(tn,{className:"w-full max-w-md mx-auto",children:[y.jsxs(uc,{className:"text-center",children:[y.jsx(H0,{className:"w-12 h-12 mx-auto mb-4 text-primary"}),y.jsx(cc,{children:"Personal Information"}),y.jsx("p",{className:"text-muted-foreground",children:"Please enter your full legal name"})]}),y.jsxs(nn,{children:[y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx(Mr,{htmlFor:"fullName",children:"Full Name"}),y.jsx(tg,{id:"fullName",placeholder:"Enter your full name",value:e,onChange:o=>t(o.target.value)})]}),y.jsx(ut,{className:"w-full",onClick:n,disabled:!e.trim(),children:"Continue"})]}),y.jsx("div",{className:"mt-6",children:r()})]})]}),dc=({title:e,subTitle:t,onBack:n})=>y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"flex items-center mb-6",children:[y.jsx(ut,{variant:"ghost",size:"icon",className:"mr-2",onClick:n,children:y.jsx(om,{className:"w-6 h-6"})}),y.jsx("h1",{className:"text-2xl font-semibold ml-4",children:e})]}),y.jsx("p",{className:"text-center text-muted-foreground mb-6",children:t})]}),NS=({selectedDocumentType:e,onDocumentTypeChange:t,onContinue:n,onBack:r,renderProgress:o})=>{const s=[{id:"id-card",title:"ID Card",description:"Government-issued personal ID.",icon:V0},{id:"drivers-license",title:"Drivers license",description:"Government-issued Drivers license",icon:B0},{id:"passport",title:"Passport",description:"Your official travel document.",icon:U0},{id:"voter-id",title:"Voter ID",description:"Government-issued Voter ID",icon:W0}];return y.jsx(tn,{className:"w-full max-w-md mx-auto",children:y.jsxs(nn,{className:"p-6",children:[y.jsx(dc,{title:"Upload ID",subTitle:"Choose the document type you would like to identify with",onBack:r}),y.jsx("div",{className:"space-y-3",children:s.map(i=>{const l=i.icon;return y.jsx("button",{className:`w-full p-4 rounded-lg border text-left transition-colors hover:bg-muted/50 ${e===i.id?"border-primary bg-primary/5":"border-border"}`,onClick:()=>t(i.id),children:y.jsxs("div",{className:"flex items-center space-x-4",children:[y.jsx("div",{className:"w-12 h-12 bg-primary rounded-full flex items-center justify-center",children:y.jsx(l,{className:"w-6 h-6 text-white"})}),y.jsxs("div",{className:"flex-1",children:[y.jsx("h3",{className:"font-semibold text-foreground",children:i.title}),y.jsx("p",{className:"text-sm text-muted-foreground",children:i.description})]})]})},i.id)})}),y.jsx(ut,{className:"w-full mt-6",onClick:n,disabled:!e,children:"Continue"}),y.jsx("div",{className:"mt-6",children:o()})]})})},RS=e=>{switch(e){case"selfie":return{title:"Selfie",description:"Place your face inside the frame and take a picture. Make sure it is clearly visible.",frameType:"circular"};case"id-front":return{title:"Upload ID",description:"Place your ID inside the frame and take a picture. Make sure it is not cut or has any glare.",frameType:"rectangular"};case"id-back":return{title:"Upload ID Back",description:"Place the back of your ID inside the frame and take a picture. Make sure it is not cut or has any glare.",frameType:"rectangular"};default:return{title:"Take Photo",description:"Position your document inside the frame and take a picture.",frameType:"rectangular"}}},Hl=({acceptedFile:e,currentStep:t,setCurrentStep:n,setSelfiePhoto:r,setIdCardFront:o,setIdCardBack:s})=>{const[i,l]=x.useState(null),a=x.useRef(null),u=x.useRef(null),d=!!i,{toast:p}=Wu();x.useEffect(()=>{i&&a.current&&(a.current.srcObject=i)},[i]);const m=x.useCallback(async()=>{try{const w=await navigator.mediaDevices.getUserMedia({video:{facingMode:t==="selfie"?"user":"environment",width:{ideal:1280},height:{ideal:720}}});l(w)}catch{p({title:"Camera Error",description:"Unable to access camera. Please check permissions.",variant:"destructive"})}},[t,p]);x.useEffect(()=>{!i&&!e&&m()},[t,m,i,e]);const c=x.useCallback(()=>{i&&(i.getTracks().forEach(w=>w.stop()),l(null))},[i]),S=x.useCallback(()=>{if(!a.current||!u.current)return;const w=a.current,E=u.current,k=E.getContext("2d");k&&(E.width=w.videoWidth,E.height=w.videoHeight,k.drawImage(w,0,0),E.toBlob(P=>{if(P){const R=new File([P],`${t}-${Date.now()}.jpg`,{type:"image/jpeg"});switch(t){case"selfie":r(R),c(),n("selfie-confirm");break;case"id-front":o(R),c(),n("id-front-confirm");break;case"id-back":s(R),c(),n("id-back-confirm");break}p({title:"Photo Captured",description:"Photo captured successfully"})}},"image/jpeg",.8))},[t,c,p]);x.useEffect(()=>()=>{c()},[c]);const v=RS(t),{title:C,description:h,frameType:f}=v,g=()=>{switch(c(),t){case"selfie":n("pre-selfie");break;case"id-front":n("document-selection");break;case"id-back":n("document-selection");break}};return y.jsx(tn,{className:"w-full max-w-md mx-auto border-gray-900 bg-gray-900",children:y.jsxs(nn,{className:" text-white flex flex-col",children:[y.jsxs("div",{className:"flex items-center p-6",children:[y.jsx(ut,{variant:"ghost",size:"sm",onClick:g,className:"text-white hover:bg-gray-800",children:y.jsx(om,{className:"h-6 w-6"})}),y.jsx("h1",{className:"text-xl font-semibold ml-4",children:C})]}),y.jsx("div",{className:"px-6 mb-8",children:y.jsx("p",{className:"text-gray-300 text-center",children:h})}),y.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center px-6",children:[y.jsx("div",{className:"relative mb-16",children:d?y.jsxs(y.Fragment,{children:[y.jsx("video",{ref:a,autoPlay:!0,playsInline:!0,className:`bg-gray-800 object-cover ${f==="circular"?"w-80 h-80 rounded-full":"w-80 h-48 rounded-2xl"}`}),y.jsx("canvas",{ref:u,className:"hidden"})]}):y.jsx("div",{className:`bg-gray-700 flex items-center justify-center ${f==="circular"?"w-80 h-80 rounded-full":"w-80 h-48 rounded-2xl"}`,children:y.jsx("p",{className:"text-gray-400",children:"Camera loading..."})})}),y.jsx(ut,{onClick:d?S:m,size:"lg",className:"w-16 h-16 rounded-full bg-white hover:bg-gray-100 border-4 border-gray-600 p-0",disabled:!d,children:y.jsx("div",{className:"w-8 h-8 rounded-full bg-white"})})]})]})})},OS=({onContinue:e,onBack:t})=>y.jsx(tn,{className:"w-full max-w-md mx-auto",children:y.jsxs(nn,{className:"p-6",children:[y.jsx(dc,{title:"Selfie",subTitle:"Make sure your face is clear and is fully inside the frame.",onBack:t}),y.jsx("div",{className:"m-auto w-44 h-80 bg-gradient-to-br from-primary/20 to-primary/40 rounded-3xl p-4 shadow-2xl",children:y.jsx("div",{className:"w-full h-full bg-background rounded-2xl overflow-hidden relative",children:y.jsx("div",{className:"flex items-center justify-center h-full bg-muted/30",children:y.jsxs("div",{className:"text-center",children:[y.jsx("div",{className:"w-16 h-16 bg-primary rounded-full flex items-center justify-center mx-auto mb-2"}),y.jsx("div",{className:"w-28 h-32 bg-primary/30 rounded-2xl mx-auto"})]})})})}),y.jsx("div",{className:"mt-8",children:y.jsx(ut,{onClick:e,className:"w-full h-12 text-lg font-semibold",children:"Take a selfie"})})]})}),Wl=({photo:e,onRetake:t,onConfirm:n,onBack:r,renderProgress:o})=>{const s=j.useMemo(()=>URL.createObjectURL(e),[e]);return j.useEffect(()=>()=>{URL.revokeObjectURL(s)},[s]),y.jsx(tn,{className:"w-full max-w-md mx-auto",children:y.jsxs(nn,{className:"p-6",children:[y.jsx(dc,{title:"Review picture",subTitle:"Make sure the information is seen clearly, with no blur or glare.",onBack:r}),y.jsx("div",{className:"mb-8",children:y.jsx("div",{className:"relative",children:y.jsx("img",{src:s,alt:"Captured photo",className:"w-full h-64 object-cover rounded-2xl bg-muted"})})}),y.jsxs("div",{className:"flex gap-4",children:[y.jsx(ut,{variant:"outline",onClick:t,className:"flex-1 text-md",children:"Take again"}),y.jsx(ut,{onClick:n,className:"flex-1 text-md",children:"Looks good"})]})]})})},jS=({fullName:e,onComplete:t,onStartOver:n})=>y.jsxs(tn,{className:"w-full max-w-md mx-auto",children:[y.jsxs(uc,{className:"text-center",children:[y.jsx(sm,{className:"w-12 h-12 mx-auto mb-4 text-green-500"}),y.jsx(cc,{children:"Review Information"}),y.jsx("p",{className:"text-muted-foreground",children:"Please review your information before submitting"})]}),y.jsx(nn,{children:y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx(Mr,{children:"Full Name"}),y.jsx("p",{className:"font-medium",children:e})]}),y.jsxs("div",{className:"grid grid-cols-3 gap-2 text-center",children:[y.jsxs("div",{children:[y.jsx(Mr,{className:"text-xs",children:"Selfie"}),y.jsx("div",{className:"text-green-500",children:"✓"})]}),y.jsxs("div",{children:[y.jsx(Mr,{className:"text-xs",children:"ID Front"}),y.jsx("div",{className:"text-green-500",children:"✓"})]}),y.jsxs("div",{children:[y.jsx(Mr,{className:"text-xs",children:"ID Back"}),y.jsx("div",{className:"text-green-500",children:"✓"})]})]}),y.jsx(ut,{className:"w-full text-md",onClick:t,children:"Complete Verification"}),y.jsx(ut,{variant:"outline",className:"w-full text-md",onClick:n,children:"Start Over"})]})})]}),_S=({onComplete:e})=>(x.useEffect(()=>{const t=setTimeout(()=>{e()},3e3);return()=>clearTimeout(t)},[e]),y.jsx(tn,{className:"w-full max-w-md mx-auto min-h-[500px] flex items-center justify-center",children:y.jsxs(nn,{className:"text-center space-y-8",children:[y.jsx("div",{children:y.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-2",children:"We're verifying your documents"})}),y.jsx("div",{className:"flex justify-center",children:y.jsx("div",{className:"w-16 h-16 border-4 border-primary border-t-transparent rounded-full animate-spin"})})]})})),AS=({apiEndpoint:e,hideNameStep:t,hideDocumentSelectionStep:n})=>{const[r,o]=x.useState("landing"),[s,i]=x.useState(""),[l,a]=x.useState(""),[u,d]=x.useState(null),[p,m]=x.useState(null),[c,S]=x.useState(null),v=xS({mutationFn:MS}),{toast:C}=Wu(),h=x.useMemo(()=>[...t?[]:["name"],...n?[]:["document-selection"],"selfie","selfie-confirm","pre-selfie","id-front","id-front-confirm","id-back","id-back-confirm","verify"],[t,n]),f=()=>t?n?"id-front":"document-selection":"name",g=()=>{(t||!!s)&&u&&p&&c&&(v.mutate({endpoint:e,data:{fullName:s,selfiePhoto:u,idCardFront:p,idCardBack:c}}),C({title:"KYC Complete",description:"Identity verification completed successfully"}),i(""),d(null),m(null),S(null),o("landing"))},w=()=>y.jsx(y.Fragment,{children:r!=="landing"&&y.jsx("div",{className:"flex justify-center",children:y.jsx("div",{className:"flex space-x-2",children:h.map((k,P)=>y.jsx("div",{className:`w-3 h-3 rounded-full ${h.indexOf(r)>=P?"bg-primary":"bg-muted"}`},k))})})}),E=()=>{switch(r){case"landing":return y.jsx(kS,{onContinue:()=>o(f())});case"name":return y.jsx(TS,{fullName:s,onNameChange:i,onContinue:()=>o(n?"id-front":"document-selection"),renderProgress:w});case"document-selection":return y.jsx(NS,{selectedDocumentType:l,onDocumentTypeChange:a,onContinue:()=>o("id-front"),onBack:()=>o(t?"landing":"name"),renderProgress:w});case"id-front":return y.jsx(Hl,{acceptedFile:p,currentStep:r,setCurrentStep:o,setSelfiePhoto:d,setIdCardFront:m,setIdCardBack:S});case"id-back":return y.jsx(Hl,{acceptedFile:c,currentStep:r,setCurrentStep:o,setSelfiePhoto:d,setIdCardFront:m,setIdCardBack:S});case"pre-selfie":return y.jsx(OS,{onContinue:()=>o("selfie"),onBack:()=>o("name")});case"selfie":return y.jsx(Hl,{acceptedFile:u,currentStep:r,setCurrentStep:o,setSelfiePhoto:d,setIdCardFront:m,setIdCardBack:S});case"selfie-confirm":return u?y.jsx(Wl,{photo:u,onRetake:()=>{d(null),o("selfie")},onConfirm:()=>o("verify"),onBack:()=>o("selfie"),renderProgress:w}):null;case"id-front-confirm":return p?y.jsx(Wl,{photo:p,onRetake:()=>{m(null),o("id-front")},onConfirm:()=>o("id-back"),onBack:()=>o("id-front"),renderProgress:w}):null;case"id-back-confirm":return c?y.jsx(Wl,{photo:c,onRetake:()=>{S(null),o("id-back")},onConfirm:()=>o("pre-selfie"),onBack:()=>o("id-back"),renderProgress:w}):null;case"verify":return y.jsx(jS,{fullName:s,onComplete:()=>o("processing"),onStartOver:()=>o("landing")});case"processing":return y.jsx(_S,{onComplete:g});default:return null}};return y.jsx("div",{className:"w-[430px]",children:E()})};async function MS({endpoint:e,data:t}){const n=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok)throw new Error("Network response was not ok");return n.json()}const LS=new gS,DS=()=>y.jsx(wS,{client:LS,children:y.jsxs(W1,{children:[y.jsx(Nw,{}),y.jsx(ix,{}),y.jsx(AS,{})]})});Nh(document.getElementById("root")).render(y.jsx("div",{className:"min-h-screen bg-gradient-secondary",children:y.jsx("div",{className:"container mx-auto px-4 py-16",children:y.jsx("div",{className:"bg-muted/30 flex items-center justify-center p-4 mt-2",children:y.jsx(DS,{})})})}));