@sashabogi/foundation 0.1.7 → 0.1.9

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.
@@ -0,0 +1,250 @@
1
+ function Ng(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const l=Object.getOwnPropertyDescriptor(r,o);l&&Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function Ad(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Od={exports:{}},Yl={},Md={exports:{}},F={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var mo=Symbol.for("react.element"),Pg=Symbol.for("react.portal"),Rg=Symbol.for("react.fragment"),jg=Symbol.for("react.strict_mode"),_g=Symbol.for("react.profiler"),Tg=Symbol.for("react.provider"),Ag=Symbol.for("react.context"),Og=Symbol.for("react.forward_ref"),Mg=Symbol.for("react.suspense"),Lg=Symbol.for("react.memo"),Dg=Symbol.for("react.lazy"),Fu=Symbol.iterator;function Ig(e){return e===null||typeof e!="object"?null:(e=Fu&&e[Fu]||e["@@iterator"],typeof e=="function"?e:null)}var Ld={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dd=Object.assign,Id={};function hr(e,t,n){this.props=e,this.context=t,this.refs=Id,this.updater=n||Ld}hr.prototype.isReactComponent={};hr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};hr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zd(){}zd.prototype=hr.prototype;function ga(e,t,n){this.props=e,this.context=t,this.refs=Id,this.updater=n||Ld}var va=ga.prototype=new zd;va.constructor=ga;Dd(va,hr.prototype);va.isPureReactComponent=!0;var $u=Array.isArray,Fd=Object.prototype.hasOwnProperty,ya={current:null},$d={key:!0,ref:!0,__self:!0,__source:!0};function Wd(e,t,n){var r,o={},l=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(l=""+t.key),t)Fd.call(t,r)&&!$d.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var a=Array(s),u=0;u<s;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:mo,type:e,key:l,ref:i,props:o,_owner:ya.current}}function zg(e,t){return{$$typeof:mo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function xa(e){return typeof e=="object"&&e!==null&&e.$$typeof===mo}function Fg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Wu=/\/+/g;function ki(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Fg(""+e.key):t.toString(36)}function Ko(e,t,n,r,o){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(l){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case mo:case Pg:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+ki(i,0):r,$u(o)?(n="",e!=null&&(n=e.replace(Wu,"$&/")+"/"),Ko(o,t,n,"",function(u){return u})):o!=null&&(xa(o)&&(o=zg(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Wu,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",$u(e))for(var s=0;s<e.length;s++){l=e[s];var a=r+ki(l,s);i+=Ko(l,t,n,a,o)}else if(a=Ig(e),typeof a=="function")for(e=a.call(e),s=0;!(l=e.next()).done;)l=l.value,a=r+ki(l,s++),i+=Ko(l,t,n,a,o);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function ko(e,t,n){if(e==null)return e;var r=[],o=0;return Ko(e,r,"","",function(l){return t.call(n,l,o++)}),r}function $g(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Pe={current:null},Zo={transition:null},Wg={ReactCurrentDispatcher:Pe,ReactCurrentBatchConfig:Zo,ReactCurrentOwner:ya};function Vd(){throw Error("act(...) is not supported in production builds of React.")}F.Children={map:ko,forEach:function(e,t,n){ko(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ko(e,function(){t++}),t},toArray:function(e){return ko(e,function(t){return t})||[]},only:function(e){if(!xa(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};F.Component=hr;F.Fragment=Rg;F.Profiler=_g;F.PureComponent=ga;F.StrictMode=jg;F.Suspense=Mg;F.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wg;F.act=Vd;F.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Dd({},e.props),o=e.key,l=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,i=ya.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)Fd.call(t,a)&&!$d.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var u=0;u<a;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:mo,type:e.type,key:o,ref:l,props:r,_owner:i}};F.createContext=function(e){return e={$$typeof:Ag,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Tg,_context:e},e.Consumer=e};F.createElement=Wd;F.createFactory=function(e){var t=Wd.bind(null,e);return t.type=e,t};F.createRef=function(){return{current:null}};F.forwardRef=function(e){return{$$typeof:Og,render:e}};F.isValidElement=xa;F.lazy=function(e){return{$$typeof:Dg,_payload:{_status:-1,_result:e},_init:$g}};F.memo=function(e,t){return{$$typeof:Lg,type:e,compare:t===void 0?null:t}};F.startTransition=function(e){var t=Zo.transition;Zo.transition={};try{e()}finally{Zo.transition=t}};F.unstable_act=Vd;F.useCallback=function(e,t){return Pe.current.useCallback(e,t)};F.useContext=function(e){return Pe.current.useContext(e)};F.useDebugValue=function(){};F.useDeferredValue=function(e){return Pe.current.useDeferredValue(e)};F.useEffect=function(e,t){return Pe.current.useEffect(e,t)};F.useId=function(){return Pe.current.useId()};F.useImperativeHandle=function(e,t,n){return Pe.current.useImperativeHandle(e,t,n)};F.useInsertionEffect=function(e,t){return Pe.current.useInsertionEffect(e,t)};F.useLayoutEffect=function(e,t){return Pe.current.useLayoutEffect(e,t)};F.useMemo=function(e,t){return Pe.current.useMemo(e,t)};F.useReducer=function(e,t,n){return Pe.current.useReducer(e,t,n)};F.useRef=function(e){return Pe.current.useRef(e)};F.useState=function(e){return Pe.current.useState(e)};F.useSyncExternalStore=function(e,t,n){return Pe.current.useSyncExternalStore(e,t,n)};F.useTransition=function(){return Pe.current.useTransition()};F.version="18.3.1";Md.exports=F;var f=Md.exports;const Bd=Ad(f),wa=Ng({__proto__:null,default:Bd},[f]);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Vg=f,Bg=Symbol.for("react.element"),Hg=Symbol.for("react.fragment"),Ug=Object.prototype.hasOwnProperty,Gg=Vg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Yg={key:!0,ref:!0,__self:!0,__source:!0};function Hd(e,t,n){var r,o={},l=null,i=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Ug.call(t,r)&&!Yg.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Bg,type:e,key:l,ref:i,props:o,_owner:Gg.current}}Yl.Fragment=Hg;Yl.jsx=Hd;Yl.jsxs=Hd;Od.exports=Yl;var c=Od.exports,cs={},Ud={exports:{}},We={},Gd={exports:{}},Yd={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */(function(e){function t(k,M){var L=k.length;k.push(M);e:for(;0<L;){var H=L-1>>>1,q=k[H];if(0<o(q,M))k[H]=M,k[L]=q,L=H;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var M=k[0],L=k.pop();if(L!==M){k[0]=L;e:for(var H=0,q=k.length,ie=q>>>1;H<ie;){var ee=2*(H+1)-1,at=k[ee],Be=ee+1,X=k[Be];if(0>o(at,L))Be<q&&0>o(X,at)?(k[H]=X,k[Be]=L,H=Be):(k[H]=at,k[ee]=L,H=ee);else if(Be<q&&0>o(X,L))k[H]=X,k[Be]=L,H=Be;else break e}}return M}function o(k,M){var L=k.sortIndex-M.sortIndex;return L!==0?L:k.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var a=[],u=[],d=1,p=null,m=3,y=!1,w=!1,v=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(k){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=k)r(u),M.sortIndex=M.expirationTime,t(a,M);else break;M=n(u)}}function S(k){if(v=!1,x(k),!w)if(n(a)!==null)w=!0,$(C);else{var M=n(u);M!==null&&V(S,M.startTime-k)}}function C(k,M){w=!1,v&&(v=!1,g(P),P=-1),y=!0;var L=m;try{for(x(M),p=n(a);p!==null&&(!(p.expirationTime>M)||k&&!I());){var H=p.callback;if(typeof H=="function"){p.callback=null,m=p.priorityLevel;var q=H(p.expirationTime<=M);M=e.unstable_now(),typeof q=="function"?p.callback=q:p===n(a)&&r(a),x(M)}else r(a);p=n(a)}if(p!==null)var ie=!0;else{var ee=n(u);ee!==null&&V(S,ee.startTime-M),ie=!1}return ie}finally{p=null,m=L,y=!1}}var N=!1,E=null,P=-1,j=5,_=-1;function I(){return!(e.unstable_now()-_<j)}function B(){if(E!==null){var k=e.unstable_now();_=k;var M=!0;try{M=E(!0,k)}finally{M?G():(N=!1,E=null)}}else N=!1}var G;if(typeof h=="function")G=function(){h(B)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,le=Y.port2;Y.port1.onmessage=B,G=function(){le.postMessage(null)}}else G=function(){b(B,0)};function $(k){E=k,N||(N=!0,G())}function V(k,M){P=b(function(){k(e.unstable_now())},M)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_continueExecution=function(){w||y||(w=!0,$(C))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(k){switch(m){case 1:case 2:case 3:var M=3;break;default:M=m}var L=m;m=M;try{return k()}finally{m=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,M){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var L=m;m=k;try{return M()}finally{m=L}},e.unstable_scheduleCallback=function(k,M,L){var H=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?H+L:H):L=H,k){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=L+q,k={id:d++,callback:M,priorityLevel:k,startTime:L,expirationTime:q,sortIndex:-1},L>H?(k.sortIndex=L,t(u,k),n(a)===null&&k===n(u)&&(v?(g(P),P=-1):v=!0,V(S,L-H))):(k.sortIndex=q,t(a,k),w||y||(w=!0,$(C))),k},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(k){var M=m;return function(){var L=m;m=M;try{return k.apply(this,arguments)}finally{m=L}}}})(Yd);Gd.exports=Yd;var Xg=Gd.exports;/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Qg=f,$e=Xg;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Xd=new Set,Yr={};function _n(e,t){or(e,t),or(e+"Capture",t)}function or(e,t){for(Yr[e]=t,e=0;e<t.length;e++)Xd.add(t[e])}var Nt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ds=Object.prototype.hasOwnProperty,Kg=/^[: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]*$/,Vu={},Bu={};function Zg(e){return ds.call(Bu,e)?!0:ds.call(Vu,e)?!1:Kg.test(e)?Bu[e]=!0:(Vu[e]=!0,!1)}function qg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Jg(e,t,n,r){if(t===null||typeof t>"u"||qg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Re(e,t,n,r,o,l,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=i}var we={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){we[e]=new Re(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];we[t]=new Re(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){we[e]=new Re(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){we[e]=new Re(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){we[e]=new Re(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){we[e]=new Re(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){we[e]=new Re(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){we[e]=new Re(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){we[e]=new Re(e,5,!1,e.toLowerCase(),null,!1,!1)});var Sa=/[\-:]([a-z])/g;function ba(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Sa,ba);we[t]=new Re(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Sa,ba);we[t]=new Re(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Sa,ba);we[t]=new Re(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){we[e]=new Re(e,1,!1,e.toLowerCase(),null,!1,!1)});we.xlinkHref=new Re("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){we[e]=new Re(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ca(e,t,n,r){var o=we.hasOwnProperty(t)?we[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Jg(t,n,o,r)&&(n=null),r||o===null?Zg(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ot=Qg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Eo=Symbol.for("react.element"),zn=Symbol.for("react.portal"),Fn=Symbol.for("react.fragment"),ka=Symbol.for("react.strict_mode"),fs=Symbol.for("react.profiler"),Qd=Symbol.for("react.provider"),Kd=Symbol.for("react.context"),Ea=Symbol.for("react.forward_ref"),ps=Symbol.for("react.suspense"),ms=Symbol.for("react.suspense_list"),Na=Symbol.for("react.memo"),It=Symbol.for("react.lazy"),Zd=Symbol.for("react.offscreen"),Hu=Symbol.iterator;function Er(e){return e===null||typeof e!="object"?null:(e=Hu&&e[Hu]||e["@@iterator"],typeof e=="function"?e:null)}var oe=Object.assign,Ei;function Mr(e){if(Ei===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ei=t&&t[1]||""}return`
34
+ `+Ei+e}var Ni=!1;function Pi(e,t){if(!e||Ni)return"";Ni=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
35
+ `),l=r.stack.split(`
36
+ `),i=o.length-1,s=l.length-1;1<=i&&0<=s&&o[i]!==l[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==l[s]){if(i!==1||s!==1)do if(i--,s--,0>s||o[i]!==l[s]){var a=`
37
+ `+o[i].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=i&&0<=s);break}}}finally{Ni=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mr(e):""}function ev(e){switch(e.tag){case 5:return Mr(e.type);case 16:return Mr("Lazy");case 13:return Mr("Suspense");case 19:return Mr("SuspenseList");case 0:case 2:case 15:return e=Pi(e.type,!1),e;case 11:return e=Pi(e.type.render,!1),e;case 1:return e=Pi(e.type,!0),e;default:return""}}function hs(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fn:return"Fragment";case zn:return"Portal";case fs:return"Profiler";case ka:return"StrictMode";case ps:return"Suspense";case ms:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Kd:return(e.displayName||"Context")+".Consumer";case Qd:return(e._context.displayName||"Context")+".Provider";case Ea:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Na:return t=e.displayName||null,t!==null?t:hs(e.type)||"Memo";case It:t=e._payload,e=e._init;try{return hs(e(t))}catch{}}return null}function tv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return hs(t);case 8:return t===ka?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function qt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nv(e){var t=qd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function No(e){e._valueTracker||(e._valueTracker=nv(e))}function Jd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function gs(e,t){var n=t.checked;return oe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Uu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=qt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ef(e,t){t=t.checked,t!=null&&Ca(e,"checked",t,!1)}function vs(e,t){ef(e,t);var n=qt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ys(e,t.type,n):t.hasOwnProperty("defaultValue")&&ys(e,t.type,qt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ys(e,t,n){(t!=="number"||fl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Lr=Array.isArray;function Kn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+qt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function xs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return oe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Yu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(R(92));if(Lr(n)){if(1<n.length)throw Error(R(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:qt(n)}}function tf(e,t){var n=qt(t.value),r=qt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Xu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function nf(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ws(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?nf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Po,rf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Po=Po||document.createElement("div"),Po.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Po.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rv=["Webkit","ms","Moz","O"];Object.keys(zr).forEach(function(e){rv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zr[t]=zr[e]})});function of(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zr.hasOwnProperty(e)&&zr[e]?(""+t).trim():t+"px"}function lf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=of(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var ov=oe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ss(e,t){if(t){if(ov[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function bs(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cs=null;function Pa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ks=null,Zn=null,qn=null;function Qu(e){if(e=vo(e)){if(typeof ks!="function")throw Error(R(280));var t=e.stateNode;t&&(t=ql(t),ks(e.stateNode,e.type,t))}}function sf(e){Zn?qn?qn.push(e):qn=[e]:Zn=e}function af(){if(Zn){var e=Zn,t=qn;if(qn=Zn=null,Qu(e),t)for(e=0;e<t.length;e++)Qu(t[e])}}function uf(e,t){return e(t)}function cf(){}var Ri=!1;function df(e,t,n){if(Ri)return e(t,n);Ri=!0;try{return uf(e,t,n)}finally{Ri=!1,(Zn!==null||qn!==null)&&(cf(),af())}}function Qr(e,t){var n=e.stateNode;if(n===null)return null;var r=ql(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(R(231,t,typeof n));return n}var Es=!1;if(Nt)try{var Nr={};Object.defineProperty(Nr,"passive",{get:function(){Es=!0}}),window.addEventListener("test",Nr,Nr),window.removeEventListener("test",Nr,Nr)}catch{Es=!1}function lv(e,t,n,r,o,l,i,s,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Fr=!1,pl=null,ml=!1,Ns=null,iv={onError:function(e){Fr=!0,pl=e}};function sv(e,t,n,r,o,l,i,s,a){Fr=!1,pl=null,lv.apply(iv,arguments)}function av(e,t,n,r,o,l,i,s,a){if(sv.apply(this,arguments),Fr){if(Fr){var u=pl;Fr=!1,pl=null}else throw Error(R(198));ml||(ml=!0,Ns=u)}}function Tn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ff(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 Ku(e){if(Tn(e)!==e)throw Error(R(188))}function uv(e){var t=e.alternate;if(!t){if(t=Tn(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var l=o.alternate;if(l===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===l.child){for(l=o.child;l;){if(l===n)return Ku(o),e;if(l===r)return Ku(o),t;l=l.sibling}throw Error(R(188))}if(n.return!==r.return)n=o,r=l;else{for(var i=!1,s=o.child;s;){if(s===n){i=!0,n=o,r=l;break}if(s===r){i=!0,r=o,n=l;break}s=s.sibling}if(!i){for(s=l.child;s;){if(s===n){i=!0,n=l,r=o;break}if(s===r){i=!0,r=l,n=o;break}s=s.sibling}if(!i)throw Error(R(189))}}if(n.alternate!==r)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function pf(e){return e=uv(e),e!==null?mf(e):null}function mf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=mf(e);if(t!==null)return t;e=e.sibling}return null}var hf=$e.unstable_scheduleCallback,Zu=$e.unstable_cancelCallback,cv=$e.unstable_shouldYield,dv=$e.unstable_requestPaint,ce=$e.unstable_now,fv=$e.unstable_getCurrentPriorityLevel,Ra=$e.unstable_ImmediatePriority,gf=$e.unstable_UserBlockingPriority,hl=$e.unstable_NormalPriority,pv=$e.unstable_LowPriority,vf=$e.unstable_IdlePriority,Xl=null,mt=null;function mv(e){if(mt&&typeof mt.onCommitFiberRoot=="function")try{mt.onCommitFiberRoot(Xl,e,void 0,(e.current.flags&128)===128)}catch{}}var tt=Math.clz32?Math.clz32:vv,hv=Math.log,gv=Math.LN2;function vv(e){return e>>>=0,e===0?32:31-(hv(e)/gv|0)|0}var Ro=64,jo=4194304;function Dr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function gl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=Dr(s):(l&=i,l!==0&&(r=Dr(l)))}else i=n&~o,i!==0?r=Dr(i):l!==0&&(r=Dr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-tt(t),o=1<<n,r|=e[n],t&=~o;return r}function yv(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function xv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var i=31-tt(l),s=1<<i,a=o[i];a===-1?(!(s&n)||s&r)&&(o[i]=yv(s,t)):a<=t&&(e.expiredLanes|=s),l&=~s}}function Ps(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function yf(){var e=Ro;return Ro<<=1,!(Ro&4194240)&&(Ro=64),e}function ji(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ho(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-tt(t),e[t]=n}function wv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-tt(n),l=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~l}}function ja(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-tt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var U=0;function xf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var wf,_a,Sf,bf,Cf,Rs=!1,_o=[],Bt=null,Ht=null,Ut=null,Kr=new Map,Zr=new Map,Ft=[],Sv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function qu(e,t){switch(e){case"focusin":case"focusout":Bt=null;break;case"dragenter":case"dragleave":Ht=null;break;case"mouseover":case"mouseout":Ut=null;break;case"pointerover":case"pointerout":Kr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zr.delete(t.pointerId)}}function Pr(e,t,n,r,o,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[o]},t!==null&&(t=vo(t),t!==null&&_a(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function bv(e,t,n,r,o){switch(t){case"focusin":return Bt=Pr(Bt,e,t,n,r,o),!0;case"dragenter":return Ht=Pr(Ht,e,t,n,r,o),!0;case"mouseover":return Ut=Pr(Ut,e,t,n,r,o),!0;case"pointerover":var l=o.pointerId;return Kr.set(l,Pr(Kr.get(l)||null,e,t,n,r,o)),!0;case"gotpointercapture":return l=o.pointerId,Zr.set(l,Pr(Zr.get(l)||null,e,t,n,r,o)),!0}return!1}function kf(e){var t=hn(e.target);if(t!==null){var n=Tn(t);if(n!==null){if(t=n.tag,t===13){if(t=ff(n),t!==null){e.blockedOn=t,Cf(e.priority,function(){Sf(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 qo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=js(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Cs=r,n.target.dispatchEvent(r),Cs=null}else return t=vo(n),t!==null&&_a(t),e.blockedOn=n,!1;t.shift()}return!0}function Ju(e,t,n){qo(e)&&n.delete(t)}function Cv(){Rs=!1,Bt!==null&&qo(Bt)&&(Bt=null),Ht!==null&&qo(Ht)&&(Ht=null),Ut!==null&&qo(Ut)&&(Ut=null),Kr.forEach(Ju),Zr.forEach(Ju)}function Rr(e,t){e.blockedOn===t&&(e.blockedOn=null,Rs||(Rs=!0,$e.unstable_scheduleCallback($e.unstable_NormalPriority,Cv)))}function qr(e){function t(o){return Rr(o,e)}if(0<_o.length){Rr(_o[0],e);for(var n=1;n<_o.length;n++){var r=_o[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Bt!==null&&Rr(Bt,e),Ht!==null&&Rr(Ht,e),Ut!==null&&Rr(Ut,e),Kr.forEach(t),Zr.forEach(t),n=0;n<Ft.length;n++)r=Ft[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ft.length&&(n=Ft[0],n.blockedOn===null);)kf(n),n.blockedOn===null&&Ft.shift()}var Jn=Ot.ReactCurrentBatchConfig,vl=!0;function kv(e,t,n,r){var o=U,l=Jn.transition;Jn.transition=null;try{U=1,Ta(e,t,n,r)}finally{U=o,Jn.transition=l}}function Ev(e,t,n,r){var o=U,l=Jn.transition;Jn.transition=null;try{U=4,Ta(e,t,n,r)}finally{U=o,Jn.transition=l}}function Ta(e,t,n,r){if(vl){var o=js(e,t,n,r);if(o===null)Fi(e,t,r,yl,n),qu(e,r);else if(bv(o,e,t,n,r))r.stopPropagation();else if(qu(e,r),t&4&&-1<Sv.indexOf(e)){for(;o!==null;){var l=vo(o);if(l!==null&&wf(l),l=js(e,t,n,r),l===null&&Fi(e,t,r,yl,n),l===o)break;o=l}o!==null&&r.stopPropagation()}else Fi(e,t,r,null,n)}}var yl=null;function js(e,t,n,r){if(yl=null,e=Pa(r),e=hn(e),e!==null)if(t=Tn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ff(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 yl=e,null}function Ef(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(fv()){case Ra:return 1;case gf:return 4;case hl:case pv:return 16;case vf:return 536870912;default:return 16}default:return 16}}var Wt=null,Aa=null,Jo=null;function Nf(){if(Jo)return Jo;var e,t=Aa,n=t.length,r,o="value"in Wt?Wt.value:Wt.textContent,l=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[l-r];r++);return Jo=o.slice(e,1<r?1-r:void 0)}function el(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 To(){return!0}function ec(){return!1}function Ve(e){function t(n,r,o,l,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=l,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(l):l[s]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?To:ec,this.isPropagationStopped=ec,this}return oe(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=To)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=To)},persist:function(){},isPersistent:To}),t}var gr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Oa=Ve(gr),go=oe({},gr,{view:0,detail:0}),Nv=Ve(go),_i,Ti,jr,Ql=oe({},go,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ma,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!==jr&&(jr&&e.type==="mousemove"?(_i=e.screenX-jr.screenX,Ti=e.screenY-jr.screenY):Ti=_i=0,jr=e),_i)},movementY:function(e){return"movementY"in e?e.movementY:Ti}}),tc=Ve(Ql),Pv=oe({},Ql,{dataTransfer:0}),Rv=Ve(Pv),jv=oe({},go,{relatedTarget:0}),Ai=Ve(jv),_v=oe({},gr,{animationName:0,elapsedTime:0,pseudoElement:0}),Tv=Ve(_v),Av=oe({},gr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ov=Ve(Av),Mv=oe({},gr,{data:0}),nc=Ve(Mv),Lv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Dv={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"},Iv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Iv[e])?!!t[e]:!1}function Ma(){return zv}var Fv=oe({},go,{key:function(e){if(e.key){var t=Lv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=el(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Dv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ma,charCode:function(e){return e.type==="keypress"?el(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?el(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$v=Ve(Fv),Wv=oe({},Ql,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rc=Ve(Wv),Vv=oe({},go,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ma}),Bv=Ve(Vv),Hv=oe({},gr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Uv=Ve(Hv),Gv=oe({},Ql,{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=Ve(Gv),Xv=[9,13,27,32],La=Nt&&"CompositionEvent"in window,$r=null;Nt&&"documentMode"in document&&($r=document.documentMode);var Qv=Nt&&"TextEvent"in window&&!$r,Pf=Nt&&(!La||$r&&8<$r&&11>=$r),oc=" ",lc=!1;function Rf(e,t){switch(e){case"keyup":return Xv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $n=!1;function Kv(e,t){switch(e){case"compositionend":return jf(t);case"keypress":return t.which!==32?null:(lc=!0,oc);case"textInput":return e=t.data,e===oc&&lc?null:e;default:return null}}function Zv(e,t){if($n)return e==="compositionend"||!La&&Rf(e,t)?(e=Nf(),Jo=Aa=Wt=null,$n=!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 Pf&&t.locale!=="ko"?null:t.data;default:return null}}var qv={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 ic(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qv[e.type]:t==="textarea"}function _f(e,t,n,r){sf(r),t=xl(t,"onChange"),0<t.length&&(n=new Oa("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wr=null,Jr=null;function Jv(e){Wf(e,0)}function Kl(e){var t=Bn(e);if(Jd(t))return e}function ey(e,t){if(e==="change")return t}var Tf=!1;if(Nt){var Oi;if(Nt){var Mi="oninput"in document;if(!Mi){var sc=document.createElement("div");sc.setAttribute("oninput","return;"),Mi=typeof sc.oninput=="function"}Oi=Mi}else Oi=!1;Tf=Oi&&(!document.documentMode||9<document.documentMode)}function ac(){Wr&&(Wr.detachEvent("onpropertychange",Af),Jr=Wr=null)}function Af(e){if(e.propertyName==="value"&&Kl(Jr)){var t=[];_f(t,Jr,e,Pa(e)),df(Jv,t)}}function ty(e,t,n){e==="focusin"?(ac(),Wr=t,Jr=n,Wr.attachEvent("onpropertychange",Af)):e==="focusout"&&ac()}function ny(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Kl(Jr)}function ry(e,t){if(e==="click")return Kl(t)}function oy(e,t){if(e==="input"||e==="change")return Kl(t)}function ly(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rt=typeof Object.is=="function"?Object.is:ly;function eo(e,t){if(rt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!ds.call(t,o)||!rt(e[o],t[o]))return!1}return!0}function uc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cc(e,t){var n=uc(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=uc(n)}}function Of(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Of(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mf(){for(var e=window,t=fl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fl(e.document)}return t}function Da(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function iy(e){var t=Mf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Of(n.ownerDocument.documentElement,n)){if(r!==null&&Da(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=cc(n,l);var i=cc(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var sy=Nt&&"documentMode"in document&&11>=document.documentMode,Wn=null,_s=null,Vr=null,Ts=!1;function dc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ts||Wn==null||Wn!==fl(r)||(r=Wn,"selectionStart"in r&&Da(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vr&&eo(Vr,r)||(Vr=r,r=xl(_s,"onSelect"),0<r.length&&(t=new Oa("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Wn)))}function Ao(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vn={animationend:Ao("Animation","AnimationEnd"),animationiteration:Ao("Animation","AnimationIteration"),animationstart:Ao("Animation","AnimationStart"),transitionend:Ao("Transition","TransitionEnd")},Li={},Lf={};Nt&&(Lf=document.createElement("div").style,"AnimationEvent"in window||(delete Vn.animationend.animation,delete Vn.animationiteration.animation,delete Vn.animationstart.animation),"TransitionEvent"in window||delete Vn.transitionend.transition);function Zl(e){if(Li[e])return Li[e];if(!Vn[e])return e;var t=Vn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Lf)return Li[e]=t[n];return e}var Df=Zl("animationend"),If=Zl("animationiteration"),zf=Zl("animationstart"),Ff=Zl("transitionend"),$f=new Map,fc="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function on(e,t){$f.set(e,t),_n(t,[e])}for(var Di=0;Di<fc.length;Di++){var Ii=fc[Di],ay=Ii.toLowerCase(),uy=Ii[0].toUpperCase()+Ii.slice(1);on(ay,"on"+uy)}on(Df,"onAnimationEnd");on(If,"onAnimationIteration");on(zf,"onAnimationStart");on("dblclick","onDoubleClick");on("focusin","onFocus");on("focusout","onBlur");on(Ff,"onTransitionEnd");or("onMouseEnter",["mouseout","mouseover"]);or("onMouseLeave",["mouseout","mouseover"]);or("onPointerEnter",["pointerout","pointerover"]);or("onPointerLeave",["pointerout","pointerover"]);_n("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));_n("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));_n("onBeforeInput",["compositionend","keypress","textInput","paste"]);_n("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));_n("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));_n("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="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(" "),cy=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function pc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,av(r,t,void 0,e),e.currentTarget=null}function Wf(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==l&&o.isPropagationStopped())break e;pc(o,s,u),l=a}else for(i=0;i<r.length;i++){if(s=r[i],a=s.instance,u=s.currentTarget,s=s.listener,a!==l&&o.isPropagationStopped())break e;pc(o,s,u),l=a}}}if(ml)throw e=Ns,ml=!1,Ns=null,e}function K(e,t){var n=t[Ds];n===void 0&&(n=t[Ds]=new Set);var r=e+"__bubble";n.has(r)||(Vf(t,e,2,!1),n.add(r))}function zi(e,t,n){var r=0;t&&(r|=4),Vf(n,e,r,t)}var Oo="_reactListening"+Math.random().toString(36).slice(2);function to(e){if(!e[Oo]){e[Oo]=!0,Xd.forEach(function(n){n!=="selectionchange"&&(cy.has(n)||zi(n,!1,e),zi(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Oo]||(t[Oo]=!0,zi("selectionchange",!1,t))}}function Vf(e,t,n,r){switch(Ef(t)){case 1:var o=kv;break;case 4:o=Ev;break;default:o=Ta}n=o.bind(null,t,n,e),o=void 0,!Es||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Fi(e,t,n,r,o){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var a=i.tag;if((a===3||a===4)&&(a=i.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;i=i.return}for(;s!==null;){if(i=hn(s),i===null)return;if(a=i.tag,a===5||a===6){r=l=i;continue e}s=s.parentNode}}r=r.return}df(function(){var u=l,d=Pa(n),p=[];e:{var m=$f.get(e);if(m!==void 0){var y=Oa,w=e;switch(e){case"keypress":if(el(n)===0)break e;case"keydown":case"keyup":y=$v;break;case"focusin":w="focus",y=Ai;break;case"focusout":w="blur",y=Ai;break;case"beforeblur":case"afterblur":y=Ai;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":y=tc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=Rv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Bv;break;case Df:case If:case zf:y=Tv;break;case Ff:y=Uv;break;case"scroll":y=Nv;break;case"wheel":y=Yv;break;case"copy":case"cut":case"paste":y=Ov;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=rc}var v=(t&4)!==0,b=!v&&e==="scroll",g=v?m!==null?m+"Capture":null:m;v=[];for(var h=u,x;h!==null;){x=h;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,g!==null&&(S=Qr(h,g),S!=null&&v.push(no(h,S,x)))),b)break;h=h.return}0<v.length&&(m=new y(m,w,null,n,d),p.push({event:m,listeners:v}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",m&&n!==Cs&&(w=n.relatedTarget||n.fromElement)&&(hn(w)||w[Pt]))break e;if((y||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,y?(w=n.relatedTarget||n.toElement,y=u,w=w?hn(w):null,w!==null&&(b=Tn(w),w!==b||w.tag!==5&&w.tag!==6)&&(w=null)):(y=null,w=u),y!==w)){if(v=tc,S="onMouseLeave",g="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(v=rc,S="onPointerLeave",g="onPointerEnter",h="pointer"),b=y==null?m:Bn(y),x=w==null?m:Bn(w),m=new v(S,h+"leave",y,n,d),m.target=b,m.relatedTarget=x,S=null,hn(d)===u&&(v=new v(g,h+"enter",w,n,d),v.target=x,v.relatedTarget=b,S=v),b=S,y&&w)t:{for(v=y,g=w,h=0,x=v;x;x=On(x))h++;for(x=0,S=g;S;S=On(S))x++;for(;0<h-x;)v=On(v),h--;for(;0<x-h;)g=On(g),x--;for(;h--;){if(v===g||g!==null&&v===g.alternate)break t;v=On(v),g=On(g)}v=null}else v=null;y!==null&&mc(p,m,y,v,!1),w!==null&&b!==null&&mc(p,b,w,v,!0)}}e:{if(m=u?Bn(u):window,y=m.nodeName&&m.nodeName.toLowerCase(),y==="select"||y==="input"&&m.type==="file")var C=ey;else if(ic(m))if(Tf)C=oy;else{C=ny;var N=ty}else(y=m.nodeName)&&y.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(C=ry);if(C&&(C=C(e,u))){_f(p,C,n,d);break e}N&&N(e,m,u),e==="focusout"&&(N=m._wrapperState)&&N.controlled&&m.type==="number"&&ys(m,"number",m.value)}switch(N=u?Bn(u):window,e){case"focusin":(ic(N)||N.contentEditable==="true")&&(Wn=N,_s=u,Vr=null);break;case"focusout":Vr=_s=Wn=null;break;case"mousedown":Ts=!0;break;case"contextmenu":case"mouseup":case"dragend":Ts=!1,dc(p,n,d);break;case"selectionchange":if(sy)break;case"keydown":case"keyup":dc(p,n,d)}var E;if(La)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else $n?Rf(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(Pf&&n.locale!=="ko"&&($n||P!=="onCompositionStart"?P==="onCompositionEnd"&&$n&&(E=Nf()):(Wt=d,Aa="value"in Wt?Wt.value:Wt.textContent,$n=!0)),N=xl(u,P),0<N.length&&(P=new nc(P,e,null,n,d),p.push({event:P,listeners:N}),E?P.data=E:(E=jf(n),E!==null&&(P.data=E)))),(E=Qv?Kv(e,n):Zv(e,n))&&(u=xl(u,"onBeforeInput"),0<u.length&&(d=new nc("onBeforeInput","beforeinput",null,n,d),p.push({event:d,listeners:u}),d.data=E))}Wf(p,t)})}function no(e,t,n){return{instance:e,listener:t,currentTarget:n}}function xl(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,l=o.stateNode;o.tag===5&&l!==null&&(o=l,l=Qr(e,n),l!=null&&r.unshift(no(e,l,o)),l=Qr(e,t),l!=null&&r.push(no(e,l,o))),e=e.return}return r}function On(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function mc(e,t,n,r,o){for(var l=t._reactName,i=[];n!==null&&n!==r;){var s=n,a=s.alternate,u=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&u!==null&&(s=u,o?(a=Qr(n,l),a!=null&&i.unshift(no(n,a,s))):o||(a=Qr(n,l),a!=null&&i.push(no(n,a,s)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var dy=/\r\n?/g,fy=/\u0000|\uFFFD/g;function hc(e){return(typeof e=="string"?e:""+e).replace(dy,`
38
+ `).replace(fy,"")}function Mo(e,t,n){if(t=hc(t),hc(e)!==t&&n)throw Error(R(425))}function wl(){}var As=null,Os=null;function Ms(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ls=typeof setTimeout=="function"?setTimeout:void 0,py=typeof clearTimeout=="function"?clearTimeout:void 0,gc=typeof Promise=="function"?Promise:void 0,my=typeof queueMicrotask=="function"?queueMicrotask:typeof gc<"u"?function(e){return gc.resolve(null).then(e).catch(hy)}:Ls;function hy(e){setTimeout(function(){throw e})}function $i(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),qr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);qr(t)}function Gt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function vc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vr=Math.random().toString(36).slice(2),dt="__reactFiber$"+vr,ro="__reactProps$"+vr,Pt="__reactContainer$"+vr,Ds="__reactEvents$"+vr,gy="__reactListeners$"+vr,vy="__reactHandles$"+vr;function hn(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Pt]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vc(e);e!==null;){if(n=e[dt])return n;e=vc(e)}return t}e=n,n=e.parentNode}return null}function vo(e){return e=e[dt]||e[Pt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Bn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function ql(e){return e[ro]||null}var Is=[],Hn=-1;function ln(e){return{current:e}}function Z(e){0>Hn||(e.current=Is[Hn],Is[Hn]=null,Hn--)}function Q(e,t){Hn++,Is[Hn]=e.current,e.current=t}var Jt={},ke=ln(Jt),Te=ln(!1),wn=Jt;function lr(e,t){var n=e.type.contextTypes;if(!n)return Jt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ae(e){return e=e.childContextTypes,e!=null}function Sl(){Z(Te),Z(ke)}function yc(e,t,n){if(ke.current!==Jt)throw Error(R(168));Q(ke,t),Q(Te,n)}function Bf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,tv(e)||"Unknown",o));return oe({},n,r)}function bl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Jt,wn=ke.current,Q(ke,e),Q(Te,Te.current),!0}function xc(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Bf(e,t,wn),r.__reactInternalMemoizedMergedChildContext=e,Z(Te),Z(ke),Q(ke,e)):Z(Te),Q(Te,n)}var bt=null,Jl=!1,Wi=!1;function Hf(e){bt===null?bt=[e]:bt.push(e)}function yy(e){Jl=!0,Hf(e)}function sn(){if(!Wi&&bt!==null){Wi=!0;var e=0,t=U;try{var n=bt;for(U=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}bt=null,Jl=!1}catch(o){throw bt!==null&&(bt=bt.slice(e+1)),hf(Ra,sn),o}finally{U=t,Wi=!1}}return null}var Un=[],Gn=0,Cl=null,kl=0,He=[],Ue=0,Sn=null,Ct=1,kt="";function pn(e,t){Un[Gn++]=kl,Un[Gn++]=Cl,Cl=e,kl=t}function Uf(e,t,n){He[Ue++]=Ct,He[Ue++]=kt,He[Ue++]=Sn,Sn=e;var r=Ct;e=kt;var o=32-tt(r)-1;r&=~(1<<o),n+=1;var l=32-tt(t)+o;if(30<l){var i=o-o%5;l=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Ct=1<<32-tt(t)+o|n<<o|r,kt=l+e}else Ct=1<<l|n<<o|r,kt=e}function Ia(e){e.return!==null&&(pn(e,1),Uf(e,1,0))}function za(e){for(;e===Cl;)Cl=Un[--Gn],Un[Gn]=null,kl=Un[--Gn],Un[Gn]=null;for(;e===Sn;)Sn=He[--Ue],He[Ue]=null,kt=He[--Ue],He[Ue]=null,Ct=He[--Ue],He[Ue]=null}var ze=null,Ie=null,J=!1,et=null;function Gf(e,t){var n=Ge(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function wc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ze=e,Ie=Gt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ze=e,Ie=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Sn!==null?{id:Ct,overflow:kt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ge(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ze=e,Ie=null,!0):!1;default:return!1}}function zs(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Fs(e){if(J){var t=Ie;if(t){var n=t;if(!wc(e,t)){if(zs(e))throw Error(R(418));t=Gt(n.nextSibling);var r=ze;t&&wc(e,t)?Gf(r,n):(e.flags=e.flags&-4097|2,J=!1,ze=e)}}else{if(zs(e))throw Error(R(418));e.flags=e.flags&-4097|2,J=!1,ze=e}}}function Sc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ze=e}function Lo(e){if(e!==ze)return!1;if(!J)return Sc(e),J=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ms(e.type,e.memoizedProps)),t&&(t=Ie)){if(zs(e))throw Yf(),Error(R(418));for(;t;)Gf(e,t),t=Gt(t.nextSibling)}if(Sc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ie=Gt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ie=null}}else Ie=ze?Gt(e.stateNode.nextSibling):null;return!0}function Yf(){for(var e=Ie;e;)e=Gt(e.nextSibling)}function ir(){Ie=ze=null,J=!1}function Fa(e){et===null?et=[e]:et.push(e)}var xy=Ot.ReactCurrentBatchConfig;function _r(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(R(309));var r=n.stateNode}if(!r)throw Error(R(147,e));var o=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(i){var s=o.refs;i===null?delete s[l]:s[l]=i},t._stringRef=l,t)}if(typeof e!="string")throw Error(R(284));if(!n._owner)throw Error(R(290,e))}return e}function Do(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bc(e){var t=e._init;return t(e._payload)}function Xf(e){function t(g,h){if(e){var x=g.deletions;x===null?(g.deletions=[h],g.flags|=16):x.push(h)}}function n(g,h){if(!e)return null;for(;h!==null;)t(g,h),h=h.sibling;return null}function r(g,h){for(g=new Map;h!==null;)h.key!==null?g.set(h.key,h):g.set(h.index,h),h=h.sibling;return g}function o(g,h){return g=Kt(g,h),g.index=0,g.sibling=null,g}function l(g,h,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<h?(g.flags|=2,h):x):(g.flags|=2,h)):(g.flags|=1048576,h)}function i(g){return e&&g.alternate===null&&(g.flags|=2),g}function s(g,h,x,S){return h===null||h.tag!==6?(h=Xi(x,g.mode,S),h.return=g,h):(h=o(h,x),h.return=g,h)}function a(g,h,x,S){var C=x.type;return C===Fn?d(g,h,x.props.children,S,x.key):h!==null&&(h.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===It&&bc(C)===h.type)?(S=o(h,x.props),S.ref=_r(g,h,x),S.return=g,S):(S=sl(x.type,x.key,x.props,null,g.mode,S),S.ref=_r(g,h,x),S.return=g,S)}function u(g,h,x,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==x.containerInfo||h.stateNode.implementation!==x.implementation?(h=Qi(x,g.mode,S),h.return=g,h):(h=o(h,x.children||[]),h.return=g,h)}function d(g,h,x,S,C){return h===null||h.tag!==7?(h=xn(x,g.mode,S,C),h.return=g,h):(h=o(h,x),h.return=g,h)}function p(g,h,x){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Xi(""+h,g.mode,x),h.return=g,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Eo:return x=sl(h.type,h.key,h.props,null,g.mode,x),x.ref=_r(g,null,h),x.return=g,x;case zn:return h=Qi(h,g.mode,x),h.return=g,h;case It:var S=h._init;return p(g,S(h._payload),x)}if(Lr(h)||Er(h))return h=xn(h,g.mode,x,null),h.return=g,h;Do(g,h)}return null}function m(g,h,x,S){var C=h!==null?h.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return C!==null?null:s(g,h,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Eo:return x.key===C?a(g,h,x,S):null;case zn:return x.key===C?u(g,h,x,S):null;case It:return C=x._init,m(g,h,C(x._payload),S)}if(Lr(x)||Er(x))return C!==null?null:d(g,h,x,S,null);Do(g,x)}return null}function y(g,h,x,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(x)||null,s(h,g,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Eo:return g=g.get(S.key===null?x:S.key)||null,a(h,g,S,C);case zn:return g=g.get(S.key===null?x:S.key)||null,u(h,g,S,C);case It:var N=S._init;return y(g,h,x,N(S._payload),C)}if(Lr(S)||Er(S))return g=g.get(x)||null,d(h,g,S,C,null);Do(h,S)}return null}function w(g,h,x,S){for(var C=null,N=null,E=h,P=h=0,j=null;E!==null&&P<x.length;P++){E.index>P?(j=E,E=null):j=E.sibling;var _=m(g,E,x[P],S);if(_===null){E===null&&(E=j);break}e&&E&&_.alternate===null&&t(g,E),h=l(_,h,P),N===null?C=_:N.sibling=_,N=_,E=j}if(P===x.length)return n(g,E),J&&pn(g,P),C;if(E===null){for(;P<x.length;P++)E=p(g,x[P],S),E!==null&&(h=l(E,h,P),N===null?C=E:N.sibling=E,N=E);return J&&pn(g,P),C}for(E=r(g,E);P<x.length;P++)j=y(E,g,P,x[P],S),j!==null&&(e&&j.alternate!==null&&E.delete(j.key===null?P:j.key),h=l(j,h,P),N===null?C=j:N.sibling=j,N=j);return e&&E.forEach(function(I){return t(g,I)}),J&&pn(g,P),C}function v(g,h,x,S){var C=Er(x);if(typeof C!="function")throw Error(R(150));if(x=C.call(x),x==null)throw Error(R(151));for(var N=C=null,E=h,P=h=0,j=null,_=x.next();E!==null&&!_.done;P++,_=x.next()){E.index>P?(j=E,E=null):j=E.sibling;var I=m(g,E,_.value,S);if(I===null){E===null&&(E=j);break}e&&E&&I.alternate===null&&t(g,E),h=l(I,h,P),N===null?C=I:N.sibling=I,N=I,E=j}if(_.done)return n(g,E),J&&pn(g,P),C;if(E===null){for(;!_.done;P++,_=x.next())_=p(g,_.value,S),_!==null&&(h=l(_,h,P),N===null?C=_:N.sibling=_,N=_);return J&&pn(g,P),C}for(E=r(g,E);!_.done;P++,_=x.next())_=y(E,g,P,_.value,S),_!==null&&(e&&_.alternate!==null&&E.delete(_.key===null?P:_.key),h=l(_,h,P),N===null?C=_:N.sibling=_,N=_);return e&&E.forEach(function(B){return t(g,B)}),J&&pn(g,P),C}function b(g,h,x,S){if(typeof x=="object"&&x!==null&&x.type===Fn&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Eo:e:{for(var C=x.key,N=h;N!==null;){if(N.key===C){if(C=x.type,C===Fn){if(N.tag===7){n(g,N.sibling),h=o(N,x.props.children),h.return=g,g=h;break e}}else if(N.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===It&&bc(C)===N.type){n(g,N.sibling),h=o(N,x.props),h.ref=_r(g,N,x),h.return=g,g=h;break e}n(g,N);break}else t(g,N);N=N.sibling}x.type===Fn?(h=xn(x.props.children,g.mode,S,x.key),h.return=g,g=h):(S=sl(x.type,x.key,x.props,null,g.mode,S),S.ref=_r(g,h,x),S.return=g,g=S)}return i(g);case zn:e:{for(N=x.key;h!==null;){if(h.key===N)if(h.tag===4&&h.stateNode.containerInfo===x.containerInfo&&h.stateNode.implementation===x.implementation){n(g,h.sibling),h=o(h,x.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=Qi(x,g.mode,S),h.return=g,g=h}return i(g);case It:return N=x._init,b(g,h,N(x._payload),S)}if(Lr(x))return w(g,h,x,S);if(Er(x))return v(g,h,x,S);Do(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,h!==null&&h.tag===6?(n(g,h.sibling),h=o(h,x),h.return=g,g=h):(n(g,h),h=Xi(x,g.mode,S),h.return=g,g=h),i(g)):n(g,h)}return b}var sr=Xf(!0),Qf=Xf(!1),El=ln(null),Nl=null,Yn=null,$a=null;function Wa(){$a=Yn=Nl=null}function Va(e){var t=El.current;Z(El),e._currentValue=t}function $s(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function er(e,t){Nl=e,$a=Yn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(_e=!0),e.firstContext=null)}function Xe(e){var t=e._currentValue;if($a!==e)if(e={context:e,memoizedValue:t,next:null},Yn===null){if(Nl===null)throw Error(R(308));Yn=e,Nl.dependencies={lanes:0,firstContext:e}}else Yn=Yn.next=e;return t}var gn=null;function Ba(e){gn===null?gn=[e]:gn.push(e)}function Kf(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ba(t)):(n.next=o.next,o.next=n),t.interleaved=n,Rt(e,r)}function Rt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var zt=!1;function Ha(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Et(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Rt(e,n)}return o=r.interleaved,o===null?(t.next=t,Ba(r)):(t.next=o.next,o.next=t),r.interleaved=t,Rt(e,n)}function tl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ja(e,n)}}function Cc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?o=l=i:l=l.next=i,n=n.next}while(n!==null);l===null?o=l=t:l=l.next=t}else o=l=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Pl(e,t,n,r){var o=e.updateQueue;zt=!1;var l=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var a=s,u=a.next;a.next=null,i===null?l=u:i.next=u,i=a;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==i&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=a))}if(l!==null){var p=o.baseState;i=0,d=u=a=null,s=l;do{var m=s.lane,y=s.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var w=e,v=s;switch(m=t,y=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){p=w.call(y,p,m);break e}p=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,m=typeof w=="function"?w.call(y,p,m):w,m==null)break e;p=oe({},p,m);break e;case 2:zt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[s]:m.push(s))}else y={eventTime:y,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=y,a=p):d=d.next=y,i|=m;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;m=s,s=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(a=p),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else l===null&&(o.shared.lanes=0);Cn|=i,e.lanes=i,e.memoizedState=p}}function kc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(R(191,o));o.call(r)}}}var yo={},ht=ln(yo),oo=ln(yo),lo=ln(yo);function vn(e){if(e===yo)throw Error(R(174));return e}function Ua(e,t){switch(Q(lo,t),Q(oo,e),Q(ht,yo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ws(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ws(t,e)}Z(ht),Q(ht,t)}function ar(){Z(ht),Z(oo),Z(lo)}function qf(e){vn(lo.current);var t=vn(ht.current),n=ws(t,e.type);t!==n&&(Q(oo,e),Q(ht,n))}function Ga(e){oo.current===e&&(Z(ht),Z(oo))}var te=ln(0);function Rl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Vi=[];function Ya(){for(var e=0;e<Vi.length;e++)Vi[e]._workInProgressVersionPrimary=null;Vi.length=0}var nl=Ot.ReactCurrentDispatcher,Bi=Ot.ReactCurrentBatchConfig,bn=0,re=null,pe=null,ge=null,jl=!1,Br=!1,io=0,wy=0;function Se(){throw Error(R(321))}function Xa(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!rt(e[n],t[n]))return!1;return!0}function Qa(e,t,n,r,o,l){if(bn=l,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,nl.current=e===null||e.memoizedState===null?ky:Ey,e=n(r,o),Br){l=0;do{if(Br=!1,io=0,25<=l)throw Error(R(301));l+=1,ge=pe=null,t.updateQueue=null,nl.current=Ny,e=n(r,o)}while(Br)}if(nl.current=_l,t=pe!==null&&pe.next!==null,bn=0,ge=pe=re=null,jl=!1,t)throw Error(R(300));return e}function Ka(){var e=io!==0;return io=0,e}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ge===null?re.memoizedState=ge=e:ge=ge.next=e,ge}function Qe(){if(pe===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=pe.next;var t=ge===null?re.memoizedState:ge.next;if(t!==null)ge=t,pe=e;else{if(e===null)throw Error(R(310));pe=e,e={memoizedState:pe.memoizedState,baseState:pe.baseState,baseQueue:pe.baseQueue,queue:pe.queue,next:null},ge===null?re.memoizedState=ge=e:ge=ge.next=e}return ge}function so(e,t){return typeof t=="function"?t(e):t}function Hi(e){var t=Qe(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=pe,o=r.baseQueue,l=n.pending;if(l!==null){if(o!==null){var i=o.next;o.next=l.next,l.next=i}r.baseQueue=o=l,n.pending=null}if(o!==null){l=o.next,r=r.baseState;var s=i=null,a=null,u=l;do{var d=u.lane;if((bn&d)===d)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(s=a=p,i=r):a=a.next=p,re.lanes|=d,Cn|=d}u=u.next}while(u!==null&&u!==l);a===null?i=r:a.next=s,rt(r,t.memoizedState)||(_e=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do l=o.lane,re.lanes|=l,Cn|=l,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ui(e){var t=Qe(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,l=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do l=e(l,i.action),i=i.next;while(i!==o);rt(l,t.memoizedState)||(_e=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Jf(){}function ep(e,t){var n=re,r=Qe(),o=t(),l=!rt(r.memoizedState,o);if(l&&(r.memoizedState=o,_e=!0),r=r.queue,Za(rp.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||ge!==null&&ge.memoizedState.tag&1){if(n.flags|=2048,ao(9,np.bind(null,n,r,o,t),void 0,null),ve===null)throw Error(R(349));bn&30||tp(n,t,o)}return o}function tp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=re.updateQueue,t===null?(t={lastEffect:null,stores:null},re.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function np(e,t,n,r){t.value=n,t.getSnapshot=r,op(t)&&lp(e)}function rp(e,t,n){return n(function(){op(t)&&lp(e)})}function op(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!rt(e,n)}catch{return!0}}function lp(e){var t=Rt(e,1);t!==null&&nt(t,e,1,-1)}function Ec(e){var t=ct();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:so,lastRenderedState:e},t.queue=e,e=e.dispatch=Cy.bind(null,re,e),[t.memoizedState,e]}function ao(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=re.updateQueue,t===null?(t={lastEffect:null,stores:null},re.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function ip(){return Qe().memoizedState}function rl(e,t,n,r){var o=ct();re.flags|=e,o.memoizedState=ao(1|t,n,void 0,r===void 0?null:r)}function ei(e,t,n,r){var o=Qe();r=r===void 0?null:r;var l=void 0;if(pe!==null){var i=pe.memoizedState;if(l=i.destroy,r!==null&&Xa(r,i.deps)){o.memoizedState=ao(t,n,l,r);return}}re.flags|=e,o.memoizedState=ao(1|t,n,l,r)}function Nc(e,t){return rl(8390656,8,e,t)}function Za(e,t){return ei(2048,8,e,t)}function sp(e,t){return ei(4,2,e,t)}function ap(e,t){return ei(4,4,e,t)}function up(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cp(e,t,n){return n=n!=null?n.concat([e]):null,ei(4,4,up.bind(null,t,e),n)}function qa(){}function dp(e,t){var n=Qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Xa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function fp(e,t){var n=Qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Xa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pp(e,t,n){return bn&21?(rt(n,t)||(n=yf(),re.lanes|=n,Cn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,_e=!0),e.memoizedState=n)}function Sy(e,t){var n=U;U=n!==0&&4>n?n:4,e(!0);var r=Bi.transition;Bi.transition={};try{e(!1),t()}finally{U=n,Bi.transition=r}}function mp(){return Qe().memoizedState}function by(e,t,n){var r=Qt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hp(e))gp(t,n);else if(n=Kf(e,t,n,r),n!==null){var o=Ne();nt(n,e,r,o),vp(n,t,r)}}function Cy(e,t,n){var r=Qt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hp(e))gp(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,s=l(i,n);if(o.hasEagerState=!0,o.eagerState=s,rt(s,i)){var a=t.interleaved;a===null?(o.next=o,Ba(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Kf(e,t,o,r),n!==null&&(o=Ne(),nt(n,e,r,o),vp(n,t,r))}}function hp(e){var t=e.alternate;return e===re||t!==null&&t===re}function gp(e,t){Br=jl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ja(e,n)}}var _l={readContext:Xe,useCallback:Se,useContext:Se,useEffect:Se,useImperativeHandle:Se,useInsertionEffect:Se,useLayoutEffect:Se,useMemo:Se,useReducer:Se,useRef:Se,useState:Se,useDebugValue:Se,useDeferredValue:Se,useTransition:Se,useMutableSource:Se,useSyncExternalStore:Se,useId:Se,unstable_isNewReconciler:!1},ky={readContext:Xe,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:Xe,useEffect:Nc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,rl(4194308,4,up.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rl(4194308,4,e,t)},useInsertionEffect:function(e,t){return rl(4,2,e,t)},useMemo:function(e,t){var n=ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ct();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=by.bind(null,re,e),[r.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:Ec,useDebugValue:qa,useDeferredValue:function(e){return ct().memoizedState=e},useTransition:function(){var e=Ec(!1),t=e[0];return e=Sy.bind(null,e[1]),ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=re,o=ct();if(J){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),ve===null)throw Error(R(349));bn&30||tp(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,Nc(rp.bind(null,r,l,e),[e]),r.flags|=2048,ao(9,np.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=ct(),t=ve.identifierPrefix;if(J){var n=kt,r=Ct;n=(r&~(1<<32-tt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=io++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=wy++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ey={readContext:Xe,useCallback:dp,useContext:Xe,useEffect:Za,useImperativeHandle:cp,useInsertionEffect:sp,useLayoutEffect:ap,useMemo:fp,useReducer:Hi,useRef:ip,useState:function(){return Hi(so)},useDebugValue:qa,useDeferredValue:function(e){var t=Qe();return pp(t,pe.memoizedState,e)},useTransition:function(){var e=Hi(so)[0],t=Qe().memoizedState;return[e,t]},useMutableSource:Jf,useSyncExternalStore:ep,useId:mp,unstable_isNewReconciler:!1},Ny={readContext:Xe,useCallback:dp,useContext:Xe,useEffect:Za,useImperativeHandle:cp,useInsertionEffect:sp,useLayoutEffect:ap,useMemo:fp,useReducer:Ui,useRef:ip,useState:function(){return Ui(so)},useDebugValue:qa,useDeferredValue:function(e){var t=Qe();return pe===null?t.memoizedState=e:pp(t,pe.memoizedState,e)},useTransition:function(){var e=Ui(so)[0],t=Qe().memoizedState;return[e,t]},useMutableSource:Jf,useSyncExternalStore:ep,useId:mp,unstable_isNewReconciler:!1};function qe(e,t){if(e&&e.defaultProps){t=oe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ws(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:oe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ti={isMounted:function(e){return(e=e._reactInternals)?Tn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ne(),o=Qt(e),l=Et(r,o);l.payload=t,n!=null&&(l.callback=n),t=Yt(e,l,o),t!==null&&(nt(t,e,o,r),tl(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ne(),o=Qt(e),l=Et(r,o);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Yt(e,l,o),t!==null&&(nt(t,e,o,r),tl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ne(),r=Qt(e),o=Et(n,r);o.tag=2,t!=null&&(o.callback=t),t=Yt(e,o,r),t!==null&&(nt(t,e,r,n),tl(t,e,r))}};function Pc(e,t,n,r,o,l,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,i):t.prototype&&t.prototype.isPureReactComponent?!eo(n,r)||!eo(o,l):!0}function yp(e,t,n){var r=!1,o=Jt,l=t.contextType;return typeof l=="object"&&l!==null?l=Xe(l):(o=Ae(t)?wn:ke.current,r=t.contextTypes,l=(r=r!=null)?lr(e,o):Jt),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ti,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=l),t}function Rc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ti.enqueueReplaceState(t,t.state,null)}function Vs(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ha(e);var l=t.contextType;typeof l=="object"&&l!==null?o.context=Xe(l):(l=Ae(t)?wn:ke.current,o.context=lr(e,l)),o.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Ws(e,t,l,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&ti.enqueueReplaceState(o,o.state,null),Pl(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function ur(e,t){try{var n="",r=t;do n+=ev(r),r=r.return;while(r);var o=n}catch(l){o=`
39
+ Error generating stack: `+l.message+`
40
+ `+l.stack}return{value:e,source:t,stack:o,digest:null}}function Gi(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Bs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Py=typeof WeakMap=="function"?WeakMap:Map;function xp(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Al||(Al=!0,Js=r),Bs(e,t)},n}function wp(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Bs(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Bs(e,t),typeof r!="function"&&(Xt===null?Xt=new Set([this]):Xt.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function jc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Py;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Wy.bind(null,e,t,n),t.then(e,e))}function _c(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Tc(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,Yt(n,t,1))),n.lanes|=1),e)}var Ry=Ot.ReactCurrentOwner,_e=!1;function Ee(e,t,n,r){t.child=e===null?Qf(t,null,n,r):sr(t,e.child,n,r)}function Ac(e,t,n,r,o){n=n.render;var l=t.ref;return er(t,o),r=Qa(e,t,n,r,l,o),n=Ka(),e!==null&&!_e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,jt(e,t,o)):(J&&n&&Ia(t),t.flags|=1,Ee(e,t,r,o),t.child)}function Oc(e,t,n,r,o){if(e===null){var l=n.type;return typeof l=="function"&&!iu(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Sp(e,t,l,r,o)):(e=sl(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&o)){var i=l.memoizedProps;if(n=n.compare,n=n!==null?n:eo,n(i,r)&&e.ref===t.ref)return jt(e,t,o)}return t.flags|=1,e=Kt(l,r),e.ref=t.ref,e.return=t,t.child=e}function Sp(e,t,n,r,o){if(e!==null){var l=e.memoizedProps;if(eo(l,r)&&e.ref===t.ref)if(_e=!1,t.pendingProps=r=l,(e.lanes&o)!==0)e.flags&131072&&(_e=!0);else return t.lanes=e.lanes,jt(e,t,o)}return Hs(e,t,n,r,o)}function bp(e,t,n){var r=t.pendingProps,o=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Q(Qn,Me),Me|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Q(Qn,Me),Me|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,Q(Qn,Me),Me|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,Q(Qn,Me),Me|=r;return Ee(e,t,o,n),t.child}function Cp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hs(e,t,n,r,o){var l=Ae(n)?wn:ke.current;return l=lr(t,l),er(t,o),n=Qa(e,t,n,r,l,o),r=Ka(),e!==null&&!_e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,jt(e,t,o)):(J&&r&&Ia(t),t.flags|=1,Ee(e,t,n,o),t.child)}function Mc(e,t,n,r,o){if(Ae(n)){var l=!0;bl(t)}else l=!1;if(er(t,o),t.stateNode===null)ol(e,t),yp(t,n,r),Vs(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var a=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Xe(u):(u=Ae(n)?wn:ke.current,u=lr(t,u));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==r||a!==u)&&Rc(t,i,r,u),zt=!1;var m=t.memoizedState;i.state=m,Pl(t,r,i,o),a=t.memoizedState,s!==r||m!==a||Te.current||zt?(typeof d=="function"&&(Ws(t,n,d,r),a=t.memoizedState),(s=zt||Pc(t,n,s,r,m,a,u))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=u,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Zf(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:qe(t.type,s),i.props=u,p=t.pendingProps,m=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=Xe(a):(a=Ae(n)?wn:ke.current,a=lr(t,a));var y=n.getDerivedStateFromProps;(d=typeof y=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==p||m!==a)&&Rc(t,i,r,a),zt=!1,m=t.memoizedState,i.state=m,Pl(t,r,i,o);var w=t.memoizedState;s!==p||m!==w||Te.current||zt?(typeof y=="function"&&(Ws(t,n,y,r),w=t.memoizedState),(u=zt||Pc(t,n,u,r,m,w,a)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,w,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,w,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),i.props=r,i.state=w,i.context=a,r=u):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Us(e,t,n,r,l,o)}function Us(e,t,n,r,o,l){Cp(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&xc(t,n,!1),jt(e,t,l);r=t.stateNode,Ry.current=t;var s=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=sr(t,e.child,null,l),t.child=sr(t,null,s,l)):Ee(e,t,s,l),t.memoizedState=r.state,o&&xc(t,n,!0),t.child}function kp(e){var t=e.stateNode;t.pendingContext?yc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&yc(e,t.context,!1),Ua(e,t.containerInfo)}function Lc(e,t,n,r,o){return ir(),Fa(o),t.flags|=256,Ee(e,t,n,r),t.child}var Gs={dehydrated:null,treeContext:null,retryLane:0};function Ys(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ep(e,t,n){var r=t.pendingProps,o=te.current,l=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Q(te,o&1),e===null)return Fs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,l?(r=t.mode,l=t.child,i={mode:"hidden",children:i},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=i):l=oi(i,r,0,null),e=xn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ys(n),t.memoizedState=Gs,e):Ja(t,i));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return jy(e,t,i,r,s,o,n);if(l){l=r.fallback,i=t.mode,o=e.child,s=o.sibling;var a={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Kt(o,a),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?l=Kt(s,l):(l=xn(l,i,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,i=e.child.memoizedState,i=i===null?Ys(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},l.memoizedState=i,l.childLanes=e.childLanes&~n,t.memoizedState=Gs,r}return l=e.child,e=l.sibling,r=Kt(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ja(e,t){return t=oi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Io(e,t,n,r){return r!==null&&Fa(r),sr(t,e.child,null,n),e=Ja(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function jy(e,t,n,r,o,l,i){if(n)return t.flags&256?(t.flags&=-257,r=Gi(Error(R(422))),Io(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,o=t.mode,r=oi({mode:"visible",children:r.children},o,0,null),l=xn(l,o,i,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&sr(t,e.child,null,i),t.child.memoizedState=Ys(i),t.memoizedState=Gs,l);if(!(t.mode&1))return Io(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,l=Error(R(419)),r=Gi(l,r,void 0),Io(e,t,i,r)}if(s=(i&e.childLanes)!==0,_e||s){if(r=ve,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==l.retryLane&&(l.retryLane=o,Rt(e,o),nt(r,e,o,-1))}return lu(),r=Gi(Error(R(421))),Io(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Vy.bind(null,e),o._reactRetry=t,null):(e=l.treeContext,Ie=Gt(o.nextSibling),ze=t,J=!0,et=null,e!==null&&(He[Ue++]=Ct,He[Ue++]=kt,He[Ue++]=Sn,Ct=e.id,kt=e.overflow,Sn=t),t=Ja(t,r.children),t.flags|=4096,t)}function Dc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),$s(e.return,t,n)}function Yi(e,t,n,r,o){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=o)}function Np(e,t,n){var r=t.pendingProps,o=r.revealOrder,l=r.tail;if(Ee(e,t,r.children,n),r=te.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dc(e,n,t);else if(e.tag===19)Dc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Q(te,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Rl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Yi(t,!1,o,n,l);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Rl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Yi(t,!0,n,null,l);break;case"together":Yi(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ol(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function jt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Cn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=Kt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Kt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _y(e,t,n){switch(t.tag){case 3:kp(t),ir();break;case 5:qf(t);break;case 1:Ae(t.type)&&bl(t);break;case 4:Ua(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Q(El,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Q(te,te.current&1),t.flags|=128,null):n&t.child.childLanes?Ep(e,t,n):(Q(te,te.current&1),e=jt(e,t,n),e!==null?e.sibling:null);Q(te,te.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Np(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Q(te,te.current),r)break;return null;case 22:case 23:return t.lanes=0,bp(e,t,n)}return jt(e,t,n)}var Pp,Xs,Rp,jp;Pp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Xs=function(){};Rp=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,vn(ht.current);var l=null;switch(n){case"input":o=gs(e,o),r=gs(e,r),l=[];break;case"select":o=oe({},o,{value:void 0}),r=oe({},r,{value:void 0}),l=[];break;case"textarea":o=xs(e,o),r=xs(e,r),l=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=wl)}Ss(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Yr.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var a=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(i in s)!s.hasOwnProperty(i)||a&&a.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in a)a.hasOwnProperty(i)&&s[i]!==a[i]&&(n||(n={}),n[i]=a[i])}else n||(l||(l=[]),l.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(l=l||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(l=l||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Yr.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&K("scroll",e),l||s===a||(l=[])):(l=l||[]).push(u,a))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}};jp=function(e,t,n,r){n!==r&&(t.flags|=4)};function Tr(e,t){if(!J)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function be(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ty(e,t,n){var r=t.pendingProps;switch(za(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return be(t),null;case 1:return Ae(t.type)&&Sl(),be(t),null;case 3:return r=t.stateNode,ar(),Z(Te),Z(ke),Ya(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Lo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,et!==null&&(na(et),et=null))),Xs(e,t),be(t),null;case 5:Ga(t);var o=vn(lo.current);if(n=t.type,e!==null&&t.stateNode!=null)Rp(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return be(t),null}if(e=vn(ht.current),Lo(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[dt]=t,r[ro]=l,e=(t.mode&1)!==0,n){case"dialog":K("cancel",r),K("close",r);break;case"iframe":case"object":case"embed":K("load",r);break;case"video":case"audio":for(o=0;o<Ir.length;o++)K(Ir[o],r);break;case"source":K("error",r);break;case"img":case"image":case"link":K("error",r),K("load",r);break;case"details":K("toggle",r);break;case"input":Uu(r,l),K("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},K("invalid",r);break;case"textarea":Yu(r,l),K("invalid",r)}Ss(n,l),o=null;for(var i in l)if(l.hasOwnProperty(i)){var s=l[i];i==="children"?typeof s=="string"?r.textContent!==s&&(l.suppressHydrationWarning!==!0&&Mo(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(l.suppressHydrationWarning!==!0&&Mo(r.textContent,s,e),o=["children",""+s]):Yr.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&K("scroll",r)}switch(n){case"input":No(r),Gu(r,l,!0);break;case"textarea":No(r),Xu(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=wl)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=nf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[dt]=t,e[ro]=r,Pp(e,t,!1,!1),t.stateNode=e;e:{switch(i=bs(n,r),n){case"dialog":K("cancel",e),K("close",e),o=r;break;case"iframe":case"object":case"embed":K("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ir.length;o++)K(Ir[o],e);o=r;break;case"source":K("error",e),o=r;break;case"img":case"image":case"link":K("error",e),K("load",e),o=r;break;case"details":K("toggle",e),o=r;break;case"input":Uu(e,r),o=gs(e,r),K("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=oe({},r,{value:void 0}),K("invalid",e);break;case"textarea":Yu(e,r),o=xs(e,r),K("invalid",e);break;default:o=r}Ss(n,o),s=o;for(l in s)if(s.hasOwnProperty(l)){var a=s[l];l==="style"?lf(e,a):l==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&rf(e,a)):l==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Xr(e,a):typeof a=="number"&&Xr(e,""+a):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Yr.hasOwnProperty(l)?a!=null&&l==="onScroll"&&K("scroll",e):a!=null&&Ca(e,l,a,i))}switch(n){case"input":No(e),Gu(e,r,!1);break;case"textarea":No(e),Xu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+qt(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Kn(e,!!r.multiple,l,!1):r.defaultValue!=null&&Kn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=wl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return be(t),null;case 6:if(e&&t.stateNode!=null)jp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(n=vn(lo.current),vn(ht.current),Lo(t)){if(r=t.stateNode,n=t.memoizedProps,r[dt]=t,(l=r.nodeValue!==n)&&(e=ze,e!==null))switch(e.tag){case 3:Mo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Mo(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[dt]=t,t.stateNode=r}return be(t),null;case 13:if(Z(te),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(J&&Ie!==null&&t.mode&1&&!(t.flags&128))Yf(),ir(),t.flags|=98560,l=!1;else if(l=Lo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(R(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(R(317));l[dt]=t}else ir(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;be(t),l=!1}else et!==null&&(na(et),et=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||te.current&1?me===0&&(me=3):lu())),t.updateQueue!==null&&(t.flags|=4),be(t),null);case 4:return ar(),Xs(e,t),e===null&&to(t.stateNode.containerInfo),be(t),null;case 10:return Va(t.type._context),be(t),null;case 17:return Ae(t.type)&&Sl(),be(t),null;case 19:if(Z(te),l=t.memoizedState,l===null)return be(t),null;if(r=(t.flags&128)!==0,i=l.rendering,i===null)if(r)Tr(l,!1);else{if(me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Rl(e),i!==null){for(t.flags|=128,Tr(l,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,i=l.alternate,i===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,l.type=i.type,e=i.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Q(te,te.current&1|2),t.child}e=e.sibling}l.tail!==null&&ce()>cr&&(t.flags|=128,r=!0,Tr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Rl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Tr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!J)return be(t),null}else 2*ce()-l.renderingStartTime>cr&&n!==1073741824&&(t.flags|=128,r=!0,Tr(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ce(),t.sibling=null,n=te.current,Q(te,r?n&1|2:n&1),t):(be(t),null);case 22:case 23:return ou(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Me&1073741824&&(be(t),t.subtreeFlags&6&&(t.flags|=8192)):be(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function Ay(e,t){switch(za(t),t.tag){case 1:return Ae(t.type)&&Sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ar(),Z(Te),Z(ke),Ya(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ga(t),null;case 13:if(Z(te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));ir()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(te),null;case 4:return ar(),null;case 10:return Va(t.type._context),null;case 22:case 23:return ou(),null;case 24:return null;default:return null}}var zo=!1,Ce=!1,Oy=typeof WeakSet=="function"?WeakSet:Set,T=null;function Xn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){se(e,t,r)}else n.current=null}function Qs(e,t,n){try{n()}catch(r){se(e,t,r)}}var Ic=!1;function My(e,t){if(As=vl,e=Mf(),Da(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,s=-1,a=-1,u=0,d=0,p=e,m=null;t:for(;;){for(var y;p!==n||o!==0&&p.nodeType!==3||(s=i+o),p!==l||r!==0&&p.nodeType!==3||(a=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(y=p.firstChild)!==null;)m=p,p=y;for(;;){if(p===e)break t;if(m===n&&++u===o&&(s=i),m===l&&++d===r&&(a=i),(y=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=y}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Os={focusedElem:e,selectionRange:n},vl=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,b=w.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:qe(t.type,v),b);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(S){se(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return w=Ic,Ic=!1,w}function Hr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&Qs(t,n,l)}o=o.next}while(o!==r)}}function ni(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ks(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function _p(e){var t=e.alternate;t!==null&&(e.alternate=null,_p(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dt],delete t[ro],delete t[Ds],delete t[gy],delete t[vy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Tp(e){return e.tag===5||e.tag===3||e.tag===4}function zc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=wl));else if(r!==4&&(e=e.child,e!==null))for(Zs(e,t,n),e=e.sibling;e!==null;)Zs(e,t,n),e=e.sibling}function qs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(qs(e,t,n),e=e.sibling;e!==null;)qs(e,t,n),e=e.sibling}var ye=null,Je=!1;function Mt(e,t,n){for(n=n.child;n!==null;)Ap(e,t,n),n=n.sibling}function Ap(e,t,n){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(Xl,n)}catch{}switch(n.tag){case 5:Ce||Xn(n,t);case 6:var r=ye,o=Je;ye=null,Mt(e,t,n),ye=r,Je=o,ye!==null&&(Je?(e=ye,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ye.removeChild(n.stateNode));break;case 18:ye!==null&&(Je?(e=ye,n=n.stateNode,e.nodeType===8?$i(e.parentNode,n):e.nodeType===1&&$i(e,n),qr(e)):$i(ye,n.stateNode));break;case 4:r=ye,o=Je,ye=n.stateNode.containerInfo,Je=!0,Mt(e,t,n),ye=r,Je=o;break;case 0:case 11:case 14:case 15:if(!Ce&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&Qs(n,t,i),o=o.next}while(o!==r)}Mt(e,t,n);break;case 1:if(!Ce&&(Xn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){se(n,t,s)}Mt(e,t,n);break;case 21:Mt(e,t,n);break;case 22:n.mode&1?(Ce=(r=Ce)||n.memoizedState!==null,Mt(e,t,n),Ce=r):Mt(e,t,n);break;default:Mt(e,t,n)}}function Fc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Oy),t.forEach(function(r){var o=By.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var l=e,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 5:ye=s.stateNode,Je=!1;break e;case 3:ye=s.stateNode.containerInfo,Je=!0;break e;case 4:ye=s.stateNode.containerInfo,Je=!0;break e}s=s.return}if(ye===null)throw Error(R(160));Ap(l,i,o),ye=null,Je=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){se(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Op(t,e),t=t.sibling}function Op(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ze(t,e),ut(e),r&4){try{Hr(3,e,e.return),ni(3,e)}catch(v){se(e,e.return,v)}try{Hr(5,e,e.return)}catch(v){se(e,e.return,v)}}break;case 1:Ze(t,e),ut(e),r&512&&n!==null&&Xn(n,n.return);break;case 5:if(Ze(t,e),ut(e),r&512&&n!==null&&Xn(n,n.return),e.flags&32){var o=e.stateNode;try{Xr(o,"")}catch(v){se(e,e.return,v)}}if(r&4&&(o=e.stateNode,o!=null)){var l=e.memoizedProps,i=n!==null?n.memoizedProps:l,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&l.type==="radio"&&l.name!=null&&ef(o,l),bs(s,i);var u=bs(s,l);for(i=0;i<a.length;i+=2){var d=a[i],p=a[i+1];d==="style"?lf(o,p):d==="dangerouslySetInnerHTML"?rf(o,p):d==="children"?Xr(o,p):Ca(o,d,p,u)}switch(s){case"input":vs(o,l);break;case"textarea":tf(o,l);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!l.multiple;var y=l.value;y!=null?Kn(o,!!l.multiple,y,!1):m!==!!l.multiple&&(l.defaultValue!=null?Kn(o,!!l.multiple,l.defaultValue,!0):Kn(o,!!l.multiple,l.multiple?[]:"",!1))}o[ro]=l}catch(v){se(e,e.return,v)}}break;case 6:if(Ze(t,e),ut(e),r&4){if(e.stateNode===null)throw Error(R(162));o=e.stateNode,l=e.memoizedProps;try{o.nodeValue=l}catch(v){se(e,e.return,v)}}break;case 3:if(Ze(t,e),ut(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{qr(t.containerInfo)}catch(v){se(e,e.return,v)}break;case 4:Ze(t,e),ut(e);break;case 13:Ze(t,e),ut(e),o=e.child,o.flags&8192&&(l=o.memoizedState!==null,o.stateNode.isHidden=l,!l||o.alternate!==null&&o.alternate.memoizedState!==null||(nu=ce())),r&4&&Fc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Ce=(u=Ce)||d,Ze(t,e),Ce=u):Ze(t,e),ut(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(T=e,d=e.child;d!==null;){for(p=T=d;T!==null;){switch(m=T,y=m.child,m.tag){case 0:case 11:case 14:case 15:Hr(4,m,m.return);break;case 1:Xn(m,m.return);var w=m.stateNode;if(typeof w.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(v){se(r,n,v)}}break;case 5:Xn(m,m.return);break;case 22:if(m.memoizedState!==null){Wc(p);continue}}y!==null?(y.return=m,T=y):Wc(p)}d=d.sibling}e:for(d=null,p=e;;){if(p.tag===5){if(d===null){d=p;try{o=p.stateNode,u?(l=o.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(s=p.stateNode,a=p.memoizedProps.style,i=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=of("display",i))}catch(v){se(e,e.return,v)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(v){se(e,e.return,v)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Ze(t,e),ut(e),r&4&&Fc(e);break;case 21:break;default:Ze(t,e),ut(e)}}function ut(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Tp(n)){var r=n;break e}n=n.return}throw Error(R(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Xr(o,""),r.flags&=-33);var l=zc(e);qs(e,l,o);break;case 3:case 4:var i=r.stateNode.containerInfo,s=zc(e);Zs(e,s,i);break;default:throw Error(R(161))}}catch(a){se(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ly(e,t,n){T=e,Mp(e)}function Mp(e,t,n){for(var r=(e.mode&1)!==0;T!==null;){var o=T,l=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||zo;if(!i){var s=o.alternate,a=s!==null&&s.memoizedState!==null||Ce;s=zo;var u=Ce;if(zo=i,(Ce=a)&&!u)for(T=o;T!==null;)i=T,a=i.child,i.tag===22&&i.memoizedState!==null?Vc(o):a!==null?(a.return=i,T=a):Vc(o);for(;l!==null;)T=l,Mp(l),l=l.sibling;T=o,zo=s,Ce=u}$c(e)}else o.subtreeFlags&8772&&l!==null?(l.return=o,T=l):$c(e)}}function $c(e){for(;T!==null;){var t=T;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ce||ni(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ce)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:qe(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&kc(t,l,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}kc(t,i,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&qr(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}Ce||t.flags&512&&Ks(t)}catch(m){se(t,t.return,m)}}if(t===e){T=null;break}if(n=t.sibling,n!==null){n.return=t.return,T=n;break}T=t.return}}function Wc(e){for(;T!==null;){var t=T;if(t===e){T=null;break}var n=t.sibling;if(n!==null){n.return=t.return,T=n;break}T=t.return}}function Vc(e){for(;T!==null;){var t=T;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ni(4,t)}catch(a){se(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){se(t,o,a)}}var l=t.return;try{Ks(t)}catch(a){se(t,l,a)}break;case 5:var i=t.return;try{Ks(t)}catch(a){se(t,i,a)}}}catch(a){se(t,t.return,a)}if(t===e){T=null;break}var s=t.sibling;if(s!==null){s.return=t.return,T=s;break}T=t.return}}var Dy=Math.ceil,Tl=Ot.ReactCurrentDispatcher,eu=Ot.ReactCurrentOwner,Ye=Ot.ReactCurrentBatchConfig,W=0,ve=null,de=null,xe=0,Me=0,Qn=ln(0),me=0,uo=null,Cn=0,ri=0,tu=0,Ur=null,je=null,nu=0,cr=1/0,St=null,Al=!1,Js=null,Xt=null,Fo=!1,Vt=null,Ol=0,Gr=0,ea=null,ll=-1,il=0;function Ne(){return W&6?ce():ll!==-1?ll:ll=ce()}function Qt(e){return e.mode&1?W&2&&xe!==0?xe&-xe:xy.transition!==null?(il===0&&(il=yf()),il):(e=U,e!==0||(e=window.event,e=e===void 0?16:Ef(e.type)),e):1}function nt(e,t,n,r){if(50<Gr)throw Gr=0,ea=null,Error(R(185));ho(e,n,r),(!(W&2)||e!==ve)&&(e===ve&&(!(W&2)&&(ri|=n),me===4&&$t(e,xe)),Oe(e,r),n===1&&W===0&&!(t.mode&1)&&(cr=ce()+500,Jl&&sn()))}function Oe(e,t){var n=e.callbackNode;xv(e,t);var r=gl(e,e===ve?xe:0);if(r===0)n!==null&&Zu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Zu(n),t===1)e.tag===0?yy(Bc.bind(null,e)):Hf(Bc.bind(null,e)),my(function(){!(W&6)&&sn()}),n=null;else{switch(xf(r)){case 1:n=Ra;break;case 4:n=gf;break;case 16:n=hl;break;case 536870912:n=vf;break;default:n=hl}n=Vp(n,Lp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Lp(e,t){if(ll=-1,il=0,W&6)throw Error(R(327));var n=e.callbackNode;if(tr()&&e.callbackNode!==n)return null;var r=gl(e,e===ve?xe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ml(e,r);else{t=r;var o=W;W|=2;var l=Ip();(ve!==e||xe!==t)&&(St=null,cr=ce()+500,yn(e,t));do try{Fy();break}catch(s){Dp(e,s)}while(!0);Wa(),Tl.current=l,W=o,de!==null?t=0:(ve=null,xe=0,t=me)}if(t!==0){if(t===2&&(o=Ps(e),o!==0&&(r=o,t=ta(e,o))),t===1)throw n=uo,yn(e,0),$t(e,r),Oe(e,ce()),n;if(t===6)$t(e,r);else{if(o=e.current.alternate,!(r&30)&&!Iy(o)&&(t=Ml(e,r),t===2&&(l=Ps(e),l!==0&&(r=l,t=ta(e,l))),t===1))throw n=uo,yn(e,0),$t(e,r),Oe(e,ce()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:mn(e,je,St);break;case 3:if($t(e,r),(r&130023424)===r&&(t=nu+500-ce(),10<t)){if(gl(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Ne(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ls(mn.bind(null,e,je,St),t);break}mn(e,je,St);break;case 4:if($t(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-tt(r);l=1<<i,i=t[i],i>o&&(o=i),r&=~l}if(r=o,r=ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Dy(r/1960))-r,10<r){e.timeoutHandle=Ls(mn.bind(null,e,je,St),r);break}mn(e,je,St);break;case 5:mn(e,je,St);break;default:throw Error(R(329))}}}return Oe(e,ce()),e.callbackNode===n?Lp.bind(null,e):null}function ta(e,t){var n=Ur;return e.current.memoizedState.isDehydrated&&(yn(e,t).flags|=256),e=Ml(e,t),e!==2&&(t=je,je=n,t!==null&&na(t)),e}function na(e){je===null?je=e:je.push.apply(je,e)}function Iy(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],l=o.getSnapshot;o=o.value;try{if(!rt(l(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $t(e,t){for(t&=~tu,t&=~ri,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-tt(t),r=1<<n;e[n]=-1,t&=~r}}function Bc(e){if(W&6)throw Error(R(327));tr();var t=gl(e,0);if(!(t&1))return Oe(e,ce()),null;var n=Ml(e,t);if(e.tag!==0&&n===2){var r=Ps(e);r!==0&&(t=r,n=ta(e,r))}if(n===1)throw n=uo,yn(e,0),$t(e,t),Oe(e,ce()),n;if(n===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,mn(e,je,St),Oe(e,ce()),null}function ru(e,t){var n=W;W|=1;try{return e(t)}finally{W=n,W===0&&(cr=ce()+500,Jl&&sn())}}function kn(e){Vt!==null&&Vt.tag===0&&!(W&6)&&tr();var t=W;W|=1;var n=Ye.transition,r=U;try{if(Ye.transition=null,U=1,e)return e()}finally{U=r,Ye.transition=n,W=t,!(W&6)&&sn()}}function ou(){Me=Qn.current,Z(Qn)}function yn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,py(n)),de!==null)for(n=de.return;n!==null;){var r=n;switch(za(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Sl();break;case 3:ar(),Z(Te),Z(ke),Ya();break;case 5:Ga(r);break;case 4:ar();break;case 13:Z(te);break;case 19:Z(te);break;case 10:Va(r.type._context);break;case 22:case 23:ou()}n=n.return}if(ve=e,de=e=Kt(e.current,null),xe=Me=t,me=0,uo=null,tu=ri=Cn=0,je=Ur=null,gn!==null){for(t=0;t<gn.length;t++)if(n=gn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,l=n.pending;if(l!==null){var i=l.next;l.next=o,r.next=i}n.pending=r}gn=null}return e}function Dp(e,t){do{var n=de;try{if(Wa(),nl.current=_l,jl){for(var r=re.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}jl=!1}if(bn=0,ge=pe=re=null,Br=!1,io=0,eu.current=null,n===null||n.return===null){me=1,uo=t,de=null;break}e:{var l=e,i=n.return,s=n,a=t;if(t=xe,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,d=s,p=d.tag;if(!(d.mode&1)&&(p===0||p===11||p===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var y=_c(i);if(y!==null){y.flags&=-257,Tc(y,i,s,l,t),y.mode&1&&jc(l,u,t),t=y,a=u;var w=t.updateQueue;if(w===null){var v=new Set;v.add(a),t.updateQueue=v}else w.add(a);break e}else{if(!(t&1)){jc(l,u,t),lu();break e}a=Error(R(426))}}else if(J&&s.mode&1){var b=_c(i);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Tc(b,i,s,l,t),Fa(ur(a,s));break e}}l=a=ur(a,s),me!==4&&(me=2),Ur===null?Ur=[l]:Ur.push(l),l=i;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var g=xp(l,a,t);Cc(l,g);break e;case 1:s=a;var h=l.type,x=l.stateNode;if(!(l.flags&128)&&(typeof h.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Xt===null||!Xt.has(x)))){l.flags|=65536,t&=-t,l.lanes|=t;var S=wp(l,s,t);Cc(l,S);break e}}l=l.return}while(l!==null)}Fp(n)}catch(C){t=C,de===n&&n!==null&&(de=n=n.return);continue}break}while(!0)}function Ip(){var e=Tl.current;return Tl.current=_l,e===null?_l:e}function lu(){(me===0||me===3||me===2)&&(me=4),ve===null||!(Cn&268435455)&&!(ri&268435455)||$t(ve,xe)}function Ml(e,t){var n=W;W|=2;var r=Ip();(ve!==e||xe!==t)&&(St=null,yn(e,t));do try{zy();break}catch(o){Dp(e,o)}while(!0);if(Wa(),W=n,Tl.current=r,de!==null)throw Error(R(261));return ve=null,xe=0,me}function zy(){for(;de!==null;)zp(de)}function Fy(){for(;de!==null&&!cv();)zp(de)}function zp(e){var t=Wp(e.alternate,e,Me);e.memoizedProps=e.pendingProps,t===null?Fp(e):de=t,eu.current=null}function Fp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Ay(n,t),n!==null){n.flags&=32767,de=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{me=6,de=null;return}}else if(n=Ty(n,t,Me),n!==null){de=n;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);me===0&&(me=5)}function mn(e,t,n){var r=U,o=Ye.transition;try{Ye.transition=null,U=1,$y(e,t,n,r)}finally{Ye.transition=o,U=r}return null}function $y(e,t,n,r){do tr();while(Vt!==null);if(W&6)throw Error(R(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(wv(e,l),e===ve&&(de=ve=null,xe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Fo||(Fo=!0,Vp(hl,function(){return tr(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=Ye.transition,Ye.transition=null;var i=U;U=1;var s=W;W|=4,eu.current=null,My(e,n),Op(n,e),iy(Os),vl=!!As,Os=As=null,e.current=n,Ly(n),dv(),W=s,U=i,Ye.transition=l}else e.current=n;if(Fo&&(Fo=!1,Vt=e,Ol=o),l=e.pendingLanes,l===0&&(Xt=null),mv(n.stateNode),Oe(e,ce()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Al)throw Al=!1,e=Js,Js=null,e;return Ol&1&&e.tag!==0&&tr(),l=e.pendingLanes,l&1?e===ea?Gr++:(Gr=0,ea=e):Gr=0,sn(),null}function tr(){if(Vt!==null){var e=xf(Ol),t=Ye.transition,n=U;try{if(Ye.transition=null,U=16>e?16:e,Vt===null)var r=!1;else{if(e=Vt,Vt=null,Ol=0,W&6)throw Error(R(331));var o=W;for(W|=4,T=e.current;T!==null;){var l=T,i=l.child;if(T.flags&16){var s=l.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for(T=u;T!==null;){var d=T;switch(d.tag){case 0:case 11:case 15:Hr(8,d,l)}var p=d.child;if(p!==null)p.return=d,T=p;else for(;T!==null;){d=T;var m=d.sibling,y=d.return;if(_p(d),d===u){T=null;break}if(m!==null){m.return=y,T=m;break}T=y}}}var w=l.alternate;if(w!==null){var v=w.child;if(v!==null){w.child=null;do{var b=v.sibling;v.sibling=null,v=b}while(v!==null)}}T=l}}if(l.subtreeFlags&2064&&i!==null)i.return=l,T=i;else e:for(;T!==null;){if(l=T,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Hr(9,l,l.return)}var g=l.sibling;if(g!==null){g.return=l.return,T=g;break e}T=l.return}}var h=e.current;for(T=h;T!==null;){i=T;var x=i.child;if(i.subtreeFlags&2064&&x!==null)x.return=i,T=x;else e:for(i=h;T!==null;){if(s=T,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:ni(9,s)}}catch(C){se(s,s.return,C)}if(s===i){T=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,T=S;break e}T=s.return}}if(W=o,sn(),mt&&typeof mt.onPostCommitFiberRoot=="function")try{mt.onPostCommitFiberRoot(Xl,e)}catch{}r=!0}return r}finally{U=n,Ye.transition=t}}return!1}function Hc(e,t,n){t=ur(n,t),t=xp(e,t,1),e=Yt(e,t,1),t=Ne(),e!==null&&(ho(e,1,t),Oe(e,t))}function se(e,t,n){if(e.tag===3)Hc(e,e,n);else for(;t!==null;){if(t.tag===3){Hc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Xt===null||!Xt.has(r))){e=ur(n,e),e=wp(t,e,1),t=Yt(t,e,1),e=Ne(),t!==null&&(ho(t,1,e),Oe(t,e));break}}t=t.return}}function Wy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ne(),e.pingedLanes|=e.suspendedLanes&n,ve===e&&(xe&n)===n&&(me===4||me===3&&(xe&130023424)===xe&&500>ce()-nu?yn(e,0):tu|=n),Oe(e,t)}function $p(e,t){t===0&&(e.mode&1?(t=jo,jo<<=1,!(jo&130023424)&&(jo=4194304)):t=1);var n=Ne();e=Rt(e,t),e!==null&&(ho(e,t,n),Oe(e,n))}function Vy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$p(e,n)}function By(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),$p(e,n)}var Wp;Wp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Te.current)_e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return _e=!1,_y(e,t,n);_e=!!(e.flags&131072)}else _e=!1,J&&t.flags&1048576&&Uf(t,kl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ol(e,t),e=t.pendingProps;var o=lr(t,ke.current);er(t,n),o=Qa(null,t,r,e,o,n);var l=Ka();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ae(r)?(l=!0,bl(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ha(t),o.updater=ti,t.stateNode=o,o._reactInternals=t,Vs(t,r,e,n),t=Us(null,t,r,!0,l,n)):(t.tag=0,J&&l&&Ia(t),Ee(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ol(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Uy(r),e=qe(r,e),o){case 0:t=Hs(null,t,r,e,n);break e;case 1:t=Mc(null,t,r,e,n);break e;case 11:t=Ac(null,t,r,e,n);break e;case 14:t=Oc(null,t,r,qe(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qe(r,o),Hs(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qe(r,o),Mc(e,t,r,o,n);case 3:e:{if(kp(t),e===null)throw Error(R(387));r=t.pendingProps,l=t.memoizedState,o=l.element,Zf(e,t),Pl(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=ur(Error(R(423)),t),t=Lc(e,t,r,n,o);break e}else if(r!==o){o=ur(Error(R(424)),t),t=Lc(e,t,r,n,o);break e}else for(Ie=Gt(t.stateNode.containerInfo.firstChild),ze=t,J=!0,et=null,n=Qf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ir(),r===o){t=jt(e,t,n);break e}Ee(e,t,r,n)}t=t.child}return t;case 5:return qf(t),e===null&&Fs(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,Ms(r,o)?i=null:l!==null&&Ms(r,l)&&(t.flags|=32),Cp(e,t),Ee(e,t,i,n),t.child;case 6:return e===null&&Fs(t),null;case 13:return Ep(e,t,n);case 4:return Ua(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=sr(t,null,r,n):Ee(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qe(r,o),Ac(e,t,r,o,n);case 7:return Ee(e,t,t.pendingProps,n),t.child;case 8:return Ee(e,t,t.pendingProps.children,n),t.child;case 12:return Ee(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,Q(El,r._currentValue),r._currentValue=i,l!==null)if(rt(l.value,i)){if(l.children===o.children&&!Te.current){t=jt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){i=l.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=Et(-1,n&-n),a.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),$s(l.return,n,t),s.lanes|=n;break}a=a.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(R(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),$s(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}Ee(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,er(t,n),o=Xe(o),r=r(o),t.flags|=1,Ee(e,t,r,n),t.child;case 14:return r=t.type,o=qe(r,t.pendingProps),o=qe(r.type,o),Oc(e,t,r,o,n);case 15:return Sp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qe(r,o),ol(e,t),t.tag=1,Ae(r)?(e=!0,bl(t)):e=!1,er(t,n),yp(t,r,o),Vs(t,r,o,n),Us(null,t,r,!0,e,n);case 19:return Np(e,t,n);case 22:return bp(e,t,n)}throw Error(R(156,t.tag))};function Vp(e,t){return hf(e,t)}function Hy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ge(e,t,n,r){return new Hy(e,t,n,r)}function iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Uy(e){if(typeof e=="function")return iu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ea)return 11;if(e===Na)return 14}return 2}function Kt(e,t){var n=e.alternate;return n===null?(n=Ge(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function sl(e,t,n,r,o,l){var i=2;if(r=e,typeof e=="function")iu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Fn:return xn(n.children,o,l,t);case ka:i=8,o|=8;break;case fs:return e=Ge(12,n,t,o|2),e.elementType=fs,e.lanes=l,e;case ps:return e=Ge(13,n,t,o),e.elementType=ps,e.lanes=l,e;case ms:return e=Ge(19,n,t,o),e.elementType=ms,e.lanes=l,e;case Zd:return oi(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qd:i=10;break e;case Kd:i=9;break e;case Ea:i=11;break e;case Na:i=14;break e;case It:i=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Ge(i,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function xn(e,t,n,r){return e=Ge(7,e,r,t),e.lanes=n,e}function oi(e,t,n,r){return e=Ge(22,e,r,t),e.elementType=Zd,e.lanes=n,e.stateNode={isHidden:!1},e}function Xi(e,t,n){return e=Ge(6,e,null,t),e.lanes=n,e}function Qi(e,t,n){return t=Ge(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gy(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ji(0),this.expirationTimes=ji(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ji(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function su(e,t,n,r,o,l,i,s,a){return e=new Gy(e,t,n,s,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Ge(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ha(l),e}function Yy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:zn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Bp(e){if(!e)return Jt;e=e._reactInternals;e:{if(Tn(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ae(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var n=e.type;if(Ae(n))return Bf(e,n,t)}return t}function Hp(e,t,n,r,o,l,i,s,a){return e=su(n,r,!0,e,o,l,i,s,a),e.context=Bp(null),n=e.current,r=Ne(),o=Qt(n),l=Et(r,o),l.callback=t??null,Yt(n,l,o),e.current.lanes=o,ho(e,o,r),Oe(e,r),e}function li(e,t,n,r){var o=t.current,l=Ne(),i=Qt(o);return n=Bp(n),t.context===null?t.context=n:t.pendingContext=n,t=Et(l,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Yt(o,t,i),e!==null&&(nt(e,o,i,l),tl(e,o,i)),i}function Ll(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Uc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function au(e,t){Uc(e,t),(e=e.alternate)&&Uc(e,t)}function Xy(){return null}var Up=typeof reportError=="function"?reportError:function(e){console.error(e)};function uu(e){this._internalRoot=e}ii.prototype.render=uu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));li(e,t,null,null)};ii.prototype.unmount=uu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;kn(function(){li(null,e,null,null)}),t[Pt]=null}};function ii(e){this._internalRoot=e}ii.prototype.unstable_scheduleHydration=function(e){if(e){var t=bf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ft.length&&t!==0&&t<Ft[n].priority;n++);Ft.splice(n,0,e),n===0&&kf(e)}};function cu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function si(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Gc(){}function Qy(e,t,n,r,o){if(o){if(typeof r=="function"){var l=r;r=function(){var u=Ll(i);l.call(u)}}var i=Hp(t,r,e,0,null,!1,!1,"",Gc);return e._reactRootContainer=i,e[Pt]=i.current,to(e.nodeType===8?e.parentNode:e),kn(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=Ll(a);s.call(u)}}var a=su(e,0,!1,null,null,!1,!1,"",Gc);return e._reactRootContainer=a,e[Pt]=a.current,to(e.nodeType===8?e.parentNode:e),kn(function(){li(t,a,n,r)}),a}function ai(e,t,n,r,o){var l=n._reactRootContainer;if(l){var i=l;if(typeof o=="function"){var s=o;o=function(){var a=Ll(i);s.call(a)}}li(t,i,e,o)}else i=Qy(n,t,e,o,r);return Ll(i)}wf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Dr(t.pendingLanes);n!==0&&(ja(t,n|1),Oe(t,ce()),!(W&6)&&(cr=ce()+500,sn()))}break;case 13:kn(function(){var r=Rt(e,1);if(r!==null){var o=Ne();nt(r,e,1,o)}}),au(e,1)}};_a=function(e){if(e.tag===13){var t=Rt(e,134217728);if(t!==null){var n=Ne();nt(t,e,134217728,n)}au(e,134217728)}};Sf=function(e){if(e.tag===13){var t=Qt(e),n=Rt(e,t);if(n!==null){var r=Ne();nt(n,e,t,r)}au(e,t)}};bf=function(){return U};Cf=function(e,t){var n=U;try{return U=e,t()}finally{U=n}};ks=function(e,t,n){switch(t){case"input":if(vs(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=ql(r);if(!o)throw Error(R(90));Jd(r),vs(r,o)}}}break;case"textarea":tf(e,n);break;case"select":t=n.value,t!=null&&Kn(e,!!n.multiple,t,!1)}};uf=ru;cf=kn;var Ky={usingClientEntryPoint:!1,Events:[vo,Bn,ql,sf,af,ru]},Ar={findFiberByHostInstance:hn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Zy={bundleType:Ar.bundleType,version:Ar.version,rendererPackageName:Ar.rendererPackageName,rendererConfig:Ar.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ot.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=pf(e),e===null?null:e.stateNode},findFiberByHostInstance:Ar.findFiberByHostInstance||Xy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $o=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$o.isDisabled&&$o.supportsFiber)try{Xl=$o.inject(Zy),mt=$o}catch{}}We.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ky;We.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cu(t))throw Error(R(200));return Yy(e,t,null,n)};We.createRoot=function(e,t){if(!cu(e))throw Error(R(299));var n=!1,r="",o=Up;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=su(e,1,!1,null,null,n,!1,r,o),e[Pt]=t.current,to(e.nodeType===8?e.parentNode:e),new uu(t)};We.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=pf(t),e=e===null?null:e.stateNode,e};We.flushSync=function(e){return kn(e)};We.hydrate=function(e,t,n){if(!si(t))throw Error(R(200));return ai(null,e,t,!0,n)};We.hydrateRoot=function(e,t,n){if(!cu(e))throw Error(R(405));var r=n!=null&&n.hydratedSources||null,o=!1,l="",i=Up;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Hp(t,null,e,1,n??null,o,!1,l,i),e[Pt]=t.current,to(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new ii(t)};We.render=function(e,t,n){if(!si(t))throw Error(R(200));return ai(null,e,t,!1,n)};We.unmountComponentAtNode=function(e){if(!si(e))throw Error(R(40));return e._reactRootContainer?(kn(function(){ai(null,null,e,!1,function(){e._reactRootContainer=null,e[Pt]=null})}),!0):!1};We.unstable_batchedUpdates=ru;We.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!si(n))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return ai(e,t,n,!1,r)};We.version="18.3.1-next-f1338f8080-20240426";function Gp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gp)}catch(e){console.error(e)}}Gp(),Ud.exports=We;var ui=Ud.exports;const qy=Ad(ui);var Yc=ui;cs.createRoot=Yc.createRoot,cs.hydrateRoot=Yc.hydrateRoot;/**
41
+ * @license lucide-react v0.563.0 - ISC
42
+ *
43
+ * This source code is licensed under the ISC license.
44
+ * See the LICENSE file in the root directory of this source tree.
45
+ */const Yp=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46
+ * @license lucide-react v0.563.0 - ISC
47
+ *
48
+ * This source code is licensed under the ISC license.
49
+ * See the LICENSE file in the root directory of this source tree.
50
+ */const Jy=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
51
+ * @license lucide-react v0.563.0 - ISC
52
+ *
53
+ * This source code is licensed under the ISC license.
54
+ * See the LICENSE file in the root directory of this source tree.
55
+ */const ex=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/**
56
+ * @license lucide-react v0.563.0 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */const Xc=e=>{const t=ex(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
61
+ * @license lucide-react v0.563.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */var tx={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"};/**
66
+ * @license lucide-react v0.563.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const nx=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
71
+ * @license lucide-react v0.563.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const rx=f.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:l,iconNode:i,...s},a)=>f.createElement("svg",{ref:a,...tx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Yp("lucide",o),...!l&&!nx(s)&&{"aria-hidden":"true"},...s},[...i.map(([u,d])=>f.createElement(u,d)),...Array.isArray(l)?l:[l]]));/**
76
+ * @license lucide-react v0.563.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const ae=(e,t)=>{const n=f.forwardRef(({className:r,...o},l)=>f.createElement(rx,{ref:l,iconNode:t,className:Yp(`lucide-${Jy(Xc(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Xc(e),n};/**
81
+ * @license lucide-react v0.563.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const ox=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],lx=ae("arrow-down",ox);/**
86
+ * @license lucide-react v0.563.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const ix=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],sx=ae("arrow-up",ix);/**
91
+ * @license lucide-react v0.563.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const ax=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],ux=ae("chart-column",ax);/**
96
+ * @license lucide-react v0.563.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const cx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],dx=ae("check",cx);/**
101
+ * @license lucide-react v0.563.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const fx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],px=ae("chevron-down",fx);/**
106
+ * @license lucide-react v0.563.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const mx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],hx=ae("chevron-right",mx);/**
111
+ * @license lucide-react v0.563.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const gx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],vx=ae("circle-check",gx);/**
116
+ * @license lucide-react v0.563.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const yx=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],xx=ae("code-xml",yx);/**
121
+ * @license lucide-react v0.563.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const wx=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],du=ae("file-code",wx);/**
126
+ * @license lucide-react v0.563.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */const Sx=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],bx=ae("file",Sx);/**
131
+ * @license lucide-react v0.563.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const Cx=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],kx=ae("folder-open",Cx);/**
136
+ * @license lucide-react v0.563.0 - ISC
137
+ *
138
+ * This source code is licensed under the ISC license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */const Ex=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],Nx=ae("folder-tree",Ex);/**
141
+ * @license lucide-react v0.563.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const Px=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Rx=ae("folder",Px);/**
146
+ * @license lucide-react v0.563.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const jx=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],_x=ae("git-branch",jx);/**
151
+ * @license lucide-react v0.563.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const Tx=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],Ax=ae("maximize-2",Tx);/**
156
+ * @license lucide-react v0.563.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const Ox=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],Mx=ae("minimize-2",Ox);/**
161
+ * @license lucide-react v0.563.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */const Lx=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Dx=ae("package",Lx);/**
166
+ * @license lucide-react v0.563.0 - ISC
167
+ *
168
+ * This source code is licensed under the ISC license.
169
+ * See the LICENSE file in the root directory of this source tree.
170
+ */const Ix=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],zx=ae("panel-left",Ix);/**
171
+ * @license lucide-react v0.563.0 - ISC
172
+ *
173
+ * This source code is licensed under the ISC license.
174
+ * See the LICENSE file in the root directory of this source tree.
175
+ */const Fx=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Xp=ae("search",Fx);/**
176
+ * @license lucide-react v0.563.0 - ISC
177
+ *
178
+ * This source code is licensed under the ISC license.
179
+ * See the LICENSE file in the root directory of this source tree.
180
+ */const $x=[["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"}]],Wx=ae("triangle-alert",$x);/**
181
+ * @license lucide-react v0.563.0 - ISC
182
+ *
183
+ * This source code is licensed under the ISC license.
184
+ * See the LICENSE file in the root directory of this source tree.
185
+ */const Vx=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],ra=ae("upload",Vx);/**
186
+ * @license lucide-react v0.563.0 - ISC
187
+ *
188
+ * This source code is licensed under the ISC license.
189
+ * See the LICENSE file in the root directory of this source tree.
190
+ */const Bx=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Qp=ae("x",Bx);function Kp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Kp(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Zp(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Kp(e))&&(r&&(r+=" "),r+=t);return r}const Hx=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Ux=(e,t)=>({classGroupId:e,validator:t}),qp=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Dl="-",Qc=[],Gx="arbitrary..",Yx=e=>{const t=Qx(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Xx(i);const s=i.split(Dl),a=s[0]===""&&s.length>1?1:0;return Jp(s,a,t)},getConflictingClassGroupIds:(i,s)=>{if(s){const a=r[i],u=n[i];return a?u?Hx(u,a):a:u||Qc}return n[i]||Qc}}},Jp=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],l=n.nextPart.get(o);if(l){const u=Jp(e,t+1,l);if(u)return u}const i=n.validators;if(i===null)return;const s=t===0?e.join(Dl):e.slice(t).join(Dl),a=i.length;for(let u=0;u<a;u++){const d=i[u];if(d.validator(s))return d.classGroupId}},Xx=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Gx+r:void 0})(),Qx=e=>{const{theme:t,classGroups:n}=e;return Kx(n,t)},Kx=(e,t)=>{const n=qp();for(const r in e){const o=e[r];fu(o,n,r,t)}return n},fu=(e,t,n,r)=>{const o=e.length;for(let l=0;l<o;l++){const i=e[l];Zx(i,t,n,r)}},Zx=(e,t,n,r)=>{if(typeof e=="string"){qx(e,t,n);return}if(typeof e=="function"){Jx(e,t,n,r);return}e0(e,t,n,r)},qx=(e,t,n)=>{const r=e===""?t:em(t,e);r.classGroupId=n},Jx=(e,t,n,r)=>{if(t0(e)){fu(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Ux(n,e))},e0=(e,t,n,r)=>{const o=Object.entries(e),l=o.length;for(let i=0;i<l;i++){const[s,a]=o[i];fu(a,em(t,s),n,r)}},em=(e,t)=>{let n=e;const r=t.split(Dl),o=r.length;for(let l=0;l<o;l++){const i=r[l];let s=n.nextPart.get(i);s||(s=qp(),n.nextPart.set(i,s)),n=s}return n},t0=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,n0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(l,i)=>{n[l]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(l){let i=n[l];if(i!==void 0)return i;if((i=r[l])!==void 0)return o(l,i),i},set(l,i){l in n?n[l]=i:o(l,i)}}},oa="!",Kc=":",r0=[],Zc=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),o0=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const l=[];let i=0,s=0,a=0,u;const d=o.length;for(let v=0;v<d;v++){const b=o[v];if(i===0&&s===0){if(b===Kc){l.push(o.slice(a,v)),a=v+1;continue}if(b==="/"){u=v;continue}}b==="["?i++:b==="]"?i--:b==="("?s++:b===")"&&s--}const p=l.length===0?o:o.slice(a);let m=p,y=!1;p.endsWith(oa)?(m=p.slice(0,-1),y=!0):p.startsWith(oa)&&(m=p.slice(1),y=!0);const w=u&&u>a?u-a:void 0;return Zc(l,y,m,w)};if(t){const o=t+Kc,l=r;r=i=>i.startsWith(o)?l(i.slice(o.length)):Zc(r0,!1,i,void 0,!0)}if(n){const o=r;r=l=>n({className:l,parseClassName:o})}return r},l0=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let l=0;l<n.length;l++){const i=n[l],s=i[0]==="[",a=t.has(i);s||a?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(i)):o.push(i)}return o.length>0&&(o.sort(),r.push(...o)),r}},i0=e=>({cache:n0(e.cacheSize),parseClassName:o0(e),sortModifiers:l0(e),...Yx(e)}),s0=/\s+/,a0=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:l}=t,i=[],s=e.trim().split(s0);let a="";for(let u=s.length-1;u>=0;u-=1){const d=s[u],{isExternal:p,modifiers:m,hasImportantModifier:y,baseClassName:w,maybePostfixModifierPosition:v}=n(d);if(p){a=d+(a.length>0?" "+a:a);continue}let b=!!v,g=r(b?w.substring(0,v):w);if(!g){if(!b){a=d+(a.length>0?" "+a:a);continue}if(g=r(w),!g){a=d+(a.length>0?" "+a:a);continue}b=!1}const h=m.length===0?"":m.length===1?m[0]:l(m).join(":"),x=y?h+oa:h,S=x+g;if(i.indexOf(S)>-1)continue;i.push(S);const C=o(g,b);for(let N=0;N<C.length;++N){const E=C[N];i.push(x+E)}a=d+(a.length>0?" "+a:a)}return a},u0=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=tm(n))&&(o&&(o+=" "),o+=r);return o},tm=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=tm(e[r]))&&(n&&(n+=" "),n+=t);return n},c0=(e,...t)=>{let n,r,o,l;const i=a=>{const u=t.reduce((d,p)=>p(d),e());return n=i0(u),r=n.cache.get,o=n.cache.set,l=s,s(a)},s=a=>{const u=r(a);if(u)return u;const d=a0(a,n);return o(a,d),d};return l=i,(...a)=>l(u0(...a))},d0=[],fe=e=>{const t=n=>n[e]||d0;return t.isThemeGetter=!0,t},nm=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,rm=/^\((?:(\w[\w-]*):)?(.+)\)$/i,f0=/^\d+\/\d+$/,p0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,m0=/\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$/,h0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,g0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,v0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mn=e=>f0.test(e),z=e=>!!e&&!Number.isNaN(Number(e)),Lt=e=>!!e&&Number.isInteger(Number(e)),Ki=e=>e.endsWith("%")&&z(e.slice(0,-1)),wt=e=>p0.test(e),y0=()=>!0,x0=e=>m0.test(e)&&!h0.test(e),om=()=>!1,w0=e=>g0.test(e),S0=e=>v0.test(e),b0=e=>!A(e)&&!O(e),C0=e=>yr(e,sm,om),A=e=>nm.test(e),fn=e=>yr(e,am,x0),Zi=e=>yr(e,R0,z),qc=e=>yr(e,lm,om),k0=e=>yr(e,im,S0),Wo=e=>yr(e,um,w0),O=e=>rm.test(e),Or=e=>xr(e,am),E0=e=>xr(e,j0),Jc=e=>xr(e,lm),N0=e=>xr(e,sm),P0=e=>xr(e,im),Vo=e=>xr(e,um,!0),yr=(e,t,n)=>{const r=nm.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},xr=(e,t,n=!1)=>{const r=rm.exec(e);return r?r[1]?t(r[1]):n:!1},lm=e=>e==="position"||e==="percentage",im=e=>e==="image"||e==="url",sm=e=>e==="length"||e==="size"||e==="bg-size",am=e=>e==="length",R0=e=>e==="number",j0=e=>e==="family-name",um=e=>e==="shadow",_0=()=>{const e=fe("color"),t=fe("font"),n=fe("text"),r=fe("font-weight"),o=fe("tracking"),l=fe("leading"),i=fe("breakpoint"),s=fe("container"),a=fe("spacing"),u=fe("radius"),d=fe("shadow"),p=fe("inset-shadow"),m=fe("text-shadow"),y=fe("drop-shadow"),w=fe("blur"),v=fe("perspective"),b=fe("aspect"),g=fe("ease"),h=fe("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...S(),O,A],N=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],P=()=>[O,A,a],j=()=>[Mn,"full","auto",...P()],_=()=>[Lt,"none","subgrid",O,A],I=()=>["auto",{span:["full",Lt,O,A]},Lt,O,A],B=()=>[Lt,"auto",O,A],G=()=>["auto","min","max","fr",O,A],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],le=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...P()],V=()=>[Mn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],k=()=>[e,O,A],M=()=>[...S(),Jc,qc,{position:[O,A]}],L=()=>["no-repeat",{repeat:["","x","y","space","round"]}],H=()=>["auto","cover","contain",N0,C0,{size:[O,A]}],q=()=>[Ki,Or,fn],ie=()=>["","none","full",u,O,A],ee=()=>["",z,Or,fn],at=()=>["solid","dashed","dotted","double"],Be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>[z,Ki,Jc,qc],Cr=()=>["","none",w,O,A],un=()=>["none",z,O,A],cn=()=>["none",z,O,A],An=()=>[z,O,A],dn=()=>[Mn,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[wt],breakpoint:[wt],color:[y0],container:[wt],"drop-shadow":[wt],ease:["in","out","in-out"],font:[b0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[wt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[wt],shadow:[wt],spacing:["px",z],text:[wt],"text-shadow":[wt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Mn,A,O,b]}],container:["container"],columns:[{columns:[z,A,O,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"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:C()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:j()}],"inset-x":[{"inset-x":j()}],"inset-y":[{"inset-y":j()}],start:[{start:j()}],end:[{end:j()}],top:[{top:j()}],right:[{right:j()}],bottom:[{bottom:j()}],left:[{left:j()}],visibility:["visible","invisible","collapse"],z:[{z:[Lt,"auto",O,A]}],basis:[{basis:[Mn,"full","auto",s,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[z,Mn,"auto","initial","none",A]}],grow:[{grow:["",z,O,A]}],shrink:[{shrink:["",z,O,A]}],order:[{order:[Lt,"first","last","none",O,A]}],"grid-cols":[{"grid-cols":_()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":_()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...le(),"normal"]}],"justify-self":[{"justify-self":["auto",...le()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...le(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...le(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...le(),"baseline"]}],"place-self":[{"place-self":["auto",...le()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[s,"screen",...V()]}],"min-w":[{"min-w":[s,"screen","none",...V()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",n,Or,fn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,O,Zi]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ki,A]}],"font-family":[{font:[E0,A,t]}],"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:[o,O,A]}],"line-clamp":[{"line-clamp":[z,"none",O,Zi]}],leading:[{leading:[l,...P()]}],"list-image":[{"list-image":["none",O,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",O,A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...at(),"wavy"]}],"text-decoration-thickness":[{decoration:[z,"from-font","auto",O,fn]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[z,"auto",O,A]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O,A]}],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",O,A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:H()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Lt,O,A],radial:["",O,A],conic:[Lt,O,A]},P0,k0]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...at(),"hidden","none"]}],"divide-style":[{divide:[...at(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...at(),"none","hidden"]}],"outline-offset":[{"outline-offset":[z,O,A]}],"outline-w":[{outline:["",z,Or,fn]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",d,Vo,Wo]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",p,Vo,Wo]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[z,fn]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",m,Vo,Wo]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[z,O,A]}],"mix-blend":[{"mix-blend":[...Be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Be()}],"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":[z]}],"mask-image-linear-from-pos":[{"mask-linear-from":X()}],"mask-image-linear-to-pos":[{"mask-linear-to":X()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":X()}],"mask-image-t-to-pos":[{"mask-t-to":X()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":X()}],"mask-image-r-to-pos":[{"mask-r-to":X()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":X()}],"mask-image-b-to-pos":[{"mask-b-to":X()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":X()}],"mask-image-l-to-pos":[{"mask-l-to":X()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":X()}],"mask-image-x-to-pos":[{"mask-x-to":X()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":X()}],"mask-image-y-to-pos":[{"mask-y-to":X()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[O,A]}],"mask-image-radial-from-pos":[{"mask-radial-from":X()}],"mask-image-radial-to-pos":[{"mask-radial-to":X()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"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":S()}],"mask-image-conic-pos":[{"mask-conic":[z]}],"mask-image-conic-from-pos":[{"mask-conic-from":X()}],"mask-image-conic-to-pos":[{"mask-conic-to":X()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:H()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",O,A]}],filter:[{filter:["","none",O,A]}],blur:[{blur:Cr()}],brightness:[{brightness:[z,O,A]}],contrast:[{contrast:[z,O,A]}],"drop-shadow":[{"drop-shadow":["","none",y,Vo,Wo]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",z,O,A]}],"hue-rotate":[{"hue-rotate":[z,O,A]}],invert:[{invert:["",z,O,A]}],saturate:[{saturate:[z,O,A]}],sepia:[{sepia:["",z,O,A]}],"backdrop-filter":[{"backdrop-filter":["","none",O,A]}],"backdrop-blur":[{"backdrop-blur":Cr()}],"backdrop-brightness":[{"backdrop-brightness":[z,O,A]}],"backdrop-contrast":[{"backdrop-contrast":[z,O,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",z,O,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[z,O,A]}],"backdrop-invert":[{"backdrop-invert":["",z,O,A]}],"backdrop-opacity":[{"backdrop-opacity":[z,O,A]}],"backdrop-saturate":[{"backdrop-saturate":[z,O,A]}],"backdrop-sepia":[{"backdrop-sepia":["",z,O,A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",O,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[z,"initial",O,A]}],ease:[{ease:["linear","initial",g,O,A]}],delay:[{delay:[z,O,A]}],animate:[{animate:["none",h,O,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,O,A]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:un()}],"rotate-x":[{"rotate-x":un()}],"rotate-y":[{"rotate-y":un()}],"rotate-z":[{"rotate-z":un()}],scale:[{scale:cn()}],"scale-x":[{"scale-x":cn()}],"scale-y":[{"scale-y":cn()}],"scale-z":[{"scale-z":cn()}],"scale-3d":["scale-3d"],skew:[{skew:An()}],"skew-x":[{"skew-x":An()}],"skew-y":[{"skew-y":An()}],transform:[{transform:[O,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:dn()}],"translate-x":[{"translate-x":dn()}],"translate-y":[{"translate-y":dn()}],"translate-z":[{"translate-z":dn()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"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",O,A]}],"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":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",O,A]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[z,Or,fn,Zi]}],stroke:[{stroke:["none",...k()]}],"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"]}},T0=c0(_0);function D(...e){return T0(Zp(e))}const en=f.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:D("rounded-xl border bg-card text-card-foreground shadow",e),...t}));en.displayName="Card";const En=f.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:D("flex flex-col space-y-1.5 p-6",e),...t}));En.displayName="CardHeader";const Nn=f.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:D("font-semibold leading-none tracking-tight",e),...t}));Nn.displayName="CardTitle";const dr=f.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:D("text-sm text-muted-foreground",e),...t}));dr.displayName="CardDescription";const tn=f.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:D("p-6 pt-0",e),...t}));tn.displayName="CardContent";const A0=f.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:D("flex items-center p-6 pt-0",e),...t}));A0.displayName="CardFooter";const ed=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,td=Zp,xo=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return td(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:l}=t,i=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],p=l==null?void 0:l[u];if(d===null)return null;const m=ed(d)||ed(p);return o[u][m]}),s=n&&Object.entries(n).reduce((u,d)=>{let[p,m]=d;return m===void 0||(u[p]=m),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:p,className:m,...y}=d;return Object.entries(y).every(w=>{let[v,b]=w;return Array.isArray(b)?b.includes({...l,...s}[v]):{...l,...s}[v]===b})?[...u,p,m]:u},[]);return td(e,i,a,n==null?void 0:n.class,n==null?void 0:n.className)},O0=xo("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Pn({className:e,variant:t,...n}){return c.jsx("div",{className:D(O0({variant:t}),e),...n})}function nd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ci(...e){return t=>{let n=!1;const r=e.map(o=>{const l=nd(o,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let o=0;o<r.length;o++){const l=r[o];typeof l=="function"?l():nd(e[o],null)}}}}function he(...e){return f.useCallback(ci(...e),e)}function M0(e){const t=L0(e),n=f.forwardRef((r,o)=>{const{children:l,...i}=r,s=f.Children.toArray(l),a=s.find(I0);if(a){const u=a.props.children,d=s.map(p=>p===a?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:p);return c.jsx(t,{...i,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,d):null})}return c.jsx(t,{...i,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}function L0(e){const t=f.forwardRef((n,r)=>{const{children:o,...l}=n;if(f.isValidElement(o)){const i=F0(o),s=z0(l,o.props);return o.type!==f.Fragment&&(s.ref=r?ci(r,i):i),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var D0=Symbol("radix.slottable");function I0(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===D0}function z0(e,t){const n={...t};for(const r in t){const o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...s)=>{const a=l(...s);return o(...s),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...l}:r==="className"&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function F0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ue=$0.reduce((e,t)=>{const n=M0(`Primitive.${t}`),r=f.forwardRef((o,l)=>{const{asChild:i,...s}=o,a=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(a,{...s,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function W0(e,t){e&&ui.flushSync(()=>e.dispatchEvent(t))}var _t=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{};function V0(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var it=e=>{const{present:t,children:n}=e,r=B0(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),l=he(r.ref,H0(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:l}):null};it.displayName="Presence";function B0(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),l=f.useRef("none"),i=e?"mounted":"unmounted",[s,a]=V0(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const u=Bo(r.current);l.current=s==="mounted"?u:"none"},[s]),_t(()=>{const u=r.current,d=o.current;if(d!==e){const m=l.current,y=Bo(u);e?a("MOUNT"):y==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(d&&m!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),_t(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=y=>{const v=Bo(r.current).includes(CSS.escape(y.animationName));if(y.target===t&&v&&(a("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},m=y=>{y.target===t&&(l.current=Bo(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:f.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Bo(e){return(e==null?void 0:e.animationName)||"none"}function H0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function U0(e,t){const n=f.createContext(t),r=l=>{const{children:i,...s}=l,a=f.useMemo(()=>s,Object.values(s));return c.jsx(n.Provider,{value:a,children:i})};r.displayName=e+"Provider";function o(l){const i=f.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[r,o]}function wo(e,t=[]){let n=[];function r(l,i){const s=f.createContext(i),a=n.length;n=[...n,i];const u=p=>{var g;const{scope:m,children:y,...w}=p,v=((g=m==null?void 0:m[e])==null?void 0:g[a])||s,b=f.useMemo(()=>w,Object.values(w));return c.jsx(v.Provider,{value:b,children:y})};u.displayName=l+"Provider";function d(p,m){var v;const y=((v=m==null?void 0:m[e])==null?void 0:v[a])||s,w=f.useContext(y);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${l}\``)}return[u,d]}const o=()=>{const l=n.map(i=>f.createContext(i));return function(s){const a=(s==null?void 0:s[e])||l;return f.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,G0(o,...t)]}function G0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(l){const i=r.reduce((s,{useScope:a,scopeName:u})=>{const p=a(l)[`__scope${u}`];return{...s,...p}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function De(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var Y0=f.createContext(void 0);function X0(e){const t=f.useContext(Y0);return e||t||"ltr"}function Q0(e,[t,n]){return Math.min(n,Math.max(t,e))}function ne(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function K0(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var pu="ScrollArea",[cm]=wo(pu),[Z0,Ke]=cm(pu),dm=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:l=600,...i}=e,[s,a]=f.useState(null),[u,d]=f.useState(null),[p,m]=f.useState(null),[y,w]=f.useState(null),[v,b]=f.useState(null),[g,h]=f.useState(0),[x,S]=f.useState(0),[C,N]=f.useState(!1),[E,P]=f.useState(!1),j=he(t,I=>a(I)),_=X0(o);return c.jsx(Z0,{scope:n,type:r,dir:_,scrollHideDelay:l,scrollArea:s,viewport:u,onViewportChange:d,content:p,onContentChange:m,scrollbarX:y,onScrollbarXChange:w,scrollbarXEnabled:C,onScrollbarXEnabledChange:N,scrollbarY:v,onScrollbarYChange:b,scrollbarYEnabled:E,onScrollbarYEnabledChange:P,onCornerWidthChange:h,onCornerHeightChange:S,children:c.jsx(ue.div,{dir:_,...i,ref:j,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});dm.displayName=pu;var fm="ScrollAreaViewport",pm=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...l}=e,i=Ke(fm,n),s=f.useRef(null),a=he(t,s,i.onViewportChange);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),c.jsx(ue.div,{"data-radix-scroll-area-viewport":"",...l,ref:a,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:c.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});pm.displayName=fm;var yt="ScrollAreaScrollbar",mu=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ke(yt,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:i}=o,s=e.orientation==="horizontal";return f.useEffect(()=>(s?l(!0):i(!0),()=>{s?l(!1):i(!1)}),[s,l,i]),o.type==="hover"?c.jsx(q0,{...r,ref:t,forceMount:n}):o.type==="scroll"?c.jsx(J0,{...r,ref:t,forceMount:n}):o.type==="auto"?c.jsx(mm,{...r,ref:t,forceMount:n}):o.type==="always"?c.jsx(hu,{...r,ref:t}):null});mu.displayName=yt;var q0=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ke(yt,e.__scopeScrollArea),[l,i]=f.useState(!1);return f.useEffect(()=>{const s=o.scrollArea;let a=0;if(s){const u=()=>{window.clearTimeout(a),i(!0)},d=()=>{a=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",u),s.addEventListener("pointerleave",d),()=>{window.clearTimeout(a),s.removeEventListener("pointerenter",u),s.removeEventListener("pointerleave",d)}}},[o.scrollArea,o.scrollHideDelay]),c.jsx(it,{present:n||l,children:c.jsx(mm,{"data-state":l?"visible":"hidden",...r,ref:t})})}),J0=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ke(yt,e.__scopeScrollArea),l=e.orientation==="horizontal",i=fi(()=>a("SCROLL_END"),100),[s,a]=K0("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return f.useEffect(()=>{if(s==="idle"){const u=window.setTimeout(()=>a("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[s,o.scrollHideDelay,a]),f.useEffect(()=>{const u=o.viewport,d=l?"scrollLeft":"scrollTop";if(u){let p=u[d];const m=()=>{const y=u[d];p!==y&&(a("SCROLL"),i()),p=y};return u.addEventListener("scroll",m),()=>u.removeEventListener("scroll",m)}},[o.viewport,l,a,i]),c.jsx(it,{present:n||s!=="hidden",children:c.jsx(hu,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:ne(e.onPointerEnter,()=>a("POINTER_ENTER")),onPointerLeave:ne(e.onPointerLeave,()=>a("POINTER_LEAVE"))})})}),mm=f.forwardRef((e,t)=>{const n=Ke(yt,e.__scopeScrollArea),{forceMount:r,...o}=e,[l,i]=f.useState(!1),s=e.orientation==="horizontal",a=fi(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;i(s?u:d)}},10);return fr(n.viewport,a),fr(n.content,a),c.jsx(it,{present:r||l,children:c.jsx(hu,{"data-state":l?"visible":"hidden",...o,ref:t})})}),hu=f.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=Ke(yt,e.__scopeScrollArea),l=f.useRef(null),i=f.useRef(0),[s,a]=f.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=xm(s.viewport,s.content),d={...r,sizes:s,onSizesChange:a,hasThumb:u>0&&u<1,onThumbChange:m=>l.current=m,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:m=>i.current=m};function p(m,y){return lw(m,i.current,s,y)}return n==="horizontal"?c.jsx(ew,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&l.current){const m=o.viewport.scrollLeft,y=rd(m,s,o.dir);l.current.style.transform=`translate3d(${y}px, 0, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollLeft=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollLeft=p(m,o.dir))}}):n==="vertical"?c.jsx(tw,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&l.current){const m=o.viewport.scrollTop,y=rd(m,s);l.current.style.transform=`translate3d(0, ${y}px, 0)`}},onWheelScroll:m=>{o.viewport&&(o.viewport.scrollTop=m)},onDragScroll:m=>{o.viewport&&(o.viewport.scrollTop=p(m))}}):null}),ew=f.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,l=Ke(yt,e.__scopeScrollArea),[i,s]=f.useState(),a=f.useRef(null),u=he(t,a,l.onScrollbarXChange);return f.useEffect(()=>{a.current&&s(getComputedStyle(a.current))},[a]),c.jsx(gm,{"data-orientation":"horizontal",...o,ref:u,sizes:n,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":di(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,p)=>{if(l.viewport){const m=l.viewport.scrollLeft+d.deltaX;e.onWheelScroll(m),Sm(m,p)&&d.preventDefault()}},onResize:()=>{a.current&&l.viewport&&i&&r({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:a.current.clientWidth,paddingStart:zl(i.paddingLeft),paddingEnd:zl(i.paddingRight)}})}})}),tw=f.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,l=Ke(yt,e.__scopeScrollArea),[i,s]=f.useState(),a=f.useRef(null),u=he(t,a,l.onScrollbarYChange);return f.useEffect(()=>{a.current&&s(getComputedStyle(a.current))},[a]),c.jsx(gm,{"data-orientation":"vertical",...o,ref:u,sizes:n,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":di(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,p)=>{if(l.viewport){const m=l.viewport.scrollTop+d.deltaY;e.onWheelScroll(m),Sm(m,p)&&d.preventDefault()}},onResize:()=>{a.current&&l.viewport&&i&&r({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:a.current.clientHeight,paddingStart:zl(i.paddingTop),paddingEnd:zl(i.paddingBottom)}})}})}),[nw,hm]=cm(yt),gm=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:l,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:a,onDragScroll:u,onWheelScroll:d,onResize:p,...m}=e,y=Ke(yt,n),[w,v]=f.useState(null),b=he(t,j=>v(j)),g=f.useRef(null),h=f.useRef(""),x=y.viewport,S=r.content-r.viewport,C=De(d),N=De(a),E=fi(p,10);function P(j){if(g.current){const _=j.clientX-g.current.left,I=j.clientY-g.current.top;u({x:_,y:I})}}return f.useEffect(()=>{const j=_=>{const I=_.target;(w==null?void 0:w.contains(I))&&C(_,S)};return document.addEventListener("wheel",j,{passive:!1}),()=>document.removeEventListener("wheel",j,{passive:!1})},[x,w,S,C]),f.useEffect(N,[r,N]),fr(w,E),fr(y.content,E),c.jsx(nw,{scope:n,scrollbar:w,hasThumb:o,onThumbChange:De(l),onThumbPointerUp:De(i),onThumbPositionChange:N,onThumbPointerDown:De(s),children:c.jsx(ue.div,{...m,ref:b,style:{position:"absolute",...m.style},onPointerDown:ne(e.onPointerDown,j=>{j.button===0&&(j.target.setPointerCapture(j.pointerId),g.current=w.getBoundingClientRect(),h.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",y.viewport&&(y.viewport.style.scrollBehavior="auto"),P(j))}),onPointerMove:ne(e.onPointerMove,P),onPointerUp:ne(e.onPointerUp,j=>{const _=j.target;_.hasPointerCapture(j.pointerId)&&_.releasePointerCapture(j.pointerId),document.body.style.webkitUserSelect=h.current,y.viewport&&(y.viewport.style.scrollBehavior=""),g.current=null})})})}),Il="ScrollAreaThumb",vm=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=hm(Il,e.__scopeScrollArea);return c.jsx(it,{present:n||o.hasThumb,children:c.jsx(rw,{ref:t,...r})})}),rw=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,l=Ke(Il,n),i=hm(Il,n),{onThumbPositionChange:s}=i,a=he(t,p=>i.onThumbChange(p)),u=f.useRef(void 0),d=fi(()=>{u.current&&(u.current(),u.current=void 0)},100);return f.useEffect(()=>{const p=l.viewport;if(p){const m=()=>{if(d(),!u.current){const y=iw(p,s);u.current=y,s()}};return s(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[l.viewport,d,s]),c.jsx(ue.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:a,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ne(e.onPointerDownCapture,p=>{const y=p.target.getBoundingClientRect(),w=p.clientX-y.left,v=p.clientY-y.top;i.onThumbPointerDown({x:w,y:v})}),onPointerUp:ne(e.onPointerUp,i.onThumbPointerUp)})});vm.displayName=Il;var gu="ScrollAreaCorner",ym=f.forwardRef((e,t)=>{const n=Ke(gu,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?c.jsx(ow,{...e,ref:t}):null});ym.displayName=gu;var ow=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=Ke(gu,n),[l,i]=f.useState(0),[s,a]=f.useState(0),u=!!(l&&s);return fr(o.scrollbarX,()=>{var p;const d=((p=o.scrollbarX)==null?void 0:p.offsetHeight)||0;o.onCornerHeightChange(d),a(d)}),fr(o.scrollbarY,()=>{var p;const d=((p=o.scrollbarY)==null?void 0:p.offsetWidth)||0;o.onCornerWidthChange(d),i(d)}),u?c.jsx(ue.div,{...r,ref:t,style:{width:l,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function zl(e){return e?parseInt(e,10):0}function xm(e,t){const n=e/t;return isNaN(n)?0:n}function di(e){const t=xm(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function lw(e,t,n,r="ltr"){const o=di(n),l=o/2,i=t||l,s=o-i,a=n.scrollbar.paddingStart+i,u=n.scrollbar.size-n.scrollbar.paddingEnd-s,d=n.content-n.viewport,p=r==="ltr"?[0,d]:[d*-1,0];return wm([a,u],p)(e)}function rd(e,t,n="ltr"){const r=di(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-o,i=t.content-t.viewport,s=l-r,a=n==="ltr"?[0,i]:[i*-1,0],u=Q0(e,a);return wm([0,i],[0,s])(u)}function wm(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Sm(e,t){return e>0&&e<t}var iw=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const l={left:e.scrollLeft,top:e.scrollTop},i=n.left!==l.left,s=n.top!==l.top;(i||s)&&t(),n=l,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function fi(e,t){const n=De(e),r=f.useRef(0);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),f.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function fr(e,t){const n=De(t);_t(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var bm=dm,sw=pm,aw=ym;const an=f.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(bm,{ref:r,className:D("relative overflow-hidden",e),...n,children:[c.jsx(sw,{className:"h-full w-full rounded-[inherit]",children:t}),c.jsx(Cm,{}),c.jsx(aw,{})]}));an.displayName=bm.displayName;const Cm=f.forwardRef(({className:e,orientation:t="vertical",...n},r)=>c.jsx(mu,{ref:r,orientation:t,className:D("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:c.jsx(vm,{className:"relative flex-1 rounded-full bg-border"})}));Cm.displayName=mu.displayName;function la(e){const t=e.split("/");return t[t.length-1]}function qi({title:e,description:t,rows:n,onFileSelect:r,selectedFile:o,countLabel:l,emptyMessage:i}){const[s,a]=f.useState("count"),[u,d]=f.useState("desc"),p=f.useMemo(()=>[...n].sort((v,b)=>{const g=u==="asc"?1:-1;return s==="count"?(v.count-b.count)*g:v.path.localeCompare(b.path)*g}),[n,s,u]),m=v=>{s===v?d(u==="asc"?"desc":"asc"):(a(v),d(v==="count"?"desc":"asc"))},y=Math.max(...n.map(v=>v.count),1),w=({field:v})=>s!==v?null:u==="asc"?c.jsx(sx,{className:"ml-1 h-3 w-3 inline"}):c.jsx(lx,{className:"ml-1 h-3 w-3 inline"});return c.jsxs(en,{children:[c.jsxs(En,{className:"pb-3",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx(Nn,{className:"text-base",children:e}),c.jsxs(Pn,{variant:"secondary",className:"text-xs",children:[n.length," items"]})]}),c.jsx(dr,{className:"text-xs",children:t})]}),c.jsx(tn,{className:"pt-0",children:n.length===0?c.jsx("p",{className:"text-sm text-muted-foreground",children:i}):c.jsx(an,{className:"h-64",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"sticky top-0 bg-card",children:c.jsxs("tr",{className:"border-b",children:[c.jsxs("th",{className:"text-left py-2 pr-4 text-muted-foreground font-medium cursor-pointer hover:text-foreground transition-colors",onClick:()=>m("path"),children:["File",c.jsx(w,{field:"path"})]}),c.jsxs("th",{className:"text-right py-2 text-muted-foreground font-medium cursor-pointer hover:text-foreground transition-colors w-32",onClick:()=>m("count"),children:[l,c.jsx(w,{field:"count"})]})]})}),c.jsx("tbody",{children:p.map(v=>c.jsxs("tr",{className:D("border-b border-border/50 cursor-pointer transition-colors",o===v.path?"bg-accent":"hover:bg-muted/50"),onClick:()=>r==null?void 0:r(v.path),children:[c.jsx("td",{className:"py-2 pr-4",children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"font-mono text-foreground truncate",title:v.path,children:la(v.path)}),c.jsx("span",{className:"text-muted-foreground text-xs truncate hidden sm:inline",children:v.path.replace(la(v.path),"")})]})}),c.jsx("td",{className:"py-2",children:c.jsxs("div",{className:"flex items-center justify-end gap-2",children:[c.jsx("div",{className:"w-16 h-1.5 bg-muted rounded-full overflow-hidden",children:c.jsx("div",{className:"h-full bg-primary rounded-full",style:{width:`${v.count/y*100}%`}})}),c.jsx("span",{className:"font-mono text-primary w-8 text-right",children:v.count})]})})]},v.path))})]})})})]})}function uw({cycles:e,onFileSelect:t}){const n=e.length===0;return c.jsxs(en,{className:n?"border-chart-2/30":"border-destructive/30",children:[c.jsxs(En,{className:"pb-3",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[n?c.jsx(vx,{className:"h-4 w-4 text-chart-2"}):c.jsx(Wx,{className:"h-4 w-4 text-destructive"}),c.jsx(Nn,{className:"text-base",children:"Circular Dependencies"})]}),c.jsx(Pn,{variant:n?"secondary":"destructive",className:"text-xs",children:n?"None detected":`${e.length} cycle${e.length!==1?"s":""}`})]}),c.jsx(dr,{className:"text-xs",children:"Import cycles that may cause issues"})]}),c.jsx(tn,{className:"pt-0",children:n?c.jsx("p",{className:"text-sm text-chart-2",children:"No circular dependencies found. Your import graph is acyclic."}):c.jsx(an,{className:"h-64",children:c.jsx("div",{className:"space-y-3",children:e.map((r,o)=>c.jsx("div",{className:"bg-destructive/5 border border-destructive/20 rounded-md p-3",children:c.jsxs("div",{className:"flex flex-wrap items-center gap-1 text-sm font-mono",children:[r.cycle.map((l,i)=>c.jsxs("span",{className:"flex items-center",children:[c.jsx("button",{className:"text-foreground hover:text-primary transition-colors",onClick:()=>t==null?void 0:t(l),title:l,children:la(l)}),i<r.cycle.length-1&&c.jsx("span",{className:"text-destructive mx-1",children:"→"})]},i)),c.jsx("span",{className:"text-destructive mx-1",children:"↺"})]})},o))})})})]})}function cw({files:e,imports:t,onFileSelect:n,selectedFile:r}){const o=f.useMemo(()=>new Set(e.map(p=>p.path)),[e]),{importers:l,dependencies:i}=f.useMemo(()=>{var y,w;const p=new Map,m=new Map;for(const v of e)p.set(v.path,new Set),m.set(v.path,new Set);for(const v of t)o.has(v.source)&&o.has(v.target)&&((y=p.get(v.target))==null||y.add(v.source),(w=m.get(v.source))==null||w.add(v.target));return{importers:p,dependencies:m}},[e,t,o]),s=f.useMemo(()=>{var m,y;const p=[];for(const w of e)(((m=l.get(w.path))==null?void 0:m.size)||0)===0&&p.push({path:w.path,count:((y=i.get(w.path))==null?void 0:y.size)||0,lines:w.lines});return p.sort((w,v)=>v.count-w.count)},[e,l,i]),a=f.useMemo(()=>{var m;const p=[];for(const y of e){const w=((m=l.get(y.path))==null?void 0:m.size)||0;w>0&&p.push({path:y.path,count:w,lines:y.lines})}return p.sort((y,w)=>w.count-y.count).slice(0,50)},[e,l]),u=f.useMemo(()=>{var m;const p=[];for(const y of e){const w=((m=i.get(y.path))==null?void 0:m.size)||0;w>0&&p.push({path:y.path,count:w,lines:y.lines})}return p.sort((y,w)=>w.count-y.count).slice(0,50)},[e,i]),d=f.useMemo(()=>{const p=[],m=new Set,y=new Set,w=[];function v(b){m.add(b),y.add(b),w.push(b);const g=i.get(b)||new Set;for(const h of g)if(!m.has(h))v(h);else if(y.has(h)){const x=w.indexOf(h);if(x!==-1){const S=w.slice(x),C=[...S].sort().join("|");p.find(E=>[...E.cycle].sort().join("|")===C)||p.push({cycle:S})}}w.pop(),y.delete(b)}for(const b of e)m.has(b.path)||v(b.path);return p},[e,i]);return e.length===0?c.jsx("div",{className:"p-6 text-muted-foreground text-sm",children:"No file data available. Load a snapshot with enhanced metadata."}):t.length===0?c.jsx("div",{className:"p-6 text-muted-foreground text-sm",children:"No import data available. This snapshot may not include dependency information."}):c.jsx(an,{className:"h-full",children:c.jsxs("div",{className:"p-4 space-y-4",children:[c.jsx(qi,{title:"Entry Points",description:"Files not imported by anything else - where execution starts",rows:s,onFileSelect:n,selectedFile:r,countLabel:"Deps",emptyMessage:"All files are imported by at least one other file"}),c.jsx(qi,{title:"Most Imported",description:"Critical files - changes here affect many dependents",rows:a,onFileSelect:n,selectedFile:r,countLabel:"Importers",emptyMessage:"No files are imported by other files"}),c.jsx(qi,{title:"Highest Coupling",description:"Files with many dependencies - potential refactoring candidates",rows:u,onFileSelect:n,selectedFile:r,countLabel:"Imports",emptyMessage:"No files have dependencies"}),c.jsx(uw,{cycles:d,onFileSelect:n})]})})}var dw=Symbol.for("react.lazy"),Fl=wa[" use ".trim().toString()];function fw(e){return typeof e=="object"&&e!==null&&"then"in e}function km(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===dw&&"_payload"in e&&fw(e._payload)}function pi(e){const t=pw(e),n=f.forwardRef((r,o)=>{let{children:l,...i}=r;km(l)&&typeof Fl=="function"&&(l=Fl(l._payload));const s=f.Children.toArray(l),a=s.find(hw);if(a){const u=a.props.children,d=s.map(p=>p===a?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:p);return c.jsx(t,{...i,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,d):null})}return c.jsx(t,{...i,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}var wr=pi("Slot");function pw(e){const t=f.forwardRef((n,r)=>{let{children:o,...l}=n;if(km(o)&&typeof Fl=="function"&&(o=Fl(o._payload)),f.isValidElement(o)){const i=vw(o),s=gw(l,o.props);return o.type!==f.Fragment&&(s.ref=r?ci(r,i):i),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var mw=Symbol("radix.slottable");function hw(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===mw}function gw(e,t){const n={...t};for(const r in t){const o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...s)=>{const a=l(...s);return o(...s),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...l}:r==="className"&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function vw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const yw=xo("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),co=f.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},l)=>{const i=r?wr:"button";return c.jsx(i,{className:D(yw({variant:t,size:n,className:e})),ref:l,...o})});co.displayName="Button";function Ji(e){const t=xw(e),n=ww(e);return{raw:e,metadata:t,fileContents:n}}function xw(e){if(!e.includes("METADATA: IMPORT GRAPH"))return null;const t=[],n=[],r=[],o={},l=/METADATA: IMPORT GRAPH\n={80}\n([\s\S]*?)(?=\n\n={80}\nMETADATA:|$)/g,i=[...e.matchAll(l)],s=i.length>0?i[i.length-1]:null;if(s){const w=s[1].trim();let v="";for(const b of w.split(`
191
+ `)){const g=b.match(/^([^\s].+):$/);if(g){v=g[1];continue}const h=b.match(/^\s+(?:→|->)\s*(.+)$/);h&&v&&n.push({source:v,target:h[1]})}}const a=/METADATA: EXPORT INDEX\n={80}\n([\s\S]*?)(?=\n\n={80}\nMETADATA:|$)/g,u=[...e.matchAll(a)],d=u.length>0?u[u.length-1]:null;if(d){const w=d[1].trim().split(`
192
+ `);for(const v of w){const b=v.match(/^([^:]+):\s*(.+)$/);if(b){const g=b[1].trim(),x=b[2].trim().split(",").map(S=>S.trim());x.length>0&&(o[g]=x[0]),r.push({file:g,symbols:x})}}}const p=e.match(/METADATA: FILE EXPORTS\n={80}\n([\s\S]*?)(?=\n\n={80}\nMETADATA:|={80}\nFILE:|$)/);if(p){const w=p[1].trim().split(`
193
+ `);for(const v of w){const b=v.match(/^([^:]+):\d+\s*-\s*\w+\s+(\S+)/);if(b){const g=b[1].trim(),h=b[2].split(" ")[0];o[h]=g}}}const m=/^={80}\nFILE: \.\/(.+?)\n={80}/gm;let y;for(;(y=m.exec(e))!==null;){const w=y[1],v=w.split(".").pop()||"",b=y.index+y[0].length,g=e.indexOf(`
194
+ ================================================================================
195
+ FILE:`,b),h=e.indexOf(`
196
+ METADATA:`,b),x=Math.min(g===-1?e.length:g,h===-1?e.length:h),C=e.slice(b,x).split(`
197
+ `).length-1;t.push({path:w,lines:C,extension:v})}return{files:t,imports:n,exports:r,symbolIndex:o}}function ww(e){const t=new Map,n="=".repeat(80),r=e.split(n);for(let o=0;o<r.length;o++){const i=r[o].match(/^\nFILE: \.\/(.+?)\n$/);if(i&&o+1<r.length){const s=i[1];let a=r[o+1];a.startsWith(`
198
+ `)&&(a=a.slice(1)),a.endsWith(`
199
+ `)&&(a=a.slice(0,-1)),t.set(s,a)}}if(t.size===0){const o=/^={80}\n\/\/ File: (.+?) \(\d+ lines\)\n={80}\n([\s\S]*?)(?=^={80}|$)/gm;let l;for(;(l=o.exec(e))!==null;)t.set(l[1],l[2].trim())}return t}function Sw(e){var r;const t={name:"root",path:"",type:"directory",children:[]};for(const o of e){const l=o.path.split("/");let i=t;for(let s=0;s<l.length;s++){const a=l[s],u=s===l.length-1,d=l.slice(0,s+1).join("/");let p=(r=i.children)==null?void 0:r.find(m=>m.name===a);p||(p={name:a,path:d,type:u?"file":"directory",children:u?void 0:[],extension:u?o.extension:void 0,lines:u?o.lines:void 0},i.children=i.children||[],i.children.push(p)),i=p}}const n=o=>{o.children&&(o.children.sort((l,i)=>l.type!==i.type?l.type==="directory"?-1:1:l.name.localeCompare(i.name)),o.children.forEach(n))};return n(t),t}function bw(e,t,n={}){const{caseSensitive:r=!1,maxResults:o=100}=n,l=[],i=new RegExp(t,r?"g":"gi");for(const[s,a]of e.fileContents){const u=a.split(`
200
+ `);for(let d=0;d<u.length;d++){if(i.test(u[d])&&(l.push({file:s,line:d+1,content:u[d].trim()}),l.length>=o))return l;i.lastIndex=0}}return l}function Em(e){return{ts:"#3178c6",tsx:"#3178c6",js:"#f7df1e",jsx:"#61dafb",py:"#3776ab",rs:"#dea584",go:"#00add8",java:"#b07219",rb:"#cc342d",php:"#777bb4",md:"#083fa1",json:"#292929",css:"#264de4",scss:"#c6538c",html:"#e34c26"}[e]||"#8b949e"}function Nm({node:e,depth:t,onFileSelect:n,selectedFile:r,expandedPaths:o,toggleExpanded:l}){const i=o.has(e.path),s=r===e.path,a=e.children&&e.children.length>0,u=()=>{e.type==="directory"?l(e.path):n&&n(e.path)},d=()=>{if(e.type==="directory")return i?c.jsx(kx,{className:"h-4 w-4 text-muted-foreground"}):c.jsx(Rx,{className:"h-4 w-4 text-muted-foreground"});const p=e.extension?Em(e.extension):void 0;return c.jsx(bx,{className:"h-4 w-4",style:p?{color:p}:void 0})};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:D("flex items-center gap-1 px-2 py-1 cursor-pointer rounded-sm transition-colors",s?"bg-accent text-accent-foreground":"hover:bg-muted/50"),style:{paddingLeft:`${t*12+8}px`},onClick:u,children:[e.type==="directory"&&c.jsx("span",{className:"text-muted-foreground",children:i?c.jsx(px,{className:"h-3 w-3"}):c.jsx(hx,{className:"h-3 w-3"})}),e.type==="file"&&c.jsx("span",{className:"w-3"}),d(),c.jsx("span",{className:"truncate flex-1 text-sm",children:e.name}),e.lines!==void 0&&c.jsx("span",{className:"text-xs text-muted-foreground tabular-nums",children:e.lines})]}),i&&a&&c.jsx("div",{children:e.children.map(p=>c.jsx(Nm,{node:p,depth:t+1,onFileSelect:n,selectedFile:r,expandedPaths:o,toggleExpanded:l},p.path))})]})}function Cw({tree:e,onFileSelect:t,selectedFile:n}){const[r,o]=f.useState(new Set([""])),l=f.useCallback(a=>{o(u=>{const d=new Set(u);return d.has(a)?d.delete(a):d.add(a),d})},[]),i=f.useCallback(()=>{const a=new Set,u=d=>{var p;d.type==="directory"&&(a.add(d.path),(p=d.children)==null||p.forEach(u))};u(e),o(a)},[e]),s=f.useCallback(()=>{o(new Set([""]))},[]);return!e.children||e.children.length===0?c.jsx("div",{className:"p-4 text-muted-foreground text-sm",children:"No files loaded. Drop a snapshot file or enter a path."}):c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsxs("div",{className:"flex gap-1 p-2 border-b",children:[c.jsxs(co,{variant:"ghost",size:"sm",onClick:i,className:"h-7 px-2 text-xs",children:[c.jsx(Ax,{className:"h-3 w-3 mr-1"}),"Expand"]}),c.jsxs(co,{variant:"ghost",size:"sm",onClick:s,className:"h-7 px-2 text-xs",children:[c.jsx(Mx,{className:"h-3 w-3 mr-1"}),"Collapse"]})]}),c.jsx(an,{className:"flex-1",children:c.jsx("div",{className:"py-1",children:e.children.map(a=>c.jsx(Nm,{node:a,depth:0,onFileSelect:t,selectedFile:n,expandedPaths:r,toggleExpanded:l},a.path))})})]})}function od({data:e,selectedFile:t,highlightLine:n}){const r=f.useMemo(()=>!e||!t?null:e.fileContents.get(t)||null,[e,t]),o=f.useMemo(()=>t&&t.split(".").pop()||"",[t]);if(!t)return c.jsx("div",{className:"flex items-center justify-center h-full text-muted-foreground",children:c.jsxs("div",{className:"text-center",children:[c.jsx(du,{className:"h-12 w-12 mx-auto mb-4 opacity-50"}),c.jsx("p",{children:"Select a file to view its contents"})]})});if(!r)return c.jsx("div",{className:"flex items-center justify-center h-full text-muted-foreground",children:c.jsxs("div",{className:"text-center",children:[c.jsx("p",{children:"File content not found"}),c.jsx("p",{className:"text-sm mt-2 font-mono",children:t})]})});const l=r.split(`
201
+ `),i=Em(o);return c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsxs("div",{className:"px-4 py-2 border-b flex items-center gap-2",children:[c.jsx("span",{className:"w-3 h-3 rounded-full",style:{backgroundColor:i}}),c.jsx("span",{className:"text-sm font-medium truncate flex-1",children:t}),c.jsxs(Pn,{variant:"secondary",className:"text-xs",children:[l.length," lines"]})]}),c.jsx(an,{className:"flex-1",children:c.jsx("table",{className:"w-full font-mono text-sm",children:c.jsx("tbody",{children:l.map((s,a)=>{const u=a+1,d=n===u;return c.jsxs("tr",{className:D("hover:bg-muted/50",d&&"bg-primary/10"),id:`line-${u}`,children:[c.jsx("td",{className:"px-4 py-0.5 text-right text-muted-foreground select-none w-12 border-r tabular-nums",children:u}),c.jsx("td",{className:"px-4 py-0.5 whitespace-pre overflow-x-auto",children:s||" "})]},u)})})})})]})}const vu=f.forwardRef(({className:e,type:t,...n},r)=>c.jsx("input",{type:t,className:D("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));vu.displayName="Input";var kw=wa[" useInsertionEffect ".trim().toString()]||_t;function yu({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,l,i]=Ew({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:o;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const p=d.current;p!==s&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=s},[s,r])}const u=f.useCallback(d=>{var p;if(s){const m=Nw(d)?d(e):d;m!==e&&((p=i.current)==null||p.call(i,m))}else l(d)},[s,e,l,i]);return[a,u]}function Ew({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),l=f.useRef(t);return kw(()=>{l.current=t},[t]),f.useEffect(()=>{var i;o.current!==n&&((i=l.current)==null||i.call(l,n),o.current=n)},[n,o]),[n,r,l]}function Nw(e){return typeof e=="function"}function Pw(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Pm(e){const[t,n]=f.useState(void 0);return _t(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const l=o[0];let i,s;if("borderBoxSize"in l){const a=l.borderBoxSize,u=Array.isArray(a)?a[0]:a;i=u.inlineSize,s=u.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var mi="Checkbox",[Rw]=wo(mi),[jw,xu]=Rw(mi);function _w(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:l,form:i,name:s,onCheckedChange:a,required:u,value:d="on",internal_do_not_use_render:p}=e,[m,y]=yu({prop:n,defaultProp:o??!1,onChange:a,caller:mi}),[w,v]=f.useState(null),[b,g]=f.useState(null),h=f.useRef(!1),x=w?!!i||!!w.closest("form"):!0,S={checked:m,disabled:l,setChecked:y,control:w,setControl:v,name:s,form:i,value:d,hasConsumerStoppedPropagationRef:h,required:u,defaultChecked:Zt(o)?!1:o,isFormControl:x,bubbleInput:b,setBubbleInput:g};return c.jsx(jw,{scope:t,...S,children:Tw(p)?p(S):r})}var Rm="CheckboxTrigger",jm=f.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:l,value:i,disabled:s,checked:a,required:u,setControl:d,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:y,bubbleInput:w}=xu(Rm,e),v=he(o,d),b=f.useRef(a);return f.useEffect(()=>{const g=l==null?void 0:l.form;if(g){const h=()=>p(b.current);return g.addEventListener("reset",h),()=>g.removeEventListener("reset",h)}},[l,p]),c.jsx(ue.button,{type:"button",role:"checkbox","aria-checked":Zt(a)?"mixed":a,"aria-required":u,"data-state":Mm(a),"data-disabled":s?"":void 0,disabled:s,value:i,...r,ref:v,onKeyDown:ne(t,g=>{g.key==="Enter"&&g.preventDefault()}),onClick:ne(n,g=>{p(h=>Zt(h)?!0:!h),w&&y&&(m.current=g.isPropagationStopped(),m.current||g.stopPropagation())})})});jm.displayName=Rm;var wu=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:l,required:i,disabled:s,value:a,onCheckedChange:u,form:d,...p}=e;return c.jsx(_w,{__scopeCheckbox:n,checked:o,defaultChecked:l,disabled:s,required:i,onCheckedChange:u,name:r,form:d,value:a,internal_do_not_use_render:({isFormControl:m})=>c.jsxs(c.Fragment,{children:[c.jsx(jm,{...p,ref:t,__scopeCheckbox:n}),m&&c.jsx(Om,{__scopeCheckbox:n})]})})});wu.displayName=mi;var _m="CheckboxIndicator",Tm=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,l=xu(_m,n);return c.jsx(it,{present:r||Zt(l.checked)||l.checked===!0,children:c.jsx(ue.span,{"data-state":Mm(l.checked),"data-disabled":l.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Tm.displayName=_m;var Am="CheckboxBubbleInput",Om=f.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:l,defaultChecked:i,required:s,disabled:a,name:u,value:d,form:p,bubbleInput:m,setBubbleInput:y}=xu(Am,e),w=he(n,y),v=Pw(l),b=Pm(r);f.useEffect(()=>{const h=m;if(!h)return;const x=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(x,"checked").set,N=!o.current;if(v!==l&&C){const E=new Event("click",{bubbles:N});h.indeterminate=Zt(l),C.call(h,Zt(l)?!1:l),h.dispatchEvent(E)}},[m,v,l,o]);const g=f.useRef(Zt(l)?!1:l);return c.jsx(ue.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??g.current,required:s,disabled:a,name:u,value:d,form:p,...t,tabIndex:-1,ref:w,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Om.displayName=Am;function Tw(e){return typeof e=="function"}function Zt(e){return e==="indeterminate"}function Mm(e){return Zt(e)?"indeterminate":e?"checked":"unchecked"}const Lm=f.forwardRef(({className:e,...t},n)=>c.jsx(wu,{ref:n,className:D("grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:c.jsx(Tm,{className:D("grid place-content-center text-current"),children:c.jsx(dx,{className:"h-4 w-4"})})}));Lm.displayName=wu.displayName;var Aw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ow=Aw.reduce((e,t)=>{const n=pi(`Primitive.${t}`),r=f.forwardRef((o,l)=>{const{asChild:i,...s}=o,a=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(a,{...s,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Mw="Label",Dm=f.forwardRef((e,t)=>c.jsx(Ow.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Dm.displayName=Mw;var Im=Dm;const Lw=xo("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),zm=f.forwardRef(({className:e,...t},n)=>c.jsx(Im,{ref:n,className:D(Lw(),e),...t}));zm.displayName=Im.displayName;function Dw({data:e,onFileSelect:t}){const[n,r]=f.useState(""),[o,l]=f.useState(!1),i=f.useMemo(()=>{if(!e||!n.trim()||n.length<2)return[];try{return bw(e,n,{caseSensitive:o,maxResults:100})}catch{return[]}},[e,n,o]),s=f.useMemo(()=>{const u=new Map;for(const d of i){const p=u.get(d.file)||[];p.push(d),u.set(d.file,p)}return u},[i]),a=(u,d)=>{t&&t(u,d)};return c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsxs("div",{className:"p-3 border-b space-y-3",children:[c.jsxs("div",{className:"relative",children:[c.jsx(Xp,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),c.jsx(vu,{type:"text",value:n,onChange:u=>r(u.target.value),placeholder:"Search in codebase... (regex supported)",className:"pl-9"})]}),c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(Lm,{id:"case-sensitive",checked:o,onCheckedChange:u=>l(u)}),c.jsx(zm,{htmlFor:"case-sensitive",className:"text-xs text-muted-foreground cursor-pointer",children:"Case sensitive"})]}),i.length>0&&c.jsxs(Pn,{variant:"secondary",className:"text-xs",children:[i.length," in ",s.size," file",s.size!==1?"s":""]})]})]}),c.jsxs(an,{className:"flex-1",children:[n.length>0&&n.length<2&&c.jsx("div",{className:"p-4 text-muted-foreground text-sm",children:"Type at least 2 characters to search"}),n.length>=2&&i.length===0&&c.jsxs("div",{className:"p-4 text-muted-foreground text-sm",children:['No results found for "',n,'"']}),Array.from(s.entries()).map(([u,d])=>c.jsxs("div",{className:"border-b",children:[c.jsxs("div",{className:"px-3 py-2 bg-muted/50 text-sm font-medium text-primary truncate flex items-center justify-between",children:[c.jsx("span",{className:"truncate",children:u}),c.jsx(Pn,{variant:"outline",className:"text-xs ml-2 shrink-0",children:d.length})]}),c.jsx("div",{className:"divide-y divide-border/50",children:d.map((p,m)=>c.jsx("div",{className:"px-3 py-2 hover:bg-muted/50 cursor-pointer transition-colors",onClick:()=>a(u,p.line),children:c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx("span",{className:"text-xs text-muted-foreground font-mono min-w-[40px] tabular-nums",children:p.line}),c.jsx("code",{className:"text-sm break-all",children:Iw(p.content,n,o)})]})},`${p.line}-${m}`))})]},u))]})]})}function Iw(e,t,n){try{const r=new RegExp(`(${t})`,n?"g":"gi");return e.split(r).map((l,i)=>r.test(l)?(r.lastIndex=0,c.jsx("span",{className:"bg-chart-4/30 text-chart-4 px-0.5 rounded",children:l},i)):l)}catch{return e}}function zw(e,t=[]){let n=[];function r(l,i){const s=f.createContext(i);s.displayName=l+"Context";const a=n.length;n=[...n,i];const u=p=>{var g;const{scope:m,children:y,...w}=p,v=((g=m==null?void 0:m[e])==null?void 0:g[a])||s,b=f.useMemo(()=>w,Object.values(w));return c.jsx(v.Provider,{value:b,children:y})};u.displayName=l+"Provider";function d(p,m){var v;const y=((v=m==null?void 0:m[e])==null?void 0:v[a])||s,w=f.useContext(y);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${l}\``)}return[u,d]}const o=()=>{const l=n.map(i=>f.createContext(i));return function(s){const a=(s==null?void 0:s[e])||l;return f.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,Fw(o,...t)]}function Fw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(l){const i=r.reduce((s,{useScope:a,scopeName:u})=>{const p=a(l)[`__scope${u}`];return{...s,...p}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var $w=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fm=$w.reduce((e,t)=>{const n=pi(`Primitive.${t}`),r=f.forwardRef((o,l)=>{const{asChild:i,...s}=o,a=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(a,{...s,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Su="Progress",bu=100,[Ww]=zw(Su),[Vw,Bw]=Ww(Su),$m=f.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:l=Hw,...i}=e;(o||o===0)&&!ld(o)&&console.error(Uw(`${o}`,"Progress"));const s=ld(o)?o:bu;r!==null&&!id(r,s)&&console.error(Gw(`${r}`,"Progress"));const a=id(r,s)?r:null,u=$l(a)?l(a,s):void 0;return c.jsx(Vw,{scope:n,value:a,max:s,children:c.jsx(Fm.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":$l(a)?a:void 0,"aria-valuetext":u,role:"progressbar","data-state":Bm(a,s),"data-value":a??void 0,"data-max":s,...i,ref:t})})});$m.displayName=Su;var Wm="ProgressIndicator",Vm=f.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=Bw(Wm,n);return c.jsx(Fm.div,{"data-state":Bm(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});Vm.displayName=Wm;function Hw(e,t){return`${Math.round(e/t*100)}%`}function Bm(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function $l(e){return typeof e=="number"}function ld(e){return $l(e)&&!isNaN(e)&&e>0}function id(e,t){return $l(e)&&!isNaN(e)&&e<=t&&e>=0}function Uw(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${bu}\`.`}function Gw(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
202
+ - a positive number
203
+ - less than the value passed to \`max\` (or ${bu} if no \`max\` prop is set)
204
+ - \`null\` or \`undefined\` if the progress is indeterminate.
205
+
206
+ Defaulting to \`null\`.`}var Hm=$m,Yw=Vm;const Um=f.forwardRef(({className:e,value:t,...n},r)=>c.jsx(Hm,{ref:r,className:D("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:c.jsx(Yw,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Um.displayName=Hm.displayName;function Ho({title:e,value:t,description:n,icon:r}){return c.jsxs(en,{children:[c.jsxs(En,{className:"flex flex-row items-center justify-between pb-2",children:[c.jsx(Nn,{className:"text-sm font-medium text-muted-foreground",children:e}),c.jsx("div",{className:"text-muted-foreground",children:r})]}),c.jsxs(tn,{children:[c.jsx("div",{className:"text-2xl font-bold",children:t.toLocaleString()}),n&&c.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:n})]})]})}function Xw({metadata:e}){if(!e)return c.jsx("div",{className:"p-4 text-muted-foreground text-sm",children:"No snapshot loaded"});const t=e.files.length,n=e.files.reduce((a,u)=>a+u.lines,0),r=e.imports.length,o=Object.keys(e.symbolIndex).length,l=new Map;for(const a of e.files){const u=a.extension||"other",d=l.get(u)||{count:0,lines:0};l.set(u,{count:d.count+1,lines:d.lines+a.lines})}const i=Array.from(l.entries()).sort((a,u)=>u[1].count-a[1].count).slice(0,8),s=Math.max(...i.map(([,a])=>a.count));return c.jsx(an,{className:"h-full",children:c.jsxs("div",{className:"p-4 space-y-6",children:[c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsx(Ho,{title:"Files",value:t,icon:c.jsx(du,{className:"h-4 w-4"})}),c.jsx(Ho,{title:"Lines",value:n,icon:c.jsx(xx,{className:"h-4 w-4"})}),c.jsx(Ho,{title:"Imports",value:r,icon:c.jsx(_x,{className:"h-4 w-4"})}),c.jsx(Ho,{title:"Symbols",value:o,icon:c.jsx(Dx,{className:"h-4 w-4"})})]}),c.jsxs(en,{children:[c.jsxs(En,{children:[c.jsx(Nn,{className:"text-base",children:"File Types"}),c.jsx(dr,{children:"Distribution by extension"})]}),c.jsx(tn,{className:"space-y-4",children:i.map(([a,u])=>{const d=u.count/s*100;return c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{className:"flex items-center justify-between text-sm",children:[c.jsxs("span",{className:"font-mono",children:[".",a]}),c.jsxs("span",{className:"text-muted-foreground",children:[u.count," files"]})]}),c.jsx(Um,{value:d,className:"h-2"})]},a)})})]}),c.jsxs(en,{children:[c.jsxs(En,{children:[c.jsx(Nn,{className:"text-base",children:"Exports"}),c.jsx(dr,{children:"Exported symbols across files"})]}),c.jsx(tn,{children:e.exports.length>0?c.jsxs("p",{className:"text-sm text-muted-foreground",children:[e.exports.reduce((a,u)=>a+u.symbols.length,0).toLocaleString()," symbols exported across"," ",e.exports.length," files"]}):c.jsx("p",{className:"text-sm text-muted-foreground",children:"No export data available (basic snapshot)"})})]})]})})}const es=768;function Qw(){const[e,t]=f.useState(void 0);return f.useEffect(()=>{const n=window.matchMedia(`(max-width: ${es-1}px)`),r=()=>{t(window.innerWidth<es)};return n.addEventListener("change",r),t(window.innerWidth<es),()=>n.removeEventListener("change",r)},[]),!!e}var Kw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Zw=Kw.reduce((e,t)=>{const n=pi(`Primitive.${t}`),r=f.forwardRef((o,l)=>{const{asChild:i,...s}=o,a=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(a,{...s,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),qw="Separator",sd="horizontal",Jw=["horizontal","vertical"],Gm=f.forwardRef((e,t)=>{const{decorative:n,orientation:r=sd,...o}=e,l=e1(r)?r:sd,s=n?{role:"none"}:{"aria-orientation":l==="vertical"?l:void 0,role:"separator"};return c.jsx(Zw.div,{"data-orientation":l,...s,...o,ref:t})});Gm.displayName=qw;function e1(e){return Jw.includes(e)}var Ym=Gm;const Wl=f.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>c.jsx(Ym,{ref:o,decorative:n,orientation:t,className:D("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Wl.displayName=Ym.displayName;var t1=wa[" useId ".trim().toString()]||(()=>{}),n1=0;function al(e){const[t,n]=f.useState(t1());return _t(()=>{n(r=>r??String(n1++))},[e]),e||(t?`radix-${t}`:"")}function r1(e,t=globalThis==null?void 0:globalThis.document){const n=De(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var o1="DismissableLayer",ia="dismissableLayer.update",l1="dismissableLayer.pointerDownOutside",i1="dismissableLayer.focusOutside",ad,Xm=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Cu=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:i,onDismiss:s,...a}=e,u=f.useContext(Xm),[d,p]=f.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=f.useState({}),w=he(t,E=>p(E)),v=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=v.indexOf(b),h=d?v.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=h>=g,C=u1(E=>{const P=E.target,j=[...u.branches].some(_=>_.contains(P));!S||j||(o==null||o(E),i==null||i(E),E.defaultPrevented||s==null||s())},m),N=c1(E=>{const P=E.target;[...u.branches].some(_=>_.contains(P))||(l==null||l(E),i==null||i(E),E.defaultPrevented||s==null||s())},m);return r1(E=>{h===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&s&&(E.preventDefault(),s()))},m),f.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ad=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),ud(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=ad)}},[d,m,n,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),ud())},[d,u]),f.useEffect(()=>{const E=()=>y({});return document.addEventListener(ia,E),()=>document.removeEventListener(ia,E)},[]),c.jsx(ue.div,{...a,ref:w,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:ne(e.onFocusCapture,N.onFocusCapture),onBlurCapture:ne(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:ne(e.onPointerDownCapture,C.onPointerDownCapture)})});Cu.displayName=o1;var s1="DismissableLayerBranch",a1=f.forwardRef((e,t)=>{const n=f.useContext(Xm),r=f.useRef(null),o=he(t,r);return f.useEffect(()=>{const l=r.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),c.jsx(ue.div,{...e,ref:o})});a1.displayName=s1;function u1(e,t=globalThis==null?void 0:globalThis.document){const n=De(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const l=s=>{if(s.target&&!r.current){let a=function(){Qm(l1,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",l),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function c1(e,t=globalThis==null?void 0:globalThis.document){const n=De(e),r=f.useRef(!1);return f.useEffect(()=>{const o=l=>{l.target&&!r.current&&Qm(i1,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ud(){const e=new CustomEvent(ia);document.dispatchEvent(e)}function Qm(e,t,n,{discrete:r}){const o=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?W0(o,l):o.dispatchEvent(l)}var ts="focusScope.autoFocusOnMount",ns="focusScope.autoFocusOnUnmount",cd={bubbles:!1,cancelable:!0},d1="FocusScope",Km=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...i}=e,[s,a]=f.useState(null),u=De(o),d=De(l),p=f.useRef(null),m=he(t,v=>a(v)),y=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let v=function(x){if(y.paused||!s)return;const S=x.target;s.contains(S)?p.current=S:Dt(p.current,{select:!0})},b=function(x){if(y.paused||!s)return;const S=x.relatedTarget;S!==null&&(s.contains(S)||Dt(p.current,{select:!0}))},g=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&Dt(s)};document.addEventListener("focusin",v),document.addEventListener("focusout",b);const h=new MutationObserver(g);return s&&h.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",b),h.disconnect()}}},[r,s,y.paused]),f.useEffect(()=>{if(s){fd.add(y);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(ts,cd);s.addEventListener(ts,u),s.dispatchEvent(g),g.defaultPrevented||(f1(v1(Zm(s)),{select:!0}),document.activeElement===v&&Dt(s))}return()=>{s.removeEventListener(ts,u),setTimeout(()=>{const g=new CustomEvent(ns,cd);s.addEventListener(ns,d),s.dispatchEvent(g),g.defaultPrevented||Dt(v??document.body,{select:!0}),s.removeEventListener(ns,d),fd.remove(y)},0)}}},[s,u,d,y]);const w=f.useCallback(v=>{if(!n&&!r||y.paused)return;const b=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(b&&g){const h=v.currentTarget,[x,S]=p1(h);x&&S?!v.shiftKey&&g===S?(v.preventDefault(),n&&Dt(x,{select:!0})):v.shiftKey&&g===x&&(v.preventDefault(),n&&Dt(S,{select:!0})):g===h&&v.preventDefault()}},[n,r,y.paused]);return c.jsx(ue.div,{tabIndex:-1,...i,ref:m,onKeyDown:w})});Km.displayName=d1;function f1(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Dt(r,{select:t}),document.activeElement!==n)return}function p1(e){const t=Zm(e),n=dd(t,e),r=dd(t.reverse(),e);return[n,r]}function Zm(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function dd(e,t){for(const n of e)if(!m1(n,{upTo:t}))return n}function m1(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function h1(e){return e instanceof HTMLInputElement&&"select"in e}function Dt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&h1(e)&&t&&e.select()}}var fd=g1();function g1(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=pd(e,t),e.unshift(t)},remove(t){var n;e=pd(e,t),(n=e[0])==null||n.resume()}}}function pd(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function v1(e){return e.filter(t=>t.tagName!=="A")}var y1="Portal",ku=f.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,l]=f.useState(!1);_t(()=>l(!0),[]);const i=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?qy.createPortal(c.jsx(ue.div,{...r,ref:t}),i):null});ku.displayName=y1;var rs=0;function x1(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??md()),document.body.insertAdjacentElement("beforeend",e[1]??md()),rs++,()=>{rs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),rs--}},[])}function md(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ft=function(){return ft=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},ft.apply(this,arguments)};function qm(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function w1(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,l;r<o;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))}var ul="right-scroll-bar-position",cl="width-before-scroll-bar",S1="with-scroll-bars-hidden",b1="--removed-body-scroll-bar-size";function os(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function C1(e,t){var n=f.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var k1=typeof window<"u"?f.useLayoutEffect:f.useEffect,hd=new WeakMap;function E1(e,t){var n=C1(null,function(r){return e.forEach(function(o){return os(o,r)})});return k1(function(){var r=hd.get(n);if(r){var o=new Set(r),l=new Set(e),i=n.current;o.forEach(function(s){l.has(s)||os(s,null)}),l.forEach(function(s){o.has(s)||os(s,i)})}hd.set(n,e)},[e]),n}function N1(e){return e}function P1(e,t){t===void 0&&(t=N1);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var i=t(l,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(l){for(r=!0;n.length;){var i=n;n=[],i.forEach(l)}n={push:function(s){return l(s)},filter:function(){return n}}},assignMedium:function(l){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(l),i=n}var a=function(){var d=i;i=[],d.forEach(l)},u=function(){return Promise.resolve().then(a)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return o}function R1(e){e===void 0&&(e={});var t=P1(null);return t.options=ft({async:!0,ssr:!1},e),t}var Jm=function(e){var t=e.sideCar,n=qm(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,ft({},n))};Jm.isSideCarExport=!0;function j1(e,t){return e.useMedium(t),Jm}var eh=R1(),ls=function(){},hi=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:ls,onWheelCapture:ls,onTouchMoveCapture:ls}),o=r[0],l=r[1],i=e.forwardProps,s=e.children,a=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,m=e.sideCar,y=e.noRelative,w=e.noIsolation,v=e.inert,b=e.allowPinchZoom,g=e.as,h=g===void 0?"div":g,x=e.gapMode,S=qm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=m,N=E1([n,t]),E=ft(ft({},S),o);return f.createElement(f.Fragment,null,d&&f.createElement(C,{sideCar:eh,removeScrollBar:u,shards:p,noRelative:y,noIsolation:w,inert:v,setCallbacks:l,allowPinchZoom:!!b,lockRef:n,gapMode:x}),i?f.cloneElement(f.Children.only(s),ft(ft({},E),{ref:N})):f.createElement(h,ft({},E,{className:a,ref:N}),s))});hi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};hi.classNames={fullWidth:cl,zeroRight:ul};var _1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function T1(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=_1();return t&&e.setAttribute("nonce",t),e}function A1(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function O1(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var M1=function(){var e=0,t=null;return{add:function(n){e==0&&(t=T1())&&(A1(t,n),O1(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},L1=function(){var e=M1();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},th=function(){var e=L1(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},D1={left:0,top:0,right:0,gap:0},is=function(e){return parseInt(e||"",10)||0},I1=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[is(n),is(r),is(o)]},z1=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return D1;var t=I1(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},F1=th(),nr="data-scroll-locked",$1=function(e,t,n,r){var o=e.left,l=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
207
+ .`.concat(S1,` {
208
+ overflow: hidden `).concat(r,`;
209
+ padding-right: `).concat(s,"px ").concat(r,`;
210
+ }
211
+ body[`).concat(nr,`] {
212
+ overflow: hidden `).concat(r,`;
213
+ overscroll-behavior: contain;
214
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
215
+ padding-left: `.concat(o,`px;
216
+ padding-top: `).concat(l,`px;
217
+ padding-right: `).concat(i,`px;
218
+ margin-left:0;
219
+ margin-top:0;
220
+ margin-right: `).concat(s,"px ").concat(r,`;
221
+ `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
222
+ }
223
+
224
+ .`).concat(ul,` {
225
+ right: `).concat(s,"px ").concat(r,`;
226
+ }
227
+
228
+ .`).concat(cl,` {
229
+ margin-right: `).concat(s,"px ").concat(r,`;
230
+ }
231
+
232
+ .`).concat(ul," .").concat(ul,` {
233
+ right: 0 `).concat(r,`;
234
+ }
235
+
236
+ .`).concat(cl," .").concat(cl,` {
237
+ margin-right: 0 `).concat(r,`;
238
+ }
239
+
240
+ body[`).concat(nr,`] {
241
+ `).concat(b1,": ").concat(s,`px;
242
+ }
243
+ `)},gd=function(){var e=parseInt(document.body.getAttribute(nr)||"0",10);return isFinite(e)?e:0},W1=function(){f.useEffect(function(){return document.body.setAttribute(nr,(gd()+1).toString()),function(){var e=gd()-1;e<=0?document.body.removeAttribute(nr):document.body.setAttribute(nr,e.toString())}},[])},V1=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;W1();var l=f.useMemo(function(){return z1(o)},[o]);return f.createElement(F1,{styles:$1(l,!t,o,n?"":"!important")})},sa=!1;if(typeof window<"u")try{var Uo=Object.defineProperty({},"passive",{get:function(){return sa=!0,!0}});window.addEventListener("test",Uo,Uo),window.removeEventListener("test",Uo,Uo)}catch{sa=!1}var Ln=sa?{passive:!1}:!1,B1=function(e){return e.tagName==="TEXTAREA"},nh=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!B1(e)&&n[t]==="visible")},H1=function(e){return nh(e,"overflowY")},U1=function(e){return nh(e,"overflowX")},vd=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=rh(e,r);if(o){var l=oh(e,r),i=l[1],s=l[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},G1=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Y1=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},rh=function(e,t){return e==="v"?H1(t):U1(t)},oh=function(e,t){return e==="v"?G1(t):Y1(t)},X1=function(e,t){return e==="h"&&t==="rtl"?-1:1},Q1=function(e,t,n,r,o){var l=X1(e,window.getComputedStyle(t).direction),i=l*r,s=n.target,a=t.contains(s),u=!1,d=i>0,p=0,m=0;do{if(!s)break;var y=oh(e,s),w=y[0],v=y[1],b=y[2],g=v-b-l*w;(w||g)&&rh(e,s)&&(p+=g,m+=w);var h=s.parentNode;s=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!a&&s!==document.body||a&&(t.contains(s)||t===s));return(d&&Math.abs(p)<1||!d&&Math.abs(m)<1)&&(u=!0),u},Go=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},yd=function(e){return[e.deltaX,e.deltaY]},xd=function(e){return e&&"current"in e?e.current:e},K1=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Z1=function(e){return`
244
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
245
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
246
+ `)},q1=0,Dn=[];function J1(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(q1++)[0],l=f.useState(th)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=w1([e.lockRef.current],(e.shards||[]).map(xd),!0).filter(Boolean);return v.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=f.useCallback(function(v,b){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!i.current.allowPinchZoom;var g=Go(v),h=n.current,x="deltaX"in v?v.deltaX:h[0]-g[0],S="deltaY"in v?v.deltaY:h[1]-g[1],C,N=v.target,E=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in v&&E==="h"&&N.type==="range")return!1;var P=window.getSelection(),j=P&&P.anchorNode,_=j?j===N||j.contains(N):!1;if(_)return!1;var I=vd(E,N);if(!I)return!0;if(I?C=E:(C=E==="v"?"h":"v",I=vd(E,N)),!I)return!1;if(!r.current&&"changedTouches"in v&&(x||S)&&(r.current=C),!C)return!0;var B=r.current||C;return Q1(B,b,v,B==="h"?x:S)},[]),a=f.useCallback(function(v){var b=v;if(!(!Dn.length||Dn[Dn.length-1]!==l)){var g="deltaY"in b?yd(b):Go(b),h=t.current.filter(function(C){return C.name===b.type&&(C.target===b.target||b.target===C.shadowParent)&&K1(C.delta,g)})[0];if(h&&h.should){b.cancelable&&b.preventDefault();return}if(!h){var x=(i.current.shards||[]).map(xd).filter(Boolean).filter(function(C){return C.contains(b.target)}),S=x.length>0?s(b,x[0]):!i.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),u=f.useCallback(function(v,b,g,h){var x={name:v,delta:b,target:g,should:h,shadowParent:eS(g)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),d=f.useCallback(function(v){n.current=Go(v),r.current=void 0},[]),p=f.useCallback(function(v){u(v.type,yd(v),v.target,s(v,e.lockRef.current))},[]),m=f.useCallback(function(v){u(v.type,Go(v),v.target,s(v,e.lockRef.current))},[]);f.useEffect(function(){return Dn.push(l),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",a,Ln),document.addEventListener("touchmove",a,Ln),document.addEventListener("touchstart",d,Ln),function(){Dn=Dn.filter(function(v){return v!==l}),document.removeEventListener("wheel",a,Ln),document.removeEventListener("touchmove",a,Ln),document.removeEventListener("touchstart",d,Ln)}},[]);var y=e.removeScrollBar,w=e.inert;return f.createElement(f.Fragment,null,w?f.createElement(l,{styles:Z1(o)}):null,y?f.createElement(V1,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function eS(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const tS=j1(eh,J1);var lh=f.forwardRef(function(e,t){return f.createElement(hi,ft({},e,{ref:t,sideCar:tS}))});lh.classNames=hi.classNames;var nS=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},In=new WeakMap,Yo=new WeakMap,Xo={},ss=0,ih=function(e){return e&&(e.host||ih(e.parentNode))},rS=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ih(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},oS=function(e,t,n,r){var o=rS(t,Array.isArray(e)?e:[e]);Xo[n]||(Xo[n]=new WeakMap);var l=Xo[n],i=[],s=new Set,a=new Set(o),u=function(p){!p||s.has(p)||(s.add(p),u(p.parentNode))};o.forEach(u);var d=function(p){!p||a.has(p)||Array.prototype.forEach.call(p.children,function(m){if(s.has(m))d(m);else try{var y=m.getAttribute(r),w=y!==null&&y!=="false",v=(In.get(m)||0)+1,b=(l.get(m)||0)+1;In.set(m,v),l.set(m,b),i.push(m),v===1&&w&&Yo.set(m,!0),b===1&&m.setAttribute(n,"true"),w||m.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",m,g)}})};return d(t),s.clear(),ss++,function(){i.forEach(function(p){var m=In.get(p)-1,y=l.get(p)-1;In.set(p,m),l.set(p,y),m||(Yo.has(p)||p.removeAttribute(r),Yo.delete(p)),y||p.removeAttribute(n)}),ss--,ss||(In=new WeakMap,In=new WeakMap,Yo=new WeakMap,Xo={})}},lS=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=nS(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),oS(r,o,n,"aria-hidden")):function(){return null}};function iS(e){const t=sS(e),n=f.forwardRef((r,o)=>{const{children:l,...i}=r,s=f.Children.toArray(l),a=s.find(uS);if(a){const u=a.props.children,d=s.map(p=>p===a?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:p);return c.jsx(t,{...i,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,d):null})}return c.jsx(t,{...i,ref:o,children:l})});return n.displayName=`${e}.Slot`,n}function sS(e){const t=f.forwardRef((n,r)=>{const{children:o,...l}=n;if(f.isValidElement(o)){const i=dS(o),s=cS(l,o.props);return o.type!==f.Fragment&&(s.ref=r?ci(r,i):i),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var aS=Symbol("radix.slottable");function uS(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===aS}function cS(e,t){const n={...t};for(const r in t){const o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...s)=>{const a=l(...s);return o(...s),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...l}:r==="className"&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function dS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var gi="Dialog",[sh]=wo(gi),[fS,st]=sh(gi),ah=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:l,modal:i=!0}=e,s=f.useRef(null),a=f.useRef(null),[u,d]=yu({prop:r,defaultProp:o??!1,onChange:l,caller:gi});return c.jsx(fS,{scope:t,triggerRef:s,contentRef:a,contentId:al(),titleId:al(),descriptionId:al(),open:u,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(p=>!p),[d]),modal:i,children:n})};ah.displayName=gi;var uh="DialogTrigger",pS=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=st(uh,n),l=he(t,o.triggerRef);return c.jsx(ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Pu(o.open),...r,ref:l,onClick:ne(e.onClick,o.onOpenToggle)})});pS.displayName=uh;var Eu="DialogPortal",[mS,ch]=sh(Eu,{forceMount:void 0}),dh=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,l=st(Eu,t);return c.jsx(mS,{scope:t,forceMount:n,children:f.Children.map(r,i=>c.jsx(it,{present:n||l.open,children:c.jsx(ku,{asChild:!0,container:o,children:i})}))})};dh.displayName=Eu;var Vl="DialogOverlay",fh=f.forwardRef((e,t)=>{const n=ch(Vl,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=st(Vl,e.__scopeDialog);return l.modal?c.jsx(it,{present:r||l.open,children:c.jsx(gS,{...o,ref:t})}):null});fh.displayName=Vl;var hS=iS("DialogOverlay.RemoveScroll"),gS=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=st(Vl,n);return c.jsx(lh,{as:hS,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(ue.div,{"data-state":Pu(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Rn="DialogContent",ph=f.forwardRef((e,t)=>{const n=ch(Rn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=st(Rn,e.__scopeDialog);return c.jsx(it,{present:r||l.open,children:l.modal?c.jsx(vS,{...o,ref:t}):c.jsx(yS,{...o,ref:t})})});ph.displayName=Rn;var vS=f.forwardRef((e,t)=>{const n=st(Rn,e.__scopeDialog),r=f.useRef(null),o=he(t,n.contentRef,r);return f.useEffect(()=>{const l=r.current;if(l)return lS(l)},[]),c.jsx(mh,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ne(e.onCloseAutoFocus,l=>{var i;l.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:ne(e.onPointerDownOutside,l=>{const i=l.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&l.preventDefault()}),onFocusOutside:ne(e.onFocusOutside,l=>l.preventDefault())})}),yS=f.forwardRef((e,t)=>{const n=st(Rn,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return c.jsx(mh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,l),l.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),l.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:l=>{var a,u;(a=e.onInteractOutside)==null||a.call(e,l),l.defaultPrevented||(r.current=!0,l.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=l.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&o.current&&l.preventDefault()}})}),mh=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:l,...i}=e,s=st(Rn,n),a=f.useRef(null),u=he(t,a);return x1(),c.jsxs(c.Fragment,{children:[c.jsx(Km,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:l,children:c.jsx(Cu,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Pu(s.open),...i,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(xS,{titleId:s.titleId}),c.jsx(SS,{contentRef:a,descriptionId:s.descriptionId})]})]})}),Nu="DialogTitle",hh=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=st(Nu,n);return c.jsx(ue.h2,{id:o.titleId,...r,ref:t})});hh.displayName=Nu;var gh="DialogDescription",vh=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=st(gh,n);return c.jsx(ue.p,{id:o.descriptionId,...r,ref:t})});vh.displayName=gh;var yh="DialogClose",xh=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=st(yh,n);return c.jsx(ue.button,{type:"button",...r,ref:t,onClick:ne(e.onClick,()=>o.onOpenChange(!1))})});xh.displayName=yh;function Pu(e){return e?"open":"closed"}var wh="DialogTitleWarning",[HC,Sh]=U0(wh,{contentName:Rn,titleName:Nu,docsSlug:"dialog"}),xS=({titleId:e})=>{const t=Sh(wh),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
247
+
248
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
249
+
250
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},wS="DialogDescriptionWarning",SS=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Sh(wS).contentName}}.`;return f.useEffect(()=>{var l;const o=(l=e.current)==null?void 0:l.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},bS=ah,CS=dh,bh=fh,Ch=ph,kh=hh,Eh=vh,kS=xh;const ES=bS,NS=CS,Nh=f.forwardRef(({className:e,...t},n)=>c.jsx(bh,{className:D("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Nh.displayName=bh.displayName;const PS=xo("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Ph=f.forwardRef(({side:e="right",className:t,children:n,...r},o)=>c.jsxs(NS,{children:[c.jsx(Nh,{}),c.jsxs(Ch,{ref:o,className:D(PS({side:e}),t),...r,children:[c.jsxs(kS,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[c.jsx(Qp,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));Ph.displayName=Ch.displayName;const Rh=({className:e,...t})=>c.jsx("div",{className:D("flex flex-col space-y-2 text-center sm:text-left",e),...t});Rh.displayName="SheetHeader";const jh=f.forwardRef(({className:e,...t},n)=>c.jsx(kh,{ref:n,className:D("text-lg font-semibold text-foreground",e),...t}));jh.displayName=kh.displayName;const _h=f.forwardRef(({className:e,...t},n)=>c.jsx(Eh,{ref:n,className:D("text-sm text-muted-foreground",e),...t}));_h.displayName=Eh.displayName;function wd({className:e,...t}){return c.jsx("div",{className:D("animate-pulse rounded-md bg-primary/10",e),...t})}const RS=["top","right","bottom","left"],nn=Math.min,Le=Math.max,Bl=Math.round,Qo=Math.floor,gt=e=>({x:e,y:e}),jS={left:"right",right:"left",bottom:"top",top:"bottom"},_S={start:"end",end:"start"};function aa(e,t,n){return Le(e,nn(t,n))}function Tt(e,t){return typeof e=="function"?e(t):e}function At(e){return e.split("-")[0]}function Sr(e){return e.split("-")[1]}function Ru(e){return e==="x"?"y":"x"}function ju(e){return e==="y"?"height":"width"}const TS=new Set(["top","bottom"]);function pt(e){return TS.has(At(e))?"y":"x"}function _u(e){return Ru(pt(e))}function AS(e,t,n){n===void 0&&(n=!1);const r=Sr(e),o=_u(e),l=ju(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(i=Hl(i)),[i,Hl(i)]}function OS(e){const t=Hl(e);return[ua(e),t,ua(t)]}function ua(e){return e.replace(/start|end/g,t=>_S[t])}const Sd=["left","right"],bd=["right","left"],MS=["top","bottom"],LS=["bottom","top"];function DS(e,t,n){switch(e){case"top":case"bottom":return n?t?bd:Sd:t?Sd:bd;case"left":case"right":return t?MS:LS;default:return[]}}function IS(e,t,n,r){const o=Sr(e);let l=DS(At(e),n==="start",r);return o&&(l=l.map(i=>i+"-"+o),t&&(l=l.concat(l.map(ua)))),l}function Hl(e){return e.replace(/left|right|bottom|top/g,t=>jS[t])}function zS(e){return{top:0,right:0,bottom:0,left:0,...e}}function Th(e){return typeof e!="number"?zS(e):{top:e,right:e,bottom:e,left:e}}function Ul(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Cd(e,t,n){let{reference:r,floating:o}=e;const l=pt(t),i=_u(t),s=ju(i),a=At(t),u=l==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let y;switch(a){case"top":y={x:d,y:r.y-o.height};break;case"bottom":y={x:d,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:p};break;case"left":y={x:r.x-o.width,y:p};break;default:y={x:r.x,y:r.y}}switch(Sr(t)){case"start":y[i]-=m*(n&&u?-1:1);break;case"end":y[i]+=m*(n&&u?-1:1);break}return y}async function FS(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:l,rects:i,elements:s,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:m=!1,padding:y=0}=Tt(t,e),w=Th(y),b=s[m?p==="floating"?"reference":"floating":p],g=Ul(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(b)))==null||n?b:b.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:a})),h=p==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s.floating)),S=await(l.isElement==null?void 0:l.isElement(x))?await(l.getScale==null?void 0:l.getScale(x))||{x:1,y:1}:{x:1,y:1},C=Ul(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:h,offsetParent:x,strategy:a}):h);return{top:(g.top-C.top+w.top)/S.y,bottom:(C.bottom-g.bottom+w.bottom)/S.y,left:(g.left-C.left+w.left)/S.x,right:(C.right-g.right+w.right)/S.x}}const $S=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:l=[],platform:i}=n,s=l.filter(Boolean),a=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=Cd(u,r,a),m=r,y={},w=0;for(let b=0;b<s.length;b++){var v;const{name:g,fn:h}=s[b],{x,y:S,data:C,reset:N}=await h({x:d,y:p,initialPlacement:r,placement:m,strategy:o,middlewareData:y,rects:u,platform:{...i,detectOverflow:(v=i.detectOverflow)!=null?v:FS},elements:{reference:e,floating:t}});d=x??d,p=S??p,y={...y,[g]:{...y[g],...C}},N&&w<=50&&(w++,typeof N=="object"&&(N.placement&&(m=N.placement),N.rects&&(u=N.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):N.rects),{x:d,y:p}=Cd(u,m,a)),b=-1)}return{x:d,y:p,placement:m,strategy:o,middlewareData:y}},WS=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:l,platform:i,elements:s,middlewareData:a}=t,{element:u,padding:d=0}=Tt(e,t)||{};if(u==null)return{};const p=Th(d),m={x:n,y:r},y=_u(o),w=ju(y),v=await i.getDimensions(u),b=y==="y",g=b?"top":"left",h=b?"bottom":"right",x=b?"clientHeight":"clientWidth",S=l.reference[w]+l.reference[y]-m[y]-l.floating[w],C=m[y]-l.reference[y],N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let E=N?N[x]:0;(!E||!await(i.isElement==null?void 0:i.isElement(N)))&&(E=s.floating[x]||l.floating[w]);const P=S/2-C/2,j=E/2-v[w]/2-1,_=nn(p[g],j),I=nn(p[h],j),B=_,G=E-v[w]-I,Y=E/2-v[w]/2+P,le=aa(B,Y,G),$=!a.arrow&&Sr(o)!=null&&Y!==le&&l.reference[w]/2-(Y<B?_:I)-v[w]/2<0,V=$?Y<B?Y-B:Y-G:0;return{[y]:m[y]+V,data:{[y]:le,centerOffset:Y-le-V,...$&&{alignmentOffset:V}},reset:$}}}),VS=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:l,rects:i,initialPlacement:s,platform:a,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,...b}=Tt(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const g=At(o),h=pt(s),x=At(s)===s,S=await(a.isRTL==null?void 0:a.isRTL(u.floating)),C=m||(x||!v?[Hl(s)]:OS(s)),N=w!=="none";!m&&N&&C.push(...IS(s,v,w,S));const E=[s,...C],P=await a.detectOverflow(t,b),j=[];let _=((r=l.flip)==null?void 0:r.overflows)||[];if(d&&j.push(P[g]),p){const Y=AS(o,i,S);j.push(P[Y[0]],P[Y[1]])}if(_=[..._,{placement:o,overflows:j}],!j.every(Y=>Y<=0)){var I,B;const Y=(((I=l.flip)==null?void 0:I.index)||0)+1,le=E[Y];if(le&&(!(p==="alignment"?h!==pt(le):!1)||_.every(k=>pt(k.placement)===h?k.overflows[0]>0:!0)))return{data:{index:Y,overflows:_},reset:{placement:le}};let $=(B=_.filter(V=>V.overflows[0]<=0).sort((V,k)=>V.overflows[1]-k.overflows[1])[0])==null?void 0:B.placement;if(!$)switch(y){case"bestFit":{var G;const V=(G=_.filter(k=>{if(N){const M=pt(k.placement);return M===h||M==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(M=>M>0).reduce((M,L)=>M+L,0)]).sort((k,M)=>k[1]-M[1])[0])==null?void 0:G[0];V&&($=V);break}case"initialPlacement":$=s;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function kd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ed(e){return RS.some(t=>e[t]>=0)}const BS=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...l}=Tt(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...l,elementContext:"reference"}),s=kd(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ed(s)}}}case"escaped":{const i=await r.detectOverflow(t,{...l,altBoundary:!0}),s=kd(i,n.floating);return{data:{escapedOffsets:s,escaped:Ed(s)}}}default:return{}}}}},Ah=new Set(["left","top"]);async function HS(e,t){const{placement:n,platform:r,elements:o}=e,l=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=At(n),s=Sr(n),a=pt(n)==="y",u=Ah.has(i)?-1:1,d=l&&a?-1:1,p=Tt(t,e);let{mainAxis:m,crossAxis:y,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof w=="number"&&(y=s==="end"?w*-1:w),a?{x:y*d,y:m*u}:{x:m*u,y:y*d}}const US=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:l,placement:i,middlewareData:s}=t,a=await HS(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:l+a.y,data:{...a,placement:i}}}}},GS=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:l}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:g=>{let{x:h,y:x}=g;return{x:h,y:x}}},...u}=Tt(e,t),d={x:n,y:r},p=await l.detectOverflow(t,u),m=pt(At(o)),y=Ru(m);let w=d[y],v=d[m];if(i){const g=y==="y"?"top":"left",h=y==="y"?"bottom":"right",x=w+p[g],S=w-p[h];w=aa(x,w,S)}if(s){const g=m==="y"?"top":"left",h=m==="y"?"bottom":"right",x=v+p[g],S=v-p[h];v=aa(x,v,S)}const b=a.fn({...t,[y]:w,[m]:v});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[y]:i,[m]:s}}}}}},YS=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:l,middlewareData:i}=t,{offset:s=0,mainAxis:a=!0,crossAxis:u=!0}=Tt(e,t),d={x:n,y:r},p=pt(o),m=Ru(p);let y=d[m],w=d[p];const v=Tt(s,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(a){const x=m==="y"?"height":"width",S=l.reference[m]-l.floating[x]+b.mainAxis,C=l.reference[m]+l.reference[x]-b.mainAxis;y<S?y=S:y>C&&(y=C)}if(u){var g,h;const x=m==="y"?"width":"height",S=Ah.has(At(o)),C=l.reference[p]-l.floating[x]+(S&&((g=i.offset)==null?void 0:g[p])||0)+(S?0:b.crossAxis),N=l.reference[p]+l.reference[x]+(S?0:((h=i.offset)==null?void 0:h[p])||0)-(S?b.crossAxis:0);w<C?w=C:w>N&&(w=N)}return{[m]:y,[p]:w}}}},XS=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:l,platform:i,elements:s}=t,{apply:a=()=>{},...u}=Tt(e,t),d=await i.detectOverflow(t,u),p=At(o),m=Sr(o),y=pt(o)==="y",{width:w,height:v}=l.floating;let b,g;p==="top"||p==="bottom"?(b=p,g=m===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(g=p,b=m==="end"?"top":"bottom");const h=v-d.top-d.bottom,x=w-d.left-d.right,S=nn(v-d[b],h),C=nn(w-d[g],x),N=!t.middlewareData.shift;let E=S,P=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=h),N&&!m){const _=Le(d.left,0),I=Le(d.right,0),B=Le(d.top,0),G=Le(d.bottom,0);y?P=w-2*(_!==0||I!==0?_+I:Le(d.left,d.right)):E=v-2*(B!==0||G!==0?B+G:Le(d.top,d.bottom))}await a({...t,availableWidth:P,availableHeight:E});const j=await i.getDimensions(s.floating);return w!==j.width||v!==j.height?{reset:{rects:!0}}:{}}}};function vi(){return typeof window<"u"}function br(e){return Oh(e)?(e.nodeName||"").toLowerCase():"#document"}function Fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xt(e){var t;return(t=(Oh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Oh(e){return vi()?e instanceof Node||e instanceof Fe(e).Node:!1}function ot(e){return vi()?e instanceof Element||e instanceof Fe(e).Element:!1}function vt(e){return vi()?e instanceof HTMLElement||e instanceof Fe(e).HTMLElement:!1}function Nd(e){return!vi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Fe(e).ShadowRoot}const QS=new Set(["inline","contents"]);function So(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!QS.has(o)}const KS=new Set(["table","td","th"]);function ZS(e){return KS.has(br(e))}const qS=[":popover-open",":modal"];function yi(e){return qS.some(t=>{try{return e.matches(t)}catch{return!1}})}const JS=["transform","translate","scale","rotate","perspective"],eb=["transform","translate","scale","rotate","perspective","filter"],tb=["paint","layout","strict","content"];function Tu(e){const t=Au(),n=ot(e)?lt(e):e;return JS.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||eb.some(r=>(n.willChange||"").includes(r))||tb.some(r=>(n.contain||"").includes(r))}function nb(e){let t=rn(e);for(;vt(t)&&!pr(t);){if(Tu(t))return t;if(yi(t))return null;t=rn(t)}return null}function Au(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const rb=new Set(["html","body","#document"]);function pr(e){return rb.has(br(e))}function lt(e){return Fe(e).getComputedStyle(e)}function xi(e){return ot(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rn(e){if(br(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nd(e)&&e.host||xt(e);return Nd(t)?t.host:t}function Mh(e){const t=rn(e);return pr(t)?e.ownerDocument?e.ownerDocument.body:e.body:vt(t)&&So(t)?t:Mh(t)}function fo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Mh(e),l=o===((r=e.ownerDocument)==null?void 0:r.body),i=Fe(o);if(l){const s=ca(i);return t.concat(i,i.visualViewport||[],So(o)?o:[],s&&n?fo(s):[])}return t.concat(o,fo(o,[],n))}function ca(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Lh(e){const t=lt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=vt(e),l=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=Bl(n)!==l||Bl(r)!==i;return s&&(n=l,r=i),{width:n,height:r,$:s}}function Ou(e){return ot(e)?e:e.contextElement}function rr(e){const t=Ou(e);if(!vt(t))return gt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:l}=Lh(t);let i=(l?Bl(n.width):n.width)/r,s=(l?Bl(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const ob=gt(0);function Dh(e){const t=Fe(e);return!Au()||!t.visualViewport?ob:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function lb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Fe(e)?!1:t}function jn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),l=Ou(e);let i=gt(1);t&&(r?ot(r)&&(i=rr(r)):i=rr(e));const s=lb(l,n,r)?Dh(l):gt(0);let a=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,d=o.width/i.x,p=o.height/i.y;if(l){const m=Fe(l),y=r&&ot(r)?Fe(r):r;let w=m,v=ca(w);for(;v&&r&&y!==w;){const b=rr(v),g=v.getBoundingClientRect(),h=lt(v),x=g.left+(v.clientLeft+parseFloat(h.paddingLeft))*b.x,S=g.top+(v.clientTop+parseFloat(h.paddingTop))*b.y;a*=b.x,u*=b.y,d*=b.x,p*=b.y,a+=x,u+=S,w=Fe(v),v=ca(w)}}return Ul({width:d,height:p,x:a,y:u})}function wi(e,t){const n=xi(e).scrollLeft;return t?t.left+n:jn(xt(e)).left+n}function Ih(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-wi(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function ib(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const l=o==="fixed",i=xt(r),s=t?yi(t.floating):!1;if(r===i||s&&l)return n;let a={scrollLeft:0,scrollTop:0},u=gt(1);const d=gt(0),p=vt(r);if((p||!p&&!l)&&((br(r)!=="body"||So(i))&&(a=xi(r)),vt(r))){const y=jn(r);u=rr(r),d.x=y.x+r.clientLeft,d.y=y.y+r.clientTop}const m=i&&!p&&!l?Ih(i,a):gt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+d.x+m.x,y:n.y*u.y-a.scrollTop*u.y+d.y+m.y}}function sb(e){return Array.from(e.getClientRects())}function ab(e){const t=xt(e),n=xi(e),r=e.ownerDocument.body,o=Le(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=Le(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+wi(e);const s=-n.scrollTop;return lt(r).direction==="rtl"&&(i+=Le(t.clientWidth,r.clientWidth)-o),{width:o,height:l,x:i,y:s}}const Pd=25;function ub(e,t){const n=Fe(e),r=xt(e),o=n.visualViewport;let l=r.clientWidth,i=r.clientHeight,s=0,a=0;if(o){l=o.width,i=o.height;const d=Au();(!d||d&&t==="fixed")&&(s=o.offsetLeft,a=o.offsetTop)}const u=wi(r);if(u<=0){const d=r.ownerDocument,p=d.body,m=getComputedStyle(p),y=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,w=Math.abs(r.clientWidth-p.clientWidth-y);w<=Pd&&(l-=w)}else u<=Pd&&(l+=u);return{width:l,height:i,x:s,y:a}}const cb=new Set(["absolute","fixed"]);function db(e,t){const n=jn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,l=vt(e)?rr(e):gt(1),i=e.clientWidth*l.x,s=e.clientHeight*l.y,a=o*l.x,u=r*l.y;return{width:i,height:s,x:a,y:u}}function Rd(e,t,n){let r;if(t==="viewport")r=ub(e,n);else if(t==="document")r=ab(xt(e));else if(ot(t))r=db(t,n);else{const o=Dh(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ul(r)}function zh(e,t){const n=rn(e);return n===t||!ot(n)||pr(n)?!1:lt(n).position==="fixed"||zh(n,t)}function fb(e,t){const n=t.get(e);if(n)return n;let r=fo(e,[],!1).filter(s=>ot(s)&&br(s)!=="body"),o=null;const l=lt(e).position==="fixed";let i=l?rn(e):e;for(;ot(i)&&!pr(i);){const s=lt(i),a=Tu(i);!a&&s.position==="fixed"&&(o=null),(l?!a&&!o:!a&&s.position==="static"&&!!o&&cb.has(o.position)||So(i)&&!a&&zh(e,i))?r=r.filter(d=>d!==i):o=s,i=rn(i)}return t.set(e,r),r}function pb(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?yi(t)?[]:fb(t,this._c):[].concat(n),r],s=i[0],a=i.reduce((u,d)=>{const p=Rd(t,d,o);return u.top=Le(p.top,u.top),u.right=nn(p.right,u.right),u.bottom=nn(p.bottom,u.bottom),u.left=Le(p.left,u.left),u},Rd(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function mb(e){const{width:t,height:n}=Lh(e);return{width:t,height:n}}function hb(e,t,n){const r=vt(t),o=xt(t),l=n==="fixed",i=jn(e,!0,l,t);let s={scrollLeft:0,scrollTop:0};const a=gt(0);function u(){a.x=wi(o)}if(r||!r&&!l)if((br(t)!=="body"||So(o))&&(s=xi(t)),r){const y=jn(t,!0,l,t);a.x=y.x+t.clientLeft,a.y=y.y+t.clientTop}else o&&u();l&&!r&&o&&u();const d=o&&!r&&!l?Ih(o,s):gt(0),p=i.left+s.scrollLeft-a.x-d.x,m=i.top+s.scrollTop-a.y-d.y;return{x:p,y:m,width:i.width,height:i.height}}function as(e){return lt(e).position==="static"}function jd(e,t){if(!vt(e)||lt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return xt(e)===n&&(n=n.ownerDocument.body),n}function Fh(e,t){const n=Fe(e);if(yi(e))return n;if(!vt(e)){let o=rn(e);for(;o&&!pr(o);){if(ot(o)&&!as(o))return o;o=rn(o)}return n}let r=jd(e,t);for(;r&&ZS(r)&&as(r);)r=jd(r,t);return r&&pr(r)&&as(r)&&!Tu(r)?n:r||nb(e)||n}const gb=async function(e){const t=this.getOffsetParent||Fh,n=this.getDimensions,r=await n(e.floating);return{reference:hb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function vb(e){return lt(e).direction==="rtl"}const yb={convertOffsetParentRelativeRectToViewportRelativeRect:ib,getDocumentElement:xt,getClippingRect:pb,getOffsetParent:Fh,getElementRects:gb,getClientRects:sb,getDimensions:mb,getScale:rr,isElement:ot,isRTL:vb};function $h(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xb(e,t){let n=null,r;const o=xt(e);function l(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),l();const u=e.getBoundingClientRect(),{left:d,top:p,width:m,height:y}=u;if(s||t(),!m||!y)return;const w=Qo(p),v=Qo(o.clientWidth-(d+m)),b=Qo(o.clientHeight-(p+y)),g=Qo(d),x={rootMargin:-w+"px "+-v+"px "+-b+"px "+-g+"px",threshold:Le(0,nn(1,a))||1};let S=!0;function C(N){const E=N[0].intersectionRatio;if(E!==a){if(!S)return i();E?i(!1,E):r=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!$h(u,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(C,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return i(!0),l}function wb(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=Ou(e),d=o||l?[...u?fo(u):[],...fo(t)]:[];d.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),l&&g.addEventListener("resize",n)});const p=u&&s?xb(u,n):null;let m=-1,y=null;i&&(y=new ResizeObserver(g=>{let[h]=g;h&&h.target===u&&y&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=y)==null||x.observe(t)})),n()}),u&&!a&&y.observe(u),y.observe(t));let w,v=a?jn(e):null;a&&b();function b(){const g=jn(e);v&&!$h(v,g)&&n(),v=g,w=requestAnimationFrame(b)}return n(),()=>{var g;d.forEach(h=>{o&&h.removeEventListener("scroll",n),l&&h.removeEventListener("resize",n)}),p==null||p(),(g=y)==null||g.disconnect(),y=null,a&&cancelAnimationFrame(w)}}const Sb=US,bb=GS,Cb=VS,kb=XS,Eb=BS,_d=WS,Nb=YS,Pb=(e,t,n)=>{const r=new Map,o={platform:yb,...n},l={...o.platform,_c:r};return $S(e,t,{...o,platform:l})};var Rb=typeof document<"u",jb=function(){},dl=Rb?f.useLayoutEffect:jb;function Gl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Gl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const l=o[r];if(!(l==="_owner"&&e.$$typeof)&&!Gl(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function Wh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Td(e,t){const n=Wh(e);return Math.round(t*n)/n}function us(e){const t=f.useRef(e);return dl(()=>{t.current=e}),t}function _b(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:i}={},transform:s=!0,whileElementsMounted:a,open:u}=e,[d,p]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,y]=f.useState(r);Gl(m,r)||y(r);const[w,v]=f.useState(null),[b,g]=f.useState(null),h=f.useCallback(k=>{k!==N.current&&(N.current=k,v(k))},[]),x=f.useCallback(k=>{k!==E.current&&(E.current=k,g(k))},[]),S=l||w,C=i||b,N=f.useRef(null),E=f.useRef(null),P=f.useRef(d),j=a!=null,_=us(a),I=us(o),B=us(u),G=f.useCallback(()=>{if(!N.current||!E.current)return;const k={placement:t,strategy:n,middleware:m};I.current&&(k.platform=I.current),Pb(N.current,E.current,k).then(M=>{const L={...M,isPositioned:B.current!==!1};Y.current&&!Gl(P.current,L)&&(P.current=L,ui.flushSync(()=>{p(L)}))})},[m,t,n,I,B]);dl(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,p(k=>({...k,isPositioned:!1})))},[u]);const Y=f.useRef(!1);dl(()=>(Y.current=!0,()=>{Y.current=!1}),[]),dl(()=>{if(S&&(N.current=S),C&&(E.current=C),S&&C){if(_.current)return _.current(S,C,G);G()}},[S,C,G,_,j]);const le=f.useMemo(()=>({reference:N,floating:E,setReference:h,setFloating:x}),[h,x]),$=f.useMemo(()=>({reference:S,floating:C}),[S,C]),V=f.useMemo(()=>{const k={position:n,left:0,top:0};if(!$.floating)return k;const M=Td($.floating,d.x),L=Td($.floating,d.y);return s?{...k,transform:"translate("+M+"px, "+L+"px)",...Wh($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:L}},[n,s,$.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:G,refs:le,elements:$,floatingStyles:V}),[d,G,le,$,V])}const Tb=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?_d({element:r.current,padding:o}).fn(n):{}:r?_d({element:r,padding:o}).fn(n):{}}}},Ab=(e,t)=>({...Sb(e),options:[e,t]}),Ob=(e,t)=>({...bb(e),options:[e,t]}),Mb=(e,t)=>({...Nb(e),options:[e,t]}),Lb=(e,t)=>({...Cb(e),options:[e,t]}),Db=(e,t)=>({...kb(e),options:[e,t]}),Ib=(e,t)=>({...Eb(e),options:[e,t]}),zb=(e,t)=>({...Tb(e),options:[e,t]});var Fb="Arrow",Vh=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...l}=e;return c.jsx(ue.svg,{...l,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Vh.displayName=Fb;var $b=Vh,Mu="Popper",[Bh,Hh]=wo(Mu),[Wb,Uh]=Bh(Mu),Gh=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return c.jsx(Wb,{scope:t,anchor:r,onAnchorChange:o,children:n})};Gh.displayName=Mu;var Yh="PopperAnchor",Xh=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,l=Uh(Yh,n),i=f.useRef(null),s=he(t,i),a=f.useRef(null);return f.useEffect(()=>{const u=a.current;a.current=(r==null?void 0:r.current)||i.current,u!==a.current&&l.onAnchorChange(a.current)}),r?null:c.jsx(ue.div,{...o,ref:s})});Xh.displayName=Yh;var Lu="PopperContent",[Vb,Bb]=Bh(Lu),Qh=f.forwardRef((e,t)=>{var X,Cr,un,cn,An,dn;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:l="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:y="optimized",onPlaced:w,...v}=e,b=Uh(Lu,n),[g,h]=f.useState(null),x=he(t,kr=>h(kr)),[S,C]=f.useState(null),N=Pm(S),E=(N==null?void 0:N.width)??0,P=(N==null?void 0:N.height)??0,j=r+(l!=="center"?"-"+l:""),_=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},I=Array.isArray(u)?u:[u],B=I.length>0,G={padding:_,boundary:I.filter(Ub),altBoundary:B},{refs:Y,floatingStyles:le,placement:$,isPositioned:V,middlewareData:k}=_b({strategy:"fixed",placement:j,whileElementsMounted:(...kr)=>wb(...kr,{animationFrame:y==="always"}),elements:{reference:b.anchor},middleware:[Ab({mainAxis:o+P,alignmentAxis:i}),a&&Ob({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Mb():void 0,...G}),a&&Lb({...G}),Db({...G,apply:({elements:kr,rects:zu,availableWidth:bg,availableHeight:Cg})=>{const{width:kg,height:Eg}=zu.reference,Co=kr.floating.style;Co.setProperty("--radix-popper-available-width",`${bg}px`),Co.setProperty("--radix-popper-available-height",`${Cg}px`),Co.setProperty("--radix-popper-anchor-width",`${kg}px`),Co.setProperty("--radix-popper-anchor-height",`${Eg}px`)}}),S&&zb({element:S,padding:s}),Gb({arrowWidth:E,arrowHeight:P}),m&&Ib({strategy:"referenceHidden",...G})]}),[M,L]=qh($),H=De(w);_t(()=>{V&&(H==null||H())},[V,H]);const q=(X=k.arrow)==null?void 0:X.x,ie=(Cr=k.arrow)==null?void 0:Cr.y,ee=((un=k.arrow)==null?void 0:un.centerOffset)!==0,[at,Be]=f.useState();return _t(()=>{g&&Be(window.getComputedStyle(g).zIndex)},[g]),c.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...le,transform:V?le.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:at,"--radix-popper-transform-origin":[(cn=k.transformOrigin)==null?void 0:cn.x,(An=k.transformOrigin)==null?void 0:An.y].join(" "),...((dn=k.hide)==null?void 0:dn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Vb,{scope:n,placedSide:M,onArrowChange:C,arrowX:q,arrowY:ie,shouldHideArrow:ee,children:c.jsx(ue.div,{"data-side":M,"data-align":L,...v,ref:x,style:{...v.style,animation:V?void 0:"none"}})})})});Qh.displayName=Lu;var Kh="PopperArrow",Hb={top:"bottom",right:"left",bottom:"top",left:"right"},Zh=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,l=Bb(Kh,r),i=Hb[l.placedSide];return c.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:c.jsx($b,{...o,ref:n,style:{...o.style,display:"block"}})})});Zh.displayName=Kh;function Ub(e){return e!==null}var Gb=e=>({name:"transformOrigin",options:e,fn(t){var b,g,h;const{placement:n,rects:r,middlewareData:o}=t,i=((b=o.arrow)==null?void 0:b.centerOffset)!==0,s=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[u,d]=qh(n),p={start:"0%",center:"50%",end:"100%"}[d],m=(((g=o.arrow)==null?void 0:g.x)??0)+s/2,y=(((h=o.arrow)==null?void 0:h.y)??0)+a/2;let w="",v="";return u==="bottom"?(w=i?p:`${m}px`,v=`${-a}px`):u==="top"?(w=i?p:`${m}px`,v=`${r.floating.height+a}px`):u==="right"?(w=`${-a}px`,v=i?p:`${y}px`):u==="left"&&(w=`${r.floating.width+a}px`,v=i?p:`${y}px`),{data:{x:w,y:v}}}});function qh(e){const[t,n="center"]=e.split("-");return[t,n]}var Yb=Gh,Xb=Xh,Qb=Qh,Kb=Zh,Zb=Symbol("radix.slottable");function qb(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Zb,t}var Jb=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),eC="VisuallyHidden",Jh=f.forwardRef((e,t)=>c.jsx(ue.span,{...e,ref:t,style:{...Jb,...e.style}}));Jh.displayName=eC;var tC=Jh,[Si]=wo("Tooltip",[Hh]),bi=Hh(),eg="TooltipProvider",nC=700,da="tooltip.open",[rC,Du]=Si(eg),tg=e=>{const{__scopeTooltip:t,delayDuration:n=nC,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:l}=e,i=f.useRef(!0),s=f.useRef(!1),a=f.useRef(0);return f.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),c.jsx(rC,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(a.current),i.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:f.useCallback(u=>{s.current=u},[]),disableHoverableContent:o,children:l})};tg.displayName=eg;var po="Tooltip",[oC,bo]=Si(po),ng=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:l,disableHoverableContent:i,delayDuration:s}=e,a=Du(po,e.__scopeTooltip),u=bi(t),[d,p]=f.useState(null),m=al(),y=f.useRef(0),w=i??a.disableHoverableContent,v=s??a.delayDuration,b=f.useRef(!1),[g,h]=yu({prop:r,defaultProp:o??!1,onChange:E=>{E?(a.onOpen(),document.dispatchEvent(new CustomEvent(da))):a.onClose(),l==null||l(E)},caller:po}),x=f.useMemo(()=>g?b.current?"delayed-open":"instant-open":"closed",[g]),S=f.useCallback(()=>{window.clearTimeout(y.current),y.current=0,b.current=!1,h(!0)},[h]),C=f.useCallback(()=>{window.clearTimeout(y.current),y.current=0,h(!1)},[h]),N=f.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{b.current=!0,h(!0),y.current=0},v)},[v,h]);return f.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),c.jsx(Yb,{...u,children:c.jsx(oC,{scope:t,contentId:m,open:g,stateAttribute:x,trigger:d,onTriggerChange:p,onTriggerEnter:f.useCallback(()=>{a.isOpenDelayedRef.current?N():S()},[a.isOpenDelayedRef,N,S]),onTriggerLeave:f.useCallback(()=>{w?C():(window.clearTimeout(y.current),y.current=0)},[C,w]),onOpen:S,onClose:C,disableHoverableContent:w,children:n})})};ng.displayName=po;var fa="TooltipTrigger",rg=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=bo(fa,n),l=Du(fa,n),i=bi(n),s=f.useRef(null),a=he(t,s,o.onTriggerChange),u=f.useRef(!1),d=f.useRef(!1),p=f.useCallback(()=>u.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),c.jsx(Xb,{asChild:!0,...i,children:c.jsx(ue.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:ne(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!l.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:ne(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:ne(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ne(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ne(e.onBlur,o.onClose),onClick:ne(e.onClick,o.onClose)})})});rg.displayName=fa;var Iu="TooltipPortal",[lC,iC]=Si(Iu,{forceMount:void 0}),og=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,l=bo(Iu,t);return c.jsx(lC,{scope:t,forceMount:n,children:c.jsx(it,{present:n||l.open,children:c.jsx(ku,{asChild:!0,container:o,children:r})})})};og.displayName=Iu;var mr="TooltipContent",lg=f.forwardRef((e,t)=>{const n=iC(mr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...l}=e,i=bo(mr,e.__scopeTooltip);return c.jsx(it,{present:r||i.open,children:i.disableHoverableContent?c.jsx(ig,{side:o,...l,ref:t}):c.jsx(sC,{side:o,...l,ref:t})})}),sC=f.forwardRef((e,t)=>{const n=bo(mr,e.__scopeTooltip),r=Du(mr,e.__scopeTooltip),o=f.useRef(null),l=he(t,o),[i,s]=f.useState(null),{trigger:a,onClose:u}=n,d=o.current,{onPointerInTransitChange:p}=r,m=f.useCallback(()=>{s(null),p(!1)},[p]),y=f.useCallback((w,v)=>{const b=w.currentTarget,g={x:w.clientX,y:w.clientY},h=fC(g,b.getBoundingClientRect()),x=pC(g,h),S=mC(v.getBoundingClientRect()),C=gC([...x,...S]);s(C),p(!0)},[p]);return f.useEffect(()=>()=>m(),[m]),f.useEffect(()=>{if(a&&d){const w=b=>y(b,d),v=b=>y(b,a);return a.addEventListener("pointerleave",w),d.addEventListener("pointerleave",v),()=>{a.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",v)}}},[a,d,y,m]),f.useEffect(()=>{if(i){const w=v=>{const b=v.target,g={x:v.clientX,y:v.clientY},h=(a==null?void 0:a.contains(b))||(d==null?void 0:d.contains(b)),x=!hC(g,i);h?m():x&&(m(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[a,d,i,u,m]),c.jsx(ig,{...e,ref:l})}),[aC,uC]=Si(po,{isInside:!1}),cC=qb("TooltipContent"),ig=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:l,onPointerDownOutside:i,...s}=e,a=bo(mr,n),u=bi(n),{onClose:d}=a;return f.useEffect(()=>(document.addEventListener(da,d),()=>document.removeEventListener(da,d)),[d]),f.useEffect(()=>{if(a.trigger){const p=m=>{const y=m.target;y!=null&&y.contains(a.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[a.trigger,d]),c.jsx(Cu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:c.jsxs(Qb,{"data-state":a.stateAttribute,...u,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(cC,{children:r}),c.jsx(aC,{scope:n,isInside:!0,children:c.jsx(tC,{id:a.contentId,role:"tooltip",children:o||r})})]})})});lg.displayName=mr;var sg="TooltipArrow",dC=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=bi(n);return uC(sg,n).isInside?null:c.jsx(Kb,{...o,...r,ref:t})});dC.displayName=sg;function fC(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(n,r,o,l)){case l:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function pC(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function mC(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function hC(e,t){const{x:n,y:r}=e;let o=!1;for(let l=0,i=t.length-1;l<t.length;i=l++){const s=t[l],a=t[i],u=s.x,d=s.y,p=a.x,m=a.y;d>r!=m>r&&n<(p-u)*(r-d)/(m-d)+u&&(o=!o)}return o}function gC(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),vC(t)}function vC(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const l=t[t.length-1],i=t[t.length-2];if((l.x-i.x)*(o.y-i.y)>=(l.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const l=n[n.length-1],i=n[n.length-2];if((l.x-i.x)*(o.y-i.y)>=(l.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var yC=tg,xC=ng,wC=rg,SC=og,ag=lg;const bC=yC,CC=xC,kC=wC,ug=f.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(SC,{children:c.jsx(ag,{ref:r,sideOffset:t,className:D("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...n})}));ug.displayName=ag.displayName;const EC="sidebar_state",NC=60*60*24*7,PC="16rem",RC="18rem",jC="3rem",_C="b",cg=f.createContext(null);function Ci(){const e=f.useContext(cg);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const dg=f.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:l,...i},s)=>{const a=Qw(),[u,d]=f.useState(!1),[p,m]=f.useState(e),y=t??p,w=f.useCallback(h=>{const x=typeof h=="function"?h(y):h;n?n(x):m(x),document.cookie=`${EC}=${x}; path=/; max-age=${NC}`},[n,y]),v=f.useCallback(()=>a?d(h=>!h):w(h=>!h),[a,w,d]);f.useEffect(()=>{const h=x=>{x.key===_C&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),v())};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[v]);const b=y?"expanded":"collapsed",g=f.useMemo(()=>({state:b,open:y,setOpen:w,isMobile:a,openMobile:u,setOpenMobile:d,toggleSidebar:v}),[b,y,w,a,u,d,v]);return c.jsx(cg.Provider,{value:g,children:c.jsx(bC,{delayDuration:0,children:c.jsx("div",{style:{"--sidebar-width":PC,"--sidebar-width-icon":jC,...o},className:D("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:s,...i,children:l})})})});dg.displayName="SidebarProvider";const fg=f.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...l},i)=>{const{isMobile:s,state:a,openMobile:u,setOpenMobile:d}=Ci();return n==="none"?c.jsx("div",{className:D("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:i,...l,children:o}):s?c.jsx(ES,{open:u,onOpenChange:d,...l,children:c.jsxs(Ph,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":RC},side:e,children:[c.jsxs(Rh,{className:"sr-only",children:[c.jsx(jh,{children:"Sidebar"}),c.jsx(_h,{children:"Displays the mobile sidebar."})]}),c.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):c.jsxs("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":a,"data-collapsible":a==="collapsed"?n:"","data-variant":t,"data-side":e,children:[c.jsx("div",{className:D("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),c.jsx("div",{className:D("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...l,children:c.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})});fg.displayName="Sidebar";const pg=f.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:o}=Ci();return c.jsxs(co,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:D("h-7 w-7",e),onClick:l=>{t==null||t(l),o()},...n,children:[c.jsx(zx,{}),c.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});pg.displayName="SidebarTrigger";const mg=f.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=Ci();return c.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:D("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});mg.displayName="SidebarRail";const hg=f.forwardRef(({className:e,...t},n)=>c.jsx("main",{ref:n,className:D("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));hg.displayName="SidebarInset";const TC=f.forwardRef(({className:e,...t},n)=>c.jsx(vu,{ref:n,"data-sidebar":"input",className:D("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));TC.displayName="SidebarInput";const gg=f.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,"data-sidebar":"header",className:D("flex flex-col gap-2 p-2",e),...t}));gg.displayName="SidebarHeader";const vg=f.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,"data-sidebar":"footer",className:D("flex flex-col gap-2 p-2",e),...t}));vg.displayName="SidebarFooter";const AC=f.forwardRef(({className:e,...t},n)=>c.jsx(Wl,{ref:n,"data-sidebar":"separator",className:D("mx-2 w-auto bg-sidebar-border",e),...t}));AC.displayName="SidebarSeparator";const yg=f.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,"data-sidebar":"content",className:D("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));yg.displayName="SidebarContent";const pa=f.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,"data-sidebar":"group",className:D("relative flex w-full min-w-0 flex-col p-2",e),...t}));pa.displayName="SidebarGroup";const ma=f.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?wr:"div";return c.jsx(o,{ref:r,"data-sidebar":"group-label",className:D("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});ma.displayName="SidebarGroupLabel";const OC=f.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?wr:"button";return c.jsx(o,{ref:r,"data-sidebar":"group-action",className:D("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})});OC.displayName="SidebarGroupAction";const ha=f.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,"data-sidebar":"group-content",className:D("w-full text-sm",e),...t}));ha.displayName="SidebarGroupContent";const xg=f.forwardRef(({className:e,...t},n)=>c.jsx("ul",{ref:n,"data-sidebar":"menu",className:D("flex w-full min-w-0 flex-col gap-1",e),...t}));xg.displayName="SidebarMenu";const wg=f.forwardRef(({className:e,...t},n)=>c.jsx("li",{ref:n,"data-sidebar":"menu-item",className:D("group/menu-item relative",e),...t}));wg.displayName="SidebarMenuItem";const MC=xo("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Sg=f.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:l,...i},s)=>{const a=e?wr:"button",{isMobile:u,state:d}=Ci(),p=c.jsx(a,{ref:s,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:D(MC({variant:n,size:r}),l),...i});return o?(typeof o=="string"&&(o={children:o}),c.jsxs(CC,{children:[c.jsx(kC,{asChild:!0,children:p}),c.jsx(ug,{side:"right",align:"center",hidden:d!=="collapsed"||u,...o})]})):p});Sg.displayName="SidebarMenuButton";const LC=f.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const l=t?wr:"button";return c.jsx(l,{ref:o,"data-sidebar":"menu-action",className:D("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})});LC.displayName="SidebarMenuAction";const DC=f.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:D("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));DC.displayName="SidebarMenuBadge";const IC=f.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const o=f.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return c.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:D("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&c.jsx(wd,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),c.jsx(wd,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});IC.displayName="SidebarMenuSkeleton";const zC=f.forwardRef(({className:e,...t},n)=>c.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:D("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));zC.displayName="SidebarMenuSub";const FC=f.forwardRef(({...e},t)=>c.jsx("li",{ref:t,...e}));FC.displayName="SidebarMenuSubItem";const $C=f.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...o},l)=>{const i=e?wr:"a";return c.jsx(i,{ref:l,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:D("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})});$C.displayName="SidebarMenuSubButton";const WC=[{id:"analysis",label:"Analysis",icon:ux,description:"Dependency analysis"},{id:"files",label:"Files",icon:Nx,description:"File explorer"},{id:"search",label:"Search",icon:Xp,description:"Search codebase"},{id:"stats",label:"Stats",icon:du,description:"Codebase statistics"}];function VC({activeTab:e,onTabChange:t,hasSnapshot:n,fileCount:r=0,importCount:o=0,onClear:l}){return c.jsxs(fg,{collapsible:"icon",children:[c.jsx(gg,{className:"border-b border-sidebar-border",children:c.jsxs("div",{className:"flex items-center gap-2 px-2 py-1",children:[c.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-md bg-primary text-primary-foreground",children:c.jsxs("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"currentColor",children:[c.jsx("circle",{cx:"12",cy:"12",r:"10",fillOpacity:"0.2"}),c.jsx("circle",{cx:"12",cy:"12",r:"3"}),c.jsx("path",{d:"M12 2v4M12 18v4M2 12h4M18 12h4",stroke:"currentColor",strokeWidth:"2",fill:"none"})]})}),c.jsxs("div",{className:"flex flex-col group-data-[collapsible=icon]:hidden",children:[c.jsx("span",{className:"text-sm font-semibold",children:"Foundation"}),c.jsx("span",{className:"text-xs text-muted-foreground",children:"Codebase Explorer"})]})]})}),c.jsxs(yg,{children:[c.jsxs(pa,{children:[c.jsx(ma,{children:"Navigation"}),c.jsx(ha,{children:c.jsx(xg,{children:WC.map(i=>c.jsx(wg,{children:c.jsxs(Sg,{isActive:e===i.id,onClick:()=>t(i.id),tooltip:i.label,disabled:!n&&i.id!=="analysis",children:[c.jsx(i.icon,{className:"h-4 w-4"}),c.jsx("span",{children:i.label})]})},i.id))})})]}),n&&c.jsxs(pa,{children:[c.jsx(ma,{children:"Snapshot Info"}),c.jsx(ha,{children:c.jsxs("div",{className:"px-2 space-y-2 group-data-[collapsible=icon]:hidden",children:[c.jsxs("div",{className:"flex items-center justify-between text-sm",children:[c.jsx("span",{className:"text-muted-foreground",children:"Files"}),c.jsx(Pn,{variant:"secondary",children:r.toLocaleString()})]}),c.jsxs("div",{className:"flex items-center justify-between text-sm",children:[c.jsx("span",{className:"text-muted-foreground",children:"Imports"}),c.jsx(Pn,{variant:"secondary",children:o.toLocaleString()})]})]})})]})]}),c.jsx(vg,{className:"border-t border-sidebar-border",children:n?c.jsxs(co,{variant:"ghost",size:"sm",className:"w-full justify-start text-destructive hover:text-destructive hover:bg-destructive/10 group-data-[collapsible=icon]:justify-center",onClick:l,children:[c.jsx(Qp,{className:"h-4 w-4 mr-2 group-data-[collapsible=icon]:mr-0"}),c.jsx("span",{className:"group-data-[collapsible=icon]:hidden",children:"Clear Snapshot"})]}):c.jsx("div",{className:"px-2 py-1 text-xs text-muted-foreground group-data-[collapsible=icon]:hidden",children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(ra,{className:"h-3 w-3"}),c.jsx("span",{children:"Drop snapshot to load"})]})})}),c.jsx(mg,{})]})}function BC(){var g,h;const[e,t]=f.useState(null),[n,r]=f.useState(null),[o,l]=f.useState(),[i,s]=f.useState("analysis"),[a,u]=f.useState(!1);f.useEffect(()=>{(async()=>{try{const S=await fetch("/api/snapshot");if(S.ok){const C=await S.text(),N=Ji(C);t(N),console.log("Auto-loaded local snapshot")}}catch{console.log("No local snapshot found, waiting for manual upload")}})()},[]);const d=f.useMemo(()=>{var x;return(x=e==null?void 0:e.metadata)!=null&&x.files?Sw(e.metadata.files):{name:"root",path:"",type:"directory",children:[]}},[e]),p=f.useCallback(x=>{x.preventDefault(),u(!1);const S=x.dataTransfer.files[0];if(S){const C=new FileReader;C.onload=N=>{var P;const E=(P=N.target)==null?void 0:P.result;if(E){const j=Ji(E);t(j),r(null),l(void 0)}},C.readAsText(S)}},[]),m=f.useCallback(x=>{x.preventDefault(),u(!0)},[]),y=f.useCallback(()=>{u(!1)},[]),w=f.useCallback((x,S)=>{r(x),l(S),S&&setTimeout(()=>{const C=document.getElementById(`line-${S}`);C==null||C.scrollIntoView({behavior:"smooth",block:"center"})},100)},[]),v=f.useCallback(x=>{if(x.trim()){const S=Ji(x);t(S),r(null),l(void 0)}},[]),b=f.useCallback(()=>{t(null),r(null),l(void 0)},[]);return c.jsx(dg,{defaultOpen:!0,children:c.jsxs("div",{className:"flex min-h-screen w-full",onDrop:p,onDragOver:m,onDragLeave:y,children:[c.jsx(VC,{activeTab:i,onTabChange:s,hasSnapshot:!!e,fileCount:((g=e==null?void 0:e.metadata)==null?void 0:g.files.length)||0,importCount:((h=e==null?void 0:e.metadata)==null?void 0:h.imports.length)||0,onClear:b}),c.jsxs(hg,{children:[c.jsxs("header",{className:"flex h-14 shrink-0 items-center gap-2 border-b px-4",children:[c.jsx(pg,{className:"-ml-1"}),c.jsx(Wl,{orientation:"vertical",className:"mr-2 h-4"}),c.jsx("div",{className:"flex items-center gap-2",children:c.jsx("h1",{className:"text-sm font-medium",children:i.charAt(0).toUpperCase()+i.slice(1)})})]}),a&&c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/80 backdrop-blur-sm",children:c.jsx(en,{className:"border-dashed border-2 border-primary",children:c.jsxs(tn,{className:"flex flex-col items-center gap-2 p-8",children:[c.jsx(ra,{className:"h-8 w-8 text-primary"}),c.jsx("p",{className:"text-lg font-medium",children:"Drop snapshot file here"})]})})}),e?c.jsx("div",{className:"flex flex-1 overflow-hidden",children:i==="analysis"?c.jsx("div",{className:"flex-1 overflow-hidden",children:e.metadata?c.jsx(cw,{files:e.metadata.files,imports:e.metadata.imports,onFileSelect:w,selectedFile:n}):c.jsx("div",{className:"flex items-center justify-center h-full text-muted-foreground",children:c.jsx("p",{children:"No dependency data available (basic snapshot)"})})}):i==="files"?c.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[c.jsx("div",{className:"w-72 border-r overflow-hidden flex flex-col",children:c.jsx(Cw,{tree:d,onFileSelect:w,selectedFile:n})}),c.jsx("div",{className:"flex-1 overflow-hidden",children:c.jsx(od,{data:e,selectedFile:n,highlightLine:o})})]}):i==="search"?c.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[c.jsx("div",{className:"w-80 border-r overflow-hidden flex flex-col",children:c.jsx(Dw,{data:e,onFileSelect:w})}),c.jsx("div",{className:"flex-1 overflow-hidden",children:c.jsx(od,{data:e,selectedFile:n,highlightLine:o})})]}):c.jsx("div",{className:"flex-1 overflow-auto",children:c.jsx(Xw,{metadata:e.metadata})})}):c.jsx("div",{className:"flex flex-1 items-center justify-center p-8",children:c.jsxs(en,{className:"max-w-2xl w-full",children:[c.jsxs(En,{className:"text-center",children:[c.jsx(Nn,{className:"text-2xl",children:"Load a Snapshot"}),c.jsx(dr,{children:"Drag and drop a snapshot file, or paste content below"})]}),c.jsxs(tn,{className:"space-y-6",children:[c.jsxs("div",{className:"border-2 border-dashed border-border rounded-lg p-8 text-center hover:border-primary/50 transition-colors cursor-pointer",children:[c.jsx("input",{type:"file",id:"file-input",className:"hidden",accept:".txt",onChange:x=>{var C;const S=(C=x.target.files)==null?void 0:C[0];if(S){const N=new FileReader;N.onload=E=>{var j;const P=(j=E.target)==null?void 0:j.result;P&&v(P)},N.readAsText(S)}}}),c.jsxs("label",{htmlFor:"file-input",className:"cursor-pointer",children:[c.jsx(ra,{className:"h-12 w-12 mx-auto text-muted-foreground mb-4"}),c.jsx("p",{className:"text-muted-foreground",children:"Click to browse or drag & drop"})]})]}),c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"absolute inset-0 flex items-center",children:c.jsx(Wl,{})}),c.jsx("div",{className:"relative flex justify-center",children:c.jsx("span",{className:"bg-card px-2 text-xs text-muted-foreground uppercase",children:"or"})})]}),c.jsx("textarea",{placeholder:"Paste snapshot content here...",className:"w-full h-48 p-4 bg-muted/50 border border-input rounded-lg text-sm font-mono resize-none focus:outline-none focus:ring-2 focus:ring-ring",onPaste:x=>{const S=x.clipboardData.getData("text");S&&v(S)}}),c.jsx("div",{className:"text-center",children:c.jsxs("p",{className:"text-sm text-muted-foreground",children:["Create a snapshot with:"," ",c.jsx("code",{className:"bg-muted px-2 py-1 rounded text-xs",children:"foundation snapshot . -o snapshot.txt"})]})})]})]})})]})]})})}cs.createRoot(document.getElementById("root")).render(c.jsx(Bd.StrictMode,{children:c.jsx(BC,{})}));