var Eh=e=>{throw TypeError(e)};var Nu=(e,t,n)=>t.has(e)||Eh("Cannot "+n);var E=(e,t,n)=>(Nu(e,t,"read from private field"),n?n.call(e):t.get(e)),re=(e,t,n)=>t.has(e)?Eh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),G=(e,t,n,r)=>(Nu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),pe=(e,t,n)=>(Nu(e,t,"access private method"),n);var ma=(e,t,n,r)=>({set _(s){G(e,t,s,n)},get _(){return E(e,t,r)}});function ww(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const o=Object.getOwnPropertyDescriptor(r,s);o&&Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>r[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function vg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yg={exports:{}},Gl={},xg={exports:{}},fe={};/**
 * @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 Xi=Symbol.for("react.element"),bw=Symbol.for("react.portal"),Sw=Symbol.for("react.fragment"),kw=Symbol.for("react.strict_mode"),Cw=Symbol.for("react.profiler"),Ew=Symbol.for("react.provider"),_w=Symbol.for("react.context"),Nw=Symbol.for("react.forward_ref"),Tw=Symbol.for("react.suspense"),Rw=Symbol.for("react.memo"),Pw=Symbol.for("react.lazy"),_h=Symbol.iterator;function jw(e){return e===null||typeof e!="object"?null:(e=_h&&e[_h]||e["@@iterator"],typeof e=="function"?e:null)}var wg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bg=Object.assign,Sg={};function Mo(e,t,n){this.props=e,this.context=t,this.refs=Sg,this.updater=n||wg}Mo.prototype.isReactComponent={};Mo.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")};Mo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function kg(){}kg.prototype=Mo.prototype;function Zd(e,t,n){this.props=e,this.context=t,this.refs=Sg,this.updater=n||wg}var Gd=Zd.prototype=new kg;Gd.constructor=Zd;bg(Gd,Mo.prototype);Gd.isPureReactComponent=!0;var Nh=Array.isArray,Cg=Object.prototype.hasOwnProperty,Kd={current:null},Eg={key:!0,ref:!0,__self:!0,__source:!0};function _g(e,t,n){var r,s={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Cg.call(t,r)&&!Eg.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];s.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:Xi,type:e,key:o,ref:i,props:s,_owner:Kd.current}}function Ow(e,t){return{$$typeof:Xi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function qd(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xi}function Aw(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Th=/\/+/g;function Tu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Aw(""+e.key):t.toString(36)}function Ua(e,t,n,r,s){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Xi:case bw:i=!0}}if(i)return i=e,s=s(i),e=r===""?"."+Tu(i,0):r,Nh(s)?(n="",e!=null&&(n=e.replace(Th,"$&/")+"/"),Ua(s,t,n,"",function(u){return u})):s!=null&&(qd(s)&&(s=Ow(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(Th,"$&/")+"/")+e)),t.push(s)),1;if(i=0,r=r===""?".":r+":",Nh(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+Tu(o,a);i+=Ua(o,t,n,l,s)}else if(l=jw(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+Tu(o,a++),i+=Ua(o,t,n,l,s);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function ga(e,t,n){if(e==null)return e;var r=[],s=0;return Ua(e,r,"","",function(o){return t.call(n,o,s++)}),r}function Iw(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 gt={current:null},Ba={transition:null},Mw={ReactCurrentDispatcher:gt,ReactCurrentBatchConfig:Ba,ReactCurrentOwner:Kd};function Ng(){throw Error("act(...) is not supported in production builds of React.")}fe.Children={map:ga,forEach:function(e,t,n){ga(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ga(e,function(){t++}),t},toArray:function(e){return ga(e,function(t){return t})||[]},only:function(e){if(!qd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};fe.Component=Mo;fe.Fragment=Sw;fe.Profiler=Cw;fe.PureComponent=Zd;fe.StrictMode=kw;fe.Suspense=Tw;fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Mw;fe.act=Ng;fe.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=bg({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=Kd.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Cg.call(t,l)&&!Eg.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:Xi,type:e.type,key:s,ref:o,props:r,_owner:i}};fe.createContext=function(e){return e={$$typeof:_w,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ew,_context:e},e.Consumer=e};fe.createElement=_g;fe.createFactory=function(e){var t=_g.bind(null,e);return t.type=e,t};fe.createRef=function(){return{current:null}};fe.forwardRef=function(e){return{$$typeof:Nw,render:e}};fe.isValidElement=qd;fe.lazy=function(e){return{$$typeof:Pw,_payload:{_status:-1,_result:e},_init:Iw}};fe.memo=function(e,t){return{$$typeof:Rw,type:e,compare:t===void 0?null:t}};fe.startTransition=function(e){var t=Ba.transition;Ba.transition={};try{e()}finally{Ba.transition=t}};fe.unstable_act=Ng;fe.useCallback=function(e,t){return gt.current.useCallback(e,t)};fe.useContext=function(e){return gt.current.useContext(e)};fe.useDebugValue=function(){};fe.useDeferredValue=function(e){return gt.current.useDeferredValue(e)};fe.useEffect=function(e,t){return gt.current.useEffect(e,t)};fe.useId=function(){return gt.current.useId()};fe.useImperativeHandle=function(e,t,n){return gt.current.useImperativeHandle(e,t,n)};fe.useInsertionEffect=function(e,t){return gt.current.useInsertionEffect(e,t)};fe.useLayoutEffect=function(e,t){return gt.current.useLayoutEffect(e,t)};fe.useMemo=function(e,t){return gt.current.useMemo(e,t)};fe.useReducer=function(e,t,n){return gt.current.useReducer(e,t,n)};fe.useRef=function(e){return gt.current.useRef(e)};fe.useState=function(e){return gt.current.useState(e)};fe.useSyncExternalStore=function(e,t,n){return gt.current.useSyncExternalStore(e,t,n)};fe.useTransition=function(){return gt.current.useTransition()};fe.version="18.3.1";xg.exports=fe;var y=xg.exports;const I=vg(y),Yd=ww({__proto__:null,default:I},[y]);/**
 * @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 Lw=y,Dw=Symbol.for("react.element"),Fw=Symbol.for("react.fragment"),zw=Object.prototype.hasOwnProperty,$w=Lw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Vw={key:!0,ref:!0,__self:!0,__source:!0};function Tg(e,t,n){var r,s={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)zw.call(t,r)&&!Vw.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:Dw,type:e,key:o,ref:i,props:s,_owner:$w.current}}Gl.Fragment=Fw;Gl.jsx=Tg;Gl.jsxs=Tg;yg.exports=Gl;var d=yg.exports,Rg={exports:{}},Lt={},Pg={exports:{}},jg={};/**
 * @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(P,O){var B=P.length;P.push(O);e:for(;0<B;){var se=B-1>>>1,ee=P[se];if(0<s(ee,O))P[se]=O,P[B]=ee,B=se;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var O=P[0],B=P.pop();if(B!==O){P[0]=B;e:for(var se=0,ee=P.length,ue=ee>>>1;se<ue;){var ce=2*(se+1)-1,Oe=P[ce],Ke=ce+1,ge=P[Ke];if(0>s(Oe,B))Ke<ee&&0>s(ge,Oe)?(P[se]=ge,P[Ke]=B,se=Ke):(P[se]=Oe,P[ce]=B,se=ce);else if(Ke<ee&&0>s(ge,B))P[se]=ge,P[Ke]=B,se=Ke;else break e}}return O}function s(P,O){var B=P.sortIndex-O.sortIndex;return B!==0?B:P.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],u=[],c=1,f=null,h=3,p=!1,b=!1,g=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(P){for(var O=n(u);O!==null;){if(O.callback===null)r(u);else if(O.startTime<=P)r(u),O.sortIndex=O.expirationTime,t(l,O);else break;O=n(u)}}function S(P){if(g=!1,x(P),!b)if(n(l)!==null)b=!0,X(k);else{var O=n(u);O!==null&&te(S,O.startTime-P)}}function k(P,O){b=!1,g&&(g=!1,v(j),j=-1),p=!0;var B=h;try{for(x(O),f=n(l);f!==null&&(!(f.expirationTime>O)||P&&!q());){var se=f.callback;if(typeof se=="function"){f.callback=null,h=f.priorityLevel;var ee=se(f.expirationTime<=O);O=e.unstable_now(),typeof ee=="function"?f.callback=ee:f===n(l)&&r(l),x(O)}else r(l);f=n(l)}if(f!==null)var ue=!0;else{var ce=n(u);ce!==null&&te(S,ce.startTime-O),ue=!1}return ue}finally{f=null,h=B,p=!1}}var N=!1,T=null,j=-1,F=5,M=-1;function q(){return!(e.unstable_now()-M<F)}function A(){if(T!==null){var P=e.unstable_now();M=P;var O=!0;try{O=T(!0,P)}finally{O?W():(N=!1,T=null)}}else N=!1}var W;if(typeof m=="function")W=function(){m(A)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,ne=L.port2;L.port1.onmessage=A,W=function(){ne.postMessage(null)}}else W=function(){w(A,0)};function X(P){T=P,N||(N=!0,W())}function te(P,O){j=w(function(){P(e.unstable_now())},O)}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(P){P.callback=null},e.unstable_continueExecution=function(){b||p||(b=!0,X(k))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(P){switch(h){case 1:case 2:case 3:var O=3;break;default:O=h}var B=h;h=O;try{return P()}finally{h=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,O){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var B=h;h=P;try{return O()}finally{h=B}},e.unstable_scheduleCallback=function(P,O,B){var se=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?se+B:se):B=se,P){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=B+ee,P={id:c++,callback:O,priorityLevel:P,startTime:B,expirationTime:ee,sortIndex:-1},B>se?(P.sortIndex=B,t(u,P),n(l)===null&&P===n(u)&&(g?(v(j),j=-1):g=!0,te(S,B-se))):(P.sortIndex=ee,t(l,P),b||p||(b=!0,X(k))),P},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(P){var O=h;return function(){var B=h;h=O;try{return P.apply(this,arguments)}finally{h=B}}}})(jg);Pg.exports=jg;var Uw=Pg.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 Bw=y,It=Uw;function D(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 Og=new Set,bi={};function Ts(e,t){So(e,t),So(e+"Capture",t)}function So(e,t){for(bi[e]=t,e=0;e<t.length;e++)Og.add(t[e])}var Kn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yc=Object.prototype.hasOwnProperty,Ww=/^[: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]*$/,Rh={},Ph={};function Hw(e){return yc.call(Ph,e)?!0:yc.call(Rh,e)?!1:Ww.test(e)?Ph[e]=!0:(Rh[e]=!0,!1)}function Qw(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 Zw(e,t,n,r){if(t===null||typeof t>"u"||Qw(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 vt(e,t,n,r,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var rt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){rt[e]=new vt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];rt[t]=new vt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){rt[e]=new vt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){rt[e]=new vt(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){rt[e]=new vt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){rt[e]=new vt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){rt[e]=new vt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){rt[e]=new vt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){rt[e]=new vt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xd=/[\-:]([a-z])/g;function Jd(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(Xd,Jd);rt[t]=new vt(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(Xd,Jd);rt[t]=new vt(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(Xd,Jd);rt[t]=new vt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){rt[e]=new vt(e,1,!1,e.toLowerCase(),null,!1,!1)});rt.xlinkHref=new vt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){rt[e]=new vt(e,1,!1,e.toLowerCase(),null,!0,!0)});function ef(e,t,n,r){var s=rt.hasOwnProperty(t)?rt[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Zw(t,n,s,r)&&(n=null),r||s===null?Hw(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var sr=Bw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for("react.element"),$s=Symbol.for("react.portal"),Vs=Symbol.for("react.fragment"),tf=Symbol.for("react.strict_mode"),xc=Symbol.for("react.profiler"),Ag=Symbol.for("react.provider"),Ig=Symbol.for("react.context"),nf=Symbol.for("react.forward_ref"),wc=Symbol.for("react.suspense"),bc=Symbol.for("react.suspense_list"),rf=Symbol.for("react.memo"),hr=Symbol.for("react.lazy"),Mg=Symbol.for("react.offscreen"),jh=Symbol.iterator;function Wo(e){return e===null||typeof e!="object"?null:(e=jh&&e[jh]||e["@@iterator"],typeof e=="function"?e:null)}var Me=Object.assign,Ru;function ni(e){if(Ru===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ru=t&&t[1]||""}return`
`+Ru+e}var Pu=!1;function ju(e,t){if(!e||Pu)return"";Pu=!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 s=u.stack.split(`
`),o=r.stack.split(`
`),i=s.length-1,a=o.length-1;1<=i&&0<=a&&s[i]!==o[a];)a--;for(;1<=i&&0<=a;i--,a--)if(s[i]!==o[a]){if(i!==1||a!==1)do if(i--,a--,0>a||s[i]!==o[a]){var l=`
`+s[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{Pu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ni(e):""}function Gw(e){switch(e.tag){case 5:return ni(e.type);case 16:return ni("Lazy");case 13:return ni("Suspense");case 19:return ni("SuspenseList");case 0:case 2:case 15:return e=ju(e.type,!1),e;case 11:return e=ju(e.type.render,!1),e;case 1:return e=ju(e.type,!0),e;default:return""}}function Sc(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 Vs:return"Fragment";case $s:return"Portal";case xc:return"Profiler";case tf:return"StrictMode";case wc:return"Suspense";case bc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ig:return(e.displayName||"Context")+".Consumer";case Ag:return(e._context.displayName||"Context")+".Provider";case nf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rf:return t=e.displayName||null,t!==null?t:Sc(e.type)||"Memo";case hr:t=e._payload,e=e._init;try{return Sc(e(t))}catch{}}return null}function Kw(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 Sc(t);case 8:return t===tf?"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 Ur(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Lg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qw(e){var t=Lg(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 s=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ya(e){e._valueTracker||(e._valueTracker=qw(e))}function Dg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Lg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function il(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 kc(e,t){var n=t.checked;return Me({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Oh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ur(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 Fg(e,t){t=t.checked,t!=null&&ef(e,"checked",t,!1)}function Cc(e,t){Fg(e,t);var n=Ur(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")?Ec(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ec(e,t.type,Ur(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ah(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 Ec(e,t,n){(t!=="number"||il(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ri=Array.isArray;function Js(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ur(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function _c(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(D(91));return Me({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ih(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(D(92));if(ri(n)){if(1<n.length)throw Error(D(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ur(n)}}function zg(e,t){var n=Ur(t.value),r=Ur(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 Mh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function $g(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 Nc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?$g(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var xa,Vg=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(xa=xa||document.createElement("div"),xa.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=xa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Si(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ui={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},Yw=["Webkit","ms","Moz","O"];Object.keys(ui).forEach(function(e){Yw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ui[t]=ui[e]})});function Ug(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ui.hasOwnProperty(e)&&ui[e]?(""+t).trim():t+"px"}function Bg(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Ug(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Xw=Me({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 Tc(e,t){if(t){if(Xw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function Rc(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 Pc=null;function sf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var jc=null,eo=null,to=null;function Lh(e){if(e=ta(e)){if(typeof jc!="function")throw Error(D(280));var t=e.stateNode;t&&(t=Jl(t),jc(e.stateNode,e.type,t))}}function Wg(e){eo?to?to.push(e):to=[e]:eo=e}function Hg(){if(eo){var e=eo,t=to;if(to=eo=null,Lh(e),t)for(e=0;e<t.length;e++)Lh(t[e])}}function Qg(e,t){return e(t)}function Zg(){}var Ou=!1;function Gg(e,t,n){if(Ou)return e(t,n);Ou=!0;try{return Qg(e,t,n)}finally{Ou=!1,(eo!==null||to!==null)&&(Zg(),Hg())}}function ki(e,t){var n=e.stateNode;if(n===null)return null;var r=Jl(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(D(231,t,typeof n));return n}var Oc=!1;if(Kn)try{var Ho={};Object.defineProperty(Ho,"passive",{get:function(){Oc=!0}}),window.addEventListener("test",Ho,Ho),window.removeEventListener("test",Ho,Ho)}catch{Oc=!1}function Jw(e,t,n,r,s,o,i,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var ci=!1,al=null,ll=!1,Ac=null,e1={onError:function(e){ci=!0,al=e}};function t1(e,t,n,r,s,o,i,a,l){ci=!1,al=null,Jw.apply(e1,arguments)}function n1(e,t,n,r,s,o,i,a,l){if(t1.apply(this,arguments),ci){if(ci){var u=al;ci=!1,al=null}else throw Error(D(198));ll||(ll=!0,Ac=u)}}function Rs(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 Kg(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 Dh(e){if(Rs(e)!==e)throw Error(D(188))}function r1(e){var t=e.alternate;if(!t){if(t=Rs(e),t===null)throw Error(D(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return Dh(s),e;if(o===r)return Dh(s),t;o=o.sibling}throw Error(D(188))}if(n.return!==r.return)n=s,r=o;else{for(var i=!1,a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i){for(a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i)throw Error(D(189))}}if(n.alternate!==r)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?e:t}function qg(e){return e=r1(e),e!==null?Yg(e):null}function Yg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Yg(e);if(t!==null)return t;e=e.sibling}return null}var Xg=It.unstable_scheduleCallback,Fh=It.unstable_cancelCallback,s1=It.unstable_shouldYield,o1=It.unstable_requestPaint,$e=It.unstable_now,i1=It.unstable_getCurrentPriorityLevel,of=It.unstable_ImmediatePriority,Jg=It.unstable_UserBlockingPriority,ul=It.unstable_NormalPriority,a1=It.unstable_LowPriority,ev=It.unstable_IdlePriority,Kl=null,Tn=null;function l1(e){if(Tn&&typeof Tn.onCommitFiberRoot=="function")try{Tn.onCommitFiberRoot(Kl,e,void 0,(e.current.flags&128)===128)}catch{}}var ln=Math.clz32?Math.clz32:d1,u1=Math.log,c1=Math.LN2;function d1(e){return e>>>=0,e===0?32:31-(u1(e)/c1|0)|0}var wa=64,ba=4194304;function si(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 cl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~s;a!==0?r=si(a):(o&=i,o!==0&&(r=si(o)))}else i=n&~s,i!==0?r=si(i):o!==0&&(r=si(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,o=t&-t,s>=o||s===16&&(o&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-ln(t),s=1<<n,r|=e[n],t&=~s;return r}function f1(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 h1(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-ln(o),a=1<<i,l=s[i];l===-1?(!(a&n)||a&r)&&(s[i]=f1(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function Ic(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function tv(){var e=wa;return wa<<=1,!(wa&4194240)&&(wa=64),e}function Au(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ji(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ln(t),e[t]=n}function p1(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 s=31-ln(n),o=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~o}}function af(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ln(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var be=0;function nv(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var rv,lf,sv,ov,iv,Mc=!1,Sa=[],jr=null,Or=null,Ar=null,Ci=new Map,Ei=new Map,gr=[],m1="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 zh(e,t){switch(e){case"focusin":case"focusout":jr=null;break;case"dragenter":case"dragleave":Or=null;break;case"mouseover":case"mouseout":Ar=null;break;case"pointerover":case"pointerout":Ci.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ei.delete(t.pointerId)}}function Qo(e,t,n,r,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[s]},t!==null&&(t=ta(t),t!==null&&lf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function g1(e,t,n,r,s){switch(t){case"focusin":return jr=Qo(jr,e,t,n,r,s),!0;case"dragenter":return Or=Qo(Or,e,t,n,r,s),!0;case"mouseover":return Ar=Qo(Ar,e,t,n,r,s),!0;case"pointerover":var o=s.pointerId;return Ci.set(o,Qo(Ci.get(o)||null,e,t,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,Ei.set(o,Qo(Ei.get(o)||null,e,t,n,r,s)),!0}return!1}function av(e){var t=ss(e.target);if(t!==null){var n=Rs(t);if(n!==null){if(t=n.tag,t===13){if(t=Kg(n),t!==null){e.blockedOn=t,iv(e.priority,function(){sv(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 Wa(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Lc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Pc=r,n.target.dispatchEvent(r),Pc=null}else return t=ta(n),t!==null&&lf(t),e.blockedOn=n,!1;t.shift()}return!0}function $h(e,t,n){Wa(e)&&n.delete(t)}function v1(){Mc=!1,jr!==null&&Wa(jr)&&(jr=null),Or!==null&&Wa(Or)&&(Or=null),Ar!==null&&Wa(Ar)&&(Ar=null),Ci.forEach($h),Ei.forEach($h)}function Zo(e,t){e.blockedOn===t&&(e.blockedOn=null,Mc||(Mc=!0,It.unstable_scheduleCallback(It.unstable_NormalPriority,v1)))}function _i(e){function t(s){return Zo(s,e)}if(0<Sa.length){Zo(Sa[0],e);for(var n=1;n<Sa.length;n++){var r=Sa[n];r.blockedOn===e&&(r.blockedOn=null)}}for(jr!==null&&Zo(jr,e),Or!==null&&Zo(Or,e),Ar!==null&&Zo(Ar,e),Ci.forEach(t),Ei.forEach(t),n=0;n<gr.length;n++)r=gr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<gr.length&&(n=gr[0],n.blockedOn===null);)av(n),n.blockedOn===null&&gr.shift()}var no=sr.ReactCurrentBatchConfig,dl=!0;function y1(e,t,n,r){var s=be,o=no.transition;no.transition=null;try{be=1,uf(e,t,n,r)}finally{be=s,no.transition=o}}function x1(e,t,n,r){var s=be,o=no.transition;no.transition=null;try{be=4,uf(e,t,n,r)}finally{be=s,no.transition=o}}function uf(e,t,n,r){if(dl){var s=Lc(e,t,n,r);if(s===null)Bu(e,t,r,fl,n),zh(e,r);else if(g1(s,e,t,n,r))r.stopPropagation();else if(zh(e,r),t&4&&-1<m1.indexOf(e)){for(;s!==null;){var o=ta(s);if(o!==null&&rv(o),o=Lc(e,t,n,r),o===null&&Bu(e,t,r,fl,n),o===s)break;s=o}s!==null&&r.stopPropagation()}else Bu(e,t,r,null,n)}}var fl=null;function Lc(e,t,n,r){if(fl=null,e=sf(r),e=ss(e),e!==null)if(t=Rs(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Kg(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 fl=e,null}function lv(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(i1()){case of:return 1;case Jg:return 4;case ul:case a1:return 16;case ev:return 536870912;default:return 16}default:return 16}}var Nr=null,cf=null,Ha=null;function uv(){if(Ha)return Ha;var e,t=cf,n=t.length,r,s="value"in Nr?Nr.value:Nr.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===s[o-r];r++);return Ha=s.slice(e,1<r?1-r:void 0)}function Qa(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 ka(){return!0}function Vh(){return!1}function Dt(e){function t(n,r,s,o,i){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ka:Vh,this.isPropagationStopped=Vh,this}return Me(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=ka)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ka)},persist:function(){},isPersistent:ka}),t}var Lo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},df=Dt(Lo),ea=Me({},Lo,{view:0,detail:0}),w1=Dt(ea),Iu,Mu,Go,ql=Me({},ea,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ff,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!==Go&&(Go&&e.type==="mousemove"?(Iu=e.screenX-Go.screenX,Mu=e.screenY-Go.screenY):Mu=Iu=0,Go=e),Iu)},movementY:function(e){return"movementY"in e?e.movementY:Mu}}),Uh=Dt(ql),b1=Me({},ql,{dataTransfer:0}),S1=Dt(b1),k1=Me({},ea,{relatedTarget:0}),Lu=Dt(k1),C1=Me({},Lo,{animationName:0,elapsedTime:0,pseudoElement:0}),E1=Dt(C1),_1=Me({},Lo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),N1=Dt(_1),T1=Me({},Lo,{data:0}),Bh=Dt(T1),R1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},P1={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"},j1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function O1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=j1[e])?!!t[e]:!1}function ff(){return O1}var A1=Me({},ea,{key:function(e){if(e.key){var t=R1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?P1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ff,charCode:function(e){return e.type==="keypress"?Qa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),I1=Dt(A1),M1=Me({},ql,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wh=Dt(M1),L1=Me({},ea,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ff}),D1=Dt(L1),F1=Me({},Lo,{propertyName:0,elapsedTime:0,pseudoElement:0}),z1=Dt(F1),$1=Me({},ql,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),V1=Dt($1),U1=[9,13,27,32],hf=Kn&&"CompositionEvent"in window,di=null;Kn&&"documentMode"in document&&(di=document.documentMode);var B1=Kn&&"TextEvent"in window&&!di,cv=Kn&&(!hf||di&&8<di&&11>=di),Hh=" ",Qh=!1;function dv(e,t){switch(e){case"keyup":return U1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Us=!1;function W1(e,t){switch(e){case"compositionend":return fv(t);case"keypress":return t.which!==32?null:(Qh=!0,Hh);case"textInput":return e=t.data,e===Hh&&Qh?null:e;default:return null}}function H1(e,t){if(Us)return e==="compositionend"||!hf&&dv(e,t)?(e=uv(),Ha=cf=Nr=null,Us=!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 cv&&t.locale!=="ko"?null:t.data;default:return null}}var Q1={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 Zh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Q1[e.type]:t==="textarea"}function hv(e,t,n,r){Wg(r),t=hl(t,"onChange"),0<t.length&&(n=new df("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var fi=null,Ni=null;function Z1(e){Cv(e,0)}function Yl(e){var t=Hs(e);if(Dg(t))return e}function G1(e,t){if(e==="change")return t}var pv=!1;if(Kn){var Du;if(Kn){var Fu="oninput"in document;if(!Fu){var Gh=document.createElement("div");Gh.setAttribute("oninput","return;"),Fu=typeof Gh.oninput=="function"}Du=Fu}else Du=!1;pv=Du&&(!document.documentMode||9<document.documentMode)}function Kh(){fi&&(fi.detachEvent("onpropertychange",mv),Ni=fi=null)}function mv(e){if(e.propertyName==="value"&&Yl(Ni)){var t=[];hv(t,Ni,e,sf(e)),Gg(Z1,t)}}function K1(e,t,n){e==="focusin"?(Kh(),fi=t,Ni=n,fi.attachEvent("onpropertychange",mv)):e==="focusout"&&Kh()}function q1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yl(Ni)}function Y1(e,t){if(e==="click")return Yl(t)}function X1(e,t){if(e==="input"||e==="change")return Yl(t)}function J1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cn=typeof Object.is=="function"?Object.is:J1;function Ti(e,t){if(cn(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 s=n[r];if(!yc.call(t,s)||!cn(e[s],t[s]))return!1}return!0}function qh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yh(e,t){var n=qh(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=qh(n)}}function gv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vv(){for(var e=window,t=il();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=il(e.document)}return t}function pf(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 eb(e){var t=vv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gv(n.ownerDocument.documentElement,n)){if(r!==null&&pf(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 s=n.textContent.length,o=Math.min(r.start,s);r=r.end===void 0?o:Math.min(r.end,s),!e.extend&&o>r&&(s=r,r=o,o=s),s=Yh(n,o);var i=Yh(n,r);s&&i&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var tb=Kn&&"documentMode"in document&&11>=document.documentMode,Bs=null,Dc=null,hi=null,Fc=!1;function Xh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fc||Bs==null||Bs!==il(r)||(r=Bs,"selectionStart"in r&&pf(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}),hi&&Ti(hi,r)||(hi=r,r=hl(Dc,"onSelect"),0<r.length&&(t=new df("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Bs)))}function Ca(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ws={animationend:Ca("Animation","AnimationEnd"),animationiteration:Ca("Animation","AnimationIteration"),animationstart:Ca("Animation","AnimationStart"),transitionend:Ca("Transition","TransitionEnd")},zu={},yv={};Kn&&(yv=document.createElement("div").style,"AnimationEvent"in window||(delete Ws.animationend.animation,delete Ws.animationiteration.animation,delete Ws.animationstart.animation),"TransitionEvent"in window||delete Ws.transitionend.transition);function Xl(e){if(zu[e])return zu[e];if(!Ws[e])return e;var t=Ws[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in yv)return zu[e]=t[n];return e}var xv=Xl("animationend"),wv=Xl("animationiteration"),bv=Xl("animationstart"),Sv=Xl("transitionend"),kv=new Map,Jh="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 Gr(e,t){kv.set(e,t),Ts(t,[e])}for(var $u=0;$u<Jh.length;$u++){var Vu=Jh[$u],nb=Vu.toLowerCase(),rb=Vu[0].toUpperCase()+Vu.slice(1);Gr(nb,"on"+rb)}Gr(xv,"onAnimationEnd");Gr(wv,"onAnimationIteration");Gr(bv,"onAnimationStart");Gr("dblclick","onDoubleClick");Gr("focusin","onFocus");Gr("focusout","onBlur");Gr(Sv,"onTransitionEnd");So("onMouseEnter",["mouseout","mouseover"]);So("onMouseLeave",["mouseout","mouseover"]);So("onPointerEnter",["pointerout","pointerover"]);So("onPointerLeave",["pointerout","pointerover"]);Ts("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ts("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ts("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ts("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ts("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ts("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oi="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(" "),sb=new Set("cancel close invalid load scroll toggle".split(" ").concat(oi));function ep(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,n1(r,t,void 0,e),e.currentTarget=null}function Cv(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&s.isPropagationStopped())break e;ep(s,a,u),o=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&s.isPropagationStopped())break e;ep(s,a,u),o=l}}}if(ll)throw e=Ac,ll=!1,Ac=null,e}function Ne(e,t){var n=t[Bc];n===void 0&&(n=t[Bc]=new Set);var r=e+"__bubble";n.has(r)||(Ev(t,e,2,!1),n.add(r))}function Uu(e,t,n){var r=0;t&&(r|=4),Ev(n,e,r,t)}var Ea="_reactListening"+Math.random().toString(36).slice(2);function Ri(e){if(!e[Ea]){e[Ea]=!0,Og.forEach(function(n){n!=="selectionchange"&&(sb.has(n)||Uu(n,!1,e),Uu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ea]||(t[Ea]=!0,Uu("selectionchange",!1,t))}}function Ev(e,t,n,r){switch(lv(t)){case 1:var s=y1;break;case 4:s=x1;break;default:s=uf}n=s.bind(null,t,n,e),s=void 0,!Oc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Bu(e,t,n,r,s){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;i=i.return}for(;a!==null;){if(i=ss(a),i===null)return;if(l=i.tag,l===5||l===6){r=o=i;continue e}a=a.parentNode}}r=r.return}Gg(function(){var u=o,c=sf(n),f=[];e:{var h=kv.get(e);if(h!==void 0){var p=df,b=e;switch(e){case"keypress":if(Qa(n)===0)break e;case"keydown":case"keyup":p=I1;break;case"focusin":b="focus",p=Lu;break;case"focusout":b="blur",p=Lu;break;case"beforeblur":case"afterblur":p=Lu;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":p=Uh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=S1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=D1;break;case xv:case wv:case bv:p=E1;break;case Sv:p=z1;break;case"scroll":p=w1;break;case"wheel":p=V1;break;case"copy":case"cut":case"paste":p=N1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Wh}var g=(t&4)!==0,w=!g&&e==="scroll",v=g?h!==null?h+"Capture":null:h;g=[];for(var m=u,x;m!==null;){x=m;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,v!==null&&(S=ki(m,v),S!=null&&g.push(Pi(m,S,x)))),w)break;m=m.return}0<g.length&&(h=new p(h,b,null,n,c),f.push({event:h,listeners:g}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Pc&&(b=n.relatedTarget||n.fromElement)&&(ss(b)||b[qn]))break e;if((p||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,p?(b=n.relatedTarget||n.toElement,p=u,b=b?ss(b):null,b!==null&&(w=Rs(b),b!==w||b.tag!==5&&b.tag!==6)&&(b=null)):(p=null,b=u),p!==b)){if(g=Uh,S="onMouseLeave",v="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(g=Wh,S="onPointerLeave",v="onPointerEnter",m="pointer"),w=p==null?h:Hs(p),x=b==null?h:Hs(b),h=new g(S,m+"leave",p,n,c),h.target=w,h.relatedTarget=x,S=null,ss(c)===u&&(g=new g(v,m+"enter",b,n,c),g.target=x,g.relatedTarget=w,S=g),w=S,p&&b)t:{for(g=p,v=b,m=0,x=g;x;x=Is(x))m++;for(x=0,S=v;S;S=Is(S))x++;for(;0<m-x;)g=Is(g),m--;for(;0<x-m;)v=Is(v),x--;for(;m--;){if(g===v||v!==null&&g===v.alternate)break t;g=Is(g),v=Is(v)}g=null}else g=null;p!==null&&tp(f,h,p,g,!1),b!==null&&w!==null&&tp(f,w,b,g,!0)}}e:{if(h=u?Hs(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var k=G1;else if(Zh(h))if(pv)k=X1;else{k=q1;var N=K1}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(k=Y1);if(k&&(k=k(e,u))){hv(f,k,n,c);break e}N&&N(e,h,u),e==="focusout"&&(N=h._wrapperState)&&N.controlled&&h.type==="number"&&Ec(h,"number",h.value)}switch(N=u?Hs(u):window,e){case"focusin":(Zh(N)||N.contentEditable==="true")&&(Bs=N,Dc=u,hi=null);break;case"focusout":hi=Dc=Bs=null;break;case"mousedown":Fc=!0;break;case"contextmenu":case"mouseup":case"dragend":Fc=!1,Xh(f,n,c);break;case"selectionchange":if(tb)break;case"keydown":case"keyup":Xh(f,n,c)}var T;if(hf)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else Us?dv(e,n)&&(j="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(j="onCompositionStart");j&&(cv&&n.locale!=="ko"&&(Us||j!=="onCompositionStart"?j==="onCompositionEnd"&&Us&&(T=uv()):(Nr=c,cf="value"in Nr?Nr.value:Nr.textContent,Us=!0)),N=hl(u,j),0<N.length&&(j=new Bh(j,e,null,n,c),f.push({event:j,listeners:N}),T?j.data=T:(T=fv(n),T!==null&&(j.data=T)))),(T=B1?W1(e,n):H1(e,n))&&(u=hl(u,"onBeforeInput"),0<u.length&&(c=new Bh("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=T))}Cv(f,t)})}function Pi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function hl(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=ki(e,n),o!=null&&r.unshift(Pi(e,o,s)),o=ki(e,t),o!=null&&r.push(Pi(e,o,s))),e=e.return}return r}function Is(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function tp(e,t,n,r,s){for(var o=t._reactName,i=[];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,s?(l=ki(n,o),l!=null&&i.unshift(Pi(n,l,a))):s||(l=ki(n,o),l!=null&&i.push(Pi(n,l,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var ob=/\r\n?/g,ib=/\u0000|\uFFFD/g;function np(e){return(typeof e=="string"?e:""+e).replace(ob,`
`).replace(ib,"")}function _a(e,t,n){if(t=np(t),np(e)!==t&&n)throw Error(D(425))}function pl(){}var zc=null,$c=null;function Vc(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 Uc=typeof setTimeout=="function"?setTimeout:void 0,ab=typeof clearTimeout=="function"?clearTimeout:void 0,rp=typeof Promise=="function"?Promise:void 0,lb=typeof queueMicrotask=="function"?queueMicrotask:typeof rp<"u"?function(e){return rp.resolve(null).then(e).catch(ub)}:Uc;function ub(e){setTimeout(function(){throw e})}function Wu(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),_i(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);_i(t)}function Ir(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 Do=Math.random().toString(36).slice(2),Cn="__reactFiber$"+Do,ji="__reactProps$"+Do,qn="__reactContainer$"+Do,Bc="__reactEvents$"+Do,cb="__reactListeners$"+Do,db="__reactHandles$"+Do;function ss(e){var t=e[Cn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qn]||n[Cn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=sp(e);e!==null;){if(n=e[Cn])return n;e=sp(e)}return t}e=n,n=e.parentNode}return null}function ta(e){return e=e[Cn]||e[qn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Hs(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(D(33))}function Jl(e){return e[ji]||null}var Wc=[],Qs=-1;function Kr(e){return{current:e}}function Te(e){0>Qs||(e.current=Wc[Qs],Wc[Qs]=null,Qs--)}function Ee(e,t){Qs++,Wc[Qs]=e.current,e.current=t}var Br={},lt=Kr(Br),Et=Kr(!1),xs=Br;function ko(e,t){var n=e.type.contextTypes;if(!n)return Br;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in n)s[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function _t(e){return e=e.childContextTypes,e!=null}function ml(){Te(Et),Te(lt)}function op(e,t,n){if(lt.current!==Br)throw Error(D(168));Ee(lt,t),Ee(Et,n)}function _v(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(D(108,Kw(e)||"Unknown",s));return Me({},n,r)}function gl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Br,xs=lt.current,Ee(lt,e),Ee(Et,Et.current),!0}function ip(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=_v(e,t,xs),r.__reactInternalMemoizedMergedChildContext=e,Te(Et),Te(lt),Ee(lt,e)):Te(Et),Ee(Et,n)}var Wn=null,eu=!1,Hu=!1;function Nv(e){Wn===null?Wn=[e]:Wn.push(e)}function fb(e){eu=!0,Nv(e)}function qr(){if(!Hu&&Wn!==null){Hu=!0;var e=0,t=be;try{var n=Wn;for(be=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Wn=null,eu=!1}catch(s){throw Wn!==null&&(Wn=Wn.slice(e+1)),Xg(of,qr),s}finally{be=t,Hu=!1}}return null}var Zs=[],Gs=0,vl=null,yl=0,Vt=[],Ut=0,ws=null,Qn=1,Zn="";function ts(e,t){Zs[Gs++]=yl,Zs[Gs++]=vl,vl=e,yl=t}function Tv(e,t,n){Vt[Ut++]=Qn,Vt[Ut++]=Zn,Vt[Ut++]=ws,ws=e;var r=Qn;e=Zn;var s=32-ln(r)-1;r&=~(1<<s),n+=1;var o=32-ln(t)+s;if(30<o){var i=s-s%5;o=(r&(1<<i)-1).toString(32),r>>=i,s-=i,Qn=1<<32-ln(t)+s|n<<s|r,Zn=o+e}else Qn=1<<o|n<<s|r,Zn=e}function mf(e){e.return!==null&&(ts(e,1),Tv(e,1,0))}function gf(e){for(;e===vl;)vl=Zs[--Gs],Zs[Gs]=null,yl=Zs[--Gs],Zs[Gs]=null;for(;e===ws;)ws=Vt[--Ut],Vt[Ut]=null,Zn=Vt[--Ut],Vt[Ut]=null,Qn=Vt[--Ut],Vt[Ut]=null}var Ot=null,jt=null,Pe=!1,sn=null;function Rv(e,t){var n=Bt(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 ap(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,Ot=e,jt=Ir(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ot=e,jt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ws!==null?{id:Qn,overflow:Zn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Bt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ot=e,jt=null,!0):!1;default:return!1}}function Hc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Qc(e){if(Pe){var t=jt;if(t){var n=t;if(!ap(e,t)){if(Hc(e))throw Error(D(418));t=Ir(n.nextSibling);var r=Ot;t&&ap(e,t)?Rv(r,n):(e.flags=e.flags&-4097|2,Pe=!1,Ot=e)}}else{if(Hc(e))throw Error(D(418));e.flags=e.flags&-4097|2,Pe=!1,Ot=e}}}function lp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ot=e}function Na(e){if(e!==Ot)return!1;if(!Pe)return lp(e),Pe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Vc(e.type,e.memoizedProps)),t&&(t=jt)){if(Hc(e))throw Pv(),Error(D(418));for(;t;)Rv(e,t),t=Ir(t.nextSibling)}if(lp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){jt=Ir(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}jt=null}}else jt=Ot?Ir(e.stateNode.nextSibling):null;return!0}function Pv(){for(var e=jt;e;)e=Ir(e.nextSibling)}function Co(){jt=Ot=null,Pe=!1}function vf(e){sn===null?sn=[e]:sn.push(e)}var hb=sr.ReactCurrentBatchConfig;function Ko(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(D(309));var r=n.stateNode}if(!r)throw Error(D(147,e));var s=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var a=s.refs;i===null?delete a[o]:a[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(D(284));if(!n._owner)throw Error(D(290,e))}return e}function Ta(e,t){throw e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function up(e){var t=e._init;return t(e._payload)}function jv(e){function t(v,m){if(e){var x=v.deletions;x===null?(v.deletions=[m],v.flags|=16):x.push(m)}}function n(v,m){if(!e)return null;for(;m!==null;)t(v,m),m=m.sibling;return null}function r(v,m){for(v=new Map;m!==null;)m.key!==null?v.set(m.key,m):v.set(m.index,m),m=m.sibling;return v}function s(v,m){return v=Fr(v,m),v.index=0,v.sibling=null,v}function o(v,m,x){return v.index=x,e?(x=v.alternate,x!==null?(x=x.index,x<m?(v.flags|=2,m):x):(v.flags|=2,m)):(v.flags|=1048576,m)}function i(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,m,x,S){return m===null||m.tag!==6?(m=Xu(x,v.mode,S),m.return=v,m):(m=s(m,x),m.return=v,m)}function l(v,m,x,S){var k=x.type;return k===Vs?c(v,m,x.props.children,S,x.key):m!==null&&(m.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===hr&&up(k)===m.type)?(S=s(m,x.props),S.ref=Ko(v,m,x),S.return=v,S):(S=Ja(x.type,x.key,x.props,null,v.mode,S),S.ref=Ko(v,m,x),S.return=v,S)}function u(v,m,x,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==x.containerInfo||m.stateNode.implementation!==x.implementation?(m=Ju(x,v.mode,S),m.return=v,m):(m=s(m,x.children||[]),m.return=v,m)}function c(v,m,x,S,k){return m===null||m.tag!==7?(m=ys(x,v.mode,S,k),m.return=v,m):(m=s(m,x),m.return=v,m)}function f(v,m,x){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Xu(""+m,v.mode,x),m.return=v,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case va:return x=Ja(m.type,m.key,m.props,null,v.mode,x),x.ref=Ko(v,null,m),x.return=v,x;case $s:return m=Ju(m,v.mode,x),m.return=v,m;case hr:var S=m._init;return f(v,S(m._payload),x)}if(ri(m)||Wo(m))return m=ys(m,v.mode,x,null),m.return=v,m;Ta(v,m)}return null}function h(v,m,x,S){var k=m!==null?m.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return k!==null?null:a(v,m,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case va:return x.key===k?l(v,m,x,S):null;case $s:return x.key===k?u(v,m,x,S):null;case hr:return k=x._init,h(v,m,k(x._payload),S)}if(ri(x)||Wo(x))return k!==null?null:c(v,m,x,S,null);Ta(v,x)}return null}function p(v,m,x,S,k){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(x)||null,a(m,v,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case va:return v=v.get(S.key===null?x:S.key)||null,l(m,v,S,k);case $s:return v=v.get(S.key===null?x:S.key)||null,u(m,v,S,k);case hr:var N=S._init;return p(v,m,x,N(S._payload),k)}if(ri(S)||Wo(S))return v=v.get(x)||null,c(m,v,S,k,null);Ta(m,S)}return null}function b(v,m,x,S){for(var k=null,N=null,T=m,j=m=0,F=null;T!==null&&j<x.length;j++){T.index>j?(F=T,T=null):F=T.sibling;var M=h(v,T,x[j],S);if(M===null){T===null&&(T=F);break}e&&T&&M.alternate===null&&t(v,T),m=o(M,m,j),N===null?k=M:N.sibling=M,N=M,T=F}if(j===x.length)return n(v,T),Pe&&ts(v,j),k;if(T===null){for(;j<x.length;j++)T=f(v,x[j],S),T!==null&&(m=o(T,m,j),N===null?k=T:N.sibling=T,N=T);return Pe&&ts(v,j),k}for(T=r(v,T);j<x.length;j++)F=p(T,v,j,x[j],S),F!==null&&(e&&F.alternate!==null&&T.delete(F.key===null?j:F.key),m=o(F,m,j),N===null?k=F:N.sibling=F,N=F);return e&&T.forEach(function(q){return t(v,q)}),Pe&&ts(v,j),k}function g(v,m,x,S){var k=Wo(x);if(typeof k!="function")throw Error(D(150));if(x=k.call(x),x==null)throw Error(D(151));for(var N=k=null,T=m,j=m=0,F=null,M=x.next();T!==null&&!M.done;j++,M=x.next()){T.index>j?(F=T,T=null):F=T.sibling;var q=h(v,T,M.value,S);if(q===null){T===null&&(T=F);break}e&&T&&q.alternate===null&&t(v,T),m=o(q,m,j),N===null?k=q:N.sibling=q,N=q,T=F}if(M.done)return n(v,T),Pe&&ts(v,j),k;if(T===null){for(;!M.done;j++,M=x.next())M=f(v,M.value,S),M!==null&&(m=o(M,m,j),N===null?k=M:N.sibling=M,N=M);return Pe&&ts(v,j),k}for(T=r(v,T);!M.done;j++,M=x.next())M=p(T,v,j,M.value,S),M!==null&&(e&&M.alternate!==null&&T.delete(M.key===null?j:M.key),m=o(M,m,j),N===null?k=M:N.sibling=M,N=M);return e&&T.forEach(function(A){return t(v,A)}),Pe&&ts(v,j),k}function w(v,m,x,S){if(typeof x=="object"&&x!==null&&x.type===Vs&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case va:e:{for(var k=x.key,N=m;N!==null;){if(N.key===k){if(k=x.type,k===Vs){if(N.tag===7){n(v,N.sibling),m=s(N,x.props.children),m.return=v,v=m;break e}}else if(N.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===hr&&up(k)===N.type){n(v,N.sibling),m=s(N,x.props),m.ref=Ko(v,N,x),m.return=v,v=m;break e}n(v,N);break}else t(v,N);N=N.sibling}x.type===Vs?(m=ys(x.props.children,v.mode,S,x.key),m.return=v,v=m):(S=Ja(x.type,x.key,x.props,null,v.mode,S),S.ref=Ko(v,m,x),S.return=v,v=S)}return i(v);case $s:e:{for(N=x.key;m!==null;){if(m.key===N)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(v,m.sibling),m=s(m,x.children||[]),m.return=v,v=m;break e}else{n(v,m);break}else t(v,m);m=m.sibling}m=Ju(x,v.mode,S),m.return=v,v=m}return i(v);case hr:return N=x._init,w(v,m,N(x._payload),S)}if(ri(x))return b(v,m,x,S);if(Wo(x))return g(v,m,x,S);Ta(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(v,m.sibling),m=s(m,x),m.return=v,v=m):(n(v,m),m=Xu(x,v.mode,S),m.return=v,v=m),i(v)):n(v,m)}return w}var Eo=jv(!0),Ov=jv(!1),xl=Kr(null),wl=null,Ks=null,yf=null;function xf(){yf=Ks=wl=null}function wf(e){var t=xl.current;Te(xl),e._currentValue=t}function Zc(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 ro(e,t){wl=e,yf=Ks=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ct=!0),e.firstContext=null)}function Ht(e){var t=e._currentValue;if(yf!==e)if(e={context:e,memoizedValue:t,next:null},Ks===null){if(wl===null)throw Error(D(308));Ks=e,wl.dependencies={lanes:0,firstContext:e}}else Ks=Ks.next=e;return t}var os=null;function bf(e){os===null?os=[e]:os.push(e)}function Av(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,bf(t)):(n.next=s.next,s.next=n),t.interleaved=n,Yn(e,r)}function Yn(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 pr=!1;function Sf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Iv(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 Gn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ve&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Yn(e,n)}return s=r.interleaved,s===null?(t.next=t,bf(r)):(t.next=s.next,s.next=t),r.interleaved=t,Yn(e,n)}function Za(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,af(e,n)}}function cp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?s=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:o,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 bl(e,t,n,r){var s=e.updateQueue;pr=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?o=u:i.next=u,i=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==i&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var f=s.baseState;i=0,c=u=l=null,a=o;do{var h=a.lane,p=a.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,g=a;switch(h=t,p=n,g.tag){case 1:if(b=g.payload,typeof b=="function"){f=b.call(p,f,h);break e}f=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=g.payload,h=typeof b=="function"?b.call(p,f,h):b,h==null)break e;f=Me({},f,h);break e;case 2:pr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=p,l=f):c=c.next=p,i|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(c===null&&(l=f),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=c,t=s.shared.interleaved,t!==null){s=t;do i|=s.lane,s=s.next;while(s!==t)}else o===null&&(s.shared.lanes=0);Ss|=i,e.lanes=i,e.memoizedState=f}}function dp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(D(191,s));s.call(r)}}}var na={},Rn=Kr(na),Oi=Kr(na),Ai=Kr(na);function is(e){if(e===na)throw Error(D(174));return e}function kf(e,t){switch(Ee(Ai,t),Ee(Oi,e),Ee(Rn,na),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Nc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Nc(t,e)}Te(Rn),Ee(Rn,t)}function _o(){Te(Rn),Te(Oi),Te(Ai)}function Mv(e){is(Ai.current);var t=is(Rn.current),n=Nc(t,e.type);t!==n&&(Ee(Oi,e),Ee(Rn,n))}function Cf(e){Oi.current===e&&(Te(Rn),Te(Oi))}var Ae=Kr(0);function Sl(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 Qu=[];function Ef(){for(var e=0;e<Qu.length;e++)Qu[e]._workInProgressVersionPrimary=null;Qu.length=0}var Ga=sr.ReactCurrentDispatcher,Zu=sr.ReactCurrentBatchConfig,bs=0,Ie=null,Ze=null,Xe=null,kl=!1,pi=!1,Ii=0,pb=0;function st(){throw Error(D(321))}function _f(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cn(e[n],t[n]))return!1;return!0}function Nf(e,t,n,r,s,o){if(bs=o,Ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ga.current=e===null||e.memoizedState===null?yb:xb,e=n(r,s),pi){o=0;do{if(pi=!1,Ii=0,25<=o)throw Error(D(301));o+=1,Xe=Ze=null,t.updateQueue=null,Ga.current=wb,e=n(r,s)}while(pi)}if(Ga.current=Cl,t=Ze!==null&&Ze.next!==null,bs=0,Xe=Ze=Ie=null,kl=!1,t)throw Error(D(300));return e}function Tf(){var e=Ii!==0;return Ii=0,e}function xn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?Ie.memoizedState=Xe=e:Xe=Xe.next=e,Xe}function Qt(){if(Ze===null){var e=Ie.alternate;e=e!==null?e.memoizedState:null}else e=Ze.next;var t=Xe===null?Ie.memoizedState:Xe.next;if(t!==null)Xe=t,Ze=e;else{if(e===null)throw Error(D(310));Ze=e,e={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},Xe===null?Ie.memoizedState=Xe=e:Xe=Xe.next=e}return Xe}function Mi(e,t){return typeof t=="function"?t(e):t}function Gu(e){var t=Qt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=Ze,s=r.baseQueue,o=n.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}r.baseQueue=s=o,n.pending=null}if(s!==null){o=s.next,r=r.baseState;var a=i=null,l=null,u=o;do{var c=u.lane;if((bs&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 f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,i=r):l=l.next=f,Ie.lanes|=c,Ss|=c}u=u.next}while(u!==null&&u!==o);l===null?i=r:l.next=a,cn(r,t.memoizedState)||(Ct=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do o=s.lane,Ie.lanes|=o,Ss|=o,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ku(e){var t=Qt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);cn(o,t.memoizedState)||(Ct=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Lv(){}function Dv(e,t){var n=Ie,r=Qt(),s=t(),o=!cn(r.memoizedState,s);if(o&&(r.memoizedState=s,Ct=!0),r=r.queue,Rf($v.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Xe!==null&&Xe.memoizedState.tag&1){if(n.flags|=2048,Li(9,zv.bind(null,n,r,s,t),void 0,null),Je===null)throw Error(D(349));bs&30||Fv(n,t,s)}return s}function Fv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ie.updateQueue,t===null?(t={lastEffect:null,stores:null},Ie.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function zv(e,t,n,r){t.value=n,t.getSnapshot=r,Vv(t)&&Uv(e)}function $v(e,t,n){return n(function(){Vv(t)&&Uv(e)})}function Vv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!cn(e,n)}catch{return!0}}function Uv(e){var t=Yn(e,1);t!==null&&un(t,e,1,-1)}function fp(e){var t=xn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mi,lastRenderedState:e},t.queue=e,e=e.dispatch=vb.bind(null,Ie,e),[t.memoizedState,e]}function Li(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ie.updateQueue,t===null?(t={lastEffect:null,stores:null},Ie.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 Bv(){return Qt().memoizedState}function Ka(e,t,n,r){var s=xn();Ie.flags|=e,s.memoizedState=Li(1|t,n,void 0,r===void 0?null:r)}function tu(e,t,n,r){var s=Qt();r=r===void 0?null:r;var o=void 0;if(Ze!==null){var i=Ze.memoizedState;if(o=i.destroy,r!==null&&_f(r,i.deps)){s.memoizedState=Li(t,n,o,r);return}}Ie.flags|=e,s.memoizedState=Li(1|t,n,o,r)}function hp(e,t){return Ka(8390656,8,e,t)}function Rf(e,t){return tu(2048,8,e,t)}function Wv(e,t){return tu(4,2,e,t)}function Hv(e,t){return tu(4,4,e,t)}function Qv(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 Zv(e,t,n){return n=n!=null?n.concat([e]):null,tu(4,4,Qv.bind(null,t,e),n)}function Pf(){}function Gv(e,t){var n=Qt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&_f(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Kv(e,t){var n=Qt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&_f(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function qv(e,t,n){return bs&21?(cn(n,t)||(n=tv(),Ie.lanes|=n,Ss|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ct=!0),e.memoizedState=n)}function mb(e,t){var n=be;be=n!==0&&4>n?n:4,e(!0);var r=Zu.transition;Zu.transition={};try{e(!1),t()}finally{be=n,Zu.transition=r}}function Yv(){return Qt().memoizedState}function gb(e,t,n){var r=Dr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xv(e))Jv(t,n);else if(n=Av(e,t,n,r),n!==null){var s=pt();un(n,e,r,s),ey(n,t,r)}}function vb(e,t,n){var r=Dr(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xv(e))Jv(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,n);if(s.hasEagerState=!0,s.eagerState=a,cn(a,i)){var l=t.interleaved;l===null?(s.next=s,bf(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=Av(e,t,s,r),n!==null&&(s=pt(),un(n,e,r,s),ey(n,t,r))}}function Xv(e){var t=e.alternate;return e===Ie||t!==null&&t===Ie}function Jv(e,t){pi=kl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ey(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,af(e,n)}}var Cl={readContext:Ht,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useInsertionEffect:st,useLayoutEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useMutableSource:st,useSyncExternalStore:st,useId:st,unstable_isNewReconciler:!1},yb={readContext:Ht,useCallback:function(e,t){return xn().memoizedState=[e,t===void 0?null:t],e},useContext:Ht,useEffect:hp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ka(4194308,4,Qv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ka(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ka(4,2,e,t)},useMemo:function(e,t){var n=xn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xn();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=gb.bind(null,Ie,e),[r.memoizedState,e]},useRef:function(e){var t=xn();return e={current:e},t.memoizedState=e},useState:fp,useDebugValue:Pf,useDeferredValue:function(e){return xn().memoizedState=e},useTransition:function(){var e=fp(!1),t=e[0];return e=mb.bind(null,e[1]),xn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ie,s=xn();if(Pe){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),Je===null)throw Error(D(349));bs&30||Fv(r,t,n)}s.memoizedState=n;var o={value:n,getSnapshot:t};return s.queue=o,hp($v.bind(null,r,o,e),[e]),r.flags|=2048,Li(9,zv.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=xn(),t=Je.identifierPrefix;if(Pe){var n=Zn,r=Qn;n=(r&~(1<<32-ln(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ii++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=pb++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},xb={readContext:Ht,useCallback:Gv,useContext:Ht,useEffect:Rf,useImperativeHandle:Zv,useInsertionEffect:Wv,useLayoutEffect:Hv,useMemo:Kv,useReducer:Gu,useRef:Bv,useState:function(){return Gu(Mi)},useDebugValue:Pf,useDeferredValue:function(e){var t=Qt();return qv(t,Ze.memoizedState,e)},useTransition:function(){var e=Gu(Mi)[0],t=Qt().memoizedState;return[e,t]},useMutableSource:Lv,useSyncExternalStore:Dv,useId:Yv,unstable_isNewReconciler:!1},wb={readContext:Ht,useCallback:Gv,useContext:Ht,useEffect:Rf,useImperativeHandle:Zv,useInsertionEffect:Wv,useLayoutEffect:Hv,useMemo:Kv,useReducer:Ku,useRef:Bv,useState:function(){return Ku(Mi)},useDebugValue:Pf,useDeferredValue:function(e){var t=Qt();return Ze===null?t.memoizedState=e:qv(t,Ze.memoizedState,e)},useTransition:function(){var e=Ku(Mi)[0],t=Qt().memoizedState;return[e,t]},useMutableSource:Lv,useSyncExternalStore:Dv,useId:Yv,unstable_isNewReconciler:!1};function en(e,t){if(e&&e.defaultProps){t=Me({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Gc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Me({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var nu={isMounted:function(e){return(e=e._reactInternals)?Rs(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pt(),s=Dr(e),o=Gn(r,s);o.payload=t,n!=null&&(o.callback=n),t=Mr(e,o,s),t!==null&&(un(t,e,s,r),Za(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pt(),s=Dr(e),o=Gn(r,s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Mr(e,o,s),t!==null&&(un(t,e,s,r),Za(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pt(),r=Dr(e),s=Gn(n,r);s.tag=2,t!=null&&(s.callback=t),t=Mr(e,s,r),t!==null&&(un(t,e,r,n),Za(t,e,r))}};function pp(e,t,n,r,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!Ti(n,r)||!Ti(s,o):!0}function ty(e,t,n){var r=!1,s=Br,o=t.contextType;return typeof o=="object"&&o!==null?o=Ht(o):(s=_t(t)?xs:lt.current,r=t.contextTypes,o=(r=r!=null)?ko(e,s):Br),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=nu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function mp(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&&nu.enqueueReplaceState(t,t.state,null)}function Kc(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Sf(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=Ht(o):(o=_t(t)?xs:lt.current,s.context=ko(e,o)),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Gc(e,t,o,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&nu.enqueueReplaceState(s,s.state,null),bl(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function No(e,t){try{var n="",r=t;do n+=Gw(r),r=r.return;while(r);var s=n}catch(o){s=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:s,digest:null}}function qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function qc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var bb=typeof WeakMap=="function"?WeakMap:Map;function ny(e,t,n){n=Gn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){_l||(_l=!0,id=r),qc(e,t)},n}function ry(e,t,n){n=Gn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){qc(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){qc(e,t),typeof r!="function"&&(Lr===null?Lr=new Set([this]):Lr.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function gp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new bb;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=Mb.bind(null,e,t,n),t.then(e,e))}function vp(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 yp(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,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=Gn(-1,1),t.tag=2,Mr(n,t,1))),n.lanes|=1),e)}var Sb=sr.ReactCurrentOwner,Ct=!1;function dt(e,t,n,r){t.child=e===null?Ov(t,null,n,r):Eo(t,e.child,n,r)}function xp(e,t,n,r,s){n=n.render;var o=t.ref;return ro(t,s),r=Nf(e,t,n,r,o,s),n=Tf(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Xn(e,t,s)):(Pe&&n&&mf(t),t.flags|=1,dt(e,t,r,s),t.child)}function wp(e,t,n,r,s){if(e===null){var o=n.type;return typeof o=="function"&&!Ff(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,sy(e,t,o,r,s)):(e=Ja(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&s)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ti,n(i,r)&&e.ref===t.ref)return Xn(e,t,s)}return t.flags|=1,e=Fr(o,r),e.ref=t.ref,e.return=t,t.child=e}function sy(e,t,n,r,s){if(e!==null){var o=e.memoizedProps;if(Ti(o,r)&&e.ref===t.ref)if(Ct=!1,t.pendingProps=r=o,(e.lanes&s)!==0)e.flags&131072&&(Ct=!0);else return t.lanes=e.lanes,Xn(e,t,s)}return Yc(e,t,n,r,s)}function oy(e,t,n){var r=t.pendingProps,s=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ee(Ys,Rt),Rt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ee(Ys,Rt),Rt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ee(Ys,Rt),Rt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ee(Ys,Rt),Rt|=r;return dt(e,t,s,n),t.child}function iy(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yc(e,t,n,r,s){var o=_t(n)?xs:lt.current;return o=ko(t,o),ro(t,s),n=Nf(e,t,n,r,o,s),r=Tf(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Xn(e,t,s)):(Pe&&r&&mf(t),t.flags|=1,dt(e,t,n,s),t.child)}function bp(e,t,n,r,s){if(_t(n)){var o=!0;gl(t)}else o=!1;if(ro(t,s),t.stateNode===null)qa(e,t),ty(t,n,r),Kc(t,n,r,s),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ht(u):(u=_t(n)?xs:lt.current,u=ko(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==u)&&mp(t,i,r,u),pr=!1;var h=t.memoizedState;i.state=h,bl(t,r,i,s),l=t.memoizedState,a!==r||h!==l||Et.current||pr?(typeof c=="function"&&(Gc(t,n,c,r),l=t.memoizedState),(a=pr||pp(t,n,a,r,h,l,u))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=u,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Iv(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:en(t.type,a),i.props=u,f=t.pendingProps,h=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ht(l):(l=_t(n)?xs:lt.current,l=ko(t,l));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==f||h!==l)&&mp(t,i,r,l),pr=!1,h=t.memoizedState,i.state=h,bl(t,r,i,s);var b=t.memoizedState;a!==f||h!==b||Et.current||pr?(typeof p=="function"&&(Gc(t,n,p,r),b=t.memoizedState),(u=pr||pp(t,n,u,r,h,b,l)||!1)?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,b,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,b,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),i.props=r,i.state=b,i.context=l,r=u):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Xc(e,t,n,r,o,s)}function Xc(e,t,n,r,s,o){iy(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return s&&ip(t,n,!1),Xn(e,t,o);r=t.stateNode,Sb.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Eo(t,e.child,null,o),t.child=Eo(t,null,a,o)):dt(e,t,a,o),t.memoizedState=r.state,s&&ip(t,n,!0),t.child}function ay(e){var t=e.stateNode;t.pendingContext?op(e,t.pendingContext,t.pendingContext!==t.context):t.context&&op(e,t.context,!1),kf(e,t.containerInfo)}function Sp(e,t,n,r,s){return Co(),vf(s),t.flags|=256,dt(e,t,n,r),t.child}var Jc={dehydrated:null,treeContext:null,retryLane:0};function ed(e){return{baseLanes:e,cachePool:null,transitions:null}}function ly(e,t,n){var r=t.pendingProps,s=Ae.current,o=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),Ee(Ae,s&1),e===null)return Qc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=ou(i,r,0,null),e=ys(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ed(n),t.memoizedState=Jc,e):jf(t,i));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return kb(e,t,i,r,a,s,n);if(o){o=r.fallback,i=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Fr(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?o=Fr(a,o):(o=ys(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?ed(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=Jc,r}return o=e.child,e=o.sibling,r=Fr(o,{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 jf(e,t){return t=ou({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ra(e,t,n,r){return r!==null&&vf(r),Eo(t,e.child,null,n),e=jf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kb(e,t,n,r,s,o,i){if(n)return t.flags&256?(t.flags&=-257,r=qu(Error(D(422))),Ra(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,s=t.mode,r=ou({mode:"visible",children:r.children},s,0,null),o=ys(o,s,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Eo(t,e.child,null,i),t.child.memoizedState=ed(i),t.memoizedState=Jc,o);if(!(t.mode&1))return Ra(e,t,i,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(D(419)),r=qu(o,r,void 0),Ra(e,t,i,r)}if(a=(i&e.childLanes)!==0,Ct||a){if(r=Je,r!==null){switch(i&-i){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|i)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,Yn(e,s),un(r,e,s,-1))}return Df(),r=qu(Error(D(421))),Ra(e,t,i,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=Lb.bind(null,e),s._reactRetry=t,null):(e=o.treeContext,jt=Ir(s.nextSibling),Ot=t,Pe=!0,sn=null,e!==null&&(Vt[Ut++]=Qn,Vt[Ut++]=Zn,Vt[Ut++]=ws,Qn=e.id,Zn=e.overflow,ws=t),t=jf(t,r.children),t.flags|=4096,t)}function kp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Zc(e.return,t,n)}function Yu(e,t,n,r,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=s)}function uy(e,t,n){var r=t.pendingProps,s=r.revealOrder,o=r.tail;if(dt(e,t,r.children,n),r=Ae.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kp(e,n,t);else if(e.tag===19)kp(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(Ee(Ae,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Sl(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Yu(t,!1,s,n,o);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Sl(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Yu(t,!0,n,null,o);break;case"together":Yu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qa(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ss|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=Fr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Fr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Cb(e,t,n){switch(t.tag){case 3:ay(t),Co();break;case 5:Mv(t);break;case 1:_t(t.type)&&gl(t);break;case 4:kf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;Ee(xl,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ee(Ae,Ae.current&1),t.flags|=128,null):n&t.child.childLanes?ly(e,t,n):(Ee(Ae,Ae.current&1),e=Xn(e,t,n),e!==null?e.sibling:null);Ee(Ae,Ae.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return uy(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Ee(Ae,Ae.current),r)break;return null;case 22:case 23:return t.lanes=0,oy(e,t,n)}return Xn(e,t,n)}var cy,td,dy,fy;cy=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}};td=function(){};dy=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,is(Rn.current);var o=null;switch(n){case"input":s=kc(e,s),r=kc(e,r),o=[];break;case"select":s=Me({},s,{value:void 0}),r=Me({},r,{value:void 0}),o=[];break;case"textarea":s=_c(e,s),r=_c(e,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=pl)}Tc(n,r);var i;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(bi.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(bi.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Ne("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};fy=function(e,t,n,r){n!==r&&(t.flags|=4)};function qo(e,t){if(!Pe)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 ot(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Eb(e,t,n){var r=t.pendingProps;switch(gf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(t),null;case 1:return _t(t.type)&&ml(),ot(t),null;case 3:return r=t.stateNode,_o(),Te(Et),Te(lt),Ef(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Na(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,sn!==null&&(ud(sn),sn=null))),td(e,t),ot(t),null;case 5:Cf(t);var s=is(Ai.current);if(n=t.type,e!==null&&t.stateNode!=null)dy(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(D(166));return ot(t),null}if(e=is(Rn.current),Na(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Cn]=t,r[ji]=o,e=(t.mode&1)!==0,n){case"dialog":Ne("cancel",r),Ne("close",r);break;case"iframe":case"object":case"embed":Ne("load",r);break;case"video":case"audio":for(s=0;s<oi.length;s++)Ne(oi[s],r);break;case"source":Ne("error",r);break;case"img":case"image":case"link":Ne("error",r),Ne("load",r);break;case"details":Ne("toggle",r);break;case"input":Oh(r,o),Ne("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Ne("invalid",r);break;case"textarea":Ih(r,o),Ne("invalid",r)}Tc(n,o),s=null;for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];i==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&_a(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&_a(r.textContent,a,e),s=["children",""+a]):bi.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&Ne("scroll",r)}switch(n){case"input":ya(r),Ah(r,o,!0);break;case"textarea":ya(r),Mh(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=pl)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=$g(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Cn]=t,e[ji]=r,cy(e,t,!1,!1),t.stateNode=e;e:{switch(i=Rc(n,r),n){case"dialog":Ne("cancel",e),Ne("close",e),s=r;break;case"iframe":case"object":case"embed":Ne("load",e),s=r;break;case"video":case"audio":for(s=0;s<oi.length;s++)Ne(oi[s],e);s=r;break;case"source":Ne("error",e),s=r;break;case"img":case"image":case"link":Ne("error",e),Ne("load",e),s=r;break;case"details":Ne("toggle",e),s=r;break;case"input":Oh(e,r),s=kc(e,r),Ne("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Me({},r,{value:void 0}),Ne("invalid",e);break;case"textarea":Ih(e,r),s=_c(e,r),Ne("invalid",e);break;default:s=r}Tc(n,s),a=s;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?Bg(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Vg(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Si(e,l):typeof l=="number"&&Si(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(bi.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Ne("scroll",e):l!=null&&ef(e,o,l,i))}switch(n){case"input":ya(e),Ah(e,r,!1);break;case"textarea":ya(e),Mh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ur(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Js(e,!!r.multiple,o,!1):r.defaultValue!=null&&Js(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=pl)}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 ot(t),null;case 6:if(e&&t.stateNode!=null)fy(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(D(166));if(n=is(Ai.current),is(Rn.current),Na(t)){if(r=t.stateNode,n=t.memoizedProps,r[Cn]=t,(o=r.nodeValue!==n)&&(e=Ot,e!==null))switch(e.tag){case 3:_a(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&_a(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Cn]=t,t.stateNode=r}return ot(t),null;case 13:if(Te(Ae),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Pe&&jt!==null&&t.mode&1&&!(t.flags&128))Pv(),Co(),t.flags|=98560,o=!1;else if(o=Na(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(D(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(D(317));o[Cn]=t}else Co(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ot(t),o=!1}else sn!==null&&(ud(sn),sn=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ae.current&1?Ge===0&&(Ge=3):Df())),t.updateQueue!==null&&(t.flags|=4),ot(t),null);case 4:return _o(),td(e,t),e===null&&Ri(t.stateNode.containerInfo),ot(t),null;case 10:return wf(t.type._context),ot(t),null;case 17:return _t(t.type)&&ml(),ot(t),null;case 19:if(Te(Ae),o=t.memoizedState,o===null)return ot(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)qo(o,!1);else{if(Ge!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Sl(e),i!==null){for(t.flags|=128,qo(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ee(Ae,Ae.current&1|2),t.child}e=e.sibling}o.tail!==null&&$e()>To&&(t.flags|=128,r=!0,qo(o,!1),t.lanes=4194304)}else{if(!r)if(e=Sl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),qo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Pe)return ot(t),null}else 2*$e()-o.renderingStartTime>To&&n!==1073741824&&(t.flags|=128,r=!0,qo(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=$e(),t.sibling=null,n=Ae.current,Ee(Ae,r?n&1|2:n&1),t):(ot(t),null);case 22:case 23:return Lf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Rt&1073741824&&(ot(t),t.subtreeFlags&6&&(t.flags|=8192)):ot(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function _b(e,t){switch(gf(t),t.tag){case 1:return _t(t.type)&&ml(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _o(),Te(Et),Te(lt),Ef(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Cf(t),null;case 13:if(Te(Ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));Co()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Te(Ae),null;case 4:return _o(),null;case 10:return wf(t.type._context),null;case 22:case 23:return Lf(),null;case 24:return null;default:return null}}var Pa=!1,at=!1,Nb=typeof WeakSet=="function"?WeakSet:Set,Z=null;function qs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ze(e,t,r)}else n.current=null}function nd(e,t,n){try{n()}catch(r){ze(e,t,r)}}var Cp=!1;function Tb(e,t){if(zc=dl,e=vv(),pf(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 s=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,u=0,c=0,f=e,h=null;t:for(;;){for(var p;f!==n||s!==0&&f.nodeType!==3||(a=i+s),f!==o||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++u===s&&(a=i),h===o&&++c===r&&(l=i),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for($c={focusedElem:e,selectionRange:n},dl=!1,Z=t;Z!==null;)if(t=Z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var g=b.memoizedProps,w=b.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:en(t.type,g),w);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(S){ze(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return b=Cp,Cp=!1,b}function mi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var o=s.destroy;s.destroy=void 0,o!==void 0&&nd(t,n,o)}s=s.next}while(s!==r)}}function ru(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 rd(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 hy(e){var t=e.alternate;t!==null&&(e.alternate=null,hy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Cn],delete t[ji],delete t[Bc],delete t[cb],delete t[db])),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 py(e){return e.tag===5||e.tag===3||e.tag===4}function Ep(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||py(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 sd(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=pl));else if(r!==4&&(e=e.child,e!==null))for(sd(e,t,n),e=e.sibling;e!==null;)sd(e,t,n),e=e.sibling}function od(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(od(e,t,n),e=e.sibling;e!==null;)od(e,t,n),e=e.sibling}var et=null,rn=!1;function lr(e,t,n){for(n=n.child;n!==null;)my(e,t,n),n=n.sibling}function my(e,t,n){if(Tn&&typeof Tn.onCommitFiberUnmount=="function")try{Tn.onCommitFiberUnmount(Kl,n)}catch{}switch(n.tag){case 5:at||qs(n,t);case 6:var r=et,s=rn;et=null,lr(e,t,n),et=r,rn=s,et!==null&&(rn?(e=et,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):et.removeChild(n.stateNode));break;case 18:et!==null&&(rn?(e=et,n=n.stateNode,e.nodeType===8?Wu(e.parentNode,n):e.nodeType===1&&Wu(e,n),_i(e)):Wu(et,n.stateNode));break;case 4:r=et,s=rn,et=n.stateNode.containerInfo,rn=!0,lr(e,t,n),et=r,rn=s;break;case 0:case 11:case 14:case 15:if(!at&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var o=s,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&nd(n,t,i),s=s.next}while(s!==r)}lr(e,t,n);break;case 1:if(!at&&(qs(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ze(n,t,a)}lr(e,t,n);break;case 21:lr(e,t,n);break;case 22:n.mode&1?(at=(r=at)||n.memoizedState!==null,lr(e,t,n),at=r):lr(e,t,n);break;default:lr(e,t,n)}}function _p(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Nb),t.forEach(function(r){var s=Db.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Xt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var o=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:et=a.stateNode,rn=!1;break e;case 3:et=a.stateNode.containerInfo,rn=!0;break e;case 4:et=a.stateNode.containerInfo,rn=!0;break e}a=a.return}if(et===null)throw Error(D(160));my(o,i,s),et=null,rn=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){ze(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)gy(t,e),t=t.sibling}function gy(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Xt(t,e),yn(e),r&4){try{mi(3,e,e.return),ru(3,e)}catch(g){ze(e,e.return,g)}try{mi(5,e,e.return)}catch(g){ze(e,e.return,g)}}break;case 1:Xt(t,e),yn(e),r&512&&n!==null&&qs(n,n.return);break;case 5:if(Xt(t,e),yn(e),r&512&&n!==null&&qs(n,n.return),e.flags&32){var s=e.stateNode;try{Si(s,"")}catch(g){ze(e,e.return,g)}}if(r&4&&(s=e.stateNode,s!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&Fg(s,o),Rc(a,i);var u=Rc(a,o);for(i=0;i<l.length;i+=2){var c=l[i],f=l[i+1];c==="style"?Bg(s,f):c==="dangerouslySetInnerHTML"?Vg(s,f):c==="children"?Si(s,f):ef(s,c,f,u)}switch(a){case"input":Cc(s,o);break;case"textarea":zg(s,o);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?Js(s,!!o.multiple,p,!1):h!==!!o.multiple&&(o.defaultValue!=null?Js(s,!!o.multiple,o.defaultValue,!0):Js(s,!!o.multiple,o.multiple?[]:"",!1))}s[ji]=o}catch(g){ze(e,e.return,g)}}break;case 6:if(Xt(t,e),yn(e),r&4){if(e.stateNode===null)throw Error(D(162));s=e.stateNode,o=e.memoizedProps;try{s.nodeValue=o}catch(g){ze(e,e.return,g)}}break;case 3:if(Xt(t,e),yn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{_i(t.containerInfo)}catch(g){ze(e,e.return,g)}break;case 4:Xt(t,e),yn(e);break;case 13:Xt(t,e),yn(e),s=e.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(If=$e())),r&4&&_p(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(at=(u=at)||c,Xt(t,e),at=u):Xt(t,e),yn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(Z=e,c=e.child;c!==null;){for(f=Z=c;Z!==null;){switch(h=Z,p=h.child,h.tag){case 0:case 11:case 14:case 15:mi(4,h,h.return);break;case 1:qs(h,h.return);var b=h.stateNode;if(typeof b.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(g){ze(r,n,g)}}break;case 5:qs(h,h.return);break;case 22:if(h.memoizedState!==null){Tp(f);continue}}p!==null?(p.return=h,Z=p):Tp(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{s=f.stateNode,u?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=f.stateNode,l=f.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Ug("display",i))}catch(g){ze(e,e.return,g)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){ze(e,e.return,g)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Xt(t,e),yn(e),r&4&&_p(e);break;case 21:break;default:Xt(t,e),yn(e)}}function yn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(py(n)){var r=n;break e}n=n.return}throw Error(D(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Si(s,""),r.flags&=-33);var o=Ep(e);od(e,o,s);break;case 3:case 4:var i=r.stateNode.containerInfo,a=Ep(e);sd(e,a,i);break;default:throw Error(D(161))}}catch(l){ze(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Rb(e,t,n){Z=e,vy(e)}function vy(e,t,n){for(var r=(e.mode&1)!==0;Z!==null;){var s=Z,o=s.child;if(s.tag===22&&r){var i=s.memoizedState!==null||Pa;if(!i){var a=s.alternate,l=a!==null&&a.memoizedState!==null||at;a=Pa;var u=at;if(Pa=i,(at=l)&&!u)for(Z=s;Z!==null;)i=Z,l=i.child,i.tag===22&&i.memoizedState!==null?Rp(s):l!==null?(l.return=i,Z=l):Rp(s);for(;o!==null;)Z=o,vy(o),o=o.sibling;Z=s,Pa=a,at=u}Np(e)}else s.subtreeFlags&8772&&o!==null?(o.return=s,Z=o):Np(e)}}function Np(e){for(;Z!==null;){var t=Z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:at||ru(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!at)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:en(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&dp(t,o,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}dp(t,i,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 f=c.dehydrated;f!==null&&_i(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}at||t.flags&512&&rd(t)}catch(h){ze(t,t.return,h)}}if(t===e){Z=null;break}if(n=t.sibling,n!==null){n.return=t.return,Z=n;break}Z=t.return}}function Tp(e){for(;Z!==null;){var t=Z;if(t===e){Z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Z=n;break}Z=t.return}}function Rp(e){for(;Z!==null;){var t=Z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ru(4,t)}catch(l){ze(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){ze(t,s,l)}}var o=t.return;try{rd(t)}catch(l){ze(t,o,l)}break;case 5:var i=t.return;try{rd(t)}catch(l){ze(t,i,l)}}}catch(l){ze(t,t.return,l)}if(t===e){Z=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Z=a;break}Z=t.return}}var Pb=Math.ceil,El=sr.ReactCurrentDispatcher,Of=sr.ReactCurrentOwner,Wt=sr.ReactCurrentBatchConfig,ve=0,Je=null,He=null,nt=0,Rt=0,Ys=Kr(0),Ge=0,Di=null,Ss=0,su=0,Af=0,gi=null,kt=null,If=0,To=1/0,Bn=null,_l=!1,id=null,Lr=null,ja=!1,Tr=null,Nl=0,vi=0,ad=null,Ya=-1,Xa=0;function pt(){return ve&6?$e():Ya!==-1?Ya:Ya=$e()}function Dr(e){return e.mode&1?ve&2&&nt!==0?nt&-nt:hb.transition!==null?(Xa===0&&(Xa=tv()),Xa):(e=be,e!==0||(e=window.event,e=e===void 0?16:lv(e.type)),e):1}function un(e,t,n,r){if(50<vi)throw vi=0,ad=null,Error(D(185));Ji(e,n,r),(!(ve&2)||e!==Je)&&(e===Je&&(!(ve&2)&&(su|=n),Ge===4&&vr(e,nt)),Nt(e,r),n===1&&ve===0&&!(t.mode&1)&&(To=$e()+500,eu&&qr()))}function Nt(e,t){var n=e.callbackNode;h1(e,t);var r=cl(e,e===Je?nt:0);if(r===0)n!==null&&Fh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Fh(n),t===1)e.tag===0?fb(Pp.bind(null,e)):Nv(Pp.bind(null,e)),lb(function(){!(ve&6)&&qr()}),n=null;else{switch(nv(r)){case 1:n=of;break;case 4:n=Jg;break;case 16:n=ul;break;case 536870912:n=ev;break;default:n=ul}n=Ey(n,yy.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function yy(e,t){if(Ya=-1,Xa=0,ve&6)throw Error(D(327));var n=e.callbackNode;if(so()&&e.callbackNode!==n)return null;var r=cl(e,e===Je?nt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Tl(e,r);else{t=r;var s=ve;ve|=2;var o=wy();(Je!==e||nt!==t)&&(Bn=null,To=$e()+500,vs(e,t));do try{Ab();break}catch(a){xy(e,a)}while(!0);xf(),El.current=o,ve=s,He!==null?t=0:(Je=null,nt=0,t=Ge)}if(t!==0){if(t===2&&(s=Ic(e),s!==0&&(r=s,t=ld(e,s))),t===1)throw n=Di,vs(e,0),vr(e,r),Nt(e,$e()),n;if(t===6)vr(e,r);else{if(s=e.current.alternate,!(r&30)&&!jb(s)&&(t=Tl(e,r),t===2&&(o=Ic(e),o!==0&&(r=o,t=ld(e,o))),t===1))throw n=Di,vs(e,0),vr(e,r),Nt(e,$e()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(D(345));case 2:ns(e,kt,Bn);break;case 3:if(vr(e,r),(r&130023424)===r&&(t=If+500-$e(),10<t)){if(cl(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){pt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Uc(ns.bind(null,e,kt,Bn),t);break}ns(e,kt,Bn);break;case 4:if(vr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var i=31-ln(r);o=1<<i,i=t[i],i>s&&(s=i),r&=~o}if(r=s,r=$e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Pb(r/1960))-r,10<r){e.timeoutHandle=Uc(ns.bind(null,e,kt,Bn),r);break}ns(e,kt,Bn);break;case 5:ns(e,kt,Bn);break;default:throw Error(D(329))}}}return Nt(e,$e()),e.callbackNode===n?yy.bind(null,e):null}function ld(e,t){var n=gi;return e.current.memoizedState.isDehydrated&&(vs(e,t).flags|=256),e=Tl(e,t),e!==2&&(t=kt,kt=n,t!==null&&ud(t)),e}function ud(e){kt===null?kt=e:kt.push.apply(kt,e)}function jb(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 s=n[r],o=s.getSnapshot;s=s.value;try{if(!cn(o(),s))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 vr(e,t){for(t&=~Af,t&=~su,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ln(t),r=1<<n;e[n]=-1,t&=~r}}function Pp(e){if(ve&6)throw Error(D(327));so();var t=cl(e,0);if(!(t&1))return Nt(e,$e()),null;var n=Tl(e,t);if(e.tag!==0&&n===2){var r=Ic(e);r!==0&&(t=r,n=ld(e,r))}if(n===1)throw n=Di,vs(e,0),vr(e,t),Nt(e,$e()),n;if(n===6)throw Error(D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ns(e,kt,Bn),Nt(e,$e()),null}function Mf(e,t){var n=ve;ve|=1;try{return e(t)}finally{ve=n,ve===0&&(To=$e()+500,eu&&qr())}}function ks(e){Tr!==null&&Tr.tag===0&&!(ve&6)&&so();var t=ve;ve|=1;var n=Wt.transition,r=be;try{if(Wt.transition=null,be=1,e)return e()}finally{be=r,Wt.transition=n,ve=t,!(ve&6)&&qr()}}function Lf(){Rt=Ys.current,Te(Ys)}function vs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ab(n)),He!==null)for(n=He.return;n!==null;){var r=n;switch(gf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ml();break;case 3:_o(),Te(Et),Te(lt),Ef();break;case 5:Cf(r);break;case 4:_o();break;case 13:Te(Ae);break;case 19:Te(Ae);break;case 10:wf(r.type._context);break;case 22:case 23:Lf()}n=n.return}if(Je=e,He=e=Fr(e.current,null),nt=Rt=t,Ge=0,Di=null,Af=su=Ss=0,kt=gi=null,os!==null){for(t=0;t<os.length;t++)if(n=os[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=s,r.next=i}n.pending=r}os=null}return e}function xy(e,t){do{var n=He;try{if(xf(),Ga.current=Cl,kl){for(var r=Ie.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}kl=!1}if(bs=0,Xe=Ze=Ie=null,pi=!1,Ii=0,Of.current=null,n===null||n.return===null){Ge=1,Di=t,He=null;break}e:{var o=e,i=n.return,a=n,l=t;if(t=nt,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=vp(i);if(p!==null){p.flags&=-257,yp(p,i,a,o,t),p.mode&1&&gp(o,u,t),t=p,l=u;var b=t.updateQueue;if(b===null){var g=new Set;g.add(l),t.updateQueue=g}else b.add(l);break e}else{if(!(t&1)){gp(o,u,t),Df();break e}l=Error(D(426))}}else if(Pe&&a.mode&1){var w=vp(i);if(w!==null){!(w.flags&65536)&&(w.flags|=256),yp(w,i,a,o,t),vf(No(l,a));break e}}o=l=No(l,a),Ge!==4&&(Ge=2),gi===null?gi=[o]:gi.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=ny(o,l,t);cp(o,v);break e;case 1:a=l;var m=o.type,x=o.stateNode;if(!(o.flags&128)&&(typeof m.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Lr===null||!Lr.has(x)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=ry(o,a,t);cp(o,S);break e}}o=o.return}while(o!==null)}Sy(n)}catch(k){t=k,He===n&&n!==null&&(He=n=n.return);continue}break}while(!0)}function wy(){var e=El.current;return El.current=Cl,e===null?Cl:e}function Df(){(Ge===0||Ge===3||Ge===2)&&(Ge=4),Je===null||!(Ss&268435455)&&!(su&268435455)||vr(Je,nt)}function Tl(e,t){var n=ve;ve|=2;var r=wy();(Je!==e||nt!==t)&&(Bn=null,vs(e,t));do try{Ob();break}catch(s){xy(e,s)}while(!0);if(xf(),ve=n,El.current=r,He!==null)throw Error(D(261));return Je=null,nt=0,Ge}function Ob(){for(;He!==null;)by(He)}function Ab(){for(;He!==null&&!s1();)by(He)}function by(e){var t=Cy(e.alternate,e,Rt);e.memoizedProps=e.pendingProps,t===null?Sy(e):He=t,Of.current=null}function Sy(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=_b(n,t),n!==null){n.flags&=32767,He=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ge=6,He=null;return}}else if(n=Eb(n,t,Rt),n!==null){He=n;return}if(t=t.sibling,t!==null){He=t;return}He=t=e}while(t!==null);Ge===0&&(Ge=5)}function ns(e,t,n){var r=be,s=Wt.transition;try{Wt.transition=null,be=1,Ib(e,t,n,r)}finally{Wt.transition=s,be=r}return null}function Ib(e,t,n,r){do so();while(Tr!==null);if(ve&6)throw Error(D(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(D(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(p1(e,o),e===Je&&(He=Je=null,nt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ja||(ja=!0,Ey(ul,function(){return so(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Wt.transition,Wt.transition=null;var i=be;be=1;var a=ve;ve|=4,Of.current=null,Tb(e,n),gy(n,e),eb($c),dl=!!zc,$c=zc=null,e.current=n,Rb(n),o1(),ve=a,be=i,Wt.transition=o}else e.current=n;if(ja&&(ja=!1,Tr=e,Nl=s),o=e.pendingLanes,o===0&&(Lr=null),l1(n.stateNode),Nt(e,$e()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(_l)throw _l=!1,e=id,id=null,e;return Nl&1&&e.tag!==0&&so(),o=e.pendingLanes,o&1?e===ad?vi++:(vi=0,ad=e):vi=0,qr(),null}function so(){if(Tr!==null){var e=nv(Nl),t=Wt.transition,n=be;try{if(Wt.transition=null,be=16>e?16:e,Tr===null)var r=!1;else{if(e=Tr,Tr=null,Nl=0,ve&6)throw Error(D(331));var s=ve;for(ve|=4,Z=e.current;Z!==null;){var o=Z,i=o.child;if(Z.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(Z=u;Z!==null;){var c=Z;switch(c.tag){case 0:case 11:case 15:mi(8,c,o)}var f=c.child;if(f!==null)f.return=c,Z=f;else for(;Z!==null;){c=Z;var h=c.sibling,p=c.return;if(hy(c),c===u){Z=null;break}if(h!==null){h.return=p,Z=h;break}Z=p}}}var b=o.alternate;if(b!==null){var g=b.child;if(g!==null){b.child=null;do{var w=g.sibling;g.sibling=null,g=w}while(g!==null)}}Z=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,Z=i;else e:for(;Z!==null;){if(o=Z,o.flags&2048)switch(o.tag){case 0:case 11:case 15:mi(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,Z=v;break e}Z=o.return}}var m=e.current;for(Z=m;Z!==null;){i=Z;var x=i.child;if(i.subtreeFlags&2064&&x!==null)x.return=i,Z=x;else e:for(i=m;Z!==null;){if(a=Z,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:ru(9,a)}}catch(k){ze(a,a.return,k)}if(a===i){Z=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,Z=S;break e}Z=a.return}}if(ve=s,qr(),Tn&&typeof Tn.onPostCommitFiberRoot=="function")try{Tn.onPostCommitFiberRoot(Kl,e)}catch{}r=!0}return r}finally{be=n,Wt.transition=t}}return!1}function jp(e,t,n){t=No(n,t),t=ny(e,t,1),e=Mr(e,t,1),t=pt(),e!==null&&(Ji(e,1,t),Nt(e,t))}function ze(e,t,n){if(e.tag===3)jp(e,e,n);else for(;t!==null;){if(t.tag===3){jp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Lr===null||!Lr.has(r))){e=No(n,e),e=ry(t,e,1),t=Mr(t,e,1),e=pt(),t!==null&&(Ji(t,1,e),Nt(t,e));break}}t=t.return}}function Mb(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=pt(),e.pingedLanes|=e.suspendedLanes&n,Je===e&&(nt&n)===n&&(Ge===4||Ge===3&&(nt&130023424)===nt&&500>$e()-If?vs(e,0):Af|=n),Nt(e,t)}function ky(e,t){t===0&&(e.mode&1?(t=ba,ba<<=1,!(ba&130023424)&&(ba=4194304)):t=1);var n=pt();e=Yn(e,t),e!==null&&(Ji(e,t,n),Nt(e,n))}function Lb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ky(e,n)}function Db(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(t),ky(e,n)}var Cy;Cy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Et.current)Ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ct=!1,Cb(e,t,n);Ct=!!(e.flags&131072)}else Ct=!1,Pe&&t.flags&1048576&&Tv(t,yl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qa(e,t),e=t.pendingProps;var s=ko(t,lt.current);ro(t,n),s=Nf(null,t,r,e,s,n);var o=Tf();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_t(r)?(o=!0,gl(t)):o=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Sf(t),s.updater=nu,t.stateNode=s,s._reactInternals=t,Kc(t,r,e,n),t=Xc(null,t,r,!0,o,n)):(t.tag=0,Pe&&o&&mf(t),dt(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(qa(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=zb(r),e=en(r,e),s){case 0:t=Yc(null,t,r,e,n);break e;case 1:t=bp(null,t,r,e,n);break e;case 11:t=xp(null,t,r,e,n);break e;case 14:t=wp(null,t,r,en(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:en(r,s),Yc(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:en(r,s),bp(e,t,r,s,n);case 3:e:{if(ay(t),e===null)throw Error(D(387));r=t.pendingProps,o=t.memoizedState,s=o.element,Iv(e,t),bl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){s=No(Error(D(423)),t),t=Sp(e,t,r,n,s);break e}else if(r!==s){s=No(Error(D(424)),t),t=Sp(e,t,r,n,s);break e}else for(jt=Ir(t.stateNode.containerInfo.firstChild),Ot=t,Pe=!0,sn=null,n=Ov(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Co(),r===s){t=Xn(e,t,n);break e}dt(e,t,r,n)}t=t.child}return t;case 5:return Mv(t),e===null&&Qc(t),r=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,Vc(r,s)?i=null:o!==null&&Vc(r,o)&&(t.flags|=32),iy(e,t),dt(e,t,i,n),t.child;case 6:return e===null&&Qc(t),null;case 13:return ly(e,t,n);case 4:return kf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Eo(t,null,r,n):dt(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:en(r,s),xp(e,t,r,s,n);case 7:return dt(e,t,t.pendingProps,n),t.child;case 8:return dt(e,t,t.pendingProps.children,n),t.child;case 12:return dt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,o=t.memoizedProps,i=s.value,Ee(xl,r._currentValue),r._currentValue=i,o!==null)if(cn(o.value,i)){if(o.children===s.children&&!Et.current){t=Xn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Gn(-1,n&-n),l.tag=2;var u=o.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}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Zc(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(D(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Zc(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}dt(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,ro(t,n),s=Ht(s),r=r(s),t.flags|=1,dt(e,t,r,n),t.child;case 14:return r=t.type,s=en(r,t.pendingProps),s=en(r.type,s),wp(e,t,r,s,n);case 15:return sy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:en(r,s),qa(e,t),t.tag=1,_t(r)?(e=!0,gl(t)):e=!1,ro(t,n),ty(t,r,s),Kc(t,r,s,n),Xc(null,t,r,!0,e,n);case 19:return uy(e,t,n);case 22:return oy(e,t,n)}throw Error(D(156,t.tag))};function Ey(e,t){return Xg(e,t)}function Fb(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 Bt(e,t,n,r){return new Fb(e,t,n,r)}function Ff(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zb(e){if(typeof e=="function")return Ff(e)?1:0;if(e!=null){if(e=e.$$typeof,e===nf)return 11;if(e===rf)return 14}return 2}function Fr(e,t){var n=e.alternate;return n===null?(n=Bt(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 Ja(e,t,n,r,s,o){var i=2;if(r=e,typeof e=="function")Ff(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Vs:return ys(n.children,s,o,t);case tf:i=8,s|=8;break;case xc:return e=Bt(12,n,t,s|2),e.elementType=xc,e.lanes=o,e;case wc:return e=Bt(13,n,t,s),e.elementType=wc,e.lanes=o,e;case bc:return e=Bt(19,n,t,s),e.elementType=bc,e.lanes=o,e;case Mg:return ou(n,s,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ag:i=10;break e;case Ig:i=9;break e;case nf:i=11;break e;case rf:i=14;break e;case hr:i=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=Bt(i,n,t,s),t.elementType=e,t.type=r,t.lanes=o,t}function ys(e,t,n,r){return e=Bt(7,e,r,t),e.lanes=n,e}function ou(e,t,n,r){return e=Bt(22,e,r,t),e.elementType=Mg,e.lanes=n,e.stateNode={isHidden:!1},e}function Xu(e,t,n){return e=Bt(6,e,null,t),e.lanes=n,e}function Ju(e,t,n){return t=Bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $b(e,t,n,r,s){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=Au(0),this.expirationTimes=Au(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Au(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function zf(e,t,n,r,s,o,i,a,l){return e=new $b(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Bt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sf(o),e}function Vb(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$s,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function _y(e){if(!e)return Br;e=e._reactInternals;e:{if(Rs(e)!==e||e.tag!==1)throw Error(D(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(_t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(D(171))}if(e.tag===1){var n=e.type;if(_t(n))return _v(e,n,t)}return t}function Ny(e,t,n,r,s,o,i,a,l){return e=zf(n,r,!0,e,s,o,i,a,l),e.context=_y(null),n=e.current,r=pt(),s=Dr(n),o=Gn(r,s),o.callback=t??null,Mr(n,o,s),e.current.lanes=s,Ji(e,s,r),Nt(e,r),e}function iu(e,t,n,r){var s=t.current,o=pt(),i=Dr(s);return n=_y(n),t.context===null?t.context=n:t.pendingContext=n,t=Gn(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Mr(s,t,i),e!==null&&(un(e,s,i,o),Za(e,s,i)),i}function Rl(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 Op(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function $f(e,t){Op(e,t),(e=e.alternate)&&Op(e,t)}function Ub(){return null}var Ty=typeof reportError=="function"?reportError:function(e){console.error(e)};function Vf(e){this._internalRoot=e}au.prototype.render=Vf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));iu(e,t,null,null)};au.prototype.unmount=Vf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ks(function(){iu(null,e,null,null)}),t[qn]=null}};function au(e){this._internalRoot=e}au.prototype.unstable_scheduleHydration=function(e){if(e){var t=ov();e={blockedOn:null,target:e,priority:t};for(var n=0;n<gr.length&&t!==0&&t<gr[n].priority;n++);gr.splice(n,0,e),n===0&&av(e)}};function Uf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function lu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ap(){}function Bb(e,t,n,r,s){if(s){if(typeof r=="function"){var o=r;r=function(){var u=Rl(i);o.call(u)}}var i=Ny(t,r,e,0,null,!1,!1,"",Ap);return e._reactRootContainer=i,e[qn]=i.current,Ri(e.nodeType===8?e.parentNode:e),ks(),i}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=Rl(l);a.call(u)}}var l=zf(e,0,!1,null,null,!1,!1,"",Ap);return e._reactRootContainer=l,e[qn]=l.current,Ri(e.nodeType===8?e.parentNode:e),ks(function(){iu(t,l,n,r)}),l}function uu(e,t,n,r,s){var o=n._reactRootContainer;if(o){var i=o;if(typeof s=="function"){var a=s;s=function(){var l=Rl(i);a.call(l)}}iu(t,i,e,s)}else i=Bb(n,t,e,s,r);return Rl(i)}rv=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=si(t.pendingLanes);n!==0&&(af(t,n|1),Nt(t,$e()),!(ve&6)&&(To=$e()+500,qr()))}break;case 13:ks(function(){var r=Yn(e,1);if(r!==null){var s=pt();un(r,e,1,s)}}),$f(e,1)}};lf=function(e){if(e.tag===13){var t=Yn(e,134217728);if(t!==null){var n=pt();un(t,e,134217728,n)}$f(e,134217728)}};sv=function(e){if(e.tag===13){var t=Dr(e),n=Yn(e,t);if(n!==null){var r=pt();un(n,e,t,r)}$f(e,t)}};ov=function(){return be};iv=function(e,t){var n=be;try{return be=e,t()}finally{be=n}};jc=function(e,t,n){switch(t){case"input":if(Cc(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 s=Jl(r);if(!s)throw Error(D(90));Dg(r),Cc(r,s)}}}break;case"textarea":zg(e,n);break;case"select":t=n.value,t!=null&&Js(e,!!n.multiple,t,!1)}};Qg=Mf;Zg=ks;var Wb={usingClientEntryPoint:!1,Events:[ta,Hs,Jl,Wg,Hg,Mf]},Yo={findFiberByHostInstance:ss,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Hb={bundleType:Yo.bundleType,version:Yo.version,rendererPackageName:Yo.rendererPackageName,rendererConfig:Yo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:sr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=qg(e),e===null?null:e.stateNode},findFiberByHostInstance:Yo.findFiberByHostInstance||Ub,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 Oa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Oa.isDisabled&&Oa.supportsFiber)try{Kl=Oa.inject(Hb),Tn=Oa}catch{}}Lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wb;Lt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Uf(t))throw Error(D(200));return Vb(e,t,null,n)};Lt.createRoot=function(e,t){if(!Uf(e))throw Error(D(299));var n=!1,r="",s=Ty;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=zf(e,1,!1,null,null,n,!1,r,s),e[qn]=t.current,Ri(e.nodeType===8?e.parentNode:e),new Vf(t)};Lt.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(D(188)):(e=Object.keys(e).join(","),Error(D(268,e)));return e=qg(t),e=e===null?null:e.stateNode,e};Lt.flushSync=function(e){return ks(e)};Lt.hydrate=function(e,t,n){if(!lu(t))throw Error(D(200));return uu(null,e,t,!0,n)};Lt.hydrateRoot=function(e,t,n){if(!Uf(e))throw Error(D(405));var r=n!=null&&n.hydratedSources||null,s=!1,o="",i=Ty;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Ny(t,null,e,1,n??null,s,!1,o,i),e[qn]=t.current,Ri(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new au(t)};Lt.render=function(e,t,n){if(!lu(t))throw Error(D(200));return uu(null,e,t,!1,n)};Lt.unmountComponentAtNode=function(e){if(!lu(e))throw Error(D(40));return e._reactRootContainer?(ks(function(){uu(null,null,e,!1,function(){e._reactRootContainer=null,e[qn]=null})}),!0):!1};Lt.unstable_batchedUpdates=Mf;Lt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!lu(n))throw Error(D(200));if(e==null||e._reactInternals===void 0)throw Error(D(38));return uu(e,t,n,!1,r)};Lt.version="18.3.1-next-f1338f8080-20240426";function Ry(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ry)}catch(e){console.error(e)}}Ry(),Rg.exports=Lt;var ra=Rg.exports;const Py=vg(ra);var jy,Ip=ra;jy=Ip.createRoot,Ip.hydrateRoot;const Qb=1,Zb=1e6;let ec=0;function Gb(){return ec=(ec+1)%Number.MAX_SAFE_INTEGER,ec.toString()}const tc=new Map,Mp=e=>{if(tc.has(e))return;const t=setTimeout(()=>{tc.delete(e),yi({type:"REMOVE_TOAST",toastId:e})},Zb);tc.set(e,t)},Kb=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Qb)};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?Mp(n):e.toasts.forEach(r=>{Mp(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)}}},el=[];let tl={toasts:[]};function yi(e){tl=Kb(tl,e),el.forEach(t=>{t(tl)})}function qb({...e}){const t=Gb(),n=s=>yi({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>yi({type:"DISMISS_TOAST",toastId:t});return yi({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function Yb(){const[e,t]=y.useState(tl);return y.useEffect(()=>(el.push(t),()=>{const n=el.indexOf(t);n>-1&&el.splice(n,1)}),[e]),{...e,toast:qb,dismiss:n=>yi({type:"DISMISS_TOAST",toastId:n})}}function je(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Lp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Oy(...e){return t=>{let n=!1;const r=e.map(s=>{const o=Lp(s,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let s=0;s<r.length;s++){const o=r[s];typeof o=="function"?o():Lp(e[s],null)}}}}function mt(...e){return y.useCallback(Oy(...e),e)}function Xb(e,t){const n=y.createContext(t),r=o=>{const{children:i,...a}=o,l=y.useMemo(()=>a,Object.values(a));return d.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function s(o){const i=y.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,s]}function sa(e,t=[]){let n=[];function r(o,i){const a=y.createContext(i),l=n.length;n=[...n,i];const u=f=>{var v;const{scope:h,children:p,...b}=f,g=((v=h==null?void 0:h[e])==null?void 0:v[l])||a,w=y.useMemo(()=>b,Object.values(b));return d.jsx(g.Provider,{value:w,children:p})};u.displayName=o+"Provider";function c(f,h){var g;const p=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,b=y.useContext(p);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[u,c]}const s=()=>{const o=n.map(i=>y.createContext(i));return function(a){const l=(a==null?void 0:a[e])||o;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,Jb(s,...t)]}function Jb(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(o)[`__scope${u}`];return{...a,...f}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Fi(e){const t=tS(e),n=y.forwardRef((r,s)=>{const{children:o,...i}=r,a=y.Children.toArray(o),l=a.find(rS);if(l){const u=l.props.children,c=a.map(f=>f===l?y.Children.count(u)>1?y.Children.only(null):y.isValidElement(u)?u.props.children:null:f);return d.jsx(t,{...i,ref:s,children:y.isValidElement(u)?y.cloneElement(u,void 0,c):null})}return d.jsx(t,{...i,ref:s,children:o})});return n.displayName=`${e}.Slot`,n}var eS=Fi("Slot");function tS(e){const t=y.forwardRef((n,r)=>{const{children:s,...o}=n;if(y.isValidElement(s)){const i=oS(s),a=sS(o,s.props);return s.type!==y.Fragment&&(a.ref=r?Oy(r,i):i),y.cloneElement(s,a)}return y.Children.count(s)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ay=Symbol("radix.slottable");function nS(e){const t=({children:n})=>d.jsx(d.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Ay,t}function rS(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ay}function sS(e,t){const n={...t};for(const r in t){const s=e[r],o=t[r];/^on[A-Z]/.test(r)?s&&o?n[r]=(...a)=>{const l=o(...a);return s(...a),l}:s&&(n[r]=s):r==="style"?n[r]={...s,...o}:r==="className"&&(n[r]=[s,o].filter(Boolean).join(" "))}return{...e,...n}}function oS(e){var r,s;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=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function iS(e){const t=e+"CollectionProvider",[n,r]=sa(t),[s,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:w,children:v}=g,m=I.useRef(null),x=I.useRef(new Map).current;return d.jsx(s,{scope:w,itemMap:x,collectionRef:m,children:v})};i.displayName=t;const a=e+"CollectionSlot",l=Fi(a),u=I.forwardRef((g,w)=>{const{scope:v,children:m}=g,x=o(a,v),S=mt(w,x.collectionRef);return d.jsx(l,{ref:S,children:m})});u.displayName=a;const c=e+"CollectionItemSlot",f="data-radix-collection-item",h=Fi(c),p=I.forwardRef((g,w)=>{const{scope:v,children:m,...x}=g,S=I.useRef(null),k=mt(w,S),N=o(c,v);return I.useEffect(()=>(N.itemMap.set(S,{ref:S,...x}),()=>void N.itemMap.delete(S))),d.jsx(h,{[f]:"",ref:k,children:m})});p.displayName=c;function b(g){const w=o(e+"CollectionConsumer",g);return I.useCallback(()=>{const m=w.collectionRef.current;if(!m)return[];const x=Array.from(m.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((N,T)=>x.indexOf(N.ref.current)-x.indexOf(T.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:u,ItemSlot:p},b,r]}var aS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ue=aS.reduce((e,t)=>{const n=Fi(`Primitive.${t}`),r=y.forwardRef((s,o)=>{const{asChild:i,...a}=s,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(l,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Iy(e,t){e&&ra.flushSync(()=>e.dispatchEvent(t))}function On(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function lS(e,t=globalThis==null?void 0:globalThis.document){const n=On(e);y.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var uS="DismissableLayer",cd="dismissableLayer.update",cS="dismissableLayer.pointerDownOutside",dS="dismissableLayer.focusOutside",Dp,My=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),cu=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:i,onDismiss:a,...l}=e,u=y.useContext(My),[c,f]=y.useState(null),h=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=y.useState({}),b=mt(t,T=>f(T)),g=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(w),m=c?g.indexOf(c):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=m>=v,k=hS(T=>{const j=T.target,F=[...u.branches].some(M=>M.contains(j));!S||F||(s==null||s(T),i==null||i(T),T.defaultPrevented||a==null||a())},h),N=pS(T=>{const j=T.target;[...u.branches].some(M=>M.contains(j))||(o==null||o(T),i==null||i(T),T.defaultPrevented||a==null||a())},h);return lS(T=>{m===u.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},h),y.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Dp=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Fp(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Dp)}},[c,h,n,u]),y.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Fp())},[c,u]),y.useEffect(()=>{const T=()=>p({});return document.addEventListener(cd,T),()=>document.removeEventListener(cd,T)},[]),d.jsx(Ue.div,{...l,ref:b,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:je(e.onFocusCapture,N.onFocusCapture),onBlurCapture:je(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:je(e.onPointerDownCapture,k.onPointerDownCapture)})});cu.displayName=uS;var fS="DismissableLayerBranch",Ly=y.forwardRef((e,t)=>{const n=y.useContext(My),r=y.useRef(null),s=mt(t,r);return y.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),d.jsx(Ue.div,{...e,ref:s})});Ly.displayName=fS;function hS(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=y.useRef(!1),s=y.useRef(()=>{});return y.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let l=function(){Dy(cS,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function pS(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=y.useRef(!1);return y.useEffect(()=>{const s=o=>{o.target&&!r.current&&Dy(dS,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Fp(){const e=new CustomEvent(cd);document.dispatchEvent(e)}function Dy(e,t,n,{discrete:r}){const s=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Iy(s,o):s.dispatchEvent(o)}var mS=cu,gS=Ly,Jn=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},vS="Portal",Bf=y.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,o]=y.useState(!1);Jn(()=>o(!0),[]);const i=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Py.createPortal(d.jsx(Ue.div,{...r,ref:t}),i):null});Bf.displayName=vS;function yS(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var Fo=e=>{const{present:t,children:n}=e,r=xS(t),s=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),o=mt(r.ref,wS(s));return typeof n=="function"||r.isPresent?y.cloneElement(s,{ref:o}):null};Fo.displayName="Presence";function xS(e){const[t,n]=y.useState(),r=y.useRef(null),s=y.useRef(e),o=y.useRef("none"),i=e?"mounted":"unmounted",[a,l]=yS(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const u=Aa(r.current);o.current=a==="mounted"?u:"none"},[a]),Jn(()=>{const u=r.current,c=s.current;if(c!==e){const h=o.current,p=Aa(u);e?l("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&h!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),Jn(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=p=>{const g=Aa(r.current).includes(p.animationName);if(p.target===t&&g&&(l("ANIMATION_END"),!s.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},h=p=>{p.target===t&&(o.current=Aa(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Aa(e){return(e==null?void 0:e.animationName)||"none"}function wS(e){var r,s;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=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bS=Yd[" useInsertionEffect ".trim().toString()]||Jn;function Fy({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,o,i]=SS({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:s;{const c=y.useRef(e!==void 0);y.useEffect(()=>{const f=c.current;f!==a&&console.warn(`${r} is changing from ${f?"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=y.useCallback(c=>{var f;if(a){const h=kS(c)?c(e):c;h!==e&&((f=i.current)==null||f.call(i,h))}else o(c)},[a,e,o,i]);return[l,u]}function SS({defaultProp:e,onChange:t}){const[n,r]=y.useState(e),s=y.useRef(n),o=y.useRef(t);return bS(()=>{o.current=t},[t]),y.useEffect(()=>{var i;s.current!==n&&((i=o.current)==null||i.call(o,n),s.current=n)},[n,s]),[n,r,o]}function kS(e){return typeof e=="function"}var CS=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"}),ES="VisuallyHidden",du=y.forwardRef((e,t)=>d.jsx(Ue.span,{...e,ref:t,style:{...CS,...e.style}}));du.displayName=ES;var _S=du,Wf="ToastProvider",[Hf,NS,TS]=iS("Toast"),[zy,M2]=sa("Toast",[TS]),[RS,fu]=zy(Wf),$y=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:i}=e,[a,l]=y.useState(null),[u,c]=y.useState(0),f=y.useRef(!1),h=y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Wf}\`. Expected non-empty \`string\`.`),d.jsx(Hf.Provider,{scope:t,children:d.jsx(RS,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:o,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:y.useCallback(()=>c(p=>p+1),[]),onToastRemove:y.useCallback(()=>c(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:i})})};$y.displayName=Wf;var Vy="ToastViewport",PS=["F8"],dd="toast.viewportPause",fd="toast.viewportResume",Uy=y.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=PS,label:s="Notifications ({hotkey})",...o}=e,i=fu(Vy,n),a=NS(n),l=y.useRef(null),u=y.useRef(null),c=y.useRef(null),f=y.useRef(null),h=mt(t,f,i.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=i.toastCount>0;y.useEffect(()=>{const w=v=>{var x;r.length!==0&&r.every(S=>v[S]||v.code===S)&&((x=f.current)==null||x.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),y.useEffect(()=>{const w=l.current,v=f.current;if(b&&w&&v){const m=()=>{if(!i.isClosePausedRef.current){const N=new CustomEvent(dd);v.dispatchEvent(N),i.isClosePausedRef.current=!0}},x=()=>{if(i.isClosePausedRef.current){const N=new CustomEvent(fd);v.dispatchEvent(N),i.isClosePausedRef.current=!1}},S=N=>{!w.contains(N.relatedTarget)&&x()},k=()=>{w.contains(document.activeElement)||x()};return w.addEventListener("focusin",m),w.addEventListener("focusout",S),w.addEventListener("pointermove",m),w.addEventListener("pointerleave",k),window.addEventListener("blur",m),window.addEventListener("focus",x),()=>{w.removeEventListener("focusin",m),w.removeEventListener("focusout",S),w.removeEventListener("pointermove",m),w.removeEventListener("pointerleave",k),window.removeEventListener("blur",m),window.removeEventListener("focus",x)}}},[b,i.isClosePausedRef]);const g=y.useCallback(({tabbingDirection:w})=>{const m=a().map(x=>{const S=x.ref.current,k=[S,...BS(S)];return w==="forwards"?k:k.reverse()});return(w==="forwards"?m.reverse():m).flat()},[a]);return y.useEffect(()=>{const w=f.current;if(w){const v=m=>{var k,N,T;const x=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!x){const j=document.activeElement,F=m.shiftKey;if(m.target===w&&F){(k=u.current)==null||k.focus();return}const A=g({tabbingDirection:F?"backwards":"forwards"}),W=A.findIndex(L=>L===j);nc(A.slice(W+1))?m.preventDefault():F?(N=u.current)==null||N.focus():(T=c.current)==null||T.focus()}};return w.addEventListener("keydown",v),()=>w.removeEventListener("keydown",v)}},[a,g]),d.jsxs(gS,{ref:l,role:"region","aria-label":s.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&d.jsx(hd,{ref:u,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"forwards"});nc(w)}}),d.jsx(Hf.Slot,{scope:n,children:d.jsx(Ue.ol,{tabIndex:-1,...o,ref:h})}),b&&d.jsx(hd,{ref:c,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"backwards"});nc(w)}})]})});Uy.displayName=Vy;var By="ToastFocusProxy",hd=y.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,o=fu(By,n);return d.jsx(du,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const a=i.relatedTarget;!((u=o.viewport)!=null&&u.contains(a))&&r()}})});hd.displayName=By;var oa="Toast",jS="toast.swipeStart",OS="toast.swipeMove",AS="toast.swipeCancel",IS="toast.swipeEnd",Wy=y.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:o,...i}=e,[a,l]=Fy({prop:r,defaultProp:s??!0,onChange:o,caller:oa});return d.jsx(Fo,{present:n||a,children:d.jsx(DS,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:On(e.onPause),onResume:On(e.onResume),onSwipeStart:je(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:je(e.onSwipeMove,u=>{const{x:c,y:f}=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",`${f}px`)}),onSwipeCancel:je(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:je(e.onSwipeEnd,u=>{const{x:c,y:f}=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",`${f}px`),l(!1)})})})});Wy.displayName=oa;var[MS,LS]=zy(oa,{onClose(){}}),DS=y.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:o,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:p,...b}=e,g=fu(oa,n),[w,v]=y.useState(null),m=mt(t,L=>v(L)),x=y.useRef(null),S=y.useRef(null),k=s||g.duration,N=y.useRef(0),T=y.useRef(k),j=y.useRef(0),{onToastAdd:F,onToastRemove:M}=g,q=On(()=>{var ne;(w==null?void 0:w.contains(document.activeElement))&&((ne=g.viewport)==null||ne.focus()),i()}),A=y.useCallback(L=>{!L||L===1/0||(window.clearTimeout(j.current),N.current=new Date().getTime(),j.current=window.setTimeout(q,L))},[q]);y.useEffect(()=>{const L=g.viewport;if(L){const ne=()=>{A(T.current),u==null||u()},X=()=>{const te=new Date().getTime()-N.current;T.current=T.current-te,window.clearTimeout(j.current),l==null||l()};return L.addEventListener(dd,X),L.addEventListener(fd,ne),()=>{L.removeEventListener(dd,X),L.removeEventListener(fd,ne)}}},[g.viewport,k,l,u,A]),y.useEffect(()=>{o&&!g.isClosePausedRef.current&&A(k)},[o,k,g.isClosePausedRef,A]),y.useEffect(()=>(F(),()=>M()),[F,M]);const W=y.useMemo(()=>w?Yy(w):null,[w]);return g.viewport?d.jsxs(d.Fragment,{children:[W&&d.jsx(FS,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:W}),d.jsx(MS,{scope:n,onClose:q,children:ra.createPortal(d.jsx(Hf.ItemSlot,{scope:n,children:d.jsx(mS,{asChild:!0,onEscapeKeyDown:je(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||q(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:d.jsx(Ue.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":g.swipeDirection,...b,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:je(e.onKeyDown,L=>{L.key==="Escape"&&(a==null||a(L.nativeEvent),L.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,q()))}),onPointerDown:je(e.onPointerDown,L=>{L.button===0&&(x.current={x:L.clientX,y:L.clientY})}),onPointerMove:je(e.onPointerMove,L=>{if(!x.current)return;const ne=L.clientX-x.current.x,X=L.clientY-x.current.y,te=!!S.current,P=["left","right"].includes(g.swipeDirection),O=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,B=P?O(0,ne):0,se=P?0:O(0,X),ee=L.pointerType==="touch"?10:2,ue={x:B,y:se},ce={originalEvent:L,delta:ue};te?(S.current=ue,Ia(OS,f,ce,{discrete:!1})):zp(ue,g.swipeDirection,ee)?(S.current=ue,Ia(jS,c,ce,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(ne)>ee||Math.abs(X)>ee)&&(x.current=null)}),onPointerUp:je(e.onPointerUp,L=>{const ne=S.current,X=L.target;if(X.hasPointerCapture(L.pointerId)&&X.releasePointerCapture(L.pointerId),S.current=null,x.current=null,ne){const te=L.currentTarget,P={originalEvent:L,delta:ne};zp(ne,g.swipeDirection,g.swipeThreshold)?Ia(IS,p,P,{discrete:!0}):Ia(AS,h,P,{discrete:!0}),te.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),FS=e=>{const{__scopeToast:t,children:n,...r}=e,s=fu(oa,t),[o,i]=y.useState(!1),[a,l]=y.useState(!1);return VS(()=>i(!0)),y.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:d.jsx(Bf,{asChild:!0,children:d.jsx(du,{...r,children:o&&d.jsxs(d.Fragment,{children:[s.label," ",n]})})})},zS="ToastTitle",Hy=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return d.jsx(Ue.div,{...r,ref:t})});Hy.displayName=zS;var $S="ToastDescription",Qy=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return d.jsx(Ue.div,{...r,ref:t})});Qy.displayName=$S;var Zy="ToastAction",Gy=y.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?d.jsx(qy,{altText:n,asChild:!0,children:d.jsx(Qf,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Zy}\`. Expected non-empty \`string\`.`),null)});Gy.displayName=Zy;var Ky="ToastClose",Qf=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=LS(Ky,n);return d.jsx(qy,{asChild:!0,children:d.jsx(Ue.button,{type:"button",...r,ref:t,onClick:je(e.onClick,s.onClose)})})});Qf.displayName=Ky;var qy=y.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return d.jsx(Ue.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function Yy(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),US(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!s)if(o){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...Yy(r))}}),t}function Ia(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Iy(s,o):s.dispatchEvent(o)}var zp=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),o=r>s;return t==="left"||t==="right"?o&&r>n:!o&&s>n};function VS(e=()=>{}){const t=On(e);Jn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function US(e){return e.nodeType===e.ELEMENT_NODE}function BS(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function nc(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var WS=$y,Xy=Uy,Jy=Wy,e0=Hy,t0=Qy,n0=Gy,r0=Qf;function s0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=s0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function o0(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=s0(e))&&(r&&(r+=" "),r+=t);return r}const $p=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Vp=o0,ia=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Vp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:o}=t,i=Object.keys(s).map(u=>{const c=n==null?void 0:n[u],f=o==null?void 0:o[u];if(c===null)return null;const h=$p(c)||$p(f);return s[u][h]}),a=n&&Object.entries(n).reduce((u,c)=>{let[f,h]=c;return h===void 0||(u[f]=h),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:h,...p}=c;return Object.entries(p).every(b=>{let[g,w]=b;return Array.isArray(w)?w.includes({...o,...a}[g]):{...o,...a}[g]===w})?[...u,f,h]:u},[]);return Vp(e,i,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 HS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i0=(...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 QS={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 ZS=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:o,iconNode:i,...a},l)=>y.createElement("svg",{ref:l,...QS,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:i0("lucide",s),...a},[...i.map(([u,c])=>y.createElement(u,c)),...Array.isArray(o)?o:[o]]));/**
 * @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 Tt=(e,t)=>{const n=y.forwardRef(({className:r,...s},o)=>y.createElement(ZS,{ref:o,iconNode:t,className:i0(`lucide-${HS(e)}`,r),...s}));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 Up=Tt("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
 * @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 GS=Tt("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
 * @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 pd=Tt("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
 * @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 md=Tt("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/**
 * @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 hu=Tt("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
 * @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 KS=Tt("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 qS=Tt("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
 * @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 YS=Tt("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
 * @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 XS=Tt("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
 * @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 JS=Tt("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
 * @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 Pl=Tt("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
 * @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 ek=Tt("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
 * @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 gd=Tt("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/**
 * @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 pu=Tt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Zf="-",tk=e=>{const t=rk(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(Zf);return a[0]===""&&a.length!==1&&a.shift(),a0(a,t)||nk(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},a0=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?a0(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(Zf);return(i=t.validators.find(({validator:a})=>a(o)))==null?void 0:i.classGroupId},Bp=/^\[(.+)\]$/,nk=e=>{if(Bp.test(e)){const t=Bp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},rk=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return ok(Object.entries(e.classGroups),n).forEach(([o,i])=>{vd(i,r,o,t)}),r},vd=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:Wp(t,s);o.classGroupId=n;return}if(typeof s=="function"){if(sk(s)){vd(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([o,i])=>{vd(i,Wp(t,o),n,r)})})},Wp=(e,t)=>{let n=e;return t.split(Zf).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},sk=e=>e.isThemeGetter,ok=(e,t)=>t?e.map(([n,r])=>{const s=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,a])=>[t+i,a])):o);return[n,s]}):e,ik=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return s(o,i),i},set(o,i){n.has(o)?n.set(o,i):s(o,i)}}},l0="!",ak=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],o=t.length,i=a=>{const l=[];let u=0,c=0,f;for(let w=0;w<a.length;w++){let v=a[w];if(u===0){if(v===s&&(r||a.slice(w,w+o)===t)){l.push(a.slice(c,w)),c=w+o;continue}if(v==="/"){f=w;continue}}v==="["?u++:v==="]"&&u--}const h=l.length===0?a:a.substring(c),p=h.startsWith(l0),b=p?h.substring(1):h,g=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:i}):i},lk=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},uk=e=>({cache:ik(e.cacheSize),parseClassName:ak(e),...tk(e)}),ck=/\s+/,dk=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,o=[],i=e.trim().split(ck);let a="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:c,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:p}=n(u);let b=!!p,g=r(b?h.substring(0,p):h);if(!g){if(!b){a=u+(a.length>0?" "+a:a);continue}if(g=r(h),!g){a=u+(a.length>0?" "+a:a);continue}b=!1}const w=lk(c).join(":"),v=f?w+l0:w,m=v+g;if(o.includes(m))continue;o.push(m);const x=s(g,b);for(let S=0;S<x.length;++S){const k=x[S];o.push(v+k)}a=u+(a.length>0?" "+a:a)}return a};function fk(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=u0(t))&&(r&&(r+=" "),r+=n);return r}const u0=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=u0(e[r]))&&(n&&(n+=" "),n+=t);return n};function hk(e,...t){let n,r,s,o=i;function i(l){const u=t.reduce((c,f)=>f(c),e());return n=uk(u),r=n.cache.get,s=n.cache.set,o=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=dk(l,n);return s(l,c),c}return function(){return o(fk.apply(null,arguments))}}const _e=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},c0=/^\[(?:([a-z-]+):)?(.+)\]$/i,pk=/^\d+\/\d+$/,mk=new Set(["px","full","screen"]),gk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vk=/\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$/,yk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,xk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wk=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$n=e=>oo(e)||mk.has(e)||pk.test(e),ur=e=>zo(e,"length",Tk),oo=e=>!!e&&!Number.isNaN(Number(e)),rc=e=>zo(e,"number",oo),Xo=e=>!!e&&Number.isInteger(Number(e)),bk=e=>e.endsWith("%")&&oo(e.slice(0,-1)),le=e=>c0.test(e),cr=e=>gk.test(e),Sk=new Set(["length","size","percentage"]),kk=e=>zo(e,Sk,d0),Ck=e=>zo(e,"position",d0),Ek=new Set(["image","url"]),_k=e=>zo(e,Ek,Pk),Nk=e=>zo(e,"",Rk),Jo=()=>!0,zo=(e,t,n)=>{const r=c0.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Tk=e=>vk.test(e)&&!yk.test(e),d0=()=>!1,Rk=e=>xk.test(e),Pk=e=>wk.test(e),jk=()=>{const e=_e("colors"),t=_e("spacing"),n=_e("blur"),r=_e("brightness"),s=_e("borderColor"),o=_e("borderRadius"),i=_e("borderSpacing"),a=_e("borderWidth"),l=_e("contrast"),u=_e("grayscale"),c=_e("hueRotate"),f=_e("invert"),h=_e("gap"),p=_e("gradientColorStops"),b=_e("gradientColorStopPositions"),g=_e("inset"),w=_e("margin"),v=_e("opacity"),m=_e("padding"),x=_e("saturate"),S=_e("scale"),k=_e("sepia"),N=_e("skew"),T=_e("space"),j=_e("translate"),F=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",le,t],A=()=>[le,t],W=()=>["",$n,ur],L=()=>["auto",oo,le],ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],X=()=>["solid","dashed","dotted","double","none"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",le],B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],se=()=>[oo,le];return{cacheSize:500,separator:":",theme:{colors:[Jo],spacing:[$n,ur],blur:["none","",cr,le],brightness:se(),borderColor:[e],borderRadius:["none","","full",cr,le],borderSpacing:A(),borderWidth:W(),contrast:se(),grayscale:O(),hueRotate:se(),invert:O(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[bk,ur],inset:q(),margin:q(),opacity:se(),padding:A(),saturate:se(),scale:se(),sepia:O(),skew:se(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",le]}],container:["container"],columns:[{columns:[cr]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"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:[...ne(),le]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Xo,le]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",le]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",Xo,le]}],"grid-cols":[{"grid-cols":[Jo]}],"col-start-end":[{col:["auto",{span:["full",Xo,le]},le]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[Jo]}],"row-start-end":[{row:["auto",{span:[Xo,le]},le]}],"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",le]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",le]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],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",le,t]}],"min-w":[{"min-w":[le,t,"min","max","fit"]}],"max-w":[{"max-w":[le,t,"none","full","min","max","fit","prose",{screen:[cr]},cr]}],h:[{h:[le,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[le,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[le,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[le,t,"auto","min","max","fit"]}],"font-size":[{text:["base",cr,ur]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",rc]}],"font-family":[{font:[Jo]}],"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",le]}],"line-clamp":[{"line-clamp":["none",oo,rc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$n,le]}],"list-image":[{"list-image":["none",le]}],"list-style-type":[{list:["none","disc","decimal",le]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$n,ur]}],"underline-offset":[{"underline-offset":["auto",$n,le]}],"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:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",le]}],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",le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ne(),Ck]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",kk]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},_k]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"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":[v]}],"border-style":[{border:[...X(),"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":[v]}],"divide-style":[{divide:X()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...X()]}],"outline-offset":[{"outline-offset":[$n,le]}],"outline-w":[{outline:[$n,ur]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[$n,ur]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",cr,Nk]}],"shadow-color":[{shadow:[Jo]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...te(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":te()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",cr,le]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[k]}],"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":[f]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",le]}],duration:[{duration:se()}],ease:[{ease:["linear","in","out","in-out",le]}],delay:[{delay:se()}],animate:[{animate:["none","spin","ping","pulse","bounce",le]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Xo,le]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",le]}],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",le]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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",le]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[$n,ur,rc]}],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"]}}},Ok=hk(jk);function Le(...e){return Ok(o0(e))}const Ak=WS,f0=y.forwardRef(({className:e,...t},n)=>d.jsx(Xy,{ref:n,className:Le("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}));f0.displayName=Xy.displayName;const Ik=ia("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"}}),h0=y.forwardRef(({className:e,variant:t,...n},r)=>d.jsx(Jy,{ref:r,className:Le(Ik({variant:t}),e),...n}));h0.displayName=Jy.displayName;const Mk=y.forwardRef(({className:e,...t},n)=>d.jsx(n0,{ref:n,className:Le("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}));Mk.displayName=n0.displayName;const p0=y.forwardRef(({className:e,...t},n)=>d.jsx(r0,{ref:n,className:Le("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:d.jsx(pu,{className:"h-4 w-4"})}));p0.displayName=r0.displayName;const m0=y.forwardRef(({className:e,...t},n)=>d.jsx(e0,{ref:n,className:Le("text-sm font-semibold",e),...t}));m0.displayName=e0.displayName;const g0=y.forwardRef(({className:e,...t},n)=>d.jsx(t0,{ref:n,className:Le("text-sm opacity-90",e),...t}));g0.displayName=t0.displayName;function Lk(){const{toasts:e}=Yb();return d.jsxs(Ak,{children:[e.map(function({id:t,title:n,description:r,action:s,...o}){return d.jsxs(h0,{...o,children:[d.jsxs("div",{className:"grid gap-1",children:[n&&d.jsx(m0,{children:n}),r&&d.jsx(g0,{children:r})]}),s,d.jsx(p0,{})]},t)}),d.jsx(f0,{})]})}var Hp=["light","dark"],Dk="(prefers-color-scheme: dark)",Fk=y.createContext(void 0),zk={setTheme:e=>{},themes:[]},$k=()=>{var e;return(e=y.useContext(Fk))!=null?e:zk};y.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:o,value:i,attrs:a,nonce:l})=>{let u=o==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=s?Hp.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(b,g=!1,w=!0)=>{let v=i?i[b]:b,m=g?b+"|| ''":`'${v}'`,x="";return s&&w&&!g&&Hp.includes(b)&&(x+=`d.style.colorScheme = '${b}';`),n==="class"?g||v?x+=`c.add(${m})`:x+="null":v&&(x+=`d[s](n,${m})`),x},p=e?`!function(){${c}${h(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${Dk}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}${u?"":"else{"+h(o,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${h(i?"x[e]":"e",!0)}}else{${h(o,!1,!1)};}${f}}catch(t){}}();`;return y.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})});var Vk=e=>{switch(e){case"success":return Wk;case"info":return Qk;case"warning":return Hk;case"error":return Zk;default:return null}},Uk=Array(12).fill(0),Bk=({visible:e,className:t})=>I.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},I.createElement("div",{className:"sonner-spinner"},Uk.map((n,r)=>I.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Wk=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.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"})),Hk=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},I.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"})),Qk=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.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"})),Zk=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.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"})),Gk=I.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"},I.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Kk=()=>{let[e,t]=I.useState(document.hidden);return I.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},yd=1,qk=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,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:yd++,o=this.toasts.find(a=>a.id===s),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:n}),{...a,...e,id:s,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,id:s}),s},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(),s=n!==void 0,o,i=r.then(async l=>{if(o=["resolve",l],I.isValidElement(l))s=!1,this.create({id:n,type:"default",message:l});else if(Xk(l)&&!l.ok){s=!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){s=!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(o=["reject",l],t.error!==void 0){s=!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;s&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>i.then(()=>o[0]==="reject"?u(o[1]):l(o[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)||yd++;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}},bt=new qk,Yk=(e,t)=>{let n=(t==null?void 0:t.id)||yd++;return bt.addToast({title:e,...t,id:n}),n},Xk=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Jk=Yk,eC=()=>bt.toasts,tC=()=>bt.getActiveToasts(),er=Object.assign(Jk,{success:bt.success,info:bt.info,warning:bt.warning,error:bt.error,custom:bt.custom,message:bt.message,promise:bt.promise,dismiss:bt.dismiss,loading:bt.loading},{getHistory:eC,getToasts:tC});function nC(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))}nC(`: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 Ma(e){return e.label!==void 0}var rC=3,sC="32px",oC="16px",Qp=4e3,iC=356,aC=14,lC=20,uC=200;function Jt(...e){return e.filter(Boolean).join(" ")}function cC(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var dC=e=>{var t,n,r,s,o,i,a,l,u,c,f;let{invert:h,toast:p,unstyled:b,interacting:g,setHeights:w,visibleToasts:v,heights:m,index:x,toasts:S,expanded:k,removeToast:N,defaultRichColors:T,closeButton:j,style:F,cancelButtonStyle:M,actionButtonStyle:q,className:A="",descriptionClassName:W="",duration:L,position:ne,gap:X,loadingIcon:te,expandByDefault:P,classNames:O,icons:B,closeButtonAriaLabel:se="Close toast",pauseWhenPageIsHidden:ee}=e,[ue,ce]=I.useState(null),[Oe,Ke]=I.useState(null),[ge,Mn]=I.useState(!1),[Ft,Gt]=I.useState(!1),[pn,Ln]=I.useState(!1),[mn,Xr]=I.useState(!1),[js,Os]=I.useState(!1),[Bo,As]=I.useState(0),[Dn,C]=I.useState(0),_=I.useRef(p.duration||L||Qp),R=I.useRef(null),U=I.useRef(null),V=x===0,$=x+1<=v,Q=p.type,he=p.dismissible!==!1,Se=p.className||"",yt=p.descriptionClassName||"",Fn=I.useMemo(()=>m.findIndex(ae=>ae.toastId===p.id)||0,[m,p.id]),gn=I.useMemo(()=>{var ae;return(ae=p.closeButton)!=null?ae:j},[p.closeButton,j]),fa=I.useMemo(()=>p.duration||L||Qp,[p.duration,L]),Jr=I.useRef(0),vn=I.useRef(0),ha=I.useRef(0),zn=I.useRef(null),[Eu,pa]=ne.split("-"),kh=I.useMemo(()=>m.reduce((ae,ke,Re)=>Re>=Fn?ae:ae+ke.height,0),[m,Fn]),Ch=Kk(),yw=p.invert||h,_u=Q==="loading";vn.current=I.useMemo(()=>Fn*X+kh,[Fn,kh]),I.useEffect(()=>{_.current=fa},[fa]),I.useEffect(()=>{Mn(!0)},[]),I.useEffect(()=>{let ae=U.current;if(ae){let ke=ae.getBoundingClientRect().height;return C(ke),w(Re=>[{toastId:p.id,height:ke,position:p.position},...Re]),()=>w(Re=>Re.filter(Kt=>Kt.toastId!==p.id))}},[w,p.id]),I.useLayoutEffect(()=>{if(!ge)return;let ae=U.current,ke=ae.style.height;ae.style.height="auto";let Re=ae.getBoundingClientRect().height;ae.style.height=ke,C(Re),w(Kt=>Kt.find(qt=>qt.toastId===p.id)?Kt.map(qt=>qt.toastId===p.id?{...qt,height:Re}:qt):[{toastId:p.id,height:Re,position:p.position},...Kt])},[ge,p.title,p.description,w,p.id]);let or=I.useCallback(()=>{Gt(!0),As(vn.current),w(ae=>ae.filter(ke=>ke.toastId!==p.id)),setTimeout(()=>{N(p)},uC)},[p,N,w,vn]);I.useEffect(()=>{if(p.promise&&Q==="loading"||p.duration===1/0||p.type==="loading")return;let ae;return k||g||ee&&Ch?(()=>{if(ha.current<Jr.current){let ke=new Date().getTime()-Jr.current;_.current=_.current-ke}ha.current=new Date().getTime()})():_.current!==1/0&&(Jr.current=new Date().getTime(),ae=setTimeout(()=>{var ke;(ke=p.onAutoClose)==null||ke.call(p,p),or()},_.current)),()=>clearTimeout(ae)},[k,g,p,Q,ee,Ch,or]),I.useEffect(()=>{p.delete&&or()},[or,p.delete]);function xw(){var ae,ke,Re;return B!=null&&B.loading?I.createElement("div",{className:Jt(O==null?void 0:O.loader,(ae=p==null?void 0:p.classNames)==null?void 0:ae.loader,"sonner-loader"),"data-visible":Q==="loading"},B.loading):te?I.createElement("div",{className:Jt(O==null?void 0:O.loader,(ke=p==null?void 0:p.classNames)==null?void 0:ke.loader,"sonner-loader"),"data-visible":Q==="loading"},te):I.createElement(Bk,{className:Jt(O==null?void 0:O.loader,(Re=p==null?void 0:p.classNames)==null?void 0:Re.loader),visible:Q==="loading"})}return I.createElement("li",{tabIndex:0,ref:U,className:Jt(A,Se,O==null?void 0:O.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,O==null?void 0:O.default,O==null?void 0:O[Q],(n=p==null?void 0:p.classNames)==null?void 0:n[Q]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:T,"data-styled":!(p.jsx||p.unstyled||b),"data-mounted":ge,"data-promise":!!p.promise,"data-swiped":js,"data-removed":Ft,"data-visible":$,"data-y-position":Eu,"data-x-position":pa,"data-index":x,"data-front":V,"data-swiping":pn,"data-dismissible":he,"data-type":Q,"data-invert":yw,"data-swipe-out":mn,"data-swipe-direction":Oe,"data-expanded":!!(k||P&&ge),style:{"--index":x,"--toasts-before":x,"--z-index":S.length-x,"--offset":`${Ft?Bo:vn.current}px`,"--initial-height":P?"auto":`${Dn}px`,...F,...p.style},onDragEnd:()=>{Ln(!1),ce(null),zn.current=null},onPointerDown:ae=>{_u||!he||(R.current=new Date,As(vn.current),ae.target.setPointerCapture(ae.pointerId),ae.target.tagName!=="BUTTON"&&(Ln(!0),zn.current={x:ae.clientX,y:ae.clientY}))},onPointerUp:()=>{var ae,ke,Re,Kt;if(mn||!he)return;zn.current=null;let qt=Number(((ae=U.current)==null?void 0:ae.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ir=Number(((ke=U.current)==null?void 0:ke.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),es=new Date().getTime()-((Re=R.current)==null?void 0:Re.getTime()),Yt=ue==="x"?qt:ir,ar=Math.abs(Yt)/es;if(Math.abs(Yt)>=lC||ar>.11){As(vn.current),(Kt=p.onDismiss)==null||Kt.call(p,p),Ke(ue==="x"?qt>0?"right":"left":ir>0?"down":"up"),or(),Xr(!0),Os(!1);return}Ln(!1),ce(null)},onPointerMove:ae=>{var ke,Re,Kt,qt;if(!zn.current||!he||((ke=window.getSelection())==null?void 0:ke.toString().length)>0)return;let ir=ae.clientY-zn.current.y,es=ae.clientX-zn.current.x,Yt=(Re=e.swipeDirections)!=null?Re:cC(ne);!ue&&(Math.abs(es)>1||Math.abs(ir)>1)&&ce(Math.abs(es)>Math.abs(ir)?"x":"y");let ar={x:0,y:0};ue==="y"?(Yt.includes("top")||Yt.includes("bottom"))&&(Yt.includes("top")&&ir<0||Yt.includes("bottom")&&ir>0)&&(ar.y=ir):ue==="x"&&(Yt.includes("left")||Yt.includes("right"))&&(Yt.includes("left")&&es<0||Yt.includes("right")&&es>0)&&(ar.x=es),(Math.abs(ar.x)>0||Math.abs(ar.y)>0)&&Os(!0),(Kt=U.current)==null||Kt.style.setProperty("--swipe-amount-x",`${ar.x}px`),(qt=U.current)==null||qt.style.setProperty("--swipe-amount-y",`${ar.y}px`)}},gn&&!p.jsx?I.createElement("button",{"aria-label":se,"data-disabled":_u,"data-close-button":!0,onClick:_u||!he?()=>{}:()=>{var ae;or(),(ae=p.onDismiss)==null||ae.call(p,p)},className:Jt(O==null?void 0:O.closeButton,(s=p==null?void 0:p.classNames)==null?void 0:s.closeButton)},(o=B==null?void 0:B.close)!=null?o:Gk):null,p.jsx||y.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:I.createElement(I.Fragment,null,Q||p.icon||p.promise?I.createElement("div",{"data-icon":"",className:Jt(O==null?void 0:O.icon,(i=p==null?void 0:p.classNames)==null?void 0:i.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||xw():null,p.type!=="loading"?p.icon||(B==null?void 0:B[Q])||Vk(Q):null):null,I.createElement("div",{"data-content":"",className:Jt(O==null?void 0:O.content,(a=p==null?void 0:p.classNames)==null?void 0:a.content)},I.createElement("div",{"data-title":"",className:Jt(O==null?void 0:O.title,(l=p==null?void 0:p.classNames)==null?void 0:l.title)},typeof p.title=="function"?p.title():p.title),p.description?I.createElement("div",{"data-description":"",className:Jt(W,yt,O==null?void 0:O.description,(u=p==null?void 0:p.classNames)==null?void 0:u.description)},typeof p.description=="function"?p.description():p.description):null),y.isValidElement(p.cancel)?p.cancel:p.cancel&&Ma(p.cancel)?I.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||M,onClick:ae=>{var ke,Re;Ma(p.cancel)&&he&&((Re=(ke=p.cancel).onClick)==null||Re.call(ke,ae),or())},className:Jt(O==null?void 0:O.cancelButton,(c=p==null?void 0:p.classNames)==null?void 0:c.cancelButton)},p.cancel.label):null,y.isValidElement(p.action)?p.action:p.action&&Ma(p.action)?I.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||q,onClick:ae=>{var ke,Re;Ma(p.action)&&((Re=(ke=p.action).onClick)==null||Re.call(ke,ae),!ae.defaultPrevented&&or())},className:Jt(O==null?void 0:O.actionButton,(f=p==null?void 0:p.classNames)==null?void 0:f.actionButton)},p.action.label):null))};function Zp(){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 fC(e,t){let n={};return[e,t].forEach((r,s)=>{let o=s===1,i=o?"--mobile-offset":"--offset",a=o?oC:sC;function l(u){["top","right","bottom","left"].forEach(c=>{n[`${i}-${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[`${i}-${u}`]=a:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var hC=y.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:i,className:a,offset:l,mobileOffset:u,theme:c="light",richColors:f,duration:h,style:p,visibleToasts:b=rC,toastOptions:g,dir:w=Zp(),gap:v=aC,loadingIcon:m,icons:x,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:k}=e,[N,T]=I.useState([]),j=I.useMemo(()=>Array.from(new Set([r].concat(N.filter(ee=>ee.position).map(ee=>ee.position)))),[N,r]),[F,M]=I.useState([]),[q,A]=I.useState(!1),[W,L]=I.useState(!1),[ne,X]=I.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),te=I.useRef(null),P=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),O=I.useRef(null),B=I.useRef(!1),se=I.useCallback(ee=>{T(ue=>{var ce;return(ce=ue.find(Oe=>Oe.id===ee.id))!=null&&ce.delete||bt.dismiss(ee.id),ue.filter(({id:Oe})=>Oe!==ee.id)})},[]);return I.useEffect(()=>bt.subscribe(ee=>{if(ee.dismiss){T(ue=>ue.map(ce=>ce.id===ee.id?{...ce,delete:!0}:ce));return}setTimeout(()=>{Py.flushSync(()=>{T(ue=>{let ce=ue.findIndex(Oe=>Oe.id===ee.id);return ce!==-1?[...ue.slice(0,ce),{...ue[ce],...ee},...ue.slice(ce+1)]:[ee,...ue]})})})}),[]),I.useEffect(()=>{if(c!=="system"){X(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?X("dark"):X("light")),typeof window>"u")return;let ee=window.matchMedia("(prefers-color-scheme: dark)");try{ee.addEventListener("change",({matches:ue})=>{X(ue?"dark":"light")})}catch{ee.addListener(({matches:ce})=>{try{X(ce?"dark":"light")}catch(Oe){console.error(Oe)}})}},[c]),I.useEffect(()=>{N.length<=1&&A(!1)},[N]),I.useEffect(()=>{let ee=ue=>{var ce,Oe;s.every(Ke=>ue[Ke]||ue.code===Ke)&&(A(!0),(ce=te.current)==null||ce.focus()),ue.code==="Escape"&&(document.activeElement===te.current||(Oe=te.current)!=null&&Oe.contains(document.activeElement))&&A(!1)};return document.addEventListener("keydown",ee),()=>document.removeEventListener("keydown",ee)},[s]),I.useEffect(()=>{if(te.current)return()=>{O.current&&(O.current.focus({preventScroll:!0}),O.current=null,B.current=!1)}},[te.current]),I.createElement("section",{ref:t,"aria-label":`${S} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},j.map((ee,ue)=>{var ce;let[Oe,Ke]=ee.split("-");return N.length?I.createElement("ol",{key:ee,dir:w==="auto"?Zp():w,tabIndex:-1,ref:te,className:a,"data-sonner-toaster":!0,"data-theme":ne,"data-y-position":Oe,"data-lifted":q&&N.length>1&&!o,"data-x-position":Ke,style:{"--front-toast-height":`${((ce=F[0])==null?void 0:ce.height)||0}px`,"--width":`${iC}px`,"--gap":`${v}px`,...p,...fC(l,u)},onBlur:ge=>{B.current&&!ge.currentTarget.contains(ge.relatedTarget)&&(B.current=!1,O.current&&(O.current.focus({preventScroll:!0}),O.current=null))},onFocus:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||B.current||(B.current=!0,O.current=ge.relatedTarget)},onMouseEnter:()=>A(!0),onMouseMove:()=>A(!0),onMouseLeave:()=>{W||A(!1)},onDragEnd:()=>A(!1),onPointerDown:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},N.filter(ge=>!ge.position&&ue===0||ge.position===ee).map((ge,Mn)=>{var Ft,Gt;return I.createElement(dC,{key:ge.id,icons:x,index:Mn,toast:ge,defaultRichColors:f,duration:(Ft=g==null?void 0:g.duration)!=null?Ft:h,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:b,closeButton:(Gt=g==null?void 0:g.closeButton)!=null?Gt:i,interacting:W,position:ee,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:se,toasts:N.filter(pn=>pn.position==ge.position),heights:F.filter(pn=>pn.position==ge.position),setHeights:M,expandByDefault:o,gap:v,loadingIcon:m,expanded:q,pauseWhenPageIsHidden:k,swipeDirections:e.swipeDirections})})):null}))});const pC=({...e})=>{const{theme:t="system"}=$k();return d.jsx(hC,{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 mC=Yd[" useId ".trim().toString()]||(()=>{}),gC=0;function sc(e){const[t,n]=y.useState(mC());return Jn(()=>{e||n(r=>r??String(gC++))},[e]),e||(t?`radix-${t}`:"")}const vC=["top","right","bottom","left"],Wr=Math.min,Pt=Math.max,jl=Math.round,La=Math.floor,Pn=e=>({x:e,y:e}),yC={left:"right",right:"left",bottom:"top",top:"bottom"},xC={start:"end",end:"start"};function xd(e,t,n){return Pt(e,Wr(t,n))}function tr(e,t){return typeof e=="function"?e(t):e}function nr(e){return e.split("-")[0]}function $o(e){return e.split("-")[1]}function Gf(e){return e==="x"?"y":"x"}function Kf(e){return e==="y"?"height":"width"}const wC=new Set(["top","bottom"]);function _n(e){return wC.has(nr(e))?"y":"x"}function qf(e){return Gf(_n(e))}function bC(e,t,n){n===void 0&&(n=!1);const r=$o(e),s=qf(e),o=Kf(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Ol(i)),[i,Ol(i)]}function SC(e){const t=Ol(e);return[wd(e),t,wd(t)]}function wd(e){return e.replace(/start|end/g,t=>xC[t])}const Gp=["left","right"],Kp=["right","left"],kC=["top","bottom"],CC=["bottom","top"];function EC(e,t,n){switch(e){case"top":case"bottom":return n?t?Kp:Gp:t?Gp:Kp;case"left":case"right":return t?kC:CC;default:return[]}}function _C(e,t,n,r){const s=$o(e);let o=EC(nr(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(wd)))),o}function Ol(e){return e.replace(/left|right|bottom|top/g,t=>yC[t])}function NC(e){return{top:0,right:0,bottom:0,left:0,...e}}function v0(e){return typeof e!="number"?NC(e):{top:e,right:e,bottom:e,left:e}}function Al(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function qp(e,t,n){let{reference:r,floating:s}=e;const o=_n(t),i=qf(t),a=Kf(i),l=nr(t),u=o==="y",c=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let p;switch(l){case"top":p={x:c,y:r.y-s.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-s.width,y:f};break;default:p={x:r.x,y:r.y}}switch($o(t)){case"start":p[i]-=h*(n&&u?-1:1);break;case"end":p[i]+=h*(n&&u?-1:1);break}return p}const TC=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:i}=n,a=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:f}=qp(u,r,l),h=r,p={},b=0;for(let g=0;g<a.length;g++){const{name:w,fn:v}=a[g],{x:m,y:x,data:S,reset:k}=await v({x:c,y:f,initialPlacement:r,placement:h,strategy:s,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});c=m??c,f=x??f,p={...p,[w]:{...p[w],...S}},k&&b<=50&&(b++,typeof k=="object"&&(k.placement&&(h=k.placement),k.rects&&(u=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):k.rects),{x:c,y:f}=qp(u,h,l)),g=-1)}return{x:c,y:f,placement:h,strategy:s,middlewareData:p}};async function zi(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=tr(t,e),b=v0(p),w=a[h?f==="floating"?"reference":"floating":f],v=Al(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(w)))==null||n?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),m=f==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),S=await(o.isElement==null?void 0:o.isElement(x))?await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1}:{x:1,y:1},k=Al(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:x,strategy:l}):m);return{top:(v.top-k.top+b.top)/S.y,bottom:(k.bottom-v.bottom+b.bottom)/S.y,left:(v.left-k.left+b.left)/S.x,right:(k.right-v.right+b.right)/S.x}}const RC=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=tr(e,t)||{};if(u==null)return{};const f=v0(c),h={x:n,y:r},p=qf(s),b=Kf(p),g=await i.getDimensions(u),w=p==="y",v=w?"top":"left",m=w?"bottom":"right",x=w?"clientHeight":"clientWidth",S=o.reference[b]+o.reference[p]-h[p]-o.floating[b],k=h[p]-o.reference[p],N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let T=N?N[x]:0;(!T||!await(i.isElement==null?void 0:i.isElement(N)))&&(T=a.floating[x]||o.floating[b]);const j=S/2-k/2,F=T/2-g[b]/2-1,M=Wr(f[v],F),q=Wr(f[m],F),A=M,W=T-g[b]-q,L=T/2-g[b]/2+j,ne=xd(A,L,W),X=!l.arrow&&$o(s)!=null&&L!==ne&&o.reference[b]/2-(L<A?M:q)-g[b]/2<0,te=X?L<A?L-A:L-W:0;return{[p]:h[p]+te,data:{[p]:ne,centerOffset:L-ne-te,...X&&{alignmentOffset:te}},reset:X}}}),PC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...w}=tr(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const v=nr(s),m=_n(a),x=nr(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),k=h||(x||!g?[Ol(a)]:SC(a)),N=b!=="none";!h&&N&&k.push(..._C(a,g,b,S));const T=[a,...k],j=await zi(t,w),F=[];let M=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&F.push(j[v]),f){const L=bC(s,i,S);F.push(j[L[0]],j[L[1]])}if(M=[...M,{placement:s,overflows:F}],!F.every(L=>L<=0)){var q,A;const L=(((q=o.flip)==null?void 0:q.index)||0)+1,ne=T[L];if(ne&&(!(f==="alignment"?m!==_n(ne):!1)||M.every(P=>P.overflows[0]>0&&_n(P.placement)===m)))return{data:{index:L,overflows:M},reset:{placement:ne}};let X=(A=M.filter(te=>te.overflows[0]<=0).sort((te,P)=>te.overflows[1]-P.overflows[1])[0])==null?void 0:A.placement;if(!X)switch(p){case"bestFit":{var W;const te=(W=M.filter(P=>{if(N){const O=_n(P.placement);return O===m||O==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(O=>O>0).reduce((O,B)=>O+B,0)]).sort((P,O)=>P[1]-O[1])[0])==null?void 0:W[0];te&&(X=te);break}case"initialPlacement":X=a;break}if(s!==X)return{reset:{placement:X}}}return{}}}};function Yp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Xp(e){return vC.some(t=>e[t]>=0)}const jC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=tr(e,t);switch(r){case"referenceHidden":{const o=await zi(t,{...s,elementContext:"reference"}),i=Yp(o,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Xp(i)}}}case"escaped":{const o=await zi(t,{...s,altBoundary:!0}),i=Yp(o,n.floating);return{data:{escapedOffsets:i,escaped:Xp(i)}}}default:return{}}}}},y0=new Set(["left","top"]);async function OC(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=nr(n),a=$o(n),l=_n(n)==="y",u=y0.has(i)?-1:1,c=o&&l?-1:1,f=tr(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof b=="number"&&(p=a==="end"?b*-1:b),l?{x:p*c,y:h*u}:{x:h*u,y:p*c}}const AC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:o,placement:i,middlewareData:a}=t,l=await OC(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:o+l.y,data:{...l,placement:i}}}}},IC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x:v,y:m}=w;return{x:v,y:m}}},...l}=tr(e,t),u={x:n,y:r},c=await zi(t,l),f=_n(nr(s)),h=Gf(f);let p=u[h],b=u[f];if(o){const w=h==="y"?"top":"left",v=h==="y"?"bottom":"right",m=p+c[w],x=p-c[v];p=xd(m,p,x)}if(i){const w=f==="y"?"top":"left",v=f==="y"?"bottom":"right",m=b+c[w],x=b-c[v];b=xd(m,b,x)}const g=a.fn({...t,[h]:p,[f]:b});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:o,[f]:i}}}}}},MC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:o,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=tr(e,t),c={x:n,y:r},f=_n(s),h=Gf(f);let p=c[h],b=c[f];const g=tr(a,t),w=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const x=h==="y"?"height":"width",S=o.reference[h]-o.floating[x]+w.mainAxis,k=o.reference[h]+o.reference[x]-w.mainAxis;p<S?p=S:p>k&&(p=k)}if(u){var v,m;const x=h==="y"?"width":"height",S=y0.has(nr(s)),k=o.reference[f]-o.floating[x]+(S&&((v=i.offset)==null?void 0:v[f])||0)+(S?0:w.crossAxis),N=o.reference[f]+o.reference[x]+(S?0:((m=i.offset)==null?void 0:m[f])||0)-(S?w.crossAxis:0);b<k?b=k:b>N&&(b=N)}return{[h]:p,[f]:b}}}},LC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:o,platform:i,elements:a}=t,{apply:l=()=>{},...u}=tr(e,t),c=await zi(t,u),f=nr(s),h=$o(s),p=_n(s)==="y",{width:b,height:g}=o.floating;let w,v;f==="top"||f==="bottom"?(w=f,v=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(v=f,w=h==="end"?"top":"bottom");const m=g-c.top-c.bottom,x=b-c.left-c.right,S=Wr(g-c[w],m),k=Wr(b-c[v],x),N=!t.middlewareData.shift;let T=S,j=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=m),N&&!h){const M=Pt(c.left,0),q=Pt(c.right,0),A=Pt(c.top,0),W=Pt(c.bottom,0);p?j=b-2*(M!==0||q!==0?M+q:Pt(c.left,c.right)):T=g-2*(A!==0||W!==0?A+W:Pt(c.top,c.bottom))}await l({...t,availableWidth:j,availableHeight:T});const F=await i.getDimensions(a.floating);return b!==F.width||g!==F.height?{reset:{rects:!0}}:{}}}};function mu(){return typeof window<"u"}function Vo(e){return x0(e)?(e.nodeName||"").toLowerCase():"#document"}function At(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function In(e){var t;return(t=(x0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function x0(e){return mu()?e instanceof Node||e instanceof At(e).Node:!1}function dn(e){return mu()?e instanceof Element||e instanceof At(e).Element:!1}function An(e){return mu()?e instanceof HTMLElement||e instanceof At(e).HTMLElement:!1}function Jp(e){return!mu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof At(e).ShadowRoot}const DC=new Set(["inline","contents"]);function aa(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=fn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!DC.has(s)}const FC=new Set(["table","td","th"]);function zC(e){return FC.has(Vo(e))}const $C=[":popover-open",":modal"];function gu(e){return $C.some(t=>{try{return e.matches(t)}catch{return!1}})}const VC=["transform","translate","scale","rotate","perspective"],UC=["transform","translate","scale","rotate","perspective","filter"],BC=["paint","layout","strict","content"];function Yf(e){const t=Xf(),n=dn(e)?fn(e):e;return VC.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)||UC.some(r=>(n.willChange||"").includes(r))||BC.some(r=>(n.contain||"").includes(r))}function WC(e){let t=Hr(e);for(;An(t)&&!Ro(t);){if(Yf(t))return t;if(gu(t))return null;t=Hr(t)}return null}function Xf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const HC=new Set(["html","body","#document"]);function Ro(e){return HC.has(Vo(e))}function fn(e){return At(e).getComputedStyle(e)}function vu(e){return dn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Hr(e){if(Vo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jp(e)&&e.host||In(e);return Jp(t)?t.host:t}function w0(e){const t=Hr(e);return Ro(t)?e.ownerDocument?e.ownerDocument.body:e.body:An(t)&&aa(t)?t:w0(t)}function $i(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=w0(e),o=s===((r=e.ownerDocument)==null?void 0:r.body),i=At(s);if(o){const a=bd(i);return t.concat(i,i.visualViewport||[],aa(s)?s:[],a&&n?$i(a):[])}return t.concat(s,$i(s,[],n))}function bd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function b0(e){const t=fn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=An(e),o=s?e.offsetWidth:n,i=s?e.offsetHeight:r,a=jl(n)!==o||jl(r)!==i;return a&&(n=o,r=i),{width:n,height:r,$:a}}function Jf(e){return dn(e)?e:e.contextElement}function io(e){const t=Jf(e);if(!An(t))return Pn(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:o}=b0(t);let i=(o?jl(n.width):n.width)/r,a=(o?jl(n.height):n.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const QC=Pn(0);function S0(e){const t=At(e);return!Xf()||!t.visualViewport?QC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ZC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==At(e)?!1:t}function Cs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=Jf(e);let i=Pn(1);t&&(r?dn(r)&&(i=io(r)):i=io(e));const a=ZC(o,n,r)?S0(o):Pn(0);let l=(s.left+a.x)/i.x,u=(s.top+a.y)/i.y,c=s.width/i.x,f=s.height/i.y;if(o){const h=At(o),p=r&&dn(r)?At(r):r;let b=h,g=bd(b);for(;g&&r&&p!==b;){const w=io(g),v=g.getBoundingClientRect(),m=fn(g),x=v.left+(g.clientLeft+parseFloat(m.paddingLeft))*w.x,S=v.top+(g.clientTop+parseFloat(m.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,f*=w.y,l+=x,u+=S,b=At(g),g=bd(b)}}return Al({width:c,height:f,x:l,y:u})}function eh(e,t){const n=vu(e).scrollLeft;return t?t.left+n:Cs(In(e)).left+n}function k0(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:eh(e,r)),o=r.top+t.scrollTop;return{x:s,y:o}}function GC(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const o=s==="fixed",i=In(r),a=t?gu(t.floating):!1;if(r===i||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=Pn(1);const c=Pn(0),f=An(r);if((f||!f&&!o)&&((Vo(r)!=="body"||aa(i))&&(l=vu(r)),An(r))){const p=Cs(r);u=io(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}const h=i&&!f&&!o?k0(i,l,!0):Pn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+h.x,y:n.y*u.y-l.scrollTop*u.y+c.y+h.y}}function KC(e){return Array.from(e.getClientRects())}function qC(e){const t=In(e),n=vu(e),r=e.ownerDocument.body,s=Pt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Pt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+eh(e);const a=-n.scrollTop;return fn(r).direction==="rtl"&&(i+=Pt(t.clientWidth,r.clientWidth)-s),{width:s,height:o,x:i,y:a}}function YC(e,t){const n=At(e),r=In(e),s=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,a=0,l=0;if(s){o=s.width,i=s.height;const u=Xf();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:i,x:a,y:l}}const XC=new Set(["absolute","fixed"]);function JC(e,t){const n=Cs(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,o=An(e)?io(e):Pn(1),i=e.clientWidth*o.x,a=e.clientHeight*o.y,l=s*o.x,u=r*o.y;return{width:i,height:a,x:l,y:u}}function em(e,t,n){let r;if(t==="viewport")r=YC(e,n);else if(t==="document")r=qC(In(e));else if(dn(t))r=JC(t,n);else{const s=S0(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Al(r)}function C0(e,t){const n=Hr(e);return n===t||!dn(n)||Ro(n)?!1:fn(n).position==="fixed"||C0(n,t)}function eE(e,t){const n=t.get(e);if(n)return n;let r=$i(e,[],!1).filter(a=>dn(a)&&Vo(a)!=="body"),s=null;const o=fn(e).position==="fixed";let i=o?Hr(e):e;for(;dn(i)&&!Ro(i);){const a=fn(i),l=Yf(i);!l&&a.position==="fixed"&&(s=null),(o?!l&&!s:!l&&a.position==="static"&&!!s&&XC.has(s.position)||aa(i)&&!l&&C0(e,i))?r=r.filter(c=>c!==i):s=a,i=Hr(i)}return t.set(e,r),r}function tE(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const i=[...n==="clippingAncestors"?gu(t)?[]:eE(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,c)=>{const f=em(t,c,s);return u.top=Pt(f.top,u.top),u.right=Wr(f.right,u.right),u.bottom=Wr(f.bottom,u.bottom),u.left=Pt(f.left,u.left),u},em(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function nE(e){const{width:t,height:n}=b0(e);return{width:t,height:n}}function rE(e,t,n){const r=An(t),s=In(t),o=n==="fixed",i=Cs(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=Pn(0);function u(){l.x=eh(s)}if(r||!r&&!o)if((Vo(t)!=="body"||aa(s))&&(a=vu(t)),r){const p=Cs(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else s&&u();o&&!r&&s&&u();const c=s&&!r&&!o?k0(s,a):Pn(0),f=i.left+a.scrollLeft-l.x-c.x,h=i.top+a.scrollTop-l.y-c.y;return{x:f,y:h,width:i.width,height:i.height}}function oc(e){return fn(e).position==="static"}function tm(e,t){if(!An(e)||fn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return In(e)===n&&(n=n.ownerDocument.body),n}function E0(e,t){const n=At(e);if(gu(e))return n;if(!An(e)){let s=Hr(e);for(;s&&!Ro(s);){if(dn(s)&&!oc(s))return s;s=Hr(s)}return n}let r=tm(e,t);for(;r&&zC(r)&&oc(r);)r=tm(r,t);return r&&Ro(r)&&oc(r)&&!Yf(r)?n:r||WC(e)||n}const sE=async function(e){const t=this.getOffsetParent||E0,n=this.getDimensions,r=await n(e.floating);return{reference:rE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function oE(e){return fn(e).direction==="rtl"}const iE={convertOffsetParentRelativeRectToViewportRelativeRect:GC,getDocumentElement:In,getClippingRect:tE,getOffsetParent:E0,getElementRects:sE,getClientRects:KC,getDimensions:nE,getScale:io,isElement:dn,isRTL:oE};function _0(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function aE(e,t){let n=null,r;const s=In(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const u=e.getBoundingClientRect(),{left:c,top:f,width:h,height:p}=u;if(a||t(),!h||!p)return;const b=La(f),g=La(s.clientWidth-(c+h)),w=La(s.clientHeight-(f+p)),v=La(c),x={rootMargin:-b+"px "+-g+"px "+-w+"px "+-v+"px",threshold:Pt(0,Wr(1,l))||1};let S=!0;function k(N){const T=N[0].intersectionRatio;if(T!==l){if(!S)return i();T?i(!1,T):r=setTimeout(()=>{i(!1,1e-7)},1e3)}T===1&&!_0(u,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(k,{...x,root:s.ownerDocument})}catch{n=new IntersectionObserver(k,x)}n.observe(e)}return i(!0),o}function lE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Jf(e),c=s||o?[...u?$i(u):[],...$i(t)]:[];c.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const f=u&&a?aE(u,n):null;let h=-1,p=null;i&&(p=new ResizeObserver(v=>{let[m]=v;m&&m.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let b,g=l?Cs(e):null;l&&w();function w(){const v=Cs(e);g&&!_0(g,v)&&n(),g=v,b=requestAnimationFrame(w)}return n(),()=>{var v;c.forEach(m=>{s&&m.removeEventListener("scroll",n),o&&m.removeEventListener("resize",n)}),f==null||f(),(v=p)==null||v.disconnect(),p=null,l&&cancelAnimationFrame(b)}}const uE=AC,cE=IC,dE=PC,fE=LC,hE=jC,nm=RC,pE=MC,mE=(e,t,n)=>{const r=new Map,s={platform:iE,...n},o={...s.platform,_c:r};return TC(e,t,{...s,platform:o})};var gE=typeof document<"u",vE=function(){},nl=gE?y.useLayoutEffect:vE;function Il(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,s;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(!Il(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const o=s[r];if(!(o==="_owner"&&e.$$typeof)&&!Il(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function N0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rm(e,t){const n=N0(e);return Math.round(t*n)/n}function ic(e){const t=y.useRef(e);return nl(()=>{t.current=e}),t}function yE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:o,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,f]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=y.useState(r);Il(h,r)||p(r);const[b,g]=y.useState(null),[w,v]=y.useState(null),m=y.useCallback(P=>{P!==N.current&&(N.current=P,g(P))},[]),x=y.useCallback(P=>{P!==T.current&&(T.current=P,v(P))},[]),S=o||b,k=i||w,N=y.useRef(null),T=y.useRef(null),j=y.useRef(c),F=l!=null,M=ic(l),q=ic(s),A=ic(u),W=y.useCallback(()=>{if(!N.current||!T.current)return;const P={placement:t,strategy:n,middleware:h};q.current&&(P.platform=q.current),mE(N.current,T.current,P).then(O=>{const B={...O,isPositioned:A.current!==!1};L.current&&!Il(j.current,B)&&(j.current=B,ra.flushSync(()=>{f(B)}))})},[h,t,n,q,A]);nl(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,f(P=>({...P,isPositioned:!1})))},[u]);const L=y.useRef(!1);nl(()=>(L.current=!0,()=>{L.current=!1}),[]),nl(()=>{if(S&&(N.current=S),k&&(T.current=k),S&&k){if(M.current)return M.current(S,k,W);W()}},[S,k,W,M,F]);const ne=y.useMemo(()=>({reference:N,floating:T,setReference:m,setFloating:x}),[m,x]),X=y.useMemo(()=>({reference:S,floating:k}),[S,k]),te=y.useMemo(()=>{const P={position:n,left:0,top:0};if(!X.floating)return P;const O=rm(X.floating,c.x),B=rm(X.floating,c.y);return a?{...P,transform:"translate("+O+"px, "+B+"px)",...N0(X.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:B}},[n,a,X.floating,c.x,c.y]);return y.useMemo(()=>({...c,update:W,refs:ne,elements:X,floatingStyles:te}),[c,W,ne,X,te])}const xE=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?nm({element:r.current,padding:s}).fn(n):{}:r?nm({element:r,padding:s}).fn(n):{}}}},wE=(e,t)=>({...uE(e),options:[e,t]}),bE=(e,t)=>({...cE(e),options:[e,t]}),SE=(e,t)=>({...pE(e),options:[e,t]}),kE=(e,t)=>({...dE(e),options:[e,t]}),CE=(e,t)=>({...fE(e),options:[e,t]}),EE=(e,t)=>({...hE(e),options:[e,t]}),_E=(e,t)=>({...xE(e),options:[e,t]});var NE="Arrow",T0=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...o}=e;return d.jsx(Ue.svg,{...o,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});T0.displayName=NE;var TE=T0;function RE(e){const[t,n]=y.useState(void 0);return Jn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let i,a;if("borderBoxSize"in o){const l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var R0="Popper",[P0,j0]=sa(R0),[L2,O0]=P0(R0),A0="PopperAnchor",I0=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,o=O0(A0,n),i=y.useRef(null),a=mt(t,i);return y.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:d.jsx(Ue.div,{...s,ref:a})});I0.displayName=A0;var th="PopperContent",[PE,jE]=P0(th),M0=y.forwardRef((e,t)=>{var ge,Mn,Ft,Gt,pn,Ln;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:o="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:b,...g}=e,w=O0(th,n),[v,m]=y.useState(null),x=mt(t,mn=>m(mn)),[S,k]=y.useState(null),N=RE(S),T=(N==null?void 0:N.width)??0,j=(N==null?void 0:N.height)??0,F=r+(o!=="center"?"-"+o:""),M=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},q=Array.isArray(u)?u:[u],A=q.length>0,W={padding:M,boundary:q.filter(AE),altBoundary:A},{refs:L,floatingStyles:ne,placement:X,isPositioned:te,middlewareData:P}=yE({strategy:"fixed",placement:F,whileElementsMounted:(...mn)=>lE(...mn,{animationFrame:p==="always"}),elements:{reference:w.anchor},middleware:[wE({mainAxis:s+j,alignmentAxis:i}),l&&bE({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?SE():void 0,...W}),l&&kE({...W}),CE({...W,apply:({elements:mn,rects:Xr,availableWidth:js,availableHeight:Os})=>{const{width:Bo,height:As}=Xr.reference,Dn=mn.floating.style;Dn.setProperty("--radix-popper-available-width",`${js}px`),Dn.setProperty("--radix-popper-available-height",`${Os}px`),Dn.setProperty("--radix-popper-anchor-width",`${Bo}px`),Dn.setProperty("--radix-popper-anchor-height",`${As}px`)}}),S&&_E({element:S,padding:a}),IE({arrowWidth:T,arrowHeight:j}),h&&EE({strategy:"referenceHidden",...W})]}),[O,B]=F0(X),se=On(b);Jn(()=>{te&&(se==null||se())},[te,se]);const ee=(ge=P.arrow)==null?void 0:ge.x,ue=(Mn=P.arrow)==null?void 0:Mn.y,ce=((Ft=P.arrow)==null?void 0:Ft.centerOffset)!==0,[Oe,Ke]=y.useState();return Jn(()=>{v&&Ke(window.getComputedStyle(v).zIndex)},[v]),d.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:te?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Oe,"--radix-popper-transform-origin":[(Gt=P.transformOrigin)==null?void 0:Gt.x,(pn=P.transformOrigin)==null?void 0:pn.y].join(" "),...((Ln=P.hide)==null?void 0:Ln.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(PE,{scope:n,placedSide:O,onArrowChange:k,arrowX:ee,arrowY:ue,shouldHideArrow:ce,children:d.jsx(Ue.div,{"data-side":O,"data-align":B,...g,ref:x,style:{...g.style,animation:te?void 0:"none"}})})})});M0.displayName=th;var L0="PopperArrow",OE={top:"bottom",right:"left",bottom:"top",left:"right"},D0=y.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,o=jE(L0,r),i=OE[o.placedSide];return d.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:d.jsx(TE,{...s,ref:n,style:{...s.style,display:"block"}})})});D0.displayName=L0;function AE(e){return e!==null}var IE=e=>({name:"transformOrigin",options:e,fn(t){var w,v,m;const{placement:n,rects:r,middlewareData:s}=t,i=((w=s.arrow)==null?void 0:w.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,c]=F0(n),f={start:"0%",center:"50%",end:"100%"}[c],h=(((v=s.arrow)==null?void 0:v.x)??0)+a/2,p=(((m=s.arrow)==null?void 0:m.y)??0)+l/2;let b="",g="";return u==="bottom"?(b=i?f:`${h}px`,g=`${-l}px`):u==="top"?(b=i?f:`${h}px`,g=`${r.floating.height+l}px`):u==="right"?(b=`${-l}px`,g=i?f:`${p}px`):u==="left"&&(b=`${r.floating.width+l}px`,g=i?f:`${p}px`),{data:{x:b,y:g}}}});function F0(e){const[t,n="center"]=e.split("-");return[t,n]}var ME=I0,LE=M0,DE=D0,[yu,D2]=sa("Tooltip",[j0]),nh=j0(),z0="TooltipProvider",FE=700,sm="tooltip.open",[zE,$0]=yu(z0),V0=e=>{const{__scopeTooltip:t,delayDuration:n=FE,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:o}=e,i=y.useRef(!0),a=y.useRef(!1),l=y.useRef(0);return y.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),d.jsx(zE,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:y.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:y.useCallback(u=>{a.current=u},[]),disableHoverableContent:s,children:o})};V0.displayName=z0;var U0="Tooltip",[F2,xu]=yu(U0),Sd="TooltipTrigger",$E=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=xu(Sd,n),o=$0(Sd,n),i=nh(n),a=y.useRef(null),l=mt(t,a,s.onTriggerChange),u=y.useRef(!1),c=y.useRef(!1),f=y.useCallback(()=>u.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),d.jsx(ME,{asChild:!0,...i,children:d.jsx(Ue.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:je(e.onPointerMove,h=>{h.pointerType!=="touch"&&!c.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),c.current=!0)}),onPointerLeave:je(e.onPointerLeave,()=>{s.onTriggerLeave(),c.current=!1}),onPointerDown:je(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:je(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:je(e.onBlur,s.onClose),onClick:je(e.onClick,s.onClose)})})});$E.displayName=Sd;var VE="TooltipPortal",[z2,UE]=yu(VE,{forceMount:void 0}),Po="TooltipContent",B0=y.forwardRef((e,t)=>{const n=UE(Po,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...o}=e,i=xu(Po,e.__scopeTooltip);return d.jsx(Fo,{present:r||i.open,children:i.disableHoverableContent?d.jsx(W0,{side:s,...o,ref:t}):d.jsx(BE,{side:s,...o,ref:t})})}),BE=y.forwardRef((e,t)=>{const n=xu(Po,e.__scopeTooltip),r=$0(Po,e.__scopeTooltip),s=y.useRef(null),o=mt(t,s),[i,a]=y.useState(null),{trigger:l,onClose:u}=n,c=s.current,{onPointerInTransitChange:f}=r,h=y.useCallback(()=>{a(null),f(!1)},[f]),p=y.useCallback((b,g)=>{const w=b.currentTarget,v={x:b.clientX,y:b.clientY},m=GE(v,w.getBoundingClientRect()),x=KE(v,m),S=qE(g.getBoundingClientRect()),k=XE([...x,...S]);a(k),f(!0)},[f]);return y.useEffect(()=>()=>h(),[h]),y.useEffect(()=>{if(l&&c){const b=w=>p(w,c),g=w=>p(w,l);return l.addEventListener("pointerleave",b),c.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",b),c.removeEventListener("pointerleave",g)}}},[l,c,p,h]),y.useEffect(()=>{if(i){const b=g=>{const w=g.target,v={x:g.clientX,y:g.clientY},m=(l==null?void 0:l.contains(w))||(c==null?void 0:c.contains(w)),x=!YE(v,i);m?h():x&&(h(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,c,i,u,h]),d.jsx(W0,{...e,ref:o})}),[WE,HE]=yu(U0,{isInside:!1}),QE=nS("TooltipContent"),W0=y.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:i,...a}=e,l=xu(Po,n),u=nh(n),{onClose:c}=l;return y.useEffect(()=>(document.addEventListener(sm,c),()=>document.removeEventListener(sm,c)),[c]),y.useEffect(()=>{if(l.trigger){const f=h=>{const p=h.target;p!=null&&p.contains(l.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,c]),d.jsx(cu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:d.jsxs(LE,{"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:[d.jsx(QE,{children:r}),d.jsx(WE,{scope:n,isInside:!0,children:d.jsx(_S,{id:l.contentId,role:"tooltip",children:s||r})})]})})});B0.displayName=Po;var H0="TooltipArrow",ZE=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=nh(n);return HE(H0,n).isInside?null:d.jsx(DE,{...s,...r,ref:t})});ZE.displayName=H0;function GE(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,s,o)){case o:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function KE(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 qE(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function YE(e,t){const{x:n,y:r}=e;let s=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const a=t[o],l=t[i],u=a.x,c=a.y,f=l.x,h=l.y;c>r!=h>r&&n<(f-u)*(r-c)/(h-c)+u&&(s=!s)}return s}function XE(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),JE(t)}function JE(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const o=n[n.length-1],i=n[n.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))n.pop();else break}n.push(s)}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 e_=V0,Q0=B0;const t_=e_,n_=y.forwardRef(({className:e,sideOffset:t=4,...n},r)=>d.jsx(Q0,{ref:r,sideOffset:t,className:Le("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}));n_.displayName=Q0.displayName;var la=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(){}},Es=typeof window>"u"||"Deno"in globalThis;function St(){}function r_(e,t){return typeof e=="function"?e(t):e}function kd(e){return typeof e=="number"&&e>=0&&e!==1/0}function Z0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function zr(e,t){return typeof e=="function"?e(t):e}function $t(e,t){return typeof e=="function"?e(t):e}function om(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:o,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==rh(i,t.options))return!1}else if(!Ui(t.queryKey,i))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||s&&s!==t.state.fetchStatus||o&&!o(t))}function im(e,t){const{exact:n,status:r,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Vi(t.options.mutationKey)!==Vi(o))return!1}else if(!Ui(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function rh(e,t){return((t==null?void 0:t.queryKeyHashFn)||Vi)(e)}function Vi(e){return JSON.stringify(e,(t,n)=>Ed(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Ui(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ui(e[n],t[n])):!1}function G0(e,t){if(e===t)return e;const n=am(e)&&am(t);if(n||Ed(e)&&Ed(t)){const r=n?e:Object.keys(e),s=r.length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{},l=new Set(r);let u=0;for(let c=0;c<i;c++){const f=n?c:o[c];(!n&&l.has(f)||n)&&e[f]===void 0&&t[f]===void 0?(a[f]=void 0,u++):(a[f]=G0(e[f],t[f]),a[f]===e[f]&&e[f]!==void 0&&u++)}return s===i&&u===s?e:a}return t}function Cd(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function am(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ed(e){if(!lm(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!lm(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function lm(e){return Object.prototype.toString.call(e)==="[object Object]"}function s_(e){return new Promise(t=>{setTimeout(t,e)})}function _d(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?G0(e,t):t}function o_(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function i_(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var sh=Symbol();function K0(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===sh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function a_(e,t){return typeof e=="function"?e(...t):!!e}var ls,xr,uo,lg,l_=(lg=class extends la{constructor(){super();re(this,ls);re(this,xr);re(this,uo);G(this,uo,t=>{if(!Es&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){E(this,xr)||this.setEventListener(E(this,uo))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,xr))==null||t.call(this),G(this,xr,void 0))}setEventListener(t){var n;G(this,uo,t),(n=E(this,xr))==null||n.call(this),G(this,xr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){E(this,ls)!==t&&(G(this,ls,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof E(this,ls)=="boolean"?E(this,ls):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ls=new WeakMap,xr=new WeakMap,uo=new WeakMap,lg),oh=new l_,co,wr,fo,ug,u_=(ug=class extends la{constructor(){super();re(this,co,!0);re(this,wr);re(this,fo);G(this,fo,t=>{if(!Es&&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(){E(this,wr)||this.setEventListener(E(this,fo))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,wr))==null||t.call(this),G(this,wr,void 0))}setEventListener(t){var n;G(this,fo,t),(n=E(this,wr))==null||n.call(this),G(this,wr,t(this.setOnline.bind(this)))}setOnline(t){E(this,co)!==t&&(G(this,co,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return E(this,co)}},co=new WeakMap,wr=new WeakMap,fo=new WeakMap,ug),Ml=new u_;function Nd(){let e,t;const n=new Promise((s,o)=>{e=s,t=o});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function c_(e){return Math.min(1e3*2**e,3e4)}function q0(e){return(e??"online")==="online"?Ml.isOnline():!0}var Y0=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ac(e){return e instanceof Y0}function X0(e){let t=!1,n=0,r=!1,s;const o=Nd(),i=g=>{var w;r||(h(new Y0(g)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>oh.isFocused()&&(e.networkMode==="always"||Ml.isOnline())&&e.canRun(),c=()=>q0(e.networkMode)&&e.canRun(),f=g=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,g),s==null||s(),o.resolve(g))},h=g=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,g),s==null||s(),o.reject(g))},p=()=>new Promise(g=>{var w;s=v=>{(r||u())&&g(v)},(w=e.onPause)==null||w.call(e)}).then(()=>{var g;s=void 0,r||(g=e.onContinue)==null||g.call(e)}),b=()=>{if(r)return;let g;const w=n===0?e.initialPromise:void 0;try{g=w??e.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(f).catch(v=>{var N;if(r)return;const m=e.retry??(Es?0:3),x=e.retryDelay??c_,S=typeof x=="function"?x(n,v):x,k=m===!0||typeof m=="number"&&n<m||typeof m=="function"&&m(n,v);if(t||!k){h(v);return}n++,(N=e.onFail)==null||N.call(e,n,v),s_(S).then(()=>u()?void 0:p()).then(()=>{t?h(v):b()})})};return{promise:o,cancel:i,continue:()=>(s==null||s(),o),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?b():p().then(b),o)}}var d_=e=>setTimeout(e,0);function f_(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=d_;const o=a=>{t?e.push(a):s(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var tt=f_(),us,cg,J0=(cg=class{constructor(){re(this,us)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),kd(this.gcTime)&&G(this,us,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Es?1/0:5*60*1e3))}clearGcTimeout(){E(this,us)&&(clearTimeout(E(this,us)),G(this,us,void 0))}},us=new WeakMap,cg),ho,cs,zt,ds,it,Gi,fs,tn,Un,dg,h_=(dg=class extends J0{constructor(t){super();re(this,tn);re(this,ho);re(this,cs);re(this,zt);re(this,ds);re(this,it);re(this,Gi);re(this,fs);G(this,fs,!1),G(this,Gi,t.defaultOptions),this.setOptions(t.options),this.observers=[],G(this,ds,t.client),G(this,zt,E(this,ds).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,G(this,ho,p_(this.options)),this.state=t.state??E(this,ho),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=E(this,it))==null?void 0:t.promise}setOptions(t){this.options={...E(this,Gi),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,zt).remove(this)}setData(t,n){const r=_d(this.state.data,t,this.options);return pe(this,tn,Un).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){pe(this,tn,Un).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=E(this,it))==null?void 0:r.promise;return(s=E(this,it))==null||s.cancel(t),n?n.then(St).catch(St):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(E(this,ho))}isActive(){return this.observers.some(t=>$t(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===sh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>zr(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:!Z0(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=E(this,it))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=E(this,it))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),E(this,zt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(E(this,it)&&(E(this,fs)?E(this,it).cancel({revert:!0}):E(this,it).cancelRetry()),this.scheduleGc()),E(this,zt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pe(this,tn,Un).call(this,{type:"invalidate"})}fetch(t,n){var u,c,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(E(this,it))return E(this,it).continueRetry(),E(this,it).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(G(this,fs,!0),r.signal)})},o=()=>{const h=K0(this.options,n),b=(()=>{const g={client:E(this,ds),queryKey:this.queryKey,meta:this.meta};return s(g),g})();return G(this,fs,!1),this.options.persister?this.options.persister(h,b,this):h(b)},a=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:E(this,ds),state:this.state,fetchFn:o};return s(h),h})();(u=this.options.behavior)==null||u.onFetch(a,this),G(this,cs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&pe(this,tn,Un).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const l=h=>{var p,b,g,w;ac(h)&&h.silent||pe(this,tn,Un).call(this,{type:"error",error:h}),ac(h)||((b=(p=E(this,zt).config).onError)==null||b.call(p,h,this),(w=(g=E(this,zt).config).onSettled)==null||w.call(g,this.state.data,h,this)),this.scheduleGc()};return G(this,it,X0({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var p,b,g,w;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(v){l(v);return}(b=(p=E(this,zt).config).onSuccess)==null||b.call(p,h,this),(w=(g=E(this,zt).config).onSettled)==null||w.call(g,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,p)=>{pe(this,tn,Un).call(this,{type:"failed",failureCount:h,error:p})},onPause:()=>{pe(this,tn,Un).call(this,{type:"pause"})},onContinue:()=>{pe(this,tn,Un).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),E(this,it).start()}},ho=new WeakMap,cs=new WeakMap,zt=new WeakMap,ds=new WeakMap,it=new WeakMap,Gi=new WeakMap,fs=new WeakMap,tn=new WeakSet,Un=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,...ex(r.data,this.options),fetchMeta:t.meta??null};case"success":return G(this,cs,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 s=t.error;return ac(s)&&s.revert&&E(this,cs)?{...E(this,cs),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),tt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),E(this,zt).notify({query:this,type:"updated",action:t})})},dg);function ex(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:q0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function p_(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 bn,fg,m_=(fg=class extends la{constructor(t={}){super();re(this,bn);this.config=t,G(this,bn,new Map)}build(t,n,r){const s=n.queryKey,o=n.queryHash??rh(s,n);let i=this.get(o);return i||(i=new h_({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){E(this,bn).has(t.queryHash)||(E(this,bn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=E(this,bn).get(t.queryHash);n&&(t.destroy(),n===t&&E(this,bn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){tt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return E(this,bn).get(t)}getAll(){return[...E(this,bn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>om(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>om(t,r)):n}notify(t){tt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){tt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){tt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},bn=new WeakMap,fg),Sn,ut,hs,kn,dr,hg,g_=(hg=class extends J0{constructor(t){super();re(this,kn);re(this,Sn);re(this,ut);re(this,hs);this.mutationId=t.mutationId,G(this,ut,t.mutationCache),G(this,Sn,[]),this.state=t.state||v_(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){E(this,Sn).includes(t)||(E(this,Sn).push(t),this.clearGcTimeout(),E(this,ut).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){G(this,Sn,E(this,Sn).filter(n=>n!==t)),this.scheduleGc(),E(this,ut).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){E(this,Sn).length||(this.state.status==="pending"?this.scheduleGc():E(this,ut).remove(this))}continue(){var t;return((t=E(this,hs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,a,l,u,c,f,h,p,b,g,w,v,m,x,S,k,N,T,j;const n=()=>{pe(this,kn,dr).call(this,{type:"continue"})};G(this,hs,X0({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(F,M)=>{pe(this,kn,dr).call(this,{type:"failed",failureCount:F,error:M})},onPause:()=>{pe(this,kn,dr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,ut).canRun(this)}));const r=this.state.status==="pending",s=!E(this,hs).canStart();try{if(r)n();else{pe(this,kn,dr).call(this,{type:"pending",variables:t,isPaused:s}),await((i=(o=E(this,ut).config).onMutate)==null?void 0:i.call(o,t,this));const M=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));M!==this.state.context&&pe(this,kn,dr).call(this,{type:"pending",context:M,variables:t,isPaused:s})}const F=await E(this,hs).start();return await((c=(u=E(this,ut).config).onSuccess)==null?void 0:c.call(u,F,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,F,t,this.state.context)),await((b=(p=E(this,ut).config).onSettled)==null?void 0:b.call(p,F,null,this.state.variables,this.state.context,this)),await((w=(g=this.options).onSettled)==null?void 0:w.call(g,F,null,t,this.state.context)),pe(this,kn,dr).call(this,{type:"success",data:F}),F}catch(F){try{throw await((m=(v=E(this,ut).config).onError)==null?void 0:m.call(v,F,t,this.state.context,this)),await((S=(x=this.options).onError)==null?void 0:S.call(x,F,t,this.state.context)),await((N=(k=E(this,ut).config).onSettled)==null?void 0:N.call(k,void 0,F,this.state.variables,this.state.context,this)),await((j=(T=this.options).onSettled)==null?void 0:j.call(T,void 0,F,t,this.state.context)),F}finally{pe(this,kn,dr).call(this,{type:"error",error:F})}}finally{E(this,ut).runNext(this)}}},Sn=new WeakMap,ut=new WeakMap,hs=new WeakMap,kn=new WeakSet,dr=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),tt.batch(()=>{E(this,Sn).forEach(r=>{r.onMutationUpdate(t)}),E(this,ut).notify({mutation:this,type:"updated",action:t})})},hg);function v_(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Hn,nn,Ki,pg,y_=(pg=class extends la{constructor(t={}){super();re(this,Hn);re(this,nn);re(this,Ki);this.config=t,G(this,Hn,new Set),G(this,nn,new Map),G(this,Ki,0)}build(t,n,r){const s=new g_({mutationCache:this,mutationId:++ma(this,Ki)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){E(this,Hn).add(t);const n=Da(t);if(typeof n=="string"){const r=E(this,nn).get(n);r?r.push(t):E(this,nn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(E(this,Hn).delete(t)){const n=Da(t);if(typeof n=="string"){const r=E(this,nn).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&E(this,nn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Da(t);if(typeof n=="string"){const r=E(this,nn).get(n),s=r==null?void 0:r.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Da(t);if(typeof n=="string"){const s=(r=E(this,nn).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){tt.batch(()=>{E(this,Hn).forEach(t=>{this.notify({type:"removed",mutation:t})}),E(this,Hn).clear(),E(this,nn).clear()})}getAll(){return Array.from(E(this,Hn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>im(n,r))}findAll(t={}){return this.getAll().filter(n=>im(t,n))}notify(t){tt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return tt.batch(()=>Promise.all(t.map(n=>n.continue().catch(St))))}},Hn=new WeakMap,nn=new WeakMap,Ki=new WeakMap,pg);function Da(e){var t;return(t=e.options.scope)==null?void 0:t.id}function um(e){return{onFetch:(t,n)=>{var c,f,h,p,b;const r=t.options,s=(h=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,o=((p=t.state.data)==null?void 0:p.pages)||[],i=((b=t.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const w=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},v=K0(t.options,t.fetchOptions),m=async(x,S,k)=>{if(g)return Promise.reject();if(S==null&&x.pages.length)return Promise.resolve(x);const T=(()=>{const q={client:t.client,queryKey:t.queryKey,pageParam:S,direction:k?"backward":"forward",meta:t.options.meta};return w(q),q})(),j=await v(T),{maxPages:F}=t.options,M=k?i_:o_;return{pages:M(x.pages,j,F),pageParams:M(x.pageParams,S,F)}};if(s&&o.length){const x=s==="backward",S=x?x_:cm,k={pages:o,pageParams:i},N=S(r,k);a=await m(k,N,x)}else{const x=e??o.length;do{const S=l===0?i[0]??r.initialPageParam:cm(r,a);if(l>0&&S==null)break;a=await m(a,S),l++}while(l<x)}return a};t.options.persister?t.fetchFn=()=>{var g,w;return(w=(g=t.options).persister)==null?void 0:w.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function cm(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 x_(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var De,br,Sr,po,mo,kr,go,vo,mg,w_=(mg=class{constructor(e={}){re(this,De);re(this,br);re(this,Sr);re(this,po);re(this,mo);re(this,kr);re(this,go);re(this,vo);G(this,De,e.queryCache||new m_),G(this,br,e.mutationCache||new y_),G(this,Sr,e.defaultOptions||{}),G(this,po,new Map),G(this,mo,new Map),G(this,kr,0)}mount(){ma(this,kr)._++,E(this,kr)===1&&(G(this,go,oh.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,De).onFocus())})),G(this,vo,Ml.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,De).onOnline())})))}unmount(){var e,t;ma(this,kr)._--,E(this,kr)===0&&((e=E(this,go))==null||e.call(this),G(this,go,void 0),(t=E(this,vo))==null||t.call(this),G(this,vo,void 0))}isFetching(e){return E(this,De).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return E(this,br).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=E(this,De).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=E(this,De).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(zr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return E(this,De).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=E(this,De).get(r.queryHash),o=s==null?void 0:s.state.data,i=r_(t,o);if(i!==void 0)return E(this,De).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return tt.batch(()=>E(this,De).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=E(this,De).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=E(this,De);tt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=E(this,De);return tt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=tt.batch(()=>E(this,De).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(St).catch(St)}invalidateQueries(e,t={}){return tt.batch(()=>(E(this,De).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=tt.batch(()=>E(this,De).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(St)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(St)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=E(this,De).build(this,t);return n.isStaleByTime(zr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(St).catch(St)}fetchInfiniteQuery(e){return e.behavior=um(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(St).catch(St)}ensureInfiniteQueryData(e){return e.behavior=um(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ml.isOnline()?E(this,br).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,De)}getMutationCache(){return E(this,br)}getDefaultOptions(){return E(this,Sr)}setDefaultOptions(e){G(this,Sr,e)}setQueryDefaults(e,t){E(this,po).set(Vi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...E(this,po).values()],n={};return t.forEach(r=>{Ui(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){E(this,mo).set(Vi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...E(this,mo).values()],n={};return t.forEach(r=>{Ui(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...E(this,Sr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=rh(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===sh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...E(this,Sr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){E(this,De).clear(),E(this,br).clear()}},De=new WeakMap,br=new WeakMap,Sr=new WeakMap,po=new WeakMap,mo=new WeakMap,kr=new WeakMap,go=new WeakMap,vo=new WeakMap,mg),xt,me,qi,ct,ps,yo,Cr,Er,Yi,xo,wo,ms,gs,_r,bo,we,ii,Td,Rd,Pd,jd,Od,Ad,Id,tx,gg,b_=(gg=class extends la{constructor(t,n){super();re(this,we);re(this,xt);re(this,me);re(this,qi);re(this,ct);re(this,ps);re(this,yo);re(this,Cr);re(this,Er);re(this,Yi);re(this,xo);re(this,wo);re(this,ms);re(this,gs);re(this,_r);re(this,bo,new Set);this.options=n,G(this,xt,t),G(this,Er,null),G(this,Cr,Nd()),this.options.experimental_prefetchInRender||E(this,Cr).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,me).addObserver(this),dm(E(this,me),this.options)?pe(this,we,ii).call(this):this.updateResult(),pe(this,we,jd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Md(E(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Md(E(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pe(this,we,Od).call(this),pe(this,we,Ad).call(this),E(this,me).removeObserver(this)}setOptions(t){const n=this.options,r=E(this,me);if(this.options=E(this,xt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof $t(this.options.enabled,E(this,me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pe(this,we,Id).call(this),E(this,me).setOptions(this.options),n._defaulted&&!Cd(this.options,n)&&E(this,xt).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,me),observer:this});const s=this.hasListeners();s&&fm(E(this,me),r,this.options,n)&&pe(this,we,ii).call(this),this.updateResult(),s&&(E(this,me)!==r||$t(this.options.enabled,E(this,me))!==$t(n.enabled,E(this,me))||zr(this.options.staleTime,E(this,me))!==zr(n.staleTime,E(this,me)))&&pe(this,we,Td).call(this);const o=pe(this,we,Rd).call(this);s&&(E(this,me)!==r||$t(this.options.enabled,E(this,me))!==$t(n.enabled,E(this,me))||o!==E(this,_r))&&pe(this,we,Pd).call(this,o)}getOptimisticResult(t){const n=E(this,xt).getQueryCache().build(E(this,xt),t),r=this.createResult(n,t);return k_(this,r)&&(G(this,ct,r),G(this,yo,this.options),G(this,ps,E(this,me).state)),r}getCurrentResult(){return E(this,ct)}trackResult(t,n){return new Proxy(t,{get:(r,s)=>(this.trackProp(s),n==null||n(s),Reflect.get(r,s))})}trackProp(t){E(this,bo).add(t)}getCurrentQuery(){return E(this,me)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=E(this,xt).defaultQueryOptions(t),r=E(this,xt).getQueryCache().build(E(this,xt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return pe(this,we,ii).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,ct)))}createResult(t,n){var F;const r=E(this,me),s=this.options,o=E(this,ct),i=E(this,ps),a=E(this,yo),u=t!==r?t.state:E(this,qi),{state:c}=t;let f={...c},h=!1,p;if(n._optimisticResults){const M=this.hasListeners(),q=!M&&dm(t,n),A=M&&fm(t,r,n,s);(q||A)&&(f={...f,...ex(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:b,errorUpdatedAt:g,status:w}=f;p=f.data;let v=!1;if(n.placeholderData!==void 0&&p===void 0&&w==="pending"){let M;o!=null&&o.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(M=o.data,v=!0):M=typeof n.placeholderData=="function"?n.placeholderData((F=E(this,wo))==null?void 0:F.state.data,E(this,wo)):n.placeholderData,M!==void 0&&(w="success",p=_d(o==null?void 0:o.data,M,n),h=!0)}if(n.select&&p!==void 0&&!v)if(o&&p===(i==null?void 0:i.data)&&n.select===E(this,Yi))p=E(this,xo);else try{G(this,Yi,n.select),p=n.select(p),p=_d(o==null?void 0:o.data,p,n),G(this,xo,p),G(this,Er,null)}catch(M){G(this,Er,M)}E(this,Er)&&(b=E(this,Er),p=E(this,xo),g=Date.now(),w="error");const m=f.fetchStatus==="fetching",x=w==="pending",S=w==="error",k=x&&m,N=p!==void 0,j={status:w,fetchStatus:f.fetchStatus,isPending:x,isSuccess:w==="success",isError:S,isInitialLoading:k,isLoading:k,data:p,dataUpdatedAt:f.dataUpdatedAt,error:b,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:m,isRefetching:m&&!x,isLoadingError:S&&!N,isPaused:f.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:S&&N,isStale:ih(t,n),refetch:this.refetch,promise:E(this,Cr),isEnabled:$t(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const M=W=>{j.status==="error"?W.reject(j.error):j.data!==void 0&&W.resolve(j.data)},q=()=>{const W=G(this,Cr,j.promise=Nd());M(W)},A=E(this,Cr);switch(A.status){case"pending":t.queryHash===r.queryHash&&M(A);break;case"fulfilled":(j.status==="error"||j.data!==A.value)&&q();break;case"rejected":(j.status!=="error"||j.error!==A.reason)&&q();break}}return j}updateResult(){const t=E(this,ct),n=this.createResult(E(this,me),this.options);if(G(this,ps,E(this,me).state),G(this,yo,this.options),E(this,ps).data!==void 0&&G(this,wo,E(this,me)),Cd(n,t))return;G(this,ct,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!E(this,bo).size)return!0;const i=new Set(o??E(this,bo));return this.options.throwOnError&&i.add("error"),Object.keys(E(this,ct)).some(a=>{const l=a;return E(this,ct)[l]!==t[l]&&i.has(l)})};pe(this,we,tx).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pe(this,we,jd).call(this)}},xt=new WeakMap,me=new WeakMap,qi=new WeakMap,ct=new WeakMap,ps=new WeakMap,yo=new WeakMap,Cr=new WeakMap,Er=new WeakMap,Yi=new WeakMap,xo=new WeakMap,wo=new WeakMap,ms=new WeakMap,gs=new WeakMap,_r=new WeakMap,bo=new WeakMap,we=new WeakSet,ii=function(t){pe(this,we,Id).call(this);let n=E(this,me).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(St)),n},Td=function(){pe(this,we,Od).call(this);const t=zr(this.options.staleTime,E(this,me));if(Es||E(this,ct).isStale||!kd(t))return;const r=Z0(E(this,ct).dataUpdatedAt,t)+1;G(this,ms,setTimeout(()=>{E(this,ct).isStale||this.updateResult()},r))},Rd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,me)):this.options.refetchInterval)??!1},Pd=function(t){pe(this,we,Ad).call(this),G(this,_r,t),!(Es||$t(this.options.enabled,E(this,me))===!1||!kd(E(this,_r))||E(this,_r)===0)&&G(this,gs,setInterval(()=>{(this.options.refetchIntervalInBackground||oh.isFocused())&&pe(this,we,ii).call(this)},E(this,_r)))},jd=function(){pe(this,we,Td).call(this),pe(this,we,Pd).call(this,pe(this,we,Rd).call(this))},Od=function(){E(this,ms)&&(clearTimeout(E(this,ms)),G(this,ms,void 0))},Ad=function(){E(this,gs)&&(clearInterval(E(this,gs)),G(this,gs,void 0))},Id=function(){const t=E(this,xt).getQueryCache().build(E(this,xt),this.options);if(t===E(this,me))return;const n=E(this,me);G(this,me,t),G(this,qi,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},tx=function(t){tt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(E(this,ct))}),E(this,xt).getQueryCache().notify({query:E(this,me),type:"observerResultsUpdated"})})},gg);function S_(e,t){return $t(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function dm(e,t){return S_(e,t)||e.state.data!==void 0&&Md(e,t,t.refetchOnMount)}function Md(e,t,n){if($t(t.enabled,e)!==!1&&zr(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ih(e,t)}return!1}function fm(e,t,n,r){return(e!==t||$t(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ih(e,n)}function ih(e,t){return $t(t.enabled,e)!==!1&&e.isStaleByTime(zr(t.staleTime,e))}function k_(e,t){return!Cd(e.getCurrentResult(),t)}var nx=y.createContext(void 0),C_=e=>{const t=y.useContext(nx);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},E_=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx(nx.Provider,{value:e,children:t})),rx=y.createContext(!1),__=()=>y.useContext(rx);rx.Provider;function N_(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var T_=y.createContext(N_()),R_=()=>y.useContext(T_),P_=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},j_=e=>{y.useEffect(()=>{e.clearReset()},[e])},O_=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||a_(n,[e.error,r])),A_=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},I_=(e,t)=>e.isLoading&&e.isFetching&&!t,M_=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,hm=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function L_(e,t,n){var f,h,p,b,g;const r=__(),s=R_(),o=C_(),i=o.defaultQueryOptions(e);(h=(f=o.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||h.call(f,i),i._optimisticResults=r?"isRestoring":"optimistic",A_(i),P_(i,s),j_(s);const a=!o.getQueryCache().get(i.queryHash),[l]=y.useState(()=>new t(o,i)),u=l.getOptimisticResult(i),c=!r&&e.subscribed!==!1;if(y.useSyncExternalStore(y.useCallback(w=>{const v=c?l.subscribe(tt.batchCalls(w)):St;return l.updateResult(),v},[l,c]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),y.useEffect(()=>{l.setOptions(i)},[i,l]),M_(i,u))throw hm(i,l,s);if(O_({result:u,errorResetBoundary:s,throwOnError:i.throwOnError,query:o.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;if((b=(p=o.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||b.call(p,i,u),i.experimental_prefetchInRender&&!Es&&I_(u,r)){const w=a?hm(i,l,s):(g=o.getQueryCache().get(i.queryHash))==null?void 0:g.promise;w==null||w.catch(St).finally(()=>{l.updateResult()})}return i.notifyOnChangeProps?u:l.trackResult(u)}function ah(e,t){return L_(e,b_)}/**
 * @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 Bi(){return Bi=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},Bi.apply(this,arguments)}var Rr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Rr||(Rr={}));const pm="popstate";function D_(e){e===void 0&&(e={});function t(r,s){let{pathname:o,search:i,hash:a}=r.location;return Ld("",{pathname:o,search:i,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Ll(s)}return z_(t,n,null,e)}function Qe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function sx(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function F_(){return Math.random().toString(36).substr(2,8)}function mm(e,t){return{usr:e.state,key:e.key,idx:t}}function Ld(e,t,n,r){return n===void 0&&(n=null),Bi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Uo(t):t,{state:n,key:t&&t.key||r||F_()})}function Ll(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 Uo(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 z_(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:o=!1}=r,i=s.history,a=Rr.Pop,l=null,u=c();u==null&&(u=0,i.replaceState(Bi({},i.state,{idx:u}),""));function c(){return(i.state||{idx:null}).idx}function f(){a=Rr.Pop;let w=c(),v=w==null?null:w-u;u=w,l&&l({action:a,location:g.location,delta:v})}function h(w,v){a=Rr.Push;let m=Ld(g.location,w,v);u=c()+1;let x=mm(m,u),S=g.createHref(m);try{i.pushState(x,"",S)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;s.location.assign(S)}o&&l&&l({action:a,location:g.location,delta:1})}function p(w,v){a=Rr.Replace;let m=Ld(g.location,w,v);u=c();let x=mm(m,u),S=g.createHref(m);i.replaceState(x,"",S),o&&l&&l({action:a,location:g.location,delta:0})}function b(w){let v=s.location.origin!=="null"?s.location.origin:s.location.href,m=typeof w=="string"?w:Ll(w);return m=m.replace(/ $/,"%20"),Qe(v,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,v)}let g={get action(){return a},get location(){return e(s,i)},listen(w){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(pm,f),l=w,()=>{s.removeEventListener(pm,f),l=null}},createHref(w){return t(s,w)},createURL:b,encodeLocation(w){let v=b(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:p,go(w){return i.go(w)}};return g}var gm;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gm||(gm={}));function $_(e,t,n){return n===void 0&&(n="/"),V_(e,t,n,!1)}function V_(e,t,n,r){let s=typeof t=="string"?Uo(t):t,o=lh(s.pathname||"/",n);if(o==null)return null;let i=ox(e);U_(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let u=J_(o);a=Y_(i[l],u,r)}return a}function ox(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(o,i,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(Qe(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=$r([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(Qe(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),ox(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:K_(u,o.index),routesMeta:c})};return e.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))s(o,i);else for(let l of ix(o.path))s(o,i,l)}),t}function ix(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return s?[o,""]:[o];let i=ix(r.join("/")),a=[];return a.push(...i.map(l=>l===""?o:[o,l].join("/"))),s&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function U_(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:q_(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const B_=/^:[\w-]+$/,W_=3,H_=2,Q_=1,Z_=10,G_=-2,vm=e=>e==="*";function K_(e,t){let n=e.split("/"),r=n.length;return n.some(vm)&&(r+=G_),t&&(r+=H_),n.filter(s=>!vm(s)).reduce((s,o)=>s+(B_.test(o)?W_:o===""?Q_:Z_),r)}function q_(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function Y_(e,t,n){let{routesMeta:r}=e,s={},o="/",i=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=o==="/"?t:t.slice(o.length)||"/",f=ym({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),h=l.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=ym({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!f)return null;Object.assign(s,f.params),i.push({params:s,pathname:$r([o,f.pathname]),pathnameBase:rN($r([o,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(o=$r([o,f.pathnameBase]))}return i}function ym(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=X_(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let o=s[0],i=o.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((u,c,f)=>{let{paramName:h,isOptional:p}=c;if(h==="*"){let g=a[f]||"";i=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const b=a[f];return p&&!b?u[h]=void 0:u[h]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function X_(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),sx(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=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function J_(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return sx(!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 lh(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)||"/"}function eN(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Uo(e):e;return{pathname:n?n.startsWith("/")?n:tN(n,t):t,search:sN(r),hash:oN(s)}}function tN(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function lc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function nN(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ax(e,t){let n=nN(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function lx(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=Uo(e):(s=Bi({},e),Qe(!s.pathname||!s.pathname.includes("?"),lc("?","pathname","search",s)),Qe(!s.pathname||!s.pathname.includes("#"),lc("#","pathname","hash",s)),Qe(!s.search||!s.search.includes("#"),lc("#","search","hash",s)));let o=e===""||s.pathname==="",i=o?"/":s.pathname,a;if(i==null)a=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),f-=1;s.pathname=h.join("/")}a=f>=0?t[f]:"/"}let l=eN(s,a),u=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const $r=e=>e.join("/").replace(/\/\/+/g,"/"),rN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),sN=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,oN=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function iN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ux=["post","put","patch","delete"];new Set(ux);const aN=["get",...ux];new Set(aN);/**
 * 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 Wi(){return Wi=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},Wi.apply(this,arguments)}const uh=y.createContext(null),lN=y.createContext(null),Ps=y.createContext(null),wu=y.createContext(null),Yr=y.createContext({outlet:null,matches:[],isDataRoute:!1}),cx=y.createContext(null);function uN(e,t){let{relative:n}=t===void 0?{}:t;ua()||Qe(!1);let{basename:r,navigator:s}=y.useContext(Ps),{hash:o,pathname:i,search:a}=fx(e,{relative:n}),l=i;return r!=="/"&&(l=i==="/"?r:$r([r,i])),s.createHref({pathname:l,search:a,hash:o})}function ua(){return y.useContext(wu)!=null}function ca(){return ua()||Qe(!1),y.useContext(wu).location}function dx(e){y.useContext(Ps).static||y.useLayoutEffect(e)}function cN(){let{isDataRoute:e}=y.useContext(Yr);return e?CN():dN()}function dN(){ua()||Qe(!1);let e=y.useContext(uh),{basename:t,future:n,navigator:r}=y.useContext(Ps),{matches:s}=y.useContext(Yr),{pathname:o}=ca(),i=JSON.stringify(ax(s,n.v7_relativeSplatPath)),a=y.useRef(!1);return dx(()=>{a.current=!0}),y.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let f=lx(u,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:$r([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,i,o,e])}function fN(){let{matches:e}=y.useContext(Yr),t=e[e.length-1];return t?t.params:{}}function fx(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(Ps),{matches:s}=y.useContext(Yr),{pathname:o}=ca(),i=JSON.stringify(ax(s,r.v7_relativeSplatPath));return y.useMemo(()=>lx(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function hN(e,t){return pN(e,t)}function pN(e,t,n,r){ua()||Qe(!1);let{navigator:s}=y.useContext(Ps),{matches:o}=y.useContext(Yr),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let u=ca(),c;if(t){var f;let w=typeof t=="string"?Uo(t):t;l==="/"||(f=w.pathname)!=null&&f.startsWith(l)||Qe(!1),c=w}else c=u;let h=c.pathname||"/",p=h;if(l!=="/"){let w=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(w.length).join("/")}let b=$_(e,{pathname:p}),g=xN(b&&b.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:$r([l,s.encodeLocation?s.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:$r([l,s.encodeLocation?s.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n,r);return t&&g?y.createElement(wu.Provider,{value:{location:Wi({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Rr.Pop}},g):g}function mN(){let e=kN(),t=iN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:s},n):null,null)}const gN=y.createElement(mN,null);class vN extends y.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?y.createElement(Yr.Provider,{value:this.props.routeContext},y.createElement(cx.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function yN(e){let{routeContext:t,match:n,children:r}=e,s=y.useContext(uh);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(Yr.Provider,{value:t},r)}function xN(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let c=i.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);c>=0||Qe(!1),i=i.slice(0,Math.min(i.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<i.length;c++){let f=i[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=c),f.route.id){let{loaderData:h,errors:p}=n,b=f.route.loader&&h[f.route.id]===void 0&&(!p||p[f.route.id]===void 0);if(f.route.lazy||b){l=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((c,f,h)=>{let p,b=!1,g=null,w=null;n&&(p=a&&f.route.id?a[f.route.id]:void 0,g=f.route.errorElement||gN,l&&(u<0&&h===0?(b=!0,w=null):u===h&&(b=!0,w=f.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,h+1)),m=()=>{let x;return p?x=g:b?x=w:f.route.Component?x=y.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=c,y.createElement(yN,{match:f,routeContext:{outlet:c,matches:v,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?y.createElement(vN,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:m(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):m()},null)}var hx=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(hx||{}),Dl=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}(Dl||{});function wN(e){let t=y.useContext(uh);return t||Qe(!1),t}function bN(e){let t=y.useContext(lN);return t||Qe(!1),t}function SN(e){let t=y.useContext(Yr);return t||Qe(!1),t}function px(e){let t=SN(),n=t.matches[t.matches.length-1];return n.route.id||Qe(!1),n.route.id}function kN(){var e;let t=y.useContext(cx),n=bN(Dl.UseRouteError),r=px(Dl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function CN(){let{router:e}=wN(hx.UseNavigateStable),t=px(Dl.UseNavigateStable),n=y.useRef(!1);return dx(()=>{n.current=!0}),y.useCallback(function(s,o){o===void 0&&(o={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Wi({fromRouteId:t},o)))},[e,t])}function EN(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function rs(e){Qe(!1)}function _N(e){let{basename:t="/",children:n=null,location:r,navigationType:s=Rr.Pop,navigator:o,static:i=!1,future:a}=e;ua()&&Qe(!1);let l=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:l,navigator:o,static:i,future:Wi({v7_relativeSplatPath:!1},a)}),[l,a,o,i]);typeof r=="string"&&(r=Uo(r));let{pathname:c="/",search:f="",hash:h="",state:p=null,key:b="default"}=r,g=y.useMemo(()=>{let w=lh(c,l);return w==null?null:{location:{pathname:w,search:f,hash:h,state:p,key:b},navigationType:s}},[l,c,f,h,p,b,s]);return g==null?null:y.createElement(Ps.Provider,{value:u},y.createElement(wu.Provider,{children:n,value:g}))}function NN(e){let{children:t,location:n}=e;return hN(Dd(t),n)}new Promise(()=>{});function Dd(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,s)=>{if(!y.isValidElement(r))return;let o=[...t,s];if(r.type===y.Fragment){n.push.apply(n,Dd(r.props.children,o));return}r.type!==rs&&Qe(!1),!r.props.index||!r.props.children||Qe(!1);let i={id:r.props.id||o.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&&(i.children=Dd(r.props.children,o)),n.push(i)}),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
 */function Fd(){return Fd=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},Fd.apply(this,arguments)}function TN(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,o;for(o=0;o<r.length;o++)s=r[o],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function RN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function PN(e,t){return e.button===0&&(!t||t==="_self")&&!RN(e)}const jN=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],ON="6";try{window.__reactRouterVersion=ON}catch{}const AN="startTransition",xm=Yd[AN];function IN(e){let{basename:t,children:n,future:r,window:s}=e,o=y.useRef();o.current==null&&(o.current=D_({window:s,v5Compat:!0}));let i=o.current,[a,l]=y.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},c=y.useCallback(f=>{u&&xm?xm(()=>l(f)):l(f)},[l,u]);return y.useLayoutEffect(()=>i.listen(c),[i,c]),y.useEffect(()=>EN(r),[r]),y.createElement(_N,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const MN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",LN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ye=y.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:o,replace:i,state:a,target:l,to:u,preventScrollReset:c,viewTransition:f}=t,h=TN(t,jN),{basename:p}=y.useContext(Ps),b,g=!1;if(typeof u=="string"&&LN.test(u)&&(b=u,MN))try{let x=new URL(window.location.href),S=u.startsWith("//")?new URL(x.protocol+u):new URL(u),k=lh(S.pathname,p);S.origin===x.origin&&k!=null?u=k+S.search+S.hash:g=!0}catch{}let w=uN(u,{relative:s}),v=DN(u,{replace:i,state:a,target:l,preventScrollReset:c,relative:s,viewTransition:f});function m(x){r&&r(x),x.defaultPrevented||v(x)}return y.createElement("a",Fd({},h,{href:b||w,onClick:g||o?r:m,ref:n,target:l}))});var wm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(wm||(wm={}));var bm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(bm||(bm={}));function DN(e,t){let{target:n,replace:r,state:s,preventScrollReset:o,relative:i,viewTransition:a}=t===void 0?{}:t,l=cN(),u=ca(),c=fx(e,{relative:i});return y.useCallback(f=>{if(PN(f,n)){f.preventDefault();let h=r!==void 0?r:Ll(u)===Ll(c);l(e,{replace:h,state:s,preventScrollReset:o,relative:i,viewTransition:a})}},[u,l,c,r,s,n,e,o,i,a])}const FN=ia("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"}}),ht=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},o)=>{const i=r?eS:"button";return d.jsx(i,{className:Le(FN({variant:t,size:n,className:e})),ref:o,...s})});ht.displayName="Button";const zN=ia("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function $N({className:e,variant:t,...n}){return d.jsx("div",{className:Le(zN({variant:t}),e),...n})}var uc="focusScope.autoFocusOnMount",cc="focusScope.autoFocusOnUnmount",Sm={bubbles:!1,cancelable:!0},VN="FocusScope",mx=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...i}=e,[a,l]=y.useState(null),u=On(s),c=On(o),f=y.useRef(null),h=mt(t,g=>l(g)),p=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let g=function(x){if(p.paused||!a)return;const S=x.target;a.contains(S)?f.current=S:fr(f.current,{select:!0})},w=function(x){if(p.paused||!a)return;const S=x.relatedTarget;S!==null&&(a.contains(S)||fr(f.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const k of x)k.removedNodes.length>0&&fr(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",w);const m=new MutationObserver(v);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",w),m.disconnect()}}},[r,a,p.paused]),y.useEffect(()=>{if(a){Cm.add(p);const g=document.activeElement;if(!a.contains(g)){const v=new CustomEvent(uc,Sm);a.addEventListener(uc,u),a.dispatchEvent(v),v.defaultPrevented||(UN(ZN(gx(a)),{select:!0}),document.activeElement===g&&fr(a))}return()=>{a.removeEventListener(uc,u),setTimeout(()=>{const v=new CustomEvent(cc,Sm);a.addEventListener(cc,c),a.dispatchEvent(v),v.defaultPrevented||fr(g??document.body,{select:!0}),a.removeEventListener(cc,c),Cm.remove(p)},0)}}},[a,u,c,p]);const b=y.useCallback(g=>{if(!n&&!r||p.paused)return;const w=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if(w&&v){const m=g.currentTarget,[x,S]=BN(m);x&&S?!g.shiftKey&&v===S?(g.preventDefault(),n&&fr(x,{select:!0})):g.shiftKey&&v===x&&(g.preventDefault(),n&&fr(S,{select:!0})):v===m&&g.preventDefault()}},[n,r,p.paused]);return d.jsx(Ue.div,{tabIndex:-1,...i,ref:h,onKeyDown:b})});mx.displayName=VN;function UN(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(fr(r,{select:t}),document.activeElement!==n)return}function BN(e){const t=gx(e),n=km(t,e),r=km(t.reverse(),e);return[n,r]}function gx(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function km(e,t){for(const n of e)if(!WN(n,{upTo:t}))return n}function WN(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 HN(e){return e instanceof HTMLInputElement&&"select"in e}function fr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&HN(e)&&t&&e.select()}}var Cm=QN();function QN(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Em(e,t),e.unshift(t)},remove(t){var n;e=Em(e,t),(n=e[0])==null||n.resume()}}}function Em(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ZN(e){return e.filter(t=>t.tagName!=="A")}var dc=0;function GN(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??_m()),document.body.insertAdjacentElement("beforeend",e[1]??_m()),dc++,()=>{dc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),dc--}},[])}function _m(){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 En=function(){return En=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},En.apply(this,arguments)};function vx(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 s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function KN(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,o;r<s;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var rl="right-scroll-bar-position",sl="width-before-scroll-bar",qN="with-scroll-bars-hidden",YN="--removed-body-scroll-bar-size";function fc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function XN(e,t){var n=y.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var JN=typeof window<"u"?y.useLayoutEffect:y.useEffect,Nm=new WeakMap;function eT(e,t){var n=XN(null,function(r){return e.forEach(function(s){return fc(s,r)})});return JN(function(){var r=Nm.get(n);if(r){var s=new Set(r),o=new Set(e),i=n.current;s.forEach(function(a){o.has(a)||fc(a,null)}),o.forEach(function(a){s.has(a)||fc(a,i)})}Nm.set(n,e)},[e]),n}function tT(e){return e}function nT(e,t){t===void 0&&(t=tT);var n=[],r=!1,s={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(o){var i=t(o,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(o){for(r=!0;n.length;){var i=n;n=[],i.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(o),i=n}var l=function(){var c=i;i=[],c.forEach(o)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){i.push(c),u()},filter:function(c){return i=i.filter(c),n}}}};return s}function rT(e){e===void 0&&(e={});var t=nT(null);return t.options=En({async:!0,ssr:!1},e),t}var yx=function(e){var t=e.sideCar,n=vx(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 y.createElement(r,En({},n))};yx.isSideCarExport=!0;function sT(e,t){return e.useMedium(t),yx}var xx=rT(),hc=function(){},bu=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:hc,onWheelCapture:hc,onTouchMoveCapture:hc}),s=r[0],o=r[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,h=e.sideCar,p=e.noRelative,b=e.noIsolation,g=e.inert,w=e.allowPinchZoom,v=e.as,m=v===void 0?"div":v,x=e.gapMode,S=vx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=h,N=eT([n,t]),T=En(En({},S),s);return y.createElement(y.Fragment,null,c&&y.createElement(k,{sideCar:xx,removeScrollBar:u,shards:f,noRelative:p,noIsolation:b,inert:g,setCallbacks:o,allowPinchZoom:!!w,lockRef:n,gapMode:x}),i?y.cloneElement(y.Children.only(a),En(En({},T),{ref:N})):y.createElement(m,En({},T,{className:l,ref:N}),a))});bu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};bu.classNames={fullWidth:sl,zeroRight:rl};var oT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function iT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=oT();return t&&e.setAttribute("nonce",t),e}function aT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function lT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var uT=function(){var e=0,t=null;return{add:function(n){e==0&&(t=iT())&&(aT(t,n),lT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},cT=function(){var e=uT();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},wx=function(){var e=cT(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},dT={left:0,top:0,right:0,gap:0},pc=function(e){return parseInt(e||"",10)||0},fT=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[pc(n),pc(r),pc(s)]},hT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return dT;var t=fT(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])}},pT=wx(),ao="data-scroll-locked",mT=function(e,t,n,r){var s=e.left,o=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
  .`.concat(qN,` {
   overflow: hidden `).concat(r,`;
   padding-right: `).concat(a,"px ").concat(r,`;
  }
  body[`).concat(ao,`] {
    overflow: hidden `).concat(r,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
    padding-left: `.concat(s,`px;
    padding-top: `).concat(o,`px;
    padding-right: `).concat(i,`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(rl,` {
    right: `).concat(a,"px ").concat(r,`;
  }
  
  .`).concat(sl,` {
    margin-right: `).concat(a,"px ").concat(r,`;
  }
  
  .`).concat(rl," .").concat(rl,` {
    right: 0 `).concat(r,`;
  }
  
  .`).concat(sl," .").concat(sl,` {
    margin-right: 0 `).concat(r,`;
  }
  
  body[`).concat(ao,`] {
    `).concat(YN,": ").concat(a,`px;
  }
`)},Tm=function(){var e=parseInt(document.body.getAttribute(ao)||"0",10);return isFinite(e)?e:0},gT=function(){y.useEffect(function(){return document.body.setAttribute(ao,(Tm()+1).toString()),function(){var e=Tm()-1;e<=0?document.body.removeAttribute(ao):document.body.setAttribute(ao,e.toString())}},[])},vT=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;gT();var o=y.useMemo(function(){return hT(s)},[s]);return y.createElement(pT,{styles:mT(o,!t,s,n?"":"!important")})},zd=!1;if(typeof window<"u")try{var Fa=Object.defineProperty({},"passive",{get:function(){return zd=!0,!0}});window.addEventListener("test",Fa,Fa),window.removeEventListener("test",Fa,Fa)}catch{zd=!1}var Ms=zd?{passive:!1}:!1,yT=function(e){return e.tagName==="TEXTAREA"},bx=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!yT(e)&&n[t]==="visible")},xT=function(e){return bx(e,"overflowY")},wT=function(e){return bx(e,"overflowX")},Rm=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=Sx(e,r);if(s){var o=kx(e,r),i=o[1],a=o[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},bT=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ST=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Sx=function(e,t){return e==="v"?xT(t):wT(t)},kx=function(e,t){return e==="v"?bT(t):ST(t)},kT=function(e,t){return e==="h"&&t==="rtl"?-1:1},CT=function(e,t,n,r,s){var o=kT(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,l=t.contains(a),u=!1,c=i>0,f=0,h=0;do{if(!a)break;var p=kx(e,a),b=p[0],g=p[1],w=p[2],v=g-w-o*b;(b||v)&&Sx(e,a)&&(f+=v,h+=b);var m=a.parentNode;a=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&(Math.abs(f)<1||!s)||!c&&(Math.abs(h)<1||!s))&&(u=!0),u},za=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pm=function(e){return[e.deltaX,e.deltaY]},jm=function(e){return e&&"current"in e?e.current:e},ET=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_T=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},NT=0,Ls=[];function TT(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),s=y.useState(NT++)[0],o=y.useState(wx)[0],i=y.useRef(e);y.useEffect(function(){i.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var g=KN([e.lockRef.current],(e.shards||[]).map(jm),!0).filter(Boolean);return g.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),g.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=y.useCallback(function(g,w){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var v=za(g),m=n.current,x="deltaX"in g?g.deltaX:m[0]-v[0],S="deltaY"in g?g.deltaY:m[1]-v[1],k,N=g.target,T=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in g&&T==="h"&&N.type==="range")return!1;var j=Rm(T,N);if(!j)return!0;if(j?k=T:(k=T==="v"?"h":"v",j=Rm(T,N)),!j)return!1;if(!r.current&&"changedTouches"in g&&(x||S)&&(r.current=k),!k)return!0;var F=r.current||k;return CT(F,w,g,F==="h"?x:S,!0)},[]),l=y.useCallback(function(g){var w=g;if(!(!Ls.length||Ls[Ls.length-1]!==o)){var v="deltaY"in w?Pm(w):za(w),m=t.current.filter(function(k){return k.name===w.type&&(k.target===w.target||w.target===k.shadowParent)&&ET(k.delta,v)})[0];if(m&&m.should){w.cancelable&&w.preventDefault();return}if(!m){var x=(i.current.shards||[]).map(jm).filter(Boolean).filter(function(k){return k.contains(w.target)}),S=x.length>0?a(w,x[0]):!i.current.noIsolation;S&&w.cancelable&&w.preventDefault()}}},[]),u=y.useCallback(function(g,w,v,m){var x={name:g,delta:w,target:v,should:m,shadowParent:RT(v)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),c=y.useCallback(function(g){n.current=za(g),r.current=void 0},[]),f=y.useCallback(function(g){u(g.type,Pm(g),g.target,a(g,e.lockRef.current))},[]),h=y.useCallback(function(g){u(g.type,za(g),g.target,a(g,e.lockRef.current))},[]);y.useEffect(function(){return Ls.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Ms),document.addEventListener("touchmove",l,Ms),document.addEventListener("touchstart",c,Ms),function(){Ls=Ls.filter(function(g){return g!==o}),document.removeEventListener("wheel",l,Ms),document.removeEventListener("touchmove",l,Ms),document.removeEventListener("touchstart",c,Ms)}},[]);var p=e.removeScrollBar,b=e.inert;return y.createElement(y.Fragment,null,b?y.createElement(o,{styles:_T(s)}):null,p?y.createElement(vT,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function RT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const PT=sT(xx,TT);var Cx=y.forwardRef(function(e,t){return y.createElement(bu,En({},e,{ref:t,sideCar:PT}))});Cx.classNames=bu.classNames;var jT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ds=new WeakMap,$a=new WeakMap,Va={},mc=0,Ex=function(e){return e&&(e.host||Ex(e.parentNode))},OT=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ex(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})},AT=function(e,t,n,r){var s=OT(t,Array.isArray(e)?e:[e]);Va[n]||(Va[n]=new WeakMap);var o=Va[n],i=[],a=new Set,l=new Set(s),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};s.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))c(h);else try{var p=h.getAttribute(r),b=p!==null&&p!=="false",g=(Ds.get(h)||0)+1,w=(o.get(h)||0)+1;Ds.set(h,g),o.set(h,w),i.push(h),g===1&&b&&$a.set(h,!0),w===1&&h.setAttribute(n,"true"),b||h.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",h,v)}})};return c(t),a.clear(),mc++,function(){i.forEach(function(f){var h=Ds.get(f)-1,p=o.get(f)-1;Ds.set(f,h),o.set(f,p),h||($a.has(f)||f.removeAttribute(r),$a.delete(f)),p||f.removeAttribute(n)}),mc--,mc||(Ds=new WeakMap,Ds=new WeakMap,$a=new WeakMap,Va={})}},IT=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=jT(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),AT(r,s,n,"aria-hidden")):function(){return null}},Su="Dialog",[_x,$2]=sa(Su),[MT,hn]=_x(Su),Nx=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:o,modal:i=!0}=e,a=y.useRef(null),l=y.useRef(null),[u,c]=Fy({prop:r,defaultProp:s??!1,onChange:o,caller:Su});return d.jsx(MT,{scope:t,triggerRef:a,contentRef:l,contentId:sc(),titleId:sc(),descriptionId:sc(),open:u,onOpenChange:c,onOpenToggle:y.useCallback(()=>c(f=>!f),[c]),modal:i,children:n})};Nx.displayName=Su;var Tx="DialogTrigger",Rx=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=hn(Tx,n),o=mt(t,s.triggerRef);return d.jsx(Ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":fh(s.open),...r,ref:o,onClick:je(e.onClick,s.onOpenToggle)})});Rx.displayName=Tx;var ch="DialogPortal",[LT,Px]=_x(ch,{forceMount:void 0}),jx=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,o=hn(ch,t);return d.jsx(LT,{scope:t,forceMount:n,children:y.Children.map(r,i=>d.jsx(Fo,{present:n||o.open,children:d.jsx(Bf,{asChild:!0,container:s,children:i})}))})};jx.displayName=ch;var Fl="DialogOverlay",Ox=y.forwardRef((e,t)=>{const n=Px(Fl,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,o=hn(Fl,e.__scopeDialog);return o.modal?d.jsx(Fo,{present:r||o.open,children:d.jsx(FT,{...s,ref:t})}):null});Ox.displayName=Fl;var DT=Fi("DialogOverlay.RemoveScroll"),FT=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=hn(Fl,n);return d.jsx(Cx,{as:DT,allowPinchZoom:!0,shards:[s.contentRef],children:d.jsx(Ue.div,{"data-state":fh(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),_s="DialogContent",Ax=y.forwardRef((e,t)=>{const n=Px(_s,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,o=hn(_s,e.__scopeDialog);return d.jsx(Fo,{present:r||o.open,children:o.modal?d.jsx(zT,{...s,ref:t}):d.jsx($T,{...s,ref:t})})});Ax.displayName=_s;var zT=y.forwardRef((e,t)=>{const n=hn(_s,e.__scopeDialog),r=y.useRef(null),s=mt(t,n.contentRef,r);return y.useEffect(()=>{const o=r.current;if(o)return IT(o)},[]),d.jsx(Ix,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:je(e.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:je(e.onPointerDownOutside,o=>{const i=o.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&o.preventDefault()}),onFocusOutside:je(e.onFocusOutside,o=>o.preventDefault())})}),$T=y.forwardRef((e,t)=>{const n=hn(_s,e.__scopeDialog),r=y.useRef(!1),s=y.useRef(!1);return d.jsx(Ix,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:o=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const i=o.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),Ix=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:o,...i}=e,a=hn(_s,n),l=y.useRef(null),u=mt(t,l);return GN(),d.jsxs(d.Fragment,{children:[d.jsx(mx,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:o,children:d.jsx(cu,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":fh(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(VT,{titleId:a.titleId}),d.jsx(BT,{contentRef:l,descriptionId:a.descriptionId})]})]})}),dh="DialogTitle",Mx=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=hn(dh,n);return d.jsx(Ue.h2,{id:s.titleId,...r,ref:t})});Mx.displayName=dh;var Lx="DialogDescription",Dx=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=hn(Lx,n);return d.jsx(Ue.p,{id:s.descriptionId,...r,ref:t})});Dx.displayName=Lx;var Fx="DialogClose",zx=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=hn(Fx,n);return d.jsx(Ue.button,{type:"button",...r,ref:t,onClick:je(e.onClick,()=>s.onOpenChange(!1))})});zx.displayName=Fx;function fh(e){return e?"open":"closed"}var $x="DialogTitleWarning",[V2,Vx]=Xb($x,{contentName:_s,titleName:dh,docsSlug:"dialog"}),VT=({titleId:e})=>{const t=Vx($x),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 y.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},UT="DialogDescriptionWarning",BT=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Vx(UT).contentName}}.`;return y.useEffect(()=>{var o;const s=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},WT=Nx,HT=Rx,QT=jx,Ux=Ox,Bx=Ax,Wx=Mx,Hx=Dx,ZT=zx;const GT=WT,KT=HT,qT=QT,Qx=y.forwardRef(({className:e,...t},n)=>d.jsx(Ux,{className:Le("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Qx.displayName=Ux.displayName;const YT=ia("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Zx=y.forwardRef(({side:e="right",className:t,children:n,...r},s)=>d.jsxs(qT,{children:[d.jsx(Qx,{}),d.jsxs(Bx,{ref:s,className:Le(YT({side:e}),t),...r,children:[n,d.jsxs(ZT,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[d.jsx(pu,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Zx.displayName=Bx.displayName;const Gx=({className:e,...t})=>d.jsx("div",{className:Le("flex flex-col space-y-2 text-center sm:text-left",e),...t});Gx.displayName="SheetHeader";const Kx=y.forwardRef(({className:e,...t},n)=>d.jsx(Wx,{ref:n,className:Le("text-lg font-semibold text-foreground",e),...t}));Kx.displayName=Wx.displayName;const qx=y.forwardRef(({className:e,...t},n)=>d.jsx(Hx,{ref:n,className:Le("text-sm text-muted-foreground",e),...t}));qx.displayName=Hx.displayName;const Om=e=>{let t;const n=new Set,r=(u,c)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const h=t;t=c??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(p=>p(t,h))}},s=()=>t,a={setState:r,getState:s,getInitialState:()=>l,subscribe:u=>(n.add(u),()=>n.delete(u))},l=t=e(r,s,a);return a},XT=e=>e?Om(e):Om,JT=e=>e;function eR(e,t=JT){const n=I.useSyncExternalStore(e.subscribe,I.useCallback(()=>t(e.getState()),[e,t]),I.useCallback(()=>t(e.getInitialState()),[e,t]));return I.useDebugValue(n),n}const tR=e=>{const t=XT(e),n=r=>eR(t,r);return Object.assign(n,t),n},nR=e=>tR;function Yx(e,t){let n;try{n=e()}catch{return}return{getItem:s=>{var o;const i=l=>l===null?null:JSON.parse(l,void 0),a=(o=n.getItem(s))!=null?o:null;return a instanceof Promise?a.then(i):i(a)},setItem:(s,o)=>n.setItem(s,JSON.stringify(o,void 0)),removeItem:s=>n.removeItem(s)}}const $d=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return $d(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return $d(r)(n)}}}},rR=(e,t)=>(n,r,s)=>{let o={storage:Yx(()=>localStorage),partialize:g=>g,version:0,merge:(g,w)=>({...w,...g}),...t},i=!1;const a=new Set,l=new Set;let u=o.storage;if(!u)return e((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...g)},r,s);const c=()=>{const g=o.partialize({...r()});return u.setItem(o.name,{state:g,version:o.version})},f=s.setState;s.setState=(g,w)=>(f(g,w),c());const h=e((...g)=>(n(...g),c()),r,s);s.getInitialState=()=>h;let p;const b=()=>{var g,w;if(!u)return;i=!1,a.forEach(m=>{var x;return m((x=r())!=null?x:h)});const v=((w=o.onRehydrateStorage)==null?void 0:w.call(o,(g=r())!=null?g:h))||void 0;return $d(u.getItem.bind(u))(o.name).then(m=>{if(m)if(typeof m.version=="number"&&m.version!==o.version){if(o.migrate){const x=o.migrate(m.state,m.version);return x instanceof Promise?x.then(S=>[!0,S]):[!0,x]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,m.state];return[!1,void 0]}).then(m=>{var x;const[S,k]=m;if(p=o.merge(k,(x=r())!=null?x:h),n(p,!0),S)return c()}).then(()=>{v==null||v(p,void 0),p=r(),i=!0,l.forEach(m=>m(p))}).catch(m=>{v==null||v(void 0,m)})};return s.persist={setOptions:g=>{o={...o,...g},g.storage&&(u=g.storage)},clearStorage:()=>{u==null||u.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>b(),hasHydrated:()=>i,onHydrate:g=>(a.add(g),()=>{a.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},o.skipHydration||b(),p||h},sR=rR,oR="2025-07",iR="lovable-project-4pxdx.myshopify.com",aR=`https://${iR}/api/${oR}/graphql.json`,lR="c377a9e494efeedd071b1c3f2bf30981";async function ku(e,t={}){const n=await fetch(aR,{method:"POST",headers:{"Content-Type":"application/json","X-Shopify-Storefront-Access-Token":lR},body:JSON.stringify({query:e,variables:t})});if(n.status===402){er.error("Shopify: Payment required",{description:"Shopify API access requires an active Shopify billing plan. Your store needs to be upgraded to a paid plan. Visit https://admin.shopify.com to upgrade."});return}if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const r=await n.json();if(r.errors)throw new Error(`Error calling Shopify: ${r.errors.map(s=>s.message).join(", ")}`);return r}const Xx=`
  query GetProducts($first: Int!, $query: String) {
    products(first: $first, query: $query) {
      edges {
        node {
          id
          title
          description
          handle
          priceRange {
            minVariantPrice {
              amount
              currencyCode
            }
          }
          images(first: 5) {
            edges {
              node {
                url
                altText
              }
            }
          }
          variants(first: 10) {
            edges {
              node {
                id
                title
                price {
                  amount
                  currencyCode
                }
                availableForSale
                selectedOptions {
                  name
                  value
                }
              }
            }
          }
          options {
            name
            values
          }
        }
      }
    }
  }
`,uR=`
  query GetProductByHandle($handle: String!) {
    product(handle: $handle) {
      id
      title
      description
      handle
      priceRange {
        minVariantPrice {
          amount
          currencyCode
        }
      }
      images(first: 5) {
        edges {
          node {
            url
            altText
          }
        }
      }
      variants(first: 10) {
        edges {
          node {
            id
            title
            price {
              amount
              currencyCode
            }
            availableForSale
            selectedOptions {
              name
              value
            }
          }
        }
      }
      options {
        name
        values
      }
    }
  }
`,cR=`
  mutation cartCreate($input: CartInput!) {
    cartCreate(input: $input) {
      cart {
        id
        checkoutUrl
        totalQuantity
        cost {
          totalAmount {
            amount
            currencyCode
          }
        }
        lines(first: 100) {
          edges {
            node {
              id
              quantity
              merchandise {
                ... on ProductVariant {
                  id
                  title
                  price {
                    amount
                    currencyCode
                  }
                  product {
                    title
                    handle
                  }
                }
              }
            }
          }
        }
      }
      userErrors {
        field
        message
      }
    }
  }
`;async function dR(e){try{const t=e.map(i=>({quantity:i.quantity,merchandiseId:i.variantId})),n=await ku(cR,{input:{lines:t}});if(n.data.cartCreate.userErrors.length>0)throw new Error(`Cart creation failed: ${n.data.cartCreate.userErrors.map(i=>i.message).join(", ")}`);const r=n.data.cartCreate.cart;if(!r.checkoutUrl)throw new Error("No checkout URL returned from Shopify");const s=new URL(r.checkoutUrl);return s.searchParams.set("channel","online_store"),s.toString()}catch(t){throw console.error("Error creating storefront checkout:",t),t}}const zl=nR()(sR((e,t)=>({items:[],cartId:null,checkoutUrl:null,isLoading:!1,addItem:n=>{const{items:r}=t(),s=r.find(o=>o.variantId===n.variantId);e(s?{items:r.map(o=>o.variantId===n.variantId?{...o,quantity:o.quantity+n.quantity}:o)}:{items:[...r,n]})},updateQuantity:(n,r)=>{if(r<=0){t().removeItem(n);return}e({items:t().items.map(s=>s.variantId===n?{...s,quantity:r}:s)})},removeItem:n=>{e({items:t().items.filter(r=>r.variantId!==n)})},clearCart:()=>{e({items:[],cartId:null,checkoutUrl:null})},setCartId:n=>e({cartId:n}),setCheckoutUrl:n=>e({checkoutUrl:n}),setLoading:n=>e({isLoading:n}),createCheckout:async()=>{const{items:n,setLoading:r,setCheckoutUrl:s}=t();if(n.length!==0){r(!0);try{const o=await dR(n);s(o)}catch(o){console.error("Failed to create checkout:",o)}finally{r(!1)}}}}),{name:"shopify-cart",storage:Yx(()=>localStorage)})),fR=()=>{var c;const[e,t]=y.useState(!1),{items:n,isLoading:r,updateQuantity:s,removeItem:o,createCheckout:i}=zl(),a=n.reduce((f,h)=>f+h.quantity,0),l=n.reduce((f,h)=>f+parseFloat(h.price.amount)*h.quantity,0),u=async()=>{try{await i();const f=zl.getState().checkoutUrl;f&&(window.open(f,"_blank"),t(!1))}catch(f){console.error("Checkout failed:",f)}};return d.jsxs(GT,{open:e,onOpenChange:t,children:[d.jsx(KT,{asChild:!0,children:d.jsxs(ht,{variant:"outline",size:"icon",className:"relative",children:[d.jsx(Pl,{className:"h-5 w-5"}),a>0&&d.jsx($N,{className:"absolute -top-2 -right-2 h-5 w-5 rounded-full p-0 flex items-center justify-center text-xs bg-primary text-primary-foreground",children:a})]})}),d.jsxs(Zx,{className:"w-full sm:max-w-lg flex flex-col h-full",children:[d.jsxs(Gx,{className:"flex-shrink-0",children:[d.jsx(Kx,{children:"Shopping Cart"}),d.jsx(qx,{children:a===0?"Your cart is empty":`${a} item${a!==1?"s":""} in your cart`})]}),d.jsx("div",{className:"flex flex-col flex-1 pt-6 min-h-0",children:n.length===0?d.jsx("div",{className:"flex-1 flex items-center justify-center",children:d.jsxs("div",{className:"text-center",children:[d.jsx(Pl,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),d.jsx("p",{className:"text-muted-foreground",children:"Your cart is empty"})]})}):d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"flex-1 overflow-y-auto pr-2 min-h-0",children:d.jsx("div",{className:"space-y-4",children:n.map(f=>{var h,p,b;return d.jsxs("div",{className:"flex gap-4 p-2",children:[d.jsx("div",{className:"w-16 h-16 bg-accent rounded-md overflow-hidden flex-shrink-0",children:((b=(p=(h=f.product.node.images)==null?void 0:h.edges)==null?void 0:p[0])==null?void 0:b.node)&&d.jsx("img",{src:f.product.node.images.edges[0].node.url,alt:f.product.node.title,className:"w-full h-full object-cover"})}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("h4",{className:"font-medium truncate",children:f.product.node.title}),d.jsx("p",{className:"text-sm text-muted-foreground",children:f.selectedOptions.map(g=>g.value).join(" • ")}),d.jsxs("p",{className:"font-semibold",children:[f.price.currencyCode," $",parseFloat(f.price.amount).toFixed(2)]})]}),d.jsxs("div",{className:"flex flex-col items-end gap-2 flex-shrink-0",children:[d.jsx(ht,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:()=>o(f.variantId),children:d.jsx(ek,{className:"h-3 w-3"})}),d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx(ht,{variant:"outline",size:"icon",className:"h-6 w-6",onClick:()=>s(f.variantId,f.quantity-1),children:d.jsx(XS,{className:"h-3 w-3"})}),d.jsx("span",{className:"w-8 text-center text-sm",children:f.quantity}),d.jsx(ht,{variant:"outline",size:"icon",className:"h-6 w-6",onClick:()=>s(f.variantId,f.quantity+1),children:d.jsx(JS,{className:"h-3 w-3"})})]})]})]},f.variantId)})})}),d.jsxs("div",{className:"flex-shrink-0 space-y-4 pt-4 border-t bg-background",children:[d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsx("span",{className:"text-lg font-semibold",children:"Total"}),d.jsxs("span",{className:"text-xl font-bold",children:[((c=n[0])==null?void 0:c.price.currencyCode)||"$"," $",l.toFixed(2)]})]}),d.jsx(ht,{onClick:u,className:"w-full",size:"lg",disabled:n.length===0||r,children:r?d.jsxs(d.Fragment,{children:[d.jsx(hu,{className:"w-4 h-4 mr-2 animate-spin"}),"Creating Checkout..."]}):d.jsxs(d.Fragment,{children:[d.jsx(GS,{className:"w-4 h-4 mr-2"}),"Checkout with Shopify"]})})]})]})})]})]})},hh="/assets/only-gus-logo-D5FMw8er.png",hR=()=>{const[e,t]=y.useState(!1);return d.jsxs("header",{className:"sticky top-0 z-50 w-full border-b border-border bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:[d.jsxs("div",{className:"container flex h-16 items-center justify-between px-4",children:[d.jsx(Ye,{to:"/",className:"flex items-center space-x-2",children:d.jsx("img",{src:hh,alt:"Only Gus",className:"h-14 w-auto"})}),d.jsxs("nav",{className:"hidden md:flex items-center gap-8",children:[d.jsx(Ye,{to:"/",className:"text-sm font-medium hover:text-primary transition-colors",children:"Home"}),d.jsx(Ye,{to:"/shop",className:"text-sm font-medium hover:text-primary transition-colors",children:"Shop"}),d.jsx(Ye,{to:"/about",className:"text-sm font-medium hover:text-primary transition-colors",children:"About"}),d.jsx(Ye,{to:"/contact",className:"text-sm font-medium hover:text-primary transition-colors",children:"Contact"}),d.jsxs("div",{className:"flex items-center gap-4 ml-4 border-l border-border pl-4",children:[d.jsx("a",{href:"https://instagram.com",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground transition-colors",children:d.jsx(md,{className:"h-4 w-4"})}),d.jsx("a",{href:"https://facebook.com",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground transition-colors",children:d.jsx(pd,{className:"h-4 w-4"})}),d.jsx("a",{href:"https://twitter.com",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground transition-colors",children:d.jsx(gd,{className:"h-4 w-4"})})]})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(ht,{variant:"ghost",size:"icon",className:"md:hidden",onClick:()=>t(!e),children:e?d.jsx(pu,{className:"h-5 w-5"}):d.jsx(qS,{className:"h-5 w-5"})}),d.jsx(fR,{})]})]}),e&&d.jsx("div",{className:"md:hidden border-t border-border bg-background",children:d.jsxs("nav",{className:"container py-4 px-4 flex flex-col gap-4",children:[d.jsx(Ye,{to:"/",className:"text-sm font-medium hover:text-primary transition-colors",onClick:()=>t(!1),children:"Home"}),d.jsx(Ye,{to:"/shop",className:"text-sm font-medium hover:text-primary transition-colors",onClick:()=>t(!1),children:"Shop"}),d.jsx(Ye,{to:"/about",className:"text-sm font-medium hover:text-primary transition-colors",onClick:()=>t(!1),children:"About"}),d.jsx(Ye,{to:"/contact",className:"text-sm font-medium hover:text-primary transition-colors",onClick:()=>t(!1),children:"Contact"}),d.jsxs("div",{className:"flex items-center gap-4 pt-4 border-t border-border",children:[d.jsx("a",{href:"https://instagram.com",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground transition-colors",children:d.jsx(md,{className:"h-5 w-5"})}),d.jsx("a",{href:"https://facebook.com",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground transition-colors",children:d.jsx(pd,{className:"h-5 w-5"})}),d.jsx("a",{href:"https://twitter.com",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground transition-colors",children:d.jsx(gd,{className:"h-5 w-5"})})]})]})})]})};var da=e=>e.type==="checkbox",as=e=>e instanceof Date,ft=e=>e==null;const Jx=e=>typeof e=="object";var Ve=e=>!ft(e)&&!Array.isArray(e)&&Jx(e)&&!as(e),pR=e=>Ve(e)&&e.target?da(e.target)?e.target.checked:e.target.value:e,mR=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,gR=(e,t)=>e.has(mR(t)),vR=e=>{const t=e.constructor&&e.constructor.prototype;return Ve(t)&&t.hasOwnProperty("isPrototypeOf")},ph=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function qe(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(ph&&(e instanceof Blob||r))&&(n||Ve(e)))if(t=n?[]:{},!n&&!vR(e))t=e;else for(const s in e)e.hasOwnProperty(s)&&(t[s]=qe(e[s]));else return e;return t}var Cu=e=>/^\w*$/.test(e),We=e=>e===void 0,mh=e=>Array.isArray(e)?e.filter(Boolean):[],gh=e=>mh(e.replace(/["|']|\]/g,"").split(/\.|\[/)),K=(e,t,n)=>{if(!t||!Ve(e))return n;const r=(Cu(t)?[t]:gh(t)).reduce((s,o)=>ft(s)?s:s[o],e);return We(r)||r===e?We(e[t])?n:e[t]:r},wn=e=>typeof e=="boolean",Ce=(e,t,n)=>{let r=-1;const s=Cu(t)?[t]:gh(t),o=s.length,i=o-1;for(;++r<o;){const a=s[r];let l=n;if(r!==i){const u=e[a];l=Ve(u)||Array.isArray(u)?u:isNaN(+s[r+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;e[a]=l,e=e[a]}};const Am={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},on={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Vn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},yR=I.createContext(null);yR.displayName="HookFormContext";var xR=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(s,o,{get:()=>{const i=o;return t._proxyFormState[i]!==on.all&&(t._proxyFormState[i]=!r||on.all),e[i]}});return s};const wR=typeof window<"u"?I.useLayoutEffect:I.useEffect;var Nn=e=>typeof e=="string",bR=(e,t,n,r,s)=>Nn(e)?(r&&t.watch.add(e),K(n,e,s)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),K(n,o))):(r&&(t.watchAll=!0),n),Vd=e=>ft(e)||!Jx(e);function yr(e,t,n=new WeakSet){if(Vd(e)||Vd(t))return e===t;if(as(e)&&as(t))return e.getTime()===t.getTime();const r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const o of r){const i=e[o];if(!s.includes(o))return!1;if(o!=="ref"){const a=t[o];if(as(i)&&as(a)||Ve(i)&&Ve(a)||Array.isArray(i)&&Array.isArray(a)?!yr(i,a,n):i!==a)return!1}}return!0}var ew=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},xi=e=>Array.isArray(e)?e:[e],Im=()=>{let e=[];return{get observers(){return e},next:s=>{for(const o of e)o.next&&o.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(o=>o!==s)}}),unsubscribe:()=>{e=[]}}},wt=e=>Ve(e)&&!Object.keys(e).length,vh=e=>e.type==="file",an=e=>typeof e=="function",$l=e=>{if(!ph)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},tw=e=>e.type==="select-multiple",yh=e=>e.type==="radio",SR=e=>yh(e)||da(e),gc=e=>$l(e)&&e.isConnected;function kR(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=We(e)?r++:e[t[r++]];return e}function CR(e){for(const t in e)if(e.hasOwnProperty(t)&&!We(e[t]))return!1;return!0}function Be(e,t){const n=Array.isArray(t)?t:Cu(t)?[t]:gh(t),r=n.length===1?e:kR(e,n),s=n.length-1,o=n[s];return r&&delete r[o],s!==0&&(Ve(r)&&wt(r)||Array.isArray(r)&&CR(r))&&Be(e,n.slice(0,-1)),e}var nw=e=>{for(const t in e)if(an(e[t]))return!0;return!1};function Vl(e,t={}){const n=Array.isArray(e);if(Ve(e)||n)for(const r in e)Array.isArray(e[r])||Ve(e[r])&&!nw(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Vl(e[r],t[r])):ft(e[r])||(t[r]=!0);return t}function rw(e,t,n){const r=Array.isArray(e);if(Ve(e)||r)for(const s in e)Array.isArray(e[s])||Ve(e[s])&&!nw(e[s])?We(t)||Vd(n[s])?n[s]=Array.isArray(e[s])?Vl(e[s],[]):{...Vl(e[s])}:rw(e[s],ft(t)?{}:t[s],n[s]):n[s]=!yr(e[s],t[s]);return n}var ei=(e,t)=>rw(e,t,Vl(t));const Mm={value:!1,isValid:!1},Lm={value:!0,isValid:!0};var sw=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!We(e[0].attributes.value)?We(e[0].value)||e[0].value===""?Lm:{value:e[0].value,isValid:!0}:Lm:Mm}return Mm},ow=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>We(e)?e:t?e===""?NaN:e&&+e:n&&Nn(e)?new Date(e):r?r(e):e;const Dm={isValid:!1,value:null};var iw=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Dm):Dm;function Fm(e){const t=e.ref;return vh(t)?t.files:yh(t)?iw(e.refs).value:tw(t)?[...t.selectedOptions].map(({value:n})=>n):da(t)?sw(e.refs).value:ow(We(t.value)?e.ref.value:t.value,e)}var ER=(e,t,n,r)=>{const s={};for(const o of e){const i=K(t,o);i&&Ce(s,o,i._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},Ul=e=>e instanceof RegExp,ti=e=>We(e)?e:Ul(e)?e.source:Ve(e)?Ul(e.value)?e.value.source:e.value:e,zm=e=>({isOnSubmit:!e||e===on.onSubmit,isOnBlur:e===on.onBlur,isOnChange:e===on.onChange,isOnAll:e===on.all,isOnTouch:e===on.onTouched});const $m="AsyncFunction";var _R=e=>!!e&&!!e.validate&&!!(an(e.validate)&&e.validate.constructor.name===$m||Ve(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===$m)),NR=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Vm=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const wi=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const o=K(e,s);if(o){const{_f:i,...a}=o;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],s)&&!r)return!0;if(i.ref&&t(i.ref,i.name)&&!r)return!0;if(wi(a,t))break}else if(Ve(a)&&wi(a,t))break}}};function Um(e,t,n){const r=K(e,n);if(r||Cu(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const o=s.join("."),i=K(t,o),a=K(e,o);if(i&&!Array.isArray(i)&&n!==o)return{name:n};if(a&&a.type)return{name:o,error:a};if(a&&a.root&&a.root.type)return{name:`${o}.root`,error:a.root};s.pop()}return{name:n}}var TR=(e,t,n,r)=>{n(e);const{name:s,...o}=e;return wt(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!r||on.all))},RR=(e,t,n)=>!e||!t||e===t||xi(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),PR=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,jR=(e,t)=>!mh(K(e,t)).length&&Be(e,t),OR=(e,t,n)=>{const r=xi(K(e,n));return Ce(r,"root",t[n]),Ce(e,n,r),e},ol=e=>Nn(e);function Bm(e,t,n="validate"){if(ol(e)||Array.isArray(e)&&e.every(ol)||wn(e)&&!e)return{type:n,message:ol(e)?e:"",ref:t}}var Fs=e=>Ve(e)&&!Ul(e)?e:{value:e,message:""},Wm=async(e,t,n,r,s,o)=>{const{ref:i,refs:a,required:l,maxLength:u,minLength:c,min:f,max:h,pattern:p,validate:b,name:g,valueAsNumber:w,mount:v}=e._f,m=K(n,g);if(!v||t.has(g))return{};const x=a?a[0]:i,S=A=>{s&&x.reportValidity&&(x.setCustomValidity(wn(A)?"":A||""),x.reportValidity())},k={},N=yh(i),T=da(i),j=N||T,F=(w||vh(i))&&We(i.value)&&We(m)||$l(i)&&i.value===""||m===""||Array.isArray(m)&&!m.length,M=ew.bind(null,g,r,k),q=(A,W,L,ne=Vn.maxLength,X=Vn.minLength)=>{const te=A?W:L;k[g]={type:A?ne:X,message:te,ref:i,...M(A?ne:X,te)}};if(o?!Array.isArray(m)||!m.length:l&&(!j&&(F||ft(m))||wn(m)&&!m||T&&!sw(a).isValid||N&&!iw(a).isValid)){const{value:A,message:W}=ol(l)?{value:!!l,message:l}:Fs(l);if(A&&(k[g]={type:Vn.required,message:W,ref:x,...M(Vn.required,W)},!r))return S(W),k}if(!F&&(!ft(f)||!ft(h))){let A,W;const L=Fs(h),ne=Fs(f);if(!ft(m)&&!isNaN(m)){const X=i.valueAsNumber||m&&+m;ft(L.value)||(A=X>L.value),ft(ne.value)||(W=X<ne.value)}else{const X=i.valueAsDate||new Date(m),te=B=>new Date(new Date().toDateString()+" "+B),P=i.type=="time",O=i.type=="week";Nn(L.value)&&m&&(A=P?te(m)>te(L.value):O?m>L.value:X>new Date(L.value)),Nn(ne.value)&&m&&(W=P?te(m)<te(ne.value):O?m<ne.value:X<new Date(ne.value))}if((A||W)&&(q(!!A,L.message,ne.message,Vn.max,Vn.min),!r))return S(k[g].message),k}if((u||c)&&!F&&(Nn(m)||o&&Array.isArray(m))){const A=Fs(u),W=Fs(c),L=!ft(A.value)&&m.length>+A.value,ne=!ft(W.value)&&m.length<+W.value;if((L||ne)&&(q(L,A.message,W.message),!r))return S(k[g].message),k}if(p&&!F&&Nn(m)){const{value:A,message:W}=Fs(p);if(Ul(A)&&!m.match(A)&&(k[g]={type:Vn.pattern,message:W,ref:i,...M(Vn.pattern,W)},!r))return S(W),k}if(b){if(an(b)){const A=await b(m,n),W=Bm(A,x);if(W&&(k[g]={...W,...M(Vn.validate,W.message)},!r))return S(W.message),k}else if(Ve(b)){let A={};for(const W in b){if(!wt(A)&&!r)break;const L=Bm(await b[W](m,n),x,W);L&&(A={...L,...M(W,L.message)},S(L.message),r&&(k[g]=A))}if(!wt(A)&&(k[g]={ref:x,...A},!r))return k}}return S(!0),k};const AR={mode:on.onSubmit,reValidateMode:on.onChange,shouldFocusError:!0};function IR(e={}){let t={...AR,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:an(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},s=Ve(t.defaultValues)||Ve(t.values)?qe(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:qe(s),i={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let f={...c};const h={array:Im(),state:Im()},p=t.criteriaMode===on.all,b=C=>_=>{clearTimeout(u),u=setTimeout(C,_)},g=async C=>{if(!t.disabled&&(c.isValid||f.isValid||C)){const _=t.resolver?wt((await T()).errors):await F(r,!0);_!==n.isValid&&h.state.next({isValid:_})}},w=(C,_)=>{!t.disabled&&(c.isValidating||c.validatingFields||f.isValidating||f.validatingFields)&&((C||Array.from(a.mount)).forEach(R=>{R&&(_?Ce(n.validatingFields,R,_):Be(n.validatingFields,R))}),h.state.next({validatingFields:n.validatingFields,isValidating:!wt(n.validatingFields)}))},v=(C,_=[],R,U,V=!0,$=!0)=>{if(U&&R&&!t.disabled){if(i.action=!0,$&&Array.isArray(K(r,C))){const Q=R(K(r,C),U.argA,U.argB);V&&Ce(r,C,Q)}if($&&Array.isArray(K(n.errors,C))){const Q=R(K(n.errors,C),U.argA,U.argB);V&&Ce(n.errors,C,Q),jR(n.errors,C)}if((c.touchedFields||f.touchedFields)&&$&&Array.isArray(K(n.touchedFields,C))){const Q=R(K(n.touchedFields,C),U.argA,U.argB);V&&Ce(n.touchedFields,C,Q)}(c.dirtyFields||f.dirtyFields)&&(n.dirtyFields=ei(s,o)),h.state.next({name:C,isDirty:q(C,_),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Ce(o,C,_)},m=(C,_)=>{Ce(n.errors,C,_),h.state.next({errors:n.errors})},x=C=>{n.errors=C,h.state.next({errors:n.errors,isValid:!1})},S=(C,_,R,U)=>{const V=K(r,C);if(V){const $=K(o,C,We(R)?K(s,C):R);We($)||U&&U.defaultChecked||_?Ce(o,C,_?$:Fm(V._f)):L(C,$),i.mount&&g()}},k=(C,_,R,U,V)=>{let $=!1,Q=!1;const he={name:C};if(!t.disabled){if(!R||U){(c.isDirty||f.isDirty)&&(Q=n.isDirty,n.isDirty=he.isDirty=q(),$=Q!==he.isDirty);const Se=yr(K(s,C),_);Q=!!K(n.dirtyFields,C),Se?Be(n.dirtyFields,C):Ce(n.dirtyFields,C,!0),he.dirtyFields=n.dirtyFields,$=$||(c.dirtyFields||f.dirtyFields)&&Q!==!Se}if(R){const Se=K(n.touchedFields,C);Se||(Ce(n.touchedFields,C,R),he.touchedFields=n.touchedFields,$=$||(c.touchedFields||f.touchedFields)&&Se!==R)}$&&V&&h.state.next(he)}return $?he:{}},N=(C,_,R,U)=>{const V=K(n.errors,C),$=(c.isValid||f.isValid)&&wn(_)&&n.isValid!==_;if(t.delayError&&R?(l=b(()=>m(C,R)),l(t.delayError)):(clearTimeout(u),l=null,R?Ce(n.errors,C,R):Be(n.errors,C)),(R?!yr(V,R):V)||!wt(U)||$){const Q={...U,...$&&wn(_)?{isValid:_}:{},errors:n.errors,name:C};n={...n,...Q},h.state.next(Q)}},T=async C=>{w(C,!0);const _=await t.resolver(o,t.context,ER(C||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return w(C),_},j=async C=>{const{errors:_}=await T(C);if(C)for(const R of C){const U=K(_,R);U?Ce(n.errors,R,U):Be(n.errors,R)}else n.errors=_;return _},F=async(C,_,R={valid:!0})=>{for(const U in C){const V=C[U];if(V){const{_f:$,...Q}=V;if($){const he=a.array.has($.name),Se=V._f&&_R(V._f);Se&&c.validatingFields&&w([U],!0);const yt=await Wm(V,a.disabled,o,p,t.shouldUseNativeValidation&&!_,he);if(Se&&c.validatingFields&&w([U]),yt[$.name]&&(R.valid=!1,_))break;!_&&(K(yt,$.name)?he?OR(n.errors,yt,$.name):Ce(n.errors,$.name,yt[$.name]):Be(n.errors,$.name))}!wt(Q)&&await F(Q,_,R)}}return R.valid},M=()=>{for(const C of a.unMount){const _=K(r,C);_&&(_._f.refs?_._f.refs.every(R=>!gc(R)):!gc(_._f.ref))&&ge(C)}a.unMount=new Set},q=(C,_)=>!t.disabled&&(C&&_&&Ce(o,C,_),!yr(B(),s)),A=(C,_,R)=>bR(C,a,{...i.mount?o:We(_)?s:Nn(C)?{[C]:_}:_},R,_),W=C=>mh(K(i.mount?o:s,C,t.shouldUnregister?K(s,C,[]):[])),L=(C,_,R={})=>{const U=K(r,C);let V=_;if(U){const $=U._f;$&&(!$.disabled&&Ce(o,C,ow(_,$)),V=$l($.ref)&&ft(_)?"":_,tw($.ref)?[...$.ref.options].forEach(Q=>Q.selected=V.includes(Q.value)):$.refs?da($.ref)?$.refs.forEach(Q=>{(!Q.defaultChecked||!Q.disabled)&&(Array.isArray(V)?Q.checked=!!V.find(he=>he===Q.value):Q.checked=V===Q.value||!!V)}):$.refs.forEach(Q=>Q.checked=Q.value===V):vh($.ref)?$.ref.value="":($.ref.value=V,$.ref.type||h.state.next({name:C,values:qe(o)})))}(R.shouldDirty||R.shouldTouch)&&k(C,V,R.shouldTouch,R.shouldDirty,!0),R.shouldValidate&&O(C)},ne=(C,_,R)=>{for(const U in _){if(!_.hasOwnProperty(U))return;const V=_[U],$=C+"."+U,Q=K(r,$);(a.array.has(C)||Ve(V)||Q&&!Q._f)&&!as(V)?ne($,V,R):L($,V,R)}},X=(C,_,R={})=>{const U=K(r,C),V=a.array.has(C),$=qe(_);Ce(o,C,$),V?(h.array.next({name:C,values:qe(o)}),(c.isDirty||c.dirtyFields||f.isDirty||f.dirtyFields)&&R.shouldDirty&&h.state.next({name:C,dirtyFields:ei(s,o),isDirty:q(C,$)})):U&&!U._f&&!ft($)?ne(C,$,R):L(C,$,R),Vm(C,a)&&h.state.next({...n,name:C}),h.state.next({name:i.mount?C:void 0,values:qe(o)})},te=async C=>{i.mount=!0;const _=C.target;let R=_.name,U=!0;const V=K(r,R),$=Se=>{U=Number.isNaN(Se)||as(Se)&&isNaN(Se.getTime())||yr(Se,K(o,R,Se))},Q=zm(t.mode),he=zm(t.reValidateMode);if(V){let Se,yt;const Fn=_.type?Fm(V._f):pR(C),gn=C.type===Am.BLUR||C.type===Am.FOCUS_OUT,fa=!NR(V._f)&&!t.resolver&&!K(n.errors,R)&&!V._f.deps||PR(gn,K(n.touchedFields,R),n.isSubmitted,he,Q),Jr=Vm(R,a,gn);Ce(o,R,Fn),gn?(V._f.onBlur&&V._f.onBlur(C),l&&l(0)):V._f.onChange&&V._f.onChange(C);const vn=k(R,Fn,gn),ha=!wt(vn)||Jr;if(!gn&&h.state.next({name:R,type:C.type,values:qe(o)}),fa)return(c.isValid||f.isValid)&&(t.mode==="onBlur"?gn&&g():gn||g()),ha&&h.state.next({name:R,...Jr?{}:vn});if(!gn&&Jr&&h.state.next({...n}),t.resolver){const{errors:zn}=await T([R]);if($(Fn),U){const Eu=Um(n.errors,r,R),pa=Um(zn,r,Eu.name||R);Se=pa.error,R=pa.name,yt=wt(zn)}}else w([R],!0),Se=(await Wm(V,a.disabled,o,p,t.shouldUseNativeValidation))[R],w([R]),$(Fn),U&&(Se?yt=!1:(c.isValid||f.isValid)&&(yt=await F(r,!0)));U&&(V._f.deps&&O(V._f.deps),N(R,yt,Se,vn))}},P=(C,_)=>{if(K(n.errors,_)&&C.focus)return C.focus(),1},O=async(C,_={})=>{let R,U;const V=xi(C);if(t.resolver){const $=await j(We(C)?C:V);R=wt($),U=C?!V.some(Q=>K($,Q)):R}else C?(U=(await Promise.all(V.map(async $=>{const Q=K(r,$);return await F(Q&&Q._f?{[$]:Q}:Q)}))).every(Boolean),!(!U&&!n.isValid)&&g()):U=R=await F(r);return h.state.next({...!Nn(C)||(c.isValid||f.isValid)&&R!==n.isValid?{}:{name:C},...t.resolver||!C?{isValid:R}:{},errors:n.errors}),_.shouldFocus&&!U&&wi(r,P,C?V:a.mount),U},B=C=>{const _={...i.mount?o:s};return We(C)?_:Nn(C)?K(_,C):C.map(R=>K(_,R))},se=(C,_)=>({invalid:!!K((_||n).errors,C),isDirty:!!K((_||n).dirtyFields,C),error:K((_||n).errors,C),isValidating:!!K(n.validatingFields,C),isTouched:!!K((_||n).touchedFields,C)}),ee=C=>{C&&xi(C).forEach(_=>Be(n.errors,_)),h.state.next({errors:C?n.errors:{}})},ue=(C,_,R)=>{const U=(K(r,C,{_f:{}})._f||{}).ref,V=K(n.errors,C)||{},{ref:$,message:Q,type:he,...Se}=V;Ce(n.errors,C,{...Se,..._,ref:U}),h.state.next({name:C,errors:n.errors,isValid:!1}),R&&R.shouldFocus&&U&&U.focus&&U.focus()},ce=(C,_)=>an(C)?h.state.subscribe({next:R=>"values"in R&&C(A(void 0,_),R)}):A(C,_,!0),Oe=C=>h.state.subscribe({next:_=>{RR(C.name,_.name,C.exact)&&TR(_,C.formState||c,Bo,C.reRenderRoot)&&C.callback({values:{...o},...n,..._,defaultValues:s})}}).unsubscribe,Ke=C=>(i.mount=!0,f={...f,...C.formState},Oe({...C,formState:f})),ge=(C,_={})=>{for(const R of C?xi(C):a.mount)a.mount.delete(R),a.array.delete(R),_.keepValue||(Be(r,R),Be(o,R)),!_.keepError&&Be(n.errors,R),!_.keepDirty&&Be(n.dirtyFields,R),!_.keepTouched&&Be(n.touchedFields,R),!_.keepIsValidating&&Be(n.validatingFields,R),!t.shouldUnregister&&!_.keepDefaultValue&&Be(s,R);h.state.next({values:qe(o)}),h.state.next({...n,..._.keepDirty?{isDirty:q()}:{}}),!_.keepIsValid&&g()},Mn=({disabled:C,name:_})=>{(wn(C)&&i.mount||C||a.disabled.has(_))&&(C?a.disabled.add(_):a.disabled.delete(_))},Ft=(C,_={})=>{let R=K(r,C);const U=wn(_.disabled)||wn(t.disabled);return Ce(r,C,{...R||{},_f:{...R&&R._f?R._f:{ref:{name:C}},name:C,mount:!0,..._}}),a.mount.add(C),R?Mn({disabled:wn(_.disabled)?_.disabled:t.disabled,name:C}):S(C,!0,_.value),{...U?{disabled:_.disabled||t.disabled}:{},...t.progressive?{required:!!_.required,min:ti(_.min),max:ti(_.max),minLength:ti(_.minLength),maxLength:ti(_.maxLength),pattern:ti(_.pattern)}:{},name:C,onChange:te,onBlur:te,ref:V=>{if(V){Ft(C,_),R=K(r,C);const $=We(V.value)&&V.querySelectorAll&&V.querySelectorAll("input,select,textarea")[0]||V,Q=SR($),he=R._f.refs||[];if(Q?he.find(Se=>Se===$):$===R._f.ref)return;Ce(r,C,{_f:{...R._f,...Q?{refs:[...he.filter(gc),$,...Array.isArray(K(s,C))?[{}]:[]],ref:{type:$.type,name:C}}:{ref:$}}}),S(C,!1,void 0,$)}else R=K(r,C,{}),R._f&&(R._f.mount=!1),(t.shouldUnregister||_.shouldUnregister)&&!(gR(a.array,C)&&i.action)&&a.unMount.add(C)}}},Gt=()=>t.shouldFocusError&&wi(r,P,a.mount),pn=C=>{wn(C)&&(h.state.next({disabled:C}),wi(r,(_,R)=>{const U=K(r,R);U&&(_.disabled=U._f.disabled||C,Array.isArray(U._f.refs)&&U._f.refs.forEach(V=>{V.disabled=U._f.disabled||C}))},0,!1))},Ln=(C,_)=>async R=>{let U;R&&(R.preventDefault&&R.preventDefault(),R.persist&&R.persist());let V=qe(o);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:$,values:Q}=await T();n.errors=$,V=qe(Q)}else await F(r);if(a.disabled.size)for(const $ of a.disabled)Be(V,$);if(Be(n.errors,"root"),wt(n.errors)){h.state.next({errors:{}});try{await C(V,R)}catch($){U=$}}else _&&await _({...n.errors},R),Gt(),setTimeout(Gt);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:wt(n.errors)&&!U,submitCount:n.submitCount+1,errors:n.errors}),U)throw U},mn=(C,_={})=>{K(r,C)&&(We(_.defaultValue)?X(C,qe(K(s,C))):(X(C,_.defaultValue),Ce(s,C,qe(_.defaultValue))),_.keepTouched||Be(n.touchedFields,C),_.keepDirty||(Be(n.dirtyFields,C),n.isDirty=_.defaultValue?q(C,qe(K(s,C))):q()),_.keepError||(Be(n.errors,C),c.isValid&&g()),h.state.next({...n}))},Xr=(C,_={})=>{const R=C?qe(C):s,U=qe(R),V=wt(C),$=V?s:U;if(_.keepDefaultValues||(s=R),!_.keepValues){if(_.keepDirtyValues){const Q=new Set([...a.mount,...Object.keys(ei(s,o))]);for(const he of Array.from(Q))K(n.dirtyFields,he)?Ce($,he,K(o,he)):X(he,K($,he))}else{if(ph&&We(C))for(const Q of a.mount){const he=K(r,Q);if(he&&he._f){const Se=Array.isArray(he._f.refs)?he._f.refs[0]:he._f.ref;if($l(Se)){const yt=Se.closest("form");if(yt){yt.reset();break}}}}if(_.keepFieldsRef)for(const Q of a.mount)X(Q,K($,Q));else r={}}o=t.shouldUnregister?_.keepDefaultValues?qe(s):{}:qe($),h.array.next({values:{...$}}),h.state.next({values:{...$}})}a={mount:_.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!c.isValid||!!_.keepIsValid||!!_.keepDirtyValues,i.watch=!!t.shouldUnregister,h.state.next({submitCount:_.keepSubmitCount?n.submitCount:0,isDirty:V?!1:_.keepDirty?n.isDirty:!!(_.keepDefaultValues&&!yr(C,s)),isSubmitted:_.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:V?{}:_.keepDirtyValues?_.keepDefaultValues&&o?ei(s,o):n.dirtyFields:_.keepDefaultValues&&C?ei(s,C):_.keepDirty?n.dirtyFields:{},touchedFields:_.keepTouched?n.touchedFields:{},errors:_.keepErrors?n.errors:{},isSubmitSuccessful:_.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},js=(C,_)=>Xr(an(C)?C(o):C,_),Os=(C,_={})=>{const R=K(r,C),U=R&&R._f;if(U){const V=U.refs?U.refs[0]:U.ref;V.focus&&(V.focus(),_.shouldSelect&&an(V.select)&&V.select())}},Bo=C=>{n={...n,...C}},Dn={control:{register:Ft,unregister:ge,getFieldState:se,handleSubmit:Ln,setError:ue,_subscribe:Oe,_runSchema:T,_focusError:Gt,_getWatch:A,_getDirty:q,_setValid:g,_setFieldArray:v,_setDisabledField:Mn,_setErrors:x,_getFieldArray:W,_reset:Xr,_resetDefaultValues:()=>an(t.defaultValues)&&t.defaultValues().then(C=>{js(C,t.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:M,_disableForm:pn,_subjects:h,_proxyFormState:c,get _fields(){return r},get _formValues(){return o},get _state(){return i},set _state(C){i=C},get _defaultValues(){return s},get _names(){return a},set _names(C){a=C},get _formState(){return n},get _options(){return t},set _options(C){t={...t,...C}}},subscribe:Ke,trigger:O,register:Ft,handleSubmit:Ln,watch:ce,setValue:X,getValues:B,reset:js,resetField:mn,clearErrors:ee,unregister:ge,setError:ue,setFocus:Os,getFieldState:se};return{...Dn,formControl:Dn}}function xh(e={}){const t=I.useRef(void 0),n=I.useRef(void 0),[r,s]=I.useState({isDirty:!1,isValidating:!1,isLoading:an(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:an(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!an(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:i,...a}=IR(e);t.current={...a,formState:r}}const o=t.current.control;return o._options=e,wR(()=>{const i=o._subscribe({formState:o._proxyFormState,callback:()=>s({...o._formState}),reRenderRoot:!0});return s(a=>({...a,isReady:!0})),o._formState.isReady=!0,i},[o]),I.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),I.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),I.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),I.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),I.useEffect(()=>{if(o._proxyFormState.isDirty){const i=o._getDirty();i!==r.isDirty&&o._subjects.state.next({isDirty:i})}},[o,r.isDirty]),I.useEffect(()=>{e.values&&!yr(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),n.current=e.values,s(i=>({...i}))):o._resetDefaultValues()},[o,e.values]),I.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=xR(r,o),t.current}const Hm=(e,t,n)=>{if(e&&"reportValidity"in e){const r=K(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},aw=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Hm(r.ref,n,e):r.refs&&r.refs.forEach(s=>Hm(s,n,e))}},MR=(e,t)=>{t.shouldUseNativeValidation&&aw(e,t);const n={};for(const r in e){const s=K(t.fields,r),o=Object.assign(e[r]||{},{ref:s&&s.ref});if(LR(t.names||Object.keys(e),r)){const i=Object.assign({},K(n,r));Ce(i,"root",o),Ce(n,r,i)}else Ce(n,r,o)}return n},LR=(e,t)=>e.some(n=>n.startsWith(t+"."));var DR=function(e,t){for(var n={};e.length;){var r=e[0],s=r.code,o=r.message,i=r.path.join(".");if(!n[i])if("unionErrors"in r){var a=r.unionErrors[0].errors[0];n[i]={message:a.message,type:a.code}}else n[i]={message:o,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(c){return c.errors.forEach(function(f){return e.push(f)})}),t){var l=n[i].types,u=l&&l[r.code];n[i]=ew(i,t,n,s,u?[].concat(u,r.message):r.message)}e.shift()}return n},wh=function(e,t,n){return n===void 0&&(n={}),function(r,s,o){try{return Promise.resolve(function(i,a){try{var l=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(u){return o.shouldUseNativeValidation&&aw({},o),{errors:{},values:n.raw?r:u}})}catch(u){return a(u)}return l&&l.then?l.then(void 0,a):l}(0,function(i){if(function(a){return Array.isArray(a==null?void 0:a.errors)}(i))return{values:{},errors:MR(DR(i.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw i}))}catch(i){return Promise.reject(i)}}},xe;(function(e){e.assertEqual=s=>{};function t(s){}e.assertIs=t;function n(s){throw new Error}e.assertNever=n,e.arrayToEnum=s=>{const o={};for(const i of s)o[i]=i;return o},e.getValidEnumValues=s=>{const o=e.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),i={};for(const a of o)i[a]=s[a];return e.objectValues(i)},e.objectValues=s=>e.objectKeys(s).map(function(o){return s[o]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const o=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&o.push(i);return o},e.find=(s,o)=>{for(const i of s)if(o(i))return i},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,o=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(s,o)=>typeof o=="bigint"?o.toString():o})(xe||(xe={}));var Qm;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Qm||(Qm={}));const Y=xe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),mr=e=>{switch(typeof e){case"undefined":return Y.undefined;case"string":return Y.string;case"number":return Number.isNaN(e)?Y.nan:Y.number;case"boolean":return Y.boolean;case"function":return Y.function;case"bigint":return Y.bigint;case"symbol":return Y.symbol;case"object":return Array.isArray(e)?Y.array:e===null?Y.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Y.promise:typeof Map<"u"&&e instanceof Map?Y.map:typeof Set<"u"&&e instanceof Set?Y.set:typeof Date<"u"&&e instanceof Date?Y.date:Y.object;default:return Y.unknown}},z=xe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class rr extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(o){return o.message},r={_errors:[]},s=o=>{for(const i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let a=r,l=0;for(;l<i.path.length;){const u=i.path[l];l===i.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(i))):a[u]=a[u]||{_errors:[]},a=a[u],l++}}};return s(this),r}static assert(t){if(!(t instanceof rr))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,xe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const s of this.issues)if(s.path.length>0){const o=s.path[0];n[o]=n[o]||[],n[o].push(t(s))}else r.push(t(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}rr.create=e=>new rr(e);const Ud=(e,t)=>{let n;switch(e.code){case z.invalid_type:e.received===Y.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case z.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,xe.jsonStringifyReplacer)}`;break;case z.unrecognized_keys:n=`Unrecognized key(s) in object: ${xe.joinValues(e.keys,", ")}`;break;case z.invalid_union:n="Invalid input";break;case z.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${xe.joinValues(e.options)}`;break;case z.invalid_enum_value:n=`Invalid enum value. Expected ${xe.joinValues(e.options)}, received '${e.received}'`;break;case z.invalid_arguments:n="Invalid function arguments";break;case z.invalid_return_type:n="Invalid function return type";break;case z.invalid_date:n="Invalid date";break;case z.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:xe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case z.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case z.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case z.custom:n="Invalid input";break;case z.invalid_intersection_types:n="Intersection results could not be merged";break;case z.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case z.not_finite:n="Number must be finite";break;default:n=t.defaultError,xe.assertNever(e)}return{message:n}};let FR=Ud;function zR(){return FR}const $R=e=>{const{data:t,path:n,errorMaps:r,issueData:s}=e,o=[...n,...s.path||[]],i={...s,path:o};if(s.message!==void 0)return{...s,path:o,message:s.message};let a="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)a=u(i,{data:t,defaultError:a}).message;return{...s,path:o,message:a}};function H(e,t){const n=zR(),r=$R({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ud?void 0:Ud].filter(s=>!!s)});e.common.issues.push(r)}class Mt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const s of n){if(s.status==="aborted")return oe;s.status==="dirty"&&t.dirty(),r.push(s.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const s of n){const o=await s.key,i=await s.value;r.push({key:o,value:i})}return Mt.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const s of n){const{key:o,value:i}=s;if(o.status==="aborted"||i.status==="aborted")return oe;o.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(r[o.value]=i.value)}return{status:t.value,value:r}}}const oe=Object.freeze({status:"aborted"}),ai=e=>({status:"dirty",value:e}),Zt=e=>({status:"valid",value:e}),Zm=e=>e.status==="aborted",Gm=e=>e.status==="dirty",jo=e=>e.status==="valid",Bl=e=>typeof Promise<"u"&&e instanceof Promise;var J;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(J||(J={}));class Qr{constructor(t,n,r,s){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Km=(e,t)=>{if(jo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new rr(e.common.issues);return this._error=n,this._error}}};function de(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:s}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(i,a)=>{const{message:l}=e;return i.code==="invalid_enum_value"?{message:l??a.defaultError}:typeof a.data>"u"?{message:l??r??a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:l??n??a.defaultError}},description:s}}class ye{get description(){return this._def.description}_getType(t){return mr(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:mr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Mt,ctx:{common:t.parent.common,data:t.data,parsedType:mr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Bl(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:mr(t)},s=this._parseSync({data:t,path:r.path,parent:r});return Km(r,s)}"~validate"(t){var r,s;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:mr(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:n});return jo(o)?{value:o.value}:{issues:n.common.issues}}catch(o){(s=(r=o==null?void 0:o.message)==null?void 0:r.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(o=>jo(o)?{value:o.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:mr(t)},s=this._parse({data:t,path:r.path,parent:r}),o=await(Bl(s)?s:Promise.resolve(s));return Km(r,o)}refine(t,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,o)=>{const i=t(s),a=()=>o.addIssue({code:z.custom,...r(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,s)=>t(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(t){return new Ao({schema:this,typeName:ie.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Vr.create(this,this._def)}nullable(){return Io.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return jn.create(this)}promise(){return Zl.create(this,this._def)}or(t){return Hl.create([this,t],this._def)}and(t){return Ql.create(this,t,this._def)}transform(t){return new Ao({...de(this._def),schema:this,typeName:ie.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Wd({...de(this._def),innerType:this,defaultValue:n,typeName:ie.ZodDefault})}brand(){return new u2({typeName:ie.ZodBranded,type:this,...de(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Hd({...de(this._def),innerType:this,catchValue:n,typeName:ie.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return bh.create(this,t)}readonly(){return Qd.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const VR=/^c[^\s-]{8,}$/i,UR=/^[0-9a-z]+$/,BR=/^[0-9A-HJKMNP-TV-Z]{26}$/i,WR=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,HR=/^[a-z0-9_-]{21}$/i,QR=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ZR=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,GR=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,KR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let vc;const qR=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,YR=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,XR=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,JR=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,e2=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,t2=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,lw="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",n2=new RegExp(`^${lw}$`);function uw(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function r2(e){return new RegExp(`^${uw(e)}$`)}function s2(e){let t=`${lw}T${uw(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function o2(e,t){return!!((t==="v4"||!t)&&qR.test(e)||(t==="v6"||!t)&&XR.test(e))}function i2(e,t){if(!QR.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&s.alg!==t)}catch{return!1}}function a2(e,t){return!!((t==="v4"||!t)&&YR.test(e)||(t==="v6"||!t)&&JR.test(e))}class Pr extends ye{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Y.string){const o=this._getOrReturnCtx(t);return H(o,{code:z.invalid_type,expected:Y.string,received:o.parsedType}),oe}const r=new Mt;let s;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(s=this._getOrReturnCtx(t,s),H(s,{code:z.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(s=this._getOrReturnCtx(t,s),H(s,{code:z.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const i=t.data.length>o.value,a=t.data.length<o.value;(i||a)&&(s=this._getOrReturnCtx(t,s),i?H(s,{code:z.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&H(s,{code:z.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")GR.test(t.data)||(s=this._getOrReturnCtx(t,s),H(s,{validation:"email",code:z.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")vc||(vc=new RegExp(KR,"u")),vc.test(t.data)||(s=this._getOrReturnCtx(t,s),H(s,{validation:"emoji",code:z.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")WR.test(t.data)||(s=this._getOrReturnCtx(t,s),H(s,{validation:"uuid",code:z.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")HR.test(t.data)||(s=this._getOrReturnCtx(t,s),H(s,{validation:"nanoid",code:z.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")VR.test(t.data)||(s=this._getOrReturnCtx(t,s),H(s,{validation:"cuid",code:z.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")UR.test(t.data)||(s=this._getOrReturnCtx(t,s),H(s,{validation:"cuid2",code:z.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")BR.test(t.data)||(s=this._getOrReturnCtx(t,s),H(s,{validation:"ulid",code:z.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),H(s,{validation:"url",code:z.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),H(s,{validation:"regex",code:z.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(s=this._getOrReturnCtx(t,s),H(s,{code:z.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(s=this._getOrReturnCtx(t,s),H(s,{code:z.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(s=this._getOrReturnCtx(t,s),H(s,{code:z.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?s2(o).test(t.data)||(s=this._getOrReturnCtx(t,s),H(s,{code:z.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?n2.test(t.data)||(s=this._getOrReturnCtx(t,s),H(s,{code:z.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?r2(o).test(t.data)||(s=this._getOrReturnCtx(t,s),H(s,{code:z.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?ZR.test(t.data)||(s=this._getOrReturnCtx(t,s),H(s,{validation:"duration",code:z.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?o2(t.data,o.version)||(s=this._getOrReturnCtx(t,s),H(s,{validation:"ip",code:z.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?i2(t.data,o.alg)||(s=this._getOrReturnCtx(t,s),H(s,{validation:"jwt",code:z.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?a2(t.data,o.version)||(s=this._getOrReturnCtx(t,s),H(s,{validation:"cidr",code:z.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?e2.test(t.data)||(s=this._getOrReturnCtx(t,s),H(s,{validation:"base64",code:z.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?t2.test(t.data)||(s=this._getOrReturnCtx(t,s),H(s,{validation:"base64url",code:z.invalid_string,message:o.message}),r.dirty()):xe.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(s=>t.test(s),{validation:n,code:z.invalid_string,...J.errToObj(r)})}_addCheck(t){return new Pr({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...J.errToObj(t)})}url(t){return this._addCheck({kind:"url",...J.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...J.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...J.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...J.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...J.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...J.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...J.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...J.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...J.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...J.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...J.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...J.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...J.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...J.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...J.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...J.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...J.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...J.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...J.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...J.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...J.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...J.errToObj(n)})}nonempty(t){return this.min(1,J.errToObj(t))}trim(){return new Pr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Pr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Pr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Pr.create=e=>new Pr({checks:[],typeName:ie.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...de(e)});function l2(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=n>r?n:r,o=Number.parseInt(e.toFixed(s).replace(".","")),i=Number.parseInt(t.toFixed(s).replace(".",""));return o%i/10**s}class Hi extends ye{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Y.number){const o=this._getOrReturnCtx(t);return H(o,{code:z.invalid_type,expected:Y.number,received:o.parsedType}),oe}let r;const s=new Mt;for(const o of this._def.checks)o.kind==="int"?xe.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),H(r,{code:z.invalid_type,expected:"integer",received:"float",message:o.message}),s.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:z.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:z.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="multipleOf"?l2(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),H(r,{code:z.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),H(r,{code:z.not_finite,message:o.message}),s.dirty()):xe.assertNever(o);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,J.toString(n))}gt(t,n){return this.setLimit("min",t,!1,J.toString(n))}lte(t,n){return this.setLimit("max",t,!0,J.toString(n))}lt(t,n){return this.setLimit("max",t,!1,J.toString(n))}setLimit(t,n,r,s){return new Hi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:J.toString(s)}]})}_addCheck(t){return new Hi({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:J.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:J.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:J.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:J.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:J.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:J.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:J.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:J.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:J.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&xe.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Hi.create=e=>new Hi({checks:[],typeName:ie.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...de(e)});class Qi extends ye{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Y.bigint)return this._getInvalidInput(t);let r;const s=new Mt;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:z.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),H(r,{code:z.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),H(r,{code:z.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):xe.assertNever(o);return{status:s.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return H(n,{code:z.invalid_type,expected:Y.bigint,received:n.parsedType}),oe}gte(t,n){return this.setLimit("min",t,!0,J.toString(n))}gt(t,n){return this.setLimit("min",t,!1,J.toString(n))}lte(t,n){return this.setLimit("max",t,!0,J.toString(n))}lt(t,n){return this.setLimit("max",t,!1,J.toString(n))}setLimit(t,n,r,s){return new Qi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:J.toString(s)}]})}_addCheck(t){return new Qi({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:J.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:J.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:J.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:J.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:J.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Qi.create=e=>new Qi({checks:[],typeName:ie.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...de(e)});class qm extends ye{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Y.boolean){const r=this._getOrReturnCtx(t);return H(r,{code:z.invalid_type,expected:Y.boolean,received:r.parsedType}),oe}return Zt(t.data)}}qm.create=e=>new qm({typeName:ie.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...de(e)});class Wl extends ye{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Y.date){const o=this._getOrReturnCtx(t);return H(o,{code:z.invalid_type,expected:Y.date,received:o.parsedType}),oe}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return H(o,{code:z.invalid_date}),oe}const r=new Mt;let s;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(s=this._getOrReturnCtx(t,s),H(s,{code:z.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(s=this._getOrReturnCtx(t,s),H(s,{code:z.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):xe.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Wl({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:J.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:J.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Wl.create=e=>new Wl({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ie.ZodDate,...de(e)});class Ym extends ye{_parse(t){if(this._getType(t)!==Y.symbol){const r=this._getOrReturnCtx(t);return H(r,{code:z.invalid_type,expected:Y.symbol,received:r.parsedType}),oe}return Zt(t.data)}}Ym.create=e=>new Ym({typeName:ie.ZodSymbol,...de(e)});class Xm extends ye{_parse(t){if(this._getType(t)!==Y.undefined){const r=this._getOrReturnCtx(t);return H(r,{code:z.invalid_type,expected:Y.undefined,received:r.parsedType}),oe}return Zt(t.data)}}Xm.create=e=>new Xm({typeName:ie.ZodUndefined,...de(e)});class Jm extends ye{_parse(t){if(this._getType(t)!==Y.null){const r=this._getOrReturnCtx(t);return H(r,{code:z.invalid_type,expected:Y.null,received:r.parsedType}),oe}return Zt(t.data)}}Jm.create=e=>new Jm({typeName:ie.ZodNull,...de(e)});class eg extends ye{constructor(){super(...arguments),this._any=!0}_parse(t){return Zt(t.data)}}eg.create=e=>new eg({typeName:ie.ZodAny,...de(e)});class tg extends ye{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Zt(t.data)}}tg.create=e=>new tg({typeName:ie.ZodUnknown,...de(e)});class Zr extends ye{_parse(t){const n=this._getOrReturnCtx(t);return H(n,{code:z.invalid_type,expected:Y.never,received:n.parsedType}),oe}}Zr.create=e=>new Zr({typeName:ie.ZodNever,...de(e)});class ng extends ye{_parse(t){if(this._getType(t)!==Y.undefined){const r=this._getOrReturnCtx(t);return H(r,{code:z.invalid_type,expected:Y.void,received:r.parsedType}),oe}return Zt(t.data)}}ng.create=e=>new ng({typeName:ie.ZodVoid,...de(e)});class jn extends ye{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),s=this._def;if(n.parsedType!==Y.array)return H(n,{code:z.invalid_type,expected:Y.array,received:n.parsedType}),oe;if(s.exactLength!==null){const i=n.data.length>s.exactLength.value,a=n.data.length<s.exactLength.value;(i||a)&&(H(n,{code:i?z.too_big:z.too_small,minimum:a?s.exactLength.value:void 0,maximum:i?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(H(n,{code:z.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(H(n,{code:z.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>s.type._parseAsync(new Qr(n,i,n.path,a)))).then(i=>Mt.mergeArray(r,i));const o=[...n.data].map((i,a)=>s.type._parseSync(new Qr(n,i,n.path,a)));return Mt.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new jn({...this._def,minLength:{value:t,message:J.toString(n)}})}max(t,n){return new jn({...this._def,maxLength:{value:t,message:J.toString(n)}})}length(t,n){return new jn({...this._def,exactLength:{value:t,message:J.toString(n)}})}nonempty(t){return this.min(1,t)}}jn.create=(e,t)=>new jn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ie.ZodArray,...de(t)});function zs(e){if(e instanceof Fe){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Vr.create(zs(r))}return new Fe({...e._def,shape:()=>t})}else return e instanceof jn?new jn({...e._def,type:zs(e.element)}):e instanceof Vr?Vr.create(zs(e.unwrap())):e instanceof Io?Io.create(zs(e.unwrap())):e instanceof Ns?Ns.create(e.items.map(t=>zs(t))):e}class Fe extends ye{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=xe.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Y.object){const u=this._getOrReturnCtx(t);return H(u,{code:z.invalid_type,expected:Y.object,received:u.parsedType}),oe}const{status:r,ctx:s}=this._processInputParams(t),{shape:o,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof Zr&&this._def.unknownKeys==="strip"))for(const u in s.data)i.includes(u)||a.push(u);const l=[];for(const u of i){const c=o[u],f=s.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Qr(s,f,s.path,u)),alwaysSet:u in s.data})}if(this._def.catchall instanceof Zr){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of a)l.push({key:{status:"valid",value:c},value:{status:"valid",value:s.data[c]}});else if(u==="strict")a.length>0&&(H(s,{code:z.unrecognized_keys,keys:a}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of a){const f=s.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Qr(s,f,s.path,c)),alwaysSet:c in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const f=await c.key,h=await c.value;u.push({key:f,value:h,alwaysSet:c.alwaysSet})}return u}).then(u=>Mt.mergeObjectSync(r,u)):Mt.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return J.errToObj,new Fe({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,i;const s=((i=(o=this._def).errorMap)==null?void 0:i.call(o,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:J.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new Fe({...this._def,unknownKeys:"strip"})}passthrough(){return new Fe({...this._def,unknownKeys:"passthrough"})}extend(t){return new Fe({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Fe({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ie.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Fe({...this._def,catchall:t})}pick(t){const n={};for(const r of xe.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Fe({...this._def,shape:()=>n})}omit(t){const n={};for(const r of xe.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Fe({...this._def,shape:()=>n})}deepPartial(){return zs(this)}partial(t){const n={};for(const r of xe.objectKeys(this.shape)){const s=this.shape[r];t&&!t[r]?n[r]=s:n[r]=s.optional()}return new Fe({...this._def,shape:()=>n})}required(t){const n={};for(const r of xe.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Vr;)o=o._def.innerType;n[r]=o}return new Fe({...this._def,shape:()=>n})}keyof(){return cw(xe.objectKeys(this.shape))}}Fe.create=(e,t)=>new Fe({shape:()=>e,unknownKeys:"strip",catchall:Zr.create(),typeName:ie.ZodObject,...de(t)});Fe.strictCreate=(e,t)=>new Fe({shape:()=>e,unknownKeys:"strict",catchall:Zr.create(),typeName:ie.ZodObject,...de(t)});Fe.lazycreate=(e,t)=>new Fe({shape:e,unknownKeys:"strip",catchall:Zr.create(),typeName:ie.ZodObject,...de(t)});class Hl extends ye{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function s(o){for(const a of o)if(a.result.status==="valid")return a.result;for(const a of o)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const i=o.map(a=>new rr(a.ctx.common.issues));return H(n,{code:z.invalid_union,unionErrors:i}),oe}if(n.common.async)return Promise.all(r.map(async o=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(s);{let o;const i=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!o&&(o={result:c,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const a=i.map(l=>new rr(l));return H(n,{code:z.invalid_union,unionErrors:a}),oe}}get options(){return this._def.options}}Hl.create=(e,t)=>new Hl({options:e,typeName:ie.ZodUnion,...de(t)});function Bd(e,t){const n=mr(e),r=mr(t);if(e===t)return{valid:!0,data:e};if(n===Y.object&&r===Y.object){const s=xe.objectKeys(t),o=xe.objectKeys(e).filter(a=>s.indexOf(a)!==-1),i={...e,...t};for(const a of o){const l=Bd(e[a],t[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(n===Y.array&&r===Y.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let o=0;o<e.length;o++){const i=e[o],a=t[o],l=Bd(i,a);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return n===Y.date&&r===Y.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Ql extends ye{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=(o,i)=>{if(Zm(o)||Zm(i))return oe;const a=Bd(o.value,i.value);return a.valid?((Gm(o)||Gm(i))&&n.dirty(),{status:n.value,value:a.data}):(H(r,{code:z.invalid_intersection_types}),oe)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,i])=>s(o,i)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Ql.create=(e,t,n)=>new Ql({left:e,right:t,typeName:ie.ZodIntersection,...de(n)});class Ns extends ye{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Y.array)return H(r,{code:z.invalid_type,expected:Y.array,received:r.parsedType}),oe;if(r.data.length<this._def.items.length)return H(r,{code:z.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),oe;!this._def.rest&&r.data.length>this._def.items.length&&(H(r,{code:z.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Qr(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(o).then(i=>Mt.mergeArray(n,i)):Mt.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new Ns({...this._def,rest:t})}}Ns.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ns({items:e,typeName:ie.ZodTuple,rest:null,...de(t)})};class rg extends ye{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Y.map)return H(r,{code:z.invalid_type,expected:Y.map,received:r.parsedType}),oe;const s=this._def.keyType,o=this._def.valueType,i=[...r.data.entries()].map(([a,l],u)=>({key:s._parse(new Qr(r,a,r.path,[u,"key"])),value:o._parse(new Qr(r,l,r.path,[u,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of i){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return oe;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of i){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return oe;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}}}}rg.create=(e,t,n)=>new rg({valueType:t,keyType:e,typeName:ie.ZodMap,...de(n)});class Zi extends ye{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Y.set)return H(r,{code:z.invalid_type,expected:Y.set,received:r.parsedType}),oe;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(H(r,{code:z.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(H(r,{code:z.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const o=this._def.valueType;function i(l){const u=new Set;for(const c of l){if(c.status==="aborted")return oe;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const a=[...r.data.values()].map((l,u)=>o._parse(new Qr(r,l,r.path,u)));return r.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(t,n){return new Zi({...this._def,minSize:{value:t,message:J.toString(n)}})}max(t,n){return new Zi({...this._def,maxSize:{value:t,message:J.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Zi.create=(e,t)=>new Zi({valueType:e,minSize:null,maxSize:null,typeName:ie.ZodSet,...de(t)});class sg extends ye{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}sg.create=(e,t)=>new sg({getter:e,typeName:ie.ZodLazy,...de(t)});class og extends ye{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return H(n,{received:n.data,code:z.invalid_literal,expected:this._def.value}),oe}return{status:"valid",value:t.data}}get value(){return this._def.value}}og.create=(e,t)=>new og({value:e,typeName:ie.ZodLiteral,...de(t)});function cw(e,t){return new Oo({values:e,typeName:ie.ZodEnum,...de(t)})}class Oo extends ye{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return H(n,{expected:xe.joinValues(r),received:n.parsedType,code:z.invalid_type}),oe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return H(n,{received:n.data,code:z.invalid_enum_value,options:r}),oe}return Zt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Oo.create(t,{...this._def,...n})}exclude(t,n=this._def){return Oo.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Oo.create=cw;class ig extends ye{_parse(t){const n=xe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Y.string&&r.parsedType!==Y.number){const s=xe.objectValues(n);return H(r,{expected:xe.joinValues(s),received:r.parsedType,code:z.invalid_type}),oe}if(this._cache||(this._cache=new Set(xe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const s=xe.objectValues(n);return H(r,{received:r.data,code:z.invalid_enum_value,options:s}),oe}return Zt(t.data)}get enum(){return this._def.values}}ig.create=(e,t)=>new ig({values:e,typeName:ie.ZodNativeEnum,...de(t)});class Zl extends ye{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Y.promise&&n.common.async===!1)return H(n,{code:z.invalid_type,expected:Y.promise,received:n.parsedType}),oe;const r=n.parsedType===Y.promise?n.data:Promise.resolve(n.data);return Zt(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Zl.create=(e,t)=>new Zl({type:e,typeName:ie.ZodPromise,...de(t)});class Ao extends ye{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ie.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=this._def.effect||null,o={addIssue:i=>{H(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),s.type==="preprocess"){const i=s.transform(r.data,o);if(r.common.async)return Promise.resolve(i).then(async a=>{if(n.value==="aborted")return oe;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?oe:l.status==="dirty"||n.value==="dirty"?ai(l.value):l});{if(n.value==="aborted")return oe;const a=this._def.schema._parseSync({data:i,path:r.path,parent:r});return a.status==="aborted"?oe:a.status==="dirty"||n.value==="dirty"?ai(a.value):a}}if(s.type==="refinement"){const i=a=>{const l=s.refinement(a,o);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?oe:(a.status==="dirty"&&n.dirty(),i(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?oe:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!jo(i))return oe;const a=s.transform(i.value,o);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>jo(i)?Promise.resolve(s.transform(i.value,o)).then(a=>({status:n.value,value:a})):oe);xe.assertNever(s)}}Ao.create=(e,t,n)=>new Ao({schema:e,typeName:ie.ZodEffects,effect:t,...de(n)});Ao.createWithPreprocess=(e,t,n)=>new Ao({schema:t,effect:{type:"preprocess",transform:e},typeName:ie.ZodEffects,...de(n)});class Vr extends ye{_parse(t){return this._getType(t)===Y.undefined?Zt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Vr.create=(e,t)=>new Vr({innerType:e,typeName:ie.ZodOptional,...de(t)});class Io extends ye{_parse(t){return this._getType(t)===Y.null?Zt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Io.create=(e,t)=>new Io({innerType:e,typeName:ie.ZodNullable,...de(t)});class Wd extends ye{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Y.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Wd.create=(e,t)=>new Wd({innerType:e,typeName:ie.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...de(t)});class Hd extends ye{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Bl(s)?s.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new rr(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new rr(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Hd.create=(e,t)=>new Hd({innerType:e,typeName:ie.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...de(t)});class ag extends ye{_parse(t){if(this._getType(t)!==Y.nan){const r=this._getOrReturnCtx(t);return H(r,{code:z.invalid_type,expected:Y.nan,received:r.parsedType}),oe}return{status:"valid",value:t.data}}}ag.create=e=>new ag({typeName:ie.ZodNaN,...de(e)});class u2 extends ye{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class bh extends ye{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?oe:o.status==="dirty"?(n.dirty(),ai(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?oe:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(t,n){return new bh({in:t,out:n,typeName:ie.ZodPipeline})}}class Qd extends ye{_parse(t){const n=this._def.innerType._parse(t),r=s=>(jo(s)&&(s.value=Object.freeze(s.value)),s);return Bl(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}Qd.create=(e,t)=>new Qd({innerType:e,typeName:ie.ZodReadonly,...de(t)});Fe.lazycreate;var ie;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ie||(ie={}));const Xs=Pr.create;Zr.create;jn.create;const Sh=Fe.create;Fe.strictCreate;Hl.create;Ql.create;Ns.create;Oo.create;Zl.create;Vr.create;Io.create;const lo=y.forwardRef(({className:e,type:t,...n},r)=>d.jsx("input",{type:t,className:Le("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));lo.displayName="Input";const c2=Sh({email:Xs().trim().nonempty("Email is required").email("Invalid email address").max(255,"Email must be less than 255 characters")}),d2=()=>{const{register:e,handleSubmit:t,formState:{errors:n,isSubmitting:r},reset:s}=xh({resolver:wh(c2)}),o=async i=>{try{const a=JSON.parse(localStorage.getItem("newsletter_subscribers")||"[]");a.push({email:i.email,timestamp:new Date().toISOString(),source:"footer"}),localStorage.setItem("newsletter_subscribers",JSON.stringify(a)),localStorage.setItem("newsletter_subscribed","true"),er.success("Thanks for subscribing!"),s()}catch{er.error("Something went wrong. Please try again.")}};return d.jsxs("form",{onSubmit:t(o),className:"space-y-2",children:[d.jsxs("div",{children:[d.jsx(lo,{type:"email",placeholder:"Enter your email",...e("email"),className:n.email?"border-destructive":""}),n.email&&d.jsx("p",{className:"text-xs text-destructive mt-1",children:n.email.message})]}),d.jsx(ht,{type:"submit",className:"w-full",size:"sm",disabled:r,children:r?"Subscribing...":"Subscribe"})]})},f2=()=>d.jsx("footer",{className:"border-t border-border bg-background",children:d.jsxs("div",{className:"container py-12 px-4",children:[d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:[d.jsxs("div",{className:"space-y-4",children:[d.jsx("img",{src:hh,alt:"Only Gus",className:"h-12 w-auto"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Premium merchandise celebrating Gus, the most adorable French Bulldog."})]}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-semibold mb-4",children:"Quick Links"}),d.jsxs("ul",{className:"space-y-2",children:[d.jsx("li",{children:d.jsx(Ye,{to:"/",className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Home"})}),d.jsx("li",{children:d.jsx(Ye,{to:"/shop",className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Shop"})}),d.jsx("li",{children:d.jsx(Ye,{to:"/about",className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"About"})}),d.jsx("li",{children:d.jsx(Ye,{to:"/contact",className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Contact"})})]})]}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-semibold mb-4",children:"Customer Service"}),d.jsxs("ul",{className:"space-y-2",children:[d.jsx("li",{children:d.jsx(Ye,{to:"/contact",className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Contact Us"})}),d.jsx("li",{children:d.jsx("a",{href:"#",className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Shipping Info"})}),d.jsx("li",{children:d.jsx("a",{href:"#",className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Returns"})})]})]}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-semibold mb-4",children:"Follow Gus"}),d.jsxs("div",{className:"flex gap-4",children:[d.jsx("a",{href:"https://instagram.com",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground transition-colors",children:d.jsx(md,{className:"h-5 w-5"})}),d.jsx("a",{href:"https://facebook.com",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground transition-colors",children:d.jsx(pd,{className:"h-5 w-5"})}),d.jsx("a",{href:"https://twitter.com",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground transition-colors",children:d.jsx(gd,{className:"h-5 w-5"})})]})]}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-semibold mb-4",children:"Stay Updated with Gus"}),d.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Get the latest on new products and exclusive Gus content."}),d.jsx(d2,{})]})]}),d.jsx("div",{className:"border-t border-border mt-8 pt-8 text-center",children:d.jsxs("p",{className:"text-sm text-muted-foreground",children:["© ",new Date().getFullYear()," Only Gus. All rights reserved."]})})]})}),h2=Sh({email:Xs().trim().nonempty("Email is required").email("Invalid email address").max(255,"Email must be less than 255 characters")}),p2=()=>{const[e,t]=y.useState(!1),[n,r]=y.useState(!1),{register:s,handleSubmit:o,formState:{errors:i,isSubmitting:a},reset:l}=xh({resolver:wh(h2)});y.useEffect(()=>{const f=localStorage.getItem("newsletter_popup_dismissed"),h=localStorage.getItem("newsletter_subscribed");if(!f&&!h){const p=setTimeout(()=>{t(!0)},5e3);return()=>clearTimeout(p)}},[]);const u=()=>{r(!0),setTimeout(()=>{t(!1),localStorage.setItem("newsletter_popup_dismissed","true")},300)},c=async f=>{try{const h=JSON.parse(localStorage.getItem("newsletter_subscribers")||"[]");h.push({email:f.email,timestamp:new Date().toISOString(),source:"popup"}),localStorage.setItem("newsletter_subscribers",JSON.stringify(h)),localStorage.setItem("newsletter_subscribed","true"),er.success("Thanks for subscribing! Stay tuned for Gus updates."),l(),u()}catch{er.error("Something went wrong. Please try again.")}};return e?d.jsx("div",{className:`fixed bottom-6 right-6 z-50 w-[90vw] max-w-md transition-all duration-300 ${n?"translate-y-full opacity-0":"translate-y-0 opacity-100"}`,children:d.jsxs("div",{className:"bg-card border border-border rounded-lg shadow-lg p-6 relative",children:[d.jsx(ht,{variant:"ghost",size:"icon",className:"absolute top-2 right-2 h-8 w-8",onClick:u,children:d.jsx(pu,{className:"h-4 w-4"})}),d.jsxs("div",{className:"pr-8",children:[d.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Join Gus's Pack! 🐕"}),d.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Get exclusive updates, new merch drops, and adorable Gus content straight to your inbox."}),d.jsxs("form",{onSubmit:o(c),className:"space-y-3",children:[d.jsxs("div",{children:[d.jsx(lo,{type:"email",placeholder:"Enter your email",...s("email"),className:i.email?"border-destructive":""}),i.email&&d.jsx("p",{className:"text-xs text-destructive mt-1",children:i.email.message})]}),d.jsx(ht,{type:"submit",className:"w-full",disabled:a,children:a?"Subscribing...":"Subscribe"}),d.jsx("button",{type:"button",onClick:u,className:"text-xs text-muted-foreground hover:text-foreground transition-colors w-full text-center",children:"No thanks"})]})]})]})}):null},dw=y.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:Le("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));dw.displayName="Card";const m2=y.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:Le("flex flex-col space-y-1.5 p-6",e),...t}));m2.displayName="CardHeader";const g2=y.forwardRef(({className:e,...t},n)=>d.jsx("h3",{ref:n,className:Le("text-2xl font-semibold leading-none tracking-tight",e),...t}));g2.displayName="CardTitle";const v2=y.forwardRef(({className:e,...t},n)=>d.jsx("p",{ref:n,className:Le("text-sm text-muted-foreground",e),...t}));v2.displayName="CardDescription";const fw=y.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:Le("p-6 pt-0",e),...t}));fw.displayName="CardContent";const hw=y.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:Le("flex items-center p-6 pt-0",e),...t}));hw.displayName="CardFooter";const pw=({product:e})=>{var o,i,a,l;const t=zl(u=>u.addItem),{node:n}=e,r=(o=n.variants.edges[0])==null?void 0:o.node,s=u=>{if(u.preventDefault(),u.stopPropagation(),!r)return;const c={product:e,variantId:r.id,variantTitle:r.title,price:r.price,quantity:1,selectedOptions:r.selectedOptions||[]};t(c),er.success("Added to cart!",{description:n.title,position:"top-center"})};return d.jsx(Ye,{to:`/product/${n.handle}`,className:"group",children:d.jsxs(dw,{className:"h-full overflow-hidden transition-all duration-300 hover:shadow-2xl hover:-translate-y-2 hover:border-primary/20",children:[d.jsx(fw,{className:"p-0 relative",children:d.jsxs("div",{className:"aspect-square overflow-hidden bg-accent relative",children:[(l=(a=(i=n.images)==null?void 0:i.edges)==null?void 0:a[0])!=null&&l.node?d.jsx("img",{src:n.images.edges[0].node.url,alt:n.images.edges[0].node.altText||n.title,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-110"}):d.jsx("div",{className:"w-full h-full flex items-center justify-center bg-accent",children:d.jsx("span",{className:"text-muted-foreground",children:"No image"})}),d.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/80 via-transparent to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"})]})}),d.jsxs(hw,{className:"flex flex-col items-start gap-3 p-5 bg-card/95 backdrop-blur-sm",children:[d.jsx("h3",{className:"font-bold text-lg line-clamp-2 group-hover:text-primary transition-colors",children:n.title}),d.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 leading-relaxed",children:n.description}),d.jsxs("div",{className:"flex items-center justify-between w-full mt-2",children:[d.jsxs("span",{className:"text-2xl font-bold bg-gradient-to-r from-primary to-primary/70 bg-clip-text text-transparent",children:["$",parseFloat(n.priceRange.minVariantPrice.amount).toFixed(2)]}),d.jsxs(ht,{size:"sm",onClick:s,className:"gap-2 group-hover:scale-105 transition-transform shadow-lg hover:shadow-xl",children:[d.jsx(Pl,{className:"h-4 w-4 transition-transform group-hover:rotate-12"}),"Add to Cart"]})]})]})]})})},y2=()=>{const{data:e,isLoading:t,error:n}=ah({queryKey:["featured-products"],queryFn:async()=>{var s,o;const r=await ku(Xx,{first:6,query:"tag:featured"});return((o=(s=r==null?void 0:r.data)==null?void 0:s.products)==null?void 0:o.edges)||[]}});return t?d.jsx("div",{className:"flex items-center justify-center py-12",children:d.jsx(hu,{className:"h-8 w-8 animate-spin text-primary"})}):n?d.jsx("div",{className:"text-center py-12",children:d.jsx("p",{className:"text-destructive",children:"Error loading featured products. Please try again later."})}):!e||e.length===0?d.jsxs("div",{className:"text-center py-12",children:[d.jsx("p",{className:"text-muted-foreground text-lg",children:"No featured products yet"}),d.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:'Tag products with "featured" in Shopify to display them here'})]}):d.jsxs("div",{className:"space-y-8",children:[d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:e.map(r=>d.jsx(pw,{product:r},r.node.id))}),d.jsx("div",{className:"text-center pt-8",children:d.jsx(Ye,{to:"/shop",children:d.jsxs(ht,{size:"lg",variant:"outline",className:"group font-bold text-base px-8 py-6 hover:scale-105 transition-transform shadow-lg hover:shadow-xl",children:["View All Products",d.jsx("svg",{className:"ml-2 h-5 w-5 transition-transform group-hover:translate-x-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 7l5 5m0 0l-5 5m5-5H6"})})]})})})]})},x2="/assets/gus-hero-EbBoPHLO.png",w2=()=>d.jsxs("div",{className:"min-h-screen bg-background",children:[d.jsxs("section",{className:"relative overflow-hidden h-[85vh] md:h-[80vh]",children:[d.jsxs("div",{className:"absolute inset-0",children:[d.jsx("img",{src:x2,alt:"Only Gus - Your Daily Dose of Frenchie Fun",className:"w-full h-full object-cover object-center animate-fade-in"}),d.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-transparent to-black/80"}),d.jsx("div",{className:"absolute inset-0 bg-gradient-radial from-transparent via-transparent to-black/60"}),d.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/30 via-transparent to-transparent"})]}),d.jsx("div",{className:"absolute top-[10%] md:top-[15%] right-8 md:right-16 z-10",children:d.jsx("img",{src:hh,alt:"Only Gus",className:"w-auto max-w-[180px] md:max-w-[250px] h-auto opacity-75 drop-shadow-lg animate-fade-in"})}),d.jsx("div",{className:"relative container h-full flex items-end justify-center pb-12 md:pb-16",children:d.jsxs("div",{className:"flex flex-wrap gap-4 justify-center animate-fade-in",children:[d.jsxs("a",{href:"/shop",className:"group inline-flex items-center justify-center rounded-lg bg-white text-primary px-8 py-4 text-base font-bold shadow-2xl hover:shadow-white/50 transition-all duration-300 hover:scale-105 hover:-translate-y-1 border-2 border-white/20",children:[d.jsx("span",{children:"Shop Now"}),d.jsx("svg",{className:"ml-2 h-5 w-5 transition-transform group-hover:translate-x-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 7l5 5m0 0l-5 5m5-5H6"})})]}),d.jsxs("a",{href:"/about",className:"group inline-flex items-center justify-center rounded-lg border-2 border-white/60 bg-white/10 backdrop-blur-sm px-8 py-4 text-base font-bold text-white shadow-lg hover:bg-white/20 hover:border-white transition-all duration-300 hover:scale-105 hover:-translate-y-1",children:[d.jsx("span",{children:"Meet Gus"}),d.jsx("svg",{className:"ml-2 h-5 w-5 transition-transform group-hover:translate-x-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 8l4 4m0 0l-4 4m4-4H3"})})]})]})})]}),d.jsxs("section",{className:"container py-16 md:py-24",children:[d.jsxs("div",{className:"text-center mb-16 space-y-4",children:[d.jsx("h2",{className:"text-4xl md:text-5xl font-extrabold bg-gradient-to-r from-foreground via-foreground/90 to-foreground/70 bg-clip-text text-transparent",children:"Featured Products"}),d.jsxs("div",{className:"flex items-center justify-center gap-2",children:[d.jsx("div",{className:"h-1 w-16 bg-gradient-to-r from-transparent to-primary/50 rounded-full"}),d.jsx("div",{className:"h-1.5 w-20 bg-gradient-to-r from-primary to-primary/70 rounded-full"}),d.jsx("div",{className:"h-1 w-16 bg-gradient-to-l from-transparent to-primary/50 rounded-full"})]}),d.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto leading-relaxed pt-2",children:"Check out our handpicked selection of Gus's favorite merchandise"})]}),d.jsx(y2,{})]})]}),b2=()=>{const{data:e,isLoading:t,error:n}=ah({queryKey:["products"],queryFn:async()=>{var s,o;const r=await ku(Xx,{first:12});return((o=(s=r==null?void 0:r.data)==null?void 0:s.products)==null?void 0:o.edges)||[]}});return t?d.jsx("div",{className:"flex items-center justify-center py-12",children:d.jsx(hu,{className:"h-8 w-8 animate-spin text-primary"})}):n?d.jsx("div",{className:"text-center py-12",children:d.jsx("p",{className:"text-destructive",children:"Error loading products. Please try again later."})}):!e||e.length===0?d.jsxs("div",{className:"text-center py-12",children:[d.jsx("p",{className:"text-muted-foreground text-lg",children:"No products found"}),d.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:"Create a product by telling me what you'd like to add!"})]}):d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:e.map(r=>d.jsx(pw,{product:r},r.node.id))})},S2=()=>d.jsxs("div",{className:"min-h-screen bg-background",children:[d.jsx("section",{className:"border-b border-border bg-gradient-to-br from-secondary/30 via-secondary/10 to-background",children:d.jsxs("div",{className:"container py-16 md:py-20 space-y-6",children:[d.jsx("h1",{className:"text-5xl md:text-6xl font-extrabold tracking-tight bg-gradient-to-r from-foreground via-foreground/90 to-foreground/70 bg-clip-text text-transparent",children:"Shop All Products"}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"h-1.5 w-24 bg-gradient-to-r from-primary to-primary/50 rounded-full"}),d.jsx("div",{className:"h-1 w-16 bg-primary/30 rounded-full"})]}),d.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground font-medium leading-relaxed max-w-3xl",children:"Browse our complete collection of Gus merchandise"})]})}),d.jsx("section",{className:"container py-12 md:py-16",children:d.jsx(b2,{})})]}),k2="/assets/gus-1-GglH5PUn.jpeg",C2="/assets/gus-2-Ctd6zsTB.jpeg",E2=()=>d.jsxs("div",{className:"min-h-screen bg-background",children:[d.jsx("section",{className:"relative overflow-hidden bg-gradient-to-br from-primary/10 via-background to-accent/10",children:d.jsx("div",{className:"container py-16 md:py-24",children:d.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[d.jsx("h1",{className:"text-4xl md:text-6xl font-bold tracking-tight mb-6",children:"Meet Gus"}),d.jsx("p",{className:"text-lg md:text-xl text-muted-foreground",children:"The adorable French Bulldog who captured hearts and inspired a brand"})]})})}),d.jsx("section",{className:"container py-12 md:py-16",children:d.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[d.jsxs("div",{className:"space-y-6",children:[d.jsx("h2",{className:"text-3xl font-bold",children:"Our Story"}),d.jsx("p",{className:"text-muted-foreground",children:"Gus isn't just a French Bulldog – he's a personality, a friend, and an inspiration. With his charming expressions and playful nature, Gus has become a beloved figure in our community."}),d.jsx("p",{className:"text-muted-foreground",children:"Only Gus was born from the desire to share the joy that Gus brings to our lives. Every piece of merchandise is designed with love and celebrates the unique character that makes Gus so special."}),d.jsx("p",{className:"text-muted-foreground",children:"From cozy apparel to accessories, each product is carefully crafted to bring a smile to fellow dog lovers and Gus fans around the world."})]}),d.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[d.jsx("div",{className:"aspect-square overflow-hidden rounded-lg",children:d.jsx("img",{src:k2,alt:"Gus the French Bulldog",className:"w-full h-full object-cover"})}),d.jsx("div",{className:"aspect-square overflow-hidden rounded-lg",children:d.jsx("img",{src:C2,alt:"Gus the French Bulldog",className:"w-full h-full object-cover"})})]})]})}),d.jsx("section",{className:"bg-secondary/20 py-12 md:py-16",children:d.jsx("div",{className:"container",children:d.jsxs("div",{className:"max-w-3xl mx-auto text-center space-y-6",children:[d.jsx("h2",{className:"text-3xl font-bold",children:"Our Mission"}),d.jsx("p",{className:"text-lg text-muted-foreground",children:"To spread joy and celebrate the unconditional love that dogs bring to our lives. Through quality merchandise and a vibrant community, we aim to connect dog lovers everywhere who appreciate the special bond between humans and their furry friends."})]})})}),d.jsxs("section",{className:"container py-12 md:py-16",children:[d.jsx("h2",{className:"text-3xl font-bold text-center mb-12",children:"Why Customers Love Only Gus"}),d.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[d.jsxs("div",{className:"text-center space-y-4",children:[d.jsx("div",{className:"w-16 h-16 mx-auto bg-primary/10 rounded-full flex items-center justify-center",children:d.jsx("span",{className:"text-2xl",children:"🎨"})}),d.jsx("h3",{className:"font-semibold text-xl",children:"Unique Designs"}),d.jsx("p",{className:"text-muted-foreground",children:"Every design is original and captures Gus's personality perfectly"})]}),d.jsxs("div",{className:"text-center space-y-4",children:[d.jsx("div",{className:"w-16 h-16 mx-auto bg-primary/10 rounded-full flex items-center justify-center",children:d.jsx("span",{className:"text-2xl",children:"✨"})}),d.jsx("h3",{className:"font-semibold text-xl",children:"Premium Quality"}),d.jsx("p",{className:"text-muted-foreground",children:"High-quality materials and printing that lasts"})]}),d.jsxs("div",{className:"text-center space-y-4",children:[d.jsx("div",{className:"w-16 h-16 mx-auto bg-primary/10 rounded-full flex items-center justify-center",children:d.jsx("span",{className:"text-2xl",children:"❤️"})}),d.jsx("h3",{className:"font-semibold text-xl",children:"Made with Love"}),d.jsx("p",{className:"text-muted-foreground",children:"Every product is created with passion for dog lovers"})]})]})]})]}),mw=y.forwardRef(({className:e,...t},n)=>d.jsx("textarea",{className:Le("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));mw.displayName="Textarea";var _2="Label",gw=y.forwardRef((e,t)=>d.jsx(Ue.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));gw.displayName=_2;var vw=gw;const N2=ia("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),li=y.forwardRef(({className:e,...t},n)=>d.jsx(vw,{ref:n,className:Le(N2(),e),...t}));li.displayName=vw.displayName;const T2=Sh({name:Xs().trim().nonempty("Name is required").max(100,"Name must be less than 100 characters"),email:Xs().trim().nonempty("Email is required").email("Invalid email address").max(255,"Email must be less than 255 characters"),subject:Xs().trim().nonempty("Subject is required").max(150,"Subject must be less than 150 characters"),message:Xs().trim().nonempty("Message is required").min(10,"Message must be at least 10 characters").max(1e3,"Message must be less than 1000 characters")}),R2=()=>{const{register:e,handleSubmit:t,formState:{errors:n,isSubmitting:r},reset:s}=xh({resolver:wh(T2)}),o=async i=>{try{const a=JSON.parse(localStorage.getItem("contact_submissions")||"[]");a.push({...i,timestamp:new Date().toISOString()}),localStorage.setItem("contact_submissions",JSON.stringify(a)),er.success("Message sent! We'll get back to you soon."),s()}catch{er.error("Something went wrong. Please try again.")}};return d.jsx("div",{className:"min-h-screen py-12 px-4",children:d.jsxs("div",{className:"container max-w-2xl mx-auto",children:[d.jsxs("div",{className:"text-center mb-8",children:[d.jsx("div",{className:"flex justify-center mb-4",children:d.jsx("div",{className:"bg-primary/10 p-4 rounded-full",children:d.jsx(YS,{className:"h-8 w-8 text-primary"})})}),d.jsx("h1",{className:"text-4xl font-bold mb-2",children:"Get in Touch"}),d.jsx("p",{className:"text-muted-foreground",children:"Have questions about Gus or our products? We'd love to hear from you!"})]}),d.jsx("div",{className:"bg-card border border-border rounded-lg shadow-sm p-8",children:d.jsxs("form",{onSubmit:t(o),className:"space-y-6",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(li,{htmlFor:"name",children:"Name"}),d.jsx(lo,{id:"name",placeholder:"Your name",...e("name"),className:n.name?"border-destructive":""}),n.name&&d.jsx("p",{className:"text-sm text-destructive",children:n.name.message})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(li,{htmlFor:"email",children:"Email"}),d.jsx(lo,{id:"email",type:"email",placeholder:"your@email.com",...e("email"),className:n.email?"border-destructive":""}),n.email&&d.jsx("p",{className:"text-sm text-destructive",children:n.email.message})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(li,{htmlFor:"subject",children:"Subject"}),d.jsx(lo,{id:"subject",placeholder:"What's this about?",...e("subject"),className:n.subject?"border-destructive":""}),n.subject&&d.jsx("p",{className:"text-sm text-destructive",children:n.subject.message})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(li,{htmlFor:"message",children:"Message"}),d.jsx(mw,{id:"message",placeholder:"Tell us what's on your mind...",rows:6,...e("message"),className:n.message?"border-destructive":""}),n.message&&d.jsx("p",{className:"text-sm text-destructive",children:n.message.message})]}),d.jsxs(ht,{type:"submit",className:"w-full",size:"lg",disabled:r,children:[d.jsx(KS,{className:"mr-2 h-4 w-4"}),r?"Sending...":"Send Message"]})]})}),d.jsx("div",{className:"mt-8 text-center text-sm text-muted-foreground",children:d.jsx("p",{children:"We typically respond within 24-48 hours."})})]})})},P2=()=>{var u,c,f,h,p,b,g,w,v,m,x,S;const{handle:e}=fN(),t=zl(k=>k.addItem),[n,r]=y.useState(null),{data:s,isLoading:o,error:i}=ah({queryKey:["product",e],queryFn:async()=>{var N;const k=await ku(uR,{handle:e});return(N=k==null?void 0:k.data)==null?void 0:N.product},enabled:!!e}),a=((f=(c=(u=s==null?void 0:s.variants)==null?void 0:u.edges)==null?void 0:c.find(k=>k.node.id===n))==null?void 0:f.node)||((b=(p=(h=s==null?void 0:s.variants)==null?void 0:h.edges)==null?void 0:p[0])==null?void 0:b.node),l=()=>{if(!s||!a)return;const N={product:{node:s},variantId:a.id,variantTitle:a.title,price:a.price,quantity:1,selectedOptions:a.selectedOptions||[]};t(N),er.success("Added to cart!",{description:s.title,position:"top-center"})};return o?d.jsx("div",{className:"flex items-center justify-center min-h-[60vh]",children:d.jsx(hu,{className:"h-8 w-8 animate-spin text-primary"})}):i||!s?d.jsxs("div",{className:"container py-12",children:[d.jsx("p",{className:"text-center text-destructive",children:"Product not found"}),d.jsx("div",{className:"text-center mt-4",children:d.jsx(Ye,{to:"/",children:d.jsxs(ht,{variant:"outline",children:[d.jsx(Up,{className:"mr-2 h-4 w-4"}),"Back to Store"]})})})]}):d.jsxs("div",{className:"container py-8",children:[d.jsxs(Ye,{to:"/",className:"inline-flex items-center text-sm text-muted-foreground hover:text-foreground mb-6",children:[d.jsx(Up,{className:"mr-2 h-4 w-4"}),"Back to Store"]}),d.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[d.jsx("div",{className:"aspect-square overflow-hidden rounded-lg bg-accent",children:(v=(w=(g=s.images)==null?void 0:g.edges)==null?void 0:w[0])!=null&&v.node?d.jsx("img",{src:s.images.edges[0].node.url,alt:s.images.edges[0].node.altText||s.title,className:"w-full h-full object-cover"}):d.jsx("div",{className:"w-full h-full flex items-center justify-center",children:d.jsx("span",{className:"text-muted-foreground",children:"No image"})})}),d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"text-3xl font-bold mb-2",children:s.title}),d.jsxs("p",{className:"text-2xl font-bold text-primary",children:["$",parseFloat(((m=a==null?void 0:a.price)==null?void 0:m.amount)||"0").toFixed(2)]})]}),d.jsx("div",{className:"prose prose-sm",children:d.jsx("p",{className:"text-muted-foreground",children:s.description})}),((S=(x=s.variants)==null?void 0:x.edges)==null?void 0:S.length)>1&&d.jsxs("div",{children:[d.jsx("label",{className:"block text-sm font-medium mb-2",children:"Select Variant"}),d.jsx("select",{className:"w-full p-2 border border-border rounded-md bg-background",value:n||(a==null?void 0:a.id),onChange:k=>r(k.target.value),children:s.variants.edges.map(k=>d.jsxs("option",{value:k.node.id,children:[k.node.title," - $",parseFloat(k.node.price.amount).toFixed(2)]},k.node.id))})]}),d.jsxs(ht,{size:"lg",className:"w-full gap-2",onClick:l,disabled:!(a!=null&&a.availableForSale),children:[d.jsx(Pl,{className:"h-5 w-5"}),a!=null&&a.availableForSale?"Add to Cart":"Out of Stock"]})]})]})]})},j2=()=>{const e=ca();return y.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),d.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:d.jsxs("div",{className:"text-center",children:[d.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),d.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),d.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},O2=new w_,A2=()=>d.jsx(E_,{client:O2,children:d.jsxs(t_,{children:[d.jsx(Lk,{}),d.jsx(pC,{}),d.jsx(IN,{children:d.jsxs("div",{className:"flex flex-col min-h-screen",children:[d.jsx(hR,{}),d.jsx("main",{className:"flex-1",children:d.jsxs(NN,{children:[d.jsx(rs,{path:"/",element:d.jsx(w2,{})}),d.jsx(rs,{path:"/shop",element:d.jsx(S2,{})}),d.jsx(rs,{path:"/about",element:d.jsx(E2,{})}),d.jsx(rs,{path:"/contact",element:d.jsx(R2,{})}),d.jsx(rs,{path:"/product/:handle",element:d.jsx(P2,{})}),d.jsx(rs,{path:"*",element:d.jsx(j2,{})})]})}),d.jsx(f2,{}),d.jsx(p2,{})]})})]})});jy(document.getElementById("root")).render(d.jsx(A2,{}));