HEX
Server: LiteSpeed
System: Linux in-mum-web785.main-hosting.eu 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
User: u338768758 (338768758)
PHP: 8.3.30
Disabled: system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: /home/u338768758/domains/getleadss.com/public_html/assets/index-hl6e2gQI.js
var kh=e=>{throw TypeError(e)};var Ql=(e,t,n)=>t.has(e)||kh("Cannot "+n);var R=(e,t,n)=>(Ql(e,t,"read from private field"),n?n.call(e):t.get(e)),J=(e,t,n)=>t.has(e)?kh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),H=(e,t,n,r)=>(Ql(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Le=(e,t,n)=>(Ql(e,t,"access private method"),n);var Rs=(e,t,n,r)=>({set _(o){H(e,t,o,n)},get _(){return R(e,t,r)}});function fS(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function qg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zg={exports:{}},cl={},Jg={exports:{}},X={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var fs=Symbol.for("react.element"),hS=Symbol.for("react.portal"),pS=Symbol.for("react.fragment"),mS=Symbol.for("react.strict_mode"),gS=Symbol.for("react.profiler"),yS=Symbol.for("react.provider"),vS=Symbol.for("react.context"),wS=Symbol.for("react.forward_ref"),xS=Symbol.for("react.suspense"),SS=Symbol.for("react.memo"),ES=Symbol.for("react.lazy"),Rh=Symbol.iterator;function CS(e){return e===null||typeof e!="object"?null:(e=Rh&&e[Rh]||e["@@iterator"],typeof e=="function"?e:null)}var ey={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ty=Object.assign,ny={};function Go(e,t,n){this.props=e,this.context=t,this.refs=ny,this.updater=n||ey}Go.prototype.isReactComponent={};Go.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Go.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ry(){}ry.prototype=Go.prototype;function Rd(e,t,n){this.props=e,this.context=t,this.refs=ny,this.updater=n||ey}var Ad=Rd.prototype=new ry;Ad.constructor=Rd;ty(Ad,Go.prototype);Ad.isPureReactComponent=!0;var Ah=Array.isArray,oy=Object.prototype.hasOwnProperty,Md={current:null},iy={key:!0,ref:!0,__self:!0,__source:!0};function sy(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)oy.call(t,r)&&!iy.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:fs,type:e,key:i,ref:s,props:o,_owner:Md.current}}function bS(e,t){return{$$typeof:fs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Nd(e){return typeof e=="object"&&e!==null&&e.$$typeof===fs}function TS(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Mh=/\/+/g;function Yl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?TS(""+e.key):t.toString(36)}function oa(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case fs:case hS:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Yl(s,0):r,Ah(o)?(n="",e!=null&&(n=e.replace(Mh,"$&/")+"/"),oa(o,t,n,"",function(u){return u})):o!=null&&(Nd(o)&&(o=bS(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Mh,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Ah(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+Yl(i,a);s+=oa(i,t,n,l,o)}else if(l=CS(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+Yl(i,a++),s+=oa(i,t,n,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function As(e,t,n){if(e==null)return e;var r=[],o=0;return oa(e,r,"","",function(i){return t.call(n,i,o++)}),r}function PS(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ge={current:null},ia={transition:null},kS={ReactCurrentDispatcher:Ge,ReactCurrentBatchConfig:ia,ReactCurrentOwner:Md};function ay(){throw Error("act(...) is not supported in production builds of React.")}X.Children={map:As,forEach:function(e,t,n){As(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return As(e,function(){t++}),t},toArray:function(e){return As(e,function(t){return t})||[]},only:function(e){if(!Nd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};X.Component=Go;X.Fragment=pS;X.Profiler=gS;X.PureComponent=Rd;X.StrictMode=mS;X.Suspense=xS;X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kS;X.act=ay;X.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ty({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=Md.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)oy.call(t,l)&&!iy.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:fs,type:e.type,key:o,ref:i,props:r,_owner:s}};X.createContext=function(e){return e={$$typeof:vS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:yS,_context:e},e.Consumer=e};X.createElement=sy;X.createFactory=function(e){var t=sy.bind(null,e);return t.type=e,t};X.createRef=function(){return{current:null}};X.forwardRef=function(e){return{$$typeof:wS,render:e}};X.isValidElement=Nd;X.lazy=function(e){return{$$typeof:ES,_payload:{_status:-1,_result:e},_init:PS}};X.memo=function(e,t){return{$$typeof:SS,type:e,compare:t===void 0?null:t}};X.startTransition=function(e){var t=ia.transition;ia.transition={};try{e()}finally{ia.transition=t}};X.unstable_act=ay;X.useCallback=function(e,t){return Ge.current.useCallback(e,t)};X.useContext=function(e){return Ge.current.useContext(e)};X.useDebugValue=function(){};X.useDeferredValue=function(e){return Ge.current.useDeferredValue(e)};X.useEffect=function(e,t){return Ge.current.useEffect(e,t)};X.useId=function(){return Ge.current.useId()};X.useImperativeHandle=function(e,t,n){return Ge.current.useImperativeHandle(e,t,n)};X.useInsertionEffect=function(e,t){return Ge.current.useInsertionEffect(e,t)};X.useLayoutEffect=function(e,t){return Ge.current.useLayoutEffect(e,t)};X.useMemo=function(e,t){return Ge.current.useMemo(e,t)};X.useReducer=function(e,t,n){return Ge.current.useReducer(e,t,n)};X.useRef=function(e){return Ge.current.useRef(e)};X.useState=function(e){return Ge.current.useState(e)};X.useSyncExternalStore=function(e,t,n){return Ge.current.useSyncExternalStore(e,t,n)};X.useTransition=function(){return Ge.current.useTransition()};X.version="18.3.1";Jg.exports=X;var v=Jg.exports;const O=qg(v),Dd=fS({__proto__:null,default:O},[v]);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var RS=v,AS=Symbol.for("react.element"),MS=Symbol.for("react.fragment"),NS=Object.prototype.hasOwnProperty,DS=RS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,OS={key:!0,ref:!0,__self:!0,__source:!0};function ly(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)NS.call(t,r)&&!OS.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:AS,type:e,key:i,ref:s,props:o,_owner:DS.current}}cl.Fragment=MS;cl.jsx=ly;cl.jsxs=ly;Zg.exports=cl;var S=Zg.exports,uy={exports:{}},ut={},cy={exports:{}},dy={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(k,A){var j=k.length;k.push(A);e:for(;0<j;){var U=j-1>>>1,z=k[U];if(0<o(z,A))k[U]=A,k[j]=z,j=U;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var A=k[0],j=k.pop();if(j!==A){k[0]=j;e:for(var U=0,z=k.length,Y=z>>>1;U<Y;){var q=2*(U+1)-1,xe=k[q],Oe=q+1,ee=k[Oe];if(0>o(xe,j))Oe<z&&0>o(ee,xe)?(k[U]=ee,k[Oe]=j,U=Oe):(k[U]=xe,k[q]=j,U=q);else if(Oe<z&&0>o(ee,j))k[U]=ee,k[Oe]=j,U=Oe;else break e}}return A}function o(k,A){var j=k.sortIndex-A.sortIndex;return j!==0?j:k.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,h=!1,x=!1,p=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(k){for(var A=n(u);A!==null;){if(A.callback===null)r(u);else if(A.startTime<=k)r(u),A.sortIndex=A.expirationTime,t(l,A);else break;A=n(u)}}function E(k){if(p=!1,y(k),!x)if(n(l)!==null)x=!0,$(C);else{var A=n(u);A!==null&&F(E,A.startTime-k)}}function C(k,A){x=!1,p&&(p=!1,m(P),P=-1),h=!0;var j=f;try{for(y(A),d=n(l);d!==null&&(!(d.expirationTime>A)||k&&!V());){var U=d.callback;if(typeof U=="function"){d.callback=null,f=d.priorityLevel;var z=U(d.expirationTime<=A);A=e.unstable_now(),typeof z=="function"?d.callback=z:d===n(l)&&r(l),y(A)}else r(l);d=n(l)}if(d!==null)var Y=!0;else{var q=n(u);q!==null&&F(E,q.startTime-A),Y=!1}return Y}finally{d=null,f=j,h=!1}}var b=!1,T=null,P=-1,N=5,D=-1;function V(){return!(e.unstable_now()-D<N)}function _(){if(T!==null){var k=e.unstable_now();D=k;var A=!0;try{A=T(!0,k)}finally{A?G():(b=!1,T=null)}}else b=!1}var G;if(typeof g=="function")G=function(){g(_)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,Q=L.port2;L.port1.onmessage=_,G=function(){Q.postMessage(null)}}else G=function(){w(_,0)};function $(k){T=k,b||(b=!0,G())}function F(k,A){P=w(function(){k(e.unstable_now())},A)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_continueExecution=function(){x||h||(x=!0,$(C))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(k){switch(f){case 1:case 2:case 3:var A=3;break;default:A=f}var j=f;f=A;try{return k()}finally{f=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,A){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var j=f;f=k;try{return A()}finally{f=j}},e.unstable_scheduleCallback=function(k,A,j){var U=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?U+j:U):j=U,k){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=j+z,k={id:c++,callback:A,priorityLevel:k,startTime:j,expirationTime:z,sortIndex:-1},j>U?(k.sortIndex=j,t(u,k),n(l)===null&&k===n(u)&&(p?(m(P),P=-1):p=!0,F(E,j-U))):(k.sortIndex=z,t(l,k),x||h||(x=!0,$(C))),k},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(k){var A=f;return function(){var j=f;f=A;try{return k.apply(this,arguments)}finally{f=j}}}})(dy);cy.exports=dy;var LS=cy.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var jS=v,lt=LS;function M(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var fy=new Set,_i={};function Br(e,t){_o(e,t),_o(e+"Capture",t)}function _o(e,t){for(_i[e]=t,e=0;e<t.length;e++)fy.add(t[e])}var hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qu=Object.prototype.hasOwnProperty,_S=/^[: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]*$/,Nh={},Dh={};function IS(e){return qu.call(Dh,e)?!0:qu.call(Nh,e)?!1:_S.test(e)?Dh[e]=!0:(Nh[e]=!0,!1)}function FS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function VS(e,t,n,r){if(t===null||typeof t>"u"||FS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Qe(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var De={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){De[e]=new Qe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];De[t]=new Qe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){De[e]=new Qe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){De[e]=new Qe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){De[e]=new Qe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){De[e]=new Qe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){De[e]=new Qe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){De[e]=new Qe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){De[e]=new Qe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Od=/[\-:]([a-z])/g;function Ld(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Od,Ld);De[t]=new Qe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Od,Ld);De[t]=new Qe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Od,Ld);De[t]=new Qe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){De[e]=new Qe(e,1,!1,e.toLowerCase(),null,!1,!1)});De.xlinkHref=new Qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){De[e]=new Qe(e,1,!1,e.toLowerCase(),null,!0,!0)});function jd(e,t,n,r){var o=De.hasOwnProperty(t)?De[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(VS(t,n,o,r)&&(n=null),r||o===null?IS(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var En=jS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ms=Symbol.for("react.element"),Jr=Symbol.for("react.portal"),eo=Symbol.for("react.fragment"),_d=Symbol.for("react.strict_mode"),Zu=Symbol.for("react.profiler"),hy=Symbol.for("react.provider"),py=Symbol.for("react.context"),Id=Symbol.for("react.forward_ref"),Ju=Symbol.for("react.suspense"),ec=Symbol.for("react.suspense_list"),Fd=Symbol.for("react.memo"),jn=Symbol.for("react.lazy"),my=Symbol.for("react.offscreen"),Oh=Symbol.iterator;function ii(e){return e===null||typeof e!="object"?null:(e=Oh&&e[Oh]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Object.assign,Xl;function gi(e){if(Xl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Xl=t&&t[1]||""}return`
`+Xl+e}var ql=!1;function Zl(e,t){if(!e||ql)return"";ql=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
`),i=r.stack.split(`
`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=`
`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{ql=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gi(e):""}function zS(e){switch(e.tag){case 5:return gi(e.type);case 16:return gi("Lazy");case 13:return gi("Suspense");case 19:return gi("SuspenseList");case 0:case 2:case 15:return e=Zl(e.type,!1),e;case 11:return e=Zl(e.type.render,!1),e;case 1:return e=Zl(e.type,!0),e;default:return""}}function tc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case eo:return"Fragment";case Jr:return"Portal";case Zu:return"Profiler";case _d:return"StrictMode";case Ju:return"Suspense";case ec:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case py:return(e.displayName||"Context")+".Consumer";case hy:return(e._context.displayName||"Context")+".Provider";case Id:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fd:return t=e.displayName||null,t!==null?t:tc(e.type)||"Memo";case jn:t=e._payload,e=e._init;try{return tc(e(t))}catch{}}return null}function BS(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return tc(t);case 8:return t===_d?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function tr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $S(e){var t=gy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ns(e){e._valueTracker||(e._valueTracker=$S(e))}function yy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Pa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function nc(e,t){var n=t.checked;return pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=tr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function vy(e,t){t=t.checked,t!=null&&jd(e,"checked",t,!1)}function rc(e,t){vy(e,t);var n=tr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?oc(e,t.type,n):t.hasOwnProperty("defaultValue")&&oc(e,t.type,tr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function oc(e,t,n){(t!=="number"||Pa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yi=Array.isArray;function yo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+tr(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function ic(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(M(91));return pe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function _h(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(M(92));if(yi(n)){if(1<n.length)throw Error(M(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:tr(n)}}function wy(e,t){var n=tr(t.value),r=tr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ih(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function xy(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function sc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?xy(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ds,Sy=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ds=Ds||document.createElement("div"),Ds.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ds.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ii(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Si={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},US=["Webkit","ms","Moz","O"];Object.keys(Si).forEach(function(e){US.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Si[t]=Si[e]})});function Ey(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Si.hasOwnProperty(e)&&Si[e]?(""+t).trim():t+"px"}function Cy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Ey(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var WS=pe({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 ac(e,t){if(t){if(WS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function lc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var uc=null;function Vd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cc=null,vo=null,wo=null;function Fh(e){if(e=ms(e)){if(typeof cc!="function")throw Error(M(280));var t=e.stateNode;t&&(t=ml(t),cc(e.stateNode,e.type,t))}}function by(e){vo?wo?wo.push(e):wo=[e]:vo=e}function Ty(){if(vo){var e=vo,t=wo;if(wo=vo=null,Fh(e),t)for(e=0;e<t.length;e++)Fh(t[e])}}function Py(e,t){return e(t)}function ky(){}var Jl=!1;function Ry(e,t,n){if(Jl)return e(t,n);Jl=!0;try{return Py(e,t,n)}finally{Jl=!1,(vo!==null||wo!==null)&&(ky(),Ty())}}function Fi(e,t){var n=e.stateNode;if(n===null)return null;var r=ml(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(M(231,t,typeof n));return n}var dc=!1;if(hn)try{var si={};Object.defineProperty(si,"passive",{get:function(){dc=!0}}),window.addEventListener("test",si,si),window.removeEventListener("test",si,si)}catch{dc=!1}function HS(e,t,n,r,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ei=!1,ka=null,Ra=!1,fc=null,KS={onError:function(e){Ei=!0,ka=e}};function GS(e,t,n,r,o,i,s,a,l){Ei=!1,ka=null,HS.apply(KS,arguments)}function QS(e,t,n,r,o,i,s,a,l){if(GS.apply(this,arguments),Ei){if(Ei){var u=ka;Ei=!1,ka=null}else throw Error(M(198));Ra||(Ra=!0,fc=u)}}function $r(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Ay(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Vh(e){if($r(e)!==e)throw Error(M(188))}function YS(e){var t=e.alternate;if(!t){if(t=$r(e),t===null)throw Error(M(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Vh(o),e;if(i===r)return Vh(o),t;i=i.sibling}throw Error(M(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(M(189))}}if(n.alternate!==r)throw Error(M(190))}if(n.tag!==3)throw Error(M(188));return n.stateNode.current===n?e:t}function My(e){return e=YS(e),e!==null?Ny(e):null}function Ny(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ny(e);if(t!==null)return t;e=e.sibling}return null}var Dy=lt.unstable_scheduleCallback,zh=lt.unstable_cancelCallback,XS=lt.unstable_shouldYield,qS=lt.unstable_requestPaint,we=lt.unstable_now,ZS=lt.unstable_getCurrentPriorityLevel,zd=lt.unstable_ImmediatePriority,Oy=lt.unstable_UserBlockingPriority,Aa=lt.unstable_NormalPriority,JS=lt.unstable_LowPriority,Ly=lt.unstable_IdlePriority,dl=null,Xt=null;function eE(e){if(Xt&&typeof Xt.onCommitFiberRoot=="function")try{Xt.onCommitFiberRoot(dl,e,void 0,(e.current.flags&128)===128)}catch{}}var _t=Math.clz32?Math.clz32:rE,tE=Math.log,nE=Math.LN2;function rE(e){return e>>>=0,e===0?32:31-(tE(e)/nE|0)|0}var Os=64,Ls=4194304;function vi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ma(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=vi(a):(i&=s,i!==0&&(r=vi(i)))}else s=n&~o,s!==0?r=vi(s):i!==0&&(r=vi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-_t(t),o=1<<n,r|=e[n],t&=~o;return r}function oE(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function iE(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-_t(i),a=1<<s,l=o[s];l===-1?(!(a&n)||a&r)&&(o[s]=oE(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function hc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function jy(){var e=Os;return Os<<=1,!(Os&4194240)&&(Os=64),e}function eu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function hs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_t(t),e[t]=n}function sE(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-_t(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Bd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_t(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var te=0;function _y(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Iy,$d,Fy,Vy,zy,pc=!1,js=[],Gn=null,Qn=null,Yn=null,Vi=new Map,zi=new Map,In=[],aE="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 Bh(e,t){switch(e){case"focusin":case"focusout":Gn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":Yn=null;break;case"pointerover":case"pointerout":Vi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zi.delete(t.pointerId)}}function ai(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=ms(t),t!==null&&$d(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function lE(e,t,n,r,o){switch(t){case"focusin":return Gn=ai(Gn,e,t,n,r,o),!0;case"dragenter":return Qn=ai(Qn,e,t,n,r,o),!0;case"mouseover":return Yn=ai(Yn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Vi.set(i,ai(Vi.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,zi.set(i,ai(zi.get(i)||null,e,t,n,r,o)),!0}return!1}function By(e){var t=wr(e.target);if(t!==null){var n=$r(t);if(n!==null){if(t=n.tag,t===13){if(t=Ay(n),t!==null){e.blockedOn=t,zy(e.priority,function(){Fy(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function sa(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=mc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);uc=r,n.target.dispatchEvent(r),uc=null}else return t=ms(n),t!==null&&$d(t),e.blockedOn=n,!1;t.shift()}return!0}function $h(e,t,n){sa(e)&&n.delete(t)}function uE(){pc=!1,Gn!==null&&sa(Gn)&&(Gn=null),Qn!==null&&sa(Qn)&&(Qn=null),Yn!==null&&sa(Yn)&&(Yn=null),Vi.forEach($h),zi.forEach($h)}function li(e,t){e.blockedOn===t&&(e.blockedOn=null,pc||(pc=!0,lt.unstable_scheduleCallback(lt.unstable_NormalPriority,uE)))}function Bi(e){function t(o){return li(o,e)}if(0<js.length){li(js[0],e);for(var n=1;n<js.length;n++){var r=js[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Gn!==null&&li(Gn,e),Qn!==null&&li(Qn,e),Yn!==null&&li(Yn,e),Vi.forEach(t),zi.forEach(t),n=0;n<In.length;n++)r=In[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<In.length&&(n=In[0],n.blockedOn===null);)By(n),n.blockedOn===null&&In.shift()}var xo=En.ReactCurrentBatchConfig,Na=!0;function cE(e,t,n,r){var o=te,i=xo.transition;xo.transition=null;try{te=1,Ud(e,t,n,r)}finally{te=o,xo.transition=i}}function dE(e,t,n,r){var o=te,i=xo.transition;xo.transition=null;try{te=4,Ud(e,t,n,r)}finally{te=o,xo.transition=i}}function Ud(e,t,n,r){if(Na){var o=mc(e,t,n,r);if(o===null)cu(e,t,r,Da,n),Bh(e,r);else if(lE(o,e,t,n,r))r.stopPropagation();else if(Bh(e,r),t&4&&-1<aE.indexOf(e)){for(;o!==null;){var i=ms(o);if(i!==null&&Iy(i),i=mc(e,t,n,r),i===null&&cu(e,t,r,Da,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else cu(e,t,r,null,n)}}var Da=null;function mc(e,t,n,r){if(Da=null,e=Vd(r),e=wr(e),e!==null)if(t=$r(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ay(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Da=e,null}function $y(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ZS()){case zd:return 1;case Oy:return 4;case Aa:case JS:return 16;case Ly:return 536870912;default:return 16}default:return 16}}var Wn=null,Wd=null,aa=null;function Uy(){if(aa)return aa;var e,t=Wd,n=t.length,r,o="value"in Wn?Wn.value:Wn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return aa=o.slice(e,1<r?1-r:void 0)}function la(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function _s(){return!0}function Uh(){return!1}function ct(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?_s:Uh,this.isPropagationStopped=Uh,this}return pe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=_s)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=_s)},persist:function(){},isPersistent:_s}),t}var Qo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hd=ct(Qo),ps=pe({},Qo,{view:0,detail:0}),fE=ct(ps),tu,nu,ui,fl=pe({},ps,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ui&&(ui&&e.type==="mousemove"?(tu=e.screenX-ui.screenX,nu=e.screenY-ui.screenY):nu=tu=0,ui=e),tu)},movementY:function(e){return"movementY"in e?e.movementY:nu}}),Wh=ct(fl),hE=pe({},fl,{dataTransfer:0}),pE=ct(hE),mE=pe({},ps,{relatedTarget:0}),ru=ct(mE),gE=pe({},Qo,{animationName:0,elapsedTime:0,pseudoElement:0}),yE=ct(gE),vE=pe({},Qo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wE=ct(vE),xE=pe({},Qo,{data:0}),Hh=ct(xE),SE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},EE={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"},CE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=CE[e])?!!t[e]:!1}function Kd(){return bE}var TE=pe({},ps,{key:function(e){if(e.key){var t=SE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=la(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?EE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kd,charCode:function(e){return e.type==="keypress"?la(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?la(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),PE=ct(TE),kE=pe({},fl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kh=ct(kE),RE=pe({},ps,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kd}),AE=ct(RE),ME=pe({},Qo,{propertyName:0,elapsedTime:0,pseudoElement:0}),NE=ct(ME),DE=pe({},fl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),OE=ct(DE),LE=[9,13,27,32],Gd=hn&&"CompositionEvent"in window,Ci=null;hn&&"documentMode"in document&&(Ci=document.documentMode);var jE=hn&&"TextEvent"in window&&!Ci,Wy=hn&&(!Gd||Ci&&8<Ci&&11>=Ci),Gh=" ",Qh=!1;function Hy(e,t){switch(e){case"keyup":return LE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ky(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var to=!1;function _E(e,t){switch(e){case"compositionend":return Ky(t);case"keypress":return t.which!==32?null:(Qh=!0,Gh);case"textInput":return e=t.data,e===Gh&&Qh?null:e;default:return null}}function IE(e,t){if(to)return e==="compositionend"||!Gd&&Hy(e,t)?(e=Uy(),aa=Wd=Wn=null,to=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Wy&&t.locale!=="ko"?null:t.data;default:return null}}var FE={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 Yh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!FE[e.type]:t==="textarea"}function Gy(e,t,n,r){by(r),t=Oa(t,"onChange"),0<t.length&&(n=new Hd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var bi=null,$i=null;function VE(e){ov(e,0)}function hl(e){var t=oo(e);if(yy(t))return e}function zE(e,t){if(e==="change")return t}var Qy=!1;if(hn){var ou;if(hn){var iu="oninput"in document;if(!iu){var Xh=document.createElement("div");Xh.setAttribute("oninput","return;"),iu=typeof Xh.oninput=="function"}ou=iu}else ou=!1;Qy=ou&&(!document.documentMode||9<document.documentMode)}function qh(){bi&&(bi.detachEvent("onpropertychange",Yy),$i=bi=null)}function Yy(e){if(e.propertyName==="value"&&hl($i)){var t=[];Gy(t,$i,e,Vd(e)),Ry(VE,t)}}function BE(e,t,n){e==="focusin"?(qh(),bi=t,$i=n,bi.attachEvent("onpropertychange",Yy)):e==="focusout"&&qh()}function $E(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hl($i)}function UE(e,t){if(e==="click")return hl(t)}function WE(e,t){if(e==="input"||e==="change")return hl(t)}function HE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ft=typeof Object.is=="function"?Object.is:HE;function Ui(e,t){if(Ft(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!qu.call(t,o)||!Ft(e[o],t[o]))return!1}return!0}function Zh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jh(e,t){var n=Zh(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Zh(n)}}function Xy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qy(){for(var e=window,t=Pa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Pa(e.document)}return t}function Qd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function KE(e){var t=qy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xy(n.ownerDocument.documentElement,n)){if(r!==null&&Qd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Jh(n,i);var s=Jh(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var GE=hn&&"documentMode"in document&&11>=document.documentMode,no=null,gc=null,Ti=null,yc=!1;function ep(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;yc||no==null||no!==Pa(r)||(r=no,"selectionStart"in r&&Qd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ti&&Ui(Ti,r)||(Ti=r,r=Oa(gc,"onSelect"),0<r.length&&(t=new Hd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=no)))}function Is(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ro={animationend:Is("Animation","AnimationEnd"),animationiteration:Is("Animation","AnimationIteration"),animationstart:Is("Animation","AnimationStart"),transitionend:Is("Transition","TransitionEnd")},su={},Zy={};hn&&(Zy=document.createElement("div").style,"AnimationEvent"in window||(delete ro.animationend.animation,delete ro.animationiteration.animation,delete ro.animationstart.animation),"TransitionEvent"in window||delete ro.transitionend.transition);function pl(e){if(su[e])return su[e];if(!ro[e])return e;var t=ro[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zy)return su[e]=t[n];return e}var Jy=pl("animationend"),ev=pl("animationiteration"),tv=pl("animationstart"),nv=pl("transitionend"),rv=new Map,tp="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 ar(e,t){rv.set(e,t),Br(t,[e])}for(var au=0;au<tp.length;au++){var lu=tp[au],QE=lu.toLowerCase(),YE=lu[0].toUpperCase()+lu.slice(1);ar(QE,"on"+YE)}ar(Jy,"onAnimationEnd");ar(ev,"onAnimationIteration");ar(tv,"onAnimationStart");ar("dblclick","onDoubleClick");ar("focusin","onFocus");ar("focusout","onBlur");ar(nv,"onTransitionEnd");_o("onMouseEnter",["mouseout","mouseover"]);_o("onMouseLeave",["mouseout","mouseover"]);_o("onPointerEnter",["pointerout","pointerover"]);_o("onPointerLeave",["pointerout","pointerover"]);Br("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Br("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Br("onBeforeInput",["compositionend","keypress","textInput","paste"]);Br("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Br("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Br("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wi="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(" "),XE=new Set("cancel close invalid load scroll toggle".split(" ").concat(wi));function np(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,QS(r,t,void 0,e),e.currentTarget=null}function ov(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;np(o,a,u),i=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;np(o,a,u),i=l}}}if(Ra)throw e=fc,Ra=!1,fc=null,e}function ie(e,t){var n=t[Ec];n===void 0&&(n=t[Ec]=new Set);var r=e+"__bubble";n.has(r)||(iv(t,e,2,!1),n.add(r))}function uu(e,t,n){var r=0;t&&(r|=4),iv(n,e,r,t)}var Fs="_reactListening"+Math.random().toString(36).slice(2);function Wi(e){if(!e[Fs]){e[Fs]=!0,fy.forEach(function(n){n!=="selectionchange"&&(XE.has(n)||uu(n,!1,e),uu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fs]||(t[Fs]=!0,uu("selectionchange",!1,t))}}function iv(e,t,n,r){switch($y(t)){case 1:var o=cE;break;case 4:o=dE;break;default:o=Ud}n=o.bind(null,t,n,e),o=void 0,!dc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function cu(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;a!==null;){if(s=wr(a),s===null)return;if(l=s.tag,l===5||l===6){r=i=s;continue e}a=a.parentNode}}r=r.return}Ry(function(){var u=i,c=Vd(n),d=[];e:{var f=rv.get(e);if(f!==void 0){var h=Hd,x=e;switch(e){case"keypress":if(la(n)===0)break e;case"keydown":case"keyup":h=PE;break;case"focusin":x="focus",h=ru;break;case"focusout":x="blur",h=ru;break;case"beforeblur":case"afterblur":h=ru;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Wh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=pE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=AE;break;case Jy:case ev:case tv:h=yE;break;case nv:h=NE;break;case"scroll":h=fE;break;case"wheel":h=OE;break;case"copy":case"cut":case"paste":h=wE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Kh}var p=(t&4)!==0,w=!p&&e==="scroll",m=p?f!==null?f+"Capture":null:f;p=[];for(var g=u,y;g!==null;){y=g;var E=y.stateNode;if(y.tag===5&&E!==null&&(y=E,m!==null&&(E=Fi(g,m),E!=null&&p.push(Hi(g,E,y)))),w)break;g=g.return}0<p.length&&(f=new h(f,x,null,n,c),d.push({event:f,listeners:p}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==uc&&(x=n.relatedTarget||n.fromElement)&&(wr(x)||x[pn]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(x=n.relatedTarget||n.toElement,h=u,x=x?wr(x):null,x!==null&&(w=$r(x),x!==w||x.tag!==5&&x.tag!==6)&&(x=null)):(h=null,x=u),h!==x)){if(p=Wh,E="onMouseLeave",m="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(p=Kh,E="onPointerLeave",m="onPointerEnter",g="pointer"),w=h==null?f:oo(h),y=x==null?f:oo(x),f=new p(E,g+"leave",h,n,c),f.target=w,f.relatedTarget=y,E=null,wr(c)===u&&(p=new p(m,g+"enter",x,n,c),p.target=y,p.relatedTarget=w,E=p),w=E,h&&x)t:{for(p=h,m=x,g=0,y=p;y;y=Yr(y))g++;for(y=0,E=m;E;E=Yr(E))y++;for(;0<g-y;)p=Yr(p),g--;for(;0<y-g;)m=Yr(m),y--;for(;g--;){if(p===m||m!==null&&p===m.alternate)break t;p=Yr(p),m=Yr(m)}p=null}else p=null;h!==null&&rp(d,f,h,p,!1),x!==null&&w!==null&&rp(d,w,x,p,!0)}}e:{if(f=u?oo(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var C=zE;else if(Yh(f))if(Qy)C=WE;else{C=$E;var b=BE}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(C=UE);if(C&&(C=C(e,u))){Gy(d,C,n,c);break e}b&&b(e,f,u),e==="focusout"&&(b=f._wrapperState)&&b.controlled&&f.type==="number"&&oc(f,"number",f.value)}switch(b=u?oo(u):window,e){case"focusin":(Yh(b)||b.contentEditable==="true")&&(no=b,gc=u,Ti=null);break;case"focusout":Ti=gc=no=null;break;case"mousedown":yc=!0;break;case"contextmenu":case"mouseup":case"dragend":yc=!1,ep(d,n,c);break;case"selectionchange":if(GE)break;case"keydown":case"keyup":ep(d,n,c)}var T;if(Gd)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else to?Hy(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(Wy&&n.locale!=="ko"&&(to||P!=="onCompositionStart"?P==="onCompositionEnd"&&to&&(T=Uy()):(Wn=c,Wd="value"in Wn?Wn.value:Wn.textContent,to=!0)),b=Oa(u,P),0<b.length&&(P=new Hh(P,e,null,n,c),d.push({event:P,listeners:b}),T?P.data=T:(T=Ky(n),T!==null&&(P.data=T)))),(T=jE?_E(e,n):IE(e,n))&&(u=Oa(u,"onBeforeInput"),0<u.length&&(c=new Hh("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=T))}ov(d,t)})}function Hi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Oa(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Fi(e,n),i!=null&&r.unshift(Hi(e,i,o)),i=Fi(e,t),i!=null&&r.push(Hi(e,i,o))),e=e.return}return r}function Yr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function rp(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,o?(l=Fi(n,i),l!=null&&s.unshift(Hi(n,l,a))):o||(l=Fi(n,i),l!=null&&s.push(Hi(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var qE=/\r\n?/g,ZE=/\u0000|\uFFFD/g;function op(e){return(typeof e=="string"?e:""+e).replace(qE,`
`).replace(ZE,"")}function Vs(e,t,n){if(t=op(t),op(e)!==t&&n)throw Error(M(425))}function La(){}var vc=null,wc=null;function xc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Sc=typeof setTimeout=="function"?setTimeout:void 0,JE=typeof clearTimeout=="function"?clearTimeout:void 0,ip=typeof Promise=="function"?Promise:void 0,eC=typeof queueMicrotask=="function"?queueMicrotask:typeof ip<"u"?function(e){return ip.resolve(null).then(e).catch(tC)}:Sc;function tC(e){setTimeout(function(){throw e})}function du(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Bi(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Bi(t)}function Xn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function sp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Yo=Math.random().toString(36).slice(2),Gt="__reactFiber$"+Yo,Ki="__reactProps$"+Yo,pn="__reactContainer$"+Yo,Ec="__reactEvents$"+Yo,nC="__reactListeners$"+Yo,rC="__reactHandles$"+Yo;function wr(e){var t=e[Gt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pn]||n[Gt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=sp(e);e!==null;){if(n=e[Gt])return n;e=sp(e)}return t}e=n,n=e.parentNode}return null}function ms(e){return e=e[Gt]||e[pn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function oo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(M(33))}function ml(e){return e[Ki]||null}var Cc=[],io=-1;function lr(e){return{current:e}}function se(e){0>io||(e.current=Cc[io],Cc[io]=null,io--)}function re(e,t){io++,Cc[io]=e.current,e.current=t}var nr={},ze=lr(nr),Je=lr(!1),Lr=nr;function Io(e,t){var n=e.type.contextTypes;if(!n)return nr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function et(e){return e=e.childContextTypes,e!=null}function ja(){se(Je),se(ze)}function ap(e,t,n){if(ze.current!==nr)throw Error(M(168));re(ze,t),re(Je,n)}function sv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(M(108,BS(e)||"Unknown",o));return pe({},n,r)}function _a(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nr,Lr=ze.current,re(ze,e),re(Je,Je.current),!0}function lp(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=sv(e,t,Lr),r.__reactInternalMemoizedMergedChildContext=e,se(Je),se(ze),re(ze,e)):se(Je),re(Je,n)}var ln=null,gl=!1,fu=!1;function av(e){ln===null?ln=[e]:ln.push(e)}function oC(e){gl=!0,av(e)}function ur(){if(!fu&&ln!==null){fu=!0;var e=0,t=te;try{var n=ln;for(te=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ln=null,gl=!1}catch(o){throw ln!==null&&(ln=ln.slice(e+1)),Dy(zd,ur),o}finally{te=t,fu=!1}}return null}var so=[],ao=0,Ia=null,Fa=0,gt=[],yt=0,jr=null,cn=1,dn="";function gr(e,t){so[ao++]=Fa,so[ao++]=Ia,Ia=e,Fa=t}function lv(e,t,n){gt[yt++]=cn,gt[yt++]=dn,gt[yt++]=jr,jr=e;var r=cn;e=dn;var o=32-_t(r)-1;r&=~(1<<o),n+=1;var i=32-_t(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,cn=1<<32-_t(t)+o|n<<o|r,dn=i+e}else cn=1<<i|n<<o|r,dn=e}function Yd(e){e.return!==null&&(gr(e,1),lv(e,1,0))}function Xd(e){for(;e===Ia;)Ia=so[--ao],so[ao]=null,Fa=so[--ao],so[ao]=null;for(;e===jr;)jr=gt[--yt],gt[yt]=null,dn=gt[--yt],gt[yt]=null,cn=gt[--yt],gt[yt]=null}var st=null,it=null,le=!1,jt=null;function uv(e,t){var n=vt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function up(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,st=e,it=Xn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,st=e,it=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=jr!==null?{id:cn,overflow:dn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=vt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,st=e,it=null,!0):!1;default:return!1}}function bc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Tc(e){if(le){var t=it;if(t){var n=t;if(!up(e,t)){if(bc(e))throw Error(M(418));t=Xn(n.nextSibling);var r=st;t&&up(e,t)?uv(r,n):(e.flags=e.flags&-4097|2,le=!1,st=e)}}else{if(bc(e))throw Error(M(418));e.flags=e.flags&-4097|2,le=!1,st=e}}}function cp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;st=e}function zs(e){if(e!==st)return!1;if(!le)return cp(e),le=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!xc(e.type,e.memoizedProps)),t&&(t=it)){if(bc(e))throw cv(),Error(M(418));for(;t;)uv(e,t),t=Xn(t.nextSibling)}if(cp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){it=Xn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}it=null}}else it=st?Xn(e.stateNode.nextSibling):null;return!0}function cv(){for(var e=it;e;)e=Xn(e.nextSibling)}function Fo(){it=st=null,le=!1}function qd(e){jt===null?jt=[e]:jt.push(e)}var iC=En.ReactCurrentBatchConfig;function ci(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(M(309));var r=n.stateNode}if(!r)throw Error(M(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(M(284));if(!n._owner)throw Error(M(290,e))}return e}function Bs(e,t){throw e=Object.prototype.toString.call(t),Error(M(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function dp(e){var t=e._init;return t(e._payload)}function dv(e){function t(m,g){if(e){var y=m.deletions;y===null?(m.deletions=[g],m.flags|=16):y.push(g)}}function n(m,g){if(!e)return null;for(;g!==null;)t(m,g),g=g.sibling;return null}function r(m,g){for(m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function o(m,g){return m=er(m,g),m.index=0,m.sibling=null,m}function i(m,g,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<g?(m.flags|=2,g):y):(m.flags|=2,g)):(m.flags|=1048576,g)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,g,y,E){return g===null||g.tag!==6?(g=wu(y,m.mode,E),g.return=m,g):(g=o(g,y),g.return=m,g)}function l(m,g,y,E){var C=y.type;return C===eo?c(m,g,y.props.children,E,y.key):g!==null&&(g.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===jn&&dp(C)===g.type)?(E=o(g,y.props),E.ref=ci(m,g,y),E.return=m,E):(E=ma(y.type,y.key,y.props,null,m.mode,E),E.ref=ci(m,g,y),E.return=m,E)}function u(m,g,y,E){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=xu(y,m.mode,E),g.return=m,g):(g=o(g,y.children||[]),g.return=m,g)}function c(m,g,y,E,C){return g===null||g.tag!==7?(g=Nr(y,m.mode,E,C),g.return=m,g):(g=o(g,y),g.return=m,g)}function d(m,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=wu(""+g,m.mode,y),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ms:return y=ma(g.type,g.key,g.props,null,m.mode,y),y.ref=ci(m,null,g),y.return=m,y;case Jr:return g=xu(g,m.mode,y),g.return=m,g;case jn:var E=g._init;return d(m,E(g._payload),y)}if(yi(g)||ii(g))return g=Nr(g,m.mode,y,null),g.return=m,g;Bs(m,g)}return null}function f(m,g,y,E){var C=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return C!==null?null:a(m,g,""+y,E);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ms:return y.key===C?l(m,g,y,E):null;case Jr:return y.key===C?u(m,g,y,E):null;case jn:return C=y._init,f(m,g,C(y._payload),E)}if(yi(y)||ii(y))return C!==null?null:c(m,g,y,E,null);Bs(m,y)}return null}function h(m,g,y,E,C){if(typeof E=="string"&&E!==""||typeof E=="number")return m=m.get(y)||null,a(g,m,""+E,C);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Ms:return m=m.get(E.key===null?y:E.key)||null,l(g,m,E,C);case Jr:return m=m.get(E.key===null?y:E.key)||null,u(g,m,E,C);case jn:var b=E._init;return h(m,g,y,b(E._payload),C)}if(yi(E)||ii(E))return m=m.get(y)||null,c(g,m,E,C,null);Bs(g,E)}return null}function x(m,g,y,E){for(var C=null,b=null,T=g,P=g=0,N=null;T!==null&&P<y.length;P++){T.index>P?(N=T,T=null):N=T.sibling;var D=f(m,T,y[P],E);if(D===null){T===null&&(T=N);break}e&&T&&D.alternate===null&&t(m,T),g=i(D,g,P),b===null?C=D:b.sibling=D,b=D,T=N}if(P===y.length)return n(m,T),le&&gr(m,P),C;if(T===null){for(;P<y.length;P++)T=d(m,y[P],E),T!==null&&(g=i(T,g,P),b===null?C=T:b.sibling=T,b=T);return le&&gr(m,P),C}for(T=r(m,T);P<y.length;P++)N=h(T,m,P,y[P],E),N!==null&&(e&&N.alternate!==null&&T.delete(N.key===null?P:N.key),g=i(N,g,P),b===null?C=N:b.sibling=N,b=N);return e&&T.forEach(function(V){return t(m,V)}),le&&gr(m,P),C}function p(m,g,y,E){var C=ii(y);if(typeof C!="function")throw Error(M(150));if(y=C.call(y),y==null)throw Error(M(151));for(var b=C=null,T=g,P=g=0,N=null,D=y.next();T!==null&&!D.done;P++,D=y.next()){T.index>P?(N=T,T=null):N=T.sibling;var V=f(m,T,D.value,E);if(V===null){T===null&&(T=N);break}e&&T&&V.alternate===null&&t(m,T),g=i(V,g,P),b===null?C=V:b.sibling=V,b=V,T=N}if(D.done)return n(m,T),le&&gr(m,P),C;if(T===null){for(;!D.done;P++,D=y.next())D=d(m,D.value,E),D!==null&&(g=i(D,g,P),b===null?C=D:b.sibling=D,b=D);return le&&gr(m,P),C}for(T=r(m,T);!D.done;P++,D=y.next())D=h(T,m,P,D.value,E),D!==null&&(e&&D.alternate!==null&&T.delete(D.key===null?P:D.key),g=i(D,g,P),b===null?C=D:b.sibling=D,b=D);return e&&T.forEach(function(_){return t(m,_)}),le&&gr(m,P),C}function w(m,g,y,E){if(typeof y=="object"&&y!==null&&y.type===eo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Ms:e:{for(var C=y.key,b=g;b!==null;){if(b.key===C){if(C=y.type,C===eo){if(b.tag===7){n(m,b.sibling),g=o(b,y.props.children),g.return=m,m=g;break e}}else if(b.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===jn&&dp(C)===b.type){n(m,b.sibling),g=o(b,y.props),g.ref=ci(m,b,y),g.return=m,m=g;break e}n(m,b);break}else t(m,b);b=b.sibling}y.type===eo?(g=Nr(y.props.children,m.mode,E,y.key),g.return=m,m=g):(E=ma(y.type,y.key,y.props,null,m.mode,E),E.ref=ci(m,g,y),E.return=m,m=E)}return s(m);case Jr:e:{for(b=y.key;g!==null;){if(g.key===b)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){n(m,g.sibling),g=o(g,y.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=xu(y,m.mode,E),g.return=m,m=g}return s(m);case jn:return b=y._init,w(m,g,b(y._payload),E)}if(yi(y))return x(m,g,y,E);if(ii(y))return p(m,g,y,E);Bs(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(n(m,g.sibling),g=o(g,y),g.return=m,m=g):(n(m,g),g=wu(y,m.mode,E),g.return=m,m=g),s(m)):n(m,g)}return w}var Vo=dv(!0),fv=dv(!1),Va=lr(null),za=null,lo=null,Zd=null;function Jd(){Zd=lo=za=null}function ef(e){var t=Va.current;se(Va),e._currentValue=t}function Pc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function So(e,t){za=e,Zd=lo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qe=!0),e.firstContext=null)}function Et(e){var t=e._currentValue;if(Zd!==e)if(e={context:e,memoizedValue:t,next:null},lo===null){if(za===null)throw Error(M(308));lo=e,za.dependencies={lanes:0,firstContext:e}}else lo=lo.next=e;return t}var xr=null;function tf(e){xr===null?xr=[e]:xr.push(e)}function hv(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,tf(t)):(n.next=o.next,o.next=n),t.interleaved=n,mn(e,r)}function mn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var _n=!1;function nf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function fn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Z&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,mn(e,n)}return o=r.interleaved,o===null?(t.next=t,tf(r)):(t.next=o.next,o.next=t),r.interleaved=t,mn(e,n)}function ua(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bd(e,n)}}function fp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ba(e,t,n,r){var o=e.updateQueue;_n=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,h=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,p=a;switch(f=t,h=n,p.tag){case 1:if(x=p.payload,typeof x=="function"){d=x.call(h,d,f);break e}d=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=p.payload,f=typeof x=="function"?x.call(h,d,f):x,f==null)break e;d=pe({},d,f);break e;case 2:_n=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ir|=s,e.lanes=s,e.memoizedState=d}}function hp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(M(191,o));o.call(r)}}}var gs={},qt=lr(gs),Gi=lr(gs),Qi=lr(gs);function Sr(e){if(e===gs)throw Error(M(174));return e}function rf(e,t){switch(re(Qi,t),re(Gi,e),re(qt,gs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:sc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=sc(t,e)}se(qt),re(qt,t)}function zo(){se(qt),se(Gi),se(Qi)}function mv(e){Sr(Qi.current);var t=Sr(qt.current),n=sc(t,e.type);t!==n&&(re(Gi,e),re(qt,n))}function of(e){Gi.current===e&&(se(qt),se(Gi))}var de=lr(0);function $a(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var hu=[];function sf(){for(var e=0;e<hu.length;e++)hu[e]._workInProgressVersionPrimary=null;hu.length=0}var ca=En.ReactCurrentDispatcher,pu=En.ReactCurrentBatchConfig,_r=0,he=null,be=null,ke=null,Ua=!1,Pi=!1,Yi=0,sC=0;function je(){throw Error(M(321))}function af(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ft(e[n],t[n]))return!1;return!0}function lf(e,t,n,r,o,i){if(_r=i,he=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ca.current=e===null||e.memoizedState===null?cC:dC,e=n(r,o),Pi){i=0;do{if(Pi=!1,Yi=0,25<=i)throw Error(M(301));i+=1,ke=be=null,t.updateQueue=null,ca.current=fC,e=n(r,o)}while(Pi)}if(ca.current=Wa,t=be!==null&&be.next!==null,_r=0,ke=be=he=null,Ua=!1,t)throw Error(M(300));return e}function uf(){var e=Yi!==0;return Yi=0,e}function Ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?he.memoizedState=ke=e:ke=ke.next=e,ke}function Ct(){if(be===null){var e=he.alternate;e=e!==null?e.memoizedState:null}else e=be.next;var t=ke===null?he.memoizedState:ke.next;if(t!==null)ke=t,be=e;else{if(e===null)throw Error(M(310));be=e,e={memoizedState:be.memoizedState,baseState:be.baseState,baseQueue:be.baseQueue,queue:be.queue,next:null},ke===null?he.memoizedState=ke=e:ke=ke.next=e}return ke}function Xi(e,t){return typeof t=="function"?t(e):t}function mu(e){var t=Ct(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var r=be,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,l=null,u=i;do{var c=u.lane;if((_r&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,s=r):l=l.next=d,he.lanes|=c,Ir|=c}u=u.next}while(u!==null&&u!==i);l===null?s=r:l.next=a,Ft(r,t.memoizedState)||(qe=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,he.lanes|=i,Ir|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function gu(e){var t=Ct(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Ft(i,t.memoizedState)||(qe=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function gv(){}function yv(e,t){var n=he,r=Ct(),o=t(),i=!Ft(r.memoizedState,o);if(i&&(r.memoizedState=o,qe=!0),r=r.queue,cf(xv.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ke!==null&&ke.memoizedState.tag&1){if(n.flags|=2048,qi(9,wv.bind(null,n,r,o,t),void 0,null),Re===null)throw Error(M(349));_r&30||vv(n,t,o)}return o}function vv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=he.updateQueue,t===null?(t={lastEffect:null,stores:null},he.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function wv(e,t,n,r){t.value=n,t.getSnapshot=r,Sv(t)&&Ev(e)}function xv(e,t,n){return n(function(){Sv(t)&&Ev(e)})}function Sv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ft(e,n)}catch{return!0}}function Ev(e){var t=mn(e,1);t!==null&&It(t,e,1,-1)}function pp(e){var t=Ut();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xi,lastRenderedState:e},t.queue=e,e=e.dispatch=uC.bind(null,he,e),[t.memoizedState,e]}function qi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=he.updateQueue,t===null?(t={lastEffect:null,stores:null},he.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Cv(){return Ct().memoizedState}function da(e,t,n,r){var o=Ut();he.flags|=e,o.memoizedState=qi(1|t,n,void 0,r===void 0?null:r)}function yl(e,t,n,r){var o=Ct();r=r===void 0?null:r;var i=void 0;if(be!==null){var s=be.memoizedState;if(i=s.destroy,r!==null&&af(r,s.deps)){o.memoizedState=qi(t,n,i,r);return}}he.flags|=e,o.memoizedState=qi(1|t,n,i,r)}function mp(e,t){return da(8390656,8,e,t)}function cf(e,t){return yl(2048,8,e,t)}function bv(e,t){return yl(4,2,e,t)}function Tv(e,t){return yl(4,4,e,t)}function Pv(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function kv(e,t,n){return n=n!=null?n.concat([e]):null,yl(4,4,Pv.bind(null,t,e),n)}function df(){}function Rv(e,t){var n=Ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&af(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Av(e,t){var n=Ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&af(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Mv(e,t,n){return _r&21?(Ft(n,t)||(n=jy(),he.lanes|=n,Ir|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qe=!0),e.memoizedState=n)}function aC(e,t){var n=te;te=n!==0&&4>n?n:4,e(!0);var r=pu.transition;pu.transition={};try{e(!1),t()}finally{te=n,pu.transition=r}}function Nv(){return Ct().memoizedState}function lC(e,t,n){var r=Jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Dv(e))Ov(t,n);else if(n=hv(e,t,n,r),n!==null){var o=He();It(n,e,r,o),Lv(n,t,r)}}function uC(e,t,n){var r=Jn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Dv(e))Ov(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Ft(a,s)){var l=t.interleaved;l===null?(o.next=o,tf(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=hv(e,t,o,r),n!==null&&(o=He(),It(n,e,r,o),Lv(n,t,r))}}function Dv(e){var t=e.alternate;return e===he||t!==null&&t===he}function Ov(e,t){Pi=Ua=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bd(e,n)}}var Wa={readContext:Et,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useInsertionEffect:je,useLayoutEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useMutableSource:je,useSyncExternalStore:je,useId:je,unstable_isNewReconciler:!1},cC={readContext:Et,useCallback:function(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:mp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,da(4194308,4,Pv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return da(4194308,4,e,t)},useInsertionEffect:function(e,t){return da(4,2,e,t)},useMemo:function(e,t){var n=Ut();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ut();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=lC.bind(null,he,e),[r.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:pp,useDebugValue:df,useDeferredValue:function(e){return Ut().memoizedState=e},useTransition:function(){var e=pp(!1),t=e[0];return e=aC.bind(null,e[1]),Ut().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=he,o=Ut();if(le){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),Re===null)throw Error(M(349));_r&30||vv(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,mp(xv.bind(null,r,i,e),[e]),r.flags|=2048,qi(9,wv.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ut(),t=Re.identifierPrefix;if(le){var n=dn,r=cn;n=(r&~(1<<32-_t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=sC++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},dC={readContext:Et,useCallback:Rv,useContext:Et,useEffect:cf,useImperativeHandle:kv,useInsertionEffect:bv,useLayoutEffect:Tv,useMemo:Av,useReducer:mu,useRef:Cv,useState:function(){return mu(Xi)},useDebugValue:df,useDeferredValue:function(e){var t=Ct();return Mv(t,be.memoizedState,e)},useTransition:function(){var e=mu(Xi)[0],t=Ct().memoizedState;return[e,t]},useMutableSource:gv,useSyncExternalStore:yv,useId:Nv,unstable_isNewReconciler:!1},fC={readContext:Et,useCallback:Rv,useContext:Et,useEffect:cf,useImperativeHandle:kv,useInsertionEffect:bv,useLayoutEffect:Tv,useMemo:Av,useReducer:gu,useRef:Cv,useState:function(){return gu(Xi)},useDebugValue:df,useDeferredValue:function(e){var t=Ct();return be===null?t.memoizedState=e:Mv(t,be.memoizedState,e)},useTransition:function(){var e=gu(Xi)[0],t=Ct().memoizedState;return[e,t]},useMutableSource:gv,useSyncExternalStore:yv,useId:Nv,unstable_isNewReconciler:!1};function Mt(e,t){if(e&&e.defaultProps){t=pe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function kc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:pe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var vl={isMounted:function(e){return(e=e._reactInternals)?$r(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=He(),o=Jn(e),i=fn(r,o);i.payload=t,n!=null&&(i.callback=n),t=qn(e,i,o),t!==null&&(It(t,e,o,r),ua(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=He(),o=Jn(e),i=fn(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=qn(e,i,o),t!==null&&(It(t,e,o,r),ua(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=He(),r=Jn(e),o=fn(n,r);o.tag=2,t!=null&&(o.callback=t),t=qn(e,o,r),t!==null&&(It(t,e,r,n),ua(t,e,r))}};function gp(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!Ui(n,r)||!Ui(o,i):!0}function jv(e,t,n){var r=!1,o=nr,i=t.contextType;return typeof i=="object"&&i!==null?i=Et(i):(o=et(t)?Lr:ze.current,r=t.contextTypes,i=(r=r!=null)?Io(e,o):nr),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=vl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function yp(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&vl.enqueueReplaceState(t,t.state,null)}function Rc(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},nf(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Et(i):(i=et(t)?Lr:ze.current,o.context=Io(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(kc(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&vl.enqueueReplaceState(o,o.state,null),Ba(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Bo(e,t){try{var n="",r=t;do n+=zS(r),r=r.return;while(r);var o=n}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function yu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ac(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var hC=typeof WeakMap=="function"?WeakMap:Map;function _v(e,t,n){n=fn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ka||(Ka=!0,Vc=r),Ac(e,t)},n}function Iv(e,t,n){n=fn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ac(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ac(e,t),typeof r!="function"&&(Zn===null?Zn=new Set([this]):Zn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function vp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new hC;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=kC.bind(null,e,t,n),t.then(e,e))}function wp(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function xp(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=fn(-1,1),t.tag=2,qn(n,t,1))),n.lanes|=1),e)}var pC=En.ReactCurrentOwner,qe=!1;function $e(e,t,n,r){t.child=e===null?fv(t,null,n,r):Vo(t,e.child,n,r)}function Sp(e,t,n,r,o){n=n.render;var i=t.ref;return So(t,o),r=lf(e,t,n,r,i,o),n=uf(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,gn(e,t,o)):(le&&n&&Yd(t),t.flags|=1,$e(e,t,r,o),t.child)}function Ep(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!wf(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Fv(e,t,i,r,o)):(e=ma(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Ui,n(s,r)&&e.ref===t.ref)return gn(e,t,o)}return t.flags|=1,e=er(i,r),e.ref=t.ref,e.return=t,t.child=e}function Fv(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Ui(i,r)&&e.ref===t.ref)if(qe=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(qe=!0);else return t.lanes=e.lanes,gn(e,t,o)}return Mc(e,t,n,r,o)}function Vv(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},re(co,rt),rt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,re(co,rt),rt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,re(co,rt),rt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,re(co,rt),rt|=r;return $e(e,t,o,n),t.child}function zv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Mc(e,t,n,r,o){var i=et(n)?Lr:ze.current;return i=Io(t,i),So(t,o),n=lf(e,t,n,r,i,o),r=uf(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,gn(e,t,o)):(le&&r&&Yd(t),t.flags|=1,$e(e,t,n,o),t.child)}function Cp(e,t,n,r,o){if(et(n)){var i=!0;_a(t)}else i=!1;if(So(t,o),t.stateNode===null)fa(e,t),jv(t,n,r),Rc(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Et(u):(u=et(n)?Lr:ze.current,u=Io(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&yp(t,s,r,u),_n=!1;var f=t.memoizedState;s.state=f,Ba(t,r,s,o),l=t.memoizedState,a!==r||f!==l||Je.current||_n?(typeof c=="function"&&(kc(t,n,c,r),l=t.memoizedState),(a=_n||gp(t,n,a,r,f,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,pv(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Mt(t.type,a),s.props=u,d=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Et(l):(l=et(n)?Lr:ze.current,l=Io(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||f!==l)&&yp(t,s,r,l),_n=!1,f=t.memoizedState,s.state=f,Ba(t,r,s,o);var x=t.memoizedState;a!==d||f!==x||Je.current||_n?(typeof h=="function"&&(kc(t,n,h,r),x=t.memoizedState),(u=_n||gp(t,n,u,r,f,x,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,x,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,x,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),s.props=r,s.state=x,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Nc(e,t,n,r,i,o)}function Nc(e,t,n,r,o,i){zv(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&lp(t,n,!1),gn(e,t,i);r=t.stateNode,pC.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Vo(t,e.child,null,i),t.child=Vo(t,null,a,i)):$e(e,t,a,i),t.memoizedState=r.state,o&&lp(t,n,!0),t.child}function Bv(e){var t=e.stateNode;t.pendingContext?ap(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ap(e,t.context,!1),rf(e,t.containerInfo)}function bp(e,t,n,r,o){return Fo(),qd(o),t.flags|=256,$e(e,t,n,r),t.child}var Dc={dehydrated:null,treeContext:null,retryLane:0};function Oc(e){return{baseLanes:e,cachePool:null,transitions:null}}function $v(e,t,n){var r=t.pendingProps,o=de.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),re(de,o&1),e===null)return Tc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Sl(s,r,0,null),e=Nr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Oc(n),t.memoizedState=Dc,e):ff(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return mC(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=er(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=er(a,i):(i=Nr(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?Oc(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Dc,r}return i=e.child,e=i.sibling,r=er(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ff(e,t){return t=Sl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function $s(e,t,n,r){return r!==null&&qd(r),Vo(t,e.child,null,n),e=ff(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function mC(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=yu(Error(M(422))),$s(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Sl({mode:"visible",children:r.children},o,0,null),i=Nr(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Vo(t,e.child,null,s),t.child.memoizedState=Oc(s),t.memoizedState=Dc,i);if(!(t.mode&1))return $s(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(M(419)),r=yu(i,r,void 0),$s(e,t,s,r)}if(a=(s&e.childLanes)!==0,qe||a){if(r=Re,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,mn(e,o),It(r,e,o,-1))}return vf(),r=yu(Error(M(421))),$s(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=RC.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,it=Xn(o.nextSibling),st=t,le=!0,jt=null,e!==null&&(gt[yt++]=cn,gt[yt++]=dn,gt[yt++]=jr,cn=e.id,dn=e.overflow,jr=t),t=ff(t,r.children),t.flags|=4096,t)}function Tp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Pc(e.return,t,n)}function vu(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Uv(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if($e(e,t,r.children,n),r=de.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Tp(e,n,t);else if(e.tag===19)Tp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(re(de,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&$a(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),vu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&$a(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}vu(t,!0,n,null,i);break;case"together":vu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function fa(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function gn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ir|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){for(e=t.child,n=er(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=er(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function gC(e,t,n){switch(t.tag){case 3:Bv(t),Fo();break;case 5:mv(t);break;case 1:et(t.type)&&_a(t);break;case 4:rf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;re(Va,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(re(de,de.current&1),t.flags|=128,null):n&t.child.childLanes?$v(e,t,n):(re(de,de.current&1),e=gn(e,t,n),e!==null?e.sibling:null);re(de,de.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Uv(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),re(de,de.current),r)break;return null;case 22:case 23:return t.lanes=0,Vv(e,t,n)}return gn(e,t,n)}var Wv,Lc,Hv,Kv;Wv=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Lc=function(){};Hv=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Sr(qt.current);var i=null;switch(n){case"input":o=nc(e,o),r=nc(e,r),i=[];break;case"select":o=pe({},o,{value:void 0}),r=pe({},r,{value:void 0}),i=[];break;case"textarea":o=ic(e,o),r=ic(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=La)}ac(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(_i.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(_i.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ie("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Kv=function(e,t,n,r){n!==r&&(t.flags|=4)};function di(e,t){if(!le)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function _e(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function yC(e,t,n){var r=t.pendingProps;switch(Xd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _e(t),null;case 1:return et(t.type)&&ja(),_e(t),null;case 3:return r=t.stateNode,zo(),se(Je),se(ze),sf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(zs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,jt!==null&&($c(jt),jt=null))),Lc(e,t),_e(t),null;case 5:of(t);var o=Sr(Qi.current);if(n=t.type,e!==null&&t.stateNode!=null)Hv(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(M(166));return _e(t),null}if(e=Sr(qt.current),zs(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Gt]=t,r[Ki]=i,e=(t.mode&1)!==0,n){case"dialog":ie("cancel",r),ie("close",r);break;case"iframe":case"object":case"embed":ie("load",r);break;case"video":case"audio":for(o=0;o<wi.length;o++)ie(wi[o],r);break;case"source":ie("error",r);break;case"img":case"image":case"link":ie("error",r),ie("load",r);break;case"details":ie("toggle",r);break;case"input":Lh(r,i),ie("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ie("invalid",r);break;case"textarea":_h(r,i),ie("invalid",r)}ac(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Vs(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Vs(r.textContent,a,e),o=["children",""+a]):_i.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&ie("scroll",r)}switch(n){case"input":Ns(r),jh(r,i,!0);break;case"textarea":Ns(r),Ih(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=La)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=xy(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Gt]=t,e[Ki]=r,Wv(e,t,!1,!1),t.stateNode=e;e:{switch(s=lc(n,r),n){case"dialog":ie("cancel",e),ie("close",e),o=r;break;case"iframe":case"object":case"embed":ie("load",e),o=r;break;case"video":case"audio":for(o=0;o<wi.length;o++)ie(wi[o],e);o=r;break;case"source":ie("error",e),o=r;break;case"img":case"image":case"link":ie("error",e),ie("load",e),o=r;break;case"details":ie("toggle",e),o=r;break;case"input":Lh(e,r),o=nc(e,r),ie("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=pe({},r,{value:void 0}),ie("invalid",e);break;case"textarea":_h(e,r),o=ic(e,r),ie("invalid",e);break;default:o=r}ac(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Cy(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Sy(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ii(e,l):typeof l=="number"&&Ii(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(_i.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ie("scroll",e):l!=null&&jd(e,i,l,s))}switch(n){case"input":Ns(e),jh(e,r,!1);break;case"textarea":Ns(e),Ih(e);break;case"option":r.value!=null&&e.setAttribute("value",""+tr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?yo(e,!!r.multiple,i,!1):r.defaultValue!=null&&yo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=La)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return _e(t),null;case 6:if(e&&t.stateNode!=null)Kv(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(M(166));if(n=Sr(Qi.current),Sr(qt.current),zs(t)){if(r=t.stateNode,n=t.memoizedProps,r[Gt]=t,(i=r.nodeValue!==n)&&(e=st,e!==null))switch(e.tag){case 3:Vs(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Vs(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Gt]=t,t.stateNode=r}return _e(t),null;case 13:if(se(de),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(le&&it!==null&&t.mode&1&&!(t.flags&128))cv(),Fo(),t.flags|=98560,i=!1;else if(i=zs(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(M(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(M(317));i[Gt]=t}else Fo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_e(t),i=!1}else jt!==null&&($c(jt),jt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||de.current&1?Te===0&&(Te=3):vf())),t.updateQueue!==null&&(t.flags|=4),_e(t),null);case 4:return zo(),Lc(e,t),e===null&&Wi(t.stateNode.containerInfo),_e(t),null;case 10:return ef(t.type._context),_e(t),null;case 17:return et(t.type)&&ja(),_e(t),null;case 19:if(se(de),i=t.memoizedState,i===null)return _e(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)di(i,!1);else{if(Te!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=$a(e),s!==null){for(t.flags|=128,di(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return re(de,de.current&1|2),t.child}e=e.sibling}i.tail!==null&&we()>$o&&(t.flags|=128,r=!0,di(i,!1),t.lanes=4194304)}else{if(!r)if(e=$a(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),di(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!le)return _e(t),null}else 2*we()-i.renderingStartTime>$o&&n!==1073741824&&(t.flags|=128,r=!0,di(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=we(),t.sibling=null,n=de.current,re(de,r?n&1|2:n&1),t):(_e(t),null);case 22:case 23:return yf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?rt&1073741824&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function vC(e,t){switch(Xd(t),t.tag){case 1:return et(t.type)&&ja(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zo(),se(Je),se(ze),sf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return of(t),null;case 13:if(se(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));Fo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(de),null;case 4:return zo(),null;case 10:return ef(t.type._context),null;case 22:case 23:return yf(),null;case 24:return null;default:return null}}var Us=!1,Fe=!1,wC=typeof WeakSet=="function"?WeakSet:Set,I=null;function uo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ye(e,t,r)}else n.current=null}function jc(e,t,n){try{n()}catch(r){ye(e,t,r)}}var Pp=!1;function xC(e,t){if(vc=Na,e=qy(),Qd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(wc={focusedElem:e,selectionRange:n},Na=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var p=x.memoizedProps,w=x.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?p:Mt(t.type,p),w);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(E){ye(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return x=Pp,Pp=!1,x}function ki(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&jc(t,n,i)}o=o.next}while(o!==r)}}function wl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function _c(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Gv(e){var t=e.alternate;t!==null&&(e.alternate=null,Gv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Gt],delete t[Ki],delete t[Ec],delete t[nC],delete t[rC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Qv(e){return e.tag===5||e.tag===3||e.tag===4}function kp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ic(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=La));else if(r!==4&&(e=e.child,e!==null))for(Ic(e,t,n),e=e.sibling;e!==null;)Ic(e,t,n),e=e.sibling}function Fc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Fc(e,t,n),e=e.sibling;e!==null;)Fc(e,t,n),e=e.sibling}var Ae=null,Lt=!1;function An(e,t,n){for(n=n.child;n!==null;)Yv(e,t,n),n=n.sibling}function Yv(e,t,n){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(dl,n)}catch{}switch(n.tag){case 5:Fe||uo(n,t);case 6:var r=Ae,o=Lt;Ae=null,An(e,t,n),Ae=r,Lt=o,Ae!==null&&(Lt?(e=Ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ae.removeChild(n.stateNode));break;case 18:Ae!==null&&(Lt?(e=Ae,n=n.stateNode,e.nodeType===8?du(e.parentNode,n):e.nodeType===1&&du(e,n),Bi(e)):du(Ae,n.stateNode));break;case 4:r=Ae,o=Lt,Ae=n.stateNode.containerInfo,Lt=!0,An(e,t,n),Ae=r,Lt=o;break;case 0:case 11:case 14:case 15:if(!Fe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&jc(n,t,s),o=o.next}while(o!==r)}An(e,t,n);break;case 1:if(!Fe&&(uo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ye(n,t,a)}An(e,t,n);break;case 21:An(e,t,n);break;case 22:n.mode&1?(Fe=(r=Fe)||n.memoizedState!==null,An(e,t,n),Fe=r):An(e,t,n);break;default:An(e,t,n)}}function Rp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wC),t.forEach(function(r){var o=AC.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function kt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Ae=a.stateNode,Lt=!1;break e;case 3:Ae=a.stateNode.containerInfo,Lt=!0;break e;case 4:Ae=a.stateNode.containerInfo,Lt=!0;break e}a=a.return}if(Ae===null)throw Error(M(160));Yv(i,s,o),Ae=null,Lt=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){ye(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Xv(t,e),t=t.sibling}function Xv(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(kt(t,e),$t(e),r&4){try{ki(3,e,e.return),wl(3,e)}catch(p){ye(e,e.return,p)}try{ki(5,e,e.return)}catch(p){ye(e,e.return,p)}}break;case 1:kt(t,e),$t(e),r&512&&n!==null&&uo(n,n.return);break;case 5:if(kt(t,e),$t(e),r&512&&n!==null&&uo(n,n.return),e.flags&32){var o=e.stateNode;try{Ii(o,"")}catch(p){ye(e,e.return,p)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&vy(o,i),lc(a,s);var u=lc(a,i);for(s=0;s<l.length;s+=2){var c=l[s],d=l[s+1];c==="style"?Cy(o,d):c==="dangerouslySetInnerHTML"?Sy(o,d):c==="children"?Ii(o,d):jd(o,c,d,u)}switch(a){case"input":rc(o,i);break;case"textarea":wy(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?yo(o,!!i.multiple,h,!1):f!==!!i.multiple&&(i.defaultValue!=null?yo(o,!!i.multiple,i.defaultValue,!0):yo(o,!!i.multiple,i.multiple?[]:"",!1))}o[Ki]=i}catch(p){ye(e,e.return,p)}}break;case 6:if(kt(t,e),$t(e),r&4){if(e.stateNode===null)throw Error(M(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(p){ye(e,e.return,p)}}break;case 3:if(kt(t,e),$t(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Bi(t.containerInfo)}catch(p){ye(e,e.return,p)}break;case 4:kt(t,e),$t(e);break;case 13:kt(t,e),$t(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(mf=we())),r&4&&Rp(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Fe=(u=Fe)||c,kt(t,e),Fe=u):kt(t,e),$t(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(I=e,c=e.child;c!==null;){for(d=I=c;I!==null;){switch(f=I,h=f.child,f.tag){case 0:case 11:case 14:case 15:ki(4,f,f.return);break;case 1:uo(f,f.return);var x=f.stateNode;if(typeof x.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(p){ye(r,n,p)}}break;case 5:uo(f,f.return);break;case 22:if(f.memoizedState!==null){Mp(d);continue}}h!==null?(h.return=f,I=h):Mp(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Ey("display",s))}catch(p){ye(e,e.return,p)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(p){ye(e,e.return,p)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:kt(t,e),$t(e),r&4&&Rp(e);break;case 21:break;default:kt(t,e),$t(e)}}function $t(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Qv(n)){var r=n;break e}n=n.return}throw Error(M(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Ii(o,""),r.flags&=-33);var i=kp(e);Fc(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=kp(e);Ic(e,a,s);break;default:throw Error(M(161))}}catch(l){ye(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function SC(e,t,n){I=e,qv(e)}function qv(e,t,n){for(var r=(e.mode&1)!==0;I!==null;){var o=I,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Us;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||Fe;a=Us;var u=Fe;if(Us=s,(Fe=l)&&!u)for(I=o;I!==null;)s=I,l=s.child,s.tag===22&&s.memoizedState!==null?Np(o):l!==null?(l.return=s,I=l):Np(o);for(;i!==null;)I=i,qv(i),i=i.sibling;I=o,Us=a,Fe=u}Ap(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,I=i):Ap(e)}}function Ap(e){for(;I!==null;){var t=I;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Fe||wl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Fe)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Mt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&hp(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}hp(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Bi(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(M(163))}Fe||t.flags&512&&_c(t)}catch(f){ye(t,t.return,f)}}if(t===e){I=null;break}if(n=t.sibling,n!==null){n.return=t.return,I=n;break}I=t.return}}function Mp(e){for(;I!==null;){var t=I;if(t===e){I=null;break}var n=t.sibling;if(n!==null){n.return=t.return,I=n;break}I=t.return}}function Np(e){for(;I!==null;){var t=I;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{wl(4,t)}catch(l){ye(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){ye(t,o,l)}}var i=t.return;try{_c(t)}catch(l){ye(t,i,l)}break;case 5:var s=t.return;try{_c(t)}catch(l){ye(t,s,l)}}}catch(l){ye(t,t.return,l)}if(t===e){I=null;break}var a=t.sibling;if(a!==null){a.return=t.return,I=a;break}I=t.return}}var EC=Math.ceil,Ha=En.ReactCurrentDispatcher,hf=En.ReactCurrentOwner,xt=En.ReactCurrentBatchConfig,Z=0,Re=null,Ee=null,Ne=0,rt=0,co=lr(0),Te=0,Zi=null,Ir=0,xl=0,pf=0,Ri=null,Xe=null,mf=0,$o=1/0,an=null,Ka=!1,Vc=null,Zn=null,Ws=!1,Hn=null,Ga=0,Ai=0,zc=null,ha=-1,pa=0;function He(){return Z&6?we():ha!==-1?ha:ha=we()}function Jn(e){return e.mode&1?Z&2&&Ne!==0?Ne&-Ne:iC.transition!==null?(pa===0&&(pa=jy()),pa):(e=te,e!==0||(e=window.event,e=e===void 0?16:$y(e.type)),e):1}function It(e,t,n,r){if(50<Ai)throw Ai=0,zc=null,Error(M(185));hs(e,n,r),(!(Z&2)||e!==Re)&&(e===Re&&(!(Z&2)&&(xl|=n),Te===4&&Fn(e,Ne)),tt(e,r),n===1&&Z===0&&!(t.mode&1)&&($o=we()+500,gl&&ur()))}function tt(e,t){var n=e.callbackNode;iE(e,t);var r=Ma(e,e===Re?Ne:0);if(r===0)n!==null&&zh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&zh(n),t===1)e.tag===0?oC(Dp.bind(null,e)):av(Dp.bind(null,e)),eC(function(){!(Z&6)&&ur()}),n=null;else{switch(_y(r)){case 1:n=zd;break;case 4:n=Oy;break;case 16:n=Aa;break;case 536870912:n=Ly;break;default:n=Aa}n=i0(n,Zv.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Zv(e,t){if(ha=-1,pa=0,Z&6)throw Error(M(327));var n=e.callbackNode;if(Eo()&&e.callbackNode!==n)return null;var r=Ma(e,e===Re?Ne:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Qa(e,r);else{t=r;var o=Z;Z|=2;var i=e0();(Re!==e||Ne!==t)&&(an=null,$o=we()+500,Mr(e,t));do try{TC();break}catch(a){Jv(e,a)}while(!0);Jd(),Ha.current=i,Z=o,Ee!==null?t=0:(Re=null,Ne=0,t=Te)}if(t!==0){if(t===2&&(o=hc(e),o!==0&&(r=o,t=Bc(e,o))),t===1)throw n=Zi,Mr(e,0),Fn(e,r),tt(e,we()),n;if(t===6)Fn(e,r);else{if(o=e.current.alternate,!(r&30)&&!CC(o)&&(t=Qa(e,r),t===2&&(i=hc(e),i!==0&&(r=i,t=Bc(e,i))),t===1))throw n=Zi,Mr(e,0),Fn(e,r),tt(e,we()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(M(345));case 2:yr(e,Xe,an);break;case 3:if(Fn(e,r),(r&130023424)===r&&(t=mf+500-we(),10<t)){if(Ma(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){He(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Sc(yr.bind(null,e,Xe,an),t);break}yr(e,Xe,an);break;case 4:if(Fn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-_t(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=we()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*EC(r/1960))-r,10<r){e.timeoutHandle=Sc(yr.bind(null,e,Xe,an),r);break}yr(e,Xe,an);break;case 5:yr(e,Xe,an);break;default:throw Error(M(329))}}}return tt(e,we()),e.callbackNode===n?Zv.bind(null,e):null}function Bc(e,t){var n=Ri;return e.current.memoizedState.isDehydrated&&(Mr(e,t).flags|=256),e=Qa(e,t),e!==2&&(t=Xe,Xe=n,t!==null&&$c(t)),e}function $c(e){Xe===null?Xe=e:Xe.push.apply(Xe,e)}function CC(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Ft(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Fn(e,t){for(t&=~pf,t&=~xl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_t(t),r=1<<n;e[n]=-1,t&=~r}}function Dp(e){if(Z&6)throw Error(M(327));Eo();var t=Ma(e,0);if(!(t&1))return tt(e,we()),null;var n=Qa(e,t);if(e.tag!==0&&n===2){var r=hc(e);r!==0&&(t=r,n=Bc(e,r))}if(n===1)throw n=Zi,Mr(e,0),Fn(e,t),tt(e,we()),n;if(n===6)throw Error(M(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,yr(e,Xe,an),tt(e,we()),null}function gf(e,t){var n=Z;Z|=1;try{return e(t)}finally{Z=n,Z===0&&($o=we()+500,gl&&ur())}}function Fr(e){Hn!==null&&Hn.tag===0&&!(Z&6)&&Eo();var t=Z;Z|=1;var n=xt.transition,r=te;try{if(xt.transition=null,te=1,e)return e()}finally{te=r,xt.transition=n,Z=t,!(Z&6)&&ur()}}function yf(){rt=co.current,se(co)}function Mr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,JE(n)),Ee!==null)for(n=Ee.return;n!==null;){var r=n;switch(Xd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ja();break;case 3:zo(),se(Je),se(ze),sf();break;case 5:of(r);break;case 4:zo();break;case 13:se(de);break;case 19:se(de);break;case 10:ef(r.type._context);break;case 22:case 23:yf()}n=n.return}if(Re=e,Ee=e=er(e.current,null),Ne=rt=t,Te=0,Zi=null,pf=xl=Ir=0,Xe=Ri=null,xr!==null){for(t=0;t<xr.length;t++)if(n=xr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}xr=null}return e}function Jv(e,t){do{var n=Ee;try{if(Jd(),ca.current=Wa,Ua){for(var r=he.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Ua=!1}if(_r=0,ke=be=he=null,Pi=!1,Yi=0,hf.current=null,n===null||n.return===null){Te=1,Zi=t,Ee=null;break}e:{var i=e,s=n.return,a=n,l=t;if(t=Ne,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=wp(s);if(h!==null){h.flags&=-257,xp(h,s,a,i,t),h.mode&1&&vp(i,u,t),t=h,l=u;var x=t.updateQueue;if(x===null){var p=new Set;p.add(l),t.updateQueue=p}else x.add(l);break e}else{if(!(t&1)){vp(i,u,t),vf();break e}l=Error(M(426))}}else if(le&&a.mode&1){var w=wp(s);if(w!==null){!(w.flags&65536)&&(w.flags|=256),xp(w,s,a,i,t),qd(Bo(l,a));break e}}i=l=Bo(l,a),Te!==4&&(Te=2),Ri===null?Ri=[i]:Ri.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=_v(i,l,t);fp(i,m);break e;case 1:a=l;var g=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Zn===null||!Zn.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var E=Iv(i,a,t);fp(i,E);break e}}i=i.return}while(i!==null)}n0(n)}catch(C){t=C,Ee===n&&n!==null&&(Ee=n=n.return);continue}break}while(!0)}function e0(){var e=Ha.current;return Ha.current=Wa,e===null?Wa:e}function vf(){(Te===0||Te===3||Te===2)&&(Te=4),Re===null||!(Ir&268435455)&&!(xl&268435455)||Fn(Re,Ne)}function Qa(e,t){var n=Z;Z|=2;var r=e0();(Re!==e||Ne!==t)&&(an=null,Mr(e,t));do try{bC();break}catch(o){Jv(e,o)}while(!0);if(Jd(),Z=n,Ha.current=r,Ee!==null)throw Error(M(261));return Re=null,Ne=0,Te}function bC(){for(;Ee!==null;)t0(Ee)}function TC(){for(;Ee!==null&&!XS();)t0(Ee)}function t0(e){var t=o0(e.alternate,e,rt);e.memoizedProps=e.pendingProps,t===null?n0(e):Ee=t,hf.current=null}function n0(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=vC(n,t),n!==null){n.flags&=32767,Ee=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Te=6,Ee=null;return}}else if(n=yC(n,t,rt),n!==null){Ee=n;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Te===0&&(Te=5)}function yr(e,t,n){var r=te,o=xt.transition;try{xt.transition=null,te=1,PC(e,t,n,r)}finally{xt.transition=o,te=r}return null}function PC(e,t,n,r){do Eo();while(Hn!==null);if(Z&6)throw Error(M(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(M(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(sE(e,i),e===Re&&(Ee=Re=null,Ne=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ws||(Ws=!0,i0(Aa,function(){return Eo(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=xt.transition,xt.transition=null;var s=te;te=1;var a=Z;Z|=4,hf.current=null,xC(e,n),Xv(n,e),KE(wc),Na=!!vc,wc=vc=null,e.current=n,SC(n),qS(),Z=a,te=s,xt.transition=i}else e.current=n;if(Ws&&(Ws=!1,Hn=e,Ga=o),i=e.pendingLanes,i===0&&(Zn=null),eE(n.stateNode),tt(e,we()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ka)throw Ka=!1,e=Vc,Vc=null,e;return Ga&1&&e.tag!==0&&Eo(),i=e.pendingLanes,i&1?e===zc?Ai++:(Ai=0,zc=e):Ai=0,ur(),null}function Eo(){if(Hn!==null){var e=_y(Ga),t=xt.transition,n=te;try{if(xt.transition=null,te=16>e?16:e,Hn===null)var r=!1;else{if(e=Hn,Hn=null,Ga=0,Z&6)throw Error(M(331));var o=Z;for(Z|=4,I=e.current;I!==null;){var i=I,s=i.child;if(I.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(I=u;I!==null;){var c=I;switch(c.tag){case 0:case 11:case 15:ki(8,c,i)}var d=c.child;if(d!==null)d.return=c,I=d;else for(;I!==null;){c=I;var f=c.sibling,h=c.return;if(Gv(c),c===u){I=null;break}if(f!==null){f.return=h,I=f;break}I=h}}}var x=i.alternate;if(x!==null){var p=x.child;if(p!==null){x.child=null;do{var w=p.sibling;p.sibling=null,p=w}while(p!==null)}}I=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,I=s;else e:for(;I!==null;){if(i=I,i.flags&2048)switch(i.tag){case 0:case 11:case 15:ki(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,I=m;break e}I=i.return}}var g=e.current;for(I=g;I!==null;){s=I;var y=s.child;if(s.subtreeFlags&2064&&y!==null)y.return=s,I=y;else e:for(s=g;I!==null;){if(a=I,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:wl(9,a)}}catch(C){ye(a,a.return,C)}if(a===s){I=null;break e}var E=a.sibling;if(E!==null){E.return=a.return,I=E;break e}I=a.return}}if(Z=o,ur(),Xt&&typeof Xt.onPostCommitFiberRoot=="function")try{Xt.onPostCommitFiberRoot(dl,e)}catch{}r=!0}return r}finally{te=n,xt.transition=t}}return!1}function Op(e,t,n){t=Bo(n,t),t=_v(e,t,1),e=qn(e,t,1),t=He(),e!==null&&(hs(e,1,t),tt(e,t))}function ye(e,t,n){if(e.tag===3)Op(e,e,n);else for(;t!==null;){if(t.tag===3){Op(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Zn===null||!Zn.has(r))){e=Bo(n,e),e=Iv(t,e,1),t=qn(t,e,1),e=He(),t!==null&&(hs(t,1,e),tt(t,e));break}}t=t.return}}function kC(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=He(),e.pingedLanes|=e.suspendedLanes&n,Re===e&&(Ne&n)===n&&(Te===4||Te===3&&(Ne&130023424)===Ne&&500>we()-mf?Mr(e,0):pf|=n),tt(e,t)}function r0(e,t){t===0&&(e.mode&1?(t=Ls,Ls<<=1,!(Ls&130023424)&&(Ls=4194304)):t=1);var n=He();e=mn(e,t),e!==null&&(hs(e,t,n),tt(e,n))}function RC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),r0(e,n)}function AC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),r0(e,n)}var o0;o0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Je.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,gC(e,t,n);qe=!!(e.flags&131072)}else qe=!1,le&&t.flags&1048576&&lv(t,Fa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;fa(e,t),e=t.pendingProps;var o=Io(t,ze.current);So(t,n),o=lf(null,t,r,e,o,n);var i=uf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,et(r)?(i=!0,_a(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,nf(t),o.updater=vl,t.stateNode=o,o._reactInternals=t,Rc(t,r,e,n),t=Nc(null,t,r,!0,i,n)):(t.tag=0,le&&i&&Yd(t),$e(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(fa(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=NC(r),e=Mt(r,e),o){case 0:t=Mc(null,t,r,e,n);break e;case 1:t=Cp(null,t,r,e,n);break e;case 11:t=Sp(null,t,r,e,n);break e;case 14:t=Ep(null,t,r,Mt(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mt(r,o),Mc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mt(r,o),Cp(e,t,r,o,n);case 3:e:{if(Bv(t),e===null)throw Error(M(387));r=t.pendingProps,i=t.memoizedState,o=i.element,pv(e,t),Ba(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Bo(Error(M(423)),t),t=bp(e,t,r,n,o);break e}else if(r!==o){o=Bo(Error(M(424)),t),t=bp(e,t,r,n,o);break e}else for(it=Xn(t.stateNode.containerInfo.firstChild),st=t,le=!0,jt=null,n=fv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fo(),r===o){t=gn(e,t,n);break e}$e(e,t,r,n)}t=t.child}return t;case 5:return mv(t),e===null&&Tc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,xc(r,o)?s=null:i!==null&&xc(r,i)&&(t.flags|=32),zv(e,t),$e(e,t,s,n),t.child;case 6:return e===null&&Tc(t),null;case 13:return $v(e,t,n);case 4:return rf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Vo(t,null,r,n):$e(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mt(r,o),Sp(e,t,r,o,n);case 7:return $e(e,t,t.pendingProps,n),t.child;case 8:return $e(e,t,t.pendingProps.children,n),t.child;case 12:return $e(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,re(Va,r._currentValue),r._currentValue=s,i!==null)if(Ft(i.value,s)){if(i.children===o.children&&!Je.current){t=gn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=fn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Pc(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(M(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Pc(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}$e(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,So(t,n),o=Et(o),r=r(o),t.flags|=1,$e(e,t,r,n),t.child;case 14:return r=t.type,o=Mt(r,t.pendingProps),o=Mt(r.type,o),Ep(e,t,r,o,n);case 15:return Fv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mt(r,o),fa(e,t),t.tag=1,et(r)?(e=!0,_a(t)):e=!1,So(t,n),jv(t,r,o),Rc(t,r,o,n),Nc(null,t,r,!0,e,n);case 19:return Uv(e,t,n);case 22:return Vv(e,t,n)}throw Error(M(156,t.tag))};function i0(e,t){return Dy(e,t)}function MC(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vt(e,t,n,r){return new MC(e,t,n,r)}function wf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function NC(e){if(typeof e=="function")return wf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Id)return 11;if(e===Fd)return 14}return 2}function er(e,t){var n=e.alternate;return n===null?(n=vt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ma(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")wf(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case eo:return Nr(n.children,o,i,t);case _d:s=8,o|=8;break;case Zu:return e=vt(12,n,t,o|2),e.elementType=Zu,e.lanes=i,e;case Ju:return e=vt(13,n,t,o),e.elementType=Ju,e.lanes=i,e;case ec:return e=vt(19,n,t,o),e.elementType=ec,e.lanes=i,e;case my:return Sl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hy:s=10;break e;case py:s=9;break e;case Id:s=11;break e;case Fd:s=14;break e;case jn:s=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=vt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Nr(e,t,n,r){return e=vt(7,e,r,t),e.lanes=n,e}function Sl(e,t,n,r){return e=vt(22,e,r,t),e.elementType=my,e.lanes=n,e.stateNode={isHidden:!1},e}function wu(e,t,n){return e=vt(6,e,null,t),e.lanes=n,e}function xu(e,t,n){return t=vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function DC(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=eu(0),this.expirationTimes=eu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function xf(e,t,n,r,o,i,s,a,l){return e=new DC(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=vt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},nf(i),e}function OC(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Jr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function s0(e){if(!e)return nr;e=e._reactInternals;e:{if($r(e)!==e||e.tag!==1)throw Error(M(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(et(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(M(171))}if(e.tag===1){var n=e.type;if(et(n))return sv(e,n,t)}return t}function a0(e,t,n,r,o,i,s,a,l){return e=xf(n,r,!0,e,o,i,s,a,l),e.context=s0(null),n=e.current,r=He(),o=Jn(n),i=fn(r,o),i.callback=t??null,qn(n,i,o),e.current.lanes=o,hs(e,o,r),tt(e,r),e}function El(e,t,n,r){var o=t.current,i=He(),s=Jn(o);return n=s0(n),t.context===null?t.context=n:t.pendingContext=n,t=fn(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=qn(o,t,s),e!==null&&(It(e,o,s,i),ua(e,o,s)),s}function Ya(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Lp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Sf(e,t){Lp(e,t),(e=e.alternate)&&Lp(e,t)}function LC(){return null}var l0=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ef(e){this._internalRoot=e}Cl.prototype.render=Ef.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(M(409));El(e,t,null,null)};Cl.prototype.unmount=Ef.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Fr(function(){El(null,e,null,null)}),t[pn]=null}};function Cl(e){this._internalRoot=e}Cl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vy();e={blockedOn:null,target:e,priority:t};for(var n=0;n<In.length&&t!==0&&t<In[n].priority;n++);In.splice(n,0,e),n===0&&By(e)}};function Cf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function bl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function jp(){}function jC(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Ya(s);i.call(u)}}var s=a0(t,r,e,0,null,!1,!1,"",jp);return e._reactRootContainer=s,e[pn]=s.current,Wi(e.nodeType===8?e.parentNode:e),Fr(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=Ya(l);a.call(u)}}var l=xf(e,0,!1,null,null,!1,!1,"",jp);return e._reactRootContainer=l,e[pn]=l.current,Wi(e.nodeType===8?e.parentNode:e),Fr(function(){El(t,l,n,r)}),l}function Tl(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var l=Ya(s);a.call(l)}}El(t,s,e,o)}else s=jC(n,t,e,o,r);return Ya(s)}Iy=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=vi(t.pendingLanes);n!==0&&(Bd(t,n|1),tt(t,we()),!(Z&6)&&($o=we()+500,ur()))}break;case 13:Fr(function(){var r=mn(e,1);if(r!==null){var o=He();It(r,e,1,o)}}),Sf(e,1)}};$d=function(e){if(e.tag===13){var t=mn(e,134217728);if(t!==null){var n=He();It(t,e,134217728,n)}Sf(e,134217728)}};Fy=function(e){if(e.tag===13){var t=Jn(e),n=mn(e,t);if(n!==null){var r=He();It(n,e,t,r)}Sf(e,t)}};Vy=function(){return te};zy=function(e,t){var n=te;try{return te=e,t()}finally{te=n}};cc=function(e,t,n){switch(t){case"input":if(rc(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=ml(r);if(!o)throw Error(M(90));yy(r),rc(r,o)}}}break;case"textarea":wy(e,n);break;case"select":t=n.value,t!=null&&yo(e,!!n.multiple,t,!1)}};Py=gf;ky=Fr;var _C={usingClientEntryPoint:!1,Events:[ms,oo,ml,by,Ty,gf]},fi={findFiberByHostInstance:wr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},IC={bundleType:fi.bundleType,version:fi.version,rendererPackageName:fi.rendererPackageName,rendererConfig:fi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:En.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=My(e),e===null?null:e.stateNode},findFiberByHostInstance:fi.findFiberByHostInstance||LC,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 Hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hs.isDisabled&&Hs.supportsFiber)try{dl=Hs.inject(IC),Xt=Hs}catch{}}ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_C;ut.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cf(t))throw Error(M(200));return OC(e,t,null,n)};ut.createRoot=function(e,t){if(!Cf(e))throw Error(M(299));var n=!1,r="",o=l0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=xf(e,1,!1,null,null,n,!1,r,o),e[pn]=t.current,Wi(e.nodeType===8?e.parentNode:e),new Ef(t)};ut.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(M(188)):(e=Object.keys(e).join(","),Error(M(268,e)));return e=My(t),e=e===null?null:e.stateNode,e};ut.flushSync=function(e){return Fr(e)};ut.hydrate=function(e,t,n){if(!bl(t))throw Error(M(200));return Tl(null,e,t,!0,n)};ut.hydrateRoot=function(e,t,n){if(!Cf(e))throw Error(M(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=l0;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=a0(t,null,e,1,n??null,o,!1,i,s),e[pn]=t.current,Wi(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Cl(t)};ut.render=function(e,t,n){if(!bl(t))throw Error(M(200));return Tl(null,e,t,!1,n)};ut.unmountComponentAtNode=function(e){if(!bl(e))throw Error(M(40));return e._reactRootContainer?(Fr(function(){Tl(null,null,e,!1,function(){e._reactRootContainer=null,e[pn]=null})}),!0):!1};ut.unstable_batchedUpdates=gf;ut.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!bl(n))throw Error(M(200));if(e==null||e._reactInternals===void 0)throw Error(M(38));return Tl(e,t,n,!1,r)};ut.version="18.3.1-next-f1338f8080-20240426";function u0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u0)}catch(e){console.error(e)}}u0(),uy.exports=ut;var ys=uy.exports;const c0=qg(ys);var d0,_p=ys;d0=_p.createRoot,_p.hydrateRoot;const FC=1,VC=1e6;let Su=0;function zC(){return Su=(Su+1)%Number.MAX_SAFE_INTEGER,Su.toString()}const Eu=new Map,Ip=e=>{if(Eu.has(e))return;const t=setTimeout(()=>{Eu.delete(e),Mi({type:"REMOVE_TOAST",toastId:e})},VC);Eu.set(e,t)},BC=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,FC)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Ip(n):e.toasts.forEach(r=>{Ip(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ga=[];let ya={toasts:[]};function Mi(e){ya=BC(ya,e),ga.forEach(t=>{t(ya)})}function $C({...e}){const t=zC(),n=o=>Mi({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Mi({type:"DISMISS_TOAST",toastId:t});return Mi({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function UC(){const[e,t]=v.useState(ya);return v.useEffect(()=>(ga.push(t),()=>{const n=ga.indexOf(t);n>-1&&ga.splice(n,1)}),[e]),{...e,toast:$C,dismiss:n=>Mi({type:"DISMISS_TOAST",toastId:n})}}function ue(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Fp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function f0(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Fp(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Fp(e[o],null)}}}}function Ke(...e){return v.useCallback(f0(...e),e)}function WC(e,t){const n=v.createContext(t),r=i=>{const{children:s,...a}=i,l=v.useMemo(()=>a,Object.values(a));return S.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(i){const s=v.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function vs(e,t=[]){let n=[];function r(i,s){const a=v.createContext(s),l=n.length;n=[...n,s];const u=d=>{var m;const{scope:f,children:h,...x}=d,p=((m=f==null?void 0:f[e])==null?void 0:m[l])||a,w=v.useMemo(()=>x,Object.values(x));return S.jsx(p.Provider,{value:w,children:h})};u.displayName=i+"Provider";function c(d,f){var p;const h=((p=f==null?void 0:f[e])==null?void 0:p[l])||a,x=v.useContext(h);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>v.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,HC(o,...t)]}function HC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...a,...d}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Ji(e){const t=GC(e),n=v.forwardRef((r,o)=>{const{children:i,...s}=r,a=v.Children.toArray(i),l=a.find(YC);if(l){const u=l.props.children,c=a.map(d=>d===l?v.Children.count(u)>1?v.Children.only(null):v.isValidElement(u)?u.props.children:null:d);return S.jsx(t,{...s,ref:o,children:v.isValidElement(u)?v.cloneElement(u,void 0,c):null})}return S.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var KC=Ji("Slot");function GC(e){const t=v.forwardRef((n,r)=>{const{children:o,...i}=n;if(v.isValidElement(o)){const s=qC(o),a=XC(i,o.props);return o.type!==v.Fragment&&(a.ref=r?f0(r,s):s),v.cloneElement(o,a)}return v.Children.count(o)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var h0=Symbol("radix.slottable");function QC(e){const t=({children:n})=>S.jsx(S.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=h0,t}function YC(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===h0}function XC(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function qC(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ZC(e){const t=e+"CollectionProvider",[n,r]=vs(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:w,children:m}=p,g=O.useRef(null),y=O.useRef(new Map).current;return S.jsx(o,{scope:w,itemMap:y,collectionRef:g,children:m})};s.displayName=t;const a=e+"CollectionSlot",l=Ji(a),u=O.forwardRef((p,w)=>{const{scope:m,children:g}=p,y=i(a,m),E=Ke(w,y.collectionRef);return S.jsx(l,{ref:E,children:g})});u.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=Ji(c),h=O.forwardRef((p,w)=>{const{scope:m,children:g,...y}=p,E=O.useRef(null),C=Ke(w,E),b=i(c,m);return O.useEffect(()=>(b.itemMap.set(E,{ref:E,...y}),()=>void b.itemMap.delete(E))),S.jsx(f,{[d]:"",ref:C,children:g})});h.displayName=c;function x(p){const w=i(e+"CollectionConsumer",p);return O.useCallback(()=>{const g=w.collectionRef.current;if(!g)return[];const y=Array.from(g.querySelectorAll(`[${d}]`));return Array.from(w.itemMap.values()).sort((b,T)=>y.indexOf(b.ref.current)-y.indexOf(T.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},x,r]}var JC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ce=JC.reduce((e,t)=>{const n=Ji(`Primitive.${t}`),r=v.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function p0(e,t){e&&ys.flushSync(()=>e.dispatchEvent(t))}function tn(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function eb(e,t=globalThis==null?void 0:globalThis.document){const n=tn(e);v.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var tb="DismissableLayer",Uc="dismissableLayer.update",nb="dismissableLayer.pointerDownOutside",rb="dismissableLayer.focusOutside",Vp,m0=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Pl=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=v.useContext(m0),[c,d]=v.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=v.useState({}),x=Ke(t,T=>d(T)),p=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=p.indexOf(w),g=c?p.indexOf(c):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,E=g>=m,C=ib(T=>{const P=T.target,N=[...u.branches].some(D=>D.contains(P));!E||N||(o==null||o(T),s==null||s(T),T.defaultPrevented||a==null||a())},f),b=sb(T=>{const P=T.target;[...u.branches].some(D=>D.contains(P))||(i==null||i(T),s==null||s(T),T.defaultPrevented||a==null||a())},f);return eb(T=>{g===u.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},f),v.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Vp=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),zp(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Vp)}},[c,f,n,u]),v.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),zp())},[c,u]),v.useEffect(()=>{const T=()=>h({});return document.addEventListener(Uc,T),()=>document.removeEventListener(Uc,T)},[]),S.jsx(Ce.div,{...l,ref:x,style:{pointerEvents:y?E?"auto":"none":void 0,...e.style},onFocusCapture:ue(e.onFocusCapture,b.onFocusCapture),onBlurCapture:ue(e.onBlurCapture,b.onBlurCapture),onPointerDownCapture:ue(e.onPointerDownCapture,C.onPointerDownCapture)})});Pl.displayName=tb;var ob="DismissableLayerBranch",g0=v.forwardRef((e,t)=>{const n=v.useContext(m0),r=v.useRef(null),o=Ke(t,r);return v.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),S.jsx(Ce.div,{...e,ref:o})});g0.displayName=ob;function ib(e,t=globalThis==null?void 0:globalThis.document){const n=tn(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){y0(nb,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function sb(e,t=globalThis==null?void 0:globalThis.document){const n=tn(e),r=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!r.current&&y0(rb,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function zp(){const e=new CustomEvent(Uc);document.dispatchEvent(e)}function y0(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?p0(o,i):o.dispatchEvent(i)}var ab=Pl,lb=g0,yn=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},ub="Portal",bf=v.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=v.useState(!1);yn(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?c0.createPortal(S.jsx(Ce.div,{...r,ref:t}),s):null});bf.displayName=ub;function cb(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var Xo=e=>{const{present:t,children:n}=e,r=db(t),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=Ke(r.ref,fb(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};Xo.displayName="Presence";function db(e){const[t,n]=v.useState(),r=v.useRef(null),o=v.useRef(e),i=v.useRef("none"),s=e?"mounted":"unmounted",[a,l]=cb(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=Ks(r.current);i.current=a==="mounted"?u:"none"},[a]),yn(()=>{const u=r.current,c=o.current;if(c!==e){const f=i.current,h=Ks(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),yn(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=h=>{const p=Ks(r.current).includes(h.animationName);if(h.target===t&&p&&(l("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},f=h=>{h.target===t&&(i.current=Ks(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ks(e){return(e==null?void 0:e.animationName)||"none"}function fb(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var hb=Dd[" useInsertionEffect ".trim().toString()]||yn;function v0({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=pb({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const c=v.useRef(e!==void 0);v.useEffect(()=>{const d=c.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"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.`),c.current=a},[a,r])}const u=v.useCallback(c=>{var d;if(a){const f=mb(c)?c(e):c;f!==e&&((d=s.current)==null||d.call(s,f))}else i(c)},[a,e,i,s]);return[l,u]}function pb({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),o=v.useRef(n),i=v.useRef(t);return hb(()=>{i.current=t},[t]),v.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function mb(e){return typeof e=="function"}var gb=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"}),yb="VisuallyHidden",kl=v.forwardRef((e,t)=>S.jsx(Ce.span,{...e,ref:t,style:{...gb,...e.style}}));kl.displayName=yb;var vb=kl,Tf="ToastProvider",[Pf,wb,xb]=ZC("Toast"),[w0,nL]=vs("Toast",[xb]),[Sb,Rl]=w0(Tf),x0=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,l]=v.useState(null),[u,c]=v.useState(0),d=v.useRef(!1),f=v.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Tf}\`. Expected non-empty \`string\`.`),S.jsx(Pf.Provider,{scope:t,children:S.jsx(Sb,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:v.useCallback(()=>c(h=>h+1),[]),onToastRemove:v.useCallback(()=>c(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:s})})};x0.displayName=Tf;var S0="ToastViewport",Eb=["F8"],Wc="toast.viewportPause",Hc="toast.viewportResume",E0=v.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Eb,label:o="Notifications ({hotkey})",...i}=e,s=Rl(S0,n),a=wb(n),l=v.useRef(null),u=v.useRef(null),c=v.useRef(null),d=v.useRef(null),f=Ke(t,d,s.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=s.toastCount>0;v.useEffect(()=>{const w=m=>{var y;r.length!==0&&r.every(E=>m[E]||m.code===E)&&((y=d.current)==null||y.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),v.useEffect(()=>{const w=l.current,m=d.current;if(x&&w&&m){const g=()=>{if(!s.isClosePausedRef.current){const b=new CustomEvent(Wc);m.dispatchEvent(b),s.isClosePausedRef.current=!0}},y=()=>{if(s.isClosePausedRef.current){const b=new CustomEvent(Hc);m.dispatchEvent(b),s.isClosePausedRef.current=!1}},E=b=>{!w.contains(b.relatedTarget)&&y()},C=()=>{w.contains(document.activeElement)||y()};return w.addEventListener("focusin",g),w.addEventListener("focusout",E),w.addEventListener("pointermove",g),w.addEventListener("pointerleave",C),window.addEventListener("blur",g),window.addEventListener("focus",y),()=>{w.removeEventListener("focusin",g),w.removeEventListener("focusout",E),w.removeEventListener("pointermove",g),w.removeEventListener("pointerleave",C),window.removeEventListener("blur",g),window.removeEventListener("focus",y)}}},[x,s.isClosePausedRef]);const p=v.useCallback(({tabbingDirection:w})=>{const g=a().map(y=>{const E=y.ref.current,C=[E,...jb(E)];return w==="forwards"?C:C.reverse()});return(w==="forwards"?g.reverse():g).flat()},[a]);return v.useEffect(()=>{const w=d.current;if(w){const m=g=>{var C,b,T;const y=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!y){const P=document.activeElement,N=g.shiftKey;if(g.target===w&&N){(C=u.current)==null||C.focus();return}const _=p({tabbingDirection:N?"backwards":"forwards"}),G=_.findIndex(L=>L===P);Cu(_.slice(G+1))?g.preventDefault():N?(b=u.current)==null||b.focus():(T=c.current)==null||T.focus()}};return w.addEventListener("keydown",m),()=>w.removeEventListener("keydown",m)}},[a,p]),S.jsxs(lb,{ref:l,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&S.jsx(Kc,{ref:u,onFocusFromOutsideViewport:()=>{const w=p({tabbingDirection:"forwards"});Cu(w)}}),S.jsx(Pf.Slot,{scope:n,children:S.jsx(Ce.ol,{tabIndex:-1,...i,ref:f})}),x&&S.jsx(Kc,{ref:c,onFocusFromOutsideViewport:()=>{const w=p({tabbingDirection:"backwards"});Cu(w)}})]})});E0.displayName=S0;var C0="ToastFocusProxy",Kc=v.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Rl(C0,n);return S.jsx(kl,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const a=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});Kc.displayName=C0;var ws="Toast",Cb="toast.swipeStart",bb="toast.swipeMove",Tb="toast.swipeCancel",Pb="toast.swipeEnd",b0=v.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,l]=v0({prop:r,defaultProp:o??!0,onChange:i,caller:ws});return S.jsx(Xo,{present:n||a,children:S.jsx(Ab,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:tn(e.onPause),onResume:tn(e.onResume),onSwipeStart:ue(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ue(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:ue(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ue(e.onSwipeEnd,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});b0.displayName=ws;var[kb,Rb]=w0(ws,{onClose(){}}),Ab=v.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:h,...x}=e,p=Rl(ws,n),[w,m]=v.useState(null),g=Ke(t,L=>m(L)),y=v.useRef(null),E=v.useRef(null),C=o||p.duration,b=v.useRef(0),T=v.useRef(C),P=v.useRef(0),{onToastAdd:N,onToastRemove:D}=p,V=tn(()=>{var Q;(w==null?void 0:w.contains(document.activeElement))&&((Q=p.viewport)==null||Q.focus()),s()}),_=v.useCallback(L=>{!L||L===1/0||(window.clearTimeout(P.current),b.current=new Date().getTime(),P.current=window.setTimeout(V,L))},[V]);v.useEffect(()=>{const L=p.viewport;if(L){const Q=()=>{_(T.current),u==null||u()},$=()=>{const F=new Date().getTime()-b.current;T.current=T.current-F,window.clearTimeout(P.current),l==null||l()};return L.addEventListener(Wc,$),L.addEventListener(Hc,Q),()=>{L.removeEventListener(Wc,$),L.removeEventListener(Hc,Q)}}},[p.viewport,C,l,u,_]),v.useEffect(()=>{i&&!p.isClosePausedRef.current&&_(C)},[i,C,p.isClosePausedRef,_]),v.useEffect(()=>(N(),()=>D()),[N,D]);const G=v.useMemo(()=>w?N0(w):null,[w]);return p.viewport?S.jsxs(S.Fragment,{children:[G&&S.jsx(Mb,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:G}),S.jsx(kb,{scope:n,onClose:V,children:ys.createPortal(S.jsx(Pf.ItemSlot,{scope:n,children:S.jsx(ab,{asChild:!0,onEscapeKeyDown:ue(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||V(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:S.jsx(Ce.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":p.swipeDirection,...x,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ue(e.onKeyDown,L=>{L.key==="Escape"&&(a==null||a(L.nativeEvent),L.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,V()))}),onPointerDown:ue(e.onPointerDown,L=>{L.button===0&&(y.current={x:L.clientX,y:L.clientY})}),onPointerMove:ue(e.onPointerMove,L=>{if(!y.current)return;const Q=L.clientX-y.current.x,$=L.clientY-y.current.y,F=!!E.current,k=["left","right"].includes(p.swipeDirection),A=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,j=k?A(0,Q):0,U=k?0:A(0,$),z=L.pointerType==="touch"?10:2,Y={x:j,y:U},q={originalEvent:L,delta:Y};F?(E.current=Y,Gs(bb,d,q,{discrete:!1})):Bp(Y,p.swipeDirection,z)?(E.current=Y,Gs(Cb,c,q,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(Q)>z||Math.abs($)>z)&&(y.current=null)}),onPointerUp:ue(e.onPointerUp,L=>{const Q=E.current,$=L.target;if($.hasPointerCapture(L.pointerId)&&$.releasePointerCapture(L.pointerId),E.current=null,y.current=null,Q){const F=L.currentTarget,k={originalEvent:L,delta:Q};Bp(Q,p.swipeDirection,p.swipeThreshold)?Gs(Pb,h,k,{discrete:!0}):Gs(Tb,f,k,{discrete:!0}),F.addEventListener("click",A=>A.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),Mb=e=>{const{__scopeToast:t,children:n,...r}=e,o=Rl(ws,t),[i,s]=v.useState(!1),[a,l]=v.useState(!1);return Ob(()=>s(!0)),v.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:S.jsx(bf,{asChild:!0,children:S.jsx(kl,{...r,children:i&&S.jsxs(S.Fragment,{children:[o.label," ",n]})})})},Nb="ToastTitle",T0=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(Ce.div,{...r,ref:t})});T0.displayName=Nb;var Db="ToastDescription",P0=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(Ce.div,{...r,ref:t})});P0.displayName=Db;var k0="ToastAction",R0=v.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?S.jsx(M0,{altText:n,asChild:!0,children:S.jsx(kf,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${k0}\`. Expected non-empty \`string\`.`),null)});R0.displayName=k0;var A0="ToastClose",kf=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Rb(A0,n);return S.jsx(M0,{asChild:!0,children:S.jsx(Ce.button,{type:"button",...r,ref:t,onClick:ue(e.onClick,o.onClose)})})});kf.displayName=A0;var M0=v.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return S.jsx(Ce.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function N0(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Lb(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...N0(r))}}),t}function Gs(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?p0(o,i):o.dispatchEvent(i)}var Bp=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function Ob(e=()=>{}){const t=tn(e);yn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Lb(e){return e.nodeType===e.ELEMENT_NODE}function jb(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Cu(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var _b=x0,D0=E0,O0=b0,L0=T0,j0=P0,_0=R0,I0=kf;function F0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=F0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function V0(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=F0(e))&&(r&&(r+=" "),r+=t);return r}const $p=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Up=V0,z0=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Up(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],d=i==null?void 0:i[u];if(c===null)return null;const f=$p(c)||$p(d);return o[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...h}=c;return Object.entries(h).every(x=>{let[p,w]=x;return Array.isArray(w)?w.includes({...i,...a}[p]):{...i,...a}[p]===w})?[...u,d,f]:u},[]);return Up(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ib=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),B0=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var Fb={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"};/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vb=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},l)=>v.createElement("svg",{ref:l,...Fb,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:B0("lucide",o),...a},[...s.map(([u,c])=>v.createElement(u,c)),...Array.isArray(i)?i:[i]]));/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cr=(e,t)=>{const n=v.forwardRef(({className:r,...o},i)=>v.createElement(Vb,{ref:i,iconNode:t,className:B0(`lucide-${Ib(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zb=cr("Database",[["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"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Bb=cr("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $b=cr("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ub=cr("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wb=cr("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hb=cr("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kb=cr("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $0=cr("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Rf="-",Gb=e=>{const t=Yb(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(Rf);return a[0]===""&&a.length!==1&&a.shift(),U0(a,t)||Qb(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}}},U0=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?U0(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Rf);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},Wp=/^\[(.+)\]$/,Qb=e=>{if(Wp.test(e)){const t=Wp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Yb=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return qb(Object.entries(e.classGroups),n).forEach(([i,s])=>{Gc(s,r,i,t)}),r},Gc=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Hp(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(Xb(o)){Gc(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Gc(s,Hp(t,i),n,r)})})},Hp=(e,t)=>{let n=e;return t.split(Rf).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Xb=e=>e.isThemeGetter,qb=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[n,o]}):e,Zb=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},W0="!",Jb=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=a=>{const l=[];let u=0,c=0,d;for(let w=0;w<a.length;w++){let m=a[w];if(u===0){if(m===o&&(r||a.slice(w,w+i)===t)){l.push(a.slice(c,w)),c=w+i;continue}if(m==="/"){d=w;continue}}m==="["?u++:m==="]"&&u--}const f=l.length===0?a:a.substring(c),h=f.startsWith(W0),x=h?f.substring(1):f,p=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:x,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:s}):s},eT=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},tT=e=>({cache:Zb(e.cacheSize),parseClassName:Jb(e),...Gb(e)}),nT=/\s+/,rT=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(nT);let a="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=n(u);let x=!!h,p=r(x?f.substring(0,h):f);if(!p){if(!x){a=u+(a.length>0?" "+a:a);continue}if(p=r(f),!p){a=u+(a.length>0?" "+a:a);continue}x=!1}const w=eT(c).join(":"),m=d?w+W0:w,g=m+p;if(i.includes(g))continue;i.push(g);const y=o(p,x);for(let E=0;E<y.length;++E){const C=y[E];i.push(m+C)}a=u+(a.length>0?" "+a:a)}return a};function oT(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=H0(t))&&(r&&(r+=" "),r+=n);return r}const H0=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=H0(e[r]))&&(n&&(n+=" "),n+=t);return n};function iT(e,...t){let n,r,o,i=s;function s(l){const u=t.reduce((c,d)=>d(c),e());return n=tT(u),r=n.cache.get,o=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=rT(l,n);return o(l,c),c}return function(){return i(oT.apply(null,arguments))}}const oe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},K0=/^\[(?:([a-z-]+):)?(.+)\]$/i,sT=/^\d+\/\d+$/,aT=new Set(["px","full","screen"]),lT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,uT=/\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$/,cT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,dT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,on=e=>Co(e)||aT.has(e)||sT.test(e),Mn=e=>qo(e,"length",xT),Co=e=>!!e&&!Number.isNaN(Number(e)),bu=e=>qo(e,"number",Co),hi=e=>!!e&&Number.isInteger(Number(e)),hT=e=>e.endsWith("%")&&Co(e.slice(0,-1)),K=e=>K0.test(e),Nn=e=>lT.test(e),pT=new Set(["length","size","percentage"]),mT=e=>qo(e,pT,G0),gT=e=>qo(e,"position",G0),yT=new Set(["image","url"]),vT=e=>qo(e,yT,ET),wT=e=>qo(e,"",ST),pi=()=>!0,qo=(e,t,n)=>{const r=K0.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},xT=e=>uT.test(e)&&!cT.test(e),G0=()=>!1,ST=e=>dT.test(e),ET=e=>fT.test(e),CT=()=>{const e=oe("colors"),t=oe("spacing"),n=oe("blur"),r=oe("brightness"),o=oe("borderColor"),i=oe("borderRadius"),s=oe("borderSpacing"),a=oe("borderWidth"),l=oe("contrast"),u=oe("grayscale"),c=oe("hueRotate"),d=oe("invert"),f=oe("gap"),h=oe("gradientColorStops"),x=oe("gradientColorStopPositions"),p=oe("inset"),w=oe("margin"),m=oe("opacity"),g=oe("padding"),y=oe("saturate"),E=oe("scale"),C=oe("sepia"),b=oe("skew"),T=oe("space"),P=oe("translate"),N=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",K,t],_=()=>[K,t],G=()=>["",on,Mn],L=()=>["auto",Co,K],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],A=()=>["","0",K],j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[Co,K];return{cacheSize:500,separator:":",theme:{colors:[pi],spacing:[on,Mn],blur:["none","",Nn,K],brightness:U(),borderColor:[e],borderRadius:["none","","full",Nn,K],borderSpacing:_(),borderWidth:G(),contrast:U(),grayscale:A(),hueRotate:U(),invert:A(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[hT,Mn],inset:V(),margin:V(),opacity:U(),padding:_(),saturate:U(),scale:U(),sepia:A(),skew:U(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",K]}],container:["container"],columns:[{columns:[Nn]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"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:[...Q(),K]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",hi,K]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",K]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",hi,K]}],"grid-cols":[{"grid-cols":[pi]}],"col-start-end":[{col:["auto",{span:["full",hi,K]},K]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[pi]}],"row-start-end":[{row:["auto",{span:[hi,K]},K]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",K]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",K]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",K,t]}],"min-w":[{"min-w":[K,t,"min","max","fit"]}],"max-w":[{"max-w":[K,t,"none","full","min","max","fit","prose",{screen:[Nn]},Nn]}],h:[{h:[K,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[K,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Nn,Mn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",bu]}],"font-family":[{font:[pi]}],"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",K]}],"line-clamp":[{"line-clamp":["none",Co,bu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",on,K]}],"list-image":[{"list-image":["none",K]}],"list-style-type":[{list:["none","disc","decimal",K]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",on,Mn]}],"underline-offset":[{"underline-offset":["auto",on,K]}],"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:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K]}],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",K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),gT]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",mT]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vT]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:$()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[on,K]}],"outline-w":[{outline:[on,Mn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[on,Mn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Nn,wT]}],"shadow-color":[{shadow:[pi]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Nn,K]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",K]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",K]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",K]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[hi,K]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[b]}],"skew-y":[{"skew-y":[b]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",K]}],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",K]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"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",K]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[on,Mn,bu]}],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"]}}},bT=iT(CT);function Pe(...e){return bT(V0(e))}const TT=_b,Q0=v.forwardRef(({className:e,...t},n)=>S.jsx(D0,{ref:n,className:Pe("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}));Q0.displayName=D0.displayName;const PT=z0("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"}}),Y0=v.forwardRef(({className:e,variant:t,...n},r)=>S.jsx(O0,{ref:r,className:Pe(PT({variant:t}),e),...n}));Y0.displayName=O0.displayName;const kT=v.forwardRef(({className:e,...t},n)=>S.jsx(_0,{ref:n,className:Pe("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 group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));kT.displayName=_0.displayName;const X0=v.forwardRef(({className:e,...t},n)=>S.jsx(I0,{ref:n,className:Pe("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:S.jsx($0,{className:"h-4 w-4"})}));X0.displayName=I0.displayName;const q0=v.forwardRef(({className:e,...t},n)=>S.jsx(L0,{ref:n,className:Pe("text-sm font-semibold",e),...t}));q0.displayName=L0.displayName;const Z0=v.forwardRef(({className:e,...t},n)=>S.jsx(j0,{ref:n,className:Pe("text-sm opacity-90",e),...t}));Z0.displayName=j0.displayName;function RT(){const{toasts:e}=UC();return S.jsxs(TT,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return S.jsxs(Y0,{...i,children:[S.jsxs("div",{className:"grid gap-1",children:[n&&S.jsx(q0,{children:n}),r&&S.jsx(Z0,{children:r})]}),o,S.jsx(X0,{})]},t)}),S.jsx(Q0,{})]})}var Kp=["light","dark"],AT="(prefers-color-scheme: dark)",MT=v.createContext(void 0),NT={setTheme:e=>{},themes:[]},DT=()=>{var e;return(e=v.useContext(MT))!=null?e:NT};v.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:a,nonce:l})=>{let u=i==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=o?Kp.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(x,p=!1,w=!0)=>{let m=s?s[x]:x,g=p?x+"|| ''":`'${m}'`,y="";return o&&w&&!p&&Kp.includes(x)&&(y+=`d.style.colorScheme = '${x}';`),n==="class"?p||m?y+=`c.add(${g})`:y+="null":m&&(y+=`d[s](n,${g})`),y},h=e?`!function(){${c}${f(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${AT}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${f(s?"x[e]":"e",!0)}}${u?"":"else{"+f(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${f(s?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${d}}catch(t){}}();`;return v.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})});var OT=e=>{switch(e){case"success":return _T;case"info":return FT;case"warning":return IT;case"error":return VT;default:return null}},LT=Array(12).fill(0),jT=({visible:e,className:t})=>O.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},O.createElement("div",{className:"sonner-spinner"},LT.map((n,r)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),_T=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),IT=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},O.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"})),FT=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),VT=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),zT=O.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"},O.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),O.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),BT=()=>{let[e,t]=O.useState(document.hidden);return O.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Qc=1,$T=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Qc++,i=this.toasts.find(a=>a.id===o),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:s,title:n}):a):this.addToast({title:n,...r,dismissible:s,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,i,s=r.then(async l=>{if(i=["resolve",l],O.isValidElement(l))o=!1,this.create({id:n,type:"default",message:l});else if(WT(l)&&!l.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:c})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(l):t.success,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async l=>{if(i=["reject",l],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(l):t.error,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var l;o&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>s.then(()=>i[0]==="reject"?u(i[1]):l(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Qc++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Ye=new $T,UT=(e,t)=>{let n=(t==null?void 0:t.id)||Qc++;return Ye.addToast({title:e,...t,id:n}),n},WT=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",HT=UT,KT=()=>Ye.toasts,GT=()=>Ye.getActiveToasts();Object.assign(HT,{success:Ye.success,info:Ye.info,warning:Ye.warning,error:Ye.error,custom:Ye.custom,message:Ye.message,promise:Ye.promise,dismiss:Ye.dismiss,loading:Ye.loading},{getHistory:KT,getToasts:GT});function QT(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}QT(`: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%)}
`);function Qs(e){return e.label!==void 0}var YT=3,XT="32px",qT="16px",Gp=4e3,ZT=356,JT=14,eP=20,tP=200;function Rt(...e){return e.filter(Boolean).join(" ")}function nP(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var rP=e=>{var t,n,r,o,i,s,a,l,u,c,d;let{invert:f,toast:h,unstyled:x,interacting:p,setHeights:w,visibleToasts:m,heights:g,index:y,toasts:E,expanded:C,removeToast:b,defaultRichColors:T,closeButton:P,style:N,cancelButtonStyle:D,actionButtonStyle:V,className:_="",descriptionClassName:G="",duration:L,position:Q,gap:$,loadingIcon:F,expandByDefault:k,classNames:A,icons:j,closeButtonAriaLabel:U="Close toast",pauseWhenPageIsHidden:z}=e,[Y,q]=O.useState(null),[xe,Oe]=O.useState(null),[ee,Ur]=O.useState(!1),[Cn,fr]=O.useState(!1),[bn,Wr]=O.useState(!1),[Tn,Ts]=O.useState(!1),[Wl,Ps]=O.useState(!1),[Hl,ri]=O.useState(0),[Hr,Sh]=O.useState(0),oi=O.useRef(h.duration||L||Gp),Eh=O.useRef(null),hr=O.useRef(null),rS=y===0,oS=y+1<=m,dt=h.type,Kr=h.dismissible!==!1,iS=h.className||"",sS=h.descriptionClassName||"",ks=O.useMemo(()=>g.findIndex(W=>W.toastId===h.id)||0,[g,h.id]),aS=O.useMemo(()=>{var W;return(W=h.closeButton)!=null?W:P},[h.closeButton,P]),Ch=O.useMemo(()=>h.duration||L||Gp,[h.duration,L]),Kl=O.useRef(0),Gr=O.useRef(0),bh=O.useRef(0),Qr=O.useRef(null),[lS,uS]=Q.split("-"),Th=O.useMemo(()=>g.reduce((W,ne,ae)=>ae>=ks?W:W+ne.height,0),[g,ks]),Ph=BT(),cS=h.invert||f,Gl=dt==="loading";Gr.current=O.useMemo(()=>ks*$+Th,[ks,Th]),O.useEffect(()=>{oi.current=Ch},[Ch]),O.useEffect(()=>{Ur(!0)},[]),O.useEffect(()=>{let W=hr.current;if(W){let ne=W.getBoundingClientRect().height;return Sh(ne),w(ae=>[{toastId:h.id,height:ne,position:h.position},...ae]),()=>w(ae=>ae.filter(bt=>bt.toastId!==h.id))}},[w,h.id]),O.useLayoutEffect(()=>{if(!ee)return;let W=hr.current,ne=W.style.height;W.style.height="auto";let ae=W.getBoundingClientRect().height;W.style.height=ne,Sh(ae),w(bt=>bt.find(Tt=>Tt.toastId===h.id)?bt.map(Tt=>Tt.toastId===h.id?{...Tt,height:ae}:Tt):[{toastId:h.id,height:ae,position:h.position},...bt])},[ee,h.title,h.description,w,h.id]);let Pn=O.useCallback(()=>{fr(!0),ri(Gr.current),w(W=>W.filter(ne=>ne.toastId!==h.id)),setTimeout(()=>{b(h)},tP)},[h,b,w,Gr]);O.useEffect(()=>{if(h.promise&&dt==="loading"||h.duration===1/0||h.type==="loading")return;let W;return C||p||z&&Ph?(()=>{if(bh.current<Kl.current){let ne=new Date().getTime()-Kl.current;oi.current=oi.current-ne}bh.current=new Date().getTime()})():oi.current!==1/0&&(Kl.current=new Date().getTime(),W=setTimeout(()=>{var ne;(ne=h.onAutoClose)==null||ne.call(h,h),Pn()},oi.current)),()=>clearTimeout(W)},[C,p,h,dt,z,Ph,Pn]),O.useEffect(()=>{h.delete&&Pn()},[Pn,h.delete]);function dS(){var W,ne,ae;return j!=null&&j.loading?O.createElement("div",{className:Rt(A==null?void 0:A.loader,(W=h==null?void 0:h.classNames)==null?void 0:W.loader,"sonner-loader"),"data-visible":dt==="loading"},j.loading):F?O.createElement("div",{className:Rt(A==null?void 0:A.loader,(ne=h==null?void 0:h.classNames)==null?void 0:ne.loader,"sonner-loader"),"data-visible":dt==="loading"},F):O.createElement(jT,{className:Rt(A==null?void 0:A.loader,(ae=h==null?void 0:h.classNames)==null?void 0:ae.loader),visible:dt==="loading"})}return O.createElement("li",{tabIndex:0,ref:hr,className:Rt(_,iS,A==null?void 0:A.toast,(t=h==null?void 0:h.classNames)==null?void 0:t.toast,A==null?void 0:A.default,A==null?void 0:A[dt],(n=h==null?void 0:h.classNames)==null?void 0:n[dt]),"data-sonner-toast":"","data-rich-colors":(r=h.richColors)!=null?r:T,"data-styled":!(h.jsx||h.unstyled||x),"data-mounted":ee,"data-promise":!!h.promise,"data-swiped":Wl,"data-removed":Cn,"data-visible":oS,"data-y-position":lS,"data-x-position":uS,"data-index":y,"data-front":rS,"data-swiping":bn,"data-dismissible":Kr,"data-type":dt,"data-invert":cS,"data-swipe-out":Tn,"data-swipe-direction":xe,"data-expanded":!!(C||k&&ee),style:{"--index":y,"--toasts-before":y,"--z-index":E.length-y,"--offset":`${Cn?Hl:Gr.current}px`,"--initial-height":k?"auto":`${Hr}px`,...N,...h.style},onDragEnd:()=>{Wr(!1),q(null),Qr.current=null},onPointerDown:W=>{Gl||!Kr||(Eh.current=new Date,ri(Gr.current),W.target.setPointerCapture(W.pointerId),W.target.tagName!=="BUTTON"&&(Wr(!0),Qr.current={x:W.clientX,y:W.clientY}))},onPointerUp:()=>{var W,ne,ae,bt;if(Tn||!Kr)return;Qr.current=null;let Tt=Number(((W=hr.current)==null?void 0:W.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),kn=Number(((ne=hr.current)==null?void 0:ne.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),pr=new Date().getTime()-((ae=Eh.current)==null?void 0:ae.getTime()),Pt=Y==="x"?Tt:kn,Rn=Math.abs(Pt)/pr;if(Math.abs(Pt)>=eP||Rn>.11){ri(Gr.current),(bt=h.onDismiss)==null||bt.call(h,h),Oe(Y==="x"?Tt>0?"right":"left":kn>0?"down":"up"),Pn(),Ts(!0),Ps(!1);return}Wr(!1),q(null)},onPointerMove:W=>{var ne,ae,bt,Tt;if(!Qr.current||!Kr||((ne=window.getSelection())==null?void 0:ne.toString().length)>0)return;let kn=W.clientY-Qr.current.y,pr=W.clientX-Qr.current.x,Pt=(ae=e.swipeDirections)!=null?ae:nP(Q);!Y&&(Math.abs(pr)>1||Math.abs(kn)>1)&&q(Math.abs(pr)>Math.abs(kn)?"x":"y");let Rn={x:0,y:0};Y==="y"?(Pt.includes("top")||Pt.includes("bottom"))&&(Pt.includes("top")&&kn<0||Pt.includes("bottom")&&kn>0)&&(Rn.y=kn):Y==="x"&&(Pt.includes("left")||Pt.includes("right"))&&(Pt.includes("left")&&pr<0||Pt.includes("right")&&pr>0)&&(Rn.x=pr),(Math.abs(Rn.x)>0||Math.abs(Rn.y)>0)&&Ps(!0),(bt=hr.current)==null||bt.style.setProperty("--swipe-amount-x",`${Rn.x}px`),(Tt=hr.current)==null||Tt.style.setProperty("--swipe-amount-y",`${Rn.y}px`)}},aS&&!h.jsx?O.createElement("button",{"aria-label":U,"data-disabled":Gl,"data-close-button":!0,onClick:Gl||!Kr?()=>{}:()=>{var W;Pn(),(W=h.onDismiss)==null||W.call(h,h)},className:Rt(A==null?void 0:A.closeButton,(o=h==null?void 0:h.classNames)==null?void 0:o.closeButton)},(i=j==null?void 0:j.close)!=null?i:zT):null,h.jsx||v.isValidElement(h.title)?h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title:O.createElement(O.Fragment,null,dt||h.icon||h.promise?O.createElement("div",{"data-icon":"",className:Rt(A==null?void 0:A.icon,(s=h==null?void 0:h.classNames)==null?void 0:s.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||dS():null,h.type!=="loading"?h.icon||(j==null?void 0:j[dt])||OT(dt):null):null,O.createElement("div",{"data-content":"",className:Rt(A==null?void 0:A.content,(a=h==null?void 0:h.classNames)==null?void 0:a.content)},O.createElement("div",{"data-title":"",className:Rt(A==null?void 0:A.title,(l=h==null?void 0:h.classNames)==null?void 0:l.title)},typeof h.title=="function"?h.title():h.title),h.description?O.createElement("div",{"data-description":"",className:Rt(G,sS,A==null?void 0:A.description,(u=h==null?void 0:h.classNames)==null?void 0:u.description)},typeof h.description=="function"?h.description():h.description):null),v.isValidElement(h.cancel)?h.cancel:h.cancel&&Qs(h.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||D,onClick:W=>{var ne,ae;Qs(h.cancel)&&Kr&&((ae=(ne=h.cancel).onClick)==null||ae.call(ne,W),Pn())},className:Rt(A==null?void 0:A.cancelButton,(c=h==null?void 0:h.classNames)==null?void 0:c.cancelButton)},h.cancel.label):null,v.isValidElement(h.action)?h.action:h.action&&Qs(h.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||V,onClick:W=>{var ne,ae;Qs(h.action)&&((ae=(ne=h.action).onClick)==null||ae.call(ne,W),!W.defaultPrevented&&Pn())},className:Rt(A==null?void 0:A.actionButton,(d=h==null?void 0:h.classNames)==null?void 0:d.actionButton)},h.action.label):null))};function Qp(){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 oP(e,t){let n={};return[e,t].forEach((r,o)=>{let i=o===1,s=i?"--mobile-offset":"--offset",a=i?qT:XT;function l(u){["top","right","bottom","left"].forEach(c=>{n[`${s}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=a:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var iP=v.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:s,className:a,offset:l,mobileOffset:u,theme:c="light",richColors:d,duration:f,style:h,visibleToasts:x=YT,toastOptions:p,dir:w=Qp(),gap:m=JT,loadingIcon:g,icons:y,containerAriaLabel:E="Notifications",pauseWhenPageIsHidden:C}=e,[b,T]=O.useState([]),P=O.useMemo(()=>Array.from(new Set([r].concat(b.filter(z=>z.position).map(z=>z.position)))),[b,r]),[N,D]=O.useState([]),[V,_]=O.useState(!1),[G,L]=O.useState(!1),[Q,$]=O.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),F=O.useRef(null),k=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),A=O.useRef(null),j=O.useRef(!1),U=O.useCallback(z=>{T(Y=>{var q;return(q=Y.find(xe=>xe.id===z.id))!=null&&q.delete||Ye.dismiss(z.id),Y.filter(({id:xe})=>xe!==z.id)})},[]);return O.useEffect(()=>Ye.subscribe(z=>{if(z.dismiss){T(Y=>Y.map(q=>q.id===z.id?{...q,delete:!0}:q));return}setTimeout(()=>{c0.flushSync(()=>{T(Y=>{let q=Y.findIndex(xe=>xe.id===z.id);return q!==-1?[...Y.slice(0,q),{...Y[q],...z},...Y.slice(q+1)]:[z,...Y]})})})}),[]),O.useEffect(()=>{if(c!=="system"){$(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;let z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:Y})=>{$(Y?"dark":"light")})}catch{z.addListener(({matches:q})=>{try{$(q?"dark":"light")}catch(xe){console.error(xe)}})}},[c]),O.useEffect(()=>{b.length<=1&&_(!1)},[b]),O.useEffect(()=>{let z=Y=>{var q,xe;o.every(Oe=>Y[Oe]||Y.code===Oe)&&(_(!0),(q=F.current)==null||q.focus()),Y.code==="Escape"&&(document.activeElement===F.current||(xe=F.current)!=null&&xe.contains(document.activeElement))&&_(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[o]),O.useEffect(()=>{if(F.current)return()=>{A.current&&(A.current.focus({preventScroll:!0}),A.current=null,j.current=!1)}},[F.current]),O.createElement("section",{ref:t,"aria-label":`${E} ${k}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((z,Y)=>{var q;let[xe,Oe]=z.split("-");return b.length?O.createElement("ol",{key:z,dir:w==="auto"?Qp():w,tabIndex:-1,ref:F,className:a,"data-sonner-toaster":!0,"data-theme":Q,"data-y-position":xe,"data-lifted":V&&b.length>1&&!i,"data-x-position":Oe,style:{"--front-toast-height":`${((q=N[0])==null?void 0:q.height)||0}px`,"--width":`${ZT}px`,"--gap":`${m}px`,...h,...oP(l,u)},onBlur:ee=>{j.current&&!ee.currentTarget.contains(ee.relatedTarget)&&(j.current=!1,A.current&&(A.current.focus({preventScroll:!0}),A.current=null))},onFocus:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||j.current||(j.current=!0,A.current=ee.relatedTarget)},onMouseEnter:()=>_(!0),onMouseMove:()=>_(!0),onMouseLeave:()=>{G||_(!1)},onDragEnd:()=>_(!1),onPointerDown:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},b.filter(ee=>!ee.position&&Y===0||ee.position===z).map((ee,Ur)=>{var Cn,fr;return O.createElement(rP,{key:ee.id,icons:y,index:Ur,toast:ee,defaultRichColors:d,duration:(Cn=p==null?void 0:p.duration)!=null?Cn:f,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:n,visibleToasts:x,closeButton:(fr=p==null?void 0:p.closeButton)!=null?fr:s,interacting:G,position:z,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,removeToast:U,toasts:b.filter(bn=>bn.position==ee.position),heights:N.filter(bn=>bn.position==ee.position),setHeights:D,expandByDefault:i,gap:m,loadingIcon:g,expanded:V,pauseWhenPageIsHidden:C,swipeDirections:e.swipeDirections})})):null}))});const sP=({...e})=>{const{theme:t="system"}=DT();return S.jsx(iP,{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 aP=Dd[" useId ".trim().toString()]||(()=>{}),lP=0;function Tu(e){const[t,n]=v.useState(aP());return yn(()=>{e||n(r=>r??String(lP++))},[e]),e||(t?`radix-${t}`:"")}const uP=["top","right","bottom","left"],rr=Math.min,ot=Math.max,Xa=Math.round,Ys=Math.floor,Zt=e=>({x:e,y:e}),cP={left:"right",right:"left",bottom:"top",top:"bottom"},dP={start:"end",end:"start"};function Yc(e,t,n){return ot(e,rr(t,n))}function vn(e,t){return typeof e=="function"?e(t):e}function wn(e){return e.split("-")[0]}function Zo(e){return e.split("-")[1]}function Af(e){return e==="x"?"y":"x"}function Mf(e){return e==="y"?"height":"width"}const fP=new Set(["top","bottom"]);function Yt(e){return fP.has(wn(e))?"y":"x"}function Nf(e){return Af(Yt(e))}function hP(e,t,n){n===void 0&&(n=!1);const r=Zo(e),o=Nf(e),i=Mf(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=qa(s)),[s,qa(s)]}function pP(e){const t=qa(e);return[Xc(e),t,Xc(t)]}function Xc(e){return e.replace(/start|end/g,t=>dP[t])}const Yp=["left","right"],Xp=["right","left"],mP=["top","bottom"],gP=["bottom","top"];function yP(e,t,n){switch(e){case"top":case"bottom":return n?t?Xp:Yp:t?Yp:Xp;case"left":case"right":return t?mP:gP;default:return[]}}function vP(e,t,n,r){const o=Zo(e);let i=yP(wn(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Xc)))),i}function qa(e){return e.replace(/left|right|bottom|top/g,t=>cP[t])}function wP(e){return{top:0,right:0,bottom:0,left:0,...e}}function J0(e){return typeof e!="number"?wP(e):{top:e,right:e,bottom:e,left:e}}function Za(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function qp(e,t,n){let{reference:r,floating:o}=e;const i=Yt(t),s=Nf(t),a=Mf(s),l=wn(t),u=i==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let h;switch(l){case"top":h={x:c,y:r.y-o.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Zo(t)){case"start":h[s]-=f*(n&&u?-1:1);break;case"end":h[s]+=f*(n&&u?-1:1);break}return h}const xP=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=qp(u,r,l),f=r,h={},x=0;for(let p=0;p<a.length;p++){const{name:w,fn:m}=a[p],{x:g,y,data:E,reset:C}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});c=g??c,d=y??d,h={...h,[w]:{...h[w],...E}},C&&x<=50&&(x++,typeof C=="object"&&(C.placement&&(f=C.placement),C.rects&&(u=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:c,y:d}=qp(u,f,l)),p=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:h}};async function es(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=vn(t,e),x=J0(h),w=a[f?d==="floating"?"reference":"floating":d],m=Za(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),g=d==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),E=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},C=Za(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:l}):g);return{top:(m.top-C.top+x.top)/E.y,bottom:(C.bottom-m.bottom+x.bottom)/E.y,left:(m.left-C.left+x.left)/E.x,right:(C.right-m.right+x.right)/E.x}}const SP=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=vn(e,t)||{};if(u==null)return{};const d=J0(c),f={x:n,y:r},h=Nf(o),x=Mf(h),p=await s.getDimensions(u),w=h==="y",m=w?"top":"left",g=w?"bottom":"right",y=w?"clientHeight":"clientWidth",E=i.reference[x]+i.reference[h]-f[h]-i.floating[x],C=f[h]-i.reference[h],b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let T=b?b[y]:0;(!T||!await(s.isElement==null?void 0:s.isElement(b)))&&(T=a.floating[y]||i.floating[x]);const P=E/2-C/2,N=T/2-p[x]/2-1,D=rr(d[m],N),V=rr(d[g],N),_=D,G=T-p[x]-V,L=T/2-p[x]/2+P,Q=Yc(_,L,G),$=!l.arrow&&Zo(o)!=null&&L!==Q&&i.reference[x]/2-(L<_?D:V)-p[x]/2<0,F=$?L<_?L-_:L-G:0;return{[h]:f[h]+F,data:{[h]:Q,centerOffset:L-Q-F,...$&&{alignmentOffset:F}},reset:$}}}),EP=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:p=!0,...w}=vn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=wn(o),g=Yt(a),y=wn(a)===a,E=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=f||(y||!p?[qa(a)]:pP(a)),b=x!=="none";!f&&b&&C.push(...vP(a,p,x,E));const T=[a,...C],P=await es(t,w),N=[];let D=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&N.push(P[m]),d){const L=hP(o,s,E);N.push(P[L[0]],P[L[1]])}if(D=[...D,{placement:o,overflows:N}],!N.every(L=>L<=0)){var V,_;const L=(((V=i.flip)==null?void 0:V.index)||0)+1,Q=T[L];if(Q&&(!(d==="alignment"?g!==Yt(Q):!1)||D.every(k=>k.overflows[0]>0&&Yt(k.placement)===g)))return{data:{index:L,overflows:D},reset:{placement:Q}};let $=(_=D.filter(F=>F.overflows[0]<=0).sort((F,k)=>F.overflows[1]-k.overflows[1])[0])==null?void 0:_.placement;if(!$)switch(h){case"bestFit":{var G;const F=(G=D.filter(k=>{if(b){const A=Yt(k.placement);return A===g||A==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(A=>A>0).reduce((A,j)=>A+j,0)]).sort((k,A)=>k[1]-A[1])[0])==null?void 0:G[0];F&&($=F);break}case"initialPlacement":$=a;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Zp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Jp(e){return uP.some(t=>e[t]>=0)}const CP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=vn(e,t);switch(r){case"referenceHidden":{const i=await es(t,{...o,elementContext:"reference"}),s=Zp(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Jp(s)}}}case"escaped":{const i=await es(t,{...o,altBoundary:!0}),s=Zp(i,n.floating);return{data:{escapedOffsets:s,escaped:Jp(s)}}}default:return{}}}}},ew=new Set(["left","top"]);async function bP(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=wn(n),a=Zo(n),l=Yt(n)==="y",u=ew.has(s)?-1:1,c=i&&l?-1:1,d=vn(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:x}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof x=="number"&&(h=a==="end"?x*-1:x),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}const TP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await bP(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},PP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:w=>{let{x:m,y:g}=w;return{x:m,y:g}}},...l}=vn(e,t),u={x:n,y:r},c=await es(t,l),d=Yt(wn(o)),f=Af(d);let h=u[f],x=u[d];if(i){const w=f==="y"?"top":"left",m=f==="y"?"bottom":"right",g=h+c[w],y=h-c[m];h=Yc(g,h,y)}if(s){const w=d==="y"?"top":"left",m=d==="y"?"bottom":"right",g=x+c[w],y=x-c[m];x=Yc(g,x,y)}const p=a.fn({...t,[f]:h,[d]:x});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[f]:i,[d]:s}}}}}},kP=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=vn(e,t),c={x:n,y:r},d=Yt(o),f=Af(d);let h=c[f],x=c[d];const p=vn(a,t),w=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const y=f==="y"?"height":"width",E=i.reference[f]-i.floating[y]+w.mainAxis,C=i.reference[f]+i.reference[y]-w.mainAxis;h<E?h=E:h>C&&(h=C)}if(u){var m,g;const y=f==="y"?"width":"height",E=ew.has(wn(o)),C=i.reference[d]-i.floating[y]+(E&&((m=s.offset)==null?void 0:m[d])||0)+(E?0:w.crossAxis),b=i.reference[d]+i.reference[y]+(E?0:((g=s.offset)==null?void 0:g[d])||0)-(E?w.crossAxis:0);x<C?x=C:x>b&&(x=b)}return{[f]:h,[d]:x}}}},RP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=vn(e,t),c=await es(t,u),d=wn(o),f=Zo(o),h=Yt(o)==="y",{width:x,height:p}=i.floating;let w,m;d==="top"||d==="bottom"?(w=d,m=f===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(m=d,w=f==="end"?"top":"bottom");const g=p-c.top-c.bottom,y=x-c.left-c.right,E=rr(p-c[w],g),C=rr(x-c[m],y),b=!t.middlewareData.shift;let T=E,P=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=g),b&&!f){const D=ot(c.left,0),V=ot(c.right,0),_=ot(c.top,0),G=ot(c.bottom,0);h?P=x-2*(D!==0||V!==0?D+V:ot(c.left,c.right)):T=p-2*(_!==0||G!==0?_+G:ot(c.top,c.bottom))}await l({...t,availableWidth:P,availableHeight:T});const N=await s.getDimensions(a.floating);return x!==N.width||p!==N.height?{reset:{rects:!0}}:{}}}};function Al(){return typeof window<"u"}function Jo(e){return tw(e)?(e.nodeName||"").toLowerCase():"#document"}function at(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rn(e){var t;return(t=(tw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tw(e){return Al()?e instanceof Node||e instanceof at(e).Node:!1}function Vt(e){return Al()?e instanceof Element||e instanceof at(e).Element:!1}function nn(e){return Al()?e instanceof HTMLElement||e instanceof at(e).HTMLElement:!1}function em(e){return!Al()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof at(e).ShadowRoot}const AP=new Set(["inline","contents"]);function xs(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!AP.has(o)}const MP=new Set(["table","td","th"]);function NP(e){return MP.has(Jo(e))}const DP=[":popover-open",":modal"];function Ml(e){return DP.some(t=>{try{return e.matches(t)}catch{return!1}})}const OP=["transform","translate","scale","rotate","perspective"],LP=["transform","translate","scale","rotate","perspective","filter"],jP=["paint","layout","strict","content"];function Df(e){const t=Of(),n=Vt(e)?zt(e):e;return OP.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||LP.some(r=>(n.willChange||"").includes(r))||jP.some(r=>(n.contain||"").includes(r))}function _P(e){let t=or(e);for(;nn(t)&&!Uo(t);){if(Df(t))return t;if(Ml(t))return null;t=or(t)}return null}function Of(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const IP=new Set(["html","body","#document"]);function Uo(e){return IP.has(Jo(e))}function zt(e){return at(e).getComputedStyle(e)}function Nl(e){return Vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function or(e){if(Jo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||em(e)&&e.host||rn(e);return em(t)?t.host:t}function nw(e){const t=or(e);return Uo(t)?e.ownerDocument?e.ownerDocument.body:e.body:nn(t)&&xs(t)?t:nw(t)}function ts(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=nw(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=at(o);if(i){const a=qc(s);return t.concat(s,s.visualViewport||[],xs(o)?o:[],a&&n?ts(a):[])}return t.concat(o,ts(o,[],n))}function qc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rw(e){const t=zt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=nn(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Xa(n)!==i||Xa(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Lf(e){return Vt(e)?e:e.contextElement}function bo(e){const t=Lf(e);if(!nn(t))return Zt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=rw(t);let s=(i?Xa(n.width):n.width)/r,a=(i?Xa(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const FP=Zt(0);function ow(e){const t=at(e);return!Of()||!t.visualViewport?FP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function VP(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==at(e)?!1:t}function Vr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Lf(e);let s=Zt(1);t&&(r?Vt(r)&&(s=bo(r)):s=bo(e));const a=VP(i,n,r)?ow(i):Zt(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,c=o.width/s.x,d=o.height/s.y;if(i){const f=at(i),h=r&&Vt(r)?at(r):r;let x=f,p=qc(x);for(;p&&r&&h!==x;){const w=bo(p),m=p.getBoundingClientRect(),g=zt(p),y=m.left+(p.clientLeft+parseFloat(g.paddingLeft))*w.x,E=m.top+(p.clientTop+parseFloat(g.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,d*=w.y,l+=y,u+=E,x=at(p),p=qc(x)}}return Za({width:c,height:d,x:l,y:u})}function jf(e,t){const n=Nl(e).scrollLeft;return t?t.left+n:Vr(rn(e)).left+n}function iw(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:jf(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function zP(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=rn(r),a=t?Ml(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Zt(1);const c=Zt(0),d=nn(r);if((d||!d&&!i)&&((Jo(r)!=="body"||xs(s))&&(l=Nl(r)),nn(r))){const h=Vr(r);u=bo(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}const f=s&&!d&&!i?iw(s,l,!0):Zt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function BP(e){return Array.from(e.getClientRects())}function $P(e){const t=rn(e),n=Nl(e),r=e.ownerDocument.body,o=ot(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ot(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+jf(e);const a=-n.scrollTop;return zt(r).direction==="rtl"&&(s+=ot(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function UP(e,t){const n=at(e),r=rn(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=Of();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}const WP=new Set(["absolute","fixed"]);function HP(e,t){const n=Vr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=nn(e)?bo(e):Zt(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:s,height:a,x:l,y:u}}function tm(e,t,n){let r;if(t==="viewport")r=UP(e,n);else if(t==="document")r=$P(rn(e));else if(Vt(t))r=HP(t,n);else{const o=ow(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Za(r)}function sw(e,t){const n=or(e);return n===t||!Vt(n)||Uo(n)?!1:zt(n).position==="fixed"||sw(n,t)}function KP(e,t){const n=t.get(e);if(n)return n;let r=ts(e,[],!1).filter(a=>Vt(a)&&Jo(a)!=="body"),o=null;const i=zt(e).position==="fixed";let s=i?or(e):e;for(;Vt(s)&&!Uo(s);){const a=zt(s),l=Df(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&WP.has(o.position)||xs(s)&&!l&&sw(e,s))?r=r.filter(c=>c!==s):o=a,s=or(s)}return t.set(e,r),r}function GP(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Ml(t)?[]:KP(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,c)=>{const d=tm(t,c,o);return u.top=ot(d.top,u.top),u.right=rr(d.right,u.right),u.bottom=rr(d.bottom,u.bottom),u.left=ot(d.left,u.left),u},tm(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function QP(e){const{width:t,height:n}=rw(e);return{width:t,height:n}}function YP(e,t,n){const r=nn(t),o=rn(t),i=n==="fixed",s=Vr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Zt(0);function u(){l.x=jf(o)}if(r||!r&&!i)if((Jo(t)!=="body"||xs(o))&&(a=Nl(t)),r){const h=Vr(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&u();i&&!r&&o&&u();const c=o&&!r&&!i?iw(o,a):Zt(0),d=s.left+a.scrollLeft-l.x-c.x,f=s.top+a.scrollTop-l.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function Pu(e){return zt(e).position==="static"}function nm(e,t){if(!nn(e)||zt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return rn(e)===n&&(n=n.ownerDocument.body),n}function aw(e,t){const n=at(e);if(Ml(e))return n;if(!nn(e)){let o=or(e);for(;o&&!Uo(o);){if(Vt(o)&&!Pu(o))return o;o=or(o)}return n}let r=nm(e,t);for(;r&&NP(r)&&Pu(r);)r=nm(r,t);return r&&Uo(r)&&Pu(r)&&!Df(r)?n:r||_P(e)||n}const XP=async function(e){const t=this.getOffsetParent||aw,n=this.getDimensions,r=await n(e.floating);return{reference:YP(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function qP(e){return zt(e).direction==="rtl"}const ZP={convertOffsetParentRelativeRectToViewportRelativeRect:zP,getDocumentElement:rn,getClippingRect:GP,getOffsetParent:aw,getElementRects:XP,getClientRects:BP,getDimensions:QP,getScale:bo,isElement:Vt,isRTL:qP};function lw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function JP(e,t){let n=null,r;const o=rn(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=u;if(a||t(),!f||!h)return;const x=Ys(d),p=Ys(o.clientWidth-(c+f)),w=Ys(o.clientHeight-(d+h)),m=Ys(c),y={rootMargin:-x+"px "+-p+"px "+-w+"px "+-m+"px",threshold:ot(0,rr(1,l))||1};let E=!0;function C(b){const T=b[0].intersectionRatio;if(T!==l){if(!E)return s();T?s(!1,T):r=setTimeout(()=>{s(!1,1e-7)},1e3)}T===1&&!lw(u,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(C,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,y)}n.observe(e)}return s(!0),i}function ek(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Lf(e),c=o||i?[...u?ts(u):[],...ts(t)]:[];c.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const d=u&&a?JP(u,n):null;let f=-1,h=null;s&&(h=new ResizeObserver(m=>{let[g]=m;g&&g.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let x,p=l?Vr(e):null;l&&w();function w(){const m=Vr(e);p&&!lw(p,m)&&n(),p=m,x=requestAnimationFrame(w)}return n(),()=>{var m;c.forEach(g=>{o&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),d==null||d(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(x)}}const tk=TP,nk=PP,rk=EP,ok=RP,ik=CP,rm=SP,sk=kP,ak=(e,t,n)=>{const r=new Map,o={platform:ZP,...n},i={...o.platform,_c:r};return xP(e,t,{...o,platform:i})};var lk=typeof document<"u",uk=function(){},va=lk?v.useLayoutEffect:uk;function Ja(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ja(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ja(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function uw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function om(e,t){const n=uw(e);return Math.round(t*n)/n}function ku(e){const t=v.useRef(e);return va(()=>{t.current=e}),t}function ck(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,d]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=v.useState(r);Ja(f,r)||h(r);const[x,p]=v.useState(null),[w,m]=v.useState(null),g=v.useCallback(k=>{k!==b.current&&(b.current=k,p(k))},[]),y=v.useCallback(k=>{k!==T.current&&(T.current=k,m(k))},[]),E=i||x,C=s||w,b=v.useRef(null),T=v.useRef(null),P=v.useRef(c),N=l!=null,D=ku(l),V=ku(o),_=ku(u),G=v.useCallback(()=>{if(!b.current||!T.current)return;const k={placement:t,strategy:n,middleware:f};V.current&&(k.platform=V.current),ak(b.current,T.current,k).then(A=>{const j={...A,isPositioned:_.current!==!1};L.current&&!Ja(P.current,j)&&(P.current=j,ys.flushSync(()=>{d(j)}))})},[f,t,n,V,_]);va(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(k=>({...k,isPositioned:!1})))},[u]);const L=v.useRef(!1);va(()=>(L.current=!0,()=>{L.current=!1}),[]),va(()=>{if(E&&(b.current=E),C&&(T.current=C),E&&C){if(D.current)return D.current(E,C,G);G()}},[E,C,G,D,N]);const Q=v.useMemo(()=>({reference:b,floating:T,setReference:g,setFloating:y}),[g,y]),$=v.useMemo(()=>({reference:E,floating:C}),[E,C]),F=v.useMemo(()=>{const k={position:n,left:0,top:0};if(!$.floating)return k;const A=om($.floating,c.x),j=om($.floating,c.y);return a?{...k,transform:"translate("+A+"px, "+j+"px)",...uw($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:j}},[n,a,$.floating,c.x,c.y]);return v.useMemo(()=>({...c,update:G,refs:Q,elements:$,floatingStyles:F}),[c,G,Q,$,F])}const dk=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?rm({element:r.current,padding:o}).fn(n):{}:r?rm({element:r,padding:o}).fn(n):{}}}},fk=(e,t)=>({...tk(e),options:[e,t]}),hk=(e,t)=>({...nk(e),options:[e,t]}),pk=(e,t)=>({...sk(e),options:[e,t]}),mk=(e,t)=>({...rk(e),options:[e,t]}),gk=(e,t)=>({...ok(e),options:[e,t]}),yk=(e,t)=>({...ik(e),options:[e,t]}),vk=(e,t)=>({...dk(e),options:[e,t]});var wk="Arrow",cw=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return S.jsx(Ce.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:S.jsx("polygon",{points:"0,0 30,0 15,10"})})});cw.displayName=wk;var xk=cw;function Sk(e){const[t,n]=v.useState(void 0);return yn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var dw="Popper",[fw,hw]=vs(dw),[rL,pw]=fw(dw),mw="PopperAnchor",gw=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=pw(mw,n),s=v.useRef(null),a=Ke(t,s);return v.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:S.jsx(Ce.div,{...o,ref:a})});gw.displayName=mw;var _f="PopperContent",[Ek,Ck]=fw(_f),yw=v.forwardRef((e,t)=>{var ee,Ur,Cn,fr,bn,Wr;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:h="optimized",onPlaced:x,...p}=e,w=pw(_f,n),[m,g]=v.useState(null),y=Ke(t,Tn=>g(Tn)),[E,C]=v.useState(null),b=Sk(E),T=(b==null?void 0:b.width)??0,P=(b==null?void 0:b.height)??0,N=r+(i!=="center"?"-"+i:""),D=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},V=Array.isArray(u)?u:[u],_=V.length>0,G={padding:D,boundary:V.filter(Tk),altBoundary:_},{refs:L,floatingStyles:Q,placement:$,isPositioned:F,middlewareData:k}=ck({strategy:"fixed",placement:N,whileElementsMounted:(...Tn)=>ek(...Tn,{animationFrame:h==="always"}),elements:{reference:w.anchor},middleware:[fk({mainAxis:o+P,alignmentAxis:s}),l&&hk({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?pk():void 0,...G}),l&&mk({...G}),gk({...G,apply:({elements:Tn,rects:Ts,availableWidth:Wl,availableHeight:Ps})=>{const{width:Hl,height:ri}=Ts.reference,Hr=Tn.floating.style;Hr.setProperty("--radix-popper-available-width",`${Wl}px`),Hr.setProperty("--radix-popper-available-height",`${Ps}px`),Hr.setProperty("--radix-popper-anchor-width",`${Hl}px`),Hr.setProperty("--radix-popper-anchor-height",`${ri}px`)}}),E&&vk({element:E,padding:a}),Pk({arrowWidth:T,arrowHeight:P}),f&&yk({strategy:"referenceHidden",...G})]}),[A,j]=xw($),U=tn(x);yn(()=>{F&&(U==null||U())},[F,U]);const z=(ee=k.arrow)==null?void 0:ee.x,Y=(Ur=k.arrow)==null?void 0:Ur.y,q=((Cn=k.arrow)==null?void 0:Cn.centerOffset)!==0,[xe,Oe]=v.useState();return yn(()=>{m&&Oe(window.getComputedStyle(m).zIndex)},[m]),S.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:F?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:xe,"--radix-popper-transform-origin":[(fr=k.transformOrigin)==null?void 0:fr.x,(bn=k.transformOrigin)==null?void 0:bn.y].join(" "),...((Wr=k.hide)==null?void 0:Wr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:S.jsx(Ek,{scope:n,placedSide:A,onArrowChange:C,arrowX:z,arrowY:Y,shouldHideArrow:q,children:S.jsx(Ce.div,{"data-side":A,"data-align":j,...p,ref:y,style:{...p.style,animation:F?void 0:"none"}})})})});yw.displayName=_f;var vw="PopperArrow",bk={top:"bottom",right:"left",bottom:"top",left:"right"},ww=v.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Ck(vw,r),s=bk[i.placedSide];return S.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:S.jsx(xk,{...o,ref:n,style:{...o.style,display:"block"}})})});ww.displayName=vw;function Tk(e){return e!==null}var Pk=e=>({name:"transformOrigin",options:e,fn(t){var w,m,g;const{placement:n,rects:r,middlewareData:o}=t,s=((w=o.arrow)==null?void 0:w.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,c]=xw(n),d={start:"0%",center:"50%",end:"100%"}[c],f=(((m=o.arrow)==null?void 0:m.x)??0)+a/2,h=(((g=o.arrow)==null?void 0:g.y)??0)+l/2;let x="",p="";return u==="bottom"?(x=s?d:`${f}px`,p=`${-l}px`):u==="top"?(x=s?d:`${f}px`,p=`${r.floating.height+l}px`):u==="right"?(x=`${-l}px`,p=s?d:`${h}px`):u==="left"&&(x=`${r.floating.width+l}px`,p=s?d:`${h}px`),{data:{x,y:p}}}});function xw(e){const[t,n="center"]=e.split("-");return[t,n]}var kk=gw,Rk=yw,Ak=ww,[Dl,oL]=vs("Tooltip",[hw]),If=hw(),Sw="TooltipProvider",Mk=700,im="tooltip.open",[Nk,Ew]=Dl(Sw),Cw=e=>{const{__scopeTooltip:t,delayDuration:n=Mk,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=v.useRef(!0),a=v.useRef(!1),l=v.useRef(0);return v.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),S.jsx(Nk,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:v.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:v.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:i})};Cw.displayName=Sw;var bw="Tooltip",[iL,Ol]=Dl(bw),Zc="TooltipTrigger",Dk=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ol(Zc,n),i=Ew(Zc,n),s=If(n),a=v.useRef(null),l=Ke(t,a,o.onTriggerChange),u=v.useRef(!1),c=v.useRef(!1),d=v.useCallback(()=>u.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),S.jsx(kk,{asChild:!0,...s,children:S.jsx(Ce.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:ue(e.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:ue(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:ue(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:ue(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ue(e.onBlur,o.onClose),onClick:ue(e.onClick,o.onClose)})})});Dk.displayName=Zc;var Ok="TooltipPortal",[sL,Lk]=Dl(Ok,{forceMount:void 0}),Wo="TooltipContent",Tw=v.forwardRef((e,t)=>{const n=Lk(Wo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Ol(Wo,e.__scopeTooltip);return S.jsx(Xo,{present:r||s.open,children:s.disableHoverableContent?S.jsx(Pw,{side:o,...i,ref:t}):S.jsx(jk,{side:o,...i,ref:t})})}),jk=v.forwardRef((e,t)=>{const n=Ol(Wo,e.__scopeTooltip),r=Ew(Wo,e.__scopeTooltip),o=v.useRef(null),i=Ke(t,o),[s,a]=v.useState(null),{trigger:l,onClose:u}=n,c=o.current,{onPointerInTransitChange:d}=r,f=v.useCallback(()=>{a(null),d(!1)},[d]),h=v.useCallback((x,p)=>{const w=x.currentTarget,m={x:x.clientX,y:x.clientY},g=zk(m,w.getBoundingClientRect()),y=Bk(m,g),E=$k(p.getBoundingClientRect()),C=Wk([...y,...E]);a(C),d(!0)},[d]);return v.useEffect(()=>()=>f(),[f]),v.useEffect(()=>{if(l&&c){const x=w=>h(w,c),p=w=>h(w,l);return l.addEventListener("pointerleave",x),c.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",x),c.removeEventListener("pointerleave",p)}}},[l,c,h,f]),v.useEffect(()=>{if(s){const x=p=>{const w=p.target,m={x:p.clientX,y:p.clientY},g=(l==null?void 0:l.contains(w))||(c==null?void 0:c.contains(w)),y=!Uk(m,s);g?f():y&&(f(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,c,s,u,f]),S.jsx(Pw,{...e,ref:i})}),[_k,Ik]=Dl(bw,{isInside:!1}),Fk=QC("TooltipContent"),Pw=v.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=Ol(Wo,n),u=If(n),{onClose:c}=l;return v.useEffect(()=>(document.addEventListener(im,c),()=>document.removeEventListener(im,c)),[c]),v.useEffect(()=>{if(l.trigger){const d=f=>{const h=f.target;h!=null&&h.contains(l.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,c]),S.jsx(Pl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:S.jsxs(Rk,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.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:[S.jsx(Fk,{children:r}),S.jsx(_k,{scope:n,isInside:!0,children:S.jsx(vb,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Tw.displayName=Wo;var kw="TooltipArrow",Vk=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=If(n);return Ik(kw,n).isInside?null:S.jsx(Ak,{...o,...r,ref:t})});Vk.displayName=kw;function zk(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Bk(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function $k(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Uk(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],l=t[s],u=a.x,c=a.y,d=l.x,f=l.y;c>r!=f>r&&n<(d-u)*(r-c)/(f-c)+u&&(o=!o)}return o}function Wk(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Hk(t)}function Hk(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Kk=Cw,Rw=Tw;const Gk=Kk,Qk=v.forwardRef(({className:e,sideOffset:t=4,...n},r)=>S.jsx(Rw,{ref:r,sideOffset:t,className:Pe("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Qk.displayName=Rw.displayName;var Ll=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(){}},jl=typeof window>"u"||"Deno"in globalThis;function Nt(){}function Yk(e,t){return typeof e=="function"?e(t):e}function Xk(e){return typeof e=="number"&&e>=0&&e!==1/0}function qk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Jc(e,t){return typeof e=="function"?e(t):e}function Zk(e,t){return typeof e=="function"?e(t):e}function sm(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Ff(s,t.options))return!1}else if(!rs(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function am(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(ns(t.options.mutationKey)!==ns(i))return!1}else if(!rs(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Ff(e,t){return((t==null?void 0:t.queryKeyHashFn)||ns)(e)}function ns(e){return JSON.stringify(e,(t,n)=>ed(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function rs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>rs(e[n],t[n])):!1}function Aw(e,t){if(e===t)return e;const n=lm(e)&&lm(t);if(n||ed(e)&&ed(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,a=n?[]:{},l=new Set(r);let u=0;for(let c=0;c<s;c++){const d=n?c:i[c];(!n&&l.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,u++):(a[d]=Aw(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&u++)}return o===s&&u===o?e:a}return t}function lm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ed(e){if(!um(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!um(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function um(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jk(e){return new Promise(t=>{setTimeout(t,e)})}function eR(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Aw(e,t):t}function tR(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function nR(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Vf=Symbol();function Mw(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Vf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var br,Vn,Ro,Ug,rR=(Ug=class extends Ll{constructor(){super();J(this,br);J(this,Vn);J(this,Ro);H(this,Ro,t=>{if(!jl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){R(this,Vn)||this.setEventListener(R(this,Ro))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Vn))==null||t.call(this),H(this,Vn,void 0))}setEventListener(t){var n;H(this,Ro,t),(n=R(this,Vn))==null||n.call(this),H(this,Vn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){R(this,br)!==t&&(H(this,br,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof R(this,br)=="boolean"?R(this,br):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},br=new WeakMap,Vn=new WeakMap,Ro=new WeakMap,Ug),Nw=new rR,Ao,zn,Mo,Wg,oR=(Wg=class extends Ll{constructor(){super();J(this,Ao,!0);J(this,zn);J(this,Mo);H(this,Mo,t=>{if(!jl&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){R(this,zn)||this.setEventListener(R(this,Mo))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,zn))==null||t.call(this),H(this,zn,void 0))}setEventListener(t){var n;H(this,Mo,t),(n=R(this,zn))==null||n.call(this),H(this,zn,t(this.setOnline.bind(this)))}setOnline(t){R(this,Ao)!==t&&(H(this,Ao,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return R(this,Ao)}},Ao=new WeakMap,zn=new WeakMap,Mo=new WeakMap,Wg),el=new oR;function iR(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function sR(e){return Math.min(1e3*2**e,3e4)}function Dw(e){return(e??"online")==="online"?el.isOnline():!0}var Ow=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ru(e){return e instanceof Ow}function Lw(e){let t=!1,n=0,r=!1,o;const i=iR(),s=p=>{var w;r||(f(new Ow(p)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>Nw.isFocused()&&(e.networkMode==="always"||el.isOnline())&&e.canRun(),c=()=>Dw(e.networkMode)&&e.canRun(),d=p=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,p),o==null||o(),i.resolve(p))},f=p=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,p),o==null||o(),i.reject(p))},h=()=>new Promise(p=>{var w;o=m=>{(r||u())&&p(m)},(w=e.onPause)==null||w.call(e)}).then(()=>{var p;o=void 0,r||(p=e.onContinue)==null||p.call(e)}),x=()=>{if(r)return;let p;const w=n===0?e.initialPromise:void 0;try{p=w??e.fn()}catch(m){p=Promise.reject(m)}Promise.resolve(p).then(d).catch(m=>{var b;if(r)return;const g=e.retry??(jl?0:3),y=e.retryDelay??sR,E=typeof y=="function"?y(n,m):y,C=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,m);if(t||!C){f(m);return}n++,(b=e.onFail)==null||b.call(e,n,m),Jk(E).then(()=>u()?void 0:h()).then(()=>{t?f(m):x()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?x():h().then(x),i)}}var aR=e=>setTimeout(e,0);function lR(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=aR;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Ue=lR(),Tr,Hg,jw=(Hg=class{constructor(){J(this,Tr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Xk(this.gcTime)&&H(this,Tr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(jl?1/0:5*60*1e3))}clearGcTimeout(){R(this,Tr)&&(clearTimeout(R(this,Tr)),H(this,Tr,void 0))}},Tr=new WeakMap,Hg),No,Pr,mt,kr,Ie,cs,Rr,Dt,sn,Kg,uR=(Kg=class extends jw{constructor(t){super();J(this,Dt);J(this,No);J(this,Pr);J(this,mt);J(this,kr);J(this,Ie);J(this,cs);J(this,Rr);H(this,Rr,!1),H(this,cs,t.defaultOptions),this.setOptions(t.options),this.observers=[],H(this,kr,t.client),H(this,mt,R(this,kr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,H(this,No,dR(this.options)),this.state=t.state??R(this,No),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=R(this,Ie))==null?void 0:t.promise}setOptions(t){this.options={...R(this,cs),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,mt).remove(this)}setData(t,n){const r=eR(this.state.data,t,this.options);return Le(this,Dt,sn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Le(this,Dt,sn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=R(this,Ie))==null?void 0:r.promise;return(o=R(this,Ie))==null||o.cancel(t),n?n.then(Nt).catch(Nt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,No))}isActive(){return this.observers.some(t=>Zk(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Vf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Jc(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!qk(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,Ie))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,Ie))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),R(this,mt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(R(this,Ie)&&(R(this,Rr)?R(this,Ie).cancel({revert:!0}):R(this,Ie).cancelRetry()),this.scheduleGc()),R(this,mt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Le(this,Dt,sn).call(this,{type:"invalidate"})}fetch(t,n){var u,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(R(this,Ie))return R(this,Ie).continueRetry(),R(this,Ie).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(H(this,Rr,!0),r.signal)})},i=()=>{const f=Mw(this.options,n),x=(()=>{const p={client:R(this,kr),queryKey:this.queryKey,meta:this.meta};return o(p),p})();return H(this,Rr,!1),this.options.persister?this.options.persister(f,x,this):f(x)},a=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:R(this,kr),state:this.state,fetchFn:i};return o(f),f})();(u=this.options.behavior)==null||u.onFetch(a,this),H(this,Pr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&Le(this,Dt,sn).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=f=>{var h,x,p,w;Ru(f)&&f.silent||Le(this,Dt,sn).call(this,{type:"error",error:f}),Ru(f)||((x=(h=R(this,mt).config).onError)==null||x.call(h,f,this),(w=(p=R(this,mt).config).onSettled)==null||w.call(p,this.state.data,f,this)),this.scheduleGc()};return H(this,Ie,Lw({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var h,x,p,w;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(m){l(m);return}(x=(h=R(this,mt).config).onSuccess)==null||x.call(h,f,this),(w=(p=R(this,mt).config).onSettled)==null||w.call(p,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,h)=>{Le(this,Dt,sn).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{Le(this,Dt,sn).call(this,{type:"pause"})},onContinue:()=>{Le(this,Dt,sn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),R(this,Ie).start()}},No=new WeakMap,Pr=new WeakMap,mt=new WeakMap,kr=new WeakMap,Ie=new WeakMap,cs=new WeakMap,Rr=new WeakMap,Dt=new WeakSet,sn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...cR(r.data,this.options),fetchMeta:t.meta??null};case"success":return H(this,Pr,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Ru(o)&&o.revert&&R(this,Pr)?{...R(this,Pr),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ue.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),R(this,mt).notify({query:this,type:"updated",action:t})})},Kg);function cR(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Dw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function dR(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Wt,Gg,fR=(Gg=class extends Ll{constructor(t={}){super();J(this,Wt);this.config=t,H(this,Wt,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Ff(o,n);let s=this.get(i);return s||(s=new uR({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){R(this,Wt).has(t.queryHash)||(R(this,Wt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=R(this,Wt).get(t.queryHash);n&&(t.destroy(),n===t&&R(this,Wt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ue.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return R(this,Wt).get(t)}getAll(){return[...R(this,Wt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>sm(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>sm(t,r)):n}notify(t){Ue.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ue.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ue.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Wt=new WeakMap,Gg),Ht,Be,Ar,Kt,Dn,Qg,hR=(Qg=class extends jw{constructor(t){super();J(this,Kt);J(this,Ht);J(this,Be);J(this,Ar);this.mutationId=t.mutationId,H(this,Be,t.mutationCache),H(this,Ht,[]),this.state=t.state||pR(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){R(this,Ht).includes(t)||(R(this,Ht).push(t),this.clearGcTimeout(),R(this,Be).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){H(this,Ht,R(this,Ht).filter(n=>n!==t)),this.scheduleGc(),R(this,Be).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){R(this,Ht).length||(this.state.status==="pending"?this.scheduleGc():R(this,Be).remove(this))}continue(){var t;return((t=R(this,Ar))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,a,l,u,c,d,f,h,x,p,w,m,g,y,E,C,b,T,P;const n=()=>{Le(this,Kt,Dn).call(this,{type:"continue"})};H(this,Ar,Lw({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,D)=>{Le(this,Kt,Dn).call(this,{type:"failed",failureCount:N,error:D})},onPause:()=>{Le(this,Kt,Dn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,Be).canRun(this)}));const r=this.state.status==="pending",o=!R(this,Ar).canStart();try{if(r)n();else{Le(this,Kt,Dn).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=R(this,Be).config).onMutate)==null?void 0:s.call(i,t,this));const D=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));D!==this.state.context&&Le(this,Kt,Dn).call(this,{type:"pending",context:D,variables:t,isPaused:o})}const N=await R(this,Ar).start();return await((c=(u=R(this,Be).config).onSuccess)==null?void 0:c.call(u,N,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,N,t,this.state.context)),await((x=(h=R(this,Be).config).onSettled)==null?void 0:x.call(h,N,null,this.state.variables,this.state.context,this)),await((w=(p=this.options).onSettled)==null?void 0:w.call(p,N,null,t,this.state.context)),Le(this,Kt,Dn).call(this,{type:"success",data:N}),N}catch(N){try{throw await((g=(m=R(this,Be).config).onError)==null?void 0:g.call(m,N,t,this.state.context,this)),await((E=(y=this.options).onError)==null?void 0:E.call(y,N,t,this.state.context)),await((b=(C=R(this,Be).config).onSettled)==null?void 0:b.call(C,void 0,N,this.state.variables,this.state.context,this)),await((P=(T=this.options).onSettled)==null?void 0:P.call(T,void 0,N,t,this.state.context)),N}finally{Le(this,Kt,Dn).call(this,{type:"error",error:N})}}finally{R(this,Be).runNext(this)}}},Ht=new WeakMap,Be=new WeakMap,Ar=new WeakMap,Kt=new WeakSet,Dn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ue.batch(()=>{R(this,Ht).forEach(r=>{r.onMutationUpdate(t)}),R(this,Be).notify({mutation:this,type:"updated",action:t})})},Qg);function pR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var un,Ot,ds,Yg,mR=(Yg=class extends Ll{constructor(t={}){super();J(this,un);J(this,Ot);J(this,ds);this.config=t,H(this,un,new Set),H(this,Ot,new Map),H(this,ds,0)}build(t,n,r){const o=new hR({mutationCache:this,mutationId:++Rs(this,ds)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){R(this,un).add(t);const n=Xs(t);if(typeof n=="string"){const r=R(this,Ot).get(n);r?r.push(t):R(this,Ot).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(R(this,un).delete(t)){const n=Xs(t);if(typeof n=="string"){const r=R(this,Ot).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&R(this,Ot).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Xs(t);if(typeof n=="string"){const r=R(this,Ot).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Xs(t);if(typeof n=="string"){const o=(r=R(this,Ot).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ue.batch(()=>{R(this,un).forEach(t=>{this.notify({type:"removed",mutation:t})}),R(this,un).clear(),R(this,Ot).clear()})}getAll(){return Array.from(R(this,un))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>am(n,r))}findAll(t={}){return this.getAll().filter(n=>am(t,n))}notify(t){Ue.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ue.batch(()=>Promise.all(t.map(n=>n.continue().catch(Nt))))}},un=new WeakMap,Ot=new WeakMap,ds=new WeakMap,Yg);function Xs(e){var t;return(t=e.options.scope)==null?void 0:t.id}function cm(e){return{onFetch:(t,n)=>{var c,d,f,h,x;const r=t.options,o=(f=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,i=((h=t.state.data)==null?void 0:h.pages)||[],s=((x=t.state.data)==null?void 0:x.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let p=!1;const w=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},m=Mw(t.options,t.fetchOptions),g=async(y,E,C)=>{if(p)return Promise.reject();if(E==null&&y.pages.length)return Promise.resolve(y);const T=(()=>{const V={client:t.client,queryKey:t.queryKey,pageParam:E,direction:C?"backward":"forward",meta:t.options.meta};return w(V),V})(),P=await m(T),{maxPages:N}=t.options,D=C?nR:tR;return{pages:D(y.pages,P,N),pageParams:D(y.pageParams,E,N)}};if(o&&i.length){const y=o==="backward",E=y?gR:dm,C={pages:i,pageParams:s},b=E(r,C);a=await g(C,b,y)}else{const y=e??i.length;do{const E=l===0?s[0]??r.initialPageParam:dm(r,a);if(l>0&&E==null)break;a=await g(a,E),l++}while(l<y)}return a};t.options.persister?t.fetchFn=()=>{var p,w;return(w=(p=t.options).persister)==null?void 0:w.call(p,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function dm(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function gR(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var me,Bn,$n,Do,Oo,Un,Lo,jo,Xg,yR=(Xg=class{constructor(e={}){J(this,me);J(this,Bn);J(this,$n);J(this,Do);J(this,Oo);J(this,Un);J(this,Lo);J(this,jo);H(this,me,e.queryCache||new fR),H(this,Bn,e.mutationCache||new mR),H(this,$n,e.defaultOptions||{}),H(this,Do,new Map),H(this,Oo,new Map),H(this,Un,0)}mount(){Rs(this,Un)._++,R(this,Un)===1&&(H(this,Lo,Nw.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,me).onFocus())})),H(this,jo,el.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,me).onOnline())})))}unmount(){var e,t;Rs(this,Un)._--,R(this,Un)===0&&((e=R(this,Lo))==null||e.call(this),H(this,Lo,void 0),(t=R(this,jo))==null||t.call(this),H(this,jo,void 0))}isFetching(e){return R(this,me).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return R(this,Bn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,me).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=R(this,me).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Jc(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return R(this,me).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=R(this,me).get(r.queryHash),i=o==null?void 0:o.state.data,s=Yk(t,i);if(s!==void 0)return R(this,me).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Ue.batch(()=>R(this,me).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,me).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=R(this,me);Ue.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=R(this,me);return Ue.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ue.batch(()=>R(this,me).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Nt).catch(Nt)}invalidateQueries(e,t={}){return Ue.batch(()=>(R(this,me).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ue.batch(()=>R(this,me).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Nt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Nt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=R(this,me).build(this,t);return n.isStaleByTime(Jc(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Nt).catch(Nt)}fetchInfiniteQuery(e){return e.behavior=cm(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Nt).catch(Nt)}ensureInfiniteQueryData(e){return e.behavior=cm(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return el.isOnline()?R(this,Bn).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,me)}getMutationCache(){return R(this,Bn)}getDefaultOptions(){return R(this,$n)}setDefaultOptions(e){H(this,$n,e)}setQueryDefaults(e,t){R(this,Do).set(ns(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...R(this,Do).values()],n={};return t.forEach(r=>{rs(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){R(this,Oo).set(ns(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...R(this,Oo).values()],n={};return t.forEach(r=>{rs(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...R(this,$n).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ff(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===Vf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...R(this,$n).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){R(this,me).clear(),R(this,Bn).clear()}},me=new WeakMap,Bn=new WeakMap,$n=new WeakMap,Do=new WeakMap,Oo=new WeakMap,Un=new WeakMap,Lo=new WeakMap,jo=new WeakMap,Xg),vR=v.createContext(void 0),wR=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),S.jsx(vR.Provider,{value:e,children:t}));/**
 * @remix-run/router v1.23.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function tl(){return tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tl.apply(this,arguments)}var Kn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Kn||(Kn={}));const fm="popstate";function xR(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:s,hash:a}=r.location;return td("",{pathname:i,search:s,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Iw(o)}return ER(t,n,null,e)}function nt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function _w(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function SR(){return Math.random().toString(36).substr(2,8)}function hm(e,t){return{usr:e.state,key:e.key,idx:t}}function td(e,t,n,r){return n===void 0&&(n=null),tl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?_l(t):t,{state:n,key:t&&t.key||r||SR()})}function Iw(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function _l(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ER(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=Kn.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(tl({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){a=Kn.Pop;let w=c(),m=w==null?null:w-u;u=w,l&&l({action:a,location:p.location,delta:m})}function f(w,m){a=Kn.Push;let g=td(p.location,w,m);u=c()+1;let y=hm(g,u),E=p.createHref(g);try{s.pushState(y,"",E)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(E)}i&&l&&l({action:a,location:p.location,delta:1})}function h(w,m){a=Kn.Replace;let g=td(p.location,w,m);u=c();let y=hm(g,u),E=p.createHref(g);s.replaceState(y,"",E),i&&l&&l({action:a,location:p.location,delta:0})}function x(w){let m=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof w=="string"?w:Iw(w);return g=g.replace(/ $/,"%20"),nt(m,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,m)}let p={get action(){return a},get location(){return e(o,s)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(fm,d),l=w,()=>{o.removeEventListener(fm,d),l=null}},createHref(w){return t(o,w)},createURL:x,encodeLocation(w){let m=x(w);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:f,replace:h,go(w){return s.go(w)}};return p}var pm;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(pm||(pm={}));function CR(e,t,n){return n===void 0&&(n="/"),bR(e,t,n,!1)}function bR(e,t,n,r){let o=typeof t=="string"?_l(t):t,i=zw(o.pathname||"/",n);if(i==null)return null;let s=Fw(e);TR(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let u=_R(i);a=LR(s[l],u,r)}return a}function Fw(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,s,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(nt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=To([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(nt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Fw(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:DR(u,i.index),routesMeta:c})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of Vw(i.path))o(i,s,l)}),t}function Vw(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=Vw(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function TR(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:OR(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const PR=/^:[\w-]+$/,kR=3,RR=2,AR=1,MR=10,NR=-2,mm=e=>e==="*";function DR(e,t){let n=e.split("/"),r=n.length;return n.some(mm)&&(r+=NR),t&&(r+=RR),n.filter(o=>!mm(o)).reduce((o,i)=>o+(PR.test(i)?kR:i===""?AR:MR),r)}function OR(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function LR(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=i==="/"?t:t.slice(i.length)||"/",d=gm({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),f=l.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=gm({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;Object.assign(o,d.params),s.push({params:o,pathname:To([i,d.pathname]),pathnameBase:IR(To([i,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(i=To([i,d.pathnameBase]))}return s}function gm(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=jR(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((u,c,d)=>{let{paramName:f,isOptional:h}=c;if(f==="*"){let p=a[d]||"";s=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}const x=a[d];return h&&!x?u[f]=void 0:u[f]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function jR(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),_w(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 r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function _R(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return _w(!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 zw(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const To=e=>e.join("/").replace(/\/\/+/g,"/"),IR=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function FR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Bw=["post","put","patch","delete"];new Set(Bw);const VR=["get",...Bw];new Set(VR);/**
 * React Router v6.30.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function nl(){return nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nl.apply(this,arguments)}const zR=v.createContext(null),BR=v.createContext(null),$w=v.createContext(null),Il=v.createContext(null),Fl=v.createContext({outlet:null,matches:[],isDataRoute:!1}),Uw=v.createContext(null);function zf(){return v.useContext(Il)!=null}function Ww(){return zf()||nt(!1),v.useContext(Il).location}function $R(e,t){return UR(e,t)}function UR(e,t,n,r){zf()||nt(!1);let{navigator:o}=v.useContext($w),{matches:i}=v.useContext(Fl),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=Ww(),c;if(t){var d;let w=typeof t=="string"?_l(t):t;l==="/"||(d=w.pathname)!=null&&d.startsWith(l)||nt(!1),c=w}else c=u;let f=c.pathname||"/",h=f;if(l!=="/"){let w=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(w.length).join("/")}let x=CR(e,{pathname:h}),p=QR(x&&x.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:To([l,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:To([l,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&p?v.createElement(Il.Provider,{value:{location:nl({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Kn.Pop}},p):p}function WR(){let e=ZR(),t=FR(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,null)}const HR=v.createElement(WR,null);class KR extends v.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,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(Fl.Provider,{value:this.props.routeContext},v.createElement(Uw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function GR(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(zR);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(Fl.Provider,{value:t},r)}function QR(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let c=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||nt(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<s.length;c++){let d=s[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:h}=n,x=d.route.loader&&f[d.route.id]===void 0&&(!h||h[d.route.id]===void 0);if(d.route.lazy||x){l=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,f)=>{let h,x=!1,p=null,w=null;n&&(h=a&&d.route.id?a[d.route.id]:void 0,p=d.route.errorElement||HR,l&&(u<0&&f===0?(x=!0,w=null):u===f&&(x=!0,w=d.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,f+1)),g=()=>{let y;return h?y=p:x?y=w:d.route.Component?y=v.createElement(d.route.Component,null):d.route.element?y=d.route.element:y=c,v.createElement(GR,{match:d,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:y})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?v.createElement(KR,{location:n.location,revalidation:n.revalidation,component:p,error:h,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var nd=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}(nd||{});function YR(e){let t=v.useContext(BR);return t||nt(!1),t}function XR(e){let t=v.useContext(Fl);return t||nt(!1),t}function qR(e){let t=XR(),n=t.matches[t.matches.length-1];return n.route.id||nt(!1),n.route.id}function ZR(){var e;let t=v.useContext(Uw),n=YR(nd.UseRouteError),r=qR(nd.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function JR(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function rd(e){nt(!1)}function eA(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Kn.Pop,navigator:i,static:s=!1,future:a}=e;zf()&&nt(!1);let l=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:l,navigator:i,static:s,future:nl({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=_l(r));let{pathname:c="/",search:d="",hash:f="",state:h=null,key:x="default"}=r,p=v.useMemo(()=>{let w=zw(c,l);return w==null?null:{location:{pathname:w,search:d,hash:f,state:h,key:x},navigationType:o}},[l,c,d,f,h,x,o]);return p==null?null:v.createElement($w.Provider,{value:u},v.createElement(Il.Provider,{children:n,value:p}))}function tA(e){let{children:t,location:n}=e;return $R(od(t),n)}new Promise(()=>{});function od(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,o)=>{if(!v.isValidElement(r))return;let i=[...t,o];if(r.type===v.Fragment){n.push.apply(n,od(r.props.children,i));return}r.type!==rd&&nt(!1),!r.props.index||!r.props.children||nt(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=od(r.props.children,i)),n.push(s)}),n}/**
 * React Router DOM v6.30.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */const nA="6";try{window.__reactRouterVersion=nA}catch{}const rA="startTransition",ym=Dd[rA];function oA(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=xR({window:o,v5Compat:!0}));let s=i.current,[a,l]=v.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=v.useCallback(d=>{u&&ym?ym(()=>l(d)):l(d)},[l,u]);return v.useLayoutEffect(()=>s.listen(c),[s,c]),v.useEffect(()=>JR(r),[r]),v.createElement(eA,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}var vm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(vm||(vm={}));var wm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wm||(wm={}));const Hw=v.createContext({});function iA(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const Bf=typeof window<"u",sA=Bf?v.useLayoutEffect:v.useEffect,$f=v.createContext(null);function Uf(e,t){e.indexOf(t)===-1&&e.push(t)}function Wf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const xn=(e,t,n)=>n>t?t:n<e?e:n;let rl=()=>{};const Sn={},Kw=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Gw(e){return typeof e=="object"&&e!==null}const Qw=e=>/^0[^.\s]+$/u.test(e);function Hf(e){let t;return()=>(t===void 0&&(t=e()),t)}const St=e=>e,aA=(e,t)=>n=>t(e(n)),Ss=(...e)=>e.reduce(aA),os=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Kf{constructor(){this.subscriptions=[]}add(t){return Uf(this.subscriptions,t),()=>Wf(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Jt=e=>e*1e3,wt=e=>e/1e3;function Yw(e,t){return t?e*(1e3/t):0}const Xw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,lA=1e-7,uA=12;function cA(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Xw(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>lA&&++a<uA);return s}function Es(e,t,n,r){if(e===t&&n===r)return St;const o=i=>cA(i,0,1,e,n);return i=>i===0||i===1?i:Xw(o(i),t,r)}const qw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Zw=e=>t=>1-e(1-t),Jw=Es(.33,1.53,.69,.99),Gf=Zw(Jw),ex=qw(Gf),tx=e=>(e*=2)<1?.5*Gf(e):.5*(2-Math.pow(2,-10*(e-1))),Qf=e=>1-Math.sin(Math.acos(e)),nx=Zw(Qf),rx=qw(Qf),dA=Es(.42,0,1,1),fA=Es(0,0,.58,1),ox=Es(.42,0,.58,1),hA=e=>Array.isArray(e)&&typeof e[0]!="number",ix=e=>Array.isArray(e)&&typeof e[0]=="number",xm={linear:St,easeIn:dA,easeInOut:ox,easeOut:fA,circIn:Qf,circInOut:rx,circOut:nx,backIn:Gf,backInOut:ex,backOut:Jw,anticipate:tx},pA=e=>typeof e=="string",Sm=e=>{if(ix(e)){rl(e.length===4);const[t,n,r,o]=e;return Es(t,n,r,o)}else if(pA(e))return rl(xm[e]!==void 0),xm[e];return e},qs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Em={value:null,addProjectionMetrics:null};function mA(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(d){s.has(d)&&(c.schedule(d),e()),l++,d(a)}const c={schedule:(d,f=!1,h=!1)=>{const p=h&&o?n:r;return f&&s.add(d),p.has(d)||p.add(d),d},cancel:d=>{r.delete(d),s.delete(d)},process:d=>{if(a=d,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(u),t&&Em.value&&Em.value.frameloop[t].push(l),l=0,n.clear(),o=!1,i&&(i=!1,c.process(d))}};return c}const gA=40;function sx(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=qs.reduce((y,E)=>(y[E]=mA(i,t?E:void 0),y),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:h,postRender:x}=s,p=()=>{const y=Sn.useManualTiming?o.timestamp:performance.now();n=!1,Sn.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(y-o.timestamp,gA),1)),o.timestamp=y,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),h.process(o),x.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(p))},w=()=>{n=!0,r=!0,o.isProcessing||e(p)};return{schedule:qs.reduce((y,E)=>{const C=s[E];return y[E]=(b,T=!1,P=!1)=>(n||w(),C.schedule(b,T,P)),y},{}),cancel:y=>{for(let E=0;E<qs.length;E++)s[qs[E]].cancel(y)},state:o,steps:s}}const{schedule:ce,cancel:ir,state:Me,steps:Au}=sx(typeof requestAnimationFrame<"u"?requestAnimationFrame:St,!0);let wa;function yA(){wa=void 0}const Ze={now:()=>(wa===void 0&&Ze.set(Me.isProcessing||Sn.useManualTiming?Me.timestamp:performance.now()),wa),set:e=>{wa=e,queueMicrotask(yA)}},ax=e=>t=>typeof t=="string"&&t.startsWith(e),Yf=ax("--"),vA=ax("var(--"),Xf=e=>vA(e)?wA.test(e.split("/*")[0].trim()):!1,wA=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ei={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},is={...ei,transform:e=>xn(0,1,e)},Zs={...ei,default:1},Ni=e=>Math.round(e*1e5)/1e5,qf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function xA(e){return e==null}const SA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Zf=(e,t)=>n=>!!(typeof n=="string"&&SA.test(n)&&n.startsWith(e)||t&&!xA(n)&&Object.prototype.hasOwnProperty.call(n,t)),lx=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(qf);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},EA=e=>xn(0,255,e),Mu={...ei,transform:e=>Math.round(EA(e))},Er={test:Zf("rgb","red"),parse:lx("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Mu.transform(e)+", "+Mu.transform(t)+", "+Mu.transform(n)+", "+Ni(is.transform(r))+")"};function CA(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const id={test:Zf("#"),parse:CA,transform:Er.transform},Cs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),On=Cs("deg"),en=Cs("%"),B=Cs("px"),bA=Cs("vh"),TA=Cs("vw"),Cm={...en,parse:e=>en.parse(e)/100,transform:e=>en.transform(e*100)},fo={test:Zf("hsl","hue"),parse:lx("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+en.transform(Ni(t))+", "+en.transform(Ni(n))+", "+Ni(is.transform(r))+")"},Se={test:e=>Er.test(e)||id.test(e)||fo.test(e),parse:e=>Er.test(e)?Er.parse(e):fo.test(e)?fo.parse(e):id.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Er.transform(e):fo.transform(e),getAnimatableNone:e=>{const t=Se.parse(e);return t.alpha=0,Se.transform(t)}},PA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function kA(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(qf))==null?void 0:t.length)||0)+(((n=e.match(PA))==null?void 0:n.length)||0)>0}const ux="number",cx="color",RA="var",AA="var(",bm="${}",MA=/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 ss(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(MA,l=>(Se.test(l)?(r.color.push(i),o.push(cx),n.push(Se.parse(l))):l.startsWith(AA)?(r.var.push(i),o.push(RA),n.push(l)):(r.number.push(i),o.push(ux),n.push(parseFloat(l))),++i,bm)).split(bm);return{values:n,split:a,indexes:r,types:o}}function dx(e){return ss(e).values}function fx(e){const{split:t,types:n}=ss(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){const a=n[s];a===ux?i+=Ni(o[s]):a===cx?i+=Se.transform(o[s]):i+=o[s]}return i}}const NA=e=>typeof e=="number"?0:Se.test(e)?Se.getAnimatableNone(e):e;function DA(e){const t=dx(e);return fx(e)(t.map(NA))}const sr={test:kA,parse:dx,createTransformer:fx,getAnimatableNone:DA};function Nu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function OA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Nu(l,a,e+1/3),i=Nu(l,a,e),s=Nu(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function ol(e,t){return n=>n>0?t:e}const fe=(e,t,n)=>e+(t-e)*n,Du=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},LA=[id,Er,fo],jA=e=>LA.find(t=>t.test(e));function Tm(e){const t=jA(e);if(!t)return!1;let n=t.parse(e);return t===fo&&(n=OA(n)),n}const Pm=(e,t)=>{const n=Tm(e),r=Tm(t);if(!n||!r)return ol(e,t);const o={...n};return i=>(o.red=Du(n.red,r.red,i),o.green=Du(n.green,r.green,i),o.blue=Du(n.blue,r.blue,i),o.alpha=fe(n.alpha,r.alpha,i),Er.transform(o))},sd=new Set(["none","hidden"]);function _A(e,t){return sd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function IA(e,t){return n=>fe(e,t,n)}function Jf(e){return typeof e=="number"?IA:typeof e=="string"?Xf(e)?ol:Se.test(e)?Pm:zA:Array.isArray(e)?hx:typeof e=="object"?Se.test(e)?Pm:FA:ol}function hx(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Jf(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function FA(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Jf(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function VA(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][r[i]],a=e.values[s]??0;n[o]=a,r[i]++}return n}const zA=(e,t)=>{const n=sr.createTransformer(t),r=ss(e),o=ss(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?sd.has(e)&&!o.values.length||sd.has(t)&&!r.values.length?_A(e,t):Ss(hx(VA(r,o),o.values),n):ol(e,t)};function px(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?fe(e,t,n):Jf(e)(e,t)}const BA=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ce.update(t,n),stop:()=>ir(t),now:()=>Me.isProcessing?Me.timestamp:Ze.now()}},mx=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},il=2e4;function eh(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<il;)t+=n,r=e.next(t);return t>=il?1/0:t}function $A(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(eh(r),il);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:wt(o)}}const UA=5;function gx(e,t,n){const r=Math.max(t-UA,0);return Yw(n-e(r),t-r)}const ge={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},Ou=.001;function WA({duration:e=ge.duration,bounce:t=ge.bounce,velocity:n=ge.velocity,mass:r=ge.mass}){let o,i,s=1-t;s=xn(ge.minDamping,ge.maxDamping,s),e=xn(ge.minDuration,ge.maxDuration,wt(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,h=ad(u,s),x=Math.exp(-d);return Ou-f/h*x},i=u=>{const d=u*s*e,f=d*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,x=Math.exp(-d),p=ad(Math.pow(u,2),s);return(-o(u)+Ou>0?-1:1)*((f-h)*x)/p}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Ou+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=KA(o,i,a);if(e=Jt(e),isNaN(l))return{stiffness:ge.stiffness,damping:ge.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const HA=12;function KA(e,t,n){let r=n;for(let o=1;o<HA;o++)r=r-e(r)/t(r);return r}function ad(e,t){return e*Math.sqrt(1-t*t)}const GA=["duration","bounce"],QA=["stiffness","damping","mass"];function km(e,t){return t.some(n=>e[n]!==void 0)}function YA(e){let t={velocity:ge.velocity,stiffness:ge.stiffness,damping:ge.damping,mass:ge.mass,isResolvedFromDuration:!1,...e};if(!km(e,QA)&&km(e,GA))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*xn(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:ge.mass,stiffness:o,damping:i}}else{const n=WA(e);t={...t,...n,mass:ge.mass},t.isResolvedFromDuration=!0}return t}function sl(e=ge.visualDuration,t=ge.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=YA({...n,velocity:-wt(n.velocity||0)}),x=f||0,p=u/(2*Math.sqrt(l*c)),w=s-i,m=wt(Math.sqrt(l/c)),g=Math.abs(w)<5;r||(r=g?ge.restSpeed.granular:ge.restSpeed.default),o||(o=g?ge.restDelta.granular:ge.restDelta.default);let y;if(p<1){const C=ad(m,p);y=b=>{const T=Math.exp(-p*m*b);return s-T*((x+p*m*w)/C*Math.sin(C*b)+w*Math.cos(C*b))}}else if(p===1)y=C=>s-Math.exp(-m*C)*(w+(x+m*w)*C);else{const C=m*Math.sqrt(p*p-1);y=b=>{const T=Math.exp(-p*m*b),P=Math.min(C*b,300);return s-T*((x+p*m*w)*Math.sinh(P)+C*w*Math.cosh(P))/C}}const E={calculatedDuration:h&&d||null,next:C=>{const b=y(C);if(h)a.done=C>=d;else{let T=C===0?x:0;p<1&&(T=C===0?Jt(x):gx(y,C,b));const P=Math.abs(T)<=r,N=Math.abs(s-b)<=o;a.done=P&&N}return a.value=a.done?s:b,a},toString:()=>{const C=Math.min(eh(E),il),b=mx(T=>E.next(C*T).value,C,30);return C+"ms "+b},toTransition:()=>{}};return E}sl.applyToOptions=e=>{const t=$A(e,100,sl);return e.ease=t.ease,e.duration=Jt(t.duration),e.type="keyframes",e};function ld({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=P=>a!==void 0&&P<a||l!==void 0&&P>l,x=P=>a===void 0?l:l===void 0||Math.abs(a-P)<Math.abs(l-P)?a:l;let p=n*t;const w=d+p,m=s===void 0?w:s(w);m!==w&&(p=m-d);const g=P=>-p*Math.exp(-P/r),y=P=>m+g(P),E=P=>{const N=g(P),D=y(P);f.done=Math.abs(N)<=u,f.value=f.done?m:D};let C,b;const T=P=>{h(f.value)&&(C=P,b=sl({keyframes:[f.value,x(f.value)],velocity:gx(y,P,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:P=>{let N=!1;return!b&&C===void 0&&(N=!0,E(P),T(P)),C!==void 0&&P>=C?b.next(P-C):(!N&&E(P),f)}}}function XA(e,t,n){const r=[],o=n||Sn.mix||px,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||St:t;a=Ss(l,a)}r.push(a)}return r}function qA(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(rl(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=XA(t,r,o),l=a.length,u=c=>{if(s&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=os(e[d],e[d+1],c);return a[d](f)};return n?c=>u(xn(e[0],e[i-1],c)):u}function ZA(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=os(0,t,r);e.push(fe(n,1,o))}}function JA(e){const t=[0];return ZA(t,e.length-1),t}function e2(e,t){return e.map(n=>n*t)}function t2(e,t){return e.map(()=>t||ox).splice(0,e.length-1)}function Di({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=hA(r)?r.map(Sm):Sm(r),i={done:!1,value:t[0]},s=e2(n&&n.length===t.length?n:JA(t),e),a=qA(s,t,{ease:Array.isArray(o)?o:t2(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const n2=e=>e!==null;function th(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(n2),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const r2={decay:ld,inertia:ld,tween:Di,keyframes:Di,spring:sl};function yx(e){typeof e.type=="string"&&(e.type=r2[e.type])}class nh{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const o2=e=>e/100;class rh extends nh{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,o;const{motionValue:n}=this.options;n&&n.updatedAt!==Ze.now()&&this.tick(Ze.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(r=this.options).onStop)==null||o.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;yx(t);const{type:n=Di,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=n||Di;l!==Di&&typeof a[0]!="number"&&(this.mixKeyframes=Ss(o2,px(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=eh(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:h,type:x,onUpdate:p,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-u*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?m<0:m>o;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let y=this.currentTime,E=r;if(d){const P=Math.min(this.currentTime,o)/a;let N=Math.floor(P),D=P%1;!D&&P>=1&&(D=1),D===1&&N--,N=Math.min(N,d+1),!!(N%2)&&(f==="reverse"?(D=1-D,h&&(D-=h/a)):f==="mirror"&&(E=s)),y=xn(0,1,D)*a}const C=g?{done:!1,value:c[0]}:E.next(y);i&&(C.value=i(C.value));let{done:b}=C;!g&&l!==null&&(b=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&b);return T&&x!==ld&&(C.value=th(c,this.options,w,this.speed)),p&&p(C.value),T&&this.finish(),C}then(t,n){return this.finished.then(t,n)}get duration(){return wt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+wt(t)}get time(){return wt(this.currentTime)}set time(t){var n;t=Jt(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),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ze.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=wt(this.currentTime))}play(){var o,i;if(this.isStopped)return;const{driver:t=BA,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(i=(o=this.options).onPlay)==null||i.call(o);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),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(Ze.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}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){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function i2(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Cr=e=>e*180/Math.PI,ud=e=>{const t=Cr(Math.atan2(e[1],e[0]));return cd(t)},s2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ud,rotateZ:ud,skewX:e=>Cr(Math.atan(e[1])),skewY:e=>Cr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},cd=e=>(e=e%360,e<0&&(e+=360),e),Rm=ud,Am=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Mm=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),a2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Am,scaleY:Mm,scale:e=>(Am(e)+Mm(e))/2,rotateX:e=>cd(Cr(Math.atan2(e[6],e[5]))),rotateY:e=>cd(Cr(Math.atan2(-e[2],e[0]))),rotateZ:Rm,rotate:Rm,skewX:e=>Cr(Math.atan(e[4])),skewY:e=>Cr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function dd(e){return e.includes("scale")?1:0}function fd(e,t){if(!e||e==="none")return dd(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=a2,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=s2,o=a}if(!o)return dd(t);const i=r[t],s=o[1].split(",").map(u2);return typeof i=="function"?i(s):s[i]}const l2=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return fd(n,t)};function u2(e){return parseFloat(e.trim())}const ti=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ni=new Set(ti),Nm=e=>e===ei||e===B,c2=new Set(["x","y","z"]),d2=ti.filter(e=>!c2.has(e));function f2(e){const t=[];return d2.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Dr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>fd(t,"x"),y:(e,{transform:t})=>fd(t,"y")};Dr.translateX=Dr.x;Dr.translateY=Dr.y;const Or=new Set;let hd=!1,pd=!1,md=!1;function vx(){if(pd){const e=Array.from(Or).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=f2(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))==null||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}pd=!1,hd=!1,Or.forEach(e=>e.complete(md)),Or.clear()}function wx(){Or.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(pd=!0)})}function h2(){md=!0,wx(),vx(),md=!1}class oh{constructor(t,n,r,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Or.add(this),hd||(hd=!0,ce.read(wx),ce.resolveKeyframes(vx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o==null?void 0:o.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}i2(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Or.delete(this)}cancel(){this.state==="scheduled"&&(Or.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const p2=e=>e.startsWith("--");function m2(e,t,n){p2(t)?e.style.setProperty(t,n):e.style[t]=n}const g2=Hf(()=>window.ScrollTimeline!==void 0),y2={};function v2(e,t){const n=Hf(e);return()=>y2[t]??n()}const xx=v2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),xi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Dm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xi([0,.65,.55,1]),circOut:xi([.55,0,1,.45]),backIn:xi([.31,.01,.66,-.59]),backOut:xi([.33,1.53,.69,.99])};function Sx(e,t){if(e)return typeof e=="function"?xx()?mx(e,t):"ease-out":ix(e)?xi(e):Array.isArray(e)?e.map(n=>Sx(n,t)||Dm.easeOut):Dm[e]}function w2(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=Sx(a,o);Array.isArray(d)&&(c.easing=d);const f={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}function Ex(e){return typeof e=="function"&&"applyToOptions"in e}function x2({type:e,...t}){return Ex(e)&&xx()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class S2 extends nh{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,rl(typeof t.type!="string");const u=x2(t);this.animation=w2(n,r,o,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const c=th(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):m2(n,r,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}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(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return wt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+wt(t)}get time(){return wt(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Jt(t)}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 Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&g2()?(this.animation.timeline=t,St):n(this)}}const Cx={anticipate:tx,backInOut:ex,circInOut:rx};function E2(e){return e in Cx}function C2(e){typeof e.ease=="string"&&E2(e.ease)&&(e.ease=Cx[e.ease])}const Om=10;class b2 extends S2{constructor(t){C2(t),yx(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new rh({...s,autoplay:!1}),l=Jt(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Om).value,a.sample(l).value,Om),a.stop()}}const Lm=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(sr.test(e)||e==="0")&&!e.startsWith("url("));function T2(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function P2(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=Lm(o,t),a=Lm(i,t);return!s||!a?!1:T2(e)||(n==="spring"||Ex(n))&&r}function gd(e){e.duration=0,e.type="keyframes"}const k2=new Set(["opacity","clipPath","filter","transform"]),R2=Hf(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function A2(e){var c;const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(((c=t==null?void 0:t.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return R2()&&n&&k2.has(n)&&(n!=="transform"||!u)&&!l&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const M2=40;class N2 extends nh{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:l,motionValue:u,element:c,...d}){var x;super(),this.stop=()=>{var p,w;this._animation&&(this._animation.stop(),(p=this.stopTimeline)==null||p.call(this)),(w=this.keyframeResolver)==null||w.cancel()},this.createdAt=Ze.now();const f={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:l,motionValue:u,element:c,...d},h=(c==null?void 0:c.KeyframeResolver)||oh;this.keyframeResolver=new h(a,(p,w,m)=>this.onKeyframesResolved(p,w,f,!m),l,u,c),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=Ze.now(),P2(t,i,s,a)||((Sn.instantAnimations||!l)&&(c==null||c(th(t,r,n))),t[0]=t[t.length-1],gd(r),r.repeat=0);const f={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>M2?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!u&&A2(f)?new b2({...f,element:f.motionValue.owner.current}):new rh(f);h.finished.then(()=>this.notifyFinished()).catch(St),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),h2()),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(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const D2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function O2(e){const t=D2.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function bx(e,t,n=1){const[r,o]=O2(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Kw(s)?parseFloat(s):s}return Xf(o)?bx(o,t,n+1):o}function ih(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Tx=new Set(["width","height","top","left","right","bottom",...ti]),L2={test:e=>e==="auto",parse:e=>e},Px=e=>t=>t.test(e),kx=[ei,B,en,On,TA,bA,L2],jm=e=>kx.find(Px(e));function j2(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Qw(e):!0}const _2=new Set(["brightness","contrast","saturate","opacity"]);function I2(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(qf)||[];if(!r)return e;const o=n.replace(r,"");let i=_2.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const F2=/\b([a-z-]*)\(.*?\)/gu,yd={...sr,getAnimatableNone:e=>{const t=e.match(F2);return t?t.map(I2).join(" "):e}},_m={...ei,transform:Math.round},V2={rotate:On,rotateX:On,rotateY:On,rotateZ:On,scale:Zs,scaleX:Zs,scaleY:Zs,scaleZ:Zs,skew:On,skewX:On,skewY:On,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:is,originX:Cm,originY:Cm,originZ:B},sh={borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,radius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,top:B,right:B,bottom:B,left:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,backgroundPositionX:B,backgroundPositionY:B,...V2,zIndex:_m,fillOpacity:is,strokeOpacity:is,numOctaves:_m},z2={...sh,color:Se,backgroundColor:Se,outlineColor:Se,fill:Se,stroke:Se,borderColor:Se,borderTopColor:Se,borderRightColor:Se,borderBottomColor:Se,borderLeftColor:Se,filter:yd,WebkitFilter:yd},Rx=e=>z2[e];function Ax(e,t){let n=Rx(e);return n!==yd&&(n=sr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const B2=new Set(["auto","none","0"]);function $2(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!B2.has(i)&&ss(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=Ax(n,o)}class U2 extends oh{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),Xf(u))){const c=bx(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Tx.has(r)||t.length!==2)return;const[o,i]=t,s=jm(o),a=jm(i);if(s!==a)if(Nm(s)&&Nm(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else Dr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||j2(t[o]))&&r.push(o);r.length&&$2(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Dr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=Dr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function W2(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const o=document.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const Mx=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function H2(e){return Gw(e)&&"offsetHeight"in e}const Im=30,K2=e=>!isNaN(parseFloat(e));class G2{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const o=Ze.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ze.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=K2(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Kf);const r=this.events[t].add(n);return t==="change"?()=>{r(),ce.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.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=Ze.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Im)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Im);return Yw(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ho(e,t){return new G2(e,t)}const{schedule:ah,cancel:aL}=sx(queueMicrotask,!1),At={x:!1,y:!1};function Nx(){return At.x||At.y}function Q2(e){return e==="x"||e==="y"?At[e]?null:(At[e]=!0,()=>{At[e]=!1}):At.x||At.y?null:(At.x=At.y=!0,()=>{At.x=At.y=!1})}function Dx(e,t){const n=W2(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Fm(e){return!(e.pointerType==="touch"||Nx())}function Y2(e,t,n={}){const[r,o,i]=Dx(e,n),s=a=>{if(!Fm(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const c=d=>{Fm(d)&&(u(d),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const Ox=(e,t)=>t?e===t?!0:Ox(e,t.parentElement):!1,lh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,X2=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function q2(e){return X2.has(e.tagName)||e.tabIndex!==-1}const xa=new WeakSet;function Vm(e){return t=>{t.key==="Enter"&&e(t)}}function Lu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Z2=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Vm(()=>{if(xa.has(n))return;Lu(n,"down");const o=Vm(()=>{Lu(n,"up")}),i=()=>Lu(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function zm(e){return lh(e)&&!Nx()}function J2(e,t,n={}){const[r,o,i]=Dx(e,n),s=a=>{const l=a.currentTarget;if(!zm(a))return;xa.add(l);const u=t(l,a),c=(h,x)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),xa.has(l)&&xa.delete(l),zm(h)&&typeof u=="function"&&u(h,{success:x})},d=h=>{c(h,l===window||l===document||n.useGlobalTarget||Ox(l,h.target))},f=h=>{c(h,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),H2(a)&&(a.addEventListener("focus",u=>Z2(u,o)),!q2(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Lx(e){return Gw(e)&&"ownerSVGElement"in e}function eM(e){return Lx(e)&&e.tagName==="svg"}const Ve=e=>!!(e&&e.getVelocity),tM=[...kx,Se,sr],nM=e=>tM.find(Px(e)),jx=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function rM(e=!0){const t=v.useContext($f);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=v.useId();v.useEffect(()=>{if(e)return o(i)},[e]);const s=v.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const _x=v.createContext({strict:!1}),Bm={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"]},Ko={};for(const e in Bm)Ko[e]={isEnabled:t=>Bm[e].some(n=>!!t[n])};function oM(e){for(const t in e)Ko[t]={...Ko[t],...e[t]}}const iM=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function al(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||iM.has(e)}let Ix=e=>!al(e);function sM(e){typeof e=="function"&&(Ix=t=>t.startsWith("on")?!al(t):e(t))}try{sM(require("@emotion/is-prop-valid").default)}catch{}function aM(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Ix(o)||n===!0&&al(o)||!t&&!al(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const Vl=v.createContext({});function zl(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function as(e){return typeof e=="string"||Array.isArray(e)}const uh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ch=["initial",...uh];function Bl(e){return zl(e.animate)||ch.some(t=>as(e[t]))}function Fx(e){return!!(Bl(e)||e.variants)}function lM(e,t){if(Bl(e)){const{initial:n,animate:r}=e;return{initial:n===!1||as(n)?n:void 0,animate:as(r)?r:void 0}}return e.inherit!==!1?t:{}}function uM(e){const{initial:t,animate:n}=lM(e,v.useContext(Vl));return v.useMemo(()=>({initial:t,animate:n}),[$m(t),$m(n)])}function $m(e){return Array.isArray(e)?e.join(" "):e}const ls={};function cM(e){for(const t in e)ls[t]=e[t],Yf(t)&&(ls[t].isCSSVariable=!0)}function Vx(e,{layout:t,layoutId:n}){return ni.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ls[e]||e==="opacity")}const dM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fM=ti.length;function hM(e,t,n){let r="",o=!0;for(let i=0;i<fM;i++){const s=ti[i],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=Mx(a,sh[s]);if(!l){o=!1;const c=dM[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function dh(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const u=t[l];if(ni.has(l)){s=!0;continue}else if(Yf(l)){o[l]=u;continue}else{const c=Mx(u,sh[l]);l.startsWith("origin")?(a=!0,i[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=hM(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=i;r.transformOrigin=`${l} ${u} ${c}`}}const fh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function zx(e,t,n){for(const r in t)!Ve(t[r])&&!Vx(r,n)&&(e[r]=t[r])}function pM({transformTemplate:e},t){return v.useMemo(()=>{const n=fh();return dh(n,t,e),Object.assign({},n.vars,n.style)},[t])}function mM(e,t){const n=e.style||{},r={};return zx(r,n,e),Object.assign(r,pM(e,t)),r}function gM(e,t){const n={},r=mM(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const yM={offset:"stroke-dashoffset",array:"stroke-dasharray"},vM={offset:"strokeDashoffset",array:"strokeDasharray"};function wM(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?yM:vM;e[i.offset]=B.transform(-r);const s=B.transform(t),a=B.transform(n);e[i.array]=`${s} ${a}`}function Bx(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,u,c){if(dh(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&wM(d,o,i,s,!1)}const $x=()=>({...fh(),attrs:{}}),Ux=e=>typeof e=="string"&&e.toLowerCase()==="svg";function xM(e,t,n,r){const o=v.useMemo(()=>{const i=$x();return Bx(i,t,Ux(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};zx(i,e.style,e),o.style={...i,...o.style}}return o}const SM=["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 hh(e){return typeof e!="string"||e.includes("-")?!1:!!(SM.indexOf(e)>-1||/[A-Z]/u.test(e))}function EM(e,t,n,{latestValues:r},o,i=!1){const a=(hh(e)?xM:gM)(t,r,o,e),l=aM(t,typeof e=="string",i),u=e!==v.Fragment?{...l,...a,ref:n}:{},{children:c}=t,d=v.useMemo(()=>Ve(c)?c.get():c,[c]);return v.createElement(e,{...u,children:d})}function Um(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function ph(e,t,n,r){if(typeof t=="function"){const[o,i]=Um(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=Um(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Sa(e){return Ve(e)?e.get():e}function CM({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:bM(n,r,o,e),renderState:t()}}function bM(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Sa(i[f]);let{initial:s,animate:a}=e;const l=Bl(e),u=Fx(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;if(d&&typeof d!="boolean"&&!zl(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const x=ph(e,f[h]);if(x){const{transitionEnd:p,transition:w,...m}=x;for(const g in m){let y=m[g];if(Array.isArray(y)){const E=c?y.length-1:0;y=y[E]}y!==null&&(o[g]=y)}for(const g in p)o[g]=p[g]}}}return o}const Wx=e=>(t,n)=>{const r=v.useContext(Vl),o=v.useContext($f),i=()=>CM(e,t,r,o);return n?i():iA(i)};function mh(e,t,n){var i;const{style:r}=e,o={};for(const s in r)(Ve(r[s])||t.style&&Ve(t.style[s])||Vx(s,e)||((i=n==null?void 0:n.getValue(s))==null?void 0:i.liveStyle)!==void 0)&&(o[s]=r[s]);return o}const TM=Wx({scrapeMotionValuesFromProps:mh,createRenderState:fh});function Hx(e,t,n){const r=mh(e,t,n);for(const o in e)if(Ve(e[o])||Ve(t[o])){const i=ti.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const PM=Wx({scrapeMotionValuesFromProps:Hx,createRenderState:$x}),kM=Symbol.for("motionComponentSymbol");function ho(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function RM(e,t,n){return v.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ho(n)&&(n.current=r))},[t])}const gh=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),AM="framerAppearId",Kx="data-"+gh(AM),Gx=v.createContext({});function MM(e,t,n,r,o){var p,w;const{visualElement:i}=v.useContext(Vl),s=v.useContext(_x),a=v.useContext($f),l=v.useContext(jx).reducedMotion,u=v.useRef(null);r=r||s.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,d=v.useContext(Gx);c&&!c.projection&&o&&(c.type==="html"||c.type==="svg")&&NM(u.current,n,o,d);const f=v.useRef(!1);v.useInsertionEffect(()=>{c&&f.current&&c.update(n,a)});const h=n[Kx],x=v.useRef(!!h&&!((p=window.MotionHandoffIsComplete)!=null&&p.call(window,h))&&((w=window.MotionHasOptimisedAnimation)==null?void 0:w.call(window,h)));return sA(()=>{c&&(f.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),x.current&&c.animationState&&c.animationState.animateChanges())}),v.useEffect(()=>{c&&(!x.current&&c.animationState&&c.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)==null||m.call(window,h)}),x.current=!1),c.enteringChildren=void 0)}),c}function NM(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Qx(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&ho(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function Qx(e){if(e)return e.options.allowProjection!==!1?e.projection:Qx(e.parent)}function ju(e,{forwardMotionProps:t=!1}={},n,r){n&&oM(n);const o=hh(e)?PM:TM;function i(a,l){let u;const c={...v.useContext(jx),...a,layoutId:DM(a)},{isStatic:d}=c,f=uM(a),h=o(a,d);if(!d&&Bf){OM();const x=LM(c);u=x.MeasureLayout,f.visualElement=MM(e,h,c,r,x.ProjectionNode)}return S.jsxs(Vl.Provider,{value:f,children:[u&&f.visualElement?S.jsx(u,{visualElement:f.visualElement,...c}):null,EM(e,a,RM(h,f.visualElement,l),h,d,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=v.forwardRef(i);return s[kM]=e,s}function DM({layoutId:e}){const t=v.useContext(Hw).id;return t&&e!==void 0?t+"-"+e:e}function OM(e,t){v.useContext(_x).strict}function LM(e){const{drag:t,layout:n}=Ko;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function jM(e,t){if(typeof Proxy>"u")return ju;const n=new Map,r=(i,s)=>ju(i,s,e,t),o=(i,s)=>r(i,s);return new Proxy(o,{get:(i,s)=>s==="create"?r:(n.has(s)||n.set(s,ju(s,void 0,e,t)),n.get(s))})}function Yx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function _M({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function IM(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function _u(e){return e===void 0||e===1}function vd({scale:e,scaleX:t,scaleY:n}){return!_u(e)||!_u(t)||!_u(n)}function vr(e){return vd(e)||Xx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Xx(e){return Wm(e.x)||Wm(e.y)}function Wm(e){return e&&e!=="0%"}function ll(e,t,n){const r=e-n,o=t*r;return n+o}function Hm(e,t,n,r,o){return o!==void 0&&(e=ll(e,o,r)),ll(e,n,r)+t}function wd(e,t=0,n=1,r,o){e.min=Hm(e.min,t,n,r,o),e.max=Hm(e.max,t,n,r,o)}function qx(e,{x:t,y:n}){wd(e.x,t.translate,t.scale,t.originPoint),wd(e.y,n.translate,n.scale,n.originPoint)}const Km=.999999999999,Gm=1.0000000000001;function FM(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&mo(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,qx(e,s)),r&&vr(i.latestValues)&&mo(e,i.latestValues))}t.x<Gm&&t.x>Km&&(t.x=1),t.y<Gm&&t.y>Km&&(t.y=1)}function po(e,t){e.min=e.min+t,e.max=e.max+t}function Qm(e,t,n,r,o=.5){const i=fe(e.min,e.max,o);wd(e,t,n,i,r)}function mo(e,t){Qm(e.x,t.x,t.scaleX,t.scale,t.originX),Qm(e.y,t.y,t.scaleY,t.scale,t.originY)}function Zx(e,t){return Yx(IM(e.getBoundingClientRect(),t))}function VM(e,t,n){const r=Zx(e,n),{scroll:o}=t;return o&&(po(r.x,o.offset.x),po(r.y,o.offset.y)),r}const Ym=()=>({translate:0,scale:1,origin:0,originPoint:0}),go=()=>({x:Ym(),y:Ym()}),Xm=()=>({min:0,max:0}),ve=()=>({x:Xm(),y:Xm()}),xd={current:null},Jx={current:!1};function zM(){if(Jx.current=!0,!!Bf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>xd.current=e.matches;e.addEventListener("change",t),t()}else xd.current=!1}const BM=new WeakMap;function $M(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Ve(o))e.addValue(r,o);else if(Ve(i))e.addValue(r,Ho(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,Ho(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const qm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class UM{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=oh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=Ze.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,ce.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=Bl(n),this.isVariantNode=Fx(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const h=d[f];l[f]!==void 0&&Ve(h)&&h.set(l[f])}}mount(t){var n;this.current=t,BM.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,o)=>this.bindToMotionValue(o,r)),Jx.current||zM(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:xd.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),ir(this.notifyUpdate),ir(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];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,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ni.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&ce.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ko){const n=Ko[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ve()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<qm.length;r++){const o=qm[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=$M(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 n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ho(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Kw(r)||Qw(r))?r=parseFloat(r):!nM(r)&&sr.test(n)&&(r=Ax(t,n)),this.setBaseTarget(t,Ve(r)?r.get():r)),Ve(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=ph(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ve(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Kf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ah.render(this.render)}}class e1 extends UM{constructor(){super(...arguments),this.KeyframeResolver=U2}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ve(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function t1(e,{style:t,vars:n},r,o){const i=e.style;let s;for(s in t)i[s]=t[s];o==null||o.applyProjectionStyles(i,r);for(s in n)i.setProperty(s,n[s])}function WM(e){return window.getComputedStyle(e)}class HM extends e1{constructor(){super(...arguments),this.type="html",this.renderInstance=t1}readValueFromInstance(t,n){var r;if(ni.has(n))return(r=this.projection)!=null&&r.isProjecting?dd(n):l2(t,n);{const o=WM(t),i=(Yf(n)?o.getPropertyValue(n):o[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Zx(t,n)}build(t,n,r){dh(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return mh(t,n,r)}}const n1=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function KM(e,t,n,r){t1(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(n1.has(o)?o:gh(o),t.attrs[o])}class GM extends e1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ve}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ni.has(n)){const r=Rx(n);return r&&r.default||0}return n=n1.has(n)?n:gh(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Hx(t,n,r)}build(t,n,r){Bx(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){KM(t,n,r,o)}mount(t){this.isSVGTag=Ux(t.tagName),super.mount(t)}}const QM=(e,t)=>hh(e)?new GM(t):new HM(t,{allowProjection:e!==v.Fragment});function Po(e,t,n){const r=e.getProps();return ph(r,t,n!==void 0?n:r.custom,e)}const Sd=e=>Array.isArray(e);function YM(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ho(n))}function XM(e){return Sd(e)?e[e.length-1]||0:e}function qM(e,t){const n=Po(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=XM(i[s]);YM(e,s,a)}}function ZM(e){return!!(Ve(e)&&e.add)}function Ed(e,t){const n=e.getValue("willChange");if(ZM(n))return n.add(t);if(!n&&Sn.WillChange){const r=new Sn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function r1(e){return e.props[Kx]}const JM=e=>e!==null;function eN(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(JM),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const tN={type:"spring",stiffness:500,damping:25,restSpeed:10},nN=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),rN={type:"keyframes",duration:.8},oN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iN=(e,{keyframes:t})=>t.length>2?rN:ni.has(e)?e.startsWith("scale")?nN(t[1]):tN:oN;function sN({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const yh=(e,t,n,r={},o,i)=>s=>{const a=ih(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Jt(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};sN(a)||Object.assign(c,iN(e,c)),c.duration&&(c.duration=Jt(c.duration)),c.repeatDelay&&(c.repeatDelay=Jt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(gd(c),c.delay===0&&(d=!0)),(Sn.instantAnimations||Sn.skipAnimations)&&(d=!0,gd(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const f=eN(c.keyframes,a);if(f!==void 0){ce.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new rh(c):new N2(c)};function aN({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function o1(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(i=r);const l=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const c in a){const d=e.getValue(c,e.latestValues[c]??null),f=a[c];if(f===void 0||u&&aN(u,c))continue;const h={delay:n,...ih(i||{},c)},x=d.get();if(x!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===x&&!h.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){const m=r1(e);if(m){const g=window.MotionHandoffAnimation(m,c,ce);g!==null&&(h.startTime=g,p=!0)}}Ed(e,c),d.start(yh(c,d,f,e.shouldReduceMotion&&Tx.has(c)?{type:!1}:h,e,p));const w=d.animation;w&&l.push(w)}return s&&Promise.all(l).then(()=>{ce.update(()=>{s&&qM(e,s)})}),l}function i1(e,t,n,r=0,o=1){const i=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(i,s):o===1?i*r:a-i*r}function Cd(e,t,n={}){var l;const r=Po(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(o1(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=o;return lN(e,t,u,c,d,f,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[u,c]=a==="beforeChildren"?[i,s]:[s,i];return u().then(()=>c())}else return Promise.all([i(),s(n.delay)])}function lN(e,t,n=0,r=0,o=0,i=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Cd(l,t,{...s,delay:n+(typeof r=="function"?0:r)+i1(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function uN(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Cd(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Cd(e,t,n);else{const o=typeof t=="function"?Po(e,t,n.custom):t;r=Promise.all(o1(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function s1(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const cN=ch.length;function a1(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?a1(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<cN;n++){const r=ch[n],o=e.props[r];(as(o)||o===!1)&&(t[r]=o)}return t}const dN=[...uh].reverse(),fN=uh.length;function hN(e){return t=>Promise.all(t.map(({animation:n,options:r})=>uN(e,n,r)))}function pN(e){let t=hN(e),n=Zm(),r=!0;const o=l=>(u,c)=>{var f;const d=Po(e,c,l==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(d){const{transition:h,transitionEnd:x,...p}=d;u={...u,...p,...x}}return u};function i(l){t=l(e)}function s(l){const{props:u}=e,c=a1(e.parent)||{},d=[],f=new Set;let h={},x=1/0;for(let w=0;w<fN;w++){const m=dN[w],g=n[m],y=u[m]!==void 0?u[m]:c[m],E=as(y),C=m===l?g.isActive:null;C===!1&&(x=w);let b=y===c[m]&&y!==u[m]&&E;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),g.protectedKeys={...h},!g.isActive&&C===null||!y&&!g.prevProp||zl(y)||typeof y=="boolean")continue;const T=mN(g.prevProp,y);let P=T||m===l&&g.isActive&&!b&&E||w>x&&E,N=!1;const D=Array.isArray(y)?y:[y];let V=D.reduce(o(m),{});C===!1&&(V={});const{prevResolvedValues:_={}}=g,G={..._,...V},L=F=>{P=!0,f.has(F)&&(N=!0,f.delete(F)),g.needsAnimating[F]=!0;const k=e.getValue(F);k&&(k.liveStyle=!1)};for(const F in G){const k=V[F],A=_[F];if(h.hasOwnProperty(F))continue;let j=!1;Sd(k)&&Sd(A)?j=!s1(k,A):j=k!==A,j?k!=null?L(F):f.add(F):k!==void 0&&f.has(F)?L(F):g.protectedKeys[F]=!0}g.prevProp=y,g.prevResolvedValues=V,g.isActive&&(h={...h,...V}),r&&e.blockInitialAnimation&&(P=!1);const Q=b&&T;P&&(!Q||N)&&d.push(...D.map(F=>{const k={type:m};if(typeof F=="string"&&r&&!Q&&e.manuallyAnimateOnMount&&e.parent){const{parent:A}=e,j=Po(A,F);if(A.enteringChildren&&j){const{delayChildren:U}=j.transition||{};k.delay=i1(A.enteringChildren,e,U)}}return{animation:F,options:k}}))}if(f.size){const w={};if(typeof u.initial!="boolean"){const m=Po(e,Array.isArray(u.initial)?u.initial[0]:u.initial);m&&m.transition&&(w.transition=m.transition)}f.forEach(m=>{const g=e.getBaseTarget(m),y=e.getValue(m);y&&(y.liveStyle=!0),w[m]=g??null}),d.push({animation:w})}let p=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(d):Promise.resolve()}function a(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(f=>{var h;return(h=f.animationState)==null?void 0:h.setActive(l,u)}),n[l].isActive=u;const c=s(l);for(const f in n)n[f].protectedKeys={};return c}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Zm()}}}function mN(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!s1(t,e):!1}function mr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Zm(){return{animate:mr(!0),whileInView:mr(),whileHover:mr(),whileTap:mr(),whileDrag:mr(),whileFocus:mr(),exit:mr()}}class dr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class gN extends dr{constructor(t){super(t),t.animationState||(t.animationState=pN(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();zl(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let yN=0;class vN extends dr{constructor(){super(...arguments),this.id=yN++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const wN={animation:{Feature:gN},exit:{Feature:vN}};function us(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function bs(e){return{point:{x:e.pageX,y:e.pageY}}}const xN=e=>t=>lh(t)&&e(t,bs(t));function Oi(e,t,n,r){return us(e,t,xN(n),r)}const l1=1e-4,SN=1-l1,EN=1+l1,u1=.01,CN=0-u1,bN=0+u1;function We(e){return e.max-e.min}function TN(e,t,n){return Math.abs(e-t)<=n}function Jm(e,t,n,r=.5){e.origin=r,e.originPoint=fe(t.min,t.max,e.origin),e.scale=We(n)/We(t),e.translate=fe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=SN&&e.scale<=EN||isNaN(e.scale))&&(e.scale=1),(e.translate>=CN&&e.translate<=bN||isNaN(e.translate))&&(e.translate=0)}function Li(e,t,n,r){Jm(e.x,t.x,n.x,r?r.originX:void 0),Jm(e.y,t.y,n.y,r?r.originY:void 0)}function eg(e,t,n){e.min=n.min+t.min,e.max=e.min+We(t)}function PN(e,t,n){eg(e.x,t.x,n.x),eg(e.y,t.y,n.y)}function tg(e,t,n){e.min=t.min-n.min,e.max=e.min+We(t)}function ji(e,t,n){tg(e.x,t.x,n.x),tg(e.y,t.y,n.y)}function pt(e){return[e("x"),e("y")]}const c1=({current:e})=>e?e.ownerDocument.defaultView:null,ng=(e,t)=>Math.abs(e-t);function kN(e,t){const n=ng(e.x,t.x),r=ng(e.y,t.y);return Math.sqrt(n**2+r**2)}class d1{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Fu(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,x=kN(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!x)return;const{point:p}=f,{timestamp:w}=Me;this.history.push({...p,timestamp:w});const{onStart:m,onMove:g}=this.handlers;h||(m&&m(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Iu(h,this.transformPagePoint),ce.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:x,onSessionEnd:p,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=Fu(f.type==="pointercancel"?this.lastMoveEventInfo:Iu(h,this.transformPagePoint),this.history);this.startEvent&&x&&x(f,m),p&&p(f,m)},!lh(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const a=bs(t),l=Iu(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=Me;this.history=[{...u,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,Fu(l,this.history)),this.removeListeners=Ss(Oi(this.contextWindow,"pointermove",this.handlePointerMove),Oi(this.contextWindow,"pointerup",this.handlePointerUp),Oi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ir(this.updatePoint)}}function Iu(e,t){return t?{point:t(e.point)}:e}function rg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Fu({point:e},t){return{point:e,delta:rg(e,f1(t)),offset:rg(e,RN(t)),velocity:AN(t,.1)}}function RN(e){return e[0]}function f1(e){return e[e.length-1]}function AN(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=f1(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Jt(t)));)n--;if(!r)return{x:0,y:0};const i=wt(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function MN(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?fe(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?fe(n,e,r.max):Math.min(e,n)),e}function og(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function NN(e,{top:t,left:n,bottom:r,right:o}){return{x:og(e.x,n,o),y:og(e.y,t,r)}}function ig(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function DN(e,t){return{x:ig(e.x,t.x),y:ig(e.y,t.y)}}function ON(e,t){let n=.5;const r=We(e),o=We(t);return o>r?n=os(t.min,t.max-r,e.min):r>o&&(n=os(e.min,e.max-o,t.min)),xn(0,1,n)}function LN(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const bd=.35;function jN(e=bd){return e===!1?e=0:e===!0&&(e=bd),{x:sg(e,"left","right"),y:sg(e,"top","bottom")}}function sg(e,t,n){return{min:ag(e,t),max:ag(e,n)}}function ag(e,t){return typeof e=="number"?e:e[t]||0}const _N=new WeakMap;class IN{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=ve(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(bs(d).point)},s=(d,f)=>{const{drag:h,dragPropagation:x,onDragStart:p}=this.getProps();if(h&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Q2(h),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),pt(m=>{let g=this.getAxisMotionValue(m).get()||0;if(en.test(g)){const{projection:y}=this.visualElement;if(y&&y.layout){const E=y.layout.layoutBox[m];E&&(g=We(E)*(parseFloat(g)/100))}}this.originPoint[m]=g}),p&&ce.postRender(()=>p(d,f)),Ed(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:h,dragDirectionLock:x,onDirectionLock:p,onDrag:w}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:m}=f;if(x&&this.currentDirection===null){this.currentDirection=FN(m),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",f.point,m),this.updateAxis("y",f.point,m),this.visualElement.render(),w&&w(d,f)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>pt(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)==null?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new d1(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:c1(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&ce.postRender(()=>a(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Js(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=MN(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,o=this.constraints;t&&ho(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=NN(r.layoutBox,t):this.constraints=!1,this.elastic=jN(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&pt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=LN(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ho(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=VM(r,o.root,this.visualElement.getTransformPagePoint());let s=DN(o.layout.layoutBox,i);if(n){const a=n(_M(s));this.hasMutatedConstraints=!!a,a&&(s=Yx(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=pt(c=>{if(!Js(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,x={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,x)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ed(this.visualElement,t),r.start(yh(t,r,0,n,this.visualElement,!1))}stopAnimation(){pt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){pt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){pt(n=>{const{drag:r}=this.getProps();if(!Js(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-fe(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ho(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};pt(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=ON({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),pt(s=>{if(!Js(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(fe(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;_N.set(this.visualElement,this);const t=this.visualElement.current,n=Oi(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ho(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ce.read(r);const s=us(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(pt(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=bd,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Js(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function FN(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class VN extends dr{constructor(t){super(t),this.removeGroupControls=St,this.removeListeners=St,this.controls=new IN(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||St}unmount(){this.removeGroupControls(),this.removeListeners()}}const lg=e=>(t,n)=>{e&&ce.postRender(()=>e(t,n))};class zN extends dr{constructor(){super(...arguments),this.removePointerDownListener=St}onPointerDown(t){this.session=new d1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:c1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:lg(t),onStart:lg(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&ce.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Oi(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ea={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ug(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const mi={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(B.test(e))e=parseFloat(e);else return e;const n=ug(e,t.target.x),r=ug(e,t.target.y);return`${n}% ${r}%`}},BN={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=sr.parse(e);if(o.length>5)return r;const i=sr.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=fe(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};let Vu=!1;class $N extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;cM(UN),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),Vu&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Ea.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,Vu=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||ce.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ah.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Vu=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function h1(e){const[t,n]=rM(),r=v.useContext(Hw);return S.jsx($N,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(Gx),isPresent:t,safeToRemove:n})}const UN={borderRadius:{...mi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mi,borderTopRightRadius:mi,borderBottomLeftRadius:mi,borderBottomRightRadius:mi,boxShadow:BN};function WN(e,t,n){const r=Ve(e)?e:Ho(e);return r.start(yh("",r,t,n)),r.animation}const HN=(e,t)=>e.depth-t.depth;class KN{constructor(){this.children=[],this.isDirty=!1}add(t){Uf(this.children,t),this.isDirty=!0}remove(t){Wf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(HN),this.isDirty=!1,this.children.forEach(t)}}function GN(e,t){const n=Ze.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(ir(r),e(i-t))};return ce.setup(r,!0),()=>ir(r)}const p1=["TopLeft","TopRight","BottomLeft","BottomRight"],QN=p1.length,cg=e=>typeof e=="string"?parseFloat(e):e,dg=e=>typeof e=="number"||B.test(e);function YN(e,t,n,r,o,i){o?(e.opacity=fe(0,n.opacity??1,XN(r)),e.opacityExit=fe(t.opacity??1,0,qN(r))):i&&(e.opacity=fe(t.opacity??1,n.opacity??1,r));for(let s=0;s<QN;s++){const a=`border${p1[s]}Radius`;let l=fg(t,a),u=fg(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||dg(l)===dg(u)?(e[a]=Math.max(fe(cg(l),cg(u),r),0),(en.test(u)||en.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=fe(t.rotate||0,n.rotate||0,r))}function fg(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const XN=m1(0,.5,nx),qN=m1(.5,.95,St);function m1(e,t,n){return r=>r<e?0:r>t?1:n(os(e,t,r))}function hg(e,t){e.min=t.min,e.max=t.max}function ft(e,t){hg(e.x,t.x),hg(e.y,t.y)}function pg(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function mg(e,t,n,r,o){return e-=t,e=ll(e,1/n,r),o!==void 0&&(e=ll(e,1/o,r)),e}function ZN(e,t=0,n=1,r=.5,o,i=e,s=e){if(en.test(t)&&(t=parseFloat(t),t=fe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=fe(i.min,i.max,r);e===i&&(a-=t),e.min=mg(e.min,t,n,a,o),e.max=mg(e.max,t,n,a,o)}function gg(e,t,[n,r,o],i,s){ZN(e,t[n],t[r],t[o],t.scale,i,s)}const JN=["x","scaleX","originX"],eD=["y","scaleY","originY"];function yg(e,t,n,r){gg(e.x,t,JN,n?n.x:void 0,r?r.x:void 0),gg(e.y,t,eD,n?n.y:void 0,r?r.y:void 0)}function vg(e){return e.translate===0&&e.scale===1}function g1(e){return vg(e.x)&&vg(e.y)}function wg(e,t){return e.min===t.min&&e.max===t.max}function tD(e,t){return wg(e.x,t.x)&&wg(e.y,t.y)}function xg(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function y1(e,t){return xg(e.x,t.x)&&xg(e.y,t.y)}function Sg(e){return We(e.x)/We(e.y)}function Eg(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nD{constructor(){this.members=[]}add(t){Uf(this.members,t),t.scheduleRender()}remove(t){if(Wf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function rD(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:h,skewY:x}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}deg) `),x&&(r+=`skewY(${x}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const zu=["","X","Y","Z"],oD=1e3;let iD=0;function Bu(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function v1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=r1(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ce,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&v1(r)}function w1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=iD++,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.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(lD),this.nodes.forEach(fD),this.nodes.forEach(hD),this.nodes.forEach(uD)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new KN)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Kf),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=Lx(s)&&!eM(s),this.instance=s;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,d=0;const f=()=>this.root.updateBlockedByResize=!1;ce.read(()=>{d=window.innerWidth}),e(s,()=>{const h=window.innerWidth;h!==d&&(d=h,this.root.updateBlockedByResize=!0,c&&c(),c=GN(f,250),Ea.hasAnimatedSinceResize&&(Ea.hasAnimatedSinceResize=!1,this.nodes.forEach(Tg)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||u.getDefaultTransition()||vD,{onLayoutAnimationStart:p,onLayoutAnimationComplete:w}=u.getProps(),m=!this.targetLayout||!y1(this.targetLayout,h),g=!d&&f;if(this.options.layoutRoot||this.resumeFrom||g||d&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const y={...ih(x,"layout"),onPlay:p,onComplete:w};(u.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(c,g)}else d||Tg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ir(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(pD),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&v1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Cg);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(bg);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(dD),this.nodes.forEach(sD),this.nodes.forEach(aD)):this.nodes.forEach(bg),this.clearAllSnapshots();const a=Ze.now();Me.delta=xn(0,1e3/60,a-Me.timestamp),Me.timestamp=a,Me.isProcessing=!0,Au.update.process(Me),Au.preRender.process(Me),Au.render.process(Me),Me.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ah.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(cD),this.sharedNodes.forEach(mD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ce.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ce.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!We(this.snapshot.measuredBox.x)&&!We(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ve(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!g1(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&this.instance&&(a||vr(this.latestValues)||c)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),wD(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:s}=this.options;if(!s)return ve();const a=s.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(xD))){const{scroll:c}=this.root;c&&(po(a.x,c.offset.x),po(a.y,c.offset.y))}return a}removeElementScroll(s){var l;const a=ve();if(ft(a,s),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&ft(a,s),po(a.x,d.offset.x),po(a.y,d.offset.y))}return a}applyTransform(s,a=!1){const l=ve();ft(l,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&mo(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),vr(c.latestValues)&&mo(l,c.latestValues)}return vr(this.latestValues)&&mo(l,this.latestValues),l}removeTransform(s){const a=ve();ft(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!vr(u.latestValues))continue;vd(u.latestValues)&&u.updateSnapshot();const c=ve(),d=u.measurePageBox();ft(c,d),yg(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return vr(this.latestValues)&&yg(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Me.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var f;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:d}=this.options;if(!(!this.layout||!(c||d))){if(this.resolvedRelativeTargetAt=Me.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ve(),this.relativeTargetOrigin=ve(),ji(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ft(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ve(),this.targetWithTransforms=ve()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),PN(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ft(this.target,this.layout.layoutBox),qx(this.target,this.targetDelta)):ft(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ve(),this.relativeTargetOrigin=ve(),ji(this.relativeTargetOrigin,this.target,h.target),ft(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||vd(this.parent.latestValues)||Xx(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var x;const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Me.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;ft(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;FM(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=ve());const{target:h}=s;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(pg(this.prevProjectionDelta.x,this.projectionDelta.x),pg(this.prevProjectionDelta.y,this.projectionDelta.y)),Li(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!Eg(this.projectionDelta.x,this.prevProjectionDelta.x)||!Eg(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=go(),this.projectionDelta=go(),this.projectionDeltaWithTransform=go()}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=go();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=ve(),h=l?l.source:void 0,x=this.layout?this.layout.source:void 0,p=h!==x,w=this.getStack(),m=!w||w.members.length<=1,g=!!(p&&!m&&this.options.crossfade===!0&&!this.path.some(yD));this.animationProgress=0;let y;this.mixTargetDelta=E=>{const C=E/1e3;Pg(d.x,s.x,C),Pg(d.y,s.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ji(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),gD(this.relativeTarget,this.relativeTargetOrigin,f,C),y&&tD(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=ve()),ft(y,this.relativeTarget)),p&&(this.animationValues=c,YN(c,u,this.latestValues,C,g,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(ir(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ce.update(()=>{Ea.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ho(0)),this.currentAnimation=WN(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),s.onUpdate&&s.onUpdate(c)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(oD),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&x1(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ve();const d=We(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=We(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}ft(a,l),mo(a,c),Li(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new nD),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Bu("z",s,u,this.animationValues);for(let c=0;c<zu.length;c++)Bu(`rotate${zu[c]}`,s,u,this.animationValues),Bu(`skew${zu[c]}`,s,u,this.animationValues);s.render();for(const c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Sa(a==null?void 0:a.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Sa(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!vr(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=rD(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),s.transform=d;const{x:f,y:h}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${h.origin*100}% 0`,u.animationValues?s.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:s.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const x in ls){if(c[x]===void 0)continue;const{correct:p,applyTo:w,isCSSVariable:m}=ls[x],g=d==="none"?c[x]:p(c[x],u);if(w){const y=w.length;for(let E=0;E<y;E++)s[w[E]]=g}else m?this.options.visualElement.renderState.vars[x]=g:s[x]=g}this.options.layoutId&&(s.pointerEvents=u===this?Sa(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Cg),this.root.sharedNodes.clear()}}}function sD(e){e.updateLayout()}function aD(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=t.source!==e.layout.source;i==="size"?pt(d=>{const f=s?t.measuredBox[d]:t.layoutBox[d],h=We(f);f.min=r[d].min,f.max=f.min+h}):x1(i,t.layoutBox,r)&&pt(d=>{const f=s?t.measuredBox[d]:t.layoutBox[d],h=We(r[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const a=go();Li(a,r,t.layoutBox);const l=go();s?Li(l,e.applyTransform(o,!0),t.measuredBox):Li(l,r,t.layoutBox);const u=!g1(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const x=ve();ji(x,t.layoutBox,f.layoutBox);const p=ve();ji(p,r,h.layoutBox),y1(x,p)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=x,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function lD(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 uD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function cD(e){e.clearSnapshot()}function Cg(e){e.clearMeasurements()}function bg(e){e.isLayoutDirty=!1}function dD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Tg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fD(e){e.resolveTargetDelta()}function hD(e){e.calcProjection()}function pD(e){e.resetSkewAndRotation()}function mD(e){e.removeLeadSnapshot()}function Pg(e,t,n){e.translate=fe(t.translate,0,n),e.scale=fe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function kg(e,t,n,r){e.min=fe(t.min,n.min,r),e.max=fe(t.max,n.max,r)}function gD(e,t,n,r){kg(e.x,t.x,n.x,r),kg(e.y,t.y,n.y,r)}function yD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const vD={duration:.45,ease:[.4,0,.1,1]},Rg=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ag=Rg("applewebkit/")&&!Rg("chrome/")?Math.round:St;function Mg(e){e.min=Ag(e.min),e.max=Ag(e.max)}function wD(e){Mg(e.x),Mg(e.y)}function x1(e,t,n){return e==="position"||e==="preserve-aspect"&&!TN(Sg(t),Sg(n),.2)}function xD(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const SD=w1({attachResizeListener:(e,t)=>us(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),$u={current:void 0},S1=w1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!$u.current){const e=new SD({});e.mount(window),e.setOptions({layoutScroll:!0}),$u.current=e}return $u.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ED={pan:{Feature:zN},drag:{Feature:VN,ProjectionNode:S1,MeasureLayout:h1}};function Ng(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&ce.postRender(()=>i(t,bs(t)))}class CD extends dr{mount(){const{current:t}=this.node;t&&(this.unmount=Y2(t,(n,r)=>(Ng(this.node,r,"Start"),o=>Ng(this.node,o,"End"))))}unmount(){}}class bD extends dr{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=Ss(us(this.node.current,"focus",()=>this.onFocus()),us(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Dg(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&ce.postRender(()=>i(t,bs(t)))}class TD extends dr{mount(){const{current:t}=this.node;t&&(this.unmount=J2(t,(n,r)=>(Dg(this.node,r,"Start"),(o,{success:i})=>Dg(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Td=new WeakMap,Uu=new WeakMap,PD=e=>{const t=Td.get(e.target);t&&t(e)},kD=e=>{e.forEach(PD)};function RD({root:e,...t}){const n=e||document;Uu.has(n)||Uu.set(n,{});const r=Uu.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(kD,{root:e,...t})),r[o]}function AD(e,t,n){const r=RD(t);return Td.set(e,n),r.observe(e),()=>{Td.delete(e),r.unobserve(e)}}const MD={some:0,all:1};class ND extends dr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:MD[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return AD(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(DD(t,n))&&this.startObserver()}unmount(){}}function DD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const OD={inView:{Feature:ND},tap:{Feature:TD},focus:{Feature:bD},hover:{Feature:CD}},LD={layout:{ProjectionNode:S1,MeasureLayout:h1}},jD={...wN,...OD,...ED,...LD},ht=jM(jD,QM),_D=z0("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"}}),Ca=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?KC:"button";return S.jsx(s,{className:Pe(_D({variant:t,size:n,className:e})),ref:i,...o})});Ca.displayName="Button";const Pd=v.forwardRef(({className:e,...t},n)=>S.jsx("div",{ref:n,className:Pe("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Pd.displayName="Card";const ID=v.forwardRef(({className:e,...t},n)=>S.jsx("div",{ref:n,className:Pe("flex flex-col space-y-1.5 p-6",e),...t}));ID.displayName="CardHeader";const FD=v.forwardRef(({className:e,...t},n)=>S.jsx("h3",{ref:n,className:Pe("text-2xl font-semibold leading-none tracking-tight",e),...t}));FD.displayName="CardTitle";const VD=v.forwardRef(({className:e,...t},n)=>S.jsx("p",{ref:n,className:Pe("text-sm text-muted-foreground",e),...t}));VD.displayName="CardDescription";const zD=v.forwardRef(({className:e,...t},n)=>S.jsx("div",{ref:n,className:Pe("p-6 pt-0",e),...t}));zD.displayName="CardContent";const BD=v.forwardRef(({className:e,...t},n)=>S.jsx("div",{ref:n,className:Pe("flex items-center p-6 pt-0",e),...t}));BD.displayName="CardFooter";var Wu="focusScope.autoFocusOnMount",Hu="focusScope.autoFocusOnUnmount",Og={bubbles:!1,cancelable:!0},$D="FocusScope",E1=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,l]=v.useState(null),u=tn(o),c=tn(i),d=v.useRef(null),f=Ke(t,p=>l(p)),h=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let p=function(y){if(h.paused||!a)return;const E=y.target;a.contains(E)?d.current=E:Ln(d.current,{select:!0})},w=function(y){if(h.paused||!a)return;const E=y.relatedTarget;E!==null&&(a.contains(E)||Ln(d.current,{select:!0}))},m=function(y){if(document.activeElement===document.body)for(const C of y)C.removedNodes.length>0&&Ln(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",w);const g=new MutationObserver(m);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",w),g.disconnect()}}},[r,a,h.paused]),v.useEffect(()=>{if(a){jg.add(h);const p=document.activeElement;if(!a.contains(p)){const m=new CustomEvent(Wu,Og);a.addEventListener(Wu,u),a.dispatchEvent(m),m.defaultPrevented||(UD(QD(C1(a)),{select:!0}),document.activeElement===p&&Ln(a))}return()=>{a.removeEventListener(Wu,u),setTimeout(()=>{const m=new CustomEvent(Hu,Og);a.addEventListener(Hu,c),a.dispatchEvent(m),m.defaultPrevented||Ln(p??document.body,{select:!0}),a.removeEventListener(Hu,c),jg.remove(h)},0)}}},[a,u,c,h]);const x=v.useCallback(p=>{if(!n&&!r||h.paused)return;const w=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,m=document.activeElement;if(w&&m){const g=p.currentTarget,[y,E]=WD(g);y&&E?!p.shiftKey&&m===E?(p.preventDefault(),n&&Ln(y,{select:!0})):p.shiftKey&&m===y&&(p.preventDefault(),n&&Ln(E,{select:!0})):m===g&&p.preventDefault()}},[n,r,h.paused]);return S.jsx(Ce.div,{tabIndex:-1,...s,ref:f,onKeyDown:x})});E1.displayName=$D;function UD(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ln(r,{select:t}),document.activeElement!==n)return}function WD(e){const t=C1(e),n=Lg(t,e),r=Lg(t.reverse(),e);return[n,r]}function C1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Lg(e,t){for(const n of e)if(!HD(n,{upTo:t}))return n}function HD(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 KD(e){return e instanceof HTMLInputElement&&"select"in e}function Ln(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&KD(e)&&t&&e.select()}}var jg=GD();function GD(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=_g(e,t),e.unshift(t)},remove(t){var n;e=_g(e,t),(n=e[0])==null||n.resume()}}}function _g(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function QD(e){return e.filter(t=>t.tagName!=="A")}var Ku=0;function YD(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ig()),document.body.insertAdjacentElement("beforeend",e[1]??Ig()),Ku++,()=>{Ku===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ku--}},[])}function Ig(){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 Qt=function(){return Qt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Qt.apply(this,arguments)};function b1(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function XD(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var ba="right-scroll-bar-position",Ta="width-before-scroll-bar",qD="with-scroll-bars-hidden",ZD="--removed-body-scroll-bar-size";function Gu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function JD(e,t){var n=v.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var eO=typeof window<"u"?v.useLayoutEffect:v.useEffect,Fg=new WeakMap;function tO(e,t){var n=JD(null,function(r){return e.forEach(function(o){return Gu(o,r)})});return eO(function(){var r=Fg.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Gu(a,null)}),i.forEach(function(a){o.has(a)||Gu(a,s)})}Fg.set(n,e)},[e]),n}function nO(e){return e}function rO(e,t){t===void 0&&(t=nO);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var l=function(){var c=s;s=[],c.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return o}function oO(e){e===void 0&&(e={});var t=rO(null);return t.options=Qt({async:!0,ssr:!1},e),t}var T1=function(e){var t=e.sideCar,n=b1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,Qt({},n))};T1.isSideCarExport=!0;function iO(e,t){return e.useMedium(t),T1}var P1=oO(),Qu=function(){},$l=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:Qu,onWheelCapture:Qu,onTouchMoveCapture:Qu}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,h=e.noRelative,x=e.noIsolation,p=e.inert,w=e.allowPinchZoom,m=e.as,g=m===void 0?"div":m,y=e.gapMode,E=b1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=f,b=tO([n,t]),T=Qt(Qt({},E),o);return v.createElement(v.Fragment,null,c&&v.createElement(C,{sideCar:P1,removeScrollBar:u,shards:d,noRelative:h,noIsolation:x,inert:p,setCallbacks:i,allowPinchZoom:!!w,lockRef:n,gapMode:y}),s?v.cloneElement(v.Children.only(a),Qt(Qt({},T),{ref:b})):v.createElement(g,Qt({},T,{className:l,ref:b}),a))});$l.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};$l.classNames={fullWidth:Ta,zeroRight:ba};var sO=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function aO(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=sO();return t&&e.setAttribute("nonce",t),e}function lO(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function uO(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var cO=function(){var e=0,t=null;return{add:function(n){e==0&&(t=aO())&&(lO(t,n),uO(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},dO=function(){var e=cO();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},k1=function(){var e=dO(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},fO={left:0,top:0,right:0,gap:0},Yu=function(e){return parseInt(e||"",10)||0},hO=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Yu(n),Yu(r),Yu(o)]},pO=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return fO;var t=hO(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},mO=k1(),ko="data-scroll-locked",gO=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
  .`.concat(qD,` {
   overflow: hidden `).concat(r,`;
   padding-right: `).concat(a,"px ").concat(r,`;
  }
  body[`).concat(ko,`] {
    overflow: hidden `).concat(r,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
    padding-left: `.concat(o,`px;
    padding-top: `).concat(i,`px;
    padding-right: `).concat(s,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(a,"px ").concat(r,`;
    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(ba,` {
    right: `).concat(a,"px ").concat(r,`;
  }
  
  .`).concat(Ta,` {
    margin-right: `).concat(a,"px ").concat(r,`;
  }
  
  .`).concat(ba," .").concat(ba,` {
    right: 0 `).concat(r,`;
  }
  
  .`).concat(Ta," .").concat(Ta,` {
    margin-right: 0 `).concat(r,`;
  }
  
  body[`).concat(ko,`] {
    `).concat(ZD,": ").concat(a,`px;
  }
`)},Vg=function(){var e=parseInt(document.body.getAttribute(ko)||"0",10);return isFinite(e)?e:0},yO=function(){v.useEffect(function(){return document.body.setAttribute(ko,(Vg()+1).toString()),function(){var e=Vg()-1;e<=0?document.body.removeAttribute(ko):document.body.setAttribute(ko,e.toString())}},[])},vO=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;yO();var i=v.useMemo(function(){return pO(o)},[o]);return v.createElement(mO,{styles:gO(i,!t,o,n?"":"!important")})},kd=!1;if(typeof window<"u")try{var ea=Object.defineProperty({},"passive",{get:function(){return kd=!0,!0}});window.addEventListener("test",ea,ea),window.removeEventListener("test",ea,ea)}catch{kd=!1}var Xr=kd?{passive:!1}:!1,wO=function(e){return e.tagName==="TEXTAREA"},R1=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!wO(e)&&n[t]==="visible")},xO=function(e){return R1(e,"overflowY")},SO=function(e){return R1(e,"overflowX")},zg=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=A1(e,r);if(o){var i=M1(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},EO=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},CO=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},A1=function(e,t){return e==="v"?xO(t):SO(t)},M1=function(e,t){return e==="v"?EO(t):CO(t)},bO=function(e,t){return e==="h"&&t==="rtl"?-1:1},TO=function(e,t,n,r,o){var i=bO(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),u=!1,c=s>0,d=0,f=0;do{if(!a)break;var h=M1(e,a),x=h[0],p=h[1],w=h[2],m=p-w-i*x;(x||m)&&A1(e,a)&&(d+=m,f+=x);var g=a.parentNode;a=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&(Math.abs(d)<1||!o)||!c&&(Math.abs(f)<1||!o))&&(u=!0),u},ta=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Bg=function(e){return[e.deltaX,e.deltaY]},$g=function(e){return e&&"current"in e?e.current:e},PO=function(e,t){return e[0]===t[0]&&e[1]===t[1]},kO=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},RO=0,qr=[];function AO(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(RO++)[0],i=v.useState(k1)[0],s=v.useRef(e);v.useEffect(function(){s.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=XD([e.lockRef.current],(e.shards||[]).map($g),!0).filter(Boolean);return p.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=v.useCallback(function(p,w){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var m=ta(p),g=n.current,y="deltaX"in p?p.deltaX:g[0]-m[0],E="deltaY"in p?p.deltaY:g[1]-m[1],C,b=p.target,T=Math.abs(y)>Math.abs(E)?"h":"v";if("touches"in p&&T==="h"&&b.type==="range")return!1;var P=zg(T,b);if(!P)return!0;if(P?C=T:(C=T==="v"?"h":"v",P=zg(T,b)),!P)return!1;if(!r.current&&"changedTouches"in p&&(y||E)&&(r.current=C),!C)return!0;var N=r.current||C;return TO(N,w,p,N==="h"?y:E,!0)},[]),l=v.useCallback(function(p){var w=p;if(!(!qr.length||qr[qr.length-1]!==i)){var m="deltaY"in w?Bg(w):ta(w),g=t.current.filter(function(C){return C.name===w.type&&(C.target===w.target||w.target===C.shadowParent)&&PO(C.delta,m)})[0];if(g&&g.should){w.cancelable&&w.preventDefault();return}if(!g){var y=(s.current.shards||[]).map($g).filter(Boolean).filter(function(C){return C.contains(w.target)}),E=y.length>0?a(w,y[0]):!s.current.noIsolation;E&&w.cancelable&&w.preventDefault()}}},[]),u=v.useCallback(function(p,w,m,g){var y={name:p,delta:w,target:m,should:g,shadowParent:MO(m)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(E){return E!==y})},1)},[]),c=v.useCallback(function(p){n.current=ta(p),r.current=void 0},[]),d=v.useCallback(function(p){u(p.type,Bg(p),p.target,a(p,e.lockRef.current))},[]),f=v.useCallback(function(p){u(p.type,ta(p),p.target,a(p,e.lockRef.current))},[]);v.useEffect(function(){return qr.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Xr),document.addEventListener("touchmove",l,Xr),document.addEventListener("touchstart",c,Xr),function(){qr=qr.filter(function(p){return p!==i}),document.removeEventListener("wheel",l,Xr),document.removeEventListener("touchmove",l,Xr),document.removeEventListener("touchstart",c,Xr)}},[]);var h=e.removeScrollBar,x=e.inert;return v.createElement(v.Fragment,null,x?v.createElement(i,{styles:kO(o)}):null,h?v.createElement(vO,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function MO(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const NO=iO(P1,AO);var N1=v.forwardRef(function(e,t){return v.createElement($l,Qt({},e,{ref:t,sideCar:NO}))});N1.classNames=$l.classNames;var DO=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Zr=new WeakMap,na=new WeakMap,ra={},Xu=0,D1=function(e){return e&&(e.host||D1(e.parentNode))},OO=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=D1(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},LO=function(e,t,n,r){var o=OO(t,Array.isArray(e)?e:[e]);ra[n]||(ra[n]=new WeakMap);var i=ra[n],s=[],a=new Set,l=new Set(o),u=function(d){!d||a.has(d)||(a.add(d),u(d.parentNode))};o.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))c(f);else try{var h=f.getAttribute(r),x=h!==null&&h!=="false",p=(Zr.get(f)||0)+1,w=(i.get(f)||0)+1;Zr.set(f,p),i.set(f,w),s.push(f),p===1&&x&&na.set(f,!0),w===1&&f.setAttribute(n,"true"),x||f.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",f,m)}})};return c(t),a.clear(),Xu++,function(){s.forEach(function(d){var f=Zr.get(d)-1,h=i.get(d)-1;Zr.set(d,f),i.set(d,h),f||(na.has(d)||d.removeAttribute(r),na.delete(d)),h||d.removeAttribute(n)}),Xu--,Xu||(Zr=new WeakMap,Zr=new WeakMap,na=new WeakMap,ra={})}},jO=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=DO(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),LO(r,o,n,"aria-hidden")):function(){return null}},Ul="Dialog",[O1,uL]=vs(Ul),[_O,Bt]=O1(Ul),L1=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=v.useRef(null),l=v.useRef(null),[u,c]=v0({prop:r,defaultProp:o??!1,onChange:i,caller:Ul});return S.jsx(_O,{scope:t,triggerRef:a,contentRef:l,contentId:Tu(),titleId:Tu(),descriptionId:Tu(),open:u,onOpenChange:c,onOpenToggle:v.useCallback(()=>c(d=>!d),[c]),modal:s,children:n})};L1.displayName=Ul;var j1="DialogTrigger",IO=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Bt(j1,n),i=Ke(t,o.triggerRef);return S.jsx(Ce.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":xh(o.open),...r,ref:i,onClick:ue(e.onClick,o.onOpenToggle)})});IO.displayName=j1;var vh="DialogPortal",[FO,_1]=O1(vh,{forceMount:void 0}),I1=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Bt(vh,t);return S.jsx(FO,{scope:t,forceMount:n,children:v.Children.map(r,s=>S.jsx(Xo,{present:n||i.open,children:S.jsx(bf,{asChild:!0,container:o,children:s})}))})};I1.displayName=vh;var ul="DialogOverlay",F1=v.forwardRef((e,t)=>{const n=_1(ul,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Bt(ul,e.__scopeDialog);return i.modal?S.jsx(Xo,{present:r||i.open,children:S.jsx(zO,{...o,ref:t})}):null});F1.displayName=ul;var VO=Ji("DialogOverlay.RemoveScroll"),zO=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Bt(ul,n);return S.jsx(N1,{as:VO,allowPinchZoom:!0,shards:[o.contentRef],children:S.jsx(Ce.div,{"data-state":xh(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),zr="DialogContent",V1=v.forwardRef((e,t)=>{const n=_1(zr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Bt(zr,e.__scopeDialog);return S.jsx(Xo,{present:r||i.open,children:i.modal?S.jsx(BO,{...o,ref:t}):S.jsx($O,{...o,ref:t})})});V1.displayName=zr;var BO=v.forwardRef((e,t)=>{const n=Bt(zr,e.__scopeDialog),r=v.useRef(null),o=Ke(t,n.contentRef,r);return v.useEffect(()=>{const i=r.current;if(i)return jO(i)},[]),S.jsx(z1,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ue(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:ue(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:ue(e.onFocusOutside,i=>i.preventDefault())})}),$O=v.forwardRef((e,t)=>{const n=Bt(zr,e.__scopeDialog),r=v.useRef(!1),o=v.useRef(!1);return S.jsx(z1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),z1=v.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=Bt(zr,n),l=v.useRef(null),u=Ke(t,l);return YD(),S.jsxs(S.Fragment,{children:[S.jsx(E1,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:S.jsx(Pl,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":xh(a.open),...s,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),S.jsxs(S.Fragment,{children:[S.jsx(UO,{titleId:a.titleId}),S.jsx(HO,{contentRef:l,descriptionId:a.descriptionId})]})]})}),wh="DialogTitle",B1=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Bt(wh,n);return S.jsx(Ce.h2,{id:o.titleId,...r,ref:t})});B1.displayName=wh;var $1="DialogDescription",U1=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Bt($1,n);return S.jsx(Ce.p,{id:o.descriptionId,...r,ref:t})});U1.displayName=$1;var W1="DialogClose",H1=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Bt(W1,n);return S.jsx(Ce.button,{type:"button",...r,ref:t,onClick:ue(e.onClick,()=>o.onOpenChange(!1))})});H1.displayName=W1;function xh(e){return e?"open":"closed"}var K1="DialogTitleWarning",[cL,G1]=WC(K1,{contentName:zr,titleName:wh,docsSlug:"dialog"}),UO=({titleId:e})=>{const t=G1(K1),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},WO="DialogDescriptionWarning",HO=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${G1(WO).contentName}}.`;return v.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},KO=L1,GO=I1,Q1=F1,Y1=V1,X1=B1,q1=U1,QO=H1;const YO=KO,XO=GO,Z1=v.forwardRef(({className:e,...t},n)=>S.jsx(Q1,{ref:n,className:Pe("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}));Z1.displayName=Q1.displayName;const J1=v.forwardRef(({className:e,children:t,...n},r)=>S.jsxs(XO,{children:[S.jsx(Z1,{}),S.jsxs(Y1,{ref:r,className:Pe("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),...n,children:[t,S.jsxs(QO,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[S.jsx($0,{className:"h-4 w-4"}),S.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));J1.displayName=Y1.displayName;const eS=({className:e,...t})=>S.jsx("div",{className:Pe("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});eS.displayName="DialogHeader";const tS=v.forwardRef(({className:e,...t},n)=>S.jsx(X1,{ref:n,className:Pe("text-lg font-semibold leading-none tracking-tight",e),...t}));tS.displayName=X1.displayName;const nS=v.forwardRef(({className:e,...t},n)=>S.jsx(q1,{ref:n,className:Pe("text-sm text-muted-foreground",e),...t}));nS.displayName=q1.displayName;const qO=()=>{const[e,t]=v.useState(null),n=[{icon:Wb,title:"Branding",description:"Create a memorable identity that resonates with your audience and stands out in the market.",color:"primary"},{icon:Bb,title:"Digital Existence",description:"Build a strong online presence with stunning websites and engaging digital experiences.",color:"accent"},{icon:Hb,title:"Lead Generation",description:"Drive qualified leads to your business with targeted strategies and proven tactics.",color:"primary"},{icon:zb,title:"CRM",description:"Manage customer relationships effectively with powerful tools and automation.",color:"accent"},{icon:Kb,title:"Workflows",description:"Streamline your processes with automated workflows that save time and boost efficiency.",color:"primary"}];return S.jsxs("div",{className:"min-h-screen bg-background",children:[S.jsxs("section",{className:"relative overflow-hidden bg-gradient-hero min-h-screen flex items-center justify-center",children:[S.jsx("div",{className:"absolute inset-0 opacity-[0.8] pointer-events-none",style:{backgroundImage:"url('/doodle-pattern.png')",backgroundRepeat:"repeat",backgroundSize:"1000px",backgroundPosition:"center"}}),S.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_30%_50%,hsl(265_85%_58%/0.1),transparent_50%)]"}),S.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_70%_50%,hsl(45_96%_58%/0.1),transparent_50%)]"}),S.jsx("div",{className:"container mx-auto px-4 relative z-10",children:S.jsxs(ht.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:.25,ease:"easeOut"},className:"text-center",children:[S.jsx("h1",{className:"text-6xl md:text-8xl font-bold mb-6",children:S.jsx("img",{src:"/logo.png",alt:"GetLeads Logo",className:"inline-block w-[30rem] md:w-[50rem] h-auto mx-auto"})}),S.jsx(ht.p,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.18,ease:"easeOut",delay:.05},className:"text-xl md:text-2xl text-muted-foreground mb-12 max-w-2xl mx-auto",children:"Transform your business with cutting-edge digital solutions that drive real results."}),S.jsx(ht.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.15,ease:"easeOut",delay:.1},children:S.jsx(Ca,{size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground shadow-glow hover:scale-105 transition-all duration-200",onClick:()=>document.getElementById("services").scrollIntoView({behavior:"smooth"}),children:"Get Started"})})]})})]}),S.jsx("section",{className:"relative",id:"services",children:n.map((r,o)=>{const i=r.icon,s=o%2===0;return S.jsxs("div",{className:"min-h-screen flex items-center justify-center px-4 py-20 relative overflow-hidden",children:[S.jsx(ht.div,{initial:{opacity:0,scale:.85},whileInView:{opacity:.1,scale:1},transition:{duration:.35,ease:"easeOut"},viewport:{once:!0,amount:.3},className:`absolute inset-0 ${r.color==="primary"?"bg-[radial-gradient(circle_at_50%_50%,hsl(265_85%_58%/0.3),transparent_70%)]":"bg-[radial-gradient(circle_at_50%_50%,hsl(45_96%_58%/0.3),transparent_70%)]"}`}),S.jsx("div",{className:"container mx-auto relative z-10",children:S.jsxs("div",{className:`flex flex-col ${s?"lg:flex-row":"lg:flex-row-reverse"} items-center gap-12 lg:gap-20`,children:[S.jsx(ht.div,{initial:{opacity:0,x:s?-60:60,scale:.6},whileInView:{opacity:1,x:0,scale:1},transition:{duration:.25,ease:"easeOut"},viewport:{once:!0},className:"flex-1 flex justify-center",children:S.jsx("div",{className:`w-48 h-48 md:w-64 md:h-64 flex items-center justify-center rounded-3xl backdrop-blur-sm border-2 ${r.color==="primary"?"bg-primary/10 border-primary/30 shadow-[0_0_60px_rgba(139,92,246,0.3)]":"bg-accent/10 border-accent/30 shadow-[0_0_60px_rgba(250,204,21,0.3)]"}`,children:S.jsx(i,{className:`w-24 h-24 md:w-32 md:h-32 ${r.color==="primary"?"text-primary":"text-accent"}`})})}),S.jsxs(ht.div,{initial:{opacity:0,x:s?60:-60},whileInView:{opacity:1,x:0},transition:{duration:.25,ease:"easeOut",delay:.05},viewport:{once:!0},className:"flex-1 text-center lg:text-left",children:[S.jsx(ht.h2,{initial:{opacity:0,y:15},whileInView:{opacity:1,y:0},transition:{duration:.2,ease:"easeOut",delay:.08},className:"text-5xl md:text-7xl font-bold mb-6",children:S.jsx("span",{className:r.color==="primary"?"bg-gradient-purple bg-clip-text text-transparent":"bg-gradient-yellow bg-clip-text text-transparent",children:r.title})}),S.jsx(ht.p,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},transition:{duration:.18,ease:"easeOut",delay:.1},className:"text-xl md:text-2xl text-muted-foreground leading-relaxed mb-8 max-w-2xl mx-auto lg:mx-0",children:r.description}),S.jsx(ht.div,{initial:{opacity:0,scale:.8},whileInView:{opacity:1,scale:1},transition:{duration:.15,ease:"easeOut",delay:.12},children:S.jsxs(Ca,{size:"lg",className:`${r.color==="primary"?"bg-primary hover:bg-primary/90 text-primary-foreground":"bg-accent hover:bg-accent/90 text-accent-foreground"} shadow-glow transition-all duration-200 hover:scale-105`,onClick:()=>t(r),children:["Explore ",r.title]})})]})]})})]},r.title)})}),S.jsx("section",{id:"contact",className:"py-24 px-4 bg-secondary/50",children:S.jsxs("div",{className:"container mx-auto max-w-4xl",children:[S.jsxs(ht.div,{initial:{opacity:0},whileInView:{opacity:1},transition:{duration:.25,ease:"easeOut"},className:"text-center mb-12",children:[S.jsxs("h2",{className:"text-4xl md:text-5xl font-bold mb-4",children:["Let's"," ",S.jsx("span",{className:"bg-gradient-purple bg-clip-text text-transparent",children:"Connect"})]}),S.jsx("p",{className:"text-muted-foreground text-lg",children:"Ready to take your business to the next level? Get in touch!"})]}),S.jsxs("div",{className:"grid md:grid-cols-2 gap-12",children:[S.jsx(ht.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},transition:{duration:.22,ease:"easeOut"},children:S.jsxs(Pd,{className:"p-8 bg-card border-border backdrop-blur border rounded-2xl shadow-[0_0_40px_rgba(0,0,0,0.15)]",children:[S.jsx("h3",{className:"text-2xl font-bold mb-6 text-foreground",children:"Contact Information"}),S.jsxs("div",{className:"space-y-6",children:[S.jsxs("div",{className:"flex items-start gap-4",children:[S.jsx($b,{className:"w-6 h-6 text-primary mt-1"}),S.jsxs("div",{children:[S.jsx("p",{className:"font-semibold text-foreground",children:"Email"}),S.jsx("p",{className:"text-muted-foreground",children:"hello@getleadss.com"})]})]}),S.jsxs("div",{className:"flex items-start gap-4",children:[S.jsx(Ub,{className:"w-6 h-6 text-accent mt-1"}),S.jsxs("div",{children:[S.jsx("p",{className:"font-semibold text-foreground",children:"Phone"}),S.jsx("p",{className:"text-muted-foreground",children:"+91 7022829655"}),S.jsx("p",{className:"text-muted-foreground",children:"+91 914878346"})]})]})]})]})}),S.jsx(ht.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},transition:{duration:.22,ease:"easeOut"},children:S.jsx(Pd,{className:`
                  p-8 
                  bg-card 
                  border-border 
                  backdrop-blur 
                  border 
                  rounded-2xl 
                  shadow-[0_0_40px_rgba(0,0,0,0.15)] 
                  hover:shadow-[0_0_60px_rgba(0,0,0,0.25)] 
                  transition-all 
                  duration-300
                `,children:S.jsx("iframe",{src:"https://admin.getleadss.com/widget/form/6929949fd7e85",style:{width:"100%",height:"600px",border:"none",borderRadius:"12px"},className:`
                    bg-background/60 
                    backdrop-blur 
                    border 
                    border-border 
                    rounded-xl 
                    shadow-inner
                  `})})})]})]})}),S.jsx(YO,{open:e!==null,onOpenChange:()=>t(null),children:S.jsxs(J1,{className:"bg-card border-border max-w-2xl",children:[S.jsxs(eS,{children:[S.jsxs(tS,{className:"text-3xl font-bold text-foreground flex items-center gap-3",children:[S.jsx("div",{className:`w-12 h-12 rounded-lg flex items-center justify-center ${(e==null?void 0:e.color)==="primary"?"bg-primary/10":"bg-accent/10"}`,children:e&&S.jsx(e.icon,{className:`w-6 h-6 ${e.color==="primary"?"text-primary":"text-accent"}`})}),e==null?void 0:e.title]}),S.jsx(nS,{className:"text-muted-foreground text-lg pt-3",children:e==null?void 0:e.description})]}),S.jsxs("div",{className:"mt-6 space-y-4 text-foreground",children:[(e==null?void 0:e.title)==="Branding"&&S.jsxs(S.Fragment,{children:[S.jsx("p",{children:"Your brand is more than just a logo — it's the feeling people get when they interact with your business. We help you shape that feeling so your identity is clear, consistent, and memorable across every touchpoint."}),S.jsx("p",{children:"We focus on visuals, voice, and style that actually represent who you are, not just what you sell."}),S.jsxs("div",{className:"pt-4 border-t border-border mt-6",children:[S.jsx("h4",{className:"font-semibold text-lg mb-3",children:"What We Do"}),S.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[S.jsx("li",{children:"• Logo, color palette & typography"}),S.jsx("li",{children:"• Creative direction & identity systems"}),S.jsx("li",{children:"• Packaging & visual assets"})]})]})]}),(e==null?void 0:e.title)==="Digital Existence"&&S.jsxs(S.Fragment,{children:[S.jsx("p",{children:"People judge your business within seconds of visiting your website. We make sure that first impression is strong — modern design, clean layout, fast loading, and a smooth user experience."}),S.jsx("p",{children:"From landing pages to full websites, everything is built to look premium and feel effortless to use."}),S.jsxs("div",{className:"pt-4 border-t border-border mt-6",children:[S.jsx("h4",{className:"font-semibold text-lg mb-3",children:"What We Build"}),S.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[S.jsx("li",{children:"• Modern, responsive websites"}),S.jsx("li",{children:"• High-converting landing pages"}),S.jsx("li",{children:"• UI/UX design"}),S.jsx("li",{children:"• Website redesigns & improvements"})]})]})]}),(e==null?void 0:e.title)==="Lead Generation"&&S.jsxs(S.Fragment,{children:[S.jsx("p",{children:"Good leads don’t happen by chance — they come from strategy, targeting, and continuous optimization. We help you attract people who are genuinely interested in your services."}),S.jsx("p",{children:"Every step is tracked, analyzed, and improved to make sure you're getting real results, not just clicks."}),S.jsxs("div",{className:"pt-4 border-t border-border mt-6",children:[S.jsx("h4",{className:"font-semibold text-lg mb-3",children:"What We Do"}),S.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[S.jsx("li",{children:"• Meta Ads (Facebook & Instagram)"}),S.jsx("li",{children:"• Google Search & Display campaigns"}),S.jsx("li",{children:"• Conversion-focused landing pages"}),S.jsx("li",{children:"• Creatives, ad copy & optimization"})]})]})]}),(e==null?void 0:e.title)==="CRM"&&S.jsxs(S.Fragment,{children:[S.jsx("p",{children:"Capturing leads is one thing — managing them well is what actually grows a business. We set up organized, automated CRM systems that make sure no lead slips through the cracks."}),S.jsx("p",{children:"From pipelines to follow-up reminders, everything stays clean and easy to manage."}),S.jsxs("div",{className:"pt-4 border-t border-border mt-6",children:[S.jsx("h4",{className:"font-semibold text-lg mb-3",children:"What We Set Up"}),S.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[S.jsx("li",{children:"• Lead pipelines & stages"}),S.jsx("li",{children:"• Automated follow-ups"}),S.jsx("li",{children:"• WhatsApp/SMS/email notifications"}),S.jsx("li",{children:"• Contact management & organization"})]})]})]}),(e==null?void 0:e.title)==="Workflows"&&S.jsxs(S.Fragment,{children:[S.jsx("p",{children:"If your business still runs on manual work, you're losing time every day. We help you automate the repetitive tasks so your business runs smoother and faster."}),S.jsx("p",{children:"Our automations are simple, practical, and built to make your daily operations effortless."}),S.jsxs("div",{className:"pt-4 border-t border-border mt-6",children:[S.jsx("h4",{className:"font-semibold text-lg mb-3",children:"What We Automate"}),S.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[S.jsx("li",{children:"• Lead nurturing workflows"}),S.jsx("li",{children:"• Sales follow-ups & reminders"}),S.jsx("li",{children:"• WhatsApp & email automation"}),S.jsx("li",{children:"• Customer onboarding flows"})]})]})]})]}),S.jsx("div",{className:"mt-6 pt-6 border-t border-border",children:S.jsxs(Ca,{className:"w-full bg-gradient-purple text-primary-foreground hover:opacity-90 transition-opacity shadow-glow",onClick:()=>{t(null),document.getElementById("contact").scrollIntoView({behavior:"smooth"})},children:["Get Started with ",e==null?void 0:e.title]})})]})}),S.jsx("footer",{className:"py-8 px-4 border-t border-border",children:S.jsx("div",{className:"container mx-auto text-center text-muted-foreground",children:S.jsx("p",{children:"© 2024 GetLeads. All rights reserved."})})})]})},ZO=()=>{const e=Ww();return v.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),S.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:S.jsxs("div",{className:"text-center",children:[S.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),S.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),S.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},JO=new yR,eL=()=>S.jsx(wR,{client:JO,children:S.jsxs(Gk,{children:[S.jsx(RT,{}),S.jsx(sP,{}),S.jsx(oA,{children:S.jsxs(tA,{children:[S.jsx(rd,{path:"/",element:S.jsx(qO,{})}),S.jsx(rd,{path:"*",element:S.jsx(ZO,{})})]})})]})});d0(document.getElementById("root")).render(S.jsx(eL,{}));