@stackloop/ui 4.2.1 → 4.2.2

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 (157) hide show
  1. package/dist/FlagIcon.d.ts +7 -0
  2. package/dist/Toast.d.ts +2 -2
  3. package/dist/assets/ad-B18i8NGa.svg +150 -0
  4. package/dist/assets/ad-Blhdm5jl.svg +148 -0
  5. package/dist/assets/af-Bc2fqp73.svg +81 -0
  6. package/dist/assets/af-C77Rf6cE.svg +81 -0
  7. package/dist/assets/arab-C-KgnQEz.svg +109 -0
  8. package/dist/assets/arab-C4CYPgyC.svg +109 -0
  9. package/dist/assets/as-BTEVCXG-.svg +73 -0
  10. package/dist/assets/as-Dekqy8Of.svg +72 -0
  11. package/dist/assets/aw-CLCX8uk5.svg +186 -0
  12. package/dist/assets/aw-W0PWLK5p.svg +186 -0
  13. package/dist/assets/bm-BeYgB2z9.svg +97 -0
  14. package/dist/assets/bm-DvNWWcPM.svg +97 -0
  15. package/dist/assets/bn-B6T3O78g.svg +36 -0
  16. package/dist/assets/bn-CPQcA8Ol.svg +36 -0
  17. package/dist/assets/bo-CcUiMqkJ.svg +673 -0
  18. package/dist/assets/bo-Dry0C6UA.svg +674 -0
  19. package/dist/assets/br-Cu5YU29T.svg +45 -0
  20. package/dist/assets/br-Dr5rMAMb.svg +45 -0
  21. package/dist/assets/bt-BTo4qm10.svg +89 -0
  22. package/dist/assets/bt-SxWnbWW0.svg +89 -0
  23. package/dist/assets/bz-BCKHR4_q.svg +145 -0
  24. package/dist/assets/bz-CoBdB-p8.svg +145 -0
  25. package/dist/assets/cy-DJKnEFYW.svg +6 -0
  26. package/dist/assets/cy-bZuP8hmf.svg +6 -0
  27. package/dist/assets/dg-CJPJrjiZ.svg +130 -0
  28. package/dist/assets/dg-DqkWLbnk.svg +130 -0
  29. package/dist/assets/dm-Cbhezfe1.svg +152 -0
  30. package/dist/assets/dm-DPPHwW2M.svg +152 -0
  31. package/dist/assets/do-B86d445t.svg +121 -0
  32. package/dist/assets/do-DeRnbj4d.svg +122 -0
  33. package/dist/assets/eac-CwGQsyAM.svg +48 -0
  34. package/dist/assets/eac-h4QKADRE.svg +48 -0
  35. package/dist/assets/ec-CaVOFQ3t.svg +138 -0
  36. package/dist/assets/ec-cwfBJlvF.svg +138 -0
  37. package/dist/assets/eg-DwOkwyQ0.svg +38 -0
  38. package/dist/assets/eg-YC70hswZ.svg +38 -0
  39. package/dist/assets/es-BuSGTZm_.svg +547 -0
  40. package/dist/assets/es-d5m8M5h8.svg +544 -0
  41. package/dist/assets/es-ga-D9xG2hYr.svg +187 -0
  42. package/dist/assets/es-ga-DXhVZ333.svg +187 -0
  43. package/dist/assets/fj-DEAVMg38.svg +120 -0
  44. package/dist/assets/fj-u3dAPoew.svg +123 -0
  45. package/dist/assets/fk-B-RvQ4Hz.svg +89 -0
  46. package/dist/assets/fk-nuUF_Ak3.svg +90 -0
  47. package/dist/assets/gb-nir-D4gikpNq.svg +132 -0
  48. package/dist/assets/gb-nir-vEp1ZXy6.svg +131 -0
  49. package/dist/assets/gb-wls-Bxz9hxvX.svg +9 -0
  50. package/dist/assets/gb-wls-CK0XlKT-.svg +9 -0
  51. package/dist/assets/gq-CPnMO1hT.svg +23 -0
  52. package/dist/assets/gq-Cag8QTk2.svg +23 -0
  53. package/dist/assets/gs-DOgYbHsY.svg +132 -0
  54. package/dist/assets/gs-DiiNa0F5.svg +133 -0
  55. package/dist/assets/gt-BLpn5qMn.svg +204 -0
  56. package/dist/assets/gt-CJo5DI-7.svg +204 -0
  57. package/dist/assets/gu-Di1JYREk.svg +19 -0
  58. package/dist/assets/gu-SbvrH0uZ.svg +19 -0
  59. package/dist/assets/hr-BpiVVBoV.svg +56 -0
  60. package/dist/assets/hr-fzLfaANM.svg +58 -0
  61. package/dist/assets/ht-DIMg4gti.svg +116 -0
  62. package/dist/assets/ht-pweRl6ZP.svg +116 -0
  63. package/dist/assets/im--VPIqfkF.svg +36 -0
  64. package/dist/assets/im-Dd9p-0-T.svg +36 -0
  65. package/dist/assets/index-BRksxcuw.css +1 -0
  66. package/dist/assets/index-D_6GYxlS.js +17 -0
  67. package/dist/assets/io-13HOfeJD.svg +130 -0
  68. package/dist/assets/io-BImhNBcd.svg +130 -0
  69. package/dist/assets/ir-Q03Mij62.svg +219 -0
  70. package/dist/assets/ir-cCIgaNf6.svg +219 -0
  71. package/dist/assets/je-DyWbhIiC.svg +62 -0
  72. package/dist/assets/je-vXe0Dr49.svg +62 -0
  73. package/dist/assets/kg-B0FsxZiL.svg +4 -0
  74. package/dist/assets/kg-CjfitMyT.svg +4 -0
  75. package/dist/assets/kh-BBvObpUS.svg +61 -0
  76. package/dist/assets/kh-BeWfuE30.svg +61 -0
  77. package/dist/assets/ki-fuIMkEYQ.svg +36 -0
  78. package/dist/assets/ki-p_fAQGbS.svg +36 -0
  79. package/dist/assets/ky-BqaZHuhf.svg +103 -0
  80. package/dist/assets/ky-Dpsu1myA.svg +103 -0
  81. package/dist/assets/kz-CwKXYZ8s.svg +36 -0
  82. package/dist/assets/kz-Dkyx6q-p.svg +36 -0
  83. package/dist/assets/li-CHdhvNcr.svg +43 -0
  84. package/dist/assets/li-CMlf0YU8.svg +43 -0
  85. package/dist/assets/lk-DSQoDxn_.svg +22 -0
  86. package/dist/assets/lk-DUkgV9Tq.svg +22 -0
  87. package/dist/assets/md-DRlxvNwm.svg +70 -0
  88. package/dist/assets/md-DTi94M3M.svg +71 -0
  89. package/dist/assets/me-CfGorN3b.svg +118 -0
  90. package/dist/assets/me-Cv4Gwqah.svg +116 -0
  91. package/dist/assets/mp-CrOApEqW.svg +86 -0
  92. package/dist/assets/mp-CuaQmCLf.svg +86 -0
  93. package/dist/assets/ms-B-w7hFKu.svg +25 -0
  94. package/dist/assets/ms-DxciGbUu.svg +29 -0
  95. package/dist/assets/mt-YDa8zgzO.svg +56 -0
  96. package/dist/assets/mt-YqzKx9xl.svg +58 -0
  97. package/dist/assets/mx-Cc8Ccfe8.svg +382 -0
  98. package/dist/assets/mx-CvCwYHGF.svg +377 -0
  99. package/dist/assets/nf-DGrQb42O.svg +11 -0
  100. package/dist/assets/nf-Dl00mlk2.svg +9 -0
  101. package/dist/assets/ni-BX2WCaNt.svg +129 -0
  102. package/dist/assets/ni-CcFCSQxm.svg +129 -0
  103. package/dist/assets/om-DcqxRdQL.svg +115 -0
  104. package/dist/assets/om-nN8zP2Bu.svg +115 -0
  105. package/dist/assets/pn-BPAlH32D.svg +53 -0
  106. package/dist/assets/pn-DgxdtieE.svg +53 -0
  107. package/dist/assets/pt-BTevY6N2.svg +57 -0
  108. package/dist/assets/pt-DZ2ADgIR.svg +57 -0
  109. package/dist/assets/py-BKi5dxWt.svg +156 -0
  110. package/dist/assets/py-mNzh0mZC.svg +157 -0
  111. package/dist/assets/rs-BfwKwXtn.svg +292 -0
  112. package/dist/assets/rs-CnTO3ehk.svg +296 -0
  113. package/dist/assets/sa-Dh79zbT9.svg +25 -0
  114. package/dist/assets/sa-DnlyVVKx.svg +25 -0
  115. package/dist/assets/sh-ac-D-aE2xRW.svg +690 -0
  116. package/dist/assets/sh-ac-FjwY7RYr.svg +689 -0
  117. package/dist/assets/sh-hl-CgxUDvtv.svg +164 -0
  118. package/dist/assets/sh-hl-CqtQPzWZ.svg +164 -0
  119. package/dist/assets/sh-ta-BFo5zkKU.svg +76 -0
  120. package/dist/assets/sh-ta-CPJublpi.svg +76 -0
  121. package/dist/assets/sm-BKrUHzrq.svg +73 -0
  122. package/dist/assets/sm-DGBIRFB_.svg +75 -0
  123. package/dist/assets/sv-CJIHhYwF.svg +593 -0
  124. package/dist/assets/sv-RZ39q5hO.svg +593 -0
  125. package/dist/assets/sx-RKKs0ph6.svg +56 -0
  126. package/dist/assets/sx-nDhIaDNb.svg +56 -0
  127. package/dist/assets/sz-D39eIL5d.svg +34 -0
  128. package/dist/assets/sz-qxMwa2gs.svg +34 -0
  129. package/dist/assets/tc-CJHJmJj1.svg +50 -0
  130. package/dist/assets/tc-dtelpZmc.svg +50 -0
  131. package/dist/assets/tm-C_WSgUcv.svg +204 -0
  132. package/dist/assets/tm-DGBJvQay.svg +205 -0
  133. package/dist/assets/un-Bqg4Cbbh.svg +16 -0
  134. package/dist/assets/un-DabL4p35.svg +16 -0
  135. package/dist/assets/va-B9-hqIE-.svg +190 -0
  136. package/dist/assets/va-s7kyhqIM.svg +190 -0
  137. package/dist/assets/vg-C7xY6pic.svg +59 -0
  138. package/dist/assets/vg-ClZ-0KpG.svg +59 -0
  139. package/dist/assets/vi-BC_zcciE.svg +28 -0
  140. package/dist/assets/vi-BSdsyIxY.svg +28 -0
  141. package/dist/assets/xk-Bj15g7cp.svg +5 -0
  142. package/dist/assets/xk-Cdz2uTvR.svg +5 -0
  143. package/dist/assets/zm-BmsW91ne.svg +27 -0
  144. package/dist/assets/zm-D8B-0kdx.svg +27 -0
  145. package/dist/assets/zw-CSuuaw9K.svg +21 -0
  146. package/dist/assets/zw-U0m7oJ5e.svg +21 -0
  147. package/dist/favicon.ico +0 -0
  148. package/dist/index.cjs +1 -1
  149. package/dist/index.cjs.map +1 -1
  150. package/dist/index.html +4 -4
  151. package/dist/index.js +1103 -1081
  152. package/dist/index.js.map +1 -1
  153. package/dist/stackloop-ui.css +1 -1
  154. package/package.json +2 -1
  155. package/dist/assets/index-B5bbIoAj.js +0 -17
  156. package/dist/assets/index-s9Mdf6_E.css +0 -1
  157. package/dist/vite.svg +0 -1
@@ -1,17 +0,0 @@
1
- (function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))o(d);new MutationObserver(d=>{for(const h of d)if(h.type==="childList")for(const f of h.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function l(d){const h={};return d.integrity&&(h.integrity=d.integrity),d.referrerPolicy&&(h.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?h.credentials="include":d.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(d){if(d.ep)return;d.ep=!0;const h=l(d);fetch(d.href,h)}})();function Wx(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var pc={exports:{}},Fs={};var Pp;function $x(){if(Pp)return Fs;Pp=1;var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function l(o,d,h){var f=null;if(h!==void 0&&(f=""+h),d.key!==void 0&&(f=""+d.key),"key"in d){h={};for(var g in d)g!=="key"&&(h[g]=d[g])}else h=d;return d=h.ref,{$$typeof:a,type:o,key:f,ref:d!==void 0?d:null,props:h}}return Fs.Fragment=s,Fs.jsx=l,Fs.jsxs=l,Fs}var Fp;function Ix(){return Fp||(Fp=1,pc.exports=$x()),pc.exports}var c=Ix(),yc={exports:{}},Se={};var Wp;function e1(){if(Wp)return Se;Wp=1;var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),f=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),S=Symbol.iterator;function N(C){return C===null||typeof C!="object"?null:(C=S&&C[S]||C["@@iterator"],typeof C=="function"?C:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V=Object.assign,H={};function R(C,B,I){this.props=C,this.context=B,this.refs=H,this.updater=I||_}R.prototype.isReactComponent={},R.prototype.setState=function(C,B){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,B,"setState")},R.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function K(){}K.prototype=R.prototype;function Y(C,B,I){this.props=C,this.context=B,this.refs=H,this.updater=I||_}var $=Y.prototype=new K;$.constructor=Y,V($,R.prototype),$.isPureReactComponent=!0;var Q=Array.isArray;function W(){}var X={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function te(C,B,I){var ae=I.ref;return{$$typeof:a,type:C,key:B,ref:ae!==void 0?ae:null,props:I}}function J(C,B){return te(C.type,B,C.props)}function U(C){return typeof C=="object"&&C!==null&&C.$$typeof===a}function ie(C){var B={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(I){return B[I]})}var le=/\/+/g;function re(C,B){return typeof C=="object"&&C!==null&&C.key!=null?ie(""+C.key):B.toString(36)}function ee(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(W,W):(C.status="pending",C.then(function(B){C.status==="pending"&&(C.status="fulfilled",C.value=B)},function(B){C.status==="pending"&&(C.status="rejected",C.reason=B)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function D(C,B,I,ae,pe){var ve=typeof C;(ve==="undefined"||ve==="boolean")&&(C=null);var me=!1;if(C===null)me=!0;else switch(ve){case"bigint":case"string":case"number":me=!0;break;case"object":switch(C.$$typeof){case a:case s:me=!0;break;case b:return me=C._init,D(me(C._payload),B,I,ae,pe)}}if(me)return pe=pe(C),me=ae===""?"."+re(C,0):ae,Q(pe)?(I="",me!=null&&(I=me.replace(le,"$&/")+"/"),D(pe,B,I,"",function(we){return we})):pe!=null&&(U(pe)&&(pe=J(pe,I+(pe.key==null||C&&C.key===pe.key?"":(""+pe.key).replace(le,"$&/")+"/")+me)),B.push(pe)),1;me=0;var Xe=ae===""?".":ae+":";if(Q(C))for(var Te=0;Te<C.length;Te++)ae=C[Te],ve=Xe+re(ae,Te),me+=D(ae,B,I,ve,pe);else if(Te=N(C),typeof Te=="function")for(C=Te.call(C),Te=0;!(ae=C.next()).done;)ae=ae.value,ve=Xe+re(ae,Te++),me+=D(ae,B,I,ve,pe);else if(ve==="object"){if(typeof C.then=="function")return D(ee(C),B,I,ae,pe);throw B=String(C),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return me}function G(C,B,I){if(C==null)return C;var ae=[],pe=0;return D(C,ae,"","",function(ve){return B.call(I,ve,pe++)}),ae}function M(C){if(C._status===-1){var B=C._result;B=B(),B.then(function(I){(C._status===0||C._status===-1)&&(C._status=1,C._result=I)},function(I){(C._status===0||C._status===-1)&&(C._status=2,C._result=I)}),C._status===-1&&(C._status=0,C._result=B)}if(C._status===1)return C._result.default;throw C._result}var oe=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},se={map:G,forEach:function(C,B,I){G(C,function(){B.apply(this,arguments)},I)},count:function(C){var B=0;return G(C,function(){B++}),B},toArray:function(C){return G(C,function(B){return B})||[]},only:function(C){if(!U(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return Se.Activity=x,Se.Children=se,Se.Component=R,Se.Fragment=l,Se.Profiler=d,Se.PureComponent=Y,Se.StrictMode=o,Se.Suspense=y,Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,Se.__COMPILER_RUNTIME={__proto__:null,c:function(C){return X.H.useMemoCache(C)}},Se.cache=function(C){return function(){return C.apply(null,arguments)}},Se.cacheSignal=function(){return null},Se.cloneElement=function(C,B,I){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var ae=V({},C.props),pe=C.key;if(B!=null)for(ve in B.key!==void 0&&(pe=""+B.key),B)!E.call(B,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&B.ref===void 0||(ae[ve]=B[ve]);var ve=arguments.length-2;if(ve===1)ae.children=I;else if(1<ve){for(var me=Array(ve),Xe=0;Xe<ve;Xe++)me[Xe]=arguments[Xe+2];ae.children=me}return te(C.type,pe,ae)},Se.createContext=function(C){return C={$$typeof:f,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:h,_context:C},C},Se.createElement=function(C,B,I){var ae,pe={},ve=null;if(B!=null)for(ae in B.key!==void 0&&(ve=""+B.key),B)E.call(B,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(pe[ae]=B[ae]);var me=arguments.length-2;if(me===1)pe.children=I;else if(1<me){for(var Xe=Array(me),Te=0;Te<me;Te++)Xe[Te]=arguments[Te+2];pe.children=Xe}if(C&&C.defaultProps)for(ae in me=C.defaultProps,me)pe[ae]===void 0&&(pe[ae]=me[ae]);return te(C,ve,pe)},Se.createRef=function(){return{current:null}},Se.forwardRef=function(C){return{$$typeof:g,render:C}},Se.isValidElement=U,Se.lazy=function(C){return{$$typeof:b,_payload:{_status:-1,_result:C},_init:M}},Se.memo=function(C,B){return{$$typeof:p,type:C,compare:B===void 0?null:B}},Se.startTransition=function(C){var B=X.T,I={};X.T=I;try{var ae=C(),pe=X.S;pe!==null&&pe(I,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(W,oe)}catch(ve){oe(ve)}finally{B!==null&&I.types!==null&&(B.types=I.types),X.T=B}},Se.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},Se.use=function(C){return X.H.use(C)},Se.useActionState=function(C,B,I){return X.H.useActionState(C,B,I)},Se.useCallback=function(C,B){return X.H.useCallback(C,B)},Se.useContext=function(C){return X.H.useContext(C)},Se.useDebugValue=function(){},Se.useDeferredValue=function(C,B){return X.H.useDeferredValue(C,B)},Se.useEffect=function(C,B){return X.H.useEffect(C,B)},Se.useEffectEvent=function(C){return X.H.useEffectEvent(C)},Se.useId=function(){return X.H.useId()},Se.useImperativeHandle=function(C,B,I){return X.H.useImperativeHandle(C,B,I)},Se.useInsertionEffect=function(C,B){return X.H.useInsertionEffect(C,B)},Se.useLayoutEffect=function(C,B){return X.H.useLayoutEffect(C,B)},Se.useMemo=function(C,B){return X.H.useMemo(C,B)},Se.useOptimistic=function(C,B){return X.H.useOptimistic(C,B)},Se.useReducer=function(C,B,I){return X.H.useReducer(C,B,I)},Se.useRef=function(C){return X.H.useRef(C)},Se.useState=function(C){return X.H.useState(C)},Se.useSyncExternalStore=function(C,B,I){return X.H.useSyncExternalStore(C,B,I)},Se.useTransition=function(){return X.H.useTransition()},Se.version="19.2.1",Se}var $p;function md(){return $p||($p=1,yc.exports=e1()),yc.exports}var j=md();const pd=Wx(j);var gc={exports:{}},Ws={},bc={exports:{}},vc={};var Ip;function t1(){return Ip||(Ip=1,(function(a){function s(D,G){var M=D.length;D.push(G);e:for(;0<M;){var oe=M-1>>>1,se=D[oe];if(0<d(se,G))D[oe]=G,D[M]=se,M=oe;else break e}}function l(D){return D.length===0?null:D[0]}function o(D){if(D.length===0)return null;var G=D[0],M=D.pop();if(M!==G){D[0]=M;e:for(var oe=0,se=D.length,C=se>>>1;oe<C;){var B=2*(oe+1)-1,I=D[B],ae=B+1,pe=D[ae];if(0>d(I,M))ae<se&&0>d(pe,I)?(D[oe]=pe,D[ae]=M,oe=ae):(D[oe]=I,D[B]=M,oe=B);else if(ae<se&&0>d(pe,M))D[oe]=pe,D[ae]=M,oe=ae;else break e}}return G}function d(D,G){var M=D.sortIndex-G.sortIndex;return M!==0?M:D.id-G.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;a.unstable_now=function(){return h.now()}}else{var f=Date,g=f.now();a.unstable_now=function(){return f.now()-g}}var y=[],p=[],b=1,x=null,S=3,N=!1,_=!1,V=!1,H=!1,R=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function $(D){for(var G=l(p);G!==null;){if(G.callback===null)o(p);else if(G.startTime<=D)o(p),G.sortIndex=G.expirationTime,s(y,G);else break;G=l(p)}}function Q(D){if(V=!1,$(D),!_)if(l(y)!==null)_=!0,W||(W=!0,ie());else{var G=l(p);G!==null&&ee(Q,G.startTime-D)}}var W=!1,X=-1,E=5,te=-1;function J(){return H?!0:!(a.unstable_now()-te<E)}function U(){if(H=!1,W){var D=a.unstable_now();te=D;var G=!0;try{e:{_=!1,V&&(V=!1,K(X),X=-1),N=!0;var M=S;try{t:{for($(D),x=l(y);x!==null&&!(x.expirationTime>D&&J());){var oe=x.callback;if(typeof oe=="function"){x.callback=null,S=x.priorityLevel;var se=oe(x.expirationTime<=D);if(D=a.unstable_now(),typeof se=="function"){x.callback=se,$(D),G=!0;break t}x===l(y)&&o(y),$(D)}else o(y);x=l(y)}if(x!==null)G=!0;else{var C=l(p);C!==null&&ee(Q,C.startTime-D),G=!1}}break e}finally{x=null,S=M,N=!1}G=void 0}}finally{G?ie():W=!1}}}var ie;if(typeof Y=="function")ie=function(){Y(U)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,re=le.port2;le.port1.onmessage=U,ie=function(){re.postMessage(null)}}else ie=function(){R(U,0)};function ee(D,G){X=R(function(){D(a.unstable_now())},G)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(D){D.callback=null},a.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<D?Math.floor(1e3/D):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(D){switch(S){case 1:case 2:case 3:var G=3;break;default:G=S}var M=S;S=G;try{return D()}finally{S=M}},a.unstable_requestPaint=function(){H=!0},a.unstable_runWithPriority=function(D,G){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var M=S;S=D;try{return G()}finally{S=M}},a.unstable_scheduleCallback=function(D,G,M){var oe=a.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?oe+M:oe):M=oe,D){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=M+se,D={id:b++,callback:G,priorityLevel:D,startTime:M,expirationTime:se,sortIndex:-1},M>oe?(D.sortIndex=M,s(p,D),l(y)===null&&D===l(p)&&(V?(K(X),X=-1):V=!0,ee(Q,M-oe))):(D.sortIndex=se,s(y,D),_||N||(_=!0,W||(W=!0,ie()))),D},a.unstable_shouldYield=J,a.unstable_wrapCallback=function(D){var G=S;return function(){var M=S;S=G;try{return D.apply(this,arguments)}finally{S=M}}}})(vc)),vc}var ey;function n1(){return ey||(ey=1,bc.exports=t1()),bc.exports}var xc={exports:{}},Nt={};var ty;function a1(){if(ty)return Nt;ty=1;var a=md();function s(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var o={d:{f:l,r:function(){throw Error(s(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},d=Symbol.for("react.portal");function h(y,p,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:x==null?null:""+x,children:y,containerInfo:p,implementation:b}}var f=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Nt.createPortal=function(y,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(s(299));return h(y,p,null,b)},Nt.flushSync=function(y){var p=f.T,b=o.p;try{if(f.T=null,o.p=2,y)return y()}finally{f.T=p,o.p=b,o.d.f()}},Nt.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(y,p))},Nt.prefetchDNS=function(y){typeof y=="string"&&o.d.D(y)},Nt.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var b=p.as,x=g(b,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,N=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?o.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:S,fetchPriority:N}):b==="script"&&o.d.X(y,{crossOrigin:x,integrity:S,fetchPriority:N,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Nt.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=g(p.as,p.crossOrigin);o.d.M(y,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(y)},Nt.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,x=g(b,p.crossOrigin);o.d.L(y,b,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Nt.preloadModule=function(y,p){if(typeof y=="string")if(p){var b=g(p.as,p.crossOrigin);o.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(y)},Nt.requestFormReset=function(y){o.d.r(y)},Nt.unstable_batchedUpdates=function(y,p){return y(p)},Nt.useFormState=function(y,p,b){return f.H.useFormState(y,p,b)},Nt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Nt.version="19.2.1",Nt}var ny;function Ng(){if(ny)return xc.exports;ny=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(s){console.error(s)}}return a(),xc.exports=a1(),xc.exports}var ay;function i1(){if(ay)return Ws;ay=1;var a=n1(),s=md(),l=Ng();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function f(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 g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(h(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(r===null)break;var u=r.alternate;if(u===null){if(i=r.return,i!==null){n=i;continue}break}if(r.child===u.child){for(u=r.child;u;){if(u===n)return y(r),e;if(u===i)return y(r),t;u=u.sibling}throw Error(o(188))}if(n.return!==i.return)n=r,i=u;else{for(var m=!1,v=r.child;v;){if(v===n){m=!0,n=r,i=u;break}if(v===i){m=!0,i=r,n=u;break}v=v.sibling}if(!m){for(v=u.child;v;){if(v===n){m=!0,n=u,i=r;break}if(v===i){m=!0,i=u,n=r;break}v=v.sibling}if(!m)throw Error(o(189))}}if(n.alternate!==i)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,S=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),J=Symbol.for("react.memo_cache_sentinel"),U=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=U&&e[U]||e["@@iterator"],typeof e=="function"?e:null)}var le=Symbol.for("react.client.reference");function re(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case V:return"Fragment";case R:return"Profiler";case H:return"StrictMode";case Q:return"Suspense";case W:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case Y:return e.displayName||"Context";case K:return(e._context.displayName||"Context")+".Consumer";case $:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return t=e.displayName||null,t!==null?t:re(e.type)||"Memo";case E:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}var ee=Array.isArray,D=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M={pending:!1,data:null,method:null,action:null},oe=[],se=-1;function C(e){return{current:e}}function B(e){0>se||(e.current=oe[se],oe[se]=null,se--)}function I(e,t){se++,oe[se]=e.current,e.current=t}var ae=C(null),pe=C(null),ve=C(null),me=C(null);function Xe(e,t){switch(I(ve,t),I(pe,e),I(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?bp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=bp(t),e=vp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(ae),I(ae,e)}function Te(){B(ae),B(pe),B(ve)}function we(e){e.memoizedState!==null&&I(me,e);var t=ae.current,n=vp(t,e.type);t!==n&&(I(pe,e),I(ae,n))}function Ie(e){pe.current===e&&(B(ae),B(pe)),me.current===e&&(B(me),Qs._currentValue=M)}var et,mn;function ut(e){if(et===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);et=t&&t[1]||"",mn=-1<n.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+et+e+mn}var Mt=!1;function Rt(e,t){if(!e||Mt)return"";Mt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(L){var k=L}Reflect.construct(e,[],P)}else{try{P.call()}catch(L){k=L}e.call(P.prototype)}}else{try{throw Error()}catch(L){k=L}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(L){if(L&&k&&typeof L.stack=="string")return[L.stack,k.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=i.DetermineComponentFrameRoot(),m=u[0],v=u[1];if(m&&v){var w=m.split(`
4
- `),O=v.split(`
5
- `);for(r=i=0;i<w.length&&!w[i].includes("DetermineComponentFrameRoot");)i++;for(;r<O.length&&!O[r].includes("DetermineComponentFrameRoot");)r++;if(i===w.length||r===O.length)for(i=w.length-1,r=O.length-1;1<=i&&0<=r&&w[i]!==O[r];)r--;for(;1<=i&&0<=r;i--,r--)if(w[i]!==O[r]){if(i!==1||r!==1)do if(i--,r--,0>r||w[i]!==O[r]){var q=`
6
- `+w[i].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=i&&0<=r);break}}}finally{Mt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ut(n):""}function In(e,t){switch(e.tag){case 26:case 27:case 5:return ut(e.type);case 16:return ut("Lazy");case 13:return e.child!==t&&t!==null?ut("Suspense Fallback"):ut("Suspense");case 19:return ut("SuspenseList");case 0:case 15:return Rt(e.type,!1);case 11:return Rt(e.type.render,!1);case 1:return Rt(e.type,!0);case 31:return ut("Activity");default:return""}}function si(e){try{var t="",n=null;do t+=In(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
7
- Error generating stack: `+i.message+`
8
- `+i.stack}}var ne=Object.prototype.hasOwnProperty,ge=a.unstable_scheduleCallback,ze=a.unstable_cancelCallback,pn=a.unstable_shouldYield,Wt=a.unstable_requestPaint,tt=a.unstable_now,zt=a.unstable_getCurrentPriorityLevel,ea=a.unstable_ImmediatePriority,En=a.unstable_UserBlockingPriority,pl=a.unstable_NormalPriority,zb=a.unstable_LowPriority,Wd=a.unstable_IdlePriority,Ob=a.log,Vb=a.unstable_setDisableYieldValue,is=null,Gt=null;function ta(e){if(typeof Ob=="function"&&Vb(e),Gt&&typeof Gt.setStrictMode=="function")try{Gt.setStrictMode(is,e)}catch{}}var Yt=Math.clz32?Math.clz32:Bb,_b=Math.log,kb=Math.LN2;function Bb(e){return e>>>=0,e===0?32:31-(_b(e)/kb|0)|0}var yl=256,gl=262144,bl=4194304;function Ra(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function vl(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var r=0,u=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var v=i&134217727;return v!==0?(i=v&~u,i!==0?r=Ra(i):(m&=v,m!==0?r=Ra(m):n||(n=v&~e,n!==0&&(r=Ra(n))))):(v=i&~u,v!==0?r=Ra(v):m!==0?r=Ra(m):n||(n=i&~e,n!==0&&(r=Ra(n)))),r===0?0:t!==0&&t!==r&&(t&u)===0&&(u=r&-r,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:r}function ss(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Lb(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $d(){var e=bl;return bl<<=1,(bl&62914560)===0&&(bl=4194304),e}function ar(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ls(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ub(e,t,n,i,r,u){var m=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,w=e.expirationTimes,O=e.hiddenUpdates;for(n=m&~n;0<n;){var q=31-Yt(n),P=1<<q;v[q]=0,w[q]=-1;var k=O[q];if(k!==null)for(O[q]=null,q=0;q<k.length;q++){var L=k[q];L!==null&&(L.lane&=-536870913)}n&=~P}i!==0&&Id(e,i,0),u!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=u&~(m&~t))}function Id(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Yt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function ef(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Yt(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}function tf(e,t){var n=t&-t;return n=(n&42)!==0?1:ir(n),(n&(e.suspendedLanes|t))!==0?0:n}function ir(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function sr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function nf(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:Yp(e.type))}function af(e,t){var n=G.p;try{return G.p=e,t()}finally{G.p=n}}var na=Math.random().toString(36).slice(2),pt="__reactFiber$"+na,Ot="__reactProps$"+na,li="__reactContainer$"+na,lr="__reactEvents$"+na,Hb="__reactListeners$"+na,Gb="__reactHandles$"+na,sf="__reactResources$"+na,os="__reactMarker$"+na;function or(e){delete e[pt],delete e[Ot],delete e[lr],delete e[Hb],delete e[Gb]}function oi(e){var t=e[pt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[li]||n[pt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Np(e);e!==null;){if(n=e[pt])return n;e=Np(e)}return t}e=n,n=e.parentNode}return null}function ri(e){if(e=e[pt]||e[li]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function rs(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function ui(e){var t=e[sf];return t||(t=e[sf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ht(e){e[os]=!0}var lf=new Set,of={};function za(e,t){ci(e,t),ci(e+"Capture",t)}function ci(e,t){for(of[e]=t,e=0;e<t.length;e++)lf.add(t[e])}var Yb=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),rf={},uf={};function qb(e){return ne.call(uf,e)?!0:ne.call(rf,e)?!1:Yb.test(e)?uf[e]=!0:(rf[e]=!0,!1)}function xl(e,t,n){if(qb(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Sl(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Dn(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function $t(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function cf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xb(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var r=i.get,u=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(m){n=""+m,u.call(this,m)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function rr(e){if(!e._valueTracker){var t=cf(e)?"checked":"value";e._valueTracker=Xb(e,t,""+e[t])}}function df(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=cf(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Cl(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}}var Kb=/[\n"\\]/g;function It(e){return e.replace(Kb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ur(e,t,n,i,r,u,m,v){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+$t(t)):e.value!==""+$t(t)&&(e.value=""+$t(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?cr(e,m,$t(t)):n!=null?cr(e,m,$t(n)):i!=null&&e.removeAttribute("value"),r==null&&u!=null&&(e.defaultChecked=!!u),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+$t(v):e.removeAttribute("name")}function ff(e,t,n,i,r,u,m,v){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){rr(e);return}n=n!=null?""+$t(n):"",t=t!=null?""+$t(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}i=i??r,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=v?e.checked:!!i,e.defaultChecked=!!i,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),rr(e)}function cr(e,t,n){t==="number"&&Cl(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function di(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+$t(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,i&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function hf(e,t,n){if(t!=null&&(t=""+$t(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+$t(n):""}function mf(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(o(92));if(ee(i)){if(1<i.length)throw Error(o(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=$t(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),rr(e)}function fi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qb=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function pf(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||Qb.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function yf(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var r in t)i=t[r],t.hasOwnProperty(r)&&n[r]!==i&&pf(e,r,i)}else for(var u in t)t.hasOwnProperty(u)&&pf(e,u,t[u])}function dr(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Zb=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Jb=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function wl(e){return Jb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Rn(){}var fr=null;function hr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hi=null,mi=null;function gf(e){var t=ri(e);if(t&&(e=t.stateNode)){var n=e[Ot]||null;e:switch(e=t.stateNode,t.type){case"input":if(ur(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+It(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=i[Ot]||null;if(!r)throw Error(o(90));ur(i,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&df(i)}break e;case"textarea":hf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&di(e,!!n.multiple,t,!1)}}}var mr=!1;function bf(e,t,n){if(mr)return e(t,n);mr=!0;try{var i=e(t);return i}finally{if(mr=!1,(hi!==null||mi!==null)&&(co(),hi&&(t=hi,e=mi,mi=hi=null,gf(t),e)))for(t=0;t<e.length;t++)gf(e[t])}}function us(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Ot]||null;if(i===null)return null;n=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var zn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pr=!1;if(zn)try{var cs={};Object.defineProperty(cs,"passive",{get:function(){pr=!0}}),window.addEventListener("test",cs,cs),window.removeEventListener("test",cs,cs)}catch{pr=!1}var aa=null,yr=null,jl=null;function vf(){if(jl)return jl;var e,t=yr,n=t.length,i,r="value"in aa?aa.value:aa.textContent,u=r.length;for(e=0;e<n&&t[e]===r[e];e++);var m=n-e;for(i=1;i<=m&&t[n-i]===r[u-i];i++);return jl=r.slice(e,1<i?1-i:void 0)}function Tl(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 Nl(){return!0}function xf(){return!1}function Vt(e){function t(n,i,r,u,m){this._reactName=n,this._targetInst=r,this.type=i,this.nativeEvent=u,this.target=m,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(u):u[v]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Nl:xf,this.isPropagationStopped=xf,this}return x(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=Nl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Nl)},persist:function(){},isPersistent:Nl}),t}var Oa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Al=Vt(Oa),ds=x({},Oa,{view:0,detail:0}),Pb=Vt(ds),gr,br,fs,Ml=x({},ds,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xr,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!==fs&&(fs&&e.type==="mousemove"?(gr=e.screenX-fs.screenX,br=e.screenY-fs.screenY):br=gr=0,fs=e),gr)},movementY:function(e){return"movementY"in e?e.movementY:br}}),Sf=Vt(Ml),Fb=x({},Ml,{dataTransfer:0}),Wb=Vt(Fb),$b=x({},ds,{relatedTarget:0}),vr=Vt($b),Ib=x({},Oa,{animationName:0,elapsedTime:0,pseudoElement:0}),ev=Vt(Ib),tv=x({},Oa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),nv=Vt(tv),av=x({},Oa,{data:0}),Cf=Vt(av),iv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sv={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"},lv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ov(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lv[e])?!!t[e]:!1}function xr(){return ov}var rv=x({},ds,{key:function(e){if(e.key){var t=iv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Tl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xr,charCode:function(e){return e.type==="keypress"?Tl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Tl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),uv=Vt(rv),cv=x({},Ml,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wf=Vt(cv),dv=x({},ds,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xr}),fv=Vt(dv),hv=x({},Oa,{propertyName:0,elapsedTime:0,pseudoElement:0}),mv=Vt(hv),pv=x({},Ml,{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}),yv=Vt(pv),gv=x({},Oa,{newState:0,oldState:0}),bv=Vt(gv),vv=[9,13,27,32],Sr=zn&&"CompositionEvent"in window,hs=null;zn&&"documentMode"in document&&(hs=document.documentMode);var xv=zn&&"TextEvent"in window&&!hs,jf=zn&&(!Sr||hs&&8<hs&&11>=hs),Tf=" ",Nf=!1;function Af(e,t){switch(e){case"keyup":return vv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pi=!1;function Sv(e,t){switch(e){case"compositionend":return Mf(t);case"keypress":return t.which!==32?null:(Nf=!0,Tf);case"textInput":return e=t.data,e===Tf&&Nf?null:e;default:return null}}function Cv(e,t){if(pi)return e==="compositionend"||!Sr&&Af(e,t)?(e=vf(),jl=yr=aa=null,pi=!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 jf&&t.locale!=="ko"?null:t.data;default:return null}}var wv={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 Ef(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!wv[e.type]:t==="textarea"}function Df(e,t,n,i){hi?mi?mi.push(i):mi=[i]:hi=i,t=bo(t,"onChange"),0<t.length&&(n=new Al("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var ms=null,ps=null;function jv(e){fp(e,0)}function El(e){var t=rs(e);if(df(t))return e}function Rf(e,t){if(e==="change")return t}var zf=!1;if(zn){var Cr;if(zn){var wr="oninput"in document;if(!wr){var Of=document.createElement("div");Of.setAttribute("oninput","return;"),wr=typeof Of.oninput=="function"}Cr=wr}else Cr=!1;zf=Cr&&(!document.documentMode||9<document.documentMode)}function Vf(){ms&&(ms.detachEvent("onpropertychange",_f),ps=ms=null)}function _f(e){if(e.propertyName==="value"&&El(ps)){var t=[];Df(t,ps,e,hr(e)),bf(jv,t)}}function Tv(e,t,n){e==="focusin"?(Vf(),ms=t,ps=n,ms.attachEvent("onpropertychange",_f)):e==="focusout"&&Vf()}function Nv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return El(ps)}function Av(e,t){if(e==="click")return El(t)}function Mv(e,t){if(e==="input"||e==="change")return El(t)}function Ev(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qt=typeof Object.is=="function"?Object.is:Ev;function ys(e,t){if(qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!ne.call(t,r)||!qt(e[r],t[r]))return!1}return!0}function kf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bf(e,t){var n=kf(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=kf(n)}}function Lf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Uf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Cl(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Cl(e.document)}return t}function jr(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")}var Dv=zn&&"documentMode"in document&&11>=document.documentMode,yi=null,Tr=null,gs=null,Nr=!1;function Hf(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nr||yi==null||yi!==Cl(i)||(i=yi,"selectionStart"in i&&jr(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),gs&&ys(gs,i)||(gs=i,i=bo(Tr,"onSelect"),0<i.length&&(t=new Al("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=yi)))}function Va(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var gi={animationend:Va("Animation","AnimationEnd"),animationiteration:Va("Animation","AnimationIteration"),animationstart:Va("Animation","AnimationStart"),transitionrun:Va("Transition","TransitionRun"),transitionstart:Va("Transition","TransitionStart"),transitioncancel:Va("Transition","TransitionCancel"),transitionend:Va("Transition","TransitionEnd")},Ar={},Gf={};zn&&(Gf=document.createElement("div").style,"AnimationEvent"in window||(delete gi.animationend.animation,delete gi.animationiteration.animation,delete gi.animationstart.animation),"TransitionEvent"in window||delete gi.transitionend.transition);function _a(e){if(Ar[e])return Ar[e];if(!gi[e])return e;var t=gi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Gf)return Ar[e]=t[n];return e}var Yf=_a("animationend"),qf=_a("animationiteration"),Xf=_a("animationstart"),Rv=_a("transitionrun"),zv=_a("transitionstart"),Ov=_a("transitioncancel"),Kf=_a("transitionend"),Qf=new Map,Mr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Mr.push("scrollEnd");function yn(e,t){Qf.set(e,t),za(t,[e])}var Dl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},en=[],bi=0,Er=0;function Rl(){for(var e=bi,t=Er=bi=0;t<e;){var n=en[t];en[t++]=null;var i=en[t];en[t++]=null;var r=en[t];en[t++]=null;var u=en[t];if(en[t++]=null,i!==null&&r!==null){var m=i.pending;m===null?r.next=r:(r.next=m.next,m.next=r),i.pending=r}u!==0&&Zf(n,r,u)}}function zl(e,t,n,i){en[bi++]=e,en[bi++]=t,en[bi++]=n,en[bi++]=i,Er|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Dr(e,t,n,i){return zl(e,t,n,i),Ol(e)}function ka(e,t){return zl(e,null,null,t),Ol(e)}function Zf(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var r=!1,u=e.return;u!==null;)u.childLanes|=n,i=u.alternate,i!==null&&(i.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(r=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,r&&t!==null&&(r=31-Yt(n),e=u.hiddenUpdates,i=e[r],i===null?e[r]=[t]:i.push(t),t.lane=n|536870912),u):null}function Ol(e){if(50<Us)throw Us=0,Uu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var vi={};function Vv(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xt(e,t,n,i){return new Vv(e,t,n,i)}function Rr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function On(e,t){var n=e.alternate;return n===null?(n=Xt(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&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Jf(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Vl(e,t,n,i,r,u){var m=0;if(i=e,typeof e=="function")Rr(e)&&(m=1);else if(typeof e=="string")m=Ux(e,n,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=Xt(31,n,t,r),e.elementType=te,e.lanes=u,e;case V:return Ba(n.children,r,u,t);case H:m=8,r|=24;break;case R:return e=Xt(12,n,t,r|2),e.elementType=R,e.lanes=u,e;case Q:return e=Xt(13,n,t,r),e.elementType=Q,e.lanes=u,e;case W:return e=Xt(19,n,t,r),e.elementType=W,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:m=10;break e;case K:m=9;break e;case $:m=11;break e;case X:m=14;break e;case E:m=16,i=null;break e}m=29,n=Error(o(130,e===null?"null":typeof e,"")),i=null}return t=Xt(m,n,t,r),t.elementType=e,t.type=i,t.lanes=u,t}function Ba(e,t,n,i){return e=Xt(7,e,i,t),e.lanes=n,e}function zr(e,t,n){return e=Xt(6,e,null,t),e.lanes=n,e}function Pf(e){var t=Xt(18,null,null,0);return t.stateNode=e,t}function Or(e,t,n){return t=Xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ff=new WeakMap;function tn(e,t){if(typeof e=="object"&&e!==null){var n=Ff.get(e);return n!==void 0?n:(t={value:e,source:t,stack:si(t)},Ff.set(e,t),t)}return{value:e,source:t,stack:si(t)}}var xi=[],Si=0,_l=null,bs=0,nn=[],an=0,ia=null,wn=1,jn="";function Vn(e,t){xi[Si++]=bs,xi[Si++]=_l,_l=e,bs=t}function Wf(e,t,n){nn[an++]=wn,nn[an++]=jn,nn[an++]=ia,ia=e;var i=wn;e=jn;var r=32-Yt(i)-1;i&=~(1<<r),n+=1;var u=32-Yt(t)+r;if(30<u){var m=r-r%5;u=(i&(1<<m)-1).toString(32),i>>=m,r-=m,wn=1<<32-Yt(t)+r|n<<r|i,jn=u+e}else wn=1<<u|n<<r|i,jn=e}function Vr(e){e.return!==null&&(Vn(e,1),Wf(e,1,0))}function _r(e){for(;e===_l;)_l=xi[--Si],xi[Si]=null,bs=xi[--Si],xi[Si]=null;for(;e===ia;)ia=nn[--an],nn[an]=null,jn=nn[--an],nn[an]=null,wn=nn[--an],nn[an]=null}function $f(e,t){nn[an++]=wn,nn[an++]=jn,nn[an++]=ia,wn=t.id,jn=t.overflow,ia=e}var yt=null,Ke=null,Re=!1,sa=null,sn=!1,kr=Error(o(519));function la(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vs(tn(t,e)),kr}function If(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[pt]=e,t[Ot]=i,n){case"dialog":Me("cancel",t),Me("close",t);break;case"iframe":case"object":case"embed":Me("load",t);break;case"video":case"audio":for(n=0;n<Gs.length;n++)Me(Gs[n],t);break;case"source":Me("error",t);break;case"img":case"image":case"link":Me("error",t),Me("load",t);break;case"details":Me("toggle",t);break;case"input":Me("invalid",t),ff(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Me("invalid",t);break;case"textarea":Me("invalid",t),mf(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||yp(t.textContent,n)?(i.popover!=null&&(Me("beforetoggle",t),Me("toggle",t)),i.onScroll!=null&&Me("scroll",t),i.onScrollEnd!=null&&Me("scrollend",t),i.onClick!=null&&(t.onclick=Rn),t=!0):t=!1,t||la(e,!0)}function eh(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 31:case 13:sn=!1;return;case 27:case 3:sn=!0;return;default:yt=yt.return}}function Ci(e){if(e!==yt)return!1;if(!Re)return eh(e),Re=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||ec(e.type,e.memoizedProps)),n=!n),n&&Ke&&la(e),eh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ke=Tp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ke=Tp(e)}else t===27?(t=Ke,xa(e.type)?(e=sc,sc=null,Ke=e):Ke=t):Ke=yt?on(e.stateNode.nextSibling):null;return!0}function La(){Ke=yt=null,Re=!1}function Br(){var e=sa;return e!==null&&(Lt===null?Lt=e:Lt.push.apply(Lt,e),sa=null),e}function vs(e){sa===null?sa=[e]:sa.push(e)}var Lr=C(null),Ua=null,_n=null;function oa(e,t,n){I(Lr,t._currentValue),t._currentValue=n}function kn(e){e._currentValue=Lr.current,B(Lr)}function Ur(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Hr(e,t,n,i){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var u=r.dependencies;if(u!==null){var m=r.child;u=u.firstContext;e:for(;u!==null;){var v=u;u=r;for(var w=0;w<t.length;w++)if(v.context===t[w]){u.lanes|=n,v=u.alternate,v!==null&&(v.lanes|=n),Ur(u.return,n,e),i||(m=null);break e}u=v.next}}else if(r.tag===18){if(m=r.return,m===null)throw Error(o(341));m.lanes|=n,u=m.alternate,u!==null&&(u.lanes|=n),Ur(m,n,e),m=null}else m=r.child;if(m!==null)m.return=r;else for(m=r;m!==null;){if(m===e){m=null;break}if(r=m.sibling,r!==null){r.return=m.return,m=r;break}m=m.return}r=m}}function wi(e,t,n,i){e=null;for(var r=t,u=!1;r!==null;){if(!u){if((r.flags&524288)!==0)u=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var m=r.alternate;if(m===null)throw Error(o(387));if(m=m.memoizedProps,m!==null){var v=r.type;qt(r.pendingProps.value,m.value)||(e!==null?e.push(v):e=[v])}}else if(r===me.current){if(m=r.alternate,m===null)throw Error(o(387));m.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Qs):e=[Qs])}r=r.return}e!==null&&Hr(t,e,n,i),t.flags|=262144}function kl(e){for(e=e.firstContext;e!==null;){if(!qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ha(e){Ua=e,_n=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function gt(e){return th(Ua,e)}function Bl(e,t){return Ua===null&&Ha(e),th(e,t)}function th(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},_n===null){if(e===null)throw Error(o(308));_n=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else _n=_n.next=t;return n}var _v=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},kv=a.unstable_scheduleCallback,Bv=a.unstable_NormalPriority,it={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gr(){return{controller:new _v,data:new Map,refCount:0}}function xs(e){e.refCount--,e.refCount===0&&kv(Bv,function(){e.controller.abort()})}var Ss=null,Yr=0,ji=0,Ti=null;function Lv(e,t){if(Ss===null){var n=Ss=[];Yr=0,ji=Ku(),Ti={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Yr++,t.then(nh,nh),t}function nh(){if(--Yr===0&&Ss!==null){Ti!==null&&(Ti.status="fulfilled");var e=Ss;Ss=null,ji=0,Ti=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Uv(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(i.status="rejected",i.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),i}var ah=D.S;D.S=function(e,t){Hm=tt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Lv(e,t),ah!==null&&ah(e,t)};var Ga=C(null);function qr(){var e=Ga.current;return e!==null?e:Ye.pooledCache}function Ll(e,t){t===null?I(Ga,Ga.current):I(Ga,t.pool)}function ih(){var e=qr();return e===null?null:{parent:it._currentValue,pool:e}}var Ni=Error(o(460)),Xr=Error(o(474)),Ul=Error(o(542)),Hl={then:function(){}};function sh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function lh(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Rn,Rn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,rh(e),e;default:if(typeof t.status=="string")t.then(Rn,Rn);else{if(e=Ye,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=i}},function(i){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,rh(e),e}throw qa=t,Ni}}function Ya(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(qa=n,Ni):n}}var qa=null;function oh(){if(qa===null)throw Error(o(459));var e=qa;return qa=null,e}function rh(e){if(e===Ni||e===Ul)throw Error(o(483))}var Ai=null,Cs=0;function Gl(e){var t=Cs;return Cs+=1,Ai===null&&(Ai=[]),lh(Ai,e,t)}function ws(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Yl(e,t){throw t.$$typeof===S?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function uh(e){function t(A,T){if(e){var z=A.deletions;z===null?(A.deletions=[T],A.flags|=16):z.push(T)}}function n(A,T){if(!e)return null;for(;T!==null;)t(A,T),T=T.sibling;return null}function i(A){for(var T=new Map;A!==null;)A.key!==null?T.set(A.key,A):T.set(A.index,A),A=A.sibling;return T}function r(A,T){return A=On(A,T),A.index=0,A.sibling=null,A}function u(A,T,z){return A.index=z,e?(z=A.alternate,z!==null?(z=z.index,z<T?(A.flags|=67108866,T):z):(A.flags|=67108866,T)):(A.flags|=1048576,T)}function m(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function v(A,T,z,Z){return T===null||T.tag!==6?(T=zr(z,A.mode,Z),T.return=A,T):(T=r(T,z),T.return=A,T)}function w(A,T,z,Z){var ye=z.type;return ye===V?q(A,T,z.props.children,Z,z.key):T!==null&&(T.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===E&&Ya(ye)===T.type)?(T=r(T,z.props),ws(T,z),T.return=A,T):(T=Vl(z.type,z.key,z.props,null,A.mode,Z),ws(T,z),T.return=A,T)}function O(A,T,z,Z){return T===null||T.tag!==4||T.stateNode.containerInfo!==z.containerInfo||T.stateNode.implementation!==z.implementation?(T=Or(z,A.mode,Z),T.return=A,T):(T=r(T,z.children||[]),T.return=A,T)}function q(A,T,z,Z,ye){return T===null||T.tag!==7?(T=Ba(z,A.mode,Z,ye),T.return=A,T):(T=r(T,z),T.return=A,T)}function P(A,T,z){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=zr(""+T,A.mode,z),T.return=A,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case N:return z=Vl(T.type,T.key,T.props,null,A.mode,z),ws(z,T),z.return=A,z;case _:return T=Or(T,A.mode,z),T.return=A,T;case E:return T=Ya(T),P(A,T,z)}if(ee(T)||ie(T))return T=Ba(T,A.mode,z,null),T.return=A,T;if(typeof T.then=="function")return P(A,Gl(T),z);if(T.$$typeof===Y)return P(A,Bl(A,T),z);Yl(A,T)}return null}function k(A,T,z,Z){var ye=T!==null?T.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return ye!==null?null:v(A,T,""+z,Z);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case N:return z.key===ye?w(A,T,z,Z):null;case _:return z.key===ye?O(A,T,z,Z):null;case E:return z=Ya(z),k(A,T,z,Z)}if(ee(z)||ie(z))return ye!==null?null:q(A,T,z,Z,null);if(typeof z.then=="function")return k(A,T,Gl(z),Z);if(z.$$typeof===Y)return k(A,T,Bl(A,z),Z);Yl(A,z)}return null}function L(A,T,z,Z,ye){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return A=A.get(z)||null,v(T,A,""+Z,ye);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case N:return A=A.get(Z.key===null?z:Z.key)||null,w(T,A,Z,ye);case _:return A=A.get(Z.key===null?z:Z.key)||null,O(T,A,Z,ye);case E:return Z=Ya(Z),L(A,T,z,Z,ye)}if(ee(Z)||ie(Z))return A=A.get(z)||null,q(T,A,Z,ye,null);if(typeof Z.then=="function")return L(A,T,z,Gl(Z),ye);if(Z.$$typeof===Y)return L(A,T,z,Bl(T,Z),ye);Yl(T,Z)}return null}function ue(A,T,z,Z){for(var ye=null,Oe=null,fe=T,je=T=0,De=null;fe!==null&&je<z.length;je++){fe.index>je?(De=fe,fe=null):De=fe.sibling;var Ve=k(A,fe,z[je],Z);if(Ve===null){fe===null&&(fe=De);break}e&&fe&&Ve.alternate===null&&t(A,fe),T=u(Ve,T,je),Oe===null?ye=Ve:Oe.sibling=Ve,Oe=Ve,fe=De}if(je===z.length)return n(A,fe),Re&&Vn(A,je),ye;if(fe===null){for(;je<z.length;je++)fe=P(A,z[je],Z),fe!==null&&(T=u(fe,T,je),Oe===null?ye=fe:Oe.sibling=fe,Oe=fe);return Re&&Vn(A,je),ye}for(fe=i(fe);je<z.length;je++)De=L(fe,A,je,z[je],Z),De!==null&&(e&&De.alternate!==null&&fe.delete(De.key===null?je:De.key),T=u(De,T,je),Oe===null?ye=De:Oe.sibling=De,Oe=De);return e&&fe.forEach(function(Ta){return t(A,Ta)}),Re&&Vn(A,je),ye}function be(A,T,z,Z){if(z==null)throw Error(o(151));for(var ye=null,Oe=null,fe=T,je=T=0,De=null,Ve=z.next();fe!==null&&!Ve.done;je++,Ve=z.next()){fe.index>je?(De=fe,fe=null):De=fe.sibling;var Ta=k(A,fe,Ve.value,Z);if(Ta===null){fe===null&&(fe=De);break}e&&fe&&Ta.alternate===null&&t(A,fe),T=u(Ta,T,je),Oe===null?ye=Ta:Oe.sibling=Ta,Oe=Ta,fe=De}if(Ve.done)return n(A,fe),Re&&Vn(A,je),ye;if(fe===null){for(;!Ve.done;je++,Ve=z.next())Ve=P(A,Ve.value,Z),Ve!==null&&(T=u(Ve,T,je),Oe===null?ye=Ve:Oe.sibling=Ve,Oe=Ve);return Re&&Vn(A,je),ye}for(fe=i(fe);!Ve.done;je++,Ve=z.next())Ve=L(fe,A,je,Ve.value,Z),Ve!==null&&(e&&Ve.alternate!==null&&fe.delete(Ve.key===null?je:Ve.key),T=u(Ve,T,je),Oe===null?ye=Ve:Oe.sibling=Ve,Oe=Ve);return e&&fe.forEach(function(Fx){return t(A,Fx)}),Re&&Vn(A,je),ye}function Ge(A,T,z,Z){if(typeof z=="object"&&z!==null&&z.type===V&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case N:e:{for(var ye=z.key;T!==null;){if(T.key===ye){if(ye=z.type,ye===V){if(T.tag===7){n(A,T.sibling),Z=r(T,z.props.children),Z.return=A,A=Z;break e}}else if(T.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===E&&Ya(ye)===T.type){n(A,T.sibling),Z=r(T,z.props),ws(Z,z),Z.return=A,A=Z;break e}n(A,T);break}else t(A,T);T=T.sibling}z.type===V?(Z=Ba(z.props.children,A.mode,Z,z.key),Z.return=A,A=Z):(Z=Vl(z.type,z.key,z.props,null,A.mode,Z),ws(Z,z),Z.return=A,A=Z)}return m(A);case _:e:{for(ye=z.key;T!==null;){if(T.key===ye)if(T.tag===4&&T.stateNode.containerInfo===z.containerInfo&&T.stateNode.implementation===z.implementation){n(A,T.sibling),Z=r(T,z.children||[]),Z.return=A,A=Z;break e}else{n(A,T);break}else t(A,T);T=T.sibling}Z=Or(z,A.mode,Z),Z.return=A,A=Z}return m(A);case E:return z=Ya(z),Ge(A,T,z,Z)}if(ee(z))return ue(A,T,z,Z);if(ie(z)){if(ye=ie(z),typeof ye!="function")throw Error(o(150));return z=ye.call(z),be(A,T,z,Z)}if(typeof z.then=="function")return Ge(A,T,Gl(z),Z);if(z.$$typeof===Y)return Ge(A,T,Bl(A,z),Z);Yl(A,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,T!==null&&T.tag===6?(n(A,T.sibling),Z=r(T,z),Z.return=A,A=Z):(n(A,T),Z=zr(z,A.mode,Z),Z.return=A,A=Z),m(A)):n(A,T)}return function(A,T,z,Z){try{Cs=0;var ye=Ge(A,T,z,Z);return Ai=null,ye}catch(fe){if(fe===Ni||fe===Ul)throw fe;var Oe=Xt(29,fe,null,A.mode);return Oe.lanes=Z,Oe.return=A,Oe}finally{}}}var Xa=uh(!0),ch=uh(!1),ra=!1;function Kr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ua(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ca(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(_e&2)!==0){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,t=Ol(e),Zf(e,null,n),t}return zl(e,i,t,n),Ol(e)}function js(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,ef(e,n)}}function Zr(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?r=u=m:u=u.next=m,n=n.next}while(n!==null);u===null?r=u=t:u=u.next=t}else r=u=t;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:u,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Jr=!1;function Ts(){if(Jr){var e=Ti;if(e!==null)throw e}}function Ns(e,t,n,i){Jr=!1;var r=e.updateQueue;ra=!1;var u=r.firstBaseUpdate,m=r.lastBaseUpdate,v=r.shared.pending;if(v!==null){r.shared.pending=null;var w=v,O=w.next;w.next=null,m===null?u=O:m.next=O,m=w;var q=e.alternate;q!==null&&(q=q.updateQueue,v=q.lastBaseUpdate,v!==m&&(v===null?q.firstBaseUpdate=O:v.next=O,q.lastBaseUpdate=w))}if(u!==null){var P=r.baseState;m=0,q=O=w=null,v=u;do{var k=v.lane&-536870913,L=k!==v.lane;if(L?(Ee&k)===k:(i&k)===k){k!==0&&k===ji&&(Jr=!0),q!==null&&(q=q.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ue=e,be=v;k=t;var Ge=n;switch(be.tag){case 1:if(ue=be.payload,typeof ue=="function"){P=ue.call(Ge,P,k);break e}P=ue;break e;case 3:ue.flags=ue.flags&-65537|128;case 0:if(ue=be.payload,k=typeof ue=="function"?ue.call(Ge,P,k):ue,k==null)break e;P=x({},P,k);break e;case 2:ra=!0}}k=v.callback,k!==null&&(e.flags|=64,L&&(e.flags|=8192),L=r.callbacks,L===null?r.callbacks=[k]:L.push(k))}else L={lane:k,tag:v.tag,payload:v.payload,callback:v.callback,next:null},q===null?(O=q=L,w=P):q=q.next=L,m|=k;if(v=v.next,v===null){if(v=r.shared.pending,v===null)break;L=v,v=L.next,L.next=null,r.lastBaseUpdate=L,r.shared.pending=null}}while(!0);q===null&&(w=P),r.baseState=w,r.firstBaseUpdate=O,r.lastBaseUpdate=q,u===null&&(r.shared.lanes=0),pa|=m,e.lanes=m,e.memoizedState=P}}function dh(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function fh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)dh(n[e],t)}var Mi=C(null),ql=C(0);function hh(e,t){e=Kn,I(ql,e),I(Mi,t),Kn=e|t.baseLanes}function Pr(){I(ql,Kn),I(Mi,Mi.current)}function Fr(){Kn=ql.current,B(Mi),B(ql)}var Kt=C(null),ln=null;function da(e){var t=e.alternate;I(nt,nt.current&1),I(Kt,e),ln===null&&(t===null||Mi.current!==null||t.memoizedState!==null)&&(ln=e)}function Wr(e){I(nt,nt.current),I(Kt,e),ln===null&&(ln=e)}function mh(e){e.tag===22?(I(nt,nt.current),I(Kt,e),ln===null&&(ln=e)):fa()}function fa(){I(nt,nt.current),I(Kt,Kt.current)}function Qt(e){B(Kt),ln===e&&(ln=null),B(nt)}var nt=C(0);function Xl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ac(n)||ic(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bn=0,Ce=null,Ue=null,st=null,Kl=!1,Ei=!1,Ka=!1,Ql=0,As=0,Di=null,Hv=0;function Fe(){throw Error(o(321))}function $r(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qt(e[n],t[n]))return!1;return!0}function Ir(e,t,n,i,r,u){return Bn=u,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Wh:mu,Ka=!1,u=n(i,r),Ka=!1,Ei&&(u=yh(t,n,i,r)),ph(e),u}function ph(e){D.H=Ds;var t=Ue!==null&&Ue.next!==null;if(Bn=0,st=Ue=Ce=null,Kl=!1,As=0,Di=null,t)throw Error(o(300));e===null||lt||(e=e.dependencies,e!==null&&kl(e)&&(lt=!0))}function yh(e,t,n,i){Ce=e;var r=0;do{if(Ei&&(Di=null),As=0,Ei=!1,25<=r)throw Error(o(301));if(r+=1,st=Ue=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}D.H=$h,u=t(n,i)}while(Ei);return u}function Gv(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Ms(t):t,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(Ce.flags|=1024),t}function eu(){var e=Ql!==0;return Ql=0,e}function tu(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function nu(e){if(Kl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Kl=!1}Bn=0,st=Ue=Ce=null,Ei=!1,As=Ql=0,Di=null}function Et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?Ce.memoizedState=st=e:st=st.next=e,st}function at(){if(Ue===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=st===null?Ce.memoizedState:st.next;if(t!==null)st=t,Ue=e;else{if(e===null)throw Ce.alternate===null?Error(o(467)):Error(o(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},st===null?Ce.memoizedState=st=e:st=st.next=e}return st}function Zl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ms(e){var t=As;return As+=1,Di===null&&(Di=[]),e=lh(Di,e,t),t=Ce,(st===null?t.memoizedState:st.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Wh:mu),e}function Jl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ms(e);if(e.$$typeof===Y)return gt(e)}throw Error(o(438,String(e)))}function au(e){var t=null,n=Ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Ce.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Zl(),Ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=J;return t.index++,n}function Ln(e,t){return typeof t=="function"?t(e):t}function Pl(e){var t=at();return iu(t,Ue,e)}function iu(e,t,n){var i=e.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=n;var r=e.baseQueue,u=i.pending;if(u!==null){if(r!==null){var m=r.next;r.next=u.next,u.next=m}t.baseQueue=r=u,i.pending=null}if(u=e.baseState,r===null)e.memoizedState=u;else{t=r.next;var v=m=null,w=null,O=t,q=!1;do{var P=O.lane&-536870913;if(P!==O.lane?(Ee&P)===P:(Bn&P)===P){var k=O.revertLane;if(k===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),P===ji&&(q=!0);else if((Bn&k)===k){O=O.next,k===ji&&(q=!0);continue}else P={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},w===null?(v=w=P,m=u):w=w.next=P,Ce.lanes|=k,pa|=k;P=O.action,Ka&&n(u,P),u=O.hasEagerState?O.eagerState:n(u,P)}else k={lane:P,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},w===null?(v=w=k,m=u):w=w.next=k,Ce.lanes|=P,pa|=P;O=O.next}while(O!==null&&O!==t);if(w===null?m=u:w.next=v,!qt(u,e.memoizedState)&&(lt=!0,q&&(n=Ti,n!==null)))throw n;e.memoizedState=u,e.baseState=m,e.baseQueue=w,i.lastRenderedState=u}return r===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function su(e){var t=at(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,u=t.memoizedState;if(r!==null){n.pending=null;var m=r=r.next;do u=e(u,m.action),m=m.next;while(m!==r);qt(u,t.memoizedState)||(lt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,i]}function gh(e,t,n){var i=Ce,r=at(),u=Re;if(u){if(n===void 0)throw Error(o(407));n=n()}else n=t();var m=!qt((Ue||r).memoizedState,n);if(m&&(r.memoizedState=n,lt=!0),r=r.queue,ru(xh.bind(null,i,r,e),[e]),r.getSnapshot!==t||m||st!==null&&st.memoizedState.tag&1){if(i.flags|=2048,Ri(9,{destroy:void 0},vh.bind(null,i,r,n,t),null),Ye===null)throw Error(o(349));u||(Bn&127)!==0||bh(i,t,n)}return n}function bh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t=Zl(),Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function vh(e,t,n,i){t.value=n,t.getSnapshot=i,Sh(t)&&Ch(e)}function xh(e,t,n){return n(function(){Sh(t)&&Ch(e)})}function Sh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qt(e,n)}catch{return!0}}function Ch(e){var t=ka(e,2);t!==null&&Ut(t,e,2)}function lu(e){var t=Et();if(typeof e=="function"){var n=e;if(e=n(),Ka){ta(!0);try{n()}finally{ta(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:e},t}function wh(e,t,n,i){return e.baseState=n,iu(e,Ue,typeof i=="function"?i:Ln)}function Yv(e,t,n,i,r){if($l(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){u.listeners.push(m)}};D.T!==null?n(!0):u.isTransition=!1,i(u),n=t.pending,n===null?(u.next=t.pending=u,jh(t,u)):(u.next=n.next,t.pending=n.next=u)}}function jh(e,t){var n=t.action,i=t.payload,r=e.state;if(t.isTransition){var u=D.T,m={};D.T=m;try{var v=n(r,i),w=D.S;w!==null&&w(m,v),Th(e,t,v)}catch(O){ou(e,t,O)}finally{u!==null&&m.types!==null&&(u.types=m.types),D.T=u}}else try{u=n(r,i),Th(e,t,u)}catch(O){ou(e,t,O)}}function Th(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Nh(e,t,i)},function(i){return ou(e,t,i)}):Nh(e,t,n)}function Nh(e,t,n){t.status="fulfilled",t.value=n,Ah(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,jh(e,n)))}function ou(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,Ah(t),t=t.next;while(t!==i)}e.action=null}function Ah(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Mh(e,t){return t}function Eh(e,t){if(Re){var n=Ye.formState;if(n!==null){e:{var i=Ce;if(Re){if(Ke){t:{for(var r=Ke,u=sn;r.nodeType!==8;){if(!u){r=null;break t}if(r=on(r.nextSibling),r===null){r=null;break t}}u=r.data,r=u==="F!"||u==="F"?r:null}if(r){Ke=on(r.nextSibling),i=r.data==="F!";break e}}la(i)}i=!1}i&&(t=n[0])}}return n=Et(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mh,lastRenderedState:t},n.queue=i,n=Jh.bind(null,Ce,i),i.dispatch=n,i=lu(!1),u=hu.bind(null,Ce,!1,i.queue),i=Et(),r={state:t,dispatch:null,action:e,pending:null},i.queue=r,n=Yv.bind(null,Ce,r,u,n),r.dispatch=n,i.memoizedState=e,[t,n,!1]}function Dh(e){var t=at();return Rh(t,Ue,e)}function Rh(e,t,n){if(t=iu(e,t,Mh)[0],e=Pl(Ln)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Ms(t)}catch(m){throw m===Ni?Ul:m}else i=t;t=at();var r=t.queue,u=r.dispatch;return n!==t.memoizedState&&(Ce.flags|=2048,Ri(9,{destroy:void 0},qv.bind(null,r,n),null)),[i,u,e]}function qv(e,t){e.action=t}function zh(e){var t=at(),n=Ue;if(n!==null)return Rh(t,n,e);at(),t=t.memoizedState,n=at();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function Ri(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=Zl(),Ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Oh(){return at().memoizedState}function Fl(e,t,n,i){var r=Et();Ce.flags|=e,r.memoizedState=Ri(1|t,{destroy:void 0},n,i===void 0?null:i)}function Wl(e,t,n,i){var r=at();i=i===void 0?null:i;var u=r.memoizedState.inst;Ue!==null&&i!==null&&$r(i,Ue.memoizedState.deps)?r.memoizedState=Ri(t,u,n,i):(Ce.flags|=e,r.memoizedState=Ri(1|t,u,n,i))}function Vh(e,t){Fl(8390656,8,e,t)}function ru(e,t){Wl(2048,8,e,t)}function Xv(e){Ce.flags|=4;var t=Ce.updateQueue;if(t===null)t=Zl(),Ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function _h(e){var t=at().memoizedState;return Xv({ref:t,nextImpl:e}),function(){if((_e&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function kh(e,t){return Wl(4,2,e,t)}function Bh(e,t){return Wl(4,4,e,t)}function Lh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Uh(e,t,n){n=n!=null?n.concat([e]):null,Wl(4,4,Lh.bind(null,t,e),n)}function uu(){}function Hh(e,t){var n=at();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&$r(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Gh(e,t){var n=at();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&$r(t,i[1]))return i[0];if(i=e(),Ka){ta(!0);try{e()}finally{ta(!1)}}return n.memoizedState=[i,t],i}function cu(e,t,n){return n===void 0||(Bn&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Ym(),Ce.lanes|=e,pa|=e,n)}function Yh(e,t,n,i){return qt(n,t)?n:Mi.current!==null?(e=cu(e,n,i),qt(e,t)||(lt=!0),e):(Bn&42)===0||(Bn&1073741824)!==0&&(Ee&261930)===0?(lt=!0,e.memoizedState=n):(e=Ym(),Ce.lanes|=e,pa|=e,t)}function qh(e,t,n,i,r){var u=G.p;G.p=u!==0&&8>u?u:8;var m=D.T,v={};D.T=v,hu(e,!1,t,n);try{var w=r(),O=D.S;if(O!==null&&O(v,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var q=Uv(w,i);Es(e,t,q,Pt(e))}else Es(e,t,i,Pt(e))}catch(P){Es(e,t,{then:function(){},status:"rejected",reason:P},Pt())}finally{G.p=u,m!==null&&v.types!==null&&(m.types=v.types),D.T=m}}function Kv(){}function du(e,t,n,i){if(e.tag!==5)throw Error(o(476));var r=Xh(e).queue;qh(e,r,t,M,n===null?Kv:function(){return Kh(e),n(i)})}function Xh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:M,baseState:M,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:M},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Kh(e){var t=Xh(e);t.next===null&&(t=e.alternate.memoizedState),Es(e,t.next.queue,{},Pt())}function fu(){return gt(Qs)}function Qh(){return at().memoizedState}function Zh(){return at().memoizedState}function Qv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Pt();e=ua(n);var i=ca(t,e,n);i!==null&&(Ut(i,t,n),js(i,t,n)),t={cache:Gr()},e.payload=t;return}t=t.return}}function Zv(e,t,n){var i=Pt();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},$l(e)?Ph(t,n):(n=Dr(e,t,n,i),n!==null&&(Ut(n,e,i),Fh(n,t,i)))}function Jh(e,t,n){var i=Pt();Es(e,t,n,i)}function Es(e,t,n,i){var r={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if($l(e))Ph(t,r);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var m=t.lastRenderedState,v=u(m,n);if(r.hasEagerState=!0,r.eagerState=v,qt(v,m))return zl(e,t,r,0),Ye===null&&Rl(),!1}catch{}finally{}if(n=Dr(e,t,r,i),n!==null)return Ut(n,e,i),Fh(n,t,i),!0}return!1}function hu(e,t,n,i){if(i={lane:2,revertLane:Ku(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},$l(e)){if(t)throw Error(o(479))}else t=Dr(e,n,i,2),t!==null&&Ut(t,e,2)}function $l(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function Ph(e,t){Ei=Kl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fh(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,ef(e,n)}}var Ds={readContext:gt,use:Jl,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useLayoutEffect:Fe,useInsertionEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useSyncExternalStore:Fe,useId:Fe,useHostTransitionStatus:Fe,useFormState:Fe,useActionState:Fe,useOptimistic:Fe,useMemoCache:Fe,useCacheRefresh:Fe};Ds.useEffectEvent=Fe;var Wh={readContext:gt,use:Jl,useCallback:function(e,t){return Et().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:Vh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Fl(4194308,4,Lh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fl(4194308,4,e,t)},useInsertionEffect:function(e,t){Fl(4,2,e,t)},useMemo:function(e,t){var n=Et();t=t===void 0?null:t;var i=e();if(Ka){ta(!0);try{e()}finally{ta(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=Et();if(n!==void 0){var r=n(t);if(Ka){ta(!0);try{n(t)}finally{ta(!1)}}}else r=t;return i.memoizedState=i.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},i.queue=e,e=e.dispatch=Zv.bind(null,Ce,e),[i.memoizedState,e]},useRef:function(e){var t=Et();return e={current:e},t.memoizedState=e},useState:function(e){e=lu(e);var t=e.queue,n=Jh.bind(null,Ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:uu,useDeferredValue:function(e,t){var n=Et();return cu(n,e,t)},useTransition:function(){var e=lu(!1);return e=qh.bind(null,Ce,e.queue,!0,!1),Et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Ce,r=Et();if(Re){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Ye===null)throw Error(o(349));(Ee&127)!==0||bh(i,t,n)}r.memoizedState=n;var u={value:n,getSnapshot:t};return r.queue=u,Vh(xh.bind(null,i,u,e),[e]),i.flags|=2048,Ri(9,{destroy:void 0},vh.bind(null,i,u,n,t),null),n},useId:function(){var e=Et(),t=Ye.identifierPrefix;if(Re){var n=jn,i=wn;n=(i&~(1<<32-Yt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Ql++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Hv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:fu,useFormState:Eh,useActionState:Eh,useOptimistic:function(e){var t=Et();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=hu.bind(null,Ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:au,useCacheRefresh:function(){return Et().memoizedState=Qv.bind(null,Ce)},useEffectEvent:function(e){var t=Et(),n={impl:e};return t.memoizedState=n,function(){if((_e&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},mu={readContext:gt,use:Jl,useCallback:Hh,useContext:gt,useEffect:ru,useImperativeHandle:Uh,useInsertionEffect:kh,useLayoutEffect:Bh,useMemo:Gh,useReducer:Pl,useRef:Oh,useState:function(){return Pl(Ln)},useDebugValue:uu,useDeferredValue:function(e,t){var n=at();return Yh(n,Ue.memoizedState,e,t)},useTransition:function(){var e=Pl(Ln)[0],t=at().memoizedState;return[typeof e=="boolean"?e:Ms(e),t]},useSyncExternalStore:gh,useId:Qh,useHostTransitionStatus:fu,useFormState:Dh,useActionState:Dh,useOptimistic:function(e,t){var n=at();return wh(n,Ue,e,t)},useMemoCache:au,useCacheRefresh:Zh};mu.useEffectEvent=_h;var $h={readContext:gt,use:Jl,useCallback:Hh,useContext:gt,useEffect:ru,useImperativeHandle:Uh,useInsertionEffect:kh,useLayoutEffect:Bh,useMemo:Gh,useReducer:su,useRef:Oh,useState:function(){return su(Ln)},useDebugValue:uu,useDeferredValue:function(e,t){var n=at();return Ue===null?cu(n,e,t):Yh(n,Ue.memoizedState,e,t)},useTransition:function(){var e=su(Ln)[0],t=at().memoizedState;return[typeof e=="boolean"?e:Ms(e),t]},useSyncExternalStore:gh,useId:Qh,useHostTransitionStatus:fu,useFormState:zh,useActionState:zh,useOptimistic:function(e,t){var n=at();return Ue!==null?wh(n,Ue,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:au,useCacheRefresh:Zh};$h.useEffectEvent=_h;function pu(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:x({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var yu={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Pt(),r=ua(i);r.payload=t,n!=null&&(r.callback=n),t=ca(e,r,i),t!==null&&(Ut(t,e,i),js(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Pt(),r=ua(i);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=ca(e,r,i),t!==null&&(Ut(t,e,i),js(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pt(),i=ua(n);i.tag=2,t!=null&&(i.callback=t),t=ca(e,i,n),t!==null&&(Ut(t,e,n),js(t,e,n))}};function Ih(e,t,n,i,r,u,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,u,m):t.prototype&&t.prototype.isPureReactComponent?!ys(n,i)||!ys(r,u):!0}function em(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&yu.enqueueReplaceState(t,t.state,null)}function Qa(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=x({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function tm(e){Dl(e)}function nm(e){console.error(e)}function am(e){Dl(e)}function Il(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function im(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function gu(e,t,n){return n=ua(n),n.tag=3,n.payload={element:null},n.callback=function(){Il(e,t)},n}function sm(e){return e=ua(e),e.tag=3,e}function lm(e,t,n,i){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var u=i.value;e.payload=function(){return r(u)},e.callback=function(){im(t,n,i)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){im(t,n,i),typeof r!="function"&&(ya===null?ya=new Set([this]):ya.add(this));var v=i.stack;this.componentDidCatch(i.value,{componentStack:v!==null?v:""})})}function Jv(e,t,n,i,r){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&wi(t,n,r,!0),n=Kt.current,n!==null){switch(n.tag){case 31:case 13:return ln===null?fo():n.alternate===null&&We===0&&(We=3),n.flags&=-257,n.flags|=65536,n.lanes=r,i===Hl?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Yu(e,i,r)),!1;case 22:return n.flags|=65536,i===Hl?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Yu(e,i,r)),!1}throw Error(o(435,n.tag))}return Yu(e,i,r),fo(),!1}if(Re)return t=Kt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,i!==kr&&(e=Error(o(422),{cause:i}),vs(tn(e,n)))):(i!==kr&&(t=Error(o(423),{cause:i}),vs(tn(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,i=tn(i,n),r=gu(e.stateNode,i,r),Zr(e,r),We!==4&&(We=2)),!1;var u=Error(o(520),{cause:i});if(u=tn(u,n),Ls===null?Ls=[u]:Ls.push(u),We!==4&&(We=2),t===null)return!0;i=tn(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=gu(n.stateNode,i,e),Zr(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(ya===null||!ya.has(u))))return n.flags|=65536,r&=-r,n.lanes|=r,r=sm(r),lm(r,e,n,i),Zr(n,r),!1}n=n.return}while(n!==null);return!1}var bu=Error(o(461)),lt=!1;function bt(e,t,n,i){t.child=e===null?ch(t,null,n,i):Xa(t,e.child,n,i)}function om(e,t,n,i,r){n=n.render;var u=t.ref;if("ref"in i){var m={};for(var v in i)v!=="ref"&&(m[v]=i[v])}else m=i;return Ha(t),i=Ir(e,t,n,m,u,r),v=eu(),e!==null&&!lt?(tu(e,t,r),Un(e,t,r)):(Re&&v&&Vr(t),t.flags|=1,bt(e,t,i,r),t.child)}function rm(e,t,n,i,r){if(e===null){var u=n.type;return typeof u=="function"&&!Rr(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,um(e,t,u,i,r)):(e=Vl(n.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Nu(e,r)){var m=u.memoizedProps;if(n=n.compare,n=n!==null?n:ys,n(m,i)&&e.ref===t.ref)return Un(e,t,r)}return t.flags|=1,e=On(u,i),e.ref=t.ref,e.return=t,t.child=e}function um(e,t,n,i,r){if(e!==null){var u=e.memoizedProps;if(ys(u,i)&&e.ref===t.ref)if(lt=!1,t.pendingProps=i=u,Nu(e,r))(e.flags&131072)!==0&&(lt=!0);else return t.lanes=e.lanes,Un(e,t,r)}return vu(e,t,n,i,r)}function cm(e,t,n,i){var r=i.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(i=t.child=e.child,r=0;i!==null;)r=r|i.lanes|i.childLanes,i=i.sibling;i=r&~u}else i=0,t.child=null;return dm(e,t,u,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ll(t,u!==null?u.cachePool:null),u!==null?hh(t,u):Pr(),mh(t);else return i=t.lanes=536870912,dm(e,t,u!==null?u.baseLanes|n:n,n,i)}else u!==null?(Ll(t,u.cachePool),hh(t,u),fa(),t.memoizedState=null):(e!==null&&Ll(t,null),Pr(),fa());return bt(e,t,r,n),t.child}function Rs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dm(e,t,n,i,r){var u=qr();return u=u===null?null:{parent:it._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&Ll(t,null),Pr(),mh(t),e!==null&&wi(e,t,i,!0),t.childLanes=r,null}function eo(e,t){return t=no({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function fm(e,t,n){return Xa(t,e.child,null,n),e=eo(t,t.pendingProps),e.flags|=2,Qt(t),t.memoizedState=null,e}function Pv(e,t,n){var i=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Re){if(i.mode==="hidden")return e=eo(t,i),t.lanes=536870912,Rs(null,e);if(Wr(t),(e=Ke)?(e=jp(e,sn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ia!==null?{id:wn,overflow:jn}:null,retryLane:536870912,hydrationErrors:null},n=Pf(e),n.return=t,t.child=n,yt=t,Ke=null)):e=null,e===null)throw la(t);return t.lanes=536870912,null}return eo(t,i)}var u=e.memoizedState;if(u!==null){var m=u.dehydrated;if(Wr(t),r)if(t.flags&256)t.flags&=-257,t=fm(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(lt||wi(e,t,n,!1),r=(n&e.childLanes)!==0,lt||r){if(i=Ye,i!==null&&(m=tf(i,n),m!==0&&m!==u.retryLane))throw u.retryLane=m,ka(e,m),Ut(i,e,m),bu;fo(),t=fm(e,t,n)}else e=u.treeContext,Ke=on(m.nextSibling),yt=t,Re=!0,sa=null,sn=!1,e!==null&&$f(t,e),t=eo(t,i),t.flags|=4096;return t}return e=On(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function to(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function vu(e,t,n,i,r){return Ha(t),n=Ir(e,t,n,i,void 0,r),i=eu(),e!==null&&!lt?(tu(e,t,r),Un(e,t,r)):(Re&&i&&Vr(t),t.flags|=1,bt(e,t,n,r),t.child)}function hm(e,t,n,i,r,u){return Ha(t),t.updateQueue=null,n=yh(t,i,n,r),ph(e),i=eu(),e!==null&&!lt?(tu(e,t,u),Un(e,t,u)):(Re&&i&&Vr(t),t.flags|=1,bt(e,t,n,u),t.child)}function mm(e,t,n,i,r){if(Ha(t),t.stateNode===null){var u=vi,m=n.contextType;typeof m=="object"&&m!==null&&(u=gt(m)),u=new n(i,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=yu,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=i,u.state=t.memoizedState,u.refs={},Kr(t),m=n.contextType,u.context=typeof m=="object"&&m!==null?gt(m):vi,u.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(pu(t,n,m,i),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(m=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),m!==u.state&&yu.enqueueReplaceState(u,u.state,null),Ns(t,i,u,r),Ts(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){u=t.stateNode;var v=t.memoizedProps,w=Qa(n,v);u.props=w;var O=u.context,q=n.contextType;m=vi,typeof q=="object"&&q!==null&&(m=gt(q));var P=n.getDerivedStateFromProps;q=typeof P=="function"||typeof u.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,q||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(v||O!==m)&&em(t,u,i,m),ra=!1;var k=t.memoizedState;u.state=k,Ns(t,i,u,r),Ts(),O=t.memoizedState,v||k!==O||ra?(typeof P=="function"&&(pu(t,n,P,i),O=t.memoizedState),(w=ra||Ih(t,n,w,i,k,O,m))?(q||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=O),u.props=i,u.state=O,u.context=m,i=w):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{u=t.stateNode,Qr(e,t),m=t.memoizedProps,q=Qa(n,m),u.props=q,P=t.pendingProps,k=u.context,O=n.contextType,w=vi,typeof O=="object"&&O!==null&&(w=gt(O)),v=n.getDerivedStateFromProps,(O=typeof v=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(m!==P||k!==w)&&em(t,u,i,w),ra=!1,k=t.memoizedState,u.state=k,Ns(t,i,u,r),Ts();var L=t.memoizedState;m!==P||k!==L||ra||e!==null&&e.dependencies!==null&&kl(e.dependencies)?(typeof v=="function"&&(pu(t,n,v,i),L=t.memoizedState),(q=ra||Ih(t,n,q,i,k,L,w)||e!==null&&e.dependencies!==null&&kl(e.dependencies))?(O||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(i,L,w),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(i,L,w)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||m===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=L),u.props=i,u.state=L,u.context=w,i=q):(typeof u.componentDidUpdate!="function"||m===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),i=!1)}return u=i,to(e,t),i=(t.flags&128)!==0,u||i?(u=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&i?(t.child=Xa(t,e.child,null,r),t.child=Xa(t,null,n,r)):bt(e,t,n,r),t.memoizedState=u.state,e=t.child):e=Un(e,t,r),e}function pm(e,t,n,i){return La(),t.flags|=256,bt(e,t,n,i),t.child}var xu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Su(e){return{baseLanes:e,cachePool:ih()}}function Cu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Jt),e}function ym(e,t,n){var i=t.pendingProps,r=!1,u=(t.flags&128)!==0,m;if((m=u)||(m=e!==null&&e.memoizedState===null?!1:(nt.current&2)!==0),m&&(r=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Re){if(r?da(t):fa(),(e=Ke)?(e=jp(e,sn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ia!==null?{id:wn,overflow:jn}:null,retryLane:536870912,hydrationErrors:null},n=Pf(e),n.return=t,t.child=n,yt=t,Ke=null)):e=null,e===null)throw la(t);return ic(e)?t.lanes=32:t.lanes=536870912,null}var v=i.children;return i=i.fallback,r?(fa(),r=t.mode,v=no({mode:"hidden",children:v},r),i=Ba(i,r,n,null),v.return=t,i.return=t,v.sibling=i,t.child=v,i=t.child,i.memoizedState=Su(n),i.childLanes=Cu(e,m,n),t.memoizedState=xu,Rs(null,i)):(da(t),wu(t,v))}var w=e.memoizedState;if(w!==null&&(v=w.dehydrated,v!==null)){if(u)t.flags&256?(da(t),t.flags&=-257,t=ju(e,t,n)):t.memoizedState!==null?(fa(),t.child=e.child,t.flags|=128,t=null):(fa(),v=i.fallback,r=t.mode,i=no({mode:"visible",children:i.children},r),v=Ba(v,r,n,null),v.flags|=2,i.return=t,v.return=t,i.sibling=v,t.child=i,Xa(t,e.child,null,n),i=t.child,i.memoizedState=Su(n),i.childLanes=Cu(e,m,n),t.memoizedState=xu,t=Rs(null,i));else if(da(t),ic(v)){if(m=v.nextSibling&&v.nextSibling.dataset,m)var O=m.dgst;m=O,i=Error(o(419)),i.stack="",i.digest=m,vs({value:i,source:null,stack:null}),t=ju(e,t,n)}else if(lt||wi(e,t,n,!1),m=(n&e.childLanes)!==0,lt||m){if(m=Ye,m!==null&&(i=tf(m,n),i!==0&&i!==w.retryLane))throw w.retryLane=i,ka(e,i),Ut(m,e,i),bu;ac(v)||fo(),t=ju(e,t,n)}else ac(v)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,Ke=on(v.nextSibling),yt=t,Re=!0,sa=null,sn=!1,e!==null&&$f(t,e),t=wu(t,i.children),t.flags|=4096);return t}return r?(fa(),v=i.fallback,r=t.mode,w=e.child,O=w.sibling,i=On(w,{mode:"hidden",children:i.children}),i.subtreeFlags=w.subtreeFlags&65011712,O!==null?v=On(O,v):(v=Ba(v,r,n,null),v.flags|=2),v.return=t,i.return=t,i.sibling=v,t.child=i,Rs(null,i),i=t.child,v=e.child.memoizedState,v===null?v=Su(n):(r=v.cachePool,r!==null?(w=it._currentValue,r=r.parent!==w?{parent:w,pool:w}:r):r=ih(),v={baseLanes:v.baseLanes|n,cachePool:r}),i.memoizedState=v,i.childLanes=Cu(e,m,n),t.memoizedState=xu,Rs(e.child,i)):(da(t),n=e.child,e=n.sibling,n=On(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function wu(e,t){return t=no({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function no(e,t){return e=Xt(22,e,null,t),e.lanes=0,e}function ju(e,t,n){return Xa(t,e.child,null,n),e=wu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function gm(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Ur(e.return,t,n)}function Tu(e,t,n,i,r,u){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r,treeForkCount:u}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=i,m.tail=n,m.tailMode=r,m.treeForkCount=u)}function bm(e,t,n){var i=t.pendingProps,r=i.revealOrder,u=i.tail;i=i.children;var m=nt.current,v=(m&2)!==0;if(v?(m=m&1|2,t.flags|=128):m&=1,I(nt,m),bt(e,t,i,n),i=Re?bs:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&gm(e,n,t);else if(e.tag===19)gm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&Xl(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Tu(t,!1,r,n,u,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Xl(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Tu(t,!0,n,null,u,i);break;case"together":Tu(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Un(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),pa|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(wi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=On(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=On(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Nu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&kl(e)))}function Fv(e,t,n){switch(t.tag){case 3:Xe(t,t.stateNode.containerInfo),oa(t,it,e.memoizedState.cache),La();break;case 27:case 5:we(t);break;case 4:Xe(t,t.stateNode.containerInfo);break;case 10:oa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Wr(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(da(t),t.flags|=128,null):(n&t.child.childLanes)!==0?ym(e,t,n):(da(t),e=Un(e,t,n),e!==null?e.sibling:null);da(t);break;case 19:var r=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(wi(e,t,n,!1),i=(n&t.childLanes)!==0),r){if(i)return bm(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),I(nt,nt.current),i)break;return null;case 22:return t.lanes=0,cm(e,t,n,t.pendingProps);case 24:oa(t,it,e.memoizedState.cache)}return Un(e,t,n)}function vm(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)lt=!0;else{if(!Nu(e,n)&&(t.flags&128)===0)return lt=!1,Fv(e,t,n);lt=(e.flags&131072)!==0}else lt=!1,Re&&(t.flags&1048576)!==0&&Wf(t,bs,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Ya(t.elementType),t.type=e,typeof e=="function")Rr(e)?(i=Qa(e,i),t.tag=1,t=mm(null,t,e,i,n)):(t.tag=0,t=vu(null,t,e,i,n));else{if(e!=null){var r=e.$$typeof;if(r===$){t.tag=11,t=om(null,t,e,i,n);break e}else if(r===X){t.tag=14,t=rm(null,t,e,i,n);break e}}throw t=re(e)||e,Error(o(306,t,""))}}return t;case 0:return vu(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,r=Qa(i,t.pendingProps),mm(e,t,i,r,n);case 3:e:{if(Xe(t,t.stateNode.containerInfo),e===null)throw Error(o(387));i=t.pendingProps;var u=t.memoizedState;r=u.element,Qr(e,t),Ns(t,i,null,n);var m=t.memoizedState;if(i=m.cache,oa(t,it,i),i!==u.cache&&Hr(t,[it],n,!0),Ts(),i=m.element,u.isDehydrated)if(u={element:i,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=pm(e,t,i,n);break e}else if(i!==r){r=tn(Error(o(424)),t),vs(r),t=pm(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ke=on(e.firstChild),yt=t,Re=!0,sa=null,sn=!0,n=ch(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(La(),i===r){t=Un(e,t,n);break e}bt(e,t,i,n)}t=t.child}return t;case 26:return to(e,t),e===null?(n=Dp(t.type,null,t.pendingProps,null))?t.memoizedState=n:Re||(n=t.type,e=t.pendingProps,i=vo(ve.current).createElement(n),i[pt]=t,i[Ot]=e,vt(i,n,e),ht(i),t.stateNode=i):t.memoizedState=Dp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return we(t),e===null&&Re&&(i=t.stateNode=Ap(t.type,t.pendingProps,ve.current),yt=t,sn=!0,r=Ke,xa(t.type)?(sc=r,Ke=on(i.firstChild)):Ke=r),bt(e,t,t.pendingProps.children,n),to(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Re&&((r=i=Ke)&&(i=Nx(i,t.type,t.pendingProps,sn),i!==null?(t.stateNode=i,yt=t,Ke=on(i.firstChild),sn=!1,r=!0):r=!1),r||la(t)),we(t),r=t.type,u=t.pendingProps,m=e!==null?e.memoizedProps:null,i=u.children,ec(r,u)?i=null:m!==null&&ec(r,m)&&(t.flags|=32),t.memoizedState!==null&&(r=Ir(e,t,Gv,null,null,n),Qs._currentValue=r),to(e,t),bt(e,t,i,n),t.child;case 6:return e===null&&Re&&((e=n=Ke)&&(n=Ax(n,t.pendingProps,sn),n!==null?(t.stateNode=n,yt=t,Ke=null,e=!0):e=!1),e||la(t)),null;case 13:return ym(e,t,n);case 4:return Xe(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Xa(t,null,i,n):bt(e,t,i,n),t.child;case 11:return om(e,t,t.type,t.pendingProps,n);case 7:return bt(e,t,t.pendingProps,n),t.child;case 8:return bt(e,t,t.pendingProps.children,n),t.child;case 12:return bt(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,oa(t,t.type,i.value),bt(e,t,i.children,n),t.child;case 9:return r=t.type._context,i=t.pendingProps.children,Ha(t),r=gt(r),i=i(r),t.flags|=1,bt(e,t,i,n),t.child;case 14:return rm(e,t,t.type,t.pendingProps,n);case 15:return um(e,t,t.type,t.pendingProps,n);case 19:return bm(e,t,n);case 31:return Pv(e,t,n);case 22:return cm(e,t,n,t.pendingProps);case 24:return Ha(t),i=gt(it),e===null?(r=qr(),r===null&&(r=Ye,u=Gr(),r.pooledCache=u,u.refCount++,u!==null&&(r.pooledCacheLanes|=n),r=u),t.memoizedState={parent:i,cache:r},Kr(t),oa(t,it,r)):((e.lanes&n)!==0&&(Qr(e,t),Ns(t,null,null,n),Ts()),r=e.memoizedState,u=t.memoizedState,r.parent!==i?(r={parent:i,cache:i},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),oa(t,it,i)):(i=u.cache,oa(t,it,i),i!==r.cache&&Hr(t,[it],n,!0))),bt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Hn(e){e.flags|=4}function Au(e,t,n,i,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Qm())e.flags|=8192;else throw qa=Hl,Xr}else e.flags&=-16777217}function xm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!_p(t))if(Qm())e.flags|=8192;else throw qa=Hl,Xr}function ao(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?$d():536870912,e.lanes|=t,_i|=t)}function zs(e,t){if(!Re)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 i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&65011712,i|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Wv(e,t,n){var i=t.pendingProps;switch(_r(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return Qe(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),kn(it),Te(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ci(t)?Hn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Br())),Qe(t),null;case 26:var r=t.type,u=t.memoizedState;return e===null?(Hn(t),u!==null?(Qe(t),xm(t,u)):(Qe(t),Au(t,r,null,i,n))):u?u!==e.memoizedState?(Hn(t),Qe(t),xm(t,u)):(Qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Hn(t),Qe(t),Au(t,r,e,i,n)),null;case 27:if(Ie(t),n=ve.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Hn(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return Qe(t),null}e=ae.current,Ci(t)?If(t):(e=Ap(r,i,n),t.stateNode=e,Hn(t))}return Qe(t),null;case 5:if(Ie(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Hn(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return Qe(t),null}if(u=ae.current,Ci(t))If(t);else{var m=vo(ve.current);switch(u){case 1:u=m.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:u=m.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":u=m.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":u=m.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":u=m.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof i.is=="string"?m.createElement("select",{is:i.is}):m.createElement("select"),i.multiple?u.multiple=!0:i.size&&(u.size=i.size);break;default:u=typeof i.is=="string"?m.createElement(r,{is:i.is}):m.createElement(r)}}u[pt]=t,u[Ot]=i;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)u.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=u;e:switch(vt(u,r,i),r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Hn(t)}}return Qe(t),Au(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Hn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(o(166));if(e=ve.current,Ci(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,r=yt,r!==null)switch(r.tag){case 27:case 5:i=r.memoizedProps}e[pt]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||yp(e.nodeValue,n)),e||la(t,!0)}else e=vo(e).createTextNode(i),e[pt]=t,t.stateNode=e}return Qe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Ci(t),n!==null){if(e===null){if(!i)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[pt]=t}else La(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),e=!1}else n=Br(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Qt(t),t):(Qt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Qe(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Ci(t),i!==null&&i.dehydrated!==null){if(e===null){if(!r)throw Error(o(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));r[pt]=t}else La(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),r=!1}else r=Br(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Qt(t),t):(Qt(t),null)}return Qt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,r=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(r=i.alternate.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==r&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ao(t,t.updateQueue),Qe(t),null);case 4:return Te(),e===null&&Pu(t.stateNode.containerInfo),Qe(t),null;case 10:return kn(t.type),Qe(t),null;case 19:if(B(nt),i=t.memoizedState,i===null)return Qe(t),null;if(r=(t.flags&128)!==0,u=i.rendering,u===null)if(r)zs(i,!1);else{if(We!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Xl(e),u!==null){for(t.flags|=128,zs(i,!1),e=u.updateQueue,t.updateQueue=e,ao(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Jf(n,e),n=n.sibling;return I(nt,nt.current&1|2),Re&&Vn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&tt()>ro&&(t.flags|=128,r=!0,zs(i,!1),t.lanes=4194304)}else{if(!r)if(e=Xl(u),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ao(t,e),zs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!Re)return Qe(t),null}else 2*tt()-i.renderingStartTime>ro&&n!==536870912&&(t.flags|=128,r=!0,zs(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(e=i.last,e!==null?e.sibling=u:t.child=u,i.last=u)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=tt(),e.sibling=null,n=nt.current,I(nt,r?n&1|2:n&1),Re&&Vn(t,i.treeForkCount),e):(Qe(t),null);case 22:case 23:return Qt(t),Fr(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),n=t.updateQueue,n!==null&&ao(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&B(Ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),kn(it),Qe(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function $v(e,t){switch(_r(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kn(it),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ie(t),null;case 31:if(t.memoizedState!==null){if(Qt(t),t.alternate===null)throw Error(o(340));La()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));La()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(nt),null;case 4:return Te(),null;case 10:return kn(t.type),null;case 22:case 23:return Qt(t),Fr(),e!==null&&B(Ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return kn(it),null;case 25:return null;default:return null}}function Sm(e,t){switch(_r(t),t.tag){case 3:kn(it),Te();break;case 26:case 27:case 5:Ie(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Qt(t);break;case 13:Qt(t);break;case 19:B(nt);break;case 10:kn(t.type);break;case 22:case 23:Qt(t),Fr(),e!==null&&B(Ga);break;case 24:kn(it)}}function Os(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var r=i.next;n=r;do{if((n.tag&e)===e){i=void 0;var u=n.create,m=n.inst;i=u(),m.destroy=i}n=n.next}while(n!==r)}}catch(v){Le(t,t.return,v)}}function ha(e,t,n){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var u=r.next;i=u;do{if((i.tag&e)===e){var m=i.inst,v=m.destroy;if(v!==void 0){m.destroy=void 0,r=t;var w=n,O=v;try{O()}catch(q){Le(r,w,q)}}}i=i.next}while(i!==u)}}catch(q){Le(t,t.return,q)}}function Cm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{fh(t,n)}catch(i){Le(e,e.return,i)}}}function wm(e,t,n){n.props=Qa(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){Le(e,t,i)}}function Vs(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){Le(e,t,r)}}function Tn(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(r){Le(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Le(e,t,r)}else n.current=null}function jm(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(r){Le(e,e.return,r)}}function Mu(e,t,n){try{var i=e.stateNode;xx(i,e.type,n,t),i[Ot]=t}catch(r){Le(e,e.return,r)}}function Tm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&xa(e.type)||e.tag===4}function Eu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&xa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Du(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Rn));else if(i!==4&&(i===27&&xa(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Du(e,t,n),e=e.sibling;e!==null;)Du(e,t,n),e=e.sibling}function io(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&xa(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(io(e,t,n),e=e.sibling;e!==null;)io(e,t,n),e=e.sibling}function Nm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);vt(t,i,n),t[pt]=e,t[Ot]=n}catch(u){Le(e,e.return,u)}}var Gn=!1,ot=!1,Ru=!1,Am=typeof WeakSet=="function"?WeakSet:Set,mt=null;function Iv(e,t){if(e=e.containerInfo,$u=No,e=Uf(e),jr(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,u=i.focusNode;i=i.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var m=0,v=-1,w=-1,O=0,q=0,P=e,k=null;t:for(;;){for(var L;P!==n||r!==0&&P.nodeType!==3||(v=m+r),P!==u||i!==0&&P.nodeType!==3||(w=m+i),P.nodeType===3&&(m+=P.nodeValue.length),(L=P.firstChild)!==null;)k=P,P=L;for(;;){if(P===e)break t;if(k===n&&++O===r&&(v=m),k===u&&++q===i&&(w=m),(L=P.nextSibling)!==null)break;P=k,k=P.parentNode}P=L}n=v===-1||w===-1?null:{start:v,end:w}}else n=null}n=n||{start:0,end:0}}else n=null;for(Iu={focusedElem:e,selectionRange:n},No=!1,mt=t;mt!==null;)if(t=mt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,mt=e;else for(;mt!==null;){switch(t=mt,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)r=e[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,r=u.memoizedProps,u=u.memoizedState,i=n.stateNode;try{var ue=Qa(n.type,r);e=i.getSnapshotBeforeUpdate(ue,u),i.__reactInternalSnapshotBeforeUpdate=e}catch(be){Le(n,n.return,be)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)nc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":nc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,mt=e;break}mt=t.return}}function Mm(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:qn(e,n),i&4&&Os(5,n);break;case 1:if(qn(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Le(n,n.return,m)}else{var r=Qa(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Le(n,n.return,m)}}i&64&&Cm(n),i&512&&Vs(n,n.return);break;case 3:if(qn(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{fh(e,t)}catch(m){Le(n,n.return,m)}}break;case 27:t===null&&i&4&&Nm(n);case 26:case 5:qn(e,n),t===null&&i&4&&jm(n),i&512&&Vs(n,n.return);break;case 12:qn(e,n);break;case 31:qn(e,n),i&4&&Rm(e,n);break;case 13:qn(e,n),i&4&&zm(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=rx.bind(null,n),Mx(e,n))));break;case 22:if(i=n.memoizedState!==null||Gn,!i){t=t!==null&&t.memoizedState!==null||ot,r=Gn;var u=ot;Gn=i,(ot=t)&&!u?Xn(e,n,(n.subtreeFlags&8772)!==0):qn(e,n),Gn=r,ot=u}break;case 30:break;default:qn(e,n)}}function Em(e){var t=e.alternate;t!==null&&(e.alternate=null,Em(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&or(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ze=null,_t=!1;function Yn(e,t,n){for(n=n.child;n!==null;)Dm(e,t,n),n=n.sibling}function Dm(e,t,n){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(is,n)}catch{}switch(n.tag){case 26:ot||Tn(n,t),Yn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ot||Tn(n,t);var i=Ze,r=_t;xa(n.type)&&(Ze=n.stateNode,_t=!1),Yn(e,t,n),qs(n.stateNode),Ze=i,_t=r;break;case 5:ot||Tn(n,t);case 6:if(i=Ze,r=_t,Ze=null,Yn(e,t,n),Ze=i,_t=r,Ze!==null)if(_t)try{(Ze.nodeType===9?Ze.body:Ze.nodeName==="HTML"?Ze.ownerDocument.body:Ze).removeChild(n.stateNode)}catch(u){Le(n,t,u)}else try{Ze.removeChild(n.stateNode)}catch(u){Le(n,t,u)}break;case 18:Ze!==null&&(_t?(e=Ze,Cp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),qi(e)):Cp(Ze,n.stateNode));break;case 4:i=Ze,r=_t,Ze=n.stateNode.containerInfo,_t=!0,Yn(e,t,n),Ze=i,_t=r;break;case 0:case 11:case 14:case 15:ha(2,n,t),ot||ha(4,n,t),Yn(e,t,n);break;case 1:ot||(Tn(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&wm(n,t,i)),Yn(e,t,n);break;case 21:Yn(e,t,n);break;case 22:ot=(i=ot)||n.memoizedState!==null,Yn(e,t,n),ot=i;break;default:Yn(e,t,n)}}function Rm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{qi(e)}catch(n){Le(t,t.return,n)}}}function zm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{qi(e)}catch(n){Le(t,t.return,n)}}function ex(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Am),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Am),t;default:throw Error(o(435,e.tag))}}function so(e,t){var n=ex(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var r=ux.bind(null,e,i);i.then(r,r)}})}function kt(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var r=n[i],u=e,m=t,v=m;e:for(;v!==null;){switch(v.tag){case 27:if(xa(v.type)){Ze=v.stateNode,_t=!1;break e}break;case 5:Ze=v.stateNode,_t=!1;break e;case 3:case 4:Ze=v.stateNode.containerInfo,_t=!0;break e}v=v.return}if(Ze===null)throw Error(o(160));Dm(u,m,r),Ze=null,_t=!1,u=r.alternate,u!==null&&(u.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Om(t,e),t=t.sibling}var gn=null;function Om(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:kt(t,e),Bt(e),i&4&&(ha(3,e,e.return),Os(3,e),ha(5,e,e.return));break;case 1:kt(t,e),Bt(e),i&512&&(ot||n===null||Tn(n,n.return)),i&64&&Gn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var r=gn;if(kt(t,e),Bt(e),i&512&&(ot||n===null||Tn(n,n.return)),i&4){var u=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(i){case"title":u=r.getElementsByTagName("title")[0],(!u||u[os]||u[pt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=r.createElement(i),r.head.insertBefore(u,r.querySelector("head > title"))),vt(u,i,n),u[pt]=e,ht(u),i=u;break e;case"link":var m=Op("link","href",r).get(i+(n.href||""));if(m){for(var v=0;v<m.length;v++)if(u=m[v],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(v,1);break t}}u=r.createElement(i),vt(u,i,n),r.head.appendChild(u);break;case"meta":if(m=Op("meta","content",r).get(i+(n.content||""))){for(v=0;v<m.length;v++)if(u=m[v],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(v,1);break t}}u=r.createElement(i),vt(u,i,n),r.head.appendChild(u);break;default:throw Error(o(468,i))}u[pt]=e,ht(u),i=u}e.stateNode=i}else Vp(r,e.type,e.stateNode);else e.stateNode=zp(r,i,e.memoizedProps);else u!==i?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,i===null?Vp(r,e.type,e.stateNode):zp(r,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Mu(e,e.memoizedProps,n.memoizedProps)}break;case 27:kt(t,e),Bt(e),i&512&&(ot||n===null||Tn(n,n.return)),n!==null&&i&4&&Mu(e,e.memoizedProps,n.memoizedProps);break;case 5:if(kt(t,e),Bt(e),i&512&&(ot||n===null||Tn(n,n.return)),e.flags&32){r=e.stateNode;try{fi(r,"")}catch(ue){Le(e,e.return,ue)}}i&4&&e.stateNode!=null&&(r=e.memoizedProps,Mu(e,r,n!==null?n.memoizedProps:r)),i&1024&&(Ru=!0);break;case 6:if(kt(t,e),Bt(e),i&4){if(e.stateNode===null)throw Error(o(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(ue){Le(e,e.return,ue)}}break;case 3:if(Co=null,r=gn,gn=xo(t.containerInfo),kt(t,e),gn=r,Bt(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{qi(t.containerInfo)}catch(ue){Le(e,e.return,ue)}Ru&&(Ru=!1,Vm(e));break;case 4:i=gn,gn=xo(e.stateNode.containerInfo),kt(t,e),Bt(e),gn=i;break;case 12:kt(t,e),Bt(e);break;case 31:kt(t,e),Bt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,so(e,i)));break;case 13:kt(t,e),Bt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(oo=tt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,so(e,i)));break;case 22:r=e.memoizedState!==null;var w=n!==null&&n.memoizedState!==null,O=Gn,q=ot;if(Gn=O||r,ot=q||w,kt(t,e),ot=q,Gn=O,Bt(e),i&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||w||Gn||ot||Za(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){w=n=t;try{if(u=w.stateNode,r)m=u.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{v=w.stateNode;var P=w.memoizedProps.style,k=P!=null&&P.hasOwnProperty("display")?P.display:null;v.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(ue){Le(w,w.return,ue)}}}else if(t.tag===6){if(n===null){w=t;try{w.stateNode.nodeValue=r?"":w.memoizedProps}catch(ue){Le(w,w.return,ue)}}}else if(t.tag===18){if(n===null){w=t;try{var L=w.stateNode;r?wp(L,!0):wp(w.stateNode,!1)}catch(ue){Le(w,w.return,ue)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,so(e,n))));break;case 19:kt(t,e),Bt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,so(e,i)));break;case 30:break;case 21:break;default:kt(t,e),Bt(e)}}function Bt(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(Tm(i)){n=i;break}i=i.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var r=n.stateNode,u=Eu(e);io(e,u,r);break;case 5:var m=n.stateNode;n.flags&32&&(fi(m,""),n.flags&=-33);var v=Eu(e);io(e,v,m);break;case 3:case 4:var w=n.stateNode.containerInfo,O=Eu(e);Du(e,O,w);break;default:throw Error(o(161))}}catch(q){Le(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Vm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function qn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Mm(e,t.alternate,t),t=t.sibling}function Za(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ha(4,t,t.return),Za(t);break;case 1:Tn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&wm(t,t.return,n),Za(t);break;case 27:qs(t.stateNode);case 26:case 5:Tn(t,t.return),Za(t);break;case 22:t.memoizedState===null&&Za(t);break;case 30:Za(t);break;default:Za(t)}e=e.sibling}}function Xn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,r=e,u=t,m=u.flags;switch(u.tag){case 0:case 11:case 15:Xn(r,u,n),Os(4,u);break;case 1:if(Xn(r,u,n),i=u,r=i.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(O){Le(i,i.return,O)}if(i=u,r=i.updateQueue,r!==null){var v=i.stateNode;try{var w=r.shared.hiddenCallbacks;if(w!==null)for(r.shared.hiddenCallbacks=null,r=0;r<w.length;r++)dh(w[r],v)}catch(O){Le(i,i.return,O)}}n&&m&64&&Cm(u),Vs(u,u.return);break;case 27:Nm(u);case 26:case 5:Xn(r,u,n),n&&i===null&&m&4&&jm(u),Vs(u,u.return);break;case 12:Xn(r,u,n);break;case 31:Xn(r,u,n),n&&m&4&&Rm(r,u);break;case 13:Xn(r,u,n),n&&m&4&&zm(r,u);break;case 22:u.memoizedState===null&&Xn(r,u,n),Vs(u,u.return);break;case 30:break;default:Xn(r,u,n)}t=t.sibling}}function zu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&xs(n))}function Ou(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&xs(e))}function bn(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)_m(e,t,n,i),t=t.sibling}function _m(e,t,n,i){var r=t.flags;switch(t.tag){case 0:case 11:case 15:bn(e,t,n,i),r&2048&&Os(9,t);break;case 1:bn(e,t,n,i);break;case 3:bn(e,t,n,i),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&xs(e)));break;case 12:if(r&2048){bn(e,t,n,i),e=t.stateNode;try{var u=t.memoizedProps,m=u.id,v=u.onPostCommit;typeof v=="function"&&v(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){Le(t,t.return,w)}}else bn(e,t,n,i);break;case 31:bn(e,t,n,i);break;case 13:bn(e,t,n,i);break;case 23:break;case 22:u=t.stateNode,m=t.alternate,t.memoizedState!==null?u._visibility&2?bn(e,t,n,i):_s(e,t):u._visibility&2?bn(e,t,n,i):(u._visibility|=2,zi(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),r&2048&&zu(m,t);break;case 24:bn(e,t,n,i),r&2048&&Ou(t.alternate,t);break;default:bn(e,t,n,i)}}function zi(e,t,n,i,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,m=t,v=n,w=i,O=m.flags;switch(m.tag){case 0:case 11:case 15:zi(u,m,v,w,r),Os(8,m);break;case 23:break;case 22:var q=m.stateNode;m.memoizedState!==null?q._visibility&2?zi(u,m,v,w,r):_s(u,m):(q._visibility|=2,zi(u,m,v,w,r)),r&&O&2048&&zu(m.alternate,m);break;case 24:zi(u,m,v,w,r),r&&O&2048&&Ou(m.alternate,m);break;default:zi(u,m,v,w,r)}t=t.sibling}}function _s(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,r=i.flags;switch(i.tag){case 22:_s(n,i),r&2048&&zu(i.alternate,i);break;case 24:_s(n,i),r&2048&&Ou(i.alternate,i);break;default:_s(n,i)}t=t.sibling}}var ks=8192;function Oi(e,t,n){if(e.subtreeFlags&ks)for(e=e.child;e!==null;)km(e,t,n),e=e.sibling}function km(e,t,n){switch(e.tag){case 26:Oi(e,t,n),e.flags&ks&&e.memoizedState!==null&&Hx(n,gn,e.memoizedState,e.memoizedProps);break;case 5:Oi(e,t,n);break;case 3:case 4:var i=gn;gn=xo(e.stateNode.containerInfo),Oi(e,t,n),gn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=ks,ks=16777216,Oi(e,t,n),ks=i):Oi(e,t,n));break;default:Oi(e,t,n)}}function Bm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Bs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];mt=i,Um(i,e)}Bm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Lm(e),e=e.sibling}function Lm(e){switch(e.tag){case 0:case 11:case 15:Bs(e),e.flags&2048&&ha(9,e,e.return);break;case 3:Bs(e);break;case 12:Bs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,lo(e)):Bs(e);break;default:Bs(e)}}function lo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];mt=i,Um(i,e)}Bm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ha(8,t,t.return),lo(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,lo(t));break;default:lo(t)}e=e.sibling}}function Um(e,t){for(;mt!==null;){var n=mt;switch(n.tag){case 0:case 11:case 15:ha(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:xs(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,mt=i;else e:for(n=e;mt!==null;){i=mt;var r=i.sibling,u=i.return;if(Em(i),i===n){mt=null;break e}if(r!==null){r.return=u,mt=r;break e}mt=u}}}var tx={getCacheForType:function(e){var t=gt(it),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return gt(it).controller.signal}},nx=typeof WeakMap=="function"?WeakMap:Map,_e=0,Ye=null,Ae=null,Ee=0,Be=0,Zt=null,ma=!1,Vi=!1,Vu=!1,Kn=0,We=0,pa=0,Ja=0,_u=0,Jt=0,_i=0,Ls=null,Lt=null,ku=!1,oo=0,Hm=0,ro=1/0,uo=null,ya=null,ct=0,ga=null,ki=null,Qn=0,Bu=0,Lu=null,Gm=null,Us=0,Uu=null;function Pt(){return(_e&2)!==0&&Ee!==0?Ee&-Ee:D.T!==null?Ku():nf()}function Ym(){if(Jt===0)if((Ee&536870912)===0||Re){var e=gl;gl<<=1,(gl&3932160)===0&&(gl=262144),Jt=e}else Jt=536870912;return e=Kt.current,e!==null&&(e.flags|=32),Jt}function Ut(e,t,n){(e===Ye&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&(Bi(e,0),ba(e,Ee,Jt,!1)),ls(e,n),((_e&2)===0||e!==Ye)&&(e===Ye&&((_e&2)===0&&(Ja|=n),We===4&&ba(e,Ee,Jt,!1)),Nn(e))}function qm(e,t,n){if((_e&6)!==0)throw Error(o(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ss(e,t),r=i?sx(e,t):Gu(e,t,!0),u=i;do{if(r===0){Vi&&!i&&ba(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!ax(n)){r=Gu(e,t,!1),u=!1;continue}if(r===2){if(u=t,e.errorRecoveryDisabledLanes&u)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var v=e;r=Ls;var w=v.current.memoizedState.isDehydrated;if(w&&(Bi(v,m).flags|=256),m=Gu(v,m,!1),m!==2){if(Vu&&!w){v.errorRecoveryDisabledLanes|=u,Ja|=u,r=4;break e}u=Lt,Lt=r,u!==null&&(Lt===null?Lt=u:Lt.push.apply(Lt,u))}r=m}if(u=!1,r!==2)continue}}if(r===1){Bi(e,0),ba(e,t,0,!0);break}e:{switch(i=e,u=r,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:ba(i,t,Jt,!ma);break e;case 2:Lt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(r=oo+300-tt(),10<r)){if(ba(i,t,Jt,!ma),vl(i,0,!0)!==0)break e;Qn=t,i.timeoutHandle=xp(Xm.bind(null,i,n,Lt,uo,ku,t,Jt,Ja,_i,ma,u,"Throttled",-0,0),r);break e}Xm(i,n,Lt,uo,ku,t,Jt,Ja,_i,ma,u,null,-0,0)}}break}while(!0);Nn(e)}function Xm(e,t,n,i,r,u,m,v,w,O,q,P,k,L){if(e.timeoutHandle=-1,P=t.subtreeFlags,P&8192||(P&16785408)===16785408){P={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Rn},km(t,u,P);var ue=(u&62914560)===u?oo-tt():(u&4194048)===u?Hm-tt():0;if(ue=Gx(P,ue),ue!==null){Qn=u,e.cancelPendingCommit=ue($m.bind(null,e,t,u,n,i,r,m,v,w,q,P,null,k,L)),ba(e,u,m,!O);return}}$m(e,t,u,n,i,r,m,v,w)}function ax(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var r=n[i],u=r.getSnapshot;r=r.value;try{if(!qt(u(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ba(e,t,n,i){t&=~_u,t&=~Ja,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var r=t;0<r;){var u=31-Yt(r),m=1<<u;i[u]=-1,r&=~m}n!==0&&Id(e,n,t)}function co(){return(_e&6)===0?(Hs(0),!1):!0}function Hu(){if(Ae!==null){if(Be===0)var e=Ae.return;else e=Ae,_n=Ua=null,nu(e),Ai=null,Cs=0,e=Ae;for(;e!==null;)Sm(e.alternate,e),e=e.return;Ae=null}}function Bi(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,wx(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Qn=0,Hu(),Ye=e,Ae=n=On(e.current,null),Ee=t,Be=0,Zt=null,ma=!1,Vi=ss(e,t),Vu=!1,_i=Jt=_u=Ja=pa=We=0,Lt=Ls=null,ku=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var r=31-Yt(i),u=1<<r;t|=e[r],i&=~u}return Kn=t,Rl(),n}function Km(e,t){Ce=null,D.H=Ds,t===Ni||t===Ul?(t=oh(),Be=3):t===Xr?(t=oh(),Be=4):Be=t===bu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Zt=t,Ae===null&&(We=1,Il(e,tn(t,e.current)))}function Qm(){var e=Kt.current;return e===null?!0:(Ee&4194048)===Ee?ln===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===ln:!1}function Zm(){var e=D.H;return D.H=Ds,e===null?Ds:e}function Jm(){var e=D.A;return D.A=tx,e}function fo(){We=4,ma||(Ee&4194048)!==Ee&&Kt.current!==null||(Vi=!0),(pa&134217727)===0&&(Ja&134217727)===0||Ye===null||ba(Ye,Ee,Jt,!1)}function Gu(e,t,n){var i=_e;_e|=2;var r=Zm(),u=Jm();(Ye!==e||Ee!==t)&&(uo=null,Bi(e,t)),t=!1;var m=We;e:do try{if(Be!==0&&Ae!==null){var v=Ae,w=Zt;switch(Be){case 8:Hu(),m=6;break e;case 3:case 2:case 9:case 6:Kt.current===null&&(t=!0);var O=Be;if(Be=0,Zt=null,Li(e,v,w,O),n&&Vi){m=0;break e}break;default:O=Be,Be=0,Zt=null,Li(e,v,w,O)}}ix(),m=We;break}catch(q){Km(e,q)}while(!0);return t&&e.shellSuspendCounter++,_n=Ua=null,_e=i,D.H=r,D.A=u,Ae===null&&(Ye=null,Ee=0,Rl()),m}function ix(){for(;Ae!==null;)Pm(Ae)}function sx(e,t){var n=_e;_e|=2;var i=Zm(),r=Jm();Ye!==e||Ee!==t?(uo=null,ro=tt()+500,Bi(e,t)):Vi=ss(e,t);e:do try{if(Be!==0&&Ae!==null){t=Ae;var u=Zt;t:switch(Be){case 1:Be=0,Zt=null,Li(e,t,u,1);break;case 2:case 9:if(sh(u)){Be=0,Zt=null,Fm(t);break}t=function(){Be!==2&&Be!==9||Ye!==e||(Be=7),Nn(e)},u.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:sh(u)?(Be=0,Zt=null,Fm(t)):(Be=0,Zt=null,Li(e,t,u,7));break;case 5:var m=null;switch(Ae.tag){case 26:m=Ae.memoizedState;case 5:case 27:var v=Ae;if(m?_p(m):v.stateNode.complete){Be=0,Zt=null;var w=v.sibling;if(w!==null)Ae=w;else{var O=v.return;O!==null?(Ae=O,ho(O)):Ae=null}break t}}Be=0,Zt=null,Li(e,t,u,5);break;case 6:Be=0,Zt=null,Li(e,t,u,6);break;case 8:Hu(),We=6;break e;default:throw Error(o(462))}}lx();break}catch(q){Km(e,q)}while(!0);return _n=Ua=null,D.H=i,D.A=r,_e=n,Ae!==null?0:(Ye=null,Ee=0,Rl(),We)}function lx(){for(;Ae!==null&&!pn();)Pm(Ae)}function Pm(e){var t=vm(e.alternate,e,Kn);e.memoizedProps=e.pendingProps,t===null?ho(e):Ae=t}function Fm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=hm(n,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=hm(n,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:nu(t);default:Sm(n,t),t=Ae=Jf(t,Kn),t=vm(n,t,Kn)}e.memoizedProps=e.pendingProps,t===null?ho(e):Ae=t}function Li(e,t,n,i){_n=Ua=null,nu(t),Ai=null,Cs=0;var r=t.return;try{if(Jv(e,r,t,n,Ee)){We=1,Il(e,tn(n,e.current)),Ae=null;return}}catch(u){if(r!==null)throw Ae=r,u;We=1,Il(e,tn(n,e.current)),Ae=null;return}t.flags&32768?(Re||i===1?e=!0:Vi||(Ee&536870912)!==0?e=!1:(ma=e=!0,(i===2||i===9||i===3||i===6)&&(i=Kt.current,i!==null&&i.tag===13&&(i.flags|=16384))),Wm(t,e)):ho(t)}function ho(e){var t=e;do{if((t.flags&32768)!==0){Wm(t,ma);return}e=t.return;var n=Wv(t.alternate,t,Kn);if(n!==null){Ae=n;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);We===0&&(We=5)}function Wm(e,t){do{var n=$v(e.alternate,e);if(n!==null){n.flags&=32767,Ae=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=n}while(e!==null);We=6,Ae=null}function $m(e,t,n,i,r,u,m,v,w){e.cancelPendingCommit=null;do mo();while(ct!==0);if((_e&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=Er,Ub(e,n,u,m,v,w),e===Ye&&(Ae=Ye=null,Ee=0),ki=t,ga=e,Qn=n,Bu=u,Lu=r,Gm=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,cx(pl,function(){return ap(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=D.T,D.T=null,r=G.p,G.p=2,m=_e,_e|=4;try{Iv(e,t,n)}finally{_e=m,G.p=r,D.T=i}}ct=1,Im(),ep(),tp()}}function Im(){if(ct===1){ct=0;var e=ga,t=ki,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null;var i=G.p;G.p=2;var r=_e;_e|=4;try{Om(t,e);var u=Iu,m=Uf(e.containerInfo),v=u.focusedElem,w=u.selectionRange;if(m!==v&&v&&v.ownerDocument&&Lf(v.ownerDocument.documentElement,v)){if(w!==null&&jr(v)){var O=w.start,q=w.end;if(q===void 0&&(q=O),"selectionStart"in v)v.selectionStart=O,v.selectionEnd=Math.min(q,v.value.length);else{var P=v.ownerDocument||document,k=P&&P.defaultView||window;if(k.getSelection){var L=k.getSelection(),ue=v.textContent.length,be=Math.min(w.start,ue),Ge=w.end===void 0?be:Math.min(w.end,ue);!L.extend&&be>Ge&&(m=Ge,Ge=be,be=m);var A=Bf(v,be),T=Bf(v,Ge);if(A&&T&&(L.rangeCount!==1||L.anchorNode!==A.node||L.anchorOffset!==A.offset||L.focusNode!==T.node||L.focusOffset!==T.offset)){var z=P.createRange();z.setStart(A.node,A.offset),L.removeAllRanges(),be>Ge?(L.addRange(z),L.extend(T.node,T.offset)):(z.setEnd(T.node,T.offset),L.addRange(z))}}}}for(P=[],L=v;L=L.parentNode;)L.nodeType===1&&P.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<P.length;v++){var Z=P[v];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}No=!!$u,Iu=$u=null}finally{_e=r,G.p=i,D.T=n}}e.current=t,ct=2}}function ep(){if(ct===2){ct=0;var e=ga,t=ki,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=D.T,D.T=null;var i=G.p;G.p=2;var r=_e;_e|=4;try{Mm(e,t.alternate,t)}finally{_e=r,G.p=i,D.T=n}}ct=3}}function tp(){if(ct===4||ct===3){ct=0,Wt();var e=ga,t=ki,n=Qn,i=Gm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ct=5:(ct=0,ki=ga=null,np(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(ya=null),sr(n),t=t.stateNode,Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(is,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=D.T,r=G.p,G.p=2,D.T=null;try{for(var u=e.onRecoverableError,m=0;m<i.length;m++){var v=i[m];u(v.value,{componentStack:v.stack})}}finally{D.T=t,G.p=r}}(Qn&3)!==0&&mo(),Nn(e),r=e.pendingLanes,(n&261930)!==0&&(r&42)!==0?e===Uu?Us++:(Us=0,Uu=e):Us=0,Hs(0)}}function np(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,xs(t)))}function mo(){return Im(),ep(),tp(),ap()}function ap(){if(ct!==5)return!1;var e=ga,t=Bu;Bu=0;var n=sr(Qn),i=D.T,r=G.p;try{G.p=32>n?32:n,D.T=null,n=Lu,Lu=null;var u=ga,m=Qn;if(ct=0,ki=ga=null,Qn=0,(_e&6)!==0)throw Error(o(331));var v=_e;if(_e|=4,Lm(u.current),_m(u,u.current,m,n),_e=v,Hs(0,!1),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(is,u)}catch{}return!0}finally{G.p=r,D.T=i,np(e,t)}}function ip(e,t,n){t=tn(n,t),t=gu(e.stateNode,t,2),e=ca(e,t,2),e!==null&&(ls(e,2),Nn(e))}function Le(e,t,n){if(e.tag===3)ip(e,e,n);else for(;t!==null;){if(t.tag===3){ip(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ya===null||!ya.has(i))){e=tn(n,e),n=sm(2),i=ca(t,n,2),i!==null&&(lm(n,i,t,e),ls(i,2),Nn(i));break}}t=t.return}}function Yu(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new nx;var r=new Set;i.set(t,r)}else r=i.get(t),r===void 0&&(r=new Set,i.set(t,r));r.has(n)||(Vu=!0,r.add(n),e=ox.bind(null,e,t,n),t.then(e,e))}function ox(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ye===e&&(Ee&n)===n&&(We===4||We===3&&(Ee&62914560)===Ee&&300>tt()-oo?(_e&2)===0&&Bi(e,0):_u|=n,_i===Ee&&(_i=0)),Nn(e)}function sp(e,t){t===0&&(t=$d()),e=ka(e,t),e!==null&&(ls(e,t),Nn(e))}function rx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sp(e,n)}function ux(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(o(314))}i!==null&&i.delete(t),sp(e,n)}function cx(e,t){return ge(e,t)}var po=null,Ui=null,qu=!1,yo=!1,Xu=!1,va=0;function Nn(e){e!==Ui&&e.next===null&&(Ui===null?po=Ui=e:Ui=Ui.next=e),yo=!0,qu||(qu=!0,fx())}function Hs(e,t){if(!Xu&&yo){Xu=!0;do for(var n=!1,i=po;i!==null;){if(e!==0){var r=i.pendingLanes;if(r===0)var u=0;else{var m=i.suspendedLanes,v=i.pingedLanes;u=(1<<31-Yt(42|e)+1)-1,u&=r&~(m&~v),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,up(i,u))}else u=Ee,u=vl(i,i===Ye?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(u&3)===0||ss(i,u)||(n=!0,up(i,u));i=i.next}while(n);Xu=!1}}function dx(){lp()}function lp(){yo=qu=!1;var e=0;va!==0&&Cx()&&(e=va);for(var t=tt(),n=null,i=po;i!==null;){var r=i.next,u=op(i,t);u===0?(i.next=null,n===null?po=r:n.next=r,r===null&&(Ui=n)):(n=i,(e!==0||(u&3)!==0)&&(yo=!0)),i=r}ct!==0&&ct!==5||Hs(e),va!==0&&(va=0)}function op(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var m=31-Yt(u),v=1<<m,w=r[m];w===-1?((v&n)===0||(v&i)!==0)&&(r[m]=Lb(v,t)):w<=t&&(e.expiredLanes|=v),u&=~v}if(t=Ye,n=Ee,n=vl(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Be===2||Be===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&ze(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ss(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&ze(i),sr(n)){case 2:case 8:n=En;break;case 32:n=pl;break;case 268435456:n=Wd;break;default:n=pl}return i=rp.bind(null,e),n=ge(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&ze(i),e.callbackPriority=2,e.callbackNode=null,2}function rp(e,t){if(ct!==0&&ct!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(mo()&&e.callbackNode!==n)return null;var i=Ee;return i=vl(e,e===Ye?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(qm(e,i,t),op(e,tt()),e.callbackNode!=null&&e.callbackNode===n?rp.bind(null,e):null)}function up(e,t){if(mo())return null;qm(e,t,!0)}function fx(){jx(function(){(_e&6)!==0?ge(ea,dx):lp()})}function Ku(){if(va===0){var e=ji;e===0&&(e=yl,yl<<=1,(yl&261888)===0&&(yl=256)),va=e}return va}function cp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:wl(""+e)}function dp(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function hx(e,t,n,i,r){if(t==="submit"&&n&&n.stateNode===r){var u=cp((r[Ot]||null).action),m=i.submitter;m&&(t=(t=m[Ot]||null)?cp(t.formAction):m.getAttribute("formAction"),t!==null&&(u=t,m=null));var v=new Al("action","action",null,i,r);e.push({event:v,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(va!==0){var w=m?dp(r,m):new FormData(r);du(n,{pending:!0,data:w,method:r.method,action:u},null,w)}}else typeof u=="function"&&(v.preventDefault(),w=m?dp(r,m):new FormData(r),du(n,{pending:!0,data:w,method:r.method,action:u},u,w))},currentTarget:r}]})}}for(var Qu=0;Qu<Mr.length;Qu++){var Zu=Mr[Qu],mx=Zu.toLowerCase(),px=Zu[0].toUpperCase()+Zu.slice(1);yn(mx,"on"+px)}yn(Yf,"onAnimationEnd"),yn(qf,"onAnimationIteration"),yn(Xf,"onAnimationStart"),yn("dblclick","onDoubleClick"),yn("focusin","onFocus"),yn("focusout","onBlur"),yn(Rv,"onTransitionRun"),yn(zv,"onTransitionStart"),yn(Ov,"onTransitionCancel"),yn(Kf,"onTransitionEnd"),ci("onMouseEnter",["mouseout","mouseover"]),ci("onMouseLeave",["mouseout","mouseover"]),ci("onPointerEnter",["pointerout","pointerover"]),ci("onPointerLeave",["pointerout","pointerover"]),za("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),za("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),za("onBeforeInput",["compositionend","keypress","textInput","paste"]),za("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),za("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),za("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gs="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(" "),yx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Gs));function fp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var u=void 0;if(t)for(var m=i.length-1;0<=m;m--){var v=i[m],w=v.instance,O=v.currentTarget;if(v=v.listener,w!==u&&r.isPropagationStopped())break e;u=v,r.currentTarget=O;try{u(r)}catch(q){Dl(q)}r.currentTarget=null,u=w}else for(m=0;m<i.length;m++){if(v=i[m],w=v.instance,O=v.currentTarget,v=v.listener,w!==u&&r.isPropagationStopped())break e;u=v,r.currentTarget=O;try{u(r)}catch(q){Dl(q)}r.currentTarget=null,u=w}}}}function Me(e,t){var n=t[lr];n===void 0&&(n=t[lr]=new Set);var i=e+"__bubble";n.has(i)||(hp(t,e,2,!1),n.add(i))}function Ju(e,t,n){var i=0;t&&(i|=4),hp(n,e,i,t)}var go="_reactListening"+Math.random().toString(36).slice(2);function Pu(e){if(!e[go]){e[go]=!0,lf.forEach(function(n){n!=="selectionchange"&&(yx.has(n)||Ju(n,!1,e),Ju(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[go]||(t[go]=!0,Ju("selectionchange",!1,t))}}function hp(e,t,n,i){switch(Yp(t)){case 2:var r=Xx;break;case 8:r=Kx;break;default:r=cc}n=r.bind(null,t,n,e),r=void 0,!pr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),i?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Fu(e,t,n,i,r){var u=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var m=i.tag;if(m===3||m===4){var v=i.stateNode.containerInfo;if(v===r)break;if(m===4)for(m=i.return;m!==null;){var w=m.tag;if((w===3||w===4)&&m.stateNode.containerInfo===r)return;m=m.return}for(;v!==null;){if(m=oi(v),m===null)return;if(w=m.tag,w===5||w===6||w===26||w===27){i=u=m;continue e}v=v.parentNode}}i=i.return}bf(function(){var O=u,q=hr(n),P=[];e:{var k=Qf.get(e);if(k!==void 0){var L=Al,ue=e;switch(e){case"keypress":if(Tl(n)===0)break e;case"keydown":case"keyup":L=uv;break;case"focusin":ue="focus",L=vr;break;case"focusout":ue="blur",L=vr;break;case"beforeblur":case"afterblur":L=vr;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":L=Sf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=Wb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=fv;break;case Yf:case qf:case Xf:L=ev;break;case Kf:L=mv;break;case"scroll":case"scrollend":L=Pb;break;case"wheel":L=yv;break;case"copy":case"cut":case"paste":L=nv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=wf;break;case"toggle":case"beforetoggle":L=bv}var be=(t&4)!==0,Ge=!be&&(e==="scroll"||e==="scrollend"),A=be?k!==null?k+"Capture":null:k;be=[];for(var T=O,z;T!==null;){var Z=T;if(z=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||z===null||A===null||(Z=us(T,A),Z!=null&&be.push(Ys(T,Z,z))),Ge)break;T=T.return}0<be.length&&(k=new L(k,ue,null,n,q),P.push({event:k,listeners:be}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",k&&n!==fr&&(ue=n.relatedTarget||n.fromElement)&&(oi(ue)||ue[li]))break e;if((L||k)&&(k=q.window===q?q:(k=q.ownerDocument)?k.defaultView||k.parentWindow:window,L?(ue=n.relatedTarget||n.toElement,L=O,ue=ue?oi(ue):null,ue!==null&&(Ge=h(ue),be=ue.tag,ue!==Ge||be!==5&&be!==27&&be!==6)&&(ue=null)):(L=null,ue=O),L!==ue)){if(be=Sf,Z="onMouseLeave",A="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(be=wf,Z="onPointerLeave",A="onPointerEnter",T="pointer"),Ge=L==null?k:rs(L),z=ue==null?k:rs(ue),k=new be(Z,T+"leave",L,n,q),k.target=Ge,k.relatedTarget=z,Z=null,oi(q)===O&&(be=new be(A,T+"enter",ue,n,q),be.target=z,be.relatedTarget=Ge,Z=be),Ge=Z,L&&ue)t:{for(be=gx,A=L,T=ue,z=0,Z=A;Z;Z=be(Z))z++;Z=0;for(var ye=T;ye;ye=be(ye))Z++;for(;0<z-Z;)A=be(A),z--;for(;0<Z-z;)T=be(T),Z--;for(;z--;){if(A===T||T!==null&&A===T.alternate){be=A;break t}A=be(A),T=be(T)}be=null}else be=null;L!==null&&mp(P,k,L,be,!1),ue!==null&&Ge!==null&&mp(P,Ge,ue,be,!0)}}e:{if(k=O?rs(O):window,L=k.nodeName&&k.nodeName.toLowerCase(),L==="select"||L==="input"&&k.type==="file")var Oe=Rf;else if(Ef(k))if(zf)Oe=Mv;else{Oe=Nv;var fe=Tv}else L=k.nodeName,!L||L.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?O&&dr(O.elementType)&&(Oe=Rf):Oe=Av;if(Oe&&(Oe=Oe(e,O))){Df(P,Oe,n,q);break e}fe&&fe(e,k,O),e==="focusout"&&O&&k.type==="number"&&O.memoizedProps.value!=null&&cr(k,"number",k.value)}switch(fe=O?rs(O):window,e){case"focusin":(Ef(fe)||fe.contentEditable==="true")&&(yi=fe,Tr=O,gs=null);break;case"focusout":gs=Tr=yi=null;break;case"mousedown":Nr=!0;break;case"contextmenu":case"mouseup":case"dragend":Nr=!1,Hf(P,n,q);break;case"selectionchange":if(Dv)break;case"keydown":case"keyup":Hf(P,n,q)}var je;if(Sr)e:{switch(e){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else pi?Af(e,n)&&(De="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(De="onCompositionStart");De&&(jf&&n.locale!=="ko"&&(pi||De!=="onCompositionStart"?De==="onCompositionEnd"&&pi&&(je=vf()):(aa=q,yr="value"in aa?aa.value:aa.textContent,pi=!0)),fe=bo(O,De),0<fe.length&&(De=new Cf(De,e,null,n,q),P.push({event:De,listeners:fe}),je?De.data=je:(je=Mf(n),je!==null&&(De.data=je)))),(je=xv?Sv(e,n):Cv(e,n))&&(De=bo(O,"onBeforeInput"),0<De.length&&(fe=new Cf("onBeforeInput","beforeinput",null,n,q),P.push({event:fe,listeners:De}),fe.data=je)),hx(P,e,O,n,q)}fp(P,t)})}function Ys(e,t,n){return{instance:e,listener:t,currentTarget:n}}function bo(e,t){for(var n=t+"Capture",i=[];e!==null;){var r=e,u=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||u===null||(r=us(e,n),r!=null&&i.unshift(Ys(e,r,u)),r=us(e,t),r!=null&&i.push(Ys(e,r,u))),e.tag===3)return i;e=e.return}return[]}function gx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function mp(e,t,n,i,r){for(var u=t._reactName,m=[];n!==null&&n!==i;){var v=n,w=v.alternate,O=v.stateNode;if(v=v.tag,w!==null&&w===i)break;v!==5&&v!==26&&v!==27||O===null||(w=O,r?(O=us(n,u),O!=null&&m.unshift(Ys(n,O,w))):r||(O=us(n,u),O!=null&&m.push(Ys(n,O,w)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var bx=/\r\n?/g,vx=/\u0000|\uFFFD/g;function pp(e){return(typeof e=="string"?e:""+e).replace(bx,`
9
- `).replace(vx,"")}function yp(e,t){return t=pp(t),pp(e)===t}function He(e,t,n,i,r,u){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||fi(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&fi(e,""+i);break;case"className":Sl(e,"class",i);break;case"tabIndex":Sl(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Sl(e,n,i);break;case"style":yf(e,i,u);break;case"data":if(t!=="object"){Sl(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=wl(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(t!=="input"&&He(e,t,"name",r.name,r,null),He(e,t,"formEncType",r.formEncType,r,null),He(e,t,"formMethod",r.formMethod,r,null),He(e,t,"formTarget",r.formTarget,r,null)):(He(e,t,"encType",r.encType,r,null),He(e,t,"method",r.method,r,null),He(e,t,"target",r.target,r,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=wl(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Rn);break;case"onScroll":i!=null&&Me("scroll",e);break;case"onScrollEnd":i!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=wl(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":Me("beforetoggle",e),Me("toggle",e),xl(e,"popover",i);break;case"xlinkActuate":Dn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Dn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Dn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Dn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Dn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Dn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Dn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Dn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Dn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":xl(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Zb.get(n)||n,xl(e,n,i))}}function Wu(e,t,n,i,r,u){switch(n){case"style":yf(e,i,u);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"children":typeof i=="string"?fi(e,i):(typeof i=="number"||typeof i=="bigint")&&fi(e,""+i);break;case"onScroll":i!=null&&Me("scroll",e);break;case"onScrollEnd":i!=null&&Me("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Rn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!of.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),u=e[Ot]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,r),typeof i=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,r);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):xl(e,n,i)}}}function vt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var i=!1,r=!1,u;for(u in n)if(n.hasOwnProperty(u)){var m=n[u];if(m!=null)switch(u){case"src":i=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:He(e,t,u,m,n,null)}}r&&He(e,t,"srcSet",n.srcSet,n,null),i&&He(e,t,"src",n.src,n,null);return;case"input":Me("invalid",e);var v=u=m=r=null,w=null,O=null;for(i in n)if(n.hasOwnProperty(i)){var q=n[i];if(q!=null)switch(i){case"name":r=q;break;case"type":m=q;break;case"checked":w=q;break;case"defaultChecked":O=q;break;case"value":u=q;break;case"defaultValue":v=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(o(137,t));break;default:He(e,t,i,q,n,null)}}ff(e,u,v,w,O,m,r,!1);return;case"select":Me("invalid",e),i=m=u=null;for(r in n)if(n.hasOwnProperty(r)&&(v=n[r],v!=null))switch(r){case"value":u=v;break;case"defaultValue":m=v;break;case"multiple":i=v;default:He(e,t,r,v,n,null)}t=u,n=m,e.multiple=!!i,t!=null?di(e,!!i,t,!1):n!=null&&di(e,!!i,n,!0);return;case"textarea":Me("invalid",e),u=r=i=null;for(m in n)if(n.hasOwnProperty(m)&&(v=n[m],v!=null))switch(m){case"value":i=v;break;case"defaultValue":r=v;break;case"children":u=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(o(91));break;default:He(e,t,m,v,n,null)}mf(e,i,r,u);return;case"option":for(w in n)if(n.hasOwnProperty(w)&&(i=n[w],i!=null))switch(w){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:He(e,t,w,i,n,null)}return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(i=0;i<Gs.length;i++)Me(Gs[i],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in n)if(n.hasOwnProperty(O)&&(i=n[O],i!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:He(e,t,O,i,n,null)}return;default:if(dr(t)){for(q in n)n.hasOwnProperty(q)&&(i=n[q],i!==void 0&&Wu(e,t,q,i,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(i=n[v],i!=null&&He(e,t,v,i,n,null))}function xx(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,u=null,m=null,v=null,w=null,O=null,q=null;for(L in n){var P=n[L];if(n.hasOwnProperty(L)&&P!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":w=P;default:i.hasOwnProperty(L)||He(e,t,L,null,i,P)}}for(var k in i){var L=i[k];if(P=n[k],i.hasOwnProperty(k)&&(L!=null||P!=null))switch(k){case"type":u=L;break;case"name":r=L;break;case"checked":O=L;break;case"defaultChecked":q=L;break;case"value":m=L;break;case"defaultValue":v=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,t));break;default:L!==P&&He(e,t,k,L,i,P)}}ur(e,m,v,w,O,q,u,r);return;case"select":L=m=v=k=null;for(u in n)if(w=n[u],n.hasOwnProperty(u)&&w!=null)switch(u){case"value":break;case"multiple":L=w;default:i.hasOwnProperty(u)||He(e,t,u,null,i,w)}for(r in i)if(u=i[r],w=n[r],i.hasOwnProperty(r)&&(u!=null||w!=null))switch(r){case"value":k=u;break;case"defaultValue":v=u;break;case"multiple":m=u;default:u!==w&&He(e,t,r,u,i,w)}t=v,n=m,i=L,k!=null?di(e,!!n,k,!1):!!i!=!!n&&(t!=null?di(e,!!n,t,!0):di(e,!!n,n?[]:"",!1));return;case"textarea":L=k=null;for(v in n)if(r=n[v],n.hasOwnProperty(v)&&r!=null&&!i.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:He(e,t,v,null,i,r)}for(m in i)if(r=i[m],u=n[m],i.hasOwnProperty(m)&&(r!=null||u!=null))switch(m){case"value":k=r;break;case"defaultValue":L=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:r!==u&&He(e,t,m,r,i,u)}hf(e,k,L);return;case"option":for(var ue in n)if(k=n[ue],n.hasOwnProperty(ue)&&k!=null&&!i.hasOwnProperty(ue))switch(ue){case"selected":e.selected=!1;break;default:He(e,t,ue,null,i,k)}for(w in i)if(k=i[w],L=n[w],i.hasOwnProperty(w)&&k!==L&&(k!=null||L!=null))switch(w){case"selected":e.selected=k&&typeof k!="function"&&typeof k!="symbol";break;default:He(e,t,w,k,i,L)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var be in n)k=n[be],n.hasOwnProperty(be)&&k!=null&&!i.hasOwnProperty(be)&&He(e,t,be,null,i,k);for(O in i)if(k=i[O],L=n[O],i.hasOwnProperty(O)&&k!==L&&(k!=null||L!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(o(137,t));break;default:He(e,t,O,k,i,L)}return;default:if(dr(t)){for(var Ge in n)k=n[Ge],n.hasOwnProperty(Ge)&&k!==void 0&&!i.hasOwnProperty(Ge)&&Wu(e,t,Ge,void 0,i,k);for(q in i)k=i[q],L=n[q],!i.hasOwnProperty(q)||k===L||k===void 0&&L===void 0||Wu(e,t,q,k,i,L);return}}for(var A in n)k=n[A],n.hasOwnProperty(A)&&k!=null&&!i.hasOwnProperty(A)&&He(e,t,A,null,i,k);for(P in i)k=i[P],L=n[P],!i.hasOwnProperty(P)||k===L||k==null&&L==null||He(e,t,P,k,i,L)}function gp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Sx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var r=n[i],u=r.transferSize,m=r.initiatorType,v=r.duration;if(u&&v&&gp(m)){for(m=0,v=r.responseEnd,i+=1;i<n.length;i++){var w=n[i],O=w.startTime;if(O>v)break;var q=w.transferSize,P=w.initiatorType;q&&gp(P)&&(w=w.responseEnd,m+=q*(w<v?1:(v-O)/(w-O)))}if(--i,t+=8*(u+m)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var $u=null,Iu=null;function vo(e){return e.nodeType===9?e:e.ownerDocument}function bp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function vp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ec(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var tc=null;function Cx(){var e=window.event;return e&&e.type==="popstate"?e===tc?!1:(tc=e,!0):(tc=null,!1)}var xp=typeof setTimeout=="function"?setTimeout:void 0,wx=typeof clearTimeout=="function"?clearTimeout:void 0,Sp=typeof Promise=="function"?Promise:void 0,jx=typeof queueMicrotask=="function"?queueMicrotask:typeof Sp<"u"?function(e){return Sp.resolve(null).then(e).catch(Tx)}:xp;function Tx(e){setTimeout(function(){throw e})}function xa(e){return e==="head"}function Cp(e,t){var n=t,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(r),qi(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")qs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,qs(n);for(var u=n.firstChild;u;){var m=u.nextSibling,v=u.nodeName;u[os]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=m}}else n==="body"&&qs(e.ownerDocument.body);n=r}while(n);qi(t)}function wp(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function nc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":nc(n),or(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Nx(e,t,n,i){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[os])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=on(e.nextSibling),e===null)break}return null}function Ax(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=on(e.nextSibling),e===null))return null;return e}function jp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=on(e.nextSibling),e===null))return null;return e}function ac(e){return e.data==="$?"||e.data==="$~"}function ic(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Mx(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var sc=null;function Tp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return on(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Np(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Ap(e,t,n){switch(t=vo(n),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function qs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);or(e)}var rn=new Map,Mp=new Set;function xo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Zn=G.d;G.d={f:Ex,r:Dx,D:Rx,C:zx,L:Ox,m:Vx,X:kx,S:_x,M:Bx};function Ex(){var e=Zn.f(),t=co();return e||t}function Dx(e){var t=ri(e);t!==null&&t.tag===5&&t.type==="form"?Kh(t):Zn.r(e)}var Hi=typeof document>"u"?null:document;function Ep(e,t,n){var i=Hi;if(i&&typeof t=="string"&&t){var r=It(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),Mp.has(r)||(Mp.add(r),e={rel:e,crossOrigin:n,href:t},i.querySelector(r)===null&&(t=i.createElement("link"),vt(t,"link",e),ht(t),i.head.appendChild(t)))}}function Rx(e){Zn.D(e),Ep("dns-prefetch",e,null)}function zx(e,t){Zn.C(e,t),Ep("preconnect",e,t)}function Ox(e,t,n){Zn.L(e,t,n);var i=Hi;if(i&&e&&t){var r='link[rel="preload"][as="'+It(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+It(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+It(n.imageSizes)+'"]')):r+='[href="'+It(e)+'"]';var u=r;switch(t){case"style":u=Gi(e);break;case"script":u=Yi(e)}rn.has(u)||(e=x({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),rn.set(u,e),i.querySelector(r)!==null||t==="style"&&i.querySelector(Xs(u))||t==="script"&&i.querySelector(Ks(u))||(t=i.createElement("link"),vt(t,"link",e),ht(t),i.head.appendChild(t)))}}function Vx(e,t){Zn.m(e,t);var n=Hi;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+It(i)+'"][href="'+It(e)+'"]',u=r;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Yi(e)}if(!rn.has(u)&&(e=x({rel:"modulepreload",href:e},t),rn.set(u,e),n.querySelector(r)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ks(u)))return}i=n.createElement("link"),vt(i,"link",e),ht(i),n.head.appendChild(i)}}}function _x(e,t,n){Zn.S(e,t,n);var i=Hi;if(i&&e){var r=ui(i).hoistableStyles,u=Gi(e);t=t||"default";var m=r.get(u);if(!m){var v={loading:0,preload:null};if(m=i.querySelector(Xs(u)))v.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},n),(n=rn.get(u))&&lc(e,n);var w=m=i.createElement("link");ht(w),vt(w,"link",e),w._p=new Promise(function(O,q){w.onload=O,w.onerror=q}),w.addEventListener("load",function(){v.loading|=1}),w.addEventListener("error",function(){v.loading|=2}),v.loading|=4,So(m,t,i)}m={type:"stylesheet",instance:m,count:1,state:v},r.set(u,m)}}}function kx(e,t){Zn.X(e,t);var n=Hi;if(n&&e){var i=ui(n).hoistableScripts,r=Yi(e),u=i.get(r);u||(u=n.querySelector(Ks(r)),u||(e=x({src:e,async:!0},t),(t=rn.get(r))&&oc(e,t),u=n.createElement("script"),ht(u),vt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(r,u))}}function Bx(e,t){Zn.M(e,t);var n=Hi;if(n&&e){var i=ui(n).hoistableScripts,r=Yi(e),u=i.get(r);u||(u=n.querySelector(Ks(r)),u||(e=x({src:e,async:!0,type:"module"},t),(t=rn.get(r))&&oc(e,t),u=n.createElement("script"),ht(u),vt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(r,u))}}function Dp(e,t,n,i){var r=(r=ve.current)?xo(r):null;if(!r)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Gi(n.href),n=ui(r).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Gi(n.href);var u=ui(r).hoistableStyles,m=u.get(e);if(m||(r=r.ownerDocument||r,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,m),(u=r.querySelector(Xs(e)))&&!u._p&&(m.instance=u,m.state.loading=5),rn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},rn.set(e,n),u||Lx(r,e,n,m.state))),t&&i===null)throw Error(o(528,""));return m}if(t&&i!==null)throw Error(o(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Yi(n),n=ui(r).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Gi(e){return'href="'+It(e)+'"'}function Xs(e){return'link[rel="stylesheet"]['+e+"]"}function Rp(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function Lx(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),vt(t,"link",n),ht(t),e.head.appendChild(t))}function Yi(e){return'[src="'+It(e)+'"]'}function Ks(e){return"script[async]"+e}function zp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+It(n.href)+'"]');if(i)return t.instance=i,ht(i),i;var r=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),ht(i),vt(i,"style",r),So(i,n.precedence,e),t.instance=i;case"stylesheet":r=Gi(n.href);var u=e.querySelector(Xs(r));if(u)return t.state.loading|=4,t.instance=u,ht(u),u;i=Rp(n),(r=rn.get(r))&&lc(i,r),u=(e.ownerDocument||e).createElement("link"),ht(u);var m=u;return m._p=new Promise(function(v,w){m.onload=v,m.onerror=w}),vt(u,"link",i),t.state.loading|=4,So(u,n.precedence,e),t.instance=u;case"script":return u=Yi(n.src),(r=e.querySelector(Ks(u)))?(t.instance=r,ht(r),r):(i=n,(r=rn.get(u))&&(i=x({},n),oc(i,r)),e=e.ownerDocument||e,r=e.createElement("script"),ht(r),vt(r,"link",i),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,So(i,n.precedence,e));return t.instance}function So(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=i.length?i[i.length-1]:null,u=r,m=0;m<i.length;m++){var v=i[m];if(v.dataset.precedence===t)u=v;else if(u!==r)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function lc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function oc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Co=null;function Op(e,t,n){if(Co===null){var i=new Map,r=Co=new Map;r.set(n,i)}else r=Co,i=r.get(n),i||(i=new Map,r.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var u=n[r];if(!(u[os]||u[pt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var m=u.getAttribute(t)||"";m=e+m;var v=i.get(m);v?v.push(u):i.set(m,[u])}}return i}function Vp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Ux(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function _p(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Hx(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=Gi(i.href),u=t.querySelector(Xs(r));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=wo.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,ht(u);return}u=t.ownerDocument||t,i=Rp(i),(r=rn.get(r))&&lc(i,r),u=u.createElement("link"),ht(u);var m=u;m._p=new Promise(function(v,w){m.onload=v,m.onerror=w}),vt(u,"link",i),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=wo.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var rc=0;function Gx(e,t){return e.stylesheets&&e.count===0&&To(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&To(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&rc===0&&(rc=62500*Sx());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&To(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>rc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(r)}}:null}function wo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)To(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var jo=null;function To(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,jo=new Map,t.forEach(Yx,e),jo=null,wo.call(e))}function Yx(e,t){if(!(t.state.loading&4)){var n=jo.get(e);if(n)var i=n.get(null);else{n=new Map,jo.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<r.length;u++){var m=r[u];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),i=m)}i&&n.set(null,i)}r=t.instance,m=r.getAttribute("data-precedence"),u=n.get(m)||i,u===i&&n.set(null,r),n.set(m,r),this.count++,i=wo.bind(this),r.addEventListener("load",i),r.addEventListener("error",i),u?u.parentNode.insertBefore(r,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Qs={$$typeof:Y,Provider:null,Consumer:null,_currentValue:M,_currentValue2:M,_threadCount:0};function qx(e,t,n,i,r,u,m,v,w){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ar(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ar(0),this.hiddenUpdates=ar(null),this.identifierPrefix=i,this.onUncaughtError=r,this.onCaughtError=u,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function kp(e,t,n,i,r,u,m,v,w,O,q,P){return e=new qx(e,t,n,m,w,O,q,P,v),t=1,u===!0&&(t|=24),u=Xt(3,null,null,t),e.current=u,u.stateNode=e,t=Gr(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:i,isDehydrated:n,cache:t},Kr(u),e}function Bp(e){return e?(e=vi,e):vi}function Lp(e,t,n,i,r,u){r=Bp(r),i.context===null?i.context=r:i.pendingContext=r,i=ua(t),i.payload={element:n},u=u===void 0?null:u,u!==null&&(i.callback=u),n=ca(e,i,t),n!==null&&(Ut(n,e,t),js(n,e,t))}function Up(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function uc(e,t){Up(e,t),(e=e.alternate)&&Up(e,t)}function Hp(e){if(e.tag===13||e.tag===31){var t=ka(e,67108864);t!==null&&Ut(t,e,67108864),uc(e,67108864)}}function Gp(e){if(e.tag===13||e.tag===31){var t=Pt();t=ir(t);var n=ka(e,t);n!==null&&Ut(n,e,t),uc(e,t)}}var No=!0;function Xx(e,t,n,i){var r=D.T;D.T=null;var u=G.p;try{G.p=2,cc(e,t,n,i)}finally{G.p=u,D.T=r}}function Kx(e,t,n,i){var r=D.T;D.T=null;var u=G.p;try{G.p=8,cc(e,t,n,i)}finally{G.p=u,D.T=r}}function cc(e,t,n,i){if(No){var r=dc(i);if(r===null)Fu(e,t,i,Ao,n),qp(e,i);else if(Zx(r,e,t,n,i))i.stopPropagation();else if(qp(e,i),t&4&&-1<Qx.indexOf(e)){for(;r!==null;){var u=ri(r);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var m=Ra(u.pendingLanes);if(m!==0){var v=u;for(v.pendingLanes|=2,v.entangledLanes|=2;m;){var w=1<<31-Yt(m);v.entanglements[1]|=w,m&=~w}Nn(u),(_e&6)===0&&(ro=tt()+500,Hs(0))}}break;case 31:case 13:v=ka(u,2),v!==null&&Ut(v,u,2),co(),uc(u,2)}if(u=dc(i),u===null&&Fu(e,t,i,Ao,n),u===r)break;r=u}r!==null&&i.stopPropagation()}else Fu(e,t,i,null,n)}}function dc(e){return e=hr(e),fc(e)}var Ao=null;function fc(e){if(Ao=null,e=oi(e),e!==null){var t=h(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=f(t),e!==null)return e;e=null}else if(n===31){if(e=g(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 Ao=e,null}function Yp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(zt()){case ea:return 2;case En:return 8;case pl:case zb:return 32;case Wd:return 268435456;default:return 32}default:return 32}}var hc=!1,Sa=null,Ca=null,wa=null,Zs=new Map,Js=new Map,ja=[],Qx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function qp(e,t){switch(e){case"focusin":case"focusout":Sa=null;break;case"dragenter":case"dragleave":Ca=null;break;case"mouseover":case"mouseout":wa=null;break;case"pointerover":case"pointerout":Zs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Js.delete(t.pointerId)}}function Ps(e,t,n,i,r,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:u,targetContainers:[r]},t!==null&&(t=ri(t),t!==null&&Hp(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function Zx(e,t,n,i,r){switch(t){case"focusin":return Sa=Ps(Sa,e,t,n,i,r),!0;case"dragenter":return Ca=Ps(Ca,e,t,n,i,r),!0;case"mouseover":return wa=Ps(wa,e,t,n,i,r),!0;case"pointerover":var u=r.pointerId;return Zs.set(u,Ps(Zs.get(u)||null,e,t,n,i,r)),!0;case"gotpointercapture":return u=r.pointerId,Js.set(u,Ps(Js.get(u)||null,e,t,n,i,r)),!0}return!1}function Xp(e){var t=oi(e.target);if(t!==null){var n=h(t);if(n!==null){if(t=n.tag,t===13){if(t=f(n),t!==null){e.blockedOn=t,af(e.priority,function(){Gp(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,af(e.priority,function(){Gp(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 Mo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dc(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);fr=i,n.target.dispatchEvent(i),fr=null}else return t=ri(n),t!==null&&Hp(t),e.blockedOn=n,!1;t.shift()}return!0}function Kp(e,t,n){Mo(e)&&n.delete(t)}function Jx(){hc=!1,Sa!==null&&Mo(Sa)&&(Sa=null),Ca!==null&&Mo(Ca)&&(Ca=null),wa!==null&&Mo(wa)&&(wa=null),Zs.forEach(Kp),Js.forEach(Kp)}function Eo(e,t){e.blockedOn===t&&(e.blockedOn=null,hc||(hc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Jx)))}var Do=null;function Qp(e){Do!==e&&(Do=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Do===e&&(Do=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],r=e[t+2];if(typeof i!="function"){if(fc(i||n)===null)continue;break}var u=ri(n);u!==null&&(e.splice(t,3),t-=3,du(u,{pending:!0,data:r,method:n.method,action:i},i,r))}}))}function qi(e){function t(w){return Eo(w,e)}Sa!==null&&Eo(Sa,e),Ca!==null&&Eo(Ca,e),wa!==null&&Eo(wa,e),Zs.forEach(t),Js.forEach(t);for(var n=0;n<ja.length;n++){var i=ja[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<ja.length&&(n=ja[0],n.blockedOn===null);)Xp(n),n.blockedOn===null&&ja.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var r=n[i],u=n[i+1],m=r[Ot]||null;if(typeof u=="function")m||Qp(n);else if(m){var v=null;if(u&&u.hasAttribute("formAction")){if(r=u,m=u[Ot]||null)v=m.formAction;else if(fc(r)!==null)continue}else v=m.action;typeof v=="function"?n[i+1]=v:(n.splice(i,3),i-=3),Qp(n)}}}function Zp(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(m){return r=m})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function mc(e){this._internalRoot=e}Ro.prototype.render=mc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,i=Pt();Lp(n,i,e,t,null,null)},Ro.prototype.unmount=mc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lp(e.current,2,null,e,null,null),co(),t[li]=null}};function Ro(e){this._internalRoot=e}Ro.prototype.unstable_scheduleHydration=function(e){if(e){var t=nf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ja.length&&t!==0&&t<ja[n].priority;n++);ja.splice(n,0,e),n===0&&Xp(e)}};var Jp=s.version;if(Jp!=="19.2.1")throw Error(o(527,Jp,"19.2.1"));G.findDOMNode=function(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=p(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var Px={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zo.isDisabled&&zo.supportsFiber)try{is=zo.inject(Px),Gt=zo}catch{}}return Ws.createRoot=function(e,t){if(!d(e))throw Error(o(299));var n=!1,i="",r=tm,u=nm,m=am;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=kp(e,1,!1,null,null,n,i,null,r,u,m,Zp),e[li]=t.current,Pu(e),new mc(t)},Ws.hydrateRoot=function(e,t,n){if(!d(e))throw Error(o(299));var i=!1,r="",u=tm,m=nm,v=am,w=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(w=n.formState)),t=kp(e,1,!0,t,n??null,i,r,w,u,m,v,Zp),t.context=Bp(null),n=t.current,i=Pt(),i=ir(i),r=ua(i),r.callback=null,ca(n,r,i),n=i,t.current.lanes=n,ls(t,n),Nn(t),e[li]=t.current,Pu(e),new Ro(t)},Ws.version="19.2.1",Ws}var iy;function s1(){if(iy)return gc.exports;iy=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(s){console.error(s)}}return a(),gc.exports=i1(),gc.exports}var l1=s1();const yd=j.createContext({});function gd(a){const s=j.useRef(null);return s.current===null&&(s.current=a()),s.current}const bd=typeof window<"u",Ag=bd?j.useLayoutEffect:j.useEffect,Io=j.createContext(null);function vd(a,s){a.indexOf(s)===-1&&a.push(s)}function xd(a,s){const l=a.indexOf(s);l>-1&&a.splice(l,1)}const Wn=(a,s,l)=>l>s?s:l<a?a:l;let Sd=()=>{};const $n={},Mg=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function Eg(a){return typeof a=="object"&&a!==null}const Dg=a=>/^0[^.\s]+$/u.test(a);function Cd(a){let s;return()=>(s===void 0&&(s=a()),s)}const dn=a=>a,o1=(a,s)=>l=>s(a(l)),dl=(...a)=>a.reduce(o1),ll=(a,s,l)=>{const o=s-a;return o===0?1:(l-a)/o};class wd{constructor(){this.subscriptions=[]}add(s){return vd(this.subscriptions,s),()=>xd(this.subscriptions,s)}notify(s,l,o){const d=this.subscriptions.length;if(d)if(d===1)this.subscriptions[0](s,l,o);else for(let h=0;h<d;h++){const f=this.subscriptions[h];f&&f(s,l,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const An=a=>a*1e3,cn=a=>a/1e3;function Rg(a,s){return s?a*(1e3/s):0}const zg=(a,s,l)=>(((1-3*l+3*s)*a+(3*l-6*s))*a+3*s)*a,r1=1e-7,u1=12;function c1(a,s,l,o,d){let h,f,g=0;do f=s+(l-s)/2,h=zg(f,o,d)-a,h>0?l=f:s=f;while(Math.abs(h)>r1&&++g<u1);return f}function fl(a,s,l,o){if(a===s&&l===o)return dn;const d=h=>c1(h,0,1,a,l);return h=>h===0||h===1?h:zg(d(h),s,o)}const Og=a=>s=>s<=.5?a(2*s)/2:(2-a(2*(1-s)))/2,Vg=a=>s=>1-a(1-s),_g=fl(.33,1.53,.69,.99),jd=Vg(_g),kg=Og(jd),Bg=a=>(a*=2)<1?.5*jd(a):.5*(2-Math.pow(2,-10*(a-1))),Td=a=>1-Math.sin(Math.acos(a)),Lg=Vg(Td),Ug=Og(Td),d1=fl(.42,0,1,1),f1=fl(0,0,.58,1),Hg=fl(.42,0,.58,1),h1=a=>Array.isArray(a)&&typeof a[0]!="number",Gg=a=>Array.isArray(a)&&typeof a[0]=="number",m1={linear:dn,easeIn:d1,easeInOut:Hg,easeOut:f1,circIn:Td,circInOut:Ug,circOut:Lg,backIn:jd,backInOut:kg,backOut:_g,anticipate:Bg},p1=a=>typeof a=="string",sy=a=>{if(Gg(a)){Sd(a.length===4);const[s,l,o,d]=a;return fl(s,l,o,d)}else if(p1(a))return m1[a];return a},Oo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function y1(a,s){let l=new Set,o=new Set,d=!1,h=!1;const f=new WeakSet;let g={delta:0,timestamp:0,isProcessing:!1};function y(b){f.has(b)&&(p.schedule(b),a()),b(g)}const p={schedule:(b,x=!1,S=!1)=>{const _=S&&d?l:o;return x&&f.add(b),_.has(b)||_.add(b),b},cancel:b=>{o.delete(b),f.delete(b)},process:b=>{if(g=b,d){h=!0;return}d=!0,[l,o]=[o,l],l.forEach(y),l.clear(),d=!1,h&&(h=!1,p.process(b))}};return p}const g1=40;function Yg(a,s){let l=!1,o=!0;const d={delta:0,timestamp:0,isProcessing:!1},h=()=>l=!0,f=Oo.reduce((Y,$)=>(Y[$]=y1(h),Y),{}),{setup:g,read:y,resolveKeyframes:p,preUpdate:b,update:x,preRender:S,render:N,postRender:_}=f,V=()=>{const Y=$n.useManualTiming?d.timestamp:performance.now();l=!1,$n.useManualTiming||(d.delta=o?1e3/60:Math.max(Math.min(Y-d.timestamp,g1),1)),d.timestamp=Y,d.isProcessing=!0,g.process(d),y.process(d),p.process(d),b.process(d),x.process(d),S.process(d),N.process(d),_.process(d),d.isProcessing=!1,l&&s&&(o=!1,a(V))},H=()=>{l=!0,o=!0,d.isProcessing||a(V)};return{schedule:Oo.reduce((Y,$)=>{const Q=f[$];return Y[$]=(W,X=!1,E=!1)=>(l||H(),Q.schedule(W,X,E)),Y},{}),cancel:Y=>{for(let $=0;$<Oo.length;$++)f[Oo[$]].cancel(Y)},state:d,steps:f}}const{schedule:Je,cancel:Ma,state:Tt,steps:Sc}=Yg(typeof requestAnimationFrame<"u"?requestAnimationFrame:dn,!0);let Go;function b1(){Go=void 0}const Ht={now:()=>(Go===void 0&&Ht.set(Tt.isProcessing||$n.useManualTiming?Tt.timestamp:performance.now()),Go),set:a=>{Go=a,queueMicrotask(b1)}},qg=a=>s=>typeof s=="string"&&s.startsWith(a),Xg=qg("--"),v1=qg("var(--"),Nd=a=>v1(a)?x1.test(a.split("/*")[0].trim()):!1,x1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ii={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},ol={...Ii,transform:a=>Wn(0,1,a)},Vo={...Ii,default:1},nl=a=>Math.round(a*1e5)/1e5,Ad=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function S1(a){return a==null}const C1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Md=(a,s)=>l=>!!(typeof l=="string"&&C1.test(l)&&l.startsWith(a)||s&&!S1(l)&&Object.prototype.hasOwnProperty.call(l,s)),Kg=(a,s,l)=>o=>{if(typeof o!="string")return o;const[d,h,f,g]=o.match(Ad);return{[a]:parseFloat(d),[s]:parseFloat(h),[l]:parseFloat(f),alpha:g!==void 0?parseFloat(g):1}},w1=a=>Wn(0,255,a),Cc={...Ii,transform:a=>Math.round(w1(a))},ei={test:Md("rgb","red"),parse:Kg("red","green","blue"),transform:({red:a,green:s,blue:l,alpha:o=1})=>"rgba("+Cc.transform(a)+", "+Cc.transform(s)+", "+Cc.transform(l)+", "+nl(ol.transform(o))+")"};function j1(a){let s="",l="",o="",d="";return a.length>5?(s=a.substring(1,3),l=a.substring(3,5),o=a.substring(5,7),d=a.substring(7,9)):(s=a.substring(1,2),l=a.substring(2,3),o=a.substring(3,4),d=a.substring(4,5),s+=s,l+=l,o+=o,d+=d),{red:parseInt(s,16),green:parseInt(l,16),blue:parseInt(o,16),alpha:d?parseInt(d,16)/255:1}}const Gc={test:Md("#"),parse:j1,transform:ei.transform},hl=a=>({test:s=>typeof s=="string"&&s.endsWith(a)&&s.split(" ").length===1,parse:parseFloat,transform:s=>`${s}${a}`}),Aa=hl("deg"),Mn=hl("%"),xe=hl("px"),T1=hl("vh"),N1=hl("vw"),ly={...Mn,parse:a=>Mn.parse(a)/100,transform:a=>Mn.transform(a*100)},Ki={test:Md("hsl","hue"),parse:Kg("hue","saturation","lightness"),transform:({hue:a,saturation:s,lightness:l,alpha:o=1})=>"hsla("+Math.round(a)+", "+Mn.transform(nl(s))+", "+Mn.transform(nl(l))+", "+nl(ol.transform(o))+")"},rt={test:a=>ei.test(a)||Gc.test(a)||Ki.test(a),parse:a=>ei.test(a)?ei.parse(a):Ki.test(a)?Ki.parse(a):Gc.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?ei.transform(a):Ki.transform(a),getAnimatableNone:a=>{const s=rt.parse(a);return s.alpha=0,rt.transform(s)}},A1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function M1(a){return isNaN(a)&&typeof a=="string"&&(a.match(Ad)?.length||0)+(a.match(A1)?.length||0)>0}const Qg="number",Zg="color",E1="var",D1="var(",oy="${}",R1=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function rl(a){const s=a.toString(),l=[],o={color:[],number:[],var:[]},d=[];let h=0;const g=s.replace(R1,y=>(rt.test(y)?(o.color.push(h),d.push(Zg),l.push(rt.parse(y))):y.startsWith(D1)?(o.var.push(h),d.push(E1),l.push(y)):(o.number.push(h),d.push(Qg),l.push(parseFloat(y))),++h,oy)).split(oy);return{values:l,split:g,indexes:o,types:d}}function Jg(a){return rl(a).values}function Pg(a){const{split:s,types:l}=rl(a),o=s.length;return d=>{let h="";for(let f=0;f<o;f++)if(h+=s[f],d[f]!==void 0){const g=l[f];g===Qg?h+=nl(d[f]):g===Zg?h+=rt.transform(d[f]):h+=d[f]}return h}}const z1=a=>typeof a=="number"?0:rt.test(a)?rt.getAnimatableNone(a):a;function O1(a){const s=Jg(a);return Pg(a)(s.map(z1))}const Ea={test:M1,parse:Jg,createTransformer:Pg,getAnimatableNone:O1};function wc(a,s,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?a+(s-a)*6*l:l<1/2?s:l<2/3?a+(s-a)*(2/3-l)*6:a}function V1({hue:a,saturation:s,lightness:l,alpha:o}){a/=360,s/=100,l/=100;let d=0,h=0,f=0;if(!s)d=h=f=l;else{const g=l<.5?l*(1+s):l+s-l*s,y=2*l-g;d=wc(y,g,a+1/3),h=wc(y,g,a),f=wc(y,g,a-1/3)}return{red:Math.round(d*255),green:Math.round(h*255),blue:Math.round(f*255),alpha:o}}function Qo(a,s){return l=>l>0?s:a}const Pe=(a,s,l)=>a+(s-a)*l,jc=(a,s,l)=>{const o=a*a,d=l*(s*s-o)+o;return d<0?0:Math.sqrt(d)},_1=[Gc,ei,Ki],k1=a=>_1.find(s=>s.test(a));function ry(a){const s=k1(a);if(!s)return!1;let l=s.parse(a);return s===Ki&&(l=V1(l)),l}const uy=(a,s)=>{const l=ry(a),o=ry(s);if(!l||!o)return Qo(a,s);const d={...l};return h=>(d.red=jc(l.red,o.red,h),d.green=jc(l.green,o.green,h),d.blue=jc(l.blue,o.blue,h),d.alpha=Pe(l.alpha,o.alpha,h),ei.transform(d))},Yc=new Set(["none","hidden"]);function B1(a,s){return Yc.has(a)?l=>l<=0?a:s:l=>l>=1?s:a}function L1(a,s){return l=>Pe(a,s,l)}function Ed(a){return typeof a=="number"?L1:typeof a=="string"?Nd(a)?Qo:rt.test(a)?uy:G1:Array.isArray(a)?Fg:typeof a=="object"?rt.test(a)?uy:U1:Qo}function Fg(a,s){const l=[...a],o=l.length,d=a.map((h,f)=>Ed(h)(h,s[f]));return h=>{for(let f=0;f<o;f++)l[f]=d[f](h);return l}}function U1(a,s){const l={...a,...s},o={};for(const d in l)a[d]!==void 0&&s[d]!==void 0&&(o[d]=Ed(a[d])(a[d],s[d]));return d=>{for(const h in o)l[h]=o[h](d);return l}}function H1(a,s){const l=[],o={color:0,var:0,number:0};for(let d=0;d<s.values.length;d++){const h=s.types[d],f=a.indexes[h][o[h]],g=a.values[f]??0;l[d]=g,o[h]++}return l}const G1=(a,s)=>{const l=Ea.createTransformer(s),o=rl(a),d=rl(s);return o.indexes.var.length===d.indexes.var.length&&o.indexes.color.length===d.indexes.color.length&&o.indexes.number.length>=d.indexes.number.length?Yc.has(a)&&!d.values.length||Yc.has(s)&&!o.values.length?B1(a,s):dl(Fg(H1(o,d),d.values),l):Qo(a,s)};function Wg(a,s,l){return typeof a=="number"&&typeof s=="number"&&typeof l=="number"?Pe(a,s,l):Ed(a)(a,s)}const Y1=a=>{const s=({timestamp:l})=>a(l);return{start:(l=!0)=>Je.update(s,l),stop:()=>Ma(s),now:()=>Tt.isProcessing?Tt.timestamp:Ht.now()}},$g=(a,s,l=10)=>{let o="";const d=Math.max(Math.round(s/l),2);for(let h=0;h<d;h++)o+=Math.round(a(h/(d-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Zo=2e4;function Dd(a){let s=0;const l=50;let o=a.next(s);for(;!o.done&&s<Zo;)s+=l,o=a.next(s);return s>=Zo?1/0:s}function q1(a,s=100,l){const o=l({...a,keyframes:[0,s]}),d=Math.min(Dd(o),Zo);return{type:"keyframes",ease:h=>o.next(d*h).value/s,duration:cn(d)}}const X1=5;function Ig(a,s,l){const o=Math.max(s-X1,0);return Rg(l-a(o),s-o)}const $e={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Tc=.001;function K1({duration:a=$e.duration,bounce:s=$e.bounce,velocity:l=$e.velocity,mass:o=$e.mass}){let d,h,f=1-s;f=Wn($e.minDamping,$e.maxDamping,f),a=Wn($e.minDuration,$e.maxDuration,cn(a)),f<1?(d=p=>{const b=p*f,x=b*a,S=b-l,N=qc(p,f),_=Math.exp(-x);return Tc-S/N*_},h=p=>{const x=p*f*a,S=x*l+l,N=Math.pow(f,2)*Math.pow(p,2)*a,_=Math.exp(-x),V=qc(Math.pow(p,2),f);return(-d(p)+Tc>0?-1:1)*((S-N)*_)/V}):(d=p=>{const b=Math.exp(-p*a),x=(p-l)*a+1;return-Tc+b*x},h=p=>{const b=Math.exp(-p*a),x=(l-p)*(a*a);return b*x});const g=5/a,y=Z1(d,h,g);if(a=An(a),isNaN(y))return{stiffness:$e.stiffness,damping:$e.damping,duration:a};{const p=Math.pow(y,2)*o;return{stiffness:p,damping:f*2*Math.sqrt(o*p),duration:a}}}const Q1=12;function Z1(a,s,l){let o=l;for(let d=1;d<Q1;d++)o=o-a(o)/s(o);return o}function qc(a,s){return a*Math.sqrt(1-s*s)}const J1=["duration","bounce"],P1=["stiffness","damping","mass"];function cy(a,s){return s.some(l=>a[l]!==void 0)}function F1(a){let s={velocity:$e.velocity,stiffness:$e.stiffness,damping:$e.damping,mass:$e.mass,isResolvedFromDuration:!1,...a};if(!cy(a,P1)&&cy(a,J1))if(a.visualDuration){const l=a.visualDuration,o=2*Math.PI/(l*1.2),d=o*o,h=2*Wn(.05,1,1-(a.bounce||0))*Math.sqrt(d);s={...s,mass:$e.mass,stiffness:d,damping:h}}else{const l=K1(a);s={...s,...l,mass:$e.mass},s.isResolvedFromDuration=!0}return s}function Jo(a=$e.visualDuration,s=$e.bounce){const l=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:s}:a;let{restSpeed:o,restDelta:d}=l;const h=l.keyframes[0],f=l.keyframes[l.keyframes.length-1],g={done:!1,value:h},{stiffness:y,damping:p,mass:b,duration:x,velocity:S,isResolvedFromDuration:N}=F1({...l,velocity:-cn(l.velocity||0)}),_=S||0,V=p/(2*Math.sqrt(y*b)),H=f-h,R=cn(Math.sqrt(y/b)),K=Math.abs(H)<5;o||(o=K?$e.restSpeed.granular:$e.restSpeed.default),d||(d=K?$e.restDelta.granular:$e.restDelta.default);let Y;if(V<1){const Q=qc(R,V);Y=W=>{const X=Math.exp(-V*R*W);return f-X*((_+V*R*H)/Q*Math.sin(Q*W)+H*Math.cos(Q*W))}}else if(V===1)Y=Q=>f-Math.exp(-R*Q)*(H+(_+R*H)*Q);else{const Q=R*Math.sqrt(V*V-1);Y=W=>{const X=Math.exp(-V*R*W),E=Math.min(Q*W,300);return f-X*((_+V*R*H)*Math.sinh(E)+Q*H*Math.cosh(E))/Q}}const $={calculatedDuration:N&&x||null,next:Q=>{const W=Y(Q);if(N)g.done=Q>=x;else{let X=Q===0?_:0;V<1&&(X=Q===0?An(_):Ig(Y,Q,W));const E=Math.abs(X)<=o,te=Math.abs(f-W)<=d;g.done=E&&te}return g.value=g.done?f:W,g},toString:()=>{const Q=Math.min(Dd($),Zo),W=$g(X=>$.next(Q*X).value,Q,30);return Q+"ms "+W},toTransition:()=>{}};return $}Jo.applyToOptions=a=>{const s=q1(a,100,Jo);return a.ease=s.ease,a.duration=An(s.duration),a.type="keyframes",a};function Xc({keyframes:a,velocity:s=0,power:l=.8,timeConstant:o=325,bounceDamping:d=10,bounceStiffness:h=500,modifyTarget:f,min:g,max:y,restDelta:p=.5,restSpeed:b}){const x=a[0],S={done:!1,value:x},N=E=>g!==void 0&&E<g||y!==void 0&&E>y,_=E=>g===void 0?y:y===void 0||Math.abs(g-E)<Math.abs(y-E)?g:y;let V=l*s;const H=x+V,R=f===void 0?H:f(H);R!==H&&(V=R-x);const K=E=>-V*Math.exp(-E/o),Y=E=>R+K(E),$=E=>{const te=K(E),J=Y(E);S.done=Math.abs(te)<=p,S.value=S.done?R:J};let Q,W;const X=E=>{N(S.value)&&(Q=E,W=Jo({keyframes:[S.value,_(S.value)],velocity:Ig(Y,E,S.value),damping:d,stiffness:h,restDelta:p,restSpeed:b}))};return X(0),{calculatedDuration:null,next:E=>{let te=!1;return!W&&Q===void 0&&(te=!0,$(E),X(E)),Q!==void 0&&E>=Q?W.next(E-Q):(!te&&$(E),S)}}}function W1(a,s,l){const o=[],d=l||$n.mix||Wg,h=a.length-1;for(let f=0;f<h;f++){let g=d(a[f],a[f+1]);if(s){const y=Array.isArray(s)?s[f]||dn:s;g=dl(y,g)}o.push(g)}return o}function $1(a,s,{clamp:l=!0,ease:o,mixer:d}={}){const h=a.length;if(Sd(h===s.length),h===1)return()=>s[0];if(h===2&&s[0]===s[1])return()=>s[1];const f=a[0]===a[1];a[0]>a[h-1]&&(a=[...a].reverse(),s=[...s].reverse());const g=W1(s,o,d),y=g.length,p=b=>{if(f&&b<a[0])return s[0];let x=0;if(y>1)for(;x<a.length-2&&!(b<a[x+1]);x++);const S=ll(a[x],a[x+1],b);return g[x](S)};return l?b=>p(Wn(a[0],a[h-1],b)):p}function I1(a,s){const l=a[a.length-1];for(let o=1;o<=s;o++){const d=ll(0,s,o);a.push(Pe(l,1,d))}}function e2(a){const s=[0];return I1(s,a.length-1),s}function t2(a,s){return a.map(l=>l*s)}function n2(a,s){return a.map(()=>s||Hg).splice(0,a.length-1)}function al({duration:a=300,keyframes:s,times:l,ease:o="easeInOut"}){const d=h1(o)?o.map(sy):sy(o),h={done:!1,value:s[0]},f=t2(l&&l.length===s.length?l:e2(s),a),g=$1(f,s,{ease:Array.isArray(d)?d:n2(s,d)});return{calculatedDuration:a,next:y=>(h.value=g(y),h.done=y>=a,h)}}const a2=a=>a!==null;function Rd(a,{repeat:s,repeatType:l="loop"},o,d=1){const h=a.filter(a2),g=d<0||s&&l!=="loop"&&s%2===1?0:h.length-1;return!g||o===void 0?h[g]:o}const i2={decay:Xc,inertia:Xc,tween:al,keyframes:al,spring:Jo};function e0(a){typeof a.type=="string"&&(a.type=i2[a.type])}class zd{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(s=>{this.resolve=s})}notifyFinished(){this.resolve()}then(s,l){return this.finished.then(s,l)}}const s2=a=>a/100;class Od extends zd{constructor(s){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:l}=this.options;l&&l.updatedAt!==Ht.now()&&this.tick(Ht.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=s,this.initAnimation(),this.play(),s.autoplay===!1&&this.pause()}initAnimation(){const{options:s}=this;e0(s);const{type:l=al,repeat:o=0,repeatDelay:d=0,repeatType:h,velocity:f=0}=s;let{keyframes:g}=s;const y=l||al;y!==al&&typeof g[0]!="number"&&(this.mixKeyframes=dl(s2,Wg(g[0],g[1])),g=[0,100]);const p=y({...s,keyframes:g});h==="mirror"&&(this.mirroredGenerator=y({...s,keyframes:[...g].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=Dd(p));const{calculatedDuration:b}=p;this.calculatedDuration=b,this.resolvedDuration=b+d,this.totalDuration=this.resolvedDuration*(o+1)-d,this.generator=p}updateTime(s){const l=Math.round(s-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=l}tick(s,l=!1){const{generator:o,totalDuration:d,mixKeyframes:h,mirroredGenerator:f,resolvedDuration:g,calculatedDuration:y}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:b,repeat:x,repeatType:S,repeatDelay:N,type:_,onUpdate:V,finalKeyframe:H}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,s):this.speed<0&&(this.startTime=Math.min(s-d/this.speed,this.startTime)),l?this.currentTime=s:this.updateTime(s);const R=this.currentTime-p*(this.playbackSpeed>=0?1:-1),K=this.playbackSpeed>=0?R<0:R>d;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let Y=this.currentTime,$=o;if(x){const E=Math.min(this.currentTime,d)/g;let te=Math.floor(E),J=E%1;!J&&E>=1&&(J=1),J===1&&te--,te=Math.min(te,x+1),!!(te%2)&&(S==="reverse"?(J=1-J,N&&(J-=N/g)):S==="mirror"&&($=f)),Y=Wn(0,1,J)*g}const Q=K?{done:!1,value:b[0]}:$.next(Y);h&&(Q.value=h(Q.value));let{done:W}=Q;!K&&y!==null&&(W=this.playbackSpeed>=0?this.currentTime>=d:this.currentTime<=0);const X=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&W);return X&&_!==Xc&&(Q.value=Rd(b,this.options,H,this.speed)),V&&V(Q.value),X&&this.finish(),Q}then(s,l){return this.finished.then(s,l)}get duration(){return cn(this.calculatedDuration)}get iterationDuration(){const{delay:s=0}=this.options||{};return this.duration+cn(s)}get time(){return cn(this.currentTime)}set time(s){s=An(s),this.currentTime=s,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=s:this.driver&&(this.startTime=this.driver.now()-s/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(s){this.updateTime(Ht.now());const l=this.playbackSpeed!==s;this.playbackSpeed=s,l&&(this.time=cn(this.currentTime))}play(){if(this.isStopped)return;const{driver:s=Y1,startTime:l}=this.options;this.driver||(this.driver=s(d=>this.tick(d))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=l??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ht.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(s){return this.startTime=0,this.tick(s,!0)}attachTimeline(s){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),s.observe(this)}}function l2(a){for(let s=1;s<a.length;s++)a[s]??(a[s]=a[s-1])}const ti=a=>a*180/Math.PI,Kc=a=>{const s=ti(Math.atan2(a[1],a[0]));return Qc(s)},o2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Kc,rotateZ:Kc,skewX:a=>ti(Math.atan(a[1])),skewY:a=>ti(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Qc=a=>(a=a%360,a<0&&(a+=360),a),dy=Kc,fy=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),hy=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),r2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fy,scaleY:hy,scale:a=>(fy(a)+hy(a))/2,rotateX:a=>Qc(ti(Math.atan2(a[6],a[5]))),rotateY:a=>Qc(ti(Math.atan2(-a[2],a[0]))),rotateZ:dy,rotate:dy,skewX:a=>ti(Math.atan(a[4])),skewY:a=>ti(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function Zc(a){return a.includes("scale")?1:0}function Jc(a,s){if(!a||a==="none")return Zc(s);const l=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,d;if(l)o=r2,d=l;else{const g=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=o2,d=g}if(!d)return Zc(s);const h=o[s],f=d[1].split(",").map(c2);return typeof h=="function"?h(f):f[h]}const u2=(a,s)=>{const{transform:l="none"}=getComputedStyle(a);return Jc(l,s)};function c2(a){return parseFloat(a.trim())}const es=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ts=new Set(es),my=a=>a===Ii||a===xe,d2=new Set(["x","y","z"]),f2=es.filter(a=>!d2.has(a));function h2(a){const s=[];return f2.forEach(l=>{const o=a.getValue(l);o!==void 0&&(s.push([l,o.get()]),o.set(l.startsWith("scale")?1:0))}),s}const ni={width:({x:a},{paddingLeft:s="0",paddingRight:l="0"})=>a.max-a.min-parseFloat(s)-parseFloat(l),height:({y:a},{paddingTop:s="0",paddingBottom:l="0"})=>a.max-a.min-parseFloat(s)-parseFloat(l),top:(a,{top:s})=>parseFloat(s),left:(a,{left:s})=>parseFloat(s),bottom:({y:a},{top:s})=>parseFloat(s)+(a.max-a.min),right:({x:a},{left:s})=>parseFloat(s)+(a.max-a.min),x:(a,{transform:s})=>Jc(s,"x"),y:(a,{transform:s})=>Jc(s,"y")};ni.translateX=ni.x;ni.translateY=ni.y;const ai=new Set;let Pc=!1,Fc=!1,Wc=!1;function t0(){if(Fc){const a=Array.from(ai).filter(o=>o.needsMeasurement),s=new Set(a.map(o=>o.element)),l=new Map;s.forEach(o=>{const d=h2(o);d.length&&(l.set(o,d),o.render())}),a.forEach(o=>o.measureInitialState()),s.forEach(o=>{o.render();const d=l.get(o);d&&d.forEach(([h,f])=>{o.getValue(h)?.set(f)})}),a.forEach(o=>o.measureEndState()),a.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Fc=!1,Pc=!1,ai.forEach(a=>a.complete(Wc)),ai.clear()}function n0(){ai.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Fc=!0)})}function m2(){Wc=!0,n0(),t0(),Wc=!1}class Vd{constructor(s,l,o,d,h,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...s],this.onComplete=l,this.name=o,this.motionValue=d,this.element=h,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(ai.add(this),Pc||(Pc=!0,Je.read(n0),Je.resolveKeyframes(t0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:s,name:l,element:o,motionValue:d}=this;if(s[0]===null){const h=d?.get(),f=s[s.length-1];if(h!==void 0)s[0]=h;else if(o&&l){const g=o.readValue(l,f);g!=null&&(s[0]=g)}s[0]===void 0&&(s[0]=f),d&&h===void 0&&d.set(s[0])}l2(s)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(s=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,s),ai.delete(this)}cancel(){this.state==="scheduled"&&(ai.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const p2=a=>a.startsWith("--");function y2(a,s,l){p2(s)?a.style.setProperty(s,l):a.style[s]=l}const g2=Cd(()=>window.ScrollTimeline!==void 0),b2={};function v2(a,s){const l=Cd(a);return()=>b2[s]??l()}const a0=v2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),tl=([a,s,l,o])=>`cubic-bezier(${a}, ${s}, ${l}, ${o})`,py={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tl([0,.65,.55,1]),circOut:tl([.55,0,1,.45]),backIn:tl([.31,.01,.66,-.59]),backOut:tl([.33,1.53,.69,.99])};function i0(a,s){if(a)return typeof a=="function"?a0()?$g(a,s):"ease-out":Gg(a)?tl(a):Array.isArray(a)?a.map(l=>i0(l,s)||py.easeOut):py[a]}function x2(a,s,l,{delay:o=0,duration:d=300,repeat:h=0,repeatType:f="loop",ease:g="easeOut",times:y}={},p=void 0){const b={[s]:l};y&&(b.offset=y);const x=i0(g,d);Array.isArray(x)&&(b.easing=x);const S={delay:o,duration:d,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:h+1,direction:f==="reverse"?"alternate":"normal"};return p&&(S.pseudoElement=p),a.animate(b,S)}function s0(a){return typeof a=="function"&&"applyToOptions"in a}function S2({type:a,...s}){return s0(a)&&a0()?a.applyToOptions(s):(s.duration??(s.duration=300),s.ease??(s.ease="easeOut"),s)}class C2 extends zd{constructor(s){if(super(),this.finishedTime=null,this.isStopped=!1,!s)return;const{element:l,name:o,keyframes:d,pseudoElement:h,allowFlatten:f=!1,finalKeyframe:g,onComplete:y}=s;this.isPseudoElement=!!h,this.allowFlatten=f,this.options=s,Sd(typeof s.type!="string");const p=S2(s);this.animation=x2(l,o,d,p,h),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!h){const b=Rd(d,this.options,g,this.speed);this.updateMotionValue?this.updateMotionValue(b):y2(l,o,b),this.animation.cancel()}y?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:s}=this;s==="idle"||s==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const s=this.animation.effect?.getComputedTiming?.().duration||0;return cn(Number(s))}get iterationDuration(){const{delay:s=0}=this.options||{};return this.duration+cn(s)}get time(){return cn(Number(this.animation.currentTime)||0)}set time(s){this.finishedTime=null,this.animation.currentTime=An(s)}get speed(){return this.animation.playbackRate}set speed(s){s<0&&(this.finishedTime=null),this.animation.playbackRate=s}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(s){this.animation.startTime=s}attachTimeline({timeline:s,observe:l}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,s&&g2()?(this.animation.timeline=s,dn):l(this)}}const l0={anticipate:Bg,backInOut:kg,circInOut:Ug};function w2(a){return a in l0}function j2(a){typeof a.ease=="string"&&w2(a.ease)&&(a.ease=l0[a.ease])}const yy=10;class T2 extends C2{constructor(s){j2(s),e0(s),super(s),s.startTime&&(this.startTime=s.startTime),this.options=s}updateMotionValue(s){const{motionValue:l,onUpdate:o,onComplete:d,element:h,...f}=this.options;if(!l)return;if(s!==void 0){l.set(s);return}const g=new Od({...f,autoplay:!1}),y=An(this.finishedTime??this.time);l.setWithVelocity(g.sample(y-yy).value,g.sample(y).value,yy),g.stop()}}const gy=(a,s)=>s==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(Ea.test(a)||a==="0")&&!a.startsWith("url("));function N2(a){const s=a[0];if(a.length===1)return!0;for(let l=0;l<a.length;l++)if(a[l]!==s)return!0}function A2(a,s,l,o){const d=a[0];if(d===null)return!1;if(s==="display"||s==="visibility")return!0;const h=a[a.length-1],f=gy(d,s),g=gy(h,s);return!f||!g?!1:N2(a)||(l==="spring"||s0(l))&&o}function $c(a){a.duration=0,a.type="keyframes"}const M2=new Set(["opacity","clipPath","filter","transform"]),E2=Cd(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function D2(a){const{motionValue:s,name:l,repeatDelay:o,repeatType:d,damping:h,type:f}=a;if(!(s?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:y,transformTemplate:p}=s.owner.getProps();return E2()&&l&&M2.has(l)&&(l!=="transform"||!p)&&!y&&!o&&d!=="mirror"&&h!==0&&f!=="inertia"}const R2=40;class z2 extends zd{constructor({autoplay:s=!0,delay:l=0,type:o="keyframes",repeat:d=0,repeatDelay:h=0,repeatType:f="loop",keyframes:g,name:y,motionValue:p,element:b,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ht.now();const S={autoplay:s,delay:l,type:o,repeat:d,repeatDelay:h,repeatType:f,name:y,motionValue:p,element:b,...x},N=b?.KeyframeResolver||Vd;this.keyframeResolver=new N(g,(_,V,H)=>this.onKeyframesResolved(_,V,S,!H),y,p,b),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(s,l,o,d){this.keyframeResolver=void 0;const{name:h,type:f,velocity:g,delay:y,isHandoff:p,onUpdate:b}=o;this.resolvedAt=Ht.now(),A2(s,h,f,g)||(($n.instantAnimations||!y)&&b?.(Rd(s,o,l)),s[0]=s[s.length-1],$c(o),o.repeat=0);const S={startTime:d?this.resolvedAt?this.resolvedAt-this.createdAt>R2?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...o,keyframes:s},N=!p&&D2(S)?new T2({...S,element:S.motionValue.owner.current}):new Od(S);N.finished.then(()=>this.notifyFinished()).catch(dn),this.pendingTimeline&&(this.stopTimeline=N.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=N}get finished(){return this._animation?this.animation.finished:this._finished}then(s,l){return this.finished.finally(s).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),m2()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(s){this.animation.time=s}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(s){this.animation.speed=s}get startTime(){return this.animation.startTime}attachTimeline(s){return this._animation?this.stopTimeline=this.animation.attachTimeline(s):this.pendingTimeline=s,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const O2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function V2(a){const s=O2.exec(a);if(!s)return[,];const[,l,o,d]=s;return[`--${l??o}`,d]}function o0(a,s,l=1){const[o,d]=V2(a);if(!o)return;const h=window.getComputedStyle(s).getPropertyValue(o);if(h){const f=h.trim();return Mg(f)?parseFloat(f):f}return Nd(d)?o0(d,s,l+1):d}function _d(a,s){return a?.[s]??a?.default??a}const r0=new Set(["width","height","top","left","right","bottom",...es]),_2={test:a=>a==="auto",parse:a=>a},u0=a=>s=>s.test(a),c0=[Ii,xe,Mn,Aa,N1,T1,_2],by=a=>c0.find(u0(a));function k2(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||Dg(a):!0}const B2=new Set(["brightness","contrast","saturate","opacity"]);function L2(a){const[s,l]=a.slice(0,-1).split("(");if(s==="drop-shadow")return a;const[o]=l.match(Ad)||[];if(!o)return a;const d=l.replace(o,"");let h=B2.has(s)?1:0;return o!==l&&(h*=100),s+"("+h+d+")"}const U2=/\b([a-z-]*)\(.*?\)/gu,Ic={...Ea,getAnimatableNone:a=>{const s=a.match(U2);return s?s.map(L2).join(" "):a}},vy={...Ii,transform:Math.round},H2={rotate:Aa,rotateX:Aa,rotateY:Aa,rotateZ:Aa,scale:Vo,scaleX:Vo,scaleY:Vo,scaleZ:Vo,skew:Aa,skewX:Aa,skewY:Aa,distance:xe,translateX:xe,translateY:xe,translateZ:xe,x:xe,y:xe,z:xe,perspective:xe,transformPerspective:xe,opacity:ol,originX:ly,originY:ly,originZ:xe},kd={borderWidth:xe,borderTopWidth:xe,borderRightWidth:xe,borderBottomWidth:xe,borderLeftWidth:xe,borderRadius:xe,radius:xe,borderTopLeftRadius:xe,borderTopRightRadius:xe,borderBottomRightRadius:xe,borderBottomLeftRadius:xe,width:xe,maxWidth:xe,height:xe,maxHeight:xe,top:xe,right:xe,bottom:xe,left:xe,padding:xe,paddingTop:xe,paddingRight:xe,paddingBottom:xe,paddingLeft:xe,margin:xe,marginTop:xe,marginRight:xe,marginBottom:xe,marginLeft:xe,backgroundPositionX:xe,backgroundPositionY:xe,...H2,zIndex:vy,fillOpacity:ol,strokeOpacity:ol,numOctaves:vy},G2={...kd,color:rt,backgroundColor:rt,outlineColor:rt,fill:rt,stroke:rt,borderColor:rt,borderTopColor:rt,borderRightColor:rt,borderBottomColor:rt,borderLeftColor:rt,filter:Ic,WebkitFilter:Ic},d0=a=>G2[a];function f0(a,s){let l=d0(a);return l!==Ic&&(l=Ea),l.getAnimatableNone?l.getAnimatableNone(s):void 0}const Y2=new Set(["auto","none","0"]);function q2(a,s,l){let o=0,d;for(;o<a.length&&!d;){const h=a[o];typeof h=="string"&&!Y2.has(h)&&rl(h).values.length&&(d=a[o]),o++}if(d&&l)for(const h of s)a[h]=f0(l,d)}class X2 extends Vd{constructor(s,l,o,d,h){super(s,l,o,d,h,!0)}readKeyframes(){const{unresolvedKeyframes:s,element:l,name:o}=this;if(!l||!l.current)return;super.readKeyframes();for(let y=0;y<s.length;y++){let p=s[y];if(typeof p=="string"&&(p=p.trim(),Nd(p))){const b=o0(p,l.current);b!==void 0&&(s[y]=b),y===s.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!r0.has(o)||s.length!==2)return;const[d,h]=s,f=by(d),g=by(h);if(f!==g)if(my(f)&&my(g))for(let y=0;y<s.length;y++){const p=s[y];typeof p=="string"&&(s[y]=parseFloat(p))}else ni[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:s,name:l}=this,o=[];for(let d=0;d<s.length;d++)(s[d]===null||k2(s[d]))&&o.push(d);o.length&&q2(s,o,l)}measureInitialState(){const{element:s,unresolvedKeyframes:l,name:o}=this;if(!s||!s.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ni[o](s.measureViewportBox(),window.getComputedStyle(s.current)),l[0]=this.measuredOrigin;const d=l[l.length-1];d!==void 0&&s.getValue(o,d).jump(d,!1)}measureEndState(){const{element:s,name:l,unresolvedKeyframes:o}=this;if(!s||!s.current)return;const d=s.getValue(l);d&&d.jump(this.measuredOrigin,!1);const h=o.length-1,f=o[h];o[h]=ni[l](s.measureViewportBox(),window.getComputedStyle(s.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),this.removedTransforms?.length&&this.removedTransforms.forEach(([g,y])=>{s.getValue(g).set(y)}),this.resolveNoneKeyframes()}}function K2(a,s,l){if(a instanceof EventTarget)return[a];if(typeof a=="string"){let o=document;const d=l?.[a]??o.querySelectorAll(a);return d?Array.from(d):[]}return Array.from(a)}const h0=(a,s)=>s&&typeof a=="number"?s.transform(a):a;function m0(a){return Eg(a)&&"offsetHeight"in a}const xy=30,Q2=a=>!isNaN(parseFloat(a));class Z2{constructor(s,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const d=Ht.now();if(this.updatedAt!==d&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const h of this.dependents)h.dirty()},this.hasAnimated=!1,this.setCurrent(s),this.owner=l.owner}setCurrent(s){this.current=s,this.updatedAt=Ht.now(),this.canTrackVelocity===null&&s!==void 0&&(this.canTrackVelocity=Q2(this.current))}setPrevFrameValue(s=this.current){this.prevFrameValue=s,this.prevUpdatedAt=this.updatedAt}onChange(s){return this.on("change",s)}on(s,l){this.events[s]||(this.events[s]=new wd);const o=this.events[s].add(l);return s==="change"?()=>{o(),Je.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const s in this.events)this.events[s].clear()}attach(s,l){this.passiveEffect=s,this.stopPassiveEffect=l}set(s){this.passiveEffect?this.passiveEffect(s,this.updateAndNotify):this.updateAndNotify(s)}setWithVelocity(s,l,o){this.set(l),this.prev=void 0,this.prevFrameValue=s,this.prevUpdatedAt=this.updatedAt-o}jump(s,l=!0){this.updateAndNotify(s),this.prev=s,this.prevUpdatedAt=this.prevFrameValue=void 0,l&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(s){this.dependents||(this.dependents=new Set),this.dependents.add(s)}removeDependent(s){this.dependents&&this.dependents.delete(s)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const s=Ht.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||s-this.updatedAt>xy)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,xy);return Rg(parseFloat(this.current)-parseFloat(this.prevFrameValue),l)}start(s){return this.stop(),new Promise(l=>{this.hasAnimated=!0,this.animation=s(l),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Wi(a,s){return new Z2(a,s)}const{schedule:Bd}=Yg(queueMicrotask,!1),xn={x:!1,y:!1};function p0(){return xn.x||xn.y}function J2(a){return a==="x"||a==="y"?xn[a]?null:(xn[a]=!0,()=>{xn[a]=!1}):xn.x||xn.y?null:(xn.x=xn.y=!0,()=>{xn.x=xn.y=!1})}function y0(a,s){const l=K2(a),o=new AbortController,d={passive:!0,...s,signal:o.signal};return[l,d,()=>o.abort()]}function Sy(a){return!(a.pointerType==="touch"||p0())}function P2(a,s,l={}){const[o,d,h]=y0(a,l),f=g=>{if(!Sy(g))return;const{target:y}=g,p=s(y,g);if(typeof p!="function"||!y)return;const b=x=>{Sy(x)&&(p(x),y.removeEventListener("pointerleave",b))};y.addEventListener("pointerleave",b,d)};return o.forEach(g=>{g.addEventListener("pointerenter",f,d)}),h}const g0=(a,s)=>s?a===s?!0:g0(a,s.parentElement):!1,Ld=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,F2=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function W2(a){return F2.has(a.tagName)||a.tabIndex!==-1}const Yo=new WeakSet;function Cy(a){return s=>{s.key==="Enter"&&a(s)}}function Nc(a,s){a.dispatchEvent(new PointerEvent("pointer"+s,{isPrimary:!0,bubbles:!0}))}const $2=(a,s)=>{const l=a.currentTarget;if(!l)return;const o=Cy(()=>{if(Yo.has(l))return;Nc(l,"down");const d=Cy(()=>{Nc(l,"up")}),h=()=>Nc(l,"cancel");l.addEventListener("keyup",d,s),l.addEventListener("blur",h,s)});l.addEventListener("keydown",o,s),l.addEventListener("blur",()=>l.removeEventListener("keydown",o),s)};function wy(a){return Ld(a)&&!p0()}function I2(a,s,l={}){const[o,d,h]=y0(a,l),f=g=>{const y=g.currentTarget;if(!wy(g))return;Yo.add(y);const p=s(y,g),b=(N,_)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",S),Yo.has(y)&&Yo.delete(y),wy(N)&&typeof p=="function"&&p(N,{success:_})},x=N=>{b(N,y===window||y===document||l.useGlobalTarget||g0(y,N.target))},S=N=>{b(N,!1)};window.addEventListener("pointerup",x,d),window.addEventListener("pointercancel",S,d)};return o.forEach(g=>{(l.useGlobalTarget?window:g).addEventListener("pointerdown",f,d),m0(g)&&(g.addEventListener("focus",p=>$2(p,d)),!W2(g)&&!g.hasAttribute("tabindex")&&(g.tabIndex=0))}),h}function b0(a){return Eg(a)&&"ownerSVGElement"in a}function eS(a){return b0(a)&&a.tagName==="svg"}const At=a=>!!(a&&a.getVelocity),tS=[...c0,rt,Ea],nS=a=>tS.find(u0(a)),Ud=j.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function jy(a,s){if(typeof a=="function")return a(s);a!=null&&(a.current=s)}function aS(...a){return s=>{let l=!1;const o=a.map(d=>{const h=jy(d,s);return!l&&typeof h=="function"&&(l=!0),h});if(l)return()=>{for(let d=0;d<o.length;d++){const h=o[d];typeof h=="function"?h():jy(a[d],null)}}}}function iS(...a){return j.useCallback(aS(...a),a)}class sS extends j.Component{getSnapshotBeforeUpdate(s){const l=this.props.childRef.current;if(l&&s.isPresent&&!this.props.isPresent){const o=l.offsetParent,d=m0(o)&&o.offsetWidth||0,h=this.props.sizeRef.current;h.height=l.offsetHeight||0,h.width=l.offsetWidth||0,h.top=l.offsetTop,h.left=l.offsetLeft,h.right=d-h.width-h.left}return null}componentDidUpdate(){}render(){return this.props.children}}function lS({children:a,isPresent:s,anchorX:l,root:o}){const d=j.useId(),h=j.useRef(null),f=j.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:g}=j.useContext(Ud),y=iS(h,a?.ref);return j.useInsertionEffect(()=>{const{width:p,height:b,top:x,left:S,right:N}=f.current;if(s||!h.current||!p||!b)return;const _=l==="left"?`left: ${S}`:`right: ${N}`;h.current.dataset.motionPopId=d;const V=document.createElement("style");g&&(V.nonce=g);const H=o??document.head;return H.appendChild(V),V.sheet&&V.sheet.insertRule(`
10
- [data-motion-pop-id="${d}"] {
11
- position: absolute !important;
12
- width: ${p}px !important;
13
- height: ${b}px !important;
14
- ${_}px !important;
15
- top: ${x}px !important;
16
- }
17
- `),()=>{H.contains(V)&&H.removeChild(V)}},[s]),c.jsx(sS,{isPresent:s,childRef:h,sizeRef:f,children:j.cloneElement(a,{ref:y})})}const oS=({children:a,initial:s,isPresent:l,onExitComplete:o,custom:d,presenceAffectsLayout:h,mode:f,anchorX:g,root:y})=>{const p=gd(rS),b=j.useId();let x=!0,S=j.useMemo(()=>(x=!1,{id:b,initial:s,isPresent:l,custom:d,onExitComplete:N=>{p.set(N,!0);for(const _ of p.values())if(!_)return;o&&o()},register:N=>(p.set(N,!1),()=>p.delete(N))}),[l,p,o]);return h&&x&&(S={...S}),j.useMemo(()=>{p.forEach((N,_)=>p.set(_,!1))},[l]),j.useEffect(()=>{!l&&!p.size&&o&&o()},[l]),f==="popLayout"&&(a=c.jsx(lS,{isPresent:l,anchorX:g,root:y,children:a})),c.jsx(Io.Provider,{value:S,children:a})};function rS(){return new Map}function v0(a=!0){const s=j.useContext(Io);if(s===null)return[!0,null];const{isPresent:l,onExitComplete:o,register:d}=s,h=j.useId();j.useEffect(()=>{if(a)return d(h)},[a]);const f=j.useCallback(()=>a&&o&&o(h),[h,o,a]);return!l&&o?[!1,f]:[!0]}const _o=a=>a.key||"";function Ty(a){const s=[];return j.Children.forEach(a,l=>{j.isValidElement(l)&&s.push(l)}),s}const hn=({children:a,custom:s,initial:l=!0,onExitComplete:o,presenceAffectsLayout:d=!0,mode:h="sync",propagate:f=!1,anchorX:g="left",root:y})=>{const[p,b]=v0(f),x=j.useMemo(()=>Ty(a),[a]),S=f&&!p?[]:x.map(_o),N=j.useRef(!0),_=j.useRef(x),V=gd(()=>new Map),[H,R]=j.useState(x),[K,Y]=j.useState(x);Ag(()=>{N.current=!1,_.current=x;for(let W=0;W<K.length;W++){const X=_o(K[W]);S.includes(X)?V.delete(X):V.get(X)!==!0&&V.set(X,!1)}},[K,S.length,S.join("-")]);const $=[];if(x!==H){let W=[...x];for(let X=0;X<K.length;X++){const E=K[X],te=_o(E);S.includes(te)||(W.splice(X,0,E),$.push(E))}return h==="wait"&&$.length&&(W=$),Y(Ty(W)),R(x),null}const{forceRender:Q}=j.useContext(yd);return c.jsx(c.Fragment,{children:K.map(W=>{const X=_o(W),E=f&&!p?!1:x===K||S.includes(X),te=()=>{if(V.has(X))V.set(X,!0);else return;let J=!0;V.forEach(U=>{U||(J=!1)}),J&&(Q?.(),Y(_.current),f&&b?.(),o&&o())};return c.jsx(oS,{isPresent:E,initial:!N.current||l?void 0:!1,custom:s,presenceAffectsLayout:d,mode:h,root:y,onExitComplete:E?void 0:te,anchorX:g,children:W},X)})})},x0=j.createContext({strict:!1}),Ny={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},$i={};for(const a in Ny)$i[a]={isEnabled:s=>Ny[a].some(l=>!!s[l])};function uS(a){for(const s in a)$i[s]={...$i[s],...a[s]}}const cS=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Po(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||cS.has(a)}let S0=a=>!Po(a);function dS(a){typeof a=="function"&&(S0=s=>s.startsWith("on")?!Po(s):a(s))}try{dS(require("@emotion/is-prop-valid").default)}catch{}function fS(a,s,l){const o={};for(const d in a)d==="values"&&typeof a.values=="object"||(S0(d)||l===!0&&Po(d)||!s&&!Po(d)||a.draggable&&d.startsWith("onDrag"))&&(o[d]=a[d]);return o}const er=j.createContext({});function tr(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function ul(a){return typeof a=="string"||Array.isArray(a)}const Hd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Gd=["initial",...Hd];function nr(a){return tr(a.animate)||Gd.some(s=>ul(a[s]))}function C0(a){return!!(nr(a)||a.variants)}function hS(a,s){if(nr(a)){const{initial:l,animate:o}=a;return{initial:l===!1||ul(l)?l:void 0,animate:ul(o)?o:void 0}}return a.inherit!==!1?s:{}}function mS(a){const{initial:s,animate:l}=hS(a,j.useContext(er));return j.useMemo(()=>({initial:s,animate:l}),[Ay(s),Ay(l)])}function Ay(a){return Array.isArray(a)?a.join(" "):a}function My(a,s){return s.max===s.min?0:a/(s.max-s.min)*100}const $s={correct:(a,s)=>{if(!s.target)return a;if(typeof a=="string")if(xe.test(a))a=parseFloat(a);else return a;const l=My(a,s.target.x),o=My(a,s.target.y);return`${l}% ${o}%`}},pS={correct:(a,{treeScale:s,projectionDelta:l})=>{const o=a,d=Ea.parse(a);if(d.length>5)return o;const h=Ea.createTransformer(a),f=typeof d[0]!="number"?1:0,g=l.x.scale*s.x,y=l.y.scale*s.y;d[0+f]/=g,d[1+f]/=y;const p=Pe(g,y,.5);return typeof d[2+f]=="number"&&(d[2+f]/=p),typeof d[3+f]=="number"&&(d[3+f]/=p),h(d)}},ed={borderRadius:{...$s,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$s,borderTopRightRadius:$s,borderBottomLeftRadius:$s,borderBottomRightRadius:$s,boxShadow:pS};function w0(a,{layout:s,layoutId:l}){return ts.has(a)||a.startsWith("origin")||(s||l!==void 0)&&(!!ed[a]||a==="opacity")}const yS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gS=es.length;function bS(a,s,l){let o="",d=!0;for(let h=0;h<gS;h++){const f=es[h],g=a[f];if(g===void 0)continue;let y=!0;if(typeof g=="number"?y=g===(f.startsWith("scale")?1:0):y=parseFloat(g)===0,!y||l){const p=h0(g,kd[f]);if(!y){d=!1;const b=yS[f]||f;o+=`${b}(${p}) `}l&&(s[f]=p)}}return o=o.trim(),l?o=l(s,d?"":o):d&&(o="none"),o}function Yd(a,s,l){const{style:o,vars:d,transformOrigin:h}=a;let f=!1,g=!1;for(const y in s){const p=s[y];if(ts.has(y)){f=!0;continue}else if(Xg(y)){d[y]=p;continue}else{const b=h0(p,kd[y]);y.startsWith("origin")?(g=!0,h[y]=b):o[y]=b}}if(s.transform||(f||l?o.transform=bS(s,a.transform,l):o.transform&&(o.transform="none")),g){const{originX:y="50%",originY:p="50%",originZ:b=0}=h;o.transformOrigin=`${y} ${p} ${b}`}}const qd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function j0(a,s,l){for(const o in s)!At(s[o])&&!w0(o,l)&&(a[o]=s[o])}function vS({transformTemplate:a},s){return j.useMemo(()=>{const l=qd();return Yd(l,s,a),Object.assign({},l.vars,l.style)},[s])}function xS(a,s){const l=a.style||{},o={};return j0(o,l,a),Object.assign(o,vS(a,s)),o}function SS(a,s){const l={},o=xS(a,s);return a.drag&&a.dragListener!==!1&&(l.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(l.tabIndex=0),l.style=o,l}const CS={offset:"stroke-dashoffset",array:"stroke-dasharray"},wS={offset:"strokeDashoffset",array:"strokeDasharray"};function jS(a,s,l=1,o=0,d=!0){a.pathLength=1;const h=d?CS:wS;a[h.offset]=xe.transform(-o);const f=xe.transform(s),g=xe.transform(l);a[h.array]=`${f} ${g}`}function T0(a,{attrX:s,attrY:l,attrScale:o,pathLength:d,pathSpacing:h=1,pathOffset:f=0,...g},y,p,b){if(Yd(a,g,p),y){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:x,style:S}=a;x.transform&&(S.transform=x.transform,delete x.transform),(S.transform||x.transformOrigin)&&(S.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),S.transform&&(S.transformBox=b?.transformBox??"fill-box",delete x.transformBox),s!==void 0&&(x.x=s),l!==void 0&&(x.y=l),o!==void 0&&(x.scale=o),d!==void 0&&jS(x,d,h,f,!1)}const N0=()=>({...qd(),attrs:{}}),A0=a=>typeof a=="string"&&a.toLowerCase()==="svg";function TS(a,s,l,o){const d=j.useMemo(()=>{const h=N0();return T0(h,s,A0(o),a.transformTemplate,a.style),{...h.attrs,style:{...h.style}}},[s]);if(a.style){const h={};j0(h,a.style,a),d.style={...h,...d.style}}return d}const NS=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Xd(a){return typeof a!="string"||a.includes("-")?!1:!!(NS.indexOf(a)>-1||/[A-Z]/u.test(a))}function AS(a,s,l,{latestValues:o},d,h=!1){const g=(Xd(a)?TS:SS)(s,o,d,a),y=fS(s,typeof a=="string",h),p=a!==j.Fragment?{...y,...g,ref:l}:{},{children:b}=s,x=j.useMemo(()=>At(b)?b.get():b,[b]);return j.createElement(a,{...p,children:x})}function Ey(a){const s=[{},{}];return a?.values.forEach((l,o)=>{s[0][o]=l.get(),s[1][o]=l.getVelocity()}),s}function Kd(a,s,l,o){if(typeof s=="function"){const[d,h]=Ey(o);s=s(l!==void 0?l:a.custom,d,h)}if(typeof s=="string"&&(s=a.variants&&a.variants[s]),typeof s=="function"){const[d,h]=Ey(o);s=s(l!==void 0?l:a.custom,d,h)}return s}function qo(a){return At(a)?a.get():a}function MS({scrapeMotionValuesFromProps:a,createRenderState:s},l,o,d){return{latestValues:ES(l,o,d,a),renderState:s()}}function ES(a,s,l,o){const d={},h=o(a,{});for(const S in h)d[S]=qo(h[S]);let{initial:f,animate:g}=a;const y=nr(a),p=C0(a);s&&p&&!y&&a.inherit!==!1&&(f===void 0&&(f=s.initial),g===void 0&&(g=s.animate));let b=l?l.initial===!1:!1;b=b||f===!1;const x=b?g:f;if(x&&typeof x!="boolean"&&!tr(x)){const S=Array.isArray(x)?x:[x];for(let N=0;N<S.length;N++){const _=Kd(a,S[N]);if(_){const{transitionEnd:V,transition:H,...R}=_;for(const K in R){let Y=R[K];if(Array.isArray(Y)){const $=b?Y.length-1:0;Y=Y[$]}Y!==null&&(d[K]=Y)}for(const K in V)d[K]=V[K]}}}return d}const M0=a=>(s,l)=>{const o=j.useContext(er),d=j.useContext(Io),h=()=>MS(a,s,o,d);return l?h():gd(h)};function Qd(a,s,l){const{style:o}=a,d={};for(const h in o)(At(o[h])||s.style&&At(s.style[h])||w0(h,a)||l?.getValue(h)?.liveStyle!==void 0)&&(d[h]=o[h]);return d}const DS=M0({scrapeMotionValuesFromProps:Qd,createRenderState:qd});function E0(a,s,l){const o=Qd(a,s,l);for(const d in a)if(At(a[d])||At(s[d])){const h=es.indexOf(d)!==-1?"attr"+d.charAt(0).toUpperCase()+d.substring(1):d;o[h]=a[d]}return o}const RS=M0({scrapeMotionValuesFromProps:E0,createRenderState:N0}),zS=Symbol.for("motionComponentSymbol");function Qi(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function OS(a,s,l){return j.useCallback(o=>{o&&a.onMount&&a.onMount(o),s&&(o?s.mount(o):s.unmount()),l&&(typeof l=="function"?l(o):Qi(l)&&(l.current=o))},[s])}const Zd=a=>a.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),VS="framerAppearId",D0="data-"+Zd(VS),R0=j.createContext({});function _S(a,s,l,o,d){const{visualElement:h}=j.useContext(er),f=j.useContext(x0),g=j.useContext(Io),y=j.useContext(Ud).reducedMotion,p=j.useRef(null);o=o||f.renderer,!p.current&&o&&(p.current=o(a,{visualState:s,parent:h,props:l,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:y}));const b=p.current,x=j.useContext(R0);b&&!b.projection&&d&&(b.type==="html"||b.type==="svg")&&kS(p.current,l,d,x);const S=j.useRef(!1);j.useInsertionEffect(()=>{b&&S.current&&b.update(l,g)});const N=l[D0],_=j.useRef(!!N&&!window.MotionHandoffIsComplete?.(N)&&window.MotionHasOptimisedAnimation?.(N));return Ag(()=>{b&&(S.current=!0,window.MotionIsMounted=!0,b.updateFeatures(),b.scheduleRenderMicrotask(),_.current&&b.animationState&&b.animationState.animateChanges())}),j.useEffect(()=>{b&&(!_.current&&b.animationState&&b.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(N)}),_.current=!1),b.enteringChildren=void 0)}),b}function kS(a,s,l,o){const{layoutId:d,layout:h,drag:f,dragConstraints:g,layoutScroll:y,layoutRoot:p,layoutCrossfade:b}=s;a.projection=new l(a.latestValues,s["data-framer-portal-id"]?void 0:z0(a.parent)),a.projection.setOptions({layoutId:d,layout:h,alwaysMeasureLayout:!!f||g&&Qi(g),visualElement:a,animationType:typeof h=="string"?h:"both",initialPromotionConfig:o,crossfade:b,layoutScroll:y,layoutRoot:p})}function z0(a){if(a)return a.options.allowProjection!==!1?a.projection:z0(a.parent)}function Ac(a,{forwardMotionProps:s=!1}={},l,o){l&&uS(l);const d=Xd(a)?RS:DS;function h(g,y){let p;const b={...j.useContext(Ud),...g,layoutId:BS(g)},{isStatic:x}=b,S=mS(g),N=d(g,x);if(!x&&bd){LS();const _=US(b);p=_.MeasureLayout,S.visualElement=_S(a,N,b,o,_.ProjectionNode)}return c.jsxs(er.Provider,{value:S,children:[p&&S.visualElement?c.jsx(p,{visualElement:S.visualElement,...b}):null,AS(a,g,OS(N,S.visualElement,y),N,x,s)]})}h.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const f=j.forwardRef(h);return f[zS]=a,f}function BS({layoutId:a}){const s=j.useContext(yd).id;return s&&a!==void 0?s+"-"+a:a}function LS(a,s){j.useContext(x0).strict}function US(a){const{drag:s,layout:l}=$i;if(!s&&!l)return{};const o={...s,...l};return{MeasureLayout:s?.isEnabled(a)||l?.isEnabled(a)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function HS(a,s){if(typeof Proxy>"u")return Ac;const l=new Map,o=(h,f)=>Ac(h,f,a,s),d=(h,f)=>o(h,f);return new Proxy(d,{get:(h,f)=>f==="create"?o:(l.has(f)||l.set(f,Ac(f,void 0,a,s)),l.get(f))})}function O0({top:a,left:s,right:l,bottom:o}){return{x:{min:s,max:l},y:{min:a,max:o}}}function GS({x:a,y:s}){return{top:s.min,right:a.max,bottom:s.max,left:a.min}}function YS(a,s){if(!s)return a;const l=s({x:a.left,y:a.top}),o=s({x:a.right,y:a.bottom});return{top:l.y,left:l.x,bottom:o.y,right:o.x}}function Mc(a){return a===void 0||a===1}function td({scale:a,scaleX:s,scaleY:l}){return!Mc(a)||!Mc(s)||!Mc(l)}function $a(a){return td(a)||V0(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function V0(a){return Dy(a.x)||Dy(a.y)}function Dy(a){return a&&a!=="0%"}function Fo(a,s,l){const o=a-l,d=s*o;return l+d}function Ry(a,s,l,o,d){return d!==void 0&&(a=Fo(a,d,o)),Fo(a,l,o)+s}function nd(a,s=0,l=1,o,d){a.min=Ry(a.min,s,l,o,d),a.max=Ry(a.max,s,l,o,d)}function _0(a,{x:s,y:l}){nd(a.x,s.translate,s.scale,s.originPoint),nd(a.y,l.translate,l.scale,l.originPoint)}const zy=.999999999999,Oy=1.0000000000001;function qS(a,s,l,o=!1){const d=l.length;if(!d)return;s.x=s.y=1;let h,f;for(let g=0;g<d;g++){h=l[g],f=h.projectionDelta;const{visualElement:y}=h.options;y&&y.props.style&&y.props.style.display==="contents"||(o&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Ji(a,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),f&&(s.x*=f.x.scale,s.y*=f.y.scale,_0(a,f)),o&&$a(h.latestValues)&&Ji(a,h.latestValues))}s.x<Oy&&s.x>zy&&(s.x=1),s.y<Oy&&s.y>zy&&(s.y=1)}function Zi(a,s){a.min=a.min+s,a.max=a.max+s}function Vy(a,s,l,o,d=.5){const h=Pe(a.min,a.max,d);nd(a,s,l,h,o)}function Ji(a,s){Vy(a.x,s.x,s.scaleX,s.scale,s.originX),Vy(a.y,s.y,s.scaleY,s.scale,s.originY)}function k0(a,s){return O0(YS(a.getBoundingClientRect(),s))}function XS(a,s,l){const o=k0(a,l),{scroll:d}=s;return d&&(Zi(o.x,d.offset.x),Zi(o.y,d.offset.y)),o}const _y=()=>({translate:0,scale:1,origin:0,originPoint:0}),Pi=()=>({x:_y(),y:_y()}),ky=()=>({min:0,max:0}),ft=()=>({x:ky(),y:ky()}),ad={current:null},B0={current:!1};function KS(){if(B0.current=!0,!!bd)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),s=()=>ad.current=a.matches;a.addEventListener("change",s),s()}else ad.current=!1}const QS=new WeakMap;function ZS(a,s,l){for(const o in s){const d=s[o],h=l[o];if(At(d))a.addValue(o,d);else if(At(h))a.addValue(o,Wi(d,{owner:a}));else if(h!==d)if(a.hasValue(o)){const f=a.getValue(o);f.liveStyle===!0?f.jump(d):f.hasAnimated||f.set(d)}else{const f=a.getStaticValue(o);a.addValue(o,Wi(f!==void 0?f:d,{owner:a}))}}for(const o in l)s[o]===void 0&&a.removeValue(o);return s}const By=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class JS{scrapeMotionValuesFromProps(s,l,o){return{}}constructor({parent:s,props:l,presenceContext:o,reducedMotionConfig:d,blockInitialAnimation:h,visualState:f},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Vd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const S=Ht.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,Je.render(this.render,!1,!0))};const{latestValues:y,renderState:p}=f;this.latestValues=y,this.baseTarget={...y},this.initialValues=l.initial?{...y}:{},this.renderState=p,this.parent=s,this.props=l,this.presenceContext=o,this.depth=s?s.depth+1:0,this.reducedMotionConfig=d,this.options=g,this.blockInitialAnimation=!!h,this.isControllingVariants=nr(l),this.isVariantNode=C0(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(s&&s.current);const{willChange:b,...x}=this.scrapeMotionValuesFromProps(l,{},this);for(const S in x){const N=x[S];y[S]!==void 0&&At(N)&&N.set(y[S])}}mount(s){this.current=s,QS.set(s,this),this.projection&&!this.projection.instance&&this.projection.mount(s),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((l,o)=>this.bindToMotionValue(o,l)),B0.current||KS(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ad.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ma(this.notifyUpdate),Ma(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const l=this.features[s];l&&(l.unmount(),l.isMounted=!1)}this.current=null}addChild(s){this.children.add(s),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(s)}removeChild(s){this.children.delete(s),this.enteringChildren&&this.enteringChildren.delete(s)}bindToMotionValue(s,l){this.valueSubscriptions.has(s)&&this.valueSubscriptions.get(s)();const o=ts.has(s);o&&this.onBindTransform&&this.onBindTransform();const d=l.on("change",f=>{this.latestValues[s]=f,this.props.onUpdate&&Je.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let h;window.MotionCheckAppearSync&&(h=window.MotionCheckAppearSync(this,s,l)),this.valueSubscriptions.set(s,()=>{d(),h&&h(),l.owner&&l.stop()})}sortNodePosition(s){return!this.current||!this.sortInstanceNodePosition||this.type!==s.type?0:this.sortInstanceNodePosition(this.current,s.current)}updateFeatures(){let s="animation";for(s in $i){const l=$i[s];if(!l)continue;const{isEnabled:o,Feature:d}=l;if(!this.features[s]&&d&&o(this.props)&&(this.features[s]=new d(this)),this.features[s]){const h=this.features[s];h.isMounted?h.update():(h.mount(),h.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ft()}getStaticValue(s){return this.latestValues[s]}setStaticValue(s,l){this.latestValues[s]=l}update(s,l){(s.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=s,this.prevPresenceContext=this.presenceContext,this.presenceContext=l;for(let o=0;o<By.length;o++){const d=By[o];this.propEventSubscriptions[d]&&(this.propEventSubscriptions[d](),delete this.propEventSubscriptions[d]);const h="on"+d,f=s[h];f&&(this.propEventSubscriptions[d]=this.on(d,f))}this.prevMotionValues=ZS(this,this.scrapeMotionValuesFromProps(s,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(s){return this.props.variants?this.props.variants[s]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(s){const l=this.getClosestVariantNode();if(l)return l.variantChildren&&l.variantChildren.add(s),()=>l.variantChildren.delete(s)}addValue(s,l){const o=this.values.get(s);l!==o&&(o&&this.removeValue(s),this.bindToMotionValue(s,l),this.values.set(s,l),this.latestValues[s]=l.get())}removeValue(s){this.values.delete(s);const l=this.valueSubscriptions.get(s);l&&(l(),this.valueSubscriptions.delete(s)),delete this.latestValues[s],this.removeValueFromRenderState(s,this.renderState)}hasValue(s){return this.values.has(s)}getValue(s,l){if(this.props.values&&this.props.values[s])return this.props.values[s];let o=this.values.get(s);return o===void 0&&l!==void 0&&(o=Wi(l===null?void 0:l,{owner:this}),this.addValue(s,o)),o}readValue(s,l){let o=this.latestValues[s]!==void 0||!this.current?this.latestValues[s]:this.getBaseTargetFromProps(this.props,s)??this.readValueFromInstance(this.current,s,this.options);return o!=null&&(typeof o=="string"&&(Mg(o)||Dg(o))?o=parseFloat(o):!nS(o)&&Ea.test(l)&&(o=f0(s,l)),this.setBaseTarget(s,At(o)?o.get():o)),At(o)?o.get():o}setBaseTarget(s,l){this.baseTarget[s]=l}getBaseTarget(s){const{initial:l}=this.props;let o;if(typeof l=="string"||typeof l=="object"){const h=Kd(this.props,l,this.presenceContext?.custom);h&&(o=h[s])}if(l&&o!==void 0)return o;const d=this.getBaseTargetFromProps(this.props,s);return d!==void 0&&!At(d)?d:this.initialValues[s]!==void 0&&o===void 0?void 0:this.baseTarget[s]}on(s,l){return this.events[s]||(this.events[s]=new wd),this.events[s].add(l)}notify(s,...l){this.events[s]&&this.events[s].notify(...l)}scheduleRenderMicrotask(){Bd.render(this.render)}}class L0 extends JS{constructor(){super(...arguments),this.KeyframeResolver=X2}sortInstanceNodePosition(s,l){return s.compareDocumentPosition(l)&2?1:-1}getBaseTargetFromProps(s,l){return s.style?s.style[l]:void 0}removeValueFromRenderState(s,{vars:l,style:o}){delete l[s],delete o[s]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:s}=this.props;At(s)&&(this.childSubscription=s.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}function U0(a,{style:s,vars:l},o,d){const h=a.style;let f;for(f in s)h[f]=s[f];d?.applyProjectionStyles(h,o);for(f in l)h.setProperty(f,l[f])}function PS(a){return window.getComputedStyle(a)}class FS extends L0{constructor(){super(...arguments),this.type="html",this.renderInstance=U0}readValueFromInstance(s,l){if(ts.has(l))return this.projection?.isProjecting?Zc(l):u2(s,l);{const o=PS(s),d=(Xg(l)?o.getPropertyValue(l):o[l])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(s,{transformPagePoint:l}){return k0(s,l)}build(s,l,o){Yd(s,l,o.transformTemplate)}scrapeMotionValuesFromProps(s,l,o){return Qd(s,l,o)}}const H0=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function WS(a,s,l,o){U0(a,s,void 0,o);for(const d in s.attrs)a.setAttribute(H0.has(d)?d:Zd(d),s.attrs[d])}class $S extends L0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ft}getBaseTargetFromProps(s,l){return s[l]}readValueFromInstance(s,l){if(ts.has(l)){const o=d0(l);return o&&o.default||0}return l=H0.has(l)?l:Zd(l),s.getAttribute(l)}scrapeMotionValuesFromProps(s,l,o){return E0(s,l,o)}build(s,l,o){T0(s,l,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(s,l,o,d){WS(s,l,o,d)}mount(s){this.isSVGTag=A0(s.tagName),super.mount(s)}}const IS=(a,s)=>Xd(a)?new $S(s):new FS(s,{allowProjection:a!==j.Fragment});function Fi(a,s,l){const o=a.getProps();return Kd(o,s,l!==void 0?l:o.custom,a)}const id=a=>Array.isArray(a);function eC(a,s,l){a.hasValue(s)?a.getValue(s).set(l):a.addValue(s,Wi(l))}function tC(a){return id(a)?a[a.length-1]||0:a}function nC(a,s){const l=Fi(a,s);let{transitionEnd:o={},transition:d={},...h}=l||{};h={...h,...o};for(const f in h){const g=tC(h[f]);eC(a,f,g)}}function aC(a){return!!(At(a)&&a.add)}function sd(a,s){const l=a.getValue("willChange");if(aC(l))return l.add(s);if(!l&&$n.WillChange){const o=new $n.WillChange("auto");a.addValue("willChange",o),o.add(s)}}function G0(a){return a.props[D0]}const iC=a=>a!==null;function sC(a,{repeat:s,repeatType:l="loop"},o){const d=a.filter(iC),h=s&&l!=="loop"&&s%2===1?0:d.length-1;return d[h]}const lC={type:"spring",stiffness:500,damping:25,restSpeed:10},oC=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),rC={type:"keyframes",duration:.8},uC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},cC=(a,{keyframes:s})=>s.length>2?rC:ts.has(a)?a.startsWith("scale")?oC(s[1]):lC:uC;function dC({when:a,delay:s,delayChildren:l,staggerChildren:o,staggerDirection:d,repeat:h,repeatType:f,repeatDelay:g,from:y,elapsed:p,...b}){return!!Object.keys(b).length}const Jd=(a,s,l,o={},d,h)=>f=>{const g=_d(o,a)||{},y=g.delay||o.delay||0;let{elapsed:p=0}=o;p=p-An(y);const b={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:s.getVelocity(),...g,delay:-p,onUpdate:S=>{s.set(S),g.onUpdate&&g.onUpdate(S)},onComplete:()=>{f(),g.onComplete&&g.onComplete()},name:a,motionValue:s,element:h?void 0:d};dC(g)||Object.assign(b,cC(a,b)),b.duration&&(b.duration=An(b.duration)),b.repeatDelay&&(b.repeatDelay=An(b.repeatDelay)),b.from!==void 0&&(b.keyframes[0]=b.from);let x=!1;if((b.type===!1||b.duration===0&&!b.repeatDelay)&&($c(b),b.delay===0&&(x=!0)),($n.instantAnimations||$n.skipAnimations)&&(x=!0,$c(b),b.delay=0),b.allowFlatten=!g.type&&!g.ease,x&&!h&&s.get()!==void 0){const S=sC(b.keyframes,g);if(S!==void 0){Je.update(()=>{b.onUpdate(S),b.onComplete()});return}}return g.isSync?new Od(b):new z2(b)};function fC({protectedKeys:a,needsAnimating:s},l){const o=a.hasOwnProperty(l)&&s[l]!==!0;return s[l]=!1,o}function Y0(a,s,{delay:l=0,transitionOverride:o,type:d}={}){let{transition:h=a.getDefaultTransition(),transitionEnd:f,...g}=s;o&&(h=o);const y=[],p=d&&a.animationState&&a.animationState.getState()[d];for(const b in g){const x=a.getValue(b,a.latestValues[b]??null),S=g[b];if(S===void 0||p&&fC(p,b))continue;const N={delay:l,..._d(h||{},b)},_=x.get();if(_!==void 0&&!x.isAnimating&&!Array.isArray(S)&&S===_&&!N.velocity)continue;let V=!1;if(window.MotionHandoffAnimation){const R=G0(a);if(R){const K=window.MotionHandoffAnimation(R,b,Je);K!==null&&(N.startTime=K,V=!0)}}sd(a,b),x.start(Jd(b,x,S,a.shouldReduceMotion&&r0.has(b)?{type:!1}:N,a,V));const H=x.animation;H&&y.push(H)}return f&&Promise.all(y).then(()=>{Je.update(()=>{f&&nC(a,f)})}),y}function q0(a,s,l,o=0,d=1){const h=Array.from(a).sort((p,b)=>p.sortNodePosition(b)).indexOf(s),f=a.size,g=(f-1)*o;return typeof l=="function"?l(h,f):d===1?h*o:g-h*o}function ld(a,s,l={}){const o=Fi(a,s,l.type==="exit"?a.presenceContext?.custom:void 0);let{transition:d=a.getDefaultTransition()||{}}=o||{};l.transitionOverride&&(d=l.transitionOverride);const h=o?()=>Promise.all(Y0(a,o,l)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(y=0)=>{const{delayChildren:p=0,staggerChildren:b,staggerDirection:x}=d;return hC(a,s,y,p,b,x,l)}:()=>Promise.resolve(),{when:g}=d;if(g){const[y,p]=g==="beforeChildren"?[h,f]:[f,h];return y().then(()=>p())}else return Promise.all([h(),f(l.delay)])}function hC(a,s,l=0,o=0,d=0,h=1,f){const g=[];for(const y of a.variantChildren)y.notify("AnimationStart",s),g.push(ld(y,s,{...f,delay:l+(typeof o=="function"?0:o)+q0(a.variantChildren,y,o,d,h)}).then(()=>y.notify("AnimationComplete",s)));return Promise.all(g)}function mC(a,s,l={}){a.notify("AnimationStart",s);let o;if(Array.isArray(s)){const d=s.map(h=>ld(a,h,l));o=Promise.all(d)}else if(typeof s=="string")o=ld(a,s,l);else{const d=typeof s=="function"?Fi(a,s,l.custom):s;o=Promise.all(Y0(a,d,l))}return o.then(()=>{a.notify("AnimationComplete",s)})}function X0(a,s){if(!Array.isArray(s))return!1;const l=s.length;if(l!==a.length)return!1;for(let o=0;o<l;o++)if(s[o]!==a[o])return!1;return!0}const pC=Gd.length;function K0(a){if(!a)return;if(!a.isControllingVariants){const l=a.parent?K0(a.parent)||{}:{};return a.props.initial!==void 0&&(l.initial=a.props.initial),l}const s={};for(let l=0;l<pC;l++){const o=Gd[l],d=a.props[o];(ul(d)||d===!1)&&(s[o]=d)}return s}const yC=[...Hd].reverse(),gC=Hd.length;function bC(a){return s=>Promise.all(s.map(({animation:l,options:o})=>mC(a,l,o)))}function vC(a){let s=bC(a),l=Ly(),o=!0;const d=y=>(p,b)=>{const x=Fi(a,b,y==="exit"?a.presenceContext?.custom:void 0);if(x){const{transition:S,transitionEnd:N,..._}=x;p={...p,..._,...N}}return p};function h(y){s=y(a)}function f(y){const{props:p}=a,b=K0(a.parent)||{},x=[],S=new Set;let N={},_=1/0;for(let H=0;H<gC;H++){const R=yC[H],K=l[R],Y=p[R]!==void 0?p[R]:b[R],$=ul(Y),Q=R===y?K.isActive:null;Q===!1&&(_=H);let W=Y===b[R]&&Y!==p[R]&&$;if(W&&o&&a.manuallyAnimateOnMount&&(W=!1),K.protectedKeys={...N},!K.isActive&&Q===null||!Y&&!K.prevProp||tr(Y)||typeof Y=="boolean")continue;const X=xC(K.prevProp,Y);let E=X||R===y&&K.isActive&&!W&&$||H>_&&$,te=!1;const J=Array.isArray(Y)?Y:[Y];let U=J.reduce(d(R),{});Q===!1&&(U={});const{prevResolvedValues:ie={}}=K,le={...ie,...U},re=G=>{E=!0,S.has(G)&&(te=!0,S.delete(G)),K.needsAnimating[G]=!0;const M=a.getValue(G);M&&(M.liveStyle=!1)};for(const G in le){const M=U[G],oe=ie[G];if(N.hasOwnProperty(G))continue;let se=!1;id(M)&&id(oe)?se=!X0(M,oe):se=M!==oe,se?M!=null?re(G):S.add(G):M!==void 0&&S.has(G)?re(G):K.protectedKeys[G]=!0}K.prevProp=Y,K.prevResolvedValues=U,K.isActive&&(N={...N,...U}),o&&a.blockInitialAnimation&&(E=!1);const ee=W&&X;E&&(!ee||te)&&x.push(...J.map(G=>{const M={type:R};if(typeof G=="string"&&o&&!ee&&a.manuallyAnimateOnMount&&a.parent){const{parent:oe}=a,se=Fi(oe,G);if(oe.enteringChildren&&se){const{delayChildren:C}=se.transition||{};M.delay=q0(oe.enteringChildren,a,C)}}return{animation:G,options:M}}))}if(S.size){const H={};if(typeof p.initial!="boolean"){const R=Fi(a,Array.isArray(p.initial)?p.initial[0]:p.initial);R&&R.transition&&(H.transition=R.transition)}S.forEach(R=>{const K=a.getBaseTarget(R),Y=a.getValue(R);Y&&(Y.liveStyle=!0),H[R]=K??null}),x.push({animation:H})}let V=!!x.length;return o&&(p.initial===!1||p.initial===p.animate)&&!a.manuallyAnimateOnMount&&(V=!1),o=!1,V?s(x):Promise.resolve()}function g(y,p){if(l[y].isActive===p)return Promise.resolve();a.variantChildren?.forEach(x=>x.animationState?.setActive(y,p)),l[y].isActive=p;const b=f(y);for(const x in l)l[x].protectedKeys={};return b}return{animateChanges:f,setActive:g,setAnimateFunction:h,getState:()=>l,reset:()=>{l=Ly()}}}function xC(a,s){return typeof s=="string"?s!==a:Array.isArray(s)?!X0(s,a):!1}function Pa(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ly(){return{animate:Pa(!0),whileInView:Pa(),whileHover:Pa(),whileTap:Pa(),whileDrag:Pa(),whileFocus:Pa(),exit:Pa()}}class Da{constructor(s){this.isMounted=!1,this.node=s}update(){}}class SC extends Da{constructor(s){super(s),s.animationState||(s.animationState=vC(s))}updateAnimationControlsSubscription(){const{animate:s}=this.node.getProps();tr(s)&&(this.unmountControls=s.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:s}=this.node.getProps(),{animate:l}=this.node.prevProps||{};s!==l&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let CC=0;class wC extends Da{constructor(){super(...arguments),this.id=CC++}update(){if(!this.node.presenceContext)return;const{isPresent:s,onExitComplete:l}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||s===o)return;const d=this.node.animationState.setActive("exit",!s);l&&!s&&d.then(()=>{l(this.id)})}mount(){const{register:s,onExitComplete:l}=this.node.presenceContext||{};l&&l(this.id),s&&(this.unmount=s(this.id))}unmount(){}}const jC={animation:{Feature:SC},exit:{Feature:wC}};function cl(a,s,l,o={passive:!0}){return a.addEventListener(s,l,o),()=>a.removeEventListener(s,l)}function ml(a){return{point:{x:a.pageX,y:a.pageY}}}const TC=a=>s=>Ld(s)&&a(s,ml(s));function il(a,s,l,o){return cl(a,s,TC(l),o)}const Q0=1e-4,NC=1-Q0,AC=1+Q0,Z0=.01,MC=0-Z0,EC=0+Z0;function Dt(a){return a.max-a.min}function DC(a,s,l){return Math.abs(a-s)<=l}function Uy(a,s,l,o=.5){a.origin=o,a.originPoint=Pe(s.min,s.max,a.origin),a.scale=Dt(l)/Dt(s),a.translate=Pe(l.min,l.max,a.origin)-a.originPoint,(a.scale>=NC&&a.scale<=AC||isNaN(a.scale))&&(a.scale=1),(a.translate>=MC&&a.translate<=EC||isNaN(a.translate))&&(a.translate=0)}function sl(a,s,l,o){Uy(a.x,s.x,l.x,o?o.originX:void 0),Uy(a.y,s.y,l.y,o?o.originY:void 0)}function Hy(a,s,l){a.min=l.min+s.min,a.max=a.min+Dt(s)}function RC(a,s,l){Hy(a.x,s.x,l.x),Hy(a.y,s.y,l.y)}function Gy(a,s,l){a.min=s.min-l.min,a.max=a.min+Dt(s)}function Wo(a,s,l){Gy(a.x,s.x,l.x),Gy(a.y,s.y,l.y)}function un(a){return[a("x"),a("y")]}const J0=({current:a})=>a?a.ownerDocument.defaultView:null,Yy=(a,s)=>Math.abs(a-s);function zC(a,s){const l=Yy(a.x,s.x),o=Yy(a.y,s.y);return Math.sqrt(l**2+o**2)}class P0{constructor(s,l,{transformPagePoint:o,contextWindow:d=window,dragSnapToOrigin:h=!1,distanceThreshold:f=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=Dc(this.lastMoveEventInfo,this.history),N=this.startEvent!==null,_=zC(S.offset,{x:0,y:0})>=this.distanceThreshold;if(!N&&!_)return;const{point:V}=S,{timestamp:H}=Tt;this.history.push({...V,timestamp:H});const{onStart:R,onMove:K}=this.handlers;N||(R&&R(this.lastMoveEvent,S),this.startEvent=this.lastMoveEvent),K&&K(this.lastMoveEvent,S)},this.handlePointerMove=(S,N)=>{this.lastMoveEvent=S,this.lastMoveEventInfo=Ec(N,this.transformPagePoint),Je.update(this.updatePoint,!0)},this.handlePointerUp=(S,N)=>{this.end();const{onEnd:_,onSessionEnd:V,resumeAnimation:H}=this.handlers;if(this.dragSnapToOrigin&&H&&H(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const R=Dc(S.type==="pointercancel"?this.lastMoveEventInfo:Ec(N,this.transformPagePoint),this.history);this.startEvent&&_&&_(S,R),V&&V(S,R)},!Ld(s))return;this.dragSnapToOrigin=h,this.handlers=l,this.transformPagePoint=o,this.distanceThreshold=f,this.contextWindow=d||window;const g=ml(s),y=Ec(g,this.transformPagePoint),{point:p}=y,{timestamp:b}=Tt;this.history=[{...p,timestamp:b}];const{onSessionStart:x}=l;x&&x(s,Dc(y,this.history)),this.removeListeners=dl(il(this.contextWindow,"pointermove",this.handlePointerMove),il(this.contextWindow,"pointerup",this.handlePointerUp),il(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(s){this.handlers=s}end(){this.removeListeners&&this.removeListeners(),Ma(this.updatePoint)}}function Ec(a,s){return s?{point:s(a.point)}:a}function qy(a,s){return{x:a.x-s.x,y:a.y-s.y}}function Dc({point:a},s){return{point:a,delta:qy(a,F0(s)),offset:qy(a,OC(s)),velocity:VC(s,.1)}}function OC(a){return a[0]}function F0(a){return a[a.length-1]}function VC(a,s){if(a.length<2)return{x:0,y:0};let l=a.length-1,o=null;const d=F0(a);for(;l>=0&&(o=a[l],!(d.timestamp-o.timestamp>An(s)));)l--;if(!o)return{x:0,y:0};const h=cn(d.timestamp-o.timestamp);if(h===0)return{x:0,y:0};const f={x:(d.x-o.x)/h,y:(d.y-o.y)/h};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function _C(a,{min:s,max:l},o){return s!==void 0&&a<s?a=o?Pe(s,a,o.min):Math.max(a,s):l!==void 0&&a>l&&(a=o?Pe(l,a,o.max):Math.min(a,l)),a}function Xy(a,s,l){return{min:s!==void 0?a.min+s:void 0,max:l!==void 0?a.max+l-(a.max-a.min):void 0}}function kC(a,{top:s,left:l,bottom:o,right:d}){return{x:Xy(a.x,l,d),y:Xy(a.y,s,o)}}function Ky(a,s){let l=s.min-a.min,o=s.max-a.max;return s.max-s.min<a.max-a.min&&([l,o]=[o,l]),{min:l,max:o}}function BC(a,s){return{x:Ky(a.x,s.x),y:Ky(a.y,s.y)}}function LC(a,s){let l=.5;const o=Dt(a),d=Dt(s);return d>o?l=ll(s.min,s.max-o,a.min):o>d&&(l=ll(a.min,a.max-d,s.min)),Wn(0,1,l)}function UC(a,s){const l={};return s.min!==void 0&&(l.min=s.min-a.min),s.max!==void 0&&(l.max=s.max-a.min),l}const od=.35;function HC(a=od){return a===!1?a=0:a===!0&&(a=od),{x:Qy(a,"left","right"),y:Qy(a,"top","bottom")}}function Qy(a,s,l){return{min:Zy(a,s),max:Zy(a,l)}}function Zy(a,s){return typeof a=="number"?a:a[s]||0}const GC=new WeakMap;class YC{constructor(s){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ft(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=s}start(s,{snapToCursor:l=!1,distanceThreshold:o}={}){const{presenceContext:d}=this.visualElement;if(d&&d.isPresent===!1)return;const h=x=>{const{dragSnapToOrigin:S}=this.getProps();S?this.pauseAnimation():this.stopAnimation(),l&&this.snapToCursor(ml(x).point)},f=(x,S)=>{const{drag:N,dragPropagation:_,onDragStart:V}=this.getProps();if(N&&!_&&(this.openDragLock&&this.openDragLock(),this.openDragLock=J2(N),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),un(R=>{let K=this.getAxisMotionValue(R).get()||0;if(Mn.test(K)){const{projection:Y}=this.visualElement;if(Y&&Y.layout){const $=Y.layout.layoutBox[R];$&&(K=Dt($)*(parseFloat(K)/100))}}this.originPoint[R]=K}),V&&Je.postRender(()=>V(x,S)),sd(this.visualElement,"transform");const{animationState:H}=this.visualElement;H&&H.setActive("whileDrag",!0)},g=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S;const{dragPropagation:N,dragDirectionLock:_,onDirectionLock:V,onDrag:H}=this.getProps();if(!N&&!this.openDragLock)return;const{offset:R}=S;if(_&&this.currentDirection===null){this.currentDirection=qC(R),this.currentDirection!==null&&V&&V(this.currentDirection);return}this.updateAxis("x",S.point,R),this.updateAxis("y",S.point,R),this.visualElement.render(),H&&H(x,S)},y=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S,this.stop(x,S),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>un(x=>this.getAnimationState(x)==="paused"&&this.getAxisMotionValue(x).animation?.play()),{dragSnapToOrigin:b}=this.getProps();this.panSession=new P0(s,{onSessionStart:h,onStart:f,onMove:g,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:b,distanceThreshold:o,contextWindow:J0(this.visualElement)})}stop(s,l){const o=s||this.latestPointerEvent,d=l||this.latestPanInfo,h=this.isDragging;if(this.cancel(),!h||!d||!o)return;const{velocity:f}=d;this.startAnimation(f);const{onDragEnd:g}=this.getProps();g&&Je.postRender(()=>g(o,d))}cancel(){this.isDragging=!1;const{projection:s,animationState:l}=this.visualElement;s&&(s.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),l&&l.setActive("whileDrag",!1)}updateAxis(s,l,o){const{drag:d}=this.getProps();if(!o||!ko(s,d,this.currentDirection))return;const h=this.getAxisMotionValue(s);let f=this.originPoint[s]+o[s];this.constraints&&this.constraints[s]&&(f=_C(f,this.constraints[s],this.elastic[s])),h.set(f)}resolveConstraints(){const{dragConstraints:s,dragElastic:l}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,d=this.constraints;s&&Qi(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&o?this.constraints=kC(o.layoutBox,s):this.constraints=!1,this.elastic=HC(l),d!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&un(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=UC(o.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:s,onMeasureDragConstraints:l}=this.getProps();if(!s||!Qi(s))return!1;const o=s.current,{projection:d}=this.visualElement;if(!d||!d.layout)return!1;const h=XS(o,d.root,this.visualElement.getTransformPagePoint());let f=BC(d.layout.layoutBox,h);if(l){const g=l(GS(f));this.hasMutatedConstraints=!!g,g&&(f=O0(g))}return f}startAnimation(s){const{drag:l,dragMomentum:o,dragElastic:d,dragTransition:h,dragSnapToOrigin:f,onDragTransitionEnd:g}=this.getProps(),y=this.constraints||{},p=un(b=>{if(!ko(b,l,this.currentDirection))return;let x=y&&y[b]||{};f&&(x={min:0,max:0});const S=d?200:1e6,N=d?40:1e7,_={type:"inertia",velocity:o?s[b]:0,bounceStiffness:S,bounceDamping:N,timeConstant:750,restDelta:1,restSpeed:10,...h,...x};return this.startAxisValueAnimation(b,_)});return Promise.all(p).then(g)}startAxisValueAnimation(s,l){const o=this.getAxisMotionValue(s);return sd(this.visualElement,s),o.start(Jd(s,o,0,l,this.visualElement,!1))}stopAnimation(){un(s=>this.getAxisMotionValue(s).stop())}pauseAnimation(){un(s=>this.getAxisMotionValue(s).animation?.pause())}getAnimationState(s){return this.getAxisMotionValue(s).animation?.state}getAxisMotionValue(s){const l=`_drag${s.toUpperCase()}`,o=this.visualElement.getProps(),d=o[l];return d||this.visualElement.getValue(s,(o.initial?o.initial[s]:void 0)||0)}snapToCursor(s){un(l=>{const{drag:o}=this.getProps();if(!ko(l,o,this.currentDirection))return;const{projection:d}=this.visualElement,h=this.getAxisMotionValue(l);if(d&&d.layout){const{min:f,max:g}=d.layout.layoutBox[l];h.set(s[l]-Pe(f,g,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:s,dragConstraints:l}=this.getProps(),{projection:o}=this.visualElement;if(!Qi(l)||!o||!this.constraints)return;this.stopAnimation();const d={x:0,y:0};un(f=>{const g=this.getAxisMotionValue(f);if(g&&this.constraints!==!1){const y=g.get();d[f]=LC({min:y,max:y},this.constraints[f])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),un(f=>{if(!ko(f,s,null))return;const g=this.getAxisMotionValue(f),{min:y,max:p}=this.constraints[f];g.set(Pe(y,p,d[f]))})}addListeners(){if(!this.visualElement.current)return;GC.set(this.visualElement,this);const s=this.visualElement.current,l=il(s,"pointerdown",y=>{const{drag:p,dragListener:b=!0}=this.getProps();p&&b&&this.start(y)}),o=()=>{const{dragConstraints:y}=this.getProps();Qi(y)&&y.current&&(this.constraints=this.resolveRefConstraints())},{projection:d}=this.visualElement,h=d.addEventListener("measure",o);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),Je.read(o);const f=cl(window,"resize",()=>this.scalePositionWithinConstraints()),g=d.addEventListener("didUpdate",(({delta:y,hasLayoutChanged:p})=>{this.isDragging&&p&&(un(b=>{const x=this.getAxisMotionValue(b);x&&(this.originPoint[b]+=y[b].translate,x.set(x.get()+y[b].translate))}),this.visualElement.render())}));return()=>{f(),l(),h(),g&&g()}}getProps(){const s=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:o=!1,dragPropagation:d=!1,dragConstraints:h=!1,dragElastic:f=od,dragMomentum:g=!0}=s;return{...s,drag:l,dragDirectionLock:o,dragPropagation:d,dragConstraints:h,dragElastic:f,dragMomentum:g}}}function ko(a,s,l){return(s===!0||s===a)&&(l===null||l===a)}function qC(a,s=10){let l=null;return Math.abs(a.y)>s?l="y":Math.abs(a.x)>s&&(l="x"),l}class XC extends Da{constructor(s){super(s),this.removeGroupControls=dn,this.removeListeners=dn,this.controls=new YC(s)}mount(){const{dragControls:s}=this.node.getProps();s&&(this.removeGroupControls=s.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dn}unmount(){this.removeGroupControls(),this.removeListeners()}}const Jy=a=>(s,l)=>{a&&Je.postRender(()=>a(s,l))};class KC extends Da{constructor(){super(...arguments),this.removePointerDownListener=dn}onPointerDown(s){this.session=new P0(s,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:J0(this.node)})}createPanHandlers(){const{onPanSessionStart:s,onPanStart:l,onPan:o,onPanEnd:d}=this.node.getProps();return{onSessionStart:Jy(s),onStart:Jy(l),onMove:o,onEnd:(h,f)=>{delete this.session,d&&Je.postRender(()=>d(h,f))}}}mount(){this.removePointerDownListener=il(this.node.current,"pointerdown",s=>this.onPointerDown(s))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Xo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Rc=!1;class QC extends j.Component{componentDidMount(){const{visualElement:s,layoutGroup:l,switchLayoutGroup:o,layoutId:d}=this.props,{projection:h}=s;h&&(l.group&&l.group.add(h),o&&o.register&&d&&o.register(h),Rc&&h.root.didUpdate(),h.addEventListener("animationComplete",()=>{this.safeToRemove()}),h.setOptions({...h.options,onExitComplete:()=>this.safeToRemove()})),Xo.hasEverUpdated=!0}getSnapshotBeforeUpdate(s){const{layoutDependency:l,visualElement:o,drag:d,isPresent:h}=this.props,{projection:f}=o;return f&&(f.isPresent=h,Rc=!0,d||s.layoutDependency!==l||l===void 0||s.isPresent!==h?f.willUpdate():this.safeToRemove(),s.isPresent!==h&&(h?f.promote():f.relegate()||Je.postRender(()=>{const g=f.getStack();(!g||!g.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:s}=this.props.visualElement;s&&(s.root.didUpdate(),Bd.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:s,layoutGroup:l,switchLayoutGroup:o}=this.props,{projection:d}=s;Rc=!0,d&&(d.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(d),o&&o.deregister&&o.deregister(d))}safeToRemove(){const{safeToRemove:s}=this.props;s&&s()}render(){return null}}function W0(a){const[s,l]=v0(),o=j.useContext(yd);return c.jsx(QC,{...a,layoutGroup:o,switchLayoutGroup:j.useContext(R0),isPresent:s,safeToRemove:l})}function ZC(a,s,l){const o=At(a)?a:Wi(a);return o.start(Jd("",o,s,l)),o.animation}const JC=(a,s)=>a.depth-s.depth;class PC{constructor(){this.children=[],this.isDirty=!1}add(s){vd(this.children,s),this.isDirty=!0}remove(s){xd(this.children,s),this.isDirty=!0}forEach(s){this.isDirty&&this.children.sort(JC),this.isDirty=!1,this.children.forEach(s)}}function FC(a,s){const l=Ht.now(),o=({timestamp:d})=>{const h=d-l;h>=s&&(Ma(o),a(h-s))};return Je.setup(o,!0),()=>Ma(o)}const $0=["TopLeft","TopRight","BottomLeft","BottomRight"],WC=$0.length,Py=a=>typeof a=="string"?parseFloat(a):a,Fy=a=>typeof a=="number"||xe.test(a);function $C(a,s,l,o,d,h){d?(a.opacity=Pe(0,l.opacity??1,IC(o)),a.opacityExit=Pe(s.opacity??1,0,ew(o))):h&&(a.opacity=Pe(s.opacity??1,l.opacity??1,o));for(let f=0;f<WC;f++){const g=`border${$0[f]}Radius`;let y=Wy(s,g),p=Wy(l,g);if(y===void 0&&p===void 0)continue;y||(y=0),p||(p=0),y===0||p===0||Fy(y)===Fy(p)?(a[g]=Math.max(Pe(Py(y),Py(p),o),0),(Mn.test(p)||Mn.test(y))&&(a[g]+="%")):a[g]=p}(s.rotate||l.rotate)&&(a.rotate=Pe(s.rotate||0,l.rotate||0,o))}function Wy(a,s){return a[s]!==void 0?a[s]:a.borderRadius}const IC=I0(0,.5,Lg),ew=I0(.5,.95,dn);function I0(a,s,l){return o=>o<a?0:o>s?1:l(ll(a,s,o))}function $y(a,s){a.min=s.min,a.max=s.max}function vn(a,s){$y(a.x,s.x),$y(a.y,s.y)}function Iy(a,s){a.translate=s.translate,a.scale=s.scale,a.originPoint=s.originPoint,a.origin=s.origin}function eg(a,s,l,o,d){return a-=s,a=Fo(a,1/l,o),d!==void 0&&(a=Fo(a,1/d,o)),a}function tw(a,s=0,l=1,o=.5,d,h=a,f=a){if(Mn.test(s)&&(s=parseFloat(s),s=Pe(f.min,f.max,s/100)-f.min),typeof s!="number")return;let g=Pe(h.min,h.max,o);a===h&&(g-=s),a.min=eg(a.min,s,l,g,d),a.max=eg(a.max,s,l,g,d)}function tg(a,s,[l,o,d],h,f){tw(a,s[l],s[o],s[d],s.scale,h,f)}const nw=["x","scaleX","originX"],aw=["y","scaleY","originY"];function ng(a,s,l,o){tg(a.x,s,nw,l?l.x:void 0,o?o.x:void 0),tg(a.y,s,aw,l?l.y:void 0,o?o.y:void 0)}function ag(a){return a.translate===0&&a.scale===1}function eb(a){return ag(a.x)&&ag(a.y)}function ig(a,s){return a.min===s.min&&a.max===s.max}function iw(a,s){return ig(a.x,s.x)&&ig(a.y,s.y)}function sg(a,s){return Math.round(a.min)===Math.round(s.min)&&Math.round(a.max)===Math.round(s.max)}function tb(a,s){return sg(a.x,s.x)&&sg(a.y,s.y)}function lg(a){return Dt(a.x)/Dt(a.y)}function og(a,s){return a.translate===s.translate&&a.scale===s.scale&&a.originPoint===s.originPoint}class sw{constructor(){this.members=[]}add(s){vd(this.members,s),s.scheduleRender()}remove(s){if(xd(this.members,s),s===this.prevLead&&(this.prevLead=void 0),s===this.lead){const l=this.members[this.members.length-1];l&&this.promote(l)}}relegate(s){const l=this.members.findIndex(d=>s===d);if(l===0)return!1;let o;for(let d=l;d>=0;d--){const h=this.members[d];if(h.isPresent!==!1){o=h;break}}return o?(this.promote(o),!0):!1}promote(s,l){const o=this.lead;if(s!==o&&(this.prevLead=o,this.lead=s,s.show(),o)){o.instance&&o.scheduleRender(),s.scheduleRender(),s.resumeFrom=o,l&&(s.resumeFrom.preserveOpacity=!0),o.snapshot&&(s.snapshot=o.snapshot,s.snapshot.latestValues=o.animationValues||o.latestValues),s.root&&s.root.isUpdating&&(s.isLayoutDirty=!0);const{crossfade:d}=s.options;d===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(s=>{const{options:l,resumingFrom:o}=s;l.onExitComplete&&l.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(s=>{s.instance&&s.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function lw(a,s,l){let o="";const d=a.x.translate/s.x,h=a.y.translate/s.y,f=l?.z||0;if((d||h||f)&&(o=`translate3d(${d}px, ${h}px, ${f}px) `),(s.x!==1||s.y!==1)&&(o+=`scale(${1/s.x}, ${1/s.y}) `),l){const{transformPerspective:p,rotate:b,rotateX:x,rotateY:S,skewX:N,skewY:_}=l;p&&(o=`perspective(${p}px) ${o}`),b&&(o+=`rotate(${b}deg) `),x&&(o+=`rotateX(${x}deg) `),S&&(o+=`rotateY(${S}deg) `),N&&(o+=`skewX(${N}deg) `),_&&(o+=`skewY(${_}deg) `)}const g=a.x.scale*s.x,y=a.y.scale*s.y;return(g!==1||y!==1)&&(o+=`scale(${g}, ${y})`),o||"none"}const zc=["","X","Y","Z"],ow=1e3;let rw=0;function Oc(a,s,l,o){const{latestValues:d}=s;d[a]&&(l[a]=d[a],s.setStaticValue(a,0),o&&(o[a]=0))}function nb(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:s}=a.options;if(!s)return;const l=G0(s);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:d,layoutId:h}=a.options;window.MotionCancelOptimisedAnimation(l,"transform",Je,!(d||h))}const{parent:o}=a;o&&!o.hasCheckedOptimisedAppear&&nb(o)}function ab({attachResizeListener:a,defaultParent:s,measureScroll:l,checkIsScrollRoot:o,resetTransform:d}){return class{constructor(f={},g=s?.()){this.id=rw++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(dw),this.nodes.forEach(pw),this.nodes.forEach(yw),this.nodes.forEach(fw)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=g?g.root||g:this,this.path=g?[...g.path,g]:[],this.parent=g,this.depth=g?g.depth+1:0;for(let y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new PC)}addEventListener(f,g){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new wd),this.eventHandlers.get(f).add(g)}notifyListeners(f,...g){const y=this.eventHandlers.get(f);y&&y.notify(...g)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=b0(f)&&!eS(f),this.instance=f;const{layoutId:g,layout:y,visualElement:p}=this.options;if(p&&!p.current&&p.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||g)&&(this.isLayoutDirty=!0),a){let b,x=0;const S=()=>this.root.updateBlockedByResize=!1;Je.read(()=>{x=window.innerWidth}),a(f,()=>{const N=window.innerWidth;N!==x&&(x=N,this.root.updateBlockedByResize=!0,b&&b(),b=FC(S,250),Xo.hasAnimatedSinceResize&&(Xo.hasAnimatedSinceResize=!1,this.nodes.forEach(cg)))})}g&&this.root.registerSharedNode(g,this),this.options.animate!==!1&&p&&(g||y)&&this.addEventListener("didUpdate",({delta:b,hasLayoutChanged:x,hasRelativeLayoutChanged:S,layout:N})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const _=this.options.transition||p.getDefaultTransition()||Sw,{onLayoutAnimationStart:V,onLayoutAnimationComplete:H}=p.getProps(),R=!this.targetLayout||!tb(this.targetLayout,N),K=!x&&S;if(this.options.layoutRoot||this.resumeFrom||K||x&&(R||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const Y={..._d(_,"layout"),onPlay:V,onComplete:H};(p.shouldReduceMotion||this.options.layoutRoot)&&(Y.delay=0,Y.type=!1),this.startAnimation(Y),this.setAnimationOrigin(b,K)}else x||cg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=N})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ma(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(gw),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&nb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let b=0;b<this.path.length;b++){const x=this.path[b];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:g,layout:y}=this.options;if(g===void 0&&!y)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rg);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ug);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(mw),this.nodes.forEach(uw),this.nodes.forEach(cw)):this.nodes.forEach(ug),this.clearAllSnapshots();const g=Ht.now();Tt.delta=Wn(0,1e3/60,g-Tt.timestamp),Tt.timestamp=g,Tt.isProcessing=!0,Sc.update.process(Tt),Sc.preRender.process(Tt),Sc.render.process(Tt),Tt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Bd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hw),this.sharedNodes.forEach(bw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Je.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Je.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Dt(this.snapshot.measuredBox.x)&&!Dt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let y=0;y<this.path.length;y++)this.path[y].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ft(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:g}=this.options;g&&g.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let g=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(g=!1),g&&this.instance){const y=o(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:y,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!d)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,g=this.projectionDelta&&!eb(this.projectionDelta),y=this.getTransformTemplate(),p=y?y(this.latestValues,""):void 0,b=p!==this.prevTransformTemplateValue;f&&this.instance&&(g||$a(this.latestValues)||b)&&(d(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const g=this.measurePageBox();let y=this.removeElementScroll(g);return f&&(y=this.removeTransform(y)),Cw(y),{animationId:this.root.animationId,measuredBox:g,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:f}=this.options;if(!f)return ft();const g=f.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ww))){const{scroll:p}=this.root;p&&(Zi(g.x,p.offset.x),Zi(g.y,p.offset.y))}return g}removeElementScroll(f){const g=ft();if(vn(g,f),this.scroll?.wasRoot)return g;for(let y=0;y<this.path.length;y++){const p=this.path[y],{scroll:b,options:x}=p;p!==this.root&&b&&x.layoutScroll&&(b.wasRoot&&vn(g,f),Zi(g.x,b.offset.x),Zi(g.y,b.offset.y))}return g}applyTransform(f,g=!1){const y=ft();vn(y,f);for(let p=0;p<this.path.length;p++){const b=this.path[p];!g&&b.options.layoutScroll&&b.scroll&&b!==b.root&&Ji(y,{x:-b.scroll.offset.x,y:-b.scroll.offset.y}),$a(b.latestValues)&&Ji(y,b.latestValues)}return $a(this.latestValues)&&Ji(y,this.latestValues),y}removeTransform(f){const g=ft();vn(g,f);for(let y=0;y<this.path.length;y++){const p=this.path[y];if(!p.instance||!$a(p.latestValues))continue;td(p.latestValues)&&p.updateSnapshot();const b=ft(),x=p.measurePageBox();vn(b,x),ng(g,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,b)}return $a(this.latestValues)&&ng(g,this.latestValues),g}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Tt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){const g=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=g.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=g.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=g.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==g;if(!(f||y&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:b,layoutId:x}=this.options;if(!this.layout||!(b||x))return;this.resolvedRelativeTargetAt=Tt.timestamp;const S=this.getClosestProjectingParent();S&&this.linkedParentVersion!==S.layoutVersion&&!S.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(S&&S.layout?this.createRelativeTarget(S,this.layout.layoutBox,S.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ft(),this.targetWithTransforms=ft()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),RC(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):vn(this.target,this.layout.layoutBox),_0(this.target,this.targetDelta)):vn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?this.createRelativeTarget(S,this.target,S.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||td(this.parent.latestValues)||V0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(f,g,y){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ft(),this.relativeTargetOrigin=ft(),Wo(this.relativeTargetOrigin,g,y),vn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const f=this.getLead(),g=!!this.resumingFrom||this!==f;let y=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(y=!1),g&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===Tt.timestamp&&(y=!1),y)return;const{layout:p,layoutId:b}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||b))return;vn(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,S=this.treeScale.y;qS(this.layoutCorrected,this.treeScale,this.path,g),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=ft());const{target:N}=f;if(!N){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Iy(this.prevProjectionDelta.x,this.projectionDelta.x),Iy(this.prevProjectionDelta.y,this.projectionDelta.y)),sl(this.projectionDelta,this.layoutCorrected,N,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==S||!og(this.projectionDelta.x,this.prevProjectionDelta.x)||!og(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",N))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){if(this.options.visualElement?.scheduleRender(),f){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Pi(),this.projectionDelta=Pi(),this.projectionDeltaWithTransform=Pi()}setAnimationOrigin(f,g=!1){const y=this.snapshot,p=y?y.latestValues:{},b={...this.latestValues},x=Pi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!g;const S=ft(),N=y?y.source:void 0,_=this.layout?this.layout.source:void 0,V=N!==_,H=this.getStack(),R=!H||H.members.length<=1,K=!!(V&&!R&&this.options.crossfade===!0&&!this.path.some(xw));this.animationProgress=0;let Y;this.mixTargetDelta=$=>{const Q=$/1e3;dg(x.x,f.x,Q),dg(x.y,f.y,Q),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wo(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),vw(this.relativeTarget,this.relativeTargetOrigin,S,Q),Y&&iw(this.relativeTarget,Y)&&(this.isProjectionDirty=!1),Y||(Y=ft()),vn(Y,this.relativeTarget)),V&&(this.animationValues=b,$C(b,p,this.latestValues,Q,K,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ma(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Je.update(()=>{Xo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Wi(0)),this.currentAnimation=ZC(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),f.onUpdate&&f.onUpdate(g)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ow),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:g,target:y,layout:p,latestValues:b}=f;if(!(!g||!y||!p)){if(this!==f&&this.layout&&p&&ib(this.options.animationType,this.layout.layoutBox,p.layoutBox)){y=this.target||ft();const x=Dt(this.layout.layoutBox.x);y.x.min=f.target.x.min,y.x.max=y.x.min+x;const S=Dt(this.layout.layoutBox.y);y.y.min=f.target.y.min,y.y.max=y.y.min+S}vn(g,y),Ji(g,b),sl(this.projectionDeltaWithTransform,this.layoutCorrected,g,b)}}registerSharedNode(f,g){this.sharedNodes.has(f)||this.sharedNodes.set(f,new sw),this.sharedNodes.get(f).add(g);const p=g.options.initialPromotionConfig;g.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(g):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){const{layoutId:f}=this.options;return f?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:f}=this.options;return f?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:g,preserveFollowOpacity:y}={}){const p=this.getStack();p&&p.promote(this,y),f&&(this.projectionDelta=void 0,this.needsReset=!0),g&&this.setOptions({transition:g})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let g=!1;const{latestValues:y}=f;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(g=!0),!g)return;const p={};y.z&&Oc("z",f,p,this.animationValues);for(let b=0;b<zc.length;b++)Oc(`rotate${zc[b]}`,f,p,this.animationValues),Oc(`skew${zc[b]}`,f,p,this.animationValues);f.render();for(const b in p)f.setStaticValue(b,p[b]),this.animationValues&&(this.animationValues[b]=p[b]);f.scheduleRender()}applyProjectionStyles(f,g){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=qo(g?.pointerEvents)||"",f.transform=y?y(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=qo(g?.pointerEvents)||""),this.hasProjected&&!$a(this.latestValues)&&(f.transform=y?y({},""):"none",this.hasProjected=!1);return}f.visibility="";const b=p.animationValues||p.latestValues;this.applyTransformsToTarget();let x=lw(this.projectionDeltaWithTransform,this.treeScale,b);y&&(x=y(b,x)),f.transform=x;const{x:S,y:N}=this.projectionDelta;f.transformOrigin=`${S.origin*100}% ${N.origin*100}% 0`,p.animationValues?f.opacity=p===this?b.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:b.opacityExit:f.opacity=p===this?b.opacity!==void 0?b.opacity:"":b.opacityExit!==void 0?b.opacityExit:0;for(const _ in ed){if(b[_]===void 0)continue;const{correct:V,applyTo:H,isCSSVariable:R}=ed[_],K=x==="none"?b[_]:V(b[_],p);if(H){const Y=H.length;for(let $=0;$<Y;$++)f[H[$]]=K}else R?this.options.visualElement.renderState.vars[_]=K:f[_]=K}this.options.layoutId&&(f.pointerEvents=p===this?qo(g?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>f.currentAnimation?.stop()),this.root.nodes.forEach(rg),this.root.sharedNodes.clear()}}}function uw(a){a.updateLayout()}function cw(a){const s=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&s&&a.hasListeners("didUpdate")){const{layoutBox:l,measuredBox:o}=a.layout,{animationType:d}=a.options,h=s.source!==a.layout.source;d==="size"?un(b=>{const x=h?s.measuredBox[b]:s.layoutBox[b],S=Dt(x);x.min=l[b].min,x.max=x.min+S}):ib(d,s.layoutBox,l)&&un(b=>{const x=h?s.measuredBox[b]:s.layoutBox[b],S=Dt(l[b]);x.max=x.min+S,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[b].max=a.relativeTarget[b].min+S)});const f=Pi();sl(f,l,s.layoutBox);const g=Pi();h?sl(g,a.applyTransform(o,!0),s.measuredBox):sl(g,l,s.layoutBox);const y=!eb(f);let p=!1;if(!a.resumeFrom){const b=a.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:x,layout:S}=b;if(x&&S){const N=ft();Wo(N,s.layoutBox,x.layoutBox);const _=ft();Wo(_,l,S.layoutBox),tb(N,_)||(p=!0),b.options.layoutRoot&&(a.relativeTarget=_,a.relativeTargetOrigin=N,a.relativeParent=b)}}}a.notifyListeners("didUpdate",{layout:l,snapshot:s,delta:g,layoutDelta:f,hasLayoutChanged:y,hasRelativeLayoutChanged:p})}else if(a.isLead()){const{onExitComplete:l}=a.options;l&&l()}a.options.transition=void 0}function dw(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function fw(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function hw(a){a.clearSnapshot()}function rg(a){a.clearMeasurements()}function ug(a){a.isLayoutDirty=!1}function mw(a){const{visualElement:s}=a.options;s&&s.getProps().onBeforeLayoutMeasure&&s.notify("BeforeLayoutMeasure"),a.resetTransform()}function cg(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function pw(a){a.resolveTargetDelta()}function yw(a){a.calcProjection()}function gw(a){a.resetSkewAndRotation()}function bw(a){a.removeLeadSnapshot()}function dg(a,s,l){a.translate=Pe(s.translate,0,l),a.scale=Pe(s.scale,1,l),a.origin=s.origin,a.originPoint=s.originPoint}function fg(a,s,l,o){a.min=Pe(s.min,l.min,o),a.max=Pe(s.max,l.max,o)}function vw(a,s,l,o){fg(a.x,s.x,l.x,o),fg(a.y,s.y,l.y,o)}function xw(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const Sw={duration:.45,ease:[.4,0,.1,1]},hg=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),mg=hg("applewebkit/")&&!hg("chrome/")?Math.round:dn;function pg(a){a.min=mg(a.min),a.max=mg(a.max)}function Cw(a){pg(a.x),pg(a.y)}function ib(a,s,l){return a==="position"||a==="preserve-aspect"&&!DC(lg(s),lg(l),.2)}function ww(a){return a!==a.root&&a.scroll?.wasRoot}const jw=ab({attachResizeListener:(a,s)=>cl(a,"resize",s),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Vc={current:void 0},sb=ab({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Vc.current){const a=new jw({});a.mount(window),a.setOptions({layoutScroll:!0}),Vc.current=a}return Vc.current},resetTransform:(a,s)=>{a.style.transform=s!==void 0?s:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Tw={pan:{Feature:KC},drag:{Feature:XC,ProjectionNode:sb,MeasureLayout:W0}};function yg(a,s,l){const{props:o}=a;a.animationState&&o.whileHover&&a.animationState.setActive("whileHover",l==="Start");const d="onHover"+l,h=o[d];h&&Je.postRender(()=>h(s,ml(s)))}class Nw extends Da{mount(){const{current:s}=this.node;s&&(this.unmount=P2(s,(l,o)=>(yg(this.node,o,"Start"),d=>yg(this.node,d,"End"))))}unmount(){}}class Aw extends Da{constructor(){super(...arguments),this.isActive=!1}onFocus(){let s=!1;try{s=this.node.current.matches(":focus-visible")}catch{s=!0}!s||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=dl(cl(this.node.current,"focus",()=>this.onFocus()),cl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function gg(a,s,l){const{props:o}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&o.whileTap&&a.animationState.setActive("whileTap",l==="Start");const d="onTap"+(l==="End"?"":l),h=o[d];h&&Je.postRender(()=>h(s,ml(s)))}class Mw extends Da{mount(){const{current:s}=this.node;s&&(this.unmount=I2(s,(l,o)=>(gg(this.node,o,"Start"),(d,{success:h})=>gg(this.node,d,h?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const rd=new WeakMap,_c=new WeakMap,Ew=a=>{const s=rd.get(a.target);s&&s(a)},Dw=a=>{a.forEach(Ew)};function Rw({root:a,...s}){const l=a||document;_c.has(l)||_c.set(l,{});const o=_c.get(l),d=JSON.stringify(s);return o[d]||(o[d]=new IntersectionObserver(Dw,{root:a,...s})),o[d]}function zw(a,s,l){const o=Rw(s);return rd.set(a,l),o.observe(a),()=>{rd.delete(a),o.unobserve(a)}}const Ow={some:0,all:1};class Vw extends Da{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:s={}}=this.node.getProps(),{root:l,margin:o,amount:d="some",once:h}=s,f={root:l?l.current:void 0,rootMargin:o,threshold:typeof d=="number"?d:Ow[d]},g=y=>{const{isIntersecting:p}=y;if(this.isInView===p||(this.isInView=p,h&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:b,onViewportLeave:x}=this.node.getProps(),S=p?b:x;S&&S(y)};return zw(this.node.current,f,g)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:s,prevProps:l}=this.node;["amount","margin","root"].some(_w(s,l))&&this.startObserver()}unmount(){}}function _w({viewport:a={}},{viewport:s={}}={}){return l=>a[l]!==s[l]}const kw={inView:{Feature:Vw},tap:{Feature:Mw},focus:{Feature:Aw},hover:{Feature:Nw}},Bw={layout:{ProjectionNode:sb,MeasureLayout:W0}},Lw={...jC,...kw,...Tw,...Bw},he=HS(Lw,IS);const Uw=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Hw=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,l,o)=>o?o.toUpperCase():l.toLowerCase()),bg=a=>{const s=Hw(a);return s.charAt(0).toUpperCase()+s.slice(1)},lb=(...a)=>a.filter((s,l,o)=>!!s&&s.trim()!==""&&o.indexOf(s)===l).join(" ").trim(),Gw=a=>{for(const s in a)if(s.startsWith("aria-")||s==="role"||s==="title")return!0};var Yw={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"};const qw=j.forwardRef(({color:a="currentColor",size:s=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:d="",children:h,iconNode:f,...g},y)=>j.createElement("svg",{ref:y,...Yw,width:s,height:s,stroke:a,strokeWidth:o?Number(l)*24/Number(s):l,className:lb("lucide",d),...!h&&!Gw(g)&&{"aria-hidden":"true"},...g},[...f.map(([p,b])=>j.createElement(p,b)),...Array.isArray(h)?h:[h]]));const ke=(a,s)=>{const l=j.forwardRef(({className:o,...d},h)=>j.createElement(qw,{ref:h,iconNode:s,className:lb(`lucide-${Uw(bg(a))}`,`lucide-${a}`,o),...d}));return l.displayName=bg(a),l};const Xw=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Kw=ke("arrow-down",Xw);const Qw=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Zw=ke("arrow-up",Qw);const Jw=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Pw=ke("calendar",Jw);const Fw=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ob=ke("check",Fw);const Ww=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Fn=ke("chevron-down",Ww);const $w=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ud=ke("chevron-right",$w);const Iw=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],cd=ke("chevron-left",Iw);const ej=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],tj=ke("chevrons-up-down",ej);const nj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aj=ke("circle-alert",nj);const ij=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],sj=ke("circle-check-big",ij);const lj=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],oj=ke("eye-off",lj);const rj=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],uj=ke("eye",rj);const cj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Bo=ke("globe",cj);const dj=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],fj=ke("house",dj);const hj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],rb=ke("info",hj);const mj=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ub=ke("loader-circle",mj);const pj=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],yj=ke("lock",pj);const gj=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],bj=ke("mail",gj);const vj=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],xj=ke("mic",vj);const Sj=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],Cj=ke("pause",Sj);const wj=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],jj=ke("play",wj);const Tj=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],dd=ke("plus",Tj);const Nj=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Cn=ke("search",Nj);const Aj=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Mj=ke("settings",Aj);const Ej=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],vg=ke("square-pen",Ej);const Dj=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Rj=ke("square",Dj);const zj=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],fd=ke("trash-2",zj);const Oj=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Vj=ke("triangle-alert",Oj);const _j=[["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"}]],Is=ke("user",_j);const kj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ft=ke("x",kj);function cb(a){var s,l,o="";if(typeof a=="string"||typeof a=="number")o+=a;else if(typeof a=="object")if(Array.isArray(a)){var d=a.length;for(s=0;s<d;s++)a[s]&&(l=cb(a[s]))&&(o&&(o+=" "),o+=l)}else for(l in a)a[l]&&(o&&(o+=" "),o+=l);return o}function Bj(){for(var a,s,l=0,o="",d=arguments.length;l<d;l++)(a=arguments[l])&&(s=cb(a))&&(o&&(o+=" "),o+=s);return o}const Lj=(a,s)=>{const l=new Array(a.length+s.length);for(let o=0;o<a.length;o++)l[o]=a[o];for(let o=0;o<s.length;o++)l[a.length+o]=s[o];return l},Uj=(a,s)=>({classGroupId:a,validator:s}),db=(a=new Map,s=null,l)=>({nextPart:a,validators:s,classGroupId:l}),$o="-",xg=[],Hj="arbitrary..",Gj=a=>{const s=qj(a),{conflictingClassGroups:l,conflictingClassGroupModifiers:o}=a;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return Yj(f);const g=f.split($o),y=g[0]===""&&g.length>1?1:0;return fb(g,y,s)},getConflictingClassGroupIds:(f,g)=>{if(g){const y=o[f],p=l[f];return y?p?Lj(p,y):y:p||xg}return l[f]||xg}}},fb=(a,s,l)=>{if(a.length-s===0)return l.classGroupId;const d=a[s],h=l.nextPart.get(d);if(h){const p=fb(a,s+1,h);if(p)return p}const f=l.validators;if(f===null)return;const g=s===0?a.join($o):a.slice(s).join($o),y=f.length;for(let p=0;p<y;p++){const b=f[p];if(b.validator(g))return b.classGroupId}},Yj=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const s=a.slice(1,-1),l=s.indexOf(":"),o=s.slice(0,l);return o?Hj+o:void 0})(),qj=a=>{const{theme:s,classGroups:l}=a;return Xj(l,s)},Xj=(a,s)=>{const l=db();for(const o in a){const d=a[o];Pd(d,l,o,s)}return l},Pd=(a,s,l,o)=>{const d=a.length;for(let h=0;h<d;h++){const f=a[h];Kj(f,s,l,o)}},Kj=(a,s,l,o)=>{if(typeof a=="string"){Qj(a,s,l);return}if(typeof a=="function"){Zj(a,s,l,o);return}Jj(a,s,l,o)},Qj=(a,s,l)=>{const o=a===""?s:hb(s,a);o.classGroupId=l},Zj=(a,s,l,o)=>{if(Pj(a)){Pd(a(o),s,l,o);return}s.validators===null&&(s.validators=[]),s.validators.push(Uj(l,a))},Jj=(a,s,l,o)=>{const d=Object.entries(a),h=d.length;for(let f=0;f<h;f++){const[g,y]=d[f];Pd(y,hb(s,g),l,o)}},hb=(a,s)=>{let l=a;const o=s.split($o),d=o.length;for(let h=0;h<d;h++){const f=o[h];let g=l.nextPart.get(f);g||(g=db(),l.nextPart.set(f,g)),l=g}return l},Pj=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,Fj=a=>{if(a<1)return{get:()=>{},set:()=>{}};let s=0,l=Object.create(null),o=Object.create(null);const d=(h,f)=>{l[h]=f,s++,s>a&&(s=0,o=l,l=Object.create(null))};return{get(h){let f=l[h];if(f!==void 0)return f;if((f=o[h])!==void 0)return d(h,f),f},set(h,f){h in l?l[h]=f:d(h,f)}}},hd="!",Sg=":",Wj=[],Cg=(a,s,l,o,d)=>({modifiers:a,hasImportantModifier:s,baseClassName:l,maybePostfixModifierPosition:o,isExternal:d}),$j=a=>{const{prefix:s,experimentalParseClassName:l}=a;let o=d=>{const h=[];let f=0,g=0,y=0,p;const b=d.length;for(let V=0;V<b;V++){const H=d[V];if(f===0&&g===0){if(H===Sg){h.push(d.slice(y,V)),y=V+1;continue}if(H==="/"){p=V;continue}}H==="["?f++:H==="]"?f--:H==="("?g++:H===")"&&g--}const x=h.length===0?d:d.slice(y);let S=x,N=!1;x.endsWith(hd)?(S=x.slice(0,-1),N=!0):x.startsWith(hd)&&(S=x.slice(1),N=!0);const _=p&&p>y?p-y:void 0;return Cg(h,N,S,_)};if(s){const d=s+Sg,h=o;o=f=>f.startsWith(d)?h(f.slice(d.length)):Cg(Wj,!1,f,void 0,!0)}if(l){const d=o;o=h=>l({className:h,parseClassName:d})}return o},Ij=a=>{const s=new Map;return a.orderSensitiveModifiers.forEach((l,o)=>{s.set(l,1e6+o)}),l=>{const o=[];let d=[];for(let h=0;h<l.length;h++){const f=l[h],g=f[0]==="[",y=s.has(f);g||y?(d.length>0&&(d.sort(),o.push(...d),d=[]),o.push(f)):d.push(f)}return d.length>0&&(d.sort(),o.push(...d)),o}},eT=a=>({cache:Fj(a.cacheSize),parseClassName:$j(a),sortModifiers:Ij(a),...Gj(a)}),tT=/\s+/,nT=(a,s)=>{const{parseClassName:l,getClassGroupId:o,getConflictingClassGroupIds:d,sortModifiers:h}=s,f=[],g=a.trim().split(tT);let y="";for(let p=g.length-1;p>=0;p-=1){const b=g[p],{isExternal:x,modifiers:S,hasImportantModifier:N,baseClassName:_,maybePostfixModifierPosition:V}=l(b);if(x){y=b+(y.length>0?" "+y:y);continue}let H=!!V,R=o(H?_.substring(0,V):_);if(!R){if(!H){y=b+(y.length>0?" "+y:y);continue}if(R=o(_),!R){y=b+(y.length>0?" "+y:y);continue}H=!1}const K=S.length===0?"":S.length===1?S[0]:h(S).join(":"),Y=N?K+hd:K,$=Y+R;if(f.indexOf($)>-1)continue;f.push($);const Q=d(R,H);for(let W=0;W<Q.length;++W){const X=Q[W];f.push(Y+X)}y=b+(y.length>0?" "+y:y)}return y},aT=(...a)=>{let s=0,l,o,d="";for(;s<a.length;)(l=a[s++])&&(o=mb(l))&&(d&&(d+=" "),d+=o);return d},mb=a=>{if(typeof a=="string")return a;let s,l="";for(let o=0;o<a.length;o++)a[o]&&(s=mb(a[o]))&&(l&&(l+=" "),l+=s);return l},iT=(a,...s)=>{let l,o,d,h;const f=y=>{const p=s.reduce((b,x)=>x(b),a());return l=eT(p),o=l.cache.get,d=l.cache.set,h=g,g(y)},g=y=>{const p=o(y);if(p)return p;const b=nT(y,l);return d(y,b),b};return h=f,(...y)=>h(aT(...y))},sT=[],dt=a=>{const s=l=>l[a]||sT;return s.isThemeGetter=!0,s},pb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,yb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,lT=/^\d+\/\d+$/,oT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rT=/\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$/,uT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,cT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xi=a=>lT.test(a),Ne=a=>!!a&&!Number.isNaN(Number(a)),Na=a=>!!a&&Number.isInteger(Number(a)),kc=a=>a.endsWith("%")&&Ne(a.slice(0,-1)),Jn=a=>oT.test(a),fT=()=>!0,hT=a=>rT.test(a)&&!uT.test(a),gb=()=>!1,mT=a=>cT.test(a),pT=a=>dT.test(a),yT=a=>!ce(a)&&!de(a),gT=a=>ns(a,xb,gb),ce=a=>pb.test(a),Fa=a=>ns(a,Sb,hT),Bc=a=>ns(a,CT,Ne),wg=a=>ns(a,bb,gb),bT=a=>ns(a,vb,pT),Lo=a=>ns(a,Cb,mT),de=a=>yb.test(a),el=a=>as(a,Sb),vT=a=>as(a,wT),jg=a=>as(a,bb),xT=a=>as(a,xb),ST=a=>as(a,vb),Uo=a=>as(a,Cb,!0),ns=(a,s,l)=>{const o=pb.exec(a);return o?o[1]?s(o[1]):l(o[2]):!1},as=(a,s,l=!1)=>{const o=yb.exec(a);return o?o[1]?s(o[1]):l:!1},bb=a=>a==="position"||a==="percentage",vb=a=>a==="image"||a==="url",xb=a=>a==="length"||a==="size"||a==="bg-size",Sb=a=>a==="length",CT=a=>a==="number",wT=a=>a==="family-name",Cb=a=>a==="shadow",jT=()=>{const a=dt("color"),s=dt("font"),l=dt("text"),o=dt("font-weight"),d=dt("tracking"),h=dt("leading"),f=dt("breakpoint"),g=dt("container"),y=dt("spacing"),p=dt("radius"),b=dt("shadow"),x=dt("inset-shadow"),S=dt("text-shadow"),N=dt("drop-shadow"),_=dt("blur"),V=dt("perspective"),H=dt("aspect"),R=dt("ease"),K=dt("animate"),Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Q=()=>[...$(),de,ce],W=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto","contain","none"],E=()=>[de,ce,y],te=()=>[Xi,"full","auto",...E()],J=()=>[Na,"none","subgrid",de,ce],U=()=>["auto",{span:["full",Na,de,ce]},Na,de,ce],ie=()=>[Na,"auto",de,ce],le=()=>["auto","min","max","fr",de,ce],re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ee=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...E()],G=()=>[Xi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],M=()=>[a,de,ce],oe=()=>[...$(),jg,wg,{position:[de,ce]}],se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],C=()=>["auto","cover","contain",xT,gT,{size:[de,ce]}],B=()=>[kc,el,Fa],I=()=>["","none","full",p,de,ce],ae=()=>["",Ne,el,Fa],pe=()=>["solid","dashed","dotted","double"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>[Ne,kc,jg,wg],Xe=()=>["","none",_,de,ce],Te=()=>["none",Ne,de,ce],we=()=>["none",Ne,de,ce],Ie=()=>[Ne,de,ce],et=()=>[Xi,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Jn],breakpoint:[Jn],color:[fT],container:[Jn],"drop-shadow":[Jn],ease:["in","out","in-out"],font:[yT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Jn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Jn],shadow:[Jn],spacing:["px",Ne],text:[Jn],"text-shadow":[Jn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Xi,ce,de,H]}],container:["container"],columns:[{columns:[Ne,ce,de,g]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"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"],sr:["sr-only","not-sr-only"],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:Q()}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:te()}],"inset-x":[{"inset-x":te()}],"inset-y":[{"inset-y":te()}],start:[{start:te()}],end:[{end:te()}],top:[{top:te()}],right:[{right:te()}],bottom:[{bottom:te()}],left:[{left:te()}],visibility:["visible","invisible","collapse"],z:[{z:[Na,"auto",de,ce]}],basis:[{basis:[Xi,"full","auto",g,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ne,Xi,"auto","initial","none",ce]}],grow:[{grow:["",Ne,de,ce]}],shrink:[{shrink:["",Ne,de,ce]}],order:[{order:[Na,"first","last","none",de,ce]}],"grid-cols":[{"grid-cols":J()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":J()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":ie()}],"row-end":[{"row-end":ie()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...re(),"normal"]}],"justify-items":[{"justify-items":[...ee(),"normal"]}],"justify-self":[{"justify-self":["auto",...ee()]}],"align-content":[{content:["normal",...re()]}],"align-items":[{items:[...ee(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ee(),{baseline:["","last"]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...ee(),"baseline"]}],"place-self":[{"place-self":["auto",...ee()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[g,"screen",...G()]}],"min-w":[{"min-w":[g,"screen","none",...G()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[f]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",l,el,Fa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,de,Bc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",kc,ce]}],"font-family":[{font:[vT,ce,s]}],"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:[d,de,ce]}],"line-clamp":[{"line-clamp":[Ne,"none",de,Bc]}],leading:[{leading:[h,...E()]}],"list-image":[{"list-image":["none",de,ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",de,ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ne,"from-font","auto",de,Fa]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[Ne,"auto",de,ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de,ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",de,ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:C()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Na,de,ce],radial:["",de,ce],conic:[Na,de,ce]},ST,bT]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:B()}],"gradient-via-pos":[{via:B()}],"gradient-to-pos":[{to:B()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...pe(),"hidden","none"]}],"divide-style":[{divide:[...pe(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ne,de,ce]}],"outline-w":[{outline:["",Ne,el,Fa]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",b,Uo,Lo]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",x,Uo,Lo]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[Ne,Fa]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",S,Uo,Lo]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[Ne,de,ce]}],"mix-blend":[{"mix-blend":[...ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ve()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":me()}],"mask-image-linear-to-pos":[{"mask-linear-to":me()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":me()}],"mask-image-t-to-pos":[{"mask-t-to":me()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":me()}],"mask-image-r-to-pos":[{"mask-r-to":me()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":me()}],"mask-image-b-to-pos":[{"mask-b-to":me()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":me()}],"mask-image-l-to-pos":[{"mask-l-to":me()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":me()}],"mask-image-x-to-pos":[{"mask-x-to":me()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":me()}],"mask-image-y-to-pos":[{"mask-y-to":me()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[de,ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":me()}],"mask-image-radial-to-pos":[{"mask-radial-to":me()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":$()}],"mask-image-conic-pos":[{"mask-conic":[Ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":me()}],"mask-image-conic-to-pos":[{"mask-conic-to":me()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:C()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",de,ce]}],filter:[{filter:["","none",de,ce]}],blur:[{blur:Xe()}],brightness:[{brightness:[Ne,de,ce]}],contrast:[{contrast:[Ne,de,ce]}],"drop-shadow":[{"drop-shadow":["","none",N,Uo,Lo]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",Ne,de,ce]}],"hue-rotate":[{"hue-rotate":[Ne,de,ce]}],invert:[{invert:["",Ne,de,ce]}],saturate:[{saturate:[Ne,de,ce]}],sepia:[{sepia:["",Ne,de,ce]}],"backdrop-filter":[{"backdrop-filter":["","none",de,ce]}],"backdrop-blur":[{"backdrop-blur":Xe()}],"backdrop-brightness":[{"backdrop-brightness":[Ne,de,ce]}],"backdrop-contrast":[{"backdrop-contrast":[Ne,de,ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ne,de,ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ne,de,ce]}],"backdrop-invert":[{"backdrop-invert":["",Ne,de,ce]}],"backdrop-opacity":[{"backdrop-opacity":[Ne,de,ce]}],"backdrop-saturate":[{"backdrop-saturate":[Ne,de,ce]}],"backdrop-sepia":[{"backdrop-sepia":["",Ne,de,ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",de,ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ne,"initial",de,ce]}],ease:[{ease:["linear","initial",R,de,ce]}],delay:[{delay:[Ne,de,ce]}],animate:[{animate:["none",K,de,ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[V,de,ce]}],"perspective-origin":[{"perspective-origin":Q()}],rotate:[{rotate:Te()}],"rotate-x":[{"rotate-x":Te()}],"rotate-y":[{"rotate-y":Te()}],"rotate-z":[{"rotate-z":Te()}],scale:[{scale:we()}],"scale-x":[{"scale-x":we()}],"scale-y":[{"scale-y":we()}],"scale-z":[{"scale-z":we()}],"scale-3d":["scale-3d"],skew:[{skew:Ie()}],"skew-x":[{"skew-x":Ie()}],"skew-y":[{"skew-y":Ie()}],transform:[{transform:[de,ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:Q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:et()}],"translate-x":[{"translate-x":et()}],"translate-y":[{"translate-y":et()}],"translate-z":[{"translate-z":et()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",de,ce]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",de,ce]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[Ne,el,Fa,Bc]}],stroke:[{stroke:["none",...M()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},TT=iT(jT);function F(...a){return TT(Bj(a))}const qe=pd.forwardRef(({variant:a="primary",size:s="md",loading:l,icon:o,animate:d=!0,className:h,children:f,disabled:g,...y},p)=>{const b=d!==!1,x="inline-flex items-center justify-center gap-2 font-medium rounded-md transition-all duration-200 touch-target disabled:opacity-50 disabled:cursor-not-allowed active:scale-[0.98] flex-shrink-0 whitespace-nowrap",S={primary:"bg-primary text-white hover:bg-primary/80 active:bg-primary/80 shadow-sm",secondary:"bg-secondary text-foreground hover:bg-border active:bg-border-dark",outline:"bg-transparent text-primary border-1 border-primary hover:bg-secondary active:bg-border",ghost:"bg-transparent text-primary hover:bg-secondary active:bg-border",danger:"bg-error text-white hover:bg-red-600 active:bg-red-700 shadow-sm"},N={sm:"px-3 py-2 text-sm min-h-[2.25rem]",md:"px-4 py-2.5 text-base min-h-[2.75rem]",lg:"px-6 py-3.5 text-lg min-h-[3.25rem]"};return c.jsxs(he.button,{ref:p,whileTap:b?{scale:g||l?1:.98}:void 0,className:F(x,S[a],N[s],h),disabled:g||l,...y,children:[l?c.jsx(ub,{className:F("h-5 w-5",b&&"animate-spin")}):o?c.jsx("span",{className:"shrink-0",children:o}):null,f]})});qe.displayName="Button";var wb=Ng();const fn=({open:a,anchorRef:s,placement:l,children:o,className:d,offset:h=8,matchWidth:f=!0})=>{const[g,y]=j.useState(!1),[p,b]=j.useState(null);j.useEffect(()=>(y(!0),()=>y(!1)),[]);const x=j.useCallback(()=>{if(!a||!s.current)return;const S=s.current.getBoundingClientRect();b({position:"fixed",top:l==="top"?S.top-h:S.bottom+h,left:S.left,width:f?S.width:void 0,zIndex:70})},[s,f,h,a,l]);return j.useEffect(()=>{if(a)return x(),window.addEventListener("resize",x),window.addEventListener("scroll",x,!0),()=>{window.removeEventListener("resize",x),window.removeEventListener("scroll",x,!0)}},[a,x]),!g||!a||!p?null:wb.createPortal(c.jsx("div",{style:p,onMouseDown:S=>S.stopPropagation(),className:F(l==="top"&&"-translate-y-full",d),children:o}),document.body)},jb=({value:a,onChange:s,label:l,required:o,placeholder:d="Select date",error:h,hint:f,disabled:g,minDate:y,maxDate:p,className:b,animate:x=!0})=>{const S=x!==!1,[N,_]=j.useState(!1),[V,H]=j.useState("bottom"),[R,K]=j.useState(!1),[Y,$]=j.useState("bottom"),[Q,W]=j.useState(!1),[X,E]=j.useState("bottom"),[te,J]=j.useState(a||new Date),U=j.useRef(null),ie=j.useRef(null),le=j.useRef(null),re=j.useRef(null),ee=j.useRef(null),D=j.useRef(null);j.useEffect(()=>{const ne=ge=>{U.current&&!U.current.contains(ge.target)&&(_(!1),K(!1),W(!1))};return N&&document.addEventListener("mousedown",ne),()=>{document.removeEventListener("mousedown",ne)}},[N]),j.useEffect(()=>{N||(K(!1),W(!1))},[N]),j.useEffect(()=>{if(!N)return;const ne=()=>{if(!ie.current)return;const ge=ie.current.getBoundingClientRect(),ze=430,pn=window.innerHeight-ge.bottom-8,Wt=ge.top-8;if(pn>=ze){H("bottom");return}if(Wt>=ze){H("top");return}H("bottom")};return ne(),window.addEventListener("resize",ne),window.addEventListener("scroll",ne,!0),()=>{window.removeEventListener("resize",ne),window.removeEventListener("scroll",ne,!0)}},[N]),j.useEffect(()=>{if(!R)return;const ne=te.getMonth();re.current?.querySelector(`button[data-month="${ne}"]`)?.scrollIntoView({block:"center"})},[R,te]),j.useEffect(()=>{if(!Q)return;const ne=te.getFullYear();D.current?.querySelector(`button[data-year="${ne}"]`)?.scrollIntoView({block:"center"})},[Q,te]);const G=["January","February","March","April","May","June","July","August","September","October","November","December"],M=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],oe=ne=>{const ge=ne.getFullYear(),ze=ne.getMonth(),pn=new Date(ge,ze,1),tt=new Date(ge,ze+1,0).getDate(),zt=pn.getDay(),ea=[];for(let En=0;En<zt;En++)ea.push(null);for(let En=1;En<=tt;En++)ea.push(new Date(ge,ze,En));for(;ea.length%7!==0;)ea.push(null);return ea},se=()=>{J(new Date(te.getFullYear(),te.getMonth()-1,1))},C=()=>{J(new Date(te.getFullYear(),te.getMonth()+1,1))},B=ne=>{J(new Date(te.getFullYear(),ne,1)),K(!1)},I=ne=>{J(new Date(ne,te.getMonth(),1)),W(!1)},ae=()=>{if(K(!1),!Q&&ee.current){const ne=ee.current.getBoundingClientRect(),ge=window.innerHeight-ne.bottom,ze=ne.top;E(ge<220&&ze>ge?"top":"bottom")}W(ne=>!ne)},pe=()=>{if(W(!1),!R&&le.current){const ne=le.current.getBoundingClientRect(),ge=window.innerHeight-ne.bottom,ze=ne.top;$(ge<220&&ze>ge?"top":"bottom")}K(ne=>!ne)},ve=ne=>{s(ne),_(!1)},me=ne=>!!(y&&ne<y||p&&ne>p),Xe=(ne,ge)=>!ne||!ge?!1:ne.getDate()===ge.getDate()&&ne.getMonth()===ge.getMonth()&&ne.getFullYear()===ge.getFullYear(),Te=ne=>ne?Xe(ne,new Date):!1,we=ne=>ne?ne.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"",Ie=oe(te),et=te.getFullYear(),mn=te.getMonth(),ut=y?y.getFullYear():et-100,Mt=p?p.getFullYear():et+20,Rt=Array.from({length:Mt-ut+1},(ne,ge)=>ut+ge),In=ne=>{if(y){const ge=y.getFullYear(),ze=y.getMonth();if(et===ge&&ne<ze)return!0}if(p){const ge=p.getFullYear(),ze=p.getMonth();if(et===ge&&ne>ze)return!0}return!1},si=V==="bottom"?{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}}:{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}};return c.jsxs("div",{ref:U,className:F("relative w-full",b),children:[l&&c.jsxs("label",{className:"block mb-1.5 text-sm font-medium text-foreground",children:[l,o&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("button",{ref:ie,type:"button",onClick:()=>!g&&_(!N),disabled:g,"aria-required":o,className:F("w-full px-4 py-3 rounded-md border transition-all duration-200","bg-background text-left flex items-center justify-between gap-2","focus:outline-none focus:ring-1 focus:ring-primary","disabled:bg-secondary disabled:cursor-not-allowed","touch-target",h&&"border-error",!h&&"border-border",N&&"ring-1 ring-primary"),children:[c.jsx("span",{className:F("truncate",!a&&"text-foreground/50"),children:a?we(a):d}),c.jsx(Pw,{className:"w-5 h-5 text-primary shrink-0"})]}),S?c.jsx(hn,{children:N?c.jsx(fn,{open:N,anchorRef:ie,placement:V,matchWidth:!1,children:c.jsxs(he.div,{initial:si.initial,animate:si.animate,exit:si.exit,transition:{duration:.2},className:"z-50 w-72 bg-background rounded-md border border-border shadow-lg p-2.5",children:[c.jsxs("div",{className:"grid grid-cols-[auto_1fr_auto] items-center gap-1.5 border-border mb-3",children:[c.jsx("button",{type:"button",onClick:se,className:"h-8 w-8 inline-flex items-center justify-center hover:bg-secondary rounded-lg transition-colors",children:c.jsx(cd,{className:"w-4 h-4 text-primary"})}),c.jsxs("div",{className:"flex items-center justify-center gap-1 min-w-0",children:[c.jsxs("div",{className:"relative",children:[c.jsxs("button",{ref:le,type:"button",onClick:pe,className:"h-7 w-20 shrink-0 rounded-md border border-border bg-background px-2 text-[10px] font-medium text-foreground focus:outline-none focus:ring-1 focus:ring-primary flex items-center justify-between gap-1","aria-label":"Select month","aria-haspopup":"listbox","aria-expanded":R,children:[c.jsx("span",{className:"min-w-0 flex-1 truncate text-left",children:G[mn]}),c.jsx(Fn,{className:F("w-3 h-3 text-primary transition-transform",R&&"rotate-180")})]}),R&&c.jsx("div",{ref:re,role:"listbox",className:F("absolute z-60 w-36 rounded-md border border-border bg-background shadow-lg py-1 max-h-56 overflow-y-auto",Y==="bottom"?"top-full mt-1":"bottom-full mb-1"),children:G.map((ne,ge)=>{const ze=In(ge);return c.jsx("button",{type:"button",role:"option","data-month":ge,"aria-selected":ge===mn,onClick:()=>!ze&&B(ge),disabled:ze,className:F("w-full px-3 py-2 text-xs text-left transition-colors",!ze&&"hover:bg-secondary",ge===mn&&"bg-border text-foreground font-medium",ze&&"text-border-dark cursor-not-allowed"),children:ne},ne)})})]}),c.jsxs("div",{className:"relative",children:[c.jsxs("button",{ref:ee,type:"button",onClick:ae,className:"h-7 w-14 shrink-0 rounded-md border border-border bg-background px-2 text-[10px] font-medium text-foreground focus:outline-none focus:ring-1 focus:ring-primary flex items-center justify-between gap-1","aria-label":"Select year","aria-haspopup":"listbox","aria-expanded":Q,children:[c.jsx("span",{className:"min-w-0 flex-1 truncate text-left",children:et}),c.jsx(Fn,{className:F("w-3 h-3 text-primary transition-transform",Q&&"rotate-180")})]}),Q&&c.jsx("div",{ref:D,role:"listbox",className:F("absolute z-60 w-28 rounded-md border border-border bg-background shadow-lg py-1 max-h-56 overflow-y-auto",X==="bottom"?"top-full mt-1":"bottom-full mb-1"),children:Rt.map(ne=>c.jsx("button",{type:"button",role:"option","data-year":ne,"aria-selected":ne===et,onClick:()=>I(ne),className:F("w-full px-3 py-2 text-xs text-left hover:bg-secondary transition-colors",ne===et&&"bg-border text-foreground font-medium"),children:ne},ne))})]})]}),c.jsx("button",{type:"button",onClick:C,className:"h-8 w-8 inline-flex items-center justify-center hover:bg-secondary rounded-lg transition-colors",children:c.jsx(ud,{className:"w-4 h-4 text-primary"})})]}),c.jsx("div",{className:"grid grid-cols-7 gap-0 mb-1",children:M.map(ne=>c.jsx("div",{className:"text-center text-[10px] font-medium text-foreground/70 py-1",children:ne},ne))}),c.jsx("div",{className:"grid grid-cols-7 gap-0 border border-border rounded-md overflow-hidden",children:Ie.map((ne,ge)=>{const ze=(ge+1)%7===0,pn=Math.floor(ge/7)===Math.floor((Ie.length-1)/7);if(!ne)return c.jsx("div",{className:F("h-8 bg-background",!ze&&"border-r border-border",!pn&&"border-b border-border")},`empty-${ge}`);const Wt=Xe(ne,a||null),tt=Te(ne),zt=me(ne);return c.jsx(he.button,{type:"button",whileTap:S?{scale:zt?1:.95}:void 0,onClick:()=>!zt&&ve(ne),disabled:zt,className:F("h-8 w-full cursor-pointer rounded-none flex items-center justify-center","text-[10px] font-medium transition-all duration-200",!ze&&"border-r border-border",!pn&&"border-b border-border","hover:bg-secondary",Wt&&"bg-primary text-white hover:bg-primary/80",tt&&!Wt&&"border border-primary text-primary",zt&&"text-border-dark cursor-not-allowed hover:bg-transparent",!Wt&&!tt&&!zt&&"text-foreground"),children:ne.getDate()},ne.toISOString())})}),c.jsx("div",{className:"mt-1.5",children:c.jsx("button",{type:"button",onClick:()=>ve(new Date),className:"w-full py-1.5 text-xs font-medium text-primary cursor-pointer hover:bg-secondary rounded-lg transition-colors",children:"Today"})})]})}):null}):N&&c.jsx(fn,{open:N,anchorRef:ie,placement:V,matchWidth:!1,children:c.jsxs("div",{className:"z-50 w-72 bg-background rounded-md border border-border shadow-lg p-2.5",children:[c.jsxs("div",{className:"grid grid-cols-[auto_1fr_auto] items-center gap-1.5 mb-3",children:[c.jsx("button",{type:"button",onClick:se,className:"h-8 w-8 inline-flex items-center justify-center hover:bg-secondary rounded-lg transition-colors",children:c.jsx(cd,{className:"w-4 h-4 text-primary"})}),c.jsxs("div",{className:"flex items-center justify-center gap-1 min-w-0",children:[c.jsxs("div",{className:"relative",children:[c.jsxs("button",{ref:le,type:"button",onClick:pe,className:"h-7 w-20 shrink-0 rounded-md border border-border bg-background px-2 text-[10px] font-medium text-foreground focus:outline-none focus:ring-1 focus:ring-primary flex items-center justify-between gap-1","aria-label":"Select month","aria-haspopup":"listbox","aria-expanded":R,children:[c.jsx("span",{className:"min-w-0 flex-1 truncate text-left",children:G[mn]}),c.jsx(Fn,{className:F("w-3 h-3 text-primary transition-transform",R&&"rotate-180")})]}),R&&c.jsx("div",{ref:re,role:"listbox",className:F("absolute z-60 w-36 rounded-md border border-border bg-background shadow-lg py-1 max-h-56 overflow-y-auto",Y==="bottom"?"top-full mt-1":"bottom-full mb-1"),children:G.map((ne,ge)=>{const ze=In(ge);return c.jsx("button",{type:"button",role:"option","data-month":ge,"aria-selected":ge===mn,onClick:()=>!ze&&B(ge),disabled:ze,className:F("w-full px-3 py-2 text-xs text-left transition-colors",!ze&&"hover:bg-secondary",ge===mn&&"bg-border text-foreground font-medium",ze&&"text-border-dark cursor-not-allowed"),children:ne},ne)})})]}),c.jsxs("div",{className:"relative",children:[c.jsxs("button",{ref:ee,type:"button",onClick:ae,className:"h-7 w-14 shrink-0 rounded-md border border-border bg-background px-2 text-[10px] font-medium text-foreground focus:outline-none focus:ring-1 focus:ring-primary flex items-center justify-between gap-1","aria-label":"Select year","aria-haspopup":"listbox","aria-expanded":Q,children:[c.jsx("span",{className:"min-w-0 flex-1 truncate text-left",children:et}),c.jsx(Fn,{className:F("w-3 h-3 text-primary transition-transform",Q&&"rotate-180")})]}),Q&&c.jsx("div",{ref:D,role:"listbox",className:F("absolute z-60 w-28 rounded-md border border-border bg-background shadow-lg py-1 max-h-56 overflow-y-auto",X==="bottom"?"top-full mt-1":"bottom-full mb-1"),children:Rt.map(ne=>c.jsx("button",{type:"button",role:"option","data-year":ne,"aria-selected":ne===et,onClick:()=>I(ne),className:F("w-full px-3 py-2 text-xs text-left hover:bg-secondary transition-colors",ne===et&&"bg-border text-foreground font-medium"),children:ne},ne))})]})]}),c.jsx("button",{type:"button",onClick:C,className:"h-8 w-8 inline-flex items-center justify-center hover:bg-secondary rounded-lg transition-colors",children:c.jsx(ud,{className:"w-4 h-4 text-primary"})})]}),c.jsx("div",{className:"grid grid-cols-7 gap-0 mb-1",children:M.map(ne=>c.jsx("div",{className:"text-center text-[10px] font-medium text-primary/70 py-1",children:ne},ne))}),c.jsx("div",{className:"grid grid-cols-7 gap-0 border border-border rounded-md overflow-hidden",children:Ie.map((ne,ge)=>{const ze=(ge+1)%7===0,pn=Math.floor(ge/7)===Math.floor((Ie.length-1)/7);if(!ne)return c.jsx("div",{className:F("h-8 bg-background",!ze&&"border-r border-border",!pn&&"border-b border-border")},`empty-${ge}`);const Wt=Xe(ne,a||null),tt=Te(ne),zt=me(ne);return c.jsx("button",{type:"button",onClick:()=>!zt&&ve(ne),disabled:zt,className:F("h-8 w-full rounded-none flex items-center justify-center","text-[10px] font-medium transition-all duration-200",!ze&&"border-r border-border",!pn&&"border-b border-border","hover:bg-secondary",Wt&&"bg-primary text-white hover:bg-primary/80",tt&&!Wt&&"border border-primary text-primary",zt&&"text-border-dark cursor-not-allowed hover:bg-transparent",!Wt&&!tt&&!zt&&"text-foreground"),children:ne.getDate()},ne.toISOString())})}),c.jsx("div",{className:"mt-1.5 pt-1.5",children:c.jsx("button",{type:"button",onClick:()=>ve(new Date),className:"w-full py-1.5 text-xs font-medium text-primary hover:bg-secondary rounded-lg transition-colors",children:"Today"})})]})}),h&&c.jsx(he.p,{...S?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"mt-1.5 text-sm text-error",children:h}),f&&!h&&c.jsx("p",{className:"mt-1.5 text-sm text-primary/70",children:f})]})},Sn=[{iso2:"AF",name:"Afghanistan",dialCode:"+93"},{iso2:"AL",name:"Albania",dialCode:"+355"},{iso2:"DZ",name:"Algeria",dialCode:"+213"},{iso2:"AS",name:"American Samoa",dialCode:"+1-684"},{iso2:"AD",name:"Andorra",dialCode:"+376"},{iso2:"AO",name:"Angola",dialCode:"+244"},{iso2:"AI",name:"Anguilla",dialCode:"+1-264"},{iso2:"AQ",name:"Antarctica",dialCode:"+672"},{iso2:"AG",name:"Antigua and Barbuda",dialCode:"+1-268"},{iso2:"AR",name:"Argentina",dialCode:"+54"},{iso2:"AM",name:"Armenia",dialCode:"+374"},{iso2:"AW",name:"Aruba",dialCode:"+297"},{iso2:"AU",name:"Australia",dialCode:"+61"},{iso2:"AT",name:"Austria",dialCode:"+43"},{iso2:"AZ",name:"Azerbaijan",dialCode:"+994"},{iso2:"BS",name:"Bahamas",dialCode:"+1-242"},{iso2:"BH",name:"Bahrain",dialCode:"+973"},{iso2:"BD",name:"Bangladesh",dialCode:"+880"},{iso2:"BB",name:"Barbados",dialCode:"+1-246"},{iso2:"BY",name:"Belarus",dialCode:"+375"},{iso2:"BE",name:"Belgium",dialCode:"+32"},{iso2:"BZ",name:"Belize",dialCode:"+501"},{iso2:"BJ",name:"Benin",dialCode:"+229"},{iso2:"BM",name:"Bermuda",dialCode:"+1-441"},{iso2:"BT",name:"Bhutan",dialCode:"+975"},{iso2:"BO",name:"Bolivia",dialCode:"+591"},{iso2:"BA",name:"Bosnia and Herzegovina",dialCode:"+387"},{iso2:"BW",name:"Botswana",dialCode:"+267"},{iso2:"BR",name:"Brazil",dialCode:"+55"},{iso2:"IO",name:"British Indian Ocean Territory",dialCode:"+246"},{iso2:"BN",name:"Brunei",dialCode:"+673"},{iso2:"BG",name:"Bulgaria",dialCode:"+359"},{iso2:"BF",name:"Burkina Faso",dialCode:"+226"},{iso2:"BI",name:"Burundi",dialCode:"+257"},{iso2:"KH",name:"Cambodia",dialCode:"+855"},{iso2:"CM",name:"Cameroon",dialCode:"+237"},{iso2:"CA",name:"Canada",dialCode:"+1"},{iso2:"CV",name:"Cape Verde",dialCode:"+238"},{iso2:"KY",name:"Cayman Islands",dialCode:"+1-345"},{iso2:"CF",name:"Central African Republic",dialCode:"+236"},{iso2:"TD",name:"Chad",dialCode:"+235"},{iso2:"CL",name:"Chile",dialCode:"+56"},{iso2:"CN",name:"China",dialCode:"+86"},{iso2:"CX",name:"Christmas Island",dialCode:"+61"},{iso2:"CC",name:"Cocos (Keeling) Islands",dialCode:"+61"},{iso2:"CO",name:"Colombia",dialCode:"+57"},{iso2:"KM",name:"Comoros",dialCode:"+269"},{iso2:"CG",name:"Congo",dialCode:"+242"},{iso2:"CD",name:"Congo, Democratic Republic",dialCode:"+243"},{iso2:"CK",name:"Cook Islands",dialCode:"+682"},{iso2:"CR",name:"Costa Rica",dialCode:"+506"},{iso2:"CI",name:"Cote d'Ivoire",dialCode:"+225"},{iso2:"HR",name:"Croatia",dialCode:"+385"},{iso2:"CU",name:"Cuba",dialCode:"+53"},{iso2:"CY",name:"Cyprus",dialCode:"+357"},{iso2:"CZ",name:"Czech Republic",dialCode:"+420"},{iso2:"DK",name:"Denmark",dialCode:"+45"},{iso2:"DJ",name:"Djibouti",dialCode:"+253"},{iso2:"DM",name:"Dominica",dialCode:"+1-767"},{iso2:"DO",name:"Dominican Republic",dialCode:"+1-809"},{iso2:"EC",name:"Ecuador",dialCode:"+593"},{iso2:"EG",name:"Egypt",dialCode:"+20"},{iso2:"SV",name:"El Salvador",dialCode:"+503"},{iso2:"GQ",name:"Equatorial Guinea",dialCode:"+240"},{iso2:"ER",name:"Eritrea",dialCode:"+291"},{iso2:"EE",name:"Estonia",dialCode:"+372"},{iso2:"ET",name:"Ethiopia",dialCode:"+251"},{iso2:"FK",name:"Falkland Islands",dialCode:"+500"},{iso2:"FO",name:"Faroe Islands",dialCode:"+298"},{iso2:"FJ",name:"Fiji",dialCode:"+679"},{iso2:"FI",name:"Finland",dialCode:"+358"},{iso2:"FR",name:"France",dialCode:"+33"},{iso2:"GF",name:"French Guiana",dialCode:"+594"},{iso2:"PF",name:"French Polynesia",dialCode:"+689"},{iso2:"GA",name:"Gabon",dialCode:"+241"},{iso2:"GM",name:"Gambia",dialCode:"+220"},{iso2:"GE",name:"Georgia",dialCode:"+995"},{iso2:"DE",name:"Germany",dialCode:"+49"},{iso2:"GH",name:"Ghana",dialCode:"+233"},{iso2:"GI",name:"Gibraltar",dialCode:"+350"},{iso2:"GR",name:"Greece",dialCode:"+30"},{iso2:"GL",name:"Greenland",dialCode:"+299"},{iso2:"GD",name:"Grenada",dialCode:"+1-473"},{iso2:"GP",name:"Guadeloupe",dialCode:"+590"},{iso2:"GU",name:"Guam",dialCode:"+1-671"},{iso2:"GT",name:"Guatemala",dialCode:"+502"},{iso2:"GG",name:"Guernsey",dialCode:"+44-1481"},{iso2:"GN",name:"Guinea",dialCode:"+224"},{iso2:"GW",name:"Guinea-Bissau",dialCode:"+245"},{iso2:"GY",name:"Guyana",dialCode:"+592"},{iso2:"HT",name:"Haiti",dialCode:"+509"},{iso2:"HN",name:"Honduras",dialCode:"+504"},{iso2:"HK",name:"Hong Kong",dialCode:"+852"},{iso2:"HU",name:"Hungary",dialCode:"+36"},{iso2:"IS",name:"Iceland",dialCode:"+354"},{iso2:"IN",name:"India",dialCode:"+91"},{iso2:"ID",name:"Indonesia",dialCode:"+62"},{iso2:"IR",name:"Iran",dialCode:"+98"},{iso2:"IQ",name:"Iraq",dialCode:"+964"},{iso2:"IE",name:"Ireland",dialCode:"+353"},{iso2:"IM",name:"Isle of Man",dialCode:"+44-1624"},{iso2:"IL",name:"Israel",dialCode:"+972"},{iso2:"IT",name:"Italy",dialCode:"+39"},{iso2:"JM",name:"Jamaica",dialCode:"+1-876"},{iso2:"JP",name:"Japan",dialCode:"+81"},{iso2:"JE",name:"Jersey",dialCode:"+44-1534"},{iso2:"JO",name:"Jordan",dialCode:"+962"},{iso2:"KZ",name:"Kazakhstan",dialCode:"+7"},{iso2:"KE",name:"Kenya",dialCode:"+254"},{iso2:"KI",name:"Kiribati",dialCode:"+686"},{iso2:"KP",name:"Korea, North",dialCode:"+850"},{iso2:"KR",name:"Korea, South",dialCode:"+82"},{iso2:"KW",name:"Kuwait",dialCode:"+965"},{iso2:"KG",name:"Kyrgyzstan",dialCode:"+996"},{iso2:"LA",name:"Laos",dialCode:"+856"},{iso2:"LV",name:"Latvia",dialCode:"+371"},{iso2:"LB",name:"Lebanon",dialCode:"+961"},{iso2:"LS",name:"Lesotho",dialCode:"+266"},{iso2:"LR",name:"Liberia",dialCode:"+231"},{iso2:"LY",name:"Libya",dialCode:"+218"},{iso2:"LI",name:"Liechtenstein",dialCode:"+423"},{iso2:"LT",name:"Lithuania",dialCode:"+370"},{iso2:"LU",name:"Luxembourg",dialCode:"+352"},{iso2:"MO",name:"Macau",dialCode:"+853"},{iso2:"MK",name:"North Macedonia",dialCode:"+389"},{iso2:"MG",name:"Madagascar",dialCode:"+261"},{iso2:"MW",name:"Malawi",dialCode:"+265"},{iso2:"MY",name:"Malaysia",dialCode:"+60"},{iso2:"MV",name:"Maldives",dialCode:"+960"},{iso2:"ML",name:"Mali",dialCode:"+223"},{iso2:"MT",name:"Malta",dialCode:"+356"},{iso2:"MH",name:"Marshall Islands",dialCode:"+692"},{iso2:"MQ",name:"Martinique",dialCode:"+596"},{iso2:"MR",name:"Mauritania",dialCode:"+222"},{iso2:"MU",name:"Mauritius",dialCode:"+230"},{iso2:"YT",name:"Mayotte",dialCode:"+262"},{iso2:"MX",name:"Mexico",dialCode:"+52"},{iso2:"FM",name:"Micronesia",dialCode:"+691"},{iso2:"MD",name:"Moldova",dialCode:"+373"},{iso2:"MC",name:"Monaco",dialCode:"+377"},{iso2:"MN",name:"Mongolia",dialCode:"+976"},{iso2:"ME",name:"Montenegro",dialCode:"+382"},{iso2:"MS",name:"Montserrat",dialCode:"+1-664"},{iso2:"MA",name:"Morocco",dialCode:"+212"},{iso2:"MZ",name:"Mozambique",dialCode:"+258"},{iso2:"MM",name:"Myanmar",dialCode:"+95"},{iso2:"NA",name:"Namibia",dialCode:"+264"},{iso2:"NR",name:"Nauru",dialCode:"+674"},{iso2:"NP",name:"Nepal",dialCode:"+977"},{iso2:"NL",name:"Netherlands",dialCode:"+31"},{iso2:"NC",name:"New Caledonia",dialCode:"+687"},{iso2:"NZ",name:"New Zealand",dialCode:"+64"},{iso2:"NI",name:"Nicaragua",dialCode:"+505"},{iso2:"NE",name:"Niger",dialCode:"+227"},{iso2:"NG",name:"Nigeria",dialCode:"+234"},{iso2:"NU",name:"Niue",dialCode:"+683"},{iso2:"NF",name:"Norfolk Island",dialCode:"+672"},{iso2:"MP",name:"Northern Mariana Islands",dialCode:"+1-670"},{iso2:"NO",name:"Norway",dialCode:"+47"},{iso2:"OM",name:"Oman",dialCode:"+968"},{iso2:"PK",name:"Pakistan",dialCode:"+92"},{iso2:"PW",name:"Palau",dialCode:"+680"},{iso2:"PS",name:"Palestine",dialCode:"+970"},{iso2:"PA",name:"Panama",dialCode:"+507"},{iso2:"PG",name:"Papua New Guinea",dialCode:"+675"},{iso2:"PY",name:"Paraguay",dialCode:"+595"},{iso2:"PE",name:"Peru",dialCode:"+51"},{iso2:"PH",name:"Philippines",dialCode:"+63"},{iso2:"PN",name:"Pitcairn",dialCode:"+64"},{iso2:"PL",name:"Poland",dialCode:"+48"},{iso2:"PT",name:"Portugal",dialCode:"+351"},{iso2:"PR",name:"Puerto Rico",dialCode:"+1-787"},{iso2:"QA",name:"Qatar",dialCode:"+974"},{iso2:"RE",name:"Reunion",dialCode:"+262"},{iso2:"RO",name:"Romania",dialCode:"+40"},{iso2:"RU",name:"Russia",dialCode:"+7"},{iso2:"RW",name:"Rwanda",dialCode:"+250"},{iso2:"BL",name:"Saint Barthelemy",dialCode:"+590"},{iso2:"SH",name:"Saint Helena",dialCode:"+290"},{iso2:"KN",name:"Saint Kitts and Nevis",dialCode:"+1-869"},{iso2:"LC",name:"Saint Lucia",dialCode:"+1-758"},{iso2:"MF",name:"Saint Martin",dialCode:"+590"},{iso2:"PM",name:"Saint Pierre and Miquelon",dialCode:"+508"},{iso2:"VC",name:"Saint Vincent and the Grenadines",dialCode:"+1-784"},{iso2:"WS",name:"Samoa",dialCode:"+685"},{iso2:"SM",name:"San Marino",dialCode:"+378"},{iso2:"ST",name:"Sao Tome and Principe",dialCode:"+239"},{iso2:"SA",name:"Saudi Arabia",dialCode:"+966"},{iso2:"SN",name:"Senegal",dialCode:"+221"},{iso2:"RS",name:"Serbia",dialCode:"+381"},{iso2:"SC",name:"Seychelles",dialCode:"+248"},{iso2:"SL",name:"Sierra Leone",dialCode:"+232"},{iso2:"SG",name:"Singapore",dialCode:"+65"},{iso2:"SX",name:"Sint Maarten",dialCode:"+1-721"},{iso2:"SK",name:"Slovakia",dialCode:"+421"},{iso2:"SI",name:"Slovenia",dialCode:"+386"},{iso2:"SB",name:"Solomon Islands",dialCode:"+677"},{iso2:"SO",name:"Somalia",dialCode:"+252"},{iso2:"ZA",name:"South Africa",dialCode:"+27"},{iso2:"GS",name:"South Georgia and the South Sandwich Islands",dialCode:"+500"},{iso2:"SS",name:"South Sudan",dialCode:"+211"},{iso2:"ES",name:"Spain",dialCode:"+34"},{iso2:"LK",name:"Sri Lanka",dialCode:"+94"},{iso2:"SD",name:"Sudan",dialCode:"+249"},{iso2:"SR",name:"Suriname",dialCode:"+597"},{iso2:"SJ",name:"Svalbard and Jan Mayen",dialCode:"+47"},{iso2:"SZ",name:"Swaziland",dialCode:"+268"},{iso2:"SE",name:"Sweden",dialCode:"+46"},{iso2:"CH",name:"Switzerland",dialCode:"+41"},{iso2:"SY",name:"Syria",dialCode:"+963"},{iso2:"TW",name:"Taiwan",dialCode:"+886"},{iso2:"TJ",name:"Tajikistan",dialCode:"+992"},{iso2:"TZ",name:"Tanzania",dialCode:"+255"},{iso2:"TH",name:"Thailand",dialCode:"+66"},{iso2:"TL",name:"Timor-Leste",dialCode:"+670"},{iso2:"TG",name:"Togo",dialCode:"+228"},{iso2:"TK",name:"Tokelau",dialCode:"+690"},{iso2:"TO",name:"Tonga",dialCode:"+676"},{iso2:"TT",name:"Trinidad and Tobago",dialCode:"+1-868"},{iso2:"TN",name:"Tunisia",dialCode:"+216"},{iso2:"TR",name:"Turkey",dialCode:"+90"},{iso2:"TM",name:"Turkmenistan",dialCode:"+993"},{iso2:"TC",name:"Turks and Caicos Islands",dialCode:"+1-649"},{iso2:"TV",name:"Tuvalu",dialCode:"+688"},{iso2:"UG",name:"Uganda",dialCode:"+256"},{iso2:"UA",name:"Ukraine",dialCode:"+380"},{iso2:"AE",name:"United Arab Emirates",dialCode:"+971"},{iso2:"GB",name:"United Kingdom",dialCode:"+44"},{iso2:"US",name:"United States",dialCode:"+1"},{iso2:"UY",name:"Uruguay",dialCode:"+598"},{iso2:"UZ",name:"Uzbekistan",dialCode:"+998"},{iso2:"VU",name:"Vanuatu",dialCode:"+678"},{iso2:"VA",name:"Vatican City",dialCode:"+379"},{iso2:"VE",name:"Venezuela",dialCode:"+58"},{iso2:"VN",name:"Vietnam",dialCode:"+84"},{iso2:"VG",name:"British Virgin Islands",dialCode:"+1-284"},{iso2:"VI",name:"US Virgin Islands",dialCode:"+1-340"},{iso2:"WF",name:"Wallis and Futuna",dialCode:"+681"},{iso2:"EH",name:"Western Sahara",dialCode:"+212"},{iso2:"YE",name:"Yemen",dialCode:"+967"},{iso2:"ZM",name:"Zambia",dialCode:"+260"},{iso2:"ZW",name:"Zimbabwe",dialCode:"+263"}],Lc=a=>{const s=a.toUpperCase().split("").map(l=>127397+l.charCodeAt(0));return String.fromCodePoint(...s)},Fd=({value:a,onChange:s,onCountryChange:l,label:o="Country",required:d,placeholder:h="Select country",error:f,hint:g,searchable:y=!0,clearable:p=!0,showFlags:b=!0,disabled:x,animate:S=!0,className:N})=>{const _=S!==!1,[V,H]=j.useState(!1),[R,K]=j.useState(""),[Y,$]=j.useState("bottom"),Q=j.useRef(null),W=j.useRef(null),X=j.useMemo(()=>Sn.find(U=>U.iso2===a),[a]),E=j.useMemo(()=>{if(!y||!R.trim())return Sn;const U=R.toLowerCase();return Sn.filter(ie=>ie.name.toLowerCase().includes(U)||ie.iso2.toLowerCase().includes(U)||ie.dialCode.replace(/\s/g,"").includes(U.replace(/\s/g,"")))},[R,y]);j.useEffect(()=>{const U=ie=>{Q.current&&!Q.current.contains(ie.target)&&(H(!1),K(""))};return document.addEventListener("mousedown",U),()=>document.removeEventListener("mousedown",U)},[]),j.useEffect(()=>{if(!V)return;const U=()=>{if(!W.current)return;const ie=W.current.getBoundingClientRect(),le=y?360:300,re=window.innerHeight-ie.bottom-8,ee=ie.top-8;if(re>=le){$("bottom");return}if(ee>=le){$("top");return}$("bottom")};return U(),window.addEventListener("resize",U),window.addEventListener("scroll",U,!0),()=>{window.removeEventListener("resize",U),window.removeEventListener("scroll",U,!0)}},[V,y]);const te=U=>{s?.(U);const ie=Sn.find(le=>le.iso2===U);ie&&l?.(ie),H(!1),K("")},J=Y==="top"?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}}:{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}};return c.jsxs("div",{ref:Q,className:F("w-full space-y-1.5",N),children:[o&&c.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[o,d&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("div",{ref:W,className:"relative",children:[c.jsxs("button",{type:"button",onClick:()=>!x&&H(!V),disabled:x,"aria-haspopup":"listbox","aria-expanded":V,"aria-required":d,className:F("w-full px-4 py-3 rounded-md border transition-all duration-200","bg-background text-left flex items-center justify-between gap-2","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent","disabled:bg-secondary disabled:cursor-not-allowed","touch-target text-base",f&&"border-error focus:ring-error",V&&"ring-2 ring-primary",!f&&(x?"opacity-50":"border-border"),f&&x&&"opacity-50"),children:[c.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[b&&X&&c.jsx("span",{className:"text-base","aria-hidden":!0,children:Lc(X.iso2)}),c.jsx("span",{className:F("truncate",!X&&"text-foreground/50"),children:X?X.name:h})]}),c.jsx(Fn,{className:F("w-5 h-5 text-primary transition-transform shrink-0",V&&"rotate-180")})]}),_?c.jsx(hn,{children:V?c.jsx(fn,{open:V,anchorRef:W,placement:Y,children:c.jsxs(he.div,{initial:J.initial,animate:J.animate,exit:J.exit,transition:{duration:.2},role:"listbox",className:"z-50 w-full max-w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden overflow-x-hidden",children:[y&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(Cn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search country or code",value:R,onChange:U=>K(U.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary"}),R&&c.jsx("button",{type:"button",onClick:()=>K(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Ft,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[p&&c.jsx("button",{type:"button",role:"option","aria-selected":!a,onClick:()=>te(""),className:F("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!a&&"bg-border text-foreground"),children:c.jsx("span",{children:"None"})}),E.map(U=>c.jsxs("button",{type:"button",role:"option","aria-selected":U.iso2===X?.iso2,onClick:()=>te(U.iso2),className:F("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",U.iso2===X?.iso2&&"bg-border text-foreground"),children:[b&&c.jsx("span",{className:"text-base","aria-hidden":!0,children:Lc(U.iso2)}),c.jsx("span",{className:"text-sm font-medium text-foreground wrap-break-word whitespace-normal",children:U.name}),c.jsx("span",{className:"ml-auto text-xs text-primary/70",children:U.dialCode})]},U.iso2))]})]})}):null}):V&&c.jsx(fn,{open:V,anchorRef:W,placement:Y,children:c.jsxs("div",{role:"listbox",className:"z-50 w-full max-w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden overflow-x-hidden",children:[y&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(Cn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search country or code",value:R,onChange:U=>K(U.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary"}),R&&c.jsx("button",{type:"button",onClick:()=>K(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Ft,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[p&&c.jsx("button",{type:"button",role:"option","aria-selected":!a,onClick:()=>te(""),className:F("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!a&&"bg-border text-foreground"),children:c.jsx("span",{children:"None"})}),E.map(U=>c.jsxs("button",{type:"button",role:"option","aria-selected":U.iso2===X?.iso2,onClick:()=>te(U.iso2),className:F("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",U.iso2===X?.iso2&&"bg-border text-foreground"),children:[b&&c.jsx("span",{className:"text-base","aria-hidden":!0,children:Lc(U.iso2)}),c.jsx("span",{className:"text-sm font-medium text-foreground wrap-break-word whitespace-normal",children:U.name}),c.jsx("span",{className:"ml-auto text-xs text-primary/70",children:U.dialCode})]},U.iso2))]})]})})]}),f&&c.jsx(he.p,{..._?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"text-sm text-error",children:f}),g&&!f&&c.jsx("p",{className:"text-sm text-primary/70",children:g})]})};Fd.displayName="CountrySelect";const Uc=a=>{const s=a.toUpperCase().split("").map(l=>127397+l.charCodeAt(0));return String.fromCodePoint(...s)},NT=()=>{if(typeof navigator>"u")return null;const s=(navigator.language||"").match(/[-_](\w{2})$/);return s?s[1].toUpperCase():null},Ko=a=>a.replace(/\s/g,""),Hc=(a,s)=>{const l=a.replace(/\s/g,""),o=l.startsWith("00")?`+${l.slice(2)}`:l;if(!o.startsWith("+"))return;const d=Sn.filter(f=>{const g=Ko(f.dialCode);return o.startsWith(g)}),h=s?d.find(f=>f.iso2===s.toUpperCase()):void 0;return h||[...d].sort((f,g)=>Ko(g.dialCode).length-Ko(f.dialCode).length)[0]},Tb=({value:a,onChange:s,country:l,defaultCountry:o="KE",autoDetect:d=!0,onCountryChange:h,label:f,error:g,hint:y,searchable:p=!0,showFlags:b=!0,animate:x=!0,disabled:S,required:N,className:_,placeholder:V,...H})=>{const R=x!==!1,[K,Y]=j.useState(!1),[$,Q]=j.useState(""),[W,X]=j.useState(o),[E,te]=j.useState("bottom"),J=j.useRef(null),U=j.useRef(null),ie=j.useRef(null),le=j.useRef(!1);j.useEffect(()=>{l&&X(l.toUpperCase())},[l]),j.useEffect(()=>{if(!l&&d){const M=NT();M&&X(M)}},[d,l]),j.useEffect(()=>{const M=oe=>{J.current&&!J.current.contains(oe.target)&&(Y(!1),Q(""))};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[]);const re=j.useMemo(()=>{const M=a?Hc(a,l||W):void 0;if(l)return Sn.find(C=>C.iso2===l.toUpperCase())||M||Sn[0];if(M)return M;const oe=(W||o).toUpperCase();return Sn.find(se=>se.iso2===oe)||Sn[0]},[l,W,o,a]);j.useEffect(()=>{if(l||!a)return;const M=Hc(a,W);M&&M.iso2!==W&&X(M.iso2)},[l,a,W]),j.useEffect(()=>{re&&ie.current!==re.iso2&&(ie.current=re.iso2,h?.(re))},[re,h]),j.useEffect(()=>{le.current||s&&(a??"").trim()===""&&(le.current=!0,s(re.dialCode))},[s,re.dialCode,a]),j.useEffect(()=>{if(!K)return;const M=()=>{if(!U.current)return;const oe=U.current.getBoundingClientRect(),se=p?360:300,C=window.innerHeight-oe.bottom-8,B=oe.top-8;if(C>=se){te("bottom");return}if(B>=se){te("top");return}te("bottom")};return M(),window.addEventListener("resize",M),window.addEventListener("scroll",M,!0),()=>{window.removeEventListener("resize",M),window.removeEventListener("scroll",M,!0)}},[K,p]);const ee=j.useMemo(()=>{if(!p||!$.trim())return Sn;const M=$.toLowerCase();return Sn.filter(oe=>oe.name.toLowerCase().includes(M)||oe.iso2.toLowerCase().includes(M)||oe.dialCode.replace(/\s/g,"").includes(M.replace(/\s/g,"")))},[$,p]),D=M=>{l||X(M.iso2),h?.(M);const oe=(a??"").replace(/\s/g,""),se=Hc(oe,l||W),C=se?Ko(se.dialCode):"";let B=M.dialCode;oe&&(C&&oe.startsWith(C)?B=`${M.dialCode}${oe.slice(C.length)}`:oe.startsWith("+")?B=`${M.dialCode}${oe.replace(/^\+[\d-]*/,"")}`:B=`${M.dialCode}${oe}`),s?.(B),Y(!1),Q("")},G=E==="top"?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}}:{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}};return c.jsxs("div",{ref:J,className:F("w-full space-y-1.5",_),children:[f&&c.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[f,N&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("div",{ref:U,className:"relative",children:[c.jsxs("div",{className:F("flex items-stretch rounded-md border transition-all duration-200 bg-background overflow-hidden","focus-within:ring-2 focus-within:ring-primary focus-within:border-transparent","disabled:bg-secondary disabled:cursor-not-allowed",g?"border-error":"border-border"),children:[c.jsxs("button",{type:"button",onClick:()=>!S&&Y(!K),disabled:S,className:F("flex items-center gap-2 px-3 py-2 text-left","border-r border-border/70","hover:bg-secondary transition-colors","disabled:opacity-50 disabled:cursor-not-allowed"),"aria-haspopup":"listbox","aria-expanded":K,children:[b&&c.jsx("span",{className:"text-base","aria-hidden":!0,children:Uc(re.iso2)}),c.jsx("span",{className:"text-sm font-medium text-foreground",children:re.iso2}),c.jsx(Fn,{className:F("w-4 h-4 text-primary transition-transform",K&&"rotate-180")})]}),c.jsx("input",{type:"tel",inputMode:"tel",value:a??"",onChange:M=>s?.(M.target.value),placeholder:V||`${re.dialCode} Phone number`,disabled:S,required:N,className:F("flex-1 px-4 py-2.5 text-base bg-transparent text-foreground","placeholder:text-foreground/50 focus:outline-none","disabled:opacity-50 disabled:cursor-not-allowed"),...H})]}),R?c.jsx(hn,{children:K?c.jsx(fn,{open:K,anchorRef:U,placement:E,children:c.jsxs(he.div,{initial:G.initial,animate:G.animate,exit:G.exit,transition:{duration:.2},role:"listbox",className:"z-50 w-full max-w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden overflow-x-hidden",children:[p&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(Cn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search country or code",value:$,onChange:M=>Q(M.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary"}),$&&c.jsx("button",{type:"button",onClick:()=>Q(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Ft,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsx("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:ee.map(M=>c.jsxs("button",{type:"button",role:"option","aria-selected":M.iso2===re.iso2,onClick:()=>D(M),className:F("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",M.iso2===re.iso2&&"bg-border text-foreground"),children:[b&&c.jsx("span",{className:"text-base","aria-hidden":!0,children:Uc(M.iso2)}),c.jsx("span",{className:"text-sm font-medium text-foreground wrap-break-word whitespace-normal",children:M.name}),c.jsx("span",{className:"ml-auto text-xs text-primary/70",children:M.dialCode})]},M.iso2))})]})}):null}):K&&c.jsx(fn,{open:K,anchorRef:U,placement:E,children:c.jsxs("div",{role:"listbox",className:"z-50 w-full max-w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden overflow-x-hidden",children:[p&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(Cn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search country or code",value:$,onChange:M=>Q(M.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary"}),$&&c.jsx("button",{type:"button",onClick:()=>Q(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Ft,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsx("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:ee.map(M=>c.jsxs("button",{type:"button",role:"option","aria-selected":M.iso2===re.iso2,onClick:()=>D(M),className:F("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",M.iso2===re.iso2&&"bg-border text-foreground"),children:[b&&c.jsx("span",{className:"text-base","aria-hidden":!0,children:Uc(M.iso2)}),c.jsx("span",{className:"text-sm font-medium text-foreground wrap-break-word whitespace-normal",children:M.name}),c.jsx("span",{className:"ml-auto text-xs text-primary/70",children:M.dialCode})]},M.iso2))})]})})]}),g&&c.jsx(he.p,{...R?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"text-sm text-error",children:g}),y&&!g&&c.jsx("p",{className:"text-sm text-primary/70",children:y})]})};Tb.displayName="PhoneInput";const Pn=j.forwardRef((a,s)=>{const l=a.animate!==!1,[o,d]=j.useState(!1),h=J=>{a.onChange?.(J),a.onValueChange?.(J)};if(a.type==="phone"||a.type==="tel"){const{type:J,value:U,onChange:ie,onValueChange:le,...re}=a;return c.jsx(Tb,{...re,value:typeof U=="string"?U:"",onChange:ee=>h(ee)})}if(a.type==="country"){const{type:J,value:U,onChange:ie,onValueChange:le,...re}=a;return c.jsx(Fd,{...re,value:typeof U=="string"?U:"",onChange:ee=>h(ee)})}if(a.type==="date"){const{type:J,value:U,onChange:ie,onValueChange:le,...re}=a;return c.jsx(jb,{...re,value:U instanceof Date?U:void 0,onChange:ee=>h(ee)})}const f=a,{label:g,error:y,hint:p,leftIcon:b,rightIcon:x,animate:S,className:N,type:_,value:V,placeholder:H,disabled:R,required:K,onChange:Y,onValueChange:$,onWheel:Q,...W}=f,X=_==="number",E=_==="password",te=E&&o?"text":_;return c.jsxs("div",{className:"w-full space-y-1.5",children:[g&&c.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[g,K&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("div",{className:"relative",children:[b&&c.jsx("div",{className:"absolute flex items-center pointer-events-none text-primary",style:{left:"14px",top:"50%",transform:"translateY(-50%)"},children:b}),c.jsx("input",{ref:s,type:te,className:F("w-full rounded-md border transition-all duration-200","bg-background text-foreground placeholder:text-foreground/50","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent","disabled:bg-secondary disabled:cursor-not-allowed","touch-target text-base",X&&"number-input",y&&"border-error focus:ring-error",!y&&"border-border",N),style:{paddingTop:"12px",paddingBottom:"12px",paddingLeft:b?"44px":"16px",paddingRight:x||E?"44px":"16px"},value:V,onChange:J=>h(J.target.value),onWheel:X?J=>{J.preventDefault(),Q?.(J)}:Q,placeholder:H,disabled:R,required:K,...W}),E&&c.jsx(he.button,{type:"button",onClick:()=>d(!o),className:"absolute text-primary hover:text-primary/80 transition-colors",style:{right:"14px",top:"50%",display:"inline-flex",alignItems:"center",justifyContent:"center"},"aria-label":o?"Hide password":"Show password",whileTap:l?{scale:.9,y:"-50%"}:void 0,animate:{y:"-50%"},transition:l?{duration:.1}:{duration:0},children:o?c.jsx(oj,{className:"w-5 h-5"}):c.jsx(uj,{className:"w-5 h-5"})}),x&&!E&&c.jsx("div",{className:"absolute flex items-center pointer-events-none text-primary",style:{right:"14px",top:"50%",transform:"translateY(-50%)"},children:x})]}),y&&c.jsx(he.p,{...l?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"text-sm text-error",children:y}),p&&!y&&c.jsx("p",{className:"text-sm text-primary/70",children:p})]})});Pn.displayName="Input";const Nb=j.forwardRef(({label:a,error:s,helperText:l,className:o,required:d,animate:h=!0,...f},g)=>{const y=h!==!1;return c.jsxs(he.div,{...y?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3}}:{},className:"w-full",children:[a&&c.jsxs("label",{className:"block text-sm font-medium text-foreground mb-1.5",children:[a,d&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsx("textarea",{ref:g,className:F("w-full px-4 py-3 bg-background border border-border rounded-md","text-foreground placeholder:text-foreground/50","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent","disabled:bg-secondary disabled:opacity-50 disabled:cursor-not-allowed","transition-all duration-200 resize-vertical","text-base touch-target",s&&"border-error focus:ring-error",o),...f}),s&&c.jsx(he.p,{...y?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"mt-1 text-sm text-error",children:s}),l&&!s&&c.jsx("p",{className:"mt-1 text-sm text-primary/70",children:l})]})});Nb.displayName="Textarea";const ii=j.forwardRef(({label:a,description:s,className:l,checked:o,defaultChecked:d,onChange:h,animate:f=!0,...g},y)=>{const p=f!==!1,[b,x]=j.useState(d||!1),S=o!==void 0?o:b,N=_=>{o===void 0&&x(_.target.checked),h?.(_.target.checked)};return c.jsxs("label",{className:"flex items-start gap-3 cursor-pointer group",children:[c.jsxs("div",{className:"relative flex-shrink-0 mt-0.5",children:[c.jsx("input",{ref:y,type:"checkbox",className:"sr-only peer",checked:S,onChange:N,...g}),c.jsx(he.div,{className:F("w-6 h-6 rounded-md border-2 transition-all duration-200","peer-focus:ring-2 peer-focus:ring-primary peer-focus:ring-offset-2","peer-disabled:opacity-50 peer-disabled:cursor-not-allowed","flex items-center justify-center",S?"bg-primary border-primary":"border-border bg-secondary",l),whileTap:p?{scale:.95}:void 0,children:c.jsx(ob,{className:F("w-3 h-3 text-white transition-opacity duration-200",S?"opacity-100":"opacity-0")})})]}),(a||s)&&c.jsxs("div",{className:"flex-1 space-y-0.5",children:[a&&c.jsx("div",{className:"text-base font-medium text-foreground group-hover:text-primary transition-colors",children:a}),s&&c.jsx("div",{className:"text-sm text-primary/70",children:s})]})]})});ii.displayName="Checkbox";const AT=({options:a,value:s,onChange:l,name:o,disabled:d,className:h,animate:f=!0})=>{const g=f!==!1;return c.jsx("div",{className:F("flex flex-wrap gap-2",h),children:a.map(y=>{const p=s===y.value;return c.jsxs("label",{className:"relative cursor-pointer",children:[c.jsx("input",{type:"radio",name:o,value:y.value,checked:p,onChange:b=>l?.(b.target.value),disabled:d,className:"sr-only peer"}),c.jsxs(he.div,{"data-ripple":"true",whileTap:g?{scale:d?1:.95}:void 0,className:F("px-4 py-2.5 rounded-full border-2 transition-all duration-200","flex items-center gap-2 min-h-11","peer-focus:ring-2 peer-focus:ring-primary peer-focus:ring-offset-2","peer-disabled:opacity-50 peer-disabled:cursor-not-allowed",p?"bg-primary border-primary text-white":"bg-background border-border text-primary hover:border-border-dark"),children:[y.icon&&c.jsx("span",{className:"shrink-0",children:y.icon}),c.jsx("span",{className:"font-medium text-base",children:y.label})]})]},y.value)})})},Ab=j.forwardRef(({label:a,description:s,className:l,checked:o,onChange:d,animate:h=!0,...f},g)=>{const y=h!==!1,p=b=>{d?.(b.target.checked)};return c.jsxs("label",{className:"flex items-center justify-between gap-4 cursor-pointer group",children:[(a||s)&&c.jsxs("div",{className:"flex-1 space-y-0.5",children:[a&&c.jsx("div",{className:"text-base font-medium text-foreground",children:a}),s&&c.jsx("div",{className:"text-sm text-primary/70",children:s})]}),c.jsxs("div",{className:"relative flex-shrink-0",children:[c.jsx("input",{ref:g,type:"checkbox",onChange:p,className:"sr-only peer",checked:o,...f}),c.jsx("div",{className:F("w-12 h-7 rounded-full transition-all duration-200 relative","peer-focus:ring-2 peer-focus:ring-primary peer-focus:ring-offset-2","peer-disabled:opacity-50 peer-disabled:cursor-not-allowed",o?"bg-primary":"bg-border-dark",l),children:c.jsx(he.div,{className:"absolute top-1 w-5 h-5 bg-white rounded-full shadow-sm",style:{left:o?"24px":"4px"},animate:y?{left:o?"24px":"4px"}:void 0,transition:y?{type:"spring",stiffness:500,damping:30}:{duration:0}})})]})]})});Ab.displayName="Toggle";const MT=({value:a,onChange:s,min:l=0,max:o=100,step:d=1,label:h,showValue:f=!0,unit:g="%",disabled:y,className:p,animate:b=!0})=>{const x=b!==!1,[S,N]=j.useState(!1),_=(a-l)/(o-l)*100;return c.jsxs("div",{className:F("w-full space-y-2",p),children:[(h||f)&&c.jsxs("div",{className:"flex items-center justify-between",children:[h&&c.jsx("label",{className:"text-sm font-medium text-primary",children:h}),f&&c.jsxs("span",{className:"text-sm font-semibold text-primary",children:[a,g]})]}),c.jsxs("div",{className:"relative h-12 flex items-center",children:[c.jsx("div",{className:"relative w-full h-2 bg-border rounded-full overflow-hidden",children:c.jsx(he.div,{className:"absolute left-0 top-0 h-full bg-primary rounded-full",style:{width:`${_}%`},initial:!1,animate:x?{width:`${_}%`}:void 0,transition:x?{type:"spring",stiffness:300,damping:30}:{duration:0}})}),c.jsx("input",{type:"range",min:l,max:o,step:d,value:a,onChange:V=>s(Number(V.target.value)),onMouseDown:()=>N(!0),onMouseUp:()=>N(!1),onTouchStart:()=>N(!0),onTouchEnd:()=>N(!1),disabled:y,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer disabled:cursor-not-allowed",style:{zIndex:10}}),c.jsx(he.div,{className:F("absolute w-6 h-6 bg-background border-2 border-primary rounded-full shadow-md","pointer-events-none",y&&"opacity-50"),style:{left:`calc(${_}% - 12px)`},animate:x?{scale:S?1.2:1}:void 0,transition:x?{type:"spring",stiffness:300,damping:20}:{duration:0}})]})]})},ET=({value1:a,value2:s,onChange:l,label1:o,label2:d,min:h=0,max:f=100,step:g=1,unit:y="%",disabled:p,className:b,animate:x=!0})=>{const S=x!==!1,N=a+s,_=N>0?a/N*100:50,V=N>0?s/N*100:50,H=R=>{const K=f-R;l(R,Math.max(h,Math.min(f,K)))};return c.jsxs("div",{className:F("w-full space-y-3",b),children:[c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("label",{className:"text-sm font-medium text-primary",children:o}),c.jsxs("span",{className:"text-sm font-semibold text-primary",children:[a,y]})]}),c.jsxs("div",{className:"relative h-10 flex items-center",children:[c.jsx("div",{className:"w-full h-2 bg-border rounded-full overflow-hidden",children:c.jsx(he.div,{className:"h-full bg-primary",initial:!1,animate:S?{width:`${_}%`}:void 0,transition:S?{type:"spring",stiffness:300,damping:30}:{duration:0}})}),c.jsx("input",{type:"range",min:h,max:f,step:g,value:a,onChange:R=>H(Number(R.target.value)),disabled:p,className:"absolute inset-0 w-full opacity-0 cursor-pointer disabled:cursor-not-allowed"})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("label",{className:"text-sm font-medium text-primary",children:d}),c.jsxs("span",{className:"text-sm font-semibold text-success",children:[s,y]})]}),c.jsxs("div",{className:"relative h-10 flex items-center",children:[c.jsx("div",{className:"w-full h-2 bg-border rounded-full overflow-hidden",children:c.jsx(he.div,{className:"h-full bg-success",initial:!1,animate:S?{width:`${V}%`}:void 0,transition:S?{type:"spring",stiffness:300,damping:30}:{duration:0}})}),c.jsx("input",{type:"range",min:h,max:f,step:g,value:s,onChange:R=>H(f-Number(R.target.value)),disabled:p,className:"absolute inset-0 w-full opacity-0 cursor-pointer disabled:cursor-not-allowed"})]})]}),c.jsxs("div",{className:"text-xs text-primary/70 text-center",children:["Total: ",N,y]})]})},DT=({options:a,value:s,onChange:l,placeholder:o="Select an option",label:d,error:h,searchable:f=!1,clearable:g=!0,disabled:y,className:p,animate:b=!0})=>{const x=b!==!1,[S,N]=j.useState(!1),[_,V]=j.useState(""),[H,R]=j.useState("bottom"),K=j.useRef(null),Y=j.useRef(null),$=a.find(E=>E.value===s),Q=f?a.filter(E=>E.label.toLowerCase().includes(_.toLowerCase())):a;j.useEffect(()=>{const E=te=>{K.current&&!K.current.contains(te.target)&&(N(!1),V(""))};return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[]),j.useEffect(()=>{if(!S)return;const E=()=>{if(!Y.current)return;const te=Y.current.getBoundingClientRect(),J=f?360:300,U=window.innerHeight-te.bottom-8,ie=te.top-8;if(U>=J){R("bottom");return}if(ie>=J){R("top");return}R("bottom")};return E(),window.addEventListener("resize",E),window.addEventListener("scroll",E,!0),()=>{window.removeEventListener("resize",E),window.removeEventListener("scroll",E,!0)}},[S,f]);const W=E=>{l(E),N(!1),V("")},X=H==="top"?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}}:{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}};return c.jsxs("div",{ref:K,className:F("relative w-full",p),children:[d&&c.jsx("label",{className:"block mb-1.5 text-sm font-medium text-foreground",children:d}),c.jsxs("button",{ref:Y,type:"button",onClick:()=>!y&&N(!S),disabled:y,className:F("w-full px-4 py-3 rounded-md border transition-all duration-200","bg-background text-left flex items-center justify-between gap-2","focus:outline-none focus:ring-2 focus:ring-primary","disabled:bg-secondary disabled:cursor-not-allowed","touch-target",h&&"border-error",!h&&"border-border",S&&"ring-2 ring-primary"),children:[c.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[$?.icon&&c.jsx("span",{className:"shrink-0",children:$.icon}),c.jsx("span",{className:F("truncate",!$&&"text-foreground/50"),children:$?.label||o})]}),c.jsx(Fn,{className:F("w-5 h-5 text-primary transition-transform shrink-0",S&&"rotate-180")})]}),x?c.jsx(hn,{children:S?c.jsx(fn,{open:S,anchorRef:Y,placement:H,children:c.jsxs(he.div,{initial:X.initial,animate:X.animate,exit:X.exit,transition:{duration:.2},className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[f&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(Cn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:_,onChange:E=>V(E.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-primary"}),_&&c.jsx("button",{onClick:()=>V(""),className:"absolute right-2 top-1/2 -translate-y-1/2",children:c.jsx(Ft,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[g&&c.jsx("button",{type:"button",onClick:()=>W(""),className:F("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!s&&"bg-border text-foreground"),children:c.jsx("span",{children:"None"})}),Q.length>0?Q.map(E=>c.jsxs("button",{onClick:()=>W(E.value),className:F("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",E.value===s&&"bg-border text-foreground"),children:[E.icon&&c.jsx("span",{className:"shrink-0",children:E.icon}),c.jsx("span",{children:E.label})]},E.value)):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})}):null}):S&&c.jsx(fn,{open:S,anchorRef:Y,placement:H,children:c.jsxs(he.div,{className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[f&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(Cn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:_,onChange:E=>V(E.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-primary"}),_&&c.jsx("button",{onClick:()=>V(""),className:"absolute right-2 top-1/2 -translate-y-1/2",children:c.jsx(Ft,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[g&&c.jsx("button",{type:"button",onClick:()=>W(""),className:F("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!s&&"bg-border text-foreground"),children:c.jsx("span",{children:"None"})}),Q.length>0?Q.map(E=>c.jsxs("button",{onClick:()=>W(E.value),className:F("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",E.value===s&&"bg-border text-foreground"),children:[E.icon&&c.jsx("span",{className:"shrink-0",children:E.icon}),c.jsx("span",{children:E.label})]},E.value)):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})}),h&&c.jsx(he.p,{...x?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"mt-1.5 text-sm text-error",children:h})]})},Mb=j.forwardRef(({options:a,value:s,onChange:l,placeholder:o="Select an option",label:d,error:h,hint:f,searchable:g=!1,clearable:y=!0,disabled:p,required:b,className:x,animate:S=!0},N)=>{const _=S!==!1,[V,H]=j.useState(!1),[R,K]=j.useState(""),[Y,$]=j.useState("bottom"),Q=j.useRef(null),W=a.find(J=>J.value===s),X=g?a.filter(J=>J.label.toLowerCase().includes(R.toLowerCase())):a;j.useEffect(()=>{const J=U=>{Q.current&&!Q.current.contains(U.target)&&(H(!1),K(""))};return document.addEventListener("mousedown",J),()=>document.removeEventListener("mousedown",J)},[]),j.useEffect(()=>{if(!V)return;const J=()=>{if(!Q.current)return;const U=Q.current.getBoundingClientRect(),ie=g?360:300,le=window.innerHeight-U.bottom-8,re=U.top-8;if(le>=ie){$("bottom");return}if(re>=ie){$("top");return}$("bottom")};return J(),window.addEventListener("resize",J),window.addEventListener("scroll",J,!0),()=>{window.removeEventListener("resize",J),window.removeEventListener("scroll",J,!0)}},[V,g]);const E=J=>{l(J),H(!1),K("")},te=Y==="top"?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}}:{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}};return c.jsxs("div",{ref:N,className:F("w-full space-y-1.5",x),children:[d&&c.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[d,b&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("div",{ref:Q,className:"relative",children:[c.jsxs("button",{type:"button",onClick:()=>!p&&H(!V),disabled:p,"aria-haspopup":"listbox","aria-expanded":V,"aria-required":b,className:F("w-full px-4 py-3 rounded-md border transition-all duration-200","bg-background text-left flex items-center justify-between gap-2","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent","disabled:bg-secondary disabled:cursor-not-allowed","touch-target text-base",h&&"border-error focus:ring-error",!h&&"border-border",V&&"ring-2 ring-primary"),children:[c.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[W?.icon&&c.jsx("span",{className:"shrink-0",children:W.icon}),c.jsx("span",{className:F("truncate",!W&&"text-foreground/50"),children:W?.label||o})]}),c.jsx(Fn,{className:F("w-5 h-5 text-primary transition-transform shrink-0",V&&"rotate-180")})]}),_?c.jsx(hn,{children:V?c.jsx(fn,{open:V,anchorRef:Q,placement:Y,children:c.jsxs(he.div,{initial:te.initial,animate:te.animate,exit:te.exit,transition:{duration:.2},role:"listbox",className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[g&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(Cn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:R,onChange:J=>K(J.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary","aria-label":"Search options"}),R&&c.jsx("button",{type:"button",onClick:()=>K(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Ft,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[y&&c.jsx("button",{type:"button",role:"option","aria-selected":!s,onClick:()=>E(""),className:F("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!s&&"bg-border text-foreground font-medium"),children:c.jsx("span",{children:"None"})}),X.length>0?X.map(J=>c.jsxs("button",{type:"button",role:"option","aria-selected":J.value===s,onClick:()=>!J.disabled&&E(J.value),disabled:J.disabled,className:F("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",J.value===s&&"bg-border text-foreground font-medium"),children:[J.icon&&c.jsx("span",{className:"shrink-0",children:J.icon}),c.jsx("span",{children:J.label})]},J.value)):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})}):null}):V&&c.jsx(fn,{open:V,anchorRef:Q,placement:Y,children:c.jsxs(he.div,{role:"listbox",className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[g&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(Cn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:R,onChange:J=>K(J.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary","aria-label":"Search options"}),R&&c.jsx("button",{type:"button",onClick:()=>K(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Ft,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[y&&c.jsx("button",{type:"button",role:"option","aria-selected":!s,onClick:()=>E(""),className:F("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!s&&"bg-border text-foreground font-medium"),children:c.jsx("span",{children:"None"})}),X.length>0?X.map(J=>c.jsxs("button",{type:"button",role:"option","aria-selected":J.value===s,onClick:()=>!J.disabled&&E(J.value),disabled:J.disabled,className:F("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",J.value===s&&"bg-border text-foreground font-medium"),children:[J.icon&&c.jsx("span",{className:"shrink-0",children:J.icon}),c.jsx("span",{children:J.label})]},J.value)):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})})]}),h&&c.jsx(he.p,{..._?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"text-sm text-error",children:h}),f&&!h&&c.jsx("p",{className:"text-sm text-primary/70",children:f})]})});Mb.displayName="Select";const Eb=j.forwardRef(({options:a,value:s=[],onChange:l,placeholder:o="Select options...",label:d,error:h,hint:f,searchable:g=!1,clearable:y=!0,maxItems:p,disabled:b,required:x,className:S,animate:N=!0,chipVariant:_="primary"},V)=>{const H=N!==!1,[R,K]=j.useState(!1),[Y,$]=j.useState(""),[Q,W]=j.useState("bottom"),X=j.useRef(null),E=a.filter(ee=>s.includes(ee.value)),te=g?a.filter(ee=>ee.label.toLowerCase().includes(Y.toLowerCase())):a;j.useEffect(()=>{const ee=D=>{X.current&&!X.current.contains(D.target)&&(K(!1),$(""))};return document.addEventListener("mousedown",ee),()=>document.removeEventListener("mousedown",ee)},[]),j.useEffect(()=>{if(!R)return;const ee=()=>{if(!X.current)return;const D=X.current.getBoundingClientRect(),G=g?360:300,M=window.innerHeight-D.bottom-8,oe=D.top-8;if(M>=G){W("bottom");return}if(oe>=G){W("top");return}W("bottom")};return ee(),window.addEventListener("resize",ee),window.addEventListener("scroll",ee,!0),()=>{window.removeEventListener("resize",ee),window.removeEventListener("scroll",ee,!0)}},[R,g]);const J=ee=>{const D=s.includes(ee)?s.filter(G=>G!==ee):p&&s.length>=p?s:[...s,ee];l(D)},U=ee=>{const D=s.filter(G=>G!==ee);l(D)},ie=()=>{l([])},le={default:"bg-secondary text-primary border border-border hover:bg-border",primary:"bg-primary/10 text-primary border border-primary/20 hover:bg-primary/20",success:"bg-success/10 text-success border border-success/20 hover:bg-success/20",warning:"bg-warning/10 text-warning border border-warning/20 hover:bg-warning/20",danger:"bg-error/10 text-error border border-error/20 hover:bg-error/20",info:"bg-info/10 text-info border border-info/20 hover:bg-info/20"},re=Q==="top"?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}}:{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}};return c.jsxs("div",{ref:V,className:F("w-full space-y-1.5",S),children:[d&&c.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[d,x&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("div",{ref:X,className:"relative",children:[c.jsxs("div",{role:"button",tabIndex:b?-1:0,onClick:()=>!b&&K(!R),onKeyDown:ee=>{b||(ee.key==="Enter"||ee.key===" ")&&(ee.preventDefault(),K(D=>!D))},"aria-haspopup":"listbox","aria-expanded":R,"aria-required":x,"aria-disabled":b,className:F("w-full px-4 py-3 rounded-md border transition-all duration-200","bg-background text-left flex items-start justify-between gap-2 flex-wrap","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent",b&&"bg-secondary cursor-not-allowed","touch-target text-base min-h-12",h&&"border-error focus:ring-error",!h&&"border-border",R&&"ring-2 ring-primary"),children:[s.length>0?c.jsx("div",{className:"flex flex-wrap gap-2 w-full",children:E.map(ee=>c.jsxs(he.div,{layout:!0,initial:H?{opacity:0,scale:.8}:{},animate:H?{opacity:1,scale:1}:{},exit:H?{opacity:0,scale:.8}:{},className:F("flex items-center gap-1.5 px-2.5 py-1 rounded-md text-sm font-medium",le[_]),children:[ee.icon&&c.jsx("span",{className:"shrink-0",children:ee.icon}),c.jsx("span",{className:"truncate",children:ee.label}),c.jsx("button",{type:"button",onClick:D=>{D.stopPropagation(),U(ee.value)},className:"shrink-0 ml-0.5 hover:opacity-70 transition-opacity","aria-label":`Remove ${ee.label}`,children:c.jsx(Ft,{className:"w-4 h-4"})})]},ee.value))}):c.jsx("span",{className:F("truncate","text-foreground/50"),children:o}),c.jsx(Fn,{className:F("w-5 h-5 text-primary transition-transform shrink-0 ml-auto",R&&"rotate-180")})]}),H?c.jsx(hn,{children:R?c.jsx(fn,{open:R,anchorRef:X,placement:Q,children:c.jsxs(he.div,{initial:re.initial,animate:re.animate,exit:re.exit,transition:{duration:.2},role:"listbox",className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[g&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(Cn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:Y,onChange:ee=>$(ee.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary","aria-label":"Search options"}),Y&&c.jsx("button",{type:"button",onClick:()=>$(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Ft,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[y&&s.length>0&&c.jsx("button",{type:"button",role:"option",onClick:()=>ie(),className:F("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic text-sm"),children:c.jsx("span",{children:"Clear all"})}),te.length>0?te.map(ee=>{const D=s.includes(ee.value),G=ee.disabled||p!==void 0&&s.length>=p&&!D;return c.jsxs("div",{role:"option","aria-selected":D,"aria-disabled":G,onClick:()=>!G&&J(ee.value),className:F("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",G&&"opacity-50 cursor-not-allowed",D&&"bg-border text-foreground font-medium"),children:[c.jsx(ii,{checked:D,disabled:G,onChange:()=>!G&&J(ee.value),onClick:M=>M.stopPropagation(),animate:H,className:"w-5 h-5","aria-label":ee.label}),ee.icon&&c.jsx("span",{className:"shrink-0",children:ee.icon}),c.jsx("span",{children:ee.label})]},ee.value)}):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})}):null}):R&&c.jsx(fn,{open:R,anchorRef:X,placement:Q,children:c.jsxs(he.div,{role:"listbox",className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[g&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(Cn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:Y,onChange:ee=>$(ee.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary","aria-label":"Search options"}),Y&&c.jsx("button",{type:"button",onClick:()=>$(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Ft,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[y&&s.length>0&&c.jsx("button",{type:"button",role:"option",onClick:()=>ie(),className:F("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic text-sm"),children:c.jsx("span",{children:"Clear all"})}),te.length>0?te.map(ee=>{const D=s.includes(ee.value),G=ee.disabled||p!==void 0&&s.length>=p&&!D;return c.jsxs("div",{role:"option","aria-selected":D,"aria-disabled":G,onClick:()=>!G&&J(ee.value),className:F("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",G&&"opacity-50 cursor-not-allowed",D&&"bg-border text-foreground font-medium"),children:[c.jsx(ii,{checked:D,disabled:G,onChange:()=>!G&&J(ee.value),onClick:M=>M.stopPropagation(),animate:H,className:"w-5 h-5","aria-label":ee.label}),ee.icon&&c.jsx("span",{className:"shrink-0",children:ee.icon}),c.jsx("span",{children:ee.label})]},ee.value)}):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})})]}),h&&c.jsx(he.p,{...H?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"text-sm text-error",children:h}),f&&!h&&c.jsx("p",{className:"text-sm text-primary/70",children:f})]})});Eb.displayName="MultiSelect";const Ho=({children:a,content:s,side:l="bottom",offset:o=10,delay:d=120,disabled:h=!1,open:f,defaultOpen:g=!1,onOpenChange:y,className:p,showArrow:b=!0,arrowSize:x=10,arrowClassName:S})=>{const[N,_]=j.useState(!1),[V,H]=j.useState(g),[R,K]=j.useState(l),[Y,$]=j.useState("center"),[Q,W]=j.useState(null),X=j.useRef(null),E=j.useRef(null),te=j.useRef(null),J=f!==void 0,U=J?!!f:V,ie=j.useCallback(se=>{J||H(se),y?.(se)},[J,y]),le=j.useCallback(()=>{te.current!==null&&(window.clearTimeout(te.current),te.current=null)},[]),re=j.useCallback(()=>{h||(le(),te.current=window.setTimeout(()=>{ie(!0)},Math.max(0,d)))},[le,d,h,ie]),ee=j.useCallback(()=>{le(),ie(!1)},[le,ie]),D=j.useCallback(()=>{if(!U||!X.current||!E.current)return;const se=X.current.getBoundingClientRect(),C=E.current.getBoundingClientRect(),B=8,I=window.innerWidth-se.right-B,ae=se.left-B,pe=se.top-B,ve=window.innerHeight-se.bottom-B,me={right:I>=C.width+o,left:ae>=C.width+o,top:pe>=C.height+o,bottom:ve>=C.height+o},Xe={right:I,left:ae,top:pe,bottom:ve};let Te=l;me[Te]||(Te=Object.entries(Xe).sort((Mt,Rt)=>Rt[1]-Mt[1])[0]?.[0]??"bottom");let we=0,Ie=0;if(Te==="right")we=se.right+o,Ie=se.top+se.height/2-C.height/2,$("center");else if(Te==="left")we=se.left-C.width-o,Ie=se.top+se.height/2-C.height/2,$("center");else if(Te==="top"){const ut=se.left,Mt=se.right-C.width,Rt=ut>=B&&ut+C.width<=window.innerWidth-B,In=Mt>=B&&Mt+C.width<=window.innerWidth-B;Rt||!Rt&&!In&&I>=ae?(we=ut,$("start")):(we=Mt,$("end")),Ie=se.top-C.height-o}else{const ut=se.left,Mt=se.right-C.width,Rt=ut>=B&&ut+C.width<=window.innerWidth-B,In=Mt>=B&&Mt+C.width<=window.innerWidth-B;Rt||!Rt&&!In&&I>=ae?(we=ut,$("start")):(we=Mt,$("end")),Ie=se.bottom+o}const et=Math.min(Math.max(we,B),window.innerWidth-C.width-B),mn=Math.min(Math.max(Ie,B),window.innerHeight-C.height-B);K(Te),W({left:et,top:mn})},[U,o,l]);j.useEffect(()=>(_(!0),()=>{_(!1)}),[]),j.useEffect(()=>()=>le(),[le]),j.useEffect(()=>{if(U)return D(),window.addEventListener("resize",D),window.addEventListener("scroll",D,!0),()=>{window.removeEventListener("resize",D),window.removeEventListener("scroll",D,!0)}},[U,D]),j.useEffect(()=>{if(!U)return;const se=window.requestAnimationFrame(D);return()=>window.cancelAnimationFrame(se)},[s,U,D]);const G=j.useMemo(()=>({position:"fixed",zIndex:80,left:Q?.left??-9999,top:Q?.top??-9999,pointerEvents:"none"}),[Q]),M=j.useMemo(()=>({width:x,height:x}),[x]),oe=j.useMemo(()=>R==="right"?"left-0 top-1/2 -translate-x-1/2 -translate-y-1/2 border-l border-b":R==="left"?"right-0 top-1/2 translate-x-1/2 -translate-y-1/2 border-r border-t":R==="top"?Y==="start"?"bottom-0 left-4 translate-y-1/2 border-r border-b":Y==="end"?"bottom-0 right-4 translate-y-1/2 border-r border-b":"bottom-0 left-1/2 -translate-x-1/2 translate-y-1/2 border-r border-b":Y==="start"?"top-0 left-4 -translate-y-1/2 border-l border-t":Y==="end"?"top-0 right-4 -translate-y-1/2 border-l border-t":"top-0 left-1/2 -translate-x-1/2 -translate-y-1/2 border-l border-t",[Y,R]);return c.jsxs(c.Fragment,{children:[c.jsx("span",{ref:X,className:"inline-flex",onMouseEnter:re,onMouseLeave:ee,onFocus:re,onBlur:ee,onKeyDown:se=>{se.key==="Escape"&&ee()},children:a}),N&&U&&!h&&wb.createPortal(c.jsx("div",{style:G,role:"tooltip","aria-hidden":!U,children:c.jsxs("div",{ref:E,className:F("relative w-max whitespace-normal rounded-md border border-border bg-background px-3 py-2 text-sm text-foreground shadow-xl",p),children:[b&&c.jsx("span",{style:M,className:F("absolute rotate-45 bg-background border-border",oe,S)}),s]})}),document.body)]})},xt=({children:a,variant:s="default",padding:l="md",className:o,onClick:d,hover:h=!1,animate:f=!0})=>{const g=f!==!1,y={default:"bg-background border border-border",outlined:"bg-transparent border-2 border-border-dark",elevated:"bg-background border-2 border-border shadow-card"},p={none:"p-0",sm:"p-3",md:"p-4 sm:p-6",lg:"p-6 sm:p-8"},b=d?he.button:he.div;return c.jsx(b,{...g?{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3}}:{},whileHover:g&&(h||d)?{y:-2,boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.1)"}:void 0,whileTap:g&&d?{scale:.98}:void 0,className:F("rounded-lg transition-all duration-200",y[s],p[l],d&&"cursor-pointer w-full text-left",o),onClick:d,children:a})},St=({children:a,className:s})=>c.jsx("div",{className:F("mb-4",s),children:a}),Ct=({children:a,className:s})=>c.jsx("h3",{className:F("text-lg font-semibold text-foreground",s),children:a}),wt=({children:a,className:s})=>c.jsx("p",{className:F("text-sm text-foreground/70 mt-1",s),children:a}),jt=({children:a,className:s})=>c.jsx("div",{className:s,children:a}),RT=({isOpen:a,onClose:s,children:l,title:o,position:d="right",className:h,animate:f=!0})=>{const g=f!==!1;j.useEffect(()=>{const p=b=>{b.key==="Escape"&&s()};return a&&(document.addEventListener("keydown",p),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",p),document.body.style.overflow="unset"}},[a,s]);const y=a?c.jsxs(c.Fragment,{children:[c.jsx(he.div,{...g?{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}}:{},className:"fixed inset-0 z-40 bg-black/50 backdrop-blur-sm",onClick:s}),c.jsxs(he.div,{...g?{initial:{x:d==="left"?"-100%":"100%"},animate:{x:0},exit:{x:d==="left"?"-100%":"100%"},transition:{type:"spring",damping:30,stiffness:300}}:{},className:F("fixed top-0 z-50 h-full w-[400px] sm:w-[480px] bg-background shadow-xl",d==="left"?"left-0 border-r":"right-0 border-l","border-border",h),children:[o&&c.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-border",children:[c.jsx("h2",{className:"text-xl font-semibold text-foreground",children:o}),c.jsx("button",{onClick:s,className:"px-3 py-1.5 rounded-md border border-border text-sm font-medium text-foreground hover:bg-secondary transition-colors","aria-label":"Close drawer",children:"Esc"})]}),c.jsx("div",{className:"overflow-y-auto h-[calc(100%-5rem)] p-6",children:l})]})]}):null;return g?c.jsx(hn,{children:y}):y},zT=({isOpen:a,onClose:s,children:l,title:o,size:d="md",className:h,animate:f=!0})=>{const g=f!==!1,y=j.useRef(null);j.useEffect(()=>{const x=S=>{S.key==="Escape"&&s()};return a&&(document.addEventListener("keydown",x),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",x),document.body.style.overflow="unset"}},[a,s]);const p={sm:"max-w-lg",md:"max-w-2xl",lg:"max-w-4xl",xl:"max-w-6xl",full:"max-w-full mx-4"},b=a?c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:x=>{x.target===x.currentTarget&&s()},children:c.jsxs(he.div,{ref:y,...g?{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2}}:{},className:F("bg-background border border-border rounded-lg shadow-2xl w-full max-h-[90vh] overflow-hidden flex flex-col",p[d],h),children:[o&&c.jsxs("div",{className:"px-6 py-4 border-b border-border flex items-center justify-between",children:[c.jsx("h2",{className:"text-xl font-semibold text-foreground",children:o}),c.jsx("button",{onClick:s,className:"px-3 py-1.5 rounded-md border border-border text-sm font-medium text-foreground hover:bg-secondary transition-colors","aria-label":"Close modal",children:"Esc"})]}),c.jsx("div",{className:"overflow-y-auto flex-1",children:l})]})}):null;return g?c.jsx(hn,{children:b}):b},OT=({children:a,className:s})=>c.jsx("div",{className:F("px-6 py-4",s),children:a}),VT=({children:a,className:s})=>c.jsx("div",{className:F("px-6 py-4 border-t border-border flex items-center justify-end gap-3 bg-background sticky bottom-0",s),children:a}),_T=({isOpen:a,onClose:s,title:l,children:o,showCloseButton:d=!1,className:h,animate:f=!0})=>{const g=f!==!1;j.useEffect(()=>{const p=b=>{b.key==="Escape"&&s()};return a?(document.addEventListener("keydown",p),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",p),document.body.style.overflow="unset"),()=>{document.removeEventListener("keydown",p),document.body.style.overflow="unset"}},[a,s]);const y=a?c.jsxs(c.Fragment,{children:[c.jsx(he.div,{...g?{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}:{},onClick:s,className:"fixed inset-0 bg-black/50 z-40"}),c.jsxs(he.div,{...g?{initial:{y:"100%"},animate:{y:0},exit:{y:"100%"},transition:{type:"spring",damping:30,stiffness:300}}:{},className:F("fixed bottom-0 left-0 right-0 z-50","bg-white rounded-t-3xl shadow-2xl","max-h-[90vh] flex flex-col",h),children:[c.jsx("div",{className:"flex justify-center pt-3 pb-2",children:c.jsx("div",{className:"w-12 h-1.5 bg-border-dark rounded-full"})}),(l||d)&&c.jsxs("div",{className:"flex items-center justify-between px-6 py-4 ",children:[l&&c.jsx("h2",{className:"text-lg font-semibold text-foreground",children:l}),d&&c.jsx("button",{onClick:s,className:"px-3 py-1.5 rounded-md border border-border text-sm font-medium text-foreground hover:bg-secondary transition-colors","aria-label":"Close bottom sheet",children:"Esc"})]}),c.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-4",children:o})]})]}):null;return g?c.jsx(hn,{children:y}):y};function kT({data:a,columns:s,loading:l=!1,onRowClick:o,keyExtractor:d,selectable:h=!1,selectedKeys:f,defaultSelectedKeys:g=[],onSelectionChange:y,className:p,animate:b=!0}){const x=b!==!1,[S,N]=j.useState(null),[_,V]=j.useState("asc"),[H,R]=j.useState(g),K=f!==void 0,Y=K?f:H,$=new Set(Y),Q=U=>{K||R(U);const ie=new Set(U),le=a.filter(re=>ie.has(d(re)));y?.(U,le)},W=U=>{S===U?V(_==="asc"?"desc":"asc"):(N(U),V("asc"))},X=S?[...a].sort((U,ie)=>{const le=U[S],re=ie[S];return le<re?_==="asc"?-1:1:le>re?_==="asc"?1:-1:0}):a,E=a.length>0&&a.every(U=>$.has(d(U))),te=U=>{if(U){Q(a.map(ie=>d(ie)));return}Q([])},J=(U,ie)=>{const le=d(U);if(ie){$.has(le)||Q([...Y,le]);return}Q(Y.filter(re=>re!==le))};return l?c.jsx("div",{className:F("border border-border rounded-lg overflow-hidden",p),children:c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{className:"border-b border-border",children:c.jsxs("tr",{children:[h&&c.jsx("th",{className:"px-4 py-4 text-left w-14",children:c.jsx("div",{className:"flex items-center",onClick:U=>U.stopPropagation(),children:c.jsx(ii,{checked:E,onChange:te,className:"w-5 h-5","aria-label":"Select all rows"})})}),s.map((U,ie)=>c.jsx("th",{className:"px-6 py-4 text-left",children:c.jsx("div",{className:F("h-4 bg-border rounded w-24",x&&"animate-pulse")})},ie))]})}),c.jsx("tbody",{children:[...Array(5)].map((U,ie)=>c.jsxs("tr",{className:"border-b border-border",children:[h&&c.jsx("td",{className:"px-4 py-4 w-14",children:c.jsx("div",{className:F("h-4 bg-secondary rounded",x&&"animate-pulse")})}),s.map((le,re)=>c.jsx("td",{className:"px-6 py-4",children:c.jsx("div",{className:F("h-4 bg-secondary rounded",x&&"animate-pulse")})},re))]},ie))})]})})}):c.jsx(he.div,{...x?{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3}}:{},className:F("border border-border rounded-lg overflow-hidden",p),children:c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{className:"border-b border-border",children:c.jsxs("tr",{children:[h&&c.jsx("th",{className:"px-4 py-4 text-left w-14",children:c.jsx("div",{className:"flex items-center",onClick:U=>U.stopPropagation(),children:c.jsx(ii,{checked:E,onChange:te,className:"w-5 h-5","aria-label":"Select all rows"})})}),s.map((U,ie)=>c.jsx("th",{className:F("px-6 py-4 text-left text-sm font-semibold text-foreground",U.width,U.sortable&&"cursor-pointer transition-colors"),onClick:()=>U.sortable&&W(U.key),children:c.jsxs("div",{className:"flex items-center gap-2",children:[U.header,U.sortable&&c.jsx("span",{className:"text-primary/50 hover:text-primary transition-colors",children:S===U.key?_==="asc"?c.jsx(Zw,{className:"w-4 h-4"}):c.jsx(Kw,{className:"w-4 h-4"}):c.jsx(tj,{className:"w-4 h-4"})})]})},ie))]})}),c.jsx("tbody",{children:X.map((U,ie)=>c.jsxs(he.tr,{...x?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.2,delay:ie*.05}}:{},onClick:()=>o&&o(U),className:F("border-b border-border transition-colors",o&&"cursor-pointer hover:bg-secondary"),children:[h&&c.jsx("td",{className:"px-4 py-4 w-14",onClick:le=>le.stopPropagation(),children:c.jsx("div",{className:"flex items-center",children:c.jsx(ii,{checked:$.has(d(U)),onChange:le=>J(U,le),className:"w-5 h-5","aria-label":`Select row ${ie+1}`})})}),s.map((le,re)=>c.jsx("td",{className:F("px-6 py-4 text-sm text-foreground/70",le.width),style:le.width?{width:le.width}:void 0,title:le.truncate&&!le.render?String(U[le.key]??""):void 0,children:le.truncate&&!le.render?c.jsx("div",{className:"truncate",children:String(U[le.key]??"")}):le.render?le.render(U):String(U[le.key]??"")},re))]},d(U)))})]})})})}const BT=({currentPage:a,totalPages:s,onPageChange:l,totalItems:o,itemsPerPage:d,className:h,animate:f=!0})=>{const g=f!==!1,y=pd.useMemo(()=>{if(s<=5)return Array.from({length:s},(_,V)=>V+1);const x=Math.floor(5/2);let S=Math.max(1,a-x),N=S+5-1;return N>s&&(N=s,S=Math.max(1,N-5+1)),Array.from({length:N-S+1},(_,V)=>S+V)},[a,s]),p=b=>{const x=Math.max(1,Math.min(s,b));x!==a&&l(x)};return c.jsxs(he.div,{...g?{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3}}:{},className:F("flex items-center justify-between gap-4 flex-wrap",h),children:[c.jsx("div",{className:"text-sm text-foreground/70",children:o&&d&&c.jsxs("span",{children:["Showing ",Math.min((a-1)*d+1,o)," to"," ",Math.min(a*d,o)," of ",o," results"]})}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(qe,{variant:"secondary",size:"sm",disabled:a===1,onClick:()=>p(a-1),icon:c.jsx(cd,{className:"w-4 h-4"}),animate:f,children:"Previous"}),!y.includes(1)&&c.jsx(qe,{variant:"secondary",size:"sm",onClick:()=>p(1),icon:c.jsx(fj,{className:"w-4 h-4 text-primary"}),animate:f,"aria-label":"Go to first page"}),c.jsx(he.div,{layout:!0,className:"flex items-center justify-center gap-1 min-w-56",children:c.jsx(hn,{initial:!1,mode:"popLayout",children:y.map(b=>{const x=b===a;return c.jsx(he.button,{layout:!0,whileHover:g?{y:-1}:void 0,whileTap:g?{scale:.96}:void 0,onClick:()=>p(b),className:F("w-10 h-10 rounded-md border text-sm font-medium tabular-nums leading-none inline-flex items-center justify-center transition-all duration-200",x?"bg-primary text-white border-primary shadow-sm":"hover:bg-secondary border-border text-foreground"),"aria-current":x?"page":void 0,children:b},b)})})}),c.jsx(qe,{variant:"secondary",size:"sm",disabled:a===s,onClick:()=>p(a+1),icon:c.jsx(ud,{className:"w-4 h-4"}),animate:f,children:"Next"})]})]})},LT=({icon:a,onClick:s,label:l,actions:o,variant:d="primary",position:h="bottom-right",disabled:f,className:g,animate:y=!0})=>{const p=y!==!1,[b,x]=j.useState(!1),S={"bottom-right":"fixed bottom-6 right-6","bottom-left":"fixed bottom-6 left-6","bottom-center":"fixed bottom-6 left-1/2 -translate-x-1/2"},N={primary:"bg-primary text-white hover:bg-primary/80 shadow-lg",secondary:"bg-background text-primary border-2 border-primary hover:bg-secondary shadow-md"},_={primary:"bg-primary text-white",success:"bg-success text-white",danger:"bg-error text-white",warning:"bg-warning text-white"},V=()=>{o&&o.length>0?x(!b):s&&s()};return c.jsxs("div",{className:F(S[h],"z-50",g),children:[p?c.jsx(hn,{children:b&&o?c.jsx(he.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"absolute bottom-20 right-0 flex flex-col gap-3 mb-2",children:o.map((H,R)=>c.jsxs(he.div,{initial:{opacity:0,y:20,scale:.8},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:20,scale:.8},transition:{delay:R*.05},className:"flex items-center gap-3",children:[c.jsx("span",{className:F("bg-background border border-border rounded-md px-3 py-1.5 text-sm font-medium whitespace-nowrap shadow-lg",H.labelClassName),style:H.labelStyle,children:H.label}),c.jsx(he.button,{whileHover:p?{scale:1.1}:void 0,whileTap:p?{scale:.9}:void 0,onClick:()=>{H.onClick(),x(!1)},className:F("w-12 h-12 rounded-full shadow-lg flex items-center justify-center transition-all",_[H.variant||"primary"]),children:H.icon})]},R))}):null}):b&&o&&c.jsx("div",{className:"absolute bottom-20 right-0 flex flex-col gap-3 mb-2",children:o.map((H,R)=>c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("span",{className:F("bg-background border border-border rounded-md px-3 py-1.5 text-sm font-medium whitespace-nowrap shadow-lg",H.labelClassName),style:H.labelStyle,children:H.label}),c.jsx("button",{onClick:()=>{H.onClick(),x(!1)},className:F("w-12 h-12 rounded-full shadow-lg flex items-center justify-center transition-all",_[H.variant||"primary"]),children:H.icon})]},R))}),c.jsxs(he.button,{whileTap:p?{scale:f?1:.9}:void 0,whileHover:p?{scale:f?1:1.05}:void 0,onClick:V,disabled:f,className:F("z-30 rounded-full p-4 transition-all duration-200","disabled:opacity-50 disabled:cursor-not-allowed","flex items-center gap-2",N[d],l?"px-6":"w-16 h-16 justify-center",b&&"rotate-45"),children:[c.jsx("span",{className:"flex-shrink-0",children:a||(b?c.jsx(Ft,{className:"w-6 h-6"}):c.jsx(dd,{className:"w-6 h-6"}))}),l&&c.jsx("span",{className:"font-medium",children:l})]})]})},UT=({steps:a,currentStep:s,className:l,animate:o=!0})=>{const d=o!==!1,h=a[s];return c.jsxs("div",{className:F("w-full",l),children:[c.jsx("div",{className:"hidden md:block",children:c.jsx("div",{className:"relative flex items-center mb-2",children:a.map((f,g)=>{const y=g<s,p=g===s,b=g>s;return c.jsxs(pd.Fragment,{children:[c.jsxs("div",{className:"flex flex-col items-center relative z-10",children:[c.jsx(he.div,{initial:!1,animate:d?{scale:p?1.05:1}:void 0,className:F("w-12 h-12 rounded-full flex items-center justify-center","font-semibold text-base transition-all duration-300","ring-4 ring-white",(y||p)&&"bg-primary text-white shadow-lg",b&&"bg-border text-muted-foreground"),children:y?c.jsx(ob,{className:"w-6 h-6 stroke-[3]"}):c.jsx("span",{children:g+1})}),c.jsxs("div",{className:"mt-3 text-center max-w-[120px]",children:[c.jsx("span",{className:F("text-sm font-semibold block",p&&"text-primary",y&&"text-primary",b&&"text-primary/50"),children:f.label}),f.description&&c.jsx("p",{className:F("text-xs mt-1 leading-tight",p&&"text-primary",y&&"text-primary/70",b&&"text-primary/50"),children:f.description})]})]}),g<a.length-1&&c.jsx("div",{className:"flex-1 relative",style:{marginTop:"-48px",marginLeft:"4px",marginRight:"4px"},children:c.jsx("div",{className:"h-1.5 bg-border rounded-full overflow-hidden",children:c.jsx(he.div,{initial:!1,style:{width:g<s?"100%":"0%"},animate:d?{width:g<s?"100%":"0%"}:void 0,transition:d?{duration:.4,ease:"easeInOut"}:{duration:0},className:"h-full bg-primary rounded-full"})})})]},g)})})}),c.jsxs("div",{className:"md:hidden",children:[c.jsx("div",{className:"flex items-center justify-center gap-2 mb-3",children:a.map((f,g)=>{const y=g<s,p=g===s;return c.jsx(he.div,{initial:!1,style:{backgroundColor:y||p?"var(--color-primary)":"var(--color-border-dark)"},animate:d?{scale:p?1.2:1}:void 0,className:F("rounded-full transition-all duration-300",p?"w-3 h-3":"w-2 h-2",(y||p)&&"shadow-sm")},g)})}),c.jsx(he.div,{...d?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3}}:{},className:"text-center",children:c.jsx("p",{className:"text-sm font-semibold text-foreground",children:h?.label})},s)]})]})},Wa=({children:a,variant:s="default",size:l="md",className:o,dot:d=!1,animate:h=!0})=>{const f=h!==!1,g={default:"bg-secondary text-primary border border-border",primary:"bg-primary/10 text-primary border border-primary/20",success:"bg-success/10 text-success border border-success/20",warning:"bg-warning/10 text-warning border border-warning/20",danger:"bg-error/10 text-error border border-error/20",info:"bg-info/10 text-info border border-info/20"},y={sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-1 text-sm",lg:"px-3 py-1.5 text-base"},p={default:"bg-primary",primary:"bg-primary",success:"bg-success",warning:"bg-warning",danger:"bg-error",info:"bg-info"};return c.jsxs(he.span,{...f?{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2}}:{},className:F("inline-flex items-center gap-1.5 rounded-lg font-medium",g[s],y[l],o),children:[d&&c.jsx("span",{className:F("w-1.5 h-1.5 rounded-full",p[s])}),a]})},HT={sm:"w-4 h-4 border-2",md:"w-8 h-8 border-2",lg:"w-12 h-12 border-3",xl:"w-16 h-16 border-4"},GT={primary:"border-primary border-t-transparent",secondary:"border-secondary border-t-transparent",white:"border-white border-t-transparent"},Ia=({size:a="md",variant:s="primary",className:l,label:o,animate:d=!0})=>{const h=d!==!1,f=h?he.div:"div";return c.jsxs("div",{className:F("inline-flex flex-col items-center gap-2",l),children:[c.jsx(f,{className:F("rounded-full",HT[a],GT[s]),...h?{animate:{rotate:360},transition:{duration:.8,repeat:1/0,ease:"linear"}}:{},role:"status","aria-label":o||"Loading"}),o&&c.jsx("span",{className:"text-sm text-foreground/70",children:o})]})};Ia.displayName="Spinner";const Db=j.createContext(void 0),YT=()=>{const a=j.useContext(Db);if(!a)throw new Error("useToast must be used within ToastProvider");return a},qT={success:"bg-success text-white border-success",error:"bg-error text-white border-error",warning:"bg-warning text-white border-warning",info:"bg-info text-white border-info",loading:"bg-primary text-white border-primary",default:"bg-background text-foreground border-border"},XT={success:sj,error:aj,warning:Vj,info:rb,loading:ub,default:null},KT={"top-left":"top-4 left-4","top-center":"top-4 left-1/2 -translate-x-1/2","top-right":"top-4 right-4","bottom-left":"bottom-4 left-4","bottom-center":"bottom-4 left-1/2 -translate-x-1/2","bottom-right":"bottom-4 right-4"},Tg=({toast:a,onRemove:s,animate:l=!0})=>{const o=l!==!1,d=a.variant||"default",h=XT[d],f=d==="loading",g=typeof a.message=="string"?a.message:String(a.message),y=o?he.div:"div";return c.jsxs(y,{...o?{layout:!0,initial:{opacity:0,y:-20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,x:100,scale:.95},transition:{duration:.2}}:{},className:F("flex items-start gap-3 p-4 rounded-md border shadow-lg min-w-80 max-w-md",qT[d]),children:[h&&c.jsx(h,{className:F("w-5 h-5 shrink-0 mt-0.5",f&&"animate-spin")}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("p",{className:"text-sm font-medium leading-relaxed",children:g}),a.action&&c.jsx("div",{className:"mt-3 flex justify-end",children:c.jsx("button",{onClick:a.action.onClick,className:"inline-flex h-8 items-center rounded-sm border border-current/30 px-3 text-xs font-semibold transition-colors hover:bg-current/10",children:a.action.label})})]}),c.jsx("button",{onClick:()=>s(a.id),className:"shrink-0 hover:opacity-70 transition-opacity","aria-label":"Close notification",children:c.jsx(Ft,{className:"w-4 h-4"})})]})},Rb=({children:a,position:s="top-right",maxToasts:l=5,animate:o=!0})=>{const d=o!==!1,[h,f]=j.useState([]),g=j.useCallback(p=>{f(b=>b.filter(x=>x.id!==p))},[]),y=j.useCallback(p=>{if(typeof p.message!="string"){console.error("Toast message must be a string, received:",p.message);return}const b=Math.random().toString(36).substring(2,9),x=p.duration??5e3;f(S=>[...S,{...p,id:b}].slice(-l)),x>0&&setTimeout(()=>{g(b)},x)},[l,g]);return c.jsxs(Db.Provider,{value:{toasts:h,addToast:y,removeToast:g},children:[a,c.jsx("div",{className:F("fixed z-100 flex flex-col gap-2",KT[s]),children:d?c.jsx(hn,{mode:"popLayout",children:h.map(p=>c.jsx(Tg,{toast:p,onRemove:g,animate:d},p.id))}):h.map(p=>c.jsx(Tg,{toast:p,onRemove:g,animate:d},p.id))})]})};Rb.displayName="ToastProvider";const QT=({onRecordingComplete:a,label:s="Record Audio",maxDuration:l=300,disabled:o,className:d,animate:h=!0})=>{const f=h!==!1,[g,y]=j.useState(!1),[p,b]=j.useState(!1),[x,S]=j.useState(0),[N,_]=j.useState(null),V=j.useRef(null),H=j.useRef([]),R=j.useRef(null),K=async()=>{try{const E=await navigator.mediaDevices.getUserMedia({audio:!0}),te=new MediaRecorder(E);V.current=te,H.current=[],te.ondataavailable=J=>{J.data.size>0&&H.current.push(J.data)},te.onstop=()=>{const J=new Blob(H.current,{type:"audio/webm"}),U=URL.createObjectURL(J);_(U),a(J),E.getTracks().forEach(ie=>ie.stop())},te.start(),y(!0),S(0),R.current=setInterval(()=>{S(J=>J>=l?(Q(),J):J+1)},1e3)}catch(E){console.error("Error accessing microphone:",E)}},Y=()=>{V.current?.state==="recording"&&(V.current.pause(),b(!0),R.current&&clearInterval(R.current))},$=()=>{V.current?.state==="paused"&&(V.current.resume(),b(!1),R.current=setInterval(()=>{S(E=>Math.min(E+1,l))},1e3))},Q=()=>{V.current&&(V.current.stop(),y(!1),b(!1),R.current&&(clearInterval(R.current),R.current=null))},W=()=>{_(null),S(0)},X=E=>{const te=Math.floor(E/60),J=E%60;return`${te.toString().padStart(2,"0")}:${J.toString().padStart(2,"0")}`};return c.jsxs("div",{className:F("w-full",d),children:[s&&c.jsx("label",{className:"block mb-2 text-sm font-medium text-primary",children:s}),c.jsxs("div",{className:"p-4 md:p-6 bg-background rounded-lg border-2 border-border space-y-4",children:[!N&&c.jsxs("div",{className:"flex flex-col items-center gap-4",children:[c.jsxs("div",{className:"relative",children:[c.jsx(he.button,{type:"button",whileTap:f?{scale:o?1:.95}:void 0,onClick:g?p?$:Y:K,disabled:o,className:F("w-16 h-16 md:w-20 md:h-20 rounded-full flex items-center justify-center","transition-all duration-200","disabled:opacity-50 disabled:cursor-not-allowed",g?F("bg-warning text-white",f&&"animate-pulse"):"bg-primary text-white hover:bg-primary/80"),children:g?p?c.jsx(jj,{className:"w-6 h-6 md:w-8 md:h-8"}):c.jsx(Cj,{className:"w-6 h-6 md:w-8 md:h-8"}):c.jsx(xj,{className:"w-6 h-6 md:w-8 md:h-8"})}),g&&!p&&c.jsx(he.div,{className:"absolute top-0 right-0 w-4 h-4 bg-error rounded-full border-2 border-white",animate:f?{scale:[1,1.2,1]}:void 0,transition:f?{repeat:1/0,duration:1.5}:{duration:0}})]}),c.jsxs("div",{className:"text-center",children:[c.jsx("p",{className:"text-xl md:text-2xl font-mono font-semibold text-foreground",children:X(x)}),c.jsx("p",{className:"text-xs md:text-sm text-primary/70 mt-1",children:g?p?"Paused":"Recording...":"Tap to record"})]}),g&&c.jsxs(he.button,{...f?{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1}}:{},type:"button",onClick:Q,className:"px-4 py-2 text-sm bg-error text-white rounded-full font-medium hover:bg-red-600 flex items-center gap-2",children:[c.jsx(Rj,{className:"w-4 h-4"}),"Stop"]})]}),N&&c.jsxs(he.div,{...f?{initial:{opacity:0},animate:{opacity:1}}:{},className:"space-y-3",children:[c.jsx("audio",{src:N,controls:!0,className:"w-full"}),c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("span",{className:"text-sm text-primary/70",children:["Duration: ",X(x)]}),c.jsxs("button",{type:"button",onClick:W,className:"flex items-center gap-2 px-3 py-1.5 text-sm text-error hover:bg-red-50 rounded-lg transition-colors",children:[c.jsx(fd,{className:"w-4 h-4"}),"Delete"]})]})]})]})]})},ZT=({text:a="Built by StackLoop",showHeart:s=!0,href:l,position:o="fixed",backgroundColor:d="bg-gray-900",textColor:h="text-gray-400",className:f=""})=>{const g=s?c.jsxs(c.Fragment,{children:["Built with ",c.jsx("span",{className:"text-red-500 mx-1",children:"❤️"})," by ",a.replace(/^Built by /,"")]}):a,y=l?c.jsx("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:`${h} hover:text-white transition-colors duration-200 text-sm`,children:g}):c.jsx("span",{className:`${h} text-sm`,children:g});return c.jsx("div",{className:`${o} bottom-0 left-0 right-0 ${d} ${f}`,style:{zIndex:40},children:c.jsx("div",{className:"flex items-center justify-center py-2 px-4",children:y})})},JT='button, a, [role="button"], [data-ripple="true"]';function PT(a){return a.getAttribute("aria-disabled")==="true"?!0:a instanceof HTMLButtonElement?a.disabled:!1}function FT(a){return a.getAttribute("data-ripple")==="false"}function WT(){if(typeof window>"u"||window.__uiRippleInitialized)return;const a=(l,o)=>{o.remove(),l.dataset.ripplePositioned==="true"&&!l.querySelector(".button-ripple")&&(l.style.position="",delete l.dataset.ripplePositioned),l.dataset.rippleOverflow==="true"&&!l.querySelector(".button-ripple")&&(l.style.overflow="",delete l.dataset.rippleOverflow)},s=l=>{const o=l.target;if(!o)return;const d=o.closest(JT);if(!d||PT(d)||FT(d))return;const h=d.getBoundingClientRect(),f=Math.max(h.width,h.height)*2,g=l.clientX-h.left-f/2,y=l.clientY-h.top-f/2,p=document.createElement("span");p.className="button-ripple",p.style.left=`${g}px`,p.style.top=`${y}px`,p.style.width=`${f}px`,p.style.height=`${f}px`,getComputedStyle(d).position==="static"&&(d.dataset.ripplePositioned="true",d.style.position="relative"),getComputedStyle(d).overflow==="visible"&&(d.dataset.rippleOverflow="true",d.style.overflow="hidden"),d.appendChild(p);const b=window.setTimeout(()=>{a(d,p)},700);p.addEventListener("animationend",()=>{window.clearTimeout(b),a(d,p)},{once:!0})};document.addEventListener("pointerdown",s),window.__uiRippleInitialized=!0}function $T(){const{addToast:a}=YT(),[s,l]=j.useState(!1),[o,d]=j.useState(!1),[h,f]=j.useState(!1),[g,y]=j.useState(50),[p,b]=j.useState([20,80]),[x,S]=j.useState(!1),[N,_]=j.useState(!1),[V,H]=j.useState("option1"),[R,K]=j.useState(1),[Y,$]=j.useState(void 0),[Q,W]=j.useState(""),[X,E]=j.useState(""),[te,J]=j.useState([]),[U,ie]=j.useState(""),[le,re]=j.useState(""),[ee,D]=j.useState("12"),[G,M]=j.useState(1),[oe,se]=j.useState(!1),[C,B]=j.useState([]),I=[{label:"Option 1",value:"opt1"},{label:"Option 2",value:"opt2"},{label:"Option 3",value:"opt3"}],ae=[{label:"United States",value:"us",icon:c.jsx(Bo,{className:"w-4 h-4"})},{label:"United Kingdom",value:"uk",icon:c.jsx(Bo,{className:"w-4 h-4"})},{label:"Canada",value:"ca",icon:c.jsx(Bo,{className:"w-4 h-4"})},{label:"Australia",value:"au",icon:c.jsx(Bo,{className:"w-4 h-4"}),disabled:!0}],pe=[{label:"John Doe",value:"john",icon:c.jsx(Is,{className:"w-4 h-4"})},{label:"Jane Smith",value:"jane",icon:c.jsx(Is,{className:"w-4 h-4"})},{label:"Bob Johnson",value:"bob",icon:c.jsx(Is,{className:"w-4 h-4"})},{label:"Alice Williams",value:"alice",icon:c.jsx(Is,{className:"w-4 h-4"})},{label:"Charlie Brown",value:"charlie",icon:c.jsx(Is,{className:"w-4 h-4"})}],ve=[{label:"Option 1",value:"option1"},{label:"Option 2",value:"option2"},{label:"Option 3",value:"option3"}],me=[{id:1,name:"John Doe",email:"john@example.com",role:"Admin"},{id:2,name:"Jane Smith",email:"jane@example.com",role:"User"},{id:3,name:"Bob Johnson",email:"bob@example.com",role:"User"}],Xe=[{key:"name",header:"Name",sortable:!0},{key:"email",header:"Email",sortable:!0},{key:"role",header:"Role",sortable:!1}],Te=[{label:"Account",description:"Create your account"},{label:"Profile",description:"Complete your profile"},{label:"Settings",description:"Configure settings"},{label:"Done",description:"All set!"}];return c.jsxs("div",{className:"min-h-screen bg-secondary p-4 sm:p-8",children:[c.jsxs("div",{className:"max-w-7xl w-full mx-auto space-y-12",children:[c.jsxs(he.header,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"text-center space-y-4",children:[c.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-foreground",children:"UI Components Library"}),c.jsx("p",{className:"text-lg text-primary/70",children:"A consistent, animated component library built with Framer Motion & Lucide Icons"})]}),c.jsxs(xt,{children:[c.jsxs(St,{children:[c.jsx(Ct,{children:"Buttons"}),c.jsx(wt,{children:"Various button variants and sizes"})]}),c.jsx(jt,{children:c.jsxs("div",{className:"flex flex-wrap gap-4",children:[c.jsx(qe,{variant:"primary",size:"lg",icon:c.jsx(dd,{}),children:"Primary Large"}),c.jsx(qe,{variant:"primary",size:"md",icon:c.jsx(Mj,{}),children:"Primary Medium"}),c.jsx(qe,{variant:"secondary",size:"sm",icon:c.jsx(vg,{}),children:"Secondary Small"}),c.jsx(qe,{variant:"ghost",children:"Ghost Button"}),c.jsx(qe,{variant:"danger",icon:c.jsx(fd,{}),children:"Delete"}),c.jsx(qe,{variant:"primary",loading:!0,children:"Loading..."})]})})]}),c.jsxs(xt,{children:[c.jsxs(St,{children:[c.jsx(Ct,{children:"Form Inputs"}),c.jsx(wt,{children:"Input fields with icons and validation"})]}),c.jsx(jt,{children:c.jsxs("div",{className:"space-y-4 w-full",children:[c.jsx(Pn,{label:"Email",type:"email",placeholder:"Enter your email",leftIcon:c.jsx(bj,{className:"w-5 h-5"})}),c.jsx(Pn,{label:"Search",placeholder:"Search...",leftIcon:c.jsx(Cn,{className:"w-5 h-5"})}),c.jsx(Pn,{label:"With Error",error:"This field is required",placeholder:"Error state"}),c.jsx(Pn,{label:"Password",type:"password",placeholder:"Enter password",rightIcon:c.jsx(yj,{className:"w-5 h-5"}),hint:"Must be at least 8 characters"}),c.jsx(Pn,{label:"Phone",type:"phone",value:U,onChange:we=>ie(String(we))}),c.jsx(Pn,{label:"Country",type:"country",value:le,onChange:we=>re(String(we))}),c.jsx(Pn,{label:"Quantity",type:"number",value:ee,onChange:we=>D(String(we)),hint:"Spinner controls are hidden and wheel scrolling is disabled"}),c.jsx(Pn,{label:"Date",type:"date",value:Y,onChange:we=>{we instanceof Date&&$(we)}}),c.jsx(Nb,{label:"Message",placeholder:"Enter your message",rows:4})]})})]}),c.jsxs(xt,{children:[c.jsxs(St,{children:[c.jsx(Ct,{children:"Badges & Spinner"}),c.jsx(wt,{children:"Status indicators and loading states"})]}),c.jsx(jt,{children:c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"text-sm font-medium text-foreground mb-3",children:"Badges"}),c.jsxs("div",{className:"flex flex-wrap gap-3",children:[c.jsx(Wa,{variant:"default",children:"Default"}),c.jsx(Wa,{variant:"primary",children:"Primary"}),c.jsx(Wa,{variant:"success",dot:!0,children:"Success"}),c.jsx(Wa,{variant:"warning",dot:!0,children:"Warning"}),c.jsx(Wa,{variant:"danger",dot:!0,children:"Danger"}),c.jsx(Wa,{variant:"info",children:"Info"}),c.jsx(Wa,{variant:"primary",size:"lg",children:"Large Badge"})]})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-sm font-medium text-foreground mb-3",children:"Spinners"}),c.jsxs("div",{className:"flex flex-wrap items-center gap-8",children:[c.jsx(Ia,{size:"sm"}),c.jsx(Ia,{size:"md"}),c.jsx(Ia,{size:"lg"}),c.jsx(Ia,{size:"xl"}),c.jsx(Ia,{label:"Loading..."})]})]})]})})]}),c.jsxs(xt,{children:[c.jsxs(St,{children:[c.jsx(Ct,{children:"Toast Notifications"}),c.jsx(wt,{children:"Trigger toast notifications with different variants"})]}),c.jsx(jt,{children:c.jsxs("div",{className:"flex flex-wrap gap-3",children:[c.jsx(qe,{variant:"primary",onClick:()=>{a({message:"Successfully saved your changes!",variant:"success",duration:3e3})},children:"Show Success"}),c.jsx(qe,{variant:"secondary",onClick:()=>{a({message:"Failed to connect to server",variant:"error",duration:4e3})},children:"Show Error"}),c.jsx(qe,{variant:"outline",onClick:()=>{a({message:"Your session will expire in 5 minutes",variant:"warning"})},children:"Show Warning"}),c.jsx(qe,{variant:"ghost",onClick:()=>{a({message:"New message received from John",variant:"info",duration:0,action:{label:"View",onClick:()=>alert("Viewing message")}})},children:"Show Info with Action"}),c.jsx(qe,{onClick:()=>{se(!0),a({message:"Processing your request...",variant:"loading",duration:2e3}),setTimeout(()=>{se(!1),a({message:"Request completed successfully!",variant:"success"})},2e3)},disabled:oe,children:oe?c.jsx(Ia,{size:"sm",variant:"white"}):"Simulate Process"})]})})]}),c.jsxs(xt,{children:[c.jsxs(St,{children:[c.jsx(Ct,{children:"Toggle & Checkbox"}),c.jsx(wt,{children:"Interactive switches and checkboxes"})]}),c.jsx(jt,{children:c.jsxs("div",{className:"space-y-6",children:[c.jsx(Ab,{label:"Enable Notifications",description:"Receive email notifications",checked:x,onChange:we=>S(we)}),c.jsx(ii,{label:"I agree to the terms and conditions",checked:N,onChange:we=>_(we)})]})})]}),c.jsx(QT,{onRecordingComplete:we=>console.log(we)}),c.jsxs(xt,{children:[c.jsxs(St,{children:[c.jsx(Ct,{children:"Sliders"}),c.jsx(wt,{children:"Range controls with animations"})]}),c.jsx(jt,{children:c.jsxs("div",{className:"space-y-8",children:[c.jsx(MT,{label:"Volume",value:g,onChange:y,showValue:!0}),c.jsx(ET,{label1:"Price Range",label2:"Units",value1:0,value2:60,onChange:(we,Ie)=>b([we,Ie]),min:0,max:100,unit:"$"})]})})]}),c.jsxs(xt,{children:[c.jsxs(St,{children:[c.jsx(Ct,{children:"Radio Pills"}),c.jsx(wt,{children:"Stylized radio button group"})]}),c.jsx(jt,{children:c.jsx(AT,{name:"demo-radio",options:ve,value:V,onChange:H})})]}),c.jsxs(xt,{children:[c.jsxs(St,{children:[c.jsx(Ct,{children:"Dropdown & Select"}),c.jsx(wt,{children:"Selection controls for forms and general use"})]}),c.jsx(jt,{children:c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[c.jsx(DT,{label:"Dropdown (General)",options:I,value:Q,onChange:W,searchable:!0,placeholder:"Choose an option"}),c.jsx(Mb,{label:"Country",options:ae,value:X,onChange:E,placeholder:"Select your country",hint:"Choose your country of residence",required:!0}),c.jsx(Eb,{label:"Select Staff Members",options:pe,value:te,onChange:J,placeholder:"Choose team members...",hint:"You can select multiple staff members",searchable:!0}),c.jsx(Fd,{})]})})]}),c.jsxs(xt,{children:[c.jsxs(St,{children:[c.jsx(Ct,{children:"Tooltip"}),c.jsx(Ho,{content:"This is a tooltip for the sliders section",side:"top",showArrow:!0,children:c.jsx(wt,{children:"Hover or focus a trigger to show a portal-based tooltip with auto side placement"})})]}),c.jsx(jt,{children:c.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[c.jsx(Ho,{content:"Default placement is bottom. It flips to another side when needed.",children:c.jsx(qe,{variant:"outline",icon:c.jsx(rb,{className:"w-4 h-4"}),children:"Bottom (default)"})}),c.jsx(Ho,{side:"left",offset:14,arrowSize:12,content:"Custom side, offset and arrow size.",children:c.jsx(qe,{variant:"ghost",children:"Left preferred"})}),c.jsx(Ho,{side:"right",content:"Right preferred with auto fallback.",children:c.jsx(qe,{variant:"secondary",children:"Right preferred"})})]})})]}),c.jsxs(xt,{children:[c.jsxs(St,{children:[c.jsx(Ct,{children:"DatePicker"}),c.jsx(wt,{children:"Date selection control"})]}),c.jsx(jt,{children:c.jsx(jb,{label:"Select Date",value:Y,onChange:$})})]}),c.jsxs(xt,{children:[c.jsxs(St,{children:[c.jsx(Ct,{children:"Step Progress"}),c.jsx(wt,{children:"Multi-step flow indicator"})]}),c.jsx(jt,{children:c.jsxs("div",{className:"space-y-6",children:[c.jsx(UT,{steps:Te,currentStep:G}),c.jsxs("div",{className:"flex gap-3",children:[c.jsx(qe,{variant:"secondary",onClick:()=>M(Math.max(1,G-1)),disabled:G===1,children:"Previous"}),c.jsx(qe,{onClick:()=>M(Math.min(Te.length,G+1)),disabled:G===Te.length,children:"Next"})]})]})})]}),c.jsxs(xt,{children:[c.jsxs(St,{children:[c.jsx(Ct,{children:"Data Table"}),c.jsxs(wt,{children:["Sortable data display with optional row selection (",C.length," selected)"]})]}),c.jsx(jt,{children:c.jsx(kT,{data:me,columns:Xe,keyExtractor:we=>we.id.toString(),selectable:!0,selectedKeys:C,onSelectionChange:we=>B(we)})})]}),c.jsxs(xt,{children:[c.jsxs(St,{children:[c.jsx(Ct,{children:"Pagination"}),c.jsx(wt,{children:"Page navigation controls"})]}),c.jsx(jt,{children:c.jsx(BT,{currentPage:R,totalPages:10,onPageChange:K,totalItems:100,itemsPerPage:10})})]}),c.jsxs(xt,{children:[c.jsxs(St,{children:[c.jsx(Ct,{children:"Overlays"}),c.jsx(wt,{children:"Modal, Drawer, and Bottom Sheet components"})]}),c.jsx(jt,{children:c.jsxs("div",{className:"flex flex-wrap gap-4",children:[c.jsx(qe,{onClick:()=>d(!0),children:"Open Modal"}),c.jsx(qe,{onClick:()=>l(!0),children:"Open Drawer"}),c.jsx(qe,{onClick:()=>f(!0),children:"Open Bottom Sheet"})]})})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[c.jsxs(xt,{variant:"elevated",hover:!0,children:[c.jsxs(St,{children:[c.jsx(Ct,{children:"Elevated Card"}),c.jsx(wt,{children:"With shadow effect"})]}),c.jsx(jt,{children:c.jsx("p",{className:"text-primary/70",children:"This card has an elevated appearance with a shadow."})})]}),c.jsxs(xt,{variant:"outlined",hover:!0,children:[c.jsxs(St,{children:[c.jsx(Ct,{children:"Outlined Card"}),c.jsx(wt,{children:"With border"})]}),c.jsx(jt,{children:c.jsx("p",{className:"text-primary/70",children:"This card has an outlined style with a border."})})]}),c.jsxs(xt,{hover:!0,onClick:()=>alert("Card clicked!"),children:[c.jsxs(St,{children:[c.jsx(Ct,{children:"Clickable Card"}),c.jsx(wt,{children:"Interactive"})]}),c.jsx(jt,{children:c.jsx("p",{className:"text-primary/70",children:"This card is clickable!"})})]})]})]}),c.jsx(LT,{actions:[{label:"Create",icon:c.jsx(dd,{className:"w-5 h-5"}),onClick:()=>alert("Create clicked"),variant:"primary",labelClassName:"bg-primary/10 text-primary"},{label:"Edit",icon:c.jsx(vg,{className:"w-5 h-5"}),onClick:()=>alert("Edit clicked"),variant:"success"},{label:"Delete",icon:c.jsx(fd,{className:"w-5 h-5"}),onClick:()=>alert("Delete clicked"),variant:"danger"}]}),c.jsxs(zT,{isOpen:o,onClose:()=>d(!1),title:"Example Modal",children:[c.jsx(OT,{children:c.jsx("p",{className:"text-primary/70",children:"This is a modal dialog with animations and backdrop blur."})}),c.jsxs(VT,{children:[c.jsx(qe,{variant:"secondary",onClick:()=>d(!1),children:"Cancel"}),c.jsx(qe,{onClick:()=>d(!1),children:"Confirm"})]})]}),c.jsx(RT,{isOpen:s,onClose:()=>l(!1),title:"Side Drawer",children:c.jsxs("div",{className:"space-y-4",children:[c.jsx("p",{className:"text-primary/70",children:"This is a drawer that slides in from the side."}),c.jsx(qe,{onClick:()=>l(!1),children:"Close Drawer"})]})}),c.jsx(_T,{isOpen:h,onClose:()=>f(!1),title:"Bottom Sheet",children:c.jsxs("div",{className:"space-y-4",children:[c.jsx("p",{className:"text-primary/70",children:"This is a bottom sheet that slides up from the bottom."}),c.jsx(qe,{onClick:()=>f(!1),children:"Close Sheet"})]})}),c.jsx(ZT,{})]})}function IT(){return c.jsx(Rb,{position:"top-right",maxToasts:5,children:c.jsx($T,{})})}WT();l1.createRoot(document.getElementById("root")).render(c.jsx(j.StrictMode,{children:c.jsx(IT,{})}));