database-studio 1.0.6 → 1.0.8
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.
- package/README.md +80 -44
- package/dist/README.md +80 -44
- package/dist/cli.cjs +6 -15
- package/dist/server/index.cjs +6 -15
- package/dist/spa/assets/{index-KNNj2aN0.js → index-2kcBcrF0.js} +11 -11
- package/dist/spa/index.html +1 -1
- package/package.json +2 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
function KS(e,t){for(var r=0;r<t.length;r++){const s=t[r];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(s,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>s[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&s(c)}).observe(document,{childList:!0,subtree:!0});function r(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(a){if(a.ep)return;a.ep=!0;const l=r(a);fetch(a.href,l)}})();function yv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ec={exports:{}},Vs={},Pc={exports:{}},Se={};var zm;function QS(){if(zm)return Se;zm=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function b(M){return M===null||typeof M!="object"?null:(M=y&&M[y]||M["@@iterator"],typeof M=="function"?M:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P=Object.assign,S={};function E(M,z,te){this.props=M,this.context=z,this.refs=S,this.updater=te||v}E.prototype.isReactComponent={},E.prototype.setState=function(M,z){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,z,"setState")},E.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function T(){}T.prototype=E.prototype;function R(M,z,te){this.props=M,this.context=z,this.refs=S,this.updater=te||v}var N=R.prototype=new T;N.constructor=R,P(N,E.prototype),N.isPureReactComponent=!0;var A=Array.isArray,O=Object.prototype.hasOwnProperty,F={current:null},$={key:!0,ref:!0,__self:!0,__source:!0};function B(M,z,te){var oe,ge={},we=null,fe=null;if(z!=null)for(oe in z.ref!==void 0&&(fe=z.ref),z.key!==void 0&&(we=""+z.key),z)O.call(z,oe)&&!$.hasOwnProperty(oe)&&(ge[oe]=z[oe]);var Ce=arguments.length-2;if(Ce===1)ge.children=te;else if(1<Ce){for(var Pe=Array(Ce),Qe=0;Qe<Ce;Qe++)Pe[Qe]=arguments[Qe+2];ge.children=Pe}if(M&&M.defaultProps)for(oe in Ce=M.defaultProps,Ce)ge[oe]===void 0&&(ge[oe]=Ce[oe]);return{$$typeof:e,type:M,key:we,ref:fe,props:ge,_owner:F.current}}function H(M,z){return{$$typeof:e,type:M.type,key:z,ref:M.ref,props:M.props,_owner:M._owner}}function W(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function ee(M){var z={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(te){return z[te]})}var X=/\/+/g;function de(M,z){return typeof M=="object"&&M!==null&&M.key!=null?ee(""+M.key):z.toString(36)}function q(M,z,te,oe,ge){var we=typeof M;(we==="undefined"||we==="boolean")&&(M=null);var fe=!1;if(M===null)fe=!0;else switch(we){case"string":case"number":fe=!0;break;case"object":switch(M.$$typeof){case e:case t:fe=!0}}if(fe)return fe=M,ge=ge(fe),M=oe===""?"."+de(fe,0):oe,A(ge)?(te="",M!=null&&(te=M.replace(X,"$&/")+"/"),q(ge,z,te,"",function(Qe){return Qe})):ge!=null&&(W(ge)&&(ge=H(ge,te+(!ge.key||fe&&fe.key===ge.key?"":(""+ge.key).replace(X,"$&/")+"/")+M)),z.push(ge)),1;if(fe=0,oe=oe===""?".":oe+":",A(M))for(var Ce=0;Ce<M.length;Ce++){we=M[Ce];var Pe=oe+de(we,Ce);fe+=q(we,z,te,Pe,ge)}else if(Pe=b(M),typeof Pe=="function")for(M=Pe.call(M),Ce=0;!(we=M.next()).done;)we=we.value,Pe=oe+de(we,Ce++),fe+=q(we,z,te,Pe,ge);else if(we==="object")throw z=String(M),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.");return fe}function he(M,z,te){if(M==null)return M;var oe=[],ge=0;return q(M,oe,"","",function(we){return z.call(te,we,ge++)}),oe}function re(M){if(M._status===-1){var z=M._result;z=z(),z.then(function(te){(M._status===0||M._status===-1)&&(M._status=1,M._result=te)},function(te){(M._status===0||M._status===-1)&&(M._status=2,M._result=te)}),M._status===-1&&(M._status=0,M._result=z)}if(M._status===1)return M._result.default;throw M._result}var le={current:null},V={transition:null},U={ReactCurrentDispatcher:le,ReactCurrentBatchConfig:V,ReactCurrentOwner:F};function K(){throw Error("act(...) is not supported in production builds of React.")}return Se.Children={map:he,forEach:function(M,z,te){he(M,function(){z.apply(this,arguments)},te)},count:function(M){var z=0;return he(M,function(){z++}),z},toArray:function(M){return he(M,function(z){return z})||[]},only:function(M){if(!W(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},Se.Component=E,Se.Fragment=r,Se.Profiler=a,Se.PureComponent=R,Se.StrictMode=s,Se.Suspense=h,Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,Se.act=K,Se.cloneElement=function(M,z,te){if(M==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+M+".");var oe=P({},M.props),ge=M.key,we=M.ref,fe=M._owner;if(z!=null){if(z.ref!==void 0&&(we=z.ref,fe=F.current),z.key!==void 0&&(ge=""+z.key),M.type&&M.type.defaultProps)var Ce=M.type.defaultProps;for(Pe in z)O.call(z,Pe)&&!$.hasOwnProperty(Pe)&&(oe[Pe]=z[Pe]===void 0&&Ce!==void 0?Ce[Pe]:z[Pe])}var Pe=arguments.length-2;if(Pe===1)oe.children=te;else if(1<Pe){Ce=Array(Pe);for(var Qe=0;Qe<Pe;Qe++)Ce[Qe]=arguments[Qe+2];oe.children=Ce}return{$$typeof:e,type:M.type,key:ge,ref:we,props:oe,_owner:fe}},Se.createContext=function(M){return M={$$typeof:c,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},M.Provider={$$typeof:l,_context:M},M.Consumer=M},Se.createElement=B,Se.createFactory=function(M){var z=B.bind(null,M);return z.type=M,z},Se.createRef=function(){return{current:null}},Se.forwardRef=function(M){return{$$typeof:d,render:M}},Se.isValidElement=W,Se.lazy=function(M){return{$$typeof:m,_payload:{_status:-1,_result:M},_init:re}},Se.memo=function(M,z){return{$$typeof:p,type:M,compare:z===void 0?null:z}},Se.startTransition=function(M){var z=V.transition;V.transition={};try{M()}finally{V.transition=z}},Se.unstable_act=K,Se.useCallback=function(M,z){return le.current.useCallback(M,z)},Se.useContext=function(M){return le.current.useContext(M)},Se.useDebugValue=function(){},Se.useDeferredValue=function(M){return le.current.useDeferredValue(M)},Se.useEffect=function(M,z){return le.current.useEffect(M,z)},Se.useId=function(){return le.current.useId()},Se.useImperativeHandle=function(M,z,te){return le.current.useImperativeHandle(M,z,te)},Se.useInsertionEffect=function(M,z){return le.current.useInsertionEffect(M,z)},Se.useLayoutEffect=function(M,z){return le.current.useLayoutEffect(M,z)},Se.useMemo=function(M,z){return le.current.useMemo(M,z)},Se.useReducer=function(M,z,te){return le.current.useReducer(M,z,te)},Se.useRef=function(M){return le.current.useRef(M)},Se.useState=function(M){return le.current.useState(M)},Se.useSyncExternalStore=function(M,z,te){return le.current.useSyncExternalStore(M,z,te)},Se.useTransition=function(){return le.current.useTransition()},Se.version="18.3.1",Se}var Bm;function Jd(){return Bm||(Bm=1,Pc.exports=QS()),Pc.exports}var Um;function YS(){if(Um)return Vs;Um=1;var e=Jd(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,h,p){var m,y={},b=null,v=null;p!==void 0&&(b=""+p),h.key!==void 0&&(b=""+h.key),h.ref!==void 0&&(v=h.ref);for(m in h)s.call(h,m)&&!l.hasOwnProperty(m)&&(y[m]=h[m]);if(d&&d.defaultProps)for(m in h=d.defaultProps,h)y[m]===void 0&&(y[m]=h[m]);return{$$typeof:t,type:d,key:b,ref:v,props:y,_owner:a.current}}return Vs.Fragment=r,Vs.jsx=c,Vs.jsxs=c,Vs}var $m;function GS(){return $m||($m=1,Ec.exports=YS()),Ec.exports}var x=GS(),w=Jd();const J=yv(w),wl=KS({__proto__:null,default:J},[w]),XS=1,qS=1e6;let Tc=0;function ZS(){return Tc=(Tc+1)%Number.MAX_SAFE_INTEGER,Tc.toString()}const Rc=new Map,Wm=e=>{if(Rc.has(e))return;const t=setTimeout(()=>{Rc.delete(e),Ws({type:"REMOVE_TOAST",toastId:e})},qS);Rc.set(e,t)},JS=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,XS)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?Wm(r):e.toasts.forEach(s=>{Wm(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===r||r===void 0?{...s,open:!1}:s)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},za=[];let Ba={toasts:[]};function Ws(e){Ba=JS(Ba,e),za.forEach(t=>{t(Ba)})}function eC({...e}){const t=ZS(),r=a=>Ws({type:"UPDATE_TOAST",toast:{...a,id:t}}),s=()=>Ws({type:"DISMISS_TOAST",toastId:t});return Ws({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||s()}}}),{id:t,dismiss:s,update:r}}function tC(){const[e,t]=w.useState(Ba);return w.useEffect(()=>(za.push(t),()=>{const r=za.indexOf(t);r>-1&&za.splice(r,1)}),[e]),{...e,toast:eC,dismiss:r=>Ws({type:"DISMISS_TOAST",toastId:r})}}var kc={exports:{}},Tt={},Nc={exports:{}},Ac={};var Hm;function nC(){return Hm||(Hm=1,(function(e){function t(V,U){var K=V.length;V.push(U);e:for(;0<K;){var M=K-1>>>1,z=V[M];if(0<a(z,U))V[M]=U,V[K]=z,K=M;else break e}}function r(V){return V.length===0?null:V[0]}function s(V){if(V.length===0)return null;var U=V[0],K=V.pop();if(K!==U){V[0]=K;e:for(var M=0,z=V.length,te=z>>>1;M<te;){var oe=2*(M+1)-1,ge=V[oe],we=oe+1,fe=V[we];if(0>a(ge,K))we<z&&0>a(fe,ge)?(V[M]=fe,V[we]=K,M=we):(V[M]=ge,V[oe]=K,M=oe);else if(we<z&&0>a(fe,K))V[M]=fe,V[we]=K,M=we;else break e}}return U}function a(V,U){var K=V.sortIndex-U.sortIndex;return K!==0?K:V.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var h=[],p=[],m=1,y=null,b=3,v=!1,P=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(V){for(var U=r(p);U!==null;){if(U.callback===null)s(p);else if(U.startTime<=V)s(p),U.sortIndex=U.expirationTime,t(h,U);else break;U=r(p)}}function A(V){if(S=!1,N(V),!P)if(r(h)!==null)P=!0,re(O);else{var U=r(p);U!==null&&le(A,U.startTime-V)}}function O(V,U){P=!1,S&&(S=!1,T(B),B=-1),v=!0;var K=b;try{for(N(U),y=r(h);y!==null&&(!(y.expirationTime>U)||V&&!ee());){var M=y.callback;if(typeof M=="function"){y.callback=null,b=y.priorityLevel;var z=M(y.expirationTime<=U);U=e.unstable_now(),typeof z=="function"?y.callback=z:y===r(h)&&s(h),N(U)}else s(h);y=r(h)}if(y!==null)var te=!0;else{var oe=r(p);oe!==null&&le(A,oe.startTime-U),te=!1}return te}finally{y=null,b=K,v=!1}}var F=!1,$=null,B=-1,H=5,W=-1;function ee(){return!(e.unstable_now()-W<H)}function X(){if($!==null){var V=e.unstable_now();W=V;var U=!0;try{U=$(!0,V)}finally{U?de():(F=!1,$=null)}}else F=!1}var de;if(typeof R=="function")de=function(){R(X)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,he=q.port2;q.port1.onmessage=X,de=function(){he.postMessage(null)}}else de=function(){E(X,0)};function re(V){$=V,F||(F=!0,de())}function le(V,U){B=E(function(){V(e.unstable_now())},U)}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(V){V.callback=null},e.unstable_continueExecution=function(){P||v||(P=!0,re(O))},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return r(h)},e.unstable_next=function(V){switch(b){case 1:case 2:case 3:var U=3;break;default:U=b}var K=b;b=U;try{return V()}finally{b=K}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,U){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var K=b;b=V;try{return U()}finally{b=K}},e.unstable_scheduleCallback=function(V,U,K){var M=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?M+K:M):K=M,V){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=K+z,V={id:m++,callback:U,priorityLevel:V,startTime:K,expirationTime:z,sortIndex:-1},K>M?(V.sortIndex=K,t(p,V),r(h)===null&&V===r(p)&&(S?(T(B),B=-1):S=!0,le(A,K-M))):(V.sortIndex=z,t(h,V),P||v||(P=!0,re(O))),V},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(V){var U=b;return function(){var K=b;b=U;try{return V.apply(this,arguments)}finally{b=K}}}})(Ac)),Ac}var Km;function rC(){return Km||(Km=1,Nc.exports=nC()),Nc.exports}var Qm;function oC(){if(Qm)return Tt;Qm=1;var e=Jd(),t=rC();function r(n){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+n,i=1;i<arguments.length;i++)o+="&args[]="+encodeURIComponent(arguments[i]);return"Minified React error #"+n+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function l(n,o){c(n,o),c(n+"Capture",o)}function c(n,o){for(a[n]=o,n=0;n<o.length;n++)s.add(o[n])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,p=/^[: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]*$/,m={},y={};function b(n){return h.call(y,n)?!0:h.call(m,n)?!1:p.test(n)?y[n]=!0:(m[n]=!0,!1)}function v(n,o,i,u){if(i!==null&&i.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return u?!1:i!==null?!i.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function P(n,o,i,u){if(o===null||typeof o>"u"||v(n,o,i,u))return!0;if(u)return!1;if(i!==null)switch(i.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function S(n,o,i,u,f,g,C){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=u,this.attributeNamespace=f,this.mustUseProperty=i,this.propertyName=n,this.type=o,this.sanitizeURL=g,this.removeEmptyString=C}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){E[n]=new S(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var o=n[0];E[o]=new S(o,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){E[n]=new S(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){E[n]=new S(n,2,!1,n,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){E[n]=new S(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){E[n]=new S(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){E[n]=new S(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){E[n]=new S(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){E[n]=new S(n,5,!1,n.toLowerCase(),null,!1,!1)});var T=/[\-:]([a-z])/g;function R(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var o=n.replace(T,R);E[o]=new S(o,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var o=n.replace(T,R);E[o]=new S(o,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var o=n.replace(T,R);E[o]=new S(o,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){E[n]=new S(n,1,!1,n.toLowerCase(),null,!1,!1)}),E.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){E[n]=new S(n,1,!1,n.toLowerCase(),null,!0,!0)});function N(n,o,i,u){var f=E.hasOwnProperty(o)?E[o]:null;(f!==null?f.type!==0:u||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(P(o,i,f,u)&&(i=null),u||f===null?b(o)&&(i===null?n.removeAttribute(o):n.setAttribute(o,""+i)):f.mustUseProperty?n[f.propertyName]=i===null?f.type===3?!1:"":i:(o=f.attributeName,u=f.attributeNamespace,i===null?n.removeAttribute(o):(f=f.type,i=f===3||f===4&&i===!0?"":""+i,u?n.setAttributeNS(u,o,i):n.setAttribute(o,i))))}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,O=Symbol.for("react.element"),F=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),ee=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),he=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),le=Symbol.for("react.offscreen"),V=Symbol.iterator;function U(n){return n===null||typeof n!="object"?null:(n=V&&n[V]||n["@@iterator"],typeof n=="function"?n:null)}var K=Object.assign,M;function z(n){if(M===void 0)try{throw Error()}catch(i){var o=i.stack.trim().match(/\n( *(at )?)/);M=o&&o[1]||""}return`
|
|
1
|
+
function KS(e,t){for(var r=0;r<t.length;r++){const s=t[r];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(s,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>s[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&s(c)}).observe(document,{childList:!0,subtree:!0});function r(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(a){if(a.ep)return;a.ep=!0;const l=r(a);fetch(a.href,l)}})();function yv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ec={exports:{}},Vs={},Pc={exports:{}},Se={};var Bm;function QS(){if(Bm)return Se;Bm=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function b(M){return M===null||typeof M!="object"?null:(M=y&&M[y]||M["@@iterator"],typeof M=="function"?M:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P=Object.assign,S={};function E(M,B,te){this.props=M,this.context=B,this.refs=S,this.updater=te||v}E.prototype.isReactComponent={},E.prototype.setState=function(M,B){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,B,"setState")},E.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function T(){}T.prototype=E.prototype;function R(M,B,te){this.props=M,this.context=B,this.refs=S,this.updater=te||v}var N=R.prototype=new T;N.constructor=R,P(N,E.prototype),N.isPureReactComponent=!0;var A=Array.isArray,O=Object.prototype.hasOwnProperty,F={current:null},$={key:!0,ref:!0,__self:!0,__source:!0};function z(M,B,te){var oe,ge={},we=null,fe=null;if(B!=null)for(oe in B.ref!==void 0&&(fe=B.ref),B.key!==void 0&&(we=""+B.key),B)O.call(B,oe)&&!$.hasOwnProperty(oe)&&(ge[oe]=B[oe]);var Ce=arguments.length-2;if(Ce===1)ge.children=te;else if(1<Ce){for(var Pe=Array(Ce),Qe=0;Qe<Ce;Qe++)Pe[Qe]=arguments[Qe+2];ge.children=Pe}if(M&&M.defaultProps)for(oe in Ce=M.defaultProps,Ce)ge[oe]===void 0&&(ge[oe]=Ce[oe]);return{$$typeof:e,type:M,key:we,ref:fe,props:ge,_owner:F.current}}function H(M,B){return{$$typeof:e,type:M.type,key:B,ref:M.ref,props:M.props,_owner:M._owner}}function W(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function ee(M){var B={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(te){return B[te]})}var X=/\/+/g;function de(M,B){return typeof M=="object"&&M!==null&&M.key!=null?ee(""+M.key):B.toString(36)}function q(M,B,te,oe,ge){var we=typeof M;(we==="undefined"||we==="boolean")&&(M=null);var fe=!1;if(M===null)fe=!0;else switch(we){case"string":case"number":fe=!0;break;case"object":switch(M.$$typeof){case e:case t:fe=!0}}if(fe)return fe=M,ge=ge(fe),M=oe===""?"."+de(fe,0):oe,A(ge)?(te="",M!=null&&(te=M.replace(X,"$&/")+"/"),q(ge,B,te,"",function(Qe){return Qe})):ge!=null&&(W(ge)&&(ge=H(ge,te+(!ge.key||fe&&fe.key===ge.key?"":(""+ge.key).replace(X,"$&/")+"/")+M)),B.push(ge)),1;if(fe=0,oe=oe===""?".":oe+":",A(M))for(var Ce=0;Ce<M.length;Ce++){we=M[Ce];var Pe=oe+de(we,Ce);fe+=q(we,B,te,Pe,ge)}else if(Pe=b(M),typeof Pe=="function")for(M=Pe.call(M),Ce=0;!(we=M.next()).done;)we=we.value,Pe=oe+de(we,Ce++),fe+=q(we,B,te,Pe,ge);else if(we==="object")throw B=String(M),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.");return fe}function he(M,B,te){if(M==null)return M;var oe=[],ge=0;return q(M,oe,"","",function(we){return B.call(te,we,ge++)}),oe}function re(M){if(M._status===-1){var B=M._result;B=B(),B.then(function(te){(M._status===0||M._status===-1)&&(M._status=1,M._result=te)},function(te){(M._status===0||M._status===-1)&&(M._status=2,M._result=te)}),M._status===-1&&(M._status=0,M._result=B)}if(M._status===1)return M._result.default;throw M._result}var le={current:null},V={transition:null},U={ReactCurrentDispatcher:le,ReactCurrentBatchConfig:V,ReactCurrentOwner:F};function K(){throw Error("act(...) is not supported in production builds of React.")}return Se.Children={map:he,forEach:function(M,B,te){he(M,function(){B.apply(this,arguments)},te)},count:function(M){var B=0;return he(M,function(){B++}),B},toArray:function(M){return he(M,function(B){return B})||[]},only:function(M){if(!W(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},Se.Component=E,Se.Fragment=r,Se.Profiler=a,Se.PureComponent=R,Se.StrictMode=s,Se.Suspense=h,Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,Se.act=K,Se.cloneElement=function(M,B,te){if(M==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+M+".");var oe=P({},M.props),ge=M.key,we=M.ref,fe=M._owner;if(B!=null){if(B.ref!==void 0&&(we=B.ref,fe=F.current),B.key!==void 0&&(ge=""+B.key),M.type&&M.type.defaultProps)var Ce=M.type.defaultProps;for(Pe in B)O.call(B,Pe)&&!$.hasOwnProperty(Pe)&&(oe[Pe]=B[Pe]===void 0&&Ce!==void 0?Ce[Pe]:B[Pe])}var Pe=arguments.length-2;if(Pe===1)oe.children=te;else if(1<Pe){Ce=Array(Pe);for(var Qe=0;Qe<Pe;Qe++)Ce[Qe]=arguments[Qe+2];oe.children=Ce}return{$$typeof:e,type:M.type,key:ge,ref:we,props:oe,_owner:fe}},Se.createContext=function(M){return M={$$typeof:c,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},M.Provider={$$typeof:l,_context:M},M.Consumer=M},Se.createElement=z,Se.createFactory=function(M){var B=z.bind(null,M);return B.type=M,B},Se.createRef=function(){return{current:null}},Se.forwardRef=function(M){return{$$typeof:d,render:M}},Se.isValidElement=W,Se.lazy=function(M){return{$$typeof:m,_payload:{_status:-1,_result:M},_init:re}},Se.memo=function(M,B){return{$$typeof:p,type:M,compare:B===void 0?null:B}},Se.startTransition=function(M){var B=V.transition;V.transition={};try{M()}finally{V.transition=B}},Se.unstable_act=K,Se.useCallback=function(M,B){return le.current.useCallback(M,B)},Se.useContext=function(M){return le.current.useContext(M)},Se.useDebugValue=function(){},Se.useDeferredValue=function(M){return le.current.useDeferredValue(M)},Se.useEffect=function(M,B){return le.current.useEffect(M,B)},Se.useId=function(){return le.current.useId()},Se.useImperativeHandle=function(M,B,te){return le.current.useImperativeHandle(M,B,te)},Se.useInsertionEffect=function(M,B){return le.current.useInsertionEffect(M,B)},Se.useLayoutEffect=function(M,B){return le.current.useLayoutEffect(M,B)},Se.useMemo=function(M,B){return le.current.useMemo(M,B)},Se.useReducer=function(M,B,te){return le.current.useReducer(M,B,te)},Se.useRef=function(M){return le.current.useRef(M)},Se.useState=function(M){return le.current.useState(M)},Se.useSyncExternalStore=function(M,B,te){return le.current.useSyncExternalStore(M,B,te)},Se.useTransition=function(){return le.current.useTransition()},Se.version="18.3.1",Se}var zm;function Jd(){return zm||(zm=1,Pc.exports=QS()),Pc.exports}var Um;function YS(){if(Um)return Vs;Um=1;var e=Jd(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,h,p){var m,y={},b=null,v=null;p!==void 0&&(b=""+p),h.key!==void 0&&(b=""+h.key),h.ref!==void 0&&(v=h.ref);for(m in h)s.call(h,m)&&!l.hasOwnProperty(m)&&(y[m]=h[m]);if(d&&d.defaultProps)for(m in h=d.defaultProps,h)y[m]===void 0&&(y[m]=h[m]);return{$$typeof:t,type:d,key:b,ref:v,props:y,_owner:a.current}}return Vs.Fragment=r,Vs.jsx=c,Vs.jsxs=c,Vs}var $m;function GS(){return $m||($m=1,Ec.exports=YS()),Ec.exports}var x=GS(),w=Jd();const J=yv(w),wl=KS({__proto__:null,default:J},[w]),XS=1,qS=1e6;let Tc=0;function ZS(){return Tc=(Tc+1)%Number.MAX_SAFE_INTEGER,Tc.toString()}const Rc=new Map,Wm=e=>{if(Rc.has(e))return;const t=setTimeout(()=>{Rc.delete(e),Ws({type:"REMOVE_TOAST",toastId:e})},qS);Rc.set(e,t)},JS=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,XS)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?Wm(r):e.toasts.forEach(s=>{Wm(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===r||r===void 0?{...s,open:!1}:s)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},Ba=[];let za={toasts:[]};function Ws(e){za=JS(za,e),Ba.forEach(t=>{t(za)})}function eC({...e}){const t=ZS(),r=a=>Ws({type:"UPDATE_TOAST",toast:{...a,id:t}}),s=()=>Ws({type:"DISMISS_TOAST",toastId:t});return Ws({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||s()}}}),{id:t,dismiss:s,update:r}}function tC(){const[e,t]=w.useState(za);return w.useEffect(()=>(Ba.push(t),()=>{const r=Ba.indexOf(t);r>-1&&Ba.splice(r,1)}),[e]),{...e,toast:eC,dismiss:r=>Ws({type:"DISMISS_TOAST",toastId:r})}}var kc={exports:{}},Tt={},Nc={exports:{}},Ac={};var Hm;function nC(){return Hm||(Hm=1,(function(e){function t(V,U){var K=V.length;V.push(U);e:for(;0<K;){var M=K-1>>>1,B=V[M];if(0<a(B,U))V[M]=U,V[K]=B,K=M;else break e}}function r(V){return V.length===0?null:V[0]}function s(V){if(V.length===0)return null;var U=V[0],K=V.pop();if(K!==U){V[0]=K;e:for(var M=0,B=V.length,te=B>>>1;M<te;){var oe=2*(M+1)-1,ge=V[oe],we=oe+1,fe=V[we];if(0>a(ge,K))we<B&&0>a(fe,ge)?(V[M]=fe,V[we]=K,M=we):(V[M]=ge,V[oe]=K,M=oe);else if(we<B&&0>a(fe,K))V[M]=fe,V[we]=K,M=we;else break e}}return U}function a(V,U){var K=V.sortIndex-U.sortIndex;return K!==0?K:V.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var h=[],p=[],m=1,y=null,b=3,v=!1,P=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(V){for(var U=r(p);U!==null;){if(U.callback===null)s(p);else if(U.startTime<=V)s(p),U.sortIndex=U.expirationTime,t(h,U);else break;U=r(p)}}function A(V){if(S=!1,N(V),!P)if(r(h)!==null)P=!0,re(O);else{var U=r(p);U!==null&&le(A,U.startTime-V)}}function O(V,U){P=!1,S&&(S=!1,T(z),z=-1),v=!0;var K=b;try{for(N(U),y=r(h);y!==null&&(!(y.expirationTime>U)||V&&!ee());){var M=y.callback;if(typeof M=="function"){y.callback=null,b=y.priorityLevel;var B=M(y.expirationTime<=U);U=e.unstable_now(),typeof B=="function"?y.callback=B:y===r(h)&&s(h),N(U)}else s(h);y=r(h)}if(y!==null)var te=!0;else{var oe=r(p);oe!==null&&le(A,oe.startTime-U),te=!1}return te}finally{y=null,b=K,v=!1}}var F=!1,$=null,z=-1,H=5,W=-1;function ee(){return!(e.unstable_now()-W<H)}function X(){if($!==null){var V=e.unstable_now();W=V;var U=!0;try{U=$(!0,V)}finally{U?de():(F=!1,$=null)}}else F=!1}var de;if(typeof R=="function")de=function(){R(X)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,he=q.port2;q.port1.onmessage=X,de=function(){he.postMessage(null)}}else de=function(){E(X,0)};function re(V){$=V,F||(F=!0,de())}function le(V,U){z=E(function(){V(e.unstable_now())},U)}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(V){V.callback=null},e.unstable_continueExecution=function(){P||v||(P=!0,re(O))},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return r(h)},e.unstable_next=function(V){switch(b){case 1:case 2:case 3:var U=3;break;default:U=b}var K=b;b=U;try{return V()}finally{b=K}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,U){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var K=b;b=V;try{return U()}finally{b=K}},e.unstable_scheduleCallback=function(V,U,K){var M=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?M+K:M):K=M,V){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=K+B,V={id:m++,callback:U,priorityLevel:V,startTime:K,expirationTime:B,sortIndex:-1},K>M?(V.sortIndex=K,t(p,V),r(h)===null&&V===r(p)&&(S?(T(z),z=-1):S=!0,le(A,K-M))):(V.sortIndex=B,t(h,V),P||v||(P=!0,re(O))),V},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(V){var U=b;return function(){var K=b;b=U;try{return V.apply(this,arguments)}finally{b=K}}}})(Ac)),Ac}var Km;function rC(){return Km||(Km=1,Nc.exports=nC()),Nc.exports}var Qm;function oC(){if(Qm)return Tt;Qm=1;var e=Jd(),t=rC();function r(n){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+n,i=1;i<arguments.length;i++)o+="&args[]="+encodeURIComponent(arguments[i]);return"Minified React error #"+n+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function l(n,o){c(n,o),c(n+"Capture",o)}function c(n,o){for(a[n]=o,n=0;n<o.length;n++)s.add(o[n])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,p=/^[: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]*$/,m={},y={};function b(n){return h.call(y,n)?!0:h.call(m,n)?!1:p.test(n)?y[n]=!0:(m[n]=!0,!1)}function v(n,o,i,u){if(i!==null&&i.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return u?!1:i!==null?!i.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function P(n,o,i,u){if(o===null||typeof o>"u"||v(n,o,i,u))return!0;if(u)return!1;if(i!==null)switch(i.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function S(n,o,i,u,f,g,C){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=u,this.attributeNamespace=f,this.mustUseProperty=i,this.propertyName=n,this.type=o,this.sanitizeURL=g,this.removeEmptyString=C}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){E[n]=new S(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var o=n[0];E[o]=new S(o,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){E[n]=new S(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){E[n]=new S(n,2,!1,n,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){E[n]=new S(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){E[n]=new S(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){E[n]=new S(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){E[n]=new S(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){E[n]=new S(n,5,!1,n.toLowerCase(),null,!1,!1)});var T=/[\-:]([a-z])/g;function R(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var o=n.replace(T,R);E[o]=new S(o,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var o=n.replace(T,R);E[o]=new S(o,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var o=n.replace(T,R);E[o]=new S(o,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){E[n]=new S(n,1,!1,n.toLowerCase(),null,!1,!1)}),E.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){E[n]=new S(n,1,!1,n.toLowerCase(),null,!0,!0)});function N(n,o,i,u){var f=E.hasOwnProperty(o)?E[o]:null;(f!==null?f.type!==0:u||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(P(o,i,f,u)&&(i=null),u||f===null?b(o)&&(i===null?n.removeAttribute(o):n.setAttribute(o,""+i)):f.mustUseProperty?n[f.propertyName]=i===null?f.type===3?!1:"":i:(o=f.attributeName,u=f.attributeNamespace,i===null?n.removeAttribute(o):(f=f.type,i=f===3||f===4&&i===!0?"":""+i,u?n.setAttributeNS(u,o,i):n.setAttribute(o,i))))}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,O=Symbol.for("react.element"),F=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),ee=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),he=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),le=Symbol.for("react.offscreen"),V=Symbol.iterator;function U(n){return n===null||typeof n!="object"?null:(n=V&&n[V]||n["@@iterator"],typeof n=="function"?n:null)}var K=Object.assign,M;function B(n){if(M===void 0)try{throw Error()}catch(i){var o=i.stack.trim().match(/\n( *(at )?)/);M=o&&o[1]||""}return`
|
|
2
2
|
`+M+n}var te=!1;function oe(n,o){if(!n||te)return"";te=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(I){var u=I}Reflect.construct(n,[],o)}else{try{o.call()}catch(I){u=I}n.call(o.prototype)}else{try{throw Error()}catch(I){u=I}n()}}catch(I){if(I&&u&&typeof I.stack=="string"){for(var f=I.stack.split(`
|
|
3
3
|
`),g=u.stack.split(`
|
|
4
4
|
`),C=f.length-1,k=g.length-1;1<=C&&0<=k&&f[C]!==g[k];)k--;for(;1<=C&&0<=k;C--,k--)if(f[C]!==g[k]){if(C!==1||k!==1)do if(C--,k--,0>k||f[C]!==g[k]){var j=`
|
|
5
|
-
`+f[C].replace(" at new "," at ");return n.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",n.displayName)),j}while(1<=C&&0<=k);break}}}finally{te=!1,Error.prepareStackTrace=i}return(n=n?n.displayName||n.name:"")?z(n):""}function ge(n){switch(n.tag){case 5:return z(n.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return n=oe(n.type,!1),n;case 11:return n=oe(n.type.render,!1),n;case 1:return n=oe(n.type,!0),n;default:return""}}function we(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case $:return"Fragment";case F:return"Portal";case H:return"Profiler";case B:return"StrictMode";case de:return"Suspense";case q:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case ee:return(n.displayName||"Context")+".Consumer";case W:return(n._context.displayName||"Context")+".Provider";case X:var o=n.render;return n=n.displayName,n||(n=o.displayName||o.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case he:return o=n.displayName||null,o!==null?o:we(n.type)||"Memo";case re:o=n._payload,n=n._init;try{return we(n(o))}catch{}}return null}function fe(n){var o=n.type;switch(n.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=o.render,n=n.displayName||n.name||"",o.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return we(o);case 8:return o===B?"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 o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function Ce(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Pe(n){var o=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Qe(n){var o=Pe(n)?"checked":"value",i=Object.getOwnPropertyDescriptor(n.constructor.prototype,o),u=""+n[o];if(!n.hasOwnProperty(o)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var f=i.get,g=i.set;return Object.defineProperty(n,o,{configurable:!0,get:function(){return f.call(this)},set:function(C){u=""+C,g.call(this,C)}}),Object.defineProperty(n,o,{enumerable:i.enumerable}),{getValue:function(){return u},setValue:function(C){u=""+C},stopTracking:function(){n._valueTracker=null,delete n[o]}}}}function It(n){n._valueTracker||(n._valueTracker=Qe(n))}function Yn(n){if(!n)return!1;var o=n._valueTracker;if(!o)return!0;var i=o.getValue(),u="";return n&&(u=Pe(n)?n.checked?"true":"false":n.value),n=u,n!==i?(o.setValue(n),!0):!1}function Ft(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Jo(n,o){var i=o.checked;return K({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??n._wrapperState.initialChecked})}function ui(n,o){var i=o.defaultValue==null?"":o.defaultValue,u=o.checked!=null?o.checked:o.defaultChecked;i=Ce(o.value!=null?o.value:i),n._wrapperState={initialChecked:u,initialValue:i,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function es(n,o){o=o.checked,o!=null&&N(n,"checked",o,!1)}function ts(n,o){es(n,o);var i=Ce(o.value),u=o.type;if(i!=null)u==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+i):n.value!==""+i&&(n.value=""+i);else if(u==="submit"||u==="reset"){n.removeAttribute("value");return}o.hasOwnProperty("value")?ns(n,o.type,i):o.hasOwnProperty("defaultValue")&&ns(n,o.type,Ce(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(n.defaultChecked=!!o.defaultChecked)}function Jr(n,o,i){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var u=o.type;if(!(u!=="submit"&&u!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+n._wrapperState.initialValue,i||o===n.value||(n.value=o),n.defaultValue=o}i=n.name,i!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,i!==""&&(n.name=i)}function ns(n,o,i){(o!=="number"||Ft(n.ownerDocument)!==n)&&(i==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+i&&(n.defaultValue=""+i))}var Gn=Array.isArray;function Vt(n,o,i,u){if(n=n.options,o){o={};for(var f=0;f<i.length;f++)o["$"+i[f]]=!0;for(i=0;i<n.length;i++)f=o.hasOwnProperty("$"+n[i].value),n[i].selected!==f&&(n[i].selected=f),f&&u&&(n[i].defaultSelected=!0)}else{for(i=""+Ce(i),o=null,f=0;f<n.length;f++){if(n[f].value===i){n[f].selected=!0,u&&(n[f].defaultSelected=!0);return}o!==null||n[f].disabled||(o=n[f])}o!==null&&(o.selected=!0)}}function eo(n,o){if(o.dangerouslySetInnerHTML!=null)throw Error(r(91));return K({},o,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function hn(n,o){var i=o.value;if(i==null){if(i=o.children,o=o.defaultValue,i!=null){if(o!=null)throw Error(r(92));if(Gn(i)){if(1<i.length)throw Error(r(93));i=i[0]}o=i}o==null&&(o=""),i=o}n._wrapperState={initialValue:Ce(i)}}function ci(n,o){var i=Ce(o.value),u=Ce(o.defaultValue);i!=null&&(i=""+i,i!==n.value&&(n.value=i),o.defaultValue==null&&n.defaultValue!==i&&(n.defaultValue=i)),u!=null&&(n.defaultValue=""+u)}function di(n){var o=n.textContent;o===n._wrapperState.initialValue&&o!==""&&o!==null&&(n.value=o)}function ht(n){switch(n){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 pn(n,o){return n==null||n==="http://www.w3.org/1999/xhtml"?ht(o):n==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var to,fi=(function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,i,u,f){MSApp.execUnsafeLocalFunction(function(){return n(o,i,u,f)})}:n})(function(n,o){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=o;else{for(to=to||document.createElement("div"),to.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=to.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)n.appendChild(o.firstChild)}});function mn(n,o){if(o){var i=n.firstChild;if(i&&i===n.lastChild&&i.nodeType===3){i.nodeValue=o;return}}n.textContent=o}var Rr={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},hi=["Webkit","ms","Moz","O"];Object.keys(Rr).forEach(function(n){hi.forEach(function(o){o=o+n.charAt(0).toUpperCase()+n.substring(1),Rr[o]=Rr[n]})});function no(n,o,i){return o==null||typeof o=="boolean"||o===""?"":i||typeof o!="number"||o===0||Rr.hasOwnProperty(n)&&Rr[n]?(""+o).trim():o+"px"}function On(n,o){n=n.style;for(var i in o)if(o.hasOwnProperty(i)){var u=i.indexOf("--")===0,f=no(i,o[i],u);i==="float"&&(i="cssFloat"),u?n.setProperty(i,f):n[i]=f}}var pi=K({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 gn(n,o){if(o){if(pi[n]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(r(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(r(61))}if(o.style!=null&&typeof o.style!="object")throw Error(r(62))}}function rs(n,o){if(n.indexOf("-")===-1)return typeof o.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var os=null;function ro(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var oo=null,Xn=null,yn=null;function Xt(n){if(n=Es(n)){if(typeof oo!="function")throw Error(r(280));var o=n.stateNode;o&&(o=Fi(o),oo(n.stateNode,n.type,o))}}function mi(n){Xn?yn?yn.push(n):yn=[n]:Xn=n}function ve(){if(Xn){var n=Xn,o=yn;if(yn=Xn=null,Xt(n),o)for(n=0;n<o.length;n++)Xt(o[n])}}function ke(n,o){return n(o)}function Ae(){}var pt=!1;function xt(n,o,i){if(pt)return n(o,i);pt=!0;try{return ke(n,o,i)}finally{pt=!1,(Xn!==null||yn!==null)&&(Ae(),ve())}}function wt(n,o){var i=n.stateNode;if(i===null)return null;var u=Fi(i);if(u===null)return null;i=u[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(n=n.type,u=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!u;break e;default:n=!1}if(n)return null;if(i&&typeof i!="function")throw Error(r(231,o,typeof i));return i}var qt=!1;if(d)try{var nt={};Object.defineProperty(nt,"passive",{get:function(){qt=!0}}),window.addEventListener("test",nt,nt),window.removeEventListener("test",nt,nt)}catch{qt=!1}function vn(n,o,i,u,f,g,C,k,j){var I=Array.prototype.slice.call(arguments,3);try{o.apply(i,I)}catch(Y){this.onError(Y)}}var ss=!1,gi=null,yi=!1,$l=null,Jb={onError:function(n){ss=!0,gi=n}};function e1(n,o,i,u,f,g,C,k,j){ss=!1,gi=null,vn.apply(Jb,arguments)}function t1(n,o,i,u,f,g,C,k,j){if(e1.apply(this,arguments),ss){if(ss){var I=gi;ss=!1,gi=null}else throw Error(r(198));yi||(yi=!0,$l=I)}}function kr(n){var o=n,i=n;if(n.alternate)for(;o.return;)o=o.return;else{n=o;do o=n,(o.flags&4098)!==0&&(i=o.return),n=o.return;while(n)}return o.tag===3?i:null}function uh(n){if(n.tag===13){var o=n.memoizedState;if(o===null&&(n=n.alternate,n!==null&&(o=n.memoizedState)),o!==null)return o.dehydrated}return null}function ch(n){if(kr(n)!==n)throw Error(r(188))}function n1(n){var o=n.alternate;if(!o){if(o=kr(n),o===null)throw Error(r(188));return o!==n?null:n}for(var i=n,u=o;;){var f=i.return;if(f===null)break;var g=f.alternate;if(g===null){if(u=f.return,u!==null){i=u;continue}break}if(f.child===g.child){for(g=f.child;g;){if(g===i)return ch(f),n;if(g===u)return ch(f),o;g=g.sibling}throw Error(r(188))}if(i.return!==u.return)i=f,u=g;else{for(var C=!1,k=f.child;k;){if(k===i){C=!0,i=f,u=g;break}if(k===u){C=!0,u=f,i=g;break}k=k.sibling}if(!C){for(k=g.child;k;){if(k===i){C=!0,i=g,u=f;break}if(k===u){C=!0,u=g,i=f;break}k=k.sibling}if(!C)throw Error(r(189))}}if(i.alternate!==u)throw Error(r(190))}if(i.tag!==3)throw Error(r(188));return i.stateNode.current===i?n:o}function dh(n){return n=n1(n),n!==null?fh(n):null}function fh(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var o=fh(n);if(o!==null)return o;n=n.sibling}return null}var hh=t.unstable_scheduleCallback,ph=t.unstable_cancelCallback,r1=t.unstable_shouldYield,o1=t.unstable_requestPaint,He=t.unstable_now,s1=t.unstable_getCurrentPriorityLevel,Wl=t.unstable_ImmediatePriority,mh=t.unstable_UserBlockingPriority,vi=t.unstable_NormalPriority,i1=t.unstable_LowPriority,gh=t.unstable_IdlePriority,xi=null,xn=null;function a1(n){if(xn&&typeof xn.onCommitFiberRoot=="function")try{xn.onCommitFiberRoot(xi,n,void 0,(n.current.flags&128)===128)}catch{}}var Zt=Math.clz32?Math.clz32:c1,l1=Math.log,u1=Math.LN2;function c1(n){return n>>>=0,n===0?32:31-(l1(n)/u1|0)|0}var wi=64,bi=4194304;function is(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Si(n,o){var i=n.pendingLanes;if(i===0)return 0;var u=0,f=n.suspendedLanes,g=n.pingedLanes,C=i&268435455;if(C!==0){var k=C&~f;k!==0?u=is(k):(g&=C,g!==0&&(u=is(g)))}else C=i&~f,C!==0?u=is(C):g!==0&&(u=is(g));if(u===0)return 0;if(o!==0&&o!==u&&(o&f)===0&&(f=u&-u,g=o&-o,f>=g||f===16&&(g&4194240)!==0))return o;if((u&4)!==0&&(u|=i&16),o=n.entangledLanes,o!==0)for(n=n.entanglements,o&=u;0<o;)i=31-Zt(o),f=1<<i,u|=n[i],o&=~f;return u}function d1(n,o){switch(n){case 1:case 2:case 4:return o+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 o+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 f1(n,o){for(var i=n.suspendedLanes,u=n.pingedLanes,f=n.expirationTimes,g=n.pendingLanes;0<g;){var C=31-Zt(g),k=1<<C,j=f[C];j===-1?((k&i)===0||(k&u)!==0)&&(f[C]=d1(k,o)):j<=o&&(n.expiredLanes|=k),g&=~k}}function Hl(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function yh(){var n=wi;return wi<<=1,(wi&4194240)===0&&(wi=64),n}function Kl(n){for(var o=[],i=0;31>i;i++)o.push(n);return o}function as(n,o,i){n.pendingLanes|=o,o!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,o=31-Zt(o),n[o]=i}function h1(n,o){var i=n.pendingLanes&~o;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=o,n.mutableReadLanes&=o,n.entangledLanes&=o,o=n.entanglements;var u=n.eventTimes;for(n=n.expirationTimes;0<i;){var f=31-Zt(i),g=1<<f;o[f]=0,u[f]=-1,n[f]=-1,i&=~g}}function Ql(n,o){var i=n.entangledLanes|=o;for(n=n.entanglements;i;){var u=31-Zt(i),f=1<<u;f&o|n[u]&o&&(n[u]|=o),i&=~f}}var Ne=0;function vh(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var xh,Yl,wh,bh,Sh,Gl=!1,Ci=[],qn=null,Zn=null,Jn=null,ls=new Map,us=new Map,er=[],p1="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 Ch(n,o){switch(n){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":Zn=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":ls.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":us.delete(o.pointerId)}}function cs(n,o,i,u,f,g){return n===null||n.nativeEvent!==g?(n={blockedOn:o,domEventName:i,eventSystemFlags:u,nativeEvent:g,targetContainers:[f]},o!==null&&(o=Es(o),o!==null&&Yl(o)),n):(n.eventSystemFlags|=u,o=n.targetContainers,f!==null&&o.indexOf(f)===-1&&o.push(f),n)}function m1(n,o,i,u,f){switch(o){case"focusin":return qn=cs(qn,n,o,i,u,f),!0;case"dragenter":return Zn=cs(Zn,n,o,i,u,f),!0;case"mouseover":return Jn=cs(Jn,n,o,i,u,f),!0;case"pointerover":var g=f.pointerId;return ls.set(g,cs(ls.get(g)||null,n,o,i,u,f)),!0;case"gotpointercapture":return g=f.pointerId,us.set(g,cs(us.get(g)||null,n,o,i,u,f)),!0}return!1}function Eh(n){var o=Nr(n.target);if(o!==null){var i=kr(o);if(i!==null){if(o=i.tag,o===13){if(o=uh(i),o!==null){n.blockedOn=o,Sh(n.priority,function(){wh(i)});return}}else if(o===3&&i.stateNode.current.memoizedState.isDehydrated){n.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Ei(n){if(n.blockedOn!==null)return!1;for(var o=n.targetContainers;0<o.length;){var i=ql(n.domEventName,n.eventSystemFlags,o[0],n.nativeEvent);if(i===null){i=n.nativeEvent;var u=new i.constructor(i.type,i);os=u,i.target.dispatchEvent(u),os=null}else return o=Es(i),o!==null&&Yl(o),n.blockedOn=i,!1;o.shift()}return!0}function Ph(n,o,i){Ei(n)&&i.delete(o)}function g1(){Gl=!1,qn!==null&&Ei(qn)&&(qn=null),Zn!==null&&Ei(Zn)&&(Zn=null),Jn!==null&&Ei(Jn)&&(Jn=null),ls.forEach(Ph),us.forEach(Ph)}function ds(n,o){n.blockedOn===o&&(n.blockedOn=null,Gl||(Gl=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,g1)))}function fs(n){function o(f){return ds(f,n)}if(0<Ci.length){ds(Ci[0],n);for(var i=1;i<Ci.length;i++){var u=Ci[i];u.blockedOn===n&&(u.blockedOn=null)}}for(qn!==null&&ds(qn,n),Zn!==null&&ds(Zn,n),Jn!==null&&ds(Jn,n),ls.forEach(o),us.forEach(o),i=0;i<er.length;i++)u=er[i],u.blockedOn===n&&(u.blockedOn=null);for(;0<er.length&&(i=er[0],i.blockedOn===null);)Eh(i),i.blockedOn===null&&er.shift()}var so=A.ReactCurrentBatchConfig,Pi=!0;function y1(n,o,i,u){var f=Ne,g=so.transition;so.transition=null;try{Ne=1,Xl(n,o,i,u)}finally{Ne=f,so.transition=g}}function v1(n,o,i,u){var f=Ne,g=so.transition;so.transition=null;try{Ne=4,Xl(n,o,i,u)}finally{Ne=f,so.transition=g}}function Xl(n,o,i,u){if(Pi){var f=ql(n,o,i,u);if(f===null)pu(n,o,u,Ti,i),Ch(n,u);else if(m1(f,n,o,i,u))u.stopPropagation();else if(Ch(n,u),o&4&&-1<p1.indexOf(n)){for(;f!==null;){var g=Es(f);if(g!==null&&xh(g),g=ql(n,o,i,u),g===null&&pu(n,o,u,Ti,i),g===f)break;f=g}f!==null&&u.stopPropagation()}else pu(n,o,u,null,i)}}var Ti=null;function ql(n,o,i,u){if(Ti=null,n=ro(u),n=Nr(n),n!==null)if(o=kr(n),o===null)n=null;else if(i=o.tag,i===13){if(n=uh(o),n!==null)return n;n=null}else if(i===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null);return Ti=n,null}function Th(n){switch(n){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 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(s1()){case Wl:return 1;case mh:return 4;case vi:case i1:return 16;case gh:return 536870912;default:return 16}default:return 16}}var tr=null,Zl=null,Ri=null;function Rh(){if(Ri)return Ri;var n,o=Zl,i=o.length,u,f="value"in tr?tr.value:tr.textContent,g=f.length;for(n=0;n<i&&o[n]===f[n];n++);var C=i-n;for(u=1;u<=C&&o[i-u]===f[g-u];u++);return Ri=f.slice(n,1<u?1-u:void 0)}function ki(n){var o=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&o===13&&(n=13)):n=o,n===10&&(n=13),32<=n||n===13?n:0}function Ni(){return!0}function kh(){return!1}function At(n){function o(i,u,f,g,C){this._reactName=i,this._targetInst=f,this.type=u,this.nativeEvent=g,this.target=C,this.currentTarget=null;for(var k in n)n.hasOwnProperty(k)&&(i=n[k],this[k]=i?i(g):g[k]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Ni:kh,this.isPropagationStopped=kh,this}return K(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Ni)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Ni)},persist:function(){},isPersistent:Ni}),o}var io={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jl=At(io),hs=K({},io,{view:0,detail:0}),x1=At(hs),eu,tu,ps,Ai=K({},hs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ru,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==ps&&(ps&&n.type==="mousemove"?(eu=n.screenX-ps.screenX,tu=n.screenY-ps.screenY):tu=eu=0,ps=n),eu)},movementY:function(n){return"movementY"in n?n.movementY:tu}}),Nh=At(Ai),w1=K({},Ai,{dataTransfer:0}),b1=At(w1),S1=K({},hs,{relatedTarget:0}),nu=At(S1),C1=K({},io,{animationName:0,elapsedTime:0,pseudoElement:0}),E1=At(C1),P1=K({},io,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),T1=At(P1),R1=K({},io,{data:0}),Ah=At(R1),k1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},N1={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"},A1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function j1(n){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(n):(n=A1[n])?!!o[n]:!1}function ru(){return j1}var M1=K({},hs,{key:function(n){if(n.key){var o=k1[n.key]||n.key;if(o!=="Unidentified")return o}return n.type==="keypress"?(n=ki(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?N1[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ru,charCode:function(n){return n.type==="keypress"?ki(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?ki(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),D1=At(M1),O1=K({},Ai,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jh=At(O1),L1=K({},hs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ru}),_1=At(L1),I1=K({},io,{propertyName:0,elapsedTime:0,pseudoElement:0}),F1=At(I1),V1=K({},Ai,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),z1=At(V1),B1=[9,13,27,32],ou=d&&"CompositionEvent"in window,ms=null;d&&"documentMode"in document&&(ms=document.documentMode);var U1=d&&"TextEvent"in window&&!ms,Mh=d&&(!ou||ms&&8<ms&&11>=ms),Dh=" ",Oh=!1;function Lh(n,o){switch(n){case"keyup":return B1.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _h(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var ao=!1;function $1(n,o){switch(n){case"compositionend":return _h(o);case"keypress":return o.which!==32?null:(Oh=!0,Dh);case"textInput":return n=o.data,n===Dh&&Oh?null:n;default:return null}}function W1(n,o){if(ao)return n==="compositionend"||!ou&&Lh(n,o)?(n=Rh(),Ri=Zl=tr=null,ao=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Mh&&o.locale!=="ko"?null:o.data;default:return null}}var H1={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 Ih(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o==="input"?!!H1[n.type]:o==="textarea"}function Fh(n,o,i,u){mi(u),o=Li(o,"onChange"),0<o.length&&(i=new Jl("onChange","change",null,i,u),n.push({event:i,listeners:o}))}var gs=null,ys=null;function K1(n){np(n,0)}function ji(n){var o=ho(n);if(Yn(o))return n}function Q1(n,o){if(n==="change")return o}var Vh=!1;if(d){var su;if(d){var iu="oninput"in document;if(!iu){var zh=document.createElement("div");zh.setAttribute("oninput","return;"),iu=typeof zh.oninput=="function"}su=iu}else su=!1;Vh=su&&(!document.documentMode||9<document.documentMode)}function Bh(){gs&&(gs.detachEvent("onpropertychange",Uh),ys=gs=null)}function Uh(n){if(n.propertyName==="value"&&ji(ys)){var o=[];Fh(o,ys,n,ro(n)),xt(K1,o)}}function Y1(n,o,i){n==="focusin"?(Bh(),gs=o,ys=i,gs.attachEvent("onpropertychange",Uh)):n==="focusout"&&Bh()}function G1(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return ji(ys)}function X1(n,o){if(n==="click")return ji(o)}function q1(n,o){if(n==="input"||n==="change")return ji(o)}function Z1(n,o){return n===o&&(n!==0||1/n===1/o)||n!==n&&o!==o}var Jt=typeof Object.is=="function"?Object.is:Z1;function vs(n,o){if(Jt(n,o))return!0;if(typeof n!="object"||n===null||typeof o!="object"||o===null)return!1;var i=Object.keys(n),u=Object.keys(o);if(i.length!==u.length)return!1;for(u=0;u<i.length;u++){var f=i[u];if(!h.call(o,f)||!Jt(n[f],o[f]))return!1}return!0}function $h(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Wh(n,o){var i=$h(n);n=0;for(var u;i;){if(i.nodeType===3){if(u=n+i.textContent.length,n<=o&&u>=o)return{node:i,offset:o-n};n=u}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=$h(i)}}function Hh(n,o){return n&&o?n===o?!0:n&&n.nodeType===3?!1:o&&o.nodeType===3?Hh(n,o.parentNode):"contains"in n?n.contains(o):n.compareDocumentPosition?!!(n.compareDocumentPosition(o)&16):!1:!1}function Kh(){for(var n=window,o=Ft();o instanceof n.HTMLIFrameElement;){try{var i=typeof o.contentWindow.location.href=="string"}catch{i=!1}if(i)n=o.contentWindow;else break;o=Ft(n.document)}return o}function au(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o&&(o==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||o==="textarea"||n.contentEditable==="true")}function J1(n){var o=Kh(),i=n.focusedElem,u=n.selectionRange;if(o!==i&&i&&i.ownerDocument&&Hh(i.ownerDocument.documentElement,i)){if(u!==null&&au(i)){if(o=u.start,n=u.end,n===void 0&&(n=o),"selectionStart"in i)i.selectionStart=o,i.selectionEnd=Math.min(n,i.value.length);else if(n=(o=i.ownerDocument||document)&&o.defaultView||window,n.getSelection){n=n.getSelection();var f=i.textContent.length,g=Math.min(u.start,f);u=u.end===void 0?g:Math.min(u.end,f),!n.extend&&g>u&&(f=u,u=g,g=f),f=Wh(i,g);var C=Wh(i,u);f&&C&&(n.rangeCount!==1||n.anchorNode!==f.node||n.anchorOffset!==f.offset||n.focusNode!==C.node||n.focusOffset!==C.offset)&&(o=o.createRange(),o.setStart(f.node,f.offset),n.removeAllRanges(),g>u?(n.addRange(o),n.extend(C.node,C.offset)):(o.setEnd(C.node,C.offset),n.addRange(o)))}}for(o=[],n=i;n=n.parentNode;)n.nodeType===1&&o.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<o.length;i++)n=o[i],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var eS=d&&"documentMode"in document&&11>=document.documentMode,lo=null,lu=null,xs=null,uu=!1;function Qh(n,o,i){var u=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;uu||lo==null||lo!==Ft(u)||(u=lo,"selectionStart"in u&&au(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),xs&&vs(xs,u)||(xs=u,u=Li(lu,"onSelect"),0<u.length&&(o=new Jl("onSelect","select",null,o,i),n.push({event:o,listeners:u}),o.target=lo)))}function Mi(n,o){var i={};return i[n.toLowerCase()]=o.toLowerCase(),i["Webkit"+n]="webkit"+o,i["Moz"+n]="moz"+o,i}var uo={animationend:Mi("Animation","AnimationEnd"),animationiteration:Mi("Animation","AnimationIteration"),animationstart:Mi("Animation","AnimationStart"),transitionend:Mi("Transition","TransitionEnd")},cu={},Yh={};d&&(Yh=document.createElement("div").style,"AnimationEvent"in window||(delete uo.animationend.animation,delete uo.animationiteration.animation,delete uo.animationstart.animation),"TransitionEvent"in window||delete uo.transitionend.transition);function Di(n){if(cu[n])return cu[n];if(!uo[n])return n;var o=uo[n],i;for(i in o)if(o.hasOwnProperty(i)&&i in Yh)return cu[n]=o[i];return n}var Gh=Di("animationend"),Xh=Di("animationiteration"),qh=Di("animationstart"),Zh=Di("transitionend"),Jh=new Map,ep="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 nr(n,o){Jh.set(n,o),l(o,[n])}for(var du=0;du<ep.length;du++){var fu=ep[du],tS=fu.toLowerCase(),nS=fu[0].toUpperCase()+fu.slice(1);nr(tS,"on"+nS)}nr(Gh,"onAnimationEnd"),nr(Xh,"onAnimationIteration"),nr(qh,"onAnimationStart"),nr("dblclick","onDoubleClick"),nr("focusin","onFocus"),nr("focusout","onBlur"),nr(Zh,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ws="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(" "),rS=new Set("cancel close invalid load scroll toggle".split(" ").concat(ws));function tp(n,o,i){var u=n.type||"unknown-event";n.currentTarget=i,t1(u,o,void 0,n),n.currentTarget=null}function np(n,o){o=(o&4)!==0;for(var i=0;i<n.length;i++){var u=n[i],f=u.event;u=u.listeners;e:{var g=void 0;if(o)for(var C=u.length-1;0<=C;C--){var k=u[C],j=k.instance,I=k.currentTarget;if(k=k.listener,j!==g&&f.isPropagationStopped())break e;tp(f,k,I),g=j}else for(C=0;C<u.length;C++){if(k=u[C],j=k.instance,I=k.currentTarget,k=k.listener,j!==g&&f.isPropagationStopped())break e;tp(f,k,I),g=j}}}if(yi)throw n=$l,yi=!1,$l=null,n}function Oe(n,o){var i=o[wu];i===void 0&&(i=o[wu]=new Set);var u=n+"__bubble";i.has(u)||(rp(o,n,2,!1),i.add(u))}function hu(n,o,i){var u=0;o&&(u|=4),rp(i,n,u,o)}var Oi="_reactListening"+Math.random().toString(36).slice(2);function bs(n){if(!n[Oi]){n[Oi]=!0,s.forEach(function(i){i!=="selectionchange"&&(rS.has(i)||hu(i,!1,n),hu(i,!0,n))});var o=n.nodeType===9?n:n.ownerDocument;o===null||o[Oi]||(o[Oi]=!0,hu("selectionchange",!1,o))}}function rp(n,o,i,u){switch(Th(o)){case 1:var f=y1;break;case 4:f=v1;break;default:f=Xl}i=f.bind(null,o,i,n),f=void 0,!qt||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(f=!0),u?f!==void 0?n.addEventListener(o,i,{capture:!0,passive:f}):n.addEventListener(o,i,!0):f!==void 0?n.addEventListener(o,i,{passive:f}):n.addEventListener(o,i,!1)}function pu(n,o,i,u,f){var g=u;if((o&1)===0&&(o&2)===0&&u!==null)e:for(;;){if(u===null)return;var C=u.tag;if(C===3||C===4){var k=u.stateNode.containerInfo;if(k===f||k.nodeType===8&&k.parentNode===f)break;if(C===4)for(C=u.return;C!==null;){var j=C.tag;if((j===3||j===4)&&(j=C.stateNode.containerInfo,j===f||j.nodeType===8&&j.parentNode===f))return;C=C.return}for(;k!==null;){if(C=Nr(k),C===null)return;if(j=C.tag,j===5||j===6){u=g=C;continue e}k=k.parentNode}}u=u.return}xt(function(){var I=g,Y=ro(i),G=[];e:{var Q=Jh.get(n);if(Q!==void 0){var ne=Jl,ie=n;switch(n){case"keypress":if(ki(i)===0)break e;case"keydown":case"keyup":ne=D1;break;case"focusin":ie="focus",ne=nu;break;case"focusout":ie="blur",ne=nu;break;case"beforeblur":case"afterblur":ne=nu;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ne=Nh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=b1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=_1;break;case Gh:case Xh:case qh:ne=E1;break;case Zh:ne=F1;break;case"scroll":ne=x1;break;case"wheel":ne=z1;break;case"copy":case"cut":case"paste":ne=T1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=jh}var ue=(o&4)!==0,Ke=!ue&&n==="scroll",L=ue?Q!==null?Q+"Capture":null:Q;ue=[];for(var D=I,_;D!==null;){_=D;var Z=_.stateNode;if(_.tag===5&&Z!==null&&(_=Z,L!==null&&(Z=wt(D,L),Z!=null&&ue.push(Ss(D,Z,_)))),Ke)break;D=D.return}0<ue.length&&(Q=new ne(Q,ie,null,i,Y),G.push({event:Q,listeners:ue}))}}if((o&7)===0){e:{if(Q=n==="mouseover"||n==="pointerover",ne=n==="mouseout"||n==="pointerout",Q&&i!==os&&(ie=i.relatedTarget||i.fromElement)&&(Nr(ie)||ie[Ln]))break e;if((ne||Q)&&(Q=Y.window===Y?Y:(Q=Y.ownerDocument)?Q.defaultView||Q.parentWindow:window,ne?(ie=i.relatedTarget||i.toElement,ne=I,ie=ie?Nr(ie):null,ie!==null&&(Ke=kr(ie),ie!==Ke||ie.tag!==5&&ie.tag!==6)&&(ie=null)):(ne=null,ie=I),ne!==ie)){if(ue=Nh,Z="onMouseLeave",L="onMouseEnter",D="mouse",(n==="pointerout"||n==="pointerover")&&(ue=jh,Z="onPointerLeave",L="onPointerEnter",D="pointer"),Ke=ne==null?Q:ho(ne),_=ie==null?Q:ho(ie),Q=new ue(Z,D+"leave",ne,i,Y),Q.target=Ke,Q.relatedTarget=_,Z=null,Nr(Y)===I&&(ue=new ue(L,D+"enter",ie,i,Y),ue.target=_,ue.relatedTarget=Ke,Z=ue),Ke=Z,ne&&ie)t:{for(ue=ne,L=ie,D=0,_=ue;_;_=co(_))D++;for(_=0,Z=L;Z;Z=co(Z))_++;for(;0<D-_;)ue=co(ue),D--;for(;0<_-D;)L=co(L),_--;for(;D--;){if(ue===L||L!==null&&ue===L.alternate)break t;ue=co(ue),L=co(L)}ue=null}else ue=null;ne!==null&&op(G,Q,ne,ue,!1),ie!==null&&Ke!==null&&op(G,Ke,ie,ue,!0)}}e:{if(Q=I?ho(I):window,ne=Q.nodeName&&Q.nodeName.toLowerCase(),ne==="select"||ne==="input"&&Q.type==="file")var ce=Q1;else if(Ih(Q))if(Vh)ce=q1;else{ce=G1;var pe=Y1}else(ne=Q.nodeName)&&ne.toLowerCase()==="input"&&(Q.type==="checkbox"||Q.type==="radio")&&(ce=X1);if(ce&&(ce=ce(n,I))){Fh(G,ce,i,Y);break e}pe&&pe(n,Q,I),n==="focusout"&&(pe=Q._wrapperState)&&pe.controlled&&Q.type==="number"&&ns(Q,"number",Q.value)}switch(pe=I?ho(I):window,n){case"focusin":(Ih(pe)||pe.contentEditable==="true")&&(lo=pe,lu=I,xs=null);break;case"focusout":xs=lu=lo=null;break;case"mousedown":uu=!0;break;case"contextmenu":case"mouseup":case"dragend":uu=!1,Qh(G,i,Y);break;case"selectionchange":if(eS)break;case"keydown":case"keyup":Qh(G,i,Y)}var me;if(ou)e:{switch(n){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else ao?Lh(n,i)&&(ye="onCompositionEnd"):n==="keydown"&&i.keyCode===229&&(ye="onCompositionStart");ye&&(Mh&&i.locale!=="ko"&&(ao||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&ao&&(me=Rh()):(tr=Y,Zl="value"in tr?tr.value:tr.textContent,ao=!0)),pe=Li(I,ye),0<pe.length&&(ye=new Ah(ye,n,null,i,Y),G.push({event:ye,listeners:pe}),me?ye.data=me:(me=_h(i),me!==null&&(ye.data=me)))),(me=U1?$1(n,i):W1(n,i))&&(I=Li(I,"onBeforeInput"),0<I.length&&(Y=new Ah("onBeforeInput","beforeinput",null,i,Y),G.push({event:Y,listeners:I}),Y.data=me))}np(G,o)})}function Ss(n,o,i){return{instance:n,listener:o,currentTarget:i}}function Li(n,o){for(var i=o+"Capture",u=[];n!==null;){var f=n,g=f.stateNode;f.tag===5&&g!==null&&(f=g,g=wt(n,i),g!=null&&u.unshift(Ss(n,g,f)),g=wt(n,o),g!=null&&u.push(Ss(n,g,f))),n=n.return}return u}function co(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function op(n,o,i,u,f){for(var g=o._reactName,C=[];i!==null&&i!==u;){var k=i,j=k.alternate,I=k.stateNode;if(j!==null&&j===u)break;k.tag===5&&I!==null&&(k=I,f?(j=wt(i,g),j!=null&&C.unshift(Ss(i,j,k))):f||(j=wt(i,g),j!=null&&C.push(Ss(i,j,k)))),i=i.return}C.length!==0&&n.push({event:o,listeners:C})}var oS=/\r\n?/g,sS=/\u0000|\uFFFD/g;function sp(n){return(typeof n=="string"?n:""+n).replace(oS,`
|
|
6
|
-
`).replace(sS,"")}function _i(n,o,i){if(o=sp(o),sp(n)!==o&&i)throw Error(r(425))}function Ii(){}var mu=null,gu=null;function yu(n,o){return n==="textarea"||n==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,iS=typeof clearTimeout=="function"?clearTimeout:void 0,ip=typeof Promise=="function"?Promise:void 0,aS=typeof queueMicrotask=="function"?queueMicrotask:typeof ip<"u"?function(n){return ip.resolve(null).then(n).catch(lS)}:vu;function lS(n){setTimeout(function(){throw n})}function xu(n,o){var i=o,u=0;do{var f=i.nextSibling;if(n.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"){if(u===0){n.removeChild(f),fs(o);return}u--}else i!=="$"&&i!=="$?"&&i!=="$!"||u++;i=f}while(i);fs(o)}function rr(n){for(;n!=null;n=n.nextSibling){var o=n.nodeType;if(o===1||o===3)break;if(o===8){if(o=n.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return n}function ap(n){n=n.previousSibling;for(var o=0;n;){if(n.nodeType===8){var i=n.data;if(i==="$"||i==="$!"||i==="$?"){if(o===0)return n;o--}else i==="/$"&&o++}n=n.previousSibling}return null}var fo=Math.random().toString(36).slice(2),wn="__reactFiber$"+fo,Cs="__reactProps$"+fo,Ln="__reactContainer$"+fo,wu="__reactEvents$"+fo,uS="__reactListeners$"+fo,cS="__reactHandles$"+fo;function Nr(n){var o=n[wn];if(o)return o;for(var i=n.parentNode;i;){if(o=i[Ln]||i[wn]){if(i=o.alternate,o.child!==null||i!==null&&i.child!==null)for(n=ap(n);n!==null;){if(i=n[wn])return i;n=ap(n)}return o}n=i,i=n.parentNode}return null}function Es(n){return n=n[wn]||n[Ln],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function ho(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function Fi(n){return n[Cs]||null}var bu=[],po=-1;function or(n){return{current:n}}function Le(n){0>po||(n.current=bu[po],bu[po]=null,po--)}function Me(n,o){po++,bu[po]=n.current,n.current=o}var sr={},lt=or(sr),bt=or(!1),Ar=sr;function mo(n,o){var i=n.type.contextTypes;if(!i)return sr;var u=n.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===o)return u.__reactInternalMemoizedMaskedChildContext;var f={},g;for(g in i)f[g]=o[g];return u&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=o,n.__reactInternalMemoizedMaskedChildContext=f),f}function St(n){return n=n.childContextTypes,n!=null}function Vi(){Le(bt),Le(lt)}function lp(n,o,i){if(lt.current!==sr)throw Error(r(168));Me(lt,o),Me(bt,i)}function up(n,o,i){var u=n.stateNode;if(o=o.childContextTypes,typeof u.getChildContext!="function")return i;u=u.getChildContext();for(var f in u)if(!(f in o))throw Error(r(108,fe(n)||"Unknown",f));return K({},i,u)}function zi(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||sr,Ar=lt.current,Me(lt,n),Me(bt,bt.current),!0}function cp(n,o,i){var u=n.stateNode;if(!u)throw Error(r(169));i?(n=up(n,o,Ar),u.__reactInternalMemoizedMergedChildContext=n,Le(bt),Le(lt),Me(lt,n)):Le(bt),Me(bt,i)}var _n=null,Bi=!1,Su=!1;function dp(n){_n===null?_n=[n]:_n.push(n)}function dS(n){Bi=!0,dp(n)}function ir(){if(!Su&&_n!==null){Su=!0;var n=0,o=Ne;try{var i=_n;for(Ne=1;n<i.length;n++){var u=i[n];do u=u(!0);while(u!==null)}_n=null,Bi=!1}catch(f){throw _n!==null&&(_n=_n.slice(n+1)),hh(Wl,ir),f}finally{Ne=o,Su=!1}}return null}var go=[],yo=0,Ui=null,$i=0,zt=[],Bt=0,jr=null,In=1,Fn="";function Mr(n,o){go[yo++]=$i,go[yo++]=Ui,Ui=n,$i=o}function fp(n,o,i){zt[Bt++]=In,zt[Bt++]=Fn,zt[Bt++]=jr,jr=n;var u=In;n=Fn;var f=32-Zt(u)-1;u&=~(1<<f),i+=1;var g=32-Zt(o)+f;if(30<g){var C=f-f%5;g=(u&(1<<C)-1).toString(32),u>>=C,f-=C,In=1<<32-Zt(o)+f|i<<f|u,Fn=g+n}else In=1<<g|i<<f|u,Fn=n}function Cu(n){n.return!==null&&(Mr(n,1),fp(n,1,0))}function Eu(n){for(;n===Ui;)Ui=go[--yo],go[yo]=null,$i=go[--yo],go[yo]=null;for(;n===jr;)jr=zt[--Bt],zt[Bt]=null,Fn=zt[--Bt],zt[Bt]=null,In=zt[--Bt],zt[Bt]=null}var jt=null,Mt=null,Ie=!1,en=null;function hp(n,o){var i=Ht(5,null,null,0);i.elementType="DELETED",i.stateNode=o,i.return=n,o=n.deletions,o===null?(n.deletions=[i],n.flags|=16):o.push(i)}function pp(n,o){switch(n.tag){case 5:var i=n.type;return o=o.nodeType!==1||i.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(n.stateNode=o,jt=n,Mt=rr(o.firstChild),!0):!1;case 6:return o=n.pendingProps===""||o.nodeType!==3?null:o,o!==null?(n.stateNode=o,jt=n,Mt=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(i=jr!==null?{id:In,overflow:Fn}:null,n.memoizedState={dehydrated:o,treeContext:i,retryLane:1073741824},i=Ht(18,null,null,0),i.stateNode=o,i.return=n,n.child=i,jt=n,Mt=null,!0):!1;default:return!1}}function Pu(n){return(n.mode&1)!==0&&(n.flags&128)===0}function Tu(n){if(Ie){var o=Mt;if(o){var i=o;if(!pp(n,o)){if(Pu(n))throw Error(r(418));o=rr(i.nextSibling);var u=jt;o&&pp(n,o)?hp(u,i):(n.flags=n.flags&-4097|2,Ie=!1,jt=n)}}else{if(Pu(n))throw Error(r(418));n.flags=n.flags&-4097|2,Ie=!1,jt=n}}}function mp(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;jt=n}function Wi(n){if(n!==jt)return!1;if(!Ie)return mp(n),Ie=!0,!1;var o;if((o=n.tag!==3)&&!(o=n.tag!==5)&&(o=n.type,o=o!=="head"&&o!=="body"&&!yu(n.type,n.memoizedProps)),o&&(o=Mt)){if(Pu(n))throw gp(),Error(r(418));for(;o;)hp(n,o),o=rr(o.nextSibling)}if(mp(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,o=0;n;){if(n.nodeType===8){var i=n.data;if(i==="/$"){if(o===0){Mt=rr(n.nextSibling);break e}o--}else i!=="$"&&i!=="$!"&&i!=="$?"||o++}n=n.nextSibling}Mt=null}}else Mt=jt?rr(n.stateNode.nextSibling):null;return!0}function gp(){for(var n=Mt;n;)n=rr(n.nextSibling)}function vo(){Mt=jt=null,Ie=!1}function Ru(n){en===null?en=[n]:en.push(n)}var fS=A.ReactCurrentBatchConfig;function Ps(n,o,i){if(n=i.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(i._owner){if(i=i._owner,i){if(i.tag!==1)throw Error(r(309));var u=i.stateNode}if(!u)throw Error(r(147,n));var f=u,g=""+n;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===g?o.ref:(o=function(C){var k=f.refs;C===null?delete k[g]:k[g]=C},o._stringRef=g,o)}if(typeof n!="string")throw Error(r(284));if(!i._owner)throw Error(r(290,n))}return n}function Hi(n,o){throw n=Object.prototype.toString.call(o),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":n))}function yp(n){var o=n._init;return o(n._payload)}function vp(n){function o(L,D){if(n){var _=L.deletions;_===null?(L.deletions=[D],L.flags|=16):_.push(D)}}function i(L,D){if(!n)return null;for(;D!==null;)o(L,D),D=D.sibling;return null}function u(L,D){for(L=new Map;D!==null;)D.key!==null?L.set(D.key,D):L.set(D.index,D),D=D.sibling;return L}function f(L,D){return L=pr(L,D),L.index=0,L.sibling=null,L}function g(L,D,_){return L.index=_,n?(_=L.alternate,_!==null?(_=_.index,_<D?(L.flags|=2,D):_):(L.flags|=2,D)):(L.flags|=1048576,D)}function C(L){return n&&L.alternate===null&&(L.flags|=2),L}function k(L,D,_,Z){return D===null||D.tag!==6?(D=vc(_,L.mode,Z),D.return=L,D):(D=f(D,_),D.return=L,D)}function j(L,D,_,Z){var ce=_.type;return ce===$?Y(L,D,_.props.children,Z,_.key):D!==null&&(D.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===re&&yp(ce)===D.type)?(Z=f(D,_.props),Z.ref=Ps(L,D,_),Z.return=L,Z):(Z=ma(_.type,_.key,_.props,null,L.mode,Z),Z.ref=Ps(L,D,_),Z.return=L,Z)}function I(L,D,_,Z){return D===null||D.tag!==4||D.stateNode.containerInfo!==_.containerInfo||D.stateNode.implementation!==_.implementation?(D=xc(_,L.mode,Z),D.return=L,D):(D=f(D,_.children||[]),D.return=L,D)}function Y(L,D,_,Z,ce){return D===null||D.tag!==7?(D=zr(_,L.mode,Z,ce),D.return=L,D):(D=f(D,_),D.return=L,D)}function G(L,D,_){if(typeof D=="string"&&D!==""||typeof D=="number")return D=vc(""+D,L.mode,_),D.return=L,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case O:return _=ma(D.type,D.key,D.props,null,L.mode,_),_.ref=Ps(L,null,D),_.return=L,_;case F:return D=xc(D,L.mode,_),D.return=L,D;case re:var Z=D._init;return G(L,Z(D._payload),_)}if(Gn(D)||U(D))return D=zr(D,L.mode,_,null),D.return=L,D;Hi(L,D)}return null}function Q(L,D,_,Z){var ce=D!==null?D.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return ce!==null?null:k(L,D,""+_,Z);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case O:return _.key===ce?j(L,D,_,Z):null;case F:return _.key===ce?I(L,D,_,Z):null;case re:return ce=_._init,Q(L,D,ce(_._payload),Z)}if(Gn(_)||U(_))return ce!==null?null:Y(L,D,_,Z,null);Hi(L,_)}return null}function ne(L,D,_,Z,ce){if(typeof Z=="string"&&Z!==""||typeof Z=="number")return L=L.get(_)||null,k(D,L,""+Z,ce);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case O:return L=L.get(Z.key===null?_:Z.key)||null,j(D,L,Z,ce);case F:return L=L.get(Z.key===null?_:Z.key)||null,I(D,L,Z,ce);case re:var pe=Z._init;return ne(L,D,_,pe(Z._payload),ce)}if(Gn(Z)||U(Z))return L=L.get(_)||null,Y(D,L,Z,ce,null);Hi(D,Z)}return null}function ie(L,D,_,Z){for(var ce=null,pe=null,me=D,ye=D=0,tt=null;me!==null&&ye<_.length;ye++){me.index>ye?(tt=me,me=null):tt=me.sibling;var Te=Q(L,me,_[ye],Z);if(Te===null){me===null&&(me=tt);break}n&&me&&Te.alternate===null&&o(L,me),D=g(Te,D,ye),pe===null?ce=Te:pe.sibling=Te,pe=Te,me=tt}if(ye===_.length)return i(L,me),Ie&&Mr(L,ye),ce;if(me===null){for(;ye<_.length;ye++)me=G(L,_[ye],Z),me!==null&&(D=g(me,D,ye),pe===null?ce=me:pe.sibling=me,pe=me);return Ie&&Mr(L,ye),ce}for(me=u(L,me);ye<_.length;ye++)tt=ne(me,L,ye,_[ye],Z),tt!==null&&(n&&tt.alternate!==null&&me.delete(tt.key===null?ye:tt.key),D=g(tt,D,ye),pe===null?ce=tt:pe.sibling=tt,pe=tt);return n&&me.forEach(function(mr){return o(L,mr)}),Ie&&Mr(L,ye),ce}function ue(L,D,_,Z){var ce=U(_);if(typeof ce!="function")throw Error(r(150));if(_=ce.call(_),_==null)throw Error(r(151));for(var pe=ce=null,me=D,ye=D=0,tt=null,Te=_.next();me!==null&&!Te.done;ye++,Te=_.next()){me.index>ye?(tt=me,me=null):tt=me.sibling;var mr=Q(L,me,Te.value,Z);if(mr===null){me===null&&(me=tt);break}n&&me&&mr.alternate===null&&o(L,me),D=g(mr,D,ye),pe===null?ce=mr:pe.sibling=mr,pe=mr,me=tt}if(Te.done)return i(L,me),Ie&&Mr(L,ye),ce;if(me===null){for(;!Te.done;ye++,Te=_.next())Te=G(L,Te.value,Z),Te!==null&&(D=g(Te,D,ye),pe===null?ce=Te:pe.sibling=Te,pe=Te);return Ie&&Mr(L,ye),ce}for(me=u(L,me);!Te.done;ye++,Te=_.next())Te=ne(me,L,ye,Te.value,Z),Te!==null&&(n&&Te.alternate!==null&&me.delete(Te.key===null?ye:Te.key),D=g(Te,D,ye),pe===null?ce=Te:pe.sibling=Te,pe=Te);return n&&me.forEach(function(HS){return o(L,HS)}),Ie&&Mr(L,ye),ce}function Ke(L,D,_,Z){if(typeof _=="object"&&_!==null&&_.type===$&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case O:e:{for(var ce=_.key,pe=D;pe!==null;){if(pe.key===ce){if(ce=_.type,ce===$){if(pe.tag===7){i(L,pe.sibling),D=f(pe,_.props.children),D.return=L,L=D;break e}}else if(pe.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===re&&yp(ce)===pe.type){i(L,pe.sibling),D=f(pe,_.props),D.ref=Ps(L,pe,_),D.return=L,L=D;break e}i(L,pe);break}else o(L,pe);pe=pe.sibling}_.type===$?(D=zr(_.props.children,L.mode,Z,_.key),D.return=L,L=D):(Z=ma(_.type,_.key,_.props,null,L.mode,Z),Z.ref=Ps(L,D,_),Z.return=L,L=Z)}return C(L);case F:e:{for(pe=_.key;D!==null;){if(D.key===pe)if(D.tag===4&&D.stateNode.containerInfo===_.containerInfo&&D.stateNode.implementation===_.implementation){i(L,D.sibling),D=f(D,_.children||[]),D.return=L,L=D;break e}else{i(L,D);break}else o(L,D);D=D.sibling}D=xc(_,L.mode,Z),D.return=L,L=D}return C(L);case re:return pe=_._init,Ke(L,D,pe(_._payload),Z)}if(Gn(_))return ie(L,D,_,Z);if(U(_))return ue(L,D,_,Z);Hi(L,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,D!==null&&D.tag===6?(i(L,D.sibling),D=f(D,_),D.return=L,L=D):(i(L,D),D=vc(_,L.mode,Z),D.return=L,L=D),C(L)):i(L,D)}return Ke}var xo=vp(!0),xp=vp(!1),Ki=or(null),Qi=null,wo=null,ku=null;function Nu(){ku=wo=Qi=null}function Au(n){var o=Ki.current;Le(Ki),n._currentValue=o}function ju(n,o,i){for(;n!==null;){var u=n.alternate;if((n.childLanes&o)!==o?(n.childLanes|=o,u!==null&&(u.childLanes|=o)):u!==null&&(u.childLanes&o)!==o&&(u.childLanes|=o),n===i)break;n=n.return}}function bo(n,o){Qi=n,ku=wo=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&o)!==0&&(Ct=!0),n.firstContext=null)}function Ut(n){var o=n._currentValue;if(ku!==n)if(n={context:n,memoizedValue:o,next:null},wo===null){if(Qi===null)throw Error(r(308));wo=n,Qi.dependencies={lanes:0,firstContext:n}}else wo=wo.next=n;return o}var Dr=null;function Mu(n){Dr===null?Dr=[n]:Dr.push(n)}function wp(n,o,i,u){var f=o.interleaved;return f===null?(i.next=i,Mu(o)):(i.next=f.next,f.next=i),o.interleaved=i,Vn(n,u)}function Vn(n,o){n.lanes|=o;var i=n.alternate;for(i!==null&&(i.lanes|=o),i=n,n=n.return;n!==null;)n.childLanes|=o,i=n.alternate,i!==null&&(i.childLanes|=o),i=n,n=n.return;return i.tag===3?i.stateNode:null}var ar=!1;function Du(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bp(n,o){n=n.updateQueue,o.updateQueue===n&&(o.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function zn(n,o){return{eventTime:n,lane:o,tag:0,payload:null,callback:null,next:null}}function lr(n,o,i){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(Ee&2)!==0){var f=u.pending;return f===null?o.next=o:(o.next=f.next,f.next=o),u.pending=o,Vn(n,i)}return f=u.interleaved,f===null?(o.next=o,Mu(u)):(o.next=f.next,f.next=o),u.interleaved=o,Vn(n,i)}function Yi(n,o,i){if(o=o.updateQueue,o!==null&&(o=o.shared,(i&4194240)!==0)){var u=o.lanes;u&=n.pendingLanes,i|=u,o.lanes=i,Ql(n,i)}}function Sp(n,o){var i=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,i===u)){var f=null,g=null;if(i=i.firstBaseUpdate,i!==null){do{var C={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};g===null?f=g=C:g=g.next=C,i=i.next}while(i!==null);g===null?f=g=o:g=g.next=o}else f=g=o;i={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:g,shared:u.shared,effects:u.effects},n.updateQueue=i;return}n=i.lastBaseUpdate,n===null?i.firstBaseUpdate=o:n.next=o,i.lastBaseUpdate=o}function Gi(n,o,i,u){var f=n.updateQueue;ar=!1;var g=f.firstBaseUpdate,C=f.lastBaseUpdate,k=f.shared.pending;if(k!==null){f.shared.pending=null;var j=k,I=j.next;j.next=null,C===null?g=I:C.next=I,C=j;var Y=n.alternate;Y!==null&&(Y=Y.updateQueue,k=Y.lastBaseUpdate,k!==C&&(k===null?Y.firstBaseUpdate=I:k.next=I,Y.lastBaseUpdate=j))}if(g!==null){var G=f.baseState;C=0,Y=I=j=null,k=g;do{var Q=k.lane,ne=k.eventTime;if((u&Q)===Q){Y!==null&&(Y=Y.next={eventTime:ne,lane:0,tag:k.tag,payload:k.payload,callback:k.callback,next:null});e:{var ie=n,ue=k;switch(Q=o,ne=i,ue.tag){case 1:if(ie=ue.payload,typeof ie=="function"){G=ie.call(ne,G,Q);break e}G=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=ue.payload,Q=typeof ie=="function"?ie.call(ne,G,Q):ie,Q==null)break e;G=K({},G,Q);break e;case 2:ar=!0}}k.callback!==null&&k.lane!==0&&(n.flags|=64,Q=f.effects,Q===null?f.effects=[k]:Q.push(k))}else ne={eventTime:ne,lane:Q,tag:k.tag,payload:k.payload,callback:k.callback,next:null},Y===null?(I=Y=ne,j=G):Y=Y.next=ne,C|=Q;if(k=k.next,k===null){if(k=f.shared.pending,k===null)break;Q=k,k=Q.next,Q.next=null,f.lastBaseUpdate=Q,f.shared.pending=null}}while(!0);if(Y===null&&(j=G),f.baseState=j,f.firstBaseUpdate=I,f.lastBaseUpdate=Y,o=f.shared.interleaved,o!==null){f=o;do C|=f.lane,f=f.next;while(f!==o)}else g===null&&(f.shared.lanes=0);_r|=C,n.lanes=C,n.memoizedState=G}}function Cp(n,o,i){if(n=o.effects,o.effects=null,n!==null)for(o=0;o<n.length;o++){var u=n[o],f=u.callback;if(f!==null){if(u.callback=null,u=i,typeof f!="function")throw Error(r(191,f));f.call(u)}}}var Ts={},bn=or(Ts),Rs=or(Ts),ks=or(Ts);function Or(n){if(n===Ts)throw Error(r(174));return n}function Ou(n,o){switch(Me(ks,o),Me(Rs,n),Me(bn,Ts),n=o.nodeType,n){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:pn(null,"");break;default:n=n===8?o.parentNode:o,o=n.namespaceURI||null,n=n.tagName,o=pn(o,n)}Le(bn),Me(bn,o)}function So(){Le(bn),Le(Rs),Le(ks)}function Ep(n){Or(ks.current);var o=Or(bn.current),i=pn(o,n.type);o!==i&&(Me(Rs,n),Me(bn,i))}function Lu(n){Rs.current===n&&(Le(bn),Le(Rs))}var Ve=or(0);function Xi(n){for(var o=n;o!==null;){if(o.tag===13){var i=o.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var _u=[];function Iu(){for(var n=0;n<_u.length;n++)_u[n]._workInProgressVersionPrimary=null;_u.length=0}var qi=A.ReactCurrentDispatcher,Fu=A.ReactCurrentBatchConfig,Lr=0,ze=null,Xe=null,Je=null,Zi=!1,Ns=!1,As=0,hS=0;function ut(){throw Error(r(321))}function Vu(n,o){if(o===null)return!1;for(var i=0;i<o.length&&i<n.length;i++)if(!Jt(n[i],o[i]))return!1;return!0}function zu(n,o,i,u,f,g){if(Lr=g,ze=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,qi.current=n===null||n.memoizedState===null?yS:vS,n=i(u,f),Ns){g=0;do{if(Ns=!1,As=0,25<=g)throw Error(r(301));g+=1,Je=Xe=null,o.updateQueue=null,qi.current=xS,n=i(u,f)}while(Ns)}if(qi.current=ta,o=Xe!==null&&Xe.next!==null,Lr=0,Je=Xe=ze=null,Zi=!1,o)throw Error(r(300));return n}function Bu(){var n=As!==0;return As=0,n}function Sn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?ze.memoizedState=Je=n:Je=Je.next=n,Je}function $t(){if(Xe===null){var n=ze.alternate;n=n!==null?n.memoizedState:null}else n=Xe.next;var o=Je===null?ze.memoizedState:Je.next;if(o!==null)Je=o,Xe=n;else{if(n===null)throw Error(r(310));Xe=n,n={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},Je===null?ze.memoizedState=Je=n:Je=Je.next=n}return Je}function js(n,o){return typeof o=="function"?o(n):o}function Uu(n){var o=$t(),i=o.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=n;var u=Xe,f=u.baseQueue,g=i.pending;if(g!==null){if(f!==null){var C=f.next;f.next=g.next,g.next=C}u.baseQueue=f=g,i.pending=null}if(f!==null){g=f.next,u=u.baseState;var k=C=null,j=null,I=g;do{var Y=I.lane;if((Lr&Y)===Y)j!==null&&(j=j.next={lane:0,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),u=I.hasEagerState?I.eagerState:n(u,I.action);else{var G={lane:Y,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null};j===null?(k=j=G,C=u):j=j.next=G,ze.lanes|=Y,_r|=Y}I=I.next}while(I!==null&&I!==g);j===null?C=u:j.next=k,Jt(u,o.memoizedState)||(Ct=!0),o.memoizedState=u,o.baseState=C,o.baseQueue=j,i.lastRenderedState=u}if(n=i.interleaved,n!==null){f=n;do g=f.lane,ze.lanes|=g,_r|=g,f=f.next;while(f!==n)}else f===null&&(i.lanes=0);return[o.memoizedState,i.dispatch]}function $u(n){var o=$t(),i=o.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=n;var u=i.dispatch,f=i.pending,g=o.memoizedState;if(f!==null){i.pending=null;var C=f=f.next;do g=n(g,C.action),C=C.next;while(C!==f);Jt(g,o.memoizedState)||(Ct=!0),o.memoizedState=g,o.baseQueue===null&&(o.baseState=g),i.lastRenderedState=g}return[g,u]}function Pp(){}function Tp(n,o){var i=ze,u=$t(),f=o(),g=!Jt(u.memoizedState,f);if(g&&(u.memoizedState=f,Ct=!0),u=u.queue,Wu(Np.bind(null,i,u,n),[n]),u.getSnapshot!==o||g||Je!==null&&Je.memoizedState.tag&1){if(i.flags|=2048,Ms(9,kp.bind(null,i,u,f,o),void 0,null),et===null)throw Error(r(349));(Lr&30)!==0||Rp(i,o,f)}return f}function Rp(n,o,i){n.flags|=16384,n={getSnapshot:o,value:i},o=ze.updateQueue,o===null?(o={lastEffect:null,stores:null},ze.updateQueue=o,o.stores=[n]):(i=o.stores,i===null?o.stores=[n]:i.push(n))}function kp(n,o,i,u){o.value=i,o.getSnapshot=u,Ap(o)&&jp(n)}function Np(n,o,i){return i(function(){Ap(o)&&jp(n)})}function Ap(n){var o=n.getSnapshot;n=n.value;try{var i=o();return!Jt(n,i)}catch{return!0}}function jp(n){var o=Vn(n,1);o!==null&&on(o,n,1,-1)}function Mp(n){var o=Sn();return typeof n=="function"&&(n=n()),o.memoizedState=o.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:js,lastRenderedState:n},o.queue=n,n=n.dispatch=gS.bind(null,ze,n),[o.memoizedState,n]}function Ms(n,o,i,u){return n={tag:n,create:o,destroy:i,deps:u,next:null},o=ze.updateQueue,o===null?(o={lastEffect:null,stores:null},ze.updateQueue=o,o.lastEffect=n.next=n):(i=o.lastEffect,i===null?o.lastEffect=n.next=n:(u=i.next,i.next=n,n.next=u,o.lastEffect=n)),n}function Dp(){return $t().memoizedState}function Ji(n,o,i,u){var f=Sn();ze.flags|=n,f.memoizedState=Ms(1|o,i,void 0,u===void 0?null:u)}function ea(n,o,i,u){var f=$t();u=u===void 0?null:u;var g=void 0;if(Xe!==null){var C=Xe.memoizedState;if(g=C.destroy,u!==null&&Vu(u,C.deps)){f.memoizedState=Ms(o,i,g,u);return}}ze.flags|=n,f.memoizedState=Ms(1|o,i,g,u)}function Op(n,o){return Ji(8390656,8,n,o)}function Wu(n,o){return ea(2048,8,n,o)}function Lp(n,o){return ea(4,2,n,o)}function _p(n,o){return ea(4,4,n,o)}function Ip(n,o){if(typeof o=="function")return n=n(),o(n),function(){o(null)};if(o!=null)return n=n(),o.current=n,function(){o.current=null}}function Fp(n,o,i){return i=i!=null?i.concat([n]):null,ea(4,4,Ip.bind(null,o,n),i)}function Hu(){}function Vp(n,o){var i=$t();o=o===void 0?null:o;var u=i.memoizedState;return u!==null&&o!==null&&Vu(o,u[1])?u[0]:(i.memoizedState=[n,o],n)}function zp(n,o){var i=$t();o=o===void 0?null:o;var u=i.memoizedState;return u!==null&&o!==null&&Vu(o,u[1])?u[0]:(n=n(),i.memoizedState=[n,o],n)}function Bp(n,o,i){return(Lr&21)===0?(n.baseState&&(n.baseState=!1,Ct=!0),n.memoizedState=i):(Jt(i,o)||(i=yh(),ze.lanes|=i,_r|=i,n.baseState=!0),o)}function pS(n,o){var i=Ne;Ne=i!==0&&4>i?i:4,n(!0);var u=Fu.transition;Fu.transition={};try{n(!1),o()}finally{Ne=i,Fu.transition=u}}function Up(){return $t().memoizedState}function mS(n,o,i){var u=fr(n);if(i={lane:u,action:i,hasEagerState:!1,eagerState:null,next:null},$p(n))Wp(o,i);else if(i=wp(n,o,i,u),i!==null){var f=gt();on(i,n,u,f),Hp(i,o,u)}}function gS(n,o,i){var u=fr(n),f={lane:u,action:i,hasEagerState:!1,eagerState:null,next:null};if($p(n))Wp(o,f);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=o.lastRenderedReducer,g!==null))try{var C=o.lastRenderedState,k=g(C,i);if(f.hasEagerState=!0,f.eagerState=k,Jt(k,C)){var j=o.interleaved;j===null?(f.next=f,Mu(o)):(f.next=j.next,j.next=f),o.interleaved=f;return}}catch{}i=wp(n,o,f,u),i!==null&&(f=gt(),on(i,n,u,f),Hp(i,o,u))}}function $p(n){var o=n.alternate;return n===ze||o!==null&&o===ze}function Wp(n,o){Ns=Zi=!0;var i=n.pending;i===null?o.next=o:(o.next=i.next,i.next=o),n.pending=o}function Hp(n,o,i){if((i&4194240)!==0){var u=o.lanes;u&=n.pendingLanes,i|=u,o.lanes=i,Ql(n,i)}}var ta={readContext:Ut,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useInsertionEffect:ut,useLayoutEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useMutableSource:ut,useSyncExternalStore:ut,useId:ut,unstable_isNewReconciler:!1},yS={readContext:Ut,useCallback:function(n,o){return Sn().memoizedState=[n,o===void 0?null:o],n},useContext:Ut,useEffect:Op,useImperativeHandle:function(n,o,i){return i=i!=null?i.concat([n]):null,Ji(4194308,4,Ip.bind(null,o,n),i)},useLayoutEffect:function(n,o){return Ji(4194308,4,n,o)},useInsertionEffect:function(n,o){return Ji(4,2,n,o)},useMemo:function(n,o){var i=Sn();return o=o===void 0?null:o,n=n(),i.memoizedState=[n,o],n},useReducer:function(n,o,i){var u=Sn();return o=i!==void 0?i(o):o,u.memoizedState=u.baseState=o,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:o},u.queue=n,n=n.dispatch=mS.bind(null,ze,n),[u.memoizedState,n]},useRef:function(n){var o=Sn();return n={current:n},o.memoizedState=n},useState:Mp,useDebugValue:Hu,useDeferredValue:function(n){return Sn().memoizedState=n},useTransition:function(){var n=Mp(!1),o=n[0];return n=pS.bind(null,n[1]),Sn().memoizedState=n,[o,n]},useMutableSource:function(){},useSyncExternalStore:function(n,o,i){var u=ze,f=Sn();if(Ie){if(i===void 0)throw Error(r(407));i=i()}else{if(i=o(),et===null)throw Error(r(349));(Lr&30)!==0||Rp(u,o,i)}f.memoizedState=i;var g={value:i,getSnapshot:o};return f.queue=g,Op(Np.bind(null,u,g,n),[n]),u.flags|=2048,Ms(9,kp.bind(null,u,g,i,o),void 0,null),i},useId:function(){var n=Sn(),o=et.identifierPrefix;if(Ie){var i=Fn,u=In;i=(u&~(1<<32-Zt(u)-1)).toString(32)+i,o=":"+o+"R"+i,i=As++,0<i&&(o+="H"+i.toString(32)),o+=":"}else i=hS++,o=":"+o+"r"+i.toString(32)+":";return n.memoizedState=o},unstable_isNewReconciler:!1},vS={readContext:Ut,useCallback:Vp,useContext:Ut,useEffect:Wu,useImperativeHandle:Fp,useInsertionEffect:Lp,useLayoutEffect:_p,useMemo:zp,useReducer:Uu,useRef:Dp,useState:function(){return Uu(js)},useDebugValue:Hu,useDeferredValue:function(n){var o=$t();return Bp(o,Xe.memoizedState,n)},useTransition:function(){var n=Uu(js)[0],o=$t().memoizedState;return[n,o]},useMutableSource:Pp,useSyncExternalStore:Tp,useId:Up,unstable_isNewReconciler:!1},xS={readContext:Ut,useCallback:Vp,useContext:Ut,useEffect:Wu,useImperativeHandle:Fp,useInsertionEffect:Lp,useLayoutEffect:_p,useMemo:zp,useReducer:$u,useRef:Dp,useState:function(){return $u(js)},useDebugValue:Hu,useDeferredValue:function(n){var o=$t();return Xe===null?o.memoizedState=n:Bp(o,Xe.memoizedState,n)},useTransition:function(){var n=$u(js)[0],o=$t().memoizedState;return[n,o]},useMutableSource:Pp,useSyncExternalStore:Tp,useId:Up,unstable_isNewReconciler:!1};function tn(n,o){if(n&&n.defaultProps){o=K({},o),n=n.defaultProps;for(var i in n)o[i]===void 0&&(o[i]=n[i]);return o}return o}function Ku(n,o,i,u){o=n.memoizedState,i=i(u,o),i=i==null?o:K({},o,i),n.memoizedState=i,n.lanes===0&&(n.updateQueue.baseState=i)}var na={isMounted:function(n){return(n=n._reactInternals)?kr(n)===n:!1},enqueueSetState:function(n,o,i){n=n._reactInternals;var u=gt(),f=fr(n),g=zn(u,f);g.payload=o,i!=null&&(g.callback=i),o=lr(n,g,f),o!==null&&(on(o,n,f,u),Yi(o,n,f))},enqueueReplaceState:function(n,o,i){n=n._reactInternals;var u=gt(),f=fr(n),g=zn(u,f);g.tag=1,g.payload=o,i!=null&&(g.callback=i),o=lr(n,g,f),o!==null&&(on(o,n,f,u),Yi(o,n,f))},enqueueForceUpdate:function(n,o){n=n._reactInternals;var i=gt(),u=fr(n),f=zn(i,u);f.tag=2,o!=null&&(f.callback=o),o=lr(n,f,u),o!==null&&(on(o,n,u,i),Yi(o,n,u))}};function Kp(n,o,i,u,f,g,C){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,g,C):o.prototype&&o.prototype.isPureReactComponent?!vs(i,u)||!vs(f,g):!0}function Qp(n,o,i){var u=!1,f=sr,g=o.contextType;return typeof g=="object"&&g!==null?g=Ut(g):(f=St(o)?Ar:lt.current,u=o.contextTypes,g=(u=u!=null)?mo(n,f):sr),o=new o(i,g),n.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=na,n.stateNode=o,o._reactInternals=n,u&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=f,n.__reactInternalMemoizedMaskedChildContext=g),o}function Yp(n,o,i,u){n=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(i,u),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(i,u),o.state!==n&&na.enqueueReplaceState(o,o.state,null)}function Qu(n,o,i,u){var f=n.stateNode;f.props=i,f.state=n.memoizedState,f.refs={},Du(n);var g=o.contextType;typeof g=="object"&&g!==null?f.context=Ut(g):(g=St(o)?Ar:lt.current,f.context=mo(n,g)),f.state=n.memoizedState,g=o.getDerivedStateFromProps,typeof g=="function"&&(Ku(n,o,g,i),f.state=n.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(o=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),o!==f.state&&na.enqueueReplaceState(f,f.state,null),Gi(n,i,f,u),f.state=n.memoizedState),typeof f.componentDidMount=="function"&&(n.flags|=4194308)}function Co(n,o){try{var i="",u=o;do i+=ge(u),u=u.return;while(u);var f=i}catch(g){f=`
|
|
5
|
+
`+f[C].replace(" at new "," at ");return n.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",n.displayName)),j}while(1<=C&&0<=k);break}}}finally{te=!1,Error.prepareStackTrace=i}return(n=n?n.displayName||n.name:"")?B(n):""}function ge(n){switch(n.tag){case 5:return B(n.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return n=oe(n.type,!1),n;case 11:return n=oe(n.type.render,!1),n;case 1:return n=oe(n.type,!0),n;default:return""}}function we(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case $:return"Fragment";case F:return"Portal";case H:return"Profiler";case z:return"StrictMode";case de:return"Suspense";case q:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case ee:return(n.displayName||"Context")+".Consumer";case W:return(n._context.displayName||"Context")+".Provider";case X:var o=n.render;return n=n.displayName,n||(n=o.displayName||o.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case he:return o=n.displayName||null,o!==null?o:we(n.type)||"Memo";case re:o=n._payload,n=n._init;try{return we(n(o))}catch{}}return null}function fe(n){var o=n.type;switch(n.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=o.render,n=n.displayName||n.name||"",o.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return we(o);case 8:return o===z?"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 o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function Ce(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Pe(n){var o=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Qe(n){var o=Pe(n)?"checked":"value",i=Object.getOwnPropertyDescriptor(n.constructor.prototype,o),u=""+n[o];if(!n.hasOwnProperty(o)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var f=i.get,g=i.set;return Object.defineProperty(n,o,{configurable:!0,get:function(){return f.call(this)},set:function(C){u=""+C,g.call(this,C)}}),Object.defineProperty(n,o,{enumerable:i.enumerable}),{getValue:function(){return u},setValue:function(C){u=""+C},stopTracking:function(){n._valueTracker=null,delete n[o]}}}}function It(n){n._valueTracker||(n._valueTracker=Qe(n))}function Yn(n){if(!n)return!1;var o=n._valueTracker;if(!o)return!0;var i=o.getValue(),u="";return n&&(u=Pe(n)?n.checked?"true":"false":n.value),n=u,n!==i?(o.setValue(n),!0):!1}function Ft(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Jo(n,o){var i=o.checked;return K({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??n._wrapperState.initialChecked})}function ui(n,o){var i=o.defaultValue==null?"":o.defaultValue,u=o.checked!=null?o.checked:o.defaultChecked;i=Ce(o.value!=null?o.value:i),n._wrapperState={initialChecked:u,initialValue:i,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function es(n,o){o=o.checked,o!=null&&N(n,"checked",o,!1)}function ts(n,o){es(n,o);var i=Ce(o.value),u=o.type;if(i!=null)u==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+i):n.value!==""+i&&(n.value=""+i);else if(u==="submit"||u==="reset"){n.removeAttribute("value");return}o.hasOwnProperty("value")?ns(n,o.type,i):o.hasOwnProperty("defaultValue")&&ns(n,o.type,Ce(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(n.defaultChecked=!!o.defaultChecked)}function Jr(n,o,i){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var u=o.type;if(!(u!=="submit"&&u!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+n._wrapperState.initialValue,i||o===n.value||(n.value=o),n.defaultValue=o}i=n.name,i!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,i!==""&&(n.name=i)}function ns(n,o,i){(o!=="number"||Ft(n.ownerDocument)!==n)&&(i==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+i&&(n.defaultValue=""+i))}var Gn=Array.isArray;function Vt(n,o,i,u){if(n=n.options,o){o={};for(var f=0;f<i.length;f++)o["$"+i[f]]=!0;for(i=0;i<n.length;i++)f=o.hasOwnProperty("$"+n[i].value),n[i].selected!==f&&(n[i].selected=f),f&&u&&(n[i].defaultSelected=!0)}else{for(i=""+Ce(i),o=null,f=0;f<n.length;f++){if(n[f].value===i){n[f].selected=!0,u&&(n[f].defaultSelected=!0);return}o!==null||n[f].disabled||(o=n[f])}o!==null&&(o.selected=!0)}}function eo(n,o){if(o.dangerouslySetInnerHTML!=null)throw Error(r(91));return K({},o,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function hn(n,o){var i=o.value;if(i==null){if(i=o.children,o=o.defaultValue,i!=null){if(o!=null)throw Error(r(92));if(Gn(i)){if(1<i.length)throw Error(r(93));i=i[0]}o=i}o==null&&(o=""),i=o}n._wrapperState={initialValue:Ce(i)}}function ci(n,o){var i=Ce(o.value),u=Ce(o.defaultValue);i!=null&&(i=""+i,i!==n.value&&(n.value=i),o.defaultValue==null&&n.defaultValue!==i&&(n.defaultValue=i)),u!=null&&(n.defaultValue=""+u)}function di(n){var o=n.textContent;o===n._wrapperState.initialValue&&o!==""&&o!==null&&(n.value=o)}function ht(n){switch(n){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 pn(n,o){return n==null||n==="http://www.w3.org/1999/xhtml"?ht(o):n==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var to,fi=(function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,i,u,f){MSApp.execUnsafeLocalFunction(function(){return n(o,i,u,f)})}:n})(function(n,o){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=o;else{for(to=to||document.createElement("div"),to.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=to.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)n.appendChild(o.firstChild)}});function mn(n,o){if(o){var i=n.firstChild;if(i&&i===n.lastChild&&i.nodeType===3){i.nodeValue=o;return}}n.textContent=o}var Rr={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},hi=["Webkit","ms","Moz","O"];Object.keys(Rr).forEach(function(n){hi.forEach(function(o){o=o+n.charAt(0).toUpperCase()+n.substring(1),Rr[o]=Rr[n]})});function no(n,o,i){return o==null||typeof o=="boolean"||o===""?"":i||typeof o!="number"||o===0||Rr.hasOwnProperty(n)&&Rr[n]?(""+o).trim():o+"px"}function On(n,o){n=n.style;for(var i in o)if(o.hasOwnProperty(i)){var u=i.indexOf("--")===0,f=no(i,o[i],u);i==="float"&&(i="cssFloat"),u?n.setProperty(i,f):n[i]=f}}var pi=K({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 gn(n,o){if(o){if(pi[n]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(r(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(r(61))}if(o.style!=null&&typeof o.style!="object")throw Error(r(62))}}function rs(n,o){if(n.indexOf("-")===-1)return typeof o.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var os=null;function ro(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var oo=null,Xn=null,yn=null;function Xt(n){if(n=Es(n)){if(typeof oo!="function")throw Error(r(280));var o=n.stateNode;o&&(o=Fi(o),oo(n.stateNode,n.type,o))}}function mi(n){Xn?yn?yn.push(n):yn=[n]:Xn=n}function ve(){if(Xn){var n=Xn,o=yn;if(yn=Xn=null,Xt(n),o)for(n=0;n<o.length;n++)Xt(o[n])}}function ke(n,o){return n(o)}function Ae(){}var pt=!1;function xt(n,o,i){if(pt)return n(o,i);pt=!0;try{return ke(n,o,i)}finally{pt=!1,(Xn!==null||yn!==null)&&(Ae(),ve())}}function wt(n,o){var i=n.stateNode;if(i===null)return null;var u=Fi(i);if(u===null)return null;i=u[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(n=n.type,u=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!u;break e;default:n=!1}if(n)return null;if(i&&typeof i!="function")throw Error(r(231,o,typeof i));return i}var qt=!1;if(d)try{var nt={};Object.defineProperty(nt,"passive",{get:function(){qt=!0}}),window.addEventListener("test",nt,nt),window.removeEventListener("test",nt,nt)}catch{qt=!1}function vn(n,o,i,u,f,g,C,k,j){var I=Array.prototype.slice.call(arguments,3);try{o.apply(i,I)}catch(Y){this.onError(Y)}}var ss=!1,gi=null,yi=!1,$l=null,Jb={onError:function(n){ss=!0,gi=n}};function e1(n,o,i,u,f,g,C,k,j){ss=!1,gi=null,vn.apply(Jb,arguments)}function t1(n,o,i,u,f,g,C,k,j){if(e1.apply(this,arguments),ss){if(ss){var I=gi;ss=!1,gi=null}else throw Error(r(198));yi||(yi=!0,$l=I)}}function kr(n){var o=n,i=n;if(n.alternate)for(;o.return;)o=o.return;else{n=o;do o=n,(o.flags&4098)!==0&&(i=o.return),n=o.return;while(n)}return o.tag===3?i:null}function uh(n){if(n.tag===13){var o=n.memoizedState;if(o===null&&(n=n.alternate,n!==null&&(o=n.memoizedState)),o!==null)return o.dehydrated}return null}function ch(n){if(kr(n)!==n)throw Error(r(188))}function n1(n){var o=n.alternate;if(!o){if(o=kr(n),o===null)throw Error(r(188));return o!==n?null:n}for(var i=n,u=o;;){var f=i.return;if(f===null)break;var g=f.alternate;if(g===null){if(u=f.return,u!==null){i=u;continue}break}if(f.child===g.child){for(g=f.child;g;){if(g===i)return ch(f),n;if(g===u)return ch(f),o;g=g.sibling}throw Error(r(188))}if(i.return!==u.return)i=f,u=g;else{for(var C=!1,k=f.child;k;){if(k===i){C=!0,i=f,u=g;break}if(k===u){C=!0,u=f,i=g;break}k=k.sibling}if(!C){for(k=g.child;k;){if(k===i){C=!0,i=g,u=f;break}if(k===u){C=!0,u=g,i=f;break}k=k.sibling}if(!C)throw Error(r(189))}}if(i.alternate!==u)throw Error(r(190))}if(i.tag!==3)throw Error(r(188));return i.stateNode.current===i?n:o}function dh(n){return n=n1(n),n!==null?fh(n):null}function fh(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var o=fh(n);if(o!==null)return o;n=n.sibling}return null}var hh=t.unstable_scheduleCallback,ph=t.unstable_cancelCallback,r1=t.unstable_shouldYield,o1=t.unstable_requestPaint,He=t.unstable_now,s1=t.unstable_getCurrentPriorityLevel,Wl=t.unstable_ImmediatePriority,mh=t.unstable_UserBlockingPriority,vi=t.unstable_NormalPriority,i1=t.unstable_LowPriority,gh=t.unstable_IdlePriority,xi=null,xn=null;function a1(n){if(xn&&typeof xn.onCommitFiberRoot=="function")try{xn.onCommitFiberRoot(xi,n,void 0,(n.current.flags&128)===128)}catch{}}var Zt=Math.clz32?Math.clz32:c1,l1=Math.log,u1=Math.LN2;function c1(n){return n>>>=0,n===0?32:31-(l1(n)/u1|0)|0}var wi=64,bi=4194304;function is(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Si(n,o){var i=n.pendingLanes;if(i===0)return 0;var u=0,f=n.suspendedLanes,g=n.pingedLanes,C=i&268435455;if(C!==0){var k=C&~f;k!==0?u=is(k):(g&=C,g!==0&&(u=is(g)))}else C=i&~f,C!==0?u=is(C):g!==0&&(u=is(g));if(u===0)return 0;if(o!==0&&o!==u&&(o&f)===0&&(f=u&-u,g=o&-o,f>=g||f===16&&(g&4194240)!==0))return o;if((u&4)!==0&&(u|=i&16),o=n.entangledLanes,o!==0)for(n=n.entanglements,o&=u;0<o;)i=31-Zt(o),f=1<<i,u|=n[i],o&=~f;return u}function d1(n,o){switch(n){case 1:case 2:case 4:return o+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 o+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 f1(n,o){for(var i=n.suspendedLanes,u=n.pingedLanes,f=n.expirationTimes,g=n.pendingLanes;0<g;){var C=31-Zt(g),k=1<<C,j=f[C];j===-1?((k&i)===0||(k&u)!==0)&&(f[C]=d1(k,o)):j<=o&&(n.expiredLanes|=k),g&=~k}}function Hl(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function yh(){var n=wi;return wi<<=1,(wi&4194240)===0&&(wi=64),n}function Kl(n){for(var o=[],i=0;31>i;i++)o.push(n);return o}function as(n,o,i){n.pendingLanes|=o,o!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,o=31-Zt(o),n[o]=i}function h1(n,o){var i=n.pendingLanes&~o;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=o,n.mutableReadLanes&=o,n.entangledLanes&=o,o=n.entanglements;var u=n.eventTimes;for(n=n.expirationTimes;0<i;){var f=31-Zt(i),g=1<<f;o[f]=0,u[f]=-1,n[f]=-1,i&=~g}}function Ql(n,o){var i=n.entangledLanes|=o;for(n=n.entanglements;i;){var u=31-Zt(i),f=1<<u;f&o|n[u]&o&&(n[u]|=o),i&=~f}}var Ne=0;function vh(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var xh,Yl,wh,bh,Sh,Gl=!1,Ci=[],qn=null,Zn=null,Jn=null,ls=new Map,us=new Map,er=[],p1="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 Ch(n,o){switch(n){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":Zn=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":ls.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":us.delete(o.pointerId)}}function cs(n,o,i,u,f,g){return n===null||n.nativeEvent!==g?(n={blockedOn:o,domEventName:i,eventSystemFlags:u,nativeEvent:g,targetContainers:[f]},o!==null&&(o=Es(o),o!==null&&Yl(o)),n):(n.eventSystemFlags|=u,o=n.targetContainers,f!==null&&o.indexOf(f)===-1&&o.push(f),n)}function m1(n,o,i,u,f){switch(o){case"focusin":return qn=cs(qn,n,o,i,u,f),!0;case"dragenter":return Zn=cs(Zn,n,o,i,u,f),!0;case"mouseover":return Jn=cs(Jn,n,o,i,u,f),!0;case"pointerover":var g=f.pointerId;return ls.set(g,cs(ls.get(g)||null,n,o,i,u,f)),!0;case"gotpointercapture":return g=f.pointerId,us.set(g,cs(us.get(g)||null,n,o,i,u,f)),!0}return!1}function Eh(n){var o=Nr(n.target);if(o!==null){var i=kr(o);if(i!==null){if(o=i.tag,o===13){if(o=uh(i),o!==null){n.blockedOn=o,Sh(n.priority,function(){wh(i)});return}}else if(o===3&&i.stateNode.current.memoizedState.isDehydrated){n.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Ei(n){if(n.blockedOn!==null)return!1;for(var o=n.targetContainers;0<o.length;){var i=ql(n.domEventName,n.eventSystemFlags,o[0],n.nativeEvent);if(i===null){i=n.nativeEvent;var u=new i.constructor(i.type,i);os=u,i.target.dispatchEvent(u),os=null}else return o=Es(i),o!==null&&Yl(o),n.blockedOn=i,!1;o.shift()}return!0}function Ph(n,o,i){Ei(n)&&i.delete(o)}function g1(){Gl=!1,qn!==null&&Ei(qn)&&(qn=null),Zn!==null&&Ei(Zn)&&(Zn=null),Jn!==null&&Ei(Jn)&&(Jn=null),ls.forEach(Ph),us.forEach(Ph)}function ds(n,o){n.blockedOn===o&&(n.blockedOn=null,Gl||(Gl=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,g1)))}function fs(n){function o(f){return ds(f,n)}if(0<Ci.length){ds(Ci[0],n);for(var i=1;i<Ci.length;i++){var u=Ci[i];u.blockedOn===n&&(u.blockedOn=null)}}for(qn!==null&&ds(qn,n),Zn!==null&&ds(Zn,n),Jn!==null&&ds(Jn,n),ls.forEach(o),us.forEach(o),i=0;i<er.length;i++)u=er[i],u.blockedOn===n&&(u.blockedOn=null);for(;0<er.length&&(i=er[0],i.blockedOn===null);)Eh(i),i.blockedOn===null&&er.shift()}var so=A.ReactCurrentBatchConfig,Pi=!0;function y1(n,o,i,u){var f=Ne,g=so.transition;so.transition=null;try{Ne=1,Xl(n,o,i,u)}finally{Ne=f,so.transition=g}}function v1(n,o,i,u){var f=Ne,g=so.transition;so.transition=null;try{Ne=4,Xl(n,o,i,u)}finally{Ne=f,so.transition=g}}function Xl(n,o,i,u){if(Pi){var f=ql(n,o,i,u);if(f===null)pu(n,o,u,Ti,i),Ch(n,u);else if(m1(f,n,o,i,u))u.stopPropagation();else if(Ch(n,u),o&4&&-1<p1.indexOf(n)){for(;f!==null;){var g=Es(f);if(g!==null&&xh(g),g=ql(n,o,i,u),g===null&&pu(n,o,u,Ti,i),g===f)break;f=g}f!==null&&u.stopPropagation()}else pu(n,o,u,null,i)}}var Ti=null;function ql(n,o,i,u){if(Ti=null,n=ro(u),n=Nr(n),n!==null)if(o=kr(n),o===null)n=null;else if(i=o.tag,i===13){if(n=uh(o),n!==null)return n;n=null}else if(i===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null);return Ti=n,null}function Th(n){switch(n){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 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(s1()){case Wl:return 1;case mh:return 4;case vi:case i1:return 16;case gh:return 536870912;default:return 16}default:return 16}}var tr=null,Zl=null,Ri=null;function Rh(){if(Ri)return Ri;var n,o=Zl,i=o.length,u,f="value"in tr?tr.value:tr.textContent,g=f.length;for(n=0;n<i&&o[n]===f[n];n++);var C=i-n;for(u=1;u<=C&&o[i-u]===f[g-u];u++);return Ri=f.slice(n,1<u?1-u:void 0)}function ki(n){var o=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&o===13&&(n=13)):n=o,n===10&&(n=13),32<=n||n===13?n:0}function Ni(){return!0}function kh(){return!1}function At(n){function o(i,u,f,g,C){this._reactName=i,this._targetInst=f,this.type=u,this.nativeEvent=g,this.target=C,this.currentTarget=null;for(var k in n)n.hasOwnProperty(k)&&(i=n[k],this[k]=i?i(g):g[k]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Ni:kh,this.isPropagationStopped=kh,this}return K(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Ni)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Ni)},persist:function(){},isPersistent:Ni}),o}var io={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jl=At(io),hs=K({},io,{view:0,detail:0}),x1=At(hs),eu,tu,ps,Ai=K({},hs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ru,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==ps&&(ps&&n.type==="mousemove"?(eu=n.screenX-ps.screenX,tu=n.screenY-ps.screenY):tu=eu=0,ps=n),eu)},movementY:function(n){return"movementY"in n?n.movementY:tu}}),Nh=At(Ai),w1=K({},Ai,{dataTransfer:0}),b1=At(w1),S1=K({},hs,{relatedTarget:0}),nu=At(S1),C1=K({},io,{animationName:0,elapsedTime:0,pseudoElement:0}),E1=At(C1),P1=K({},io,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),T1=At(P1),R1=K({},io,{data:0}),Ah=At(R1),k1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},N1={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"},A1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function j1(n){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(n):(n=A1[n])?!!o[n]:!1}function ru(){return j1}var M1=K({},hs,{key:function(n){if(n.key){var o=k1[n.key]||n.key;if(o!=="Unidentified")return o}return n.type==="keypress"?(n=ki(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?N1[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ru,charCode:function(n){return n.type==="keypress"?ki(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?ki(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),D1=At(M1),O1=K({},Ai,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jh=At(O1),L1=K({},hs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ru}),_1=At(L1),I1=K({},io,{propertyName:0,elapsedTime:0,pseudoElement:0}),F1=At(I1),V1=K({},Ai,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),B1=At(V1),z1=[9,13,27,32],ou=d&&"CompositionEvent"in window,ms=null;d&&"documentMode"in document&&(ms=document.documentMode);var U1=d&&"TextEvent"in window&&!ms,Mh=d&&(!ou||ms&&8<ms&&11>=ms),Dh=" ",Oh=!1;function Lh(n,o){switch(n){case"keyup":return z1.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _h(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var ao=!1;function $1(n,o){switch(n){case"compositionend":return _h(o);case"keypress":return o.which!==32?null:(Oh=!0,Dh);case"textInput":return n=o.data,n===Dh&&Oh?null:n;default:return null}}function W1(n,o){if(ao)return n==="compositionend"||!ou&&Lh(n,o)?(n=Rh(),Ri=Zl=tr=null,ao=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Mh&&o.locale!=="ko"?null:o.data;default:return null}}var H1={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 Ih(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o==="input"?!!H1[n.type]:o==="textarea"}function Fh(n,o,i,u){mi(u),o=Li(o,"onChange"),0<o.length&&(i=new Jl("onChange","change",null,i,u),n.push({event:i,listeners:o}))}var gs=null,ys=null;function K1(n){np(n,0)}function ji(n){var o=ho(n);if(Yn(o))return n}function Q1(n,o){if(n==="change")return o}var Vh=!1;if(d){var su;if(d){var iu="oninput"in document;if(!iu){var Bh=document.createElement("div");Bh.setAttribute("oninput","return;"),iu=typeof Bh.oninput=="function"}su=iu}else su=!1;Vh=su&&(!document.documentMode||9<document.documentMode)}function zh(){gs&&(gs.detachEvent("onpropertychange",Uh),ys=gs=null)}function Uh(n){if(n.propertyName==="value"&&ji(ys)){var o=[];Fh(o,ys,n,ro(n)),xt(K1,o)}}function Y1(n,o,i){n==="focusin"?(zh(),gs=o,ys=i,gs.attachEvent("onpropertychange",Uh)):n==="focusout"&&zh()}function G1(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return ji(ys)}function X1(n,o){if(n==="click")return ji(o)}function q1(n,o){if(n==="input"||n==="change")return ji(o)}function Z1(n,o){return n===o&&(n!==0||1/n===1/o)||n!==n&&o!==o}var Jt=typeof Object.is=="function"?Object.is:Z1;function vs(n,o){if(Jt(n,o))return!0;if(typeof n!="object"||n===null||typeof o!="object"||o===null)return!1;var i=Object.keys(n),u=Object.keys(o);if(i.length!==u.length)return!1;for(u=0;u<i.length;u++){var f=i[u];if(!h.call(o,f)||!Jt(n[f],o[f]))return!1}return!0}function $h(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Wh(n,o){var i=$h(n);n=0;for(var u;i;){if(i.nodeType===3){if(u=n+i.textContent.length,n<=o&&u>=o)return{node:i,offset:o-n};n=u}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=$h(i)}}function Hh(n,o){return n&&o?n===o?!0:n&&n.nodeType===3?!1:o&&o.nodeType===3?Hh(n,o.parentNode):"contains"in n?n.contains(o):n.compareDocumentPosition?!!(n.compareDocumentPosition(o)&16):!1:!1}function Kh(){for(var n=window,o=Ft();o instanceof n.HTMLIFrameElement;){try{var i=typeof o.contentWindow.location.href=="string"}catch{i=!1}if(i)n=o.contentWindow;else break;o=Ft(n.document)}return o}function au(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o&&(o==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||o==="textarea"||n.contentEditable==="true")}function J1(n){var o=Kh(),i=n.focusedElem,u=n.selectionRange;if(o!==i&&i&&i.ownerDocument&&Hh(i.ownerDocument.documentElement,i)){if(u!==null&&au(i)){if(o=u.start,n=u.end,n===void 0&&(n=o),"selectionStart"in i)i.selectionStart=o,i.selectionEnd=Math.min(n,i.value.length);else if(n=(o=i.ownerDocument||document)&&o.defaultView||window,n.getSelection){n=n.getSelection();var f=i.textContent.length,g=Math.min(u.start,f);u=u.end===void 0?g:Math.min(u.end,f),!n.extend&&g>u&&(f=u,u=g,g=f),f=Wh(i,g);var C=Wh(i,u);f&&C&&(n.rangeCount!==1||n.anchorNode!==f.node||n.anchorOffset!==f.offset||n.focusNode!==C.node||n.focusOffset!==C.offset)&&(o=o.createRange(),o.setStart(f.node,f.offset),n.removeAllRanges(),g>u?(n.addRange(o),n.extend(C.node,C.offset)):(o.setEnd(C.node,C.offset),n.addRange(o)))}}for(o=[],n=i;n=n.parentNode;)n.nodeType===1&&o.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<o.length;i++)n=o[i],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var eS=d&&"documentMode"in document&&11>=document.documentMode,lo=null,lu=null,xs=null,uu=!1;function Qh(n,o,i){var u=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;uu||lo==null||lo!==Ft(u)||(u=lo,"selectionStart"in u&&au(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),xs&&vs(xs,u)||(xs=u,u=Li(lu,"onSelect"),0<u.length&&(o=new Jl("onSelect","select",null,o,i),n.push({event:o,listeners:u}),o.target=lo)))}function Mi(n,o){var i={};return i[n.toLowerCase()]=o.toLowerCase(),i["Webkit"+n]="webkit"+o,i["Moz"+n]="moz"+o,i}var uo={animationend:Mi("Animation","AnimationEnd"),animationiteration:Mi("Animation","AnimationIteration"),animationstart:Mi("Animation","AnimationStart"),transitionend:Mi("Transition","TransitionEnd")},cu={},Yh={};d&&(Yh=document.createElement("div").style,"AnimationEvent"in window||(delete uo.animationend.animation,delete uo.animationiteration.animation,delete uo.animationstart.animation),"TransitionEvent"in window||delete uo.transitionend.transition);function Di(n){if(cu[n])return cu[n];if(!uo[n])return n;var o=uo[n],i;for(i in o)if(o.hasOwnProperty(i)&&i in Yh)return cu[n]=o[i];return n}var Gh=Di("animationend"),Xh=Di("animationiteration"),qh=Di("animationstart"),Zh=Di("transitionend"),Jh=new Map,ep="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 nr(n,o){Jh.set(n,o),l(o,[n])}for(var du=0;du<ep.length;du++){var fu=ep[du],tS=fu.toLowerCase(),nS=fu[0].toUpperCase()+fu.slice(1);nr(tS,"on"+nS)}nr(Gh,"onAnimationEnd"),nr(Xh,"onAnimationIteration"),nr(qh,"onAnimationStart"),nr("dblclick","onDoubleClick"),nr("focusin","onFocus"),nr("focusout","onBlur"),nr(Zh,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ws="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(" "),rS=new Set("cancel close invalid load scroll toggle".split(" ").concat(ws));function tp(n,o,i){var u=n.type||"unknown-event";n.currentTarget=i,t1(u,o,void 0,n),n.currentTarget=null}function np(n,o){o=(o&4)!==0;for(var i=0;i<n.length;i++){var u=n[i],f=u.event;u=u.listeners;e:{var g=void 0;if(o)for(var C=u.length-1;0<=C;C--){var k=u[C],j=k.instance,I=k.currentTarget;if(k=k.listener,j!==g&&f.isPropagationStopped())break e;tp(f,k,I),g=j}else for(C=0;C<u.length;C++){if(k=u[C],j=k.instance,I=k.currentTarget,k=k.listener,j!==g&&f.isPropagationStopped())break e;tp(f,k,I),g=j}}}if(yi)throw n=$l,yi=!1,$l=null,n}function Oe(n,o){var i=o[wu];i===void 0&&(i=o[wu]=new Set);var u=n+"__bubble";i.has(u)||(rp(o,n,2,!1),i.add(u))}function hu(n,o,i){var u=0;o&&(u|=4),rp(i,n,u,o)}var Oi="_reactListening"+Math.random().toString(36).slice(2);function bs(n){if(!n[Oi]){n[Oi]=!0,s.forEach(function(i){i!=="selectionchange"&&(rS.has(i)||hu(i,!1,n),hu(i,!0,n))});var o=n.nodeType===9?n:n.ownerDocument;o===null||o[Oi]||(o[Oi]=!0,hu("selectionchange",!1,o))}}function rp(n,o,i,u){switch(Th(o)){case 1:var f=y1;break;case 4:f=v1;break;default:f=Xl}i=f.bind(null,o,i,n),f=void 0,!qt||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(f=!0),u?f!==void 0?n.addEventListener(o,i,{capture:!0,passive:f}):n.addEventListener(o,i,!0):f!==void 0?n.addEventListener(o,i,{passive:f}):n.addEventListener(o,i,!1)}function pu(n,o,i,u,f){var g=u;if((o&1)===0&&(o&2)===0&&u!==null)e:for(;;){if(u===null)return;var C=u.tag;if(C===3||C===4){var k=u.stateNode.containerInfo;if(k===f||k.nodeType===8&&k.parentNode===f)break;if(C===4)for(C=u.return;C!==null;){var j=C.tag;if((j===3||j===4)&&(j=C.stateNode.containerInfo,j===f||j.nodeType===8&&j.parentNode===f))return;C=C.return}for(;k!==null;){if(C=Nr(k),C===null)return;if(j=C.tag,j===5||j===6){u=g=C;continue e}k=k.parentNode}}u=u.return}xt(function(){var I=g,Y=ro(i),G=[];e:{var Q=Jh.get(n);if(Q!==void 0){var ne=Jl,ie=n;switch(n){case"keypress":if(ki(i)===0)break e;case"keydown":case"keyup":ne=D1;break;case"focusin":ie="focus",ne=nu;break;case"focusout":ie="blur",ne=nu;break;case"beforeblur":case"afterblur":ne=nu;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ne=Nh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=b1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=_1;break;case Gh:case Xh:case qh:ne=E1;break;case Zh:ne=F1;break;case"scroll":ne=x1;break;case"wheel":ne=B1;break;case"copy":case"cut":case"paste":ne=T1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=jh}var ue=(o&4)!==0,Ke=!ue&&n==="scroll",L=ue?Q!==null?Q+"Capture":null:Q;ue=[];for(var D=I,_;D!==null;){_=D;var Z=_.stateNode;if(_.tag===5&&Z!==null&&(_=Z,L!==null&&(Z=wt(D,L),Z!=null&&ue.push(Ss(D,Z,_)))),Ke)break;D=D.return}0<ue.length&&(Q=new ne(Q,ie,null,i,Y),G.push({event:Q,listeners:ue}))}}if((o&7)===0){e:{if(Q=n==="mouseover"||n==="pointerover",ne=n==="mouseout"||n==="pointerout",Q&&i!==os&&(ie=i.relatedTarget||i.fromElement)&&(Nr(ie)||ie[Ln]))break e;if((ne||Q)&&(Q=Y.window===Y?Y:(Q=Y.ownerDocument)?Q.defaultView||Q.parentWindow:window,ne?(ie=i.relatedTarget||i.toElement,ne=I,ie=ie?Nr(ie):null,ie!==null&&(Ke=kr(ie),ie!==Ke||ie.tag!==5&&ie.tag!==6)&&(ie=null)):(ne=null,ie=I),ne!==ie)){if(ue=Nh,Z="onMouseLeave",L="onMouseEnter",D="mouse",(n==="pointerout"||n==="pointerover")&&(ue=jh,Z="onPointerLeave",L="onPointerEnter",D="pointer"),Ke=ne==null?Q:ho(ne),_=ie==null?Q:ho(ie),Q=new ue(Z,D+"leave",ne,i,Y),Q.target=Ke,Q.relatedTarget=_,Z=null,Nr(Y)===I&&(ue=new ue(L,D+"enter",ie,i,Y),ue.target=_,ue.relatedTarget=Ke,Z=ue),Ke=Z,ne&&ie)t:{for(ue=ne,L=ie,D=0,_=ue;_;_=co(_))D++;for(_=0,Z=L;Z;Z=co(Z))_++;for(;0<D-_;)ue=co(ue),D--;for(;0<_-D;)L=co(L),_--;for(;D--;){if(ue===L||L!==null&&ue===L.alternate)break t;ue=co(ue),L=co(L)}ue=null}else ue=null;ne!==null&&op(G,Q,ne,ue,!1),ie!==null&&Ke!==null&&op(G,Ke,ie,ue,!0)}}e:{if(Q=I?ho(I):window,ne=Q.nodeName&&Q.nodeName.toLowerCase(),ne==="select"||ne==="input"&&Q.type==="file")var ce=Q1;else if(Ih(Q))if(Vh)ce=q1;else{ce=G1;var pe=Y1}else(ne=Q.nodeName)&&ne.toLowerCase()==="input"&&(Q.type==="checkbox"||Q.type==="radio")&&(ce=X1);if(ce&&(ce=ce(n,I))){Fh(G,ce,i,Y);break e}pe&&pe(n,Q,I),n==="focusout"&&(pe=Q._wrapperState)&&pe.controlled&&Q.type==="number"&&ns(Q,"number",Q.value)}switch(pe=I?ho(I):window,n){case"focusin":(Ih(pe)||pe.contentEditable==="true")&&(lo=pe,lu=I,xs=null);break;case"focusout":xs=lu=lo=null;break;case"mousedown":uu=!0;break;case"contextmenu":case"mouseup":case"dragend":uu=!1,Qh(G,i,Y);break;case"selectionchange":if(eS)break;case"keydown":case"keyup":Qh(G,i,Y)}var me;if(ou)e:{switch(n){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else ao?Lh(n,i)&&(ye="onCompositionEnd"):n==="keydown"&&i.keyCode===229&&(ye="onCompositionStart");ye&&(Mh&&i.locale!=="ko"&&(ao||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&ao&&(me=Rh()):(tr=Y,Zl="value"in tr?tr.value:tr.textContent,ao=!0)),pe=Li(I,ye),0<pe.length&&(ye=new Ah(ye,n,null,i,Y),G.push({event:ye,listeners:pe}),me?ye.data=me:(me=_h(i),me!==null&&(ye.data=me)))),(me=U1?$1(n,i):W1(n,i))&&(I=Li(I,"onBeforeInput"),0<I.length&&(Y=new Ah("onBeforeInput","beforeinput",null,i,Y),G.push({event:Y,listeners:I}),Y.data=me))}np(G,o)})}function Ss(n,o,i){return{instance:n,listener:o,currentTarget:i}}function Li(n,o){for(var i=o+"Capture",u=[];n!==null;){var f=n,g=f.stateNode;f.tag===5&&g!==null&&(f=g,g=wt(n,i),g!=null&&u.unshift(Ss(n,g,f)),g=wt(n,o),g!=null&&u.push(Ss(n,g,f))),n=n.return}return u}function co(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function op(n,o,i,u,f){for(var g=o._reactName,C=[];i!==null&&i!==u;){var k=i,j=k.alternate,I=k.stateNode;if(j!==null&&j===u)break;k.tag===5&&I!==null&&(k=I,f?(j=wt(i,g),j!=null&&C.unshift(Ss(i,j,k))):f||(j=wt(i,g),j!=null&&C.push(Ss(i,j,k)))),i=i.return}C.length!==0&&n.push({event:o,listeners:C})}var oS=/\r\n?/g,sS=/\u0000|\uFFFD/g;function sp(n){return(typeof n=="string"?n:""+n).replace(oS,`
|
|
6
|
+
`).replace(sS,"")}function _i(n,o,i){if(o=sp(o),sp(n)!==o&&i)throw Error(r(425))}function Ii(){}var mu=null,gu=null;function yu(n,o){return n==="textarea"||n==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,iS=typeof clearTimeout=="function"?clearTimeout:void 0,ip=typeof Promise=="function"?Promise:void 0,aS=typeof queueMicrotask=="function"?queueMicrotask:typeof ip<"u"?function(n){return ip.resolve(null).then(n).catch(lS)}:vu;function lS(n){setTimeout(function(){throw n})}function xu(n,o){var i=o,u=0;do{var f=i.nextSibling;if(n.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"){if(u===0){n.removeChild(f),fs(o);return}u--}else i!=="$"&&i!=="$?"&&i!=="$!"||u++;i=f}while(i);fs(o)}function rr(n){for(;n!=null;n=n.nextSibling){var o=n.nodeType;if(o===1||o===3)break;if(o===8){if(o=n.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return n}function ap(n){n=n.previousSibling;for(var o=0;n;){if(n.nodeType===8){var i=n.data;if(i==="$"||i==="$!"||i==="$?"){if(o===0)return n;o--}else i==="/$"&&o++}n=n.previousSibling}return null}var fo=Math.random().toString(36).slice(2),wn="__reactFiber$"+fo,Cs="__reactProps$"+fo,Ln="__reactContainer$"+fo,wu="__reactEvents$"+fo,uS="__reactListeners$"+fo,cS="__reactHandles$"+fo;function Nr(n){var o=n[wn];if(o)return o;for(var i=n.parentNode;i;){if(o=i[Ln]||i[wn]){if(i=o.alternate,o.child!==null||i!==null&&i.child!==null)for(n=ap(n);n!==null;){if(i=n[wn])return i;n=ap(n)}return o}n=i,i=n.parentNode}return null}function Es(n){return n=n[wn]||n[Ln],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function ho(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function Fi(n){return n[Cs]||null}var bu=[],po=-1;function or(n){return{current:n}}function Le(n){0>po||(n.current=bu[po],bu[po]=null,po--)}function Me(n,o){po++,bu[po]=n.current,n.current=o}var sr={},lt=or(sr),bt=or(!1),Ar=sr;function mo(n,o){var i=n.type.contextTypes;if(!i)return sr;var u=n.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===o)return u.__reactInternalMemoizedMaskedChildContext;var f={},g;for(g in i)f[g]=o[g];return u&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=o,n.__reactInternalMemoizedMaskedChildContext=f),f}function St(n){return n=n.childContextTypes,n!=null}function Vi(){Le(bt),Le(lt)}function lp(n,o,i){if(lt.current!==sr)throw Error(r(168));Me(lt,o),Me(bt,i)}function up(n,o,i){var u=n.stateNode;if(o=o.childContextTypes,typeof u.getChildContext!="function")return i;u=u.getChildContext();for(var f in u)if(!(f in o))throw Error(r(108,fe(n)||"Unknown",f));return K({},i,u)}function Bi(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||sr,Ar=lt.current,Me(lt,n),Me(bt,bt.current),!0}function cp(n,o,i){var u=n.stateNode;if(!u)throw Error(r(169));i?(n=up(n,o,Ar),u.__reactInternalMemoizedMergedChildContext=n,Le(bt),Le(lt),Me(lt,n)):Le(bt),Me(bt,i)}var _n=null,zi=!1,Su=!1;function dp(n){_n===null?_n=[n]:_n.push(n)}function dS(n){zi=!0,dp(n)}function ir(){if(!Su&&_n!==null){Su=!0;var n=0,o=Ne;try{var i=_n;for(Ne=1;n<i.length;n++){var u=i[n];do u=u(!0);while(u!==null)}_n=null,zi=!1}catch(f){throw _n!==null&&(_n=_n.slice(n+1)),hh(Wl,ir),f}finally{Ne=o,Su=!1}}return null}var go=[],yo=0,Ui=null,$i=0,Bt=[],zt=0,jr=null,In=1,Fn="";function Mr(n,o){go[yo++]=$i,go[yo++]=Ui,Ui=n,$i=o}function fp(n,o,i){Bt[zt++]=In,Bt[zt++]=Fn,Bt[zt++]=jr,jr=n;var u=In;n=Fn;var f=32-Zt(u)-1;u&=~(1<<f),i+=1;var g=32-Zt(o)+f;if(30<g){var C=f-f%5;g=(u&(1<<C)-1).toString(32),u>>=C,f-=C,In=1<<32-Zt(o)+f|i<<f|u,Fn=g+n}else In=1<<g|i<<f|u,Fn=n}function Cu(n){n.return!==null&&(Mr(n,1),fp(n,1,0))}function Eu(n){for(;n===Ui;)Ui=go[--yo],go[yo]=null,$i=go[--yo],go[yo]=null;for(;n===jr;)jr=Bt[--zt],Bt[zt]=null,Fn=Bt[--zt],Bt[zt]=null,In=Bt[--zt],Bt[zt]=null}var jt=null,Mt=null,Ie=!1,en=null;function hp(n,o){var i=Ht(5,null,null,0);i.elementType="DELETED",i.stateNode=o,i.return=n,o=n.deletions,o===null?(n.deletions=[i],n.flags|=16):o.push(i)}function pp(n,o){switch(n.tag){case 5:var i=n.type;return o=o.nodeType!==1||i.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(n.stateNode=o,jt=n,Mt=rr(o.firstChild),!0):!1;case 6:return o=n.pendingProps===""||o.nodeType!==3?null:o,o!==null?(n.stateNode=o,jt=n,Mt=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(i=jr!==null?{id:In,overflow:Fn}:null,n.memoizedState={dehydrated:o,treeContext:i,retryLane:1073741824},i=Ht(18,null,null,0),i.stateNode=o,i.return=n,n.child=i,jt=n,Mt=null,!0):!1;default:return!1}}function Pu(n){return(n.mode&1)!==0&&(n.flags&128)===0}function Tu(n){if(Ie){var o=Mt;if(o){var i=o;if(!pp(n,o)){if(Pu(n))throw Error(r(418));o=rr(i.nextSibling);var u=jt;o&&pp(n,o)?hp(u,i):(n.flags=n.flags&-4097|2,Ie=!1,jt=n)}}else{if(Pu(n))throw Error(r(418));n.flags=n.flags&-4097|2,Ie=!1,jt=n}}}function mp(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;jt=n}function Wi(n){if(n!==jt)return!1;if(!Ie)return mp(n),Ie=!0,!1;var o;if((o=n.tag!==3)&&!(o=n.tag!==5)&&(o=n.type,o=o!=="head"&&o!=="body"&&!yu(n.type,n.memoizedProps)),o&&(o=Mt)){if(Pu(n))throw gp(),Error(r(418));for(;o;)hp(n,o),o=rr(o.nextSibling)}if(mp(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,o=0;n;){if(n.nodeType===8){var i=n.data;if(i==="/$"){if(o===0){Mt=rr(n.nextSibling);break e}o--}else i!=="$"&&i!=="$!"&&i!=="$?"||o++}n=n.nextSibling}Mt=null}}else Mt=jt?rr(n.stateNode.nextSibling):null;return!0}function gp(){for(var n=Mt;n;)n=rr(n.nextSibling)}function vo(){Mt=jt=null,Ie=!1}function Ru(n){en===null?en=[n]:en.push(n)}var fS=A.ReactCurrentBatchConfig;function Ps(n,o,i){if(n=i.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(i._owner){if(i=i._owner,i){if(i.tag!==1)throw Error(r(309));var u=i.stateNode}if(!u)throw Error(r(147,n));var f=u,g=""+n;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===g?o.ref:(o=function(C){var k=f.refs;C===null?delete k[g]:k[g]=C},o._stringRef=g,o)}if(typeof n!="string")throw Error(r(284));if(!i._owner)throw Error(r(290,n))}return n}function Hi(n,o){throw n=Object.prototype.toString.call(o),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":n))}function yp(n){var o=n._init;return o(n._payload)}function vp(n){function o(L,D){if(n){var _=L.deletions;_===null?(L.deletions=[D],L.flags|=16):_.push(D)}}function i(L,D){if(!n)return null;for(;D!==null;)o(L,D),D=D.sibling;return null}function u(L,D){for(L=new Map;D!==null;)D.key!==null?L.set(D.key,D):L.set(D.index,D),D=D.sibling;return L}function f(L,D){return L=pr(L,D),L.index=0,L.sibling=null,L}function g(L,D,_){return L.index=_,n?(_=L.alternate,_!==null?(_=_.index,_<D?(L.flags|=2,D):_):(L.flags|=2,D)):(L.flags|=1048576,D)}function C(L){return n&&L.alternate===null&&(L.flags|=2),L}function k(L,D,_,Z){return D===null||D.tag!==6?(D=vc(_,L.mode,Z),D.return=L,D):(D=f(D,_),D.return=L,D)}function j(L,D,_,Z){var ce=_.type;return ce===$?Y(L,D,_.props.children,Z,_.key):D!==null&&(D.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===re&&yp(ce)===D.type)?(Z=f(D,_.props),Z.ref=Ps(L,D,_),Z.return=L,Z):(Z=ma(_.type,_.key,_.props,null,L.mode,Z),Z.ref=Ps(L,D,_),Z.return=L,Z)}function I(L,D,_,Z){return D===null||D.tag!==4||D.stateNode.containerInfo!==_.containerInfo||D.stateNode.implementation!==_.implementation?(D=xc(_,L.mode,Z),D.return=L,D):(D=f(D,_.children||[]),D.return=L,D)}function Y(L,D,_,Z,ce){return D===null||D.tag!==7?(D=Br(_,L.mode,Z,ce),D.return=L,D):(D=f(D,_),D.return=L,D)}function G(L,D,_){if(typeof D=="string"&&D!==""||typeof D=="number")return D=vc(""+D,L.mode,_),D.return=L,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case O:return _=ma(D.type,D.key,D.props,null,L.mode,_),_.ref=Ps(L,null,D),_.return=L,_;case F:return D=xc(D,L.mode,_),D.return=L,D;case re:var Z=D._init;return G(L,Z(D._payload),_)}if(Gn(D)||U(D))return D=Br(D,L.mode,_,null),D.return=L,D;Hi(L,D)}return null}function Q(L,D,_,Z){var ce=D!==null?D.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return ce!==null?null:k(L,D,""+_,Z);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case O:return _.key===ce?j(L,D,_,Z):null;case F:return _.key===ce?I(L,D,_,Z):null;case re:return ce=_._init,Q(L,D,ce(_._payload),Z)}if(Gn(_)||U(_))return ce!==null?null:Y(L,D,_,Z,null);Hi(L,_)}return null}function ne(L,D,_,Z,ce){if(typeof Z=="string"&&Z!==""||typeof Z=="number")return L=L.get(_)||null,k(D,L,""+Z,ce);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case O:return L=L.get(Z.key===null?_:Z.key)||null,j(D,L,Z,ce);case F:return L=L.get(Z.key===null?_:Z.key)||null,I(D,L,Z,ce);case re:var pe=Z._init;return ne(L,D,_,pe(Z._payload),ce)}if(Gn(Z)||U(Z))return L=L.get(_)||null,Y(D,L,Z,ce,null);Hi(D,Z)}return null}function ie(L,D,_,Z){for(var ce=null,pe=null,me=D,ye=D=0,tt=null;me!==null&&ye<_.length;ye++){me.index>ye?(tt=me,me=null):tt=me.sibling;var Te=Q(L,me,_[ye],Z);if(Te===null){me===null&&(me=tt);break}n&&me&&Te.alternate===null&&o(L,me),D=g(Te,D,ye),pe===null?ce=Te:pe.sibling=Te,pe=Te,me=tt}if(ye===_.length)return i(L,me),Ie&&Mr(L,ye),ce;if(me===null){for(;ye<_.length;ye++)me=G(L,_[ye],Z),me!==null&&(D=g(me,D,ye),pe===null?ce=me:pe.sibling=me,pe=me);return Ie&&Mr(L,ye),ce}for(me=u(L,me);ye<_.length;ye++)tt=ne(me,L,ye,_[ye],Z),tt!==null&&(n&&tt.alternate!==null&&me.delete(tt.key===null?ye:tt.key),D=g(tt,D,ye),pe===null?ce=tt:pe.sibling=tt,pe=tt);return n&&me.forEach(function(mr){return o(L,mr)}),Ie&&Mr(L,ye),ce}function ue(L,D,_,Z){var ce=U(_);if(typeof ce!="function")throw Error(r(150));if(_=ce.call(_),_==null)throw Error(r(151));for(var pe=ce=null,me=D,ye=D=0,tt=null,Te=_.next();me!==null&&!Te.done;ye++,Te=_.next()){me.index>ye?(tt=me,me=null):tt=me.sibling;var mr=Q(L,me,Te.value,Z);if(mr===null){me===null&&(me=tt);break}n&&me&&mr.alternate===null&&o(L,me),D=g(mr,D,ye),pe===null?ce=mr:pe.sibling=mr,pe=mr,me=tt}if(Te.done)return i(L,me),Ie&&Mr(L,ye),ce;if(me===null){for(;!Te.done;ye++,Te=_.next())Te=G(L,Te.value,Z),Te!==null&&(D=g(Te,D,ye),pe===null?ce=Te:pe.sibling=Te,pe=Te);return Ie&&Mr(L,ye),ce}for(me=u(L,me);!Te.done;ye++,Te=_.next())Te=ne(me,L,ye,Te.value,Z),Te!==null&&(n&&Te.alternate!==null&&me.delete(Te.key===null?ye:Te.key),D=g(Te,D,ye),pe===null?ce=Te:pe.sibling=Te,pe=Te);return n&&me.forEach(function(HS){return o(L,HS)}),Ie&&Mr(L,ye),ce}function Ke(L,D,_,Z){if(typeof _=="object"&&_!==null&&_.type===$&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case O:e:{for(var ce=_.key,pe=D;pe!==null;){if(pe.key===ce){if(ce=_.type,ce===$){if(pe.tag===7){i(L,pe.sibling),D=f(pe,_.props.children),D.return=L,L=D;break e}}else if(pe.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===re&&yp(ce)===pe.type){i(L,pe.sibling),D=f(pe,_.props),D.ref=Ps(L,pe,_),D.return=L,L=D;break e}i(L,pe);break}else o(L,pe);pe=pe.sibling}_.type===$?(D=Br(_.props.children,L.mode,Z,_.key),D.return=L,L=D):(Z=ma(_.type,_.key,_.props,null,L.mode,Z),Z.ref=Ps(L,D,_),Z.return=L,L=Z)}return C(L);case F:e:{for(pe=_.key;D!==null;){if(D.key===pe)if(D.tag===4&&D.stateNode.containerInfo===_.containerInfo&&D.stateNode.implementation===_.implementation){i(L,D.sibling),D=f(D,_.children||[]),D.return=L,L=D;break e}else{i(L,D);break}else o(L,D);D=D.sibling}D=xc(_,L.mode,Z),D.return=L,L=D}return C(L);case re:return pe=_._init,Ke(L,D,pe(_._payload),Z)}if(Gn(_))return ie(L,D,_,Z);if(U(_))return ue(L,D,_,Z);Hi(L,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,D!==null&&D.tag===6?(i(L,D.sibling),D=f(D,_),D.return=L,L=D):(i(L,D),D=vc(_,L.mode,Z),D.return=L,L=D),C(L)):i(L,D)}return Ke}var xo=vp(!0),xp=vp(!1),Ki=or(null),Qi=null,wo=null,ku=null;function Nu(){ku=wo=Qi=null}function Au(n){var o=Ki.current;Le(Ki),n._currentValue=o}function ju(n,o,i){for(;n!==null;){var u=n.alternate;if((n.childLanes&o)!==o?(n.childLanes|=o,u!==null&&(u.childLanes|=o)):u!==null&&(u.childLanes&o)!==o&&(u.childLanes|=o),n===i)break;n=n.return}}function bo(n,o){Qi=n,ku=wo=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&o)!==0&&(Ct=!0),n.firstContext=null)}function Ut(n){var o=n._currentValue;if(ku!==n)if(n={context:n,memoizedValue:o,next:null},wo===null){if(Qi===null)throw Error(r(308));wo=n,Qi.dependencies={lanes:0,firstContext:n}}else wo=wo.next=n;return o}var Dr=null;function Mu(n){Dr===null?Dr=[n]:Dr.push(n)}function wp(n,o,i,u){var f=o.interleaved;return f===null?(i.next=i,Mu(o)):(i.next=f.next,f.next=i),o.interleaved=i,Vn(n,u)}function Vn(n,o){n.lanes|=o;var i=n.alternate;for(i!==null&&(i.lanes|=o),i=n,n=n.return;n!==null;)n.childLanes|=o,i=n.alternate,i!==null&&(i.childLanes|=o),i=n,n=n.return;return i.tag===3?i.stateNode:null}var ar=!1;function Du(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bp(n,o){n=n.updateQueue,o.updateQueue===n&&(o.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function Bn(n,o){return{eventTime:n,lane:o,tag:0,payload:null,callback:null,next:null}}function lr(n,o,i){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(Ee&2)!==0){var f=u.pending;return f===null?o.next=o:(o.next=f.next,f.next=o),u.pending=o,Vn(n,i)}return f=u.interleaved,f===null?(o.next=o,Mu(u)):(o.next=f.next,f.next=o),u.interleaved=o,Vn(n,i)}function Yi(n,o,i){if(o=o.updateQueue,o!==null&&(o=o.shared,(i&4194240)!==0)){var u=o.lanes;u&=n.pendingLanes,i|=u,o.lanes=i,Ql(n,i)}}function Sp(n,o){var i=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,i===u)){var f=null,g=null;if(i=i.firstBaseUpdate,i!==null){do{var C={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};g===null?f=g=C:g=g.next=C,i=i.next}while(i!==null);g===null?f=g=o:g=g.next=o}else f=g=o;i={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:g,shared:u.shared,effects:u.effects},n.updateQueue=i;return}n=i.lastBaseUpdate,n===null?i.firstBaseUpdate=o:n.next=o,i.lastBaseUpdate=o}function Gi(n,o,i,u){var f=n.updateQueue;ar=!1;var g=f.firstBaseUpdate,C=f.lastBaseUpdate,k=f.shared.pending;if(k!==null){f.shared.pending=null;var j=k,I=j.next;j.next=null,C===null?g=I:C.next=I,C=j;var Y=n.alternate;Y!==null&&(Y=Y.updateQueue,k=Y.lastBaseUpdate,k!==C&&(k===null?Y.firstBaseUpdate=I:k.next=I,Y.lastBaseUpdate=j))}if(g!==null){var G=f.baseState;C=0,Y=I=j=null,k=g;do{var Q=k.lane,ne=k.eventTime;if((u&Q)===Q){Y!==null&&(Y=Y.next={eventTime:ne,lane:0,tag:k.tag,payload:k.payload,callback:k.callback,next:null});e:{var ie=n,ue=k;switch(Q=o,ne=i,ue.tag){case 1:if(ie=ue.payload,typeof ie=="function"){G=ie.call(ne,G,Q);break e}G=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=ue.payload,Q=typeof ie=="function"?ie.call(ne,G,Q):ie,Q==null)break e;G=K({},G,Q);break e;case 2:ar=!0}}k.callback!==null&&k.lane!==0&&(n.flags|=64,Q=f.effects,Q===null?f.effects=[k]:Q.push(k))}else ne={eventTime:ne,lane:Q,tag:k.tag,payload:k.payload,callback:k.callback,next:null},Y===null?(I=Y=ne,j=G):Y=Y.next=ne,C|=Q;if(k=k.next,k===null){if(k=f.shared.pending,k===null)break;Q=k,k=Q.next,Q.next=null,f.lastBaseUpdate=Q,f.shared.pending=null}}while(!0);if(Y===null&&(j=G),f.baseState=j,f.firstBaseUpdate=I,f.lastBaseUpdate=Y,o=f.shared.interleaved,o!==null){f=o;do C|=f.lane,f=f.next;while(f!==o)}else g===null&&(f.shared.lanes=0);_r|=C,n.lanes=C,n.memoizedState=G}}function Cp(n,o,i){if(n=o.effects,o.effects=null,n!==null)for(o=0;o<n.length;o++){var u=n[o],f=u.callback;if(f!==null){if(u.callback=null,u=i,typeof f!="function")throw Error(r(191,f));f.call(u)}}}var Ts={},bn=or(Ts),Rs=or(Ts),ks=or(Ts);function Or(n){if(n===Ts)throw Error(r(174));return n}function Ou(n,o){switch(Me(ks,o),Me(Rs,n),Me(bn,Ts),n=o.nodeType,n){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:pn(null,"");break;default:n=n===8?o.parentNode:o,o=n.namespaceURI||null,n=n.tagName,o=pn(o,n)}Le(bn),Me(bn,o)}function So(){Le(bn),Le(Rs),Le(ks)}function Ep(n){Or(ks.current);var o=Or(bn.current),i=pn(o,n.type);o!==i&&(Me(Rs,n),Me(bn,i))}function Lu(n){Rs.current===n&&(Le(bn),Le(Rs))}var Ve=or(0);function Xi(n){for(var o=n;o!==null;){if(o.tag===13){var i=o.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var _u=[];function Iu(){for(var n=0;n<_u.length;n++)_u[n]._workInProgressVersionPrimary=null;_u.length=0}var qi=A.ReactCurrentDispatcher,Fu=A.ReactCurrentBatchConfig,Lr=0,Be=null,Xe=null,Je=null,Zi=!1,Ns=!1,As=0,hS=0;function ut(){throw Error(r(321))}function Vu(n,o){if(o===null)return!1;for(var i=0;i<o.length&&i<n.length;i++)if(!Jt(n[i],o[i]))return!1;return!0}function Bu(n,o,i,u,f,g){if(Lr=g,Be=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,qi.current=n===null||n.memoizedState===null?yS:vS,n=i(u,f),Ns){g=0;do{if(Ns=!1,As=0,25<=g)throw Error(r(301));g+=1,Je=Xe=null,o.updateQueue=null,qi.current=xS,n=i(u,f)}while(Ns)}if(qi.current=ta,o=Xe!==null&&Xe.next!==null,Lr=0,Je=Xe=Be=null,Zi=!1,o)throw Error(r(300));return n}function zu(){var n=As!==0;return As=0,n}function Sn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?Be.memoizedState=Je=n:Je=Je.next=n,Je}function $t(){if(Xe===null){var n=Be.alternate;n=n!==null?n.memoizedState:null}else n=Xe.next;var o=Je===null?Be.memoizedState:Je.next;if(o!==null)Je=o,Xe=n;else{if(n===null)throw Error(r(310));Xe=n,n={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},Je===null?Be.memoizedState=Je=n:Je=Je.next=n}return Je}function js(n,o){return typeof o=="function"?o(n):o}function Uu(n){var o=$t(),i=o.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=n;var u=Xe,f=u.baseQueue,g=i.pending;if(g!==null){if(f!==null){var C=f.next;f.next=g.next,g.next=C}u.baseQueue=f=g,i.pending=null}if(f!==null){g=f.next,u=u.baseState;var k=C=null,j=null,I=g;do{var Y=I.lane;if((Lr&Y)===Y)j!==null&&(j=j.next={lane:0,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),u=I.hasEagerState?I.eagerState:n(u,I.action);else{var G={lane:Y,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null};j===null?(k=j=G,C=u):j=j.next=G,Be.lanes|=Y,_r|=Y}I=I.next}while(I!==null&&I!==g);j===null?C=u:j.next=k,Jt(u,o.memoizedState)||(Ct=!0),o.memoizedState=u,o.baseState=C,o.baseQueue=j,i.lastRenderedState=u}if(n=i.interleaved,n!==null){f=n;do g=f.lane,Be.lanes|=g,_r|=g,f=f.next;while(f!==n)}else f===null&&(i.lanes=0);return[o.memoizedState,i.dispatch]}function $u(n){var o=$t(),i=o.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=n;var u=i.dispatch,f=i.pending,g=o.memoizedState;if(f!==null){i.pending=null;var C=f=f.next;do g=n(g,C.action),C=C.next;while(C!==f);Jt(g,o.memoizedState)||(Ct=!0),o.memoizedState=g,o.baseQueue===null&&(o.baseState=g),i.lastRenderedState=g}return[g,u]}function Pp(){}function Tp(n,o){var i=Be,u=$t(),f=o(),g=!Jt(u.memoizedState,f);if(g&&(u.memoizedState=f,Ct=!0),u=u.queue,Wu(Np.bind(null,i,u,n),[n]),u.getSnapshot!==o||g||Je!==null&&Je.memoizedState.tag&1){if(i.flags|=2048,Ms(9,kp.bind(null,i,u,f,o),void 0,null),et===null)throw Error(r(349));(Lr&30)!==0||Rp(i,o,f)}return f}function Rp(n,o,i){n.flags|=16384,n={getSnapshot:o,value:i},o=Be.updateQueue,o===null?(o={lastEffect:null,stores:null},Be.updateQueue=o,o.stores=[n]):(i=o.stores,i===null?o.stores=[n]:i.push(n))}function kp(n,o,i,u){o.value=i,o.getSnapshot=u,Ap(o)&&jp(n)}function Np(n,o,i){return i(function(){Ap(o)&&jp(n)})}function Ap(n){var o=n.getSnapshot;n=n.value;try{var i=o();return!Jt(n,i)}catch{return!0}}function jp(n){var o=Vn(n,1);o!==null&&on(o,n,1,-1)}function Mp(n){var o=Sn();return typeof n=="function"&&(n=n()),o.memoizedState=o.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:js,lastRenderedState:n},o.queue=n,n=n.dispatch=gS.bind(null,Be,n),[o.memoizedState,n]}function Ms(n,o,i,u){return n={tag:n,create:o,destroy:i,deps:u,next:null},o=Be.updateQueue,o===null?(o={lastEffect:null,stores:null},Be.updateQueue=o,o.lastEffect=n.next=n):(i=o.lastEffect,i===null?o.lastEffect=n.next=n:(u=i.next,i.next=n,n.next=u,o.lastEffect=n)),n}function Dp(){return $t().memoizedState}function Ji(n,o,i,u){var f=Sn();Be.flags|=n,f.memoizedState=Ms(1|o,i,void 0,u===void 0?null:u)}function ea(n,o,i,u){var f=$t();u=u===void 0?null:u;var g=void 0;if(Xe!==null){var C=Xe.memoizedState;if(g=C.destroy,u!==null&&Vu(u,C.deps)){f.memoizedState=Ms(o,i,g,u);return}}Be.flags|=n,f.memoizedState=Ms(1|o,i,g,u)}function Op(n,o){return Ji(8390656,8,n,o)}function Wu(n,o){return ea(2048,8,n,o)}function Lp(n,o){return ea(4,2,n,o)}function _p(n,o){return ea(4,4,n,o)}function Ip(n,o){if(typeof o=="function")return n=n(),o(n),function(){o(null)};if(o!=null)return n=n(),o.current=n,function(){o.current=null}}function Fp(n,o,i){return i=i!=null?i.concat([n]):null,ea(4,4,Ip.bind(null,o,n),i)}function Hu(){}function Vp(n,o){var i=$t();o=o===void 0?null:o;var u=i.memoizedState;return u!==null&&o!==null&&Vu(o,u[1])?u[0]:(i.memoizedState=[n,o],n)}function Bp(n,o){var i=$t();o=o===void 0?null:o;var u=i.memoizedState;return u!==null&&o!==null&&Vu(o,u[1])?u[0]:(n=n(),i.memoizedState=[n,o],n)}function zp(n,o,i){return(Lr&21)===0?(n.baseState&&(n.baseState=!1,Ct=!0),n.memoizedState=i):(Jt(i,o)||(i=yh(),Be.lanes|=i,_r|=i,n.baseState=!0),o)}function pS(n,o){var i=Ne;Ne=i!==0&&4>i?i:4,n(!0);var u=Fu.transition;Fu.transition={};try{n(!1),o()}finally{Ne=i,Fu.transition=u}}function Up(){return $t().memoizedState}function mS(n,o,i){var u=fr(n);if(i={lane:u,action:i,hasEagerState:!1,eagerState:null,next:null},$p(n))Wp(o,i);else if(i=wp(n,o,i,u),i!==null){var f=gt();on(i,n,u,f),Hp(i,o,u)}}function gS(n,o,i){var u=fr(n),f={lane:u,action:i,hasEagerState:!1,eagerState:null,next:null};if($p(n))Wp(o,f);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=o.lastRenderedReducer,g!==null))try{var C=o.lastRenderedState,k=g(C,i);if(f.hasEagerState=!0,f.eagerState=k,Jt(k,C)){var j=o.interleaved;j===null?(f.next=f,Mu(o)):(f.next=j.next,j.next=f),o.interleaved=f;return}}catch{}i=wp(n,o,f,u),i!==null&&(f=gt(),on(i,n,u,f),Hp(i,o,u))}}function $p(n){var o=n.alternate;return n===Be||o!==null&&o===Be}function Wp(n,o){Ns=Zi=!0;var i=n.pending;i===null?o.next=o:(o.next=i.next,i.next=o),n.pending=o}function Hp(n,o,i){if((i&4194240)!==0){var u=o.lanes;u&=n.pendingLanes,i|=u,o.lanes=i,Ql(n,i)}}var ta={readContext:Ut,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useInsertionEffect:ut,useLayoutEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useMutableSource:ut,useSyncExternalStore:ut,useId:ut,unstable_isNewReconciler:!1},yS={readContext:Ut,useCallback:function(n,o){return Sn().memoizedState=[n,o===void 0?null:o],n},useContext:Ut,useEffect:Op,useImperativeHandle:function(n,o,i){return i=i!=null?i.concat([n]):null,Ji(4194308,4,Ip.bind(null,o,n),i)},useLayoutEffect:function(n,o){return Ji(4194308,4,n,o)},useInsertionEffect:function(n,o){return Ji(4,2,n,o)},useMemo:function(n,o){var i=Sn();return o=o===void 0?null:o,n=n(),i.memoizedState=[n,o],n},useReducer:function(n,o,i){var u=Sn();return o=i!==void 0?i(o):o,u.memoizedState=u.baseState=o,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:o},u.queue=n,n=n.dispatch=mS.bind(null,Be,n),[u.memoizedState,n]},useRef:function(n){var o=Sn();return n={current:n},o.memoizedState=n},useState:Mp,useDebugValue:Hu,useDeferredValue:function(n){return Sn().memoizedState=n},useTransition:function(){var n=Mp(!1),o=n[0];return n=pS.bind(null,n[1]),Sn().memoizedState=n,[o,n]},useMutableSource:function(){},useSyncExternalStore:function(n,o,i){var u=Be,f=Sn();if(Ie){if(i===void 0)throw Error(r(407));i=i()}else{if(i=o(),et===null)throw Error(r(349));(Lr&30)!==0||Rp(u,o,i)}f.memoizedState=i;var g={value:i,getSnapshot:o};return f.queue=g,Op(Np.bind(null,u,g,n),[n]),u.flags|=2048,Ms(9,kp.bind(null,u,g,i,o),void 0,null),i},useId:function(){var n=Sn(),o=et.identifierPrefix;if(Ie){var i=Fn,u=In;i=(u&~(1<<32-Zt(u)-1)).toString(32)+i,o=":"+o+"R"+i,i=As++,0<i&&(o+="H"+i.toString(32)),o+=":"}else i=hS++,o=":"+o+"r"+i.toString(32)+":";return n.memoizedState=o},unstable_isNewReconciler:!1},vS={readContext:Ut,useCallback:Vp,useContext:Ut,useEffect:Wu,useImperativeHandle:Fp,useInsertionEffect:Lp,useLayoutEffect:_p,useMemo:Bp,useReducer:Uu,useRef:Dp,useState:function(){return Uu(js)},useDebugValue:Hu,useDeferredValue:function(n){var o=$t();return zp(o,Xe.memoizedState,n)},useTransition:function(){var n=Uu(js)[0],o=$t().memoizedState;return[n,o]},useMutableSource:Pp,useSyncExternalStore:Tp,useId:Up,unstable_isNewReconciler:!1},xS={readContext:Ut,useCallback:Vp,useContext:Ut,useEffect:Wu,useImperativeHandle:Fp,useInsertionEffect:Lp,useLayoutEffect:_p,useMemo:Bp,useReducer:$u,useRef:Dp,useState:function(){return $u(js)},useDebugValue:Hu,useDeferredValue:function(n){var o=$t();return Xe===null?o.memoizedState=n:zp(o,Xe.memoizedState,n)},useTransition:function(){var n=$u(js)[0],o=$t().memoizedState;return[n,o]},useMutableSource:Pp,useSyncExternalStore:Tp,useId:Up,unstable_isNewReconciler:!1};function tn(n,o){if(n&&n.defaultProps){o=K({},o),n=n.defaultProps;for(var i in n)o[i]===void 0&&(o[i]=n[i]);return o}return o}function Ku(n,o,i,u){o=n.memoizedState,i=i(u,o),i=i==null?o:K({},o,i),n.memoizedState=i,n.lanes===0&&(n.updateQueue.baseState=i)}var na={isMounted:function(n){return(n=n._reactInternals)?kr(n)===n:!1},enqueueSetState:function(n,o,i){n=n._reactInternals;var u=gt(),f=fr(n),g=Bn(u,f);g.payload=o,i!=null&&(g.callback=i),o=lr(n,g,f),o!==null&&(on(o,n,f,u),Yi(o,n,f))},enqueueReplaceState:function(n,o,i){n=n._reactInternals;var u=gt(),f=fr(n),g=Bn(u,f);g.tag=1,g.payload=o,i!=null&&(g.callback=i),o=lr(n,g,f),o!==null&&(on(o,n,f,u),Yi(o,n,f))},enqueueForceUpdate:function(n,o){n=n._reactInternals;var i=gt(),u=fr(n),f=Bn(i,u);f.tag=2,o!=null&&(f.callback=o),o=lr(n,f,u),o!==null&&(on(o,n,u,i),Yi(o,n,u))}};function Kp(n,o,i,u,f,g,C){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,g,C):o.prototype&&o.prototype.isPureReactComponent?!vs(i,u)||!vs(f,g):!0}function Qp(n,o,i){var u=!1,f=sr,g=o.contextType;return typeof g=="object"&&g!==null?g=Ut(g):(f=St(o)?Ar:lt.current,u=o.contextTypes,g=(u=u!=null)?mo(n,f):sr),o=new o(i,g),n.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=na,n.stateNode=o,o._reactInternals=n,u&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=f,n.__reactInternalMemoizedMaskedChildContext=g),o}function Yp(n,o,i,u){n=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(i,u),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(i,u),o.state!==n&&na.enqueueReplaceState(o,o.state,null)}function Qu(n,o,i,u){var f=n.stateNode;f.props=i,f.state=n.memoizedState,f.refs={},Du(n);var g=o.contextType;typeof g=="object"&&g!==null?f.context=Ut(g):(g=St(o)?Ar:lt.current,f.context=mo(n,g)),f.state=n.memoizedState,g=o.getDerivedStateFromProps,typeof g=="function"&&(Ku(n,o,g,i),f.state=n.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(o=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),o!==f.state&&na.enqueueReplaceState(f,f.state,null),Gi(n,i,f,u),f.state=n.memoizedState),typeof f.componentDidMount=="function"&&(n.flags|=4194308)}function Co(n,o){try{var i="",u=o;do i+=ge(u),u=u.return;while(u);var f=i}catch(g){f=`
|
|
7
7
|
Error generating stack: `+g.message+`
|
|
8
|
-
`+g.stack}return{value:n,source:o,stack:f,digest:null}}function Yu(n,o,i){return{value:n,source:null,stack:i??null,digest:o??null}}function Gu(n,o){try{console.error(o.value)}catch(i){setTimeout(function(){throw i})}}var wS=typeof WeakMap=="function"?WeakMap:Map;function Gp(n,o,i){i=zn(-1,i),i.tag=3,i.payload={element:null};var u=o.value;return i.callback=function(){ua||(ua=!0,cc=u),Gu(n,o)},i}function Xp(n,o,i){i=zn(-1,i),i.tag=3;var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var f=o.value;i.payload=function(){return u(f)},i.callback=function(){Gu(n,o)}}var g=n.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(i.callback=function(){Gu(n,o),typeof u!="function"&&(cr===null?cr=new Set([this]):cr.add(this));var C=o.stack;this.componentDidCatch(o.value,{componentStack:C!==null?C:""})}),i}function qp(n,o,i){var u=n.pingCache;if(u===null){u=n.pingCache=new wS;var f=new Set;u.set(o,f)}else f=u.get(o),f===void 0&&(f=new Set,u.set(o,f));f.has(i)||(f.add(i),n=OS.bind(null,n,o,i),o.then(n,n))}function Zp(n){do{var o;if((o=n.tag===13)&&(o=n.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return n;n=n.return}while(n!==null);return null}function Jp(n,o,i,u,f){return(n.mode&1)===0?(n===o?n.flags|=65536:(n.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(o=zn(-1,1),o.tag=2,lr(i,o,1))),i.lanes|=1),n):(n.flags|=65536,n.lanes=f,n)}var bS=A.ReactCurrentOwner,Ct=!1;function mt(n,o,i,u){o.child=n===null?xp(o,null,i,u):xo(o,n.child,i,u)}function em(n,o,i,u,f){i=i.render;var g=o.ref;return bo(o,f),u=zu(n,o,i,u,g,f),i=Bu(),n!==null&&!Ct?(o.updateQueue=n.updateQueue,o.flags&=-2053,n.lanes&=~f,Bn(n,o,f)):(Ie&&i&&Cu(o),o.flags|=1,mt(n,o,u,f),o.child)}function tm(n,o,i,u,f){if(n===null){var g=i.type;return typeof g=="function"&&!yc(g)&&g.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(o.tag=15,o.type=g,nm(n,o,g,u,f)):(n=ma(i.type,null,u,o,o.mode,f),n.ref=o.ref,n.return=o,o.child=n)}if(g=n.child,(n.lanes&f)===0){var C=g.memoizedProps;if(i=i.compare,i=i!==null?i:vs,i(C,u)&&n.ref===o.ref)return Bn(n,o,f)}return o.flags|=1,n=pr(g,u),n.ref=o.ref,n.return=o,o.child=n}function nm(n,o,i,u,f){if(n!==null){var g=n.memoizedProps;if(vs(g,u)&&n.ref===o.ref)if(Ct=!1,o.pendingProps=u=g,(n.lanes&f)!==0)(n.flags&131072)!==0&&(Ct=!0);else return o.lanes=n.lanes,Bn(n,o,f)}return Xu(n,o,i,u,f)}function rm(n,o,i){var u=o.pendingProps,f=u.children,g=n!==null?n.memoizedState:null;if(u.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},Me(Po,Dt),Dt|=i;else{if((i&1073741824)===0)return n=g!==null?g.baseLanes|i:i,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:n,cachePool:null,transitions:null},o.updateQueue=null,Me(Po,Dt),Dt|=n,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=g!==null?g.baseLanes:i,Me(Po,Dt),Dt|=u}else g!==null?(u=g.baseLanes|i,o.memoizedState=null):u=i,Me(Po,Dt),Dt|=u;return mt(n,o,f,i),o.child}function om(n,o){var i=o.ref;(n===null&&i!==null||n!==null&&n.ref!==i)&&(o.flags|=512,o.flags|=2097152)}function Xu(n,o,i,u,f){var g=St(i)?Ar:lt.current;return g=mo(o,g),bo(o,f),i=zu(n,o,i,u,g,f),u=Bu(),n!==null&&!Ct?(o.updateQueue=n.updateQueue,o.flags&=-2053,n.lanes&=~f,Bn(n,o,f)):(Ie&&u&&Cu(o),o.flags|=1,mt(n,o,i,f),o.child)}function sm(n,o,i,u,f){if(St(i)){var g=!0;zi(o)}else g=!1;if(bo(o,f),o.stateNode===null)oa(n,o),Qp(o,i,u),Qu(o,i,u,f),u=!0;else if(n===null){var C=o.stateNode,k=o.memoizedProps;C.props=k;var j=C.context,I=i.contextType;typeof I=="object"&&I!==null?I=Ut(I):(I=St(i)?Ar:lt.current,I=mo(o,I));var Y=i.getDerivedStateFromProps,G=typeof Y=="function"||typeof C.getSnapshotBeforeUpdate=="function";G||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(k!==u||j!==I)&&Yp(o,C,u,I),ar=!1;var Q=o.memoizedState;C.state=Q,Gi(o,u,C,f),j=o.memoizedState,k!==u||Q!==j||bt.current||ar?(typeof Y=="function"&&(Ku(o,i,Y,u),j=o.memoizedState),(k=ar||Kp(o,i,k,u,Q,j,I))?(G||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(o.flags|=4194308)):(typeof C.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=u,o.memoizedState=j),C.props=u,C.state=j,C.context=I,u=k):(typeof C.componentDidMount=="function"&&(o.flags|=4194308),u=!1)}else{C=o.stateNode,bp(n,o),k=o.memoizedProps,I=o.type===o.elementType?k:tn(o.type,k),C.props=I,G=o.pendingProps,Q=C.context,j=i.contextType,typeof j=="object"&&j!==null?j=Ut(j):(j=St(i)?Ar:lt.current,j=mo(o,j));var ne=i.getDerivedStateFromProps;(Y=typeof ne=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(k!==G||Q!==j)&&Yp(o,C,u,j),ar=!1,Q=o.memoizedState,C.state=Q,Gi(o,u,C,f);var ie=o.memoizedState;k!==G||Q!==ie||bt.current||ar?(typeof ne=="function"&&(Ku(o,i,ne,u),ie=o.memoizedState),(I=ar||Kp(o,i,I,u,Q,ie,j)||!1)?(Y||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(u,ie,j),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(u,ie,j)),typeof C.componentDidUpdate=="function"&&(o.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof C.componentDidUpdate!="function"||k===n.memoizedProps&&Q===n.memoizedState||(o.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||k===n.memoizedProps&&Q===n.memoizedState||(o.flags|=1024),o.memoizedProps=u,o.memoizedState=ie),C.props=u,C.state=ie,C.context=j,u=I):(typeof C.componentDidUpdate!="function"||k===n.memoizedProps&&Q===n.memoizedState||(o.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||k===n.memoizedProps&&Q===n.memoizedState||(o.flags|=1024),u=!1)}return qu(n,o,i,u,g,f)}function qu(n,o,i,u,f,g){om(n,o);var C=(o.flags&128)!==0;if(!u&&!C)return f&&cp(o,i,!1),Bn(n,o,g);u=o.stateNode,bS.current=o;var k=C&&typeof i.getDerivedStateFromError!="function"?null:u.render();return o.flags|=1,n!==null&&C?(o.child=xo(o,n.child,null,g),o.child=xo(o,null,k,g)):mt(n,o,k,g),o.memoizedState=u.state,f&&cp(o,i,!0),o.child}function im(n){var o=n.stateNode;o.pendingContext?lp(n,o.pendingContext,o.pendingContext!==o.context):o.context&&lp(n,o.context,!1),Ou(n,o.containerInfo)}function am(n,o,i,u,f){return vo(),Ru(f),o.flags|=256,mt(n,o,i,u),o.child}var Zu={dehydrated:null,treeContext:null,retryLane:0};function Ju(n){return{baseLanes:n,cachePool:null,transitions:null}}function lm(n,o,i){var u=o.pendingProps,f=Ve.current,g=!1,C=(o.flags&128)!==0,k;if((k=C)||(k=n!==null&&n.memoizedState===null?!1:(f&2)!==0),k?(g=!0,o.flags&=-129):(n===null||n.memoizedState!==null)&&(f|=1),Me(Ve,f&1),n===null)return Tu(o),n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((o.mode&1)===0?o.lanes=1:n.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(C=u.children,n=u.fallback,g?(u=o.mode,g=o.child,C={mode:"hidden",children:C},(u&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=C):g=ga(C,u,0,null),n=zr(n,u,i,null),g.return=o,n.return=o,g.sibling=n,o.child=g,o.child.memoizedState=Ju(i),o.memoizedState=Zu,n):ec(o,C));if(f=n.memoizedState,f!==null&&(k=f.dehydrated,k!==null))return SS(n,o,C,u,k,f,i);if(g){g=u.fallback,C=o.mode,f=n.child,k=f.sibling;var j={mode:"hidden",children:u.children};return(C&1)===0&&o.child!==f?(u=o.child,u.childLanes=0,u.pendingProps=j,o.deletions=null):(u=pr(f,j),u.subtreeFlags=f.subtreeFlags&14680064),k!==null?g=pr(k,g):(g=zr(g,C,i,null),g.flags|=2),g.return=o,u.return=o,u.sibling=g,o.child=u,u=g,g=o.child,C=n.child.memoizedState,C=C===null?Ju(i):{baseLanes:C.baseLanes|i,cachePool:null,transitions:C.transitions},g.memoizedState=C,g.childLanes=n.childLanes&~i,o.memoizedState=Zu,u}return g=n.child,n=g.sibling,u=pr(g,{mode:"visible",children:u.children}),(o.mode&1)===0&&(u.lanes=i),u.return=o,u.sibling=null,n!==null&&(i=o.deletions,i===null?(o.deletions=[n],o.flags|=16):i.push(n)),o.child=u,o.memoizedState=null,u}function ec(n,o){return o=ga({mode:"visible",children:o},n.mode,0,null),o.return=n,n.child=o}function ra(n,o,i,u){return u!==null&&Ru(u),xo(o,n.child,null,i),n=ec(o,o.pendingProps.children),n.flags|=2,o.memoizedState=null,n}function SS(n,o,i,u,f,g,C){if(i)return o.flags&256?(o.flags&=-257,u=Yu(Error(r(422))),ra(n,o,C,u)):o.memoizedState!==null?(o.child=n.child,o.flags|=128,null):(g=u.fallback,f=o.mode,u=ga({mode:"visible",children:u.children},f,0,null),g=zr(g,f,C,null),g.flags|=2,u.return=o,g.return=o,u.sibling=g,o.child=u,(o.mode&1)!==0&&xo(o,n.child,null,C),o.child.memoizedState=Ju(C),o.memoizedState=Zu,g);if((o.mode&1)===0)return ra(n,o,C,null);if(f.data==="$!"){if(u=f.nextSibling&&f.nextSibling.dataset,u)var k=u.dgst;return u=k,g=Error(r(419)),u=Yu(g,u,void 0),ra(n,o,C,u)}if(k=(C&n.childLanes)!==0,Ct||k){if(u=et,u!==null){switch(C&-C){case 4:f=2;break;case 16:f=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:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(u.suspendedLanes|C))!==0?0:f,f!==0&&f!==g.retryLane&&(g.retryLane=f,Vn(n,f),on(u,n,f,-1))}return gc(),u=Yu(Error(r(421))),ra(n,o,C,u)}return f.data==="$?"?(o.flags|=128,o.child=n.child,o=LS.bind(null,n),f._reactRetry=o,null):(n=g.treeContext,Mt=rr(f.nextSibling),jt=o,Ie=!0,en=null,n!==null&&(zt[Bt++]=In,zt[Bt++]=Fn,zt[Bt++]=jr,In=n.id,Fn=n.overflow,jr=o),o=ec(o,u.children),o.flags|=4096,o)}function um(n,o,i){n.lanes|=o;var u=n.alternate;u!==null&&(u.lanes|=o),ju(n.return,o,i)}function tc(n,o,i,u,f){var g=n.memoizedState;g===null?n.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:u,tail:i,tailMode:f}:(g.isBackwards=o,g.rendering=null,g.renderingStartTime=0,g.last=u,g.tail=i,g.tailMode=f)}function cm(n,o,i){var u=o.pendingProps,f=u.revealOrder,g=u.tail;if(mt(n,o,u.children,i),u=Ve.current,(u&2)!==0)u=u&1|2,o.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=o.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&um(n,i,o);else if(n.tag===19)um(n,i,o);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===o)break e;for(;n.sibling===null;){if(n.return===null||n.return===o)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}u&=1}if(Me(Ve,u),(o.mode&1)===0)o.memoizedState=null;else switch(f){case"forwards":for(i=o.child,f=null;i!==null;)n=i.alternate,n!==null&&Xi(n)===null&&(f=i),i=i.sibling;i=f,i===null?(f=o.child,o.child=null):(f=i.sibling,i.sibling=null),tc(o,!1,f,i,g);break;case"backwards":for(i=null,f=o.child,o.child=null;f!==null;){if(n=f.alternate,n!==null&&Xi(n)===null){o.child=f;break}n=f.sibling,f.sibling=i,i=f,f=n}tc(o,!0,i,null,g);break;case"together":tc(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function oa(n,o){(o.mode&1)===0&&n!==null&&(n.alternate=null,o.alternate=null,o.flags|=2)}function Bn(n,o,i){if(n!==null&&(o.dependencies=n.dependencies),_r|=o.lanes,(i&o.childLanes)===0)return null;if(n!==null&&o.child!==n.child)throw Error(r(153));if(o.child!==null){for(n=o.child,i=pr(n,n.pendingProps),o.child=i,i.return=o;n.sibling!==null;)n=n.sibling,i=i.sibling=pr(n,n.pendingProps),i.return=o;i.sibling=null}return o.child}function CS(n,o,i){switch(o.tag){case 3:im(o),vo();break;case 5:Ep(o);break;case 1:St(o.type)&&zi(o);break;case 4:Ou(o,o.stateNode.containerInfo);break;case 10:var u=o.type._context,f=o.memoizedProps.value;Me(Ki,u._currentValue),u._currentValue=f;break;case 13:if(u=o.memoizedState,u!==null)return u.dehydrated!==null?(Me(Ve,Ve.current&1),o.flags|=128,null):(i&o.child.childLanes)!==0?lm(n,o,i):(Me(Ve,Ve.current&1),n=Bn(n,o,i),n!==null?n.sibling:null);Me(Ve,Ve.current&1);break;case 19:if(u=(i&o.childLanes)!==0,(n.flags&128)!==0){if(u)return cm(n,o,i);o.flags|=128}if(f=o.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Me(Ve,Ve.current),u)break;return null;case 22:case 23:return o.lanes=0,rm(n,o,i)}return Bn(n,o,i)}var dm,nc,fm,hm;dm=function(n,o){for(var i=o.child;i!==null;){if(i.tag===5||i.tag===6)n.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},nc=function(){},fm=function(n,o,i,u){var f=n.memoizedProps;if(f!==u){n=o.stateNode,Or(bn.current);var g=null;switch(i){case"input":f=Jo(n,f),u=Jo(n,u),g=[];break;case"select":f=K({},f,{value:void 0}),u=K({},u,{value:void 0}),g=[];break;case"textarea":f=eo(n,f),u=eo(n,u),g=[];break;default:typeof f.onClick!="function"&&typeof u.onClick=="function"&&(n.onclick=Ii)}gn(i,u);var C;i=null;for(I in f)if(!u.hasOwnProperty(I)&&f.hasOwnProperty(I)&&f[I]!=null)if(I==="style"){var k=f[I];for(C in k)k.hasOwnProperty(C)&&(i||(i={}),i[C]="")}else I!=="dangerouslySetInnerHTML"&&I!=="children"&&I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&I!=="autoFocus"&&(a.hasOwnProperty(I)?g||(g=[]):(g=g||[]).push(I,null));for(I in u){var j=u[I];if(k=f?.[I],u.hasOwnProperty(I)&&j!==k&&(j!=null||k!=null))if(I==="style")if(k){for(C in k)!k.hasOwnProperty(C)||j&&j.hasOwnProperty(C)||(i||(i={}),i[C]="");for(C in j)j.hasOwnProperty(C)&&k[C]!==j[C]&&(i||(i={}),i[C]=j[C])}else i||(g||(g=[]),g.push(I,i)),i=j;else I==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,k=k?k.__html:void 0,j!=null&&k!==j&&(g=g||[]).push(I,j)):I==="children"?typeof j!="string"&&typeof j!="number"||(g=g||[]).push(I,""+j):I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&(a.hasOwnProperty(I)?(j!=null&&I==="onScroll"&&Oe("scroll",n),g||k===j||(g=[])):(g=g||[]).push(I,j))}i&&(g=g||[]).push("style",i);var I=g;(o.updateQueue=I)&&(o.flags|=4)}},hm=function(n,o,i,u){i!==u&&(o.flags|=4)};function Ds(n,o){if(!Ie)switch(n.tailMode){case"hidden":o=n.tail;for(var i=null;o!==null;)o.alternate!==null&&(i=o),o=o.sibling;i===null?n.tail=null:i.sibling=null;break;case"collapsed":i=n.tail;for(var u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?o||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function ct(n){var o=n.alternate!==null&&n.alternate.child===n.child,i=0,u=0;if(o)for(var f=n.child;f!==null;)i|=f.lanes|f.childLanes,u|=f.subtreeFlags&14680064,u|=f.flags&14680064,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)i|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=u,n.childLanes=i,o}function ES(n,o,i){var u=o.pendingProps;switch(Eu(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(o),null;case 1:return St(o.type)&&Vi(),ct(o),null;case 3:return u=o.stateNode,So(),Le(bt),Le(lt),Iu(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(n===null||n.child===null)&&(Wi(o)?o.flags|=4:n===null||n.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,en!==null&&(hc(en),en=null))),nc(n,o),ct(o),null;case 5:Lu(o);var f=Or(ks.current);if(i=o.type,n!==null&&o.stateNode!=null)fm(n,o,i,u,f),n.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!u){if(o.stateNode===null)throw Error(r(166));return ct(o),null}if(n=Or(bn.current),Wi(o)){u=o.stateNode,i=o.type;var g=o.memoizedProps;switch(u[wn]=o,u[Cs]=g,n=(o.mode&1)!==0,i){case"dialog":Oe("cancel",u),Oe("close",u);break;case"iframe":case"object":case"embed":Oe("load",u);break;case"video":case"audio":for(f=0;f<ws.length;f++)Oe(ws[f],u);break;case"source":Oe("error",u);break;case"img":case"image":case"link":Oe("error",u),Oe("load",u);break;case"details":Oe("toggle",u);break;case"input":ui(u,g),Oe("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!g.multiple},Oe("invalid",u);break;case"textarea":hn(u,g),Oe("invalid",u)}gn(i,g),f=null;for(var C in g)if(g.hasOwnProperty(C)){var k=g[C];C==="children"?typeof k=="string"?u.textContent!==k&&(g.suppressHydrationWarning!==!0&&_i(u.textContent,k,n),f=["children",k]):typeof k=="number"&&u.textContent!==""+k&&(g.suppressHydrationWarning!==!0&&_i(u.textContent,k,n),f=["children",""+k]):a.hasOwnProperty(C)&&k!=null&&C==="onScroll"&&Oe("scroll",u)}switch(i){case"input":It(u),Jr(u,g,!0);break;case"textarea":It(u),di(u);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(u.onclick=Ii)}u=f,o.updateQueue=u,u!==null&&(o.flags|=4)}else{C=f.nodeType===9?f:f.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=ht(i)),n==="http://www.w3.org/1999/xhtml"?i==="script"?(n=C.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof u.is=="string"?n=C.createElement(i,{is:u.is}):(n=C.createElement(i),i==="select"&&(C=n,u.multiple?C.multiple=!0:u.size&&(C.size=u.size))):n=C.createElementNS(n,i),n[wn]=o,n[Cs]=u,dm(n,o,!1,!1),o.stateNode=n;e:{switch(C=rs(i,u),i){case"dialog":Oe("cancel",n),Oe("close",n),f=u;break;case"iframe":case"object":case"embed":Oe("load",n),f=u;break;case"video":case"audio":for(f=0;f<ws.length;f++)Oe(ws[f],n);f=u;break;case"source":Oe("error",n),f=u;break;case"img":case"image":case"link":Oe("error",n),Oe("load",n),f=u;break;case"details":Oe("toggle",n),f=u;break;case"input":ui(n,u),f=Jo(n,u),Oe("invalid",n);break;case"option":f=u;break;case"select":n._wrapperState={wasMultiple:!!u.multiple},f=K({},u,{value:void 0}),Oe("invalid",n);break;case"textarea":hn(n,u),f=eo(n,u),Oe("invalid",n);break;default:f=u}gn(i,f),k=f;for(g in k)if(k.hasOwnProperty(g)){var j=k[g];g==="style"?On(n,j):g==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,j!=null&&fi(n,j)):g==="children"?typeof j=="string"?(i!=="textarea"||j!=="")&&mn(n,j):typeof j=="number"&&mn(n,""+j):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(a.hasOwnProperty(g)?j!=null&&g==="onScroll"&&Oe("scroll",n):j!=null&&N(n,g,j,C))}switch(i){case"input":It(n),Jr(n,u,!1);break;case"textarea":It(n),di(n);break;case"option":u.value!=null&&n.setAttribute("value",""+Ce(u.value));break;case"select":n.multiple=!!u.multiple,g=u.value,g!=null?Vt(n,!!u.multiple,g,!1):u.defaultValue!=null&&Vt(n,!!u.multiple,u.defaultValue,!0);break;default:typeof f.onClick=="function"&&(n.onclick=Ii)}switch(i){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return ct(o),null;case 6:if(n&&o.stateNode!=null)hm(n,o,n.memoizedProps,u);else{if(typeof u!="string"&&o.stateNode===null)throw Error(r(166));if(i=Or(ks.current),Or(bn.current),Wi(o)){if(u=o.stateNode,i=o.memoizedProps,u[wn]=o,(g=u.nodeValue!==i)&&(n=jt,n!==null))switch(n.tag){case 3:_i(u.nodeValue,i,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&_i(u.nodeValue,i,(n.mode&1)!==0)}g&&(o.flags|=4)}else u=(i.nodeType===9?i:i.ownerDocument).createTextNode(u),u[wn]=o,o.stateNode=u}return ct(o),null;case 13:if(Le(Ve),u=o.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(Ie&&Mt!==null&&(o.mode&1)!==0&&(o.flags&128)===0)gp(),vo(),o.flags|=98560,g=!1;else if(g=Wi(o),u!==null&&u.dehydrated!==null){if(n===null){if(!g)throw Error(r(318));if(g=o.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[wn]=o}else vo(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;ct(o),g=!1}else en!==null&&(hc(en),en=null),g=!0;if(!g)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=i,o):(u=u!==null,u!==(n!==null&&n.memoizedState!==null)&&u&&(o.child.flags|=8192,(o.mode&1)!==0&&(n===null||(Ve.current&1)!==0?qe===0&&(qe=3):gc())),o.updateQueue!==null&&(o.flags|=4),ct(o),null);case 4:return So(),nc(n,o),n===null&&bs(o.stateNode.containerInfo),ct(o),null;case 10:return Au(o.type._context),ct(o),null;case 17:return St(o.type)&&Vi(),ct(o),null;case 19:if(Le(Ve),g=o.memoizedState,g===null)return ct(o),null;if(u=(o.flags&128)!==0,C=g.rendering,C===null)if(u)Ds(g,!1);else{if(qe!==0||n!==null&&(n.flags&128)!==0)for(n=o.child;n!==null;){if(C=Xi(n),C!==null){for(o.flags|=128,Ds(g,!1),u=C.updateQueue,u!==null&&(o.updateQueue=u,o.flags|=4),o.subtreeFlags=0,u=i,i=o.child;i!==null;)g=i,n=u,g.flags&=14680066,C=g.alternate,C===null?(g.childLanes=0,g.lanes=n,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=C.childLanes,g.lanes=C.lanes,g.child=C.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=C.memoizedProps,g.memoizedState=C.memoizedState,g.updateQueue=C.updateQueue,g.type=C.type,n=C.dependencies,g.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),i=i.sibling;return Me(Ve,Ve.current&1|2),o.child}n=n.sibling}g.tail!==null&&He()>To&&(o.flags|=128,u=!0,Ds(g,!1),o.lanes=4194304)}else{if(!u)if(n=Xi(C),n!==null){if(o.flags|=128,u=!0,i=n.updateQueue,i!==null&&(o.updateQueue=i,o.flags|=4),Ds(g,!0),g.tail===null&&g.tailMode==="hidden"&&!C.alternate&&!Ie)return ct(o),null}else 2*He()-g.renderingStartTime>To&&i!==1073741824&&(o.flags|=128,u=!0,Ds(g,!1),o.lanes=4194304);g.isBackwards?(C.sibling=o.child,o.child=C):(i=g.last,i!==null?i.sibling=C:o.child=C,g.last=C)}return g.tail!==null?(o=g.tail,g.rendering=o,g.tail=o.sibling,g.renderingStartTime=He(),o.sibling=null,i=Ve.current,Me(Ve,u?i&1|2:i&1),o):(ct(o),null);case 22:case 23:return mc(),u=o.memoizedState!==null,n!==null&&n.memoizedState!==null!==u&&(o.flags|=8192),u&&(o.mode&1)!==0?(Dt&1073741824)!==0&&(ct(o),o.subtreeFlags&6&&(o.flags|=8192)):ct(o),null;case 24:return null;case 25:return null}throw Error(r(156,o.tag))}function PS(n,o){switch(Eu(o),o.tag){case 1:return St(o.type)&&Vi(),n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 3:return So(),Le(bt),Le(lt),Iu(),n=o.flags,(n&65536)!==0&&(n&128)===0?(o.flags=n&-65537|128,o):null;case 5:return Lu(o),null;case 13:if(Le(Ve),n=o.memoizedState,n!==null&&n.dehydrated!==null){if(o.alternate===null)throw Error(r(340));vo()}return n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 19:return Le(Ve),null;case 4:return So(),null;case 10:return Au(o.type._context),null;case 22:case 23:return mc(),null;case 24:return null;default:return null}}var sa=!1,dt=!1,TS=typeof WeakSet=="function"?WeakSet:Set,se=null;function Eo(n,o){var i=n.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(u){$e(n,o,u)}else i.current=null}function rc(n,o,i){try{i()}catch(u){$e(n,o,u)}}var pm=!1;function RS(n,o){if(mu=Pi,n=Kh(),au(n)){if("selectionStart"in n)var i={start:n.selectionStart,end:n.selectionEnd};else e:{i=(i=n.ownerDocument)&&i.defaultView||window;var u=i.getSelection&&i.getSelection();if(u&&u.rangeCount!==0){i=u.anchorNode;var f=u.anchorOffset,g=u.focusNode;u=u.focusOffset;try{i.nodeType,g.nodeType}catch{i=null;break e}var C=0,k=-1,j=-1,I=0,Y=0,G=n,Q=null;t:for(;;){for(var ne;G!==i||f!==0&&G.nodeType!==3||(k=C+f),G!==g||u!==0&&G.nodeType!==3||(j=C+u),G.nodeType===3&&(C+=G.nodeValue.length),(ne=G.firstChild)!==null;)Q=G,G=ne;for(;;){if(G===n)break t;if(Q===i&&++I===f&&(k=C),Q===g&&++Y===u&&(j=C),(ne=G.nextSibling)!==null)break;G=Q,Q=G.parentNode}G=ne}i=k===-1||j===-1?null:{start:k,end:j}}else i=null}i=i||{start:0,end:0}}else i=null;for(gu={focusedElem:n,selectionRange:i},Pi=!1,se=o;se!==null;)if(o=se,n=o.child,(o.subtreeFlags&1028)!==0&&n!==null)n.return=o,se=n;else for(;se!==null;){o=se;try{var ie=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(ie!==null){var ue=ie.memoizedProps,Ke=ie.memoizedState,L=o.stateNode,D=L.getSnapshotBeforeUpdate(o.elementType===o.type?ue:tn(o.type,ue),Ke);L.__reactInternalSnapshotBeforeUpdate=D}break;case 3:var _=o.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Z){$e(o,o.return,Z)}if(n=o.sibling,n!==null){n.return=o.return,se=n;break}se=o.return}return ie=pm,pm=!1,ie}function Os(n,o,i){var u=o.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var f=u=u.next;do{if((f.tag&n)===n){var g=f.destroy;f.destroy=void 0,g!==void 0&&rc(o,i,g)}f=f.next}while(f!==u)}}function ia(n,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var i=o=o.next;do{if((i.tag&n)===n){var u=i.create;i.destroy=u()}i=i.next}while(i!==o)}}function oc(n){var o=n.ref;if(o!==null){var i=n.stateNode;n.tag,n=i,typeof o=="function"?o(n):o.current=n}}function mm(n){var o=n.alternate;o!==null&&(n.alternate=null,mm(o)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(o=n.stateNode,o!==null&&(delete o[wn],delete o[Cs],delete o[wu],delete o[uS],delete o[cS])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function gm(n){return n.tag===5||n.tag===3||n.tag===4}function ym(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||gm(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function sc(n,o,i){var u=n.tag;if(u===5||u===6)n=n.stateNode,o?i.nodeType===8?i.parentNode.insertBefore(n,o):i.insertBefore(n,o):(i.nodeType===8?(o=i.parentNode,o.insertBefore(n,i)):(o=i,o.appendChild(n)),i=i._reactRootContainer,i!=null||o.onclick!==null||(o.onclick=Ii));else if(u!==4&&(n=n.child,n!==null))for(sc(n,o,i),n=n.sibling;n!==null;)sc(n,o,i),n=n.sibling}function ic(n,o,i){var u=n.tag;if(u===5||u===6)n=n.stateNode,o?i.insertBefore(n,o):i.appendChild(n);else if(u!==4&&(n=n.child,n!==null))for(ic(n,o,i),n=n.sibling;n!==null;)ic(n,o,i),n=n.sibling}var rt=null,nn=!1;function ur(n,o,i){for(i=i.child;i!==null;)vm(n,o,i),i=i.sibling}function vm(n,o,i){if(xn&&typeof xn.onCommitFiberUnmount=="function")try{xn.onCommitFiberUnmount(xi,i)}catch{}switch(i.tag){case 5:dt||Eo(i,o);case 6:var u=rt,f=nn;rt=null,ur(n,o,i),rt=u,nn=f,rt!==null&&(nn?(n=rt,i=i.stateNode,n.nodeType===8?n.parentNode.removeChild(i):n.removeChild(i)):rt.removeChild(i.stateNode));break;case 18:rt!==null&&(nn?(n=rt,i=i.stateNode,n.nodeType===8?xu(n.parentNode,i):n.nodeType===1&&xu(n,i),fs(n)):xu(rt,i.stateNode));break;case 4:u=rt,f=nn,rt=i.stateNode.containerInfo,nn=!0,ur(n,o,i),rt=u,nn=f;break;case 0:case 11:case 14:case 15:if(!dt&&(u=i.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){f=u=u.next;do{var g=f,C=g.destroy;g=g.tag,C!==void 0&&((g&2)!==0||(g&4)!==0)&&rc(i,o,C),f=f.next}while(f!==u)}ur(n,o,i);break;case 1:if(!dt&&(Eo(i,o),u=i.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=i.memoizedProps,u.state=i.memoizedState,u.componentWillUnmount()}catch(k){$e(i,o,k)}ur(n,o,i);break;case 21:ur(n,o,i);break;case 22:i.mode&1?(dt=(u=dt)||i.memoizedState!==null,ur(n,o,i),dt=u):ur(n,o,i);break;default:ur(n,o,i)}}function xm(n){var o=n.updateQueue;if(o!==null){n.updateQueue=null;var i=n.stateNode;i===null&&(i=n.stateNode=new TS),o.forEach(function(u){var f=_S.bind(null,n,u);i.has(u)||(i.add(u),u.then(f,f))})}}function rn(n,o){var i=o.deletions;if(i!==null)for(var u=0;u<i.length;u++){var f=i[u];try{var g=n,C=o,k=C;e:for(;k!==null;){switch(k.tag){case 5:rt=k.stateNode,nn=!1;break e;case 3:rt=k.stateNode.containerInfo,nn=!0;break e;case 4:rt=k.stateNode.containerInfo,nn=!0;break e}k=k.return}if(rt===null)throw Error(r(160));vm(g,C,f),rt=null,nn=!1;var j=f.alternate;j!==null&&(j.return=null),f.return=null}catch(I){$e(f,o,I)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)wm(o,n),o=o.sibling}function wm(n,o){var i=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(rn(o,n),Cn(n),u&4){try{Os(3,n,n.return),ia(3,n)}catch(ue){$e(n,n.return,ue)}try{Os(5,n,n.return)}catch(ue){$e(n,n.return,ue)}}break;case 1:rn(o,n),Cn(n),u&512&&i!==null&&Eo(i,i.return);break;case 5:if(rn(o,n),Cn(n),u&512&&i!==null&&Eo(i,i.return),n.flags&32){var f=n.stateNode;try{mn(f,"")}catch(ue){$e(n,n.return,ue)}}if(u&4&&(f=n.stateNode,f!=null)){var g=n.memoizedProps,C=i!==null?i.memoizedProps:g,k=n.type,j=n.updateQueue;if(n.updateQueue=null,j!==null)try{k==="input"&&g.type==="radio"&&g.name!=null&&es(f,g),rs(k,C);var I=rs(k,g);for(C=0;C<j.length;C+=2){var Y=j[C],G=j[C+1];Y==="style"?On(f,G):Y==="dangerouslySetInnerHTML"?fi(f,G):Y==="children"?mn(f,G):N(f,Y,G,I)}switch(k){case"input":ts(f,g);break;case"textarea":ci(f,g);break;case"select":var Q=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!g.multiple;var ne=g.value;ne!=null?Vt(f,!!g.multiple,ne,!1):Q!==!!g.multiple&&(g.defaultValue!=null?Vt(f,!!g.multiple,g.defaultValue,!0):Vt(f,!!g.multiple,g.multiple?[]:"",!1))}f[Cs]=g}catch(ue){$e(n,n.return,ue)}}break;case 6:if(rn(o,n),Cn(n),u&4){if(n.stateNode===null)throw Error(r(162));f=n.stateNode,g=n.memoizedProps;try{f.nodeValue=g}catch(ue){$e(n,n.return,ue)}}break;case 3:if(rn(o,n),Cn(n),u&4&&i!==null&&i.memoizedState.isDehydrated)try{fs(o.containerInfo)}catch(ue){$e(n,n.return,ue)}break;case 4:rn(o,n),Cn(n);break;case 13:rn(o,n),Cn(n),f=n.child,f.flags&8192&&(g=f.memoizedState!==null,f.stateNode.isHidden=g,!g||f.alternate!==null&&f.alternate.memoizedState!==null||(uc=He())),u&4&&xm(n);break;case 22:if(Y=i!==null&&i.memoizedState!==null,n.mode&1?(dt=(I=dt)||Y,rn(o,n),dt=I):rn(o,n),Cn(n),u&8192){if(I=n.memoizedState!==null,(n.stateNode.isHidden=I)&&!Y&&(n.mode&1)!==0)for(se=n,Y=n.child;Y!==null;){for(G=se=Y;se!==null;){switch(Q=se,ne=Q.child,Q.tag){case 0:case 11:case 14:case 15:Os(4,Q,Q.return);break;case 1:Eo(Q,Q.return);var ie=Q.stateNode;if(typeof ie.componentWillUnmount=="function"){u=Q,i=Q.return;try{o=u,ie.props=o.memoizedProps,ie.state=o.memoizedState,ie.componentWillUnmount()}catch(ue){$e(u,i,ue)}}break;case 5:Eo(Q,Q.return);break;case 22:if(Q.memoizedState!==null){Cm(G);continue}}ne!==null?(ne.return=Q,se=ne):Cm(G)}Y=Y.sibling}e:for(Y=null,G=n;;){if(G.tag===5){if(Y===null){Y=G;try{f=G.stateNode,I?(g=f.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(k=G.stateNode,j=G.memoizedProps.style,C=j!=null&&j.hasOwnProperty("display")?j.display:null,k.style.display=no("display",C))}catch(ue){$e(n,n.return,ue)}}}else if(G.tag===6){if(Y===null)try{G.stateNode.nodeValue=I?"":G.memoizedProps}catch(ue){$e(n,n.return,ue)}}else if((G.tag!==22&&G.tag!==23||G.memoizedState===null||G===n)&&G.child!==null){G.child.return=G,G=G.child;continue}if(G===n)break e;for(;G.sibling===null;){if(G.return===null||G.return===n)break e;Y===G&&(Y=null),G=G.return}Y===G&&(Y=null),G.sibling.return=G.return,G=G.sibling}}break;case 19:rn(o,n),Cn(n),u&4&&xm(n);break;case 21:break;default:rn(o,n),Cn(n)}}function Cn(n){var o=n.flags;if(o&2){try{e:{for(var i=n.return;i!==null;){if(gm(i)){var u=i;break e}i=i.return}throw Error(r(160))}switch(u.tag){case 5:var f=u.stateNode;u.flags&32&&(mn(f,""),u.flags&=-33);var g=ym(n);ic(n,g,f);break;case 3:case 4:var C=u.stateNode.containerInfo,k=ym(n);sc(n,k,C);break;default:throw Error(r(161))}}catch(j){$e(n,n.return,j)}n.flags&=-3}o&4096&&(n.flags&=-4097)}function kS(n,o,i){se=n,bm(n)}function bm(n,o,i){for(var u=(n.mode&1)!==0;se!==null;){var f=se,g=f.child;if(f.tag===22&&u){var C=f.memoizedState!==null||sa;if(!C){var k=f.alternate,j=k!==null&&k.memoizedState!==null||dt;k=sa;var I=dt;if(sa=C,(dt=j)&&!I)for(se=f;se!==null;)C=se,j=C.child,C.tag===22&&C.memoizedState!==null?Em(f):j!==null?(j.return=C,se=j):Em(f);for(;g!==null;)se=g,bm(g),g=g.sibling;se=f,sa=k,dt=I}Sm(n)}else(f.subtreeFlags&8772)!==0&&g!==null?(g.return=f,se=g):Sm(n)}}function Sm(n){for(;se!==null;){var o=se;if((o.flags&8772)!==0){var i=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:dt||ia(5,o);break;case 1:var u=o.stateNode;if(o.flags&4&&!dt)if(i===null)u.componentDidMount();else{var f=o.elementType===o.type?i.memoizedProps:tn(o.type,i.memoizedProps);u.componentDidUpdate(f,i.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var g=o.updateQueue;g!==null&&Cp(o,g,u);break;case 3:var C=o.updateQueue;if(C!==null){if(i=null,o.child!==null)switch(o.child.tag){case 5:i=o.child.stateNode;break;case 1:i=o.child.stateNode}Cp(o,C,i)}break;case 5:var k=o.stateNode;if(i===null&&o.flags&4){i=k;var j=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":j.autoFocus&&i.focus();break;case"img":j.src&&(i.src=j.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var I=o.alternate;if(I!==null){var Y=I.memoizedState;if(Y!==null){var G=Y.dehydrated;G!==null&&fs(G)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}dt||o.flags&512&&oc(o)}catch(Q){$e(o,o.return,Q)}}if(o===n){se=null;break}if(i=o.sibling,i!==null){i.return=o.return,se=i;break}se=o.return}}function Cm(n){for(;se!==null;){var o=se;if(o===n){se=null;break}var i=o.sibling;if(i!==null){i.return=o.return,se=i;break}se=o.return}}function Em(n){for(;se!==null;){var o=se;try{switch(o.tag){case 0:case 11:case 15:var i=o.return;try{ia(4,o)}catch(j){$e(o,i,j)}break;case 1:var u=o.stateNode;if(typeof u.componentDidMount=="function"){var f=o.return;try{u.componentDidMount()}catch(j){$e(o,f,j)}}var g=o.return;try{oc(o)}catch(j){$e(o,g,j)}break;case 5:var C=o.return;try{oc(o)}catch(j){$e(o,C,j)}}}catch(j){$e(o,o.return,j)}if(o===n){se=null;break}var k=o.sibling;if(k!==null){k.return=o.return,se=k;break}se=o.return}}var NS=Math.ceil,aa=A.ReactCurrentDispatcher,ac=A.ReactCurrentOwner,Wt=A.ReactCurrentBatchConfig,Ee=0,et=null,Ye=null,ot=0,Dt=0,Po=or(0),qe=0,Ls=null,_r=0,la=0,lc=0,_s=null,Et=null,uc=0,To=1/0,Un=null,ua=!1,cc=null,cr=null,ca=!1,dr=null,da=0,Is=0,dc=null,fa=-1,ha=0;function gt(){return(Ee&6)!==0?He():fa!==-1?fa:fa=He()}function fr(n){return(n.mode&1)===0?1:(Ee&2)!==0&&ot!==0?ot&-ot:fS.transition!==null?(ha===0&&(ha=yh()),ha):(n=Ne,n!==0||(n=window.event,n=n===void 0?16:Th(n.type)),n)}function on(n,o,i,u){if(50<Is)throw Is=0,dc=null,Error(r(185));as(n,i,u),((Ee&2)===0||n!==et)&&(n===et&&((Ee&2)===0&&(la|=i),qe===4&&hr(n,ot)),Pt(n,u),i===1&&Ee===0&&(o.mode&1)===0&&(To=He()+500,Bi&&ir()))}function Pt(n,o){var i=n.callbackNode;f1(n,o);var u=Si(n,n===et?ot:0);if(u===0)i!==null&&ph(i),n.callbackNode=null,n.callbackPriority=0;else if(o=u&-u,n.callbackPriority!==o){if(i!=null&&ph(i),o===1)n.tag===0?dS(Tm.bind(null,n)):dp(Tm.bind(null,n)),aS(function(){(Ee&6)===0&&ir()}),i=null;else{switch(vh(u)){case 1:i=Wl;break;case 4:i=mh;break;case 16:i=vi;break;case 536870912:i=gh;break;default:i=vi}i=Om(i,Pm.bind(null,n))}n.callbackPriority=o,n.callbackNode=i}}function Pm(n,o){if(fa=-1,ha=0,(Ee&6)!==0)throw Error(r(327));var i=n.callbackNode;if(Ro()&&n.callbackNode!==i)return null;var u=Si(n,n===et?ot:0);if(u===0)return null;if((u&30)!==0||(u&n.expiredLanes)!==0||o)o=pa(n,u);else{o=u;var f=Ee;Ee|=2;var g=km();(et!==n||ot!==o)&&(Un=null,To=He()+500,Fr(n,o));do try{MS();break}catch(k){Rm(n,k)}while(!0);Nu(),aa.current=g,Ee=f,Ye!==null?o=0:(et=null,ot=0,o=qe)}if(o!==0){if(o===2&&(f=Hl(n),f!==0&&(u=f,o=fc(n,f))),o===1)throw i=Ls,Fr(n,0),hr(n,u),Pt(n,He()),i;if(o===6)hr(n,u);else{if(f=n.current.alternate,(u&30)===0&&!AS(f)&&(o=pa(n,u),o===2&&(g=Hl(n),g!==0&&(u=g,o=fc(n,g))),o===1))throw i=Ls,Fr(n,0),hr(n,u),Pt(n,He()),i;switch(n.finishedWork=f,n.finishedLanes=u,o){case 0:case 1:throw Error(r(345));case 2:Vr(n,Et,Un);break;case 3:if(hr(n,u),(u&130023424)===u&&(o=uc+500-He(),10<o)){if(Si(n,0)!==0)break;if(f=n.suspendedLanes,(f&u)!==u){gt(),n.pingedLanes|=n.suspendedLanes&f;break}n.timeoutHandle=vu(Vr.bind(null,n,Et,Un),o);break}Vr(n,Et,Un);break;case 4:if(hr(n,u),(u&4194240)===u)break;for(o=n.eventTimes,f=-1;0<u;){var C=31-Zt(u);g=1<<C,C=o[C],C>f&&(f=C),u&=~g}if(u=f,u=He()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*NS(u/1960))-u,10<u){n.timeoutHandle=vu(Vr.bind(null,n,Et,Un),u);break}Vr(n,Et,Un);break;case 5:Vr(n,Et,Un);break;default:throw Error(r(329))}}}return Pt(n,He()),n.callbackNode===i?Pm.bind(null,n):null}function fc(n,o){var i=_s;return n.current.memoizedState.isDehydrated&&(Fr(n,o).flags|=256),n=pa(n,o),n!==2&&(o=Et,Et=i,o!==null&&hc(o)),n}function hc(n){Et===null?Et=n:Et.push.apply(Et,n)}function AS(n){for(var o=n;;){if(o.flags&16384){var i=o.updateQueue;if(i!==null&&(i=i.stores,i!==null))for(var u=0;u<i.length;u++){var f=i[u],g=f.getSnapshot;f=f.value;try{if(!Jt(g(),f))return!1}catch{return!1}}}if(i=o.child,o.subtreeFlags&16384&&i!==null)i.return=o,o=i;else{if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function hr(n,o){for(o&=~lc,o&=~la,n.suspendedLanes|=o,n.pingedLanes&=~o,n=n.expirationTimes;0<o;){var i=31-Zt(o),u=1<<i;n[i]=-1,o&=~u}}function Tm(n){if((Ee&6)!==0)throw Error(r(327));Ro();var o=Si(n,0);if((o&1)===0)return Pt(n,He()),null;var i=pa(n,o);if(n.tag!==0&&i===2){var u=Hl(n);u!==0&&(o=u,i=fc(n,u))}if(i===1)throw i=Ls,Fr(n,0),hr(n,o),Pt(n,He()),i;if(i===6)throw Error(r(345));return n.finishedWork=n.current.alternate,n.finishedLanes=o,Vr(n,Et,Un),Pt(n,He()),null}function pc(n,o){var i=Ee;Ee|=1;try{return n(o)}finally{Ee=i,Ee===0&&(To=He()+500,Bi&&ir())}}function Ir(n){dr!==null&&dr.tag===0&&(Ee&6)===0&&Ro();var o=Ee;Ee|=1;var i=Wt.transition,u=Ne;try{if(Wt.transition=null,Ne=1,n)return n()}finally{Ne=u,Wt.transition=i,Ee=o,(Ee&6)===0&&ir()}}function mc(){Dt=Po.current,Le(Po)}function Fr(n,o){n.finishedWork=null,n.finishedLanes=0;var i=n.timeoutHandle;if(i!==-1&&(n.timeoutHandle=-1,iS(i)),Ye!==null)for(i=Ye.return;i!==null;){var u=i;switch(Eu(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&Vi();break;case 3:So(),Le(bt),Le(lt),Iu();break;case 5:Lu(u);break;case 4:So();break;case 13:Le(Ve);break;case 19:Le(Ve);break;case 10:Au(u.type._context);break;case 22:case 23:mc()}i=i.return}if(et=n,Ye=n=pr(n.current,null),ot=Dt=o,qe=0,Ls=null,lc=la=_r=0,Et=_s=null,Dr!==null){for(o=0;o<Dr.length;o++)if(i=Dr[o],u=i.interleaved,u!==null){i.interleaved=null;var f=u.next,g=i.pending;if(g!==null){var C=g.next;g.next=f,u.next=C}i.pending=u}Dr=null}return n}function Rm(n,o){do{var i=Ye;try{if(Nu(),qi.current=ta,Zi){for(var u=ze.memoizedState;u!==null;){var f=u.queue;f!==null&&(f.pending=null),u=u.next}Zi=!1}if(Lr=0,Je=Xe=ze=null,Ns=!1,As=0,ac.current=null,i===null||i.return===null){qe=1,Ls=o,Ye=null;break}e:{var g=n,C=i.return,k=i,j=o;if(o=ot,k.flags|=32768,j!==null&&typeof j=="object"&&typeof j.then=="function"){var I=j,Y=k,G=Y.tag;if((Y.mode&1)===0&&(G===0||G===11||G===15)){var Q=Y.alternate;Q?(Y.updateQueue=Q.updateQueue,Y.memoizedState=Q.memoizedState,Y.lanes=Q.lanes):(Y.updateQueue=null,Y.memoizedState=null)}var ne=Zp(C);if(ne!==null){ne.flags&=-257,Jp(ne,C,k,g,o),ne.mode&1&&qp(g,I,o),o=ne,j=I;var ie=o.updateQueue;if(ie===null){var ue=new Set;ue.add(j),o.updateQueue=ue}else ie.add(j);break e}else{if((o&1)===0){qp(g,I,o),gc();break e}j=Error(r(426))}}else if(Ie&&k.mode&1){var Ke=Zp(C);if(Ke!==null){(Ke.flags&65536)===0&&(Ke.flags|=256),Jp(Ke,C,k,g,o),Ru(Co(j,k));break e}}g=j=Co(j,k),qe!==4&&(qe=2),_s===null?_s=[g]:_s.push(g),g=C;do{switch(g.tag){case 3:g.flags|=65536,o&=-o,g.lanes|=o;var L=Gp(g,j,o);Sp(g,L);break e;case 1:k=j;var D=g.type,_=g.stateNode;if((g.flags&128)===0&&(typeof D.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(cr===null||!cr.has(_)))){g.flags|=65536,o&=-o,g.lanes|=o;var Z=Xp(g,k,o);Sp(g,Z);break e}}g=g.return}while(g!==null)}Am(i)}catch(ce){o=ce,Ye===i&&i!==null&&(Ye=i=i.return);continue}break}while(!0)}function km(){var n=aa.current;return aa.current=ta,n===null?ta:n}function gc(){(qe===0||qe===3||qe===2)&&(qe=4),et===null||(_r&268435455)===0&&(la&268435455)===0||hr(et,ot)}function pa(n,o){var i=Ee;Ee|=2;var u=km();(et!==n||ot!==o)&&(Un=null,Fr(n,o));do try{jS();break}catch(f){Rm(n,f)}while(!0);if(Nu(),Ee=i,aa.current=u,Ye!==null)throw Error(r(261));return et=null,ot=0,qe}function jS(){for(;Ye!==null;)Nm(Ye)}function MS(){for(;Ye!==null&&!r1();)Nm(Ye)}function Nm(n){var o=Dm(n.alternate,n,Dt);n.memoizedProps=n.pendingProps,o===null?Am(n):Ye=o,ac.current=null}function Am(n){var o=n;do{var i=o.alternate;if(n=o.return,(o.flags&32768)===0){if(i=ES(i,o,Dt),i!==null){Ye=i;return}}else{if(i=PS(i,o),i!==null){i.flags&=32767,Ye=i;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{qe=6,Ye=null;return}}if(o=o.sibling,o!==null){Ye=o;return}Ye=o=n}while(o!==null);qe===0&&(qe=5)}function Vr(n,o,i){var u=Ne,f=Wt.transition;try{Wt.transition=null,Ne=1,DS(n,o,i,u)}finally{Wt.transition=f,Ne=u}return null}function DS(n,o,i,u){do Ro();while(dr!==null);if((Ee&6)!==0)throw Error(r(327));i=n.finishedWork;var f=n.finishedLanes;if(i===null)return null;if(n.finishedWork=null,n.finishedLanes=0,i===n.current)throw Error(r(177));n.callbackNode=null,n.callbackPriority=0;var g=i.lanes|i.childLanes;if(h1(n,g),n===et&&(Ye=et=null,ot=0),(i.subtreeFlags&2064)===0&&(i.flags&2064)===0||ca||(ca=!0,Om(vi,function(){return Ro(),null})),g=(i.flags&15990)!==0,(i.subtreeFlags&15990)!==0||g){g=Wt.transition,Wt.transition=null;var C=Ne;Ne=1;var k=Ee;Ee|=4,ac.current=null,RS(n,i),wm(i,n),J1(gu),Pi=!!mu,gu=mu=null,n.current=i,kS(i),o1(),Ee=k,Ne=C,Wt.transition=g}else n.current=i;if(ca&&(ca=!1,dr=n,da=f),g=n.pendingLanes,g===0&&(cr=null),a1(i.stateNode),Pt(n,He()),o!==null)for(u=n.onRecoverableError,i=0;i<o.length;i++)f=o[i],u(f.value,{componentStack:f.stack,digest:f.digest});if(ua)throw ua=!1,n=cc,cc=null,n;return(da&1)!==0&&n.tag!==0&&Ro(),g=n.pendingLanes,(g&1)!==0?n===dc?Is++:(Is=0,dc=n):Is=0,ir(),null}function Ro(){if(dr!==null){var n=vh(da),o=Wt.transition,i=Ne;try{if(Wt.transition=null,Ne=16>n?16:n,dr===null)var u=!1;else{if(n=dr,dr=null,da=0,(Ee&6)!==0)throw Error(r(331));var f=Ee;for(Ee|=4,se=n.current;se!==null;){var g=se,C=g.child;if((se.flags&16)!==0){var k=g.deletions;if(k!==null){for(var j=0;j<k.length;j++){var I=k[j];for(se=I;se!==null;){var Y=se;switch(Y.tag){case 0:case 11:case 15:Os(8,Y,g)}var G=Y.child;if(G!==null)G.return=Y,se=G;else for(;se!==null;){Y=se;var Q=Y.sibling,ne=Y.return;if(mm(Y),Y===I){se=null;break}if(Q!==null){Q.return=ne,se=Q;break}se=ne}}}var ie=g.alternate;if(ie!==null){var ue=ie.child;if(ue!==null){ie.child=null;do{var Ke=ue.sibling;ue.sibling=null,ue=Ke}while(ue!==null)}}se=g}}if((g.subtreeFlags&2064)!==0&&C!==null)C.return=g,se=C;else e:for(;se!==null;){if(g=se,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:Os(9,g,g.return)}var L=g.sibling;if(L!==null){L.return=g.return,se=L;break e}se=g.return}}var D=n.current;for(se=D;se!==null;){C=se;var _=C.child;if((C.subtreeFlags&2064)!==0&&_!==null)_.return=C,se=_;else e:for(C=D;se!==null;){if(k=se,(k.flags&2048)!==0)try{switch(k.tag){case 0:case 11:case 15:ia(9,k)}}catch(ce){$e(k,k.return,ce)}if(k===C){se=null;break e}var Z=k.sibling;if(Z!==null){Z.return=k.return,se=Z;break e}se=k.return}}if(Ee=f,ir(),xn&&typeof xn.onPostCommitFiberRoot=="function")try{xn.onPostCommitFiberRoot(xi,n)}catch{}u=!0}return u}finally{Ne=i,Wt.transition=o}}return!1}function jm(n,o,i){o=Co(i,o),o=Gp(n,o,1),n=lr(n,o,1),o=gt(),n!==null&&(as(n,1,o),Pt(n,o))}function $e(n,o,i){if(n.tag===3)jm(n,n,i);else for(;o!==null;){if(o.tag===3){jm(o,n,i);break}else if(o.tag===1){var u=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(cr===null||!cr.has(u))){n=Co(i,n),n=Xp(o,n,1),o=lr(o,n,1),n=gt(),o!==null&&(as(o,1,n),Pt(o,n));break}}o=o.return}}function OS(n,o,i){var u=n.pingCache;u!==null&&u.delete(o),o=gt(),n.pingedLanes|=n.suspendedLanes&i,et===n&&(ot&i)===i&&(qe===4||qe===3&&(ot&130023424)===ot&&500>He()-uc?Fr(n,0):lc|=i),Pt(n,o)}function Mm(n,o){o===0&&((n.mode&1)===0?o=1:(o=bi,bi<<=1,(bi&130023424)===0&&(bi=4194304)));var i=gt();n=Vn(n,o),n!==null&&(as(n,o,i),Pt(n,i))}function LS(n){var o=n.memoizedState,i=0;o!==null&&(i=o.retryLane),Mm(n,i)}function _S(n,o){var i=0;switch(n.tag){case 13:var u=n.stateNode,f=n.memoizedState;f!==null&&(i=f.retryLane);break;case 19:u=n.stateNode;break;default:throw Error(r(314))}u!==null&&u.delete(o),Mm(n,i)}var Dm;Dm=function(n,o,i){if(n!==null)if(n.memoizedProps!==o.pendingProps||bt.current)Ct=!0;else{if((n.lanes&i)===0&&(o.flags&128)===0)return Ct=!1,CS(n,o,i);Ct=(n.flags&131072)!==0}else Ct=!1,Ie&&(o.flags&1048576)!==0&&fp(o,$i,o.index);switch(o.lanes=0,o.tag){case 2:var u=o.type;oa(n,o),n=o.pendingProps;var f=mo(o,lt.current);bo(o,i),f=zu(null,o,u,n,f,i);var g=Bu();return o.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,St(u)?(g=!0,zi(o)):g=!1,o.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,Du(o),f.updater=na,o.stateNode=f,f._reactInternals=o,Qu(o,u,n,i),o=qu(null,o,u,!0,g,i)):(o.tag=0,Ie&&g&&Cu(o),mt(null,o,f,i),o=o.child),o;case 16:u=o.elementType;e:{switch(oa(n,o),n=o.pendingProps,f=u._init,u=f(u._payload),o.type=u,f=o.tag=FS(u),n=tn(u,n),f){case 0:o=Xu(null,o,u,n,i);break e;case 1:o=sm(null,o,u,n,i);break e;case 11:o=em(null,o,u,n,i);break e;case 14:o=tm(null,o,u,tn(u.type,n),i);break e}throw Error(r(306,u,""))}return o;case 0:return u=o.type,f=o.pendingProps,f=o.elementType===u?f:tn(u,f),Xu(n,o,u,f,i);case 1:return u=o.type,f=o.pendingProps,f=o.elementType===u?f:tn(u,f),sm(n,o,u,f,i);case 3:e:{if(im(o),n===null)throw Error(r(387));u=o.pendingProps,g=o.memoizedState,f=g.element,bp(n,o),Gi(o,u,null,i);var C=o.memoizedState;if(u=C.element,g.isDehydrated)if(g={element:u,isDehydrated:!1,cache:C.cache,pendingSuspenseBoundaries:C.pendingSuspenseBoundaries,transitions:C.transitions},o.updateQueue.baseState=g,o.memoizedState=g,o.flags&256){f=Co(Error(r(423)),o),o=am(n,o,u,i,f);break e}else if(u!==f){f=Co(Error(r(424)),o),o=am(n,o,u,i,f);break e}else for(Mt=rr(o.stateNode.containerInfo.firstChild),jt=o,Ie=!0,en=null,i=xp(o,null,u,i),o.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(vo(),u===f){o=Bn(n,o,i);break e}mt(n,o,u,i)}o=o.child}return o;case 5:return Ep(o),n===null&&Tu(o),u=o.type,f=o.pendingProps,g=n!==null?n.memoizedProps:null,C=f.children,yu(u,f)?C=null:g!==null&&yu(u,g)&&(o.flags|=32),om(n,o),mt(n,o,C,i),o.child;case 6:return n===null&&Tu(o),null;case 13:return lm(n,o,i);case 4:return Ou(o,o.stateNode.containerInfo),u=o.pendingProps,n===null?o.child=xo(o,null,u,i):mt(n,o,u,i),o.child;case 11:return u=o.type,f=o.pendingProps,f=o.elementType===u?f:tn(u,f),em(n,o,u,f,i);case 7:return mt(n,o,o.pendingProps,i),o.child;case 8:return mt(n,o,o.pendingProps.children,i),o.child;case 12:return mt(n,o,o.pendingProps.children,i),o.child;case 10:e:{if(u=o.type._context,f=o.pendingProps,g=o.memoizedProps,C=f.value,Me(Ki,u._currentValue),u._currentValue=C,g!==null)if(Jt(g.value,C)){if(g.children===f.children&&!bt.current){o=Bn(n,o,i);break e}}else for(g=o.child,g!==null&&(g.return=o);g!==null;){var k=g.dependencies;if(k!==null){C=g.child;for(var j=k.firstContext;j!==null;){if(j.context===u){if(g.tag===1){j=zn(-1,i&-i),j.tag=2;var I=g.updateQueue;if(I!==null){I=I.shared;var Y=I.pending;Y===null?j.next=j:(j.next=Y.next,Y.next=j),I.pending=j}}g.lanes|=i,j=g.alternate,j!==null&&(j.lanes|=i),ju(g.return,i,o),k.lanes|=i;break}j=j.next}}else if(g.tag===10)C=g.type===o.type?null:g.child;else if(g.tag===18){if(C=g.return,C===null)throw Error(r(341));C.lanes|=i,k=C.alternate,k!==null&&(k.lanes|=i),ju(C,i,o),C=g.sibling}else C=g.child;if(C!==null)C.return=g;else for(C=g;C!==null;){if(C===o){C=null;break}if(g=C.sibling,g!==null){g.return=C.return,C=g;break}C=C.return}g=C}mt(n,o,f.children,i),o=o.child}return o;case 9:return f=o.type,u=o.pendingProps.children,bo(o,i),f=Ut(f),u=u(f),o.flags|=1,mt(n,o,u,i),o.child;case 14:return u=o.type,f=tn(u,o.pendingProps),f=tn(u.type,f),tm(n,o,u,f,i);case 15:return nm(n,o,o.type,o.pendingProps,i);case 17:return u=o.type,f=o.pendingProps,f=o.elementType===u?f:tn(u,f),oa(n,o),o.tag=1,St(u)?(n=!0,zi(o)):n=!1,bo(o,i),Qp(o,u,f),Qu(o,u,f,i),qu(null,o,u,!0,n,i);case 19:return cm(n,o,i);case 22:return rm(n,o,i)}throw Error(r(156,o.tag))};function Om(n,o){return hh(n,o)}function IS(n,o,i,u){this.tag=n,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(n,o,i,u){return new IS(n,o,i,u)}function yc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function FS(n){if(typeof n=="function")return yc(n)?1:0;if(n!=null){if(n=n.$$typeof,n===X)return 11;if(n===he)return 14}return 2}function pr(n,o){var i=n.alternate;return i===null?(i=Ht(n.tag,o,n.key,n.mode),i.elementType=n.elementType,i.type=n.type,i.stateNode=n.stateNode,i.alternate=n,n.alternate=i):(i.pendingProps=o,i.type=n.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=n.flags&14680064,i.childLanes=n.childLanes,i.lanes=n.lanes,i.child=n.child,i.memoizedProps=n.memoizedProps,i.memoizedState=n.memoizedState,i.updateQueue=n.updateQueue,o=n.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},i.sibling=n.sibling,i.index=n.index,i.ref=n.ref,i}function ma(n,o,i,u,f,g){var C=2;if(u=n,typeof n=="function")yc(n)&&(C=1);else if(typeof n=="string")C=5;else e:switch(n){case $:return zr(i.children,f,g,o);case B:C=8,f|=8;break;case H:return n=Ht(12,i,o,f|2),n.elementType=H,n.lanes=g,n;case de:return n=Ht(13,i,o,f),n.elementType=de,n.lanes=g,n;case q:return n=Ht(19,i,o,f),n.elementType=q,n.lanes=g,n;case le:return ga(i,f,g,o);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case W:C=10;break e;case ee:C=9;break e;case X:C=11;break e;case he:C=14;break e;case re:C=16,u=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return o=Ht(C,i,o,f),o.elementType=n,o.type=u,o.lanes=g,o}function zr(n,o,i,u){return n=Ht(7,n,u,o),n.lanes=i,n}function ga(n,o,i,u){return n=Ht(22,n,u,o),n.elementType=le,n.lanes=i,n.stateNode={isHidden:!1},n}function vc(n,o,i){return n=Ht(6,n,null,o),n.lanes=i,n}function xc(n,o,i){return o=Ht(4,n.children!==null?n.children:[],n.key,o),o.lanes=i,o.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},o}function VS(n,o,i,u,f){this.tag=o,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Kl(0),this.expirationTimes=Kl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kl(0),this.identifierPrefix=u,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function wc(n,o,i,u,f,g,C,k,j){return n=new VS(n,o,i,k,j),o===1?(o=1,g===!0&&(o|=8)):o=0,g=Ht(3,null,null,o),n.current=g,g.stateNode=n,g.memoizedState={element:u,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},Du(g),n}function zS(n,o,i){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:u==null?null:""+u,children:n,containerInfo:o,implementation:i}}function Lm(n){if(!n)return sr;n=n._reactInternals;e:{if(kr(n)!==n||n.tag!==1)throw Error(r(170));var o=n;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(St(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(r(171))}if(n.tag===1){var i=n.type;if(St(i))return up(n,i,o)}return o}function _m(n,o,i,u,f,g,C,k,j){return n=wc(i,u,!0,n,f,g,C,k,j),n.context=Lm(null),i=n.current,u=gt(),f=fr(i),g=zn(u,f),g.callback=o??null,lr(i,g,f),n.current.lanes=f,as(n,f,u),Pt(n,u),n}function ya(n,o,i,u){var f=o.current,g=gt(),C=fr(f);return i=Lm(i),o.context===null?o.context=i:o.pendingContext=i,o=zn(g,C),o.payload={element:n},u=u===void 0?null:u,u!==null&&(o.callback=u),n=lr(f,o,C),n!==null&&(on(n,f,C,g),Yi(n,f,C)),C}function va(n){return n=n.current,n.child?(n.child.tag===5,n.child.stateNode):null}function Im(n,o){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var i=n.retryLane;n.retryLane=i!==0&&i<o?i:o}}function bc(n,o){Im(n,o),(n=n.alternate)&&Im(n,o)}function BS(){return null}var Fm=typeof reportError=="function"?reportError:function(n){console.error(n)};function Sc(n){this._internalRoot=n}xa.prototype.render=Sc.prototype.render=function(n){var o=this._internalRoot;if(o===null)throw Error(r(409));ya(n,o,null,null)},xa.prototype.unmount=Sc.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var o=n.containerInfo;Ir(function(){ya(null,n,null,null)}),o[Ln]=null}};function xa(n){this._internalRoot=n}xa.prototype.unstable_scheduleHydration=function(n){if(n){var o=bh();n={blockedOn:null,target:n,priority:o};for(var i=0;i<er.length&&o!==0&&o<er[i].priority;i++);er.splice(i,0,n),i===0&&Eh(n)}};function Cc(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function wa(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function Vm(){}function US(n,o,i,u,f){if(f){if(typeof u=="function"){var g=u;u=function(){var I=va(C);g.call(I)}}var C=_m(o,u,n,0,null,!1,!1,"",Vm);return n._reactRootContainer=C,n[Ln]=C.current,bs(n.nodeType===8?n.parentNode:n),Ir(),C}for(;f=n.lastChild;)n.removeChild(f);if(typeof u=="function"){var k=u;u=function(){var I=va(j);k.call(I)}}var j=wc(n,0,!1,null,null,!1,!1,"",Vm);return n._reactRootContainer=j,n[Ln]=j.current,bs(n.nodeType===8?n.parentNode:n),Ir(function(){ya(o,j,i,u)}),j}function ba(n,o,i,u,f){var g=i._reactRootContainer;if(g){var C=g;if(typeof f=="function"){var k=f;f=function(){var j=va(C);k.call(j)}}ya(o,C,n,f)}else C=US(i,o,n,f,u);return va(C)}xh=function(n){switch(n.tag){case 3:var o=n.stateNode;if(o.current.memoizedState.isDehydrated){var i=is(o.pendingLanes);i!==0&&(Ql(o,i|1),Pt(o,He()),(Ee&6)===0&&(To=He()+500,ir()))}break;case 13:Ir(function(){var u=Vn(n,1);if(u!==null){var f=gt();on(u,n,1,f)}}),bc(n,1)}},Yl=function(n){if(n.tag===13){var o=Vn(n,134217728);if(o!==null){var i=gt();on(o,n,134217728,i)}bc(n,134217728)}},wh=function(n){if(n.tag===13){var o=fr(n),i=Vn(n,o);if(i!==null){var u=gt();on(i,n,o,u)}bc(n,o)}},bh=function(){return Ne},Sh=function(n,o){var i=Ne;try{return Ne=n,o()}finally{Ne=i}},oo=function(n,o,i){switch(o){case"input":if(ts(n,i),o=i.name,i.type==="radio"&&o!=null){for(i=n;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<i.length;o++){var u=i[o];if(u!==n&&u.form===n.form){var f=Fi(u);if(!f)throw Error(r(90));Yn(u),ts(u,f)}}}break;case"textarea":ci(n,i);break;case"select":o=i.value,o!=null&&Vt(n,!!i.multiple,o,!1)}},ke=pc,Ae=Ir;var $S={usingClientEntryPoint:!1,Events:[Es,ho,Fi,mi,ve,pc]},Fs={findFiberByHostInstance:Nr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},WS={bundleType:Fs.bundleType,version:Fs.version,rendererPackageName:Fs.rendererPackageName,rendererConfig:Fs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:A.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=dh(n),n===null?null:n.stateNode},findFiberByHostInstance:Fs.findFiberByHostInstance||BS,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sa.isDisabled&&Sa.supportsFiber)try{xi=Sa.inject(WS),xn=Sa}catch{}}return Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$S,Tt.createPortal=function(n,o){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cc(o))throw Error(r(200));return zS(n,o,null,i)},Tt.createRoot=function(n,o){if(!Cc(n))throw Error(r(299));var i=!1,u="",f=Fm;return o!=null&&(o.unstable_strictMode===!0&&(i=!0),o.identifierPrefix!==void 0&&(u=o.identifierPrefix),o.onRecoverableError!==void 0&&(f=o.onRecoverableError)),o=wc(n,1,!1,null,null,i,!1,u,f),n[Ln]=o.current,bs(n.nodeType===8?n.parentNode:n),new Sc(o)},Tt.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var o=n._reactInternals;if(o===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=dh(o),n=n===null?null:n.stateNode,n},Tt.flushSync=function(n){return Ir(n)},Tt.hydrate=function(n,o,i){if(!wa(o))throw Error(r(200));return ba(null,n,o,!0,i)},Tt.hydrateRoot=function(n,o,i){if(!Cc(n))throw Error(r(405));var u=i!=null&&i.hydratedSources||null,f=!1,g="",C=Fm;if(i!=null&&(i.unstable_strictMode===!0&&(f=!0),i.identifierPrefix!==void 0&&(g=i.identifierPrefix),i.onRecoverableError!==void 0&&(C=i.onRecoverableError)),o=_m(o,null,n,1,i??null,f,!1,g,C),n[Ln]=o.current,bs(n),u)for(n=0;n<u.length;n++)i=u[n],f=i._getVersion,f=f(i._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[i,f]:o.mutableSourceEagerHydrationData.push(i,f);return new xa(o)},Tt.render=function(n,o,i){if(!wa(o))throw Error(r(200));return ba(null,n,o,!1,i)},Tt.unmountComponentAtNode=function(n){if(!wa(n))throw Error(r(40));return n._reactRootContainer?(Ir(function(){ba(null,null,n,!1,function(){n._reactRootContainer=null,n[Ln]=null})}),!0):!1},Tt.unstable_batchedUpdates=pc,Tt.unstable_renderSubtreeIntoContainer=function(n,o,i,u){if(!wa(i))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return ba(n,o,i,!1,u)},Tt.version="18.3.1-next-f1338f8080-20240426",Tt}var Ym;function vv(){if(Ym)return kc.exports;Ym=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),kc.exports=oC(),kc.exports}var bl=vv();const xv=yv(bl);function Re(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),r===!1||!a.defaultPrevented)return t?.(a)}}function Gm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ef(...e){return t=>{let r=!1;const s=e.map(a=>{const l=Gm(a,t);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let a=0;a<s.length;a++){const l=s[a];typeof l=="function"?l():Gm(e[a],null)}}}}function Ue(...e){return w.useCallback(ef(...e),e)}function sC(e,t){const r=w.createContext(t),s=l=>{const{children:c,...d}=l,h=w.useMemo(()=>d,Object.values(d));return x.jsx(r.Provider,{value:h,children:c})};s.displayName=e+"Provider";function a(l){const c=w.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[s,a]}function Zr(e,t=[]){let r=[];function s(l,c){const d=w.createContext(c),h=r.length;r=[...r,c];const p=y=>{const{scope:b,children:v,...P}=y,S=b?.[e]?.[h]||d,E=w.useMemo(()=>P,Object.values(P));return x.jsx(S.Provider,{value:E,children:v})};p.displayName=l+"Provider";function m(y,b){const v=b?.[e]?.[h]||d,P=w.useContext(v);if(P)return P;if(c!==void 0)return c;throw new Error(`\`${y}\` must be used within \`${l}\``)}return[p,m]}const a=()=>{const l=r.map(c=>w.createContext(c));return function(d){const h=d?.[e]||l;return w.useMemo(()=>({[`__scope${e}`]:{...d,[e]:h}}),[d,h])}};return a.scopeName=e,[s,iC(a,...t)]}function iC(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const s=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(l){const c=s.reduce((d,{useScope:h,scopeName:p})=>{const y=h(l)[`__scope${p}`];return{...d,...y}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}function Ja(e){const t=aC(e),r=w.forwardRef((s,a)=>{const{children:l,...c}=s,d=w.Children.toArray(l),h=d.find(uC);if(h){const p=h.props.children,m=d.map(y=>y===h?w.Children.count(p)>1?w.Children.only(null):w.isValidElement(p)?p.props.children:null:y);return x.jsx(t,{...c,ref:a,children:w.isValidElement(p)?w.cloneElement(p,void 0,m):null})}return x.jsx(t,{...c,ref:a,children:l})});return r.displayName=`${e}.Slot`,r}function aC(e){const t=w.forwardRef((r,s)=>{const{children:a,...l}=r;if(w.isValidElement(a)){const c=dC(a),d=cC(l,a.props);return a.type!==w.Fragment&&(d.ref=s?ef(s,c):c),w.cloneElement(a,d)}return w.Children.count(a)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wv=Symbol("radix.slottable");function lC(e){const t=({children:r})=>x.jsx(x.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=wv,t}function uC(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wv}function cC(e,t){const r={...t};for(const s in t){const a=e[s],l=t[s];/^on[A-Z]/.test(s)?a&&l?r[s]=(...d)=>{const h=l(...d);return a(...d),h}:a&&(r[s]=a):s==="style"?r[s]={...a,...l}:s==="className"&&(r[s]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}function dC(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function fC(e){const t=e+"CollectionProvider",[r,s]=Zr(t),[a,l]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=S=>{const{scope:E,children:T}=S,R=J.useRef(null),N=J.useRef(new Map).current;return x.jsx(a,{scope:E,itemMap:N,collectionRef:R,children:T})};c.displayName=t;const d=e+"CollectionSlot",h=Ja(d),p=J.forwardRef((S,E)=>{const{scope:T,children:R}=S,N=l(d,T),A=Ue(E,N.collectionRef);return x.jsx(h,{ref:A,children:R})});p.displayName=d;const m=e+"CollectionItemSlot",y="data-radix-collection-item",b=Ja(m),v=J.forwardRef((S,E)=>{const{scope:T,children:R,...N}=S,A=J.useRef(null),O=Ue(E,A),F=l(m,T);return J.useEffect(()=>(F.itemMap.set(A,{ref:A,...N}),()=>{F.itemMap.delete(A)})),x.jsx(b,{[y]:"",ref:O,children:R})});v.displayName=m;function P(S){const E=l(e+"CollectionConsumer",S);return J.useCallback(()=>{const R=E.collectionRef.current;if(!R)return[];const N=Array.from(R.querySelectorAll(`[${y}]`));return Array.from(E.itemMap.values()).sort((F,$)=>N.indexOf(F.ref.current)-N.indexOf($.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:c,Slot:p,ItemSlot:v},P,s]}var hC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],je=hC.reduce((e,t)=>{const r=Ja(`Primitive.${t}`),s=w.forwardRef((a,l)=>{const{asChild:c,...d}=a,h=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(h,{...d,ref:l})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function bv(e,t){e&&bl.flushSync(()=>e.dispatchEvent(t))}function at(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...r)=>t.current?.(...r),[])}function pC(e,t=globalThis?.document){const r=at(e);w.useEffect(()=>{const s=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[r,t])}var mC="DismissableLayer",ld="dismissableLayer.update",gC="dismissableLayer.pointerDownOutside",yC="dismissableLayer.focusOutside",Xm,Sv=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Sl=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:c,onDismiss:d,...h}=e,p=w.useContext(Sv),[m,y]=w.useState(null),b=m?.ownerDocument??globalThis?.document,[,v]=w.useState({}),P=Ue(t,$=>y($)),S=Array.from(p.layers),[E]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),T=S.indexOf(E),R=m?S.indexOf(m):-1,N=p.layersWithOutsidePointerEventsDisabled.size>0,A=R>=T,O=xC($=>{const B=$.target,H=[...p.branches].some(W=>W.contains(B));!A||H||(a?.($),c?.($),$.defaultPrevented||d?.())},b),F=wC($=>{const B=$.target;[...p.branches].some(W=>W.contains(B))||(l?.($),c?.($),$.defaultPrevented||d?.())},b);return pC($=>{R===p.layers.size-1&&(s?.($),!$.defaultPrevented&&d&&($.preventDefault(),d()))},b),w.useEffect(()=>{if(m)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Xm=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),qm(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Xm)}},[m,b,r,p]),w.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),qm())},[m,p]),w.useEffect(()=>{const $=()=>v({});return document.addEventListener(ld,$),()=>document.removeEventListener(ld,$)},[]),x.jsx(je.div,{...h,ref:P,style:{pointerEvents:N?A?"auto":"none":void 0,...e.style},onFocusCapture:Re(e.onFocusCapture,F.onFocusCapture),onBlurCapture:Re(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:Re(e.onPointerDownCapture,O.onPointerDownCapture)})});Sl.displayName=mC;var vC="DismissableLayerBranch",Cv=w.forwardRef((e,t)=>{const r=w.useContext(Sv),s=w.useRef(null),a=Ue(t,s);return w.useEffect(()=>{const l=s.current;if(l)return r.branches.add(l),()=>{r.branches.delete(l)}},[r.branches]),x.jsx(je.div,{...e,ref:a})});Cv.displayName=vC;function xC(e,t=globalThis?.document){const r=at(e),s=w.useRef(!1),a=w.useRef(()=>{});return w.useEffect(()=>{const l=d=>{if(d.target&&!s.current){let h=function(){Ev(gC,r,p,{discrete:!0})};const p={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=h,t.addEventListener("click",a.current,{once:!0})):h()}else t.removeEventListener("click",a.current);s.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",l),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>s.current=!0}}function wC(e,t=globalThis?.document){const r=at(e),s=w.useRef(!1);return w.useEffect(()=>{const a=l=>{l.target&&!s.current&&Ev(yC,r,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function qm(){const e=new CustomEvent(ld);document.dispatchEvent(e)}function Ev(e,t,r,{discrete:s}){const a=r.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),s?bv(a,l):a.dispatchEvent(l)}var bC=Sl,SC=Cv,Nn=globalThis?.document?w.useLayoutEffect:()=>{},CC="Portal",tf=w.forwardRef((e,t)=>{const{container:r,...s}=e,[a,l]=w.useState(!1);Nn(()=>l(!0),[]);const c=r||a&&globalThis?.document?.body;return c?xv.createPortal(x.jsx(je.div,{...s,ref:t}),c):null});tf.displayName=CC;function EC(e,t){return w.useReducer((r,s)=>t[r][s]??r,e)}var jn=e=>{const{present:t,children:r}=e,s=PC(t),a=typeof r=="function"?r({present:s.isPresent}):w.Children.only(r),l=Ue(s.ref,TC(a));return typeof r=="function"||s.isPresent?w.cloneElement(a,{ref:l}):null};jn.displayName="Presence";function PC(e){const[t,r]=w.useState(),s=w.useRef(null),a=w.useRef(e),l=w.useRef("none"),c=e?"mounted":"unmounted",[d,h]=EC(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const p=Ca(s.current);l.current=d==="mounted"?p:"none"},[d]),Nn(()=>{const p=s.current,m=a.current;if(m!==e){const b=l.current,v=Ca(p);e?h("MOUNT"):v==="none"||p?.display==="none"?h("UNMOUNT"):h(m&&b!==v?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,h]),Nn(()=>{if(t){let p;const m=t.ownerDocument.defaultView??window,y=v=>{const S=Ca(s.current).includes(CSS.escape(v.animationName));if(v.target===t&&S&&(h("ANIMATION_END"),!a.current)){const E=t.style.animationFillMode;t.style.animationFillMode="forwards",p=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=E)})}},b=v=>{v.target===t&&(l.current=Ca(s.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",y),t.addEventListener("animationend",y),()=>{m.clearTimeout(p),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",y),t.removeEventListener("animationend",y)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:w.useCallback(p=>{s.current=p?getComputedStyle(p):null,r(p)},[])}}function Ca(e){return e?.animationName||"none"}function TC(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var RC=wl[" useInsertionEffect ".trim().toString()]||Nn;function nf({prop:e,defaultProp:t,onChange:r=()=>{},caller:s}){const[a,l,c]=kC({defaultProp:t,onChange:r}),d=e!==void 0,h=d?e:a;{const m=w.useRef(e!==void 0);w.useEffect(()=>{const y=m.current;y!==d&&console.warn(`${s} is changing from ${y?"controlled":"uncontrolled"} to ${d?"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.`),m.current=d},[d,s])}const p=w.useCallback(m=>{if(d){const y=NC(m)?m(e):m;y!==e&&c.current?.(y)}else l(m)},[d,e,l,c]);return[h,p]}function kC({defaultProp:e,onChange:t}){const[r,s]=w.useState(e),a=w.useRef(r),l=w.useRef(t);return RC(()=>{l.current=t},[t]),w.useEffect(()=>{a.current!==r&&(l.current?.(r),a.current=r)},[r,a]),[r,s,l]}function NC(e){return typeof e=="function"}var AC=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"}),jC="VisuallyHidden",Cl=w.forwardRef((e,t)=>x.jsx(je.span,{...e,ref:t,style:{...AC,...e.style}}));Cl.displayName=jC;var MC=Cl,rf="ToastProvider",[of,DC,OC]=fC("Toast"),[Pv]=Zr("Toast",[OC]),[LC,El]=Pv(rf),Tv=e=>{const{__scopeToast:t,label:r="Notification",duration:s=5e3,swipeDirection:a="right",swipeThreshold:l=50,children:c}=e,[d,h]=w.useState(null),[p,m]=w.useState(0),y=w.useRef(!1),b=w.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${rf}\`. Expected non-empty \`string\`.`),x.jsx(of.Provider,{scope:t,children:x.jsx(LC,{scope:t,label:r,duration:s,swipeDirection:a,swipeThreshold:l,toastCount:p,viewport:d,onViewportChange:h,onToastAdd:w.useCallback(()=>m(v=>v+1),[]),onToastRemove:w.useCallback(()=>m(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:b,children:c})})};Tv.displayName=rf;var Rv="ToastViewport",_C=["F8"],ud="toast.viewportPause",cd="toast.viewportResume",kv=w.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:s=_C,label:a="Notifications ({hotkey})",...l}=e,c=El(Rv,r),d=DC(r),h=w.useRef(null),p=w.useRef(null),m=w.useRef(null),y=w.useRef(null),b=Ue(t,y,c.onViewportChange),v=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=c.toastCount>0;w.useEffect(()=>{const E=T=>{s.length!==0&&s.every(N=>T[N]||T.code===N)&&y.current?.focus()};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[s]),w.useEffect(()=>{const E=h.current,T=y.current;if(P&&E&&T){const R=()=>{if(!c.isClosePausedRef.current){const F=new CustomEvent(ud);T.dispatchEvent(F),c.isClosePausedRef.current=!0}},N=()=>{if(c.isClosePausedRef.current){const F=new CustomEvent(cd);T.dispatchEvent(F),c.isClosePausedRef.current=!1}},A=F=>{!E.contains(F.relatedTarget)&&N()},O=()=>{E.contains(document.activeElement)||N()};return E.addEventListener("focusin",R),E.addEventListener("focusout",A),E.addEventListener("pointermove",R),E.addEventListener("pointerleave",O),window.addEventListener("blur",R),window.addEventListener("focus",N),()=>{E.removeEventListener("focusin",R),E.removeEventListener("focusout",A),E.removeEventListener("pointermove",R),E.removeEventListener("pointerleave",O),window.removeEventListener("blur",R),window.removeEventListener("focus",N)}}},[P,c.isClosePausedRef]);const S=w.useCallback(({tabbingDirection:E})=>{const R=d().map(N=>{const A=N.ref.current,O=[A,...GC(A)];return E==="forwards"?O:O.reverse()});return(E==="forwards"?R.reverse():R).flat()},[d]);return w.useEffect(()=>{const E=y.current;if(E){const T=R=>{const N=R.altKey||R.ctrlKey||R.metaKey;if(R.key==="Tab"&&!N){const O=document.activeElement,F=R.shiftKey;if(R.target===E&&F){p.current?.focus();return}const H=S({tabbingDirection:F?"backwards":"forwards"}),W=H.findIndex(ee=>ee===O);jc(H.slice(W+1))?R.preventDefault():F?p.current?.focus():m.current?.focus()}};return E.addEventListener("keydown",T),()=>E.removeEventListener("keydown",T)}},[d,S]),x.jsxs(SC,{ref:h,role:"region","aria-label":a.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:P?void 0:"none"},children:[P&&x.jsx(dd,{ref:p,onFocusFromOutsideViewport:()=>{const E=S({tabbingDirection:"forwards"});jc(E)}}),x.jsx(of.Slot,{scope:r,children:x.jsx(je.ol,{tabIndex:-1,...l,ref:b})}),P&&x.jsx(dd,{ref:m,onFocusFromOutsideViewport:()=>{const E=S({tabbingDirection:"backwards"});jc(E)}})]})});kv.displayName=Rv;var Nv="ToastFocusProxy",dd=w.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:s,...a}=e,l=El(Nv,r);return x.jsx(Cl,{tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:c=>{const d=c.relatedTarget;!l.viewport?.contains(d)&&s()}})});dd.displayName=Nv;var ni="Toast",IC="toast.swipeStart",FC="toast.swipeMove",VC="toast.swipeCancel",zC="toast.swipeEnd",Av=w.forwardRef((e,t)=>{const{forceMount:r,open:s,defaultOpen:a,onOpenChange:l,...c}=e,[d,h]=nf({prop:s,defaultProp:a??!0,onChange:l,caller:ni});return x.jsx(jn,{present:r||d,children:x.jsx($C,{open:d,...c,ref:t,onClose:()=>h(!1),onPause:at(e.onPause),onResume:at(e.onResume),onSwipeStart:Re(e.onSwipeStart,p=>{p.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Re(e.onSwipeMove,p=>{const{x:m,y}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","move"),p.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:Re(e.onSwipeCancel,p=>{p.currentTarget.setAttribute("data-swipe","cancel"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Re(e.onSwipeEnd,p=>{const{x:m,y}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","end"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),h(!1)})})})});Av.displayName=ni;var[BC,UC]=Pv(ni,{onClose(){}}),$C=w.forwardRef((e,t)=>{const{__scopeToast:r,type:s="foreground",duration:a,open:l,onClose:c,onEscapeKeyDown:d,onPause:h,onResume:p,onSwipeStart:m,onSwipeMove:y,onSwipeCancel:b,onSwipeEnd:v,...P}=e,S=El(ni,r),[E,T]=w.useState(null),R=Ue(t,q=>T(q)),N=w.useRef(null),A=w.useRef(null),O=a||S.duration,F=w.useRef(0),$=w.useRef(O),B=w.useRef(0),{onToastAdd:H,onToastRemove:W}=S,ee=at(()=>{E?.contains(document.activeElement)&&S.viewport?.focus(),c()}),X=w.useCallback(q=>{!q||q===1/0||(window.clearTimeout(B.current),F.current=new Date().getTime(),B.current=window.setTimeout(ee,q))},[ee]);w.useEffect(()=>{const q=S.viewport;if(q){const he=()=>{X($.current),p?.()},re=()=>{const le=new Date().getTime()-F.current;$.current=$.current-le,window.clearTimeout(B.current),h?.()};return q.addEventListener(ud,re),q.addEventListener(cd,he),()=>{q.removeEventListener(ud,re),q.removeEventListener(cd,he)}}},[S.viewport,O,h,p,X]),w.useEffect(()=>{l&&!S.isClosePausedRef.current&&X(O)},[l,O,S.isClosePausedRef,X]),w.useEffect(()=>(H(),()=>W()),[H,W]);const de=w.useMemo(()=>E?Iv(E):null,[E]);return S.viewport?x.jsxs(x.Fragment,{children:[de&&x.jsx(WC,{__scopeToast:r,role:"status","aria-live":s==="foreground"?"assertive":"polite",children:de}),x.jsx(BC,{scope:r,onClose:ee,children:bl.createPortal(x.jsx(of.ItemSlot,{scope:r,children:x.jsx(bC,{asChild:!0,onEscapeKeyDown:Re(d,()=>{S.isFocusedToastEscapeKeyDownRef.current||ee(),S.isFocusedToastEscapeKeyDownRef.current=!1}),children:x.jsx(je.li,{tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":S.swipeDirection,...P,ref:R,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Re(e.onKeyDown,q=>{q.key==="Escape"&&(d?.(q.nativeEvent),q.nativeEvent.defaultPrevented||(S.isFocusedToastEscapeKeyDownRef.current=!0,ee()))}),onPointerDown:Re(e.onPointerDown,q=>{q.button===0&&(N.current={x:q.clientX,y:q.clientY})}),onPointerMove:Re(e.onPointerMove,q=>{if(!N.current)return;const he=q.clientX-N.current.x,re=q.clientY-N.current.y,le=!!A.current,V=["left","right"].includes(S.swipeDirection),U=["left","up"].includes(S.swipeDirection)?Math.min:Math.max,K=V?U(0,he):0,M=V?0:U(0,re),z=q.pointerType==="touch"?10:2,te={x:K,y:M},oe={originalEvent:q,delta:te};le?(A.current=te,Ea(FC,y,oe,{discrete:!1})):Zm(te,S.swipeDirection,z)?(A.current=te,Ea(IC,m,oe,{discrete:!1}),q.target.setPointerCapture(q.pointerId)):(Math.abs(he)>z||Math.abs(re)>z)&&(N.current=null)}),onPointerUp:Re(e.onPointerUp,q=>{const he=A.current,re=q.target;if(re.hasPointerCapture(q.pointerId)&&re.releasePointerCapture(q.pointerId),A.current=null,N.current=null,he){const le=q.currentTarget,V={originalEvent:q,delta:he};Zm(he,S.swipeDirection,S.swipeThreshold)?Ea(zC,v,V,{discrete:!0}):Ea(VC,b,V,{discrete:!0}),le.addEventListener("click",U=>U.preventDefault(),{once:!0})}})})})}),S.viewport)})]}):null}),WC=e=>{const{__scopeToast:t,children:r,...s}=e,a=El(ni,t),[l,c]=w.useState(!1),[d,h]=w.useState(!1);return QC(()=>c(!0)),w.useEffect(()=>{const p=window.setTimeout(()=>h(!0),1e3);return()=>window.clearTimeout(p)},[]),d?null:x.jsx(tf,{asChild:!0,children:x.jsx(Cl,{...s,children:l&&x.jsxs(x.Fragment,{children:[a.label," ",r]})})})},HC="ToastTitle",jv=w.forwardRef((e,t)=>{const{__scopeToast:r,...s}=e;return x.jsx(je.div,{...s,ref:t})});jv.displayName=HC;var KC="ToastDescription",Mv=w.forwardRef((e,t)=>{const{__scopeToast:r,...s}=e;return x.jsx(je.div,{...s,ref:t})});Mv.displayName=KC;var Dv="ToastAction",Ov=w.forwardRef((e,t)=>{const{altText:r,...s}=e;return r.trim()?x.jsx(_v,{altText:r,asChild:!0,children:x.jsx(sf,{...s,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Dv}\`. Expected non-empty \`string\`.`),null)});Ov.displayName=Dv;var Lv="ToastClose",sf=w.forwardRef((e,t)=>{const{__scopeToast:r,...s}=e,a=UC(Lv,r);return x.jsx(_v,{asChild:!0,children:x.jsx(je.button,{type:"button",...s,ref:t,onClick:Re(e.onClick,a.onClose)})})});sf.displayName=Lv;var _v=w.forwardRef((e,t)=>{const{__scopeToast:r,altText:s,...a}=e;return x.jsx(je.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":s||void 0,...a,ref:t})});function Iv(e){const t=[];return Array.from(e.childNodes).forEach(s=>{if(s.nodeType===s.TEXT_NODE&&s.textContent&&t.push(s.textContent),YC(s)){const a=s.ariaHidden||s.hidden||s.style.display==="none",l=s.dataset.radixToastAnnounceExclude==="";if(!a)if(l){const c=s.dataset.radixToastAnnounceAlt;c&&t.push(c)}else t.push(...Iv(s))}}),t}function Ea(e,t,r,{discrete:s}){const a=r.originalEvent.currentTarget,l=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),s?bv(a,l):a.dispatchEvent(l)}var Zm=(e,t,r=0)=>{const s=Math.abs(e.x),a=Math.abs(e.y),l=s>a;return t==="left"||t==="right"?l&&s>r:!l&&a>r};function QC(e=()=>{}){const t=at(e);Nn(()=>{let r=0,s=0;return r=window.requestAnimationFrame(()=>s=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(s)}},[t])}function YC(e){return e.nodeType===e.ELEMENT_NODE}function GC(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function jc(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var XC=Tv,Fv=kv,Vv=Av,zv=jv,Bv=Mv,Uv=Ov,$v=sf;function Wv(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Wv(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function Hv(){for(var e,t,r=0,s="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Wv(e))&&(s&&(s+=" "),s+=t);return s}const Jm=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,eg=Hv,Kv=(e,t)=>r=>{var s;if(t?.variants==null)return eg(e,r?.class,r?.className);const{variants:a,defaultVariants:l}=t,c=Object.keys(a).map(p=>{const m=r?.[p],y=l?.[p];if(m===null)return null;const b=Jm(m)||Jm(y);return a[p][b]}),d=r&&Object.entries(r).reduce((p,m)=>{let[y,b]=m;return b===void 0||(p[y]=b),p},{}),h=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((p,m)=>{let{class:y,className:b,...v}=m;return Object.entries(v).every(P=>{let[S,E]=P;return Array.isArray(E)?E.includes({...l,...d}[S]):{...l,...d}[S]===E})?[...p,y,b]:p},[]);return eg(e,c,h,r?.class,r?.className)};const qC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ZC=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,s)=>s?s.toUpperCase():r.toLowerCase()),tg=e=>{const t=ZC(e);return t.charAt(0).toUpperCase()+t.slice(1)},Qv=(...e)=>e.filter((t,r,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===r).join(" ").trim(),JC=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var eE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const tE=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:a="",children:l,iconNode:c,...d},h)=>w.createElement("svg",{ref:h,...eE,width:t,height:t,stroke:e,strokeWidth:s?Number(r)*24/Number(t):r,className:Qv("lucide",a),...!l&&!JC(d)&&{"aria-hidden":"true"},...d},[...c.map(([p,m])=>w.createElement(p,m)),...Array.isArray(l)?l:[l]]));const Fe=(e,t)=>{const r=w.forwardRef(({className:s,...a},l)=>w.createElement(tE,{ref:l,iconNode:t,className:Qv(`lucide-${qC(tg(e))}`,`lucide-${e}`,s),...a}));return r.displayName=tg(e),r};const nE=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],fd=Fe("book-open",nE);const rE=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],oE=Fe("chevron-down",rE);const sE=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],iE=Fe("chevron-left",sE);const aE=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],lE=Fe("chevron-right",aE);const uE=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],cE=Fe("chevrons-left",uE);const dE=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],fE=Fe("chevrons-right",dE);const hE=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],pE=Fe("columns-2",hE);const mE=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],af=Fe("database",mE);const gE=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],yE=Fe("download",gE);const vE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Yv=Fe("info",vE);const xE=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Gv=Fe("key",xE);const wE=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],bE=Fe("layout-grid",wE);const SE=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],CE=Fe("menu",SE);const EE=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]],PE=Fe("panel-right",EE);const TE=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],RE=Fe("panels-top-left",TE);const kE=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],NE=Fe("rotate-ccw",kE);const AE=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Xv=Fe("shield-check",AE);const jE=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],el=Fe("table-2",jE);const ME=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],DE=Fe("table",ME);const OE=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],qv=Fe("terminal",OE);const LE=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],_E=Fe("type",LE);const IE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],lf=Fe("x",IE);const FE=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],VE=Fe("zoom-in",FE);const zE=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],BE=Fe("zoom-out",zE),uf="-",UE=e=>{const t=WE(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:c=>{const d=c.split(uf);return d[0]===""&&d.length!==1&&d.shift(),Zv(d,t)||$E(c)},getConflictingClassGroupIds:(c,d)=>{const h=r[c]||[];return d&&s[c]?[...h,...s[c]]:h}}},Zv=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],s=t.nextPart.get(r),a=s?Zv(e.slice(1),s):void 0;if(a)return a;if(t.validators.length===0)return;const l=e.join(uf);return t.validators.find(({validator:c})=>c(l))?.classGroupId},ng=/^\[(.+)\]$/,$E=e=>{if(ng.test(e)){const t=ng.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},WE=e=>{const{theme:t,prefix:r}=e,s={nextPart:new Map,validators:[]};return KE(Object.entries(e.classGroups),r).forEach(([l,c])=>{hd(c,s,l,t)}),s},hd=(e,t,r,s)=>{e.forEach(a=>{if(typeof a=="string"){const l=a===""?t:rg(t,a);l.classGroupId=r;return}if(typeof a=="function"){if(HE(a)){hd(a(s),t,r,s);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([l,c])=>{hd(c,rg(t,l),r,s)})})},rg=(e,t)=>{let r=e;return t.split(uf).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},HE=e=>e.isThemeGetter,KE=(e,t)=>t?e.map(([r,s])=>{const a=s.map(l=>typeof l=="string"?t+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([c,d])=>[t+c,d])):l);return[r,a]}):e,QE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,s=new Map;const a=(l,c)=>{r.set(l,c),t++,t>e&&(t=0,s=r,r=new Map)};return{get(l){let c=r.get(l);if(c!==void 0)return c;if((c=s.get(l))!==void 0)return a(l,c),c},set(l,c){r.has(l)?r.set(l,c):a(l,c)}}},Jv="!",YE=e=>{const{separator:t,experimentalParseClassName:r}=e,s=t.length===1,a=t[0],l=t.length,c=d=>{const h=[];let p=0,m=0,y;for(let E=0;E<d.length;E++){let T=d[E];if(p===0){if(T===a&&(s||d.slice(E,E+l)===t)){h.push(d.slice(m,E)),m=E+l;continue}if(T==="/"){y=E;continue}}T==="["?p++:T==="]"&&p--}const b=h.length===0?d:d.substring(m),v=b.startsWith(Jv),P=v?b.substring(1):b,S=y&&y>m?y-m:void 0;return{modifiers:h,hasImportantModifier:v,baseClassName:P,maybePostfixModifierPosition:S}};return r?d=>r({className:d,parseClassName:c}):c},GE=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(s=>{s[0]==="["?(t.push(...r.sort(),s),r=[]):r.push(s)}),t.push(...r.sort()),t},XE=e=>({cache:QE(e.cacheSize),parseClassName:YE(e),...UE(e)}),qE=/\s+/,ZE=(e,t)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:a}=t,l=[],c=e.trim().split(qE);let d="";for(let h=c.length-1;h>=0;h-=1){const p=c[h],{modifiers:m,hasImportantModifier:y,baseClassName:b,maybePostfixModifierPosition:v}=r(p);let P=!!v,S=s(P?b.substring(0,v):b);if(!S){if(!P){d=p+(d.length>0?" "+d:d);continue}if(S=s(b),!S){d=p+(d.length>0?" "+d:d);continue}P=!1}const E=GE(m).join(":"),T=y?E+Jv:E,R=T+S;if(l.includes(R))continue;l.push(R);const N=a(S,P);for(let A=0;A<N.length;++A){const O=N[A];l.push(T+O)}d=p+(d.length>0?" "+d:d)}return d};function JE(){let e=0,t,r,s="";for(;e<arguments.length;)(t=arguments[e++])&&(r=e0(t))&&(s&&(s+=" "),s+=r);return s}const e0=e=>{if(typeof e=="string")return e;let t,r="";for(let s=0;s<e.length;s++)e[s]&&(t=e0(e[s]))&&(r&&(r+=" "),r+=t);return r};function eP(e,...t){let r,s,a,l=c;function c(h){const p=t.reduce((m,y)=>y(m),e());return r=XE(p),s=r.cache.get,a=r.cache.set,l=d,d(h)}function d(h){const p=s(h);if(p)return p;const m=ZE(h,r);return a(h,m),m}return function(){return l(JE.apply(null,arguments))}}const _e=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},t0=/^\[(?:([a-z-]+):)?(.+)\]$/i,tP=/^\d+\/\d+$/,nP=new Set(["px","full","screen"]),rP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oP=/\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$/,sP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,iP=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,aP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$n=e=>Io(e)||nP.has(e)||tP.test(e),gr=e=>Qo(e,"length",mP),Io=e=>!!e&&!Number.isNaN(Number(e)),Mc=e=>Qo(e,"number",Io),zs=e=>!!e&&Number.isInteger(Number(e)),lP=e=>e.endsWith("%")&&Io(e.slice(0,-1)),be=e=>t0.test(e),yr=e=>rP.test(e),uP=new Set(["length","size","percentage"]),cP=e=>Qo(e,uP,n0),dP=e=>Qo(e,"position",n0),fP=new Set(["image","url"]),hP=e=>Qo(e,fP,yP),pP=e=>Qo(e,"",gP),Bs=()=>!0,Qo=(e,t,r)=>{const s=t0.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):r(s[2]):!1},mP=e=>oP.test(e)&&!sP.test(e),n0=()=>!1,gP=e=>iP.test(e),yP=e=>aP.test(e),vP=()=>{const e=_e("colors"),t=_e("spacing"),r=_e("blur"),s=_e("brightness"),a=_e("borderColor"),l=_e("borderRadius"),c=_e("borderSpacing"),d=_e("borderWidth"),h=_e("contrast"),p=_e("grayscale"),m=_e("hueRotate"),y=_e("invert"),b=_e("gap"),v=_e("gradientColorStops"),P=_e("gradientColorStopPositions"),S=_e("inset"),E=_e("margin"),T=_e("opacity"),R=_e("padding"),N=_e("saturate"),A=_e("scale"),O=_e("sepia"),F=_e("skew"),$=_e("space"),B=_e("translate"),H=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],ee=()=>["auto",be,t],X=()=>[be,t],de=()=>["",$n,gr],q=()=>["auto",Io,be],he=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],re=()=>["solid","dashed","dotted","double","none"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",be],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[Io,be];return{cacheSize:500,separator:":",theme:{colors:[Bs],spacing:[$n,gr],blur:["none","",yr,be],brightness:M(),borderColor:[e],borderRadius:["none","","full",yr,be],borderSpacing:X(),borderWidth:de(),contrast:M(),grayscale:U(),hueRotate:M(),invert:U(),gap:X(),gradientColorStops:[e],gradientColorStopPositions:[lP,gr],inset:ee(),margin:ee(),opacity:M(),padding:X(),saturate:M(),scale:M(),sepia:U(),skew:M(),space:X(),translate:X()},classGroups:{aspect:[{aspect:["auto","square","video",be]}],container:["container"],columns:[{columns:[yr]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...he(),be]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",zs,be]}],basis:[{basis:ee()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",be]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",zs,be]}],"grid-cols":[{"grid-cols":[Bs]}],"col-start-end":[{col:["auto",{span:["full",zs,be]},be]}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":[Bs]}],"row-start-end":[{row:["auto",{span:[zs,be]},be]}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",be]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",be]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...V()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...V(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...V(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[R]}],px:[{px:[R]}],py:[{py:[R]}],ps:[{ps:[R]}],pe:[{pe:[R]}],pt:[{pt:[R]}],pr:[{pr:[R]}],pb:[{pb:[R]}],pl:[{pl:[R]}],m:[{m:[E]}],mx:[{mx:[E]}],my:[{my:[E]}],ms:[{ms:[E]}],me:[{me:[E]}],mt:[{mt:[E]}],mr:[{mr:[E]}],mb:[{mb:[E]}],ml:[{ml:[E]}],"space-x":[{"space-x":[$]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[$]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",be,t]}],"min-w":[{"min-w":[be,t,"min","max","fit"]}],"max-w":[{"max-w":[be,t,"none","full","min","max","fit","prose",{screen:[yr]},yr]}],h:[{h:[be,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[be,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[be,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[be,t,"auto","min","max","fit"]}],"font-size":[{text:["base",yr,gr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Mc]}],"font-family":[{font:[Bs]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",be]}],"line-clamp":[{"line-clamp":["none",Io,Mc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$n,be]}],"list-image":[{"list-image":["none",be]}],"list-style-type":[{list:["none","disc","decimal",be]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$n,gr]}],"underline-offset":[{"underline-offset":["auto",$n,be]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:X()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...he(),dP]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",cP]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},hP]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[P]}],"gradient-via-pos":[{via:[P]}],"gradient-to-pos":[{to:[P]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...re(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:re()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...re()]}],"outline-offset":[{"outline-offset":[$n,be]}],"outline-w":[{outline:[$n,gr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[$n,gr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",yr,pP]}],"shadow-color":[{shadow:[Bs]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...le(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":le()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[s]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",yr,be]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[y]}],saturate:[{saturate:[N]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",be]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",be]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",be]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[zs,be]}],"translate-x":[{"translate-x":[B]}],"translate-y":[{"translate-y":[B]}],"skew-x":[{"skew-x":[F]}],"skew-y":[{"skew-y":[F]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",be]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",be]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":X()}],"scroll-mx":[{"scroll-mx":X()}],"scroll-my":[{"scroll-my":X()}],"scroll-ms":[{"scroll-ms":X()}],"scroll-me":[{"scroll-me":X()}],"scroll-mt":[{"scroll-mt":X()}],"scroll-mr":[{"scroll-mr":X()}],"scroll-mb":[{"scroll-mb":X()}],"scroll-ml":[{"scroll-ml":X()}],"scroll-p":[{"scroll-p":X()}],"scroll-px":[{"scroll-px":X()}],"scroll-py":[{"scroll-py":X()}],"scroll-ps":[{"scroll-ps":X()}],"scroll-pe":[{"scroll-pe":X()}],"scroll-pt":[{"scroll-pt":X()}],"scroll-pr":[{"scroll-pr":X()}],"scroll-pb":[{"scroll-pb":X()}],"scroll-pl":[{"scroll-pl":X()}],"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",be]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[$n,gr,Mc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},xP=eP(vP);function xe(...e){return xP(Hv(e))}const wP=XC,r0=w.forwardRef(({className:e,...t},r)=>x.jsx(Fv,{ref:r,className:xe("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));r0.displayName=Fv.displayName;const bP=Kv("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),o0=w.forwardRef(({className:e,variant:t,...r},s)=>x.jsx(Vv,{ref:s,className:xe(bP({variant:t}),e),...r}));o0.displayName=Vv.displayName;const SP=w.forwardRef(({className:e,...t},r)=>x.jsx(Uv,{ref:r,className:xe("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));SP.displayName=Uv.displayName;const s0=w.forwardRef(({className:e,...t},r)=>x.jsx($v,{ref:r,className:xe("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:x.jsx(lf,{className:"h-4 w-4"})}));s0.displayName=$v.displayName;const i0=w.forwardRef(({className:e,...t},r)=>x.jsx(zv,{ref:r,className:xe("text-sm font-semibold",e),...t}));i0.displayName=zv.displayName;const a0=w.forwardRef(({className:e,...t},r)=>x.jsx(Bv,{ref:r,className:xe("text-sm opacity-90",e),...t}));a0.displayName=Bv.displayName;function CP(){const{toasts:e}=tC();return x.jsxs(wP,{children:[e.map(function({id:t,title:r,description:s,action:a,...l}){return x.jsxs(o0,{...l,children:[x.jsxs("div",{className:"grid gap-1",children:[r&&x.jsx(i0,{children:r}),s&&x.jsx(a0,{children:s})]}),a,x.jsx(s0,{})]},t)}),x.jsx(r0,{})]})}var Pa={},og;function EP(){if(og)return Pa;og=1;var e=vv();return Pa.createRoot=e.createRoot,Pa.hydrateRoot=e.hydrateRoot,Pa}var PP=EP(),TP=(e,t,r,s,a,l,c,d)=>{let h=document.documentElement,p=["light","dark"];function m(v){(Array.isArray(e)?e:[e]).forEach(P=>{let S=P==="class",E=S&&l?a.map(T=>l[T]||T):a;S?(h.classList.remove(...E),h.classList.add(l&&l[v]?l[v]:v)):h.setAttribute(P,v)}),y(v)}function y(v){d&&p.includes(v)&&(h.style.colorScheme=v)}function b(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)m(s);else try{let v=localStorage.getItem(t)||r,P=c&&v==="system"?b():v;m(P)}catch{}},RP=w.createContext(void 0),kP={setTheme:e=>{},themes:[]},NP=()=>{var e;return(e=w.useContext(RP))!=null?e:kP};w.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:s,enableColorScheme:a,defaultTheme:l,value:c,themes:d,nonce:h,scriptProps:p})=>{let m=JSON.stringify([r,t,l,e,d,c,s,a]).slice(1,-1);return w.createElement("script",{...p,suppressHydrationWarning:!0,nonce:typeof window>"u"?h:"",dangerouslySetInnerHTML:{__html:`(${TP.toString()})(${m})`}})});var AP=e=>{switch(e){case"success":return DP;case"info":return LP;case"warning":return OP;case"error":return _P;default:return null}},jP=Array(12).fill(0),MP=({visible:e,className:t})=>J.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},J.createElement("div",{className:"sonner-spinner"},jP.map((r,s)=>J.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),DP=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),OP=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),LP=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),_P=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),IP=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},J.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),J.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),FP=()=>{let[e,t]=J.useState(document.hidden);return J.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},pd=1,VP=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...s}=e,a=typeof e?.id=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:pd++,l=this.toasts.find(d=>d.id===a),c=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),l?this.toasts=this.toasts.map(d=>d.id===a?(this.publish({...d,...e,id:a,title:r}),{...d,...e,id:a,dismissible:c,title:r}):d):this.addToast({title:r,...s,dismissible:c,id:a}),a},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let s=e instanceof Promise?e:e(),a=r!==void 0,l,c=s.then(async h=>{if(l=["resolve",h],J.isValidElement(h))a=!1,this.create({id:r,type:"default",message:h});else if(BP(h)&&!h.ok){a=!1;let p=typeof t.error=="function"?await t.error(`HTTP error! status: ${h.status}`):t.error,m=typeof t.description=="function"?await t.description(`HTTP error! status: ${h.status}`):t.description;this.create({id:r,type:"error",message:p,description:m})}else if(t.success!==void 0){a=!1;let p=typeof t.success=="function"?await t.success(h):t.success,m=typeof t.description=="function"?await t.description(h):t.description;this.create({id:r,type:"success",message:p,description:m})}}).catch(async h=>{if(l=["reject",h],t.error!==void 0){a=!1;let p=typeof t.error=="function"?await t.error(h):t.error,m=typeof t.description=="function"?await t.description(h):t.description;this.create({id:r,type:"error",message:p,description:m})}}).finally(()=>{var h;a&&(this.dismiss(r),r=void 0),(h=t.finally)==null||h.call(t)}),d=()=>new Promise((h,p)=>c.then(()=>l[0]==="reject"?p(l[1]):h(l[1])).catch(p));return typeof r!="string"&&typeof r!="number"?{unwrap:d}:Object.assign(r,{unwrap:d})},this.custom=(e,t)=>{let r=t?.id||pd++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Rt=new VP,zP=(e,t)=>{let r=t?.id||pd++;return Rt.addToast({title:e,...t,id:r}),r},BP=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",UP=zP,$P=()=>Rt.toasts,WP=()=>Rt.getActiveToasts();Object.assign(UP,{success:Rt.success,info:Rt.info,warning:Rt.warning,error:Rt.error,custom:Rt.custom,message:Rt.message,promise:Rt.promise,dismiss:Rt.dismiss,loading:Rt.loading},{getHistory:$P,getToasts:WP});function HP(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",t==="top"&&r.firstChild?r.insertBefore(s,r.firstChild):r.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}HP(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
9
|
-
`);function Ta(e){return e.label!==void 0}var KP=3,QP="32px",YP="16px",sg=4e3,GP=356,XP=14,qP=20,ZP=200;function sn(...e){return e.filter(Boolean).join(" ")}function JP(e){let[t,r]=e.split("-"),s=[];return t&&s.push(t),r&&s.push(r),s}var eT=e=>{var t,r,s,a,l,c,d,h,p,m,y;let{invert:b,toast:v,unstyled:P,interacting:S,setHeights:E,visibleToasts:T,heights:R,index:N,toasts:A,expanded:O,removeToast:F,defaultRichColors:$,closeButton:B,style:H,cancelButtonStyle:W,actionButtonStyle:ee,className:X="",descriptionClassName:de="",duration:q,position:he,gap:re,loadingIcon:le,expandByDefault:V,classNames:U,icons:K,closeButtonAriaLabel:M="Close toast",pauseWhenPageIsHidden:z}=e,[te,oe]=J.useState(null),[ge,we]=J.useState(null),[fe,Ce]=J.useState(!1),[Pe,Qe]=J.useState(!1),[It,Yn]=J.useState(!1),[Ft,Jo]=J.useState(!1),[ui,es]=J.useState(!1),[ts,Jr]=J.useState(0),[ns,Gn]=J.useState(0),Vt=J.useRef(v.duration||q||sg),eo=J.useRef(null),hn=J.useRef(null),ci=N===0,di=N+1<=T,ht=v.type,pn=v.dismissible!==!1,to=v.className||"",fi=v.descriptionClassName||"",mn=J.useMemo(()=>R.findIndex(ve=>ve.toastId===v.id)||0,[R,v.id]),Rr=J.useMemo(()=>{var ve;return(ve=v.closeButton)!=null?ve:B},[v.closeButton,B]),hi=J.useMemo(()=>v.duration||q||sg,[v.duration,q]),no=J.useRef(0),On=J.useRef(0),pi=J.useRef(0),gn=J.useRef(null),[rs,os]=he.split("-"),ro=J.useMemo(()=>R.reduce((ve,ke,Ae)=>Ae>=mn?ve:ve+ke.height,0),[R,mn]),oo=FP(),Xn=v.invert||b,yn=ht==="loading";On.current=J.useMemo(()=>mn*re+ro,[mn,ro]),J.useEffect(()=>{Vt.current=hi},[hi]),J.useEffect(()=>{Ce(!0)},[]),J.useEffect(()=>{let ve=hn.current;if(ve){let ke=ve.getBoundingClientRect().height;return Gn(ke),E(Ae=>[{toastId:v.id,height:ke,position:v.position},...Ae]),()=>E(Ae=>Ae.filter(pt=>pt.toastId!==v.id))}},[E,v.id]),J.useLayoutEffect(()=>{if(!fe)return;let ve=hn.current,ke=ve.style.height;ve.style.height="auto";let Ae=ve.getBoundingClientRect().height;ve.style.height=ke,Gn(Ae),E(pt=>pt.find(xt=>xt.toastId===v.id)?pt.map(xt=>xt.toastId===v.id?{...xt,height:Ae}:xt):[{toastId:v.id,height:Ae,position:v.position},...pt])},[fe,v.title,v.description,E,v.id]);let Xt=J.useCallback(()=>{Qe(!0),Jr(On.current),E(ve=>ve.filter(ke=>ke.toastId!==v.id)),setTimeout(()=>{F(v)},ZP)},[v,F,E,On]);J.useEffect(()=>{if(v.promise&&ht==="loading"||v.duration===1/0||v.type==="loading")return;let ve;return O||S||z&&oo?(()=>{if(pi.current<no.current){let ke=new Date().getTime()-no.current;Vt.current=Vt.current-ke}pi.current=new Date().getTime()})():Vt.current!==1/0&&(no.current=new Date().getTime(),ve=setTimeout(()=>{var ke;(ke=v.onAutoClose)==null||ke.call(v,v),Xt()},Vt.current)),()=>clearTimeout(ve)},[O,S,v,ht,z,oo,Xt]),J.useEffect(()=>{v.delete&&Xt()},[Xt,v.delete]);function mi(){var ve,ke,Ae;return K!=null&&K.loading?J.createElement("div",{className:sn(U?.loader,(ve=v?.classNames)==null?void 0:ve.loader,"sonner-loader"),"data-visible":ht==="loading"},K.loading):le?J.createElement("div",{className:sn(U?.loader,(ke=v?.classNames)==null?void 0:ke.loader,"sonner-loader"),"data-visible":ht==="loading"},le):J.createElement(MP,{className:sn(U?.loader,(Ae=v?.classNames)==null?void 0:Ae.loader),visible:ht==="loading"})}return J.createElement("li",{tabIndex:0,ref:hn,className:sn(X,to,U?.toast,(t=v?.classNames)==null?void 0:t.toast,U?.default,U?.[ht],(r=v?.classNames)==null?void 0:r[ht]),"data-sonner-toast":"","data-rich-colors":(s=v.richColors)!=null?s:$,"data-styled":!(v.jsx||v.unstyled||P),"data-mounted":fe,"data-promise":!!v.promise,"data-swiped":ui,"data-removed":Pe,"data-visible":di,"data-y-position":rs,"data-x-position":os,"data-index":N,"data-front":ci,"data-swiping":It,"data-dismissible":pn,"data-type":ht,"data-invert":Xn,"data-swipe-out":Ft,"data-swipe-direction":ge,"data-expanded":!!(O||V&&fe),style:{"--index":N,"--toasts-before":N,"--z-index":A.length-N,"--offset":`${Pe?ts:On.current}px`,"--initial-height":V?"auto":`${ns}px`,...H,...v.style},onDragEnd:()=>{Yn(!1),oe(null),gn.current=null},onPointerDown:ve=>{yn||!pn||(eo.current=new Date,Jr(On.current),ve.target.setPointerCapture(ve.pointerId),ve.target.tagName!=="BUTTON"&&(Yn(!0),gn.current={x:ve.clientX,y:ve.clientY}))},onPointerUp:()=>{var ve,ke,Ae,pt;if(Ft||!pn)return;gn.current=null;let xt=Number(((ve=hn.current)==null?void 0:ve.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),wt=Number(((ke=hn.current)==null?void 0:ke.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),qt=new Date().getTime()-((Ae=eo.current)==null?void 0:Ae.getTime()),nt=te==="x"?xt:wt,vn=Math.abs(nt)/qt;if(Math.abs(nt)>=qP||vn>.11){Jr(On.current),(pt=v.onDismiss)==null||pt.call(v,v),we(te==="x"?xt>0?"right":"left":wt>0?"down":"up"),Xt(),Jo(!0),es(!1);return}Yn(!1),oe(null)},onPointerMove:ve=>{var ke,Ae,pt,xt;if(!gn.current||!pn||((ke=window.getSelection())==null?void 0:ke.toString().length)>0)return;let wt=ve.clientY-gn.current.y,qt=ve.clientX-gn.current.x,nt=(Ae=e.swipeDirections)!=null?Ae:JP(he);!te&&(Math.abs(qt)>1||Math.abs(wt)>1)&&oe(Math.abs(qt)>Math.abs(wt)?"x":"y");let vn={x:0,y:0};te==="y"?(nt.includes("top")||nt.includes("bottom"))&&(nt.includes("top")&&wt<0||nt.includes("bottom")&&wt>0)&&(vn.y=wt):te==="x"&&(nt.includes("left")||nt.includes("right"))&&(nt.includes("left")&&qt<0||nt.includes("right")&&qt>0)&&(vn.x=qt),(Math.abs(vn.x)>0||Math.abs(vn.y)>0)&&es(!0),(pt=hn.current)==null||pt.style.setProperty("--swipe-amount-x",`${vn.x}px`),(xt=hn.current)==null||xt.style.setProperty("--swipe-amount-y",`${vn.y}px`)}},Rr&&!v.jsx?J.createElement("button",{"aria-label":M,"data-disabled":yn,"data-close-button":!0,onClick:yn||!pn?()=>{}:()=>{var ve;Xt(),(ve=v.onDismiss)==null||ve.call(v,v)},className:sn(U?.closeButton,(a=v?.classNames)==null?void 0:a.closeButton)},(l=K?.close)!=null?l:IP):null,v.jsx||w.isValidElement(v.title)?v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title:J.createElement(J.Fragment,null,ht||v.icon||v.promise?J.createElement("div",{"data-icon":"",className:sn(U?.icon,(c=v?.classNames)==null?void 0:c.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||mi():null,v.type!=="loading"?v.icon||K?.[ht]||AP(ht):null):null,J.createElement("div",{"data-content":"",className:sn(U?.content,(d=v?.classNames)==null?void 0:d.content)},J.createElement("div",{"data-title":"",className:sn(U?.title,(h=v?.classNames)==null?void 0:h.title)},typeof v.title=="function"?v.title():v.title),v.description?J.createElement("div",{"data-description":"",className:sn(de,fi,U?.description,(p=v?.classNames)==null?void 0:p.description)},typeof v.description=="function"?v.description():v.description):null),w.isValidElement(v.cancel)?v.cancel:v.cancel&&Ta(v.cancel)?J.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||W,onClick:ve=>{var ke,Ae;Ta(v.cancel)&&pn&&((Ae=(ke=v.cancel).onClick)==null||Ae.call(ke,ve),Xt())},className:sn(U?.cancelButton,(m=v?.classNames)==null?void 0:m.cancelButton)},v.cancel.label):null,w.isValidElement(v.action)?v.action:v.action&&Ta(v.action)?J.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||ee,onClick:ve=>{var ke,Ae;Ta(v.action)&&((Ae=(ke=v.action).onClick)==null||Ae.call(ke,ve),!ve.defaultPrevented&&Xt())},className:sn(U?.actionButton,(y=v?.classNames)==null?void 0:y.actionButton)},v.action.label):null))};function ig(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function tT(e,t){let r={};return[e,t].forEach((s,a)=>{let l=a===1,c=l?"--mobile-offset":"--offset",d=l?YP:QP;function h(p){["top","right","bottom","left"].forEach(m=>{r[`${c}-${m}`]=typeof p=="number"?`${p}px`:p})}typeof s=="number"||typeof s=="string"?h(s):typeof s=="object"?["top","right","bottom","left"].forEach(p=>{s[p]===void 0?r[`${c}-${p}`]=d:r[`${c}-${p}`]=typeof s[p]=="number"?`${s[p]}px`:s[p]}):h(d)}),r}var nT=w.forwardRef(function(e,t){let{invert:r,position:s="bottom-right",hotkey:a=["altKey","KeyT"],expand:l,closeButton:c,className:d,offset:h,mobileOffset:p,theme:m="light",richColors:y,duration:b,style:v,visibleToasts:P=KP,toastOptions:S,dir:E=ig(),gap:T=XP,loadingIcon:R,icons:N,containerAriaLabel:A="Notifications",pauseWhenPageIsHidden:O}=e,[F,$]=J.useState([]),B=J.useMemo(()=>Array.from(new Set([s].concat(F.filter(z=>z.position).map(z=>z.position)))),[F,s]),[H,W]=J.useState([]),[ee,X]=J.useState(!1),[de,q]=J.useState(!1),[he,re]=J.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),le=J.useRef(null),V=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=J.useRef(null),K=J.useRef(!1),M=J.useCallback(z=>{$(te=>{var oe;return(oe=te.find(ge=>ge.id===z.id))!=null&&oe.delete||Rt.dismiss(z.id),te.filter(({id:ge})=>ge!==z.id)})},[]);return J.useEffect(()=>Rt.subscribe(z=>{if(z.dismiss){$(te=>te.map(oe=>oe.id===z.id?{...oe,delete:!0}:oe));return}setTimeout(()=>{xv.flushSync(()=>{$(te=>{let oe=te.findIndex(ge=>ge.id===z.id);return oe!==-1?[...te.slice(0,oe),{...te[oe],...z},...te.slice(oe+1)]:[z,...te]})})})}),[]),J.useEffect(()=>{if(m!=="system"){re(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?re("dark"):re("light")),typeof window>"u")return;let z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:te})=>{re(te?"dark":"light")})}catch{z.addListener(({matches:oe})=>{try{re(oe?"dark":"light")}catch(ge){console.error(ge)}})}},[m]),J.useEffect(()=>{F.length<=1&&X(!1)},[F]),J.useEffect(()=>{let z=te=>{var oe,ge;a.every(we=>te[we]||te.code===we)&&(X(!0),(oe=le.current)==null||oe.focus()),te.code==="Escape"&&(document.activeElement===le.current||(ge=le.current)!=null&&ge.contains(document.activeElement))&&X(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[a]),J.useEffect(()=>{if(le.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,K.current=!1)}},[le.current]),J.createElement("section",{ref:t,"aria-label":`${A} ${V}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},B.map((z,te)=>{var oe;let[ge,we]=z.split("-");return F.length?J.createElement("ol",{key:z,dir:E==="auto"?ig():E,tabIndex:-1,ref:le,className:d,"data-sonner-toaster":!0,"data-theme":he,"data-y-position":ge,"data-lifted":ee&&F.length>1&&!l,"data-x-position":we,style:{"--front-toast-height":`${((oe=H[0])==null?void 0:oe.height)||0}px`,"--width":`${GP}px`,"--gap":`${T}px`,...v,...tT(h,p)},onBlur:fe=>{K.current&&!fe.currentTarget.contains(fe.relatedTarget)&&(K.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:fe=>{fe.target instanceof HTMLElement&&fe.target.dataset.dismissible==="false"||K.current||(K.current=!0,U.current=fe.relatedTarget)},onMouseEnter:()=>X(!0),onMouseMove:()=>X(!0),onMouseLeave:()=>{de||X(!1)},onDragEnd:()=>X(!1),onPointerDown:fe=>{fe.target instanceof HTMLElement&&fe.target.dataset.dismissible==="false"||q(!0)},onPointerUp:()=>q(!1)},F.filter(fe=>!fe.position&&te===0||fe.position===z).map((fe,Ce)=>{var Pe,Qe;return J.createElement(eT,{key:fe.id,icons:N,index:Ce,toast:fe,defaultRichColors:y,duration:(Pe=S?.duration)!=null?Pe:b,className:S?.className,descriptionClassName:S?.descriptionClassName,invert:r,visibleToasts:P,closeButton:(Qe=S?.closeButton)!=null?Qe:c,interacting:de,position:z,style:S?.style,unstyled:S?.unstyled,classNames:S?.classNames,cancelButtonStyle:S?.cancelButtonStyle,actionButtonStyle:S?.actionButtonStyle,removeToast:M,toasts:F.filter(It=>It.position==fe.position),heights:H.filter(It=>It.position==fe.position),setHeights:W,expandByDefault:l,gap:T,loadingIcon:R,expanded:ee,pauseWhenPageIsHidden:O,swipeDirections:e.swipeDirections})})):null}))});const rT=({...e})=>{const{theme:t="system"}=NP();return x.jsx(nT,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var oT=wl[" useId ".trim().toString()]||(()=>{}),sT=0;function Dc(e){const[t,r]=w.useState(oT());return Nn(()=>{r(s=>s??String(sT++))},[e]),e||(t?`radix-${t}`:"")}const iT=["top","right","bottom","left"],Cr=Math.min,Ot=Math.max,tl=Math.round,Ra=Math.floor,Rn=e=>({x:e,y:e}),aT={left:"right",right:"left",bottom:"top",top:"bottom"};function md(e,t,r){return Ot(e,Cr(t,r))}function Wn(e,t){return typeof e=="function"?e(t):e}function Hn(e){return e.split("-")[0]}function Yo(e){return e.split("-")[1]}function cf(e){return e==="x"?"y":"x"}function df(e){return e==="y"?"height":"width"}function Tn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ff(e){return cf(Tn(e))}function lT(e,t,r){r===void 0&&(r=!1);const s=Yo(e),a=ff(e),l=df(a);let c=a==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=nl(c)),[c,nl(c)]}function uT(e){const t=nl(e);return[gd(e),t,gd(t)]}function gd(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ag=["left","right"],lg=["right","left"],cT=["top","bottom"],dT=["bottom","top"];function fT(e,t,r){switch(e){case"top":case"bottom":return r?t?lg:ag:t?ag:lg;case"left":case"right":return t?cT:dT;default:return[]}}function hT(e,t,r,s){const a=Yo(e);let l=fT(Hn(e),r==="start",s);return a&&(l=l.map(c=>c+"-"+a),t&&(l=l.concat(l.map(gd)))),l}function nl(e){const t=Hn(e);return aT[t]+e.slice(t.length)}function pT(e){return{top:0,right:0,bottom:0,left:0,...e}}function l0(e){return typeof e!="number"?pT(e):{top:e,right:e,bottom:e,left:e}}function rl(e){const{x:t,y:r,width:s,height:a}=e;return{width:s,height:a,top:r,left:t,right:t+s,bottom:r+a,x:t,y:r}}function ug(e,t,r){let{reference:s,floating:a}=e;const l=Tn(t),c=ff(t),d=df(c),h=Hn(t),p=l==="y",m=s.x+s.width/2-a.width/2,y=s.y+s.height/2-a.height/2,b=s[d]/2-a[d]/2;let v;switch(h){case"top":v={x:m,y:s.y-a.height};break;case"bottom":v={x:m,y:s.y+s.height};break;case"right":v={x:s.x+s.width,y};break;case"left":v={x:s.x-a.width,y};break;default:v={x:s.x,y:s.y}}switch(Yo(t)){case"start":v[c]-=b*(r&&p?-1:1);break;case"end":v[c]+=b*(r&&p?-1:1);break}return v}async function mT(e,t){var r;t===void 0&&(t={});const{x:s,y:a,platform:l,rects:c,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:y="floating",altBoundary:b=!1,padding:v=0}=Wn(t,e),P=l0(v),E=d[b?y==="floating"?"reference":"floating":y],T=rl(await l.getClippingRect({element:(r=await(l.isElement==null?void 0:l.isElement(E)))==null||r?E:E.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:p,rootBoundary:m,strategy:h})),R=y==="floating"?{x:s,y:a,width:c.floating.width,height:c.floating.height}:c.reference,N=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),A=await(l.isElement==null?void 0:l.isElement(N))?await(l.getScale==null?void 0:l.getScale(N))||{x:1,y:1}:{x:1,y:1},O=rl(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:R,offsetParent:N,strategy:h}):R);return{top:(T.top-O.top+P.top)/A.y,bottom:(O.bottom-T.bottom+P.bottom)/A.y,left:(T.left-O.left+P.left)/A.x,right:(O.right-T.right+P.right)/A.x}}const gT=50,yT=async(e,t,r)=>{const{placement:s="bottom",strategy:a="absolute",middleware:l=[],platform:c}=r,d=c.detectOverflow?c:{...c,detectOverflow:mT},h=await(c.isRTL==null?void 0:c.isRTL(t));let p=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y}=ug(p,s,h),b=s,v=0;const P={};for(let S=0;S<l.length;S++){const E=l[S];if(!E)continue;const{name:T,fn:R}=E,{x:N,y:A,data:O,reset:F}=await R({x:m,y,initialPlacement:s,placement:b,strategy:a,middlewareData:P,rects:p,platform:d,elements:{reference:e,floating:t}});m=N??m,y=A??y,P[T]={...P[T],...O},F&&v<gT&&(v++,typeof F=="object"&&(F.placement&&(b=F.placement),F.rects&&(p=F.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:a}):F.rects),{x:m,y}=ug(p,b,h)),S=-1)}return{x:m,y,placement:b,strategy:a,middlewareData:P}},vT=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:s,placement:a,rects:l,platform:c,elements:d,middlewareData:h}=t,{element:p,padding:m=0}=Wn(e,t)||{};if(p==null)return{};const y=l0(m),b={x:r,y:s},v=ff(a),P=df(v),S=await c.getDimensions(p),E=v==="y",T=E?"top":"left",R=E?"bottom":"right",N=E?"clientHeight":"clientWidth",A=l.reference[P]+l.reference[v]-b[v]-l.floating[P],O=b[v]-l.reference[v],F=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p));let $=F?F[N]:0;(!$||!await(c.isElement==null?void 0:c.isElement(F)))&&($=d.floating[N]||l.floating[P]);const B=A/2-O/2,H=$/2-S[P]/2-1,W=Cr(y[T],H),ee=Cr(y[R],H),X=W,de=$-S[P]-ee,q=$/2-S[P]/2+B,he=md(X,q,de),re=!h.arrow&&Yo(a)!=null&&q!==he&&l.reference[P]/2-(q<X?W:ee)-S[P]/2<0,le=re?q<X?q-X:q-de:0;return{[v]:b[v]+le,data:{[v]:he,centerOffset:q-he-le,...re&&{alignmentOffset:le}},reset:re}}}),xT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,s;const{placement:a,middlewareData:l,rects:c,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:m=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:S=!0,...E}=Wn(e,t);if((r=l.arrow)!=null&&r.alignmentOffset)return{};const T=Hn(a),R=Tn(d),N=Hn(d)===d,A=await(h.isRTL==null?void 0:h.isRTL(p.floating)),O=b||(N||!S?[nl(d)]:uT(d)),F=P!=="none";!b&&F&&O.push(...hT(d,S,P,A));const $=[d,...O],B=await h.detectOverflow(t,E),H=[];let W=((s=l.flip)==null?void 0:s.overflows)||[];if(m&&H.push(B[T]),y){const q=lT(a,c,A);H.push(B[q[0]],B[q[1]])}if(W=[...W,{placement:a,overflows:H}],!H.every(q=>q<=0)){var ee,X;const q=(((ee=l.flip)==null?void 0:ee.index)||0)+1,he=$[q];if(he&&(!(y==="alignment"?R!==Tn(he):!1)||W.every(V=>Tn(V.placement)===R?V.overflows[0]>0:!0)))return{data:{index:q,overflows:W},reset:{placement:he}};let re=(X=W.filter(le=>le.overflows[0]<=0).sort((le,V)=>le.overflows[1]-V.overflows[1])[0])==null?void 0:X.placement;if(!re)switch(v){case"bestFit":{var de;const le=(de=W.filter(V=>{if(F){const U=Tn(V.placement);return U===R||U==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(U=>U>0).reduce((U,K)=>U+K,0)]).sort((V,U)=>V[1]-U[1])[0])==null?void 0:de[0];le&&(re=le);break}case"initialPlacement":re=d;break}if(a!==re)return{reset:{placement:re}}}return{}}}};function cg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function dg(e){return iT.some(t=>e[t]>=0)}const wT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:s}=t,{strategy:a="referenceHidden",...l}=Wn(e,t);switch(a){case"referenceHidden":{const c=await s.detectOverflow(t,{...l,elementContext:"reference"}),d=cg(c,r.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:dg(d)}}}case"escaped":{const c=await s.detectOverflow(t,{...l,altBoundary:!0}),d=cg(c,r.floating);return{data:{escapedOffsets:d,escaped:dg(d)}}}default:return{}}}}},u0=new Set(["left","top"]);async function bT(e,t){const{placement:r,platform:s,elements:a}=e,l=await(s.isRTL==null?void 0:s.isRTL(a.floating)),c=Hn(r),d=Yo(r),h=Tn(r)==="y",p=u0.has(c)?-1:1,m=l&&h?-1:1,y=Wn(t,e);let{mainAxis:b,crossAxis:v,alignmentAxis:P}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return d&&typeof P=="number"&&(v=d==="end"?P*-1:P),h?{x:v*m,y:b*p}:{x:b*p,y:v*m}}const ST=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,s;const{x:a,y:l,placement:c,middlewareData:d}=t,h=await bT(t,e);return c===((r=d.offset)==null?void 0:r.placement)&&(s=d.arrow)!=null&&s.alignmentOffset?{}:{x:a+h.x,y:l+h.y,data:{...h,placement:c}}}}},CT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:s,placement:a,platform:l}=t,{mainAxis:c=!0,crossAxis:d=!1,limiter:h={fn:T=>{let{x:R,y:N}=T;return{x:R,y:N}}},...p}=Wn(e,t),m={x:r,y:s},y=await l.detectOverflow(t,p),b=Tn(Hn(a)),v=cf(b);let P=m[v],S=m[b];if(c){const T=v==="y"?"top":"left",R=v==="y"?"bottom":"right",N=P+y[T],A=P-y[R];P=md(N,P,A)}if(d){const T=b==="y"?"top":"left",R=b==="y"?"bottom":"right",N=S+y[T],A=S-y[R];S=md(N,S,A)}const E=h.fn({...t,[v]:P,[b]:S});return{...E,data:{x:E.x-r,y:E.y-s,enabled:{[v]:c,[b]:d}}}}}},ET=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:s,placement:a,rects:l,middlewareData:c}=t,{offset:d=0,mainAxis:h=!0,crossAxis:p=!0}=Wn(e,t),m={x:r,y:s},y=Tn(a),b=cf(y);let v=m[b],P=m[y];const S=Wn(d,t),E=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(h){const N=b==="y"?"height":"width",A=l.reference[b]-l.floating[N]+E.mainAxis,O=l.reference[b]+l.reference[N]-E.mainAxis;v<A?v=A:v>O&&(v=O)}if(p){var T,R;const N=b==="y"?"width":"height",A=u0.has(Hn(a)),O=l.reference[y]-l.floating[N]+(A&&((T=c.offset)==null?void 0:T[y])||0)+(A?0:E.crossAxis),F=l.reference[y]+l.reference[N]+(A?0:((R=c.offset)==null?void 0:R[y])||0)-(A?E.crossAxis:0);P<O?P=O:P>F&&(P=F)}return{[b]:v,[y]:P}}}},PT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,s;const{placement:a,rects:l,platform:c,elements:d}=t,{apply:h=()=>{},...p}=Wn(e,t),m=await c.detectOverflow(t,p),y=Hn(a),b=Yo(a),v=Tn(a)==="y",{width:P,height:S}=l.floating;let E,T;y==="top"||y==="bottom"?(E=y,T=b===(await(c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(T=y,E=b==="end"?"top":"bottom");const R=S-m.top-m.bottom,N=P-m.left-m.right,A=Cr(S-m[E],R),O=Cr(P-m[T],N),F=!t.middlewareData.shift;let $=A,B=O;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(B=N),(s=t.middlewareData.shift)!=null&&s.enabled.y&&($=R),F&&!b){const W=Ot(m.left,0),ee=Ot(m.right,0),X=Ot(m.top,0),de=Ot(m.bottom,0);v?B=P-2*(W!==0||ee!==0?W+ee:Ot(m.left,m.right)):$=S-2*(X!==0||de!==0?X+de:Ot(m.top,m.bottom))}await h({...t,availableWidth:B,availableHeight:$});const H=await c.getDimensions(d.floating);return P!==H.width||S!==H.height?{reset:{rects:!0}}:{}}}};function Pl(){return typeof window<"u"}function Go(e){return c0(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Mn(e){var t;return(t=(c0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function c0(e){return Pl()?e instanceof Node||e instanceof Lt(e).Node:!1}function cn(e){return Pl()?e instanceof Element||e instanceof Lt(e).Element:!1}function Qn(e){return Pl()?e instanceof HTMLElement||e instanceof Lt(e).HTMLElement:!1}function fg(e){return!Pl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function ri(e){const{overflow:t,overflowX:r,overflowY:s,display:a}=dn(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+r)&&a!=="inline"&&a!=="contents"}function TT(e){return/^(table|td|th)$/.test(Go(e))}function Tl(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const RT=/transform|translate|scale|rotate|perspective|filter/,kT=/paint|layout|strict|content/,Br=e=>!!e&&e!=="none";let Oc;function hf(e){const t=cn(e)?dn(e):e;return Br(t.transform)||Br(t.translate)||Br(t.scale)||Br(t.rotate)||Br(t.perspective)||!pf()&&(Br(t.backdropFilter)||Br(t.filter))||RT.test(t.willChange||"")||kT.test(t.contain||"")}function NT(e){let t=Er(e);for(;Qn(t)&&!Uo(t);){if(hf(t))return t;if(Tl(t))return null;t=Er(t)}return null}function pf(){return Oc==null&&(Oc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Oc}function Uo(e){return/^(html|body|#document)$/.test(Go(e))}function dn(e){return Lt(e).getComputedStyle(e)}function Rl(e){return cn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Er(e){if(Go(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fg(e)&&e.host||Mn(e);return fg(t)?t.host:t}function d0(e){const t=Er(e);return Uo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qn(t)&&ri(t)?t:d0(t)}function Gs(e,t,r){var s;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=d0(e),l=a===((s=e.ownerDocument)==null?void 0:s.body),c=Lt(a);if(l){const d=yd(c);return t.concat(c,c.visualViewport||[],ri(a)?a:[],d&&r?Gs(d):[])}else return t.concat(a,Gs(a,[],r))}function yd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function f0(e){const t=dn(e);let r=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=Qn(e),l=a?e.offsetWidth:r,c=a?e.offsetHeight:s,d=tl(r)!==l||tl(s)!==c;return d&&(r=l,s=c),{width:r,height:s,$:d}}function mf(e){return cn(e)?e:e.contextElement}function Fo(e){const t=mf(e);if(!Qn(t))return Rn(1);const r=t.getBoundingClientRect(),{width:s,height:a,$:l}=f0(t);let c=(l?tl(r.width):r.width)/s,d=(l?tl(r.height):r.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const AT=Rn(0);function h0(e){const t=Lt(e);return!pf()||!t.visualViewport?AT:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jT(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Lt(e)?!1:t}function Yr(e,t,r,s){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),l=mf(e);let c=Rn(1);t&&(s?cn(s)&&(c=Fo(s)):c=Fo(e));const d=jT(l,r,s)?h0(l):Rn(0);let h=(a.left+d.x)/c.x,p=(a.top+d.y)/c.y,m=a.width/c.x,y=a.height/c.y;if(l){const b=Lt(l),v=s&&cn(s)?Lt(s):s;let P=b,S=yd(P);for(;S&&s&&v!==P;){const E=Fo(S),T=S.getBoundingClientRect(),R=dn(S),N=T.left+(S.clientLeft+parseFloat(R.paddingLeft))*E.x,A=T.top+(S.clientTop+parseFloat(R.paddingTop))*E.y;h*=E.x,p*=E.y,m*=E.x,y*=E.y,h+=N,p+=A,P=Lt(S),S=yd(P)}}return rl({width:m,height:y,x:h,y:p})}function kl(e,t){const r=Rl(e).scrollLeft;return t?t.left+r:Yr(Mn(e)).left+r}function p0(e,t){const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-kl(e,r),a=r.top+t.scrollTop;return{x:s,y:a}}function MT(e){let{elements:t,rect:r,offsetParent:s,strategy:a}=e;const l=a==="fixed",c=Mn(s),d=t?Tl(t.floating):!1;if(s===c||d&&l)return r;let h={scrollLeft:0,scrollTop:0},p=Rn(1);const m=Rn(0),y=Qn(s);if((y||!y&&!l)&&((Go(s)!=="body"||ri(c))&&(h=Rl(s)),y)){const v=Yr(s);p=Fo(s),m.x=v.x+s.clientLeft,m.y=v.y+s.clientTop}const b=c&&!y&&!l?p0(c,h):Rn(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-h.scrollLeft*p.x+m.x+b.x,y:r.y*p.y-h.scrollTop*p.y+m.y+b.y}}function DT(e){return Array.from(e.getClientRects())}function OT(e){const t=Mn(e),r=Rl(e),s=e.ownerDocument.body,a=Ot(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),l=Ot(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let c=-r.scrollLeft+kl(e);const d=-r.scrollTop;return dn(s).direction==="rtl"&&(c+=Ot(t.clientWidth,s.clientWidth)-a),{width:a,height:l,x:c,y:d}}const hg=25;function LT(e,t){const r=Lt(e),s=Mn(e),a=r.visualViewport;let l=s.clientWidth,c=s.clientHeight,d=0,h=0;if(a){l=a.width,c=a.height;const m=pf();(!m||m&&t==="fixed")&&(d=a.offsetLeft,h=a.offsetTop)}const p=kl(s);if(p<=0){const m=s.ownerDocument,y=m.body,b=getComputedStyle(y),v=m.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,P=Math.abs(s.clientWidth-y.clientWidth-v);P<=hg&&(l-=P)}else p<=hg&&(l+=p);return{width:l,height:c,x:d,y:h}}function _T(e,t){const r=Yr(e,!0,t==="fixed"),s=r.top+e.clientTop,a=r.left+e.clientLeft,l=Qn(e)?Fo(e):Rn(1),c=e.clientWidth*l.x,d=e.clientHeight*l.y,h=a*l.x,p=s*l.y;return{width:c,height:d,x:h,y:p}}function pg(e,t,r){let s;if(t==="viewport")s=LT(e,r);else if(t==="document")s=OT(Mn(e));else if(cn(t))s=_T(t,r);else{const a=h0(e);s={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return rl(s)}function m0(e,t){const r=Er(e);return r===t||!cn(r)||Uo(r)?!1:dn(r).position==="fixed"||m0(r,t)}function IT(e,t){const r=t.get(e);if(r)return r;let s=Gs(e,[],!1).filter(d=>cn(d)&&Go(d)!=="body"),a=null;const l=dn(e).position==="fixed";let c=l?Er(e):e;for(;cn(c)&&!Uo(c);){const d=dn(c),h=hf(c);!h&&d.position==="fixed"&&(a=null),(l?!h&&!a:!h&&d.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||ri(c)&&!h&&m0(e,c))?s=s.filter(m=>m!==c):a=d,c=Er(c)}return t.set(e,s),s}function FT(e){let{element:t,boundary:r,rootBoundary:s,strategy:a}=e;const c=[...r==="clippingAncestors"?Tl(t)?[]:IT(t,this._c):[].concat(r),s],d=pg(t,c[0],a);let h=d.top,p=d.right,m=d.bottom,y=d.left;for(let b=1;b<c.length;b++){const v=pg(t,c[b],a);h=Ot(v.top,h),p=Cr(v.right,p),m=Cr(v.bottom,m),y=Ot(v.left,y)}return{width:p-y,height:m-h,x:y,y:h}}function VT(e){const{width:t,height:r}=f0(e);return{width:t,height:r}}function zT(e,t,r){const s=Qn(t),a=Mn(t),l=r==="fixed",c=Yr(e,!0,l,t);let d={scrollLeft:0,scrollTop:0};const h=Rn(0);function p(){h.x=kl(a)}if(s||!s&&!l)if((Go(t)!=="body"||ri(a))&&(d=Rl(t)),s){const v=Yr(t,!0,l,t);h.x=v.x+t.clientLeft,h.y=v.y+t.clientTop}else a&&p();l&&!s&&a&&p();const m=a&&!s&&!l?p0(a,d):Rn(0),y=c.left+d.scrollLeft-h.x-m.x,b=c.top+d.scrollTop-h.y-m.y;return{x:y,y:b,width:c.width,height:c.height}}function Lc(e){return dn(e).position==="static"}function mg(e,t){if(!Qn(e)||dn(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Mn(e)===r&&(r=r.ownerDocument.body),r}function g0(e,t){const r=Lt(e);if(Tl(e))return r;if(!Qn(e)){let a=Er(e);for(;a&&!Uo(a);){if(cn(a)&&!Lc(a))return a;a=Er(a)}return r}let s=mg(e,t);for(;s&&TT(s)&&Lc(s);)s=mg(s,t);return s&&Uo(s)&&Lc(s)&&!hf(s)?r:s||NT(e)||r}const BT=async function(e){const t=this.getOffsetParent||g0,r=this.getDimensions,s=await r(e.floating);return{reference:zT(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function UT(e){return dn(e).direction==="rtl"}const $T={convertOffsetParentRelativeRectToViewportRelativeRect:MT,getDocumentElement:Mn,getClippingRect:FT,getOffsetParent:g0,getElementRects:BT,getClientRects:DT,getDimensions:VT,getScale:Fo,isElement:cn,isRTL:UT};function y0(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function WT(e,t){let r=null,s;const a=Mn(e);function l(){var d;clearTimeout(s),(d=r)==null||d.disconnect(),r=null}function c(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),l();const p=e.getBoundingClientRect(),{left:m,top:y,width:b,height:v}=p;if(d||t(),!b||!v)return;const P=Ra(y),S=Ra(a.clientWidth-(m+b)),E=Ra(a.clientHeight-(y+v)),T=Ra(m),N={rootMargin:-P+"px "+-S+"px "+-E+"px "+-T+"px",threshold:Ot(0,Cr(1,h))||1};let A=!0;function O(F){const $=F[0].intersectionRatio;if($!==h){if(!A)return c();$?c(!1,$):s=setTimeout(()=>{c(!1,1e-7)},1e3)}$===1&&!y0(p,e.getBoundingClientRect())&&c(),A=!1}try{r=new IntersectionObserver(O,{...N,root:a.ownerDocument})}catch{r=new IntersectionObserver(O,N)}r.observe(e)}return c(!0),l}function HT(e,t,r,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=s,p=mf(e),m=a||l?[...p?Gs(p):[],...t?Gs(t):[]]:[];m.forEach(T=>{a&&T.addEventListener("scroll",r,{passive:!0}),l&&T.addEventListener("resize",r)});const y=p&&d?WT(p,r):null;let b=-1,v=null;c&&(v=new ResizeObserver(T=>{let[R]=T;R&&R.target===p&&v&&t&&(v.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var N;(N=v)==null||N.observe(t)})),r()}),p&&!h&&v.observe(p),t&&v.observe(t));let P,S=h?Yr(e):null;h&&E();function E(){const T=Yr(e);S&&!y0(S,T)&&r(),S=T,P=requestAnimationFrame(E)}return r(),()=>{var T;m.forEach(R=>{a&&R.removeEventListener("scroll",r),l&&R.removeEventListener("resize",r)}),y?.(),(T=v)==null||T.disconnect(),v=null,h&&cancelAnimationFrame(P)}}const KT=ST,QT=CT,YT=xT,GT=PT,XT=wT,gg=vT,qT=ET,ZT=(e,t,r)=>{const s=new Map,a={platform:$T,...r},l={...a.platform,_c:s};return yT(e,t,{...a,platform:l})};var JT=typeof document<"u",eR=function(){},Ua=JT?w.useLayoutEffect:eR;function ol(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 r,s,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(s=r;s--!==0;)if(!ol(e[s],t[s]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(s=r;s--!==0;)if(!{}.hasOwnProperty.call(t,a[s]))return!1;for(s=r;s--!==0;){const l=a[s];if(!(l==="_owner"&&e.$$typeof)&&!ol(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function v0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yg(e,t){const r=v0(e);return Math.round(t*r)/r}function _c(e){const t=w.useRef(e);return Ua(()=>{t.current=e}),t}function tR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:s=[],platform:a,elements:{reference:l,floating:c}={},transform:d=!0,whileElementsMounted:h,open:p}=e,[m,y]=w.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[b,v]=w.useState(s);ol(b,s)||v(s);const[P,S]=w.useState(null),[E,T]=w.useState(null),R=w.useCallback(V=>{V!==F.current&&(F.current=V,S(V))},[]),N=w.useCallback(V=>{V!==$.current&&($.current=V,T(V))},[]),A=l||P,O=c||E,F=w.useRef(null),$=w.useRef(null),B=w.useRef(m),H=h!=null,W=_c(h),ee=_c(a),X=_c(p),de=w.useCallback(()=>{if(!F.current||!$.current)return;const V={placement:t,strategy:r,middleware:b};ee.current&&(V.platform=ee.current),ZT(F.current,$.current,V).then(U=>{const K={...U,isPositioned:X.current!==!1};q.current&&!ol(B.current,K)&&(B.current=K,bl.flushSync(()=>{y(K)}))})},[b,t,r,ee,X]);Ua(()=>{p===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,y(V=>({...V,isPositioned:!1})))},[p]);const q=w.useRef(!1);Ua(()=>(q.current=!0,()=>{q.current=!1}),[]),Ua(()=>{if(A&&(F.current=A),O&&($.current=O),A&&O){if(W.current)return W.current(A,O,de);de()}},[A,O,de,W,H]);const he=w.useMemo(()=>({reference:F,floating:$,setReference:R,setFloating:N}),[R,N]),re=w.useMemo(()=>({reference:A,floating:O}),[A,O]),le=w.useMemo(()=>{const V={position:r,left:0,top:0};if(!re.floating)return V;const U=yg(re.floating,m.x),K=yg(re.floating,m.y);return d?{...V,transform:"translate("+U+"px, "+K+"px)",...v0(re.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:U,top:K}},[r,d,re.floating,m.x,m.y]);return w.useMemo(()=>({...m,update:de,refs:he,elements:re,floatingStyles:le}),[m,de,he,re,le])}const nR=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:s,padding:a}=typeof e=="function"?e(r):e;return s&&t(s)?s.current!=null?gg({element:s.current,padding:a}).fn(r):{}:s?gg({element:s,padding:a}).fn(r):{}}}},rR=(e,t)=>{const r=KT(e);return{name:r.name,fn:r.fn,options:[e,t]}},oR=(e,t)=>{const r=QT(e);return{name:r.name,fn:r.fn,options:[e,t]}},sR=(e,t)=>({fn:qT(e).fn,options:[e,t]}),iR=(e,t)=>{const r=YT(e);return{name:r.name,fn:r.fn,options:[e,t]}},aR=(e,t)=>{const r=GT(e);return{name:r.name,fn:r.fn,options:[e,t]}},lR=(e,t)=>{const r=XT(e);return{name:r.name,fn:r.fn,options:[e,t]}},uR=(e,t)=>{const r=nR(e);return{name:r.name,fn:r.fn,options:[e,t]}};var cR="Arrow",x0=w.forwardRef((e,t)=>{const{children:r,width:s=10,height:a=5,...l}=e;return x.jsx(je.svg,{...l,ref:t,width:s,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});x0.displayName=cR;var dR=x0;function w0(e){const[t,r]=w.useState(void 0);return Nn(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const l=a[0];let c,d;if("borderBoxSize"in l){const h=l.borderBoxSize,p=Array.isArray(h)?h[0]:h;c=p.inlineSize,d=p.blockSize}else c=e.offsetWidth,d=e.offsetHeight;r({width:c,height:d})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else r(void 0)},[e]),t}var b0="Popper",[S0,C0]=Zr(b0),[fL,E0]=S0(b0),P0="PopperAnchor",T0=w.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:s,...a}=e,l=E0(P0,r),c=w.useRef(null),d=Ue(t,c),h=w.useRef(null);return w.useEffect(()=>{const p=h.current;h.current=s?.current||c.current,p!==h.current&&l.onAnchorChange(h.current)}),s?null:x.jsx(je.div,{...a,ref:d})});T0.displayName=P0;var gf="PopperContent",[fR,hR]=S0(gf),R0=w.forwardRef((e,t)=>{const{__scopePopper:r,side:s="bottom",sideOffset:a=0,align:l="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:h=!0,collisionBoundary:p=[],collisionPadding:m=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:v="optimized",onPlaced:P,...S}=e,E=E0(gf,r),[T,R]=w.useState(null),N=Ue(t,fe=>R(fe)),[A,O]=w.useState(null),F=w0(A),$=F?.width??0,B=F?.height??0,H=s+(l!=="center"?"-"+l:""),W=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},ee=Array.isArray(p)?p:[p],X=ee.length>0,de={padding:W,boundary:ee.filter(mR),altBoundary:X},{refs:q,floatingStyles:he,placement:re,isPositioned:le,middlewareData:V}=tR({strategy:"fixed",placement:H,whileElementsMounted:(...fe)=>HT(...fe,{animationFrame:v==="always"}),elements:{reference:E.anchor},middleware:[rR({mainAxis:a+B,alignmentAxis:c}),h&&oR({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?sR():void 0,...de}),h&&iR({...de}),aR({...de,apply:({elements:fe,rects:Ce,availableWidth:Pe,availableHeight:Qe})=>{const{width:It,height:Yn}=Ce.reference,Ft=fe.floating.style;Ft.setProperty("--radix-popper-available-width",`${Pe}px`),Ft.setProperty("--radix-popper-available-height",`${Qe}px`),Ft.setProperty("--radix-popper-anchor-width",`${It}px`),Ft.setProperty("--radix-popper-anchor-height",`${Yn}px`)}}),A&&uR({element:A,padding:d}),gR({arrowWidth:$,arrowHeight:B}),b&&lR({strategy:"referenceHidden",...de})]}),[U,K]=A0(re),M=at(P);Nn(()=>{le&&M?.()},[le,M]);const z=V.arrow?.x,te=V.arrow?.y,oe=V.arrow?.centerOffset!==0,[ge,we]=w.useState();return Nn(()=>{T&&we(window.getComputedStyle(T).zIndex)},[T]),x.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...he,transform:le?he.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(" "),...V.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(fR,{scope:r,placedSide:U,onArrowChange:O,arrowX:z,arrowY:te,shouldHideArrow:oe,children:x.jsx(je.div,{"data-side":U,"data-align":K,...S,ref:N,style:{...S.style,animation:le?void 0:"none"}})})})});R0.displayName=gf;var k0="PopperArrow",pR={top:"bottom",right:"left",bottom:"top",left:"right"},N0=w.forwardRef(function(t,r){const{__scopePopper:s,...a}=t,l=hR(k0,s),c=pR[l.placedSide];return x.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[c]: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:x.jsx(dR,{...a,ref:r,style:{...a.style,display:"block"}})})});N0.displayName=k0;function mR(e){return e!==null}var gR=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:s,middlewareData:a}=t,c=a.arrow?.centerOffset!==0,d=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[p,m]=A0(r),y={start:"0%",center:"50%",end:"100%"}[m],b=(a.arrow?.x??0)+d/2,v=(a.arrow?.y??0)+h/2;let P="",S="";return p==="bottom"?(P=c?y:`${b}px`,S=`${-h}px`):p==="top"?(P=c?y:`${b}px`,S=`${s.floating.height+h}px`):p==="right"?(P=`${-h}px`,S=c?y:`${v}px`):p==="left"&&(P=`${s.floating.width+h}px`,S=c?y:`${v}px`),{data:{x:P,y:S}}}});function A0(e){const[t,r="center"]=e.split("-");return[t,r]}var yR=T0,vR=R0,xR=N0,[Nl]=Zr("Tooltip",[C0]),yf=C0(),j0="TooltipProvider",wR=700,vg="tooltip.open",[bR,M0]=Nl(j0),D0=e=>{const{__scopeTooltip:t,delayDuration:r=wR,skipDelayDuration:s=300,disableHoverableContent:a=!1,children:l}=e,c=w.useRef(!0),d=w.useRef(!1),h=w.useRef(0);return w.useEffect(()=>{const p=h.current;return()=>window.clearTimeout(p)},[]),x.jsx(bR,{scope:t,isOpenDelayedRef:c,delayDuration:r,onOpen:w.useCallback(()=>{window.clearTimeout(h.current),c.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>c.current=!0,s)},[s]),isPointerInTransitRef:d,onPointerInTransitChange:w.useCallback(p=>{d.current=p},[]),disableHoverableContent:a,children:l})};D0.displayName=j0;var O0="Tooltip",[hL,Al]=Nl(O0),vd="TooltipTrigger",SR=w.forwardRef((e,t)=>{const{__scopeTooltip:r,...s}=e,a=Al(vd,r),l=M0(vd,r),c=yf(r),d=w.useRef(null),h=Ue(t,d,a.onTriggerChange),p=w.useRef(!1),m=w.useRef(!1),y=w.useCallback(()=>p.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),x.jsx(yR,{asChild:!0,...c,children:x.jsx(je.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...s,ref:h,onPointerMove:Re(e.onPointerMove,b=>{b.pointerType!=="touch"&&!m.current&&!l.isPointerInTransitRef.current&&(a.onTriggerEnter(),m.current=!0)}),onPointerLeave:Re(e.onPointerLeave,()=>{a.onTriggerLeave(),m.current=!1}),onPointerDown:Re(e.onPointerDown,()=>{a.open&&a.onClose(),p.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:Re(e.onFocus,()=>{p.current||a.onOpen()}),onBlur:Re(e.onBlur,a.onClose),onClick:Re(e.onClick,a.onClose)})})});SR.displayName=vd;var CR="TooltipPortal",[pL,ER]=Nl(CR,{forceMount:void 0}),$o="TooltipContent",L0=w.forwardRef((e,t)=>{const r=ER($o,e.__scopeTooltip),{forceMount:s=r.forceMount,side:a="top",...l}=e,c=Al($o,e.__scopeTooltip);return x.jsx(jn,{present:s||c.open,children:c.disableHoverableContent?x.jsx(_0,{side:a,...l,ref:t}):x.jsx(PR,{side:a,...l,ref:t})})}),PR=w.forwardRef((e,t)=>{const r=Al($o,e.__scopeTooltip),s=M0($o,e.__scopeTooltip),a=w.useRef(null),l=Ue(t,a),[c,d]=w.useState(null),{trigger:h,onClose:p}=r,m=a.current,{onPointerInTransitChange:y}=s,b=w.useCallback(()=>{d(null),y(!1)},[y]),v=w.useCallback((P,S)=>{const E=P.currentTarget,T={x:P.clientX,y:P.clientY},R=AR(T,E.getBoundingClientRect()),N=jR(T,R),A=MR(S.getBoundingClientRect()),O=OR([...N,...A]);d(O),y(!0)},[y]);return w.useEffect(()=>()=>b(),[b]),w.useEffect(()=>{if(h&&m){const P=E=>v(E,m),S=E=>v(E,h);return h.addEventListener("pointerleave",P),m.addEventListener("pointerleave",S),()=>{h.removeEventListener("pointerleave",P),m.removeEventListener("pointerleave",S)}}},[h,m,v,b]),w.useEffect(()=>{if(c){const P=S=>{const E=S.target,T={x:S.clientX,y:S.clientY},R=h?.contains(E)||m?.contains(E),N=!DR(T,c);R?b():N&&(b(),p())};return document.addEventListener("pointermove",P),()=>document.removeEventListener("pointermove",P)}},[h,m,c,p,b]),x.jsx(_0,{...e,ref:l})}),[TR,RR]=Nl(O0,{isInside:!1}),kR=lC("TooltipContent"),_0=w.forwardRef((e,t)=>{const{__scopeTooltip:r,children:s,"aria-label":a,onEscapeKeyDown:l,onPointerDownOutside:c,...d}=e,h=Al($o,r),p=yf(r),{onClose:m}=h;return w.useEffect(()=>(document.addEventListener(vg,m),()=>document.removeEventListener(vg,m)),[m]),w.useEffect(()=>{if(h.trigger){const y=b=>{b.target?.contains(h.trigger)&&m()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[h.trigger,m]),x.jsx(Sl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:y=>y.preventDefault(),onDismiss:m,children:x.jsxs(vR,{"data-state":h.stateAttribute,...p,...d,ref:t,style:{...d.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:[x.jsx(kR,{children:s}),x.jsx(TR,{scope:r,isInside:!0,children:x.jsx(MC,{id:h.contentId,role:"tooltip",children:a||s})})]})})});L0.displayName=$o;var I0="TooltipArrow",NR=w.forwardRef((e,t)=>{const{__scopeTooltip:r,...s}=e,a=yf(r);return RR(I0,r).isInside?null:x.jsx(xR,{...a,...s,ref:t})});NR.displayName=I0;function AR(e,t){const r=Math.abs(t.top-e.y),s=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(r,s,a,l)){case l:return"left";case a:return"right";case r:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function jR(e,t,r=5){const s=[];switch(t){case"top":s.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":s.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":s.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":s.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return s}function MR(e){const{top:t,right:r,bottom:s,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:s},{x:a,y:s}]}function DR(e,t){const{x:r,y:s}=e;let a=!1;for(let l=0,c=t.length-1;l<t.length;c=l++){const d=t[l],h=t[c],p=d.x,m=d.y,y=h.x,b=h.y;m>s!=b>s&&r<(y-p)*(s-m)/(b-m)+p&&(a=!a)}return a}function OR(e){const t=e.slice();return t.sort((r,s)=>r.x<s.x?-1:r.x>s.x?1:r.y<s.y?-1:r.y>s.y?1:0),LR(t)}function LR(e){if(e.length<=1)return e.slice();const t=[];for(let s=0;s<e.length;s++){const a=e[s];for(;t.length>=2;){const l=t[t.length-1],c=t[t.length-2];if((l.x-c.x)*(a.y-c.y)>=(l.y-c.y)*(a.x-c.x))t.pop();else break}t.push(a)}t.pop();const r=[];for(let s=e.length-1;s>=0;s--){const a=e[s];for(;r.length>=2;){const l=r[r.length-1],c=r[r.length-2];if((l.x-c.x)*(a.y-c.y)>=(l.y-c.y)*(a.x-c.x))r.pop();else break}r.push(a)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var _R=D0,F0=L0;const IR=_R,FR=w.forwardRef(({className:e,sideOffset:t=4,...r},s)=>x.jsx(F0,{ref:s,sideOffset:t,className:xe("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));FR.displayName=F0.displayName;var oi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},VR={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},zR=class{#e=VR;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Wr=new zR;function BR(e){setTimeout(e,0)}var Gr=typeof window>"u"||"Deno"in globalThis;function kt(){}function UR(e,t){return typeof e=="function"?e(t):e}function xd(e){return typeof e=="number"&&e>=0&&e!==1/0}function V0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Sr(e,t){return typeof e=="function"?e(t):e}function Kt(e,t){return typeof e=="function"?e(t):e}function xg(e,t){const{type:r="all",exact:s,fetchStatus:a,predicate:l,queryKey:c,stale:d}=e;if(c){if(s){if(t.queryHash!==vf(c,t.options))return!1}else if(!qs(t.queryKey,c))return!1}if(r!=="all"){const h=t.isActive();if(r==="active"&&!h||r==="inactive"&&h)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||a&&a!==t.state.fetchStatus||l&&!l(t))}function wg(e,t){const{exact:r,status:s,predicate:a,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(r){if(Xs(t.options.mutationKey)!==Xs(l))return!1}else if(!qs(t.options.mutationKey,l))return!1}return!(s&&t.state.status!==s||a&&!a(t))}function vf(e,t){return(t?.queryKeyHashFn||Xs)(e)}function Xs(e){return JSON.stringify(e,(t,r)=>bd(r)?Object.keys(r).sort().reduce((s,a)=>(s[a]=r[a],s),{}):r)}function qs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>qs(e[r],t[r])):!1}var $R=Object.prototype.hasOwnProperty;function z0(e,t,r=0){if(e===t)return e;if(r>500)return t;const s=bg(e)&&bg(t);if(!s&&!(bd(e)&&bd(t)))return t;const l=(s?e:Object.keys(e)).length,c=s?t:Object.keys(t),d=c.length,h=s?new Array(d):{};let p=0;for(let m=0;m<d;m++){const y=s?m:c[m],b=e[y],v=t[y];if(b===v){h[y]=b,(s?m<l:$R.call(e,y))&&p++;continue}if(b===null||v===null||typeof b!="object"||typeof v!="object"){h[y]=v;continue}const P=z0(b,v,r+1);h[y]=P,P===b&&p++}return l===d&&p===l?e:h}function wd(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function bg(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function bd(e){if(!Sg(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Sg(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Sg(e){return Object.prototype.toString.call(e)==="[object Object]"}function WR(e){return new Promise(t=>{Wr.setTimeout(t,e)})}function Sd(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?z0(e,t):t}function HR(e,t,r=0){const s=[...e,t];return r&&s.length>r?s.slice(1):s}function KR(e,t,r=0){const s=[t,...e];return r&&s.length>r?s.slice(0,-1):s}var xf=Symbol();function B0(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===xf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function U0(e,t){return typeof e=="function"?e(...t):!!e}function QR(e,t,r){let s=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??=t(),s||(s=!0,a.aborted?r():a.addEventListener("abort",r,{once:!0})),a)}),e}var YR=class extends oi{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Gr&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},wf=new YR;function Cd(){let e,t;const r=new Promise((a,l)=>{e=a,t=l});r.status="pending",r.catch(()=>{});function s(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{s({status:"fulfilled",value:a}),e(a)},r.reject=a=>{s({status:"rejected",reason:a}),t(a)},r}var GR=BR;function XR(){let e=[],t=0,r=d=>{d()},s=d=>{d()},a=GR;const l=d=>{t?e.push(d):a(()=>{r(d)})},c=()=>{const d=e;e=[],d.length&&a(()=>{s(()=>{d.forEach(h=>{r(h)})})})};return{batch:d=>{let h;t++;try{h=d()}finally{t--,t||c()}return h},batchCalls:d=>(...h)=>{l(()=>{d(...h)})},schedule:l,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{s=d},setScheduler:d=>{a=d}}}var it=XR(),qR=class extends oi{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Gr&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#e}},sl=new qR;function ZR(e){return Math.min(1e3*2**e,3e4)}function $0(e){return(e??"online")==="online"?sl.isOnline():!0}var Ed=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function W0(e){let t=!1,r=0,s;const a=Cd(),l=()=>a.status!=="pending",c=S=>{if(!l()){const E=new Ed(S);b(E),e.onCancel?.(E)}},d=()=>{t=!0},h=()=>{t=!1},p=()=>wf.isFocused()&&(e.networkMode==="always"||sl.isOnline())&&e.canRun(),m=()=>$0(e.networkMode)&&e.canRun(),y=S=>{l()||(s?.(),a.resolve(S))},b=S=>{l()||(s?.(),a.reject(S))},v=()=>new Promise(S=>{s=E=>{(l()||p())&&S(E)},e.onPause?.()}).then(()=>{s=void 0,l()||e.onContinue?.()}),P=()=>{if(l())return;let S;const E=r===0?e.initialPromise:void 0;try{S=E??e.fn()}catch(T){S=Promise.reject(T)}Promise.resolve(S).then(y).catch(T=>{if(l())return;const R=e.retry??(Gr?0:3),N=e.retryDelay??ZR,A=typeof N=="function"?N(r,T):N,O=R===!0||typeof R=="number"&&r<R||typeof R=="function"&&R(r,T);if(t||!O){b(T);return}r++,e.onFail?.(r,T),WR(A).then(()=>p()?void 0:v()).then(()=>{t?b(T):P()})})};return{promise:a,status:()=>a.status,cancel:c,continue:()=>(s?.(),a),cancelRetry:d,continueRetry:h,canStart:m,start:()=>(m()?P():v().then(P),a)}}var H0=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xd(this.gcTime)&&(this.#e=Wr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Gr?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Wr.clearTimeout(this.#e),this.#e=void 0)}},JR=class extends H0{#e;#t;#n;#o;#r;#a;#i;constructor(e){super(),this.#i=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#n=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Eg(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Eg(this.options);t.data!==void 0&&(this.setState(Cg(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const r=Sd(this.state.data,e,this.options);return this.#s({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#s({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(kt).catch(kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Kt(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Sr(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!V0(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#i?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,s=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#i=!0,r.signal)})},a=()=>{const d=B0(this.options,t),p=(()=>{const m={client:this.#o,queryKey:this.queryKey,meta:this.meta};return s(m),m})();return this.#i=!1,this.options.persister?this.options.persister(d,p,this):d(p)},c=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:a};return s(d),d})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#s({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=W0({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:d=>{d instanceof Ed&&d.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(d,h)=>{this.#s({type:"failed",failureCount:d,error:h})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const d=await this.#r.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Ed){if(d.silent)return this.#r.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#s({type:"error",error:d}),this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#s(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...K0(r.data,this.options),fetchMeta:e.meta??null};case"success":const s={...r,...Cg(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?s:void 0,s;case"error":const a=e.error;return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),it.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function K0(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:$0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Cg(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Eg(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,s=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var ek=class extends oi{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#i=Cd(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#o=void 0;#r;#a;#i;#s;#m;#f;#h;#u;#c;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Pg(this.#t,this.options)?this.#d():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Pd(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Pd(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#b(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Kt(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!wd(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&Tg(this.#t,r,this.options,t)&&this.#d(),this.updateResult(),s&&(this.#t!==r||Kt(this.options.enabled,this.#t)!==Kt(t.enabled,this.#t)||Sr(this.options.staleTime,this.#t)!==Sr(t.staleTime,this.#t))&&this.#g();const a=this.#y();s&&(this.#t!==r||Kt(this.options.enabled,this.#t)!==Kt(t.enabled,this.#t)||a!==this.#l)&&this.#v(a)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return nk(this,r)&&(this.#o=r,this.#a=this.options,this.#r=this.#t.state),r}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(r,s)=>(this.trackProp(s),t?.(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#i.status==="pending"&&this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,s))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#d(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(kt)),t}#g(){this.#w();const e=Sr(this.options.staleTime,this.#t);if(Gr||this.#o.isStale||!xd(e))return;const r=V0(this.#o.dataUpdatedAt,e)+1;this.#u=Wr.setTimeout(()=>{this.#o.isStale||this.updateResult()},r)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#b(),this.#l=e,!(Gr||Kt(this.options.enabled,this.#t)===!1||!xd(this.#l)||this.#l===0)&&(this.#c=Wr.setInterval(()=>{(this.options.refetchIntervalInBackground||wf.isFocused())&&this.#d()},this.#l))}#x(){this.#g(),this.#v(this.#y())}#w(){this.#u&&(Wr.clearTimeout(this.#u),this.#u=void 0)}#b(){this.#c&&(Wr.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const r=this.#t,s=this.options,a=this.#o,l=this.#r,c=this.#a,h=e!==r?e.state:this.#n,{state:p}=e;let m={...p},y=!1,b;if(t._optimisticResults){const B=this.hasListeners(),H=!B&&Pg(e,t),W=B&&Tg(e,r,t,s);(H||W)&&(m={...m,...K0(p.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:v,errorUpdatedAt:P,status:S}=m;b=m.data;let E=!1;if(t.placeholderData!==void 0&&b===void 0&&S==="pending"){let B;a?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(B=a.data,E=!0):B=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,B!==void 0&&(S="success",b=Sd(a?.data,B,t),y=!0)}if(t.select&&b!==void 0&&!E)if(a&&b===l?.data&&t.select===this.#m)b=this.#f;else try{this.#m=t.select,b=t.select(b),b=Sd(a?.data,b,t),this.#f=b,this.#s=null}catch(B){this.#s=B}this.#s&&(v=this.#s,b=this.#f,P=Date.now(),S="error");const T=m.fetchStatus==="fetching",R=S==="pending",N=S==="error",A=R&&T,O=b!==void 0,$={status:S,fetchStatus:m.fetchStatus,isPending:R,isSuccess:S==="success",isError:N,isInitialLoading:A,isLoading:A,data:b,dataUpdatedAt:m.dataUpdatedAt,error:v,errorUpdatedAt:P,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>h.dataUpdateCount||m.errorUpdateCount>h.errorUpdateCount,isFetching:T,isRefetching:T&&!R,isLoadingError:N&&!O,isPaused:m.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:N&&O,isStale:bf(e,t),refetch:this.refetch,promise:this.#i,isEnabled:Kt(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const B=$.data!==void 0,H=$.status==="error"&&!B,W=de=>{H?de.reject($.error):B&&de.resolve($.data)},ee=()=>{const de=this.#i=$.promise=Cd();W(de)},X=this.#i;switch(X.status){case"pending":e.queryHash===r.queryHash&&W(X);break;case"fulfilled":(H||$.data!==X.value)&&ee();break;case"rejected":(!H||$.error!==X.reason)&&ee();break}}return $}updateResult(){const e=this.#o,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#a=this.options,this.#r.data!==void 0&&(this.#h=this.#t),wd(t,e))return;this.#o=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!this.#p.size)return!0;const l=new Set(a??this.#p);return this.options.throwOnError&&l.add("error"),Object.keys(this.#o).some(c=>{const d=c;return this.#o[d]!==e[d]&&l.has(d)})};this.#C({listeners:r()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#C(e){it.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function tk(e,t){return Kt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Pg(e,t){return tk(e,t)||e.state.data!==void 0&&Pd(e,t,t.refetchOnMount)}function Pd(e,t,r){if(Kt(t.enabled,e)!==!1&&Sr(t.staleTime,e)!=="static"){const s=typeof r=="function"?r(e):r;return s==="always"||s!==!1&&bf(e,t)}return!1}function Tg(e,t,r,s){return(e!==t||Kt(s.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&bf(e,r)}function bf(e,t){return Kt(t.enabled,e)!==!1&&e.isStaleByTime(Sr(t.staleTime,e))}function nk(e,t){return!wd(e.getCurrentResult(),t)}function Rg(e){return{onFetch:(t,r)=>{const s=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,l=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let d={pages:[],pageParams:[]},h=0;const p=async()=>{let m=!1;const y=P=>{QR(P,()=>t.signal,()=>m=!0)},b=B0(t.options,t.fetchOptions),v=async(P,S,E)=>{if(m)return Promise.reject();if(S==null&&P.pages.length)return Promise.resolve(P);const R=(()=>{const F={client:t.client,queryKey:t.queryKey,pageParam:S,direction:E?"backward":"forward",meta:t.options.meta};return y(F),F})(),N=await b(R),{maxPages:A}=t.options,O=E?KR:HR;return{pages:O(P.pages,N,A),pageParams:O(P.pageParams,S,A)}};if(a&&l.length){const P=a==="backward",S=P?rk:kg,E={pages:l,pageParams:c},T=S(s,E);d=await v(E,T,P)}else{const P=e??l.length;do{const S=h===0?c[0]??s.initialPageParam:kg(s,d);if(h>0&&S==null)break;d=await v(d,S),h++}while(h<P)}return d};t.options.persister?t.fetchFn=()=>t.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=p}}}function kg(e,{pages:t,pageParams:r}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,r[s],r):void 0}function rk(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var ok=class extends H0{#e;#t;#n;#o;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||sk(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=W0({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(l,c)=>{this.#r({type:"failed",failureCount:l,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",a=!this.#o.canStart();try{if(s)t();else{this.#r({type:"pending",variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,r);const c=await this.options.onMutate?.(e,r);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:a})}const l=await this.#o.start();return await this.#n.config.onSuccess?.(l,e,this.state.context,this,r),await this.options.onSuccess?.(l,e,this.state.context,r),await this.#n.config.onSettled?.(l,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(l,null,e,this.state.context,r),this.#r({type:"success",data:l}),l}catch(l){try{await this.#n.config.onError?.(l,e,this.state.context,this,r)}catch(c){Promise.reject(c)}try{await this.options.onError?.(l,e,this.state.context,r)}catch(c){Promise.reject(c)}try{await this.#n.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this,r)}catch(c){Promise.reject(c)}try{await this.options.onSettled?.(void 0,l,e,this.state.context,r)}catch(c){Promise.reject(c)}throw this.#r({type:"error",error:l}),l}finally{this.#n.runNext(this)}}#r(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),it.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function sk(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ik=class extends oi{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,r){const s=new ok({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:r});return this.add(s),s}add(e){this.#e.add(e);const t=ka(e);if(typeof t=="string"){const r=this.#t.get(t);r?r.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=ka(e);if(typeof t=="string"){const r=this.#t.get(t);if(r)if(r.length>1){const s=r.indexOf(e);s!==-1&&r.splice(s,1)}else r[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=ka(e);if(typeof t=="string"){const s=this.#t.get(t)?.find(a=>a.state.status==="pending");return!s||s===e}else return!0}runNext(e){const t=ka(e);return typeof t=="string"?this.#t.get(t)?.find(s=>s!==e&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){it.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>wg(t,r))}findAll(e={}){return this.getAll().filter(t=>wg(e,t))}notify(e){it.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return it.batch(()=>Promise.all(e.map(t=>t.continue().catch(kt))))}};function ka(e){return e.options.scope?.id}var ak=class extends oi{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){const s=t.queryKey,a=t.queryHash??vf(s,t);let l=this.get(a);return l||(l=new JR({client:e,queryKey:s,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(l)),l}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){it.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>xg(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>xg(e,r)):t}notify(e){it.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){it.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){it.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},lk=class{#e;#t;#n;#o;#r;#a;#i;#s;constructor(e={}){this.#e=e.queryCache||new ak,this.#t=e.mutationCache||new ik,this.#n=e.defaultOptions||{},this.#o=new Map,this.#r=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#i=wf.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=sl.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#i?.(),this.#i=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#e.build(this,t),s=r.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Sr(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:r})=>{const s=r.data;return[t,s]})}setQueryData(e,t,r){const s=this.defaultQueryOptions({queryKey:e}),l=this.#e.get(s.queryHash)?.state.data,c=UR(t,l);if(c!==void 0)return this.#e.build(this,s).setData(c,{...r,manual:!0})}setQueriesData(e,t,r){return it.batch(()=>this.#e.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;it.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#e;return it.batch(()=>(r.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},s=it.batch(()=>this.#e.findAll(e).map(a=>a.cancel(r)));return Promise.all(s).then(kt).catch(kt)}invalidateQueries(e,t={}){return it.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},s=it.batch(()=>this.#e.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let l=a.fetch(void 0,r);return r.throwOnError||(l=l.catch(kt)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(s).then(kt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#e.build(this,t);return r.isStaleByTime(Sr(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(kt).catch(kt)}fetchInfiniteQuery(e){return e.behavior=Rg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(kt).catch(kt)}ensureInfiniteQueryData(e){return e.behavior=Rg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return sl.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#o.set(Xs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#o.values()],r={};return t.forEach(s=>{qs(e,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(e,t){this.#r.set(Xs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],r={};return t.forEach(s=>{qs(e,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=vf(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===xf&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Q0=w.createContext(void 0),uk=e=>{const t=w.useContext(Q0);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ck=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(Q0.Provider,{value:e,children:t})),Y0=w.createContext(!1),dk=()=>w.useContext(Y0);Y0.Provider;function fk(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var hk=w.createContext(fk()),pk=()=>w.useContext(hk),mk=(e,t,r)=>{const s=r?.state.error&&typeof e.throwOnError=="function"?U0(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||s)&&(t.isReset()||(e.retryOnMount=!1))},gk=e=>{w.useEffect(()=>{e.clearReset()},[e])},yk=({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(a&&e.data===void 0||U0(r,[e.error,s])),vk=e=>{if(e.suspense){const r=a=>a==="static"?a:Math.max(a??1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...a)=>r(s(...a)):r(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},xk=(e,t)=>e.isLoading&&e.isFetching&&!t,wk=(e,t)=>e?.suspense&&t.isPending,Ng=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function bk(e,t,r){const s=dk(),a=pk(),l=uk(),c=l.defaultQueryOptions(e);l.getDefaultOptions().queries?._experimental_beforeQuery?.(c);const d=l.getQueryCache().get(c.queryHash);c._optimisticResults=s?"isRestoring":"optimistic",vk(c),mk(c,a,d),gk(a);const h=!l.getQueryCache().get(c.queryHash),[p]=w.useState(()=>new t(l,c)),m=p.getOptimisticResult(c),y=!s&&e.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(b=>{const v=y?p.subscribe(it.batchCalls(b)):kt;return p.updateResult(),v},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),w.useEffect(()=>{p.setOptions(c)},[c,p]),wk(c,m))throw Ng(c,p,a);if(yk({result:m,errorResetBoundary:a,throwOnError:c.throwOnError,query:d,suspense:c.suspense}))throw m.error;return l.getDefaultOptions().queries?._experimental_afterQuery?.(c,m),c.experimental_prefetchInRender&&!Gr&&xk(m,s)&&(h?Ng(c,p,a):d?.promise)?.catch(kt).finally(()=>{p.updateResult()}),c.notifyOnChangeProps?m:p.trackResult(m)}function Sk(e,t){return bk(e,ek)}function il(){return il=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},il.apply(this,arguments)}var wr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(wr||(wr={}));const Ag="popstate";function Ck(e){e===void 0&&(e={});function t(s,a){let{pathname:l,search:c,hash:d}=s.location;return Td("",{pathname:l,search:c,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(s,a){return typeof a=="string"?a:X0(a)}return Pk(t,r,null,e)}function Nt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function G0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ek(){return Math.random().toString(36).substr(2,8)}function jg(e,t){return{usr:e.state,key:e.key,idx:t}}function Td(e,t,r,s){return r===void 0&&(r=null),il({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?jl(t):t,{state:r,key:t&&t.key||s||Ek()})}function X0(e){let{pathname:t="/",search:r="",hash:s=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function jl(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let s=e.indexOf("?");s>=0&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}function Pk(e,t,r,s){s===void 0&&(s={});let{window:a=document.defaultView,v5Compat:l=!1}=s,c=a.history,d=wr.Pop,h=null,p=m();p==null&&(p=0,c.replaceState(il({},c.state,{idx:p}),""));function m(){return(c.state||{idx:null}).idx}function y(){d=wr.Pop;let E=m(),T=E==null?null:E-p;p=E,h&&h({action:d,location:S.location,delta:T})}function b(E,T){d=wr.Push;let R=Td(S.location,E,T);p=m()+1;let N=jg(R,p),A=S.createHref(R);try{c.pushState(N,"",A)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;a.location.assign(A)}l&&h&&h({action:d,location:S.location,delta:1})}function v(E,T){d=wr.Replace;let R=Td(S.location,E,T);p=m();let N=jg(R,p),A=S.createHref(R);c.replaceState(N,"",A),l&&h&&h({action:d,location:S.location,delta:0})}function P(E){let T=a.location.origin!=="null"?a.location.origin:a.location.href,R=typeof E=="string"?E:X0(E);return R=R.replace(/ $/,"%20"),Nt(T,"No window.location.(origin|href) available to create URL for href: "+R),new URL(R,T)}let S={get action(){return d},get location(){return e(a,c)},listen(E){if(h)throw new Error("A history only accepts one active listener");return a.addEventListener(Ag,y),h=E,()=>{a.removeEventListener(Ag,y),h=null}},createHref(E){return t(a,E)},createURL:P,encodeLocation(E){let T=P(E);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:b,replace:v,go(E){return c.go(E)}};return S}var Mg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Mg||(Mg={}));function Tk(e,t,r){return r===void 0&&(r="/"),Rk(e,t,r)}function Rk(e,t,r,s){let a=typeof t=="string"?jl(t):t,l=J0(a.pathname||"/",r);if(l==null)return null;let c=q0(e);kk(c);let d=null;for(let h=0;d==null&&h<c.length;++h){let p=zk(l);d=Ik(c[h],p)}return d}function q0(e,t,r,s){t===void 0&&(t=[]),r===void 0&&(r=[]),s===void 0&&(s="");let a=(l,c,d)=>{let h={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};h.relativePath.startsWith("/")&&(Nt(h.relativePath.startsWith(s),'Absolute route path "'+h.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),h.relativePath=h.relativePath.slice(s.length));let p=Vo([s,h.relativePath]),m=r.concat(h);l.children&&l.children.length>0&&(Nt(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),q0(l.children,t,m,p)),!(l.path==null&&!l.index)&&t.push({path:p,score:Lk(p,l.index),routesMeta:m})};return e.forEach((l,c)=>{var d;if(l.path===""||!((d=l.path)!=null&&d.includes("?")))a(l,c);else for(let h of Z0(l.path))a(l,c,h)}),t}function Z0(e){let t=e.split("/");if(t.length===0)return[];let[r,...s]=t,a=r.endsWith("?"),l=r.replace(/\?$/,"");if(s.length===0)return a?[l,""]:[l];let c=Z0(s.join("/")),d=[];return d.push(...c.map(h=>h===""?l:[l,h].join("/"))),a&&d.push(...c),d.map(h=>e.startsWith("/")&&h===""?"/":h)}function kk(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:_k(t.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}const Nk=/^:[\w-]+$/,Ak=3,jk=2,Mk=1,Dk=10,Ok=-2,Dg=e=>e==="*";function Lk(e,t){let r=e.split("/"),s=r.length;return r.some(Dg)&&(s+=Ok),t&&(s+=jk),r.filter(a=>!Dg(a)).reduce((a,l)=>a+(Nk.test(l)?Ak:l===""?Mk:Dk),s)}function _k(e,t){return e.length===t.length&&e.slice(0,-1).every((s,a)=>s===t[a])?e[e.length-1]-t[t.length-1]:0}function Ik(e,t,r){let{routesMeta:s}=e,a={},l="/",c=[];for(let d=0;d<s.length;++d){let h=s[d],p=d===s.length-1,m=l==="/"?t:t.slice(l.length)||"/",y=Fk({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},m),b=h.route;if(!y)return null;Object.assign(a,y.params),c.push({params:a,pathname:Vo([l,y.pathname]),pathnameBase:Bk(Vo([l,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(l=Vo([l,y.pathnameBase]))}return c}function Fk(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,s]=Vk(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let l=a[0],c=l.replace(/(.)\/+$/,"$1"),d=a.slice(1);return{params:s.reduce((p,m,y)=>{let{paramName:b,isOptional:v}=m;if(b==="*"){let S=d[y]||"";c=l.slice(0,l.length-S.length).replace(/(.)\/+$/,"$1")}const P=d[y];return v&&!P?p[b]=void 0:p[b]=(P||"").replace(/%2F/g,"/"),p},{}),pathname:l,pathnameBase:c,pattern:e}}function Vk(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),G0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let s=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,h)=>(s.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),s]}function zk(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return G0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function J0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,s=e.charAt(r);return s&&s!=="/"?null:e.slice(r)||"/"}const Vo=e=>e.join("/").replace(/\/\/+/g,"/"),Bk=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function Uk(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ex=["post","put","patch","delete"];new Set(ex);const $k=["get",...ex];new Set($k);function al(){return al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},al.apply(this,arguments)}const Wk=w.createContext(null),Hk=w.createContext(null),tx=w.createContext(null),Ml=w.createContext(null),Dl=w.createContext({outlet:null,matches:[],isDataRoute:!1}),nx=w.createContext(null);function Sf(){return w.useContext(Ml)!=null}function rx(){return Sf()||Nt(!1),w.useContext(Ml).location}function Kk(e,t){return Qk(e,t)}function Qk(e,t,r,s){Sf()||Nt(!1);let{navigator:a}=w.useContext(tx),{matches:l}=w.useContext(Dl),c=l[l.length-1],d=c?c.params:{};c&&c.pathname;let h=c?c.pathnameBase:"/";c&&c.route;let p=rx(),m;if(t){var y;let E=typeof t=="string"?jl(t):t;h==="/"||(y=E.pathname)!=null&&y.startsWith(h)||Nt(!1),m=E}else m=p;let b=m.pathname||"/",v=b;if(h!=="/"){let E=h.replace(/^\//,"").split("/");v="/"+b.replace(/^\//,"").split("/").slice(E.length).join("/")}let P=Tk(e,{pathname:v}),S=Zk(P&&P.map(E=>Object.assign({},E,{params:Object.assign({},d,E.params),pathname:Vo([h,a.encodeLocation?a.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?h:Vo([h,a.encodeLocation?a.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),l,r,s);return t&&S?w.createElement(Ml.Provider,{value:{location:al({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:wr.Pop}},S):S}function Yk(){let e=nN(),t=Uk(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),r?w.createElement("pre",{style:a},r):null,null)}const Gk=w.createElement(Yk,null);class Xk extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?w.createElement(Dl.Provider,{value:this.props.routeContext},w.createElement(nx.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qk(e){let{routeContext:t,match:r,children:s}=e,a=w.useContext(Wk);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),w.createElement(Dl.Provider,{value:t},s)}function Zk(e,t,r,s){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),s===void 0&&(s=null),e==null){var l;if(!r)return null;if(r.errors)e=r.matches;else if((l=s)!=null&&l.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let c=e,d=(a=r)==null?void 0:a.errors;if(d!=null){let m=c.findIndex(y=>y.route.id&&d?.[y.route.id]!==void 0);m>=0||Nt(!1),c=c.slice(0,Math.min(c.length,m+1))}let h=!1,p=-1;if(r&&s&&s.v7_partialHydration)for(let m=0;m<c.length;m++){let y=c[m];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(p=m),y.route.id){let{loaderData:b,errors:v}=r,P=y.route.loader&&b[y.route.id]===void 0&&(!v||v[y.route.id]===void 0);if(y.route.lazy||P){h=!0,p>=0?c=c.slice(0,p+1):c=[c[0]];break}}}return c.reduceRight((m,y,b)=>{let v,P=!1,S=null,E=null;r&&(v=d&&y.route.id?d[y.route.id]:void 0,S=y.route.errorElement||Gk,h&&(p<0&&b===0?(rN("route-fallback"),P=!0,E=null):p===b&&(P=!0,E=y.route.hydrateFallbackElement||null)));let T=t.concat(c.slice(0,b+1)),R=()=>{let N;return v?N=S:P?N=E:y.route.Component?N=w.createElement(y.route.Component,null):y.route.element?N=y.route.element:N=m,w.createElement(qk,{match:y,routeContext:{outlet:m,matches:T,isDataRoute:r!=null},children:N})};return r&&(y.route.ErrorBoundary||y.route.errorElement||b===0)?w.createElement(Xk,{location:r.location,revalidation:r.revalidation,component:S,error:v,children:R(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):R()},null)}var ox=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(ox||{});function Jk(e){let t=w.useContext(Hk);return t||Nt(!1),t}function eN(e){let t=w.useContext(Dl);return t||Nt(!1),t}function tN(e){let t=eN(),r=t.matches[t.matches.length-1];return r.route.id||Nt(!1),r.route.id}function nN(){var e;let t=w.useContext(nx),r=Jk(ox.UseRouteError),s=tN();return t!==void 0?t:(e=r.errors)==null?void 0:e[s]}const Og={};function rN(e,t,r){Og[e]||(Og[e]=!0)}function oN(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function Rd(e){Nt(!1)}function sN(e){let{basename:t="/",children:r=null,location:s,navigationType:a=wr.Pop,navigator:l,static:c=!1,future:d}=e;Sf()&&Nt(!1);let h=t.replace(/^\/*/,"/"),p=w.useMemo(()=>({basename:h,navigator:l,static:c,future:al({v7_relativeSplatPath:!1},d)}),[h,d,l,c]);typeof s=="string"&&(s=jl(s));let{pathname:m="/",search:y="",hash:b="",state:v=null,key:P="default"}=s,S=w.useMemo(()=>{let E=J0(m,h);return E==null?null:{location:{pathname:E,search:y,hash:b,state:v,key:P},navigationType:a}},[h,m,y,b,v,P,a]);return S==null?null:w.createElement(tx.Provider,{value:p},w.createElement(Ml.Provider,{children:r,value:S}))}function iN(e){let{children:t,location:r}=e;return Kk(kd(t),r)}new Promise(()=>{});function kd(e,t){t===void 0&&(t=[]);let r=[];return w.Children.forEach(e,(s,a)=>{if(!w.isValidElement(s))return;let l=[...t,a];if(s.type===w.Fragment){r.push.apply(r,kd(s.props.children,l));return}s.type!==Rd&&Nt(!1),!s.props.index||!s.props.children||Nt(!1);let c={id:s.props.id||l.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(c.children=kd(s.props.children,l)),r.push(c)}),r}const aN="6";try{window.__reactRouterVersion=aN}catch{}const lN="startTransition",Lg=wl[lN];function uN(e){let{basename:t,children:r,future:s,window:a}=e,l=w.useRef();l.current==null&&(l.current=Ck({window:a,v5Compat:!0}));let c=l.current,[d,h]=w.useState({action:c.action,location:c.location}),{v7_startTransition:p}=s||{},m=w.useCallback(y=>{p&&Lg?Lg(()=>h(y)):h(y)},[h,p]);return w.useLayoutEffect(()=>c.listen(m),[c,m]),w.useEffect(()=>oN(s),[s]),w.createElement(sN,{basename:t,children:r,location:d.location,navigationType:d.action,navigator:c,future:s})}var _g;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_g||(_g={}));var Ig;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ig||(Ig={}));async function Xr(e,t={}){const r=localStorage.getItem("STUDIO_API_KEY")||"",s={...t.headers,"x-api-key":r,"Content-Type":"application/json"},a=await fetch(e,{...t,headers:s});return a.status===401&&console.error("Unauthorized: Invalid API Key"),a}function cN({isOpen:e,onClose:t,selectedTable:r,onSelectTable:s}){const[a,l]=w.useState(!0),{data:c=[],isLoading:d}=Sk({queryKey:["tables"],queryFn:async()=>{const h=await Xr("/api/tables");if(!h.ok)throw new Error("Failed to fetch tables");return h.json()}});return x.jsxs(x.Fragment,{children:[e&&x.jsx("div",{className:"fixed inset-0 bg-black/50 lg:hidden z-40",onClick:t}),x.jsxs("aside",{className:xe("fixed lg:static inset-y-0 left-0 z-50 w-64 border-r border-sidebar-border bg-sidebar-background transition-transform duration-300 ease-in-out overflow-hidden flex flex-col",!e&&"-translate-x-full lg:translate-x-0"),children:[x.jsx("div",{className:"p-6 border-b border-sidebar-border",children:x.jsx("div",{className:"flex items-center justify-between mb-4",children:x.jsx("h2",{className:"text-sm font-semibold text-sidebar-foreground",children:"Database"})})}),x.jsxs("nav",{className:"flex-1 overflow-auto p-4 space-y-1",children:[x.jsxs("button",{onClick:()=>{l(!a)},className:xe("w-full flex items-center gap-3 px-3 py-2.5 rounded-md text-sm font-medium transition-colors duration-200","bg-sidebar-primary/20 text-sidebar-primary"),children:[x.jsx(af,{className:"w-4 h-4 flex-shrink-0"}),x.jsx("span",{className:"flex-1 text-left truncate",children:"MySQL Database"}),x.jsx(oE,{className:xe("w-4 h-4 flex-shrink-0 transition-transform duration-200",a?"rotate-0":"-rotate-90")})]}),a&&x.jsxs("div",{className:"ml-2 mt-1 space-y-1",children:[d&&x.jsx("div",{className:"px-3 py-2 text-sm text-muted-foreground",children:"Loading tables..."}),c.map(h=>x.jsxs("button",{onClick:()=>{s(h),t()},className:xe("w-full flex items-center gap-3 px-3 py-2 rounded-md text-sm transition-colors duration-200 text-sidebar-foreground hover:bg-sidebar-accent",r===h?"bg-sidebar-primary/20 text-sidebar-primary":""),children:[x.jsx(el,{className:"w-4 h-4 flex-shrink-0"}),x.jsx("span",{className:"flex-1 text-left truncate",children:h})]},h)),!d&&c.length===0&&x.jsx("div",{className:"px-3 py-2 text-sm text-muted-foreground",children:"No tables found"})]})]}),x.jsx("div",{className:"p-4 border-t border-sidebar-border",children:x.jsx("button",{className:"w-full px-3 py-2 text-sm text-sidebar-foreground hover:bg-sidebar-accent rounded-md transition-colors",children:"Settings"})})]})]})}function dN({children:e,selectedTable:t,onSelectTable:r,view:s,onViewChange:a,dbName:l,schemaColumns:c,onSchemaColumnsChange:d}){const[h,p]=w.useState(!0),m=s==="data",y=typeof window<"u"&&new URLSearchParams(window.location.search).get("export")==="true";return x.jsxs("div",{className:xe("flex bg-background",y?"h-auto overflow-visible":"h-screen overflow-hidden"),children:[m&&x.jsx(cN,{isOpen:h,onClose:()=>p(!1),selectedTable:t,onSelectTable:r}),x.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[x.jsxs("header",{className:" flex items-center justify-between px-6 py-4 border-b border-border bg-background",children:[x.jsxs("div",{className:"flex items-center gap-4",children:[m&&x.jsx("button",{onClick:()=>p(!h),className:"lg:hidden p-2 hover:bg-secondary rounded-md transition-colors",children:h?x.jsx(lf,{className:"w-5 h-5"}):x.jsx(CE,{className:"w-5 h-5"})}),x.jsxs("h1",{className:"text-xl font-semibold flex items-center gap-2",children:[x.jsx("span",{className:"w-2 h-2 rounded-full bg-primary"}),l?x.jsxs("span",{className:"flex items-center gap-2",children:[x.jsx("span",{className:"text-muted-foreground font-normal",children:"Database:"}),l]}):"Database Studio"]})]}),x.jsxs("div",{className:"print:hidden flex items-center gap-4",children:[s==="schema"&&x.jsxs("div",{className:"flex items-center gap-2 px-2 py-1 bg-secondary rounded-md border border-border",children:[x.jsx(pE,{className:"w-4 h-4 text-muted-foreground"}),x.jsx("div",{className:"flex items-center gap-1",children:[1,2,3,4].map(b=>x.jsx("button",{onClick:()=>d(b),className:xe("w-7 h-7 flex items-center justify-center text-xs font-bold rounded transition-all",c===b?"bg-primary text-primary-foreground shadow-sm":"text-muted-foreground hover:bg-background hover:text-foreground"),children:b},b))})]}),x.jsxs("div",{className:" flex items-center rounded-md p-1 bg-secondary",children:[x.jsxs("button",{onClick:()=>a("data"),className:xe("flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md transition-colors",s==="data"?"bg-primary text-primary-foreground shadow-sm":"text-muted-foreground hover:bg-secondary/70"),children:[x.jsx(DE,{className:"w-4 h-4"}),"Data View"]}),x.jsxs("button",{onClick:()=>a("schema"),className:xe("flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md transition-colors",s==="schema"?"bg-primary text-primary-foreground shadow-sm":"text-muted-foreground hover:bg-secondary/70"),children:[x.jsx(bE,{className:"w-4 h-4"}),"Schema View"]}),x.jsxs("button",{onClick:()=>a("canvas"),className:xe("flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md transition-colors",s==="canvas"?"bg-primary text-primary-foreground shadow-sm":"text-muted-foreground hover:bg-secondary/70"),children:[x.jsx(RE,{className:"w-4 h-4"}),"Canvas View"]})]})]})]}),x.jsx("div",{className:"flex-1 overflow-auto",children:e})]})]})}const Na=10;function fN({selectedTable:e}){const[t,r]=w.useState(""),[s,a]=w.useState(null),[l,c]=w.useState(1),[d,h]=w.useState(!1),[p,m]=w.useState(null);if(w.useEffect(()=>{r(""),c(1)},[e]),w.useEffect(()=>{if(!e)return;async function v(){try{h(!0),m(null);const P=await Xr(`/api/table/${e}?page=${l}&limit=${Na}&search=${t}`);if(!P.ok)throw new Error("Failed to fetch table");const S=await P.json();console.log("data+++",S),a(S)}catch(P){m(P.message)}finally{h(!1)}}v()},[e,l,t]),!e)return x.jsx(pN,{title:"No Table Selected",description:"Select a table from the sidebar to view its content and manage records."});if(d)return x.jsx(Fg,{message:"Loading table..."});if(p)return x.jsx(Fg,{message:p});if(!s)return null;const y=Math.max(1,Math.ceil(s.total/Na)),b=(l-1)*Na;return x.jsxs("div",{className:"flex flex-col h-full",children:[x.jsx("div",{className:"px-8 py-6 border-b border-border bg-background",children:x.jsxs("div",{className:"mb-4",children:[x.jsx("h2",{className:"text-2xl font-bold text-foreground",children:s.name}),x.jsxs("p",{className:"text-sm text-muted-foreground mt-1",children:[s.total," rows"]})]})}),x.jsx("div",{className:"flex-1 overflow-auto",children:x.jsxs("table",{className:"w-full text-sm",children:[x.jsx("thead",{className:"sticky top-0 bg-secondary border-b border-border",children:x.jsxs("tr",{children:[s.columns.map(v=>x.jsxs("th",{className:"px-6 py-3 text-left font-semibold whitespace-nowrap",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("span",{children:v.name}),v.key==="PRI"&&x.jsx("span",{className:"inline-flex px-2 py-0.5 rounded text-xs font-mono bg-primary/10 text-primary",children:"PK"}),v.key==="UNI"&&x.jsx("span",{className:"inline-flex px-2 py-0.5 rounded text-xs font-mono bg-orange/10 text-orange",children:"U"})]}),x.jsx("p",{className:"text-xs text-muted-foreground font-normal mt-1",children:v.type})]},v.name)),x.jsx("th",{className:"px-6 py-3 w-12"})]})}),x.jsx("tbody",{className:"divide-y divide-border",children:s.rows.length===0?x.jsx("tr",{children:x.jsx("td",{colSpan:s.columns.length+1,className:"px-6 py-12 text-center text-muted-foreground",children:"No data found"})}):s.rows.map((v,P)=>x.jsx("tr",{className:"hover:bg-secondary/50 transition-colors",children:s.columns.map(S=>x.jsx("td",{className:"px-6 py-4 font-mono text-xs",children:x.jsx(hN,{value:v[S.name],type:S.type})},S.name))},v.id??P))})]})}),s.total>0&&x.jsxs("div",{className:"flex items-center justify-between px-8 py-4 border-t border-border bg-background",children:[x.jsxs("div",{className:"text-sm text-muted-foreground",children:["Showing"," ",x.jsx("span",{className:"font-semibold text-foreground",children:b+1})," ","to"," ",x.jsx("span",{className:"font-semibold text-foreground",children:Math.min(b+Na,s.total)})," ","of"," ",x.jsx("span",{className:"font-semibold text-foreground",children:s.total})]}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(Aa,{disabled:l===1,onClick:()=>c(1),children:x.jsx(cE,{className:"w-4 h-4"})}),x.jsx(Aa,{disabled:l===1,onClick:()=>c(v=>v-1),children:x.jsx(iE,{className:"w-4 h-4"})}),x.jsxs("span",{className:"text-sm text-muted-foreground",children:[l," of ",y]}),x.jsx(Aa,{disabled:l===y,onClick:()=>c(v=>v+1),children:x.jsx(lE,{className:"w-4 h-4"})}),x.jsx(Aa,{disabled:l===y,onClick:()=>c(y),children:x.jsx(fE,{className:"w-4 h-4"})})]})]})]})}function hN({value:e,type:t}){return e==null?x.jsx("span",{className:"text-muted-foreground italic",children:"null"}):t==="BOOLEAN"?x.jsx("span",{className:xe("inline-flex px-2 py-1 rounded text-xs font-semibold",e?"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400":"bg-gray-100 text-gray-700 dark:bg-gray-900/30 dark:text-gray-400"),children:String(e)}):t==="UUID"||t==="ObjectId"?x.jsxs("span",{title:String(e),className:"truncate block max-w-xs text-muted-foreground",children:[String(e).slice(0,8),"..."]}):t==="TIMESTAMP"||t==="DATE"?x.jsx("span",{className:"text-muted-foreground",children:new Date(e).toLocaleString()}):x.jsx("span",{children:String(e)})}function Aa({children:e,disabled:t,onClick:r}){return x.jsx("button",{onClick:r,disabled:t,className:"p-2 hover:bg-secondary rounded-md transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:e})}function Fg({message:e}){return x.jsx("div",{className:"flex items-center justify-center h-full",children:x.jsx("p",{className:"text-muted-foreground",children:e})})}function pN({title:e,description:t,showActions:r=!1}){return x.jsx("div",{className:"flex items-center justify-center h-full",children:x.jsxs("div",{className:"text-center max-w-md",children:[x.jsx("div",{className:"w-20 h-20 rounded-lg bg-card border border-border mx-auto mb-6"}),x.jsx("h2",{className:"text-xl font-semibold mb-2",children:e}),x.jsx("p",{className:"text-muted-foreground mb-6",children:t}),r&&x.jsxs("div",{className:"flex gap-3 justify-center",children:[x.jsx("button",{className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 text-sm font-medium",children:"Create Table"}),x.jsx("button",{className:"px-4 py-2 border border-input hover:bg-secondary rounded-md text-sm font-medium",children:"Documentation"})]})]})})}const Vg=[{bg:"bg-blue-500/5",border:"border-blue-500/20",icon:"text-blue-500",headerBg:"bg-blue-500/10"},{bg:"bg-purple-500/5",border:"border-purple-500/20",icon:"text-purple-500",headerBg:"bg-purple-500/10"},{bg:"bg-emerald-500/5",border:"border-emerald-500/20",icon:"text-emerald-500",headerBg:"bg-emerald-500/10"},{bg:"bg-orange-500/5",border:"border-orange-500/20",icon:"text-orange-500",headerBg:"bg-orange-500/10"},{bg:"bg-pink-500/5",border:"border-pink-500/20",icon:"text-pink-500",headerBg:"bg-pink-500/10"},{bg:"bg-indigo-500/5",border:"border-indigo-500/20",icon:"text-indigo-500",headerBg:"bg-indigo-500/10"},{bg:"bg-rose-500/5",border:"border-rose-500/20",icon:"text-rose-500",headerBg:"bg-rose-500/10"},{bg:"bg-amber-500/5",border:"border-amber-500/20",icon:"text-amber-500",headerBg:"bg-amber-500/10"}];function Ic({message:e}){return x.jsx("div",{className:"flex items-center justify-center h-full",children:x.jsx("p",{className:"text-muted-foreground",children:e})})}function mN({columns:e=3}){const[t,r]=w.useState([]),[s,a]=w.useState(!0),[l,c]=w.useState(null),d=w.useRef(null),h=new URLSearchParams(window.location.search).get("export")==="true";w.useEffect(()=>{async function b(){try{a(!0),c(null);const v=await Xr("/api/tables");if(!v.ok)throw new Error("Failed to fetch table names");const P=await v.json(),S=await Promise.all(P.map(async E=>{const T=await Xr(`/api/table/${E}/schema`);if(!T.ok)throw new Error(`Failed to fetch schema for ${E}`);return T.json()}));r(S)}catch(v){c(v.message)}finally{a(!1)}}b()},[]);const p=async()=>{window.open("/api/export-pdf","_blank")};if(s)return x.jsx(Ic,{message:"Loading schemas..."});if(l)return x.jsx(Ic,{message:l});if(t.length===0)return x.jsx(Ic,{message:"No table schemas found. Create a table to get started."});const y={1:"grid-cols-1",2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4"}[h?1:e]||"grid-cols-1 md:grid-cols-2 lg:grid-cols-3";return x.jsxs("div",{className:"flex flex-col h-full",children:[!h&&x.jsx("div",{className:"px-8 py-6 border-b border-border bg-background flex justify-end",children:x.jsxs("button",{onClick:p,className:"flex items-center gap-2 px-4 py-2 border border-input hover:bg-secondary rounded-md text-sm font-medium",children:[x.jsx(yE,{className:"w-4 h-4"}),"Export to PDF"]})}),x.jsx("div",{ref:d,id:"schema-grid",className:xe("p-8 grid gap-6",y),children:t.map((b,v)=>{const P=Vg[v%Vg.length];return x.jsxs("div",{className:xe("border rounded-xl shadow-sm overflow-hidden transition-all hover:shadow-md hover:-translate-y-1",P.bg,P.border),children:[x.jsxs("div",{className:xe("p-5 border-b flex items-center gap-3",P.headerBg,P.border),children:[x.jsx("div",{className:xe("p-2 rounded-lg bg-background/50 backdrop-blur-sm shadow-sm",P.icon),children:x.jsx(el,{className:"w-5 h-5"})}),x.jsx("h3",{className:"text-lg font-bold text-foreground tracking-tight",children:b.name})]}),x.jsxs("div",{className:"p-5",children:[x.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[x.jsx("div",{className:"h-px flex-1 bg-border/50"}),x.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-muted-foreground/50",children:"Columns"}),x.jsx("div",{className:"h-px flex-1 bg-border/50"})]}),x.jsx("ul",{className:"space-y-3",children:b.columns.map(S=>x.jsxs("li",{className:"flex items-center justify-between group",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("div",{className:xe("w-1.5 h-1.5 rounded-full",S.key==="PRI"?"bg-blue-500":S.key==="UNI"?"bg-yellow-500":"bg-muted-foreground/30")}),x.jsx("span",{className:"font-mono text-sm font-medium text-foreground group-hover:text-primary transition-colors whitespace-nowrap overflow-hidden text-ellipsis",title:S.name,children:S.name})]}),x.jsxs("div",{className:"flex items-center gap-2",children:[S.isPrimary&&x.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] font-bold bg-yellow-500/10 text-yellow-600 border border-yellow-500/20 uppercase",children:"PK"}),x.jsx("span",{className:"px-2 py-0.5 rounded-md text-[10px] font-mono bg-background/50 border border-border/50 text-muted-foreground uppercase",children:S.type})]})]},S.name))})]})]},b.name)})})]})}const Cf=w.createContext({});function Ef(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const gN=typeof window<"u",sx=gN?w.useLayoutEffect:w.useEffect,Ol=w.createContext(null);function Pf(e,t){e.indexOf(t)===-1&&e.push(t)}function ll(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const An=(e,t,r)=>r>t?t:r<e?e:r;let Tf=()=>{};const Kn={},ix=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ax(e){return typeof e=="object"&&e!==null}const lx=e=>/^0[^.\s]+$/u.test(e);function ux(e){let t;return()=>(t===void 0&&(t=e()),t)}const Yt=e=>e,yN=(e,t)=>r=>t(e(r)),si=(...e)=>e.reduce(yN),Zs=(e,t,r)=>{const s=t-e;return s===0?1:(r-e)/s};class Rf{constructor(){this.subscriptions=[]}add(t){return Pf(this.subscriptions,t),()=>ll(this.subscriptions,t)}notify(t,r,s){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,r,s);else for(let l=0;l<a;l++){const c=this.subscriptions[l];c&&c(t,r,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _t=e=>e*1e3,Qt=e=>e/1e3;function cx(e,t){return t?e*(1e3/t):0}const dx=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,vN=1e-7,xN=12;function wN(e,t,r,s,a){let l,c,d=0;do c=t+(r-t)/2,l=dx(c,s,a)-e,l>0?r=c:t=c;while(Math.abs(l)>vN&&++d<xN);return c}function ii(e,t,r,s){if(e===t&&r===s)return Yt;const a=l=>wN(l,0,1,e,r);return l=>l===0||l===1?l:dx(a(l),t,s)}const fx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,hx=e=>t=>1-e(1-t),px=ii(.33,1.53,.69,.99),kf=hx(px),mx=fx(kf),gx=e=>(e*=2)<1?.5*kf(e):.5*(2-Math.pow(2,-10*(e-1))),Nf=e=>1-Math.sin(Math.acos(e)),yx=hx(Nf),vx=fx(Nf),bN=ii(.42,0,1,1),SN=ii(0,0,.58,1),xx=ii(.42,0,.58,1),CN=e=>Array.isArray(e)&&typeof e[0]!="number",wx=e=>Array.isArray(e)&&typeof e[0]=="number",EN={linear:Yt,easeIn:bN,easeInOut:xx,easeOut:SN,circIn:Nf,circInOut:vx,circOut:yx,backIn:kf,backInOut:mx,backOut:px,anticipate:gx},PN=e=>typeof e=="string",zg=e=>{if(wx(e)){Tf(e.length===4);const[t,r,s,a]=e;return ii(t,r,s,a)}else if(PN(e))return EN[e];return e},ja=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function TN(e,t){let r=new Set,s=new Set,a=!1,l=!1;const c=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function h(m){c.has(m)&&(p.schedule(m),e()),m(d)}const p={schedule:(m,y=!1,b=!1)=>{const P=b&&a?r:s;return y&&c.add(m),P.has(m)||P.add(m),m},cancel:m=>{s.delete(m),c.delete(m)},process:m=>{if(d=m,a){l=!0;return}a=!0,[r,s]=[s,r],r.forEach(h),r.clear(),a=!1,l&&(l=!1,p.process(m))}};return p}const RN=40;function bx(e,t){let r=!1,s=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>r=!0,c=ja.reduce((N,A)=>(N[A]=TN(l),N),{}),{setup:d,read:h,resolveKeyframes:p,preUpdate:m,update:y,preRender:b,render:v,postRender:P}=c,S=()=>{const N=Kn.useManualTiming?a.timestamp:performance.now();r=!1,Kn.useManualTiming||(a.delta=s?1e3/60:Math.max(Math.min(N-a.timestamp,RN),1)),a.timestamp=N,a.isProcessing=!0,d.process(a),h.process(a),p.process(a),m.process(a),y.process(a),b.process(a),v.process(a),P.process(a),a.isProcessing=!1,r&&t&&(s=!1,e(S))},E=()=>{r=!0,s=!0,a.isProcessing||e(S)};return{schedule:ja.reduce((N,A)=>{const O=c[A];return N[A]=(F,$=!1,B=!1)=>(r||E(),O.schedule(F,$,B)),N},{}),cancel:N=>{for(let A=0;A<ja.length;A++)c[ja[A]].cancel(N)},state:a,steps:c}}const{schedule:De,cancel:Pr,state:st,steps:Fc}=bx(typeof requestAnimationFrame<"u"?requestAnimationFrame:Yt,!0);let $a;function kN(){$a=void 0}const yt={now:()=>($a===void 0&&yt.set(st.isProcessing||Kn.useManualTiming?st.timestamp:performance.now()),$a),set:e=>{$a=e,queueMicrotask(kN)}},Sx=e=>t=>typeof t=="string"&&t.startsWith(e),Cx=Sx("--"),NN=Sx("var(--"),Af=e=>NN(e)?AN.test(e.split("/*")[0].trim()):!1,AN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Bg(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Xo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Js={...Xo,transform:e=>An(0,1,e)},Ma={...Xo,default:1},Hs=e=>Math.round(e*1e5)/1e5,jf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function jN(e){return e==null}const MN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Mf=(e,t)=>r=>!!(typeof r=="string"&&MN.test(r)&&r.startsWith(e)||t&&!jN(r)&&Object.prototype.hasOwnProperty.call(r,t)),Ex=(e,t,r)=>s=>{if(typeof s!="string")return s;const[a,l,c,d]=s.match(jf);return{[e]:parseFloat(a),[t]:parseFloat(l),[r]:parseFloat(c),alpha:d!==void 0?parseFloat(d):1}},DN=e=>An(0,255,e),Vc={...Xo,transform:e=>Math.round(DN(e))},Hr={test:Mf("rgb","red"),parse:Ex("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:s=1})=>"rgba("+Vc.transform(e)+", "+Vc.transform(t)+", "+Vc.transform(r)+", "+Hs(Js.transform(s))+")"};function ON(e){let t="",r="",s="",a="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),s=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),s=e.substring(3,4),a=e.substring(4,5),t+=t,r+=r,s+=s,a+=a),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(s,16),alpha:a?parseInt(a,16)/255:1}}const Nd={test:Mf("#"),parse:ON,transform:Hr.transform},ai=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),vr=ai("deg"),kn=ai("%"),ae=ai("px"),LN=ai("vh"),_N=ai("vw"),Ug={...kn,parse:e=>kn.parse(e)/100,transform:e=>kn.transform(e*100)},Mo={test:Mf("hsl","hue"),parse:Ex("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:s=1})=>"hsla("+Math.round(e)+", "+kn.transform(Hs(t))+", "+kn.transform(Hs(r))+", "+Hs(Js.transform(s))+")"},Ge={test:e=>Hr.test(e)||Nd.test(e)||Mo.test(e),parse:e=>Hr.test(e)?Hr.parse(e):Mo.test(e)?Mo.parse(e):Nd.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Hr.transform(e):Mo.transform(e),getAnimatableNone:e=>{const t=Ge.parse(e);return t.alpha=0,Ge.transform(t)}},IN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function FN(e){return isNaN(e)&&typeof e=="string"&&(e.match(jf)?.length||0)+(e.match(IN)?.length||0)>0}const Px="number",Tx="color",VN="var",zN="var(",$g="${}",BN=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Wo(e){const t=e.toString(),r=[],s={color:[],number:[],var:[]},a=[];let l=0;const d=t.replace(BN,h=>(Ge.test(h)?(s.color.push(l),a.push(Tx),r.push(Ge.parse(h))):h.startsWith(zN)?(s.var.push(l),a.push(VN),r.push(h)):(s.number.push(l),a.push(Px),r.push(parseFloat(h))),++l,$g)).split($g);return{values:r,split:d,indexes:s,types:a}}function UN(e){return Wo(e).values}function Rx({split:e,types:t}){const r=e.length;return s=>{let a="";for(let l=0;l<r;l++)if(a+=e[l],s[l]!==void 0){const c=t[l];c===Px?a+=Hs(s[l]):c===Tx?a+=Ge.transform(s[l]):a+=s[l]}return a}}function $N(e){return Rx(Wo(e))}const WN=e=>typeof e=="number"?0:Ge.test(e)?Ge.getAnimatableNone(e):e,HN=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:WN(e);function KN(e){const t=Wo(e);return Rx(t)(t.values.map((s,a)=>HN(s,t.split[a])))}const un={test:FN,parse:UN,createTransformer:$N,getAnimatableNone:KN};function zc(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function QN({hue:e,saturation:t,lightness:r,alpha:s}){e/=360,t/=100,r/=100;let a=0,l=0,c=0;if(!t)a=l=c=r;else{const d=r<.5?r*(1+t):r+t-r*t,h=2*r-d;a=zc(h,d,e+1/3),l=zc(h,d,e),c=zc(h,d,e-1/3)}return{red:Math.round(a*255),green:Math.round(l*255),blue:Math.round(c*255),alpha:s}}function ul(e,t){return r=>r>0?t:e}const Be=(e,t,r)=>e+(t-e)*r,Bc=(e,t,r)=>{const s=e*e,a=r*(t*t-s)+s;return a<0?0:Math.sqrt(a)},YN=[Nd,Hr,Mo],GN=e=>YN.find(t=>t.test(e));function Wg(e){const t=GN(e);if(!t)return!1;let r=t.parse(e);return t===Mo&&(r=QN(r)),r}const Hg=(e,t)=>{const r=Wg(e),s=Wg(t);if(!r||!s)return ul(e,t);const a={...r};return l=>(a.red=Bc(r.red,s.red,l),a.green=Bc(r.green,s.green,l),a.blue=Bc(r.blue,s.blue,l),a.alpha=Be(r.alpha,s.alpha,l),Hr.transform(a))},Ad=new Set(["none","hidden"]);function XN(e,t){return Ad.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function qN(e,t){return r=>Be(e,t,r)}function Df(e){return typeof e=="number"?qN:typeof e=="string"?Af(e)?ul:Ge.test(e)?Hg:eA:Array.isArray(e)?kx:typeof e=="object"?Ge.test(e)?Hg:ZN:ul}function kx(e,t){const r=[...e],s=r.length,a=e.map((l,c)=>Df(l)(l,t[c]));return l=>{for(let c=0;c<s;c++)r[c]=a[c](l);return r}}function ZN(e,t){const r={...e,...t},s={};for(const a in r)e[a]!==void 0&&t[a]!==void 0&&(s[a]=Df(e[a])(e[a],t[a]));return a=>{for(const l in s)r[l]=s[l](a);return r}}function JN(e,t){const r=[],s={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const l=t.types[a],c=e.indexes[l][s[l]],d=e.values[c]??0;r[a]=d,s[l]++}return r}const eA=(e,t)=>{const r=un.createTransformer(t),s=Wo(e),a=Wo(t);return s.indexes.var.length===a.indexes.var.length&&s.indexes.color.length===a.indexes.color.length&&s.indexes.number.length>=a.indexes.number.length?Ad.has(e)&&!a.values.length||Ad.has(t)&&!s.values.length?XN(e,t):si(kx(JN(s,a),a.values),r):ul(e,t)};function Nx(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?Be(e,t,r):Df(e)(e,t)}const tA=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>De.update(t,r),stop:()=>Pr(t),now:()=>st.isProcessing?st.timestamp:yt.now()}},Ax=(e,t,r=10)=>{let s="";const a=Math.max(Math.round(t/r),2);for(let l=0;l<a;l++)s+=Math.round(e(l/(a-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},cl=2e4;function Of(e){let t=0;const r=50;let s=e.next(t);for(;!s.done&&t<cl;)t+=r,s=e.next(t);return t>=cl?1/0:t}function nA(e,t=100,r){const s=r({...e,keyframes:[0,t]}),a=Math.min(Of(s),cl);return{type:"keyframes",ease:l=>s.next(a*l).value/t,duration:Qt(a)}}const We={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function jd(e,t){return e*Math.sqrt(1-t*t)}const rA=12;function oA(e,t,r){let s=r;for(let a=1;a<rA;a++)s=s-e(s)/t(s);return s}const Uc=.001;function sA({duration:e=We.duration,bounce:t=We.bounce,velocity:r=We.velocity,mass:s=We.mass}){let a,l,c=1-t;c=An(We.minDamping,We.maxDamping,c),e=An(We.minDuration,We.maxDuration,Qt(e)),c<1?(a=p=>{const m=p*c,y=m*e,b=m-r,v=jd(p,c),P=Math.exp(-y);return Uc-b/v*P},l=p=>{const y=p*c*e,b=y*r+r,v=Math.pow(c,2)*Math.pow(p,2)*e,P=Math.exp(-y),S=jd(Math.pow(p,2),c);return(-a(p)+Uc>0?-1:1)*((b-v)*P)/S}):(a=p=>{const m=Math.exp(-p*e),y=(p-r)*e+1;return-Uc+m*y},l=p=>{const m=Math.exp(-p*e),y=(r-p)*(e*e);return m*y});const d=5/e,h=oA(a,l,d);if(e=_t(e),isNaN(h))return{stiffness:We.stiffness,damping:We.damping,duration:e};{const p=Math.pow(h,2)*s;return{stiffness:p,damping:c*2*Math.sqrt(s*p),duration:e}}}const iA=["duration","bounce"],aA=["stiffness","damping","mass"];function Kg(e,t){return t.some(r=>e[r]!==void 0)}function lA(e){let t={velocity:We.velocity,stiffness:We.stiffness,damping:We.damping,mass:We.mass,isResolvedFromDuration:!1,...e};if(!Kg(e,aA)&&Kg(e,iA))if(t.velocity=0,e.visualDuration){const r=e.visualDuration,s=2*Math.PI/(r*1.2),a=s*s,l=2*An(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:We.mass,stiffness:a,damping:l}}else{const r=sA({...e,velocity:0});t={...t,...r,mass:We.mass},t.isResolvedFromDuration=!0}return t}function dl(e=We.visualDuration,t=We.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:a}=r;const l=r.keyframes[0],c=r.keyframes[r.keyframes.length-1],d={done:!1,value:l},{stiffness:h,damping:p,mass:m,duration:y,velocity:b,isResolvedFromDuration:v}=lA({...r,velocity:-Qt(r.velocity||0)}),P=b||0,S=p/(2*Math.sqrt(h*m)),E=c-l,T=Qt(Math.sqrt(h/m)),R=Math.abs(E)<5;s||(s=R?We.restSpeed.granular:We.restSpeed.default),a||(a=R?We.restDelta.granular:We.restDelta.default);let N,A,O,F,$,B;if(S<1)O=jd(T,S),F=(P+S*T*E)/O,N=W=>{const ee=Math.exp(-S*T*W);return c-ee*(F*Math.sin(O*W)+E*Math.cos(O*W))},$=S*T*F+E*O,B=S*T*E-F*O,A=W=>Math.exp(-S*T*W)*($*Math.sin(O*W)+B*Math.cos(O*W));else if(S===1){N=ee=>c-Math.exp(-T*ee)*(E+(P+T*E)*ee);const W=P+T*E;A=ee=>Math.exp(-T*ee)*(T*W*ee-P)}else{const W=T*Math.sqrt(S*S-1);N=q=>{const he=Math.exp(-S*T*q),re=Math.min(W*q,300);return c-he*((P+S*T*E)*Math.sinh(re)+W*E*Math.cosh(re))/W};const ee=(P+S*T*E)/W,X=S*T*ee-E*W,de=S*T*E-ee*W;A=q=>{const he=Math.exp(-S*T*q),re=Math.min(W*q,300);return he*(X*Math.sinh(re)+de*Math.cosh(re))}}const H={calculatedDuration:v&&y||null,velocity:W=>_t(A(W)),next:W=>{if(!v&&S<1){const X=Math.exp(-S*T*W),de=Math.sin(O*W),q=Math.cos(O*W),he=c-X*(F*de+E*q),re=_t(X*($*de+B*q));return d.done=Math.abs(re)<=s&&Math.abs(c-he)<=a,d.value=d.done?c:he,d}const ee=N(W);if(v)d.done=W>=y;else{const X=_t(A(W));d.done=Math.abs(X)<=s&&Math.abs(c-ee)<=a}return d.value=d.done?c:ee,d},toString:()=>{const W=Math.min(Of(H),cl),ee=Ax(X=>H.next(W*X).value,W,30);return W+"ms "+ee},toTransition:()=>{}};return H}dl.applyToOptions=e=>{const t=nA(e,100,dl);return e.ease=t.ease,e.duration=_t(t.duration),e.type="keyframes",e};const uA=5;function jx(e,t,r){const s=Math.max(t-uA,0);return cx(r-e(s),t-s)}function Md({keyframes:e,velocity:t=0,power:r=.8,timeConstant:s=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:c,min:d,max:h,restDelta:p=.5,restSpeed:m}){const y=e[0],b={done:!1,value:y},v=B=>d!==void 0&&B<d||h!==void 0&&B>h,P=B=>d===void 0?h:h===void 0||Math.abs(d-B)<Math.abs(h-B)?d:h;let S=r*t;const E=y+S,T=c===void 0?E:c(E);T!==E&&(S=T-y);const R=B=>-S*Math.exp(-B/s),N=B=>T+R(B),A=B=>{const H=R(B),W=N(B);b.done=Math.abs(H)<=p,b.value=b.done?T:W};let O,F;const $=B=>{v(b.value)&&(O=B,F=dl({keyframes:[b.value,P(b.value)],velocity:jx(N,B,b.value),damping:a,stiffness:l,restDelta:p,restSpeed:m}))};return $(0),{calculatedDuration:null,next:B=>{let H=!1;return!F&&O===void 0&&(H=!0,A(B),$(B)),O!==void 0&&B>=O?F.next(B-O):(!H&&A(B),b)}}}function cA(e,t,r){const s=[],a=r||Kn.mix||Nx,l=e.length-1;for(let c=0;c<l;c++){let d=a(e[c],e[c+1]);if(t){const h=Array.isArray(t)?t[c]||Yt:t;d=si(h,d)}s.push(d)}return s}function dA(e,t,{clamp:r=!0,ease:s,mixer:a}={}){const l=e.length;if(Tf(l===t.length),l===1)return()=>t[0];if(l===2&&t[0]===t[1])return()=>t[1];const c=e[0]===e[1];e[0]>e[l-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=cA(t,s,a),h=d.length,p=m=>{if(c&&m<e[0])return t[0];let y=0;if(h>1)for(;y<e.length-2&&!(m<e[y+1]);y++);const b=Zs(e[y],e[y+1],m);return d[y](b)};return r?m=>p(An(e[0],e[l-1],m)):p}function fA(e,t){const r=e[e.length-1];for(let s=1;s<=t;s++){const a=Zs(0,t,s);e.push(Be(r,1,a))}}function hA(e){const t=[0];return fA(t,e.length-1),t}function pA(e,t){return e.map(r=>r*t)}function mA(e,t){return e.map(()=>t||xx).splice(0,e.length-1)}function Ks({duration:e=300,keyframes:t,times:r,ease:s="easeInOut"}){const a=CN(s)?s.map(zg):zg(s),l={done:!1,value:t[0]},c=pA(r&&r.length===t.length?r:hA(t),e),d=dA(c,t,{ease:Array.isArray(a)?a:mA(t,a)});return{calculatedDuration:e,next:h=>(l.value=d(h),l.done=h>=e,l)}}const gA=e=>e!==null;function Lf(e,{repeat:t,repeatType:r="loop"},s,a=1){const l=e.filter(gA),d=a<0||t&&r!=="loop"&&t%2===1?0:l.length-1;return!d||s===void 0?l[d]:s}const yA={decay:Md,inertia:Md,tween:Ks,keyframes:Ks,spring:dl};function Mx(e){typeof e.type=="string"&&(e.type=yA[e.type])}class _f{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const vA=e=>e/100;class If extends _f{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==yt.now()&&this.tick(yt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Mx(t);const{type:r=Ks,repeat:s=0,repeatDelay:a=0,repeatType:l,velocity:c=0}=t;let{keyframes:d}=t;const h=r||Ks;h!==Ks&&typeof d[0]!="number"&&(this.mixKeyframes=si(vA,Nx(d[0],d[1])),d=[0,100]);const p=h({...t,keyframes:d});l==="mirror"&&(this.mirroredGenerator=h({...t,keyframes:[...d].reverse(),velocity:-c})),p.calculatedDuration===null&&(p.calculatedDuration=Of(p));const{calculatedDuration:m}=p;this.calculatedDuration=m,this.resolvedDuration=m+a,this.totalDuration=this.resolvedDuration*(s+1)-a,this.generator=p}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:s,totalDuration:a,mixKeyframes:l,mirroredGenerator:c,resolvedDuration:d,calculatedDuration:h}=this;if(this.startTime===null)return s.next(0);const{delay:p=0,keyframes:m,repeat:y,repeatType:b,repeatDelay:v,type:P,onUpdate:S,finalKeyframe:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const T=this.currentTime-p*(this.playbackSpeed>=0?1:-1),R=this.playbackSpeed>=0?T<0:T>a;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let N=this.currentTime,A=s;if(y){const B=Math.min(this.currentTime,a)/d;let H=Math.floor(B),W=B%1;!W&&B>=1&&(W=1),W===1&&H--,H=Math.min(H,y+1),H%2&&(b==="reverse"?(W=1-W,v&&(W-=v/d)):b==="mirror"&&(A=c)),N=An(0,1,W)*d}const O=R?{done:!1,value:m[0]}:A.next(N);l&&!R&&(O.value=l(O.value));let{done:F}=O;!R&&h!==null&&(F=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return $&&P!==Md&&(O.value=Lf(m,this.options,E,this.speed)),S&&S(O.value),$&&this.finish(),O}then(t,r){return this.finished.then(t,r)}get duration(){return Qt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Qt(t)}get time(){return Qt(this.currentTime)}set time(t){t=_t(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const r=this.generator.next(t).value;return jx(s=>this.generator.next(s).value,t,r)}get speed(){return this.playbackSpeed}set speed(t){const r=this.playbackSpeed!==t;r&&this.driver&&this.updateTime(yt.now()),this.playbackSpeed=t,r&&this.driver&&(this.time=Qt(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=tA,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=r??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(yt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function xA(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Kr=e=>e*180/Math.PI,Dd=e=>{const t=Kr(Math.atan2(e[1],e[0]));return Od(t)},wA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Dd,rotateZ:Dd,skewX:e=>Kr(Math.atan(e[1])),skewY:e=>Kr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Od=e=>(e=e%360,e<0&&(e+=360),e),Qg=Dd,Yg=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Gg=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),bA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Yg,scaleY:Gg,scale:e=>(Yg(e)+Gg(e))/2,rotateX:e=>Od(Kr(Math.atan2(e[6],e[5]))),rotateY:e=>Od(Kr(Math.atan2(-e[2],e[0]))),rotateZ:Qg,rotate:Qg,skewX:e=>Kr(Math.atan(e[4])),skewY:e=>Kr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ld(e){return e.includes("scale")?1:0}function _d(e,t){if(!e||e==="none")return Ld(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,a;if(r)s=bA,a=r;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=wA,a=d}if(!a)return Ld(t);const l=s[t],c=a[1].split(",").map(CA);return typeof l=="function"?l(c):c[l]}const SA=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return _d(r,t)};function CA(e){return parseFloat(e.trim())}const qo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zo=new Set(qo),Xg=e=>e===Xo||e===ae,EA=new Set(["x","y","z"]),PA=qo.filter(e=>!EA.has(e));function TA(e){const t=[];return PA.forEach(r=>{const s=e.getValue(r);s!==void 0&&(t.push([r,s.get()]),s.set(r.startsWith("scale")?1:0))}),t}const br={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>_d(t,"x"),y:(e,{transform:t})=>_d(t,"y")};br.translateX=br.x;br.translateY=br.y;const Qr=new Set;let Id=!1,Fd=!1,Vd=!1;function Dx(){if(Fd){const e=Array.from(Qr).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),r=new Map;t.forEach(s=>{const a=TA(s);a.length&&(r.set(s,a),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const a=r.get(s);a&&a.forEach(([l,c])=>{s.getValue(l)?.set(c)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Fd=!1,Id=!1,Qr.forEach(e=>e.complete(Vd)),Qr.clear()}function Ox(){Qr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Fd=!0)})}function RA(){Vd=!0,Ox(),Dx(),Vd=!1}class Ff{constructor(t,r,s,a,l,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=s,this.motionValue=a,this.element=l,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(Qr.add(this),Id||(Id=!0,De.read(Ox),De.resolveKeyframes(Dx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:s,motionValue:a}=this;if(t[0]===null){const l=a?.get(),c=t[t.length-1];if(l!==void 0)t[0]=l;else if(s&&r){const d=s.readValue(r,c);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=c),a&&l===void 0&&a.set(t[0])}xA(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Qr.delete(this)}cancel(){this.state==="scheduled"&&(Qr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const kA=e=>e.startsWith("--");function Lx(e,t,r){kA(t)?e.style.setProperty(t,r):e.style[t]=r}const NA={};function _x(e,t){const r=ux(e);return()=>NA[t]??r()}const AA=_x(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Ix=_x(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),$s=([e,t,r,s])=>`cubic-bezier(${e}, ${t}, ${r}, ${s})`,qg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$s([0,.65,.55,1]),circOut:$s([.55,0,1,.45]),backIn:$s([.31,.01,.66,-.59]),backOut:$s([.33,1.53,.69,.99])};function Fx(e,t){if(e)return typeof e=="function"?Ix()?Ax(e,t):"ease-out":wx(e)?$s(e):Array.isArray(e)?e.map(r=>Fx(r,t)||qg.easeOut):qg[e]}function jA(e,t,r,{delay:s=0,duration:a=300,repeat:l=0,repeatType:c="loop",ease:d="easeOut",times:h}={},p=void 0){const m={[t]:r};h&&(m.offset=h);const y=Fx(d,a);Array.isArray(y)&&(m.easing=y);const b={delay:s,duration:a,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:l+1,direction:c==="reverse"?"alternate":"normal"};return p&&(b.pseudoElement=p),e.animate(m,b)}function Vx(e){return typeof e=="function"&&"applyToOptions"in e}function MA({type:e,...t}){return Vx(e)&&Ix()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class zx extends _f{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:r,name:s,keyframes:a,pseudoElement:l,allowFlatten:c=!1,finalKeyframe:d,onComplete:h}=t;this.isPseudoElement=!!l,this.allowFlatten=c,this.options=t,Tf(typeof t.type!="string");const p=MA(t);this.animation=jA(r,s,a,p,l),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!l){const m=Lf(a,this.options,d,this.speed);this.updateMotionValue&&this.updateMotionValue(m),Lx(r,s,m),this.animation.cancel()}h?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Qt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Qt(t)}get time(){return Qt(Number(this.animation.currentTime)||0)}set time(t){const r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=_t(t),r&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:r,rangeEnd:s,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&AA()?(this.animation.timeline=t,r&&(this.animation.rangeStart=r),s&&(this.animation.rangeEnd=s),Yt):a(this)}}const Bx={anticipate:gx,backInOut:mx,circInOut:vx};function DA(e){return e in Bx}function OA(e){typeof e.ease=="string"&&DA(e.ease)&&(e.ease=Bx[e.ease])}const $c=10;class LA extends zx{constructor(t){OA(t),Mx(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:s,onComplete:a,element:l,...c}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const d=new If({...c,autoplay:!1}),h=Math.max($c,yt.now()-this.startTime),p=An(0,$c,h-$c),m=d.sample(h).value,{name:y}=this.options;l&&y&&Lx(l,y,m),r.setWithVelocity(d.sample(Math.max(0,h-p)).value,m,p),d.stop()}}const Zg=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(un.test(e)||e==="0")&&!e.startsWith("url("));function _A(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function IA(e,t,r,s){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const l=e[e.length-1],c=Zg(a,t),d=Zg(l,t);return!c||!d?!1:_A(e)||(r==="spring"||Vx(r))&&s}function zd(e){e.duration=0,e.type="keyframes"}const FA=new Set(["opacity","clipPath","filter","transform"]),VA=ux(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function zA(e){const{motionValue:t,name:r,repeatDelay:s,repeatType:a,damping:l,type:c}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:p}=t.owner.getProps();return VA()&&r&&FA.has(r)&&(r!=="transform"||!p)&&!h&&!s&&a!=="mirror"&&l!==0&&c!=="inertia"}const BA=40;class UA extends _f{constructor({autoplay:t=!0,delay:r=0,type:s="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:c="loop",keyframes:d,name:h,motionValue:p,element:m,...y}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=yt.now();const b={autoplay:t,delay:r,type:s,repeat:a,repeatDelay:l,repeatType:c,name:h,motionValue:p,element:m,...y},v=m?.KeyframeResolver||Ff;this.keyframeResolver=new v(d,(P,S,E)=>this.onKeyframesResolved(P,S,b,!E),h,p,m),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,s,a){this.keyframeResolver=void 0;const{name:l,type:c,velocity:d,delay:h,isHandoff:p,onUpdate:m}=s;this.resolvedAt=yt.now(),IA(t,l,c,d)||((Kn.instantAnimations||!h)&&m?.(Lf(t,s,r)),t[0]=t[t.length-1],zd(s),s.repeat=0);const b={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>BA?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...s,keyframes:t},v=!p&&zA(b),P=b.motionValue?.owner?.current,S=v?new LA({...b,element:P}):new If(b);S.finished.then(()=>{this.notifyFinished()}).catch(Yt),this.pendingTimeline&&(this.stopTimeline=S.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=S}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),RA()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Ux(e,t,r,s=0,a=1){const l=Array.from(e).sort((p,m)=>p.sortNodePosition(m)).indexOf(t),c=e.size,d=(c-1)*s;return typeof r=="function"?r(l,c):a===1?l*s:d-l*s}const $A=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function WA(e){const t=$A.exec(e);if(!t)return[,];const[,r,s,a]=t;return[`--${r??s}`,a]}function $x(e,t,r=1){const[s,a]=WA(e);if(!s)return;const l=window.getComputedStyle(t).getPropertyValue(s);if(l){const c=l.trim();return ix(c)?parseFloat(c):c}return Af(a)?$x(a,t,r+1):a}const HA={type:"spring",stiffness:500,damping:25,restSpeed:10},KA=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),QA={type:"keyframes",duration:.8},YA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},GA=(e,{keyframes:t})=>t.length>2?QA:Zo.has(e)?e.startsWith("scale")?KA(t[1]):HA:YA,XA=e=>e!==null;function qA(e,{repeat:t,repeatType:r="loop"},s){const a=e.filter(XA),l=t&&r!=="loop"&&t%2===1?0:a.length-1;return a[l]}function Wx(e,t){if(e?.inherit&&t){const{inherit:r,...s}=e;return{...t,...s}}return e}function Vf(e,t){const r=e?.[t]??e?.default??e;return r!==e?Wx(r,e):r}function ZA({when:e,delay:t,delayChildren:r,staggerChildren:s,staggerDirection:a,repeat:l,repeatType:c,repeatDelay:d,from:h,elapsed:p,...m}){return!!Object.keys(m).length}const zf=(e,t,r,s={},a,l)=>c=>{const d=Vf(s,e)||{},h=d.delay||s.delay||0;let{elapsed:p=0}=s;p=p-_t(h);const m={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-p,onUpdate:b=>{t.set(b),d.onUpdate&&d.onUpdate(b)},onComplete:()=>{c(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:l?void 0:a};ZA(d)||Object.assign(m,GA(e,m)),m.duration&&(m.duration=_t(m.duration)),m.repeatDelay&&(m.repeatDelay=_t(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let y=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(zd(m),m.delay===0&&(y=!0)),(Kn.instantAnimations||Kn.skipAnimations||a?.shouldSkipAnimations)&&(y=!0,zd(m),m.delay=0),m.allowFlatten=!d.type&&!d.ease,y&&!l&&t.get()!==void 0){const b=qA(m.keyframes,d);if(b!==void 0){De.update(()=>{m.onUpdate(b),m.onComplete()});return}}return d.isSync?new If(m):new UA(m)};function Jg(e){const t=[{},{}];return e?.values.forEach((r,s)=>{t[0][s]=r.get(),t[1][s]=r.getVelocity()}),t}function Bf(e,t,r,s){if(typeof t=="function"){const[a,l]=Jg(s);t=t(r!==void 0?r:e.custom,a,l)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,l]=Jg(s);t=t(r!==void 0?r:e.custom,a,l)}return t}function zo(e,t,r){const s=e.getProps();return Bf(s,t,r!==void 0?r:s.custom,e)}const Hx=new Set(["width","height","top","left","right","bottom",...qo]),ey=30,JA=e=>!isNaN(parseFloat(e));class ej{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const a=yt.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=yt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=JA(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Rf);const s=this.events[t].add(r);return t==="change"?()=>{s(),De.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,s){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=yt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ey)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,ey);return cx(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ho(e,t){return new ej(e,t)}const Bd=e=>Array.isArray(e);function tj(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Ho(r))}function nj(e){return Bd(e)?e[e.length-1]||0:e}function rj(e,t){const r=zo(e,t);let{transitionEnd:s={},transition:a={},...l}=r||{};l={...l,...s};for(const c in l){const d=nj(l[c]);tj(e,c,d)}}const ft=e=>!!(e&&e.getVelocity);function oj(e){return!!(ft(e)&&e.add)}function Ud(e,t){const r=e.getValue("willChange");if(oj(r))return r.add(t);if(!r&&Kn.WillChange){const s=new Kn.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function Uf(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const sj="framerAppearId",Kx="data-"+Uf(sj);function Qx(e){return e.props[Kx]}function ij({protectedKeys:e,needsAnimating:t},r){const s=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,s}function Yx(e,t,{delay:r=0,transitionOverride:s,type:a}={}){let{transition:l,transitionEnd:c,...d}=t;const h=e.getDefaultTransition();l=l?Wx(l,h):h;const p=l?.reduceMotion;s&&(l=s);const m=[],y=a&&e.animationState&&e.animationState.getState()[a];for(const b in d){const v=e.getValue(b,e.latestValues[b]??null),P=d[b];if(P===void 0||y&&ij(y,b))continue;const S={delay:r,...Vf(l||{},b)},E=v.get();if(E!==void 0&&!v.isAnimating&&!Array.isArray(P)&&P===E&&!S.velocity)continue;let T=!1;if(window.MotionHandoffAnimation){const A=Qx(e);if(A){const O=window.MotionHandoffAnimation(A,b,De);O!==null&&(S.startTime=O,T=!0)}}Ud(e,b);const R=p??e.shouldReduceMotion;v.start(zf(b,v,P,R&&Hx.has(b)?{type:!1}:S,e,T));const N=v.animation;N&&m.push(N)}if(c){const b=()=>De.update(()=>{c&&rj(e,c)});m.length?Promise.all(m).then(b):b()}return m}function $d(e,t,r={}){const s=zo(e,t,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=s||{};r.transitionOverride&&(a=r.transitionOverride);const l=s?()=>Promise.all(Yx(e,s,r)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:p=0,staggerChildren:m,staggerDirection:y}=a;return aj(e,t,h,p,m,y,r)}:()=>Promise.resolve(),{when:d}=a;if(d){const[h,p]=d==="beforeChildren"?[l,c]:[c,l];return h().then(()=>p())}else return Promise.all([l(),c(r.delay)])}function aj(e,t,r=0,s=0,a=0,l=1,c){const d=[];for(const h of e.variantChildren)h.notify("AnimationStart",t),d.push($d(h,t,{...c,delay:r+(typeof s=="function"?0:s)+Ux(e.variantChildren,h,s,a,l)}).then(()=>h.notify("AnimationComplete",t)));return Promise.all(d)}function lj(e,t,r={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const a=t.map(l=>$d(e,l,r));s=Promise.all(a)}else if(typeof t=="string")s=$d(e,t,r);else{const a=typeof t=="function"?zo(e,t,r.custom):t;s=Promise.all(Yx(e,a,r))}return s.then(()=>{e.notify("AnimationComplete",t)})}const uj={test:e=>e==="auto",parse:e=>e},Gx=e=>t=>t.test(e),Xx=[Xo,ae,kn,vr,_N,LN,uj],ty=e=>Xx.find(Gx(e));function cj(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||lx(e):!0}const dj=new Set(["brightness","contrast","saturate","opacity"]);function fj(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=r.match(jf)||[];if(!s)return e;const a=r.replace(s,"");let l=dj.has(t)?1:0;return s!==r&&(l*=100),t+"("+l+a+")"}const hj=/\b([a-z-]*)\(.*?\)/gu,Wd={...un,getAnimatableNone:e=>{const t=e.match(hj);return t?t.map(fj).join(" "):e}},Hd={...un,getAnimatableNone:e=>{const t=un.parse(e);return un.createTransformer(e)(t.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},ny={...Xo,transform:Math.round},pj={rotate:vr,rotateX:vr,rotateY:vr,rotateZ:vr,scale:Ma,scaleX:Ma,scaleY:Ma,scaleZ:Ma,skew:vr,skewX:vr,skewY:vr,distance:ae,translateX:ae,translateY:ae,translateZ:ae,x:ae,y:ae,z:ae,perspective:ae,transformPerspective:ae,opacity:Js,originX:Ug,originY:Ug,originZ:ae},$f={borderWidth:ae,borderTopWidth:ae,borderRightWidth:ae,borderBottomWidth:ae,borderLeftWidth:ae,borderRadius:ae,borderTopLeftRadius:ae,borderTopRightRadius:ae,borderBottomRightRadius:ae,borderBottomLeftRadius:ae,width:ae,maxWidth:ae,height:ae,maxHeight:ae,top:ae,right:ae,bottom:ae,left:ae,inset:ae,insetBlock:ae,insetBlockStart:ae,insetBlockEnd:ae,insetInline:ae,insetInlineStart:ae,insetInlineEnd:ae,padding:ae,paddingTop:ae,paddingRight:ae,paddingBottom:ae,paddingLeft:ae,paddingBlock:ae,paddingBlockStart:ae,paddingBlockEnd:ae,paddingInline:ae,paddingInlineStart:ae,paddingInlineEnd:ae,margin:ae,marginTop:ae,marginRight:ae,marginBottom:ae,marginLeft:ae,marginBlock:ae,marginBlockStart:ae,marginBlockEnd:ae,marginInline:ae,marginInlineStart:ae,marginInlineEnd:ae,fontSize:ae,backgroundPositionX:ae,backgroundPositionY:ae,...pj,zIndex:ny,fillOpacity:Js,strokeOpacity:Js,numOctaves:ny},mj={...$f,color:Ge,backgroundColor:Ge,outlineColor:Ge,fill:Ge,stroke:Ge,borderColor:Ge,borderTopColor:Ge,borderRightColor:Ge,borderBottomColor:Ge,borderLeftColor:Ge,filter:Wd,WebkitFilter:Wd,mask:Hd,WebkitMask:Hd},qx=e=>mj[e],gj=new Set([Wd,Hd]);function Zx(e,t){let r=qx(e);return gj.has(r)||(r=un),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const yj=new Set(["auto","none","0"]);function vj(e,t,r){let s=0,a;for(;s<e.length&&!a;){const l=e[s];typeof l=="string"&&!yj.has(l)&&Wo(l).values.length&&(a=e[s]),s++}if(a&&r)for(const l of t)e[l]=Zx(r,a)}class xj extends Ff{constructor(t,r,s,a,l){super(t,r,s,a,l,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:s}=this;if(!r||!r.current)return;super.readKeyframes();for(let m=0;m<t.length;m++){let y=t[m];if(typeof y=="string"&&(y=y.trim(),Af(y))){const b=$x(y,r.current);b!==void 0&&(t[m]=b),m===t.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!Hx.has(s)||t.length!==2)return;const[a,l]=t,c=ty(a),d=ty(l),h=Bg(a),p=Bg(l);if(h!==p&&br[s]){this.needsMeasurement=!0;return}if(c!==d)if(Xg(c)&&Xg(d))for(let m=0;m<t.length;m++){const y=t[m];typeof y=="string"&&(t[m]=parseFloat(y))}else br[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,s=[];for(let a=0;a<t.length;a++)(t[a]===null||cj(t[a]))&&s.push(a);s.length&&vj(t,s,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=br[s](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const a=r[r.length-1];a!==void 0&&t.getValue(s,a).jump(a,!1)}measureEndState(){const{element:t,name:r,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const a=t.getValue(r);a&&a.jump(this.measuredOrigin,!1);const l=s.length-1,c=s[l];s[l]=br[r](t.measureViewportBox(),window.getComputedStyle(t.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),this.removedTransforms?.length&&this.removedTransforms.forEach(([d,h])=>{t.getValue(d).set(h)}),this.resolveNoneKeyframes()}}const wj=new Set(["opacity","clipPath","filter","transform"]);function Jx(e,t,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const a=r?.[e]??s.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(s=>s!=null)}const ew=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Wa(e){return ax(e)&&"offsetHeight"in e}const{schedule:Wf}=bx(queueMicrotask,!1),ln={x:!1,y:!1};function tw(){return ln.x||ln.y}function bj(e){return e==="x"||e==="y"?ln[e]?null:(ln[e]=!0,()=>{ln[e]=!1}):ln.x||ln.y?null:(ln.x=ln.y=!0,()=>{ln.x=ln.y=!1})}function nw(e,t){const r=Jx(e),s=new AbortController,a={passive:!0,...t,signal:s.signal};return[r,a,()=>s.abort()]}function Sj(e){return!(e.pointerType==="touch"||tw())}function Cj(e,t,r={}){const[s,a,l]=nw(e,r);return s.forEach(c=>{let d=!1,h=!1,p;const m=()=>{c.removeEventListener("pointerleave",P)},y=E=>{p&&(p(E),p=void 0),m()},b=E=>{d=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),h&&(h=!1,y(E))},v=()=>{d=!0,window.addEventListener("pointerup",b,a),window.addEventListener("pointercancel",b,a)},P=E=>{if(E.pointerType!=="touch"){if(d){h=!0;return}y(E)}},S=E=>{if(!Sj(E))return;h=!1;const T=t(c,E);typeof T=="function"&&(p=T,c.addEventListener("pointerleave",P,a))};c.addEventListener("pointerenter",S,a),c.addEventListener("pointerdown",v,a)}),l}const rw=(e,t)=>t?e===t?!0:rw(e,t.parentElement):!1,Hf=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Ej=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Pj(e){return Ej.has(e.tagName)||e.isContentEditable===!0}const Tj=new Set(["INPUT","SELECT","TEXTAREA"]);function Rj(e){return Tj.has(e.tagName)||e.isContentEditable===!0}const Ha=new WeakSet;function ry(e){return t=>{t.key==="Enter"&&e(t)}}function Wc(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const kj=(e,t)=>{const r=e.currentTarget;if(!r)return;const s=ry(()=>{if(Ha.has(r))return;Wc(r,"down");const a=ry(()=>{Wc(r,"up")}),l=()=>Wc(r,"cancel");r.addEventListener("keyup",a,t),r.addEventListener("blur",l,t)});r.addEventListener("keydown",s,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",s),t)};function oy(e){return Hf(e)&&!tw()}const sy=new WeakSet;function Nj(e,t,r={}){const[s,a,l]=nw(e,r),c=d=>{const h=d.currentTarget;if(!oy(d)||sy.has(d))return;Ha.add(h),r.stopPropagation&&sy.add(d);const p=t(h,d),m=(v,P)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",b),Ha.has(h)&&Ha.delete(h),oy(v)&&typeof p=="function"&&p(v,{success:P})},y=v=>{m(v,h===window||h===document||r.useGlobalTarget||rw(h,v.target))},b=v=>{m(v,!1)};window.addEventListener("pointerup",y,a),window.addEventListener("pointercancel",b,a)};return s.forEach(d=>{(r.useGlobalTarget?window:d).addEventListener("pointerdown",c,a),Wa(d)&&(d.addEventListener("focus",p=>kj(p,a)),!Pj(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),l}function Kf(e){return ax(e)&&"ownerSVGElement"in e}const Ka=new WeakMap;let Qa;const ow=(e,t,r)=>(s,a)=>a&&a[0]?a[0][e+"Size"]:Kf(s)&&"getBBox"in s?s.getBBox()[t]:s[r],Aj=ow("inline","width","offsetWidth"),jj=ow("block","height","offsetHeight");function Mj({target:e,borderBoxSize:t}){Ka.get(e)?.forEach(r=>{r(e,{get width(){return Aj(e,t)},get height(){return jj(e,t)}})})}function Dj(e){e.forEach(Mj)}function Oj(){typeof ResizeObserver>"u"||(Qa=new ResizeObserver(Dj))}function Lj(e,t){Qa||Oj();const r=Jx(e);return r.forEach(s=>{let a=Ka.get(s);a||(a=new Set,Ka.set(s,a)),a.add(t),Qa?.observe(s)}),()=>{r.forEach(s=>{const a=Ka.get(s);a?.delete(t),a?.size||Qa?.unobserve(s)})}}const Ya=new Set;let Do;function _j(){Do=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ya.forEach(t=>t(e))},window.addEventListener("resize",Do)}function Ij(e){return Ya.add(e),Do||_j(),()=>{Ya.delete(e),!Ya.size&&typeof Do=="function"&&(window.removeEventListener("resize",Do),Do=void 0)}}function iy(e,t){return typeof e=="function"?Ij(e):Lj(e,t)}function Fj(e){return Kf(e)&&e.tagName==="svg"}const Vj=[...Xx,Ge,un],zj=e=>Vj.find(Gx(e)),ay=()=>({translate:0,scale:1,origin:0,originPoint:0}),Oo=()=>({x:ay(),y:ay()}),ly=()=>({min:0,max:0}),Ze=()=>({x:ly(),y:ly()}),Bj=new WeakMap;function Ll(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ei(e){return typeof e=="string"||Array.isArray(e)}const Qf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Yf=["initial",...Qf];function _l(e){return Ll(e.animate)||Yf.some(t=>ei(e[t]))}function sw(e){return!!(_l(e)||e.variants)}function Uj(e,t,r){for(const s in t){const a=t[s],l=r[s];if(ft(a))e.addValue(s,a);else if(ft(l))e.addValue(s,Ho(a,{owner:e}));else if(l!==a)if(e.hasValue(s)){const c=e.getValue(s);c.liveStyle===!0?c.jump(a):c.hasAnimated||c.set(a)}else{const c=e.getStaticValue(s);e.addValue(s,Ho(c!==void 0?c:a,{owner:e}))}}for(const s in r)t[s]===void 0&&e.removeValue(s);return t}const Kd={current:null},iw={current:!1},$j=typeof window<"u";function Wj(){if(iw.current=!0,!!$j)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Kd.current=e.matches;e.addEventListener("change",t),t()}else Kd.current=!1}const uy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let fl={};function aw(e){fl=e}function Hj(){return fl}class Kj{scrapeMotionValuesFromProps(t,r,s){return{}}constructor({parent:t,props:r,presenceContext:s,reducedMotionConfig:a,skipAnimations:l,blockInitialAnimation:c,visualState:d},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Ff,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=yt.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,De.render(this.render,!1,!0))};const{latestValues:p,renderState:m}=d;this.latestValues=p,this.baseTarget={...p},this.initialValues=r.initial?{...p}:{},this.renderState=m,this.parent=t,this.props=r,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=l,this.options=h,this.blockInitialAnimation=!!c,this.isControllingVariants=_l(r),this.isVariantNode=sw(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:y,...b}=this.scrapeMotionValuesFromProps(r,{},this);for(const v in b){const P=b[v];p[v]!==void 0&&ft(P)&&P.set(p[v])}}mount(t){if(this.hasBeenMounted)for(const r in this.initialValues)this.values.get(r)?.jump(this.initialValues[r]),this.latestValues[r]=this.initialValues[r];this.current=t,Bj.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,s)=>this.bindToMotionValue(s,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(iw.current||Wj(),this.shouldReduceMotion=Kd.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Pr(this.notifyUpdate),Pr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),r.accelerate&&wj.has(t)&&this.current instanceof HTMLElement){const{factory:c,keyframes:d,times:h,ease:p,duration:m}=r.accelerate,y=new zx({element:this.current,name:t,keyframes:d,times:h,ease:p,duration:_t(m)}),b=c(y);this.valueSubscriptions.set(t,()=>{b(),y.cancel()});return}const s=Zo.has(t);s&&this.onBindTransform&&this.onBindTransform();const a=r.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&De.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let l;typeof window<"u"&&window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{a(),l&&l(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in fl){const r=fl[t];if(!r)continue;const{isEnabled:s,Feature:a}=r;if(!this.features[t]&&a&&s(this.props)&&(this.features[t]=new a(this)),this.features[t]){const l=this.features[t];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ze()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let s=0;s<uy.length;s++){const a=uy[s];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const l="on"+a,c=t[l];c&&(this.propEventSubscriptions[a]=this.on(a,c))}this.prevMotionValues=Uj(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const s=this.values.get(t);r!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&r!==void 0&&(s=Ho(r===null?void 0:r,{owner:this}),this.addValue(t,s)),s}readValue(t,r){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(ix(s)||lx(s))?s=parseFloat(s):!zj(s)&&un.test(r)&&(s=Zx(t,r)),this.setBaseTarget(t,ft(s)?s.get():s)),ft(s)?s.get():s}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const l=Bf(this.props,r,this.presenceContext?.custom);l&&(s=l[t])}if(r&&s!==void 0)return s;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!ft(a)?a:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Rf),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){Wf.render(this.render)}}class lw extends Kj{constructor(){super(...arguments),this.KeyframeResolver=xj}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){const s=t.style;return s?s[r]:void 0}removeValueFromRenderState(t,{vars:r,style:s}){delete r[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ft(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class Tr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function uw({top:e,left:t,right:r,bottom:s}){return{x:{min:t,max:r},y:{min:e,max:s}}}function Qj({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Yj(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:s.y,right:s.x}}function Hc(e){return e===void 0||e===1}function Qd({scale:e,scaleX:t,scaleY:r}){return!Hc(e)||!Hc(t)||!Hc(r)}function $r(e){return Qd(e)||cw(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function cw(e){return cy(e.x)||cy(e.y)}function cy(e){return e&&e!=="0%"}function hl(e,t,r){const s=e-r,a=t*s;return r+a}function dy(e,t,r,s,a){return a!==void 0&&(e=hl(e,a,s)),hl(e,r,s)+t}function Yd(e,t=0,r=1,s,a){e.min=dy(e.min,t,r,s,a),e.max=dy(e.max,t,r,s,a)}function dw(e,{x:t,y:r}){Yd(e.x,t.translate,t.scale,t.originPoint),Yd(e.y,r.translate,r.scale,r.originPoint)}const fy=.999999999999,hy=1.0000000000001;function Gj(e,t,r,s=!1){const a=r.length;if(!a)return;t.x=t.y=1;let l,c;for(let d=0;d<a;d++){l=r[d],c=l.projectionDelta;const{visualElement:h}=l.options;h&&h.props.style&&h.props.style.display==="contents"||(s&&l.options.layoutScroll&&l.scroll&&l!==l.root&&_o(e,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,dw(e,c)),s&&$r(l.latestValues)&&_o(e,l.latestValues,l.layout?.layoutBox))}t.x<hy&&t.x>fy&&(t.x=1),t.y<hy&&t.y>fy&&(t.y=1)}function Lo(e,t){e.min=e.min+t,e.max=e.max+t}function py(e,t,r,s,a=.5){const l=Be(e.min,e.max,a);Yd(e,t,r,l,s)}function my(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function _o(e,t,r){const s=r??e;py(e.x,my(t.x,s.x),t.scaleX,t.scale,t.originX),py(e.y,my(t.y,s.y),t.scaleY,t.scale,t.originY)}function fw(e,t){return uw(Yj(e.getBoundingClientRect(),t))}function Xj(e,t,r){const s=fw(e,r),{scroll:a}=t;return a&&(Lo(s.x,a.offset.x),Lo(s.y,a.offset.y)),s}const qj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Zj=qo.length;function Jj(e,t,r){let s="",a=!0;for(let l=0;l<Zj;l++){const c=qo[l],d=e[c];if(d===void 0)continue;let h=!0;if(typeof d=="number")h=d===(c.startsWith("scale")?1:0);else{const p=parseFloat(d);h=c.startsWith("scale")?p===1:p===0}if(!h||r){const p=ew(d,$f[c]);if(!h){a=!1;const m=qj[c]||c;s+=`${m}(${p}) `}r&&(t[c]=p)}}return s=s.trim(),r?s=r(t,a?"":s):a&&(s="none"),s}function Gf(e,t,r){const{style:s,vars:a,transformOrigin:l}=e;let c=!1,d=!1;for(const h in t){const p=t[h];if(Zo.has(h)){c=!0;continue}else if(Cx(h)){a[h]=p;continue}else{const m=ew(p,$f[h]);h.startsWith("origin")?(d=!0,l[h]=m):s[h]=m}}if(t.transform||(c||r?s.transform=Jj(t,e.transform,r):s.transform&&(s.transform="none")),d){const{originX:h="50%",originY:p="50%",originZ:m=0}=l;s.transformOrigin=`${h} ${p} ${m}`}}function hw(e,{style:t,vars:r},s,a){const l=e.style;let c;for(c in t)l[c]=t[c];a?.applyProjectionStyles(l,s);for(c in r)l.setProperty(c,r[c])}function gy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Us={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ae.test(e))e=parseFloat(e);else return e;const r=gy(e,t.target.x),s=gy(e,t.target.y);return`${r}% ${s}%`}},eM={correct:(e,{treeScale:t,projectionDelta:r})=>{const s=e,a=un.parse(e);if(a.length>5)return s;const l=un.createTransformer(e),c=typeof a[0]!="number"?1:0,d=r.x.scale*t.x,h=r.y.scale*t.y;a[0+c]/=d,a[1+c]/=h;const p=Be(d,h,.5);return typeof a[2+c]=="number"&&(a[2+c]/=p),typeof a[3+c]=="number"&&(a[3+c]/=p),l(a)}},Gd={borderRadius:{...Us,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Us,borderTopRightRadius:Us,borderBottomLeftRadius:Us,borderBottomRightRadius:Us,boxShadow:eM};function pw(e,{layout:t,layoutId:r}){return Zo.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Gd[e]||e==="opacity")}function Xf(e,t,r){const s=e.style,a=t?.style,l={};if(!s)return l;for(const c in s)(ft(s[c])||a&&ft(a[c])||pw(c,e)||r?.getValue(c)?.liveStyle!==void 0)&&(l[c]=s[c]);return l}function tM(e){return window.getComputedStyle(e)}class nM extends lw{constructor(){super(...arguments),this.type="html",this.renderInstance=hw}readValueFromInstance(t,r){if(Zo.has(r))return this.projection?.isProjecting?Ld(r):SA(t,r);{const s=tM(t),a=(Cx(r)?s.getPropertyValue(r):s[r])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:r}){return fw(t,r)}build(t,r,s){Gf(t,r,s.transformTemplate)}scrapeMotionValuesFromProps(t,r,s){return Xf(t,r,s)}}const rM={offset:"stroke-dashoffset",array:"stroke-dasharray"},oM={offset:"strokeDashoffset",array:"strokeDasharray"};function sM(e,t,r=1,s=0,a=!0){e.pathLength=1;const l=a?rM:oM;e[l.offset]=`${-s}`,e[l.array]=`${t} ${r}`}const iM=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function mw(e,{attrX:t,attrY:r,attrScale:s,pathLength:a,pathSpacing:l=1,pathOffset:c=0,...d},h,p,m){if(Gf(e,d,p),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:b}=e;y.transform&&(b.transform=y.transform,delete y.transform),(b.transform||y.transformOrigin)&&(b.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),b.transform&&(b.transformBox=m?.transformBox??"fill-box",delete y.transformBox);for(const v of iM)y[v]!==void 0&&(b[v]=y[v],delete y[v]);t!==void 0&&(y.x=t),r!==void 0&&(y.y=r),s!==void 0&&(y.scale=s),a!==void 0&&sM(y,a,l,c,!1)}const gw=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),yw=e=>typeof e=="string"&&e.toLowerCase()==="svg";function aM(e,t,r,s){hw(e,t,void 0,s);for(const a in t.attrs)e.setAttribute(gw.has(a)?a:Uf(a),t.attrs[a])}function vw(e,t,r){const s=Xf(e,t,r);for(const a in e)if(ft(e[a])||ft(t[a])){const l=qo.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;s[l]=e[a]}return s}class lM extends lw{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ze}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Zo.has(r)){const s=qx(r);return s&&s.default||0}return r=gw.has(r)?r:Uf(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,s){return vw(t,r,s)}build(t,r,s){mw(t,r,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,r,s,a){aM(t,r,s,a)}mount(t){this.isSVGTag=yw(t.tagName),super.mount(t)}}const uM=Yf.length;function xw(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?xw(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<uM;r++){const s=Yf[r],a=e.props[s];(ei(a)||a===!1)&&(t[s]=a)}return t}function ww(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let s=0;s<r;s++)if(t[s]!==e[s])return!1;return!0}const cM=[...Qf].reverse(),dM=Qf.length;function fM(e){return t=>Promise.all(t.map(({animation:r,options:s})=>lj(e,r,s)))}function hM(e){let t=fM(e),r=yy(),s=!0,a=!1;const l=p=>(m,y)=>{const b=zo(e,y,p==="exit"?e.presenceContext?.custom:void 0);if(b){const{transition:v,transitionEnd:P,...S}=b;m={...m,...S,...P}}return m};function c(p){t=p(e)}function d(p){const{props:m}=e,y=xw(e.parent)||{},b=[],v=new Set;let P={},S=1/0;for(let T=0;T<dM;T++){const R=cM[T],N=r[R],A=m[R]!==void 0?m[R]:y[R],O=ei(A),F=R===p?N.isActive:null;F===!1&&(S=T);let $=A===y[R]&&A!==m[R]&&O;if($&&(s||a)&&e.manuallyAnimateOnMount&&($=!1),N.protectedKeys={...P},!N.isActive&&F===null||!A&&!N.prevProp||Ll(A)||typeof A=="boolean")continue;if(R==="exit"&&N.isActive&&F!==!0){N.prevResolvedValues&&(P={...P,...N.prevResolvedValues});continue}const B=pM(N.prevProp,A);let H=B||R===p&&N.isActive&&!$&&O||T>S&&O,W=!1;const ee=Array.isArray(A)?A:[A];let X=ee.reduce(l(R),{});F===!1&&(X={});const{prevResolvedValues:de={}}=N,q={...de,...X},he=V=>{H=!0,v.has(V)&&(W=!0,v.delete(V)),N.needsAnimating[V]=!0;const U=e.getValue(V);U&&(U.liveStyle=!1)};for(const V in q){const U=X[V],K=de[V];if(P.hasOwnProperty(V))continue;let M=!1;Bd(U)&&Bd(K)?M=!ww(U,K):M=U!==K,M?U!=null?he(V):v.add(V):U!==void 0&&v.has(V)?he(V):N.protectedKeys[V]=!0}N.prevProp=A,N.prevResolvedValues=X,N.isActive&&(P={...P,...X}),(s||a)&&e.blockInitialAnimation&&(H=!1);const re=$&&B;H&&(!re||W)&&b.push(...ee.map(V=>{const U={type:R};if(typeof V=="string"&&(s||a)&&!re&&e.manuallyAnimateOnMount&&e.parent){const{parent:K}=e,M=zo(K,V);if(K.enteringChildren&&M){const{delayChildren:z}=M.transition||{};U.delay=Ux(K.enteringChildren,e,z)}}return{animation:V,options:U}}))}if(v.size){const T={};if(typeof m.initial!="boolean"){const R=zo(e,Array.isArray(m.initial)?m.initial[0]:m.initial);R&&R.transition&&(T.transition=R.transition)}v.forEach(R=>{const N=e.getBaseTarget(R),A=e.getValue(R);A&&(A.liveStyle=!0),T[R]=N??null}),b.push({animation:T})}let E=!!b.length;return s&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(E=!1),s=!1,a=!1,E?t(b):Promise.resolve()}function h(p,m){if(r[p].isActive===m)return Promise.resolve();e.variantChildren?.forEach(b=>b.animationState?.setActive(p,m)),r[p].isActive=m;const y=d(p);for(const b in r)r[b].protectedKeys={};return y}return{animateChanges:d,setActive:h,setAnimateFunction:c,getState:()=>r,reset:()=>{r=yy(),a=!0}}}function pM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ww(t,e):!1}function Ur(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function yy(){return{animate:Ur(!0),whileInView:Ur(),whileHover:Ur(),whileTap:Ur(),whileDrag:Ur(),whileFocus:Ur(),exit:Ur()}}function vy(e,t){e.min=t.min,e.max=t.max}function an(e,t){vy(e.x,t.x),vy(e.y,t.y)}function xy(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const bw=1e-4,mM=1-bw,gM=1+bw,Sw=.01,yM=0-Sw,vM=0+Sw;function vt(e){return e.max-e.min}function xM(e,t,r){return Math.abs(e-t)<=r}function wy(e,t,r,s=.5){e.origin=s,e.originPoint=Be(t.min,t.max,e.origin),e.scale=vt(r)/vt(t),e.translate=Be(r.min,r.max,e.origin)-e.originPoint,(e.scale>=mM&&e.scale<=gM||isNaN(e.scale))&&(e.scale=1),(e.translate>=yM&&e.translate<=vM||isNaN(e.translate))&&(e.translate=0)}function Qs(e,t,r,s){wy(e.x,t.x,r.x,s?s.originX:void 0),wy(e.y,t.y,r.y,s?s.originY:void 0)}function by(e,t,r){e.min=r.min+t.min,e.max=e.min+vt(t)}function wM(e,t,r){by(e.x,t.x,r.x),by(e.y,t.y,r.y)}function Sy(e,t,r){e.min=t.min-r.min,e.max=e.min+vt(t)}function pl(e,t,r){Sy(e.x,t.x,r.x),Sy(e.y,t.y,r.y)}function Cy(e,t,r,s,a){return e-=t,e=hl(e,1/r,s),a!==void 0&&(e=hl(e,1/a,s)),e}function bM(e,t=0,r=1,s=.5,a,l=e,c=e){if(kn.test(t)&&(t=parseFloat(t),t=Be(c.min,c.max,t/100)-c.min),typeof t!="number")return;let d=Be(l.min,l.max,s);e===l&&(d-=t),e.min=Cy(e.min,t,r,d,a),e.max=Cy(e.max,t,r,d,a)}function Ey(e,t,[r,s,a],l,c){bM(e,t[r],t[s],t[a],t.scale,l,c)}const SM=["x","scaleX","originX"],CM=["y","scaleY","originY"];function Py(e,t,r,s){Ey(e.x,t,SM,r?r.x:void 0,s?s.x:void 0),Ey(e.y,t,CM,r?r.y:void 0,s?s.y:void 0)}function Ty(e){return e.translate===0&&e.scale===1}function Cw(e){return Ty(e.x)&&Ty(e.y)}function Ry(e,t){return e.min===t.min&&e.max===t.max}function EM(e,t){return Ry(e.x,t.x)&&Ry(e.y,t.y)}function ky(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ew(e,t){return ky(e.x,t.x)&&ky(e.y,t.y)}function Ny(e){return vt(e.x)/vt(e.y)}function Ay(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function En(e){return[e("x"),e("y")]}function PM(e,t,r){let s="";const a=e.x.translate/t.x,l=e.y.translate/t.y,c=r?.z||0;if((a||l||c)&&(s=`translate3d(${a}px, ${l}px, ${c}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:p,rotate:m,rotateX:y,rotateY:b,skewX:v,skewY:P}=r;p&&(s=`perspective(${p}px) ${s}`),m&&(s+=`rotate(${m}deg) `),y&&(s+=`rotateX(${y}deg) `),b&&(s+=`rotateY(${b}deg) `),v&&(s+=`skewX(${v}deg) `),P&&(s+=`skewY(${P}deg) `)}const d=e.x.scale*t.x,h=e.y.scale*t.y;return(d!==1||h!==1)&&(s+=`scale(${d}, ${h})`),s||"none"}const Pw=["TopLeft","TopRight","BottomLeft","BottomRight"],TM=Pw.length,jy=e=>typeof e=="string"?parseFloat(e):e,My=e=>typeof e=="number"||ae.test(e);function RM(e,t,r,s,a,l){a?(e.opacity=Be(0,r.opacity??1,kM(s)),e.opacityExit=Be(t.opacity??1,0,NM(s))):l&&(e.opacity=Be(t.opacity??1,r.opacity??1,s));for(let c=0;c<TM;c++){const d=`border${Pw[c]}Radius`;let h=Dy(t,d),p=Dy(r,d);if(h===void 0&&p===void 0)continue;h||(h=0),p||(p=0),h===0||p===0||My(h)===My(p)?(e[d]=Math.max(Be(jy(h),jy(p),s),0),(kn.test(p)||kn.test(h))&&(e[d]+="%")):e[d]=p}(t.rotate||r.rotate)&&(e.rotate=Be(t.rotate||0,r.rotate||0,s))}function Dy(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const kM=Tw(0,.5,yx),NM=Tw(.5,.95,Yt);function Tw(e,t,r){return s=>s<e?0:s>t?1:r(Zs(e,t,s))}function AM(e,t,r){const s=ft(e)?e:Ho(e);return s.start(zf("",s,t,r)),s.animation}function ti(e,t,r,s={passive:!0}){return e.addEventListener(t,r,s),()=>e.removeEventListener(t,r)}const jM=(e,t)=>e.depth-t.depth;class MM{constructor(){this.children=[],this.isDirty=!1}add(t){Pf(this.children,t),this.isDirty=!0}remove(t){ll(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(jM),this.isDirty=!1,this.children.forEach(t)}}function DM(e,t){const r=yt.now(),s=({timestamp:a})=>{const l=a-r;l>=t&&(Pr(s),e(l-t))};return De.setup(s,!0),()=>Pr(s)}function Ga(e){return ft(e)?e.get():e}class OM{constructor(){this.members=[]}add(t){Pf(this.members,t);for(let r=this.members.length-1;r>=0;r--){const s=this.members[r];if(s===t||s===this.lead||s===this.prevLead)continue;const a=s.instance;(!a||a.isConnected===!1)&&!s.snapshot&&(ll(this.members,s),s.unmount())}t.scheduleRender()}remove(t){if(ll(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){for(let r=this.members.indexOf(t)-1;r>=0;r--){const s=this.members[r];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(t,r){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.updateSnapshot(),t.scheduleRender();const{layoutDependency:a}=s.options,{layoutDependency:l}=t.options;(a===void 0||a!==l)&&(t.resumeFrom=s,r&&(s.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Xa={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Kc=["","X","Y","Z"],LM=1e3;let _M=0;function Qc(e,t,r,s){const{latestValues:a}=t;a[e]&&(r[e]=a[e],t.setStaticValue(e,0),s&&(s[e]=0))}function Rw(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=Qx(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:a,layoutId:l}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",De,!(a||l))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&Rw(s)}function kw({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:s,resetTransform:a}){return class{constructor(c={},d=t?.()){this.id=_M++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(VM),this.nodes.forEach($M),this.nodes.forEach(WM),this.nodes.forEach(zM)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new MM)}addEventListener(c,d){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Rf),this.eventHandlers.get(c).add(d)}notifyListeners(c,...d){const h=this.eventHandlers.get(c);h&&h.notify(...d)}hasListeners(c){return this.eventHandlers.has(c)}mount(c){if(this.instance)return;this.isSVG=Kf(c)&&!Fj(c),this.instance=c;const{layoutId:d,layout:h,visualElement:p}=this.options;if(p&&!p.current&&p.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(h||d)&&(this.isLayoutDirty=!0),e){let m,y=0;const b=()=>this.root.updateBlockedByResize=!1;De.read(()=>{y=window.innerWidth}),e(c,()=>{const v=window.innerWidth;v!==y&&(y=v,this.root.updateBlockedByResize=!0,m&&m(),m=DM(b,250),Xa.hasAnimatedSinceResize&&(Xa.hasAnimatedSinceResize=!1,this.nodes.forEach(_y)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&p&&(d||h)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:y,hasRelativeLayoutChanged:b,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const P=this.options.transition||p.getDefaultTransition()||GM,{onLayoutAnimationStart:S,onLayoutAnimationComplete:E}=p.getProps(),T=!this.targetLayout||!Ew(this.targetLayout,v),R=!y&&b;if(this.options.layoutRoot||this.resumeFrom||R||y&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const N={...Vf(P,"layout"),onPlay:S,onComplete:E};(p.shouldReduceMotion||this.options.layoutRoot)&&(N.delay=0,N.type=!1),this.startAnimation(N),this.setAnimationOrigin(m,R)}else y||_y(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Pr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(HM),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Rw(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const y=this.path[m];y.shouldResetTransform=!0,(typeof y.latestValues.x=="string"||typeof y.latestValues.y=="string")&&(y.isLayoutDirty=!0),y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:d,layout:h}=this.options;if(d===void 0&&!h)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Oy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ly);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(UM),this.nodes.forEach(IM),this.nodes.forEach(FM)):this.nodes.forEach(Ly),this.clearAllSnapshots();const d=yt.now();st.delta=An(0,1e3/60,d-st.timestamp),st.timestamp=d,st.isProcessing=!0,Fc.update.process(st),Fc.preRender.process(st),Fc.render.process(st),st.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Wf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(BM),this.sharedNodes.forEach(KM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,De.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){De.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!vt(this.snapshot.measuredBox.x)&&!vt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Ze(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(d=!1),d&&this.instance){const h=s(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:h,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!a)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!Cw(this.projectionDelta),h=this.getTransformTemplate(),p=h?h(this.latestValues,""):void 0,m=p!==this.prevTransformTemplateValue;c&&this.instance&&(d||$r(this.latestValues)||m)&&(a(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const d=this.measurePageBox();let h=this.removeElementScroll(d);return c&&(h=this.removeTransform(h)),XM(h),{animationId:this.root.animationId,measuredBox:d,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:c}=this.options;if(!c)return Ze();const d=c.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(qM))){const{scroll:p}=this.root;p&&(Lo(d.x,p.offset.x),Lo(d.y,p.offset.y))}return d}removeElementScroll(c){const d=Ze();if(an(d,c),this.scroll?.wasRoot)return d;for(let h=0;h<this.path.length;h++){const p=this.path[h],{scroll:m,options:y}=p;p!==this.root&&m&&y.layoutScroll&&(m.wasRoot&&an(d,c),Lo(d.x,m.offset.x),Lo(d.y,m.offset.y))}return d}applyTransform(c,d=!1){const h=Ze();an(h,c);for(let p=0;p<this.path.length;p++){const m=this.path[p];!d&&m.options.layoutScroll&&m.scroll&&m!==m.root&&_o(h,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),$r(m.latestValues)&&_o(h,m.latestValues,m.layout?.layoutBox)}return $r(this.latestValues)&&_o(h,this.latestValues,this.layout?.layoutBox),h}removeTransform(c){const d=Ze();an(d,c);for(let h=0;h<this.path.length;h++){const p=this.path[h];if(!$r(p.latestValues))continue;let m;p.instance&&(Qd(p.latestValues)&&p.updateSnapshot(),m=Ze(),an(m,p.measurePageBox())),Py(d,p.latestValues,p.snapshot?.layoutBox,m)}return $r(this.latestValues)&&Py(d,this.latestValues),d}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==st.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==d;if(!(c||h&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:y}=this.options;if(!this.layout||!(m||y))return;this.resolvedRelativeTargetAt=st.timestamp;const b=this.getClosestProjectingParent();b&&this.linkedParentVersion!==b.layoutVersion&&!b.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(b&&b.layout?this.createRelativeTarget(b,this.layout.layoutBox,b.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ze(),this.targetWithTransforms=Ze()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),wM(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):an(this.target,this.layout.layoutBox),dw(this.target,this.targetDelta)):an(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?this.createRelativeTarget(b,this.target,b.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Qd(this.parent.latestValues)||cw(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(c,d,h){this.relativeParent=c,this.linkedParentVersion=c.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ze(),this.relativeTargetOrigin=Ze(),pl(this.relativeTargetOrigin,d,h),an(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const c=this.getLead(),d=!!this.resumingFrom||this!==c;let h=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(h=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===st.timestamp&&(h=!1),h)return;const{layout:p,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||m))return;an(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,b=this.treeScale.y;Gj(this.layoutCorrected,this.treeScale,this.path,d),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=Ze());const{target:v}=c;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(xy(this.prevProjectionDelta.x,this.projectionDelta.x),xy(this.prevProjectionDelta.y,this.projectionDelta.y)),Qs(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==b||!Ay(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ay(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){if(this.options.visualElement?.scheduleRender(),c){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Oo(),this.projectionDelta=Oo(),this.projectionDeltaWithTransform=Oo()}setAnimationOrigin(c,d=!1){const h=this.snapshot,p=h?h.latestValues:{},m={...this.latestValues},y=Oo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const b=Ze(),v=h?h.source:void 0,P=this.layout?this.layout.source:void 0,S=v!==P,E=this.getStack(),T=!E||E.members.length<=1,R=!!(S&&!T&&this.options.crossfade===!0&&!this.path.some(YM));this.animationProgress=0;let N;this.mixTargetDelta=A=>{const O=A/1e3;Iy(y.x,c.x,O),Iy(y.y,c.y,O),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pl(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),QM(this.relativeTarget,this.relativeTargetOrigin,b,O),N&&EM(this.relativeTarget,N)&&(this.isProjectionDirty=!1),N||(N=Ze()),an(N,this.relativeTarget)),S&&(this.animationValues=m,RM(m,p,this.latestValues,O,R,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Pr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=De.update(()=>{Xa.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ho(0)),this.motionValue.jump(0,!1),this.currentAnimation=AM(this.motionValue,[0,1e3],{...c,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),c.onUpdate&&c.onUpdate(d)},onStop:()=>{},onComplete:()=>{c.onComplete&&c.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(LM),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:d,target:h,layout:p,latestValues:m}=c;if(!(!d||!h||!p)){if(this!==c&&this.layout&&p&&Nw(this.options.animationType,this.layout.layoutBox,p.layoutBox)){h=this.target||Ze();const y=vt(this.layout.layoutBox.x);h.x.min=c.target.x.min,h.x.max=h.x.min+y;const b=vt(this.layout.layoutBox.y);h.y.min=c.target.y.min,h.y.max=h.y.min+b}an(d,h),_o(d,m),Qs(this.projectionDeltaWithTransform,this.layoutCorrected,d,m)}}registerSharedNode(c,d){this.sharedNodes.has(c)||this.sharedNodes.set(c,new OM),this.sharedNodes.get(c).add(d);const p=d.options.initialPromotionConfig;d.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(d):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){const{layoutId:c}=this.options;return c?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:c}=this.options;return c?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:d,preserveFollowOpacity:h}={}){const p=this.getStack();p&&p.promote(this,h),c&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let d=!1;const{latestValues:h}=c;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(d=!0),!d)return;const p={};h.z&&Qc("z",c,p,this.animationValues);for(let m=0;m<Kc.length;m++)Qc(`rotate${Kc[m]}`,c,p,this.animationValues),Qc(`skew${Kc[m]}`,c,p,this.animationValues);c.render();for(const m in p)c.setStaticValue(m,p[m]),this.animationValues&&(this.animationValues[m]=p[m]);c.scheduleRender()}applyProjectionStyles(c,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){c.visibility="hidden";return}const h=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,c.visibility="",c.opacity="",c.pointerEvents=Ga(d?.pointerEvents)||"",c.transform=h?h(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(c.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,c.pointerEvents=Ga(d?.pointerEvents)||""),this.hasProjected&&!$r(this.latestValues)&&(c.transform=h?h({},""):"none",this.hasProjected=!1);return}c.visibility="";const m=p.animationValues||p.latestValues;this.applyTransformsToTarget();let y=PM(this.projectionDeltaWithTransform,this.treeScale,m);h&&(y=h(m,y)),c.transform=y;const{x:b,y:v}=this.projectionDelta;c.transformOrigin=`${b.origin*100}% ${v.origin*100}% 0`,p.animationValues?c.opacity=p===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:c.opacity=p===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const P in Gd){if(m[P]===void 0)continue;const{correct:S,applyTo:E,isCSSVariable:T}=Gd[P],R=y==="none"?m[P]:S(m[P],p);if(E){const N=E.length;for(let A=0;A<N;A++)c[E[A]]=R}else T?this.options.visualElement.renderState.vars[P]=R:c[P]=R}this.options.layoutId&&(c.pointerEvents=p===this?Ga(d?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>c.currentAnimation?.stop()),this.root.nodes.forEach(Oy),this.root.sharedNodes.clear()}}}function IM(e){e.updateLayout()}function FM(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:a}=e.options,l=t.source!==e.layout.source;a==="size"?En(m=>{const y=l?t.measuredBox[m]:t.layoutBox[m],b=vt(y);y.min=r[m].min,y.max=y.min+b}):Nw(a,t.layoutBox,r)&&En(m=>{const y=l?t.measuredBox[m]:t.layoutBox[m],b=vt(r[m]);y.max=y.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const c=Oo();Qs(c,r,t.layoutBox);const d=Oo();l?Qs(d,e.applyTransform(s,!0),t.measuredBox):Qs(d,r,t.layoutBox);const h=!Cw(c);let p=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:y,layout:b}=m;if(y&&b){const v=Ze();pl(v,t.layoutBox,y.layoutBox);const P=Ze();pl(P,r,b.layoutBox),Ew(v,P)||(p=!0),m.options.layoutRoot&&(e.relativeTarget=P,e.relativeTargetOrigin=v,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:d,layoutDelta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function VM(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function zM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function BM(e){e.clearSnapshot()}function Oy(e){e.clearMeasurements()}function Ly(e){e.isLayoutDirty=!1}function UM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function _y(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function $M(e){e.resolveTargetDelta()}function WM(e){e.calcProjection()}function HM(e){e.resetSkewAndRotation()}function KM(e){e.removeLeadSnapshot()}function Iy(e,t,r){e.translate=Be(t.translate,0,r),e.scale=Be(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Fy(e,t,r,s){e.min=Be(t.min,r.min,s),e.max=Be(t.max,r.max,s)}function QM(e,t,r,s){Fy(e.x,t.x,r.x,s),Fy(e.y,t.y,r.y,s)}function YM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const GM={duration:.45,ease:[.4,0,.1,1]},Vy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),zy=Vy("applewebkit/")&&!Vy("chrome/")?Math.round:Yt;function By(e){e.min=zy(e.min),e.max=zy(e.max)}function XM(e){By(e.x),By(e.y)}function Nw(e,t,r){return e==="position"||e==="preserve-aspect"&&!xM(Ny(t),Ny(r),.2)}function qM(e){return e!==e.root&&e.scroll?.wasRoot}const ZM=kw({attachResizeListener:(e,t)=>ti(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Yc={current:void 0},Aw=kw({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Yc.current){const e=new ZM({});e.mount(window),e.setOptions({layoutScroll:!0}),Yc.current=e}return Yc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),qf=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Uy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function JM(...e){return t=>{let r=!1;const s=e.map(a=>{const l=Uy(a,t);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let a=0;a<s.length;a++){const l=s[a];typeof l=="function"?l():Uy(e[a],null)}}}}function e2(...e){return w.useCallback(JM(...e),e)}class t2 extends w.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(Wa(r)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=r.offsetParent,a=Wa(s)&&s.offsetWidth||0,l=Wa(s)&&s.offsetHeight||0,c=getComputedStyle(r),d=this.props.sizeRef.current;d.height=parseFloat(c.height),d.width=parseFloat(c.width),d.top=r.offsetTop,d.left=r.offsetLeft,d.right=a-d.width-d.left,d.bottom=l-d.height-d.top}return null}componentDidUpdate(){}render(){return this.props.children}}function n2({children:e,isPresent:t,anchorX:r,anchorY:s,root:a,pop:l}){const c=w.useId(),d=w.useRef(null),h=w.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=w.useContext(qf),m=e.props?.ref??e?.ref,y=e2(d,m);return w.useInsertionEffect(()=>{const{width:b,height:v,top:P,left:S,right:E,bottom:T}=h.current;if(t||l===!1||!d.current||!b||!v)return;const R=r==="left"?`left: ${S}`:`right: ${E}`,N=s==="bottom"?`bottom: ${T}`:`top: ${P}`;d.current.dataset.motionPopId=c;const A=document.createElement("style");p&&(A.nonce=p);const O=a??document.head;return O.appendChild(A),A.sheet&&A.sheet.insertRule(`
|
|
8
|
+
`+g.stack}return{value:n,source:o,stack:f,digest:null}}function Yu(n,o,i){return{value:n,source:null,stack:i??null,digest:o??null}}function Gu(n,o){try{console.error(o.value)}catch(i){setTimeout(function(){throw i})}}var wS=typeof WeakMap=="function"?WeakMap:Map;function Gp(n,o,i){i=Bn(-1,i),i.tag=3,i.payload={element:null};var u=o.value;return i.callback=function(){ua||(ua=!0,cc=u),Gu(n,o)},i}function Xp(n,o,i){i=Bn(-1,i),i.tag=3;var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var f=o.value;i.payload=function(){return u(f)},i.callback=function(){Gu(n,o)}}var g=n.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(i.callback=function(){Gu(n,o),typeof u!="function"&&(cr===null?cr=new Set([this]):cr.add(this));var C=o.stack;this.componentDidCatch(o.value,{componentStack:C!==null?C:""})}),i}function qp(n,o,i){var u=n.pingCache;if(u===null){u=n.pingCache=new wS;var f=new Set;u.set(o,f)}else f=u.get(o),f===void 0&&(f=new Set,u.set(o,f));f.has(i)||(f.add(i),n=OS.bind(null,n,o,i),o.then(n,n))}function Zp(n){do{var o;if((o=n.tag===13)&&(o=n.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return n;n=n.return}while(n!==null);return null}function Jp(n,o,i,u,f){return(n.mode&1)===0?(n===o?n.flags|=65536:(n.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(o=Bn(-1,1),o.tag=2,lr(i,o,1))),i.lanes|=1),n):(n.flags|=65536,n.lanes=f,n)}var bS=A.ReactCurrentOwner,Ct=!1;function mt(n,o,i,u){o.child=n===null?xp(o,null,i,u):xo(o,n.child,i,u)}function em(n,o,i,u,f){i=i.render;var g=o.ref;return bo(o,f),u=Bu(n,o,i,u,g,f),i=zu(),n!==null&&!Ct?(o.updateQueue=n.updateQueue,o.flags&=-2053,n.lanes&=~f,zn(n,o,f)):(Ie&&i&&Cu(o),o.flags|=1,mt(n,o,u,f),o.child)}function tm(n,o,i,u,f){if(n===null){var g=i.type;return typeof g=="function"&&!yc(g)&&g.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(o.tag=15,o.type=g,nm(n,o,g,u,f)):(n=ma(i.type,null,u,o,o.mode,f),n.ref=o.ref,n.return=o,o.child=n)}if(g=n.child,(n.lanes&f)===0){var C=g.memoizedProps;if(i=i.compare,i=i!==null?i:vs,i(C,u)&&n.ref===o.ref)return zn(n,o,f)}return o.flags|=1,n=pr(g,u),n.ref=o.ref,n.return=o,o.child=n}function nm(n,o,i,u,f){if(n!==null){var g=n.memoizedProps;if(vs(g,u)&&n.ref===o.ref)if(Ct=!1,o.pendingProps=u=g,(n.lanes&f)!==0)(n.flags&131072)!==0&&(Ct=!0);else return o.lanes=n.lanes,zn(n,o,f)}return Xu(n,o,i,u,f)}function rm(n,o,i){var u=o.pendingProps,f=u.children,g=n!==null?n.memoizedState:null;if(u.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},Me(Po,Dt),Dt|=i;else{if((i&1073741824)===0)return n=g!==null?g.baseLanes|i:i,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:n,cachePool:null,transitions:null},o.updateQueue=null,Me(Po,Dt),Dt|=n,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=g!==null?g.baseLanes:i,Me(Po,Dt),Dt|=u}else g!==null?(u=g.baseLanes|i,o.memoizedState=null):u=i,Me(Po,Dt),Dt|=u;return mt(n,o,f,i),o.child}function om(n,o){var i=o.ref;(n===null&&i!==null||n!==null&&n.ref!==i)&&(o.flags|=512,o.flags|=2097152)}function Xu(n,o,i,u,f){var g=St(i)?Ar:lt.current;return g=mo(o,g),bo(o,f),i=Bu(n,o,i,u,g,f),u=zu(),n!==null&&!Ct?(o.updateQueue=n.updateQueue,o.flags&=-2053,n.lanes&=~f,zn(n,o,f)):(Ie&&u&&Cu(o),o.flags|=1,mt(n,o,i,f),o.child)}function sm(n,o,i,u,f){if(St(i)){var g=!0;Bi(o)}else g=!1;if(bo(o,f),o.stateNode===null)oa(n,o),Qp(o,i,u),Qu(o,i,u,f),u=!0;else if(n===null){var C=o.stateNode,k=o.memoizedProps;C.props=k;var j=C.context,I=i.contextType;typeof I=="object"&&I!==null?I=Ut(I):(I=St(i)?Ar:lt.current,I=mo(o,I));var Y=i.getDerivedStateFromProps,G=typeof Y=="function"||typeof C.getSnapshotBeforeUpdate=="function";G||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(k!==u||j!==I)&&Yp(o,C,u,I),ar=!1;var Q=o.memoizedState;C.state=Q,Gi(o,u,C,f),j=o.memoizedState,k!==u||Q!==j||bt.current||ar?(typeof Y=="function"&&(Ku(o,i,Y,u),j=o.memoizedState),(k=ar||Kp(o,i,k,u,Q,j,I))?(G||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(o.flags|=4194308)):(typeof C.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=u,o.memoizedState=j),C.props=u,C.state=j,C.context=I,u=k):(typeof C.componentDidMount=="function"&&(o.flags|=4194308),u=!1)}else{C=o.stateNode,bp(n,o),k=o.memoizedProps,I=o.type===o.elementType?k:tn(o.type,k),C.props=I,G=o.pendingProps,Q=C.context,j=i.contextType,typeof j=="object"&&j!==null?j=Ut(j):(j=St(i)?Ar:lt.current,j=mo(o,j));var ne=i.getDerivedStateFromProps;(Y=typeof ne=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(k!==G||Q!==j)&&Yp(o,C,u,j),ar=!1,Q=o.memoizedState,C.state=Q,Gi(o,u,C,f);var ie=o.memoizedState;k!==G||Q!==ie||bt.current||ar?(typeof ne=="function"&&(Ku(o,i,ne,u),ie=o.memoizedState),(I=ar||Kp(o,i,I,u,Q,ie,j)||!1)?(Y||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(u,ie,j),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(u,ie,j)),typeof C.componentDidUpdate=="function"&&(o.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof C.componentDidUpdate!="function"||k===n.memoizedProps&&Q===n.memoizedState||(o.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||k===n.memoizedProps&&Q===n.memoizedState||(o.flags|=1024),o.memoizedProps=u,o.memoizedState=ie),C.props=u,C.state=ie,C.context=j,u=I):(typeof C.componentDidUpdate!="function"||k===n.memoizedProps&&Q===n.memoizedState||(o.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||k===n.memoizedProps&&Q===n.memoizedState||(o.flags|=1024),u=!1)}return qu(n,o,i,u,g,f)}function qu(n,o,i,u,f,g){om(n,o);var C=(o.flags&128)!==0;if(!u&&!C)return f&&cp(o,i,!1),zn(n,o,g);u=o.stateNode,bS.current=o;var k=C&&typeof i.getDerivedStateFromError!="function"?null:u.render();return o.flags|=1,n!==null&&C?(o.child=xo(o,n.child,null,g),o.child=xo(o,null,k,g)):mt(n,o,k,g),o.memoizedState=u.state,f&&cp(o,i,!0),o.child}function im(n){var o=n.stateNode;o.pendingContext?lp(n,o.pendingContext,o.pendingContext!==o.context):o.context&&lp(n,o.context,!1),Ou(n,o.containerInfo)}function am(n,o,i,u,f){return vo(),Ru(f),o.flags|=256,mt(n,o,i,u),o.child}var Zu={dehydrated:null,treeContext:null,retryLane:0};function Ju(n){return{baseLanes:n,cachePool:null,transitions:null}}function lm(n,o,i){var u=o.pendingProps,f=Ve.current,g=!1,C=(o.flags&128)!==0,k;if((k=C)||(k=n!==null&&n.memoizedState===null?!1:(f&2)!==0),k?(g=!0,o.flags&=-129):(n===null||n.memoizedState!==null)&&(f|=1),Me(Ve,f&1),n===null)return Tu(o),n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((o.mode&1)===0?o.lanes=1:n.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(C=u.children,n=u.fallback,g?(u=o.mode,g=o.child,C={mode:"hidden",children:C},(u&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=C):g=ga(C,u,0,null),n=Br(n,u,i,null),g.return=o,n.return=o,g.sibling=n,o.child=g,o.child.memoizedState=Ju(i),o.memoizedState=Zu,n):ec(o,C));if(f=n.memoizedState,f!==null&&(k=f.dehydrated,k!==null))return SS(n,o,C,u,k,f,i);if(g){g=u.fallback,C=o.mode,f=n.child,k=f.sibling;var j={mode:"hidden",children:u.children};return(C&1)===0&&o.child!==f?(u=o.child,u.childLanes=0,u.pendingProps=j,o.deletions=null):(u=pr(f,j),u.subtreeFlags=f.subtreeFlags&14680064),k!==null?g=pr(k,g):(g=Br(g,C,i,null),g.flags|=2),g.return=o,u.return=o,u.sibling=g,o.child=u,u=g,g=o.child,C=n.child.memoizedState,C=C===null?Ju(i):{baseLanes:C.baseLanes|i,cachePool:null,transitions:C.transitions},g.memoizedState=C,g.childLanes=n.childLanes&~i,o.memoizedState=Zu,u}return g=n.child,n=g.sibling,u=pr(g,{mode:"visible",children:u.children}),(o.mode&1)===0&&(u.lanes=i),u.return=o,u.sibling=null,n!==null&&(i=o.deletions,i===null?(o.deletions=[n],o.flags|=16):i.push(n)),o.child=u,o.memoizedState=null,u}function ec(n,o){return o=ga({mode:"visible",children:o},n.mode,0,null),o.return=n,n.child=o}function ra(n,o,i,u){return u!==null&&Ru(u),xo(o,n.child,null,i),n=ec(o,o.pendingProps.children),n.flags|=2,o.memoizedState=null,n}function SS(n,o,i,u,f,g,C){if(i)return o.flags&256?(o.flags&=-257,u=Yu(Error(r(422))),ra(n,o,C,u)):o.memoizedState!==null?(o.child=n.child,o.flags|=128,null):(g=u.fallback,f=o.mode,u=ga({mode:"visible",children:u.children},f,0,null),g=Br(g,f,C,null),g.flags|=2,u.return=o,g.return=o,u.sibling=g,o.child=u,(o.mode&1)!==0&&xo(o,n.child,null,C),o.child.memoizedState=Ju(C),o.memoizedState=Zu,g);if((o.mode&1)===0)return ra(n,o,C,null);if(f.data==="$!"){if(u=f.nextSibling&&f.nextSibling.dataset,u)var k=u.dgst;return u=k,g=Error(r(419)),u=Yu(g,u,void 0),ra(n,o,C,u)}if(k=(C&n.childLanes)!==0,Ct||k){if(u=et,u!==null){switch(C&-C){case 4:f=2;break;case 16:f=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:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(u.suspendedLanes|C))!==0?0:f,f!==0&&f!==g.retryLane&&(g.retryLane=f,Vn(n,f),on(u,n,f,-1))}return gc(),u=Yu(Error(r(421))),ra(n,o,C,u)}return f.data==="$?"?(o.flags|=128,o.child=n.child,o=LS.bind(null,n),f._reactRetry=o,null):(n=g.treeContext,Mt=rr(f.nextSibling),jt=o,Ie=!0,en=null,n!==null&&(Bt[zt++]=In,Bt[zt++]=Fn,Bt[zt++]=jr,In=n.id,Fn=n.overflow,jr=o),o=ec(o,u.children),o.flags|=4096,o)}function um(n,o,i){n.lanes|=o;var u=n.alternate;u!==null&&(u.lanes|=o),ju(n.return,o,i)}function tc(n,o,i,u,f){var g=n.memoizedState;g===null?n.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:u,tail:i,tailMode:f}:(g.isBackwards=o,g.rendering=null,g.renderingStartTime=0,g.last=u,g.tail=i,g.tailMode=f)}function cm(n,o,i){var u=o.pendingProps,f=u.revealOrder,g=u.tail;if(mt(n,o,u.children,i),u=Ve.current,(u&2)!==0)u=u&1|2,o.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=o.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&um(n,i,o);else if(n.tag===19)um(n,i,o);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===o)break e;for(;n.sibling===null;){if(n.return===null||n.return===o)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}u&=1}if(Me(Ve,u),(o.mode&1)===0)o.memoizedState=null;else switch(f){case"forwards":for(i=o.child,f=null;i!==null;)n=i.alternate,n!==null&&Xi(n)===null&&(f=i),i=i.sibling;i=f,i===null?(f=o.child,o.child=null):(f=i.sibling,i.sibling=null),tc(o,!1,f,i,g);break;case"backwards":for(i=null,f=o.child,o.child=null;f!==null;){if(n=f.alternate,n!==null&&Xi(n)===null){o.child=f;break}n=f.sibling,f.sibling=i,i=f,f=n}tc(o,!0,i,null,g);break;case"together":tc(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function oa(n,o){(o.mode&1)===0&&n!==null&&(n.alternate=null,o.alternate=null,o.flags|=2)}function zn(n,o,i){if(n!==null&&(o.dependencies=n.dependencies),_r|=o.lanes,(i&o.childLanes)===0)return null;if(n!==null&&o.child!==n.child)throw Error(r(153));if(o.child!==null){for(n=o.child,i=pr(n,n.pendingProps),o.child=i,i.return=o;n.sibling!==null;)n=n.sibling,i=i.sibling=pr(n,n.pendingProps),i.return=o;i.sibling=null}return o.child}function CS(n,o,i){switch(o.tag){case 3:im(o),vo();break;case 5:Ep(o);break;case 1:St(o.type)&&Bi(o);break;case 4:Ou(o,o.stateNode.containerInfo);break;case 10:var u=o.type._context,f=o.memoizedProps.value;Me(Ki,u._currentValue),u._currentValue=f;break;case 13:if(u=o.memoizedState,u!==null)return u.dehydrated!==null?(Me(Ve,Ve.current&1),o.flags|=128,null):(i&o.child.childLanes)!==0?lm(n,o,i):(Me(Ve,Ve.current&1),n=zn(n,o,i),n!==null?n.sibling:null);Me(Ve,Ve.current&1);break;case 19:if(u=(i&o.childLanes)!==0,(n.flags&128)!==0){if(u)return cm(n,o,i);o.flags|=128}if(f=o.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Me(Ve,Ve.current),u)break;return null;case 22:case 23:return o.lanes=0,rm(n,o,i)}return zn(n,o,i)}var dm,nc,fm,hm;dm=function(n,o){for(var i=o.child;i!==null;){if(i.tag===5||i.tag===6)n.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},nc=function(){},fm=function(n,o,i,u){var f=n.memoizedProps;if(f!==u){n=o.stateNode,Or(bn.current);var g=null;switch(i){case"input":f=Jo(n,f),u=Jo(n,u),g=[];break;case"select":f=K({},f,{value:void 0}),u=K({},u,{value:void 0}),g=[];break;case"textarea":f=eo(n,f),u=eo(n,u),g=[];break;default:typeof f.onClick!="function"&&typeof u.onClick=="function"&&(n.onclick=Ii)}gn(i,u);var C;i=null;for(I in f)if(!u.hasOwnProperty(I)&&f.hasOwnProperty(I)&&f[I]!=null)if(I==="style"){var k=f[I];for(C in k)k.hasOwnProperty(C)&&(i||(i={}),i[C]="")}else I!=="dangerouslySetInnerHTML"&&I!=="children"&&I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&I!=="autoFocus"&&(a.hasOwnProperty(I)?g||(g=[]):(g=g||[]).push(I,null));for(I in u){var j=u[I];if(k=f?.[I],u.hasOwnProperty(I)&&j!==k&&(j!=null||k!=null))if(I==="style")if(k){for(C in k)!k.hasOwnProperty(C)||j&&j.hasOwnProperty(C)||(i||(i={}),i[C]="");for(C in j)j.hasOwnProperty(C)&&k[C]!==j[C]&&(i||(i={}),i[C]=j[C])}else i||(g||(g=[]),g.push(I,i)),i=j;else I==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,k=k?k.__html:void 0,j!=null&&k!==j&&(g=g||[]).push(I,j)):I==="children"?typeof j!="string"&&typeof j!="number"||(g=g||[]).push(I,""+j):I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&(a.hasOwnProperty(I)?(j!=null&&I==="onScroll"&&Oe("scroll",n),g||k===j||(g=[])):(g=g||[]).push(I,j))}i&&(g=g||[]).push("style",i);var I=g;(o.updateQueue=I)&&(o.flags|=4)}},hm=function(n,o,i,u){i!==u&&(o.flags|=4)};function Ds(n,o){if(!Ie)switch(n.tailMode){case"hidden":o=n.tail;for(var i=null;o!==null;)o.alternate!==null&&(i=o),o=o.sibling;i===null?n.tail=null:i.sibling=null;break;case"collapsed":i=n.tail;for(var u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?o||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function ct(n){var o=n.alternate!==null&&n.alternate.child===n.child,i=0,u=0;if(o)for(var f=n.child;f!==null;)i|=f.lanes|f.childLanes,u|=f.subtreeFlags&14680064,u|=f.flags&14680064,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)i|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=u,n.childLanes=i,o}function ES(n,o,i){var u=o.pendingProps;switch(Eu(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(o),null;case 1:return St(o.type)&&Vi(),ct(o),null;case 3:return u=o.stateNode,So(),Le(bt),Le(lt),Iu(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(n===null||n.child===null)&&(Wi(o)?o.flags|=4:n===null||n.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,en!==null&&(hc(en),en=null))),nc(n,o),ct(o),null;case 5:Lu(o);var f=Or(ks.current);if(i=o.type,n!==null&&o.stateNode!=null)fm(n,o,i,u,f),n.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!u){if(o.stateNode===null)throw Error(r(166));return ct(o),null}if(n=Or(bn.current),Wi(o)){u=o.stateNode,i=o.type;var g=o.memoizedProps;switch(u[wn]=o,u[Cs]=g,n=(o.mode&1)!==0,i){case"dialog":Oe("cancel",u),Oe("close",u);break;case"iframe":case"object":case"embed":Oe("load",u);break;case"video":case"audio":for(f=0;f<ws.length;f++)Oe(ws[f],u);break;case"source":Oe("error",u);break;case"img":case"image":case"link":Oe("error",u),Oe("load",u);break;case"details":Oe("toggle",u);break;case"input":ui(u,g),Oe("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!g.multiple},Oe("invalid",u);break;case"textarea":hn(u,g),Oe("invalid",u)}gn(i,g),f=null;for(var C in g)if(g.hasOwnProperty(C)){var k=g[C];C==="children"?typeof k=="string"?u.textContent!==k&&(g.suppressHydrationWarning!==!0&&_i(u.textContent,k,n),f=["children",k]):typeof k=="number"&&u.textContent!==""+k&&(g.suppressHydrationWarning!==!0&&_i(u.textContent,k,n),f=["children",""+k]):a.hasOwnProperty(C)&&k!=null&&C==="onScroll"&&Oe("scroll",u)}switch(i){case"input":It(u),Jr(u,g,!0);break;case"textarea":It(u),di(u);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(u.onclick=Ii)}u=f,o.updateQueue=u,u!==null&&(o.flags|=4)}else{C=f.nodeType===9?f:f.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=ht(i)),n==="http://www.w3.org/1999/xhtml"?i==="script"?(n=C.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof u.is=="string"?n=C.createElement(i,{is:u.is}):(n=C.createElement(i),i==="select"&&(C=n,u.multiple?C.multiple=!0:u.size&&(C.size=u.size))):n=C.createElementNS(n,i),n[wn]=o,n[Cs]=u,dm(n,o,!1,!1),o.stateNode=n;e:{switch(C=rs(i,u),i){case"dialog":Oe("cancel",n),Oe("close",n),f=u;break;case"iframe":case"object":case"embed":Oe("load",n),f=u;break;case"video":case"audio":for(f=0;f<ws.length;f++)Oe(ws[f],n);f=u;break;case"source":Oe("error",n),f=u;break;case"img":case"image":case"link":Oe("error",n),Oe("load",n),f=u;break;case"details":Oe("toggle",n),f=u;break;case"input":ui(n,u),f=Jo(n,u),Oe("invalid",n);break;case"option":f=u;break;case"select":n._wrapperState={wasMultiple:!!u.multiple},f=K({},u,{value:void 0}),Oe("invalid",n);break;case"textarea":hn(n,u),f=eo(n,u),Oe("invalid",n);break;default:f=u}gn(i,f),k=f;for(g in k)if(k.hasOwnProperty(g)){var j=k[g];g==="style"?On(n,j):g==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,j!=null&&fi(n,j)):g==="children"?typeof j=="string"?(i!=="textarea"||j!=="")&&mn(n,j):typeof j=="number"&&mn(n,""+j):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(a.hasOwnProperty(g)?j!=null&&g==="onScroll"&&Oe("scroll",n):j!=null&&N(n,g,j,C))}switch(i){case"input":It(n),Jr(n,u,!1);break;case"textarea":It(n),di(n);break;case"option":u.value!=null&&n.setAttribute("value",""+Ce(u.value));break;case"select":n.multiple=!!u.multiple,g=u.value,g!=null?Vt(n,!!u.multiple,g,!1):u.defaultValue!=null&&Vt(n,!!u.multiple,u.defaultValue,!0);break;default:typeof f.onClick=="function"&&(n.onclick=Ii)}switch(i){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return ct(o),null;case 6:if(n&&o.stateNode!=null)hm(n,o,n.memoizedProps,u);else{if(typeof u!="string"&&o.stateNode===null)throw Error(r(166));if(i=Or(ks.current),Or(bn.current),Wi(o)){if(u=o.stateNode,i=o.memoizedProps,u[wn]=o,(g=u.nodeValue!==i)&&(n=jt,n!==null))switch(n.tag){case 3:_i(u.nodeValue,i,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&_i(u.nodeValue,i,(n.mode&1)!==0)}g&&(o.flags|=4)}else u=(i.nodeType===9?i:i.ownerDocument).createTextNode(u),u[wn]=o,o.stateNode=u}return ct(o),null;case 13:if(Le(Ve),u=o.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(Ie&&Mt!==null&&(o.mode&1)!==0&&(o.flags&128)===0)gp(),vo(),o.flags|=98560,g=!1;else if(g=Wi(o),u!==null&&u.dehydrated!==null){if(n===null){if(!g)throw Error(r(318));if(g=o.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[wn]=o}else vo(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;ct(o),g=!1}else en!==null&&(hc(en),en=null),g=!0;if(!g)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=i,o):(u=u!==null,u!==(n!==null&&n.memoizedState!==null)&&u&&(o.child.flags|=8192,(o.mode&1)!==0&&(n===null||(Ve.current&1)!==0?qe===0&&(qe=3):gc())),o.updateQueue!==null&&(o.flags|=4),ct(o),null);case 4:return So(),nc(n,o),n===null&&bs(o.stateNode.containerInfo),ct(o),null;case 10:return Au(o.type._context),ct(o),null;case 17:return St(o.type)&&Vi(),ct(o),null;case 19:if(Le(Ve),g=o.memoizedState,g===null)return ct(o),null;if(u=(o.flags&128)!==0,C=g.rendering,C===null)if(u)Ds(g,!1);else{if(qe!==0||n!==null&&(n.flags&128)!==0)for(n=o.child;n!==null;){if(C=Xi(n),C!==null){for(o.flags|=128,Ds(g,!1),u=C.updateQueue,u!==null&&(o.updateQueue=u,o.flags|=4),o.subtreeFlags=0,u=i,i=o.child;i!==null;)g=i,n=u,g.flags&=14680066,C=g.alternate,C===null?(g.childLanes=0,g.lanes=n,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=C.childLanes,g.lanes=C.lanes,g.child=C.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=C.memoizedProps,g.memoizedState=C.memoizedState,g.updateQueue=C.updateQueue,g.type=C.type,n=C.dependencies,g.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),i=i.sibling;return Me(Ve,Ve.current&1|2),o.child}n=n.sibling}g.tail!==null&&He()>To&&(o.flags|=128,u=!0,Ds(g,!1),o.lanes=4194304)}else{if(!u)if(n=Xi(C),n!==null){if(o.flags|=128,u=!0,i=n.updateQueue,i!==null&&(o.updateQueue=i,o.flags|=4),Ds(g,!0),g.tail===null&&g.tailMode==="hidden"&&!C.alternate&&!Ie)return ct(o),null}else 2*He()-g.renderingStartTime>To&&i!==1073741824&&(o.flags|=128,u=!0,Ds(g,!1),o.lanes=4194304);g.isBackwards?(C.sibling=o.child,o.child=C):(i=g.last,i!==null?i.sibling=C:o.child=C,g.last=C)}return g.tail!==null?(o=g.tail,g.rendering=o,g.tail=o.sibling,g.renderingStartTime=He(),o.sibling=null,i=Ve.current,Me(Ve,u?i&1|2:i&1),o):(ct(o),null);case 22:case 23:return mc(),u=o.memoizedState!==null,n!==null&&n.memoizedState!==null!==u&&(o.flags|=8192),u&&(o.mode&1)!==0?(Dt&1073741824)!==0&&(ct(o),o.subtreeFlags&6&&(o.flags|=8192)):ct(o),null;case 24:return null;case 25:return null}throw Error(r(156,o.tag))}function PS(n,o){switch(Eu(o),o.tag){case 1:return St(o.type)&&Vi(),n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 3:return So(),Le(bt),Le(lt),Iu(),n=o.flags,(n&65536)!==0&&(n&128)===0?(o.flags=n&-65537|128,o):null;case 5:return Lu(o),null;case 13:if(Le(Ve),n=o.memoizedState,n!==null&&n.dehydrated!==null){if(o.alternate===null)throw Error(r(340));vo()}return n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 19:return Le(Ve),null;case 4:return So(),null;case 10:return Au(o.type._context),null;case 22:case 23:return mc(),null;case 24:return null;default:return null}}var sa=!1,dt=!1,TS=typeof WeakSet=="function"?WeakSet:Set,se=null;function Eo(n,o){var i=n.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(u){$e(n,o,u)}else i.current=null}function rc(n,o,i){try{i()}catch(u){$e(n,o,u)}}var pm=!1;function RS(n,o){if(mu=Pi,n=Kh(),au(n)){if("selectionStart"in n)var i={start:n.selectionStart,end:n.selectionEnd};else e:{i=(i=n.ownerDocument)&&i.defaultView||window;var u=i.getSelection&&i.getSelection();if(u&&u.rangeCount!==0){i=u.anchorNode;var f=u.anchorOffset,g=u.focusNode;u=u.focusOffset;try{i.nodeType,g.nodeType}catch{i=null;break e}var C=0,k=-1,j=-1,I=0,Y=0,G=n,Q=null;t:for(;;){for(var ne;G!==i||f!==0&&G.nodeType!==3||(k=C+f),G!==g||u!==0&&G.nodeType!==3||(j=C+u),G.nodeType===3&&(C+=G.nodeValue.length),(ne=G.firstChild)!==null;)Q=G,G=ne;for(;;){if(G===n)break t;if(Q===i&&++I===f&&(k=C),Q===g&&++Y===u&&(j=C),(ne=G.nextSibling)!==null)break;G=Q,Q=G.parentNode}G=ne}i=k===-1||j===-1?null:{start:k,end:j}}else i=null}i=i||{start:0,end:0}}else i=null;for(gu={focusedElem:n,selectionRange:i},Pi=!1,se=o;se!==null;)if(o=se,n=o.child,(o.subtreeFlags&1028)!==0&&n!==null)n.return=o,se=n;else for(;se!==null;){o=se;try{var ie=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(ie!==null){var ue=ie.memoizedProps,Ke=ie.memoizedState,L=o.stateNode,D=L.getSnapshotBeforeUpdate(o.elementType===o.type?ue:tn(o.type,ue),Ke);L.__reactInternalSnapshotBeforeUpdate=D}break;case 3:var _=o.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Z){$e(o,o.return,Z)}if(n=o.sibling,n!==null){n.return=o.return,se=n;break}se=o.return}return ie=pm,pm=!1,ie}function Os(n,o,i){var u=o.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var f=u=u.next;do{if((f.tag&n)===n){var g=f.destroy;f.destroy=void 0,g!==void 0&&rc(o,i,g)}f=f.next}while(f!==u)}}function ia(n,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var i=o=o.next;do{if((i.tag&n)===n){var u=i.create;i.destroy=u()}i=i.next}while(i!==o)}}function oc(n){var o=n.ref;if(o!==null){var i=n.stateNode;n.tag,n=i,typeof o=="function"?o(n):o.current=n}}function mm(n){var o=n.alternate;o!==null&&(n.alternate=null,mm(o)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(o=n.stateNode,o!==null&&(delete o[wn],delete o[Cs],delete o[wu],delete o[uS],delete o[cS])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function gm(n){return n.tag===5||n.tag===3||n.tag===4}function ym(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||gm(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function sc(n,o,i){var u=n.tag;if(u===5||u===6)n=n.stateNode,o?i.nodeType===8?i.parentNode.insertBefore(n,o):i.insertBefore(n,o):(i.nodeType===8?(o=i.parentNode,o.insertBefore(n,i)):(o=i,o.appendChild(n)),i=i._reactRootContainer,i!=null||o.onclick!==null||(o.onclick=Ii));else if(u!==4&&(n=n.child,n!==null))for(sc(n,o,i),n=n.sibling;n!==null;)sc(n,o,i),n=n.sibling}function ic(n,o,i){var u=n.tag;if(u===5||u===6)n=n.stateNode,o?i.insertBefore(n,o):i.appendChild(n);else if(u!==4&&(n=n.child,n!==null))for(ic(n,o,i),n=n.sibling;n!==null;)ic(n,o,i),n=n.sibling}var rt=null,nn=!1;function ur(n,o,i){for(i=i.child;i!==null;)vm(n,o,i),i=i.sibling}function vm(n,o,i){if(xn&&typeof xn.onCommitFiberUnmount=="function")try{xn.onCommitFiberUnmount(xi,i)}catch{}switch(i.tag){case 5:dt||Eo(i,o);case 6:var u=rt,f=nn;rt=null,ur(n,o,i),rt=u,nn=f,rt!==null&&(nn?(n=rt,i=i.stateNode,n.nodeType===8?n.parentNode.removeChild(i):n.removeChild(i)):rt.removeChild(i.stateNode));break;case 18:rt!==null&&(nn?(n=rt,i=i.stateNode,n.nodeType===8?xu(n.parentNode,i):n.nodeType===1&&xu(n,i),fs(n)):xu(rt,i.stateNode));break;case 4:u=rt,f=nn,rt=i.stateNode.containerInfo,nn=!0,ur(n,o,i),rt=u,nn=f;break;case 0:case 11:case 14:case 15:if(!dt&&(u=i.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){f=u=u.next;do{var g=f,C=g.destroy;g=g.tag,C!==void 0&&((g&2)!==0||(g&4)!==0)&&rc(i,o,C),f=f.next}while(f!==u)}ur(n,o,i);break;case 1:if(!dt&&(Eo(i,o),u=i.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=i.memoizedProps,u.state=i.memoizedState,u.componentWillUnmount()}catch(k){$e(i,o,k)}ur(n,o,i);break;case 21:ur(n,o,i);break;case 22:i.mode&1?(dt=(u=dt)||i.memoizedState!==null,ur(n,o,i),dt=u):ur(n,o,i);break;default:ur(n,o,i)}}function xm(n){var o=n.updateQueue;if(o!==null){n.updateQueue=null;var i=n.stateNode;i===null&&(i=n.stateNode=new TS),o.forEach(function(u){var f=_S.bind(null,n,u);i.has(u)||(i.add(u),u.then(f,f))})}}function rn(n,o){var i=o.deletions;if(i!==null)for(var u=0;u<i.length;u++){var f=i[u];try{var g=n,C=o,k=C;e:for(;k!==null;){switch(k.tag){case 5:rt=k.stateNode,nn=!1;break e;case 3:rt=k.stateNode.containerInfo,nn=!0;break e;case 4:rt=k.stateNode.containerInfo,nn=!0;break e}k=k.return}if(rt===null)throw Error(r(160));vm(g,C,f),rt=null,nn=!1;var j=f.alternate;j!==null&&(j.return=null),f.return=null}catch(I){$e(f,o,I)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)wm(o,n),o=o.sibling}function wm(n,o){var i=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(rn(o,n),Cn(n),u&4){try{Os(3,n,n.return),ia(3,n)}catch(ue){$e(n,n.return,ue)}try{Os(5,n,n.return)}catch(ue){$e(n,n.return,ue)}}break;case 1:rn(o,n),Cn(n),u&512&&i!==null&&Eo(i,i.return);break;case 5:if(rn(o,n),Cn(n),u&512&&i!==null&&Eo(i,i.return),n.flags&32){var f=n.stateNode;try{mn(f,"")}catch(ue){$e(n,n.return,ue)}}if(u&4&&(f=n.stateNode,f!=null)){var g=n.memoizedProps,C=i!==null?i.memoizedProps:g,k=n.type,j=n.updateQueue;if(n.updateQueue=null,j!==null)try{k==="input"&&g.type==="radio"&&g.name!=null&&es(f,g),rs(k,C);var I=rs(k,g);for(C=0;C<j.length;C+=2){var Y=j[C],G=j[C+1];Y==="style"?On(f,G):Y==="dangerouslySetInnerHTML"?fi(f,G):Y==="children"?mn(f,G):N(f,Y,G,I)}switch(k){case"input":ts(f,g);break;case"textarea":ci(f,g);break;case"select":var Q=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!g.multiple;var ne=g.value;ne!=null?Vt(f,!!g.multiple,ne,!1):Q!==!!g.multiple&&(g.defaultValue!=null?Vt(f,!!g.multiple,g.defaultValue,!0):Vt(f,!!g.multiple,g.multiple?[]:"",!1))}f[Cs]=g}catch(ue){$e(n,n.return,ue)}}break;case 6:if(rn(o,n),Cn(n),u&4){if(n.stateNode===null)throw Error(r(162));f=n.stateNode,g=n.memoizedProps;try{f.nodeValue=g}catch(ue){$e(n,n.return,ue)}}break;case 3:if(rn(o,n),Cn(n),u&4&&i!==null&&i.memoizedState.isDehydrated)try{fs(o.containerInfo)}catch(ue){$e(n,n.return,ue)}break;case 4:rn(o,n),Cn(n);break;case 13:rn(o,n),Cn(n),f=n.child,f.flags&8192&&(g=f.memoizedState!==null,f.stateNode.isHidden=g,!g||f.alternate!==null&&f.alternate.memoizedState!==null||(uc=He())),u&4&&xm(n);break;case 22:if(Y=i!==null&&i.memoizedState!==null,n.mode&1?(dt=(I=dt)||Y,rn(o,n),dt=I):rn(o,n),Cn(n),u&8192){if(I=n.memoizedState!==null,(n.stateNode.isHidden=I)&&!Y&&(n.mode&1)!==0)for(se=n,Y=n.child;Y!==null;){for(G=se=Y;se!==null;){switch(Q=se,ne=Q.child,Q.tag){case 0:case 11:case 14:case 15:Os(4,Q,Q.return);break;case 1:Eo(Q,Q.return);var ie=Q.stateNode;if(typeof ie.componentWillUnmount=="function"){u=Q,i=Q.return;try{o=u,ie.props=o.memoizedProps,ie.state=o.memoizedState,ie.componentWillUnmount()}catch(ue){$e(u,i,ue)}}break;case 5:Eo(Q,Q.return);break;case 22:if(Q.memoizedState!==null){Cm(G);continue}}ne!==null?(ne.return=Q,se=ne):Cm(G)}Y=Y.sibling}e:for(Y=null,G=n;;){if(G.tag===5){if(Y===null){Y=G;try{f=G.stateNode,I?(g=f.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(k=G.stateNode,j=G.memoizedProps.style,C=j!=null&&j.hasOwnProperty("display")?j.display:null,k.style.display=no("display",C))}catch(ue){$e(n,n.return,ue)}}}else if(G.tag===6){if(Y===null)try{G.stateNode.nodeValue=I?"":G.memoizedProps}catch(ue){$e(n,n.return,ue)}}else if((G.tag!==22&&G.tag!==23||G.memoizedState===null||G===n)&&G.child!==null){G.child.return=G,G=G.child;continue}if(G===n)break e;for(;G.sibling===null;){if(G.return===null||G.return===n)break e;Y===G&&(Y=null),G=G.return}Y===G&&(Y=null),G.sibling.return=G.return,G=G.sibling}}break;case 19:rn(o,n),Cn(n),u&4&&xm(n);break;case 21:break;default:rn(o,n),Cn(n)}}function Cn(n){var o=n.flags;if(o&2){try{e:{for(var i=n.return;i!==null;){if(gm(i)){var u=i;break e}i=i.return}throw Error(r(160))}switch(u.tag){case 5:var f=u.stateNode;u.flags&32&&(mn(f,""),u.flags&=-33);var g=ym(n);ic(n,g,f);break;case 3:case 4:var C=u.stateNode.containerInfo,k=ym(n);sc(n,k,C);break;default:throw Error(r(161))}}catch(j){$e(n,n.return,j)}n.flags&=-3}o&4096&&(n.flags&=-4097)}function kS(n,o,i){se=n,bm(n)}function bm(n,o,i){for(var u=(n.mode&1)!==0;se!==null;){var f=se,g=f.child;if(f.tag===22&&u){var C=f.memoizedState!==null||sa;if(!C){var k=f.alternate,j=k!==null&&k.memoizedState!==null||dt;k=sa;var I=dt;if(sa=C,(dt=j)&&!I)for(se=f;se!==null;)C=se,j=C.child,C.tag===22&&C.memoizedState!==null?Em(f):j!==null?(j.return=C,se=j):Em(f);for(;g!==null;)se=g,bm(g),g=g.sibling;se=f,sa=k,dt=I}Sm(n)}else(f.subtreeFlags&8772)!==0&&g!==null?(g.return=f,se=g):Sm(n)}}function Sm(n){for(;se!==null;){var o=se;if((o.flags&8772)!==0){var i=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:dt||ia(5,o);break;case 1:var u=o.stateNode;if(o.flags&4&&!dt)if(i===null)u.componentDidMount();else{var f=o.elementType===o.type?i.memoizedProps:tn(o.type,i.memoizedProps);u.componentDidUpdate(f,i.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var g=o.updateQueue;g!==null&&Cp(o,g,u);break;case 3:var C=o.updateQueue;if(C!==null){if(i=null,o.child!==null)switch(o.child.tag){case 5:i=o.child.stateNode;break;case 1:i=o.child.stateNode}Cp(o,C,i)}break;case 5:var k=o.stateNode;if(i===null&&o.flags&4){i=k;var j=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":j.autoFocus&&i.focus();break;case"img":j.src&&(i.src=j.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var I=o.alternate;if(I!==null){var Y=I.memoizedState;if(Y!==null){var G=Y.dehydrated;G!==null&&fs(G)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}dt||o.flags&512&&oc(o)}catch(Q){$e(o,o.return,Q)}}if(o===n){se=null;break}if(i=o.sibling,i!==null){i.return=o.return,se=i;break}se=o.return}}function Cm(n){for(;se!==null;){var o=se;if(o===n){se=null;break}var i=o.sibling;if(i!==null){i.return=o.return,se=i;break}se=o.return}}function Em(n){for(;se!==null;){var o=se;try{switch(o.tag){case 0:case 11:case 15:var i=o.return;try{ia(4,o)}catch(j){$e(o,i,j)}break;case 1:var u=o.stateNode;if(typeof u.componentDidMount=="function"){var f=o.return;try{u.componentDidMount()}catch(j){$e(o,f,j)}}var g=o.return;try{oc(o)}catch(j){$e(o,g,j)}break;case 5:var C=o.return;try{oc(o)}catch(j){$e(o,C,j)}}}catch(j){$e(o,o.return,j)}if(o===n){se=null;break}var k=o.sibling;if(k!==null){k.return=o.return,se=k;break}se=o.return}}var NS=Math.ceil,aa=A.ReactCurrentDispatcher,ac=A.ReactCurrentOwner,Wt=A.ReactCurrentBatchConfig,Ee=0,et=null,Ye=null,ot=0,Dt=0,Po=or(0),qe=0,Ls=null,_r=0,la=0,lc=0,_s=null,Et=null,uc=0,To=1/0,Un=null,ua=!1,cc=null,cr=null,ca=!1,dr=null,da=0,Is=0,dc=null,fa=-1,ha=0;function gt(){return(Ee&6)!==0?He():fa!==-1?fa:fa=He()}function fr(n){return(n.mode&1)===0?1:(Ee&2)!==0&&ot!==0?ot&-ot:fS.transition!==null?(ha===0&&(ha=yh()),ha):(n=Ne,n!==0||(n=window.event,n=n===void 0?16:Th(n.type)),n)}function on(n,o,i,u){if(50<Is)throw Is=0,dc=null,Error(r(185));as(n,i,u),((Ee&2)===0||n!==et)&&(n===et&&((Ee&2)===0&&(la|=i),qe===4&&hr(n,ot)),Pt(n,u),i===1&&Ee===0&&(o.mode&1)===0&&(To=He()+500,zi&&ir()))}function Pt(n,o){var i=n.callbackNode;f1(n,o);var u=Si(n,n===et?ot:0);if(u===0)i!==null&&ph(i),n.callbackNode=null,n.callbackPriority=0;else if(o=u&-u,n.callbackPriority!==o){if(i!=null&&ph(i),o===1)n.tag===0?dS(Tm.bind(null,n)):dp(Tm.bind(null,n)),aS(function(){(Ee&6)===0&&ir()}),i=null;else{switch(vh(u)){case 1:i=Wl;break;case 4:i=mh;break;case 16:i=vi;break;case 536870912:i=gh;break;default:i=vi}i=Om(i,Pm.bind(null,n))}n.callbackPriority=o,n.callbackNode=i}}function Pm(n,o){if(fa=-1,ha=0,(Ee&6)!==0)throw Error(r(327));var i=n.callbackNode;if(Ro()&&n.callbackNode!==i)return null;var u=Si(n,n===et?ot:0);if(u===0)return null;if((u&30)!==0||(u&n.expiredLanes)!==0||o)o=pa(n,u);else{o=u;var f=Ee;Ee|=2;var g=km();(et!==n||ot!==o)&&(Un=null,To=He()+500,Fr(n,o));do try{MS();break}catch(k){Rm(n,k)}while(!0);Nu(),aa.current=g,Ee=f,Ye!==null?o=0:(et=null,ot=0,o=qe)}if(o!==0){if(o===2&&(f=Hl(n),f!==0&&(u=f,o=fc(n,f))),o===1)throw i=Ls,Fr(n,0),hr(n,u),Pt(n,He()),i;if(o===6)hr(n,u);else{if(f=n.current.alternate,(u&30)===0&&!AS(f)&&(o=pa(n,u),o===2&&(g=Hl(n),g!==0&&(u=g,o=fc(n,g))),o===1))throw i=Ls,Fr(n,0),hr(n,u),Pt(n,He()),i;switch(n.finishedWork=f,n.finishedLanes=u,o){case 0:case 1:throw Error(r(345));case 2:Vr(n,Et,Un);break;case 3:if(hr(n,u),(u&130023424)===u&&(o=uc+500-He(),10<o)){if(Si(n,0)!==0)break;if(f=n.suspendedLanes,(f&u)!==u){gt(),n.pingedLanes|=n.suspendedLanes&f;break}n.timeoutHandle=vu(Vr.bind(null,n,Et,Un),o);break}Vr(n,Et,Un);break;case 4:if(hr(n,u),(u&4194240)===u)break;for(o=n.eventTimes,f=-1;0<u;){var C=31-Zt(u);g=1<<C,C=o[C],C>f&&(f=C),u&=~g}if(u=f,u=He()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*NS(u/1960))-u,10<u){n.timeoutHandle=vu(Vr.bind(null,n,Et,Un),u);break}Vr(n,Et,Un);break;case 5:Vr(n,Et,Un);break;default:throw Error(r(329))}}}return Pt(n,He()),n.callbackNode===i?Pm.bind(null,n):null}function fc(n,o){var i=_s;return n.current.memoizedState.isDehydrated&&(Fr(n,o).flags|=256),n=pa(n,o),n!==2&&(o=Et,Et=i,o!==null&&hc(o)),n}function hc(n){Et===null?Et=n:Et.push.apply(Et,n)}function AS(n){for(var o=n;;){if(o.flags&16384){var i=o.updateQueue;if(i!==null&&(i=i.stores,i!==null))for(var u=0;u<i.length;u++){var f=i[u],g=f.getSnapshot;f=f.value;try{if(!Jt(g(),f))return!1}catch{return!1}}}if(i=o.child,o.subtreeFlags&16384&&i!==null)i.return=o,o=i;else{if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function hr(n,o){for(o&=~lc,o&=~la,n.suspendedLanes|=o,n.pingedLanes&=~o,n=n.expirationTimes;0<o;){var i=31-Zt(o),u=1<<i;n[i]=-1,o&=~u}}function Tm(n){if((Ee&6)!==0)throw Error(r(327));Ro();var o=Si(n,0);if((o&1)===0)return Pt(n,He()),null;var i=pa(n,o);if(n.tag!==0&&i===2){var u=Hl(n);u!==0&&(o=u,i=fc(n,u))}if(i===1)throw i=Ls,Fr(n,0),hr(n,o),Pt(n,He()),i;if(i===6)throw Error(r(345));return n.finishedWork=n.current.alternate,n.finishedLanes=o,Vr(n,Et,Un),Pt(n,He()),null}function pc(n,o){var i=Ee;Ee|=1;try{return n(o)}finally{Ee=i,Ee===0&&(To=He()+500,zi&&ir())}}function Ir(n){dr!==null&&dr.tag===0&&(Ee&6)===0&&Ro();var o=Ee;Ee|=1;var i=Wt.transition,u=Ne;try{if(Wt.transition=null,Ne=1,n)return n()}finally{Ne=u,Wt.transition=i,Ee=o,(Ee&6)===0&&ir()}}function mc(){Dt=Po.current,Le(Po)}function Fr(n,o){n.finishedWork=null,n.finishedLanes=0;var i=n.timeoutHandle;if(i!==-1&&(n.timeoutHandle=-1,iS(i)),Ye!==null)for(i=Ye.return;i!==null;){var u=i;switch(Eu(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&Vi();break;case 3:So(),Le(bt),Le(lt),Iu();break;case 5:Lu(u);break;case 4:So();break;case 13:Le(Ve);break;case 19:Le(Ve);break;case 10:Au(u.type._context);break;case 22:case 23:mc()}i=i.return}if(et=n,Ye=n=pr(n.current,null),ot=Dt=o,qe=0,Ls=null,lc=la=_r=0,Et=_s=null,Dr!==null){for(o=0;o<Dr.length;o++)if(i=Dr[o],u=i.interleaved,u!==null){i.interleaved=null;var f=u.next,g=i.pending;if(g!==null){var C=g.next;g.next=f,u.next=C}i.pending=u}Dr=null}return n}function Rm(n,o){do{var i=Ye;try{if(Nu(),qi.current=ta,Zi){for(var u=Be.memoizedState;u!==null;){var f=u.queue;f!==null&&(f.pending=null),u=u.next}Zi=!1}if(Lr=0,Je=Xe=Be=null,Ns=!1,As=0,ac.current=null,i===null||i.return===null){qe=1,Ls=o,Ye=null;break}e:{var g=n,C=i.return,k=i,j=o;if(o=ot,k.flags|=32768,j!==null&&typeof j=="object"&&typeof j.then=="function"){var I=j,Y=k,G=Y.tag;if((Y.mode&1)===0&&(G===0||G===11||G===15)){var Q=Y.alternate;Q?(Y.updateQueue=Q.updateQueue,Y.memoizedState=Q.memoizedState,Y.lanes=Q.lanes):(Y.updateQueue=null,Y.memoizedState=null)}var ne=Zp(C);if(ne!==null){ne.flags&=-257,Jp(ne,C,k,g,o),ne.mode&1&&qp(g,I,o),o=ne,j=I;var ie=o.updateQueue;if(ie===null){var ue=new Set;ue.add(j),o.updateQueue=ue}else ie.add(j);break e}else{if((o&1)===0){qp(g,I,o),gc();break e}j=Error(r(426))}}else if(Ie&&k.mode&1){var Ke=Zp(C);if(Ke!==null){(Ke.flags&65536)===0&&(Ke.flags|=256),Jp(Ke,C,k,g,o),Ru(Co(j,k));break e}}g=j=Co(j,k),qe!==4&&(qe=2),_s===null?_s=[g]:_s.push(g),g=C;do{switch(g.tag){case 3:g.flags|=65536,o&=-o,g.lanes|=o;var L=Gp(g,j,o);Sp(g,L);break e;case 1:k=j;var D=g.type,_=g.stateNode;if((g.flags&128)===0&&(typeof D.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(cr===null||!cr.has(_)))){g.flags|=65536,o&=-o,g.lanes|=o;var Z=Xp(g,k,o);Sp(g,Z);break e}}g=g.return}while(g!==null)}Am(i)}catch(ce){o=ce,Ye===i&&i!==null&&(Ye=i=i.return);continue}break}while(!0)}function km(){var n=aa.current;return aa.current=ta,n===null?ta:n}function gc(){(qe===0||qe===3||qe===2)&&(qe=4),et===null||(_r&268435455)===0&&(la&268435455)===0||hr(et,ot)}function pa(n,o){var i=Ee;Ee|=2;var u=km();(et!==n||ot!==o)&&(Un=null,Fr(n,o));do try{jS();break}catch(f){Rm(n,f)}while(!0);if(Nu(),Ee=i,aa.current=u,Ye!==null)throw Error(r(261));return et=null,ot=0,qe}function jS(){for(;Ye!==null;)Nm(Ye)}function MS(){for(;Ye!==null&&!r1();)Nm(Ye)}function Nm(n){var o=Dm(n.alternate,n,Dt);n.memoizedProps=n.pendingProps,o===null?Am(n):Ye=o,ac.current=null}function Am(n){var o=n;do{var i=o.alternate;if(n=o.return,(o.flags&32768)===0){if(i=ES(i,o,Dt),i!==null){Ye=i;return}}else{if(i=PS(i,o),i!==null){i.flags&=32767,Ye=i;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{qe=6,Ye=null;return}}if(o=o.sibling,o!==null){Ye=o;return}Ye=o=n}while(o!==null);qe===0&&(qe=5)}function Vr(n,o,i){var u=Ne,f=Wt.transition;try{Wt.transition=null,Ne=1,DS(n,o,i,u)}finally{Wt.transition=f,Ne=u}return null}function DS(n,o,i,u){do Ro();while(dr!==null);if((Ee&6)!==0)throw Error(r(327));i=n.finishedWork;var f=n.finishedLanes;if(i===null)return null;if(n.finishedWork=null,n.finishedLanes=0,i===n.current)throw Error(r(177));n.callbackNode=null,n.callbackPriority=0;var g=i.lanes|i.childLanes;if(h1(n,g),n===et&&(Ye=et=null,ot=0),(i.subtreeFlags&2064)===0&&(i.flags&2064)===0||ca||(ca=!0,Om(vi,function(){return Ro(),null})),g=(i.flags&15990)!==0,(i.subtreeFlags&15990)!==0||g){g=Wt.transition,Wt.transition=null;var C=Ne;Ne=1;var k=Ee;Ee|=4,ac.current=null,RS(n,i),wm(i,n),J1(gu),Pi=!!mu,gu=mu=null,n.current=i,kS(i),o1(),Ee=k,Ne=C,Wt.transition=g}else n.current=i;if(ca&&(ca=!1,dr=n,da=f),g=n.pendingLanes,g===0&&(cr=null),a1(i.stateNode),Pt(n,He()),o!==null)for(u=n.onRecoverableError,i=0;i<o.length;i++)f=o[i],u(f.value,{componentStack:f.stack,digest:f.digest});if(ua)throw ua=!1,n=cc,cc=null,n;return(da&1)!==0&&n.tag!==0&&Ro(),g=n.pendingLanes,(g&1)!==0?n===dc?Is++:(Is=0,dc=n):Is=0,ir(),null}function Ro(){if(dr!==null){var n=vh(da),o=Wt.transition,i=Ne;try{if(Wt.transition=null,Ne=16>n?16:n,dr===null)var u=!1;else{if(n=dr,dr=null,da=0,(Ee&6)!==0)throw Error(r(331));var f=Ee;for(Ee|=4,se=n.current;se!==null;){var g=se,C=g.child;if((se.flags&16)!==0){var k=g.deletions;if(k!==null){for(var j=0;j<k.length;j++){var I=k[j];for(se=I;se!==null;){var Y=se;switch(Y.tag){case 0:case 11:case 15:Os(8,Y,g)}var G=Y.child;if(G!==null)G.return=Y,se=G;else for(;se!==null;){Y=se;var Q=Y.sibling,ne=Y.return;if(mm(Y),Y===I){se=null;break}if(Q!==null){Q.return=ne,se=Q;break}se=ne}}}var ie=g.alternate;if(ie!==null){var ue=ie.child;if(ue!==null){ie.child=null;do{var Ke=ue.sibling;ue.sibling=null,ue=Ke}while(ue!==null)}}se=g}}if((g.subtreeFlags&2064)!==0&&C!==null)C.return=g,se=C;else e:for(;se!==null;){if(g=se,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:Os(9,g,g.return)}var L=g.sibling;if(L!==null){L.return=g.return,se=L;break e}se=g.return}}var D=n.current;for(se=D;se!==null;){C=se;var _=C.child;if((C.subtreeFlags&2064)!==0&&_!==null)_.return=C,se=_;else e:for(C=D;se!==null;){if(k=se,(k.flags&2048)!==0)try{switch(k.tag){case 0:case 11:case 15:ia(9,k)}}catch(ce){$e(k,k.return,ce)}if(k===C){se=null;break e}var Z=k.sibling;if(Z!==null){Z.return=k.return,se=Z;break e}se=k.return}}if(Ee=f,ir(),xn&&typeof xn.onPostCommitFiberRoot=="function")try{xn.onPostCommitFiberRoot(xi,n)}catch{}u=!0}return u}finally{Ne=i,Wt.transition=o}}return!1}function jm(n,o,i){o=Co(i,o),o=Gp(n,o,1),n=lr(n,o,1),o=gt(),n!==null&&(as(n,1,o),Pt(n,o))}function $e(n,o,i){if(n.tag===3)jm(n,n,i);else for(;o!==null;){if(o.tag===3){jm(o,n,i);break}else if(o.tag===1){var u=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(cr===null||!cr.has(u))){n=Co(i,n),n=Xp(o,n,1),o=lr(o,n,1),n=gt(),o!==null&&(as(o,1,n),Pt(o,n));break}}o=o.return}}function OS(n,o,i){var u=n.pingCache;u!==null&&u.delete(o),o=gt(),n.pingedLanes|=n.suspendedLanes&i,et===n&&(ot&i)===i&&(qe===4||qe===3&&(ot&130023424)===ot&&500>He()-uc?Fr(n,0):lc|=i),Pt(n,o)}function Mm(n,o){o===0&&((n.mode&1)===0?o=1:(o=bi,bi<<=1,(bi&130023424)===0&&(bi=4194304)));var i=gt();n=Vn(n,o),n!==null&&(as(n,o,i),Pt(n,i))}function LS(n){var o=n.memoizedState,i=0;o!==null&&(i=o.retryLane),Mm(n,i)}function _S(n,o){var i=0;switch(n.tag){case 13:var u=n.stateNode,f=n.memoizedState;f!==null&&(i=f.retryLane);break;case 19:u=n.stateNode;break;default:throw Error(r(314))}u!==null&&u.delete(o),Mm(n,i)}var Dm;Dm=function(n,o,i){if(n!==null)if(n.memoizedProps!==o.pendingProps||bt.current)Ct=!0;else{if((n.lanes&i)===0&&(o.flags&128)===0)return Ct=!1,CS(n,o,i);Ct=(n.flags&131072)!==0}else Ct=!1,Ie&&(o.flags&1048576)!==0&&fp(o,$i,o.index);switch(o.lanes=0,o.tag){case 2:var u=o.type;oa(n,o),n=o.pendingProps;var f=mo(o,lt.current);bo(o,i),f=Bu(null,o,u,n,f,i);var g=zu();return o.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,St(u)?(g=!0,Bi(o)):g=!1,o.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,Du(o),f.updater=na,o.stateNode=f,f._reactInternals=o,Qu(o,u,n,i),o=qu(null,o,u,!0,g,i)):(o.tag=0,Ie&&g&&Cu(o),mt(null,o,f,i),o=o.child),o;case 16:u=o.elementType;e:{switch(oa(n,o),n=o.pendingProps,f=u._init,u=f(u._payload),o.type=u,f=o.tag=FS(u),n=tn(u,n),f){case 0:o=Xu(null,o,u,n,i);break e;case 1:o=sm(null,o,u,n,i);break e;case 11:o=em(null,o,u,n,i);break e;case 14:o=tm(null,o,u,tn(u.type,n),i);break e}throw Error(r(306,u,""))}return o;case 0:return u=o.type,f=o.pendingProps,f=o.elementType===u?f:tn(u,f),Xu(n,o,u,f,i);case 1:return u=o.type,f=o.pendingProps,f=o.elementType===u?f:tn(u,f),sm(n,o,u,f,i);case 3:e:{if(im(o),n===null)throw Error(r(387));u=o.pendingProps,g=o.memoizedState,f=g.element,bp(n,o),Gi(o,u,null,i);var C=o.memoizedState;if(u=C.element,g.isDehydrated)if(g={element:u,isDehydrated:!1,cache:C.cache,pendingSuspenseBoundaries:C.pendingSuspenseBoundaries,transitions:C.transitions},o.updateQueue.baseState=g,o.memoizedState=g,o.flags&256){f=Co(Error(r(423)),o),o=am(n,o,u,i,f);break e}else if(u!==f){f=Co(Error(r(424)),o),o=am(n,o,u,i,f);break e}else for(Mt=rr(o.stateNode.containerInfo.firstChild),jt=o,Ie=!0,en=null,i=xp(o,null,u,i),o.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(vo(),u===f){o=zn(n,o,i);break e}mt(n,o,u,i)}o=o.child}return o;case 5:return Ep(o),n===null&&Tu(o),u=o.type,f=o.pendingProps,g=n!==null?n.memoizedProps:null,C=f.children,yu(u,f)?C=null:g!==null&&yu(u,g)&&(o.flags|=32),om(n,o),mt(n,o,C,i),o.child;case 6:return n===null&&Tu(o),null;case 13:return lm(n,o,i);case 4:return Ou(o,o.stateNode.containerInfo),u=o.pendingProps,n===null?o.child=xo(o,null,u,i):mt(n,o,u,i),o.child;case 11:return u=o.type,f=o.pendingProps,f=o.elementType===u?f:tn(u,f),em(n,o,u,f,i);case 7:return mt(n,o,o.pendingProps,i),o.child;case 8:return mt(n,o,o.pendingProps.children,i),o.child;case 12:return mt(n,o,o.pendingProps.children,i),o.child;case 10:e:{if(u=o.type._context,f=o.pendingProps,g=o.memoizedProps,C=f.value,Me(Ki,u._currentValue),u._currentValue=C,g!==null)if(Jt(g.value,C)){if(g.children===f.children&&!bt.current){o=zn(n,o,i);break e}}else for(g=o.child,g!==null&&(g.return=o);g!==null;){var k=g.dependencies;if(k!==null){C=g.child;for(var j=k.firstContext;j!==null;){if(j.context===u){if(g.tag===1){j=Bn(-1,i&-i),j.tag=2;var I=g.updateQueue;if(I!==null){I=I.shared;var Y=I.pending;Y===null?j.next=j:(j.next=Y.next,Y.next=j),I.pending=j}}g.lanes|=i,j=g.alternate,j!==null&&(j.lanes|=i),ju(g.return,i,o),k.lanes|=i;break}j=j.next}}else if(g.tag===10)C=g.type===o.type?null:g.child;else if(g.tag===18){if(C=g.return,C===null)throw Error(r(341));C.lanes|=i,k=C.alternate,k!==null&&(k.lanes|=i),ju(C,i,o),C=g.sibling}else C=g.child;if(C!==null)C.return=g;else for(C=g;C!==null;){if(C===o){C=null;break}if(g=C.sibling,g!==null){g.return=C.return,C=g;break}C=C.return}g=C}mt(n,o,f.children,i),o=o.child}return o;case 9:return f=o.type,u=o.pendingProps.children,bo(o,i),f=Ut(f),u=u(f),o.flags|=1,mt(n,o,u,i),o.child;case 14:return u=o.type,f=tn(u,o.pendingProps),f=tn(u.type,f),tm(n,o,u,f,i);case 15:return nm(n,o,o.type,o.pendingProps,i);case 17:return u=o.type,f=o.pendingProps,f=o.elementType===u?f:tn(u,f),oa(n,o),o.tag=1,St(u)?(n=!0,Bi(o)):n=!1,bo(o,i),Qp(o,u,f),Qu(o,u,f,i),qu(null,o,u,!0,n,i);case 19:return cm(n,o,i);case 22:return rm(n,o,i)}throw Error(r(156,o.tag))};function Om(n,o){return hh(n,o)}function IS(n,o,i,u){this.tag=n,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(n,o,i,u){return new IS(n,o,i,u)}function yc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function FS(n){if(typeof n=="function")return yc(n)?1:0;if(n!=null){if(n=n.$$typeof,n===X)return 11;if(n===he)return 14}return 2}function pr(n,o){var i=n.alternate;return i===null?(i=Ht(n.tag,o,n.key,n.mode),i.elementType=n.elementType,i.type=n.type,i.stateNode=n.stateNode,i.alternate=n,n.alternate=i):(i.pendingProps=o,i.type=n.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=n.flags&14680064,i.childLanes=n.childLanes,i.lanes=n.lanes,i.child=n.child,i.memoizedProps=n.memoizedProps,i.memoizedState=n.memoizedState,i.updateQueue=n.updateQueue,o=n.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},i.sibling=n.sibling,i.index=n.index,i.ref=n.ref,i}function ma(n,o,i,u,f,g){var C=2;if(u=n,typeof n=="function")yc(n)&&(C=1);else if(typeof n=="string")C=5;else e:switch(n){case $:return Br(i.children,f,g,o);case z:C=8,f|=8;break;case H:return n=Ht(12,i,o,f|2),n.elementType=H,n.lanes=g,n;case de:return n=Ht(13,i,o,f),n.elementType=de,n.lanes=g,n;case q:return n=Ht(19,i,o,f),n.elementType=q,n.lanes=g,n;case le:return ga(i,f,g,o);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case W:C=10;break e;case ee:C=9;break e;case X:C=11;break e;case he:C=14;break e;case re:C=16,u=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return o=Ht(C,i,o,f),o.elementType=n,o.type=u,o.lanes=g,o}function Br(n,o,i,u){return n=Ht(7,n,u,o),n.lanes=i,n}function ga(n,o,i,u){return n=Ht(22,n,u,o),n.elementType=le,n.lanes=i,n.stateNode={isHidden:!1},n}function vc(n,o,i){return n=Ht(6,n,null,o),n.lanes=i,n}function xc(n,o,i){return o=Ht(4,n.children!==null?n.children:[],n.key,o),o.lanes=i,o.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},o}function VS(n,o,i,u,f){this.tag=o,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Kl(0),this.expirationTimes=Kl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kl(0),this.identifierPrefix=u,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function wc(n,o,i,u,f,g,C,k,j){return n=new VS(n,o,i,k,j),o===1?(o=1,g===!0&&(o|=8)):o=0,g=Ht(3,null,null,o),n.current=g,g.stateNode=n,g.memoizedState={element:u,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},Du(g),n}function BS(n,o,i){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:u==null?null:""+u,children:n,containerInfo:o,implementation:i}}function Lm(n){if(!n)return sr;n=n._reactInternals;e:{if(kr(n)!==n||n.tag!==1)throw Error(r(170));var o=n;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(St(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(r(171))}if(n.tag===1){var i=n.type;if(St(i))return up(n,i,o)}return o}function _m(n,o,i,u,f,g,C,k,j){return n=wc(i,u,!0,n,f,g,C,k,j),n.context=Lm(null),i=n.current,u=gt(),f=fr(i),g=Bn(u,f),g.callback=o??null,lr(i,g,f),n.current.lanes=f,as(n,f,u),Pt(n,u),n}function ya(n,o,i,u){var f=o.current,g=gt(),C=fr(f);return i=Lm(i),o.context===null?o.context=i:o.pendingContext=i,o=Bn(g,C),o.payload={element:n},u=u===void 0?null:u,u!==null&&(o.callback=u),n=lr(f,o,C),n!==null&&(on(n,f,C,g),Yi(n,f,C)),C}function va(n){return n=n.current,n.child?(n.child.tag===5,n.child.stateNode):null}function Im(n,o){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var i=n.retryLane;n.retryLane=i!==0&&i<o?i:o}}function bc(n,o){Im(n,o),(n=n.alternate)&&Im(n,o)}function zS(){return null}var Fm=typeof reportError=="function"?reportError:function(n){console.error(n)};function Sc(n){this._internalRoot=n}xa.prototype.render=Sc.prototype.render=function(n){var o=this._internalRoot;if(o===null)throw Error(r(409));ya(n,o,null,null)},xa.prototype.unmount=Sc.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var o=n.containerInfo;Ir(function(){ya(null,n,null,null)}),o[Ln]=null}};function xa(n){this._internalRoot=n}xa.prototype.unstable_scheduleHydration=function(n){if(n){var o=bh();n={blockedOn:null,target:n,priority:o};for(var i=0;i<er.length&&o!==0&&o<er[i].priority;i++);er.splice(i,0,n),i===0&&Eh(n)}};function Cc(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function wa(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function Vm(){}function US(n,o,i,u,f){if(f){if(typeof u=="function"){var g=u;u=function(){var I=va(C);g.call(I)}}var C=_m(o,u,n,0,null,!1,!1,"",Vm);return n._reactRootContainer=C,n[Ln]=C.current,bs(n.nodeType===8?n.parentNode:n),Ir(),C}for(;f=n.lastChild;)n.removeChild(f);if(typeof u=="function"){var k=u;u=function(){var I=va(j);k.call(I)}}var j=wc(n,0,!1,null,null,!1,!1,"",Vm);return n._reactRootContainer=j,n[Ln]=j.current,bs(n.nodeType===8?n.parentNode:n),Ir(function(){ya(o,j,i,u)}),j}function ba(n,o,i,u,f){var g=i._reactRootContainer;if(g){var C=g;if(typeof f=="function"){var k=f;f=function(){var j=va(C);k.call(j)}}ya(o,C,n,f)}else C=US(i,o,n,f,u);return va(C)}xh=function(n){switch(n.tag){case 3:var o=n.stateNode;if(o.current.memoizedState.isDehydrated){var i=is(o.pendingLanes);i!==0&&(Ql(o,i|1),Pt(o,He()),(Ee&6)===0&&(To=He()+500,ir()))}break;case 13:Ir(function(){var u=Vn(n,1);if(u!==null){var f=gt();on(u,n,1,f)}}),bc(n,1)}},Yl=function(n){if(n.tag===13){var o=Vn(n,134217728);if(o!==null){var i=gt();on(o,n,134217728,i)}bc(n,134217728)}},wh=function(n){if(n.tag===13){var o=fr(n),i=Vn(n,o);if(i!==null){var u=gt();on(i,n,o,u)}bc(n,o)}},bh=function(){return Ne},Sh=function(n,o){var i=Ne;try{return Ne=n,o()}finally{Ne=i}},oo=function(n,o,i){switch(o){case"input":if(ts(n,i),o=i.name,i.type==="radio"&&o!=null){for(i=n;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<i.length;o++){var u=i[o];if(u!==n&&u.form===n.form){var f=Fi(u);if(!f)throw Error(r(90));Yn(u),ts(u,f)}}}break;case"textarea":ci(n,i);break;case"select":o=i.value,o!=null&&Vt(n,!!i.multiple,o,!1)}},ke=pc,Ae=Ir;var $S={usingClientEntryPoint:!1,Events:[Es,ho,Fi,mi,ve,pc]},Fs={findFiberByHostInstance:Nr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},WS={bundleType:Fs.bundleType,version:Fs.version,rendererPackageName:Fs.rendererPackageName,rendererConfig:Fs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:A.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=dh(n),n===null?null:n.stateNode},findFiberByHostInstance:Fs.findFiberByHostInstance||zS,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sa.isDisabled&&Sa.supportsFiber)try{xi=Sa.inject(WS),xn=Sa}catch{}}return Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$S,Tt.createPortal=function(n,o){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cc(o))throw Error(r(200));return BS(n,o,null,i)},Tt.createRoot=function(n,o){if(!Cc(n))throw Error(r(299));var i=!1,u="",f=Fm;return o!=null&&(o.unstable_strictMode===!0&&(i=!0),o.identifierPrefix!==void 0&&(u=o.identifierPrefix),o.onRecoverableError!==void 0&&(f=o.onRecoverableError)),o=wc(n,1,!1,null,null,i,!1,u,f),n[Ln]=o.current,bs(n.nodeType===8?n.parentNode:n),new Sc(o)},Tt.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var o=n._reactInternals;if(o===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=dh(o),n=n===null?null:n.stateNode,n},Tt.flushSync=function(n){return Ir(n)},Tt.hydrate=function(n,o,i){if(!wa(o))throw Error(r(200));return ba(null,n,o,!0,i)},Tt.hydrateRoot=function(n,o,i){if(!Cc(n))throw Error(r(405));var u=i!=null&&i.hydratedSources||null,f=!1,g="",C=Fm;if(i!=null&&(i.unstable_strictMode===!0&&(f=!0),i.identifierPrefix!==void 0&&(g=i.identifierPrefix),i.onRecoverableError!==void 0&&(C=i.onRecoverableError)),o=_m(o,null,n,1,i??null,f,!1,g,C),n[Ln]=o.current,bs(n),u)for(n=0;n<u.length;n++)i=u[n],f=i._getVersion,f=f(i._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[i,f]:o.mutableSourceEagerHydrationData.push(i,f);return new xa(o)},Tt.render=function(n,o,i){if(!wa(o))throw Error(r(200));return ba(null,n,o,!1,i)},Tt.unmountComponentAtNode=function(n){if(!wa(n))throw Error(r(40));return n._reactRootContainer?(Ir(function(){ba(null,null,n,!1,function(){n._reactRootContainer=null,n[Ln]=null})}),!0):!1},Tt.unstable_batchedUpdates=pc,Tt.unstable_renderSubtreeIntoContainer=function(n,o,i,u){if(!wa(i))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return ba(n,o,i,!1,u)},Tt.version="18.3.1-next-f1338f8080-20240426",Tt}var Ym;function vv(){if(Ym)return kc.exports;Ym=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),kc.exports=oC(),kc.exports}var bl=vv();const xv=yv(bl);function Re(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),r===!1||!a.defaultPrevented)return t?.(a)}}function Gm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ef(...e){return t=>{let r=!1;const s=e.map(a=>{const l=Gm(a,t);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let a=0;a<s.length;a++){const l=s[a];typeof l=="function"?l():Gm(e[a],null)}}}}function Ue(...e){return w.useCallback(ef(...e),e)}function sC(e,t){const r=w.createContext(t),s=l=>{const{children:c,...d}=l,h=w.useMemo(()=>d,Object.values(d));return x.jsx(r.Provider,{value:h,children:c})};s.displayName=e+"Provider";function a(l){const c=w.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[s,a]}function Zr(e,t=[]){let r=[];function s(l,c){const d=w.createContext(c),h=r.length;r=[...r,c];const p=y=>{const{scope:b,children:v,...P}=y,S=b?.[e]?.[h]||d,E=w.useMemo(()=>P,Object.values(P));return x.jsx(S.Provider,{value:E,children:v})};p.displayName=l+"Provider";function m(y,b){const v=b?.[e]?.[h]||d,P=w.useContext(v);if(P)return P;if(c!==void 0)return c;throw new Error(`\`${y}\` must be used within \`${l}\``)}return[p,m]}const a=()=>{const l=r.map(c=>w.createContext(c));return function(d){const h=d?.[e]||l;return w.useMemo(()=>({[`__scope${e}`]:{...d,[e]:h}}),[d,h])}};return a.scopeName=e,[s,iC(a,...t)]}function iC(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const s=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(l){const c=s.reduce((d,{useScope:h,scopeName:p})=>{const y=h(l)[`__scope${p}`];return{...d,...y}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}function Ja(e){const t=aC(e),r=w.forwardRef((s,a)=>{const{children:l,...c}=s,d=w.Children.toArray(l),h=d.find(uC);if(h){const p=h.props.children,m=d.map(y=>y===h?w.Children.count(p)>1?w.Children.only(null):w.isValidElement(p)?p.props.children:null:y);return x.jsx(t,{...c,ref:a,children:w.isValidElement(p)?w.cloneElement(p,void 0,m):null})}return x.jsx(t,{...c,ref:a,children:l})});return r.displayName=`${e}.Slot`,r}function aC(e){const t=w.forwardRef((r,s)=>{const{children:a,...l}=r;if(w.isValidElement(a)){const c=dC(a),d=cC(l,a.props);return a.type!==w.Fragment&&(d.ref=s?ef(s,c):c),w.cloneElement(a,d)}return w.Children.count(a)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wv=Symbol("radix.slottable");function lC(e){const t=({children:r})=>x.jsx(x.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=wv,t}function uC(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wv}function cC(e,t){const r={...t};for(const s in t){const a=e[s],l=t[s];/^on[A-Z]/.test(s)?a&&l?r[s]=(...d)=>{const h=l(...d);return a(...d),h}:a&&(r[s]=a):s==="style"?r[s]={...a,...l}:s==="className"&&(r[s]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}function dC(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function fC(e){const t=e+"CollectionProvider",[r,s]=Zr(t),[a,l]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=S=>{const{scope:E,children:T}=S,R=J.useRef(null),N=J.useRef(new Map).current;return x.jsx(a,{scope:E,itemMap:N,collectionRef:R,children:T})};c.displayName=t;const d=e+"CollectionSlot",h=Ja(d),p=J.forwardRef((S,E)=>{const{scope:T,children:R}=S,N=l(d,T),A=Ue(E,N.collectionRef);return x.jsx(h,{ref:A,children:R})});p.displayName=d;const m=e+"CollectionItemSlot",y="data-radix-collection-item",b=Ja(m),v=J.forwardRef((S,E)=>{const{scope:T,children:R,...N}=S,A=J.useRef(null),O=Ue(E,A),F=l(m,T);return J.useEffect(()=>(F.itemMap.set(A,{ref:A,...N}),()=>{F.itemMap.delete(A)})),x.jsx(b,{[y]:"",ref:O,children:R})});v.displayName=m;function P(S){const E=l(e+"CollectionConsumer",S);return J.useCallback(()=>{const R=E.collectionRef.current;if(!R)return[];const N=Array.from(R.querySelectorAll(`[${y}]`));return Array.from(E.itemMap.values()).sort((F,$)=>N.indexOf(F.ref.current)-N.indexOf($.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:c,Slot:p,ItemSlot:v},P,s]}var hC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],je=hC.reduce((e,t)=>{const r=Ja(`Primitive.${t}`),s=w.forwardRef((a,l)=>{const{asChild:c,...d}=a,h=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(h,{...d,ref:l})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function bv(e,t){e&&bl.flushSync(()=>e.dispatchEvent(t))}function at(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...r)=>t.current?.(...r),[])}function pC(e,t=globalThis?.document){const r=at(e);w.useEffect(()=>{const s=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[r,t])}var mC="DismissableLayer",ld="dismissableLayer.update",gC="dismissableLayer.pointerDownOutside",yC="dismissableLayer.focusOutside",Xm,Sv=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Sl=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:c,onDismiss:d,...h}=e,p=w.useContext(Sv),[m,y]=w.useState(null),b=m?.ownerDocument??globalThis?.document,[,v]=w.useState({}),P=Ue(t,$=>y($)),S=Array.from(p.layers),[E]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),T=S.indexOf(E),R=m?S.indexOf(m):-1,N=p.layersWithOutsidePointerEventsDisabled.size>0,A=R>=T,O=xC($=>{const z=$.target,H=[...p.branches].some(W=>W.contains(z));!A||H||(a?.($),c?.($),$.defaultPrevented||d?.())},b),F=wC($=>{const z=$.target;[...p.branches].some(W=>W.contains(z))||(l?.($),c?.($),$.defaultPrevented||d?.())},b);return pC($=>{R===p.layers.size-1&&(s?.($),!$.defaultPrevented&&d&&($.preventDefault(),d()))},b),w.useEffect(()=>{if(m)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Xm=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),qm(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Xm)}},[m,b,r,p]),w.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),qm())},[m,p]),w.useEffect(()=>{const $=()=>v({});return document.addEventListener(ld,$),()=>document.removeEventListener(ld,$)},[]),x.jsx(je.div,{...h,ref:P,style:{pointerEvents:N?A?"auto":"none":void 0,...e.style},onFocusCapture:Re(e.onFocusCapture,F.onFocusCapture),onBlurCapture:Re(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:Re(e.onPointerDownCapture,O.onPointerDownCapture)})});Sl.displayName=mC;var vC="DismissableLayerBranch",Cv=w.forwardRef((e,t)=>{const r=w.useContext(Sv),s=w.useRef(null),a=Ue(t,s);return w.useEffect(()=>{const l=s.current;if(l)return r.branches.add(l),()=>{r.branches.delete(l)}},[r.branches]),x.jsx(je.div,{...e,ref:a})});Cv.displayName=vC;function xC(e,t=globalThis?.document){const r=at(e),s=w.useRef(!1),a=w.useRef(()=>{});return w.useEffect(()=>{const l=d=>{if(d.target&&!s.current){let h=function(){Ev(gC,r,p,{discrete:!0})};const p={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=h,t.addEventListener("click",a.current,{once:!0})):h()}else t.removeEventListener("click",a.current);s.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",l),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>s.current=!0}}function wC(e,t=globalThis?.document){const r=at(e),s=w.useRef(!1);return w.useEffect(()=>{const a=l=>{l.target&&!s.current&&Ev(yC,r,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function qm(){const e=new CustomEvent(ld);document.dispatchEvent(e)}function Ev(e,t,r,{discrete:s}){const a=r.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),s?bv(a,l):a.dispatchEvent(l)}var bC=Sl,SC=Cv,Nn=globalThis?.document?w.useLayoutEffect:()=>{},CC="Portal",tf=w.forwardRef((e,t)=>{const{container:r,...s}=e,[a,l]=w.useState(!1);Nn(()=>l(!0),[]);const c=r||a&&globalThis?.document?.body;return c?xv.createPortal(x.jsx(je.div,{...s,ref:t}),c):null});tf.displayName=CC;function EC(e,t){return w.useReducer((r,s)=>t[r][s]??r,e)}var jn=e=>{const{present:t,children:r}=e,s=PC(t),a=typeof r=="function"?r({present:s.isPresent}):w.Children.only(r),l=Ue(s.ref,TC(a));return typeof r=="function"||s.isPresent?w.cloneElement(a,{ref:l}):null};jn.displayName="Presence";function PC(e){const[t,r]=w.useState(),s=w.useRef(null),a=w.useRef(e),l=w.useRef("none"),c=e?"mounted":"unmounted",[d,h]=EC(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const p=Ca(s.current);l.current=d==="mounted"?p:"none"},[d]),Nn(()=>{const p=s.current,m=a.current;if(m!==e){const b=l.current,v=Ca(p);e?h("MOUNT"):v==="none"||p?.display==="none"?h("UNMOUNT"):h(m&&b!==v?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,h]),Nn(()=>{if(t){let p;const m=t.ownerDocument.defaultView??window,y=v=>{const S=Ca(s.current).includes(CSS.escape(v.animationName));if(v.target===t&&S&&(h("ANIMATION_END"),!a.current)){const E=t.style.animationFillMode;t.style.animationFillMode="forwards",p=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=E)})}},b=v=>{v.target===t&&(l.current=Ca(s.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",y),t.addEventListener("animationend",y),()=>{m.clearTimeout(p),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",y),t.removeEventListener("animationend",y)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:w.useCallback(p=>{s.current=p?getComputedStyle(p):null,r(p)},[])}}function Ca(e){return e?.animationName||"none"}function TC(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var RC=wl[" useInsertionEffect ".trim().toString()]||Nn;function nf({prop:e,defaultProp:t,onChange:r=()=>{},caller:s}){const[a,l,c]=kC({defaultProp:t,onChange:r}),d=e!==void 0,h=d?e:a;{const m=w.useRef(e!==void 0);w.useEffect(()=>{const y=m.current;y!==d&&console.warn(`${s} is changing from ${y?"controlled":"uncontrolled"} to ${d?"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.`),m.current=d},[d,s])}const p=w.useCallback(m=>{if(d){const y=NC(m)?m(e):m;y!==e&&c.current?.(y)}else l(m)},[d,e,l,c]);return[h,p]}function kC({defaultProp:e,onChange:t}){const[r,s]=w.useState(e),a=w.useRef(r),l=w.useRef(t);return RC(()=>{l.current=t},[t]),w.useEffect(()=>{a.current!==r&&(l.current?.(r),a.current=r)},[r,a]),[r,s,l]}function NC(e){return typeof e=="function"}var AC=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"}),jC="VisuallyHidden",Cl=w.forwardRef((e,t)=>x.jsx(je.span,{...e,ref:t,style:{...AC,...e.style}}));Cl.displayName=jC;var MC=Cl,rf="ToastProvider",[of,DC,OC]=fC("Toast"),[Pv]=Zr("Toast",[OC]),[LC,El]=Pv(rf),Tv=e=>{const{__scopeToast:t,label:r="Notification",duration:s=5e3,swipeDirection:a="right",swipeThreshold:l=50,children:c}=e,[d,h]=w.useState(null),[p,m]=w.useState(0),y=w.useRef(!1),b=w.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${rf}\`. Expected non-empty \`string\`.`),x.jsx(of.Provider,{scope:t,children:x.jsx(LC,{scope:t,label:r,duration:s,swipeDirection:a,swipeThreshold:l,toastCount:p,viewport:d,onViewportChange:h,onToastAdd:w.useCallback(()=>m(v=>v+1),[]),onToastRemove:w.useCallback(()=>m(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:b,children:c})})};Tv.displayName=rf;var Rv="ToastViewport",_C=["F8"],ud="toast.viewportPause",cd="toast.viewportResume",kv=w.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:s=_C,label:a="Notifications ({hotkey})",...l}=e,c=El(Rv,r),d=DC(r),h=w.useRef(null),p=w.useRef(null),m=w.useRef(null),y=w.useRef(null),b=Ue(t,y,c.onViewportChange),v=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=c.toastCount>0;w.useEffect(()=>{const E=T=>{s.length!==0&&s.every(N=>T[N]||T.code===N)&&y.current?.focus()};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[s]),w.useEffect(()=>{const E=h.current,T=y.current;if(P&&E&&T){const R=()=>{if(!c.isClosePausedRef.current){const F=new CustomEvent(ud);T.dispatchEvent(F),c.isClosePausedRef.current=!0}},N=()=>{if(c.isClosePausedRef.current){const F=new CustomEvent(cd);T.dispatchEvent(F),c.isClosePausedRef.current=!1}},A=F=>{!E.contains(F.relatedTarget)&&N()},O=()=>{E.contains(document.activeElement)||N()};return E.addEventListener("focusin",R),E.addEventListener("focusout",A),E.addEventListener("pointermove",R),E.addEventListener("pointerleave",O),window.addEventListener("blur",R),window.addEventListener("focus",N),()=>{E.removeEventListener("focusin",R),E.removeEventListener("focusout",A),E.removeEventListener("pointermove",R),E.removeEventListener("pointerleave",O),window.removeEventListener("blur",R),window.removeEventListener("focus",N)}}},[P,c.isClosePausedRef]);const S=w.useCallback(({tabbingDirection:E})=>{const R=d().map(N=>{const A=N.ref.current,O=[A,...GC(A)];return E==="forwards"?O:O.reverse()});return(E==="forwards"?R.reverse():R).flat()},[d]);return w.useEffect(()=>{const E=y.current;if(E){const T=R=>{const N=R.altKey||R.ctrlKey||R.metaKey;if(R.key==="Tab"&&!N){const O=document.activeElement,F=R.shiftKey;if(R.target===E&&F){p.current?.focus();return}const H=S({tabbingDirection:F?"backwards":"forwards"}),W=H.findIndex(ee=>ee===O);jc(H.slice(W+1))?R.preventDefault():F?p.current?.focus():m.current?.focus()}};return E.addEventListener("keydown",T),()=>E.removeEventListener("keydown",T)}},[d,S]),x.jsxs(SC,{ref:h,role:"region","aria-label":a.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:P?void 0:"none"},children:[P&&x.jsx(dd,{ref:p,onFocusFromOutsideViewport:()=>{const E=S({tabbingDirection:"forwards"});jc(E)}}),x.jsx(of.Slot,{scope:r,children:x.jsx(je.ol,{tabIndex:-1,...l,ref:b})}),P&&x.jsx(dd,{ref:m,onFocusFromOutsideViewport:()=>{const E=S({tabbingDirection:"backwards"});jc(E)}})]})});kv.displayName=Rv;var Nv="ToastFocusProxy",dd=w.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:s,...a}=e,l=El(Nv,r);return x.jsx(Cl,{tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:c=>{const d=c.relatedTarget;!l.viewport?.contains(d)&&s()}})});dd.displayName=Nv;var ni="Toast",IC="toast.swipeStart",FC="toast.swipeMove",VC="toast.swipeCancel",BC="toast.swipeEnd",Av=w.forwardRef((e,t)=>{const{forceMount:r,open:s,defaultOpen:a,onOpenChange:l,...c}=e,[d,h]=nf({prop:s,defaultProp:a??!0,onChange:l,caller:ni});return x.jsx(jn,{present:r||d,children:x.jsx($C,{open:d,...c,ref:t,onClose:()=>h(!1),onPause:at(e.onPause),onResume:at(e.onResume),onSwipeStart:Re(e.onSwipeStart,p=>{p.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Re(e.onSwipeMove,p=>{const{x:m,y}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","move"),p.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:Re(e.onSwipeCancel,p=>{p.currentTarget.setAttribute("data-swipe","cancel"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Re(e.onSwipeEnd,p=>{const{x:m,y}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","end"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),h(!1)})})})});Av.displayName=ni;var[zC,UC]=Pv(ni,{onClose(){}}),$C=w.forwardRef((e,t)=>{const{__scopeToast:r,type:s="foreground",duration:a,open:l,onClose:c,onEscapeKeyDown:d,onPause:h,onResume:p,onSwipeStart:m,onSwipeMove:y,onSwipeCancel:b,onSwipeEnd:v,...P}=e,S=El(ni,r),[E,T]=w.useState(null),R=Ue(t,q=>T(q)),N=w.useRef(null),A=w.useRef(null),O=a||S.duration,F=w.useRef(0),$=w.useRef(O),z=w.useRef(0),{onToastAdd:H,onToastRemove:W}=S,ee=at(()=>{E?.contains(document.activeElement)&&S.viewport?.focus(),c()}),X=w.useCallback(q=>{!q||q===1/0||(window.clearTimeout(z.current),F.current=new Date().getTime(),z.current=window.setTimeout(ee,q))},[ee]);w.useEffect(()=>{const q=S.viewport;if(q){const he=()=>{X($.current),p?.()},re=()=>{const le=new Date().getTime()-F.current;$.current=$.current-le,window.clearTimeout(z.current),h?.()};return q.addEventListener(ud,re),q.addEventListener(cd,he),()=>{q.removeEventListener(ud,re),q.removeEventListener(cd,he)}}},[S.viewport,O,h,p,X]),w.useEffect(()=>{l&&!S.isClosePausedRef.current&&X(O)},[l,O,S.isClosePausedRef,X]),w.useEffect(()=>(H(),()=>W()),[H,W]);const de=w.useMemo(()=>E?Iv(E):null,[E]);return S.viewport?x.jsxs(x.Fragment,{children:[de&&x.jsx(WC,{__scopeToast:r,role:"status","aria-live":s==="foreground"?"assertive":"polite",children:de}),x.jsx(zC,{scope:r,onClose:ee,children:bl.createPortal(x.jsx(of.ItemSlot,{scope:r,children:x.jsx(bC,{asChild:!0,onEscapeKeyDown:Re(d,()=>{S.isFocusedToastEscapeKeyDownRef.current||ee(),S.isFocusedToastEscapeKeyDownRef.current=!1}),children:x.jsx(je.li,{tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":S.swipeDirection,...P,ref:R,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Re(e.onKeyDown,q=>{q.key==="Escape"&&(d?.(q.nativeEvent),q.nativeEvent.defaultPrevented||(S.isFocusedToastEscapeKeyDownRef.current=!0,ee()))}),onPointerDown:Re(e.onPointerDown,q=>{q.button===0&&(N.current={x:q.clientX,y:q.clientY})}),onPointerMove:Re(e.onPointerMove,q=>{if(!N.current)return;const he=q.clientX-N.current.x,re=q.clientY-N.current.y,le=!!A.current,V=["left","right"].includes(S.swipeDirection),U=["left","up"].includes(S.swipeDirection)?Math.min:Math.max,K=V?U(0,he):0,M=V?0:U(0,re),B=q.pointerType==="touch"?10:2,te={x:K,y:M},oe={originalEvent:q,delta:te};le?(A.current=te,Ea(FC,y,oe,{discrete:!1})):Zm(te,S.swipeDirection,B)?(A.current=te,Ea(IC,m,oe,{discrete:!1}),q.target.setPointerCapture(q.pointerId)):(Math.abs(he)>B||Math.abs(re)>B)&&(N.current=null)}),onPointerUp:Re(e.onPointerUp,q=>{const he=A.current,re=q.target;if(re.hasPointerCapture(q.pointerId)&&re.releasePointerCapture(q.pointerId),A.current=null,N.current=null,he){const le=q.currentTarget,V={originalEvent:q,delta:he};Zm(he,S.swipeDirection,S.swipeThreshold)?Ea(BC,v,V,{discrete:!0}):Ea(VC,b,V,{discrete:!0}),le.addEventListener("click",U=>U.preventDefault(),{once:!0})}})})})}),S.viewport)})]}):null}),WC=e=>{const{__scopeToast:t,children:r,...s}=e,a=El(ni,t),[l,c]=w.useState(!1),[d,h]=w.useState(!1);return QC(()=>c(!0)),w.useEffect(()=>{const p=window.setTimeout(()=>h(!0),1e3);return()=>window.clearTimeout(p)},[]),d?null:x.jsx(tf,{asChild:!0,children:x.jsx(Cl,{...s,children:l&&x.jsxs(x.Fragment,{children:[a.label," ",r]})})})},HC="ToastTitle",jv=w.forwardRef((e,t)=>{const{__scopeToast:r,...s}=e;return x.jsx(je.div,{...s,ref:t})});jv.displayName=HC;var KC="ToastDescription",Mv=w.forwardRef((e,t)=>{const{__scopeToast:r,...s}=e;return x.jsx(je.div,{...s,ref:t})});Mv.displayName=KC;var Dv="ToastAction",Ov=w.forwardRef((e,t)=>{const{altText:r,...s}=e;return r.trim()?x.jsx(_v,{altText:r,asChild:!0,children:x.jsx(sf,{...s,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Dv}\`. Expected non-empty \`string\`.`),null)});Ov.displayName=Dv;var Lv="ToastClose",sf=w.forwardRef((e,t)=>{const{__scopeToast:r,...s}=e,a=UC(Lv,r);return x.jsx(_v,{asChild:!0,children:x.jsx(je.button,{type:"button",...s,ref:t,onClick:Re(e.onClick,a.onClose)})})});sf.displayName=Lv;var _v=w.forwardRef((e,t)=>{const{__scopeToast:r,altText:s,...a}=e;return x.jsx(je.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":s||void 0,...a,ref:t})});function Iv(e){const t=[];return Array.from(e.childNodes).forEach(s=>{if(s.nodeType===s.TEXT_NODE&&s.textContent&&t.push(s.textContent),YC(s)){const a=s.ariaHidden||s.hidden||s.style.display==="none",l=s.dataset.radixToastAnnounceExclude==="";if(!a)if(l){const c=s.dataset.radixToastAnnounceAlt;c&&t.push(c)}else t.push(...Iv(s))}}),t}function Ea(e,t,r,{discrete:s}){const a=r.originalEvent.currentTarget,l=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),s?bv(a,l):a.dispatchEvent(l)}var Zm=(e,t,r=0)=>{const s=Math.abs(e.x),a=Math.abs(e.y),l=s>a;return t==="left"||t==="right"?l&&s>r:!l&&a>r};function QC(e=()=>{}){const t=at(e);Nn(()=>{let r=0,s=0;return r=window.requestAnimationFrame(()=>s=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(s)}},[t])}function YC(e){return e.nodeType===e.ELEMENT_NODE}function GC(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function jc(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var XC=Tv,Fv=kv,Vv=Av,Bv=jv,zv=Mv,Uv=Ov,$v=sf;function Wv(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Wv(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function Hv(){for(var e,t,r=0,s="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Wv(e))&&(s&&(s+=" "),s+=t);return s}const Jm=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,eg=Hv,Kv=(e,t)=>r=>{var s;if(t?.variants==null)return eg(e,r?.class,r?.className);const{variants:a,defaultVariants:l}=t,c=Object.keys(a).map(p=>{const m=r?.[p],y=l?.[p];if(m===null)return null;const b=Jm(m)||Jm(y);return a[p][b]}),d=r&&Object.entries(r).reduce((p,m)=>{let[y,b]=m;return b===void 0||(p[y]=b),p},{}),h=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((p,m)=>{let{class:y,className:b,...v}=m;return Object.entries(v).every(P=>{let[S,E]=P;return Array.isArray(E)?E.includes({...l,...d}[S]):{...l,...d}[S]===E})?[...p,y,b]:p},[]);return eg(e,c,h,r?.class,r?.className)};const qC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ZC=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,s)=>s?s.toUpperCase():r.toLowerCase()),tg=e=>{const t=ZC(e);return t.charAt(0).toUpperCase()+t.slice(1)},Qv=(...e)=>e.filter((t,r,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===r).join(" ").trim(),JC=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var eE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const tE=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:a="",children:l,iconNode:c,...d},h)=>w.createElement("svg",{ref:h,...eE,width:t,height:t,stroke:e,strokeWidth:s?Number(r)*24/Number(t):r,className:Qv("lucide",a),...!l&&!JC(d)&&{"aria-hidden":"true"},...d},[...c.map(([p,m])=>w.createElement(p,m)),...Array.isArray(l)?l:[l]]));const Fe=(e,t)=>{const r=w.forwardRef(({className:s,...a},l)=>w.createElement(tE,{ref:l,iconNode:t,className:Qv(`lucide-${qC(tg(e))}`,`lucide-${e}`,s),...a}));return r.displayName=tg(e),r};const nE=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],fd=Fe("book-open",nE);const rE=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],oE=Fe("chevron-down",rE);const sE=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],iE=Fe("chevron-left",sE);const aE=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],lE=Fe("chevron-right",aE);const uE=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],cE=Fe("chevrons-left",uE);const dE=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],fE=Fe("chevrons-right",dE);const hE=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],pE=Fe("columns-2",hE);const mE=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],af=Fe("database",mE);const gE=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],yE=Fe("download",gE);const vE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Yv=Fe("info",vE);const xE=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Gv=Fe("key",xE);const wE=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],bE=Fe("layout-grid",wE);const SE=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],CE=Fe("menu",SE);const EE=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]],PE=Fe("panel-right",EE);const TE=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],RE=Fe("panels-top-left",TE);const kE=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],NE=Fe("rotate-ccw",kE);const AE=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Xv=Fe("shield-check",AE);const jE=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],el=Fe("table-2",jE);const ME=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],DE=Fe("table",ME);const OE=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],qv=Fe("terminal",OE);const LE=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],_E=Fe("type",LE);const IE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],lf=Fe("x",IE);const FE=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],VE=Fe("zoom-in",FE);const BE=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],zE=Fe("zoom-out",BE),uf="-",UE=e=>{const t=WE(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:c=>{const d=c.split(uf);return d[0]===""&&d.length!==1&&d.shift(),Zv(d,t)||$E(c)},getConflictingClassGroupIds:(c,d)=>{const h=r[c]||[];return d&&s[c]?[...h,...s[c]]:h}}},Zv=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],s=t.nextPart.get(r),a=s?Zv(e.slice(1),s):void 0;if(a)return a;if(t.validators.length===0)return;const l=e.join(uf);return t.validators.find(({validator:c})=>c(l))?.classGroupId},ng=/^\[(.+)\]$/,$E=e=>{if(ng.test(e)){const t=ng.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},WE=e=>{const{theme:t,prefix:r}=e,s={nextPart:new Map,validators:[]};return KE(Object.entries(e.classGroups),r).forEach(([l,c])=>{hd(c,s,l,t)}),s},hd=(e,t,r,s)=>{e.forEach(a=>{if(typeof a=="string"){const l=a===""?t:rg(t,a);l.classGroupId=r;return}if(typeof a=="function"){if(HE(a)){hd(a(s),t,r,s);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([l,c])=>{hd(c,rg(t,l),r,s)})})},rg=(e,t)=>{let r=e;return t.split(uf).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},HE=e=>e.isThemeGetter,KE=(e,t)=>t?e.map(([r,s])=>{const a=s.map(l=>typeof l=="string"?t+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([c,d])=>[t+c,d])):l);return[r,a]}):e,QE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,s=new Map;const a=(l,c)=>{r.set(l,c),t++,t>e&&(t=0,s=r,r=new Map)};return{get(l){let c=r.get(l);if(c!==void 0)return c;if((c=s.get(l))!==void 0)return a(l,c),c},set(l,c){r.has(l)?r.set(l,c):a(l,c)}}},Jv="!",YE=e=>{const{separator:t,experimentalParseClassName:r}=e,s=t.length===1,a=t[0],l=t.length,c=d=>{const h=[];let p=0,m=0,y;for(let E=0;E<d.length;E++){let T=d[E];if(p===0){if(T===a&&(s||d.slice(E,E+l)===t)){h.push(d.slice(m,E)),m=E+l;continue}if(T==="/"){y=E;continue}}T==="["?p++:T==="]"&&p--}const b=h.length===0?d:d.substring(m),v=b.startsWith(Jv),P=v?b.substring(1):b,S=y&&y>m?y-m:void 0;return{modifiers:h,hasImportantModifier:v,baseClassName:P,maybePostfixModifierPosition:S}};return r?d=>r({className:d,parseClassName:c}):c},GE=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(s=>{s[0]==="["?(t.push(...r.sort(),s),r=[]):r.push(s)}),t.push(...r.sort()),t},XE=e=>({cache:QE(e.cacheSize),parseClassName:YE(e),...UE(e)}),qE=/\s+/,ZE=(e,t)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:a}=t,l=[],c=e.trim().split(qE);let d="";for(let h=c.length-1;h>=0;h-=1){const p=c[h],{modifiers:m,hasImportantModifier:y,baseClassName:b,maybePostfixModifierPosition:v}=r(p);let P=!!v,S=s(P?b.substring(0,v):b);if(!S){if(!P){d=p+(d.length>0?" "+d:d);continue}if(S=s(b),!S){d=p+(d.length>0?" "+d:d);continue}P=!1}const E=GE(m).join(":"),T=y?E+Jv:E,R=T+S;if(l.includes(R))continue;l.push(R);const N=a(S,P);for(let A=0;A<N.length;++A){const O=N[A];l.push(T+O)}d=p+(d.length>0?" "+d:d)}return d};function JE(){let e=0,t,r,s="";for(;e<arguments.length;)(t=arguments[e++])&&(r=e0(t))&&(s&&(s+=" "),s+=r);return s}const e0=e=>{if(typeof e=="string")return e;let t,r="";for(let s=0;s<e.length;s++)e[s]&&(t=e0(e[s]))&&(r&&(r+=" "),r+=t);return r};function eP(e,...t){let r,s,a,l=c;function c(h){const p=t.reduce((m,y)=>y(m),e());return r=XE(p),s=r.cache.get,a=r.cache.set,l=d,d(h)}function d(h){const p=s(h);if(p)return p;const m=ZE(h,r);return a(h,m),m}return function(){return l(JE.apply(null,arguments))}}const _e=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},t0=/^\[(?:([a-z-]+):)?(.+)\]$/i,tP=/^\d+\/\d+$/,nP=new Set(["px","full","screen"]),rP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oP=/\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$/,sP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,iP=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,aP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$n=e=>Io(e)||nP.has(e)||tP.test(e),gr=e=>Qo(e,"length",mP),Io=e=>!!e&&!Number.isNaN(Number(e)),Mc=e=>Qo(e,"number",Io),Bs=e=>!!e&&Number.isInteger(Number(e)),lP=e=>e.endsWith("%")&&Io(e.slice(0,-1)),be=e=>t0.test(e),yr=e=>rP.test(e),uP=new Set(["length","size","percentage"]),cP=e=>Qo(e,uP,n0),dP=e=>Qo(e,"position",n0),fP=new Set(["image","url"]),hP=e=>Qo(e,fP,yP),pP=e=>Qo(e,"",gP),zs=()=>!0,Qo=(e,t,r)=>{const s=t0.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):r(s[2]):!1},mP=e=>oP.test(e)&&!sP.test(e),n0=()=>!1,gP=e=>iP.test(e),yP=e=>aP.test(e),vP=()=>{const e=_e("colors"),t=_e("spacing"),r=_e("blur"),s=_e("brightness"),a=_e("borderColor"),l=_e("borderRadius"),c=_e("borderSpacing"),d=_e("borderWidth"),h=_e("contrast"),p=_e("grayscale"),m=_e("hueRotate"),y=_e("invert"),b=_e("gap"),v=_e("gradientColorStops"),P=_e("gradientColorStopPositions"),S=_e("inset"),E=_e("margin"),T=_e("opacity"),R=_e("padding"),N=_e("saturate"),A=_e("scale"),O=_e("sepia"),F=_e("skew"),$=_e("space"),z=_e("translate"),H=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],ee=()=>["auto",be,t],X=()=>[be,t],de=()=>["",$n,gr],q=()=>["auto",Io,be],he=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],re=()=>["solid","dashed","dotted","double","none"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",be],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[Io,be];return{cacheSize:500,separator:":",theme:{colors:[zs],spacing:[$n,gr],blur:["none","",yr,be],brightness:M(),borderColor:[e],borderRadius:["none","","full",yr,be],borderSpacing:X(),borderWidth:de(),contrast:M(),grayscale:U(),hueRotate:M(),invert:U(),gap:X(),gradientColorStops:[e],gradientColorStopPositions:[lP,gr],inset:ee(),margin:ee(),opacity:M(),padding:X(),saturate:M(),scale:M(),sepia:U(),skew:M(),space:X(),translate:X()},classGroups:{aspect:[{aspect:["auto","square","video",be]}],container:["container"],columns:[{columns:[yr]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...he(),be]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Bs,be]}],basis:[{basis:ee()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",be]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",Bs,be]}],"grid-cols":[{"grid-cols":[zs]}],"col-start-end":[{col:["auto",{span:["full",Bs,be]},be]}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":[zs]}],"row-start-end":[{row:["auto",{span:[Bs,be]},be]}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",be]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",be]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...V()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...V(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...V(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[R]}],px:[{px:[R]}],py:[{py:[R]}],ps:[{ps:[R]}],pe:[{pe:[R]}],pt:[{pt:[R]}],pr:[{pr:[R]}],pb:[{pb:[R]}],pl:[{pl:[R]}],m:[{m:[E]}],mx:[{mx:[E]}],my:[{my:[E]}],ms:[{ms:[E]}],me:[{me:[E]}],mt:[{mt:[E]}],mr:[{mr:[E]}],mb:[{mb:[E]}],ml:[{ml:[E]}],"space-x":[{"space-x":[$]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[$]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",be,t]}],"min-w":[{"min-w":[be,t,"min","max","fit"]}],"max-w":[{"max-w":[be,t,"none","full","min","max","fit","prose",{screen:[yr]},yr]}],h:[{h:[be,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[be,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[be,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[be,t,"auto","min","max","fit"]}],"font-size":[{text:["base",yr,gr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Mc]}],"font-family":[{font:[zs]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",be]}],"line-clamp":[{"line-clamp":["none",Io,Mc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$n,be]}],"list-image":[{"list-image":["none",be]}],"list-style-type":[{list:["none","disc","decimal",be]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$n,gr]}],"underline-offset":[{"underline-offset":["auto",$n,be]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:X()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...he(),dP]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",cP]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},hP]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[P]}],"gradient-via-pos":[{via:[P]}],"gradient-to-pos":[{to:[P]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...re(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:re()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...re()]}],"outline-offset":[{"outline-offset":[$n,be]}],"outline-w":[{outline:[$n,gr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[$n,gr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",yr,pP]}],"shadow-color":[{shadow:[zs]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...le(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":le()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[s]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",yr,be]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[y]}],saturate:[{saturate:[N]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",be]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",be]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",be]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[Bs,be]}],"translate-x":[{"translate-x":[z]}],"translate-y":[{"translate-y":[z]}],"skew-x":[{"skew-x":[F]}],"skew-y":[{"skew-y":[F]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",be]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",be]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":X()}],"scroll-mx":[{"scroll-mx":X()}],"scroll-my":[{"scroll-my":X()}],"scroll-ms":[{"scroll-ms":X()}],"scroll-me":[{"scroll-me":X()}],"scroll-mt":[{"scroll-mt":X()}],"scroll-mr":[{"scroll-mr":X()}],"scroll-mb":[{"scroll-mb":X()}],"scroll-ml":[{"scroll-ml":X()}],"scroll-p":[{"scroll-p":X()}],"scroll-px":[{"scroll-px":X()}],"scroll-py":[{"scroll-py":X()}],"scroll-ps":[{"scroll-ps":X()}],"scroll-pe":[{"scroll-pe":X()}],"scroll-pt":[{"scroll-pt":X()}],"scroll-pr":[{"scroll-pr":X()}],"scroll-pb":[{"scroll-pb":X()}],"scroll-pl":[{"scroll-pl":X()}],"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",be]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[$n,gr,Mc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},xP=eP(vP);function xe(...e){return xP(Hv(e))}const wP=XC,r0=w.forwardRef(({className:e,...t},r)=>x.jsx(Fv,{ref:r,className:xe("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));r0.displayName=Fv.displayName;const bP=Kv("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),o0=w.forwardRef(({className:e,variant:t,...r},s)=>x.jsx(Vv,{ref:s,className:xe(bP({variant:t}),e),...r}));o0.displayName=Vv.displayName;const SP=w.forwardRef(({className:e,...t},r)=>x.jsx(Uv,{ref:r,className:xe("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));SP.displayName=Uv.displayName;const s0=w.forwardRef(({className:e,...t},r)=>x.jsx($v,{ref:r,className:xe("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:x.jsx(lf,{className:"h-4 w-4"})}));s0.displayName=$v.displayName;const i0=w.forwardRef(({className:e,...t},r)=>x.jsx(Bv,{ref:r,className:xe("text-sm font-semibold",e),...t}));i0.displayName=Bv.displayName;const a0=w.forwardRef(({className:e,...t},r)=>x.jsx(zv,{ref:r,className:xe("text-sm opacity-90",e),...t}));a0.displayName=zv.displayName;function CP(){const{toasts:e}=tC();return x.jsxs(wP,{children:[e.map(function({id:t,title:r,description:s,action:a,...l}){return x.jsxs(o0,{...l,children:[x.jsxs("div",{className:"grid gap-1",children:[r&&x.jsx(i0,{children:r}),s&&x.jsx(a0,{children:s})]}),a,x.jsx(s0,{})]},t)}),x.jsx(r0,{})]})}var Pa={},og;function EP(){if(og)return Pa;og=1;var e=vv();return Pa.createRoot=e.createRoot,Pa.hydrateRoot=e.hydrateRoot,Pa}var PP=EP(),TP=(e,t,r,s,a,l,c,d)=>{let h=document.documentElement,p=["light","dark"];function m(v){(Array.isArray(e)?e:[e]).forEach(P=>{let S=P==="class",E=S&&l?a.map(T=>l[T]||T):a;S?(h.classList.remove(...E),h.classList.add(l&&l[v]?l[v]:v)):h.setAttribute(P,v)}),y(v)}function y(v){d&&p.includes(v)&&(h.style.colorScheme=v)}function b(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)m(s);else try{let v=localStorage.getItem(t)||r,P=c&&v==="system"?b():v;m(P)}catch{}},RP=w.createContext(void 0),kP={setTheme:e=>{},themes:[]},NP=()=>{var e;return(e=w.useContext(RP))!=null?e:kP};w.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:s,enableColorScheme:a,defaultTheme:l,value:c,themes:d,nonce:h,scriptProps:p})=>{let m=JSON.stringify([r,t,l,e,d,c,s,a]).slice(1,-1);return w.createElement("script",{...p,suppressHydrationWarning:!0,nonce:typeof window>"u"?h:"",dangerouslySetInnerHTML:{__html:`(${TP.toString()})(${m})`}})});var AP=e=>{switch(e){case"success":return DP;case"info":return LP;case"warning":return OP;case"error":return _P;default:return null}},jP=Array(12).fill(0),MP=({visible:e,className:t})=>J.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},J.createElement("div",{className:"sonner-spinner"},jP.map((r,s)=>J.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),DP=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),OP=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),LP=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),_P=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),IP=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},J.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),J.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),FP=()=>{let[e,t]=J.useState(document.hidden);return J.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},pd=1,VP=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...s}=e,a=typeof e?.id=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:pd++,l=this.toasts.find(d=>d.id===a),c=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),l?this.toasts=this.toasts.map(d=>d.id===a?(this.publish({...d,...e,id:a,title:r}),{...d,...e,id:a,dismissible:c,title:r}):d):this.addToast({title:r,...s,dismissible:c,id:a}),a},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let s=e instanceof Promise?e:e(),a=r!==void 0,l,c=s.then(async h=>{if(l=["resolve",h],J.isValidElement(h))a=!1,this.create({id:r,type:"default",message:h});else if(zP(h)&&!h.ok){a=!1;let p=typeof t.error=="function"?await t.error(`HTTP error! status: ${h.status}`):t.error,m=typeof t.description=="function"?await t.description(`HTTP error! status: ${h.status}`):t.description;this.create({id:r,type:"error",message:p,description:m})}else if(t.success!==void 0){a=!1;let p=typeof t.success=="function"?await t.success(h):t.success,m=typeof t.description=="function"?await t.description(h):t.description;this.create({id:r,type:"success",message:p,description:m})}}).catch(async h=>{if(l=["reject",h],t.error!==void 0){a=!1;let p=typeof t.error=="function"?await t.error(h):t.error,m=typeof t.description=="function"?await t.description(h):t.description;this.create({id:r,type:"error",message:p,description:m})}}).finally(()=>{var h;a&&(this.dismiss(r),r=void 0),(h=t.finally)==null||h.call(t)}),d=()=>new Promise((h,p)=>c.then(()=>l[0]==="reject"?p(l[1]):h(l[1])).catch(p));return typeof r!="string"&&typeof r!="number"?{unwrap:d}:Object.assign(r,{unwrap:d})},this.custom=(e,t)=>{let r=t?.id||pd++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Rt=new VP,BP=(e,t)=>{let r=t?.id||pd++;return Rt.addToast({title:e,...t,id:r}),r},zP=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",UP=BP,$P=()=>Rt.toasts,WP=()=>Rt.getActiveToasts();Object.assign(UP,{success:Rt.success,info:Rt.info,warning:Rt.warning,error:Rt.error,custom:Rt.custom,message:Rt.message,promise:Rt.promise,dismiss:Rt.dismiss,loading:Rt.loading},{getHistory:$P,getToasts:WP});function HP(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",t==="top"&&r.firstChild?r.insertBefore(s,r.firstChild):r.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}HP(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
9
|
+
`);function Ta(e){return e.label!==void 0}var KP=3,QP="32px",YP="16px",sg=4e3,GP=356,XP=14,qP=20,ZP=200;function sn(...e){return e.filter(Boolean).join(" ")}function JP(e){let[t,r]=e.split("-"),s=[];return t&&s.push(t),r&&s.push(r),s}var eT=e=>{var t,r,s,a,l,c,d,h,p,m,y;let{invert:b,toast:v,unstyled:P,interacting:S,setHeights:E,visibleToasts:T,heights:R,index:N,toasts:A,expanded:O,removeToast:F,defaultRichColors:$,closeButton:z,style:H,cancelButtonStyle:W,actionButtonStyle:ee,className:X="",descriptionClassName:de="",duration:q,position:he,gap:re,loadingIcon:le,expandByDefault:V,classNames:U,icons:K,closeButtonAriaLabel:M="Close toast",pauseWhenPageIsHidden:B}=e,[te,oe]=J.useState(null),[ge,we]=J.useState(null),[fe,Ce]=J.useState(!1),[Pe,Qe]=J.useState(!1),[It,Yn]=J.useState(!1),[Ft,Jo]=J.useState(!1),[ui,es]=J.useState(!1),[ts,Jr]=J.useState(0),[ns,Gn]=J.useState(0),Vt=J.useRef(v.duration||q||sg),eo=J.useRef(null),hn=J.useRef(null),ci=N===0,di=N+1<=T,ht=v.type,pn=v.dismissible!==!1,to=v.className||"",fi=v.descriptionClassName||"",mn=J.useMemo(()=>R.findIndex(ve=>ve.toastId===v.id)||0,[R,v.id]),Rr=J.useMemo(()=>{var ve;return(ve=v.closeButton)!=null?ve:z},[v.closeButton,z]),hi=J.useMemo(()=>v.duration||q||sg,[v.duration,q]),no=J.useRef(0),On=J.useRef(0),pi=J.useRef(0),gn=J.useRef(null),[rs,os]=he.split("-"),ro=J.useMemo(()=>R.reduce((ve,ke,Ae)=>Ae>=mn?ve:ve+ke.height,0),[R,mn]),oo=FP(),Xn=v.invert||b,yn=ht==="loading";On.current=J.useMemo(()=>mn*re+ro,[mn,ro]),J.useEffect(()=>{Vt.current=hi},[hi]),J.useEffect(()=>{Ce(!0)},[]),J.useEffect(()=>{let ve=hn.current;if(ve){let ke=ve.getBoundingClientRect().height;return Gn(ke),E(Ae=>[{toastId:v.id,height:ke,position:v.position},...Ae]),()=>E(Ae=>Ae.filter(pt=>pt.toastId!==v.id))}},[E,v.id]),J.useLayoutEffect(()=>{if(!fe)return;let ve=hn.current,ke=ve.style.height;ve.style.height="auto";let Ae=ve.getBoundingClientRect().height;ve.style.height=ke,Gn(Ae),E(pt=>pt.find(xt=>xt.toastId===v.id)?pt.map(xt=>xt.toastId===v.id?{...xt,height:Ae}:xt):[{toastId:v.id,height:Ae,position:v.position},...pt])},[fe,v.title,v.description,E,v.id]);let Xt=J.useCallback(()=>{Qe(!0),Jr(On.current),E(ve=>ve.filter(ke=>ke.toastId!==v.id)),setTimeout(()=>{F(v)},ZP)},[v,F,E,On]);J.useEffect(()=>{if(v.promise&&ht==="loading"||v.duration===1/0||v.type==="loading")return;let ve;return O||S||B&&oo?(()=>{if(pi.current<no.current){let ke=new Date().getTime()-no.current;Vt.current=Vt.current-ke}pi.current=new Date().getTime()})():Vt.current!==1/0&&(no.current=new Date().getTime(),ve=setTimeout(()=>{var ke;(ke=v.onAutoClose)==null||ke.call(v,v),Xt()},Vt.current)),()=>clearTimeout(ve)},[O,S,v,ht,B,oo,Xt]),J.useEffect(()=>{v.delete&&Xt()},[Xt,v.delete]);function mi(){var ve,ke,Ae;return K!=null&&K.loading?J.createElement("div",{className:sn(U?.loader,(ve=v?.classNames)==null?void 0:ve.loader,"sonner-loader"),"data-visible":ht==="loading"},K.loading):le?J.createElement("div",{className:sn(U?.loader,(ke=v?.classNames)==null?void 0:ke.loader,"sonner-loader"),"data-visible":ht==="loading"},le):J.createElement(MP,{className:sn(U?.loader,(Ae=v?.classNames)==null?void 0:Ae.loader),visible:ht==="loading"})}return J.createElement("li",{tabIndex:0,ref:hn,className:sn(X,to,U?.toast,(t=v?.classNames)==null?void 0:t.toast,U?.default,U?.[ht],(r=v?.classNames)==null?void 0:r[ht]),"data-sonner-toast":"","data-rich-colors":(s=v.richColors)!=null?s:$,"data-styled":!(v.jsx||v.unstyled||P),"data-mounted":fe,"data-promise":!!v.promise,"data-swiped":ui,"data-removed":Pe,"data-visible":di,"data-y-position":rs,"data-x-position":os,"data-index":N,"data-front":ci,"data-swiping":It,"data-dismissible":pn,"data-type":ht,"data-invert":Xn,"data-swipe-out":Ft,"data-swipe-direction":ge,"data-expanded":!!(O||V&&fe),style:{"--index":N,"--toasts-before":N,"--z-index":A.length-N,"--offset":`${Pe?ts:On.current}px`,"--initial-height":V?"auto":`${ns}px`,...H,...v.style},onDragEnd:()=>{Yn(!1),oe(null),gn.current=null},onPointerDown:ve=>{yn||!pn||(eo.current=new Date,Jr(On.current),ve.target.setPointerCapture(ve.pointerId),ve.target.tagName!=="BUTTON"&&(Yn(!0),gn.current={x:ve.clientX,y:ve.clientY}))},onPointerUp:()=>{var ve,ke,Ae,pt;if(Ft||!pn)return;gn.current=null;let xt=Number(((ve=hn.current)==null?void 0:ve.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),wt=Number(((ke=hn.current)==null?void 0:ke.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),qt=new Date().getTime()-((Ae=eo.current)==null?void 0:Ae.getTime()),nt=te==="x"?xt:wt,vn=Math.abs(nt)/qt;if(Math.abs(nt)>=qP||vn>.11){Jr(On.current),(pt=v.onDismiss)==null||pt.call(v,v),we(te==="x"?xt>0?"right":"left":wt>0?"down":"up"),Xt(),Jo(!0),es(!1);return}Yn(!1),oe(null)},onPointerMove:ve=>{var ke,Ae,pt,xt;if(!gn.current||!pn||((ke=window.getSelection())==null?void 0:ke.toString().length)>0)return;let wt=ve.clientY-gn.current.y,qt=ve.clientX-gn.current.x,nt=(Ae=e.swipeDirections)!=null?Ae:JP(he);!te&&(Math.abs(qt)>1||Math.abs(wt)>1)&&oe(Math.abs(qt)>Math.abs(wt)?"x":"y");let vn={x:0,y:0};te==="y"?(nt.includes("top")||nt.includes("bottom"))&&(nt.includes("top")&&wt<0||nt.includes("bottom")&&wt>0)&&(vn.y=wt):te==="x"&&(nt.includes("left")||nt.includes("right"))&&(nt.includes("left")&&qt<0||nt.includes("right")&&qt>0)&&(vn.x=qt),(Math.abs(vn.x)>0||Math.abs(vn.y)>0)&&es(!0),(pt=hn.current)==null||pt.style.setProperty("--swipe-amount-x",`${vn.x}px`),(xt=hn.current)==null||xt.style.setProperty("--swipe-amount-y",`${vn.y}px`)}},Rr&&!v.jsx?J.createElement("button",{"aria-label":M,"data-disabled":yn,"data-close-button":!0,onClick:yn||!pn?()=>{}:()=>{var ve;Xt(),(ve=v.onDismiss)==null||ve.call(v,v)},className:sn(U?.closeButton,(a=v?.classNames)==null?void 0:a.closeButton)},(l=K?.close)!=null?l:IP):null,v.jsx||w.isValidElement(v.title)?v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title:J.createElement(J.Fragment,null,ht||v.icon||v.promise?J.createElement("div",{"data-icon":"",className:sn(U?.icon,(c=v?.classNames)==null?void 0:c.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||mi():null,v.type!=="loading"?v.icon||K?.[ht]||AP(ht):null):null,J.createElement("div",{"data-content":"",className:sn(U?.content,(d=v?.classNames)==null?void 0:d.content)},J.createElement("div",{"data-title":"",className:sn(U?.title,(h=v?.classNames)==null?void 0:h.title)},typeof v.title=="function"?v.title():v.title),v.description?J.createElement("div",{"data-description":"",className:sn(de,fi,U?.description,(p=v?.classNames)==null?void 0:p.description)},typeof v.description=="function"?v.description():v.description):null),w.isValidElement(v.cancel)?v.cancel:v.cancel&&Ta(v.cancel)?J.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||W,onClick:ve=>{var ke,Ae;Ta(v.cancel)&&pn&&((Ae=(ke=v.cancel).onClick)==null||Ae.call(ke,ve),Xt())},className:sn(U?.cancelButton,(m=v?.classNames)==null?void 0:m.cancelButton)},v.cancel.label):null,w.isValidElement(v.action)?v.action:v.action&&Ta(v.action)?J.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||ee,onClick:ve=>{var ke,Ae;Ta(v.action)&&((Ae=(ke=v.action).onClick)==null||Ae.call(ke,ve),!ve.defaultPrevented&&Xt())},className:sn(U?.actionButton,(y=v?.classNames)==null?void 0:y.actionButton)},v.action.label):null))};function ig(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function tT(e,t){let r={};return[e,t].forEach((s,a)=>{let l=a===1,c=l?"--mobile-offset":"--offset",d=l?YP:QP;function h(p){["top","right","bottom","left"].forEach(m=>{r[`${c}-${m}`]=typeof p=="number"?`${p}px`:p})}typeof s=="number"||typeof s=="string"?h(s):typeof s=="object"?["top","right","bottom","left"].forEach(p=>{s[p]===void 0?r[`${c}-${p}`]=d:r[`${c}-${p}`]=typeof s[p]=="number"?`${s[p]}px`:s[p]}):h(d)}),r}var nT=w.forwardRef(function(e,t){let{invert:r,position:s="bottom-right",hotkey:a=["altKey","KeyT"],expand:l,closeButton:c,className:d,offset:h,mobileOffset:p,theme:m="light",richColors:y,duration:b,style:v,visibleToasts:P=KP,toastOptions:S,dir:E=ig(),gap:T=XP,loadingIcon:R,icons:N,containerAriaLabel:A="Notifications",pauseWhenPageIsHidden:O}=e,[F,$]=J.useState([]),z=J.useMemo(()=>Array.from(new Set([s].concat(F.filter(B=>B.position).map(B=>B.position)))),[F,s]),[H,W]=J.useState([]),[ee,X]=J.useState(!1),[de,q]=J.useState(!1),[he,re]=J.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),le=J.useRef(null),V=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=J.useRef(null),K=J.useRef(!1),M=J.useCallback(B=>{$(te=>{var oe;return(oe=te.find(ge=>ge.id===B.id))!=null&&oe.delete||Rt.dismiss(B.id),te.filter(({id:ge})=>ge!==B.id)})},[]);return J.useEffect(()=>Rt.subscribe(B=>{if(B.dismiss){$(te=>te.map(oe=>oe.id===B.id?{...oe,delete:!0}:oe));return}setTimeout(()=>{xv.flushSync(()=>{$(te=>{let oe=te.findIndex(ge=>ge.id===B.id);return oe!==-1?[...te.slice(0,oe),{...te[oe],...B},...te.slice(oe+1)]:[B,...te]})})})}),[]),J.useEffect(()=>{if(m!=="system"){re(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?re("dark"):re("light")),typeof window>"u")return;let B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:te})=>{re(te?"dark":"light")})}catch{B.addListener(({matches:oe})=>{try{re(oe?"dark":"light")}catch(ge){console.error(ge)}})}},[m]),J.useEffect(()=>{F.length<=1&&X(!1)},[F]),J.useEffect(()=>{let B=te=>{var oe,ge;a.every(we=>te[we]||te.code===we)&&(X(!0),(oe=le.current)==null||oe.focus()),te.code==="Escape"&&(document.activeElement===le.current||(ge=le.current)!=null&&ge.contains(document.activeElement))&&X(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[a]),J.useEffect(()=>{if(le.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,K.current=!1)}},[le.current]),J.createElement("section",{ref:t,"aria-label":`${A} ${V}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},z.map((B,te)=>{var oe;let[ge,we]=B.split("-");return F.length?J.createElement("ol",{key:B,dir:E==="auto"?ig():E,tabIndex:-1,ref:le,className:d,"data-sonner-toaster":!0,"data-theme":he,"data-y-position":ge,"data-lifted":ee&&F.length>1&&!l,"data-x-position":we,style:{"--front-toast-height":`${((oe=H[0])==null?void 0:oe.height)||0}px`,"--width":`${GP}px`,"--gap":`${T}px`,...v,...tT(h,p)},onBlur:fe=>{K.current&&!fe.currentTarget.contains(fe.relatedTarget)&&(K.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:fe=>{fe.target instanceof HTMLElement&&fe.target.dataset.dismissible==="false"||K.current||(K.current=!0,U.current=fe.relatedTarget)},onMouseEnter:()=>X(!0),onMouseMove:()=>X(!0),onMouseLeave:()=>{de||X(!1)},onDragEnd:()=>X(!1),onPointerDown:fe=>{fe.target instanceof HTMLElement&&fe.target.dataset.dismissible==="false"||q(!0)},onPointerUp:()=>q(!1)},F.filter(fe=>!fe.position&&te===0||fe.position===B).map((fe,Ce)=>{var Pe,Qe;return J.createElement(eT,{key:fe.id,icons:N,index:Ce,toast:fe,defaultRichColors:y,duration:(Pe=S?.duration)!=null?Pe:b,className:S?.className,descriptionClassName:S?.descriptionClassName,invert:r,visibleToasts:P,closeButton:(Qe=S?.closeButton)!=null?Qe:c,interacting:de,position:B,style:S?.style,unstyled:S?.unstyled,classNames:S?.classNames,cancelButtonStyle:S?.cancelButtonStyle,actionButtonStyle:S?.actionButtonStyle,removeToast:M,toasts:F.filter(It=>It.position==fe.position),heights:H.filter(It=>It.position==fe.position),setHeights:W,expandByDefault:l,gap:T,loadingIcon:R,expanded:ee,pauseWhenPageIsHidden:O,swipeDirections:e.swipeDirections})})):null}))});const rT=({...e})=>{const{theme:t="system"}=NP();return x.jsx(nT,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var oT=wl[" useId ".trim().toString()]||(()=>{}),sT=0;function Dc(e){const[t,r]=w.useState(oT());return Nn(()=>{r(s=>s??String(sT++))},[e]),e||(t?`radix-${t}`:"")}const iT=["top","right","bottom","left"],Cr=Math.min,Ot=Math.max,tl=Math.round,Ra=Math.floor,Rn=e=>({x:e,y:e}),aT={left:"right",right:"left",bottom:"top",top:"bottom"};function md(e,t,r){return Ot(e,Cr(t,r))}function Wn(e,t){return typeof e=="function"?e(t):e}function Hn(e){return e.split("-")[0]}function Yo(e){return e.split("-")[1]}function cf(e){return e==="x"?"y":"x"}function df(e){return e==="y"?"height":"width"}function Tn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ff(e){return cf(Tn(e))}function lT(e,t,r){r===void 0&&(r=!1);const s=Yo(e),a=ff(e),l=df(a);let c=a==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=nl(c)),[c,nl(c)]}function uT(e){const t=nl(e);return[gd(e),t,gd(t)]}function gd(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ag=["left","right"],lg=["right","left"],cT=["top","bottom"],dT=["bottom","top"];function fT(e,t,r){switch(e){case"top":case"bottom":return r?t?lg:ag:t?ag:lg;case"left":case"right":return t?cT:dT;default:return[]}}function hT(e,t,r,s){const a=Yo(e);let l=fT(Hn(e),r==="start",s);return a&&(l=l.map(c=>c+"-"+a),t&&(l=l.concat(l.map(gd)))),l}function nl(e){const t=Hn(e);return aT[t]+e.slice(t.length)}function pT(e){return{top:0,right:0,bottom:0,left:0,...e}}function l0(e){return typeof e!="number"?pT(e):{top:e,right:e,bottom:e,left:e}}function rl(e){const{x:t,y:r,width:s,height:a}=e;return{width:s,height:a,top:r,left:t,right:t+s,bottom:r+a,x:t,y:r}}function ug(e,t,r){let{reference:s,floating:a}=e;const l=Tn(t),c=ff(t),d=df(c),h=Hn(t),p=l==="y",m=s.x+s.width/2-a.width/2,y=s.y+s.height/2-a.height/2,b=s[d]/2-a[d]/2;let v;switch(h){case"top":v={x:m,y:s.y-a.height};break;case"bottom":v={x:m,y:s.y+s.height};break;case"right":v={x:s.x+s.width,y};break;case"left":v={x:s.x-a.width,y};break;default:v={x:s.x,y:s.y}}switch(Yo(t)){case"start":v[c]-=b*(r&&p?-1:1);break;case"end":v[c]+=b*(r&&p?-1:1);break}return v}async function mT(e,t){var r;t===void 0&&(t={});const{x:s,y:a,platform:l,rects:c,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:y="floating",altBoundary:b=!1,padding:v=0}=Wn(t,e),P=l0(v),E=d[b?y==="floating"?"reference":"floating":y],T=rl(await l.getClippingRect({element:(r=await(l.isElement==null?void 0:l.isElement(E)))==null||r?E:E.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:p,rootBoundary:m,strategy:h})),R=y==="floating"?{x:s,y:a,width:c.floating.width,height:c.floating.height}:c.reference,N=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),A=await(l.isElement==null?void 0:l.isElement(N))?await(l.getScale==null?void 0:l.getScale(N))||{x:1,y:1}:{x:1,y:1},O=rl(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:R,offsetParent:N,strategy:h}):R);return{top:(T.top-O.top+P.top)/A.y,bottom:(O.bottom-T.bottom+P.bottom)/A.y,left:(T.left-O.left+P.left)/A.x,right:(O.right-T.right+P.right)/A.x}}const gT=50,yT=async(e,t,r)=>{const{placement:s="bottom",strategy:a="absolute",middleware:l=[],platform:c}=r,d=c.detectOverflow?c:{...c,detectOverflow:mT},h=await(c.isRTL==null?void 0:c.isRTL(t));let p=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y}=ug(p,s,h),b=s,v=0;const P={};for(let S=0;S<l.length;S++){const E=l[S];if(!E)continue;const{name:T,fn:R}=E,{x:N,y:A,data:O,reset:F}=await R({x:m,y,initialPlacement:s,placement:b,strategy:a,middlewareData:P,rects:p,platform:d,elements:{reference:e,floating:t}});m=N??m,y=A??y,P[T]={...P[T],...O},F&&v<gT&&(v++,typeof F=="object"&&(F.placement&&(b=F.placement),F.rects&&(p=F.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:a}):F.rects),{x:m,y}=ug(p,b,h)),S=-1)}return{x:m,y,placement:b,strategy:a,middlewareData:P}},vT=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:s,placement:a,rects:l,platform:c,elements:d,middlewareData:h}=t,{element:p,padding:m=0}=Wn(e,t)||{};if(p==null)return{};const y=l0(m),b={x:r,y:s},v=ff(a),P=df(v),S=await c.getDimensions(p),E=v==="y",T=E?"top":"left",R=E?"bottom":"right",N=E?"clientHeight":"clientWidth",A=l.reference[P]+l.reference[v]-b[v]-l.floating[P],O=b[v]-l.reference[v],F=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p));let $=F?F[N]:0;(!$||!await(c.isElement==null?void 0:c.isElement(F)))&&($=d.floating[N]||l.floating[P]);const z=A/2-O/2,H=$/2-S[P]/2-1,W=Cr(y[T],H),ee=Cr(y[R],H),X=W,de=$-S[P]-ee,q=$/2-S[P]/2+z,he=md(X,q,de),re=!h.arrow&&Yo(a)!=null&&q!==he&&l.reference[P]/2-(q<X?W:ee)-S[P]/2<0,le=re?q<X?q-X:q-de:0;return{[v]:b[v]+le,data:{[v]:he,centerOffset:q-he-le,...re&&{alignmentOffset:le}},reset:re}}}),xT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,s;const{placement:a,middlewareData:l,rects:c,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:m=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:S=!0,...E}=Wn(e,t);if((r=l.arrow)!=null&&r.alignmentOffset)return{};const T=Hn(a),R=Tn(d),N=Hn(d)===d,A=await(h.isRTL==null?void 0:h.isRTL(p.floating)),O=b||(N||!S?[nl(d)]:uT(d)),F=P!=="none";!b&&F&&O.push(...hT(d,S,P,A));const $=[d,...O],z=await h.detectOverflow(t,E),H=[];let W=((s=l.flip)==null?void 0:s.overflows)||[];if(m&&H.push(z[T]),y){const q=lT(a,c,A);H.push(z[q[0]],z[q[1]])}if(W=[...W,{placement:a,overflows:H}],!H.every(q=>q<=0)){var ee,X;const q=(((ee=l.flip)==null?void 0:ee.index)||0)+1,he=$[q];if(he&&(!(y==="alignment"?R!==Tn(he):!1)||W.every(V=>Tn(V.placement)===R?V.overflows[0]>0:!0)))return{data:{index:q,overflows:W},reset:{placement:he}};let re=(X=W.filter(le=>le.overflows[0]<=0).sort((le,V)=>le.overflows[1]-V.overflows[1])[0])==null?void 0:X.placement;if(!re)switch(v){case"bestFit":{var de;const le=(de=W.filter(V=>{if(F){const U=Tn(V.placement);return U===R||U==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(U=>U>0).reduce((U,K)=>U+K,0)]).sort((V,U)=>V[1]-U[1])[0])==null?void 0:de[0];le&&(re=le);break}case"initialPlacement":re=d;break}if(a!==re)return{reset:{placement:re}}}return{}}}};function cg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function dg(e){return iT.some(t=>e[t]>=0)}const wT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:s}=t,{strategy:a="referenceHidden",...l}=Wn(e,t);switch(a){case"referenceHidden":{const c=await s.detectOverflow(t,{...l,elementContext:"reference"}),d=cg(c,r.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:dg(d)}}}case"escaped":{const c=await s.detectOverflow(t,{...l,altBoundary:!0}),d=cg(c,r.floating);return{data:{escapedOffsets:d,escaped:dg(d)}}}default:return{}}}}},u0=new Set(["left","top"]);async function bT(e,t){const{placement:r,platform:s,elements:a}=e,l=await(s.isRTL==null?void 0:s.isRTL(a.floating)),c=Hn(r),d=Yo(r),h=Tn(r)==="y",p=u0.has(c)?-1:1,m=l&&h?-1:1,y=Wn(t,e);let{mainAxis:b,crossAxis:v,alignmentAxis:P}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return d&&typeof P=="number"&&(v=d==="end"?P*-1:P),h?{x:v*m,y:b*p}:{x:b*p,y:v*m}}const ST=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,s;const{x:a,y:l,placement:c,middlewareData:d}=t,h=await bT(t,e);return c===((r=d.offset)==null?void 0:r.placement)&&(s=d.arrow)!=null&&s.alignmentOffset?{}:{x:a+h.x,y:l+h.y,data:{...h,placement:c}}}}},CT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:s,placement:a,platform:l}=t,{mainAxis:c=!0,crossAxis:d=!1,limiter:h={fn:T=>{let{x:R,y:N}=T;return{x:R,y:N}}},...p}=Wn(e,t),m={x:r,y:s},y=await l.detectOverflow(t,p),b=Tn(Hn(a)),v=cf(b);let P=m[v],S=m[b];if(c){const T=v==="y"?"top":"left",R=v==="y"?"bottom":"right",N=P+y[T],A=P-y[R];P=md(N,P,A)}if(d){const T=b==="y"?"top":"left",R=b==="y"?"bottom":"right",N=S+y[T],A=S-y[R];S=md(N,S,A)}const E=h.fn({...t,[v]:P,[b]:S});return{...E,data:{x:E.x-r,y:E.y-s,enabled:{[v]:c,[b]:d}}}}}},ET=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:s,placement:a,rects:l,middlewareData:c}=t,{offset:d=0,mainAxis:h=!0,crossAxis:p=!0}=Wn(e,t),m={x:r,y:s},y=Tn(a),b=cf(y);let v=m[b],P=m[y];const S=Wn(d,t),E=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(h){const N=b==="y"?"height":"width",A=l.reference[b]-l.floating[N]+E.mainAxis,O=l.reference[b]+l.reference[N]-E.mainAxis;v<A?v=A:v>O&&(v=O)}if(p){var T,R;const N=b==="y"?"width":"height",A=u0.has(Hn(a)),O=l.reference[y]-l.floating[N]+(A&&((T=c.offset)==null?void 0:T[y])||0)+(A?0:E.crossAxis),F=l.reference[y]+l.reference[N]+(A?0:((R=c.offset)==null?void 0:R[y])||0)-(A?E.crossAxis:0);P<O?P=O:P>F&&(P=F)}return{[b]:v,[y]:P}}}},PT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,s;const{placement:a,rects:l,platform:c,elements:d}=t,{apply:h=()=>{},...p}=Wn(e,t),m=await c.detectOverflow(t,p),y=Hn(a),b=Yo(a),v=Tn(a)==="y",{width:P,height:S}=l.floating;let E,T;y==="top"||y==="bottom"?(E=y,T=b===(await(c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(T=y,E=b==="end"?"top":"bottom");const R=S-m.top-m.bottom,N=P-m.left-m.right,A=Cr(S-m[E],R),O=Cr(P-m[T],N),F=!t.middlewareData.shift;let $=A,z=O;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(z=N),(s=t.middlewareData.shift)!=null&&s.enabled.y&&($=R),F&&!b){const W=Ot(m.left,0),ee=Ot(m.right,0),X=Ot(m.top,0),de=Ot(m.bottom,0);v?z=P-2*(W!==0||ee!==0?W+ee:Ot(m.left,m.right)):$=S-2*(X!==0||de!==0?X+de:Ot(m.top,m.bottom))}await h({...t,availableWidth:z,availableHeight:$});const H=await c.getDimensions(d.floating);return P!==H.width||S!==H.height?{reset:{rects:!0}}:{}}}};function Pl(){return typeof window<"u"}function Go(e){return c0(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Mn(e){var t;return(t=(c0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function c0(e){return Pl()?e instanceof Node||e instanceof Lt(e).Node:!1}function cn(e){return Pl()?e instanceof Element||e instanceof Lt(e).Element:!1}function Qn(e){return Pl()?e instanceof HTMLElement||e instanceof Lt(e).HTMLElement:!1}function fg(e){return!Pl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function ri(e){const{overflow:t,overflowX:r,overflowY:s,display:a}=dn(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+r)&&a!=="inline"&&a!=="contents"}function TT(e){return/^(table|td|th)$/.test(Go(e))}function Tl(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const RT=/transform|translate|scale|rotate|perspective|filter/,kT=/paint|layout|strict|content/,zr=e=>!!e&&e!=="none";let Oc;function hf(e){const t=cn(e)?dn(e):e;return zr(t.transform)||zr(t.translate)||zr(t.scale)||zr(t.rotate)||zr(t.perspective)||!pf()&&(zr(t.backdropFilter)||zr(t.filter))||RT.test(t.willChange||"")||kT.test(t.contain||"")}function NT(e){let t=Er(e);for(;Qn(t)&&!Uo(t);){if(hf(t))return t;if(Tl(t))return null;t=Er(t)}return null}function pf(){return Oc==null&&(Oc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Oc}function Uo(e){return/^(html|body|#document)$/.test(Go(e))}function dn(e){return Lt(e).getComputedStyle(e)}function Rl(e){return cn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Er(e){if(Go(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fg(e)&&e.host||Mn(e);return fg(t)?t.host:t}function d0(e){const t=Er(e);return Uo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qn(t)&&ri(t)?t:d0(t)}function Gs(e,t,r){var s;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=d0(e),l=a===((s=e.ownerDocument)==null?void 0:s.body),c=Lt(a);if(l){const d=yd(c);return t.concat(c,c.visualViewport||[],ri(a)?a:[],d&&r?Gs(d):[])}else return t.concat(a,Gs(a,[],r))}function yd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function f0(e){const t=dn(e);let r=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=Qn(e),l=a?e.offsetWidth:r,c=a?e.offsetHeight:s,d=tl(r)!==l||tl(s)!==c;return d&&(r=l,s=c),{width:r,height:s,$:d}}function mf(e){return cn(e)?e:e.contextElement}function Fo(e){const t=mf(e);if(!Qn(t))return Rn(1);const r=t.getBoundingClientRect(),{width:s,height:a,$:l}=f0(t);let c=(l?tl(r.width):r.width)/s,d=(l?tl(r.height):r.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const AT=Rn(0);function h0(e){const t=Lt(e);return!pf()||!t.visualViewport?AT:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jT(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Lt(e)?!1:t}function Yr(e,t,r,s){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),l=mf(e);let c=Rn(1);t&&(s?cn(s)&&(c=Fo(s)):c=Fo(e));const d=jT(l,r,s)?h0(l):Rn(0);let h=(a.left+d.x)/c.x,p=(a.top+d.y)/c.y,m=a.width/c.x,y=a.height/c.y;if(l){const b=Lt(l),v=s&&cn(s)?Lt(s):s;let P=b,S=yd(P);for(;S&&s&&v!==P;){const E=Fo(S),T=S.getBoundingClientRect(),R=dn(S),N=T.left+(S.clientLeft+parseFloat(R.paddingLeft))*E.x,A=T.top+(S.clientTop+parseFloat(R.paddingTop))*E.y;h*=E.x,p*=E.y,m*=E.x,y*=E.y,h+=N,p+=A,P=Lt(S),S=yd(P)}}return rl({width:m,height:y,x:h,y:p})}function kl(e,t){const r=Rl(e).scrollLeft;return t?t.left+r:Yr(Mn(e)).left+r}function p0(e,t){const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-kl(e,r),a=r.top+t.scrollTop;return{x:s,y:a}}function MT(e){let{elements:t,rect:r,offsetParent:s,strategy:a}=e;const l=a==="fixed",c=Mn(s),d=t?Tl(t.floating):!1;if(s===c||d&&l)return r;let h={scrollLeft:0,scrollTop:0},p=Rn(1);const m=Rn(0),y=Qn(s);if((y||!y&&!l)&&((Go(s)!=="body"||ri(c))&&(h=Rl(s)),y)){const v=Yr(s);p=Fo(s),m.x=v.x+s.clientLeft,m.y=v.y+s.clientTop}const b=c&&!y&&!l?p0(c,h):Rn(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-h.scrollLeft*p.x+m.x+b.x,y:r.y*p.y-h.scrollTop*p.y+m.y+b.y}}function DT(e){return Array.from(e.getClientRects())}function OT(e){const t=Mn(e),r=Rl(e),s=e.ownerDocument.body,a=Ot(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),l=Ot(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let c=-r.scrollLeft+kl(e);const d=-r.scrollTop;return dn(s).direction==="rtl"&&(c+=Ot(t.clientWidth,s.clientWidth)-a),{width:a,height:l,x:c,y:d}}const hg=25;function LT(e,t){const r=Lt(e),s=Mn(e),a=r.visualViewport;let l=s.clientWidth,c=s.clientHeight,d=0,h=0;if(a){l=a.width,c=a.height;const m=pf();(!m||m&&t==="fixed")&&(d=a.offsetLeft,h=a.offsetTop)}const p=kl(s);if(p<=0){const m=s.ownerDocument,y=m.body,b=getComputedStyle(y),v=m.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,P=Math.abs(s.clientWidth-y.clientWidth-v);P<=hg&&(l-=P)}else p<=hg&&(l+=p);return{width:l,height:c,x:d,y:h}}function _T(e,t){const r=Yr(e,!0,t==="fixed"),s=r.top+e.clientTop,a=r.left+e.clientLeft,l=Qn(e)?Fo(e):Rn(1),c=e.clientWidth*l.x,d=e.clientHeight*l.y,h=a*l.x,p=s*l.y;return{width:c,height:d,x:h,y:p}}function pg(e,t,r){let s;if(t==="viewport")s=LT(e,r);else if(t==="document")s=OT(Mn(e));else if(cn(t))s=_T(t,r);else{const a=h0(e);s={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return rl(s)}function m0(e,t){const r=Er(e);return r===t||!cn(r)||Uo(r)?!1:dn(r).position==="fixed"||m0(r,t)}function IT(e,t){const r=t.get(e);if(r)return r;let s=Gs(e,[],!1).filter(d=>cn(d)&&Go(d)!=="body"),a=null;const l=dn(e).position==="fixed";let c=l?Er(e):e;for(;cn(c)&&!Uo(c);){const d=dn(c),h=hf(c);!h&&d.position==="fixed"&&(a=null),(l?!h&&!a:!h&&d.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||ri(c)&&!h&&m0(e,c))?s=s.filter(m=>m!==c):a=d,c=Er(c)}return t.set(e,s),s}function FT(e){let{element:t,boundary:r,rootBoundary:s,strategy:a}=e;const c=[...r==="clippingAncestors"?Tl(t)?[]:IT(t,this._c):[].concat(r),s],d=pg(t,c[0],a);let h=d.top,p=d.right,m=d.bottom,y=d.left;for(let b=1;b<c.length;b++){const v=pg(t,c[b],a);h=Ot(v.top,h),p=Cr(v.right,p),m=Cr(v.bottom,m),y=Ot(v.left,y)}return{width:p-y,height:m-h,x:y,y:h}}function VT(e){const{width:t,height:r}=f0(e);return{width:t,height:r}}function BT(e,t,r){const s=Qn(t),a=Mn(t),l=r==="fixed",c=Yr(e,!0,l,t);let d={scrollLeft:0,scrollTop:0};const h=Rn(0);function p(){h.x=kl(a)}if(s||!s&&!l)if((Go(t)!=="body"||ri(a))&&(d=Rl(t)),s){const v=Yr(t,!0,l,t);h.x=v.x+t.clientLeft,h.y=v.y+t.clientTop}else a&&p();l&&!s&&a&&p();const m=a&&!s&&!l?p0(a,d):Rn(0),y=c.left+d.scrollLeft-h.x-m.x,b=c.top+d.scrollTop-h.y-m.y;return{x:y,y:b,width:c.width,height:c.height}}function Lc(e){return dn(e).position==="static"}function mg(e,t){if(!Qn(e)||dn(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Mn(e)===r&&(r=r.ownerDocument.body),r}function g0(e,t){const r=Lt(e);if(Tl(e))return r;if(!Qn(e)){let a=Er(e);for(;a&&!Uo(a);){if(cn(a)&&!Lc(a))return a;a=Er(a)}return r}let s=mg(e,t);for(;s&&TT(s)&&Lc(s);)s=mg(s,t);return s&&Uo(s)&&Lc(s)&&!hf(s)?r:s||NT(e)||r}const zT=async function(e){const t=this.getOffsetParent||g0,r=this.getDimensions,s=await r(e.floating);return{reference:BT(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function UT(e){return dn(e).direction==="rtl"}const $T={convertOffsetParentRelativeRectToViewportRelativeRect:MT,getDocumentElement:Mn,getClippingRect:FT,getOffsetParent:g0,getElementRects:zT,getClientRects:DT,getDimensions:VT,getScale:Fo,isElement:cn,isRTL:UT};function y0(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function WT(e,t){let r=null,s;const a=Mn(e);function l(){var d;clearTimeout(s),(d=r)==null||d.disconnect(),r=null}function c(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),l();const p=e.getBoundingClientRect(),{left:m,top:y,width:b,height:v}=p;if(d||t(),!b||!v)return;const P=Ra(y),S=Ra(a.clientWidth-(m+b)),E=Ra(a.clientHeight-(y+v)),T=Ra(m),N={rootMargin:-P+"px "+-S+"px "+-E+"px "+-T+"px",threshold:Ot(0,Cr(1,h))||1};let A=!0;function O(F){const $=F[0].intersectionRatio;if($!==h){if(!A)return c();$?c(!1,$):s=setTimeout(()=>{c(!1,1e-7)},1e3)}$===1&&!y0(p,e.getBoundingClientRect())&&c(),A=!1}try{r=new IntersectionObserver(O,{...N,root:a.ownerDocument})}catch{r=new IntersectionObserver(O,N)}r.observe(e)}return c(!0),l}function HT(e,t,r,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=s,p=mf(e),m=a||l?[...p?Gs(p):[],...t?Gs(t):[]]:[];m.forEach(T=>{a&&T.addEventListener("scroll",r,{passive:!0}),l&&T.addEventListener("resize",r)});const y=p&&d?WT(p,r):null;let b=-1,v=null;c&&(v=new ResizeObserver(T=>{let[R]=T;R&&R.target===p&&v&&t&&(v.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var N;(N=v)==null||N.observe(t)})),r()}),p&&!h&&v.observe(p),t&&v.observe(t));let P,S=h?Yr(e):null;h&&E();function E(){const T=Yr(e);S&&!y0(S,T)&&r(),S=T,P=requestAnimationFrame(E)}return r(),()=>{var T;m.forEach(R=>{a&&R.removeEventListener("scroll",r),l&&R.removeEventListener("resize",r)}),y?.(),(T=v)==null||T.disconnect(),v=null,h&&cancelAnimationFrame(P)}}const KT=ST,QT=CT,YT=xT,GT=PT,XT=wT,gg=vT,qT=ET,ZT=(e,t,r)=>{const s=new Map,a={platform:$T,...r},l={...a.platform,_c:s};return yT(e,t,{...a,platform:l})};var JT=typeof document<"u",eR=function(){},Ua=JT?w.useLayoutEffect:eR;function ol(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 r,s,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(s=r;s--!==0;)if(!ol(e[s],t[s]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(s=r;s--!==0;)if(!{}.hasOwnProperty.call(t,a[s]))return!1;for(s=r;s--!==0;){const l=a[s];if(!(l==="_owner"&&e.$$typeof)&&!ol(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function v0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yg(e,t){const r=v0(e);return Math.round(t*r)/r}function _c(e){const t=w.useRef(e);return Ua(()=>{t.current=e}),t}function tR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:s=[],platform:a,elements:{reference:l,floating:c}={},transform:d=!0,whileElementsMounted:h,open:p}=e,[m,y]=w.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[b,v]=w.useState(s);ol(b,s)||v(s);const[P,S]=w.useState(null),[E,T]=w.useState(null),R=w.useCallback(V=>{V!==F.current&&(F.current=V,S(V))},[]),N=w.useCallback(V=>{V!==$.current&&($.current=V,T(V))},[]),A=l||P,O=c||E,F=w.useRef(null),$=w.useRef(null),z=w.useRef(m),H=h!=null,W=_c(h),ee=_c(a),X=_c(p),de=w.useCallback(()=>{if(!F.current||!$.current)return;const V={placement:t,strategy:r,middleware:b};ee.current&&(V.platform=ee.current),ZT(F.current,$.current,V).then(U=>{const K={...U,isPositioned:X.current!==!1};q.current&&!ol(z.current,K)&&(z.current=K,bl.flushSync(()=>{y(K)}))})},[b,t,r,ee,X]);Ua(()=>{p===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,y(V=>({...V,isPositioned:!1})))},[p]);const q=w.useRef(!1);Ua(()=>(q.current=!0,()=>{q.current=!1}),[]),Ua(()=>{if(A&&(F.current=A),O&&($.current=O),A&&O){if(W.current)return W.current(A,O,de);de()}},[A,O,de,W,H]);const he=w.useMemo(()=>({reference:F,floating:$,setReference:R,setFloating:N}),[R,N]),re=w.useMemo(()=>({reference:A,floating:O}),[A,O]),le=w.useMemo(()=>{const V={position:r,left:0,top:0};if(!re.floating)return V;const U=yg(re.floating,m.x),K=yg(re.floating,m.y);return d?{...V,transform:"translate("+U+"px, "+K+"px)",...v0(re.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:U,top:K}},[r,d,re.floating,m.x,m.y]);return w.useMemo(()=>({...m,update:de,refs:he,elements:re,floatingStyles:le}),[m,de,he,re,le])}const nR=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:s,padding:a}=typeof e=="function"?e(r):e;return s&&t(s)?s.current!=null?gg({element:s.current,padding:a}).fn(r):{}:s?gg({element:s,padding:a}).fn(r):{}}}},rR=(e,t)=>{const r=KT(e);return{name:r.name,fn:r.fn,options:[e,t]}},oR=(e,t)=>{const r=QT(e);return{name:r.name,fn:r.fn,options:[e,t]}},sR=(e,t)=>({fn:qT(e).fn,options:[e,t]}),iR=(e,t)=>{const r=YT(e);return{name:r.name,fn:r.fn,options:[e,t]}},aR=(e,t)=>{const r=GT(e);return{name:r.name,fn:r.fn,options:[e,t]}},lR=(e,t)=>{const r=XT(e);return{name:r.name,fn:r.fn,options:[e,t]}},uR=(e,t)=>{const r=nR(e);return{name:r.name,fn:r.fn,options:[e,t]}};var cR="Arrow",x0=w.forwardRef((e,t)=>{const{children:r,width:s=10,height:a=5,...l}=e;return x.jsx(je.svg,{...l,ref:t,width:s,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});x0.displayName=cR;var dR=x0;function w0(e){const[t,r]=w.useState(void 0);return Nn(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const l=a[0];let c,d;if("borderBoxSize"in l){const h=l.borderBoxSize,p=Array.isArray(h)?h[0]:h;c=p.inlineSize,d=p.blockSize}else c=e.offsetWidth,d=e.offsetHeight;r({width:c,height:d})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else r(void 0)},[e]),t}var b0="Popper",[S0,C0]=Zr(b0),[fL,E0]=S0(b0),P0="PopperAnchor",T0=w.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:s,...a}=e,l=E0(P0,r),c=w.useRef(null),d=Ue(t,c),h=w.useRef(null);return w.useEffect(()=>{const p=h.current;h.current=s?.current||c.current,p!==h.current&&l.onAnchorChange(h.current)}),s?null:x.jsx(je.div,{...a,ref:d})});T0.displayName=P0;var gf="PopperContent",[fR,hR]=S0(gf),R0=w.forwardRef((e,t)=>{const{__scopePopper:r,side:s="bottom",sideOffset:a=0,align:l="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:h=!0,collisionBoundary:p=[],collisionPadding:m=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:v="optimized",onPlaced:P,...S}=e,E=E0(gf,r),[T,R]=w.useState(null),N=Ue(t,fe=>R(fe)),[A,O]=w.useState(null),F=w0(A),$=F?.width??0,z=F?.height??0,H=s+(l!=="center"?"-"+l:""),W=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},ee=Array.isArray(p)?p:[p],X=ee.length>0,de={padding:W,boundary:ee.filter(mR),altBoundary:X},{refs:q,floatingStyles:he,placement:re,isPositioned:le,middlewareData:V}=tR({strategy:"fixed",placement:H,whileElementsMounted:(...fe)=>HT(...fe,{animationFrame:v==="always"}),elements:{reference:E.anchor},middleware:[rR({mainAxis:a+z,alignmentAxis:c}),h&&oR({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?sR():void 0,...de}),h&&iR({...de}),aR({...de,apply:({elements:fe,rects:Ce,availableWidth:Pe,availableHeight:Qe})=>{const{width:It,height:Yn}=Ce.reference,Ft=fe.floating.style;Ft.setProperty("--radix-popper-available-width",`${Pe}px`),Ft.setProperty("--radix-popper-available-height",`${Qe}px`),Ft.setProperty("--radix-popper-anchor-width",`${It}px`),Ft.setProperty("--radix-popper-anchor-height",`${Yn}px`)}}),A&&uR({element:A,padding:d}),gR({arrowWidth:$,arrowHeight:z}),b&&lR({strategy:"referenceHidden",...de})]}),[U,K]=A0(re),M=at(P);Nn(()=>{le&&M?.()},[le,M]);const B=V.arrow?.x,te=V.arrow?.y,oe=V.arrow?.centerOffset!==0,[ge,we]=w.useState();return Nn(()=>{T&&we(window.getComputedStyle(T).zIndex)},[T]),x.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...he,transform:le?he.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(" "),...V.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(fR,{scope:r,placedSide:U,onArrowChange:O,arrowX:B,arrowY:te,shouldHideArrow:oe,children:x.jsx(je.div,{"data-side":U,"data-align":K,...S,ref:N,style:{...S.style,animation:le?void 0:"none"}})})})});R0.displayName=gf;var k0="PopperArrow",pR={top:"bottom",right:"left",bottom:"top",left:"right"},N0=w.forwardRef(function(t,r){const{__scopePopper:s,...a}=t,l=hR(k0,s),c=pR[l.placedSide];return x.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[c]: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:x.jsx(dR,{...a,ref:r,style:{...a.style,display:"block"}})})});N0.displayName=k0;function mR(e){return e!==null}var gR=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:s,middlewareData:a}=t,c=a.arrow?.centerOffset!==0,d=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[p,m]=A0(r),y={start:"0%",center:"50%",end:"100%"}[m],b=(a.arrow?.x??0)+d/2,v=(a.arrow?.y??0)+h/2;let P="",S="";return p==="bottom"?(P=c?y:`${b}px`,S=`${-h}px`):p==="top"?(P=c?y:`${b}px`,S=`${s.floating.height+h}px`):p==="right"?(P=`${-h}px`,S=c?y:`${v}px`):p==="left"&&(P=`${s.floating.width+h}px`,S=c?y:`${v}px`),{data:{x:P,y:S}}}});function A0(e){const[t,r="center"]=e.split("-");return[t,r]}var yR=T0,vR=R0,xR=N0,[Nl]=Zr("Tooltip",[C0]),yf=C0(),j0="TooltipProvider",wR=700,vg="tooltip.open",[bR,M0]=Nl(j0),D0=e=>{const{__scopeTooltip:t,delayDuration:r=wR,skipDelayDuration:s=300,disableHoverableContent:a=!1,children:l}=e,c=w.useRef(!0),d=w.useRef(!1),h=w.useRef(0);return w.useEffect(()=>{const p=h.current;return()=>window.clearTimeout(p)},[]),x.jsx(bR,{scope:t,isOpenDelayedRef:c,delayDuration:r,onOpen:w.useCallback(()=>{window.clearTimeout(h.current),c.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>c.current=!0,s)},[s]),isPointerInTransitRef:d,onPointerInTransitChange:w.useCallback(p=>{d.current=p},[]),disableHoverableContent:a,children:l})};D0.displayName=j0;var O0="Tooltip",[hL,Al]=Nl(O0),vd="TooltipTrigger",SR=w.forwardRef((e,t)=>{const{__scopeTooltip:r,...s}=e,a=Al(vd,r),l=M0(vd,r),c=yf(r),d=w.useRef(null),h=Ue(t,d,a.onTriggerChange),p=w.useRef(!1),m=w.useRef(!1),y=w.useCallback(()=>p.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),x.jsx(yR,{asChild:!0,...c,children:x.jsx(je.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...s,ref:h,onPointerMove:Re(e.onPointerMove,b=>{b.pointerType!=="touch"&&!m.current&&!l.isPointerInTransitRef.current&&(a.onTriggerEnter(),m.current=!0)}),onPointerLeave:Re(e.onPointerLeave,()=>{a.onTriggerLeave(),m.current=!1}),onPointerDown:Re(e.onPointerDown,()=>{a.open&&a.onClose(),p.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:Re(e.onFocus,()=>{p.current||a.onOpen()}),onBlur:Re(e.onBlur,a.onClose),onClick:Re(e.onClick,a.onClose)})})});SR.displayName=vd;var CR="TooltipPortal",[pL,ER]=Nl(CR,{forceMount:void 0}),$o="TooltipContent",L0=w.forwardRef((e,t)=>{const r=ER($o,e.__scopeTooltip),{forceMount:s=r.forceMount,side:a="top",...l}=e,c=Al($o,e.__scopeTooltip);return x.jsx(jn,{present:s||c.open,children:c.disableHoverableContent?x.jsx(_0,{side:a,...l,ref:t}):x.jsx(PR,{side:a,...l,ref:t})})}),PR=w.forwardRef((e,t)=>{const r=Al($o,e.__scopeTooltip),s=M0($o,e.__scopeTooltip),a=w.useRef(null),l=Ue(t,a),[c,d]=w.useState(null),{trigger:h,onClose:p}=r,m=a.current,{onPointerInTransitChange:y}=s,b=w.useCallback(()=>{d(null),y(!1)},[y]),v=w.useCallback((P,S)=>{const E=P.currentTarget,T={x:P.clientX,y:P.clientY},R=AR(T,E.getBoundingClientRect()),N=jR(T,R),A=MR(S.getBoundingClientRect()),O=OR([...N,...A]);d(O),y(!0)},[y]);return w.useEffect(()=>()=>b(),[b]),w.useEffect(()=>{if(h&&m){const P=E=>v(E,m),S=E=>v(E,h);return h.addEventListener("pointerleave",P),m.addEventListener("pointerleave",S),()=>{h.removeEventListener("pointerleave",P),m.removeEventListener("pointerleave",S)}}},[h,m,v,b]),w.useEffect(()=>{if(c){const P=S=>{const E=S.target,T={x:S.clientX,y:S.clientY},R=h?.contains(E)||m?.contains(E),N=!DR(T,c);R?b():N&&(b(),p())};return document.addEventListener("pointermove",P),()=>document.removeEventListener("pointermove",P)}},[h,m,c,p,b]),x.jsx(_0,{...e,ref:l})}),[TR,RR]=Nl(O0,{isInside:!1}),kR=lC("TooltipContent"),_0=w.forwardRef((e,t)=>{const{__scopeTooltip:r,children:s,"aria-label":a,onEscapeKeyDown:l,onPointerDownOutside:c,...d}=e,h=Al($o,r),p=yf(r),{onClose:m}=h;return w.useEffect(()=>(document.addEventListener(vg,m),()=>document.removeEventListener(vg,m)),[m]),w.useEffect(()=>{if(h.trigger){const y=b=>{b.target?.contains(h.trigger)&&m()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[h.trigger,m]),x.jsx(Sl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:y=>y.preventDefault(),onDismiss:m,children:x.jsxs(vR,{"data-state":h.stateAttribute,...p,...d,ref:t,style:{...d.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:[x.jsx(kR,{children:s}),x.jsx(TR,{scope:r,isInside:!0,children:x.jsx(MC,{id:h.contentId,role:"tooltip",children:a||s})})]})})});L0.displayName=$o;var I0="TooltipArrow",NR=w.forwardRef((e,t)=>{const{__scopeTooltip:r,...s}=e,a=yf(r);return RR(I0,r).isInside?null:x.jsx(xR,{...a,...s,ref:t})});NR.displayName=I0;function AR(e,t){const r=Math.abs(t.top-e.y),s=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(r,s,a,l)){case l:return"left";case a:return"right";case r:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function jR(e,t,r=5){const s=[];switch(t){case"top":s.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":s.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":s.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":s.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return s}function MR(e){const{top:t,right:r,bottom:s,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:s},{x:a,y:s}]}function DR(e,t){const{x:r,y:s}=e;let a=!1;for(let l=0,c=t.length-1;l<t.length;c=l++){const d=t[l],h=t[c],p=d.x,m=d.y,y=h.x,b=h.y;m>s!=b>s&&r<(y-p)*(s-m)/(b-m)+p&&(a=!a)}return a}function OR(e){const t=e.slice();return t.sort((r,s)=>r.x<s.x?-1:r.x>s.x?1:r.y<s.y?-1:r.y>s.y?1:0),LR(t)}function LR(e){if(e.length<=1)return e.slice();const t=[];for(let s=0;s<e.length;s++){const a=e[s];for(;t.length>=2;){const l=t[t.length-1],c=t[t.length-2];if((l.x-c.x)*(a.y-c.y)>=(l.y-c.y)*(a.x-c.x))t.pop();else break}t.push(a)}t.pop();const r=[];for(let s=e.length-1;s>=0;s--){const a=e[s];for(;r.length>=2;){const l=r[r.length-1],c=r[r.length-2];if((l.x-c.x)*(a.y-c.y)>=(l.y-c.y)*(a.x-c.x))r.pop();else break}r.push(a)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var _R=D0,F0=L0;const IR=_R,FR=w.forwardRef(({className:e,sideOffset:t=4,...r},s)=>x.jsx(F0,{ref:s,sideOffset:t,className:xe("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));FR.displayName=F0.displayName;var oi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},VR={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},BR=class{#e=VR;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Wr=new BR;function zR(e){setTimeout(e,0)}var Gr=typeof window>"u"||"Deno"in globalThis;function kt(){}function UR(e,t){return typeof e=="function"?e(t):e}function xd(e){return typeof e=="number"&&e>=0&&e!==1/0}function V0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Sr(e,t){return typeof e=="function"?e(t):e}function Kt(e,t){return typeof e=="function"?e(t):e}function xg(e,t){const{type:r="all",exact:s,fetchStatus:a,predicate:l,queryKey:c,stale:d}=e;if(c){if(s){if(t.queryHash!==vf(c,t.options))return!1}else if(!qs(t.queryKey,c))return!1}if(r!=="all"){const h=t.isActive();if(r==="active"&&!h||r==="inactive"&&h)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||a&&a!==t.state.fetchStatus||l&&!l(t))}function wg(e,t){const{exact:r,status:s,predicate:a,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(r){if(Xs(t.options.mutationKey)!==Xs(l))return!1}else if(!qs(t.options.mutationKey,l))return!1}return!(s&&t.state.status!==s||a&&!a(t))}function vf(e,t){return(t?.queryKeyHashFn||Xs)(e)}function Xs(e){return JSON.stringify(e,(t,r)=>bd(r)?Object.keys(r).sort().reduce((s,a)=>(s[a]=r[a],s),{}):r)}function qs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>qs(e[r],t[r])):!1}var $R=Object.prototype.hasOwnProperty;function B0(e,t,r=0){if(e===t)return e;if(r>500)return t;const s=bg(e)&&bg(t);if(!s&&!(bd(e)&&bd(t)))return t;const l=(s?e:Object.keys(e)).length,c=s?t:Object.keys(t),d=c.length,h=s?new Array(d):{};let p=0;for(let m=0;m<d;m++){const y=s?m:c[m],b=e[y],v=t[y];if(b===v){h[y]=b,(s?m<l:$R.call(e,y))&&p++;continue}if(b===null||v===null||typeof b!="object"||typeof v!="object"){h[y]=v;continue}const P=B0(b,v,r+1);h[y]=P,P===b&&p++}return l===d&&p===l?e:h}function wd(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function bg(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function bd(e){if(!Sg(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Sg(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Sg(e){return Object.prototype.toString.call(e)==="[object Object]"}function WR(e){return new Promise(t=>{Wr.setTimeout(t,e)})}function Sd(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?B0(e,t):t}function HR(e,t,r=0){const s=[...e,t];return r&&s.length>r?s.slice(1):s}function KR(e,t,r=0){const s=[t,...e];return r&&s.length>r?s.slice(0,-1):s}var xf=Symbol();function z0(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===xf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function U0(e,t){return typeof e=="function"?e(...t):!!e}function QR(e,t,r){let s=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??=t(),s||(s=!0,a.aborted?r():a.addEventListener("abort",r,{once:!0})),a)}),e}var YR=class extends oi{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Gr&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},wf=new YR;function Cd(){let e,t;const r=new Promise((a,l)=>{e=a,t=l});r.status="pending",r.catch(()=>{});function s(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{s({status:"fulfilled",value:a}),e(a)},r.reject=a=>{s({status:"rejected",reason:a}),t(a)},r}var GR=zR;function XR(){let e=[],t=0,r=d=>{d()},s=d=>{d()},a=GR;const l=d=>{t?e.push(d):a(()=>{r(d)})},c=()=>{const d=e;e=[],d.length&&a(()=>{s(()=>{d.forEach(h=>{r(h)})})})};return{batch:d=>{let h;t++;try{h=d()}finally{t--,t||c()}return h},batchCalls:d=>(...h)=>{l(()=>{d(...h)})},schedule:l,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{s=d},setScheduler:d=>{a=d}}}var it=XR(),qR=class extends oi{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Gr&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#e}},sl=new qR;function ZR(e){return Math.min(1e3*2**e,3e4)}function $0(e){return(e??"online")==="online"?sl.isOnline():!0}var Ed=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function W0(e){let t=!1,r=0,s;const a=Cd(),l=()=>a.status!=="pending",c=S=>{if(!l()){const E=new Ed(S);b(E),e.onCancel?.(E)}},d=()=>{t=!0},h=()=>{t=!1},p=()=>wf.isFocused()&&(e.networkMode==="always"||sl.isOnline())&&e.canRun(),m=()=>$0(e.networkMode)&&e.canRun(),y=S=>{l()||(s?.(),a.resolve(S))},b=S=>{l()||(s?.(),a.reject(S))},v=()=>new Promise(S=>{s=E=>{(l()||p())&&S(E)},e.onPause?.()}).then(()=>{s=void 0,l()||e.onContinue?.()}),P=()=>{if(l())return;let S;const E=r===0?e.initialPromise:void 0;try{S=E??e.fn()}catch(T){S=Promise.reject(T)}Promise.resolve(S).then(y).catch(T=>{if(l())return;const R=e.retry??(Gr?0:3),N=e.retryDelay??ZR,A=typeof N=="function"?N(r,T):N,O=R===!0||typeof R=="number"&&r<R||typeof R=="function"&&R(r,T);if(t||!O){b(T);return}r++,e.onFail?.(r,T),WR(A).then(()=>p()?void 0:v()).then(()=>{t?b(T):P()})})};return{promise:a,status:()=>a.status,cancel:c,continue:()=>(s?.(),a),cancelRetry:d,continueRetry:h,canStart:m,start:()=>(m()?P():v().then(P),a)}}var H0=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xd(this.gcTime)&&(this.#e=Wr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Gr?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Wr.clearTimeout(this.#e),this.#e=void 0)}},JR=class extends H0{#e;#t;#n;#o;#r;#a;#i;constructor(e){super(),this.#i=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#n=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Eg(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Eg(this.options);t.data!==void 0&&(this.setState(Cg(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const r=Sd(this.state.data,e,this.options);return this.#s({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#s({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(kt).catch(kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Kt(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Sr(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!V0(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#i?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,s=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#i=!0,r.signal)})},a=()=>{const d=z0(this.options,t),p=(()=>{const m={client:this.#o,queryKey:this.queryKey,meta:this.meta};return s(m),m})();return this.#i=!1,this.options.persister?this.options.persister(d,p,this):d(p)},c=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:a};return s(d),d})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#s({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=W0({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:d=>{d instanceof Ed&&d.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(d,h)=>{this.#s({type:"failed",failureCount:d,error:h})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const d=await this.#r.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Ed){if(d.silent)return this.#r.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#s({type:"error",error:d}),this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#s(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...K0(r.data,this.options),fetchMeta:e.meta??null};case"success":const s={...r,...Cg(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?s:void 0,s;case"error":const a=e.error;return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),it.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function K0(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:$0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Cg(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Eg(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,s=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var ek=class extends oi{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#i=Cd(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#o=void 0;#r;#a;#i;#s;#m;#f;#h;#u;#c;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Pg(this.#t,this.options)?this.#d():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Pd(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Pd(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#b(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Kt(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!wd(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&Tg(this.#t,r,this.options,t)&&this.#d(),this.updateResult(),s&&(this.#t!==r||Kt(this.options.enabled,this.#t)!==Kt(t.enabled,this.#t)||Sr(this.options.staleTime,this.#t)!==Sr(t.staleTime,this.#t))&&this.#g();const a=this.#y();s&&(this.#t!==r||Kt(this.options.enabled,this.#t)!==Kt(t.enabled,this.#t)||a!==this.#l)&&this.#v(a)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return nk(this,r)&&(this.#o=r,this.#a=this.options,this.#r=this.#t.state),r}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(r,s)=>(this.trackProp(s),t?.(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#i.status==="pending"&&this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,s))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#d(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(kt)),t}#g(){this.#w();const e=Sr(this.options.staleTime,this.#t);if(Gr||this.#o.isStale||!xd(e))return;const r=V0(this.#o.dataUpdatedAt,e)+1;this.#u=Wr.setTimeout(()=>{this.#o.isStale||this.updateResult()},r)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#b(),this.#l=e,!(Gr||Kt(this.options.enabled,this.#t)===!1||!xd(this.#l)||this.#l===0)&&(this.#c=Wr.setInterval(()=>{(this.options.refetchIntervalInBackground||wf.isFocused())&&this.#d()},this.#l))}#x(){this.#g(),this.#v(this.#y())}#w(){this.#u&&(Wr.clearTimeout(this.#u),this.#u=void 0)}#b(){this.#c&&(Wr.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const r=this.#t,s=this.options,a=this.#o,l=this.#r,c=this.#a,h=e!==r?e.state:this.#n,{state:p}=e;let m={...p},y=!1,b;if(t._optimisticResults){const z=this.hasListeners(),H=!z&&Pg(e,t),W=z&&Tg(e,r,t,s);(H||W)&&(m={...m,...K0(p.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:v,errorUpdatedAt:P,status:S}=m;b=m.data;let E=!1;if(t.placeholderData!==void 0&&b===void 0&&S==="pending"){let z;a?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(z=a.data,E=!0):z=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,z!==void 0&&(S="success",b=Sd(a?.data,z,t),y=!0)}if(t.select&&b!==void 0&&!E)if(a&&b===l?.data&&t.select===this.#m)b=this.#f;else try{this.#m=t.select,b=t.select(b),b=Sd(a?.data,b,t),this.#f=b,this.#s=null}catch(z){this.#s=z}this.#s&&(v=this.#s,b=this.#f,P=Date.now(),S="error");const T=m.fetchStatus==="fetching",R=S==="pending",N=S==="error",A=R&&T,O=b!==void 0,$={status:S,fetchStatus:m.fetchStatus,isPending:R,isSuccess:S==="success",isError:N,isInitialLoading:A,isLoading:A,data:b,dataUpdatedAt:m.dataUpdatedAt,error:v,errorUpdatedAt:P,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>h.dataUpdateCount||m.errorUpdateCount>h.errorUpdateCount,isFetching:T,isRefetching:T&&!R,isLoadingError:N&&!O,isPaused:m.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:N&&O,isStale:bf(e,t),refetch:this.refetch,promise:this.#i,isEnabled:Kt(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const z=$.data!==void 0,H=$.status==="error"&&!z,W=de=>{H?de.reject($.error):z&&de.resolve($.data)},ee=()=>{const de=this.#i=$.promise=Cd();W(de)},X=this.#i;switch(X.status){case"pending":e.queryHash===r.queryHash&&W(X);break;case"fulfilled":(H||$.data!==X.value)&&ee();break;case"rejected":(!H||$.error!==X.reason)&&ee();break}}return $}updateResult(){const e=this.#o,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#a=this.options,this.#r.data!==void 0&&(this.#h=this.#t),wd(t,e))return;this.#o=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!this.#p.size)return!0;const l=new Set(a??this.#p);return this.options.throwOnError&&l.add("error"),Object.keys(this.#o).some(c=>{const d=c;return this.#o[d]!==e[d]&&l.has(d)})};this.#C({listeners:r()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#C(e){it.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function tk(e,t){return Kt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Pg(e,t){return tk(e,t)||e.state.data!==void 0&&Pd(e,t,t.refetchOnMount)}function Pd(e,t,r){if(Kt(t.enabled,e)!==!1&&Sr(t.staleTime,e)!=="static"){const s=typeof r=="function"?r(e):r;return s==="always"||s!==!1&&bf(e,t)}return!1}function Tg(e,t,r,s){return(e!==t||Kt(s.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&bf(e,r)}function bf(e,t){return Kt(t.enabled,e)!==!1&&e.isStaleByTime(Sr(t.staleTime,e))}function nk(e,t){return!wd(e.getCurrentResult(),t)}function Rg(e){return{onFetch:(t,r)=>{const s=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,l=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let d={pages:[],pageParams:[]},h=0;const p=async()=>{let m=!1;const y=P=>{QR(P,()=>t.signal,()=>m=!0)},b=z0(t.options,t.fetchOptions),v=async(P,S,E)=>{if(m)return Promise.reject();if(S==null&&P.pages.length)return Promise.resolve(P);const R=(()=>{const F={client:t.client,queryKey:t.queryKey,pageParam:S,direction:E?"backward":"forward",meta:t.options.meta};return y(F),F})(),N=await b(R),{maxPages:A}=t.options,O=E?KR:HR;return{pages:O(P.pages,N,A),pageParams:O(P.pageParams,S,A)}};if(a&&l.length){const P=a==="backward",S=P?rk:kg,E={pages:l,pageParams:c},T=S(s,E);d=await v(E,T,P)}else{const P=e??l.length;do{const S=h===0?c[0]??s.initialPageParam:kg(s,d);if(h>0&&S==null)break;d=await v(d,S),h++}while(h<P)}return d};t.options.persister?t.fetchFn=()=>t.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=p}}}function kg(e,{pages:t,pageParams:r}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,r[s],r):void 0}function rk(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var ok=class extends H0{#e;#t;#n;#o;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||sk(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=W0({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(l,c)=>{this.#r({type:"failed",failureCount:l,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",a=!this.#o.canStart();try{if(s)t();else{this.#r({type:"pending",variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,r);const c=await this.options.onMutate?.(e,r);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:a})}const l=await this.#o.start();return await this.#n.config.onSuccess?.(l,e,this.state.context,this,r),await this.options.onSuccess?.(l,e,this.state.context,r),await this.#n.config.onSettled?.(l,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(l,null,e,this.state.context,r),this.#r({type:"success",data:l}),l}catch(l){try{await this.#n.config.onError?.(l,e,this.state.context,this,r)}catch(c){Promise.reject(c)}try{await this.options.onError?.(l,e,this.state.context,r)}catch(c){Promise.reject(c)}try{await this.#n.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this,r)}catch(c){Promise.reject(c)}try{await this.options.onSettled?.(void 0,l,e,this.state.context,r)}catch(c){Promise.reject(c)}throw this.#r({type:"error",error:l}),l}finally{this.#n.runNext(this)}}#r(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),it.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function sk(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ik=class extends oi{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,r){const s=new ok({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:r});return this.add(s),s}add(e){this.#e.add(e);const t=ka(e);if(typeof t=="string"){const r=this.#t.get(t);r?r.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=ka(e);if(typeof t=="string"){const r=this.#t.get(t);if(r)if(r.length>1){const s=r.indexOf(e);s!==-1&&r.splice(s,1)}else r[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=ka(e);if(typeof t=="string"){const s=this.#t.get(t)?.find(a=>a.state.status==="pending");return!s||s===e}else return!0}runNext(e){const t=ka(e);return typeof t=="string"?this.#t.get(t)?.find(s=>s!==e&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){it.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>wg(t,r))}findAll(e={}){return this.getAll().filter(t=>wg(e,t))}notify(e){it.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return it.batch(()=>Promise.all(e.map(t=>t.continue().catch(kt))))}};function ka(e){return e.options.scope?.id}var ak=class extends oi{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){const s=t.queryKey,a=t.queryHash??vf(s,t);let l=this.get(a);return l||(l=new JR({client:e,queryKey:s,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(l)),l}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){it.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>xg(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>xg(e,r)):t}notify(e){it.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){it.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){it.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},lk=class{#e;#t;#n;#o;#r;#a;#i;#s;constructor(e={}){this.#e=e.queryCache||new ak,this.#t=e.mutationCache||new ik,this.#n=e.defaultOptions||{},this.#o=new Map,this.#r=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#i=wf.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=sl.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#i?.(),this.#i=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#e.build(this,t),s=r.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Sr(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:r})=>{const s=r.data;return[t,s]})}setQueryData(e,t,r){const s=this.defaultQueryOptions({queryKey:e}),l=this.#e.get(s.queryHash)?.state.data,c=UR(t,l);if(c!==void 0)return this.#e.build(this,s).setData(c,{...r,manual:!0})}setQueriesData(e,t,r){return it.batch(()=>this.#e.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;it.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#e;return it.batch(()=>(r.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},s=it.batch(()=>this.#e.findAll(e).map(a=>a.cancel(r)));return Promise.all(s).then(kt).catch(kt)}invalidateQueries(e,t={}){return it.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},s=it.batch(()=>this.#e.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let l=a.fetch(void 0,r);return r.throwOnError||(l=l.catch(kt)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(s).then(kt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#e.build(this,t);return r.isStaleByTime(Sr(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(kt).catch(kt)}fetchInfiniteQuery(e){return e.behavior=Rg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(kt).catch(kt)}ensureInfiniteQueryData(e){return e.behavior=Rg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return sl.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#o.set(Xs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#o.values()],r={};return t.forEach(s=>{qs(e,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(e,t){this.#r.set(Xs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],r={};return t.forEach(s=>{qs(e,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=vf(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===xf&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Q0=w.createContext(void 0),uk=e=>{const t=w.useContext(Q0);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ck=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(Q0.Provider,{value:e,children:t})),Y0=w.createContext(!1),dk=()=>w.useContext(Y0);Y0.Provider;function fk(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var hk=w.createContext(fk()),pk=()=>w.useContext(hk),mk=(e,t,r)=>{const s=r?.state.error&&typeof e.throwOnError=="function"?U0(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||s)&&(t.isReset()||(e.retryOnMount=!1))},gk=e=>{w.useEffect(()=>{e.clearReset()},[e])},yk=({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(a&&e.data===void 0||U0(r,[e.error,s])),vk=e=>{if(e.suspense){const r=a=>a==="static"?a:Math.max(a??1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...a)=>r(s(...a)):r(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},xk=(e,t)=>e.isLoading&&e.isFetching&&!t,wk=(e,t)=>e?.suspense&&t.isPending,Ng=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function bk(e,t,r){const s=dk(),a=pk(),l=uk(),c=l.defaultQueryOptions(e);l.getDefaultOptions().queries?._experimental_beforeQuery?.(c);const d=l.getQueryCache().get(c.queryHash);c._optimisticResults=s?"isRestoring":"optimistic",vk(c),mk(c,a,d),gk(a);const h=!l.getQueryCache().get(c.queryHash),[p]=w.useState(()=>new t(l,c)),m=p.getOptimisticResult(c),y=!s&&e.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(b=>{const v=y?p.subscribe(it.batchCalls(b)):kt;return p.updateResult(),v},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),w.useEffect(()=>{p.setOptions(c)},[c,p]),wk(c,m))throw Ng(c,p,a);if(yk({result:m,errorResetBoundary:a,throwOnError:c.throwOnError,query:d,suspense:c.suspense}))throw m.error;return l.getDefaultOptions().queries?._experimental_afterQuery?.(c,m),c.experimental_prefetchInRender&&!Gr&&xk(m,s)&&(h?Ng(c,p,a):d?.promise)?.catch(kt).finally(()=>{p.updateResult()}),c.notifyOnChangeProps?m:p.trackResult(m)}function Sk(e,t){return bk(e,ek)}function il(){return il=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},il.apply(this,arguments)}var wr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(wr||(wr={}));const Ag="popstate";function Ck(e){e===void 0&&(e={});function t(s,a){let{pathname:l,search:c,hash:d}=s.location;return Td("",{pathname:l,search:c,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(s,a){return typeof a=="string"?a:X0(a)}return Pk(t,r,null,e)}function Nt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function G0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ek(){return Math.random().toString(36).substr(2,8)}function jg(e,t){return{usr:e.state,key:e.key,idx:t}}function Td(e,t,r,s){return r===void 0&&(r=null),il({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?jl(t):t,{state:r,key:t&&t.key||s||Ek()})}function X0(e){let{pathname:t="/",search:r="",hash:s=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function jl(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let s=e.indexOf("?");s>=0&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}function Pk(e,t,r,s){s===void 0&&(s={});let{window:a=document.defaultView,v5Compat:l=!1}=s,c=a.history,d=wr.Pop,h=null,p=m();p==null&&(p=0,c.replaceState(il({},c.state,{idx:p}),""));function m(){return(c.state||{idx:null}).idx}function y(){d=wr.Pop;let E=m(),T=E==null?null:E-p;p=E,h&&h({action:d,location:S.location,delta:T})}function b(E,T){d=wr.Push;let R=Td(S.location,E,T);p=m()+1;let N=jg(R,p),A=S.createHref(R);try{c.pushState(N,"",A)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;a.location.assign(A)}l&&h&&h({action:d,location:S.location,delta:1})}function v(E,T){d=wr.Replace;let R=Td(S.location,E,T);p=m();let N=jg(R,p),A=S.createHref(R);c.replaceState(N,"",A),l&&h&&h({action:d,location:S.location,delta:0})}function P(E){let T=a.location.origin!=="null"?a.location.origin:a.location.href,R=typeof E=="string"?E:X0(E);return R=R.replace(/ $/,"%20"),Nt(T,"No window.location.(origin|href) available to create URL for href: "+R),new URL(R,T)}let S={get action(){return d},get location(){return e(a,c)},listen(E){if(h)throw new Error("A history only accepts one active listener");return a.addEventListener(Ag,y),h=E,()=>{a.removeEventListener(Ag,y),h=null}},createHref(E){return t(a,E)},createURL:P,encodeLocation(E){let T=P(E);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:b,replace:v,go(E){return c.go(E)}};return S}var Mg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Mg||(Mg={}));function Tk(e,t,r){return r===void 0&&(r="/"),Rk(e,t,r)}function Rk(e,t,r,s){let a=typeof t=="string"?jl(t):t,l=J0(a.pathname||"/",r);if(l==null)return null;let c=q0(e);kk(c);let d=null;for(let h=0;d==null&&h<c.length;++h){let p=Bk(l);d=Ik(c[h],p)}return d}function q0(e,t,r,s){t===void 0&&(t=[]),r===void 0&&(r=[]),s===void 0&&(s="");let a=(l,c,d)=>{let h={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};h.relativePath.startsWith("/")&&(Nt(h.relativePath.startsWith(s),'Absolute route path "'+h.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),h.relativePath=h.relativePath.slice(s.length));let p=Vo([s,h.relativePath]),m=r.concat(h);l.children&&l.children.length>0&&(Nt(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),q0(l.children,t,m,p)),!(l.path==null&&!l.index)&&t.push({path:p,score:Lk(p,l.index),routesMeta:m})};return e.forEach((l,c)=>{var d;if(l.path===""||!((d=l.path)!=null&&d.includes("?")))a(l,c);else for(let h of Z0(l.path))a(l,c,h)}),t}function Z0(e){let t=e.split("/");if(t.length===0)return[];let[r,...s]=t,a=r.endsWith("?"),l=r.replace(/\?$/,"");if(s.length===0)return a?[l,""]:[l];let c=Z0(s.join("/")),d=[];return d.push(...c.map(h=>h===""?l:[l,h].join("/"))),a&&d.push(...c),d.map(h=>e.startsWith("/")&&h===""?"/":h)}function kk(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:_k(t.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}const Nk=/^:[\w-]+$/,Ak=3,jk=2,Mk=1,Dk=10,Ok=-2,Dg=e=>e==="*";function Lk(e,t){let r=e.split("/"),s=r.length;return r.some(Dg)&&(s+=Ok),t&&(s+=jk),r.filter(a=>!Dg(a)).reduce((a,l)=>a+(Nk.test(l)?Ak:l===""?Mk:Dk),s)}function _k(e,t){return e.length===t.length&&e.slice(0,-1).every((s,a)=>s===t[a])?e[e.length-1]-t[t.length-1]:0}function Ik(e,t,r){let{routesMeta:s}=e,a={},l="/",c=[];for(let d=0;d<s.length;++d){let h=s[d],p=d===s.length-1,m=l==="/"?t:t.slice(l.length)||"/",y=Fk({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},m),b=h.route;if(!y)return null;Object.assign(a,y.params),c.push({params:a,pathname:Vo([l,y.pathname]),pathnameBase:zk(Vo([l,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(l=Vo([l,y.pathnameBase]))}return c}function Fk(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,s]=Vk(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let l=a[0],c=l.replace(/(.)\/+$/,"$1"),d=a.slice(1);return{params:s.reduce((p,m,y)=>{let{paramName:b,isOptional:v}=m;if(b==="*"){let S=d[y]||"";c=l.slice(0,l.length-S.length).replace(/(.)\/+$/,"$1")}const P=d[y];return v&&!P?p[b]=void 0:p[b]=(P||"").replace(/%2F/g,"/"),p},{}),pathname:l,pathnameBase:c,pattern:e}}function Vk(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),G0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let s=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,h)=>(s.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),s]}function Bk(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return G0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function J0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,s=e.charAt(r);return s&&s!=="/"?null:e.slice(r)||"/"}const Vo=e=>e.join("/").replace(/\/\/+/g,"/"),zk=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function Uk(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ex=["post","put","patch","delete"];new Set(ex);const $k=["get",...ex];new Set($k);function al(){return al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},al.apply(this,arguments)}const Wk=w.createContext(null),Hk=w.createContext(null),tx=w.createContext(null),Ml=w.createContext(null),Dl=w.createContext({outlet:null,matches:[],isDataRoute:!1}),nx=w.createContext(null);function Sf(){return w.useContext(Ml)!=null}function rx(){return Sf()||Nt(!1),w.useContext(Ml).location}function Kk(e,t){return Qk(e,t)}function Qk(e,t,r,s){Sf()||Nt(!1);let{navigator:a}=w.useContext(tx),{matches:l}=w.useContext(Dl),c=l[l.length-1],d=c?c.params:{};c&&c.pathname;let h=c?c.pathnameBase:"/";c&&c.route;let p=rx(),m;if(t){var y;let E=typeof t=="string"?jl(t):t;h==="/"||(y=E.pathname)!=null&&y.startsWith(h)||Nt(!1),m=E}else m=p;let b=m.pathname||"/",v=b;if(h!=="/"){let E=h.replace(/^\//,"").split("/");v="/"+b.replace(/^\//,"").split("/").slice(E.length).join("/")}let P=Tk(e,{pathname:v}),S=Zk(P&&P.map(E=>Object.assign({},E,{params:Object.assign({},d,E.params),pathname:Vo([h,a.encodeLocation?a.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?h:Vo([h,a.encodeLocation?a.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),l,r,s);return t&&S?w.createElement(Ml.Provider,{value:{location:al({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:wr.Pop}},S):S}function Yk(){let e=nN(),t=Uk(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),r?w.createElement("pre",{style:a},r):null,null)}const Gk=w.createElement(Yk,null);class Xk extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?w.createElement(Dl.Provider,{value:this.props.routeContext},w.createElement(nx.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qk(e){let{routeContext:t,match:r,children:s}=e,a=w.useContext(Wk);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),w.createElement(Dl.Provider,{value:t},s)}function Zk(e,t,r,s){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),s===void 0&&(s=null),e==null){var l;if(!r)return null;if(r.errors)e=r.matches;else if((l=s)!=null&&l.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let c=e,d=(a=r)==null?void 0:a.errors;if(d!=null){let m=c.findIndex(y=>y.route.id&&d?.[y.route.id]!==void 0);m>=0||Nt(!1),c=c.slice(0,Math.min(c.length,m+1))}let h=!1,p=-1;if(r&&s&&s.v7_partialHydration)for(let m=0;m<c.length;m++){let y=c[m];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(p=m),y.route.id){let{loaderData:b,errors:v}=r,P=y.route.loader&&b[y.route.id]===void 0&&(!v||v[y.route.id]===void 0);if(y.route.lazy||P){h=!0,p>=0?c=c.slice(0,p+1):c=[c[0]];break}}}return c.reduceRight((m,y,b)=>{let v,P=!1,S=null,E=null;r&&(v=d&&y.route.id?d[y.route.id]:void 0,S=y.route.errorElement||Gk,h&&(p<0&&b===0?(rN("route-fallback"),P=!0,E=null):p===b&&(P=!0,E=y.route.hydrateFallbackElement||null)));let T=t.concat(c.slice(0,b+1)),R=()=>{let N;return v?N=S:P?N=E:y.route.Component?N=w.createElement(y.route.Component,null):y.route.element?N=y.route.element:N=m,w.createElement(qk,{match:y,routeContext:{outlet:m,matches:T,isDataRoute:r!=null},children:N})};return r&&(y.route.ErrorBoundary||y.route.errorElement||b===0)?w.createElement(Xk,{location:r.location,revalidation:r.revalidation,component:S,error:v,children:R(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):R()},null)}var ox=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(ox||{});function Jk(e){let t=w.useContext(Hk);return t||Nt(!1),t}function eN(e){let t=w.useContext(Dl);return t||Nt(!1),t}function tN(e){let t=eN(),r=t.matches[t.matches.length-1];return r.route.id||Nt(!1),r.route.id}function nN(){var e;let t=w.useContext(nx),r=Jk(ox.UseRouteError),s=tN();return t!==void 0?t:(e=r.errors)==null?void 0:e[s]}const Og={};function rN(e,t,r){Og[e]||(Og[e]=!0)}function oN(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function Rd(e){Nt(!1)}function sN(e){let{basename:t="/",children:r=null,location:s,navigationType:a=wr.Pop,navigator:l,static:c=!1,future:d}=e;Sf()&&Nt(!1);let h=t.replace(/^\/*/,"/"),p=w.useMemo(()=>({basename:h,navigator:l,static:c,future:al({v7_relativeSplatPath:!1},d)}),[h,d,l,c]);typeof s=="string"&&(s=jl(s));let{pathname:m="/",search:y="",hash:b="",state:v=null,key:P="default"}=s,S=w.useMemo(()=>{let E=J0(m,h);return E==null?null:{location:{pathname:E,search:y,hash:b,state:v,key:P},navigationType:a}},[h,m,y,b,v,P,a]);return S==null?null:w.createElement(tx.Provider,{value:p},w.createElement(Ml.Provider,{children:r,value:S}))}function iN(e){let{children:t,location:r}=e;return Kk(kd(t),r)}new Promise(()=>{});function kd(e,t){t===void 0&&(t=[]);let r=[];return w.Children.forEach(e,(s,a)=>{if(!w.isValidElement(s))return;let l=[...t,a];if(s.type===w.Fragment){r.push.apply(r,kd(s.props.children,l));return}s.type!==Rd&&Nt(!1),!s.props.index||!s.props.children||Nt(!1);let c={id:s.props.id||l.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(c.children=kd(s.props.children,l)),r.push(c)}),r}const aN="6";try{window.__reactRouterVersion=aN}catch{}const lN="startTransition",Lg=wl[lN];function uN(e){let{basename:t,children:r,future:s,window:a}=e,l=w.useRef();l.current==null&&(l.current=Ck({window:a,v5Compat:!0}));let c=l.current,[d,h]=w.useState({action:c.action,location:c.location}),{v7_startTransition:p}=s||{},m=w.useCallback(y=>{p&&Lg?Lg(()=>h(y)):h(y)},[h,p]);return w.useLayoutEffect(()=>c.listen(m),[c,m]),w.useEffect(()=>oN(s),[s]),w.createElement(sN,{basename:t,children:r,location:d.location,navigationType:d.action,navigator:c,future:s})}var _g;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_g||(_g={}));var Ig;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ig||(Ig={}));async function Xr(e,t={}){const r=localStorage.getItem("STUDIO_API_KEY")||"",s={...t.headers,"x-api-key":r,"Content-Type":"application/json"},a=await fetch(e,{...t,headers:s});return a.status===401&&console.error("Unauthorized: Invalid API Key"),a}function cN({isOpen:e,onClose:t,selectedTable:r,onSelectTable:s}){const[a,l]=w.useState(!0),{data:c=[],isLoading:d}=Sk({queryKey:["tables"],queryFn:async()=>{const h=await Xr("/api/tables");if(!h.ok)throw new Error("Failed to fetch tables");return h.json()}});return x.jsxs(x.Fragment,{children:[e&&x.jsx("div",{className:"fixed inset-0 bg-black/50 lg:hidden z-40",onClick:t}),x.jsxs("aside",{className:xe("fixed lg:static inset-y-0 left-0 z-50 w-64 border-r border-sidebar-border bg-sidebar-background transition-transform duration-300 ease-in-out overflow-hidden flex flex-col",!e&&"-translate-x-full lg:translate-x-0"),children:[x.jsx("div",{className:"p-6 border-b border-sidebar-border",children:x.jsx("div",{className:"flex items-center justify-between mb-4",children:x.jsx("h2",{className:"text-sm font-semibold text-sidebar-foreground",children:"Database"})})}),x.jsxs("nav",{className:"flex-1 overflow-auto p-4 space-y-1",children:[x.jsxs("button",{onClick:()=>{l(!a)},className:xe("w-full flex items-center gap-3 px-3 py-2.5 rounded-md text-sm font-medium transition-colors duration-200","bg-sidebar-primary/20 text-sidebar-primary"),children:[x.jsx(af,{className:"w-4 h-4 flex-shrink-0"}),x.jsx("span",{className:"flex-1 text-left truncate",children:"Database"}),x.jsx(oE,{className:xe("w-4 h-4 flex-shrink-0 transition-transform duration-200",a?"rotate-0":"-rotate-90")})]}),a&&x.jsxs("div",{className:"ml-2 mt-1 space-y-1",children:[d&&x.jsx("div",{className:"px-3 py-2 text-sm text-muted-foreground",children:"Loading tables..."}),c.map(h=>x.jsxs("button",{onClick:()=>{s(h),t()},className:xe("w-full flex items-center gap-3 px-3 py-2 rounded-md text-sm transition-colors duration-200 text-sidebar-foreground hover:bg-sidebar-accent",r===h?"bg-sidebar-primary/20 text-sidebar-primary":""),children:[x.jsx(el,{className:"w-4 h-4 flex-shrink-0"}),x.jsx("span",{className:"flex-1 text-left truncate",children:h})]},h)),!d&&c.length===0&&x.jsx("div",{className:"px-3 py-2 text-sm text-muted-foreground",children:"No tables found"})]})]})]})]})}function dN({children:e,selectedTable:t,onSelectTable:r,view:s,onViewChange:a,dbName:l,schemaColumns:c,onSchemaColumnsChange:d}){const[h,p]=w.useState(!0),m=s==="data",y=typeof window<"u"&&new URLSearchParams(window.location.search).get("export")==="true";return x.jsxs("div",{className:xe("flex bg-background",y?"h-auto overflow-visible":"h-screen overflow-hidden"),children:[m&&x.jsx(cN,{isOpen:h,onClose:()=>p(!1),selectedTable:t,onSelectTable:r}),x.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[x.jsxs("header",{className:" flex items-center justify-between px-6 py-4 border-b border-border bg-background",children:[x.jsxs("div",{className:"flex items-center gap-4",children:[m&&x.jsx("button",{onClick:()=>p(!h),className:"lg:hidden p-2 hover:bg-secondary rounded-md transition-colors",children:h?x.jsx(lf,{className:"w-5 h-5"}):x.jsx(CE,{className:"w-5 h-5"})}),x.jsxs("h1",{className:"text-xl font-semibold flex items-center gap-2",children:[x.jsx("span",{className:"w-2 h-2 rounded-full bg-primary"}),l?x.jsxs("span",{className:"flex items-center gap-2",children:[x.jsx("span",{className:"text-muted-foreground font-normal",children:"Database:"}),l]}):"Database Studio"]})]}),x.jsxs("div",{className:"print:hidden flex items-center gap-4",children:[s==="schema"&&x.jsxs("div",{className:"flex items-center gap-2 px-2 py-1 bg-secondary rounded-md border border-border",children:[x.jsx(pE,{className:"w-4 h-4 text-muted-foreground"}),x.jsx("div",{className:"flex items-center gap-1",children:[1,2,3,4].map(b=>x.jsx("button",{onClick:()=>d(b),className:xe("w-7 h-7 flex items-center justify-center text-xs font-bold rounded transition-all",c===b?"bg-primary text-primary-foreground shadow-sm":"text-muted-foreground hover:bg-background hover:text-foreground"),children:b},b))})]}),x.jsxs("div",{className:" flex items-center rounded-md p-1 bg-secondary",children:[x.jsxs("button",{onClick:()=>a("data"),className:xe("flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md transition-colors",s==="data"?"bg-primary text-primary-foreground shadow-sm":"text-muted-foreground hover:bg-secondary/70"),children:[x.jsx(DE,{className:"w-4 h-4"}),"Data View"]}),x.jsxs("button",{onClick:()=>a("schema"),className:xe("flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md transition-colors",s==="schema"?"bg-primary text-primary-foreground shadow-sm":"text-muted-foreground hover:bg-secondary/70"),children:[x.jsx(bE,{className:"w-4 h-4"}),"Schema View"]}),x.jsxs("button",{onClick:()=>a("canvas"),className:xe("flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md transition-colors",s==="canvas"?"bg-primary text-primary-foreground shadow-sm":"text-muted-foreground hover:bg-secondary/70"),children:[x.jsx(RE,{className:"w-4 h-4"}),"Canvas View"]})]})]})]}),x.jsx("div",{className:"flex-1 overflow-auto",children:e})]})]})}const Na=10;function fN({selectedTable:e}){const[t,r]=w.useState(""),[s,a]=w.useState(null),[l,c]=w.useState(1),[d,h]=w.useState(!1),[p,m]=w.useState(null);if(w.useEffect(()=>{r(""),c(1)},[e]),w.useEffect(()=>{if(!e)return;async function v(){try{h(!0),m(null);const P=await Xr(`/api/table/${e}?page=${l}&limit=${Na}&search=${t}`);if(!P.ok)throw new Error("Failed to fetch table");const S=await P.json();console.log("data+++",S),a(S)}catch(P){m(P.message)}finally{h(!1)}}v()},[e,l,t]),!e)return x.jsx(pN,{title:"No Table Selected",description:"Select a table from the sidebar to view its content and manage records."});if(d)return x.jsx(Fg,{message:"Loading table..."});if(p)return x.jsx(Fg,{message:p});if(!s)return null;const y=Math.max(1,Math.ceil(s.total/Na)),b=(l-1)*Na;return x.jsxs("div",{className:"flex flex-col h-full",children:[x.jsx("div",{className:"px-8 py-6 border-b border-border bg-background",children:x.jsxs("div",{className:"mb-4",children:[x.jsx("h2",{className:"text-2xl font-bold text-foreground",children:s.name}),x.jsxs("p",{className:"text-sm text-muted-foreground mt-1",children:[s.total," rows"]})]})}),x.jsx("div",{className:"flex-1 overflow-auto",children:x.jsxs("table",{className:"w-full text-sm",children:[x.jsx("thead",{className:"sticky top-0 bg-secondary border-b border-border",children:x.jsxs("tr",{children:[s.columns.map(v=>x.jsxs("th",{className:"px-6 py-3 text-left font-semibold whitespace-nowrap",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("span",{children:v.name}),v.key==="PRI"&&x.jsx("span",{className:"inline-flex px-2 py-0.5 rounded text-xs font-mono bg-primary/10 text-primary",children:"PK"}),v.key==="UNI"&&x.jsx("span",{className:"inline-flex px-2 py-0.5 rounded text-xs font-mono bg-orange/10 text-orange",children:"U"})]}),x.jsx("p",{className:"text-xs text-muted-foreground font-normal mt-1",children:v.type})]},v.name)),x.jsx("th",{className:"px-6 py-3 w-12"})]})}),x.jsx("tbody",{className:"divide-y divide-border",children:s.rows.length===0?x.jsx("tr",{children:x.jsx("td",{colSpan:s.columns.length+1,className:"px-6 py-12 text-center text-muted-foreground",children:"No data found"})}):s.rows.map((v,P)=>x.jsx("tr",{className:"hover:bg-secondary/50 transition-colors",children:s.columns.map(S=>x.jsx("td",{className:"px-6 py-4 font-mono text-xs",children:x.jsx(hN,{value:v[S.name],type:S.type})},S.name))},v.id??P))})]})}),s.total>0&&x.jsxs("div",{className:"flex items-center justify-between px-8 py-4 border-t border-border bg-background",children:[x.jsxs("div",{className:"text-sm text-muted-foreground",children:["Showing"," ",x.jsx("span",{className:"font-semibold text-foreground",children:b+1})," ","to"," ",x.jsx("span",{className:"font-semibold text-foreground",children:Math.min(b+Na,s.total)})," ","of"," ",x.jsx("span",{className:"font-semibold text-foreground",children:s.total})]}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(Aa,{disabled:l===1,onClick:()=>c(1),children:x.jsx(cE,{className:"w-4 h-4"})}),x.jsx(Aa,{disabled:l===1,onClick:()=>c(v=>v-1),children:x.jsx(iE,{className:"w-4 h-4"})}),x.jsxs("span",{className:"text-sm text-muted-foreground",children:[l," of ",y]}),x.jsx(Aa,{disabled:l===y,onClick:()=>c(v=>v+1),children:x.jsx(lE,{className:"w-4 h-4"})}),x.jsx(Aa,{disabled:l===y,onClick:()=>c(y),children:x.jsx(fE,{className:"w-4 h-4"})})]})]})]})}function hN({value:e,type:t}){return e==null?x.jsx("span",{className:"text-muted-foreground italic",children:"null"}):t==="BOOLEAN"?x.jsx("span",{className:xe("inline-flex px-2 py-1 rounded text-xs font-semibold",e?"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400":"bg-gray-100 text-gray-700 dark:bg-gray-900/30 dark:text-gray-400"),children:String(e)}):t==="UUID"||t==="ObjectId"?x.jsxs("span",{title:String(e),className:"truncate block max-w-xs text-muted-foreground",children:[String(e).slice(0,8),"..."]}):t==="TIMESTAMP"||t==="DATE"?x.jsx("span",{className:"text-muted-foreground",children:new Date(e).toLocaleString()}):x.jsx("span",{children:String(e)})}function Aa({children:e,disabled:t,onClick:r}){return x.jsx("button",{onClick:r,disabled:t,className:"p-2 hover:bg-secondary rounded-md transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:e})}function Fg({message:e}){return x.jsx("div",{className:"flex items-center justify-center h-full",children:x.jsx("p",{className:"text-muted-foreground",children:e})})}function pN({title:e,description:t,showActions:r=!1}){return x.jsx("div",{className:"flex items-center justify-center h-full",children:x.jsxs("div",{className:"text-center max-w-md",children:[x.jsx("div",{className:"w-20 h-20 rounded-lg bg-card border border-border mx-auto mb-6"}),x.jsx("h2",{className:"text-xl font-semibold mb-2",children:e}),x.jsx("p",{className:"text-muted-foreground mb-6",children:t}),r&&x.jsxs("div",{className:"flex gap-3 justify-center",children:[x.jsx("button",{className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 text-sm font-medium",children:"Create Table"}),x.jsx("button",{className:"px-4 py-2 border border-input hover:bg-secondary rounded-md text-sm font-medium",children:"Documentation"})]})]})})}const Vg=[{bg:"bg-blue-500/5",border:"border-blue-500/20",icon:"text-blue-500",headerBg:"bg-blue-500/10"},{bg:"bg-purple-500/5",border:"border-purple-500/20",icon:"text-purple-500",headerBg:"bg-purple-500/10"},{bg:"bg-emerald-500/5",border:"border-emerald-500/20",icon:"text-emerald-500",headerBg:"bg-emerald-500/10"},{bg:"bg-orange-500/5",border:"border-orange-500/20",icon:"text-orange-500",headerBg:"bg-orange-500/10"},{bg:"bg-pink-500/5",border:"border-pink-500/20",icon:"text-pink-500",headerBg:"bg-pink-500/10"},{bg:"bg-indigo-500/5",border:"border-indigo-500/20",icon:"text-indigo-500",headerBg:"bg-indigo-500/10"},{bg:"bg-rose-500/5",border:"border-rose-500/20",icon:"text-rose-500",headerBg:"bg-rose-500/10"},{bg:"bg-amber-500/5",border:"border-amber-500/20",icon:"text-amber-500",headerBg:"bg-amber-500/10"}];function Ic({message:e}){return x.jsx("div",{className:"flex items-center justify-center h-full",children:x.jsx("p",{className:"text-muted-foreground",children:e})})}function mN({columns:e=3}){const[t,r]=w.useState([]),[s,a]=w.useState(!0),[l,c]=w.useState(null),d=w.useRef(null),h=new URLSearchParams(window.location.search).get("export")==="true";w.useEffect(()=>{async function b(){try{a(!0),c(null);const v=await Xr("/api/tables");if(!v.ok)throw new Error("Failed to fetch table names");const P=await v.json(),S=await Promise.all(P.map(async E=>{const T=await Xr(`/api/table/${E}/schema`);if(!T.ok)throw new Error(`Failed to fetch schema for ${E}`);return T.json()}));r(S)}catch(v){c(v.message)}finally{a(!1)}}b()},[]);const p=async()=>{window.open("/api/export-pdf","_blank")};if(s)return x.jsx(Ic,{message:"Loading schemas..."});if(l)return x.jsx(Ic,{message:l});if(t.length===0)return x.jsx(Ic,{message:"No table schemas found. Create a table to get started."});const y={1:"grid-cols-1",2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4"}[h?1:e]||"grid-cols-1 md:grid-cols-2 lg:grid-cols-3";return x.jsxs("div",{className:"flex flex-col h-full",children:[!h&&x.jsx("div",{className:"px-8 py-6 border-b border-border bg-background flex justify-end",children:x.jsxs("button",{onClick:p,className:"flex items-center gap-2 px-4 py-2 border border-input hover:bg-secondary rounded-md text-sm font-medium",children:[x.jsx(yE,{className:"w-4 h-4"}),"Export to PDF"]})}),x.jsx("div",{ref:d,id:"schema-grid",className:xe("p-8 grid gap-6",y),children:t.map((b,v)=>{const P=Vg[v%Vg.length];return x.jsxs("div",{className:xe("border rounded-xl shadow-sm overflow-hidden transition-all hover:shadow-md hover:-translate-y-1",P.bg,P.border),children:[x.jsxs("div",{className:xe("p-5 border-b flex items-center gap-3",P.headerBg,P.border),children:[x.jsx("div",{className:xe("p-2 rounded-lg bg-background/50 backdrop-blur-sm shadow-sm",P.icon),children:x.jsx(el,{className:"w-5 h-5"})}),x.jsx("h3",{className:"text-lg font-bold text-foreground tracking-tight",children:b.name})]}),x.jsxs("div",{className:"p-5",children:[x.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[x.jsx("div",{className:"h-px flex-1 bg-border/50"}),x.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-muted-foreground/50",children:"Columns"}),x.jsx("div",{className:"h-px flex-1 bg-border/50"})]}),x.jsx("ul",{className:"space-y-3",children:b.columns.map(S=>x.jsxs("li",{className:"flex items-center justify-between group",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("div",{className:xe("w-1.5 h-1.5 rounded-full",S.key==="PRI"?"bg-blue-500":S.key==="UNI"?"bg-yellow-500":"bg-muted-foreground/30")}),x.jsx("span",{className:"font-mono text-sm font-medium text-foreground group-hover:text-primary transition-colors whitespace-nowrap overflow-hidden text-ellipsis",title:S.name,children:S.name})]}),x.jsxs("div",{className:"flex items-center gap-2",children:[S.isPrimary&&x.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] font-bold bg-yellow-500/10 text-yellow-600 border border-yellow-500/20 uppercase",children:"PK"}),x.jsx("span",{className:"px-2 py-0.5 rounded-md text-[10px] font-mono bg-background/50 border border-border/50 text-muted-foreground uppercase",children:S.type})]})]},S.name))})]})]},b.name)})})]})}const Cf=w.createContext({});function Ef(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const gN=typeof window<"u",sx=gN?w.useLayoutEffect:w.useEffect,Ol=w.createContext(null);function Pf(e,t){e.indexOf(t)===-1&&e.push(t)}function ll(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const An=(e,t,r)=>r>t?t:r<e?e:r;let Tf=()=>{};const Kn={},ix=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ax(e){return typeof e=="object"&&e!==null}const lx=e=>/^0[^.\s]+$/u.test(e);function ux(e){let t;return()=>(t===void 0&&(t=e()),t)}const Yt=e=>e,yN=(e,t)=>r=>t(e(r)),si=(...e)=>e.reduce(yN),Zs=(e,t,r)=>{const s=t-e;return s===0?1:(r-e)/s};class Rf{constructor(){this.subscriptions=[]}add(t){return Pf(this.subscriptions,t),()=>ll(this.subscriptions,t)}notify(t,r,s){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,r,s);else for(let l=0;l<a;l++){const c=this.subscriptions[l];c&&c(t,r,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _t=e=>e*1e3,Qt=e=>e/1e3;function cx(e,t){return t?e*(1e3/t):0}const dx=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,vN=1e-7,xN=12;function wN(e,t,r,s,a){let l,c,d=0;do c=t+(r-t)/2,l=dx(c,s,a)-e,l>0?r=c:t=c;while(Math.abs(l)>vN&&++d<xN);return c}function ii(e,t,r,s){if(e===t&&r===s)return Yt;const a=l=>wN(l,0,1,e,r);return l=>l===0||l===1?l:dx(a(l),t,s)}const fx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,hx=e=>t=>1-e(1-t),px=ii(.33,1.53,.69,.99),kf=hx(px),mx=fx(kf),gx=e=>(e*=2)<1?.5*kf(e):.5*(2-Math.pow(2,-10*(e-1))),Nf=e=>1-Math.sin(Math.acos(e)),yx=hx(Nf),vx=fx(Nf),bN=ii(.42,0,1,1),SN=ii(0,0,.58,1),xx=ii(.42,0,.58,1),CN=e=>Array.isArray(e)&&typeof e[0]!="number",wx=e=>Array.isArray(e)&&typeof e[0]=="number",EN={linear:Yt,easeIn:bN,easeInOut:xx,easeOut:SN,circIn:Nf,circInOut:vx,circOut:yx,backIn:kf,backInOut:mx,backOut:px,anticipate:gx},PN=e=>typeof e=="string",Bg=e=>{if(wx(e)){Tf(e.length===4);const[t,r,s,a]=e;return ii(t,r,s,a)}else if(PN(e))return EN[e];return e},ja=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function TN(e,t){let r=new Set,s=new Set,a=!1,l=!1;const c=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function h(m){c.has(m)&&(p.schedule(m),e()),m(d)}const p={schedule:(m,y=!1,b=!1)=>{const P=b&&a?r:s;return y&&c.add(m),P.has(m)||P.add(m),m},cancel:m=>{s.delete(m),c.delete(m)},process:m=>{if(d=m,a){l=!0;return}a=!0,[r,s]=[s,r],r.forEach(h),r.clear(),a=!1,l&&(l=!1,p.process(m))}};return p}const RN=40;function bx(e,t){let r=!1,s=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>r=!0,c=ja.reduce((N,A)=>(N[A]=TN(l),N),{}),{setup:d,read:h,resolveKeyframes:p,preUpdate:m,update:y,preRender:b,render:v,postRender:P}=c,S=()=>{const N=Kn.useManualTiming?a.timestamp:performance.now();r=!1,Kn.useManualTiming||(a.delta=s?1e3/60:Math.max(Math.min(N-a.timestamp,RN),1)),a.timestamp=N,a.isProcessing=!0,d.process(a),h.process(a),p.process(a),m.process(a),y.process(a),b.process(a),v.process(a),P.process(a),a.isProcessing=!1,r&&t&&(s=!1,e(S))},E=()=>{r=!0,s=!0,a.isProcessing||e(S)};return{schedule:ja.reduce((N,A)=>{const O=c[A];return N[A]=(F,$=!1,z=!1)=>(r||E(),O.schedule(F,$,z)),N},{}),cancel:N=>{for(let A=0;A<ja.length;A++)c[ja[A]].cancel(N)},state:a,steps:c}}const{schedule:De,cancel:Pr,state:st,steps:Fc}=bx(typeof requestAnimationFrame<"u"?requestAnimationFrame:Yt,!0);let $a;function kN(){$a=void 0}const yt={now:()=>($a===void 0&&yt.set(st.isProcessing||Kn.useManualTiming?st.timestamp:performance.now()),$a),set:e=>{$a=e,queueMicrotask(kN)}},Sx=e=>t=>typeof t=="string"&&t.startsWith(e),Cx=Sx("--"),NN=Sx("var(--"),Af=e=>NN(e)?AN.test(e.split("/*")[0].trim()):!1,AN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function zg(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Xo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Js={...Xo,transform:e=>An(0,1,e)},Ma={...Xo,default:1},Hs=e=>Math.round(e*1e5)/1e5,jf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function jN(e){return e==null}const MN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Mf=(e,t)=>r=>!!(typeof r=="string"&&MN.test(r)&&r.startsWith(e)||t&&!jN(r)&&Object.prototype.hasOwnProperty.call(r,t)),Ex=(e,t,r)=>s=>{if(typeof s!="string")return s;const[a,l,c,d]=s.match(jf);return{[e]:parseFloat(a),[t]:parseFloat(l),[r]:parseFloat(c),alpha:d!==void 0?parseFloat(d):1}},DN=e=>An(0,255,e),Vc={...Xo,transform:e=>Math.round(DN(e))},Hr={test:Mf("rgb","red"),parse:Ex("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:s=1})=>"rgba("+Vc.transform(e)+", "+Vc.transform(t)+", "+Vc.transform(r)+", "+Hs(Js.transform(s))+")"};function ON(e){let t="",r="",s="",a="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),s=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),s=e.substring(3,4),a=e.substring(4,5),t+=t,r+=r,s+=s,a+=a),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(s,16),alpha:a?parseInt(a,16)/255:1}}const Nd={test:Mf("#"),parse:ON,transform:Hr.transform},ai=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),vr=ai("deg"),kn=ai("%"),ae=ai("px"),LN=ai("vh"),_N=ai("vw"),Ug={...kn,parse:e=>kn.parse(e)/100,transform:e=>kn.transform(e*100)},Mo={test:Mf("hsl","hue"),parse:Ex("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:s=1})=>"hsla("+Math.round(e)+", "+kn.transform(Hs(t))+", "+kn.transform(Hs(r))+", "+Hs(Js.transform(s))+")"},Ge={test:e=>Hr.test(e)||Nd.test(e)||Mo.test(e),parse:e=>Hr.test(e)?Hr.parse(e):Mo.test(e)?Mo.parse(e):Nd.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Hr.transform(e):Mo.transform(e),getAnimatableNone:e=>{const t=Ge.parse(e);return t.alpha=0,Ge.transform(t)}},IN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function FN(e){return isNaN(e)&&typeof e=="string"&&(e.match(jf)?.length||0)+(e.match(IN)?.length||0)>0}const Px="number",Tx="color",VN="var",BN="var(",$g="${}",zN=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Wo(e){const t=e.toString(),r=[],s={color:[],number:[],var:[]},a=[];let l=0;const d=t.replace(zN,h=>(Ge.test(h)?(s.color.push(l),a.push(Tx),r.push(Ge.parse(h))):h.startsWith(BN)?(s.var.push(l),a.push(VN),r.push(h)):(s.number.push(l),a.push(Px),r.push(parseFloat(h))),++l,$g)).split($g);return{values:r,split:d,indexes:s,types:a}}function UN(e){return Wo(e).values}function Rx({split:e,types:t}){const r=e.length;return s=>{let a="";for(let l=0;l<r;l++)if(a+=e[l],s[l]!==void 0){const c=t[l];c===Px?a+=Hs(s[l]):c===Tx?a+=Ge.transform(s[l]):a+=s[l]}return a}}function $N(e){return Rx(Wo(e))}const WN=e=>typeof e=="number"?0:Ge.test(e)?Ge.getAnimatableNone(e):e,HN=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:WN(e);function KN(e){const t=Wo(e);return Rx(t)(t.values.map((s,a)=>HN(s,t.split[a])))}const un={test:FN,parse:UN,createTransformer:$N,getAnimatableNone:KN};function Bc(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function QN({hue:e,saturation:t,lightness:r,alpha:s}){e/=360,t/=100,r/=100;let a=0,l=0,c=0;if(!t)a=l=c=r;else{const d=r<.5?r*(1+t):r+t-r*t,h=2*r-d;a=Bc(h,d,e+1/3),l=Bc(h,d,e),c=Bc(h,d,e-1/3)}return{red:Math.round(a*255),green:Math.round(l*255),blue:Math.round(c*255),alpha:s}}function ul(e,t){return r=>r>0?t:e}const ze=(e,t,r)=>e+(t-e)*r,zc=(e,t,r)=>{const s=e*e,a=r*(t*t-s)+s;return a<0?0:Math.sqrt(a)},YN=[Nd,Hr,Mo],GN=e=>YN.find(t=>t.test(e));function Wg(e){const t=GN(e);if(!t)return!1;let r=t.parse(e);return t===Mo&&(r=QN(r)),r}const Hg=(e,t)=>{const r=Wg(e),s=Wg(t);if(!r||!s)return ul(e,t);const a={...r};return l=>(a.red=zc(r.red,s.red,l),a.green=zc(r.green,s.green,l),a.blue=zc(r.blue,s.blue,l),a.alpha=ze(r.alpha,s.alpha,l),Hr.transform(a))},Ad=new Set(["none","hidden"]);function XN(e,t){return Ad.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function qN(e,t){return r=>ze(e,t,r)}function Df(e){return typeof e=="number"?qN:typeof e=="string"?Af(e)?ul:Ge.test(e)?Hg:eA:Array.isArray(e)?kx:typeof e=="object"?Ge.test(e)?Hg:ZN:ul}function kx(e,t){const r=[...e],s=r.length,a=e.map((l,c)=>Df(l)(l,t[c]));return l=>{for(let c=0;c<s;c++)r[c]=a[c](l);return r}}function ZN(e,t){const r={...e,...t},s={};for(const a in r)e[a]!==void 0&&t[a]!==void 0&&(s[a]=Df(e[a])(e[a],t[a]));return a=>{for(const l in s)r[l]=s[l](a);return r}}function JN(e,t){const r=[],s={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const l=t.types[a],c=e.indexes[l][s[l]],d=e.values[c]??0;r[a]=d,s[l]++}return r}const eA=(e,t)=>{const r=un.createTransformer(t),s=Wo(e),a=Wo(t);return s.indexes.var.length===a.indexes.var.length&&s.indexes.color.length===a.indexes.color.length&&s.indexes.number.length>=a.indexes.number.length?Ad.has(e)&&!a.values.length||Ad.has(t)&&!s.values.length?XN(e,t):si(kx(JN(s,a),a.values),r):ul(e,t)};function Nx(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?ze(e,t,r):Df(e)(e,t)}const tA=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>De.update(t,r),stop:()=>Pr(t),now:()=>st.isProcessing?st.timestamp:yt.now()}},Ax=(e,t,r=10)=>{let s="";const a=Math.max(Math.round(t/r),2);for(let l=0;l<a;l++)s+=Math.round(e(l/(a-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},cl=2e4;function Of(e){let t=0;const r=50;let s=e.next(t);for(;!s.done&&t<cl;)t+=r,s=e.next(t);return t>=cl?1/0:t}function nA(e,t=100,r){const s=r({...e,keyframes:[0,t]}),a=Math.min(Of(s),cl);return{type:"keyframes",ease:l=>s.next(a*l).value/t,duration:Qt(a)}}const We={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function jd(e,t){return e*Math.sqrt(1-t*t)}const rA=12;function oA(e,t,r){let s=r;for(let a=1;a<rA;a++)s=s-e(s)/t(s);return s}const Uc=.001;function sA({duration:e=We.duration,bounce:t=We.bounce,velocity:r=We.velocity,mass:s=We.mass}){let a,l,c=1-t;c=An(We.minDamping,We.maxDamping,c),e=An(We.minDuration,We.maxDuration,Qt(e)),c<1?(a=p=>{const m=p*c,y=m*e,b=m-r,v=jd(p,c),P=Math.exp(-y);return Uc-b/v*P},l=p=>{const y=p*c*e,b=y*r+r,v=Math.pow(c,2)*Math.pow(p,2)*e,P=Math.exp(-y),S=jd(Math.pow(p,2),c);return(-a(p)+Uc>0?-1:1)*((b-v)*P)/S}):(a=p=>{const m=Math.exp(-p*e),y=(p-r)*e+1;return-Uc+m*y},l=p=>{const m=Math.exp(-p*e),y=(r-p)*(e*e);return m*y});const d=5/e,h=oA(a,l,d);if(e=_t(e),isNaN(h))return{stiffness:We.stiffness,damping:We.damping,duration:e};{const p=Math.pow(h,2)*s;return{stiffness:p,damping:c*2*Math.sqrt(s*p),duration:e}}}const iA=["duration","bounce"],aA=["stiffness","damping","mass"];function Kg(e,t){return t.some(r=>e[r]!==void 0)}function lA(e){let t={velocity:We.velocity,stiffness:We.stiffness,damping:We.damping,mass:We.mass,isResolvedFromDuration:!1,...e};if(!Kg(e,aA)&&Kg(e,iA))if(t.velocity=0,e.visualDuration){const r=e.visualDuration,s=2*Math.PI/(r*1.2),a=s*s,l=2*An(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:We.mass,stiffness:a,damping:l}}else{const r=sA({...e,velocity:0});t={...t,...r,mass:We.mass},t.isResolvedFromDuration=!0}return t}function dl(e=We.visualDuration,t=We.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:a}=r;const l=r.keyframes[0],c=r.keyframes[r.keyframes.length-1],d={done:!1,value:l},{stiffness:h,damping:p,mass:m,duration:y,velocity:b,isResolvedFromDuration:v}=lA({...r,velocity:-Qt(r.velocity||0)}),P=b||0,S=p/(2*Math.sqrt(h*m)),E=c-l,T=Qt(Math.sqrt(h/m)),R=Math.abs(E)<5;s||(s=R?We.restSpeed.granular:We.restSpeed.default),a||(a=R?We.restDelta.granular:We.restDelta.default);let N,A,O,F,$,z;if(S<1)O=jd(T,S),F=(P+S*T*E)/O,N=W=>{const ee=Math.exp(-S*T*W);return c-ee*(F*Math.sin(O*W)+E*Math.cos(O*W))},$=S*T*F+E*O,z=S*T*E-F*O,A=W=>Math.exp(-S*T*W)*($*Math.sin(O*W)+z*Math.cos(O*W));else if(S===1){N=ee=>c-Math.exp(-T*ee)*(E+(P+T*E)*ee);const W=P+T*E;A=ee=>Math.exp(-T*ee)*(T*W*ee-P)}else{const W=T*Math.sqrt(S*S-1);N=q=>{const he=Math.exp(-S*T*q),re=Math.min(W*q,300);return c-he*((P+S*T*E)*Math.sinh(re)+W*E*Math.cosh(re))/W};const ee=(P+S*T*E)/W,X=S*T*ee-E*W,de=S*T*E-ee*W;A=q=>{const he=Math.exp(-S*T*q),re=Math.min(W*q,300);return he*(X*Math.sinh(re)+de*Math.cosh(re))}}const H={calculatedDuration:v&&y||null,velocity:W=>_t(A(W)),next:W=>{if(!v&&S<1){const X=Math.exp(-S*T*W),de=Math.sin(O*W),q=Math.cos(O*W),he=c-X*(F*de+E*q),re=_t(X*($*de+z*q));return d.done=Math.abs(re)<=s&&Math.abs(c-he)<=a,d.value=d.done?c:he,d}const ee=N(W);if(v)d.done=W>=y;else{const X=_t(A(W));d.done=Math.abs(X)<=s&&Math.abs(c-ee)<=a}return d.value=d.done?c:ee,d},toString:()=>{const W=Math.min(Of(H),cl),ee=Ax(X=>H.next(W*X).value,W,30);return W+"ms "+ee},toTransition:()=>{}};return H}dl.applyToOptions=e=>{const t=nA(e,100,dl);return e.ease=t.ease,e.duration=_t(t.duration),e.type="keyframes",e};const uA=5;function jx(e,t,r){const s=Math.max(t-uA,0);return cx(r-e(s),t-s)}function Md({keyframes:e,velocity:t=0,power:r=.8,timeConstant:s=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:c,min:d,max:h,restDelta:p=.5,restSpeed:m}){const y=e[0],b={done:!1,value:y},v=z=>d!==void 0&&z<d||h!==void 0&&z>h,P=z=>d===void 0?h:h===void 0||Math.abs(d-z)<Math.abs(h-z)?d:h;let S=r*t;const E=y+S,T=c===void 0?E:c(E);T!==E&&(S=T-y);const R=z=>-S*Math.exp(-z/s),N=z=>T+R(z),A=z=>{const H=R(z),W=N(z);b.done=Math.abs(H)<=p,b.value=b.done?T:W};let O,F;const $=z=>{v(b.value)&&(O=z,F=dl({keyframes:[b.value,P(b.value)],velocity:jx(N,z,b.value),damping:a,stiffness:l,restDelta:p,restSpeed:m}))};return $(0),{calculatedDuration:null,next:z=>{let H=!1;return!F&&O===void 0&&(H=!0,A(z),$(z)),O!==void 0&&z>=O?F.next(z-O):(!H&&A(z),b)}}}function cA(e,t,r){const s=[],a=r||Kn.mix||Nx,l=e.length-1;for(let c=0;c<l;c++){let d=a(e[c],e[c+1]);if(t){const h=Array.isArray(t)?t[c]||Yt:t;d=si(h,d)}s.push(d)}return s}function dA(e,t,{clamp:r=!0,ease:s,mixer:a}={}){const l=e.length;if(Tf(l===t.length),l===1)return()=>t[0];if(l===2&&t[0]===t[1])return()=>t[1];const c=e[0]===e[1];e[0]>e[l-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=cA(t,s,a),h=d.length,p=m=>{if(c&&m<e[0])return t[0];let y=0;if(h>1)for(;y<e.length-2&&!(m<e[y+1]);y++);const b=Zs(e[y],e[y+1],m);return d[y](b)};return r?m=>p(An(e[0],e[l-1],m)):p}function fA(e,t){const r=e[e.length-1];for(let s=1;s<=t;s++){const a=Zs(0,t,s);e.push(ze(r,1,a))}}function hA(e){const t=[0];return fA(t,e.length-1),t}function pA(e,t){return e.map(r=>r*t)}function mA(e,t){return e.map(()=>t||xx).splice(0,e.length-1)}function Ks({duration:e=300,keyframes:t,times:r,ease:s="easeInOut"}){const a=CN(s)?s.map(Bg):Bg(s),l={done:!1,value:t[0]},c=pA(r&&r.length===t.length?r:hA(t),e),d=dA(c,t,{ease:Array.isArray(a)?a:mA(t,a)});return{calculatedDuration:e,next:h=>(l.value=d(h),l.done=h>=e,l)}}const gA=e=>e!==null;function Lf(e,{repeat:t,repeatType:r="loop"},s,a=1){const l=e.filter(gA),d=a<0||t&&r!=="loop"&&t%2===1?0:l.length-1;return!d||s===void 0?l[d]:s}const yA={decay:Md,inertia:Md,tween:Ks,keyframes:Ks,spring:dl};function Mx(e){typeof e.type=="string"&&(e.type=yA[e.type])}class _f{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const vA=e=>e/100;class If extends _f{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==yt.now()&&this.tick(yt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Mx(t);const{type:r=Ks,repeat:s=0,repeatDelay:a=0,repeatType:l,velocity:c=0}=t;let{keyframes:d}=t;const h=r||Ks;h!==Ks&&typeof d[0]!="number"&&(this.mixKeyframes=si(vA,Nx(d[0],d[1])),d=[0,100]);const p=h({...t,keyframes:d});l==="mirror"&&(this.mirroredGenerator=h({...t,keyframes:[...d].reverse(),velocity:-c})),p.calculatedDuration===null&&(p.calculatedDuration=Of(p));const{calculatedDuration:m}=p;this.calculatedDuration=m,this.resolvedDuration=m+a,this.totalDuration=this.resolvedDuration*(s+1)-a,this.generator=p}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:s,totalDuration:a,mixKeyframes:l,mirroredGenerator:c,resolvedDuration:d,calculatedDuration:h}=this;if(this.startTime===null)return s.next(0);const{delay:p=0,keyframes:m,repeat:y,repeatType:b,repeatDelay:v,type:P,onUpdate:S,finalKeyframe:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const T=this.currentTime-p*(this.playbackSpeed>=0?1:-1),R=this.playbackSpeed>=0?T<0:T>a;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let N=this.currentTime,A=s;if(y){const z=Math.min(this.currentTime,a)/d;let H=Math.floor(z),W=z%1;!W&&z>=1&&(W=1),W===1&&H--,H=Math.min(H,y+1),H%2&&(b==="reverse"?(W=1-W,v&&(W-=v/d)):b==="mirror"&&(A=c)),N=An(0,1,W)*d}const O=R?{done:!1,value:m[0]}:A.next(N);l&&!R&&(O.value=l(O.value));let{done:F}=O;!R&&h!==null&&(F=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return $&&P!==Md&&(O.value=Lf(m,this.options,E,this.speed)),S&&S(O.value),$&&this.finish(),O}then(t,r){return this.finished.then(t,r)}get duration(){return Qt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Qt(t)}get time(){return Qt(this.currentTime)}set time(t){t=_t(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const r=this.generator.next(t).value;return jx(s=>this.generator.next(s).value,t,r)}get speed(){return this.playbackSpeed}set speed(t){const r=this.playbackSpeed!==t;r&&this.driver&&this.updateTime(yt.now()),this.playbackSpeed=t,r&&this.driver&&(this.time=Qt(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=tA,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=r??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(yt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function xA(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Kr=e=>e*180/Math.PI,Dd=e=>{const t=Kr(Math.atan2(e[1],e[0]));return Od(t)},wA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Dd,rotateZ:Dd,skewX:e=>Kr(Math.atan(e[1])),skewY:e=>Kr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Od=e=>(e=e%360,e<0&&(e+=360),e),Qg=Dd,Yg=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Gg=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),bA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Yg,scaleY:Gg,scale:e=>(Yg(e)+Gg(e))/2,rotateX:e=>Od(Kr(Math.atan2(e[6],e[5]))),rotateY:e=>Od(Kr(Math.atan2(-e[2],e[0]))),rotateZ:Qg,rotate:Qg,skewX:e=>Kr(Math.atan(e[4])),skewY:e=>Kr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ld(e){return e.includes("scale")?1:0}function _d(e,t){if(!e||e==="none")return Ld(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,a;if(r)s=bA,a=r;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=wA,a=d}if(!a)return Ld(t);const l=s[t],c=a[1].split(",").map(CA);return typeof l=="function"?l(c):c[l]}const SA=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return _d(r,t)};function CA(e){return parseFloat(e.trim())}const qo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zo=new Set(qo),Xg=e=>e===Xo||e===ae,EA=new Set(["x","y","z"]),PA=qo.filter(e=>!EA.has(e));function TA(e){const t=[];return PA.forEach(r=>{const s=e.getValue(r);s!==void 0&&(t.push([r,s.get()]),s.set(r.startsWith("scale")?1:0))}),t}const br={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>_d(t,"x"),y:(e,{transform:t})=>_d(t,"y")};br.translateX=br.x;br.translateY=br.y;const Qr=new Set;let Id=!1,Fd=!1,Vd=!1;function Dx(){if(Fd){const e=Array.from(Qr).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),r=new Map;t.forEach(s=>{const a=TA(s);a.length&&(r.set(s,a),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const a=r.get(s);a&&a.forEach(([l,c])=>{s.getValue(l)?.set(c)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Fd=!1,Id=!1,Qr.forEach(e=>e.complete(Vd)),Qr.clear()}function Ox(){Qr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Fd=!0)})}function RA(){Vd=!0,Ox(),Dx(),Vd=!1}class Ff{constructor(t,r,s,a,l,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=s,this.motionValue=a,this.element=l,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(Qr.add(this),Id||(Id=!0,De.read(Ox),De.resolveKeyframes(Dx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:s,motionValue:a}=this;if(t[0]===null){const l=a?.get(),c=t[t.length-1];if(l!==void 0)t[0]=l;else if(s&&r){const d=s.readValue(r,c);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=c),a&&l===void 0&&a.set(t[0])}xA(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Qr.delete(this)}cancel(){this.state==="scheduled"&&(Qr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const kA=e=>e.startsWith("--");function Lx(e,t,r){kA(t)?e.style.setProperty(t,r):e.style[t]=r}const NA={};function _x(e,t){const r=ux(e);return()=>NA[t]??r()}const AA=_x(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Ix=_x(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),$s=([e,t,r,s])=>`cubic-bezier(${e}, ${t}, ${r}, ${s})`,qg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$s([0,.65,.55,1]),circOut:$s([.55,0,1,.45]),backIn:$s([.31,.01,.66,-.59]),backOut:$s([.33,1.53,.69,.99])};function Fx(e,t){if(e)return typeof e=="function"?Ix()?Ax(e,t):"ease-out":wx(e)?$s(e):Array.isArray(e)?e.map(r=>Fx(r,t)||qg.easeOut):qg[e]}function jA(e,t,r,{delay:s=0,duration:a=300,repeat:l=0,repeatType:c="loop",ease:d="easeOut",times:h}={},p=void 0){const m={[t]:r};h&&(m.offset=h);const y=Fx(d,a);Array.isArray(y)&&(m.easing=y);const b={delay:s,duration:a,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:l+1,direction:c==="reverse"?"alternate":"normal"};return p&&(b.pseudoElement=p),e.animate(m,b)}function Vx(e){return typeof e=="function"&&"applyToOptions"in e}function MA({type:e,...t}){return Vx(e)&&Ix()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Bx extends _f{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:r,name:s,keyframes:a,pseudoElement:l,allowFlatten:c=!1,finalKeyframe:d,onComplete:h}=t;this.isPseudoElement=!!l,this.allowFlatten=c,this.options=t,Tf(typeof t.type!="string");const p=MA(t);this.animation=jA(r,s,a,p,l),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!l){const m=Lf(a,this.options,d,this.speed);this.updateMotionValue&&this.updateMotionValue(m),Lx(r,s,m),this.animation.cancel()}h?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Qt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Qt(t)}get time(){return Qt(Number(this.animation.currentTime)||0)}set time(t){const r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=_t(t),r&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:r,rangeEnd:s,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&AA()?(this.animation.timeline=t,r&&(this.animation.rangeStart=r),s&&(this.animation.rangeEnd=s),Yt):a(this)}}const zx={anticipate:gx,backInOut:mx,circInOut:vx};function DA(e){return e in zx}function OA(e){typeof e.ease=="string"&&DA(e.ease)&&(e.ease=zx[e.ease])}const $c=10;class LA extends Bx{constructor(t){OA(t),Mx(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:s,onComplete:a,element:l,...c}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const d=new If({...c,autoplay:!1}),h=Math.max($c,yt.now()-this.startTime),p=An(0,$c,h-$c),m=d.sample(h).value,{name:y}=this.options;l&&y&&Lx(l,y,m),r.setWithVelocity(d.sample(Math.max(0,h-p)).value,m,p),d.stop()}}const Zg=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(un.test(e)||e==="0")&&!e.startsWith("url("));function _A(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function IA(e,t,r,s){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const l=e[e.length-1],c=Zg(a,t),d=Zg(l,t);return!c||!d?!1:_A(e)||(r==="spring"||Vx(r))&&s}function Bd(e){e.duration=0,e.type="keyframes"}const FA=new Set(["opacity","clipPath","filter","transform"]),VA=ux(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function BA(e){const{motionValue:t,name:r,repeatDelay:s,repeatType:a,damping:l,type:c}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:p}=t.owner.getProps();return VA()&&r&&FA.has(r)&&(r!=="transform"||!p)&&!h&&!s&&a!=="mirror"&&l!==0&&c!=="inertia"}const zA=40;class UA extends _f{constructor({autoplay:t=!0,delay:r=0,type:s="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:c="loop",keyframes:d,name:h,motionValue:p,element:m,...y}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=yt.now();const b={autoplay:t,delay:r,type:s,repeat:a,repeatDelay:l,repeatType:c,name:h,motionValue:p,element:m,...y},v=m?.KeyframeResolver||Ff;this.keyframeResolver=new v(d,(P,S,E)=>this.onKeyframesResolved(P,S,b,!E),h,p,m),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,s,a){this.keyframeResolver=void 0;const{name:l,type:c,velocity:d,delay:h,isHandoff:p,onUpdate:m}=s;this.resolvedAt=yt.now(),IA(t,l,c,d)||((Kn.instantAnimations||!h)&&m?.(Lf(t,s,r)),t[0]=t[t.length-1],Bd(s),s.repeat=0);const b={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>zA?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...s,keyframes:t},v=!p&&BA(b),P=b.motionValue?.owner?.current,S=v?new LA({...b,element:P}):new If(b);S.finished.then(()=>{this.notifyFinished()}).catch(Yt),this.pendingTimeline&&(this.stopTimeline=S.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=S}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),RA()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Ux(e,t,r,s=0,a=1){const l=Array.from(e).sort((p,m)=>p.sortNodePosition(m)).indexOf(t),c=e.size,d=(c-1)*s;return typeof r=="function"?r(l,c):a===1?l*s:d-l*s}const $A=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function WA(e){const t=$A.exec(e);if(!t)return[,];const[,r,s,a]=t;return[`--${r??s}`,a]}function $x(e,t,r=1){const[s,a]=WA(e);if(!s)return;const l=window.getComputedStyle(t).getPropertyValue(s);if(l){const c=l.trim();return ix(c)?parseFloat(c):c}return Af(a)?$x(a,t,r+1):a}const HA={type:"spring",stiffness:500,damping:25,restSpeed:10},KA=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),QA={type:"keyframes",duration:.8},YA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},GA=(e,{keyframes:t})=>t.length>2?QA:Zo.has(e)?e.startsWith("scale")?KA(t[1]):HA:YA,XA=e=>e!==null;function qA(e,{repeat:t,repeatType:r="loop"},s){const a=e.filter(XA),l=t&&r!=="loop"&&t%2===1?0:a.length-1;return a[l]}function Wx(e,t){if(e?.inherit&&t){const{inherit:r,...s}=e;return{...t,...s}}return e}function Vf(e,t){const r=e?.[t]??e?.default??e;return r!==e?Wx(r,e):r}function ZA({when:e,delay:t,delayChildren:r,staggerChildren:s,staggerDirection:a,repeat:l,repeatType:c,repeatDelay:d,from:h,elapsed:p,...m}){return!!Object.keys(m).length}const Bf=(e,t,r,s={},a,l)=>c=>{const d=Vf(s,e)||{},h=d.delay||s.delay||0;let{elapsed:p=0}=s;p=p-_t(h);const m={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-p,onUpdate:b=>{t.set(b),d.onUpdate&&d.onUpdate(b)},onComplete:()=>{c(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:l?void 0:a};ZA(d)||Object.assign(m,GA(e,m)),m.duration&&(m.duration=_t(m.duration)),m.repeatDelay&&(m.repeatDelay=_t(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let y=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(Bd(m),m.delay===0&&(y=!0)),(Kn.instantAnimations||Kn.skipAnimations||a?.shouldSkipAnimations)&&(y=!0,Bd(m),m.delay=0),m.allowFlatten=!d.type&&!d.ease,y&&!l&&t.get()!==void 0){const b=qA(m.keyframes,d);if(b!==void 0){De.update(()=>{m.onUpdate(b),m.onComplete()});return}}return d.isSync?new If(m):new UA(m)};function Jg(e){const t=[{},{}];return e?.values.forEach((r,s)=>{t[0][s]=r.get(),t[1][s]=r.getVelocity()}),t}function zf(e,t,r,s){if(typeof t=="function"){const[a,l]=Jg(s);t=t(r!==void 0?r:e.custom,a,l)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,l]=Jg(s);t=t(r!==void 0?r:e.custom,a,l)}return t}function Bo(e,t,r){const s=e.getProps();return zf(s,t,r!==void 0?r:s.custom,e)}const Hx=new Set(["width","height","top","left","right","bottom",...qo]),ey=30,JA=e=>!isNaN(parseFloat(e));class ej{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const a=yt.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=yt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=JA(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Rf);const s=this.events[t].add(r);return t==="change"?()=>{s(),De.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,s){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=yt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ey)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,ey);return cx(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ho(e,t){return new ej(e,t)}const zd=e=>Array.isArray(e);function tj(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Ho(r))}function nj(e){return zd(e)?e[e.length-1]||0:e}function rj(e,t){const r=Bo(e,t);let{transitionEnd:s={},transition:a={},...l}=r||{};l={...l,...s};for(const c in l){const d=nj(l[c]);tj(e,c,d)}}const ft=e=>!!(e&&e.getVelocity);function oj(e){return!!(ft(e)&&e.add)}function Ud(e,t){const r=e.getValue("willChange");if(oj(r))return r.add(t);if(!r&&Kn.WillChange){const s=new Kn.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function Uf(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const sj="framerAppearId",Kx="data-"+Uf(sj);function Qx(e){return e.props[Kx]}function ij({protectedKeys:e,needsAnimating:t},r){const s=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,s}function Yx(e,t,{delay:r=0,transitionOverride:s,type:a}={}){let{transition:l,transitionEnd:c,...d}=t;const h=e.getDefaultTransition();l=l?Wx(l,h):h;const p=l?.reduceMotion;s&&(l=s);const m=[],y=a&&e.animationState&&e.animationState.getState()[a];for(const b in d){const v=e.getValue(b,e.latestValues[b]??null),P=d[b];if(P===void 0||y&&ij(y,b))continue;const S={delay:r,...Vf(l||{},b)},E=v.get();if(E!==void 0&&!v.isAnimating&&!Array.isArray(P)&&P===E&&!S.velocity)continue;let T=!1;if(window.MotionHandoffAnimation){const A=Qx(e);if(A){const O=window.MotionHandoffAnimation(A,b,De);O!==null&&(S.startTime=O,T=!0)}}Ud(e,b);const R=p??e.shouldReduceMotion;v.start(Bf(b,v,P,R&&Hx.has(b)?{type:!1}:S,e,T));const N=v.animation;N&&m.push(N)}if(c){const b=()=>De.update(()=>{c&&rj(e,c)});m.length?Promise.all(m).then(b):b()}return m}function $d(e,t,r={}){const s=Bo(e,t,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=s||{};r.transitionOverride&&(a=r.transitionOverride);const l=s?()=>Promise.all(Yx(e,s,r)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:p=0,staggerChildren:m,staggerDirection:y}=a;return aj(e,t,h,p,m,y,r)}:()=>Promise.resolve(),{when:d}=a;if(d){const[h,p]=d==="beforeChildren"?[l,c]:[c,l];return h().then(()=>p())}else return Promise.all([l(),c(r.delay)])}function aj(e,t,r=0,s=0,a=0,l=1,c){const d=[];for(const h of e.variantChildren)h.notify("AnimationStart",t),d.push($d(h,t,{...c,delay:r+(typeof s=="function"?0:s)+Ux(e.variantChildren,h,s,a,l)}).then(()=>h.notify("AnimationComplete",t)));return Promise.all(d)}function lj(e,t,r={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const a=t.map(l=>$d(e,l,r));s=Promise.all(a)}else if(typeof t=="string")s=$d(e,t,r);else{const a=typeof t=="function"?Bo(e,t,r.custom):t;s=Promise.all(Yx(e,a,r))}return s.then(()=>{e.notify("AnimationComplete",t)})}const uj={test:e=>e==="auto",parse:e=>e},Gx=e=>t=>t.test(e),Xx=[Xo,ae,kn,vr,_N,LN,uj],ty=e=>Xx.find(Gx(e));function cj(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||lx(e):!0}const dj=new Set(["brightness","contrast","saturate","opacity"]);function fj(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=r.match(jf)||[];if(!s)return e;const a=r.replace(s,"");let l=dj.has(t)?1:0;return s!==r&&(l*=100),t+"("+l+a+")"}const hj=/\b([a-z-]*)\(.*?\)/gu,Wd={...un,getAnimatableNone:e=>{const t=e.match(hj);return t?t.map(fj).join(" "):e}},Hd={...un,getAnimatableNone:e=>{const t=un.parse(e);return un.createTransformer(e)(t.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},ny={...Xo,transform:Math.round},pj={rotate:vr,rotateX:vr,rotateY:vr,rotateZ:vr,scale:Ma,scaleX:Ma,scaleY:Ma,scaleZ:Ma,skew:vr,skewX:vr,skewY:vr,distance:ae,translateX:ae,translateY:ae,translateZ:ae,x:ae,y:ae,z:ae,perspective:ae,transformPerspective:ae,opacity:Js,originX:Ug,originY:Ug,originZ:ae},$f={borderWidth:ae,borderTopWidth:ae,borderRightWidth:ae,borderBottomWidth:ae,borderLeftWidth:ae,borderRadius:ae,borderTopLeftRadius:ae,borderTopRightRadius:ae,borderBottomRightRadius:ae,borderBottomLeftRadius:ae,width:ae,maxWidth:ae,height:ae,maxHeight:ae,top:ae,right:ae,bottom:ae,left:ae,inset:ae,insetBlock:ae,insetBlockStart:ae,insetBlockEnd:ae,insetInline:ae,insetInlineStart:ae,insetInlineEnd:ae,padding:ae,paddingTop:ae,paddingRight:ae,paddingBottom:ae,paddingLeft:ae,paddingBlock:ae,paddingBlockStart:ae,paddingBlockEnd:ae,paddingInline:ae,paddingInlineStart:ae,paddingInlineEnd:ae,margin:ae,marginTop:ae,marginRight:ae,marginBottom:ae,marginLeft:ae,marginBlock:ae,marginBlockStart:ae,marginBlockEnd:ae,marginInline:ae,marginInlineStart:ae,marginInlineEnd:ae,fontSize:ae,backgroundPositionX:ae,backgroundPositionY:ae,...pj,zIndex:ny,fillOpacity:Js,strokeOpacity:Js,numOctaves:ny},mj={...$f,color:Ge,backgroundColor:Ge,outlineColor:Ge,fill:Ge,stroke:Ge,borderColor:Ge,borderTopColor:Ge,borderRightColor:Ge,borderBottomColor:Ge,borderLeftColor:Ge,filter:Wd,WebkitFilter:Wd,mask:Hd,WebkitMask:Hd},qx=e=>mj[e],gj=new Set([Wd,Hd]);function Zx(e,t){let r=qx(e);return gj.has(r)||(r=un),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const yj=new Set(["auto","none","0"]);function vj(e,t,r){let s=0,a;for(;s<e.length&&!a;){const l=e[s];typeof l=="string"&&!yj.has(l)&&Wo(l).values.length&&(a=e[s]),s++}if(a&&r)for(const l of t)e[l]=Zx(r,a)}class xj extends Ff{constructor(t,r,s,a,l){super(t,r,s,a,l,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:s}=this;if(!r||!r.current)return;super.readKeyframes();for(let m=0;m<t.length;m++){let y=t[m];if(typeof y=="string"&&(y=y.trim(),Af(y))){const b=$x(y,r.current);b!==void 0&&(t[m]=b),m===t.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!Hx.has(s)||t.length!==2)return;const[a,l]=t,c=ty(a),d=ty(l),h=zg(a),p=zg(l);if(h!==p&&br[s]){this.needsMeasurement=!0;return}if(c!==d)if(Xg(c)&&Xg(d))for(let m=0;m<t.length;m++){const y=t[m];typeof y=="string"&&(t[m]=parseFloat(y))}else br[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,s=[];for(let a=0;a<t.length;a++)(t[a]===null||cj(t[a]))&&s.push(a);s.length&&vj(t,s,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=br[s](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const a=r[r.length-1];a!==void 0&&t.getValue(s,a).jump(a,!1)}measureEndState(){const{element:t,name:r,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const a=t.getValue(r);a&&a.jump(this.measuredOrigin,!1);const l=s.length-1,c=s[l];s[l]=br[r](t.measureViewportBox(),window.getComputedStyle(t.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),this.removedTransforms?.length&&this.removedTransforms.forEach(([d,h])=>{t.getValue(d).set(h)}),this.resolveNoneKeyframes()}}const wj=new Set(["opacity","clipPath","filter","transform"]);function Jx(e,t,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const a=r?.[e]??s.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(s=>s!=null)}const ew=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Wa(e){return ax(e)&&"offsetHeight"in e}const{schedule:Wf}=bx(queueMicrotask,!1),ln={x:!1,y:!1};function tw(){return ln.x||ln.y}function bj(e){return e==="x"||e==="y"?ln[e]?null:(ln[e]=!0,()=>{ln[e]=!1}):ln.x||ln.y?null:(ln.x=ln.y=!0,()=>{ln.x=ln.y=!1})}function nw(e,t){const r=Jx(e),s=new AbortController,a={passive:!0,...t,signal:s.signal};return[r,a,()=>s.abort()]}function Sj(e){return!(e.pointerType==="touch"||tw())}function Cj(e,t,r={}){const[s,a,l]=nw(e,r);return s.forEach(c=>{let d=!1,h=!1,p;const m=()=>{c.removeEventListener("pointerleave",P)},y=E=>{p&&(p(E),p=void 0),m()},b=E=>{d=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),h&&(h=!1,y(E))},v=()=>{d=!0,window.addEventListener("pointerup",b,a),window.addEventListener("pointercancel",b,a)},P=E=>{if(E.pointerType!=="touch"){if(d){h=!0;return}y(E)}},S=E=>{if(!Sj(E))return;h=!1;const T=t(c,E);typeof T=="function"&&(p=T,c.addEventListener("pointerleave",P,a))};c.addEventListener("pointerenter",S,a),c.addEventListener("pointerdown",v,a)}),l}const rw=(e,t)=>t?e===t?!0:rw(e,t.parentElement):!1,Hf=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Ej=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Pj(e){return Ej.has(e.tagName)||e.isContentEditable===!0}const Tj=new Set(["INPUT","SELECT","TEXTAREA"]);function Rj(e){return Tj.has(e.tagName)||e.isContentEditable===!0}const Ha=new WeakSet;function ry(e){return t=>{t.key==="Enter"&&e(t)}}function Wc(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const kj=(e,t)=>{const r=e.currentTarget;if(!r)return;const s=ry(()=>{if(Ha.has(r))return;Wc(r,"down");const a=ry(()=>{Wc(r,"up")}),l=()=>Wc(r,"cancel");r.addEventListener("keyup",a,t),r.addEventListener("blur",l,t)});r.addEventListener("keydown",s,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",s),t)};function oy(e){return Hf(e)&&!tw()}const sy=new WeakSet;function Nj(e,t,r={}){const[s,a,l]=nw(e,r),c=d=>{const h=d.currentTarget;if(!oy(d)||sy.has(d))return;Ha.add(h),r.stopPropagation&&sy.add(d);const p=t(h,d),m=(v,P)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",b),Ha.has(h)&&Ha.delete(h),oy(v)&&typeof p=="function"&&p(v,{success:P})},y=v=>{m(v,h===window||h===document||r.useGlobalTarget||rw(h,v.target))},b=v=>{m(v,!1)};window.addEventListener("pointerup",y,a),window.addEventListener("pointercancel",b,a)};return s.forEach(d=>{(r.useGlobalTarget?window:d).addEventListener("pointerdown",c,a),Wa(d)&&(d.addEventListener("focus",p=>kj(p,a)),!Pj(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),l}function Kf(e){return ax(e)&&"ownerSVGElement"in e}const Ka=new WeakMap;let Qa;const ow=(e,t,r)=>(s,a)=>a&&a[0]?a[0][e+"Size"]:Kf(s)&&"getBBox"in s?s.getBBox()[t]:s[r],Aj=ow("inline","width","offsetWidth"),jj=ow("block","height","offsetHeight");function Mj({target:e,borderBoxSize:t}){Ka.get(e)?.forEach(r=>{r(e,{get width(){return Aj(e,t)},get height(){return jj(e,t)}})})}function Dj(e){e.forEach(Mj)}function Oj(){typeof ResizeObserver>"u"||(Qa=new ResizeObserver(Dj))}function Lj(e,t){Qa||Oj();const r=Jx(e);return r.forEach(s=>{let a=Ka.get(s);a||(a=new Set,Ka.set(s,a)),a.add(t),Qa?.observe(s)}),()=>{r.forEach(s=>{const a=Ka.get(s);a?.delete(t),a?.size||Qa?.unobserve(s)})}}const Ya=new Set;let Do;function _j(){Do=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ya.forEach(t=>t(e))},window.addEventListener("resize",Do)}function Ij(e){return Ya.add(e),Do||_j(),()=>{Ya.delete(e),!Ya.size&&typeof Do=="function"&&(window.removeEventListener("resize",Do),Do=void 0)}}function iy(e,t){return typeof e=="function"?Ij(e):Lj(e,t)}function Fj(e){return Kf(e)&&e.tagName==="svg"}const Vj=[...Xx,Ge,un],Bj=e=>Vj.find(Gx(e)),ay=()=>({translate:0,scale:1,origin:0,originPoint:0}),Oo=()=>({x:ay(),y:ay()}),ly=()=>({min:0,max:0}),Ze=()=>({x:ly(),y:ly()}),zj=new WeakMap;function Ll(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ei(e){return typeof e=="string"||Array.isArray(e)}const Qf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Yf=["initial",...Qf];function _l(e){return Ll(e.animate)||Yf.some(t=>ei(e[t]))}function sw(e){return!!(_l(e)||e.variants)}function Uj(e,t,r){for(const s in t){const a=t[s],l=r[s];if(ft(a))e.addValue(s,a);else if(ft(l))e.addValue(s,Ho(a,{owner:e}));else if(l!==a)if(e.hasValue(s)){const c=e.getValue(s);c.liveStyle===!0?c.jump(a):c.hasAnimated||c.set(a)}else{const c=e.getStaticValue(s);e.addValue(s,Ho(c!==void 0?c:a,{owner:e}))}}for(const s in r)t[s]===void 0&&e.removeValue(s);return t}const Kd={current:null},iw={current:!1},$j=typeof window<"u";function Wj(){if(iw.current=!0,!!$j)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Kd.current=e.matches;e.addEventListener("change",t),t()}else Kd.current=!1}const uy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let fl={};function aw(e){fl=e}function Hj(){return fl}class Kj{scrapeMotionValuesFromProps(t,r,s){return{}}constructor({parent:t,props:r,presenceContext:s,reducedMotionConfig:a,skipAnimations:l,blockInitialAnimation:c,visualState:d},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Ff,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=yt.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,De.render(this.render,!1,!0))};const{latestValues:p,renderState:m}=d;this.latestValues=p,this.baseTarget={...p},this.initialValues=r.initial?{...p}:{},this.renderState=m,this.parent=t,this.props=r,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=l,this.options=h,this.blockInitialAnimation=!!c,this.isControllingVariants=_l(r),this.isVariantNode=sw(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:y,...b}=this.scrapeMotionValuesFromProps(r,{},this);for(const v in b){const P=b[v];p[v]!==void 0&&ft(P)&&P.set(p[v])}}mount(t){if(this.hasBeenMounted)for(const r in this.initialValues)this.values.get(r)?.jump(this.initialValues[r]),this.latestValues[r]=this.initialValues[r];this.current=t,zj.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,s)=>this.bindToMotionValue(s,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(iw.current||Wj(),this.shouldReduceMotion=Kd.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Pr(this.notifyUpdate),Pr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),r.accelerate&&wj.has(t)&&this.current instanceof HTMLElement){const{factory:c,keyframes:d,times:h,ease:p,duration:m}=r.accelerate,y=new Bx({element:this.current,name:t,keyframes:d,times:h,ease:p,duration:_t(m)}),b=c(y);this.valueSubscriptions.set(t,()=>{b(),y.cancel()});return}const s=Zo.has(t);s&&this.onBindTransform&&this.onBindTransform();const a=r.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&De.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let l;typeof window<"u"&&window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{a(),l&&l(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in fl){const r=fl[t];if(!r)continue;const{isEnabled:s,Feature:a}=r;if(!this.features[t]&&a&&s(this.props)&&(this.features[t]=new a(this)),this.features[t]){const l=this.features[t];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ze()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let s=0;s<uy.length;s++){const a=uy[s];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const l="on"+a,c=t[l];c&&(this.propEventSubscriptions[a]=this.on(a,c))}this.prevMotionValues=Uj(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const s=this.values.get(t);r!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&r!==void 0&&(s=Ho(r===null?void 0:r,{owner:this}),this.addValue(t,s)),s}readValue(t,r){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(ix(s)||lx(s))?s=parseFloat(s):!Bj(s)&&un.test(r)&&(s=Zx(t,r)),this.setBaseTarget(t,ft(s)?s.get():s)),ft(s)?s.get():s}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const l=zf(this.props,r,this.presenceContext?.custom);l&&(s=l[t])}if(r&&s!==void 0)return s;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!ft(a)?a:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Rf),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){Wf.render(this.render)}}class lw extends Kj{constructor(){super(...arguments),this.KeyframeResolver=xj}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){const s=t.style;return s?s[r]:void 0}removeValueFromRenderState(t,{vars:r,style:s}){delete r[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ft(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class Tr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function uw({top:e,left:t,right:r,bottom:s}){return{x:{min:t,max:r},y:{min:e,max:s}}}function Qj({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Yj(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:s.y,right:s.x}}function Hc(e){return e===void 0||e===1}function Qd({scale:e,scaleX:t,scaleY:r}){return!Hc(e)||!Hc(t)||!Hc(r)}function $r(e){return Qd(e)||cw(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function cw(e){return cy(e.x)||cy(e.y)}function cy(e){return e&&e!=="0%"}function hl(e,t,r){const s=e-r,a=t*s;return r+a}function dy(e,t,r,s,a){return a!==void 0&&(e=hl(e,a,s)),hl(e,r,s)+t}function Yd(e,t=0,r=1,s,a){e.min=dy(e.min,t,r,s,a),e.max=dy(e.max,t,r,s,a)}function dw(e,{x:t,y:r}){Yd(e.x,t.translate,t.scale,t.originPoint),Yd(e.y,r.translate,r.scale,r.originPoint)}const fy=.999999999999,hy=1.0000000000001;function Gj(e,t,r,s=!1){const a=r.length;if(!a)return;t.x=t.y=1;let l,c;for(let d=0;d<a;d++){l=r[d],c=l.projectionDelta;const{visualElement:h}=l.options;h&&h.props.style&&h.props.style.display==="contents"||(s&&l.options.layoutScroll&&l.scroll&&l!==l.root&&_o(e,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,dw(e,c)),s&&$r(l.latestValues)&&_o(e,l.latestValues,l.layout?.layoutBox))}t.x<hy&&t.x>fy&&(t.x=1),t.y<hy&&t.y>fy&&(t.y=1)}function Lo(e,t){e.min=e.min+t,e.max=e.max+t}function py(e,t,r,s,a=.5){const l=ze(e.min,e.max,a);Yd(e,t,r,l,s)}function my(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function _o(e,t,r){const s=r??e;py(e.x,my(t.x,s.x),t.scaleX,t.scale,t.originX),py(e.y,my(t.y,s.y),t.scaleY,t.scale,t.originY)}function fw(e,t){return uw(Yj(e.getBoundingClientRect(),t))}function Xj(e,t,r){const s=fw(e,r),{scroll:a}=t;return a&&(Lo(s.x,a.offset.x),Lo(s.y,a.offset.y)),s}const qj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Zj=qo.length;function Jj(e,t,r){let s="",a=!0;for(let l=0;l<Zj;l++){const c=qo[l],d=e[c];if(d===void 0)continue;let h=!0;if(typeof d=="number")h=d===(c.startsWith("scale")?1:0);else{const p=parseFloat(d);h=c.startsWith("scale")?p===1:p===0}if(!h||r){const p=ew(d,$f[c]);if(!h){a=!1;const m=qj[c]||c;s+=`${m}(${p}) `}r&&(t[c]=p)}}return s=s.trim(),r?s=r(t,a?"":s):a&&(s="none"),s}function Gf(e,t,r){const{style:s,vars:a,transformOrigin:l}=e;let c=!1,d=!1;for(const h in t){const p=t[h];if(Zo.has(h)){c=!0;continue}else if(Cx(h)){a[h]=p;continue}else{const m=ew(p,$f[h]);h.startsWith("origin")?(d=!0,l[h]=m):s[h]=m}}if(t.transform||(c||r?s.transform=Jj(t,e.transform,r):s.transform&&(s.transform="none")),d){const{originX:h="50%",originY:p="50%",originZ:m=0}=l;s.transformOrigin=`${h} ${p} ${m}`}}function hw(e,{style:t,vars:r},s,a){const l=e.style;let c;for(c in t)l[c]=t[c];a?.applyProjectionStyles(l,s);for(c in r)l.setProperty(c,r[c])}function gy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Us={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ae.test(e))e=parseFloat(e);else return e;const r=gy(e,t.target.x),s=gy(e,t.target.y);return`${r}% ${s}%`}},eM={correct:(e,{treeScale:t,projectionDelta:r})=>{const s=e,a=un.parse(e);if(a.length>5)return s;const l=un.createTransformer(e),c=typeof a[0]!="number"?1:0,d=r.x.scale*t.x,h=r.y.scale*t.y;a[0+c]/=d,a[1+c]/=h;const p=ze(d,h,.5);return typeof a[2+c]=="number"&&(a[2+c]/=p),typeof a[3+c]=="number"&&(a[3+c]/=p),l(a)}},Gd={borderRadius:{...Us,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Us,borderTopRightRadius:Us,borderBottomLeftRadius:Us,borderBottomRightRadius:Us,boxShadow:eM};function pw(e,{layout:t,layoutId:r}){return Zo.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Gd[e]||e==="opacity")}function Xf(e,t,r){const s=e.style,a=t?.style,l={};if(!s)return l;for(const c in s)(ft(s[c])||a&&ft(a[c])||pw(c,e)||r?.getValue(c)?.liveStyle!==void 0)&&(l[c]=s[c]);return l}function tM(e){return window.getComputedStyle(e)}class nM extends lw{constructor(){super(...arguments),this.type="html",this.renderInstance=hw}readValueFromInstance(t,r){if(Zo.has(r))return this.projection?.isProjecting?Ld(r):SA(t,r);{const s=tM(t),a=(Cx(r)?s.getPropertyValue(r):s[r])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:r}){return fw(t,r)}build(t,r,s){Gf(t,r,s.transformTemplate)}scrapeMotionValuesFromProps(t,r,s){return Xf(t,r,s)}}const rM={offset:"stroke-dashoffset",array:"stroke-dasharray"},oM={offset:"strokeDashoffset",array:"strokeDasharray"};function sM(e,t,r=1,s=0,a=!0){e.pathLength=1;const l=a?rM:oM;e[l.offset]=`${-s}`,e[l.array]=`${t} ${r}`}const iM=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function mw(e,{attrX:t,attrY:r,attrScale:s,pathLength:a,pathSpacing:l=1,pathOffset:c=0,...d},h,p,m){if(Gf(e,d,p),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:b}=e;y.transform&&(b.transform=y.transform,delete y.transform),(b.transform||y.transformOrigin)&&(b.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),b.transform&&(b.transformBox=m?.transformBox??"fill-box",delete y.transformBox);for(const v of iM)y[v]!==void 0&&(b[v]=y[v],delete y[v]);t!==void 0&&(y.x=t),r!==void 0&&(y.y=r),s!==void 0&&(y.scale=s),a!==void 0&&sM(y,a,l,c,!1)}const gw=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),yw=e=>typeof e=="string"&&e.toLowerCase()==="svg";function aM(e,t,r,s){hw(e,t,void 0,s);for(const a in t.attrs)e.setAttribute(gw.has(a)?a:Uf(a),t.attrs[a])}function vw(e,t,r){const s=Xf(e,t,r);for(const a in e)if(ft(e[a])||ft(t[a])){const l=qo.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;s[l]=e[a]}return s}class lM extends lw{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ze}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Zo.has(r)){const s=qx(r);return s&&s.default||0}return r=gw.has(r)?r:Uf(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,s){return vw(t,r,s)}build(t,r,s){mw(t,r,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,r,s,a){aM(t,r,s,a)}mount(t){this.isSVGTag=yw(t.tagName),super.mount(t)}}const uM=Yf.length;function xw(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?xw(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<uM;r++){const s=Yf[r],a=e.props[s];(ei(a)||a===!1)&&(t[s]=a)}return t}function ww(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let s=0;s<r;s++)if(t[s]!==e[s])return!1;return!0}const cM=[...Qf].reverse(),dM=Qf.length;function fM(e){return t=>Promise.all(t.map(({animation:r,options:s})=>lj(e,r,s)))}function hM(e){let t=fM(e),r=yy(),s=!0,a=!1;const l=p=>(m,y)=>{const b=Bo(e,y,p==="exit"?e.presenceContext?.custom:void 0);if(b){const{transition:v,transitionEnd:P,...S}=b;m={...m,...S,...P}}return m};function c(p){t=p(e)}function d(p){const{props:m}=e,y=xw(e.parent)||{},b=[],v=new Set;let P={},S=1/0;for(let T=0;T<dM;T++){const R=cM[T],N=r[R],A=m[R]!==void 0?m[R]:y[R],O=ei(A),F=R===p?N.isActive:null;F===!1&&(S=T);let $=A===y[R]&&A!==m[R]&&O;if($&&(s||a)&&e.manuallyAnimateOnMount&&($=!1),N.protectedKeys={...P},!N.isActive&&F===null||!A&&!N.prevProp||Ll(A)||typeof A=="boolean")continue;if(R==="exit"&&N.isActive&&F!==!0){N.prevResolvedValues&&(P={...P,...N.prevResolvedValues});continue}const z=pM(N.prevProp,A);let H=z||R===p&&N.isActive&&!$&&O||T>S&&O,W=!1;const ee=Array.isArray(A)?A:[A];let X=ee.reduce(l(R),{});F===!1&&(X={});const{prevResolvedValues:de={}}=N,q={...de,...X},he=V=>{H=!0,v.has(V)&&(W=!0,v.delete(V)),N.needsAnimating[V]=!0;const U=e.getValue(V);U&&(U.liveStyle=!1)};for(const V in q){const U=X[V],K=de[V];if(P.hasOwnProperty(V))continue;let M=!1;zd(U)&&zd(K)?M=!ww(U,K):M=U!==K,M?U!=null?he(V):v.add(V):U!==void 0&&v.has(V)?he(V):N.protectedKeys[V]=!0}N.prevProp=A,N.prevResolvedValues=X,N.isActive&&(P={...P,...X}),(s||a)&&e.blockInitialAnimation&&(H=!1);const re=$&&z;H&&(!re||W)&&b.push(...ee.map(V=>{const U={type:R};if(typeof V=="string"&&(s||a)&&!re&&e.manuallyAnimateOnMount&&e.parent){const{parent:K}=e,M=Bo(K,V);if(K.enteringChildren&&M){const{delayChildren:B}=M.transition||{};U.delay=Ux(K.enteringChildren,e,B)}}return{animation:V,options:U}}))}if(v.size){const T={};if(typeof m.initial!="boolean"){const R=Bo(e,Array.isArray(m.initial)?m.initial[0]:m.initial);R&&R.transition&&(T.transition=R.transition)}v.forEach(R=>{const N=e.getBaseTarget(R),A=e.getValue(R);A&&(A.liveStyle=!0),T[R]=N??null}),b.push({animation:T})}let E=!!b.length;return s&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(E=!1),s=!1,a=!1,E?t(b):Promise.resolve()}function h(p,m){if(r[p].isActive===m)return Promise.resolve();e.variantChildren?.forEach(b=>b.animationState?.setActive(p,m)),r[p].isActive=m;const y=d(p);for(const b in r)r[b].protectedKeys={};return y}return{animateChanges:d,setActive:h,setAnimateFunction:c,getState:()=>r,reset:()=>{r=yy(),a=!0}}}function pM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ww(t,e):!1}function Ur(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function yy(){return{animate:Ur(!0),whileInView:Ur(),whileHover:Ur(),whileTap:Ur(),whileDrag:Ur(),whileFocus:Ur(),exit:Ur()}}function vy(e,t){e.min=t.min,e.max=t.max}function an(e,t){vy(e.x,t.x),vy(e.y,t.y)}function xy(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const bw=1e-4,mM=1-bw,gM=1+bw,Sw=.01,yM=0-Sw,vM=0+Sw;function vt(e){return e.max-e.min}function xM(e,t,r){return Math.abs(e-t)<=r}function wy(e,t,r,s=.5){e.origin=s,e.originPoint=ze(t.min,t.max,e.origin),e.scale=vt(r)/vt(t),e.translate=ze(r.min,r.max,e.origin)-e.originPoint,(e.scale>=mM&&e.scale<=gM||isNaN(e.scale))&&(e.scale=1),(e.translate>=yM&&e.translate<=vM||isNaN(e.translate))&&(e.translate=0)}function Qs(e,t,r,s){wy(e.x,t.x,r.x,s?s.originX:void 0),wy(e.y,t.y,r.y,s?s.originY:void 0)}function by(e,t,r){e.min=r.min+t.min,e.max=e.min+vt(t)}function wM(e,t,r){by(e.x,t.x,r.x),by(e.y,t.y,r.y)}function Sy(e,t,r){e.min=t.min-r.min,e.max=e.min+vt(t)}function pl(e,t,r){Sy(e.x,t.x,r.x),Sy(e.y,t.y,r.y)}function Cy(e,t,r,s,a){return e-=t,e=hl(e,1/r,s),a!==void 0&&(e=hl(e,1/a,s)),e}function bM(e,t=0,r=1,s=.5,a,l=e,c=e){if(kn.test(t)&&(t=parseFloat(t),t=ze(c.min,c.max,t/100)-c.min),typeof t!="number")return;let d=ze(l.min,l.max,s);e===l&&(d-=t),e.min=Cy(e.min,t,r,d,a),e.max=Cy(e.max,t,r,d,a)}function Ey(e,t,[r,s,a],l,c){bM(e,t[r],t[s],t[a],t.scale,l,c)}const SM=["x","scaleX","originX"],CM=["y","scaleY","originY"];function Py(e,t,r,s){Ey(e.x,t,SM,r?r.x:void 0,s?s.x:void 0),Ey(e.y,t,CM,r?r.y:void 0,s?s.y:void 0)}function Ty(e){return e.translate===0&&e.scale===1}function Cw(e){return Ty(e.x)&&Ty(e.y)}function Ry(e,t){return e.min===t.min&&e.max===t.max}function EM(e,t){return Ry(e.x,t.x)&&Ry(e.y,t.y)}function ky(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ew(e,t){return ky(e.x,t.x)&&ky(e.y,t.y)}function Ny(e){return vt(e.x)/vt(e.y)}function Ay(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function En(e){return[e("x"),e("y")]}function PM(e,t,r){let s="";const a=e.x.translate/t.x,l=e.y.translate/t.y,c=r?.z||0;if((a||l||c)&&(s=`translate3d(${a}px, ${l}px, ${c}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:p,rotate:m,rotateX:y,rotateY:b,skewX:v,skewY:P}=r;p&&(s=`perspective(${p}px) ${s}`),m&&(s+=`rotate(${m}deg) `),y&&(s+=`rotateX(${y}deg) `),b&&(s+=`rotateY(${b}deg) `),v&&(s+=`skewX(${v}deg) `),P&&(s+=`skewY(${P}deg) `)}const d=e.x.scale*t.x,h=e.y.scale*t.y;return(d!==1||h!==1)&&(s+=`scale(${d}, ${h})`),s||"none"}const Pw=["TopLeft","TopRight","BottomLeft","BottomRight"],TM=Pw.length,jy=e=>typeof e=="string"?parseFloat(e):e,My=e=>typeof e=="number"||ae.test(e);function RM(e,t,r,s,a,l){a?(e.opacity=ze(0,r.opacity??1,kM(s)),e.opacityExit=ze(t.opacity??1,0,NM(s))):l&&(e.opacity=ze(t.opacity??1,r.opacity??1,s));for(let c=0;c<TM;c++){const d=`border${Pw[c]}Radius`;let h=Dy(t,d),p=Dy(r,d);if(h===void 0&&p===void 0)continue;h||(h=0),p||(p=0),h===0||p===0||My(h)===My(p)?(e[d]=Math.max(ze(jy(h),jy(p),s),0),(kn.test(p)||kn.test(h))&&(e[d]+="%")):e[d]=p}(t.rotate||r.rotate)&&(e.rotate=ze(t.rotate||0,r.rotate||0,s))}function Dy(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const kM=Tw(0,.5,yx),NM=Tw(.5,.95,Yt);function Tw(e,t,r){return s=>s<e?0:s>t?1:r(Zs(e,t,s))}function AM(e,t,r){const s=ft(e)?e:Ho(e);return s.start(Bf("",s,t,r)),s.animation}function ti(e,t,r,s={passive:!0}){return e.addEventListener(t,r,s),()=>e.removeEventListener(t,r)}const jM=(e,t)=>e.depth-t.depth;class MM{constructor(){this.children=[],this.isDirty=!1}add(t){Pf(this.children,t),this.isDirty=!0}remove(t){ll(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(jM),this.isDirty=!1,this.children.forEach(t)}}function DM(e,t){const r=yt.now(),s=({timestamp:a})=>{const l=a-r;l>=t&&(Pr(s),e(l-t))};return De.setup(s,!0),()=>Pr(s)}function Ga(e){return ft(e)?e.get():e}class OM{constructor(){this.members=[]}add(t){Pf(this.members,t);for(let r=this.members.length-1;r>=0;r--){const s=this.members[r];if(s===t||s===this.lead||s===this.prevLead)continue;const a=s.instance;(!a||a.isConnected===!1)&&!s.snapshot&&(ll(this.members,s),s.unmount())}t.scheduleRender()}remove(t){if(ll(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){for(let r=this.members.indexOf(t)-1;r>=0;r--){const s=this.members[r];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(t,r){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.updateSnapshot(),t.scheduleRender();const{layoutDependency:a}=s.options,{layoutDependency:l}=t.options;(a===void 0||a!==l)&&(t.resumeFrom=s,r&&(s.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Xa={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Kc=["","X","Y","Z"],LM=1e3;let _M=0;function Qc(e,t,r,s){const{latestValues:a}=t;a[e]&&(r[e]=a[e],t.setStaticValue(e,0),s&&(s[e]=0))}function Rw(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=Qx(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:a,layoutId:l}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",De,!(a||l))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&Rw(s)}function kw({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:s,resetTransform:a}){return class{constructor(c={},d=t?.()){this.id=_M++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(VM),this.nodes.forEach($M),this.nodes.forEach(WM),this.nodes.forEach(BM)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new MM)}addEventListener(c,d){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Rf),this.eventHandlers.get(c).add(d)}notifyListeners(c,...d){const h=this.eventHandlers.get(c);h&&h.notify(...d)}hasListeners(c){return this.eventHandlers.has(c)}mount(c){if(this.instance)return;this.isSVG=Kf(c)&&!Fj(c),this.instance=c;const{layoutId:d,layout:h,visualElement:p}=this.options;if(p&&!p.current&&p.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(h||d)&&(this.isLayoutDirty=!0),e){let m,y=0;const b=()=>this.root.updateBlockedByResize=!1;De.read(()=>{y=window.innerWidth}),e(c,()=>{const v=window.innerWidth;v!==y&&(y=v,this.root.updateBlockedByResize=!0,m&&m(),m=DM(b,250),Xa.hasAnimatedSinceResize&&(Xa.hasAnimatedSinceResize=!1,this.nodes.forEach(_y)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&p&&(d||h)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:y,hasRelativeLayoutChanged:b,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const P=this.options.transition||p.getDefaultTransition()||GM,{onLayoutAnimationStart:S,onLayoutAnimationComplete:E}=p.getProps(),T=!this.targetLayout||!Ew(this.targetLayout,v),R=!y&&b;if(this.options.layoutRoot||this.resumeFrom||R||y&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const N={...Vf(P,"layout"),onPlay:S,onComplete:E};(p.shouldReduceMotion||this.options.layoutRoot)&&(N.delay=0,N.type=!1),this.startAnimation(N),this.setAnimationOrigin(m,R)}else y||_y(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Pr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(HM),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Rw(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const y=this.path[m];y.shouldResetTransform=!0,(typeof y.latestValues.x=="string"||typeof y.latestValues.y=="string")&&(y.isLayoutDirty=!0),y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:d,layout:h}=this.options;if(d===void 0&&!h)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Oy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ly);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(UM),this.nodes.forEach(IM),this.nodes.forEach(FM)):this.nodes.forEach(Ly),this.clearAllSnapshots();const d=yt.now();st.delta=An(0,1e3/60,d-st.timestamp),st.timestamp=d,st.isProcessing=!0,Fc.update.process(st),Fc.preRender.process(st),Fc.render.process(st),st.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Wf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(zM),this.sharedNodes.forEach(KM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,De.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){De.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!vt(this.snapshot.measuredBox.x)&&!vt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Ze(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(d=!1),d&&this.instance){const h=s(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:h,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!a)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!Cw(this.projectionDelta),h=this.getTransformTemplate(),p=h?h(this.latestValues,""):void 0,m=p!==this.prevTransformTemplateValue;c&&this.instance&&(d||$r(this.latestValues)||m)&&(a(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const d=this.measurePageBox();let h=this.removeElementScroll(d);return c&&(h=this.removeTransform(h)),XM(h),{animationId:this.root.animationId,measuredBox:d,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:c}=this.options;if(!c)return Ze();const d=c.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(qM))){const{scroll:p}=this.root;p&&(Lo(d.x,p.offset.x),Lo(d.y,p.offset.y))}return d}removeElementScroll(c){const d=Ze();if(an(d,c),this.scroll?.wasRoot)return d;for(let h=0;h<this.path.length;h++){const p=this.path[h],{scroll:m,options:y}=p;p!==this.root&&m&&y.layoutScroll&&(m.wasRoot&&an(d,c),Lo(d.x,m.offset.x),Lo(d.y,m.offset.y))}return d}applyTransform(c,d=!1){const h=Ze();an(h,c);for(let p=0;p<this.path.length;p++){const m=this.path[p];!d&&m.options.layoutScroll&&m.scroll&&m!==m.root&&_o(h,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),$r(m.latestValues)&&_o(h,m.latestValues,m.layout?.layoutBox)}return $r(this.latestValues)&&_o(h,this.latestValues,this.layout?.layoutBox),h}removeTransform(c){const d=Ze();an(d,c);for(let h=0;h<this.path.length;h++){const p=this.path[h];if(!$r(p.latestValues))continue;let m;p.instance&&(Qd(p.latestValues)&&p.updateSnapshot(),m=Ze(),an(m,p.measurePageBox())),Py(d,p.latestValues,p.snapshot?.layoutBox,m)}return $r(this.latestValues)&&Py(d,this.latestValues),d}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==st.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==d;if(!(c||h&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:y}=this.options;if(!this.layout||!(m||y))return;this.resolvedRelativeTargetAt=st.timestamp;const b=this.getClosestProjectingParent();b&&this.linkedParentVersion!==b.layoutVersion&&!b.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(b&&b.layout?this.createRelativeTarget(b,this.layout.layoutBox,b.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ze(),this.targetWithTransforms=Ze()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),wM(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):an(this.target,this.layout.layoutBox),dw(this.target,this.targetDelta)):an(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?this.createRelativeTarget(b,this.target,b.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Qd(this.parent.latestValues)||cw(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(c,d,h){this.relativeParent=c,this.linkedParentVersion=c.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ze(),this.relativeTargetOrigin=Ze(),pl(this.relativeTargetOrigin,d,h),an(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const c=this.getLead(),d=!!this.resumingFrom||this!==c;let h=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(h=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===st.timestamp&&(h=!1),h)return;const{layout:p,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||m))return;an(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,b=this.treeScale.y;Gj(this.layoutCorrected,this.treeScale,this.path,d),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=Ze());const{target:v}=c;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(xy(this.prevProjectionDelta.x,this.projectionDelta.x),xy(this.prevProjectionDelta.y,this.projectionDelta.y)),Qs(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==b||!Ay(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ay(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){if(this.options.visualElement?.scheduleRender(),c){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Oo(),this.projectionDelta=Oo(),this.projectionDeltaWithTransform=Oo()}setAnimationOrigin(c,d=!1){const h=this.snapshot,p=h?h.latestValues:{},m={...this.latestValues},y=Oo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const b=Ze(),v=h?h.source:void 0,P=this.layout?this.layout.source:void 0,S=v!==P,E=this.getStack(),T=!E||E.members.length<=1,R=!!(S&&!T&&this.options.crossfade===!0&&!this.path.some(YM));this.animationProgress=0;let N;this.mixTargetDelta=A=>{const O=A/1e3;Iy(y.x,c.x,O),Iy(y.y,c.y,O),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pl(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),QM(this.relativeTarget,this.relativeTargetOrigin,b,O),N&&EM(this.relativeTarget,N)&&(this.isProjectionDirty=!1),N||(N=Ze()),an(N,this.relativeTarget)),S&&(this.animationValues=m,RM(m,p,this.latestValues,O,R,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Pr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=De.update(()=>{Xa.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ho(0)),this.motionValue.jump(0,!1),this.currentAnimation=AM(this.motionValue,[0,1e3],{...c,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),c.onUpdate&&c.onUpdate(d)},onStop:()=>{},onComplete:()=>{c.onComplete&&c.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(LM),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:d,target:h,layout:p,latestValues:m}=c;if(!(!d||!h||!p)){if(this!==c&&this.layout&&p&&Nw(this.options.animationType,this.layout.layoutBox,p.layoutBox)){h=this.target||Ze();const y=vt(this.layout.layoutBox.x);h.x.min=c.target.x.min,h.x.max=h.x.min+y;const b=vt(this.layout.layoutBox.y);h.y.min=c.target.y.min,h.y.max=h.y.min+b}an(d,h),_o(d,m),Qs(this.projectionDeltaWithTransform,this.layoutCorrected,d,m)}}registerSharedNode(c,d){this.sharedNodes.has(c)||this.sharedNodes.set(c,new OM),this.sharedNodes.get(c).add(d);const p=d.options.initialPromotionConfig;d.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(d):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){const{layoutId:c}=this.options;return c?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:c}=this.options;return c?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:d,preserveFollowOpacity:h}={}){const p=this.getStack();p&&p.promote(this,h),c&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let d=!1;const{latestValues:h}=c;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(d=!0),!d)return;const p={};h.z&&Qc("z",c,p,this.animationValues);for(let m=0;m<Kc.length;m++)Qc(`rotate${Kc[m]}`,c,p,this.animationValues),Qc(`skew${Kc[m]}`,c,p,this.animationValues);c.render();for(const m in p)c.setStaticValue(m,p[m]),this.animationValues&&(this.animationValues[m]=p[m]);c.scheduleRender()}applyProjectionStyles(c,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){c.visibility="hidden";return}const h=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,c.visibility="",c.opacity="",c.pointerEvents=Ga(d?.pointerEvents)||"",c.transform=h?h(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(c.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,c.pointerEvents=Ga(d?.pointerEvents)||""),this.hasProjected&&!$r(this.latestValues)&&(c.transform=h?h({},""):"none",this.hasProjected=!1);return}c.visibility="";const m=p.animationValues||p.latestValues;this.applyTransformsToTarget();let y=PM(this.projectionDeltaWithTransform,this.treeScale,m);h&&(y=h(m,y)),c.transform=y;const{x:b,y:v}=this.projectionDelta;c.transformOrigin=`${b.origin*100}% ${v.origin*100}% 0`,p.animationValues?c.opacity=p===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:c.opacity=p===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const P in Gd){if(m[P]===void 0)continue;const{correct:S,applyTo:E,isCSSVariable:T}=Gd[P],R=y==="none"?m[P]:S(m[P],p);if(E){const N=E.length;for(let A=0;A<N;A++)c[E[A]]=R}else T?this.options.visualElement.renderState.vars[P]=R:c[P]=R}this.options.layoutId&&(c.pointerEvents=p===this?Ga(d?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>c.currentAnimation?.stop()),this.root.nodes.forEach(Oy),this.root.sharedNodes.clear()}}}function IM(e){e.updateLayout()}function FM(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:a}=e.options,l=t.source!==e.layout.source;a==="size"?En(m=>{const y=l?t.measuredBox[m]:t.layoutBox[m],b=vt(y);y.min=r[m].min,y.max=y.min+b}):Nw(a,t.layoutBox,r)&&En(m=>{const y=l?t.measuredBox[m]:t.layoutBox[m],b=vt(r[m]);y.max=y.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const c=Oo();Qs(c,r,t.layoutBox);const d=Oo();l?Qs(d,e.applyTransform(s,!0),t.measuredBox):Qs(d,r,t.layoutBox);const h=!Cw(c);let p=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:y,layout:b}=m;if(y&&b){const v=Ze();pl(v,t.layoutBox,y.layoutBox);const P=Ze();pl(P,r,b.layoutBox),Ew(v,P)||(p=!0),m.options.layoutRoot&&(e.relativeTarget=P,e.relativeTargetOrigin=v,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:d,layoutDelta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function VM(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function BM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function zM(e){e.clearSnapshot()}function Oy(e){e.clearMeasurements()}function Ly(e){e.isLayoutDirty=!1}function UM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function _y(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function $M(e){e.resolveTargetDelta()}function WM(e){e.calcProjection()}function HM(e){e.resetSkewAndRotation()}function KM(e){e.removeLeadSnapshot()}function Iy(e,t,r){e.translate=ze(t.translate,0,r),e.scale=ze(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Fy(e,t,r,s){e.min=ze(t.min,r.min,s),e.max=ze(t.max,r.max,s)}function QM(e,t,r,s){Fy(e.x,t.x,r.x,s),Fy(e.y,t.y,r.y,s)}function YM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const GM={duration:.45,ease:[.4,0,.1,1]},Vy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),By=Vy("applewebkit/")&&!Vy("chrome/")?Math.round:Yt;function zy(e){e.min=By(e.min),e.max=By(e.max)}function XM(e){zy(e.x),zy(e.y)}function Nw(e,t,r){return e==="position"||e==="preserve-aspect"&&!xM(Ny(t),Ny(r),.2)}function qM(e){return e!==e.root&&e.scroll?.wasRoot}const ZM=kw({attachResizeListener:(e,t)=>ti(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Yc={current:void 0},Aw=kw({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Yc.current){const e=new ZM({});e.mount(window),e.setOptions({layoutScroll:!0}),Yc.current=e}return Yc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),qf=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Uy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function JM(...e){return t=>{let r=!1;const s=e.map(a=>{const l=Uy(a,t);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let a=0;a<s.length;a++){const l=s[a];typeof l=="function"?l():Uy(e[a],null)}}}}function e2(...e){return w.useCallback(JM(...e),e)}class t2 extends w.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(Wa(r)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=r.offsetParent,a=Wa(s)&&s.offsetWidth||0,l=Wa(s)&&s.offsetHeight||0,c=getComputedStyle(r),d=this.props.sizeRef.current;d.height=parseFloat(c.height),d.width=parseFloat(c.width),d.top=r.offsetTop,d.left=r.offsetLeft,d.right=a-d.width-d.left,d.bottom=l-d.height-d.top}return null}componentDidUpdate(){}render(){return this.props.children}}function n2({children:e,isPresent:t,anchorX:r,anchorY:s,root:a,pop:l}){const c=w.useId(),d=w.useRef(null),h=w.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=w.useContext(qf),m=e.props?.ref??e?.ref,y=e2(d,m);return w.useInsertionEffect(()=>{const{width:b,height:v,top:P,left:S,right:E,bottom:T}=h.current;if(t||l===!1||!d.current||!b||!v)return;const R=r==="left"?`left: ${S}`:`right: ${E}`,N=s==="bottom"?`bottom: ${T}`:`top: ${P}`;d.current.dataset.motionPopId=c;const A=document.createElement("style");p&&(A.nonce=p);const O=a??document.head;return O.appendChild(A),A.sheet&&A.sheet.insertRule(`
|
|
10
10
|
[data-motion-pop-id="${c}"] {
|
|
11
11
|
position: absolute !important;
|
|
12
12
|
width: ${b}px !important;
|
|
@@ -14,12 +14,12 @@ Error generating stack: `+g.message+`
|
|
|
14
14
|
${R}px !important;
|
|
15
15
|
${N}px !important;
|
|
16
16
|
}
|
|
17
|
-
`),()=>{O.contains(A)&&O.removeChild(A)}},[t]),x.jsx(t2,{isPresent:t,childRef:d,sizeRef:h,pop:l,children:l===!1?e:w.cloneElement(e,{ref:y})})}const r2=({children:e,initial:t,isPresent:r,onExitComplete:s,custom:a,presenceAffectsLayout:l,mode:c,anchorX:d,anchorY:h,root:p})=>{const m=Ef(o2),y=w.useId();let b=!0,v=w.useMemo(()=>(b=!1,{id:y,initial:t,isPresent:r,custom:a,onExitComplete:P=>{m.set(P,!0);for(const S of m.values())if(!S)return;s&&s()},register:P=>(m.set(P,!1),()=>m.delete(P))}),[r,m,s]);return l&&b&&(v={...v}),w.useMemo(()=>{m.forEach((P,S)=>m.set(S,!1))},[r]),w.useEffect(()=>{!r&&!m.size&&s&&s()},[r]),e=x.jsx(n2,{pop:c==="popLayout",isPresent:r,anchorX:d,anchorY:h,root:p,children:e}),x.jsx(Ol.Provider,{value:v,children:e})};function o2(){return new Map}function jw(e=!0){const t=w.useContext(Ol);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:s,register:a}=t,l=w.useId();w.useEffect(()=>{if(e)return a(l)},[e]);const c=w.useCallback(()=>e&&s&&s(l),[l,s,e]);return!r&&s?[!1,c]:[!0]}const Da=e=>e.key||"";function $y(e){const t=[];return w.Children.forEach(e,r=>{w.isValidElement(r)&&t.push(r)}),t}const s2=({children:e,custom:t,initial:r=!0,onExitComplete:s,presenceAffectsLayout:a=!0,mode:l="sync",propagate:c=!1,anchorX:d="left",anchorY:h="top",root:p})=>{const[m,y]=jw(c),b=w.useMemo(()=>$y(e),[e]),v=c&&!m?[]:b.map(Da),P=w.useRef(!0),S=w.useRef(b),E=Ef(()=>new Map),T=w.useRef(new Set),[R,N]=w.useState(b),[A,O]=w.useState(b);sx(()=>{P.current=!1,S.current=b;for(let B=0;B<A.length;B++){const H=Da(A[B]);v.includes(H)?(E.delete(H),T.current.delete(H)):E.get(H)!==!0&&E.set(H,!1)}},[A,v.length,v.join("-")]);const F=[];if(b!==R){let B=[...b];for(let H=0;H<A.length;H++){const W=A[H],ee=Da(W);v.includes(ee)||(B.splice(H,0,W),F.push(W))}return l==="wait"&&F.length&&(B=F),O($y(B)),N(b),null}const{forceRender:$}=w.useContext(Cf);return x.jsx(x.Fragment,{children:A.map(B=>{const H=Da(B),W=c&&!m?!1:b===A||v.includes(H),ee=()=>{if(T.current.has(H))return;if(T.current.add(H),E.has(H))E.set(H,!0);else return;let X=!0;E.forEach(de=>{de||(X=!1)}),X&&($?.(),O(S.current),c&&y?.(),s&&s())};return x.jsx(r2,{isPresent:W,initial:!P.current||r?void 0:!1,custom:t,presenceAffectsLayout:a,mode:l,root:p,onExitComplete:W?void 0:ee,anchorX:d,anchorY:h,children:B},H)})})},Mw=w.createContext({strict:!1}),Wy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Hy=!1;function i2(){if(Hy)return;const e={};for(const t in Wy)e[t]={isEnabled:r=>Wy[t].some(s=>!!r[s])};aw(e),Hy=!0}function Dw(){return i2(),Hj()}function a2(e){const t=Dw();for(const r in e)t[r]={...t[r],...e[r]};aw(t)}const l2=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ml(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||l2.has(e)}let Ow=e=>!ml(e);function u2(e){typeof e=="function"&&(Ow=t=>t.startsWith("on")?!ml(t):e(t))}try{u2(require("@emotion/is-prop-valid").default)}catch{}function c2(e,t,r){const s={};for(const a in e)a==="values"&&typeof e.values=="object"||(Ow(a)||r===!0&&ml(a)||!t&&!ml(a)||e.draggable&&a.startsWith("onDrag"))&&(s[a]=e[a]);return s}const Il=w.createContext({});function d2(e,t){if(_l(e)){const{initial:r,animate:s}=e;return{initial:r===!1||ei(r)?r:void 0,animate:ei(s)?s:void 0}}return e.inherit!==!1?t:{}}function f2(e){const{initial:t,animate:r}=d2(e,w.useContext(Il));return w.useMemo(()=>({initial:t,animate:r}),[Ky(t),Ky(r)])}function Ky(e){return Array.isArray(e)?e.join(" "):e}const Zf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Lw(e,t,r){for(const s in t)!ft(t[s])&&!pw(s,r)&&(e[s]=t[s])}function h2({transformTemplate:e},t){return w.useMemo(()=>{const r=Zf();return Gf(r,t,e),Object.assign({},r.vars,r.style)},[t])}function p2(e,t){const r=e.style||{},s={};return Lw(s,r,e),Object.assign(s,h2(e,t)),s}function m2(e,t){const r={},s=p2(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=s,r}const _w=()=>({...Zf(),attrs:{}});function g2(e,t,r,s){const a=w.useMemo(()=>{const l=_w();return mw(l,t,yw(s),e.transformTemplate,e.style),{...l.attrs,style:{...l.style}}},[t]);if(e.style){const l={};Lw(l,e.style,e),a.style={...l,...a.style}}return a}const y2=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Jf(e){return typeof e!="string"||e.includes("-")?!1:!!(y2.indexOf(e)>-1||/[A-Z]/u.test(e))}function v2(e,t,r,{latestValues:s},a,l=!1,c){const h=(c??Jf(e)?g2:m2)(t,s,a,e),p=c2(t,typeof e=="string",l),m=e!==w.Fragment?{...p,...h,ref:r}:{},{children:y}=t,b=w.useMemo(()=>ft(y)?y.get():y,[y]);return w.createElement(e,{...m,children:b})}function x2({scrapeMotionValuesFromProps:e,createRenderState:t},r,s,a){return{latestValues:w2(r,s,a,e),renderState:t()}}function w2(e,t,r,s){const a={},l=s(e,{});for(const b in l)a[b]=Ga(l[b]);let{initial:c,animate:d}=e;const h=_l(e),p=sw(e);t&&p&&!h&&e.inherit!==!1&&(c===void 0&&(c=t.initial),d===void 0&&(d=t.animate));let m=r?r.initial===!1:!1;m=m||c===!1;const y=m?d:c;if(y&&typeof y!="boolean"&&!Ll(y)){const b=Array.isArray(y)?y:[y];for(let v=0;v<b.length;v++){const P=Bf(e,b[v]);if(P){const{transitionEnd:S,transition:E,...T}=P;for(const R in T){let N=T[R];if(Array.isArray(N)){const A=m?N.length-1:0;N=N[A]}N!==null&&(a[R]=N)}for(const R in S)a[R]=S[R]}}}return a}const Iw=e=>(t,r)=>{const s=w.useContext(Il),a=w.useContext(Ol),l=()=>x2(e,t,s,a);return r?l():Ef(l)},b2=Iw({scrapeMotionValuesFromProps:Xf,createRenderState:Zf}),S2=Iw({scrapeMotionValuesFromProps:vw,createRenderState:_w}),C2=Symbol.for("motionComponentSymbol");function E2(e,t,r){const s=w.useRef(r);w.useInsertionEffect(()=>{s.current=r});const a=w.useRef(null);return w.useCallback(l=>{l&&e.onMount?.(l);const c=s.current;if(typeof c=="function")if(l){const d=c(l);typeof d=="function"&&(a.current=d)}else a.current?(a.current(),a.current=null):c(l);else c&&(c.current=l);t&&(l?t.mount(l):t.unmount())},[t])}const Fw=w.createContext({});function jo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function P2(e,t,r,s,a,l){const{visualElement:c}=w.useContext(Il),d=w.useContext(Mw),h=w.useContext(Ol),p=w.useContext(qf),m=p.reducedMotion,y=p.skipAnimations,b=w.useRef(null),v=w.useRef(!1);s=s||d.renderer,!b.current&&s&&(b.current=s(e,{visualState:t,parent:c,props:r,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:m,skipAnimations:y,isSVG:l}),v.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const P=b.current,S=w.useContext(Fw);P&&!P.projection&&a&&(P.type==="html"||P.type==="svg")&&T2(b.current,r,a,S);const E=w.useRef(!1);w.useInsertionEffect(()=>{P&&E.current&&P.update(r,h)});const T=r[Kx],R=w.useRef(!!T&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return sx(()=>{v.current=!0,P&&(E.current=!0,window.MotionIsMounted=!0,P.updateFeatures(),P.scheduleRenderMicrotask(),R.current&&P.animationState&&P.animationState.animateChanges())}),w.useEffect(()=>{P&&(!R.current&&P.animationState&&P.animationState.animateChanges(),R.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),R.current=!1),P.enteringChildren=void 0)}),P}function T2(e,t,r,s){const{layoutId:a,layout:l,drag:c,dragConstraints:d,layoutScroll:h,layoutRoot:p,layoutCrossfade:m}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:Vw(e.parent)),e.projection.setOptions({layoutId:a,layout:l,alwaysMeasureLayout:!!c||d&&jo(d),visualElement:e,animationType:typeof l=="string"?l:"both",initialPromotionConfig:s,crossfade:m,layoutScroll:h,layoutRoot:p})}function Vw(e){if(e)return e.options.allowProjection!==!1?e.projection:Vw(e.parent)}function Gc(e,{forwardMotionProps:t=!1,type:r}={},s,a){s&&a2(s);const l=r?r==="svg":Jf(e),c=l?S2:b2;function d(p,m){let y;const b={...w.useContext(qf),...p,layoutId:R2(p)},{isStatic:v}=b,P=f2(p),S=c(p,v);if(!v&&typeof window<"u"){k2();const E=N2(b);y=E.MeasureLayout,P.visualElement=P2(e,S,b,a,E.ProjectionNode,l)}return x.jsxs(Il.Provider,{value:P,children:[y&&P.visualElement?x.jsx(y,{visualElement:P.visualElement,...b}):null,v2(e,p,E2(S,P.visualElement,m),S,v,t,l)]})}d.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const h=w.forwardRef(d);return h[C2]=e,h}function R2({layoutId:e}){const t=w.useContext(Cf).id;return t&&e!==void 0?t+"-"+e:e}function k2(e,t){w.useContext(Mw).strict}function N2(e){const t=Dw(),{drag:r,layout:s}=t;if(!r&&!s)return{};const a={...r,...s};return{MeasureLayout:r?.isEnabled(e)||s?.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function A2(e,t){if(typeof Proxy>"u")return Gc;const r=new Map,s=(l,c)=>Gc(l,c,e,t),a=(l,c)=>s(l,c);return new Proxy(a,{get:(l,c)=>c==="create"?s:(r.has(c)||r.set(c,Gc(c,void 0,e,t)),r.get(c))})}const j2=(e,t)=>t.isSVG??Jf(e)?new lM(t):new nM(t,{allowProjection:e!==w.Fragment});class M2 extends Tr{constructor(t){super(t),t.animationState||(t.animationState=hM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ll(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let D2=0;class O2 extends Tr{constructor(){super(...arguments),this.id=D2++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const a=this.node.animationState.setActive("exit",!t);r&&!t&&a.then(()=>{r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const L2={animation:{Feature:M2},exit:{Feature:O2}};function li(e){return{point:{x:e.pageX,y:e.pageY}}}const _2=e=>t=>Hf(t)&&e(t,li(t));function Ys(e,t,r,s){return ti(e,t,_2(r),s)}const zw=({current:e})=>e?e.ownerDocument.defaultView:null,Qy=(e,t)=>Math.abs(e-t);function I2(e,t){const r=Qy(e.x,t.x),s=Qy(e.y,t.y);return Math.sqrt(r**2+s**2)}const Yy=new Set(["auto","scroll"]);class Bw{constructor(t,r,{transformPagePoint:s,contextWindow:a=window,dragSnapToOrigin:l=!1,distanceThreshold:c=3,element:d}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=v=>{this.handleScroll(v.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Oa(this.lastRawMoveEventInfo,this.transformPagePoint));const v=Xc(this.lastMoveEventInfo,this.history),P=this.startEvent!==null,S=I2(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!P&&!S)return;const{point:E}=v,{timestamp:T}=st;this.history.push({...E,timestamp:T});const{onStart:R,onMove:N}=this.handlers;P||(R&&R(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),N&&N(this.lastMoveEvent,v)},this.handlePointerMove=(v,P)=>{this.lastMoveEvent=v,this.lastRawMoveEventInfo=P,this.lastMoveEventInfo=Oa(P,this.transformPagePoint),De.update(this.updatePoint,!0)},this.handlePointerUp=(v,P)=>{this.end();const{onEnd:S,onSessionEnd:E,resumeAnimation:T}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const R=Xc(v.type==="pointercancel"?this.lastMoveEventInfo:Oa(P,this.transformPagePoint),this.history);this.startEvent&&S&&S(v,R),E&&E(v,R)},!Hf(t))return;this.dragSnapToOrigin=l,this.handlers=r,this.transformPagePoint=s,this.distanceThreshold=c,this.contextWindow=a||window;const h=li(t),p=Oa(h,this.transformPagePoint),{point:m}=p,{timestamp:y}=st;this.history=[{...m,timestamp:y}];const{onSessionStart:b}=r;b&&b(t,Xc(p,this.history)),this.removeListeners=si(Ys(this.contextWindow,"pointermove",this.handlePointerMove),Ys(this.contextWindow,"pointerup",this.handlePointerUp),Ys(this.contextWindow,"pointercancel",this.handlePointerUp)),d&&this.startScrollTracking(d)}startScrollTracking(t){let r=t.parentElement;for(;r;){const s=getComputedStyle(r);(Yy.has(s.overflowX)||Yy.has(s.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const r=this.scrollPositions.get(t);if(!r)return;const s=t===window,a=s?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},l={x:a.x-r.x,y:a.y-r.y};l.x===0&&l.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=l.x,this.lastMoveEventInfo.point.y+=l.y):this.history.length>0&&(this.history[0].x-=l.x,this.history[0].y-=l.y),this.scrollPositions.set(t,a),De.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Pr(this.updatePoint)}}function Oa(e,t){return t?{point:t(e.point)}:e}function Gy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Xc({point:e},t){return{point:e,delta:Gy(e,Uw(t)),offset:Gy(e,F2(t)),velocity:V2(t,.1)}}function F2(e){return e[0]}function Uw(e){return e[e.length-1]}function V2(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,s=null;const a=Uw(e);for(;r>=0&&(s=e[r],!(a.timestamp-s.timestamp>_t(t)));)r--;if(!s)return{x:0,y:0};s===e[0]&&e.length>2&&a.timestamp-s.timestamp>_t(t)*2&&(s=e[1]);const l=Qt(a.timestamp-s.timestamp);if(l===0)return{x:0,y:0};const c={x:(a.x-s.x)/l,y:(a.y-s.y)/l};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function z2(e,{min:t,max:r},s){return t!==void 0&&e<t?e=s?Be(t,e,s.min):Math.max(e,t):r!==void 0&&e>r&&(e=s?Be(r,e,s.max):Math.min(e,r)),e}function Xy(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function B2(e,{top:t,left:r,bottom:s,right:a}){return{x:Xy(e.x,r,a),y:Xy(e.y,t,s)}}function qy(e,t){let r=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,s]=[s,r]),{min:r,max:s}}function U2(e,t){return{x:qy(e.x,t.x),y:qy(e.y,t.y)}}function $2(e,t){let r=.5;const s=vt(e),a=vt(t);return a>s?r=Zs(t.min,t.max-s,e.min):s>a&&(r=Zs(e.min,e.max-a,t.min)),An(0,1,r)}function W2(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Xd=.35;function H2(e=Xd){return e===!1?e=0:e===!0&&(e=Xd),{x:Zy(e,"left","right"),y:Zy(e,"top","bottom")}}function Zy(e,t,r){return{min:Jy(e,t),max:Jy(e,r)}}function Jy(e,t){return typeof e=="number"?e:e[t]||0}const K2=new WeakMap;class Q2{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ze(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:s}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const l=y=>{r&&this.snapToCursor(li(y).point),this.stopAnimation()},c=(y,b)=>{const{drag:v,dragPropagation:P,onDragStart:S}=this.getProps();if(v&&!P&&(this.openDragLock&&this.openDragLock(),this.openDragLock=bj(v),!this.openDragLock))return;this.latestPointerEvent=y,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),En(T=>{let R=this.getAxisMotionValue(T).get()||0;if(kn.test(R)){const{projection:N}=this.visualElement;if(N&&N.layout){const A=N.layout.layoutBox[T];A&&(R=vt(A)*(parseFloat(R)/100))}}this.originPoint[T]=R}),S&&De.update(()=>S(y,b),!1,!0),Ud(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},d=(y,b)=>{this.latestPointerEvent=y,this.latestPanInfo=b;const{dragPropagation:v,dragDirectionLock:P,onDirectionLock:S,onDrag:E}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:T}=b;if(P&&this.currentDirection===null){this.currentDirection=G2(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",b.point,T),this.updateAxis("y",b.point,T),this.visualElement.render(),E&&De.update(()=>E(y,b),!1,!0)},h=(y,b)=>{this.latestPointerEvent=y,this.latestPanInfo=b,this.stop(y,b),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:y}=this.getProps();(y||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:m}=this.getProps();this.panSession=new Bw(t,{onSessionStart:l,onStart:c,onMove:d,onSessionEnd:h,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:s,contextWindow:zw(this.visualElement),element:this.visualElement.current})}stop(t,r){const s=t||this.latestPointerEvent,a=r||this.latestPanInfo,l=this.isDragging;if(this.cancel(),!l||!a||!s)return;const{velocity:c}=a;this.startAnimation(c);const{onDragEnd:d}=this.getProps();d&&De.postRender(()=>d(s,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,r,s){const{drag:a}=this.getProps();if(!s||!La(t,a,this.currentDirection))return;const l=this.getAxisMotionValue(t);let c=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(c=z2(c,this.constraints[t],this.elastic[t])),l.set(c)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,a=this.constraints;t&&jo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&s?this.constraints=B2(s.layoutBox,t):this.constraints=!1,this.elastic=H2(r),a!==this.constraints&&!jo(t)&&s&&this.constraints&&!this.hasMutatedConstraints&&En(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=W2(s.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!jo(t))return!1;const s=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const l=Xj(s,a.root,this.visualElement.getTransformPagePoint());let c=U2(a.layout.layoutBox,l);if(r){const d=r(Qj(c));this.hasMutatedConstraints=!!d,d&&(c=uw(d))}return c}startAnimation(t){const{drag:r,dragMomentum:s,dragElastic:a,dragTransition:l,dragSnapToOrigin:c,onDragTransitionEnd:d}=this.getProps(),h=this.constraints||{},p=En(m=>{if(!La(m,r,this.currentDirection))return;let y=h&&h[m]||{};c&&(y={min:0,max:0});const b=a?200:1e6,v=a?40:1e7,P={type:"inertia",velocity:s?t[m]:0,bounceStiffness:b,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...l,...y};return this.startAxisValueAnimation(m,P)});return Promise.all(p).then(d)}startAxisValueAnimation(t,r){const s=this.getAxisMotionValue(t);return Ud(this.visualElement,t),s.start(zf(t,s,0,r,this.visualElement,!1))}stopAnimation(){En(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),a=s[r];return a||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){En(r=>{const{drag:s}=this.getProps();if(!La(r,s,this.currentDirection))return;const{projection:a}=this.visualElement,l=this.getAxisMotionValue(r);if(a&&a.layout){const{min:c,max:d}=a.layout.layoutBox[r],h=l.get()||0;l.set(t[r]-Be(c,d,.5)+h)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:s}=this.visualElement;if(!jo(r)||!s||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};En(c=>{const d=this.getAxisMotionValue(c);if(d&&this.constraints!==!1){const h=d.get();a[c]=$2({min:h,max:h},this.constraints[c])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),En(c=>{if(!La(c,t,null))return;const d=this.getAxisMotionValue(c),{min:h,max:p}=this.constraints[c];d.set(Be(h,p,a[c]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;K2.set(this.visualElement,this);const t=this.visualElement.current,r=Ys(t,"pointerdown",p=>{const{drag:m,dragListener:y=!0}=this.getProps(),b=p.target,v=b!==t&&Rj(b);m&&y&&!v&&this.start(p)});let s;const a=()=>{const{dragConstraints:p}=this.getProps();jo(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),s||(s=Y2(t,p.current,()=>this.scalePositionWithinConstraints())))},{projection:l}=this.visualElement,c=l.addEventListener("measure",a);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),De.read(a);const d=ti(window,"resize",()=>this.scalePositionWithinConstraints()),h=l.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:m})=>{this.isDragging&&m&&(En(y=>{const b=this.getAxisMotionValue(y);b&&(this.originPoint[y]+=p[y].translate,b.set(b.get()+p[y].translate))}),this.visualElement.render())}));return()=>{d(),r(),c(),h&&h(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:s=!1,dragPropagation:a=!1,dragConstraints:l=!1,dragElastic:c=Xd,dragMomentum:d=!0}=t;return{...t,drag:r,dragDirectionLock:s,dragPropagation:a,dragConstraints:l,dragElastic:c,dragMomentum:d}}}function ev(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Y2(e,t,r){const s=iy(e,ev(r)),a=iy(t,ev(r));return()=>{s(),a()}}function La(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function G2(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class X2 extends Tr{constructor(t){super(t),this.removeGroupControls=Yt,this.removeListeners=Yt,this.controls=new Q2(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Yt}update(){const{dragControls:t}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};t!==r&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const qc=e=>(t,r)=>{e&&De.update(()=>e(t,r),!1,!0)};class q2 extends Tr{constructor(){super(...arguments),this.removePointerDownListener=Yt}onPointerDown(t){this.session=new Bw(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zw(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:s,onPanEnd:a}=this.node.getProps();return{onSessionStart:qc(t),onStart:qc(r),onMove:qc(s),onEnd:(l,c)=>{delete this.session,a&&De.postRender(()=>a(l,c))}}}mount(){this.removePointerDownListener=Ys(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Zc=!1;class Z2 extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:s,layoutId:a}=this.props,{projection:l}=t;l&&(r.group&&r.group.add(l),s&&s.register&&a&&s.register(l),Zc&&l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Xa.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:s,drag:a,isPresent:l}=this.props,{projection:c}=s;return c&&(c.isPresent=l,t.layoutDependency!==r&&c.setOptions({...c.options,layoutDependency:r}),Zc=!0,a||t.layoutDependency!==r||r===void 0||t.isPresent!==l?c.willUpdate():this.safeToRemove(),t.isPresent!==l&&(l?c.promote():c.relegate()||De.postRender(()=>{const d=c.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Wf.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:s}=this.props,{projection:a}=t;Zc=!0,a&&(a.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(a),s&&s.deregister&&s.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function $w(e){const[t,r]=jw(),s=w.useContext(Cf);return x.jsx(Z2,{...e,layoutGroup:s,switchLayoutGroup:w.useContext(Fw),isPresent:t,safeToRemove:r})}const J2={pan:{Feature:q2},drag:{Feature:X2,ProjectionNode:Aw,MeasureLayout:$w}};function tv(e,t,r){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",r==="Start");const a="onHover"+r,l=s[a];l&&De.postRender(()=>l(t,li(t)))}class eD extends Tr{mount(){const{current:t}=this.node;t&&(this.unmount=Cj(t,(r,s)=>(tv(this.node,s,"Start"),a=>tv(this.node,a,"End"))))}unmount(){}}class tD extends Tr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=si(ti(this.node.current,"focus",()=>this.onFocus()),ti(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function nv(e,t,r){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",r==="Start");const a="onTap"+(r==="End"?"":r),l=s[a];l&&De.postRender(()=>l(t,li(t)))}class nD extends Tr{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:r,propagate:s}=this.node.props;this.unmount=Nj(t,(a,l)=>(nv(this.node,l,"Start"),(c,{success:d})=>nv(this.node,c,d?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:s?.tap===!1})}unmount(){}}const qd=new WeakMap,Jc=new WeakMap,rD=e=>{const t=qd.get(e.target);t&&t(e)},oD=e=>{e.forEach(rD)};function sD({root:e,...t}){const r=e||document;Jc.has(r)||Jc.set(r,{});const s=Jc.get(r),a=JSON.stringify(t);return s[a]||(s[a]=new IntersectionObserver(oD,{root:e,...t})),s[a]}function iD(e,t,r){const s=sD(t);return qd.set(e,r),s.observe(e),()=>{qd.delete(e),s.unobserve(e)}}const aD={some:0,all:1};class lD extends Tr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:s,amount:a="some",once:l}=t,c={root:r?r.current:void 0,rootMargin:s,threshold:typeof a=="number"?a:aD[a]},d=h=>{const{isIntersecting:p}=h;if(this.isInView===p||(this.isInView=p,l&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:m,onViewportLeave:y}=this.node.getProps(),b=p?m:y;b&&b(h)};return iD(this.node.current,c,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(uD(t,r))&&this.startObserver()}unmount(){}}function uD({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const cD={inView:{Feature:lD},tap:{Feature:nD},focus:{Feature:tD},hover:{Feature:eD}},dD={layout:{ProjectionNode:Aw,MeasureLayout:$w}},fD={...L2,...cD,...J2,...dD},rv=A2(fD,j2);function hD(e){const t=w.useRef({value:e,previous:e});return w.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Fl="Switch",[pD]=Zr(Fl),[mD,gD]=pD(Fl),Ww=w.forwardRef((e,t)=>{const{__scopeSwitch:r,name:s,checked:a,defaultChecked:l,required:c,disabled:d,value:h="on",onCheckedChange:p,form:m,...y}=e,[b,v]=w.useState(null),P=Ue(t,N=>v(N)),S=w.useRef(!1),E=b?m||!!b.closest("form"):!0,[T,R]=nf({prop:a,defaultProp:l??!1,onChange:p,caller:Fl});return x.jsxs(mD,{scope:r,checked:T,disabled:d,children:[x.jsx(je.button,{type:"button",role:"switch","aria-checked":T,"aria-required":c,"data-state":Yw(T),"data-disabled":d?"":void 0,disabled:d,value:h,...y,ref:P,onClick:Re(e.onClick,N=>{R(A=>!A),E&&(S.current=N.isPropagationStopped(),S.current||N.stopPropagation())})}),E&&x.jsx(Qw,{control:b,bubbles:!S.current,name:s,value:h,checked:T,required:c,disabled:d,form:m,style:{transform:"translateX(-100%)"}})]})});Ww.displayName=Fl;var Hw="SwitchThumb",Kw=w.forwardRef((e,t)=>{const{__scopeSwitch:r,...s}=e,a=gD(Hw,r);return x.jsx(je.span,{"data-state":Yw(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:t})});Kw.displayName=Hw;var yD="SwitchBubbleInput",Qw=w.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:s=!0,...a},l)=>{const c=w.useRef(null),d=Ue(c,l),h=hD(r),p=w0(t);return w.useEffect(()=>{const m=c.current;if(!m)return;const y=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(y,"checked").set;if(h!==r&&v){const P=new Event("click",{bubbles:s});v.call(m,r),m.dispatchEvent(P)}},[h,r,s]),x.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:d,style:{...a.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Qw.displayName=yD;function Yw(e){return e?"checked":"unchecked"}var Gw=Ww,vD=Kw;const Xw=w.forwardRef(({className:e,...t},r)=>x.jsx(Gw,{className:xe("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:r,children:x.jsx(vD,{className:xe("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));Xw.displayName=Gw.displayName;var xD=w.createContext(void 0);function wD(e){const t=w.useContext(xD);return e||t||"ltr"}function bD(e,[t,r]){return Math.min(r,Math.max(t,e))}function SD(e,t){return w.useReducer((r,s)=>t[r][s]??r,e)}var eh="ScrollArea",[qw]=Zr(eh),[CD,Gt]=qw(eh),Zw=w.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:s="hover",dir:a,scrollHideDelay:l=600,...c}=e,[d,h]=w.useState(null),[p,m]=w.useState(null),[y,b]=w.useState(null),[v,P]=w.useState(null),[S,E]=w.useState(null),[T,R]=w.useState(0),[N,A]=w.useState(0),[O,F]=w.useState(!1),[$,B]=w.useState(!1),H=Ue(t,ee=>h(ee)),W=wD(a);return x.jsx(CD,{scope:r,type:s,dir:W,scrollHideDelay:l,scrollArea:d,viewport:p,onViewportChange:m,content:y,onContentChange:b,scrollbarX:v,onScrollbarXChange:P,scrollbarXEnabled:O,onScrollbarXEnabledChange:F,scrollbarY:S,onScrollbarYChange:E,scrollbarYEnabled:$,onScrollbarYEnabledChange:B,onCornerWidthChange:R,onCornerHeightChange:A,children:x.jsx(je.div,{dir:W,...c,ref:H,style:{position:"relative","--radix-scroll-area-corner-width":T+"px","--radix-scroll-area-corner-height":N+"px",...e.style}})})});Zw.displayName=eh;var Jw="ScrollAreaViewport",eb=w.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:s,nonce:a,...l}=e,c=Gt(Jw,r),d=w.useRef(null),h=Ue(t,d,c.onViewportChange);return x.jsxs(x.Fragment,{children:[x.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:a}),x.jsx(je.div,{"data-radix-scroll-area-viewport":"",...l,ref:h,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:x.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:s})})]})});eb.displayName=Jw;var Dn="ScrollAreaScrollbar",th=w.forwardRef((e,t)=>{const{forceMount:r,...s}=e,a=Gt(Dn,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:c}=a,d=e.orientation==="horizontal";return w.useEffect(()=>(d?l(!0):c(!0),()=>{d?l(!1):c(!1)}),[d,l,c]),a.type==="hover"?x.jsx(ED,{...s,ref:t,forceMount:r}):a.type==="scroll"?x.jsx(PD,{...s,ref:t,forceMount:r}):a.type==="auto"?x.jsx(tb,{...s,ref:t,forceMount:r}):a.type==="always"?x.jsx(nh,{...s,ref:t}):null});th.displayName=Dn;var ED=w.forwardRef((e,t)=>{const{forceMount:r,...s}=e,a=Gt(Dn,e.__scopeScrollArea),[l,c]=w.useState(!1);return w.useEffect(()=>{const d=a.scrollArea;let h=0;if(d){const p=()=>{window.clearTimeout(h),c(!0)},m=()=>{h=window.setTimeout(()=>c(!1),a.scrollHideDelay)};return d.addEventListener("pointerenter",p),d.addEventListener("pointerleave",m),()=>{window.clearTimeout(h),d.removeEventListener("pointerenter",p),d.removeEventListener("pointerleave",m)}}},[a.scrollArea,a.scrollHideDelay]),x.jsx(jn,{present:r||l,children:x.jsx(tb,{"data-state":l?"visible":"hidden",...s,ref:t})})}),PD=w.forwardRef((e,t)=>{const{forceMount:r,...s}=e,a=Gt(Dn,e.__scopeScrollArea),l=e.orientation==="horizontal",c=zl(()=>h("SCROLL_END"),100),[d,h]=SD("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 w.useEffect(()=>{if(d==="idle"){const p=window.setTimeout(()=>h("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(p)}},[d,a.scrollHideDelay,h]),w.useEffect(()=>{const p=a.viewport,m=l?"scrollLeft":"scrollTop";if(p){let y=p[m];const b=()=>{const v=p[m];y!==v&&(h("SCROLL"),c()),y=v};return p.addEventListener("scroll",b),()=>p.removeEventListener("scroll",b)}},[a.viewport,l,h,c]),x.jsx(jn,{present:r||d!=="hidden",children:x.jsx(nh,{"data-state":d==="hidden"?"hidden":"visible",...s,ref:t,onPointerEnter:Re(e.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:Re(e.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),tb=w.forwardRef((e,t)=>{const r=Gt(Dn,e.__scopeScrollArea),{forceMount:s,...a}=e,[l,c]=w.useState(!1),d=e.orientation==="horizontal",h=zl(()=>{if(r.viewport){const p=r.viewport.offsetWidth<r.viewport.scrollWidth,m=r.viewport.offsetHeight<r.viewport.scrollHeight;c(d?p:m)}},10);return Ko(r.viewport,h),Ko(r.content,h),x.jsx(jn,{present:s||l,children:x.jsx(nh,{"data-state":l?"visible":"hidden",...a,ref:t})})}),nh=w.forwardRef((e,t)=>{const{orientation:r="vertical",...s}=e,a=Gt(Dn,e.__scopeScrollArea),l=w.useRef(null),c=w.useRef(0),[d,h]=w.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=ib(d.viewport,d.content),m={...s,sizes:d,onSizesChange:h,hasThumb:p>0&&p<1,onThumbChange:b=>l.current=b,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:b=>c.current=b};function y(b,v){return jD(b,c.current,d,v)}return r==="horizontal"?x.jsx(TD,{...m,ref:t,onThumbPositionChange:()=>{if(a.viewport&&l.current){const b=a.viewport.scrollLeft,v=ov(b,d,a.dir);l.current.style.transform=`translate3d(${v}px, 0, 0)`}},onWheelScroll:b=>{a.viewport&&(a.viewport.scrollLeft=b)},onDragScroll:b=>{a.viewport&&(a.viewport.scrollLeft=y(b,a.dir))}}):r==="vertical"?x.jsx(RD,{...m,ref:t,onThumbPositionChange:()=>{if(a.viewport&&l.current){const b=a.viewport.scrollTop,v=ov(b,d);l.current.style.transform=`translate3d(0, ${v}px, 0)`}},onWheelScroll:b=>{a.viewport&&(a.viewport.scrollTop=b)},onDragScroll:b=>{a.viewport&&(a.viewport.scrollTop=y(b))}}):null}),TD=w.forwardRef((e,t)=>{const{sizes:r,onSizesChange:s,...a}=e,l=Gt(Dn,e.__scopeScrollArea),[c,d]=w.useState(),h=w.useRef(null),p=Ue(t,h,l.onScrollbarXChange);return w.useEffect(()=>{h.current&&d(getComputedStyle(h.current))},[h]),x.jsx(rb,{"data-orientation":"horizontal",...a,ref:p,sizes:r,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":Vl(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.x),onDragScroll:m=>e.onDragScroll(m.x),onWheelScroll:(m,y)=>{if(l.viewport){const b=l.viewport.scrollLeft+m.deltaX;e.onWheelScroll(b),lb(b,y)&&m.preventDefault()}},onResize:()=>{h.current&&l.viewport&&c&&s({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:yl(c.paddingLeft),paddingEnd:yl(c.paddingRight)}})}})}),RD=w.forwardRef((e,t)=>{const{sizes:r,onSizesChange:s,...a}=e,l=Gt(Dn,e.__scopeScrollArea),[c,d]=w.useState(),h=w.useRef(null),p=Ue(t,h,l.onScrollbarYChange);return w.useEffect(()=>{h.current&&d(getComputedStyle(h.current))},[h]),x.jsx(rb,{"data-orientation":"vertical",...a,ref:p,sizes:r,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":Vl(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.y),onDragScroll:m=>e.onDragScroll(m.y),onWheelScroll:(m,y)=>{if(l.viewport){const b=l.viewport.scrollTop+m.deltaY;e.onWheelScroll(b),lb(b,y)&&m.preventDefault()}},onResize:()=>{h.current&&l.viewport&&c&&s({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:yl(c.paddingTop),paddingEnd:yl(c.paddingBottom)}})}})}),[kD,nb]=qw(Dn),rb=w.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:s,hasThumb:a,onThumbChange:l,onThumbPointerUp:c,onThumbPointerDown:d,onThumbPositionChange:h,onDragScroll:p,onWheelScroll:m,onResize:y,...b}=e,v=Gt(Dn,r),[P,S]=w.useState(null),E=Ue(t,H=>S(H)),T=w.useRef(null),R=w.useRef(""),N=v.viewport,A=s.content-s.viewport,O=at(m),F=at(h),$=zl(y,10);function B(H){if(T.current){const W=H.clientX-T.current.left,ee=H.clientY-T.current.top;p({x:W,y:ee})}}return w.useEffect(()=>{const H=W=>{const ee=W.target;P?.contains(ee)&&O(W,A)};return document.addEventListener("wheel",H,{passive:!1}),()=>document.removeEventListener("wheel",H,{passive:!1})},[N,P,A,O]),w.useEffect(F,[s,F]),Ko(P,$),Ko(v.content,$),x.jsx(kD,{scope:r,scrollbar:P,hasThumb:a,onThumbChange:at(l),onThumbPointerUp:at(c),onThumbPositionChange:F,onThumbPointerDown:at(d),children:x.jsx(je.div,{...b,ref:E,style:{position:"absolute",...b.style},onPointerDown:Re(e.onPointerDown,H=>{H.button===0&&(H.target.setPointerCapture(H.pointerId),T.current=P.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",v.viewport&&(v.viewport.style.scrollBehavior="auto"),B(H))}),onPointerMove:Re(e.onPointerMove,B),onPointerUp:Re(e.onPointerUp,H=>{const W=H.target;W.hasPointerCapture(H.pointerId)&&W.releasePointerCapture(H.pointerId),document.body.style.webkitUserSelect=R.current,v.viewport&&(v.viewport.style.scrollBehavior=""),T.current=null})})})}),gl="ScrollAreaThumb",ob=w.forwardRef((e,t)=>{const{forceMount:r,...s}=e,a=nb(gl,e.__scopeScrollArea);return x.jsx(jn,{present:r||a.hasThumb,children:x.jsx(ND,{ref:t,...s})})}),ND=w.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:s,...a}=e,l=Gt(gl,r),c=nb(gl,r),{onThumbPositionChange:d}=c,h=Ue(t,y=>c.onThumbChange(y)),p=w.useRef(void 0),m=zl(()=>{p.current&&(p.current(),p.current=void 0)},100);return w.useEffect(()=>{const y=l.viewport;if(y){const b=()=>{if(m(),!p.current){const v=MD(y,d);p.current=v,d()}};return d(),y.addEventListener("scroll",b),()=>y.removeEventListener("scroll",b)}},[l.viewport,m,d]),x.jsx(je.div,{"data-state":c.hasThumb?"visible":"hidden",...a,ref:h,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...s},onPointerDownCapture:Re(e.onPointerDownCapture,y=>{const v=y.target.getBoundingClientRect(),P=y.clientX-v.left,S=y.clientY-v.top;c.onThumbPointerDown({x:P,y:S})}),onPointerUp:Re(e.onPointerUp,c.onThumbPointerUp)})});ob.displayName=gl;var rh="ScrollAreaCorner",sb=w.forwardRef((e,t)=>{const r=Gt(rh,e.__scopeScrollArea),s=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&s?x.jsx(AD,{...e,ref:t}):null});sb.displayName=rh;var AD=w.forwardRef((e,t)=>{const{__scopeScrollArea:r,...s}=e,a=Gt(rh,r),[l,c]=w.useState(0),[d,h]=w.useState(0),p=!!(l&&d);return Ko(a.scrollbarX,()=>{const m=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(m),h(m)}),Ko(a.scrollbarY,()=>{const m=a.scrollbarY?.offsetWidth||0;a.onCornerWidthChange(m),c(m)}),p?x.jsx(je.div,{...s,ref:t,style:{width:l,height:d,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function yl(e){return e?parseInt(e,10):0}function ib(e,t){const r=e/t;return isNaN(r)?0:r}function Vl(e){const t=ib(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,s=(e.scrollbar.size-r)*t;return Math.max(s,18)}function jD(e,t,r,s="ltr"){const a=Vl(r),l=a/2,c=t||l,d=a-c,h=r.scrollbar.paddingStart+c,p=r.scrollbar.size-r.scrollbar.paddingEnd-d,m=r.content-r.viewport,y=s==="ltr"?[0,m]:[m*-1,0];return ab([h,p],y)(e)}function ov(e,t,r="ltr"){const s=Vl(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-a,c=t.content-t.viewport,d=l-s,h=r==="ltr"?[0,c]:[c*-1,0],p=bD(e,h);return ab([0,c],[0,d])(p)}function ab(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const s=(t[1]-t[0])/(e[1]-e[0]);return t[0]+s*(r-e[0])}}function lb(e,t){return e>0&&e<t}var MD=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},s=0;return(function a(){const l={left:e.scrollLeft,top:e.scrollTop},c=r.left!==l.left,d=r.top!==l.top;(c||d)&&t(),r=l,s=window.requestAnimationFrame(a)})(),()=>window.cancelAnimationFrame(s)};function zl(e,t){const r=at(e),s=w.useRef(0);return w.useEffect(()=>()=>window.clearTimeout(s.current),[]),w.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(r,t)},[r,t])}function Ko(e,t){const r=at(t);Nn(()=>{let s=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(s),s=window.requestAnimationFrame(r)});return a.observe(e),()=>{window.cancelAnimationFrame(s),a.unobserve(e)}}},[e,r])}var ub=Zw,DD=eb,OD=sb;const cb=w.forwardRef(({className:e,children:t,...r},s)=>x.jsxs(ub,{ref:s,className:xe("relative overflow-hidden",e),...r,children:[x.jsx(DD,{className:"h-full w-full rounded-[inherit]",children:t}),x.jsx(db,{}),x.jsx(OD,{})]}));cb.displayName=ub.displayName;const db=w.forwardRef(({className:e,orientation:t="vertical",...r},s)=>x.jsx(th,{ref:s,orientation:t,className:xe("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),...r,children:x.jsx(ob,{className:"relative flex-1 rounded-full bg-border"})}));db.displayName=th.displayName;const sv=[{bg:"bg-blue-500/5",border:"border-blue-500/20",icon:"text-blue-500",headerBg:"bg-blue-500/10"},{bg:"bg-purple-500/5",border:"border-purple-500/20",icon:"text-purple-500",headerBg:"bg-purple-500/10"},{bg:"bg-emerald-500/5",border:"border-emerald-500/20",icon:"text-emerald-500",headerBg:"bg-emerald-500/10"},{bg:"bg-orange-500/5",border:"border-orange-500/20",icon:"text-orange-500",headerBg:"bg-orange-500/10"},{bg:"bg-pink-500/5",border:"border-pink-500/20",icon:"text-pink-500",headerBg:"bg-pink-500/10"},{bg:"bg-indigo-500/5",border:"border-indigo-500/20",icon:"text-indigo-500",headerBg:"bg-indigo-500/10"},{bg:"bg-rose-500/5",border:"border-rose-500/20",icon:"text-rose-500",headerBg:"bg-rose-500/10"},{bg:"bg-amber-500/5",border:"border-amber-500/20",icon:"text-amber-500",headerBg:"bg-amber-500/10"}];function ed({message:e}){return x.jsx("div",{className:"flex items-center justify-center h-full",children:x.jsx("p",{className:"text-muted-foreground",children:e})})}function LD(){const[e,t]=w.useState([]),[r,s]=w.useState(!0),[a,l]=w.useState(null),c=w.useRef(null),[d,h]=w.useState({}),[p,m]=w.useState(1),[y,b]=w.useState({}),[v,P]=w.useState(!0);w.useEffect(()=>{async function R(){try{s(!0),l(null);const N=await Xr("/api/tables");if(!N.ok)throw new Error("Failed to fetch table names");const A=await N.json(),O=await Promise.all(A.map(async B=>{const H=await Xr(`/api/table/${B}/schema`);if(!H.ok)throw new Error(`Failed to fetch schema for ${B}`);return H.json()}));t(O);const F={},$={};O.forEach((B,H)=>{const W=H%3,ee=Math.floor(H/3);F[B.name]={x:500+W*400,y:500+ee*450},$[B.name]=!0}),h(F),b($)}catch(N){l(N.message)}finally{s(!1)}}R()},[]);const S=R=>{b(N=>({...N,[R]:!N[R]}))},E=R=>{const N={};e.forEach(A=>{N[A.name]=R}),b(N)},T=()=>{const R={};e.forEach((N,A)=>{const O=A%3,F=Math.floor(A/3);R[N.name]={x:500+O*400,y:500+F*450}}),h(R),m(1)};return r?x.jsx(ed,{message:"Loading schemas..."}):a?x.jsx(ed,{message:a}):e.length===0?x.jsx(ed,{message:"No tables found."}):x.jsxs("div",{className:"relative w-full h-full overflow-hidden flex bg-slate-50 dark:bg-slate-950/20",children:[x.jsxs("div",{className:"flex-1 relative overflow-hidden flex flex-col",children:[x.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-[0.03] dark:opacity-[0.05]",style:{backgroundImage:"radial-gradient(circle, currentColor 1px, transparent 1px)",backgroundSize:`${24*p}px ${24*p}px`}}),x.jsxs("div",{className:"absolute top-4 left-4 z-20 flex gap-2",children:[x.jsxs("div",{className:"flex items-center gap-1 bg-background border border-border rounded-md p-1 shadow-sm",children:[x.jsx("button",{onClick:()=>m(R=>Math.max(.5,R-.1)),className:"p-1.5 hover:bg-secondary rounded text-muted-foreground transition-colors",children:x.jsx(BE,{className:"w-3.5 h-3.5"})}),x.jsxs("span",{className:"text-[10px] font-mono w-8 text-center text-muted-foreground",children:[Math.round(p*100),"%"]}),x.jsx("button",{onClick:()=>m(R=>Math.min(2,R+.1)),className:"p-1.5 hover:bg-secondary rounded text-muted-foreground transition-colors",children:x.jsx(VE,{className:"w-3.5 h-3.5"})})]}),x.jsxs("button",{onClick:T,className:"flex items-center gap-2 px-3 py-1.5 bg-background border border-border rounded-md text-xs font-medium hover:bg-secondary transition-colors shadow-sm",children:[x.jsx(NE,{className:"w-3.5 h-3.5"}),"Reset"]})]}),x.jsx("button",{onClick:()=>P(!v),className:xe("absolute top-4 right-4 z-20 p-2 bg-background border border-border rounded-md shadow-sm hover:bg-secondary transition-colors",v&&"bg-secondary text-primary"),children:x.jsx(PE,{className:"w-4 h-4"})}),x.jsx("div",{ref:c,className:"flex-1 overflow-auto relative custom-scrollbar",children:x.jsx("div",{className:"relative origin-top-left",style:{transform:`scale(${p})`,width:"4000px",height:"4000px"},children:x.jsx(s2,{children:e.map((R,N)=>{if(!y[R.name])return null;const A=sv[N%sv.length],O=d[R.name]||{x:0,y:0};return x.jsxs(rv.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},drag:!0,dragMomentum:!1,onDrag:(F,$)=>{h(B=>({...B,[R.name]:{x:B[R.name].x+$.delta.x/p,y:B[R.name].y+$.delta.y/p}}))},style:{left:O.x,top:O.y,position:"absolute"},className:xe("w-[300px] border rounded-xl shadow-lg overflow-hidden cursor-grab active:cursor-grabbing z-10 hover:z-20 transition-shadow hover:shadow-xl bg-background",A.border),children:[x.jsxs("div",{className:xe("p-4 border-b flex items-center gap-3",A.headerBg,A.border),children:[x.jsx("div",{className:xe("p-1.5 rounded-lg bg-background/50 backdrop-blur-sm shadow-sm",A.icon),children:x.jsx(el,{className:"w-4 h-4"})}),x.jsx("h3",{className:"text-sm font-bold text-foreground truncate",children:R.name})]}),x.jsx("div",{className:"p-0",children:x.jsxs("table",{className:"w-full text-left text-xs",children:[x.jsx("thead",{className:"bg-muted/30 text-muted-foreground uppercase tracking-wider",children:x.jsxs("tr",{children:[x.jsx("th",{className:"px-4 py-2 font-semibold",children:"Column"}),x.jsx("th",{className:"px-4 py-2 font-semibold",children:"Type"})]})}),x.jsx("tbody",{className:"divide-y divide-border/50",children:R.columns.map(F=>x.jsxs("tr",{className:"hover:bg-muted/20 transition-colors",children:[x.jsx("td",{className:"px-4 py-2.5",children:x.jsxs("div",{className:"flex items-center gap-2",children:[F.key==="PRI"?x.jsx(Gv,{className:"w-3 h-3 text-amber-500"}):x.jsx("div",{className:"w-3"}),x.jsx("span",{className:xe("font-medium",F.key==="PRI"?"text-foreground":"text-muted-foreground"),children:F.name})]})}),x.jsx("td",{className:"px-4 py-2.5",children:x.jsxs("div",{className:"flex items-center gap-1.5 text-muted-foreground/80",children:[x.jsx(_E,{className:"w-3 h-3"}),x.jsx("span",{className:"font-mono text-[10px]",children:F.type})]})})]},F.name))})]})})]},R.name)})})})})]}),v&&x.jsxs(rv.div,{initial:{x:300},animate:{x:0},className:"w-72 border-l border-border bg-background flex flex-col shadow-xl z-30",children:[x.jsxs("div",{className:"p-4 border-b border-border flex items-center justify-between",children:[x.jsxs("h2",{className:"font-semibold flex items-center gap-2",children:[x.jsx(el,{className:"w-4 h-4 text-primary"}),"Canvas Layers"]}),x.jsxs("div",{className:"flex gap-1",children:[x.jsx("button",{onClick:()=>E(!0),className:"text-[10px] px-2 py-1 rounded bg-secondary hover:bg-secondary/80 font-medium",children:"All"}),x.jsx("button",{onClick:()=>E(!1),className:"text-[10px] px-2 py-1 rounded bg-secondary hover:bg-secondary/80 font-medium",children:"None"})]})]}),x.jsx(cb,{className:"flex-1",children:x.jsx("div",{className:"p-2 space-y-1",children:e.map(R=>x.jsxs("div",{className:xe("flex items-center justify-between p-2 rounded-md transition-colors",y[R.name]?"bg-secondary/30":"hover:bg-secondary/20"),children:[x.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[x.jsx("div",{className:xe("w-2 h-2 rounded-full",y[R.name]?"bg-primary":"bg-muted")}),x.jsx("span",{className:xe("text-sm truncate",!y[R.name]&&"text-muted-foreground line-through opacity-60"),children:R.name})]}),x.jsx(Xw,{checked:y[R.name],onCheckedChange:()=>S(R.name),className:"scale-75"})]},R.name))})}),x.jsxs("div",{className:"p-4 border-t border-border bg-muted/20",children:[x.jsxs("div",{className:"flex items-center justify-between text-[11px] text-muted-foreground mb-2",children:[x.jsx("span",{children:"Visible Tables"}),x.jsxs("span",{className:"font-mono bg-background px-1.5 py-0.5 rounded border border-border",children:[Object.values(y).filter(Boolean).length," / ",e.length]})]}),x.jsx("div",{className:"w-full bg-secondary h-1.5 rounded-full overflow-hidden",children:x.jsx("div",{className:"bg-primary h-full transition-all duration-500",style:{width:`${Object.values(y).filter(Boolean).length/e.length*100}%`}})})]})]})]})}function _D(){const[e,t]=w.useState(null),[r,s]=w.useState("data"),[a,l]=w.useState(""),[c,d]=w.useState(3);w.useEffect(()=>{const m=new URLSearchParams(window.location.search).get("view");(m==="schema"||m==="data"||m==="canvas")&&s(m);async function y(){try{const v=await(await Xr("/api/database")).json();v.success&&l(v.dbname)}catch(b){console.error("Error fetching db name:",b)}}y()},[]);const h=p=>{t(p)};return x.jsx(dN,{selectedTable:e,onSelectTable:h,view:r,onViewChange:s,dbName:a,schemaColumns:c,onSchemaColumnsChange:d,children:r==="data"?x.jsx(fN,{selectedTable:e}):r==="schema"?x.jsx(mN,{columns:c}):x.jsx(LD,{})})}const ID=()=>{const e=rx();return w.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),x.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:x.jsxs("div",{className:"text-center",children:[x.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),x.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),x.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},fb=w.forwardRef(({className:e,type:t,...r},s)=>x.jsx("input",{type:t,className:xe("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:s,...r}));fb.displayName="Input";var FD=Symbol.for("react.lazy"),vl=wl[" use ".trim().toString()];function VD(e){return typeof e=="object"&&e!==null&&"then"in e}function hb(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===FD&&"_payload"in e&&VD(e._payload)}function pb(e){const t=BD(e),r=w.forwardRef((s,a)=>{let{children:l,...c}=s;hb(l)&&typeof vl=="function"&&(l=vl(l._payload));const d=w.Children.toArray(l),h=d.find($D);if(h){const p=h.props.children,m=d.map(y=>y===h?w.Children.count(p)>1?w.Children.only(null):w.isValidElement(p)?p.props.children:null:y);return x.jsx(t,{...c,ref:a,children:w.isValidElement(p)?w.cloneElement(p,void 0,m):null})}return x.jsx(t,{...c,ref:a,children:l})});return r.displayName=`${e}.Slot`,r}var zD=pb("Slot");function BD(e){const t=w.forwardRef((r,s)=>{let{children:a,...l}=r;if(hb(a)&&typeof vl=="function"&&(a=vl(a._payload)),w.isValidElement(a)){const c=HD(a),d=WD(l,a.props);return a.type!==w.Fragment&&(d.ref=s?ef(s,c):c),w.cloneElement(a,d)}return w.Children.count(a)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var UD=Symbol("radix.slottable");function $D(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===UD}function WD(e,t){const r={...t};for(const s in t){const a=e[s],l=t[s];/^on[A-Z]/.test(s)?a&&l?r[s]=(...d)=>{const h=l(...d);return a(...d),h}:a&&(r[s]=a):s==="style"?r[s]={...a,...l}:s==="className"&&(r[s]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}function HD(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const KD=Kv("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),oh=w.forwardRef(({className:e,variant:t,size:r,asChild:s=!1,...a},l)=>{const c=s?zD:"button";return x.jsx(c,{className:xe(KD({variant:t,size:r,className:e})),ref:l,...a})});oh.displayName="Button";var td="focusScope.autoFocusOnMount",nd="focusScope.autoFocusOnUnmount",iv={bubbles:!1,cancelable:!0},QD="FocusScope",mb=w.forwardRef((e,t)=>{const{loop:r=!1,trapped:s=!1,onMountAutoFocus:a,onUnmountAutoFocus:l,...c}=e,[d,h]=w.useState(null),p=at(a),m=at(l),y=w.useRef(null),b=Ue(t,S=>h(S)),v=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(s){let S=function(N){if(v.paused||!d)return;const A=N.target;d.contains(A)?y.current=A:xr(y.current,{select:!0})},E=function(N){if(v.paused||!d)return;const A=N.relatedTarget;A!==null&&(d.contains(A)||xr(y.current,{select:!0}))},T=function(N){if(document.activeElement===document.body)for(const O of N)O.removedNodes.length>0&&xr(d)};document.addEventListener("focusin",S),document.addEventListener("focusout",E);const R=new MutationObserver(T);return d&&R.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",E),R.disconnect()}}},[s,d,v.paused]),w.useEffect(()=>{if(d){lv.add(v);const S=document.activeElement;if(!d.contains(S)){const T=new CustomEvent(td,iv);d.addEventListener(td,p),d.dispatchEvent(T),T.defaultPrevented||(YD(JD(gb(d)),{select:!0}),document.activeElement===S&&xr(d))}return()=>{d.removeEventListener(td,p),setTimeout(()=>{const T=new CustomEvent(nd,iv);d.addEventListener(nd,m),d.dispatchEvent(T),T.defaultPrevented||xr(S??document.body,{select:!0}),d.removeEventListener(nd,m),lv.remove(v)},0)}}},[d,p,m,v]);const P=w.useCallback(S=>{if(!r&&!s||v.paused)return;const E=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,T=document.activeElement;if(E&&T){const R=S.currentTarget,[N,A]=GD(R);N&&A?!S.shiftKey&&T===A?(S.preventDefault(),r&&xr(N,{select:!0})):S.shiftKey&&T===N&&(S.preventDefault(),r&&xr(A,{select:!0})):T===R&&S.preventDefault()}},[r,s,v.paused]);return x.jsx(je.div,{tabIndex:-1,...c,ref:b,onKeyDown:P})});mb.displayName=QD;function YD(e,{select:t=!1}={}){const r=document.activeElement;for(const s of e)if(xr(s,{select:t}),document.activeElement!==r)return}function GD(e){const t=gb(e),r=av(t,e),s=av(t.reverse(),e);return[r,s]}function gb(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function av(e,t){for(const r of e)if(!XD(r,{upTo:t}))return r}function XD(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 qD(e){return e instanceof HTMLInputElement&&"select"in e}function xr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&qD(e)&&t&&e.select()}}var lv=ZD();function ZD(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=uv(e,t),e.unshift(t)},remove(t){e=uv(e,t),e[0]?.resume()}}}function uv(e,t){const r=[...e],s=r.indexOf(t);return s!==-1&&r.splice(s,1),r}function JD(e){return e.filter(t=>t.tagName!=="A")}var rd=0;function eO(){w.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??cv()),document.body.insertAdjacentElement("beforeend",e[1]??cv()),rd++,()=>{rd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),rd--}},[])}function cv(){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 Pn=function(){return Pn=Object.assign||function(t){for(var r,s=1,a=arguments.length;s<a;s++){r=arguments[s];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t},Pn.apply(this,arguments)};function yb(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(r[s[a]]=e[s[a]]);return r}function tO(e,t,r){if(r||arguments.length===2)for(var s=0,a=t.length,l;s<a;s++)(l||!(s in t))&&(l||(l=Array.prototype.slice.call(t,0,s)),l[s]=t[s]);return e.concat(l||Array.prototype.slice.call(t))}var qa="right-scroll-bar-position",Za="width-before-scroll-bar",nO="with-scroll-bars-hidden",rO="--removed-body-scroll-bar-size";function od(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function oO(e,t){var r=w.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(s){var a=r.value;a!==s&&(r.value=s,r.callback(s,a))}}}})[0];return r.callback=t,r.facade}var sO=typeof window<"u"?w.useLayoutEffect:w.useEffect,dv=new WeakMap;function iO(e,t){var r=oO(null,function(s){return e.forEach(function(a){return od(a,s)})});return sO(function(){var s=dv.get(r);if(s){var a=new Set(s),l=new Set(e),c=r.current;a.forEach(function(d){l.has(d)||od(d,null)}),l.forEach(function(d){a.has(d)||od(d,c)})}dv.set(r,e)},[e]),r}function aO(e){return e}function lO(e,t){t===void 0&&(t=aO);var r=[],s=!1,a={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(l){var c=t(l,s);return r.push(c),function(){r=r.filter(function(d){return d!==c})}},assignSyncMedium:function(l){for(s=!0;r.length;){var c=r;r=[],c.forEach(l)}r={push:function(d){return l(d)},filter:function(){return r}}},assignMedium:function(l){s=!0;var c=[];if(r.length){var d=r;r=[],d.forEach(l),c=r}var h=function(){var m=c;c=[],m.forEach(l)},p=function(){return Promise.resolve().then(h)};p(),r={push:function(m){c.push(m),p()},filter:function(m){return c=c.filter(m),r}}}};return a}function uO(e){e===void 0&&(e={});var t=lO(null);return t.options=Pn({async:!0,ssr:!1},e),t}var vb=function(e){var t=e.sideCar,r=yb(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return w.createElement(s,Pn({},r))};vb.isSideCarExport=!0;function cO(e,t){return e.useMedium(t),vb}var xb=uO(),sd=function(){},Bl=w.forwardRef(function(e,t){var r=w.useRef(null),s=w.useState({onScrollCapture:sd,onWheelCapture:sd,onTouchMoveCapture:sd}),a=s[0],l=s[1],c=e.forwardProps,d=e.children,h=e.className,p=e.removeScrollBar,m=e.enabled,y=e.shards,b=e.sideCar,v=e.noRelative,P=e.noIsolation,S=e.inert,E=e.allowPinchZoom,T=e.as,R=T===void 0?"div":T,N=e.gapMode,A=yb(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=b,F=iO([r,t]),$=Pn(Pn({},A),a);return w.createElement(w.Fragment,null,m&&w.createElement(O,{sideCar:xb,removeScrollBar:p,shards:y,noRelative:v,noIsolation:P,inert:S,setCallbacks:l,allowPinchZoom:!!E,lockRef:r,gapMode:N}),c?w.cloneElement(w.Children.only(d),Pn(Pn({},$),{ref:F})):w.createElement(R,Pn({},$,{className:h,ref:F}),d))});Bl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Bl.classNames={fullWidth:Za,zeroRight:qa};var dO=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function fO(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=dO();return t&&e.setAttribute("nonce",t),e}function hO(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function pO(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var mO=function(){var e=0,t=null;return{add:function(r){e==0&&(t=fO())&&(hO(t,r),pO(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},gO=function(){var e=mO();return function(t,r){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},wb=function(){var e=gO(),t=function(r){var s=r.styles,a=r.dynamic;return e(s,a),null};return t},yO={left:0,top:0,right:0,gap:0},id=function(e){return parseInt(e||"",10)||0},vO=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[id(r),id(s),id(a)]},xO=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return yO;var t=vO(e),r=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-r+t[2]-t[0])}},wO=wb(),Bo="data-scroll-locked",bO=function(e,t,r,s){var a=e.left,l=e.top,c=e.right,d=e.gap;return r===void 0&&(r="margin"),`
|
|
17
|
+
`),()=>{O.contains(A)&&O.removeChild(A)}},[t]),x.jsx(t2,{isPresent:t,childRef:d,sizeRef:h,pop:l,children:l===!1?e:w.cloneElement(e,{ref:y})})}const r2=({children:e,initial:t,isPresent:r,onExitComplete:s,custom:a,presenceAffectsLayout:l,mode:c,anchorX:d,anchorY:h,root:p})=>{const m=Ef(o2),y=w.useId();let b=!0,v=w.useMemo(()=>(b=!1,{id:y,initial:t,isPresent:r,custom:a,onExitComplete:P=>{m.set(P,!0);for(const S of m.values())if(!S)return;s&&s()},register:P=>(m.set(P,!1),()=>m.delete(P))}),[r,m,s]);return l&&b&&(v={...v}),w.useMemo(()=>{m.forEach((P,S)=>m.set(S,!1))},[r]),w.useEffect(()=>{!r&&!m.size&&s&&s()},[r]),e=x.jsx(n2,{pop:c==="popLayout",isPresent:r,anchorX:d,anchorY:h,root:p,children:e}),x.jsx(Ol.Provider,{value:v,children:e})};function o2(){return new Map}function jw(e=!0){const t=w.useContext(Ol);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:s,register:a}=t,l=w.useId();w.useEffect(()=>{if(e)return a(l)},[e]);const c=w.useCallback(()=>e&&s&&s(l),[l,s,e]);return!r&&s?[!1,c]:[!0]}const Da=e=>e.key||"";function $y(e){const t=[];return w.Children.forEach(e,r=>{w.isValidElement(r)&&t.push(r)}),t}const s2=({children:e,custom:t,initial:r=!0,onExitComplete:s,presenceAffectsLayout:a=!0,mode:l="sync",propagate:c=!1,anchorX:d="left",anchorY:h="top",root:p})=>{const[m,y]=jw(c),b=w.useMemo(()=>$y(e),[e]),v=c&&!m?[]:b.map(Da),P=w.useRef(!0),S=w.useRef(b),E=Ef(()=>new Map),T=w.useRef(new Set),[R,N]=w.useState(b),[A,O]=w.useState(b);sx(()=>{P.current=!1,S.current=b;for(let z=0;z<A.length;z++){const H=Da(A[z]);v.includes(H)?(E.delete(H),T.current.delete(H)):E.get(H)!==!0&&E.set(H,!1)}},[A,v.length,v.join("-")]);const F=[];if(b!==R){let z=[...b];for(let H=0;H<A.length;H++){const W=A[H],ee=Da(W);v.includes(ee)||(z.splice(H,0,W),F.push(W))}return l==="wait"&&F.length&&(z=F),O($y(z)),N(b),null}const{forceRender:$}=w.useContext(Cf);return x.jsx(x.Fragment,{children:A.map(z=>{const H=Da(z),W=c&&!m?!1:b===A||v.includes(H),ee=()=>{if(T.current.has(H))return;if(T.current.add(H),E.has(H))E.set(H,!0);else return;let X=!0;E.forEach(de=>{de||(X=!1)}),X&&($?.(),O(S.current),c&&y?.(),s&&s())};return x.jsx(r2,{isPresent:W,initial:!P.current||r?void 0:!1,custom:t,presenceAffectsLayout:a,mode:l,root:p,onExitComplete:W?void 0:ee,anchorX:d,anchorY:h,children:z},H)})})},Mw=w.createContext({strict:!1}),Wy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Hy=!1;function i2(){if(Hy)return;const e={};for(const t in Wy)e[t]={isEnabled:r=>Wy[t].some(s=>!!r[s])};aw(e),Hy=!0}function Dw(){return i2(),Hj()}function a2(e){const t=Dw();for(const r in e)t[r]={...t[r],...e[r]};aw(t)}const l2=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ml(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||l2.has(e)}let Ow=e=>!ml(e);function u2(e){typeof e=="function"&&(Ow=t=>t.startsWith("on")?!ml(t):e(t))}try{u2(require("@emotion/is-prop-valid").default)}catch{}function c2(e,t,r){const s={};for(const a in e)a==="values"&&typeof e.values=="object"||(Ow(a)||r===!0&&ml(a)||!t&&!ml(a)||e.draggable&&a.startsWith("onDrag"))&&(s[a]=e[a]);return s}const Il=w.createContext({});function d2(e,t){if(_l(e)){const{initial:r,animate:s}=e;return{initial:r===!1||ei(r)?r:void 0,animate:ei(s)?s:void 0}}return e.inherit!==!1?t:{}}function f2(e){const{initial:t,animate:r}=d2(e,w.useContext(Il));return w.useMemo(()=>({initial:t,animate:r}),[Ky(t),Ky(r)])}function Ky(e){return Array.isArray(e)?e.join(" "):e}const Zf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Lw(e,t,r){for(const s in t)!ft(t[s])&&!pw(s,r)&&(e[s]=t[s])}function h2({transformTemplate:e},t){return w.useMemo(()=>{const r=Zf();return Gf(r,t,e),Object.assign({},r.vars,r.style)},[t])}function p2(e,t){const r=e.style||{},s={};return Lw(s,r,e),Object.assign(s,h2(e,t)),s}function m2(e,t){const r={},s=p2(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=s,r}const _w=()=>({...Zf(),attrs:{}});function g2(e,t,r,s){const a=w.useMemo(()=>{const l=_w();return mw(l,t,yw(s),e.transformTemplate,e.style),{...l.attrs,style:{...l.style}}},[t]);if(e.style){const l={};Lw(l,e.style,e),a.style={...l,...a.style}}return a}const y2=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Jf(e){return typeof e!="string"||e.includes("-")?!1:!!(y2.indexOf(e)>-1||/[A-Z]/u.test(e))}function v2(e,t,r,{latestValues:s},a,l=!1,c){const h=(c??Jf(e)?g2:m2)(t,s,a,e),p=c2(t,typeof e=="string",l),m=e!==w.Fragment?{...p,...h,ref:r}:{},{children:y}=t,b=w.useMemo(()=>ft(y)?y.get():y,[y]);return w.createElement(e,{...m,children:b})}function x2({scrapeMotionValuesFromProps:e,createRenderState:t},r,s,a){return{latestValues:w2(r,s,a,e),renderState:t()}}function w2(e,t,r,s){const a={},l=s(e,{});for(const b in l)a[b]=Ga(l[b]);let{initial:c,animate:d}=e;const h=_l(e),p=sw(e);t&&p&&!h&&e.inherit!==!1&&(c===void 0&&(c=t.initial),d===void 0&&(d=t.animate));let m=r?r.initial===!1:!1;m=m||c===!1;const y=m?d:c;if(y&&typeof y!="boolean"&&!Ll(y)){const b=Array.isArray(y)?y:[y];for(let v=0;v<b.length;v++){const P=zf(e,b[v]);if(P){const{transitionEnd:S,transition:E,...T}=P;for(const R in T){let N=T[R];if(Array.isArray(N)){const A=m?N.length-1:0;N=N[A]}N!==null&&(a[R]=N)}for(const R in S)a[R]=S[R]}}}return a}const Iw=e=>(t,r)=>{const s=w.useContext(Il),a=w.useContext(Ol),l=()=>x2(e,t,s,a);return r?l():Ef(l)},b2=Iw({scrapeMotionValuesFromProps:Xf,createRenderState:Zf}),S2=Iw({scrapeMotionValuesFromProps:vw,createRenderState:_w}),C2=Symbol.for("motionComponentSymbol");function E2(e,t,r){const s=w.useRef(r);w.useInsertionEffect(()=>{s.current=r});const a=w.useRef(null);return w.useCallback(l=>{l&&e.onMount?.(l);const c=s.current;if(typeof c=="function")if(l){const d=c(l);typeof d=="function"&&(a.current=d)}else a.current?(a.current(),a.current=null):c(l);else c&&(c.current=l);t&&(l?t.mount(l):t.unmount())},[t])}const Fw=w.createContext({});function jo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function P2(e,t,r,s,a,l){const{visualElement:c}=w.useContext(Il),d=w.useContext(Mw),h=w.useContext(Ol),p=w.useContext(qf),m=p.reducedMotion,y=p.skipAnimations,b=w.useRef(null),v=w.useRef(!1);s=s||d.renderer,!b.current&&s&&(b.current=s(e,{visualState:t,parent:c,props:r,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:m,skipAnimations:y,isSVG:l}),v.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const P=b.current,S=w.useContext(Fw);P&&!P.projection&&a&&(P.type==="html"||P.type==="svg")&&T2(b.current,r,a,S);const E=w.useRef(!1);w.useInsertionEffect(()=>{P&&E.current&&P.update(r,h)});const T=r[Kx],R=w.useRef(!!T&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return sx(()=>{v.current=!0,P&&(E.current=!0,window.MotionIsMounted=!0,P.updateFeatures(),P.scheduleRenderMicrotask(),R.current&&P.animationState&&P.animationState.animateChanges())}),w.useEffect(()=>{P&&(!R.current&&P.animationState&&P.animationState.animateChanges(),R.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),R.current=!1),P.enteringChildren=void 0)}),P}function T2(e,t,r,s){const{layoutId:a,layout:l,drag:c,dragConstraints:d,layoutScroll:h,layoutRoot:p,layoutCrossfade:m}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:Vw(e.parent)),e.projection.setOptions({layoutId:a,layout:l,alwaysMeasureLayout:!!c||d&&jo(d),visualElement:e,animationType:typeof l=="string"?l:"both",initialPromotionConfig:s,crossfade:m,layoutScroll:h,layoutRoot:p})}function Vw(e){if(e)return e.options.allowProjection!==!1?e.projection:Vw(e.parent)}function Gc(e,{forwardMotionProps:t=!1,type:r}={},s,a){s&&a2(s);const l=r?r==="svg":Jf(e),c=l?S2:b2;function d(p,m){let y;const b={...w.useContext(qf),...p,layoutId:R2(p)},{isStatic:v}=b,P=f2(p),S=c(p,v);if(!v&&typeof window<"u"){k2();const E=N2(b);y=E.MeasureLayout,P.visualElement=P2(e,S,b,a,E.ProjectionNode,l)}return x.jsxs(Il.Provider,{value:P,children:[y&&P.visualElement?x.jsx(y,{visualElement:P.visualElement,...b}):null,v2(e,p,E2(S,P.visualElement,m),S,v,t,l)]})}d.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const h=w.forwardRef(d);return h[C2]=e,h}function R2({layoutId:e}){const t=w.useContext(Cf).id;return t&&e!==void 0?t+"-"+e:e}function k2(e,t){w.useContext(Mw).strict}function N2(e){const t=Dw(),{drag:r,layout:s}=t;if(!r&&!s)return{};const a={...r,...s};return{MeasureLayout:r?.isEnabled(e)||s?.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function A2(e,t){if(typeof Proxy>"u")return Gc;const r=new Map,s=(l,c)=>Gc(l,c,e,t),a=(l,c)=>s(l,c);return new Proxy(a,{get:(l,c)=>c==="create"?s:(r.has(c)||r.set(c,Gc(c,void 0,e,t)),r.get(c))})}const j2=(e,t)=>t.isSVG??Jf(e)?new lM(t):new nM(t,{allowProjection:e!==w.Fragment});class M2 extends Tr{constructor(t){super(t),t.animationState||(t.animationState=hM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ll(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let D2=0;class O2 extends Tr{constructor(){super(...arguments),this.id=D2++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const a=this.node.animationState.setActive("exit",!t);r&&!t&&a.then(()=>{r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const L2={animation:{Feature:M2},exit:{Feature:O2}};function li(e){return{point:{x:e.pageX,y:e.pageY}}}const _2=e=>t=>Hf(t)&&e(t,li(t));function Ys(e,t,r,s){return ti(e,t,_2(r),s)}const Bw=({current:e})=>e?e.ownerDocument.defaultView:null,Qy=(e,t)=>Math.abs(e-t);function I2(e,t){const r=Qy(e.x,t.x),s=Qy(e.y,t.y);return Math.sqrt(r**2+s**2)}const Yy=new Set(["auto","scroll"]);class zw{constructor(t,r,{transformPagePoint:s,contextWindow:a=window,dragSnapToOrigin:l=!1,distanceThreshold:c=3,element:d}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=v=>{this.handleScroll(v.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Oa(this.lastRawMoveEventInfo,this.transformPagePoint));const v=Xc(this.lastMoveEventInfo,this.history),P=this.startEvent!==null,S=I2(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!P&&!S)return;const{point:E}=v,{timestamp:T}=st;this.history.push({...E,timestamp:T});const{onStart:R,onMove:N}=this.handlers;P||(R&&R(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),N&&N(this.lastMoveEvent,v)},this.handlePointerMove=(v,P)=>{this.lastMoveEvent=v,this.lastRawMoveEventInfo=P,this.lastMoveEventInfo=Oa(P,this.transformPagePoint),De.update(this.updatePoint,!0)},this.handlePointerUp=(v,P)=>{this.end();const{onEnd:S,onSessionEnd:E,resumeAnimation:T}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const R=Xc(v.type==="pointercancel"?this.lastMoveEventInfo:Oa(P,this.transformPagePoint),this.history);this.startEvent&&S&&S(v,R),E&&E(v,R)},!Hf(t))return;this.dragSnapToOrigin=l,this.handlers=r,this.transformPagePoint=s,this.distanceThreshold=c,this.contextWindow=a||window;const h=li(t),p=Oa(h,this.transformPagePoint),{point:m}=p,{timestamp:y}=st;this.history=[{...m,timestamp:y}];const{onSessionStart:b}=r;b&&b(t,Xc(p,this.history)),this.removeListeners=si(Ys(this.contextWindow,"pointermove",this.handlePointerMove),Ys(this.contextWindow,"pointerup",this.handlePointerUp),Ys(this.contextWindow,"pointercancel",this.handlePointerUp)),d&&this.startScrollTracking(d)}startScrollTracking(t){let r=t.parentElement;for(;r;){const s=getComputedStyle(r);(Yy.has(s.overflowX)||Yy.has(s.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const r=this.scrollPositions.get(t);if(!r)return;const s=t===window,a=s?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},l={x:a.x-r.x,y:a.y-r.y};l.x===0&&l.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=l.x,this.lastMoveEventInfo.point.y+=l.y):this.history.length>0&&(this.history[0].x-=l.x,this.history[0].y-=l.y),this.scrollPositions.set(t,a),De.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Pr(this.updatePoint)}}function Oa(e,t){return t?{point:t(e.point)}:e}function Gy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Xc({point:e},t){return{point:e,delta:Gy(e,Uw(t)),offset:Gy(e,F2(t)),velocity:V2(t,.1)}}function F2(e){return e[0]}function Uw(e){return e[e.length-1]}function V2(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,s=null;const a=Uw(e);for(;r>=0&&(s=e[r],!(a.timestamp-s.timestamp>_t(t)));)r--;if(!s)return{x:0,y:0};s===e[0]&&e.length>2&&a.timestamp-s.timestamp>_t(t)*2&&(s=e[1]);const l=Qt(a.timestamp-s.timestamp);if(l===0)return{x:0,y:0};const c={x:(a.x-s.x)/l,y:(a.y-s.y)/l};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function B2(e,{min:t,max:r},s){return t!==void 0&&e<t?e=s?ze(t,e,s.min):Math.max(e,t):r!==void 0&&e>r&&(e=s?ze(r,e,s.max):Math.min(e,r)),e}function Xy(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function z2(e,{top:t,left:r,bottom:s,right:a}){return{x:Xy(e.x,r,a),y:Xy(e.y,t,s)}}function qy(e,t){let r=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,s]=[s,r]),{min:r,max:s}}function U2(e,t){return{x:qy(e.x,t.x),y:qy(e.y,t.y)}}function $2(e,t){let r=.5;const s=vt(e),a=vt(t);return a>s?r=Zs(t.min,t.max-s,e.min):s>a&&(r=Zs(e.min,e.max-a,t.min)),An(0,1,r)}function W2(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Xd=.35;function H2(e=Xd){return e===!1?e=0:e===!0&&(e=Xd),{x:Zy(e,"left","right"),y:Zy(e,"top","bottom")}}function Zy(e,t,r){return{min:Jy(e,t),max:Jy(e,r)}}function Jy(e,t){return typeof e=="number"?e:e[t]||0}const K2=new WeakMap;class Q2{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ze(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:s}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const l=y=>{r&&this.snapToCursor(li(y).point),this.stopAnimation()},c=(y,b)=>{const{drag:v,dragPropagation:P,onDragStart:S}=this.getProps();if(v&&!P&&(this.openDragLock&&this.openDragLock(),this.openDragLock=bj(v),!this.openDragLock))return;this.latestPointerEvent=y,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),En(T=>{let R=this.getAxisMotionValue(T).get()||0;if(kn.test(R)){const{projection:N}=this.visualElement;if(N&&N.layout){const A=N.layout.layoutBox[T];A&&(R=vt(A)*(parseFloat(R)/100))}}this.originPoint[T]=R}),S&&De.update(()=>S(y,b),!1,!0),Ud(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},d=(y,b)=>{this.latestPointerEvent=y,this.latestPanInfo=b;const{dragPropagation:v,dragDirectionLock:P,onDirectionLock:S,onDrag:E}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:T}=b;if(P&&this.currentDirection===null){this.currentDirection=G2(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",b.point,T),this.updateAxis("y",b.point,T),this.visualElement.render(),E&&De.update(()=>E(y,b),!1,!0)},h=(y,b)=>{this.latestPointerEvent=y,this.latestPanInfo=b,this.stop(y,b),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:y}=this.getProps();(y||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:m}=this.getProps();this.panSession=new zw(t,{onSessionStart:l,onStart:c,onMove:d,onSessionEnd:h,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:s,contextWindow:Bw(this.visualElement),element:this.visualElement.current})}stop(t,r){const s=t||this.latestPointerEvent,a=r||this.latestPanInfo,l=this.isDragging;if(this.cancel(),!l||!a||!s)return;const{velocity:c}=a;this.startAnimation(c);const{onDragEnd:d}=this.getProps();d&&De.postRender(()=>d(s,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,r,s){const{drag:a}=this.getProps();if(!s||!La(t,a,this.currentDirection))return;const l=this.getAxisMotionValue(t);let c=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(c=B2(c,this.constraints[t],this.elastic[t])),l.set(c)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,a=this.constraints;t&&jo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&s?this.constraints=z2(s.layoutBox,t):this.constraints=!1,this.elastic=H2(r),a!==this.constraints&&!jo(t)&&s&&this.constraints&&!this.hasMutatedConstraints&&En(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=W2(s.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!jo(t))return!1;const s=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const l=Xj(s,a.root,this.visualElement.getTransformPagePoint());let c=U2(a.layout.layoutBox,l);if(r){const d=r(Qj(c));this.hasMutatedConstraints=!!d,d&&(c=uw(d))}return c}startAnimation(t){const{drag:r,dragMomentum:s,dragElastic:a,dragTransition:l,dragSnapToOrigin:c,onDragTransitionEnd:d}=this.getProps(),h=this.constraints||{},p=En(m=>{if(!La(m,r,this.currentDirection))return;let y=h&&h[m]||{};c&&(y={min:0,max:0});const b=a?200:1e6,v=a?40:1e7,P={type:"inertia",velocity:s?t[m]:0,bounceStiffness:b,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...l,...y};return this.startAxisValueAnimation(m,P)});return Promise.all(p).then(d)}startAxisValueAnimation(t,r){const s=this.getAxisMotionValue(t);return Ud(this.visualElement,t),s.start(Bf(t,s,0,r,this.visualElement,!1))}stopAnimation(){En(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),a=s[r];return a||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){En(r=>{const{drag:s}=this.getProps();if(!La(r,s,this.currentDirection))return;const{projection:a}=this.visualElement,l=this.getAxisMotionValue(r);if(a&&a.layout){const{min:c,max:d}=a.layout.layoutBox[r],h=l.get()||0;l.set(t[r]-ze(c,d,.5)+h)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:s}=this.visualElement;if(!jo(r)||!s||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};En(c=>{const d=this.getAxisMotionValue(c);if(d&&this.constraints!==!1){const h=d.get();a[c]=$2({min:h,max:h},this.constraints[c])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),En(c=>{if(!La(c,t,null))return;const d=this.getAxisMotionValue(c),{min:h,max:p}=this.constraints[c];d.set(ze(h,p,a[c]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;K2.set(this.visualElement,this);const t=this.visualElement.current,r=Ys(t,"pointerdown",p=>{const{drag:m,dragListener:y=!0}=this.getProps(),b=p.target,v=b!==t&&Rj(b);m&&y&&!v&&this.start(p)});let s;const a=()=>{const{dragConstraints:p}=this.getProps();jo(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),s||(s=Y2(t,p.current,()=>this.scalePositionWithinConstraints())))},{projection:l}=this.visualElement,c=l.addEventListener("measure",a);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),De.read(a);const d=ti(window,"resize",()=>this.scalePositionWithinConstraints()),h=l.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:m})=>{this.isDragging&&m&&(En(y=>{const b=this.getAxisMotionValue(y);b&&(this.originPoint[y]+=p[y].translate,b.set(b.get()+p[y].translate))}),this.visualElement.render())}));return()=>{d(),r(),c(),h&&h(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:s=!1,dragPropagation:a=!1,dragConstraints:l=!1,dragElastic:c=Xd,dragMomentum:d=!0}=t;return{...t,drag:r,dragDirectionLock:s,dragPropagation:a,dragConstraints:l,dragElastic:c,dragMomentum:d}}}function ev(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Y2(e,t,r){const s=iy(e,ev(r)),a=iy(t,ev(r));return()=>{s(),a()}}function La(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function G2(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class X2 extends Tr{constructor(t){super(t),this.removeGroupControls=Yt,this.removeListeners=Yt,this.controls=new Q2(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Yt}update(){const{dragControls:t}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};t!==r&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const qc=e=>(t,r)=>{e&&De.update(()=>e(t,r),!1,!0)};class q2 extends Tr{constructor(){super(...arguments),this.removePointerDownListener=Yt}onPointerDown(t){this.session=new zw(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Bw(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:s,onPanEnd:a}=this.node.getProps();return{onSessionStart:qc(t),onStart:qc(r),onMove:qc(s),onEnd:(l,c)=>{delete this.session,a&&De.postRender(()=>a(l,c))}}}mount(){this.removePointerDownListener=Ys(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Zc=!1;class Z2 extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:s,layoutId:a}=this.props,{projection:l}=t;l&&(r.group&&r.group.add(l),s&&s.register&&a&&s.register(l),Zc&&l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Xa.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:s,drag:a,isPresent:l}=this.props,{projection:c}=s;return c&&(c.isPresent=l,t.layoutDependency!==r&&c.setOptions({...c.options,layoutDependency:r}),Zc=!0,a||t.layoutDependency!==r||r===void 0||t.isPresent!==l?c.willUpdate():this.safeToRemove(),t.isPresent!==l&&(l?c.promote():c.relegate()||De.postRender(()=>{const d=c.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Wf.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:s}=this.props,{projection:a}=t;Zc=!0,a&&(a.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(a),s&&s.deregister&&s.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function $w(e){const[t,r]=jw(),s=w.useContext(Cf);return x.jsx(Z2,{...e,layoutGroup:s,switchLayoutGroup:w.useContext(Fw),isPresent:t,safeToRemove:r})}const J2={pan:{Feature:q2},drag:{Feature:X2,ProjectionNode:Aw,MeasureLayout:$w}};function tv(e,t,r){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",r==="Start");const a="onHover"+r,l=s[a];l&&De.postRender(()=>l(t,li(t)))}class eD extends Tr{mount(){const{current:t}=this.node;t&&(this.unmount=Cj(t,(r,s)=>(tv(this.node,s,"Start"),a=>tv(this.node,a,"End"))))}unmount(){}}class tD extends Tr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=si(ti(this.node.current,"focus",()=>this.onFocus()),ti(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function nv(e,t,r){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",r==="Start");const a="onTap"+(r==="End"?"":r),l=s[a];l&&De.postRender(()=>l(t,li(t)))}class nD extends Tr{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:r,propagate:s}=this.node.props;this.unmount=Nj(t,(a,l)=>(nv(this.node,l,"Start"),(c,{success:d})=>nv(this.node,c,d?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:s?.tap===!1})}unmount(){}}const qd=new WeakMap,Jc=new WeakMap,rD=e=>{const t=qd.get(e.target);t&&t(e)},oD=e=>{e.forEach(rD)};function sD({root:e,...t}){const r=e||document;Jc.has(r)||Jc.set(r,{});const s=Jc.get(r),a=JSON.stringify(t);return s[a]||(s[a]=new IntersectionObserver(oD,{root:e,...t})),s[a]}function iD(e,t,r){const s=sD(t);return qd.set(e,r),s.observe(e),()=>{qd.delete(e),s.unobserve(e)}}const aD={some:0,all:1};class lD extends Tr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:s,amount:a="some",once:l}=t,c={root:r?r.current:void 0,rootMargin:s,threshold:typeof a=="number"?a:aD[a]},d=h=>{const{isIntersecting:p}=h;if(this.isInView===p||(this.isInView=p,l&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:m,onViewportLeave:y}=this.node.getProps(),b=p?m:y;b&&b(h)};return iD(this.node.current,c,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(uD(t,r))&&this.startObserver()}unmount(){}}function uD({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const cD={inView:{Feature:lD},tap:{Feature:nD},focus:{Feature:tD},hover:{Feature:eD}},dD={layout:{ProjectionNode:Aw,MeasureLayout:$w}},fD={...L2,...cD,...J2,...dD},rv=A2(fD,j2);function hD(e){const t=w.useRef({value:e,previous:e});return w.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Fl="Switch",[pD]=Zr(Fl),[mD,gD]=pD(Fl),Ww=w.forwardRef((e,t)=>{const{__scopeSwitch:r,name:s,checked:a,defaultChecked:l,required:c,disabled:d,value:h="on",onCheckedChange:p,form:m,...y}=e,[b,v]=w.useState(null),P=Ue(t,N=>v(N)),S=w.useRef(!1),E=b?m||!!b.closest("form"):!0,[T,R]=nf({prop:a,defaultProp:l??!1,onChange:p,caller:Fl});return x.jsxs(mD,{scope:r,checked:T,disabled:d,children:[x.jsx(je.button,{type:"button",role:"switch","aria-checked":T,"aria-required":c,"data-state":Yw(T),"data-disabled":d?"":void 0,disabled:d,value:h,...y,ref:P,onClick:Re(e.onClick,N=>{R(A=>!A),E&&(S.current=N.isPropagationStopped(),S.current||N.stopPropagation())})}),E&&x.jsx(Qw,{control:b,bubbles:!S.current,name:s,value:h,checked:T,required:c,disabled:d,form:m,style:{transform:"translateX(-100%)"}})]})});Ww.displayName=Fl;var Hw="SwitchThumb",Kw=w.forwardRef((e,t)=>{const{__scopeSwitch:r,...s}=e,a=gD(Hw,r);return x.jsx(je.span,{"data-state":Yw(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:t})});Kw.displayName=Hw;var yD="SwitchBubbleInput",Qw=w.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:s=!0,...a},l)=>{const c=w.useRef(null),d=Ue(c,l),h=hD(r),p=w0(t);return w.useEffect(()=>{const m=c.current;if(!m)return;const y=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(y,"checked").set;if(h!==r&&v){const P=new Event("click",{bubbles:s});v.call(m,r),m.dispatchEvent(P)}},[h,r,s]),x.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:d,style:{...a.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Qw.displayName=yD;function Yw(e){return e?"checked":"unchecked"}var Gw=Ww,vD=Kw;const Xw=w.forwardRef(({className:e,...t},r)=>x.jsx(Gw,{className:xe("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:r,children:x.jsx(vD,{className:xe("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));Xw.displayName=Gw.displayName;var xD=w.createContext(void 0);function wD(e){const t=w.useContext(xD);return e||t||"ltr"}function bD(e,[t,r]){return Math.min(r,Math.max(t,e))}function SD(e,t){return w.useReducer((r,s)=>t[r][s]??r,e)}var eh="ScrollArea",[qw]=Zr(eh),[CD,Gt]=qw(eh),Zw=w.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:s="hover",dir:a,scrollHideDelay:l=600,...c}=e,[d,h]=w.useState(null),[p,m]=w.useState(null),[y,b]=w.useState(null),[v,P]=w.useState(null),[S,E]=w.useState(null),[T,R]=w.useState(0),[N,A]=w.useState(0),[O,F]=w.useState(!1),[$,z]=w.useState(!1),H=Ue(t,ee=>h(ee)),W=wD(a);return x.jsx(CD,{scope:r,type:s,dir:W,scrollHideDelay:l,scrollArea:d,viewport:p,onViewportChange:m,content:y,onContentChange:b,scrollbarX:v,onScrollbarXChange:P,scrollbarXEnabled:O,onScrollbarXEnabledChange:F,scrollbarY:S,onScrollbarYChange:E,scrollbarYEnabled:$,onScrollbarYEnabledChange:z,onCornerWidthChange:R,onCornerHeightChange:A,children:x.jsx(je.div,{dir:W,...c,ref:H,style:{position:"relative","--radix-scroll-area-corner-width":T+"px","--radix-scroll-area-corner-height":N+"px",...e.style}})})});Zw.displayName=eh;var Jw="ScrollAreaViewport",eb=w.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:s,nonce:a,...l}=e,c=Gt(Jw,r),d=w.useRef(null),h=Ue(t,d,c.onViewportChange);return x.jsxs(x.Fragment,{children:[x.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:a}),x.jsx(je.div,{"data-radix-scroll-area-viewport":"",...l,ref:h,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:x.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:s})})]})});eb.displayName=Jw;var Dn="ScrollAreaScrollbar",th=w.forwardRef((e,t)=>{const{forceMount:r,...s}=e,a=Gt(Dn,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:c}=a,d=e.orientation==="horizontal";return w.useEffect(()=>(d?l(!0):c(!0),()=>{d?l(!1):c(!1)}),[d,l,c]),a.type==="hover"?x.jsx(ED,{...s,ref:t,forceMount:r}):a.type==="scroll"?x.jsx(PD,{...s,ref:t,forceMount:r}):a.type==="auto"?x.jsx(tb,{...s,ref:t,forceMount:r}):a.type==="always"?x.jsx(nh,{...s,ref:t}):null});th.displayName=Dn;var ED=w.forwardRef((e,t)=>{const{forceMount:r,...s}=e,a=Gt(Dn,e.__scopeScrollArea),[l,c]=w.useState(!1);return w.useEffect(()=>{const d=a.scrollArea;let h=0;if(d){const p=()=>{window.clearTimeout(h),c(!0)},m=()=>{h=window.setTimeout(()=>c(!1),a.scrollHideDelay)};return d.addEventListener("pointerenter",p),d.addEventListener("pointerleave",m),()=>{window.clearTimeout(h),d.removeEventListener("pointerenter",p),d.removeEventListener("pointerleave",m)}}},[a.scrollArea,a.scrollHideDelay]),x.jsx(jn,{present:r||l,children:x.jsx(tb,{"data-state":l?"visible":"hidden",...s,ref:t})})}),PD=w.forwardRef((e,t)=>{const{forceMount:r,...s}=e,a=Gt(Dn,e.__scopeScrollArea),l=e.orientation==="horizontal",c=Bl(()=>h("SCROLL_END"),100),[d,h]=SD("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 w.useEffect(()=>{if(d==="idle"){const p=window.setTimeout(()=>h("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(p)}},[d,a.scrollHideDelay,h]),w.useEffect(()=>{const p=a.viewport,m=l?"scrollLeft":"scrollTop";if(p){let y=p[m];const b=()=>{const v=p[m];y!==v&&(h("SCROLL"),c()),y=v};return p.addEventListener("scroll",b),()=>p.removeEventListener("scroll",b)}},[a.viewport,l,h,c]),x.jsx(jn,{present:r||d!=="hidden",children:x.jsx(nh,{"data-state":d==="hidden"?"hidden":"visible",...s,ref:t,onPointerEnter:Re(e.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:Re(e.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),tb=w.forwardRef((e,t)=>{const r=Gt(Dn,e.__scopeScrollArea),{forceMount:s,...a}=e,[l,c]=w.useState(!1),d=e.orientation==="horizontal",h=Bl(()=>{if(r.viewport){const p=r.viewport.offsetWidth<r.viewport.scrollWidth,m=r.viewport.offsetHeight<r.viewport.scrollHeight;c(d?p:m)}},10);return Ko(r.viewport,h),Ko(r.content,h),x.jsx(jn,{present:s||l,children:x.jsx(nh,{"data-state":l?"visible":"hidden",...a,ref:t})})}),nh=w.forwardRef((e,t)=>{const{orientation:r="vertical",...s}=e,a=Gt(Dn,e.__scopeScrollArea),l=w.useRef(null),c=w.useRef(0),[d,h]=w.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=ib(d.viewport,d.content),m={...s,sizes:d,onSizesChange:h,hasThumb:p>0&&p<1,onThumbChange:b=>l.current=b,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:b=>c.current=b};function y(b,v){return jD(b,c.current,d,v)}return r==="horizontal"?x.jsx(TD,{...m,ref:t,onThumbPositionChange:()=>{if(a.viewport&&l.current){const b=a.viewport.scrollLeft,v=ov(b,d,a.dir);l.current.style.transform=`translate3d(${v}px, 0, 0)`}},onWheelScroll:b=>{a.viewport&&(a.viewport.scrollLeft=b)},onDragScroll:b=>{a.viewport&&(a.viewport.scrollLeft=y(b,a.dir))}}):r==="vertical"?x.jsx(RD,{...m,ref:t,onThumbPositionChange:()=>{if(a.viewport&&l.current){const b=a.viewport.scrollTop,v=ov(b,d);l.current.style.transform=`translate3d(0, ${v}px, 0)`}},onWheelScroll:b=>{a.viewport&&(a.viewport.scrollTop=b)},onDragScroll:b=>{a.viewport&&(a.viewport.scrollTop=y(b))}}):null}),TD=w.forwardRef((e,t)=>{const{sizes:r,onSizesChange:s,...a}=e,l=Gt(Dn,e.__scopeScrollArea),[c,d]=w.useState(),h=w.useRef(null),p=Ue(t,h,l.onScrollbarXChange);return w.useEffect(()=>{h.current&&d(getComputedStyle(h.current))},[h]),x.jsx(rb,{"data-orientation":"horizontal",...a,ref:p,sizes:r,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":Vl(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.x),onDragScroll:m=>e.onDragScroll(m.x),onWheelScroll:(m,y)=>{if(l.viewport){const b=l.viewport.scrollLeft+m.deltaX;e.onWheelScroll(b),lb(b,y)&&m.preventDefault()}},onResize:()=>{h.current&&l.viewport&&c&&s({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:yl(c.paddingLeft),paddingEnd:yl(c.paddingRight)}})}})}),RD=w.forwardRef((e,t)=>{const{sizes:r,onSizesChange:s,...a}=e,l=Gt(Dn,e.__scopeScrollArea),[c,d]=w.useState(),h=w.useRef(null),p=Ue(t,h,l.onScrollbarYChange);return w.useEffect(()=>{h.current&&d(getComputedStyle(h.current))},[h]),x.jsx(rb,{"data-orientation":"vertical",...a,ref:p,sizes:r,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":Vl(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.y),onDragScroll:m=>e.onDragScroll(m.y),onWheelScroll:(m,y)=>{if(l.viewport){const b=l.viewport.scrollTop+m.deltaY;e.onWheelScroll(b),lb(b,y)&&m.preventDefault()}},onResize:()=>{h.current&&l.viewport&&c&&s({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:yl(c.paddingTop),paddingEnd:yl(c.paddingBottom)}})}})}),[kD,nb]=qw(Dn),rb=w.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:s,hasThumb:a,onThumbChange:l,onThumbPointerUp:c,onThumbPointerDown:d,onThumbPositionChange:h,onDragScroll:p,onWheelScroll:m,onResize:y,...b}=e,v=Gt(Dn,r),[P,S]=w.useState(null),E=Ue(t,H=>S(H)),T=w.useRef(null),R=w.useRef(""),N=v.viewport,A=s.content-s.viewport,O=at(m),F=at(h),$=Bl(y,10);function z(H){if(T.current){const W=H.clientX-T.current.left,ee=H.clientY-T.current.top;p({x:W,y:ee})}}return w.useEffect(()=>{const H=W=>{const ee=W.target;P?.contains(ee)&&O(W,A)};return document.addEventListener("wheel",H,{passive:!1}),()=>document.removeEventListener("wheel",H,{passive:!1})},[N,P,A,O]),w.useEffect(F,[s,F]),Ko(P,$),Ko(v.content,$),x.jsx(kD,{scope:r,scrollbar:P,hasThumb:a,onThumbChange:at(l),onThumbPointerUp:at(c),onThumbPositionChange:F,onThumbPointerDown:at(d),children:x.jsx(je.div,{...b,ref:E,style:{position:"absolute",...b.style},onPointerDown:Re(e.onPointerDown,H=>{H.button===0&&(H.target.setPointerCapture(H.pointerId),T.current=P.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",v.viewport&&(v.viewport.style.scrollBehavior="auto"),z(H))}),onPointerMove:Re(e.onPointerMove,z),onPointerUp:Re(e.onPointerUp,H=>{const W=H.target;W.hasPointerCapture(H.pointerId)&&W.releasePointerCapture(H.pointerId),document.body.style.webkitUserSelect=R.current,v.viewport&&(v.viewport.style.scrollBehavior=""),T.current=null})})})}),gl="ScrollAreaThumb",ob=w.forwardRef((e,t)=>{const{forceMount:r,...s}=e,a=nb(gl,e.__scopeScrollArea);return x.jsx(jn,{present:r||a.hasThumb,children:x.jsx(ND,{ref:t,...s})})}),ND=w.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:s,...a}=e,l=Gt(gl,r),c=nb(gl,r),{onThumbPositionChange:d}=c,h=Ue(t,y=>c.onThumbChange(y)),p=w.useRef(void 0),m=Bl(()=>{p.current&&(p.current(),p.current=void 0)},100);return w.useEffect(()=>{const y=l.viewport;if(y){const b=()=>{if(m(),!p.current){const v=MD(y,d);p.current=v,d()}};return d(),y.addEventListener("scroll",b),()=>y.removeEventListener("scroll",b)}},[l.viewport,m,d]),x.jsx(je.div,{"data-state":c.hasThumb?"visible":"hidden",...a,ref:h,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...s},onPointerDownCapture:Re(e.onPointerDownCapture,y=>{const v=y.target.getBoundingClientRect(),P=y.clientX-v.left,S=y.clientY-v.top;c.onThumbPointerDown({x:P,y:S})}),onPointerUp:Re(e.onPointerUp,c.onThumbPointerUp)})});ob.displayName=gl;var rh="ScrollAreaCorner",sb=w.forwardRef((e,t)=>{const r=Gt(rh,e.__scopeScrollArea),s=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&s?x.jsx(AD,{...e,ref:t}):null});sb.displayName=rh;var AD=w.forwardRef((e,t)=>{const{__scopeScrollArea:r,...s}=e,a=Gt(rh,r),[l,c]=w.useState(0),[d,h]=w.useState(0),p=!!(l&&d);return Ko(a.scrollbarX,()=>{const m=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(m),h(m)}),Ko(a.scrollbarY,()=>{const m=a.scrollbarY?.offsetWidth||0;a.onCornerWidthChange(m),c(m)}),p?x.jsx(je.div,{...s,ref:t,style:{width:l,height:d,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function yl(e){return e?parseInt(e,10):0}function ib(e,t){const r=e/t;return isNaN(r)?0:r}function Vl(e){const t=ib(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,s=(e.scrollbar.size-r)*t;return Math.max(s,18)}function jD(e,t,r,s="ltr"){const a=Vl(r),l=a/2,c=t||l,d=a-c,h=r.scrollbar.paddingStart+c,p=r.scrollbar.size-r.scrollbar.paddingEnd-d,m=r.content-r.viewport,y=s==="ltr"?[0,m]:[m*-1,0];return ab([h,p],y)(e)}function ov(e,t,r="ltr"){const s=Vl(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-a,c=t.content-t.viewport,d=l-s,h=r==="ltr"?[0,c]:[c*-1,0],p=bD(e,h);return ab([0,c],[0,d])(p)}function ab(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const s=(t[1]-t[0])/(e[1]-e[0]);return t[0]+s*(r-e[0])}}function lb(e,t){return e>0&&e<t}var MD=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},s=0;return(function a(){const l={left:e.scrollLeft,top:e.scrollTop},c=r.left!==l.left,d=r.top!==l.top;(c||d)&&t(),r=l,s=window.requestAnimationFrame(a)})(),()=>window.cancelAnimationFrame(s)};function Bl(e,t){const r=at(e),s=w.useRef(0);return w.useEffect(()=>()=>window.clearTimeout(s.current),[]),w.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(r,t)},[r,t])}function Ko(e,t){const r=at(t);Nn(()=>{let s=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(s),s=window.requestAnimationFrame(r)});return a.observe(e),()=>{window.cancelAnimationFrame(s),a.unobserve(e)}}},[e,r])}var ub=Zw,DD=eb,OD=sb;const cb=w.forwardRef(({className:e,children:t,...r},s)=>x.jsxs(ub,{ref:s,className:xe("relative overflow-hidden",e),...r,children:[x.jsx(DD,{className:"h-full w-full rounded-[inherit]",children:t}),x.jsx(db,{}),x.jsx(OD,{})]}));cb.displayName=ub.displayName;const db=w.forwardRef(({className:e,orientation:t="vertical",...r},s)=>x.jsx(th,{ref:s,orientation:t,className:xe("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),...r,children:x.jsx(ob,{className:"relative flex-1 rounded-full bg-border"})}));db.displayName=th.displayName;const sv=[{bg:"bg-blue-500/5",border:"border-blue-500/20",icon:"text-blue-500",headerBg:"bg-blue-500/10"},{bg:"bg-purple-500/5",border:"border-purple-500/20",icon:"text-purple-500",headerBg:"bg-purple-500/10"},{bg:"bg-emerald-500/5",border:"border-emerald-500/20",icon:"text-emerald-500",headerBg:"bg-emerald-500/10"},{bg:"bg-orange-500/5",border:"border-orange-500/20",icon:"text-orange-500",headerBg:"bg-orange-500/10"},{bg:"bg-pink-500/5",border:"border-pink-500/20",icon:"text-pink-500",headerBg:"bg-pink-500/10"},{bg:"bg-indigo-500/5",border:"border-indigo-500/20",icon:"text-indigo-500",headerBg:"bg-indigo-500/10"},{bg:"bg-rose-500/5",border:"border-rose-500/20",icon:"text-rose-500",headerBg:"bg-rose-500/10"},{bg:"bg-amber-500/5",border:"border-amber-500/20",icon:"text-amber-500",headerBg:"bg-amber-500/10"}];function ed({message:e}){return x.jsx("div",{className:"flex items-center justify-center h-full",children:x.jsx("p",{className:"text-muted-foreground",children:e})})}function LD(){const[e,t]=w.useState([]),[r,s]=w.useState(!0),[a,l]=w.useState(null),c=w.useRef(null),[d,h]=w.useState({}),[p,m]=w.useState(1),[y,b]=w.useState({}),[v,P]=w.useState(!0);w.useEffect(()=>{async function R(){try{s(!0),l(null);const N=await Xr("/api/tables");if(!N.ok)throw new Error("Failed to fetch table names");const A=await N.json(),O=await Promise.all(A.map(async z=>{const H=await Xr(`/api/table/${z}/schema`);if(!H.ok)throw new Error(`Failed to fetch schema for ${z}`);return H.json()}));t(O);const F={},$={};O.forEach((z,H)=>{const W=H%3,ee=Math.floor(H/3);F[z.name]={x:500+W*400,y:500+ee*450},$[z.name]=!0}),h(F),b($)}catch(N){l(N.message)}finally{s(!1)}}R()},[]);const S=R=>{b(N=>({...N,[R]:!N[R]}))},E=R=>{const N={};e.forEach(A=>{N[A.name]=R}),b(N)},T=()=>{const R={};e.forEach((N,A)=>{const O=A%3,F=Math.floor(A/3);R[N.name]={x:500+O*400,y:500+F*450}}),h(R),m(1)};return r?x.jsx(ed,{message:"Loading schemas..."}):a?x.jsx(ed,{message:a}):e.length===0?x.jsx(ed,{message:"No tables found."}):x.jsxs("div",{className:"relative w-full h-full overflow-hidden flex bg-slate-50 dark:bg-slate-950/20",children:[x.jsxs("div",{className:"flex-1 relative overflow-hidden flex flex-col",children:[x.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-[0.03] dark:opacity-[0.05]",style:{backgroundImage:"radial-gradient(circle, currentColor 1px, transparent 1px)",backgroundSize:`${24*p}px ${24*p}px`}}),x.jsxs("div",{className:"absolute top-4 left-4 z-20 flex gap-2",children:[x.jsxs("div",{className:"flex items-center gap-1 bg-background border border-border rounded-md p-1 shadow-sm",children:[x.jsx("button",{onClick:()=>m(R=>Math.max(.5,R-.1)),className:"p-1.5 hover:bg-secondary rounded text-muted-foreground transition-colors",children:x.jsx(zE,{className:"w-3.5 h-3.5"})}),x.jsxs("span",{className:"text-[10px] font-mono w-8 text-center text-muted-foreground",children:[Math.round(p*100),"%"]}),x.jsx("button",{onClick:()=>m(R=>Math.min(2,R+.1)),className:"p-1.5 hover:bg-secondary rounded text-muted-foreground transition-colors",children:x.jsx(VE,{className:"w-3.5 h-3.5"})})]}),x.jsxs("button",{onClick:T,className:"flex items-center gap-2 px-3 py-1.5 bg-background border border-border rounded-md text-xs font-medium hover:bg-secondary transition-colors shadow-sm",children:[x.jsx(NE,{className:"w-3.5 h-3.5"}),"Reset"]})]}),x.jsx("button",{onClick:()=>P(!v),className:xe("absolute top-4 right-4 z-20 p-2 bg-background border border-border rounded-md shadow-sm hover:bg-secondary transition-colors",v&&"bg-secondary text-primary"),children:x.jsx(PE,{className:"w-4 h-4"})}),x.jsx("div",{ref:c,className:"flex-1 overflow-auto relative custom-scrollbar",children:x.jsx("div",{className:"relative origin-top-left",style:{transform:`scale(${p})`,width:"4000px",height:"4000px"},children:x.jsx(s2,{children:e.map((R,N)=>{if(!y[R.name])return null;const A=sv[N%sv.length],O=d[R.name]||{x:0,y:0};return x.jsxs(rv.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},drag:!0,dragMomentum:!1,onDrag:(F,$)=>{h(z=>({...z,[R.name]:{x:z[R.name].x+$.delta.x/p,y:z[R.name].y+$.delta.y/p}}))},style:{left:O.x,top:O.y,position:"absolute"},className:xe("w-[300px] border rounded-xl shadow-lg overflow-hidden cursor-grab active:cursor-grabbing z-10 hover:z-20 transition-shadow hover:shadow-xl bg-background",A.border),children:[x.jsxs("div",{className:xe("p-4 border-b flex items-center gap-3",A.headerBg,A.border),children:[x.jsx("div",{className:xe("p-1.5 rounded-lg bg-background/50 backdrop-blur-sm shadow-sm",A.icon),children:x.jsx(el,{className:"w-4 h-4"})}),x.jsx("h3",{className:"text-sm font-bold text-foreground truncate",children:R.name})]}),x.jsx("div",{className:"p-0",children:x.jsxs("table",{className:"w-full text-left text-xs",children:[x.jsx("thead",{className:"bg-muted/30 text-muted-foreground uppercase tracking-wider",children:x.jsxs("tr",{children:[x.jsx("th",{className:"px-4 py-2 font-semibold",children:"Column"}),x.jsx("th",{className:"px-4 py-2 font-semibold",children:"Type"})]})}),x.jsx("tbody",{className:"divide-y divide-border/50",children:R.columns.map(F=>x.jsxs("tr",{className:"hover:bg-muted/20 transition-colors",children:[x.jsx("td",{className:"px-4 py-2.5",children:x.jsxs("div",{className:"flex items-center gap-2",children:[F.key==="PRI"?x.jsx(Gv,{className:"w-3 h-3 text-amber-500"}):x.jsx("div",{className:"w-3"}),x.jsx("span",{className:xe("font-medium",F.key==="PRI"?"text-foreground":"text-muted-foreground"),children:F.name})]})}),x.jsx("td",{className:"px-4 py-2.5",children:x.jsxs("div",{className:"flex items-center gap-1.5 text-muted-foreground/80",children:[x.jsx(_E,{className:"w-3 h-3"}),x.jsx("span",{className:"font-mono text-[10px]",children:F.type})]})})]},F.name))})]})})]},R.name)})})})})]}),v&&x.jsxs(rv.div,{initial:{x:300},animate:{x:0},className:"w-72 border-l border-border bg-background flex flex-col shadow-xl z-30",children:[x.jsxs("div",{className:"p-4 border-b border-border flex items-center justify-between",children:[x.jsxs("h2",{className:"font-semibold flex items-center gap-2",children:[x.jsx(el,{className:"w-4 h-4 text-primary"}),"Canvas Layers"]}),x.jsxs("div",{className:"flex gap-1",children:[x.jsx("button",{onClick:()=>E(!0),className:"text-[10px] px-2 py-1 rounded bg-secondary hover:bg-secondary/80 font-medium",children:"All"}),x.jsx("button",{onClick:()=>E(!1),className:"text-[10px] px-2 py-1 rounded bg-secondary hover:bg-secondary/80 font-medium",children:"None"})]})]}),x.jsx(cb,{className:"flex-1",children:x.jsx("div",{className:"p-2 space-y-1",children:e.map(R=>x.jsxs("div",{className:xe("flex items-center justify-between p-2 rounded-md transition-colors",y[R.name]?"bg-secondary/30":"hover:bg-secondary/20"),children:[x.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[x.jsx("div",{className:xe("w-2 h-2 rounded-full",y[R.name]?"bg-primary":"bg-muted")}),x.jsx("span",{className:xe("text-sm truncate",!y[R.name]&&"text-muted-foreground line-through opacity-60"),children:R.name})]}),x.jsx(Xw,{checked:y[R.name],onCheckedChange:()=>S(R.name),className:"scale-75"})]},R.name))})}),x.jsxs("div",{className:"p-4 border-t border-border bg-muted/20",children:[x.jsxs("div",{className:"flex items-center justify-between text-[11px] text-muted-foreground mb-2",children:[x.jsx("span",{children:"Visible Tables"}),x.jsxs("span",{className:"font-mono bg-background px-1.5 py-0.5 rounded border border-border",children:[Object.values(y).filter(Boolean).length," / ",e.length]})]}),x.jsx("div",{className:"w-full bg-secondary h-1.5 rounded-full overflow-hidden",children:x.jsx("div",{className:"bg-primary h-full transition-all duration-500",style:{width:`${Object.values(y).filter(Boolean).length/e.length*100}%`}})})]})]})]})}function _D(){const[e,t]=w.useState(null),[r,s]=w.useState("data"),[a,l]=w.useState(""),[c,d]=w.useState(3);w.useEffect(()=>{const m=new URLSearchParams(window.location.search).get("view");(m==="schema"||m==="data"||m==="canvas")&&s(m);async function y(){try{const v=await(await Xr("/api/database")).json();v.success&&l(v.dbname)}catch(b){console.error("Error fetching db name:",b)}}y()},[]);const h=p=>{t(p)};return x.jsx(dN,{selectedTable:e,onSelectTable:h,view:r,onViewChange:s,dbName:a,schemaColumns:c,onSchemaColumnsChange:d,children:r==="data"?x.jsx(fN,{selectedTable:e}):r==="schema"?x.jsx(mN,{columns:c}):x.jsx(LD,{})})}const ID=()=>{const e=rx();return w.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),x.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:x.jsxs("div",{className:"text-center",children:[x.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),x.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),x.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},fb=w.forwardRef(({className:e,type:t,...r},s)=>x.jsx("input",{type:t,className:xe("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:s,...r}));fb.displayName="Input";var FD=Symbol.for("react.lazy"),vl=wl[" use ".trim().toString()];function VD(e){return typeof e=="object"&&e!==null&&"then"in e}function hb(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===FD&&"_payload"in e&&VD(e._payload)}function pb(e){const t=zD(e),r=w.forwardRef((s,a)=>{let{children:l,...c}=s;hb(l)&&typeof vl=="function"&&(l=vl(l._payload));const d=w.Children.toArray(l),h=d.find($D);if(h){const p=h.props.children,m=d.map(y=>y===h?w.Children.count(p)>1?w.Children.only(null):w.isValidElement(p)?p.props.children:null:y);return x.jsx(t,{...c,ref:a,children:w.isValidElement(p)?w.cloneElement(p,void 0,m):null})}return x.jsx(t,{...c,ref:a,children:l})});return r.displayName=`${e}.Slot`,r}var BD=pb("Slot");function zD(e){const t=w.forwardRef((r,s)=>{let{children:a,...l}=r;if(hb(a)&&typeof vl=="function"&&(a=vl(a._payload)),w.isValidElement(a)){const c=HD(a),d=WD(l,a.props);return a.type!==w.Fragment&&(d.ref=s?ef(s,c):c),w.cloneElement(a,d)}return w.Children.count(a)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var UD=Symbol("radix.slottable");function $D(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===UD}function WD(e,t){const r={...t};for(const s in t){const a=e[s],l=t[s];/^on[A-Z]/.test(s)?a&&l?r[s]=(...d)=>{const h=l(...d);return a(...d),h}:a&&(r[s]=a):s==="style"?r[s]={...a,...l}:s==="className"&&(r[s]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}function HD(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const KD=Kv("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),oh=w.forwardRef(({className:e,variant:t,size:r,asChild:s=!1,...a},l)=>{const c=s?BD:"button";return x.jsx(c,{className:xe(KD({variant:t,size:r,className:e})),ref:l,...a})});oh.displayName="Button";var td="focusScope.autoFocusOnMount",nd="focusScope.autoFocusOnUnmount",iv={bubbles:!1,cancelable:!0},QD="FocusScope",mb=w.forwardRef((e,t)=>{const{loop:r=!1,trapped:s=!1,onMountAutoFocus:a,onUnmountAutoFocus:l,...c}=e,[d,h]=w.useState(null),p=at(a),m=at(l),y=w.useRef(null),b=Ue(t,S=>h(S)),v=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(s){let S=function(N){if(v.paused||!d)return;const A=N.target;d.contains(A)?y.current=A:xr(y.current,{select:!0})},E=function(N){if(v.paused||!d)return;const A=N.relatedTarget;A!==null&&(d.contains(A)||xr(y.current,{select:!0}))},T=function(N){if(document.activeElement===document.body)for(const O of N)O.removedNodes.length>0&&xr(d)};document.addEventListener("focusin",S),document.addEventListener("focusout",E);const R=new MutationObserver(T);return d&&R.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",E),R.disconnect()}}},[s,d,v.paused]),w.useEffect(()=>{if(d){lv.add(v);const S=document.activeElement;if(!d.contains(S)){const T=new CustomEvent(td,iv);d.addEventListener(td,p),d.dispatchEvent(T),T.defaultPrevented||(YD(JD(gb(d)),{select:!0}),document.activeElement===S&&xr(d))}return()=>{d.removeEventListener(td,p),setTimeout(()=>{const T=new CustomEvent(nd,iv);d.addEventListener(nd,m),d.dispatchEvent(T),T.defaultPrevented||xr(S??document.body,{select:!0}),d.removeEventListener(nd,m),lv.remove(v)},0)}}},[d,p,m,v]);const P=w.useCallback(S=>{if(!r&&!s||v.paused)return;const E=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,T=document.activeElement;if(E&&T){const R=S.currentTarget,[N,A]=GD(R);N&&A?!S.shiftKey&&T===A?(S.preventDefault(),r&&xr(N,{select:!0})):S.shiftKey&&T===N&&(S.preventDefault(),r&&xr(A,{select:!0})):T===R&&S.preventDefault()}},[r,s,v.paused]);return x.jsx(je.div,{tabIndex:-1,...c,ref:b,onKeyDown:P})});mb.displayName=QD;function YD(e,{select:t=!1}={}){const r=document.activeElement;for(const s of e)if(xr(s,{select:t}),document.activeElement!==r)return}function GD(e){const t=gb(e),r=av(t,e),s=av(t.reverse(),e);return[r,s]}function gb(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function av(e,t){for(const r of e)if(!XD(r,{upTo:t}))return r}function XD(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 qD(e){return e instanceof HTMLInputElement&&"select"in e}function xr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&qD(e)&&t&&e.select()}}var lv=ZD();function ZD(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=uv(e,t),e.unshift(t)},remove(t){e=uv(e,t),e[0]?.resume()}}}function uv(e,t){const r=[...e],s=r.indexOf(t);return s!==-1&&r.splice(s,1),r}function JD(e){return e.filter(t=>t.tagName!=="A")}var rd=0;function eO(){w.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??cv()),document.body.insertAdjacentElement("beforeend",e[1]??cv()),rd++,()=>{rd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),rd--}},[])}function cv(){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 Pn=function(){return Pn=Object.assign||function(t){for(var r,s=1,a=arguments.length;s<a;s++){r=arguments[s];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t},Pn.apply(this,arguments)};function yb(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(r[s[a]]=e[s[a]]);return r}function tO(e,t,r){if(r||arguments.length===2)for(var s=0,a=t.length,l;s<a;s++)(l||!(s in t))&&(l||(l=Array.prototype.slice.call(t,0,s)),l[s]=t[s]);return e.concat(l||Array.prototype.slice.call(t))}var qa="right-scroll-bar-position",Za="width-before-scroll-bar",nO="with-scroll-bars-hidden",rO="--removed-body-scroll-bar-size";function od(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function oO(e,t){var r=w.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(s){var a=r.value;a!==s&&(r.value=s,r.callback(s,a))}}}})[0];return r.callback=t,r.facade}var sO=typeof window<"u"?w.useLayoutEffect:w.useEffect,dv=new WeakMap;function iO(e,t){var r=oO(null,function(s){return e.forEach(function(a){return od(a,s)})});return sO(function(){var s=dv.get(r);if(s){var a=new Set(s),l=new Set(e),c=r.current;a.forEach(function(d){l.has(d)||od(d,null)}),l.forEach(function(d){a.has(d)||od(d,c)})}dv.set(r,e)},[e]),r}function aO(e){return e}function lO(e,t){t===void 0&&(t=aO);var r=[],s=!1,a={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(l){var c=t(l,s);return r.push(c),function(){r=r.filter(function(d){return d!==c})}},assignSyncMedium:function(l){for(s=!0;r.length;){var c=r;r=[],c.forEach(l)}r={push:function(d){return l(d)},filter:function(){return r}}},assignMedium:function(l){s=!0;var c=[];if(r.length){var d=r;r=[],d.forEach(l),c=r}var h=function(){var m=c;c=[],m.forEach(l)},p=function(){return Promise.resolve().then(h)};p(),r={push:function(m){c.push(m),p()},filter:function(m){return c=c.filter(m),r}}}};return a}function uO(e){e===void 0&&(e={});var t=lO(null);return t.options=Pn({async:!0,ssr:!1},e),t}var vb=function(e){var t=e.sideCar,r=yb(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return w.createElement(s,Pn({},r))};vb.isSideCarExport=!0;function cO(e,t){return e.useMedium(t),vb}var xb=uO(),sd=function(){},zl=w.forwardRef(function(e,t){var r=w.useRef(null),s=w.useState({onScrollCapture:sd,onWheelCapture:sd,onTouchMoveCapture:sd}),a=s[0],l=s[1],c=e.forwardProps,d=e.children,h=e.className,p=e.removeScrollBar,m=e.enabled,y=e.shards,b=e.sideCar,v=e.noRelative,P=e.noIsolation,S=e.inert,E=e.allowPinchZoom,T=e.as,R=T===void 0?"div":T,N=e.gapMode,A=yb(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=b,F=iO([r,t]),$=Pn(Pn({},A),a);return w.createElement(w.Fragment,null,m&&w.createElement(O,{sideCar:xb,removeScrollBar:p,shards:y,noRelative:v,noIsolation:P,inert:S,setCallbacks:l,allowPinchZoom:!!E,lockRef:r,gapMode:N}),c?w.cloneElement(w.Children.only(d),Pn(Pn({},$),{ref:F})):w.createElement(R,Pn({},$,{className:h,ref:F}),d))});zl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};zl.classNames={fullWidth:Za,zeroRight:qa};var dO=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function fO(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=dO();return t&&e.setAttribute("nonce",t),e}function hO(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function pO(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var mO=function(){var e=0,t=null;return{add:function(r){e==0&&(t=fO())&&(hO(t,r),pO(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},gO=function(){var e=mO();return function(t,r){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},wb=function(){var e=gO(),t=function(r){var s=r.styles,a=r.dynamic;return e(s,a),null};return t},yO={left:0,top:0,right:0,gap:0},id=function(e){return parseInt(e||"",10)||0},vO=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[id(r),id(s),id(a)]},xO=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return yO;var t=vO(e),r=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-r+t[2]-t[0])}},wO=wb(),zo="data-scroll-locked",bO=function(e,t,r,s){var a=e.left,l=e.top,c=e.right,d=e.gap;return r===void 0&&(r="margin"),`
|
|
18
18
|
.`.concat(nO,` {
|
|
19
19
|
overflow: hidden `).concat(s,`;
|
|
20
20
|
padding-right: `).concat(d,"px ").concat(s,`;
|
|
21
21
|
}
|
|
22
|
-
body[`).concat(
|
|
22
|
+
body[`).concat(zo,`] {
|
|
23
23
|
overflow: hidden `).concat(s,`;
|
|
24
24
|
overscroll-behavior: contain;
|
|
25
25
|
`).concat([t&&"position: relative ".concat(s,";"),r==="margin"&&`
|
|
@@ -48,14 +48,14 @@ Error generating stack: `+g.message+`
|
|
|
48
48
|
margin-right: 0 `).concat(s,`;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
body[`).concat(
|
|
51
|
+
body[`).concat(zo,`] {
|
|
52
52
|
`).concat(rO,": ").concat(d,`px;
|
|
53
53
|
}
|
|
54
|
-
`)},fv=function(){var e=parseInt(document.body.getAttribute(
|
|
54
|
+
`)},fv=function(){var e=parseInt(document.body.getAttribute(zo)||"0",10);return isFinite(e)?e:0},SO=function(){w.useEffect(function(){return document.body.setAttribute(zo,(fv()+1).toString()),function(){var e=fv()-1;e<=0?document.body.removeAttribute(zo):document.body.setAttribute(zo,e.toString())}},[])},CO=function(e){var t=e.noRelative,r=e.noImportant,s=e.gapMode,a=s===void 0?"margin":s;SO();var l=w.useMemo(function(){return xO(a)},[a]);return w.createElement(wO,{styles:bO(l,!t,a,r?"":"!important")})},Zd=!1;if(typeof window<"u")try{var _a=Object.defineProperty({},"passive",{get:function(){return Zd=!0,!0}});window.addEventListener("test",_a,_a),window.removeEventListener("test",_a,_a)}catch{Zd=!1}var ko=Zd?{passive:!1}:!1,EO=function(e){return e.tagName==="TEXTAREA"},bb=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!EO(e)&&r[t]==="visible")},PO=function(e){return bb(e,"overflowY")},TO=function(e){return bb(e,"overflowX")},hv=function(e,t){var r=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var a=Sb(e,s);if(a){var l=Cb(e,s),c=l[1],d=l[2];if(c>d)return!0}s=s.parentNode}while(s&&s!==r.body);return!1},RO=function(e){var t=e.scrollTop,r=e.scrollHeight,s=e.clientHeight;return[t,r,s]},kO=function(e){var t=e.scrollLeft,r=e.scrollWidth,s=e.clientWidth;return[t,r,s]},Sb=function(e,t){return e==="v"?PO(t):TO(t)},Cb=function(e,t){return e==="v"?RO(t):kO(t)},NO=function(e,t){return e==="h"&&t==="rtl"?-1:1},AO=function(e,t,r,s,a){var l=NO(e,window.getComputedStyle(t).direction),c=l*s,d=r.target,h=t.contains(d),p=!1,m=c>0,y=0,b=0;do{if(!d)break;var v=Cb(e,d),P=v[0],S=v[1],E=v[2],T=S-E-l*P;(P||T)&&Sb(e,d)&&(y+=T,b+=P);var R=d.parentNode;d=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!h&&d!==document.body||h&&(t.contains(d)||t===d));return(m&&Math.abs(y)<1||!m&&Math.abs(b)<1)&&(p=!0),p},Ia=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},pv=function(e){return[e.deltaX,e.deltaY]},mv=function(e){return e&&"current"in e?e.current:e},jO=function(e,t){return e[0]===t[0]&&e[1]===t[1]},MO=function(e){return`
|
|
55
55
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
56
56
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
57
|
-
`)},DO=0,No=[];function OO(e){var t=w.useRef([]),r=w.useRef([0,0]),s=w.useRef(),a=w.useState(DO++)[0],l=w.useState(wb)[0],c=w.useRef(e);w.useEffect(function(){c.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var S=tO([e.lockRef.current],(e.shards||[]).map(mv),!0).filter(Boolean);return S.forEach(function(E){return E.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),S.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var d=w.useCallback(function(S,E){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!c.current.allowPinchZoom;var T=Ia(S),R=r.current,N="deltaX"in S?S.deltaX:R[0]-T[0],A="deltaY"in S?S.deltaY:R[1]-T[1],O,F=S.target,$=Math.abs(N)>Math.abs(A)?"h":"v";if("touches"in S&&$==="h"&&F.type==="range")return!1;var
|
|
57
|
+
`)},DO=0,No=[];function OO(e){var t=w.useRef([]),r=w.useRef([0,0]),s=w.useRef(),a=w.useState(DO++)[0],l=w.useState(wb)[0],c=w.useRef(e);w.useEffect(function(){c.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var S=tO([e.lockRef.current],(e.shards||[]).map(mv),!0).filter(Boolean);return S.forEach(function(E){return E.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),S.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var d=w.useCallback(function(S,E){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!c.current.allowPinchZoom;var T=Ia(S),R=r.current,N="deltaX"in S?S.deltaX:R[0]-T[0],A="deltaY"in S?S.deltaY:R[1]-T[1],O,F=S.target,$=Math.abs(N)>Math.abs(A)?"h":"v";if("touches"in S&&$==="h"&&F.type==="range")return!1;var z=window.getSelection(),H=z&&z.anchorNode,W=H?H===F||H.contains(F):!1;if(W)return!1;var ee=hv($,F);if(!ee)return!0;if(ee?O=$:(O=$==="v"?"h":"v",ee=hv($,F)),!ee)return!1;if(!s.current&&"changedTouches"in S&&(N||A)&&(s.current=O),!O)return!0;var X=s.current||O;return AO(X,E,S,X==="h"?N:A)},[]),h=w.useCallback(function(S){var E=S;if(!(!No.length||No[No.length-1]!==l)){var T="deltaY"in E?pv(E):Ia(E),R=t.current.filter(function(O){return O.name===E.type&&(O.target===E.target||E.target===O.shadowParent)&&jO(O.delta,T)})[0];if(R&&R.should){E.cancelable&&E.preventDefault();return}if(!R){var N=(c.current.shards||[]).map(mv).filter(Boolean).filter(function(O){return O.contains(E.target)}),A=N.length>0?d(E,N[0]):!c.current.noIsolation;A&&E.cancelable&&E.preventDefault()}}},[]),p=w.useCallback(function(S,E,T,R){var N={name:S,delta:E,target:T,should:R,shadowParent:LO(T)};t.current.push(N),setTimeout(function(){t.current=t.current.filter(function(A){return A!==N})},1)},[]),m=w.useCallback(function(S){r.current=Ia(S),s.current=void 0},[]),y=w.useCallback(function(S){p(S.type,pv(S),S.target,d(S,e.lockRef.current))},[]),b=w.useCallback(function(S){p(S.type,Ia(S),S.target,d(S,e.lockRef.current))},[]);w.useEffect(function(){return No.push(l),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:b}),document.addEventListener("wheel",h,ko),document.addEventListener("touchmove",h,ko),document.addEventListener("touchstart",m,ko),function(){No=No.filter(function(S){return S!==l}),document.removeEventListener("wheel",h,ko),document.removeEventListener("touchmove",h,ko),document.removeEventListener("touchstart",m,ko)}},[]);var v=e.removeScrollBar,P=e.inert;return w.createElement(w.Fragment,null,P?w.createElement(l,{styles:MO(a)}):null,v?w.createElement(CO,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function LO(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _O=cO(xb,OO);var Eb=w.forwardRef(function(e,t){return w.createElement(zl,Pn({},e,{ref:t,sideCar:_O}))});Eb.classNames=zl.classNames;var IO=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ao=new WeakMap,Fa=new WeakMap,Va={},ad=0,Pb=function(e){return e&&(e.host||Pb(e.parentNode))},FO=function(e,t){return t.map(function(r){if(e.contains(r))return r;var s=Pb(r);return s&&e.contains(s)?s:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},VO=function(e,t,r,s){var a=FO(t,Array.isArray(e)?e:[e]);Va[r]||(Va[r]=new WeakMap);var l=Va[r],c=[],d=new Set,h=new Set(a),p=function(y){!y||d.has(y)||(d.add(y),p(y.parentNode))};a.forEach(p);var m=function(y){!y||h.has(y)||Array.prototype.forEach.call(y.children,function(b){if(d.has(b))m(b);else try{var v=b.getAttribute(s),P=v!==null&&v!=="false",S=(Ao.get(b)||0)+1,E=(l.get(b)||0)+1;Ao.set(b,S),l.set(b,E),c.push(b),S===1&&P&&Fa.set(b,!0),E===1&&b.setAttribute(r,"true"),P||b.setAttribute(s,"true")}catch(T){console.error("aria-hidden: cannot operate on ",b,T)}})};return m(t),d.clear(),ad++,function(){c.forEach(function(y){var b=Ao.get(y)-1,v=l.get(y)-1;Ao.set(y,b),l.set(y,v),b||(Fa.has(y)||y.removeAttribute(s),Fa.delete(y)),v||y.removeAttribute(r)}),ad--,ad||(Ao=new WeakMap,Ao=new WeakMap,Fa=new WeakMap,Va={})}},BO=function(e,t,r){r===void 0&&(r="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),a=IO(e);return a?(s.push.apply(s,Array.from(a.querySelectorAll("[aria-live], script"))),VO(s,a,r,"aria-hidden")):function(){return null}},Ul="Dialog",[Tb]=Zr(Ul),[zO,fn]=Tb(Ul),Rb=e=>{const{__scopeDialog:t,children:r,open:s,defaultOpen:a,onOpenChange:l,modal:c=!0}=e,d=w.useRef(null),h=w.useRef(null),[p,m]=nf({prop:s,defaultProp:a??!1,onChange:l,caller:Ul});return x.jsx(zO,{scope:t,triggerRef:d,contentRef:h,contentId:Dc(),titleId:Dc(),descriptionId:Dc(),open:p,onOpenChange:m,onOpenToggle:w.useCallback(()=>m(y=>!y),[m]),modal:c,children:r})};Rb.displayName=Ul;var kb="DialogTrigger",Nb=w.forwardRef((e,t)=>{const{__scopeDialog:r,...s}=e,a=fn(kb,r),l=Ue(t,a.triggerRef);return x.jsx(je.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":ah(a.open),...s,ref:l,onClick:Re(e.onClick,a.onOpenToggle)})});Nb.displayName=kb;var sh="DialogPortal",[UO,Ab]=Tb(sh,{forceMount:void 0}),jb=e=>{const{__scopeDialog:t,forceMount:r,children:s,container:a}=e,l=fn(sh,t);return x.jsx(UO,{scope:t,forceMount:r,children:w.Children.map(s,c=>x.jsx(jn,{present:r||l.open,children:x.jsx(tf,{asChild:!0,container:a,children:c})}))})};jb.displayName=sh;var xl="DialogOverlay",Mb=w.forwardRef((e,t)=>{const r=Ab(xl,e.__scopeDialog),{forceMount:s=r.forceMount,...a}=e,l=fn(xl,e.__scopeDialog);return l.modal?x.jsx(jn,{present:s||l.open,children:x.jsx(WO,{...a,ref:t})}):null});Mb.displayName=xl;var $O=Ja("DialogOverlay.RemoveScroll"),WO=w.forwardRef((e,t)=>{const{__scopeDialog:r,...s}=e,a=fn(xl,r);return x.jsx(Eb,{as:$O,allowPinchZoom:!0,shards:[a.contentRef],children:x.jsx(je.div,{"data-state":ah(a.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),qr="DialogContent",Db=w.forwardRef((e,t)=>{const r=Ab(qr,e.__scopeDialog),{forceMount:s=r.forceMount,...a}=e,l=fn(qr,e.__scopeDialog);return x.jsx(jn,{present:s||l.open,children:l.modal?x.jsx(HO,{...a,ref:t}):x.jsx(KO,{...a,ref:t})})});Db.displayName=qr;var HO=w.forwardRef((e,t)=>{const r=fn(qr,e.__scopeDialog),s=w.useRef(null),a=Ue(t,r.contentRef,s);return w.useEffect(()=>{const l=s.current;if(l)return BO(l)},[]),x.jsx(Ob,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Re(e.onCloseAutoFocus,l=>{l.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Re(e.onPointerDownOutside,l=>{const c=l.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0;(c.button===2||d)&&l.preventDefault()}),onFocusOutside:Re(e.onFocusOutside,l=>l.preventDefault())})}),KO=w.forwardRef((e,t)=>{const r=fn(qr,e.__scopeDialog),s=w.useRef(!1),a=w.useRef(!1);return x.jsx(Ob,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{e.onCloseAutoFocus?.(l),l.defaultPrevented||(s.current||r.triggerRef.current?.focus(),l.preventDefault()),s.current=!1,a.current=!1},onInteractOutside:l=>{e.onInteractOutside?.(l),l.defaultPrevented||(s.current=!0,l.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const c=l.target;r.triggerRef.current?.contains(c)&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&a.current&&l.preventDefault()}})}),Ob=w.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:s,onOpenAutoFocus:a,onCloseAutoFocus:l,...c}=e,d=fn(qr,r),h=w.useRef(null),p=Ue(t,h);return eO(),x.jsxs(x.Fragment,{children:[x.jsx(mb,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:a,onUnmountAutoFocus:l,children:x.jsx(Sl,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":ah(d.open),...c,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(QO,{titleId:d.titleId}),x.jsx(GO,{contentRef:h,descriptionId:d.descriptionId})]})]})}),ih="DialogTitle",Lb=w.forwardRef((e,t)=>{const{__scopeDialog:r,...s}=e,a=fn(ih,r);return x.jsx(je.h2,{id:a.titleId,...s,ref:t})});Lb.displayName=ih;var _b="DialogDescription",Ib=w.forwardRef((e,t)=>{const{__scopeDialog:r,...s}=e,a=fn(_b,r);return x.jsx(je.p,{id:a.descriptionId,...s,ref:t})});Ib.displayName=_b;var Fb="DialogClose",Vb=w.forwardRef((e,t)=>{const{__scopeDialog:r,...s}=e,a=fn(Fb,r);return x.jsx(je.button,{type:"button",...s,ref:t,onClick:Re(e.onClick,()=>a.onOpenChange(!1))})});Vb.displayName=Fb;function ah(e){return e?"open":"closed"}var Bb="DialogTitleWarning",[gL,zb]=sC(Bb,{contentName:qr,titleName:ih,docsSlug:"dialog"}),QO=({titleId:e})=>{const t=zb(Bb),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
58
58
|
|
|
59
59
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
60
60
|
|
|
61
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return w.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},YO="DialogDescriptionWarning",GO=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Bb(YO).contentName}}.`;return w.useEffect(()=>{const a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},XO=Rb,qO=Nb,ZO=jb,Ub=Mb,$b=Db,Wb=Lb,Hb=Ib,JO=Vb;const eL=XO,tL=qO,nL=ZO,Kb=w.forwardRef(({className:e,...t},r)=>x.jsx(Ub,{ref:r,className:xe("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}));Kb.displayName=Ub.displayName;const Qb=w.forwardRef(({className:e,children:t,...r},s)=>x.jsxs(nL,{children:[x.jsx(Kb,{}),x.jsxs($b,{ref:s,className:xe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[t,x.jsxs(JO,{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-accent data-[state=open]:text-muted-foreground",children:[x.jsx(lf,{className:"h-4 w-4"}),x.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Qb.displayName=$b.displayName;const Yb=({className:e,...t})=>x.jsx("div",{className:xe("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Yb.displayName="DialogHeader";const Gb=w.forwardRef(({className:e,...t},r)=>x.jsx(Wb,{ref:r,className:xe("text-lg font-semibold leading-none tracking-tight",e),...t}));Gb.displayName=Wb.displayName;const Xb=w.forwardRef(({className:e,...t},r)=>x.jsx(Hb,{ref:r,className:xe("text-sm text-muted-foreground",e),...t}));Xb.displayName=Hb.displayName;var rL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oL=rL.reduce((e,t)=>{const r=pb(`Primitive.${t}`),s=w.forwardRef((a,l)=>{const{asChild:c,...d}=a,h=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(h,{...d,ref:l})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),sL="Separator",gv="horizontal",iL=["horizontal","vertical"],qb=w.forwardRef((e,t)=>{const{decorative:r,orientation:s=gv,...a}=e,l=aL(s)?s:gv,d=r?{role:"none"}:{"aria-orientation":l==="vertical"?l:void 0,role:"separator"};return x.jsx(oL.div,{"data-orientation":l,...d,...a,ref:t})});qb.displayName=sL;function aL(e){return iL.includes(e)}var Zb=qb;const lh=w.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...s},a)=>x.jsx(Zb,{ref:a,decorative:r,orientation:t,className:xe("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...s}));lh.displayName=Zb.displayName;function lL(){return x.jsxs(eL,{children:[x.jsx(tL,{asChild:!0,children:x.jsxs(oh,{variant:"outline",className:"gap-2",children:[x.jsx(fd,{className:"w-4 h-4"}),"Documentation"]})}),x.jsxs(Qb,{className:"max-w-2xl h-[80vh] flex flex-col p-0",children:[x.jsxs(Yb,{className:"p-6 pb-2 border-b border-border",children:[x.jsxs(Gb,{className:"text-2xl flex items-center gap-2",children:[x.jsx(fd,{className:"w-6 h-6 text-primary"}),"Database Studio Guide"]}),x.jsx(Xb,{children:"Learn how to set up and use Database Studio for your development environment."})]}),x.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar p-6",children:x.jsxs("div",{className:"space-y-8 pb-4",children:[x.jsxs("section",{className:"space-y-3",children:[x.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[x.jsx(Xv,{className:"w-5 h-5 text-emerald-500"}),"Prerequisites"]}),x.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Database Studio requires a connection to a MySQL database. Ensure your database is accessible and you have the necessary credentials."})]}),x.jsxs("section",{className:"space-y-4",children:[x.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[x.jsx(qv,{className:"w-5 h-5 text-blue-500"}),"Environment Setup"]}),x.jsxs("div",{className:"space-y-2",children:[x.jsxs("p",{className:"text-sm text-muted-foreground",children:["Create a ",x.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-foreground font-mono",children:".env"})," file in the root directory of the ",x.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-foreground font-mono",children:"in your project"})," folder with the following variables:"]}),x.jsxs("div",{className:"bg-slate-950 p-4 rounded-lg font-mono text-xs text-slate-300 space-y-2 border border-slate-800 shadow-inner",children:[x.jsxs("div",{children:[x.jsx("span",{className:"text-purple-400",children:"# Database connection string"}),x.jsx("br",{}),x.jsx("span",{className:"text-emerald-400",children:"MYSQL_URL"}),"=mysql://user:password@localhost:3306/database_name"]}),x.jsxs("div",{className:"pt-2 border-t border-slate-800",children:[x.jsx("span",{className:"text-purple-400",children:"# Optional: Server port (defaults to 5555)"}),x.jsx("br",{}),x.jsx("span",{className:"text-emerald-400",children:"PORT"}),"=5555"]})]})]})]}),x.jsxs("section",{className:"space-y-3",children:[x.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[x.jsx(af,{className:"w-5 h-5 text-indigo-500"}),"Features"]}),x.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[x.jsxs("div",{className:"p-3 border border-border rounded-lg bg-secondary/10",children:[x.jsx("h4",{className:"font-medium text-sm mb-1",children:"Data Explorer"}),x.jsx("p",{className:"text-xs text-muted-foreground",children:"Browse, filter, and edit your database tables in real-time."})]}),x.jsxs("div",{className:"p-3 border border-border rounded-lg bg-secondary/10",children:[x.jsx("h4",{className:"font-medium text-sm mb-1",children:"Canvas View"}),x.jsx("p",{className:"text-xs text-muted-foreground",children:"Visualize your schema as interactive, draggable table cards."})]}),x.jsxs("div",{className:"p-3 border border-border rounded-lg bg-secondary/10",children:[x.jsx("h4",{className:"font-medium text-sm mb-1",children:"Schema Viewer"}),x.jsx("p",{className:"text-xs text-muted-foreground",children:"Quickly inspect table structures and column types."})]}),x.jsxs("div",{className:"p-3 border border-border rounded-lg bg-secondary/10",children:[x.jsx("h4",{className:"font-medium text-sm mb-1",children:"Export to PDF"}),x.jsx("p",{className:"text-xs text-muted-foreground",children:"Generate professional documentation of your schema."})]})]})]}),x.jsx(lh,{}),x.jsxs("section",{className:"space-y-3",children:[x.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[x.jsx(Yv,{className:"w-5 h-5 text-muted-foreground"}),"Troubleshooting"]}),x.jsxs("p",{className:"text-sm text-muted-foreground leading-relaxed",children:["If you encounter connection errors, verify that your MySQL server is running and your ",x.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded font-mono",children:"MYSQL_URL"})," is correctly formatted. Ensure no firewall is blocking the specified port."]})]})]})})]})]})}const uL=new lk,cL=()=>{const[e,t]=w.useState(!1),[r,s]=w.useState(""),[a,l]=w.useState(!1),[c,d]=w.useState(!0),[h,p]=w.useState(null),[m,y]=w.useState(!0);w.useEffect(()=>{Promise.all([fetch("/api/status").then(v=>v.json()),fetch("/api/database",{credentials:"include"})]).then(([v,P])=>{d(v.configured),P.status===401?l(!1):l(!0)}).finally(()=>y(!1))},[]);const b=async()=>{const v=r.trim();if(!v){p("Please enter a license key");return}t(!0),p(null);try{const S=await(await fetch("/api/validate-license",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({licenseKey:v})})).json();S.success?(l(!0),window.location.reload()):p(S.message||"Invalid License Key. Please check and try again.")}catch(P){console.error("Validation error:",P),p("Failed to validate license.")}finally{t(!1)}};return c?a?x.jsx(uN,{children:x.jsxs(iN,{children:[x.jsx(Rd,{path:"/",element:x.jsx(_D,{})}),x.jsx(Rd,{path:"*",element:x.jsx(ID,{})})]})}):x.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background p-4",children:x.jsxs("div",{className:"w-full max-w-md space-y-6 text-center",children:[x.jsx("div",{className:"inline-flex p-4 rounded-full bg-primary/10 text-primary mb-2",children:x.jsx(Gv,{className:"w-8 h-8"})}),x.jsxs("div",{className:"space-y-2",children:[x.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:"API Key Required"}),x.jsx("p",{className:"text-muted-foreground text-sm",children:"Please enter your license key to access the Database Studio. Use FREE123"})]}),x.jsxs("div",{className:"space-y-4",children:[x.jsxs("div",{className:"flex gap-2",children:[x.jsx(fb,{type:"password",placeholder:"Enter License Key",value:r,onChange:v=>{s(v.target.value),p(null)},onKeyDown:v=>v.key==="Enter"&&!e&&b(),disabled:e}),x.jsx(oh,{onClick:b,disabled:e,children:e?"Validating...":"Connect"})]}),x.jsx("div",{className:"flex justify-center pt-2",children:x.jsx(lL,{})}),h&&x.jsx("p",{className:"text-destructive text-sm font-medium animate-in fade-in slide-in-from-top-1",children:h})]})]})}):x.jsx("div",{className:"min-h-screen bg-background",children:x.jsxs("div",{className:"max-w-2xl mx-auto px-6 py-16 space-y-10",children:[x.jsxs("div",{className:"text-center space-y-3",children:[x.jsx("div",{className:"inline-flex p-4 rounded-full bg-orange-500/10 text-orange-500 mb-2",children:x.jsx(af,{className:"w-8 h-8"})}),x.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:"Database Not Configured"}),x.jsxs("p",{className:"text-muted-foreground max-w-md mx-auto",children:["No ",x.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-foreground font-mono text-sm",children:"MYSQL_URL"})," found in your ",x.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-foreground font-mono text-sm",children:".env"})," file. Follow the steps below to get started."]})]}),x.jsxs("section",{className:"space-y-3",children:[x.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[x.jsx(Xv,{className:"w-5 h-5 text-emerald-500"}),"Prerequisites"]}),x.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Database Studio requires a connection to a MySQL database. Ensure your database is accessible and you have the necessary credentials."})]}),x.jsxs("section",{className:"space-y-4",children:[x.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[x.jsx(qv,{className:"w-5 h-5 text-blue-500"}),"Environment Setup"]}),x.jsxs("p",{className:"text-sm text-muted-foreground",children:["Create a ",x.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-foreground font-mono",children:".env"})," file in the root of your project with:"]}),x.jsxs("div",{className:"bg-slate-950 p-4 rounded-lg font-mono text-xs text-slate-300 space-y-2 border border-slate-800 shadow-inner",children:[x.jsxs("div",{children:[x.jsx("span",{className:"text-purple-400",children:"# Database connection string"}),x.jsx("br",{}),x.jsx("span",{className:"text-emerald-400",children:"MYSQL_URL"}),"=mysql://user:password@localhost:3306/database_name"]}),x.jsxs("div",{className:"pt-2 border-t border-slate-800",children:[x.jsx("span",{className:"text-purple-400",children:"# Optional: Server port (defaults to 5555)"}),x.jsx("br",{}),x.jsx("span",{className:"text-emerald-400",children:"PORT"}),"=5555"]})]})]}),x.jsxs("section",{className:"space-y-3",children:[x.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[x.jsx(fd,{className:"w-5 h-5 text-indigo-500"}),"Next Steps"]}),x.jsxs("ol",{className:"text-sm text-muted-foreground leading-relaxed list-decimal list-inside space-y-2",children:[x.jsxs("li",{children:["Add your ",x.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-foreground font-mono",children:"MYSQL_URL"})," to the ",x.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-foreground font-mono",children:".env"})," file"]}),x.jsx("li",{children:"Restart Database Studio"}),x.jsx("li",{children:"Enter your license key to connect"})]})]}),x.jsx(lh,{}),x.jsxs("section",{className:"space-y-3",children:[x.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[x.jsx(Yv,{className:"w-5 h-5 text-muted-foreground"}),"Troubleshooting"]}),x.jsxs("p",{className:"text-sm text-muted-foreground leading-relaxed",children:["If you encounter connection errors, verify that your MySQL server is running and your ",x.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded font-mono",children:"MYSQL_URL"})," is correctly formatted. Ensure no firewall is blocking the specified port."]})]})]})})},dL=()=>x.jsx(ck,{client:uL,children:x.jsxs(IR,{children:[x.jsx(CP,{}),x.jsx(rT,{}),x.jsx(cL,{})]})});PP.createRoot(document.getElementById("root")).render(x.jsx(dL,{}));
|
|
61
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return w.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},YO="DialogDescriptionWarning",GO=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zb(YO).contentName}}.`;return w.useEffect(()=>{const a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},XO=Rb,qO=Nb,ZO=jb,Ub=Mb,$b=Db,Wb=Lb,Hb=Ib,JO=Vb;const eL=XO,tL=qO,nL=ZO,Kb=w.forwardRef(({className:e,...t},r)=>x.jsx(Ub,{ref:r,className:xe("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}));Kb.displayName=Ub.displayName;const Qb=w.forwardRef(({className:e,children:t,...r},s)=>x.jsxs(nL,{children:[x.jsx(Kb,{}),x.jsxs($b,{ref:s,className:xe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[t,x.jsxs(JO,{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-accent data-[state=open]:text-muted-foreground",children:[x.jsx(lf,{className:"h-4 w-4"}),x.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Qb.displayName=$b.displayName;const Yb=({className:e,...t})=>x.jsx("div",{className:xe("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Yb.displayName="DialogHeader";const Gb=w.forwardRef(({className:e,...t},r)=>x.jsx(Wb,{ref:r,className:xe("text-lg font-semibold leading-none tracking-tight",e),...t}));Gb.displayName=Wb.displayName;const Xb=w.forwardRef(({className:e,...t},r)=>x.jsx(Hb,{ref:r,className:xe("text-sm text-muted-foreground",e),...t}));Xb.displayName=Hb.displayName;var rL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oL=rL.reduce((e,t)=>{const r=pb(`Primitive.${t}`),s=w.forwardRef((a,l)=>{const{asChild:c,...d}=a,h=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(h,{...d,ref:l})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),sL="Separator",gv="horizontal",iL=["horizontal","vertical"],qb=w.forwardRef((e,t)=>{const{decorative:r,orientation:s=gv,...a}=e,l=aL(s)?s:gv,d=r?{role:"none"}:{"aria-orientation":l==="vertical"?l:void 0,role:"separator"};return x.jsx(oL.div,{"data-orientation":l,...d,...a,ref:t})});qb.displayName=sL;function aL(e){return iL.includes(e)}var Zb=qb;const lh=w.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...s},a)=>x.jsx(Zb,{ref:a,decorative:r,orientation:t,className:xe("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...s}));lh.displayName=Zb.displayName;function lL(){return x.jsxs(eL,{children:[x.jsx(tL,{asChild:!0,children:x.jsxs(oh,{variant:"outline",className:"gap-2",children:[x.jsx(fd,{className:"w-4 h-4"}),"Documentation"]})}),x.jsxs(Qb,{className:"max-w-2xl h-[80vh] flex flex-col p-0",children:[x.jsxs(Yb,{className:"p-6 pb-2 border-b border-border",children:[x.jsxs(Gb,{className:"text-2xl flex items-center gap-2",children:[x.jsx(fd,{className:"w-6 h-6 text-primary"}),"Database Studio Guide"]}),x.jsx(Xb,{children:"Learn how to set up and use Database Studio for your development environment."})]}),x.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar p-6",children:x.jsxs("div",{className:"space-y-8 pb-4",children:[x.jsxs("section",{className:"space-y-3",children:[x.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[x.jsx(Xv,{className:"w-5 h-5 text-emerald-500"}),"Prerequisites"]}),x.jsxs("p",{className:"text-sm text-muted-foreground leading-relaxed",children:["Database Studio supports ",x.jsx("strong",{children:"MySQL"})," and"," ",x.jsx("strong",{children:"MongoDB"}),". Ensure your database server is running and you have the connection credentials."]})]}),x.jsxs("section",{className:"space-y-4",children:[x.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[x.jsx(qv,{className:"w-5 h-5 text-blue-500"}),"Environment Setup"]}),x.jsxs("div",{className:"space-y-2",children:[x.jsxs("p",{className:"text-sm text-muted-foreground",children:["Create a"," ",x.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-foreground font-mono",children:".env"})," ","file in your project root with ",x.jsx("strong",{children:"one"})," of the following:"]}),x.jsxs("div",{className:"bg-slate-950 p-4 rounded-lg font-mono text-xs text-slate-300 space-y-2 border border-slate-800 shadow-inner",children:[x.jsxs("div",{children:[x.jsx("span",{className:"text-purple-400",children:"# For MySQL"}),x.jsx("br",{}),x.jsx("span",{className:"text-emerald-400",children:"MYSQL_URL"}),"=mysql://user:password@localhost:3306/database_name"]}),x.jsxs("div",{className:"pt-2 border-t border-slate-800",children:[x.jsx("span",{className:"text-purple-400",children:"# For MongoDB"}),x.jsx("br",{}),x.jsx("span",{className:"text-emerald-400",children:"MONGODB_URL"}),"=mongodb://user:password@localhost:27017/database_name"]}),x.jsxs("div",{className:"pt-2 border-t border-slate-800",children:[x.jsx("span",{className:"text-purple-400",children:"# Optional: Server port (defaults to 5555)"}),x.jsx("br",{}),x.jsx("span",{className:"text-emerald-400",children:"STUDIO_PORT"}),"=5555"]})]})]})]}),x.jsxs("section",{className:"space-y-3",children:[x.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[x.jsx(af,{className:"w-5 h-5 text-indigo-500"}),"Features"]}),x.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[x.jsxs("div",{className:"p-3 border border-border rounded-lg bg-secondary/10",children:[x.jsx("h4",{className:"font-medium text-sm mb-1",children:"Data Explorer"}),x.jsx("p",{className:"text-xs text-muted-foreground",children:"Browse and paginate through your database tables or collections."})]}),x.jsxs("div",{className:"p-3 border border-border rounded-lg bg-secondary/10",children:[x.jsx("h4",{className:"font-medium text-sm mb-1",children:"Canvas View"}),x.jsx("p",{className:"text-xs text-muted-foreground",children:"Visualize your schema as interactive, draggable table cards."})]}),x.jsxs("div",{className:"p-3 border border-border rounded-lg bg-secondary/10",children:[x.jsx("h4",{className:"font-medium text-sm mb-1",children:"Schema Viewer"}),x.jsx("p",{className:"text-xs text-muted-foreground",children:"Inspect table structures, column types, and inferred MongoDB schemas."})]}),x.jsxs("div",{className:"p-3 border border-border rounded-lg bg-secondary/10",children:[x.jsx("h4",{className:"font-medium text-sm mb-1",children:"Export to PDF"}),x.jsx("p",{className:"text-xs text-muted-foreground",children:"Generate professional documentation of your schema."})]})]})]}),x.jsx(lh,{}),x.jsxs("section",{className:"space-y-3",children:[x.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[x.jsx(Yv,{className:"w-5 h-5 text-muted-foreground"}),"Troubleshooting"]}),x.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"If you encounter connection errors, verify that your database server is running and the connection URL is correctly formatted. Ensure no firewall is blocking the specified port."})]})]})})]})]})}const uL=new lk,cL=()=>{const[e,t]=w.useState(!1),[r,s]=w.useState(""),[a,l]=w.useState(!1),[c,d]=w.useState(!0),[h,p]=w.useState(null),[m,y]=w.useState(!0);w.useEffect(()=>{Promise.all([fetch("/api/status").then(v=>v.json()),fetch("/api/database",{credentials:"include"})]).then(([v,P])=>{d(v.configured),P.status===401?l(!1):l(!0)}).finally(()=>y(!1))},[]);const b=async()=>{const v=r.trim();if(!v){p("Please enter a license key");return}t(!0),p(null);try{const S=await(await fetch("/api/validate-license",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({licenseKey:v})})).json();S.success?(l(!0),window.location.reload()):p(S.message||"Invalid License Key. Please check and try again.")}catch(P){console.error("Validation error:",P),p("Failed to validate license.")}finally{t(!1)}};return c?a?x.jsx(uN,{children:x.jsxs(iN,{children:[x.jsx(Rd,{path:"/",element:x.jsx(_D,{})}),x.jsx(Rd,{path:"*",element:x.jsx(ID,{})})]})}):x.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background p-4",children:x.jsxs("div",{className:"w-full max-w-md space-y-6 text-center",children:[x.jsx("div",{className:"inline-flex p-4 rounded-full bg-primary/10 text-primary mb-2",children:x.jsx(Gv,{className:"w-8 h-8"})}),x.jsxs("div",{className:"space-y-2",children:[x.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:"API Key Required"}),x.jsx("p",{className:"text-muted-foreground text-sm",children:"Please enter your license key to access the Database Studio. Use FREE123"})]}),x.jsxs("div",{className:"space-y-4",children:[x.jsxs("div",{className:"flex gap-2",children:[x.jsx(fb,{type:"password",placeholder:"Enter License Key",value:r,onChange:v=>{s(v.target.value),p(null)},onKeyDown:v=>v.key==="Enter"&&!e&&b(),disabled:e}),x.jsx(oh,{onClick:b,disabled:e,children:e?"Validating...":"Connect"})]}),x.jsx("div",{className:"flex justify-center pt-2",children:x.jsx(lL,{})}),h&&x.jsx("p",{className:"text-destructive text-sm font-medium animate-in fade-in slide-in-from-top-1",children:h})]})]})}):x.jsx("div",{className:"min-h-screen bg-background",children:x.jsxs("div",{className:"max-w-2xl mx-auto px-6 py-16 space-y-10",children:[x.jsxs("div",{className:"text-center space-y-3",children:[x.jsx("div",{className:"inline-flex p-4 rounded-full bg-orange-500/10 text-orange-500 mb-2",children:x.jsx(af,{className:"w-8 h-8"})}),x.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:"Database Not Configured"}),x.jsxs("p",{className:"text-muted-foreground max-w-md mx-auto",children:["No database connection URL found in your"," ",x.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-foreground font-mono text-sm",children:".env"})," ","file. Add either"," ",x.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-foreground font-mono text-sm",children:"MYSQL_URL"})," ","or"," ",x.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-foreground font-mono text-sm",children:"MONGODB_URL"})," ","to get started."]})]}),x.jsxs("section",{className:"space-y-3",children:[x.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[x.jsx(Xv,{className:"w-5 h-5 text-emerald-500"}),"Prerequisites"]}),x.jsxs("p",{className:"text-sm text-muted-foreground leading-relaxed",children:["Database Studio supports ",x.jsx("strong",{children:"MySQL"})," and"," ",x.jsx("strong",{children:"MongoDB"}),". Ensure your database server is running and you have the connection credentials."]})]}),x.jsxs("section",{className:"space-y-4",children:[x.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[x.jsx(qv,{className:"w-5 h-5 text-blue-500"}),"Environment Setup"]}),x.jsxs("p",{className:"text-sm text-muted-foreground",children:["Create a"," ",x.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-foreground font-mono",children:".env"})," ","file in the root of your project with ",x.jsx("strong",{children:"one"})," of the following:"]}),x.jsxs("div",{className:"bg-slate-950 p-4 rounded-lg font-mono text-xs text-slate-300 space-y-2 border border-slate-800 shadow-inner",children:[x.jsxs("div",{children:[x.jsx("span",{className:"text-purple-400",children:"# For MySQL"}),x.jsx("br",{}),x.jsx("span",{className:"text-emerald-400",children:"MYSQL_URL"}),"=mysql://user:password@localhost:3306/database_name"]}),x.jsxs("div",{className:"pt-2 border-t border-slate-800",children:[x.jsx("span",{className:"text-purple-400",children:"# For MongoDB"}),x.jsx("br",{}),x.jsx("span",{className:"text-emerald-400",children:"MONGODB_URL"}),"=mongodb://user:password@localhost:27017/database_name"]}),x.jsxs("div",{className:"pt-2 border-t border-slate-800",children:[x.jsx("span",{className:"text-purple-400",children:"# Optional: Server port (defaults to 5555)"}),x.jsx("br",{}),x.jsx("span",{className:"text-emerald-400",children:"STUDIO_PORT"}),"=5555"]})]})]}),x.jsxs("section",{className:"space-y-3",children:[x.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[x.jsx(fd,{className:"w-5 h-5 text-indigo-500"}),"Next Steps"]}),x.jsxs("ol",{className:"text-sm text-muted-foreground leading-relaxed list-decimal list-inside space-y-2",children:[x.jsxs("li",{children:["Add"," ",x.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-foreground font-mono",children:"MYSQL_URL"})," ","or"," ",x.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-foreground font-mono",children:"MONGODB_URL"})," ","to your"," ",x.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-foreground font-mono",children:".env"})," ","file"]}),x.jsx("li",{children:"Restart Database Studio"}),x.jsx("li",{children:"Enter your license key to connect"})]})]}),x.jsx(lh,{}),x.jsxs("section",{className:"space-y-3",children:[x.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[x.jsx(Yv,{className:"w-5 h-5 text-muted-foreground"}),"Troubleshooting"]}),x.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"If you encounter connection errors, verify that your database server is running and the connection URL is correctly formatted. Ensure no firewall is blocking the specified port."})]})]})})},dL=()=>x.jsx(ck,{client:uL,children:x.jsxs(IR,{children:[x.jsx(CP,{}),x.jsx(rT,{}),x.jsx(cL,{})]})});PP.createRoot(document.getElementById("root")).render(x.jsx(dL,{}));
|