PageSourceSearch

https://fitmit40.lovable.app/assets/index-Ca4rDcHd.js

js fitmit40.lovable.app collected 2026-10-03 03:31:20 UTC 491,630 bytes, 197 lines download raw bytes

vendor: 6,254 bytes, lines 1-9
1var Cf=t=>{throw TypeError(t)};var Dl=(t,e,n)=>e.has(t)||Cf("Cannot "+n);var j=(t,e,n)=>(Dl(t,e,"read from private field"),n?n.call(t):e.get(t)),ee=(t,e,n)=>e.has(t)?Cf("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),B=(t,e,n,r)=>(Dl(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),$e=(t,e,n)=>(Dl(t,e,"access private method"),n);var To=(t,e,n,r)=>({set _(s){B(t,e,s,n)},get _(){return j(t,e,r)}});function cw(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in t)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();var Et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function dw(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),n}var Qp={exports:{}},Qa={},Yp={exports:{}},J={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var co=Symbol.for("react.element"),fw=Symbol.for("react.portal"),hw=Symbol.for("react.fragment"),pw=Symbol.for("react.strict_mode"),mw=Symbol.for("react.profiler"),gw=Symbol.for("react.provider"),vw=Symbol.for("react.context"),yw=Symbol.for("react.forward_ref"),ww=Symbol.for("react.suspense"),xw=Symbol.for("react.memo"),bw=Symbol.for("react.lazy"),Tf=Symbol.iterator;function _w(t){return t===null||typeof t!="object"?null:(t=Tf&&t[Tf]||t["@@iterator"],typeof t=="function"?t:null)}var Jp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xp=Object.assign,Zp={};function Qs(t,e,n){this.props=t,this.context=e,this.refs=Zp,this.updater=n||Jp}Qs.prototype.isReactComponent={};Qs.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};Qs.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function em(){}em.prototype=Qs.prototype;function Qc(t,e,n){this.props=t,this.context=e,this.refs=Zp,this.updater=n||Jp}var Yc=Qc.prototype=new em;Yc.constructor=Qc;Xp(Yc,Qs.prototype);Yc.isPureReactComponent=!0;var jf=Array.isArray,tm=Object.prototype.hasOwnProperty,Jc={current:null},nm={key:!0,ref:!0,__self:!0,__source:!0};function rm(t,e,n){var r,s={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)tm.call(e,r)&&!nm.hasOwnProperty(r)&&(s[r]=e[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(t&&t.defaultProps)for(r in a=t.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:co,type:t,key:i,ref:o,props:s,_owner:Jc.current}}function Sw(t,e){return{$$typeof:co,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Xc(t){return typeof t=="object"&&t!==null&&t.$$typeof===co}function Ew(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var Pf=/\/+/g;function Fl(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Ew(""+t.key):e.toString(36)}function Zo(t,e,n,r,s){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case co:case fw:o=!0}}if(o)return o=t,s=s(o),t=r===""?"."+Fl(o,0):r,jf(s)?(n="",t!=null&&(n=t.replace(Pf,"$&/")+"/"),Zo(s,e,n,"",function(u){return u})):s!=null&&(Xc(s)&&(s=Sw(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Pf,"$&/")+"/")+t)),e.push(s)),1;if(o=0,r=r===""?".":r+":",jf(t))for(var a=0;a<t.length;a++){i=t[a];var l=r+Fl(i,a);o+=Zo(i,e,n,l,s)}else if(l=_w(t),typeof l=="function")for(t=l.call(t),a=0;!(i=t.next()).done;)i=i.value,l=r+Fl(i,a++),o+=Zo(i,e,n,l,s);else if(i==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function jo(t,e,n){if(t==null)return t;var r=[],s=0;return Zo(t,r,"","",function(i){return e.call(n,i,s++)}),r}function kw(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var Ge={current:null},ea={transition:null},Cw={ReactCurrentDispatcher:Ge,ReactCurrentBatchConfig:ea,ReactCurrentOwner:Jc};function sm(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 5,448 bytes, lines 9-25
9J.Children={map:jo,forEach:function(t,e,n){jo(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return jo(t,function(){e++}),e},toArray:function(t){return jo(t,function(e){return e})||[]},only:function(t){if(!Xc(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};J.Component=Qs;J.Fragment=hw;J.Profiler=mw;J.PureComponent=Qc;J.StrictMode=pw;J.Suspense=ww;J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Cw;J.act=sm;J.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=Xp({},t.props),s=t.key,i=t.ref,o=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,o=Jc.current),e.key!==void 0&&(s=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)tm.call(e,l)&&!nm.hasOwnProperty(l)&&(r[l]=e[l]===void 0&&a!==void 0?a[l]:e[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:co,type:t.type,key:s,ref:i,props:r,_owner:o}};J.createContext=function(t){return t={$$typeof:vw,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:gw,_context:t},t.Consumer=t};J.createElement=rm;J.createFactory=function(t){var e=rm.bind(null,t);return e.type=t,e};J.createRef=function(){return{current:null}};J.forwardRef=function(t){return{$$typeof:yw,render:t}};J.isValidElement=Xc;J.lazy=function(t){return{$$typeof:bw,_payload:{_status:-1,_result:t},_init:kw}};J.memo=function(t,e){return{$$typeof:xw,type:t,compare:e===void 0?null:e}};J.startTransition=function(t){var e=ea.transition;ea.transition={};try{t()}finally{ea.transition=e}};J.unstable_act=sm;J.useCallback=function(t,e){return Ge.current.useCallback(t,e)};J.useContext=function(t){return Ge.current.useContext(t)};J.useDebugValue=function(){};J.useDeferredValue=function(t){return Ge.current.useDeferredValue(t)};J.useEffect=function(t,e){return Ge.current.useEffect(t,e)};J.useId=function(){return Ge.current.useId()};J.useImperativeHandle=function(t,e,n){return Ge.current.useImperativeHandle(t,e,n)};J.useInsertionEffect=function(t,e){return Ge.current.useInsertionEffect(t,e)};J.useLayoutEffect=function(t,e){return Ge.current.useLayoutEffect(t,e)};J.useMemo=function(t,e){return Ge.current.useMemo(t,e)};J.useReducer=function(t,e,n){return Ge.current.useReducer(t,e,n)};J.useRef=function(t){return Ge.current.useRef(t)};J.useState=function(t){return Ge.current.useState(t)};J.useSyncExternalStore=function(t,e,n){return Ge.current.useSyncExternalStore(t,e,n)};J.useTransition=function(){return Ge.current.useTransition()};J.version="18.3.1";Yp.exports=J;var x=Yp.exports;const O=Gp(x),Zc=cw({__proto__:null,default:O},[x]);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var Tw=x,jw=Symbol.for("react.element"),Pw=Symbol.for("react.fragment"),Rw=Object.prototype.hasOwnProperty,Nw=Tw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Aw={key:!0,ref:!0,__self:!0,__source:!0};function im(t,e,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)Rw.call(e,r)&&!Aw.hasOwnProperty(r)&&(s[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)s[r]===void 0&&(s[r]=e[r]);return{$$typeof:jw,type:t,key:i,ref:o,props:s,_owner:Nw.current}}Qa.Fragment=Pw;Qa.jsx=im;Qa.jsxs=im;Qp.exports=Qa;var h=Qp.exports,om={exports:{}},ft={},am={exports:{}},lm={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(t){function e(P,R){var $=P.length;P.push(R);e:for(;0<$;){var H=$-1>>>1,z=P[H];if(0<s(z,R))P[H]=R,P[$]=z,$=H;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var R=P[0],$=P.pop();if($!==R){P[0]=$;e:for(var H=0,z=P.length,Y=z>>>1;H<Y;){var X=2*(H+1)-1,_e=P[X],Le=X+1,ne=P[Le];if(0>s(_e,$))Le<z&&0>s(ne,_e)?(P[H]=ne,P[Le]=$,H=Le):(P[H]=_e,P[X]=$,H=X);else if(Le<z&&0>s(ne,$))P[H]=ne,P[Le]=$,H=Le;else break e}}return R}function s(P,R){var $=P.sortIndex-R.sortIndex;return $!==0?$:P.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,f=3,p=!1,b=!1,w=!1,v=typeof setTimeout=="function"?setTimeout:null,g=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 y(P){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=P)r(u),R.sortIndex=R.expirationTime,e(l,R);else break;R=n(u)}}function _(P){if(w=!1,y(P),!b)if(n(l)!==null)b=!0,F(S);else{var R=n(u);R!==null&&V(_,R.startTime-P)}}function S(P,R){b=!1,w&&(w=!1,g(T),T=-1),p=!0;var $=f;try{for(y(R),d=n(l);d!==null&&(!(d.expirationTime>R)||P&&!D());){var H=d.callback;
vendor: 9,152 bytes, lines 25-34
25if(typeof H=="function"){d.callback=null,f=d.priorityLevel;var z=H(d.expirationTime<=R);R=t.unstable_now(),typeof z=="function"?d.callback=z:d===n(l)&&r(l),y(R)}else r(l);d=n(l)}if(d!==null)var Y=!0;else{var X=n(u);X!==null&&V(_,X.startTime-R),Y=!1}return Y}finally{d=null,f=$,p=!1}}var E=!1,k=null,T=-1,C=5,N=-1;function D(){return!(t.unstable_now()-N<C)}function L(){if(k!==null){var P=t.unstable_now();N=P;var R=!0;try{R=k(!0,P)}finally{R?q():(E=!1,k=null)}}else E=!1}var q;if(typeof m=="function")q=function(){m(L)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,G=I.port2;I.port1.onmessage=L,q=function(){G.postMessage(null)}}else q=function(){v(L,0)};function F(P){k=P,E||(E=!0,q())}function V(P,R){T=v(function(){P(t.unstable_now())},R)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(P){P.callback=null},t.unstable_continueExecution=function(){b||p||(b=!0,F(S))},t.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"):C=0<P?Math.floor(1e3/P):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function(P){switch(f){case 1:case 2:case 3:var R=3;break;default:R=f}var $=f;f=R;try{return P()}finally{f=$}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(P,R){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var $=f;f=P;try{return R()}finally{f=$}},t.unstable_scheduleCallback=function(P,R,$){var H=t.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?H+$:H):$=H,P){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=$+z,P={id:c++,callback:R,priorityLevel:P,startTime:$,expirationTime:z,sortIndex:-1},$>H?(P.sortIndex=$,e(u,P),n(l)===null&&P===n(u)&&(w?(g(T),T=-1):w=!0,V(_,$-H))):(P.sortIndex=z,e(l,P),b||p||(b=!0,F(S))),P},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(P){var R=f;return function(){var $=f;f=R;try{return P.apply(this,arguments)}finally{f=$}}}})(lm);am.exports=lm;var Ow=am.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var Iw=x,dt=Ow;function A(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var um=new Set,Di={};function qr(t,e){Fs(t,e),Fs(t+"Capture",e)}function Fs(t,e){for(Di[t]=e,t=0;t<e.length;t++)um.add(e[t])}var gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ju=Object.prototype.hasOwnProperty,Lw=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Rf={},Nf={};function $w(t){return ju.call(Nf,t)?!0:ju.call(Rf,t)?!1:Lw.test(t)?Nf[t]=!0:(Rf[t]=!0,!1)}function Mw(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function Dw(t,e,n,r){if(e===null||typeof e>"u"||Mw(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Qe(t,e,n,r,s,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var Ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ie[t]=new Qe(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ie[e]=new Qe(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ie[t]=new Qe(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ie[t]=new Qe(t,2,!1,t,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(t){Ie[t]=new Qe(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Ie[t]=new Qe(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Ie[t]=new Qe(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Ie[t]=new Qe(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Ie[t]=new Qe(t,5,!1,t.toLowerCase(),null,!1,!1)});var ed=/[\-:]([a-z])/g;function td(t){return t[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(t){var e=t.replace(ed,td);Ie[e]=new Qe(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(ed,td);Ie[e]=new Qe(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(ed,td);Ie[e]=new Qe(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Ie[t]=new Qe(t,1,!1,t.toLowerCase(),null,!1,!1)});Ie.xlinkHref=new Qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Ie[t]=new Qe(t,1,!1,t.toLowerCase(),null,!0,!0)});function nd(t,e,n,r){var s=Ie.hasOwnProperty(e)?Ie[e]:null;(s!==null?s.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(Dw(e,n,s,r)&&(n=null),r||s===null?$w(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):s.mustUseProperty?t[s.propertyName]=n===null?s.type===3?!1:"":n:(e=s.attributeName,r=s.attributeNamespace,n===null?t.removeAttribute(e):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var En=Iw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Po=Symbol.for("react.element"),ds=Symbol.for("react.portal"),fs=Symbol.for("react.fragment"),rd=Symbol.for("react.strict_mode"),Pu=Symbol.for("react.profiler"),cm=Symbol.for("react.provider"),dm=Symbol.for("react.context"),sd=Symbol.for("react.forward_ref"),Ru=Symbol.for("react.suspense"),Nu=Symbol.for("react.suspense_list"),id=Symbol.for("react.memo"),Dn=Symbol.for("react.lazy"),fm=Symbol.for("react.offscreen"),Af=Symbol.iterator;function ai(t){return t===null||typeof t!="object"?null:(t=Af&&t[Af]||t["@@iterator"],typeof t=="function"?t:null)}var ve=Object.assign,zl;function wi(t){if(zl===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);zl=e&&e[1]||""}return`
34`+zl+t}var Ul=!1;function Bl(t,e){if(!t||Ul)return"";Ul=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var r=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){r=u}t.call(e.prototype)}else{try{throw Error()}catch(u){r=u}t()}}
vendor: 4,200 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
35`),i=r.stack.split(`
36`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var l=`
37`+s[o].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{Ul=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?wi(t):""}function Fw(t){switch(t.tag){case 5:return wi(t.type);case 16:return wi("Lazy");case 13:return wi("Suspense");case 19:return wi("SuspenseList");case 0:case 2:case 15:return t=Bl(t.type,!1),t;case 11:return t=Bl(t.type.render,!1),t;case 1:return t=Bl(t.type,!0),t;default:return""}}function Au(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case fs:return"Fragment";case ds:return"Portal";case Pu:return"Profiler";case rd:return"StrictMode";case Ru:return"Suspense";case Nu:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case dm:return(t.displayName||"Context")+".Consumer";case cm:return(t._context.displayName||"Context")+".Provider";case sd:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case id:return e=t.displayName||null,e!==null?e:Au(t.type)||"Memo";case Dn:e=t._payload,t=t._init;try{return Au(t(e))}catch{}}return null}function zw(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Au(e);case 8:return e===rd?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function ar(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function hm(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Uw(t){var e=hm(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ro(t){t._valueTracker||(t._valueTracker=Uw(t))}function pm(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=hm(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function ma(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Ou(t,e){var n=e.checked;return ve({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Of(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=ar(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function mm(t,e){e=e.checked,e!=null&&nd(t,"checked",e,!1)}function Iu(t,e){mm(t,e);var n=ar(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Lu(t,e.type,n):e.hasOwnProperty("defaultValue")&&Lu(t,e.type,ar
vendor: 4,277 bytes, line 37
37(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function If(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Lu(t,e,n){(e!=="number"||ma(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var xi=Array.isArray;function Ss(t,e,n,r){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&r&&(t[n].defaultSelected=!0)}else{for(n=""+ar(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,r&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function $u(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(A(91));return ve({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Lf(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(A(92));if(xi(n)){if(1<n.length)throw Error(A(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:ar(n)}}function gm(t,e){var n=ar(e.value),r=ar(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function $f(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function vm(t){switch(t){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 Mu(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?vm(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var No,ym=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,s){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,s)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(No=No||document.createElement("div"),No.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=No.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Fi(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Ei={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},Bw=["Webkit","ms","Moz","O"];Object.keys(Ei).forEach(function(t){Bw.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Ei[e]=Ei[t]})});function wm(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Ei.hasOwnProperty(t)&&Ei[t]?(""+e).trim():e+"px"}function xm(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=wm(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,s):t[n]=s}}var Ww=ve({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 Du(t,e){if(e){if(Ww[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(A(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(A(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(A(61))}if(e.style!=null&&typeof e.style!="object")throw Error(A(62))}}function Fu(t,e){if(t.indexOf("-")===-1)return typeof e.is=="str
37ing";switch(t){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 zu=null;function od(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Uu=null,Es=null,ks=null;function Mf(t){if(t=po(t)){if(typeof Uu!="function")throw Error(A(280));var e=t.stateNode;e&&(e=el(e),Uu(t.stateNode,t.type,e))}}function bm(t){Es?ks?ks.push(t):ks=[t]:Es=t}function _m(){if(Es){var t=Es,e=ks;if(ks=Es=null,Mf(t),e)for(t=0;t<e.length;t++)Mf(e[t])}}function Sm(t,e){return t(e)}function Em(){}var Wl=!1;function km(t,e,n){if(Wl)return t(e,n);Wl=!0;try{return Sm(t,e,n)}finally{Wl=!1,(Es!==null||ks!==null)&&(Em(),_m())}}function zi(t,e){var n=t.stateNode;if(n===null)return null;var r=el(n);if(r===null)return null;n=r[e];e:switch(e){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)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(A(231,e,typeof n));return n}var Bu=!1;if(gn)try{var li={};Object.defineProperty(li,"passive",{get:function(){Bu=!0}}),window.addEventListener("test",li,li),window.removeEventListener("test",li,li)}catch{Bu=!1}function Vw(t,e,n,r,s,i,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(c){this.onError(c)}}var ki=!1,ga=null,va=!1,Wu=null,Hw={onError:function(t){ki=!0,ga=t}};function Kw(t,e,n,r,s,i,o,a,l){ki=!1,ga=null,Vw.apply(Hw,arguments)}function qw(t,e,n,r,s,i,o,a,l){if(Kw.apply(this,arguments),ki){if(ki){var u=ga;ki=!1,ga=null}else throw Error(A(198));va||(va=!0,Wu=u)}}function Gr(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function Cm(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Df(t){if(Gr(t)!==t)throw Error(A(188))}function Gw(t){var e=t.alternate;if(!e){if(e=Gr(t),e===null)throw Error(A(188));return e!==t?null:t}for(var n=t,r=e;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return Df(s),t;if(i===r)return Df(s),e;i=i.sibling}throw Error(A(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o)throw Error(A(189))}}if(n.alternate!==r)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?t:e}function Tm(t){return t=Gw(t),t!==null?jm(t):null}function jm(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=jm(t);if(e!==null)return e;t=t.sibling}return null}var Pm=dt.unstable_scheduleCallback,Ff=dt.unstable_cancelCallback,Qw=dt.unstable_shouldYield,Yw=dt.unstable_requestPaint,be=dt.unstable_now,Jw=dt.unstable_getCurrentPriorityLevel,ad=dt.unstable_ImmediatePriority,Rm=dt.unstable_UserBlockingPriority,ya=dt.unstable_NormalPriority,Xw=dt.unstable_LowPriority,Nm=dt.unstable_IdlePriority,Ya=null,en=null;function Zw(t){if(en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot(Ya,t,void 0,(t.current.flags&128)===128)}catch{}}var Ft=Math.clz32?Math.clz32:nx,ex=Math.log,tx=Math.LN2;function nx(t){return t>>>=0,t===0?32:31-(ex(t)/tx|0)|0}var Ao=64,Oo=4194304;function bi(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function wa(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,s=t.suspendedLanes,i=t.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=bi(a):(i&=o,i!==0&&(r=bi(i)))}else o=n&~s,o!==0?r=bi(o):i!==0&&(r=bi(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&s)&&(s=r&-r,i=e&-e,s>=i||s===16&&(i&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-Ft(e),s=1<<n,r|=t[n],e&=~s;return r}function rx(t,e){switch(t){case 1:case 2:case 4:return e+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 e+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 sx(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,s=t.expirationTimes,i=t.pendingLanes;0<i;){var o=31-Ft(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=rx(a,e)):l<=e&&(t.expiredLanes|=a),i&=~a}}function Vu(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Am(){var t=Ao;return Ao<<=1,!(Ao&4194240)&&(Ao=64),t}function Vl(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function fo(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-
vendor: 4,202 bytes, line 37
37Ft(e),t[e]=n}function ix(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var s=31-Ft(n),i=1<<s;e[s]=0,r[s]=-1,t[s]=-1,n&=~i}}function ld(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-Ft(n),s=1<<r;s&e|t[r]&e&&(t[r]|=e),n&=~s}}var ie=0;function Om(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var Im,ud,Lm,$m,Mm,Hu=!1,Io=[],Xn=null,Zn=null,er=null,Ui=new Map,Bi=new Map,Un=[],ox="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 zf(t,e){switch(t){case"focusin":case"focusout":Xn=null;break;case"dragenter":case"dragleave":Zn=null;break;case"mouseover":case"mouseout":er=null;break;case"pointerover":case"pointerout":Ui.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bi.delete(e.pointerId)}}function ui(t,e,n,r,s,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},e!==null&&(e=po(e),e!==null&&ud(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function ax(t,e,n,r,s){switch(e){case"focusin":return Xn=ui(Xn,t,e,n,r,s),!0;case"dragenter":return Zn=ui(Zn,t,e,n,r,s),!0;case"mouseover":return er=ui(er,t,e,n,r,s),!0;case"pointerover":var i=s.pointerId;return Ui.set(i,ui(Ui.get(i)||null,t,e,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,Bi.set(i,ui(Bi.get(i)||null,t,e,n,r,s)),!0}return!1}function Dm(t){var e=Cr(t.target);if(e!==null){var n=Gr(e);if(n!==null){if(e=n.tag,e===13){if(e=Cm(n),e!==null){t.blockedOn=e,Mm(t.priority,function(){Lm(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ta(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Ku(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);zu=r,n.target.dispatchEvent(r),zu=null}else return e=po(n),e!==null&&ud(e),t.blockedOn=n,!1;e.shift()}return!0}function Uf(t,e,n){ta(t)&&n.delete(e)}function lx(){Hu=!1,Xn!==null&&ta(Xn)&&(Xn=null),Zn!==null&&ta(Zn)&&(Zn=null),er!==null&&ta(er)&&(er=null),Ui.forEach(Uf),Bi.forEach(Uf)}function ci(t,e){t.blockedOn===e&&(t.blockedOn=null,Hu||(Hu=!0,dt.unstable_scheduleCallback(dt.unstable_NormalPriority,lx)))}function Wi(t){function e(s){return ci(s,t)}if(0<Io.length){ci(Io[0],t);for(var n=1;n<Io.length;n++){var r=Io[n];r.blockedOn===t&&(r.blockedOn=null)}}for(Xn!==null&&ci(Xn,t),Zn!==null&&ci(Zn,t),er!==null&&ci(er,t),Ui.forEach(e),Bi.forEach(e),n=0;n<Un.length;n++)r=Un[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<Un.length&&(n=Un[0],n.blockedOn===null);)Dm(n),n.blockedOn===null&&Un.shift()}var Cs=En.ReactCurrentBatchConfig,xa=!0;function ux(t,e,n,r){var s=ie,i=Cs.transition;Cs.transition=null;try{ie=1,cd(t,e,n,r)}finally{ie=s,Cs.transition=i}}function cx(t,e,n,r){var s=ie,i=Cs.transition;Cs.transition=null;try{ie=4,cd(t,e,n,r)}finally{ie=s,Cs.transition=i}}function cd(t,e,n,r){if(xa){var s=Ku(t,e,n,r);if(s===null)eu(t,e,r,ba,n),zf(t,r);else if(ax(s,t,e,n,r))r.stopPropagation();else if(zf(t,r),e&4&&-1<ox.indexOf(t)){for(;s!==null;){var i=po(s);if(i!==null&&Im(i),i=Ku(t,e,n,r),i===null&&eu(t,e,r,ba,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else eu(t,e,r,null,n)}}var ba=null;function Ku(t,e,n,r){if(ba=null,t=od(r),t=Cr(t),t!==null)if(e=Gr(t),e===null)t=null;else if(n=e.tag,n===13){if(t=Cm(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return ba=t,null}function Fm(t){switch(t){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"invali
37d":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(Jw()){case ad:return 1;case Rm:return 4;case ya:case Xw:return 16;case Nm:return 536870912;default:return 16}default:return 16}}var Qn=null,dd=null,na=null;function zm(){if(na)return na;var t,e=dd,n=e.length,r,s="value"in Qn?Qn.value:Qn.textContent,i=s.length;for(t=0;t<n&&e[t]===s[t];t++);var o=n-t;for(r=1;r<=o&&e[n-r]===s[i-r];r++);return na=s.slice(t,1<r?1-r:void 0)}function ra(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Lo(){return!0}function Bf(){return!1}function ht(t){function e(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(n=t[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Lo:Bf,this.isPropagationStopped=Bf,this}return ve(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Lo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Lo)},persist:function(){},isPersistent:Lo}),e}var Ys={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fd=ht(Ys),ho=ve({},Ys,{view:0,detail:0}),dx=ht(ho),Hl,Kl,di,Ja=ve({},ho,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hd,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==di&&(di&&t.type==="mousemove"?(Hl=t.screenX-di.screenX,Kl=t.screenY-di.screenY):Kl=Hl=0,di=t),Hl)},movementY:function(t){return"movementY"in t?t.movementY:Kl}}),Wf=ht(Ja),fx=ve({},Ja,{dataTransfer:0}),hx=ht(fx),px=ve({},ho,{relatedTarget:0}),ql=ht(px),mx=ve({},Ys,{animationName:0,elapsedTime:0,pseudoElement:0}),gx=ht(mx),vx=ve({},Ys,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),yx=ht(vx),wx=ve({},Ys,{data:0}),Vf=ht(wx),xx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bx={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"},_x={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sx(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=_x[t])?!!e[t]:!1}function hd(){return Sx}var Ex=ve({},ho,{key:function(t){if(t.key){var e=xx[t.key]||t.key;if(e!=="Unidentified")return e}
vendor: 6,028 bytes, line 37
37return t.type==="keypress"?(t=ra(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?bx[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hd,charCode:function(t){return t.type==="keypress"?ra(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ra(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),kx=ht(Ex),Cx=ve({},Ja,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hf=ht(Cx),Tx=ve({},ho,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hd}),jx=ht(Tx),Px=ve({},Ys,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rx=ht(Px),Nx=ve({},Ja,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Ax=ht(Nx),Ox=[9,13,27,32],pd=gn&&"CompositionEvent"in window,Ci=null;gn&&"documentMode"in document&&(Ci=document.documentMode);var Ix=gn&&"TextEvent"in window&&!Ci,Um=gn&&(!pd||Ci&&8<Ci&&11>=Ci),Kf=" ",qf=!1;function Bm(t,e){switch(t){case"keyup":return Ox.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var hs=!1;function Lx(t,e){switch(t){case"compositionend":return Wm(e);case"keypress":return e.which!==32?null:(qf=!0,Kf);case"textInput":return t=e.data,t===Kf&&qf?null:t;default:return null}}function $x(t,e){if(hs)return t==="compositionend"||!pd&&Bm(t,e)?(t=zm(),na=dd=Qn=null,hs=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Um&&e.locale!=="ko"?null:e.data;default:return null}}var Mx={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 Gf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Mx[t.type]:e==="textarea"}function Vm(t,e,n,r){bm(r),e=_a(e,"onChange"),0<e.length&&(n=new fd("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var Ti=null,Vi=null;function Dx(t){tg(t,0)}function Xa(t){var e=gs(t);if(pm(e))return t}function Fx(t,e){if(t==="change")return e}var Hm=!1;if(gn){var Gl;if(gn){var Ql="oninput"in document;if(!Ql){var Qf=document.createElement("div");Qf.setAttribute("oninput","return;"),Ql=typeof Qf.oninput=="function"}Gl=Ql}else Gl=!1;Hm=Gl&&(!document.documentMode||9<document.documentMode)}function Yf(){Ti&&(Ti.detachEvent("onpropertychange",Km),Vi=Ti=null)}function Km(t){if(t.propertyName==="value"&&Xa(Vi)){var e=[];Vm(e,Vi,t,od(t)),km(Dx,e)}}function zx(t,e,n){t==="focusin"?(Yf(),Ti=e,Vi=n,Ti.attachEvent("onpropertychange",Km)):t==="focusout"&&Yf()}function Ux(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Xa(Vi)}function Bx(t,e){if(t==="click")return Xa(e)}function Wx(t,e){if(t==="input"||t==="change")return Xa(e)}function Vx(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ut=typeof Object.is=="function"?Object.is:Vx;function Hi(t,e){if(Ut(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!ju.call(e,s)||!Ut(t[s],e[s]))return!1}return!0}function Jf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Xf(t,e){var n=Jf(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Jf(n)}}function qm(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?qm(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Gm(){for(var t=window,e=ma();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=ma(t.document)}return e}function md(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Hx(t){var e=Gm(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&qm(n.ownerDocument.documentElement,n)){if(r!==null&&md(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!t.extend&&i>r&&(s=r,r=i,i=s),s=Xf(n,i);var o=Xf(n,r);s&&o&&(t.rangeCount!==1||t.anchorNode!==s.node||t.anchorOffset!==s.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(s.node,s.offset),t.removeAllRanges(),i>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Kx=gn&&"documentMode"in document&&11>=document.documentMode,ps=null,qu=null,ji=null,Gu=!1;function Zf(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gu||ps==null||ps!==ma(r)||(r=ps,"selectionStart"in r&&md(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),ji&&Hi(ji,r)||(ji=r,r=_a(qu,"onSelect"),0<r.length&&(e=new fd("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=ps)))}function $o(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var ms={animationend:$o("Animation","AnimationEnd"),animationiteration:$o("Animation","AnimationIteration"),animationstart:$o("Animation","AnimationStart"),transitionend:$o("Transition","TransitionEnd")},Yl={},Qm={};gn&&(Qm=document.createElement("div").style,"AnimationEvent"in window||(delete ms.animationend.animation,delete ms.animationiteration.animation,delete ms.animationstart.animation),"TransitionEvent"in window||delete ms.transitionend.transition);function Za(t){if(Yl[t])return Yl[t];if(!ms[t])return t;var e=ms[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Qm)return Yl[t]=e[n];return t}var Ym=Za("animationend"),Jm=Za("animationiteration"),Xm=Za("animationstart"),Zm=Za("transitionend"),eg=new Map,eh="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 dr(t,e){eg.set(t,e),qr(e,[t])}for(var Jl=0;Jl<eh.length;Jl++){var Xl=eh[Jl],qx=Xl.toLowerCase(),Gx=Xl[0].toUpperCase()+Xl.slice(1);dr(qx,"on"+Gx)}dr(Ym,"onAnimationEnd");dr(Jm,"onAnimationIteration");dr(Xm,"onAnimationStart");dr("dblclick","onDoubleClick");dr("focusin","onFocus");dr("focusout","onBlur");dr(Zm,"onTransitionEnd");Fs("onMouseEnter",["mouseout","mouseover"]);Fs("onMouseLeave",["mouseout","mouseover"]);Fs("onPointerEnter",["pointerout","pointerover"]);Fs("onPointerLeave",["pointerout","pointerover"]);qr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));qr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));qr("onBeforeInput",["compositionend","keypress","textInput","paste"]);qr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));qr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));qr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _i="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(" "),Qx=new Set("cancel close invalid load scroll toggle".split(" ").concat(_i));function th(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,qw(r,e,void 0,t),t.currentTarget=null}function tg(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],s=r.event;r=r.listeners;e:{var i=void 0;if(e)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;th(s,a,u),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;th(s,a,u),i=l}}}if(va)throw t=Wu,va=!1,Wu=null,t}function de(t,e){var n=e[Zu];n===void 0&&(n=e[Zu]=new Set);var r=t+"__bubble";n.has(r)||(ng(e,t,2,!1),n.add(r))}function Zl(t,e,n){var r=0;e&&(r|=4),ng(n,t,r,e)}var Mo="_reactListening"+Math.random().toString(36).slice(2);function Ki(t){if(!t[Mo]){t[Mo]=!0,um.forEach(function(n){n!=="selectionchange"&&(Qx.has(n)||Zl(n,!1,t),Zl(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Mo]||(e[Mo]=!0,Zl("selectionchange",!1,e))}}function ng(t,e,n,r){switch(Fm(e)){case 1:var s=ux;break;case 4:s=cx;break;default:s=cd}n=s.bind(null,e,n,t),s=void 0,!Bu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),r?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function eu(t,e,n,r,s){var i=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;
vendor: 3,234 bytes, line 37
37if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=Cr(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}km(function(){var u=i,c=od(n),d=[];e:{var f=eg.get(t);if(f!==void 0){var p=fd,b=t;switch(t){case"keypress":if(ra(n)===0)break e;case"keydown":case"keyup":p=kx;break;case"focusin":b="focus",p=ql;break;case"focusout":b="blur",p=ql;break;case"beforeblur":case"afterblur":p=ql;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=Wf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=hx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=jx;break;case Ym:case Jm:case Xm:p=gx;break;case Zm:p=Rx;break;case"scroll":p=dx;break;case"wheel":p=Ax;break;case"copy":case"cut":case"paste":p=yx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Hf}var w=(e&4)!==0,v=!w&&t==="scroll",g=w?f!==null?f+"Capture":null:f;w=[];for(var m=u,y;m!==null;){y=m;var _=y.stateNode;if(y.tag===5&&_!==null&&(y=_,g!==null&&(_=zi(m,g),_!=null&&w.push(qi(m,_,y)))),v)break;m=m.return}0<w.length&&(f=new p(f,b,null,n,c),d.push({event:f,listeners:w}))}}if(!(e&7)){e:{if(f=t==="mouseover"||t==="pointerover",p=t==="mouseout"||t==="pointerout",f&&n!==zu&&(b=n.relatedTarget||n.fromElement)&&(Cr(b)||b[vn]))break e;if((p||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,p?(b=n.relatedTarget||n.toElement,p=u,b=b?Cr(b):null,b!==null&&(v=Gr(b),b!==v||b.tag!==5&&b.tag!==6)&&(b=null)):(p=null,b=u),p!==b)){if(w=Wf,_="onMouseLeave",g="onMouseEnter",m="mouse",(t==="pointerout"||t==="pointerover")&&(w=Hf,_="onPointerLeave",g="onPointerEnter",m="pointer"),v=p==null?f:gs(p),y=b==null?f:gs(b),f=new w(_,m+"leave",p,n,c),f.target=v,f.relatedTarget=y,_=null,Cr(c)===u&&(w=new w(g,m+"enter",b,n,c),w.target=y,w.relatedTarget=v,_=w),v=_,p&&b)t:{for(w=p,g=b,m=0,y=w;y;y=ns(y))m++;for(y=0,_=g;_;_=ns(_))y++;for(;0<m-y;)w=ns(w),m--;for(;0<y-m;)g=ns(g),y--;for(;m--;){if(w===g||g!==null&&w===g.alternate)break t;w=ns(w),g=ns(g)}w=null}else w=null;p!==null&&nh(d,f,p,w,!1),b!==null&&v!==null&&nh(d,v,b,w,!0)}}e:{if(f=u?gs(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var S=Fx;else if(Gf(f))if(Hm)S=Wx;else{S=Ux;var E=zx}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(S=Bx);if(S&&(S=S(t,u))){Vm(d,S,n,c);break e}E&&E(t,f,u),t==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&Lu(f,"number",f.value)}switch(E=u?gs(u):window,t){case"focusin":(Gf(E)||E.contentEditable==="true")&&(ps=E,qu=u,ji=null);break;case"focusout":ji=qu=ps=null;break;case"mousedown":Gu=!0;break;case"contextmenu":case"mouseup":case"dragend":Gu=!1,Zf(d,n,c);break;case"selectionchange":if(Kx)break;case"keydown":case"keyup":Zf(d,n,c)}var k;
vendor: 6,906 bytes, lines 37-38
37if(pd)e:{switch(t){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else hs?Bm(t,n)&&(T="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(Um&&n.locale!=="ko"&&(hs||T!=="onCompositionStart"?T==="onCompositionEnd"&&hs&&(k=zm()):(Qn=c,dd="value"in Qn?Qn.value:Qn.textContent,hs=!0)),E=_a(u,T),0<E.length&&(T=new Vf(T,t,null,n,c),d.push({event:T,listeners:E}),k?T.data=k:(k=Wm(n),k!==null&&(T.data=k)))),(k=Ix?Lx(t,n):$x(t,n))&&(u=_a(u,"onBeforeInput"),0<u.length&&(c=new Vf("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=k))}tg(d,e)})}function qi(t,e,n){return{instance:t,listener:e,currentTarget:n}}function _a(t,e){for(var n=e+"Capture",r=[];t!==null;){var s=t,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=zi(t,n),i!=null&&r.unshift(qi(t,i,s)),i=zi(t,e),i!=null&&r.push(qi(t,i,s))),t=t.return}return r}function ns(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function nh(t,e,n,r,s){for(var i=e._reactName,o=[];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=zi(n,i),l!=null&&o.unshift(qi(n,l,a))):s||(l=zi(n,i),l!=null&&o.push(qi(n,l,a)))),n=n.return}o.length!==0&&t.push({event:e,listeners:o})}var Yx=/\r\n?/g,Jx=/\u0000|\uFFFD/g;function rh(t){return(typeof t=="string"?t:""+t).replace(Yx,`
38`).replace(Jx,"")}function Do(t,e,n){if(e=rh(e),rh(t)!==e&&n)throw Error(A(425))}function Sa(){}var Qu=null,Yu=null;function Ju(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Xu=typeof setTimeout=="function"?setTimeout:void 0,Xx=typeof clearTimeout=="function"?clearTimeout:void 0,sh=typeof Promise=="function"?Promise:void 0,Zx=typeof queueMicrotask=="function"?queueMicrotask:typeof sh<"u"?function(t){return sh.resolve(null).then(t).catch(eb)}:Xu;function eb(t){setTimeout(function(){throw t})}function tu(t,e){var n=e,r=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){t.removeChild(s),Wi(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Wi(e)}function tr(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function ih(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var Js=Math.random().toString(36).slice(2),Jt="__reactFiber$"+Js,Gi="__reactProps$"+Js,vn="__reactContainer$"+Js,Zu="__reactEvents$"+Js,tb="__reactListeners$"+Js,nb="__reactHandles$"+Js;function Cr(t){var e=t[Jt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[vn]||n[Jt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=ih(t);t!==null;){if(n=t[Jt])return n;t=ih(t)}return e}t=n,n=t.parentNode}return null}function po(t){return t=t[Jt]||t[vn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function gs(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(A(33))}function el(t){return t[Gi]||null}var ec=[],vs=-1;function fr(t){return{current:t}}function fe(t){0>vs||(t.current=ec[vs],ec[vs]=null,vs--)}function le(t,e){vs++,ec[vs]=t.current,t.current=e}var lr={},Be=fr(lr),nt=fr(!1),Ur=lr;function zs(t,e){var n=t.type.contextTypes;if(!n)return lr;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=e[i];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function rt(t){return t=t.childContextTypes,t!=null}function Ea(){fe(nt),fe(Be)}function oh(t,e,n){if(Be.current!==lr)throw Error(A(168));le(Be,e),le(nt,n)}function rg(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in e))throw Error(A(108,zw(t)||"Unknown",s));return ve({},n,r)}function ka(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||lr,Ur=Be.current,le(Be,t),le(nt,nt.current),!0}function ah(t,e,n){var r=t.stateNode;if(!r)throw Error(A(169));n?(t=rg(t,e,Ur),r.__reactInternalMemoizedMergedChildContext=t,fe(nt),fe(Be),le(Be,t)):fe(nt),le(nt,n)}var dn=null,tl=!1,nu=!1;function sg(t){dn===null?dn=[t]:dn.push(t)}function rb(t){tl=!0,sg(t)}function hr(){if(!nu&&dn!==null){nu=!0;var t=0,e=ie;try{var n=dn;for(ie=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}dn=null,tl=!1}catch(s){throw dn!==null&&(dn=dn.slice(t+1)),Pm(ad,hr),s}finally{ie=e,nu=!1}}return null}var ys=[],ws=0,Ca=null,Ta=0,yt=[],wt=0,Br=null,hn=1,pn="";function br(t,e){ys[ws++]=Ta,ys[ws++]=Ca,Ca=t,Ta=e}function ig(t,e,n){yt[wt++]=hn,yt[wt++]=pn,yt[wt++]=Br,Br=t;var r=hn;t=pn;var s=32-Ft(r)-1;r&=~(1<<s),n+=1;var i=32-Ft(e)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,hn=1<<32-Ft(e)+s|n<<s|r,pn=i+t}else hn=1<<i|n<<s|r,pn=t}function gd(t){t.return!==null&&(br(t,1),ig(t,1,0))}function vd(t){for(;t===Ca;)Ca=ys[--ws],ys[ws]=null,Ta=ys[--ws],ys[ws]=null;for(;t===Br;)Br=yt[--wt],yt[wt]=null,pn=yt[--wt],yt[wt]=null,hn=yt[--wt],yt[wt]=null}var ut=null,lt=null,pe=!1,Dt=null;function og(t,e){var n=xt(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function lh(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,ut=t,lt=tr(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,ut=t,lt=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=Br!==null?{id:hn,overflow:pn}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=xt(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,ut=t,lt=null,!0):!1;default:return!1}}function tc(t){return(t.mode&1)!==0&&(t.flags&128)===0}function nc(t){if(pe){var e=lt;if(e){var n=e;if(!lh(t,e)){if(tc(t))throw Error(A(418));e=tr(n.nextSibling);var r=ut;e&&lh(t,e)?og(r,n):(t.flags=t.flags&-4097|2,pe=!1,ut=t)}}else{if(tc(t))throw Error(A(418));t.flags=t.flags&-4097|2,pe=!1,ut=t}}}function uh(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;ut=t}function Fo(t){if(t!==ut)return!1;if(!pe)return uh(t),pe=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Ju(t.type,t.memoizedProps)),e&&(e=lt)){if(tc(t))throw ag(),Error(A(418));for(;e;)og(t,e),e=tr(e.nextSibling)}if(uh(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(A(317));e:{for(t=t.nextSibling,e=0;t;
vendor: 25,595 bytes, lines 38-40
38){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){lt=tr(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}lt=null}}else lt=ut?tr(t.stateNode.nextSibling):null;return!0}function ag(){for(var t=lt;t;)t=tr(t.nextSibling)}function Us(){lt=ut=null,pe=!1}function yd(t){Dt===null?Dt=[t]:Dt.push(t)}var sb=En.ReactCurrentBatchConfig;function fi(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(A(309));var r=n.stateNode}if(!r)throw Error(A(147,t));var s=r,i=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===i?e.ref:(e=function(o){var a=s.refs;o===null?delete a[i]:a[i]=o},e._stringRef=i,e)}if(typeof t!="string")throw Error(A(284));if(!n._owner)throw Error(A(290,t))}return t}function zo(t,e){throw t=Object.prototype.toString.call(e),Error(A(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function ch(t){var e=t._init;return e(t._payload)}function lg(t){function e(g,m){if(t){var y=g.deletions;y===null?(g.deletions=[m],g.flags|=16):y.push(m)}}function n(g,m){if(!t)return null;for(;m!==null;)e(g,m),m=m.sibling;return null}function r(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function s(g,m){return g=ir(g,m),g.index=0,g.sibling=null,g}function i(g,m,y){return g.index=y,t?(y=g.alternate,y!==null?(y=y.index,y<m?(g.flags|=2,m):y):(g.flags|=2,m)):(g.flags|=1048576,m)}function o(g){return t&&g.alternate===null&&(g.flags|=2),g}function a(g,m,y,_){return m===null||m.tag!==6?(m=uu(y,g.mode,_),m.return=g,m):(m=s(m,y),m.return=g,m)}function l(g,m,y,_){var S=y.type;return S===fs?c(g,m,y.props.children,_,y.key):m!==null&&(m.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Dn&&ch(S)===m.type)?(_=s(m,y.props),_.ref=fi(g,m,y),_.return=g,_):(_=ca(y.type,y.key,y.props,null,g.mode,_),_.ref=fi(g,m,y),_.return=g,_)}function u(g,m,y,_){return m===null||m.tag!==4||m.stateNode.containerInfo!==y.containerInfo||m.stateNode.implementation!==y.implementation?(m=cu(y,g.mode,_),m.return=g,m):(m=s(m,y.children||[]),m.return=g,m)}function c(g,m,y,_,S){return m===null||m.tag!==7?(m=Fr(y,g.mode,_,S),m.return=g,m):(m=s(m,y),m.return=g,m)}function d(g,m,y){if(typeof m=="string"&&m!==""||typeof m=="number")return m=uu(""+m,g.mode,y),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Po:return y=ca(m.type,m.key,m.props,null,g.mode,y),y.ref=fi(g,null,m),y.return=g,y;case ds:return m=cu(m,g.mode,y),m.return=g,m;case Dn:var _=m._init;return d(g,_(m._payload),y)}if(xi(m)||ai(m))return m=Fr(m,g.mode,y,null),m.return=g,m;zo(g,m)}return null}function f(g,m,y,_){var S=m!==null?m.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return S!==null?null:a(g,m,""+y,_);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Po:return y.key===S?l(g,m,y,_):null;case ds:return y.key===S?u(g,m,y,_):null;case Dn:return S=y._init,f(g,m,S(y._payload),_)}if(xi(y)||ai(y))return S!==null?null:c(g,m,y,_,null);zo(g,y)}return null}function p(g,m,y,_,S){if(typeof _=="string"&&_!==""||typeof _=="number")return g=g.get(y)||null,a(m,g,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Po:return g=g.get(_.key===null?y:_.key)||null,l(m,g,_,S);case ds:return g=g.get(_.key===null?y:_.key)||null,u(m,g,_,S);case Dn:var E=_._init;return p(g,m,y,E(_._payload),S)}if(xi(_)||ai(_))return g=g.get(y)||null,c(m,g,_,S,null);zo(m,_)}return null}function b(g,m,y,_){for(var S=null,E=null,k=m,T=m=0,C=null;k!==null&&T<y.length;T++){k.index>T?(C=k,k=null):C=k.sibling;var N=f(g,k,y[T],_);if(N===null){k===null&&(k=C);break}t&&k&&N.alternate===null&&e(g,k),m=i(N,m,T),E===null?S=N:E.sibling=N,E=N,k=C}if(T===y.length)return n(g,k),pe&&br(g,T),S;if(k===null){for(;T<y.length;T++)k=d(g,y[T],_),k!==null&&(m=i(k,m,T),E===null?S=k:E.sibling=k,E=k);return pe&&br(g,T),S}for(k=r(g,k);T<y.length;T++)C=p(k,g,T,y[T],_),C!==null&&(t&&C.alternate!==null&&k.delete(C.key===null?T:C.key),m=i(C,m,T),E===null?S=C:E.sibling=C,E=C);return t&&k.forEach(function(D){return e(g,D)}),pe&&br(g,T),S}function w(g,m,y,_){var S=ai(y);if(typeof S!="function")throw Error(A(150));if(y=S.call(y),y==null)throw Error(A(151));for(var E=S=null,k=m,T=m=0,C=null,N=y.next();k!==null&&!N.done;T++,N=y.next()){k.index>T?(C=k,k=null):C=k.sibling;var D=f(g,k,N.value,_);if(D===null){k===null&&(k=C);break}t&&k&&D.alternate===null&&e(g,k),m=i(D,m,T),E===null?S=D:E.sibling=D,E=D,k=C}if(N.done)return n(g,k),pe&&br(g,T),S;if(k===null){for(;!N.done;T++,N=y.next())N=d(g,N.value,_),N!==null&&(m=i(N,m,T),E===null?S=N:E.sibling=N,E=N);return pe&&br(g,T),S}for(k=r(g,k);!N.done;T++,N=y.next())N=p(k,g,T,N.value,_),N!==null&&(t&&N.alternate!==null&&k.delete(N.key===null?T:N.key),m=i(N,m,T),E===null?S=N:E.sibling=N,E=N);return t&&k.forEach(function(L){return e(g,L)}),pe&&br(g,T),S}function v(g,m,y,_){if(typeof y=="object"&&y!==null&&y.type===fs&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Po:e:{for(var S=y.key,E=m;E!==null;){if(E.key===S){if(S=y.type,S===fs){if(E.tag===7){n(g,E.sibling),m=s(E,y.props.children),m.return=g,g=m;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Dn&&ch(S)===E.type){n(g,E.sibling),m=s(E,y.props),m.ref=fi(g,E,y),m.return=g,g=m;break e}n(g,E);break}else e(g,E);E=E.sibling}y.type===fs?(m=Fr(y.props.children,g.mode,_,y.key),m.return=g,g=m):(_=ca(y.type,y.key,y.props,null,g.mode,_),_.ref=fi(g,m,y),_.return=g,g=_)}return o(g);case ds:e:{for(E=y.key;m!==null;){if(m.key===E)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(g,m.sibling),m=s(m,y.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else e(g,m);m=m.sibling}m=cu(y,g.mode,_),m.return=g,g=m}return o(g);case Dn:return E=y._init,v(g,m,E(y._payload),_)}if(xi(y))return b(g,m,y,_);if(ai(y))return w(g,m,y,_);zo(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(g,m.sibling),m=s(m,y),m.return=g,g=m):(n(g,m),m=uu(y,g.mode,_),m.return=g,g=m),o(g)):n(g,m)}return v}var Bs=lg(!0),ug=lg(!1),ja=fr(null),Pa=null,xs=null,wd=null;function xd(){wd=xs=Pa=null}function bd(t){var e=ja.current;fe(ja),t._currentValue=e}function rc(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function Ts(t,e){Pa=t,wd=xs=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(et=!0),t.firstContext=null)}function kt(t){var e=t._currentValue;if(wd!==t)if(t={context:t,memoizedValue:e,next:null},xs===null){if(Pa===null)throw Error(A(308));xs=t,Pa.dependencies={lanes:0,firstContext:t}}else xs=xs.next=t;return e}var Tr=null;function _d(t){Tr===null?Tr=[t]:Tr.push(t)}function cg(t,e,n,r){var s=e.interleaved;return s===null?(n.next=n,_d(e)):(n.next=s.next,s.next=n),e.interleaved=n,yn(t,r)}function yn(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var Fn=!1;function Sd(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dg(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function mn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function nr(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,Z&2){var s=r.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),r.pending=e,yn(t,n)}return s=r.interleaved,s===null?(e.next=e,_d(r)):(e.next=s.next,s.next=e),r.interleaved=e,yn(t,n)}function sa(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,ld(t,n)}}function dh(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=e:i=i.next=e}else s=i=e;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Ra(t,e,n,r){var s=t.updateQueue;Fn=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var c=t.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=s.baseState;o=0,c=u=l=null,a=i;do{var f=a.lane,p=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=t,w=a;switch(f=e,p=n,w.tag){case 1:if(b=w.payload,typeof b=="function"){d=b.call(p,d,f);break e}d=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=w.payload,f=typeof b=="function"?b.call(p,d,f):b,f==null)break e;d=ve({},d,f);break e;case 2:Fn=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,f=s.effects,f===null?s.effects=[a]:f.push(a))}else p={eventTime:p,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=p,l=d):c=c.next=p,o|=f;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;f=a,a=f.next,f.next=null,s.lastBaseUpdate=f,s.shared.pending=null}}while(!0);if(c===null&&(l=d),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=c,e=s.shared.interleaved,e!==null){s=e;do o|=s.lane,s=s.next;while(s!==e)}else i===null&&(s.shared.lanes=0);Vr|=o,t.lanes=o,t.memoizedState=d}}function fh(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(A(191,s));s.call(r)}}}var mo={},tn=fr(mo),Qi=fr(mo),Yi=fr(mo);function jr(t){if(t===mo)throw Error(A(174));return t}function Ed(t,e){switch(le(Yi,e),le(Qi,t),le(tn,mo),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Mu(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Mu(e,t)}fe(tn),le(tn,e)}function Ws(){fe(tn),fe(Qi),fe(Yi)}function fg(t){jr(Yi.current);var e=jr(tn.current),n=Mu(e,t.type);e!==n&&(le(Qi,t),le(tn,n))}function kd(t){Qi.current===t&&(fe(tn),fe(Qi))}var me=fr(0);function Na(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ru=[];function Cd(){for(var t=0;t<ru.length;t++)ru[t]._workInProgressVersionPrimary=null;ru.length=0}var ia=En.ReactCurrentDispatcher,su=En.ReactCurrentBatchConfig,Wr=0,ge=null,Ce=null,Pe=null,Aa=!1,Pi=!1,Ji=0,ib=0;function Me(){throw Error(A(321))}function Td(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Ut(t[n],e[n]))return!1;return!0}function jd(t,e,n,r,s,i){if(Wr=i,ge=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,ia.current=t===null||t.memoizedState===null?ub:cb,t=n(r,s),Pi){i=0;do{if(Pi=!1,Ji=0,25<=i)throw Error(A(301));i+=1,Pe=Ce=null,e.updateQueue=null,ia.current=db,t=n(r,s)}while(Pi)}if(ia.current=Oa,e=Ce!==null&&Ce.next!==null,Wr=0,Pe=Ce=ge=null,Aa=!1,e)throw Error(A(300));return t}function Pd(){var t=Ji!==0;return Ji=0,t}function Kt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?ge.memoizedState=Pe=t:Pe=Pe.next=t,Pe}function Ct(){if(Ce===null){var t=ge.alternate;t=t!==null?t.memoizedState:null}else t=Ce.next;var e=Pe===null?ge.memoizedState:Pe.next;if(e!==null)Pe=e,Ce=t;else{if(t===null)throw Error(A(310));Ce=t,t={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Pe===null?ge.memoizedState=Pe=t:Pe=Pe.next=t}return Pe}function Xi(t,e){return typeof e=="function"?e(t):e}function iu(t){var e=Ct(),n=e.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=t;var r=Ce,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,l=null,u=i;do{var c=u.lane;if((Wr&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:t(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,ge.lanes|=c,Vr|=c}u=u.next}while(u!==null&&u!==i);l===null?o=r:l.next=a,Ut(r,e.memoizedState)||(et=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=l,n.lastRenderedState=r}if(t=n.interleaved,t!==null){s=t;do i=s.lane,ge.lanes|=i,Vr|=i,s=s.next;while(s!==t)}else s===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function ou(t){var e=Ct(),n=e.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=t;var r=n.dispatch,s=n.pending,i=e.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=t(i,o.action),o=o.next;while(o!==s);Ut(i,e.memoizedState)||(et=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,r]}function hg(){}function pg(t,e){var n=ge,r=Ct(),s=e(),i=!Ut(r.memoizedState,s);if(i&&(r.memoizedState=s,et=!0),r=r.queue,Rd(vg.bind(null,n,r,t),[t]),r.getSnapshot!==e||i||Pe!==null&&Pe.memoizedState.tag&1){if(n.flags|=2048,Zi(9,gg.bind(null,n,r,s,e),void 0,null),Ne===null)throw Error(A(349));Wr&30||mg(n,e,s)}return s}function mg(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ge.updateQueue,e===null?(e={lastEffect:null,stores:null},ge.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function gg(t,e,n,r){e.value=n,e.getSnapshot=r,yg(e)&&wg(t)}function vg(t,e,n){return n(function(){yg(e)&&wg(t)})}function yg(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ut(t,n)}catch{return!0}}function wg(t){var e=yn(t,1);e!==null&&zt(e,t,1,-1)}function hh(t){var e=Kt();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xi,lastRenderedState:t},e.queue=t,t=t.dispatch=lb.bind(null,ge,t),[e.memoizedState,t]}function Zi(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=ge.updateQueue,e===null?(e={lastEffect:null,stores:null},ge.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function xg(){return Ct().memoizedState}function oa(t,e,n,r){var s=Kt();ge.flags|=t,s.memoizedState=Zi(1|e,n,void 0,r===void 0?null:r)}function nl(t,e,n,r){var s=Ct();r=r===void 0?null:r;var i=void 0;if(Ce!==null){var o=Ce.memoizedState;if(i=o.destroy,r!==null&&Td(r,o.deps)){s.memoizedState=Zi(e,n,i,r);return}}ge.flags|=t,s.memoizedState=Zi(1|e,n,i,r)}function ph(t,e){return oa(8390656,8,t,e)}function Rd(t,e){return nl(2048,8,t,e)}function bg(t,e){return nl(4,2,t,e)}function _g(t,e){return nl(4,4,t,e)}function Sg(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Eg(t,e,n){return n=n!=null?n.concat([t]):null,nl(4,4,Sg.bind(null,e,t),n)}function Nd(){}function kg(t,e){var n=Ct();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&Td(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function Cg(t,e){var n=Ct();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&Td(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function Tg(t,e,n){return Wr&21?(Ut(n,e)||(n=Am(),ge.lanes|=n,Vr|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,et=!0),t.memoizedState=n)}function ob(t,e){var n=ie;ie=n!==0&&4>n?n:4,t(!0);var r=su.transition;su.transition={};try{t(!1),e()}finally{ie=n,su.transition=r}}function jg(){return Ct().memoizedState}function ab(t,e,n){var r=sr(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Pg(t))Rg(e,n);else if(n=cg(t,e,n,r),n!==null){var s=qe();zt(n,t,r,s),Ng(n,e,r)}}function lb(t,e,n){var r=sr(t),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pg(t))Rg(e,s);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,Ut(a,o)){var l=e.interleaved;l===null?(s.next=s,_d(e)):(s.next=l.next,l.next=s),e.interleaved=s;return}}catch{}finally{}n=cg(t,e,s,r),n!==null&&(s=qe(),zt(n,t,r,s),Ng(n,e,r))}}function Pg(t){var e=t.alternate;return t===ge||e!==null&&e===ge}function Rg(t,e){Pi=Aa=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Ng(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,ld(t,n)}}var Oa={readContext:kt,useCallback:Me,useContext:Me,useEffect:Me,useImperativeHandle:Me,useInsertionEffect:Me,useLayoutEffect:Me,useMemo:Me,useReducer:Me,useRef:Me,useState:Me,useDebugValue:Me,useDeferredValue:Me,useTransition:Me,useMutableSource:Me,useSyncExternalStore:Me,useId:Me,unstable_isNewReconciler:!1},ub={readContext:kt,useCallback:function(t,e){return Kt().memoizedState=[t,e===void 0?null:e],t},useContext:kt,useEffect:ph,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,oa(4194308,4,Sg.bind(null,e,t),n)},useLayoutEffect:function(t,e){return oa(4194308,4,t,e)},useInsertionEffect:function(t,e){return oa(4,2,t,e)},useMemo:function(t,e){var n=Kt();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Kt();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=ab.bind(null,ge,t),[r.memoizedState,t]},useRef:function(t){var e=Kt();return t={current:t},e.memoizedState=t},useState:hh,useDebugValue:Nd,useDeferredValue:function(t){return Kt().memoizedState=t},useTransition:function(){var t=hh(!1),e=t[0];return t=ob.bind(null,t[1]),Kt().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=ge,s=Kt();if(pe){if(n===void 0)throw Error(A(407));n=n()}else{if(n=e(),Ne===null)throw Error(A(349));Wr&30||mg(r,e,n)}s.memoizedState=n;var i={value:n,getSnapshot:e};return s.queue=i,ph(vg.bind(null,r,i,t),[t]),r.flags|=2048,Zi(9,gg.bind(null,r,i,n,e),void 0,null),n},useId:function(){var t=Kt(),e=Ne.identifierPrefix;if(pe){var n=pn,r=hn;n=(r&~(1<<32-Ft(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=Ji++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=ib++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},cb={readContext:kt,useCallback:kg,useContext:kt,useEffect:Rd,useImperativeHandle:Eg,useInsertionEffect:bg,useLayoutEffect:_g,useMemo:Cg,useReducer:iu,useRef:xg,useState:function(){return iu(Xi)},useDebugValue:Nd,useDeferredValue:function(t){var e=Ct();return Tg(e,Ce.memoizedState,t)},useTransition:function(){var t=iu(Xi)[0],e=Ct().memoizedState;return[t,e]},useMutableSource:hg,useSyncExternalStore:pg,useId:jg,unstable_isNewReconciler:!1},db={readContext:kt,useCallback:kg,useContext:kt,useEffect:Rd,useImperativeHandle:Eg,useInsertionEffect:bg,useLayoutEffect:_g,useMemo:Cg,useReducer:ou,useRef:xg,useState:function(){return ou(Xi)},useDebugValue:Nd,useDeferredValue:function(t){var e=Ct();return Ce===null?e.memoizedState=t:Tg(e,Ce.memoizedState,t)},useTransition:function(){var t=ou(Xi)[0],e=Ct().memoizedState;return[t,e]},useMutableSource:hg,useSyncExternalStore:pg,useId:jg,unstable_isNewReconciler:!1};function At(t,e){if(t&&t.defaultProps){e=ve({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function sc(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:ve({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var rl={isMounted:function(t){return(t=t._reactInternals)?Gr(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=qe(),s=sr(t),i=mn(r,s);i.payload=e,n!=null&&(i.callback=n),e=nr(t,i,s),e!==null&&(zt(e,t,s,r),sa(e,t,s))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=qe(),s=sr(t),i=mn(r,s);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=nr(t,i,s),e!==null&&(zt(e,t,s,r),sa(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=qe(),r=sr(t),s=mn(n,r);s.tag=2,e!=null&&(s.callback=e),e=nr(t,s,r),e!==null&&(zt(e,t,r,n),sa(e,t,r))}};function mh(t,e,n,r,s,i,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,i,o):e.prototype&&e.prototype.isPureReactComponent?!Hi(n,r)||!Hi(s,i):!0}function Ag(t,e,n){var r=!1,s=lr,i=e.contextType;return typeof i=="object"&&i!==null?i=kt(i):(s=rt(e)?Ur:Be.current,r=e.contextTypes,i=(r=r!=null)?zs(t,s):lr),e=new e(n,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=rl,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=s,t.__reactInternalMemoizedMaskedChildContext=i),e}function gh(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&rl.enqueueReplaceState(e,e.state,null)}function ic(t,e,n,r){var s=t.stateNode;s.props=n,s.state=t.memoizedState,s.refs={},Sd(t);var i=e.contextType;typeof i=="object"&&i!==null?s.context=kt(i):(i=rt(e)?Ur:Be.current,s.context=zs(t,i)),s.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(sc(t,e,i,n),s.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(e=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),e!==s.state&&rl.enqueueReplaceState(s,s.state,null),Ra(t,n,s,r),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308)}function Vs(t,e){try{var n="",r=e;do n+=Fw(r),r=r.return;while(r);var s=n}catch(i){s=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:t,source:e,stack:s,digest:null}}function au(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function oc(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var fb=typeof WeakMap=="function"?WeakMap:Map;function Og(t,e,n){n=mn(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){La||(La=!0,gc=r),oc(t,e)},n}function Ig(t,e,n){n=mn(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var s=e.value;n.payload=function(){return r(s)},n.callback=function(){oc(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){oc(t,e),typeof r!="function"&&(rr===null?rr=new Set([this]):rr.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function vh(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new fb;var s=new Set;r.set(e,s)}else s=r.get(e),s===void 0&&(s=new Set,r.set(e,s));s.has(n)||(s.add(n),t=Cb.bind(null,t,e,n),e.then(t,t))}function yh(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function wh(t,e,n,r,s){return t.mode&1?(t.flags|=65536,t.lanes=s,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=mn(-1,1),e.tag=2,nr(n,e,1))),n.lanes|=1),t)}var hb=En.ReactCurrentOwner,et=!1;function Ve(t,e,n,r){e.child=t===null?ug(e,null,n,r):Bs(e,t.child,n,r)}function xh(t,e,n,r,s){n=n.render;var i=e.ref;return Ts(e,s),r=jd(t,e,n,r,i,s),n=Pd(),t!==null&&!et?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,wn(t,e,s)):(pe&&n&&gd(e),e.flags|=1,Ve(t,e,r,s),e.child)}function bh(t,e,n,r,s){if(t===null){var i=n.type;return typeof i=="function"&&!Fd(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=i,Lg(t,e,i,r,s)):(t=ca(n.type,null,r,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!(t.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Hi,n(o,r)&&t.ref===e.ref)return wn(t,e,s)}return e.flags|=1,t=ir(i,r),t.ref=e.ref,t.return=e,e.child=t}function Lg(t,e,n,r,s){if(t!==null){var i=t.memoizedProps;if(Hi(i,r)&&t.ref===e.ref)if(et=!1,e.pendingProps=r=i,(t.lanes&s)!==0)t.flags&131072&&(et=!0);else return e.lanes=t.lanes,wn(t,e,s)}return ac(t,e,n,r,s)}function $g(t,e,n){var r=e.pendingProps,s=r.children,i=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},le(_s,ot),ot|=n;else{if(!(n&1073741824))return t=i!==null?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,le(_s,ot),ot|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,le(_s,ot),ot|=r}else i!==null?(r=i.baseLanes|n,e.memoizedState=null):r=n,le(_s,ot),ot|=r;return Ve(t,e,s,n),e.child}function Mg(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}
vendor: 4,571 bytes, line 40
40function ac(t,e,n,r,s){var i=rt(n)?Ur:Be.current;return i=zs(e,i),Ts(e,s),n=jd(t,e,n,r,i,s),r=Pd(),t!==null&&!et?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,wn(t,e,s)):(pe&&r&&gd(e),e.flags|=1,Ve(t,e,n,s),e.child)}function _h(t,e,n,r,s){if(rt(n)){var i=!0;ka(e)}else i=!1;if(Ts(e,s),e.stateNode===null)aa(t,e),Ag(e,n,r),ic(e,n,r,s),r=!0;else if(t===null){var o=e.stateNode,a=e.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=kt(u):(u=rt(n)?Ur:Be.current,u=zs(e,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&gh(e,o,r,u),Fn=!1;var f=e.memoizedState;o.state=f,Ra(e,r,o,s),l=e.memoizedState,a!==r||f!==l||nt.current||Fn?(typeof c=="function"&&(sc(e,n,c,r),l=e.memoizedState),(a=Fn||mh(e,n,a,r,f,l,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{o=e.stateNode,dg(t,e),a=e.memoizedProps,u=e.type===e.elementType?a:At(e.type,a),o.props=u,d=e.pendingProps,f=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=kt(l):(l=rt(n)?Ur:Be.current,l=zs(e,l));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||f!==l)&&gh(e,o,r,l),Fn=!1,f=e.memoizedState,o.state=f,Ra(e,r,o,s);var b=e.memoizedState;a!==d||f!==b||nt.current||Fn?(typeof p=="function"&&(sc(e,n,p,r),b=e.memoizedState),(u=Fn||mh(e,n,u,r,f,b,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,b,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,b,l)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=b),o.props=r,o.state=b,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),r=!1)}return lc(t,e,n,r,i,s)}function lc(t,e,n,r,s,i){Mg(t,e);var o=(e.flags&128)!==0;if(!r&&!o)return s&&ah(e,n,!1),wn(t,e,i);r=e.stateNode,hb.current=e;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&o?(e.child=Bs(e,t.child,null,i),e.child=Bs(e,null,a,i)):Ve(t,e,a,i),e.memoizedState=r.state,s&&ah(e,n,!0),e.child}function Dg(t){var e=t.stateNode;e.pendingContext?oh(t,e.pendingContext,e.pendingContext!==e.context):e.context&&oh(t,e.context,!1),Ed(t,e.containerInfo)}function Sh(t,e,n,r,s){return Us(),yd(s),e.flags|=256,Ve(t,e,n,r),e.child}var uc={dehydrated:null,treeContext:null,retryLane:0};function cc(t){return{baseLanes:t,cachePool:null,transitions:null}}function Fg(t,e,n){var r=e.pendingProps,s=me.current,i=!1,o=(e.flags&128)!==0,a;if((a=o)||(a=t!==null&&t.memoizedState===null?!1:(s&2)!==0),a?(i=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(s|=1),le(me,s&1),t===null)return nc(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=r.children,t=r.fallback,i?(r=e.mode,i=e.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=ol(o,r,0,null),t=Fr(t,r,n,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=cc(n),e.memoizedState=uc,t):Ad(e,o));if(s=t.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return pb(t,e,o,r,a,s,n);if(i){i=r.fallback,o=e.mode,s=t.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&e.child!==s?(r=e.child,r.childLanes=0,r.pendingProps=l,e.deletions=null):(r=ir(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=ir
vendor: 5,588 bytes, line 40
40(a,i):(i=Fr(i,o,n,null),i.flags|=2),i.return=e,r.return=e,r.sibling=i,e.child=r,r=i,i=e.child,o=t.child.memoizedState,o=o===null?cc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=t.childLanes&~n,e.memoizedState=uc,r}return i=t.child,t=i.sibling,r=ir(i,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function Ad(t,e){return e=ol({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Uo(t,e,n,r){return r!==null&&yd(r),Bs(e,t.child,null,n),t=Ad(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function pb(t,e,n,r,s,i,o){if(n)return e.flags&256?(e.flags&=-257,r=au(Error(A(422))),Uo(t,e,o,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=r.fallback,s=e.mode,r=ol({mode:"visible",children:r.children},s,0,null),i=Fr(i,s,o,null),i.flags|=2,r.return=e,i.return=e,r.sibling=i,e.child=r,e.mode&1&&Bs(e,t.child,null,o),e.child.memoizedState=cc(o),e.memoizedState=uc,i);if(!(e.mode&1))return Uo(t,e,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(A(419)),r=au(i,r,void 0),Uo(t,e,o,r)}if(a=(o&t.childLanes)!==0,et||a){if(r=Ne,r!==null){switch(o&-o){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|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,yn(t,s),zt(r,t,s,-1))}return Dd(),r=au(Error(A(421))),Uo(t,e,o,r)}return s.data==="$?"?(e.flags|=128,e.child=t.child,e=Tb.bind(null,t),s._reactRetry=e,null):(t=i.treeContext,lt=tr(s.nextSibling),ut=e,pe=!0,Dt=null,t!==null&&(yt[wt++]=hn,yt[wt++]=pn,yt[wt++]=Br,hn=t.id,pn=t.overflow,Br=e),e=Ad(e,r.children),e.flags|=4096,e)}function Eh(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),rc(t.return,e,n)}function lu(t,e,n,r,s){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function zg(t,e,n){var r=e.pendingProps,s=r.revealOrder,i=r.tail;if(Ve(t,e,r.children,n),r=me.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Eh(t,n,e);else if(t.tag===19)Eh(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(le(me,r),!(e.mode&1))e.memoizedState=null;else switch(s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&Na(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),lu(e,!1,s,n,i);break;case"backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&Na(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}lu(e,!0,n,null,i);break;case"together":lu(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function aa(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function wn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Vr|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(A(153));if(e.child!==null){for(t=e.child,n=ir(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=ir(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function mb(t,e,n){switch(e.tag){case 3:Dg(e),Us();break;case 5:fg(e);break;case 1:rt(e.type)&&ka(e);break;case 4:Ed(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,s=e.memoizedProps.value;le(ja,r._currentValue),r._currentValue=s;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(le(me,me.current&1),e.flags|=128,null):n&e.child.childLanes?Fg(t,e,n):(le(me,me.current&1),t=wn(t,e,n),t!==null?t.sibling:null);le(me,me.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return zg(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),le(me,me.current),r)break;return null;case 22:case 23:return e.lanes=0,$g(t,e,n)}return wn(t,e,n)}var Ug,dc,Bg,Wg;Ug=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};dc=function(){};Bg=function(t,e,n,r){var s=t.memoizedProps;if(s!==r){t=e.stateNode,jr(tn.current);var i=null;switch(n){case"input":s=Ou(t,s),r=Ou(t,r),i=[];break;case"select":s=ve({},s,{value:void 0}),r=ve({},r,{value:void 0}),i=[];break;case"textarea":s=$u(t,s),r=$u(t,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=Sa)}Du(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Di.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];
vendor: 5,266 bytes, line 40
40if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Di.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&de("scroll",t),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(e.updateQueue=u)&&(e.flags|=4)}};Wg=function(t,e,n,r){n!==r&&(e.flags|=4)};function hi(t,e){if(!pe)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function De(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function gb(t,e,n){var r=e.pendingProps;switch(vd(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(e),null;case 1:return rt(e.type)&&Ea(),De(e),null;case 3:return r=e.stateNode,Ws(),fe(nt),fe(Be),Cd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(Fo(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Dt!==null&&(wc(Dt),Dt=null))),dc(t,e),De(e),null;case 5:kd(e);var s=jr(Yi.current);if(n=e.type,t!==null&&e.stateNode!=null)Bg(t,e,n,r,s),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(A(166));return De(e),null}if(t=jr(tn.current),Fo(e)){r=e.stateNode,n=e.type;var i=e.memoizedProps;switch(r[Jt]=e,r[Gi]=i,t=(e.mode&1)!==0,n){case"dialog":de("cancel",r),de("close",r);break;case"iframe":case"object":case"embed":de("load",r);break;case"video":case"audio":for(s=0;s<_i.length;s++)de(_i[s],r);break;case"source":de("error",r);break;case"img":case"image":case"link":de("error",r),de("load",r);break;case"details":de("toggle",r);break;case"input":Of(r,i),de("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},de("invalid",r);break;case"textarea":Lf(r,i),de("invalid",r)}Du(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Do(r.textContent,a,t),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Do(r.textContent,a,t),s=["children",""+a]):Di.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&de("scroll",r)}switch(n){case"input":Ro(r),If(r,i,!0);break;case"textarea":Ro(r),$f(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Sa)}r=s,e.updateQueue=r,r!==null&&(e.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=vm(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[Jt]=e,t[Gi]=r,Ug(t,e,!1,!1),e.stateNode=t;e:{switch(o=Fu(n,r),n){case"dialog":de("cancel",t),de("close",t),s=r;break;case"iframe":case"object":case"embed":de("load",t),s=r;break;case"video":case"audio":for(s=0;s<_i.length;s++)de(_i[s],t);s=r;break;case"source":de("error",t),s=r;break;case"img":case"image":case"link":de("error",t),de("load",t),s=r;break;case"details":de("toggle",t),s=r;break;case"input":Of(t,r),s=Ou(t,r),de("invalid",t);break;case"option":s=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},s=ve({},r,{value:void 0}),de("invalid",t);break;case"textarea":Lf(t,r),s=$u(t,r),de("invalid",t);break;default:s=r}Du(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?xm(t,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&ym(t,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Fi(t,l):typeof l=="number"&&Fi(t,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Di.hasOwnProperty(i)?l!=null&&i==="onScroll"&&de("scroll",t):l!=null&&nd(t,i,l,o))}switch(n){case"input":Ro(t),If(t,r,!1);break;case"textarea":Ro(t),$f(t);break;case"option":r.value!=null&&t.setAttribute("value",""+ar(r.value));break;case"select":t.multiple=!!r.multiple,i=r.value,i!=null?Ss(t,!!r.multiple,i,!1):r.defaultValue!=null&&Ss(t,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(t.onclick=Sa)}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&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}
vendor: 28,566 bytes, line 40
40return De(e),null;case 6:if(t&&e.stateNode!=null)Wg(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(A(166));if(n=jr(Yi.current),jr(tn.current),Fo(e)){if(r=e.stateNode,n=e.memoizedProps,r[Jt]=e,(i=r.nodeValue!==n)&&(t=ut,t!==null))switch(t.tag){case 3:Do(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Do(r.nodeValue,n,(t.mode&1)!==0)}i&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Jt]=e,e.stateNode=r}return De(e),null;case 13:if(fe(me),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(pe&&lt!==null&&e.mode&1&&!(e.flags&128))ag(),Us(),e.flags|=98560,i=!1;else if(i=Fo(e),r!==null&&r.dehydrated!==null){if(t===null){if(!i)throw Error(A(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(A(317));i[Jt]=e}else Us(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;De(e),i=!1}else Dt!==null&&(wc(Dt),Dt=null),i=!0;if(!i)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||me.current&1?Te===0&&(Te=3):Dd())),e.updateQueue!==null&&(e.flags|=4),De(e),null);case 4:return Ws(),dc(t,e),t===null&&Ki(e.stateNode.containerInfo),De(e),null;case 10:return bd(e.type._context),De(e),null;case 17:return rt(e.type)&&Ea(),De(e),null;case 19:if(fe(me),i=e.memoizedState,i===null)return De(e),null;if(r=(e.flags&128)!==0,o=i.rendering,o===null)if(r)hi(i,!1);else{if(Te!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=Na(t),o!==null){for(e.flags|=128,hi(i,!1),r=o.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)i=n,t=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=t,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,t=o.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return le(me,me.current&1|2),e.child}t=t.sibling}i.tail!==null&&be()>Hs&&(e.flags|=128,r=!0,hi(i,!1),e.lanes=4194304)}else{if(!r)if(t=Na(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),hi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!pe)return De(e),null}else 2*be()-i.renderingStartTime>Hs&&n!==1073741824&&(e.flags|=128,r=!0,hi(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(n=i.last,n!==null?n.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=be(),e.sibling=null,n=me.current,le(me,r?n&1|2:n&1),e):(De(e),null);case 22:case 23:return Md(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?ot&1073741824&&(De(e),e.subtreeFlags&6&&(e.flags|=8192)):De(e),null;case 24:return null;case 25:return null}throw Error(A(156,e.tag))}function vb(t,e){switch(vd(e),e.tag){case 1:return rt(e.type)&&Ea(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ws(),fe(nt),fe(Be),Cd(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return kd(e),null;case 13:if(fe(me),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(A(340));Us()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return fe(me),null;case 4:return Ws(),null;case 10:return bd(e.type._context),null;case 22:case 23:return Md(),null;case 24:return null;default:return null}}var Bo=!1,ze=!1,yb=typeof WeakSet=="function"?WeakSet:Set,M=null;function bs(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xe(t,e,r)}else n.current=null}function fc(t,e,n){try{n()}catch(r){xe(t,e,r)}}var kh=!1;function wb(t,e){if(Qu=xa,t=Gm(),md(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=t,f=null;t:for(;;){for(var p;d!==n||s!==0&&d.nodeType!==3||(a=o+s),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===t)break t;if(f===n&&++u===s&&(a=o),f===i&&++c===r&&(l=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Yu={focusedElem:t,selectionRange:n},xa=!1,M=e;M!==null;)if(e=M,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,M=t;else for(;M!==null;){e=M;try{var b=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var w=b.memoizedProps,v=b.memoizedState,g=e.stateNode,m=g.getSnapshotBeforeUpdate(e.elementType===e.type?w:At(e.type,w),v);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=e.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(_){xe(e,e.return,_)}if(t=e.sibling,t!==null){t.return=e.return,M=t;break}M=e.return}return b=kh,kh=!1,b}function Ri(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&t)===t){var i=s.destroy;s.destroy=void 0,i!==void 0&&fc(e,n,i)}s=s.next}while(s!==r)}}function sl(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function hc(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function Vg(t){var e=t.alternate;e!==null&&(t.alternate=null,Vg(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Jt],delete e[Gi],delete e[Zu],delete e[tb],delete e[nb])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Hg(t){return t.tag===5||t.tag===3||t.tag===4}function Ch(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Hg(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function pc(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Sa));else if(r!==4&&(t=t.child,t!==null))for(pc(t,e,n),t=t.sibling;t!==null;)pc(t,e,n),t=t.sibling}function mc(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(mc(t,e,n),t=t.sibling;t!==null;)mc(t,e,n),t=t.sibling}var Ae=null,$t=!1;function Nn(t,e,n){for(n=n.child;n!==null;)Kg(t,e,n),n=n.sibling}function Kg(t,e,n){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(Ya,n)}catch{}switch(n.tag){case 5:ze||bs(n,e);case 6:var r=Ae,s=$t;Ae=null,Nn(t,e,n),Ae=r,$t=s,Ae!==null&&($t?(t=Ae,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Ae.removeChild(n.stateNode));break;case 18:Ae!==null&&($t?(t=Ae,n=n.stateNode,t.nodeType===8?tu(t.parentNode,n):t.nodeType===1&&tu(t,n),Wi(t)):tu(Ae,n.stateNode));break;case 4:r=Ae,s=$t,Ae=n.stateNode.containerInfo,$t=!0,Nn(t,e,n),Ae=r,$t=s;break;case 0:case 11:case 14:case 15:if(!ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&fc(n,e,o),s=s.next}while(s!==r)}Nn(t,e,n);break;case 1:if(!ze&&(bs(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){xe(n,e,a)}Nn(t,e,n);break;case 21:Nn(t,e,n);break;case 22:n.mode&1?(ze=(r=ze)||n.memoizedState!==null,Nn(t,e,n),ze=r):Nn(t,e,n);break;default:Nn(t,e,n)}}function Th(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new yb),e.forEach(function(r){var s=jb.bind(null,t,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Rt(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=t,o=e,a=o;e:for(;a!==null;){switch(a.tag){case 5:Ae=a.stateNode,$t=!1;break e;case 3:Ae=a.stateNode.containerInfo,$t=!0;break e;case 4:Ae=a.stateNode.containerInfo,$t=!0;break e}a=a.return}if(Ae===null)throw Error(A(160));Kg(i,o,s),Ae=null,$t=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){xe(s,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)qg(e,t),e=e.sibling}function qg(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Rt(e,t),Vt(t),r&4){try{Ri(3,t,t.return),sl(3,t)}catch(w){xe(t,t.return,w)}try{Ri(5,t,t.return)}catch(w){xe(t,t.return,w)}}break;case 1:Rt(e,t),Vt(t),r&512&&n!==null&&bs(n,n.return);break;case 5:if(Rt(e,t),Vt(t),r&512&&n!==null&&bs(n,n.return),t.flags&32){var s=t.stateNode;try{Fi(s,"")}catch(w){xe(t,t.return,w)}}if(r&4&&(s=t.stateNode,s!=null)){var i=t.memoizedProps,o=n!==null?n.memoizedProps:i,a=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&mm(s,i),Fu(a,o);var u=Fu(a,i);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?xm(s,d):c==="dangerouslySetInnerHTML"?ym(s,d):c==="children"?Fi(s,d):nd(s,c,d,u)}switch(a){case"input":Iu(s,i);break;case"textarea":gm(s,i);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?Ss(s,!!i.multiple,p,!1):f!==!!i.multiple&&(i.defaultValue!=null?Ss(s,!!i.multiple,i.defaultValue,!0):Ss(s,!!i.multiple,i.multiple?[]:"",!1))}s[Gi]=i}catch(w){xe(t,t.return,w)}}break;case 6:if(Rt(e,t),Vt(t),r&4){if(t.stateNode===null)throw Error(A(162));s=t.stateNode,i=t.memoizedProps;try{s.nodeValue=i}catch(w){xe(t,t.return,w)}}break;case 3:if(Rt(e,t),Vt(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Wi(e.containerInfo)}catch(w){xe(t,t.return,w)}break;case 4:Rt(e,t),Vt(t);break;case 13:Rt(e,t),Vt(t),s=t.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Ld=be())),r&4&&Th(t);break;case 22:if(c=n!==null&&n.memoizedState!==null,t.mode&1?(ze=(u=ze)||c,Rt(e,t),ze=u):Rt(e,t),Vt(t),r&8192){if(u=t.memoizedState!==null,(t.stateNode.isHidden=u)&&!c&&t.mode&1)for(M=t,c=t.child;c!==null;){for(d=M=c;M!==null;){switch(f=M,p=f.child,f.tag){case 0:case 11:case 14:case 15:Ri(4,f,f.return);break;case 1:bs(f,f.return);var b=f.stateNode;if(typeof b.componentWillUnmount=="function"){r=f,n=f.return;try{e=r,b.props=e.memoizedProps,b.state=e.memoizedState,b.componentWillUnmount()}catch(w){xe(r,n,w)}}break;case 5:bs(f,f.return);break;case 22:if(f.memoizedState!==null){Ph(d);continue}}p!==null?(p.return=f,M=p):Ph(d)}c=c.sibling}e:for(c=null,d=t;;){if(d.tag===5){if(c===null){c=d;try{s=d.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=wm("display",o))}catch(w){xe(t,t.return,w)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(w){xe(t,t.return,w)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===t)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Rt(e,t),Vt(t),r&4&&Th(t);break;case 21:break;default:Rt(e,t),Vt(t)}}function Vt(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(Hg(n)){var r=n;break e}n=n.return}throw Error(A(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Fi(s,""),r.flags&=-33);var i=Ch(t);mc(t,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Ch(t);pc(t,a,o);break;default:throw Error(A(161))}}catch(l){xe(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function xb(t,e,n){M=t,Gg(t)}function Gg(t,e,n){for(var r=(t.mode&1)!==0;M!==null;){var s=M,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Bo;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||ze;a=Bo;var u=ze;if(Bo=o,(ze=l)&&!u)for(M=s;M!==null;)o=M,l=o.child,o.tag===22&&o.memoizedState!==null?Rh(s):l!==null?(l.return=o,M=l):Rh(s);for(;i!==null;)M=i,Gg(i),i=i.sibling;M=s,Bo=a,ze=u}jh(t)}else s.subtreeFlags&8772&&i!==null?(i.return=s,M=i):jh(t)}}function jh(t){for(;M!==null;){var e=M;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:ze||sl(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!ze)if(n===null)r.componentDidMount();else{var s=e.elementType===e.type?n.memoizedProps:At(e.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&fh(e,i,r);break;case 3:var o=e.updateQueue;if(o!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}fh(e,o,n)}break;case 5:var a=e.stateNode;if(n===null&&e.flags&4){n=a;var l=e.memoizedProps;switch(e.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(e.memoizedState===null){var u=e.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Wi(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(A(163))}ze||e.flags&512&&hc(e)}catch(f){xe(e,e.return,f)}}if(e===t){M=null;break}if(n=e.sibling,n!==null){n.return=e.return,M=n;break}M=e.return}}function Ph(t){for(;M!==null;){var e=M;if(e===t){M=null;break}var n=e.sibling;if(n!==null){n.return=e.return,M=n;break}M=e.return}}function Rh(t){for(;M!==null;){var e=M;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{sl(4,e)}catch(l){xe(e,n,l)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var s=e.return;try{r.componentDidMount()}catch(l){xe(e,s,l)}}var i=e.return;try{hc(e)}catch(l){xe(e,i,l)}break;case 5:var o=e.return;try{hc(e)}catch(l){xe(e,o,l)}}}catch(l){xe(e,e.return,l)}if(e===t){M=null;break}var a=e.sibling;if(a!==null){a.return=e.return,M=a;break}M=e.return}}var bb=Math.ceil,Ia=En.ReactCurrentDispatcher,Od=En.ReactCurrentOwner,St=En.ReactCurrentBatchConfig,Z=0,Ne=null,Ee=null,Oe=0,ot=0,_s=fr(0),Te=0,eo=null,Vr=0,il=0,Id=0,Ni=null,Xe=null,Ld=0,Hs=1/0,un=null,La=!1,gc=null,rr=null,Wo=!1,Yn=null,$a=0,Ai=0,vc=null,la=-1,ua=0;function qe(){return Z&6?be():la!==-1?la:la=be()}function sr(t){return t.mode&1?Z&2&&Oe!==0?Oe&-Oe:sb.transition!==null?(ua===0&&(ua=Am()),ua):(t=ie,t!==0||(t=window.event,t=t===void 0?16:Fm(t.type)),t):1}function zt(t,e,n,r){if(50<Ai)throw Ai=0,vc=null,Error(A(185));fo(t,n,r),(!(Z&2)||t!==Ne)&&(t===Ne&&(!(Z&2)&&(il|=n),Te===4&&Bn(t,Oe)),st(t,r),n===1&&Z===0&&!(e.mode&1)&&(Hs=be()+500,tl&&hr()))}function st(t,e){var n=t.callbackNode;sx(t,e);var r=wa(t,t===Ne?Oe:0);if(r===0)n!==null&&Ff(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&Ff(n),e===1)t.tag===0?rb(Nh.bind(null,t)):sg(Nh.bind(null,t)),Zx(function(){!(Z&6)&&hr()}),n=null;else{switch(Om(r)){case 1:n=ad;break;case 4:n=Rm;break;case 16:n=ya;break;case 536870912:n=Nm;break;default:n=ya}n=nv(n,Qg.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function Qg(t,e){if(la=-1,ua=0,Z&6)throw Error(A(327));var n=t.callbackNode;if(js()&&t.callbackNode!==n)return null;var r=wa(t,t===Ne?Oe:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=Ma(t,r);else{e=r;var s=Z;Z|=2;var i=Jg();(Ne!==t||Oe!==e)&&(un=null,Hs=be()+500,Dr(t,e));do try{Eb();break}catch(a){Yg(t,a)}while(!0);xd(),Ia.current=i,Z=s,Ee!==null?e=0:(Ne=null,Oe=0,e=Te)}if(e!==0){if(e===2&&(s=Vu(t),s!==0&&(r=s,e=yc(t,s))),e===1)throw n=eo,Dr(t,0),Bn(t,r),st(t,be()),n;if(e===6)Bn(t,r);else{if(s=t.current.alternate,!(r&30)&&!_b(s)&&(e=Ma(t,r),e===2&&(i=Vu(t),i!==0&&(r=i,e=yc(t,i))),e===1))throw n=eo,Dr(t,0),Bn(t,r),st(t,be()),n;switch(t.finishedWork=s,t.finishedLanes=r,e){case 0:case 1:throw Error(A(345));case 2:_r(t,Xe,un);break;case 3:if(Bn(t,r),(r&130023424)===r&&(e=Ld+500-be(),10<e)){if(wa(t,0)!==0)break;if(s=t.suspendedLanes,(s&r)!==r){qe(),t.pingedLanes|=t.suspendedLanes&s;break}t.timeoutHandle=Xu(_r.bind(null,t,Xe,un),e);break}_r(t,Xe,un);break;case 4:if(Bn(t,r),(r&4194240)===r)break;for(e=t.eventTimes,s=-1;0<r;){var o=31-Ft(r);i=1<<o,o=e[o],o>s&&(s=o),r&=~i}if(r=s,r=be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bb(r/1960))-r,10<r){t.timeoutHandle=Xu(_r.bind(null,t,Xe,un),r);break}_r(t,Xe,un);break;case 5:_r(t,Xe,un);break;default:throw Error(A(329))}}}return st(t,be()),t.callbackNode===n?Qg.bind(null,t):null}function yc(t,e){var n=Ni;return t.current.memoizedState.isDehydrated&&(Dr(t,e).flags|=256),t=Ma(t,e),t!==2&&(e=Xe,Xe=n,e!==null&&wc(e)),t}function wc(t){Xe===null?Xe=t:Xe.push.apply(Xe,t)}function _b(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!Ut(i(),s))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Bn(t,e){for(e&=~Id,e&=~il,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Ft(e),r=1<<n;t[n]=-1,e&=~r}}function Nh(t){if(Z&6)throw Error(A(327));js();var e=wa(t,0);if(!(e&1))return st(t,be()),null;var n=Ma(t,e);if(t.tag!==0&&n===2){var r=Vu(t);r!==0&&(e=r,n=yc(t,r))}if(n===1)throw n=eo,Dr(t,0),Bn(t,e),st(t,be()),n;if(n===6)throw Error(A(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,_r(t,Xe,un),st(t,be()),null}function $d(t,e){var n=Z;Z|=1;try{return t(e)}finally{Z=n,Z===0&&(Hs=be()+500,tl&&hr())}}function Hr(t){Yn!==null&&Yn.tag===0&&!(Z&6)&&js();var e=Z;Z|=1;var n=St.transition,r=ie;try{if(St.transition=null,ie=1,t)return t()}finally{ie=r,St.transition=n,Z=e,!(Z&6)&&hr()}}function Md(){ot=_s.current,fe(_s)}function Dr(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,Xx(n)),Ee!==null)for(n=Ee.return;n!==null;){var r=n;switch(vd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ea();break;case 3:Ws(),fe(nt),fe(Be),Cd();break;case 5:kd(r);break;case 4:Ws();break;case 13:fe(me);break;case 19:fe(me);break;case 10:bd(r.type._context);break;case 22:case 23:Md()}n=n.return}if(Ne=t,Ee=t=ir(t.current,null),Oe=ot=e,Te=0,eo=null,Id=il=Vr=0,Xe=Ni=null,Tr!==null){for(e=0;e<Tr.length;e++)if(n=Tr[e],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}Tr=null}return t}function Yg(t,e){do{var n=Ee;try{if(xd(),ia.current=Oa,Aa){for(var r=ge.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Aa=!1}if(Wr=0,Pe=Ce=ge=null,Pi=!1,Ji=0,Od.current=null,n===null||n.return===null){Te=1,eo=e,Ee=null;break}e:{var i=t,o=n.return,a=n,l=e;if(e=Oe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=yh(o);if(p!==null){p.flags&=-257,wh(p,o,a,i,e),p.mode&1&&vh(i,u,e),e=p,l=u;var b=e.updateQueue;if(b===null){var w=new Set;w.add(l),e.updateQueue=w}else b.add(l);break e}else{if(!(e&1)){vh(i,u,e),Dd();break e}l=Error(A(426))}}else if(pe&&a.mode&1){var v=yh(o);if(v!==null){!(v.flags&65536)&&(v.flags|=256),wh(v,o,a,i,e),yd(Vs(l,a));break e}}i=l=Vs(l,a),Te!==4&&(Te=2),Ni===null?Ni=[i]:Ni.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var g=Og(i,l,e);dh(i,g);break e;case 1:a=l;var m=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(rr===null||!rr.has(y)))){i.flags|=65536,e&=-e,i.lanes|=e;var _=Ig(i,a,e);dh(i,_);break e}}i=i.return}while(i!==null)}Zg(n)}catch(S){e=S,Ee===n&&n!==null&&(Ee=n=n.return);continue}break}while(!0)}function Jg(){var t=Ia.current;return Ia.current=Oa,t===null?Oa:t}function Dd(){(Te===0||Te===3||Te===2)&&(Te=4),Ne===null||!(Vr&268435455)&&!(il&268435455)||Bn(Ne,Oe)}function Ma(t,e){var n=Z;Z|=2;var r=Jg();(Ne!==t||Oe!==e)&&(un=null,Dr(t,e));do try{Sb();break}catch(s){Yg(t,s)}while(!0);if(xd(),Z=n,Ia.current=r,Ee!==null)throw Error(A(261));return Ne=null,Oe=0,Te}function Sb(){for(;Ee!==null;)Xg(Ee)}function Eb(){for(;Ee!==null&&!Qw();)Xg(Ee)}function Xg(t){var e=tv(t.alternate,t,ot);t.memoizedProps=t.pendingProps,e===null?Zg(t):Ee=e,Od.current=null}function Zg(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=vb(n,e),n!==null){n.flags&=32767,Ee=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Te=6,Ee=null;return}}else if(n=gb(n,e,ot),n!==null){Ee=n;return}if(e=e.sibling,e!==null){Ee=e;return}Ee=e=t}while(e!==null);Te===0&&(Te=5)}function _r(t,e,n){var r=ie,s=St.transition;try{St.transition=null,ie=1,kb(t,e,n,r)}finally{St.transition=s,ie=r}return null}function kb(t,e,n,r){do js();while(Yn!==null);if(Z&6)throw Error(A(327));n=t.finishedWork;var s=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(A(177));t.callbackNode=null,t.callbackPriority=0;var i=n.lanes|n.childLanes;if(ix(t,i),t===Ne&&(Ee=Ne=null,Oe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Wo||(Wo=!0,nv(ya,function(){return js(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=St.transition,St.transition=null;var o=ie;ie=1;var a=Z;Z|=4,Od.current=null,wb(t,n),qg(n,t),Hx(Yu),xa=!!Qu,Yu=Qu=null,t.current=n,xb(n),Yw(),Z=a,ie=o,St.transition=i}else t.current=n;if(Wo&&(Wo=!1,Yn=t,$a=s),i=t.pendingLanes,i===0&&(rr=null),Zw(n.stateNode),st(t,be()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)s=e[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(La)throw La=!1,t=gc,gc=null,t;return $a&1&&t.tag!==0&&js(),i=t.pendingLanes,i&1?t===vc?Ai++:(Ai=0,vc=t):Ai=0,hr(),null}function js(){if(Yn!==null){var t=Om($a),e=St.transition,n=ie;try{if(St.transition=null,ie=16>t?16:t,Yn===null)var r=!1;else{if(t=Yn,Yn=null,$a=0,Z&6)throw Error(A(331));var s=Z;for(Z|=4,M=t.current;M!==null;){var i=M,o=i.child;if(M.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(M=u;M!==null;){var c=M;switch(c.tag){case 0:case 11:case 15:Ri(8,c,i)}var d=c.child;if(d!==null)d.return=c,M=d;else for(;M!==null;){c=M;var f=c.sibling,p=c.return;if(Vg(c),c===u){M=null;break}if(f!==null){f.return=p,M=f;break}M=p}}}var b=i.alternate;if(b!==null){var w=b.child;if(w!==null){b.child=null;do{var v=w.sibling;w.sibling=null,w=v}while(w!==null)}}M=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,M=o;else e:for(;M!==null;){if(i=M,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ri(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,M=g;break e}M=i.return}}var m=t.current;for(M=m;M!==null;){o=M;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,M=y;else e:for(o=m;M!==null;){if(a=M,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:sl(9,a)}}catch(S){xe(a,a.return,S)}if(a===o){M=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,M=_;break e}M=a.return}}if(Z=s,hr(),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(Ya,t)}catch{}r=!0}return r}finally{ie=n,St.transition=e}}return!1}function Ah(t,e,n){e=Vs(n,e),e=Og(t,e,1),t=nr(t,e,1),e=qe(),t!==null&&(fo(t,1,e),st(t,e))}function xe(t,e,n){if(t.tag===3)Ah(t,t,n);else for(;e!==null;){if(e.tag===3){Ah(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(rr===null||!rr.has(r))){t=Vs(n,t),t=Ig(e,t,1),e=nr(e,t,1),t=qe(),e!==null&&(fo(e,1,t),st(e,t));break}}e=e.return}}function Cb(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=qe(),t.pingedLanes|=t.suspendedLanes&n,Ne===t&&(Oe&n)===n&&(Te===4||Te===3&&(Oe&130023424)===Oe&&500>be()-Ld?Dr(t,0):Id|=n),st(t,e)}function ev(t,e){e===0&&(t.mode&1?(e=Oo,Oo<<=1,!(Oo&130023424)&&(Oo=4194304)):e=1);var n=qe();t=yn(t,e),t!==null&&(fo(t,e,n),st(t,n))}function Tb(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),ev(t,n)}function jb(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(e),ev(t,n)}var tv;tv=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||nt.current)et=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return et=!1,mb(t,e,n);et=!!(t.flags&131072)}else et=!1,pe&&e.flags&1048576&&ig(e,Ta,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;aa(t,e),t=e.pendingProps;var s=zs(e,Be.current);Ts(e,n),s=jd(null,e,r,t,s,n);var i=Pd();return e.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,rt(r)?(i=!0,ka(e)):i=!1,e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Sd(e),s.updater=rl,e.stateNode=s,s._reactInternals=e,ic(e,r,t,n),e=lc(null,e,r,!0,i,n)):(e.tag=0,pe&&i&&gd(e),Ve(null,e,s,n),e=e.child),e;case 16:r=e.elementType;e:{switch(aa(t,e),t=e.pendingProps,s=r._init,r=s(r._payload),e.type=r,s=e.tag=Rb(r),t=At(r,t),s){case 0:e=ac(null,e,r,t,n);break e;case 1:e=_h(null,e,r,t,n);break e;case 11:e=xh(null,e,r,t,n);break e;case 14:e=bh(null,e,r,At(r.type,t),n);break e}throw Error(A(306,r,""))}return e;case 0:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:At(r,s),ac(t,e,r,s,n);case 1:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:At(r,s),_h(t,e,r,s,n);case 3:e:{if(Dg(e),t===null)throw Error(A(387));r=e.pendingProps,i=e.memoizedState,s=i.element,dg(t,e),Ra(e,r,null,n);var o=e.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){s=Vs(Error(A(423)),e),e=Sh(t,e,r,n,s);break e}else if(r!==s){s=Vs(Error(A(424)),e),e=Sh(t,e,r,n,s);break e}else for(lt=tr(e.stateNode.containerInfo.firstChild),ut=e,pe=!0,Dt=null,n=ug(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Us(),r===s){e=wn(t,e,n);break e}Ve(t,e,r,n)}e=e.child}return e;case 5:return fg(e),t===null&&nc(e),r=e.type,s=e.pendingProps,i=t!==null?t.memoizedProps:null,o=s.children,Ju(r,s)?o=null:i!==null&&Ju(r,i)&&(e.flags|=32),Mg(t,e),Ve(t,e,o,n),e.child;case 6:return t===null&&nc(e),null;case 13:return Fg(t,e,n);case 4:return Ed(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=Bs(e,null,r,n):Ve(t,e,r,n),e.child;case 11:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:At(r,s),xh(t,e,r,s,n);case 7:return Ve(t,e,e.pendingProps,n),e.child;case 8:return Ve(t,e,e.pendingProps.children,n),e.child;case 12:return Ve(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,s=e.pendingProps,i=e.memoizedProps,o=s.value,le(ja,r._currentValue),r._currentValue=o,i!==null)if(Ut(i.value,o)){if(i.children===s.children&&!nt.current){e=wn(t,e,n);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=mn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),rc(i.return,n,e),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(A(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),rc(o,n,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ve(t,e,s.children,n),e=e.child}return e;
vendor: 5,011 bytes, line 40
40case 9:return s=e.type,r=e.pendingProps.children,Ts(e,n),s=kt(s),r=r(s),e.flags|=1,Ve(t,e,r,n),e.child;case 14:return r=e.type,s=At(r,e.pendingProps),s=At(r.type,s),bh(t,e,r,s,n);case 15:return Lg(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:At(r,s),aa(t,e),e.tag=1,rt(r)?(t=!0,ka(e)):t=!1,Ts(e,n),Ag(e,r,s),ic(e,r,s,n),lc(null,e,r,!0,t,n);case 19:return zg(t,e,n);case 22:return $g(t,e,n)}throw Error(A(156,e.tag))};function nv(t,e){return Pm(t,e)}function Pb(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,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 xt(t,e,n,r){return new Pb(t,e,n,r)}function Fd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Rb(t){if(typeof t=="function")return Fd(t)?1:0;if(t!=null){if(t=t.$$typeof,t===sd)return 11;if(t===id)return 14}return 2}function ir(t,e){var n=t.alternate;return n===null?(n=xt(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function ca(t,e,n,r,s,i){var o=2;if(r=t,typeof t=="function")Fd(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case fs:return Fr(n.children,s,i,e);case rd:o=8,s|=8;break;case Pu:return t=xt(12,n,e,s|2),t.elementType=Pu,t.lanes=i,t;case Ru:return t=xt(13,n,e,s),t.elementType=Ru,t.lanes=i,t;case Nu:return t=xt(19,n,e,s),t.elementType=Nu,t.lanes=i,t;case fm:return ol(n,s,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case cm:o=10;break e;case dm:o=9;break e;case sd:o=11;break e;case id:o=14;break e;case Dn:o=16,r=null;break e}throw Error(A(130,t==null?t:typeof t,""))}return e=xt(o,n,e,s),e.elementType=t,e.type=r,e.lanes=i,e}function Fr(t,e,n,r){return t=xt(7,t,r,e),t.lanes=n,t}function ol(t,e,n,r){return t=xt(22,t,r,e),t.elementType=fm,t.lanes=n,t.stateNode={isHidden:!1},t}function uu(t,e,n){return t=xt(6,t,null,e),t.lanes=n,t}function cu(t,e,n){return e=xt(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Nb(t,e,n,r,s){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vl(0),this.expirationTimes=Vl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vl(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function zd(t,e,n,r,s,i,o,a,l){return t=new Nb(t,e,n,a,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=xt(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sd(i),t}function Ab(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ds,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function rv(t){if(!t)return lr;t=t._reactInternals;e:{if(Gr(t)!==t||t.tag!==1)throw Error(A(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(rt(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(A(171))}if(t.tag===1){var n=t.type;if(rt(n))return rg(t,n,e)}return e}function sv(t,e,n,r,s,i,o,a,l){return t=zd(n,r,!0,t,s,i,o,a,l),t.context=rv(null),n=t.current,r=qe(),s=sr(n),i=mn(r,s),i.callback=e??null,nr(n,i,s),t.current.lanes=s,fo(t,s,r),st(t,r),t}function al(t,e,n,r){var s=e.current,i=qe(),o=sr(s);return n=rv(n),e.context===null?e.context=n:e.pendingContext=n,e=mn(i,o),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=nr(s,e,o),t!==null&&(zt(t,s,o,i),sa(t,s,o)),o}function Da(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function Oh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Ud(t,e){Oh(t,e),(t=t.alternate)&&Oh(t,e)}function Ob(){return null}var iv=typeof reportError=="function"?reportError:function(t){console.error(t)};function Bd(t){this._internalRoot=t}ll.prototype.render=Bd.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(A(409));al(t,e,null,null)};
vendor: 6,022 bytes, line 40
40ll.prototype.unmount=Bd.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Hr(function(){al(null,t,null,null)}),e[vn]=null}};function ll(t){this._internalRoot=t}ll.prototype.unstable_scheduleHydration=function(t){if(t){var e=$m();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Un.length&&e!==0&&e<Un[n].priority;n++);Un.splice(n,0,t),n===0&&Dm(t)}};function Wd(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function ul(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Ih(){}function Ib(t,e,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=Da(o);i.call(u)}}var o=sv(e,r,t,0,null,!1,!1,"",Ih);return t._reactRootContainer=o,t[vn]=o.current,Ki(t.nodeType===8?t.parentNode:t),Hr(),o}for(;s=t.lastChild;)t.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=Da(l);a.call(u)}}var l=zd(t,0,!1,null,null,!1,!1,"",Ih);return t._reactRootContainer=l,t[vn]=l.current,Ki(t.nodeType===8?t.parentNode:t),Hr(function(){al(e,l,n,r)}),l}function cl(t,e,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=Da(o);a.call(l)}}al(e,o,t,s)}else o=Ib(n,e,t,s,r);return Da(o)}Im=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=bi(e.pendingLanes);n!==0&&(ld(e,n|1),st(e,be()),!(Z&6)&&(Hs=be()+500,hr()))}break;case 13:Hr(function(){var r=yn(t,1);if(r!==null){var s=qe();zt(r,t,1,s)}}),Ud(t,1)}};ud=function(t){if(t.tag===13){var e=yn(t,134217728);if(e!==null){var n=qe();zt(e,t,134217728,n)}Ud(t,134217728)}};Lm=function(t){if(t.tag===13){var e=sr(t),n=yn(t,e);if(n!==null){var r=qe();zt(n,t,e,r)}Ud(t,e)}};$m=function(){return ie};Mm=function(t,e){var n=ie;try{return ie=t,e()}finally{ie=n}};Uu=function(t,e,n){switch(e){case"input":if(Iu(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var s=el(r);if(!s)throw Error(A(90));pm(r),Iu(r,s)}}}break;case"textarea":gm(t,n);break;case"select":e=n.value,e!=null&&Ss(t,!!n.multiple,e,!1)}};Sm=$d;Em=Hr;var Lb={usingClientEntryPoint:!1,Events:[po,gs,el,bm,_m,$d]},pi={findFiberByHostInstance:Cr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},$b={bundleType:pi.bundleType,version:pi.version,rendererPackageName:pi.rendererPackageName,rendererConfig:pi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:En.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Tm(t),t===null?null:t.stateNode},findFiberByHostInstance:pi.findFiberByHostInstance||Ob,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 Vo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vo.isDisabled&&Vo.supportsFiber)try{Ya=Vo.inject($b),en=Vo}catch{}}ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Lb;ft.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Wd(e))throw Error(A(200));return Ab(t,e,null,n)};ft.createRoot=function(t,e){if(!Wd(t))throw Error(A(299));var n=!1,r="",s=iv;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(s=e.onRecoverableError)),e=zd(t,1,!1,null,null,n,!1,r,s),t[vn]=e.current,Ki(t.nodeType===8?t.parentNode:t),new Bd(e)};ft.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(A(188)):(t=Object.keys(t).join(","),Error(A(268,t)));return t=Tm(e),t=t===null?null:t.stateNode,t};ft.flushSync=function(t){return Hr(t)};ft.hydrate=function(t,e,n){if(!ul(e))throw Error(A(200));return cl(null,t,e,!0,n)};ft.hydrateRoot=function(t,e,n){if(!Wd(t))throw Error(A(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=iv;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),e=sv(e,null,t,1,n??null,s,!1,i,o),t[vn]=e.current,Ki(t),r)for(t=0;t<r.length;t++)n=r[t],s=n._getVersion,s=s(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,s]:e.mutableSourceEagerHydrationData.push(n,s);return new ll(e)};ft.render=function(t,e,n){if(!ul(e))throw Error(A(200));return cl(null,t,e,!1,n)};ft.unmountComponentAtNode=function(t){if(!ul(t))throw Error(A(40));return t._reactRootContainer?(Hr(function(){cl(null,null,t,!1,function(){t._reactRootContainer=null,t[vn]=null})}),!0):!1};ft.unstable_batchedUpdates=$d;ft.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!ul(n))throw Error(A(200));if(t==null||t._reactInternals===void 0)throw Error(A(38));return cl(t,e,n,!1,r)};ft.version="18.3.1-next-f1338f8080-20240426";function ov(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ov)}catch(t){console.error(t)}}ov(),om.exports=ft;var go=om.exports;const av=Gp(go);var lv,Lh=go;lv=Lh.createRoot,Lh.hydrateRoot;const Mb=1,Db=1e6;let du=0;function Fb(){return du=(du+1)%Number.MAX_SAFE_INTEGER,du.toString()}const fu=new Map,$h=t=>{if(fu.has(t))return;const e=setTimeout(()=>{fu.delete(t),Oi({type:"REMOVE_TOAST",toastId:t})},Db);fu.set(t,e)},zb=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,Mb)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(n=>n.id===e.toast.id?{...n,...e.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=e;
40return n?$h(n):t.toasts.forEach(r=>{$h(r.id)}),{...t,toasts:t.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==e.toastId)}}},da=[];let fa={toasts:[]};function Oi(t){fa=zb(fa,t),da.forEach(e=>{e(fa)})}function Ub({...t}){const e=Fb(),n=s=>Oi({type:"UPDATE_TOAST",toast:{...s,id:e}}),r=()=>Oi({type:"DISMISS_TOAST",toastId:e});return Oi({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:s=>{s||r()}}}),{id:e,dismiss:r,update:n}}function dl(){const[t,e]=x.useState(fa);return x.useEffect(()=>(da.push(e),()=>{const n=da.indexOf(e);n>-1&&da.splice(n,1)}),[t]),{...t,toast:Ub,dismiss:n=>Oi({type:"DISMISS_TOAST",toastId:n})}}function se(t,e,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t==null||t(s),n===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}function Mh(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function uv(...t){return e=>{let n=!1;const r=t.map(s=>{const i=Mh(s,e);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():Mh(t[s],null)}}}}function it(...t){return x.useCallback(uv(...t),t)}function pr(t,e=[]){let n=[];function r(i,o){const a=x.createContext(o),l=n.length;n=[...n,o];const u=d=>{var g;const{scope:f,children:p,...b}=d,w=((g=f==null?void 0:f[t])==null?void 0:g[l])||a,v=x.useMemo(()=>b,Object.values(b));return h.jsx(w.Provider,{value:v,children:p})};u.displayName=i+"Provider";function c(d,f){var w;const p=((w=f==null?void 0:f[t])==null?void 0:w[l])||a,b=x.useContext(p);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,c]}const s=()=>{const i=n.map(o=>x.createContext(o));return function(a){const l=(a==null?void 0:a[t])||i;return x.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return s.scopeName=t,[r,Bb(s,...e)]}function Bb(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...a,...d}},{});return x.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return n.scopeName=e.scopeName,n}function Fa(t){const e=Vb(t),n=x.forwardRef((r,s)=>{const{children:i,...o}=r,a=x.Children.toArray(i),l=a.find(Kb);if(l){const u=l.props.children,c=a.map(d=>d===l?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:d);return h.jsx(e,{...o,ref:s,children:x.isValidElement(u)?x.cloneElement(u,void 0,c):null})}return h.jsx(e,{...o,ref:s,children:i})});return n.displayName=`${t}.Slot`,n}var Wb=Fa("Slot");function Vb(t){const e=x.forwardRef((n,r)=>{const{children:s,...i}=n;if(x.isValidElement(s)){const o=Gb(s),a=qb(i,s.props);return s.type!==x.Fragment&&(a.ref=r?uv(r,o):o),x.cloneElement(s,a)}return x.Children.count(s)>1?x.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var cv=Symbol("radix.slottable");function Hb(t){const e=({children:n})=>h.jsx(h.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=cv,e}function Kb(t){return x.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===cv}function qb(t,e){const n={...e};for(const r in e){const s=t[r],i=e[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{const l=i(...a);return s(...a),l}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...t,...n}}function Gb(t){var r,s;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function dv(t){const e=t+"CollectionProvider",[n,r]=pr(e),[s,i]=n(e,{collectionRef:{current:null},itemMap:new Map}),o=w=>{const{scope:v,children:g}=w,m=O.useRef(null),y=O.useRef(new Map).current;return h.jsx(s,{scope:v,itemMap:y,collectionRef:m,children:g})};o.displayName=e;const a=t+"CollectionSlot",l=Fa(a),u=O.forwardRef((w,v)=>{const{scope:g,children:m}=w,y=i(a,g),_=it(v,y.collectionRef);return h.jsx(l,{ref:_,children:m})});u.displayName=a;const c=t+"CollectionItemSlot",d="data-radix-collection-item",f=Fa(c),p=O.forwardRef((w,v)=>{const{scope:g,children:m,...y}=w,_=O.useRef(null),S=it(v,_),E=i(c,g);return O.useEffect(()=>(E.itemMap.set(_,{ref:_,...y}),()=>
vendor: 5,309 bytes, line 40
40void E.itemMap.delete(_))),h.jsx(f,{[d]:"",ref:S,children:m})});p.displayName=c;function b(w){const v=i(t+"CollectionConsumer",w);return O.useCallback(()=>{const m=v.collectionRef.current;if(!m)return[];const y=Array.from(m.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((E,k)=>y.indexOf(E.ref.current)-y.indexOf(k.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:u,ItemSlot:p},b,r]}var Qb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ue=Qb.reduce((t,e)=>{const n=Fa(`Primitive.${e}`),r=x.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function fv(t,e){t&&go.flushSync(()=>t.dispatchEvent(e))}function xn(t){const e=x.useRef(t);return x.useEffect(()=>{e.current=t}),x.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}function Yb(t,e=globalThis==null?void 0:globalThis.document){const n=xn(t);x.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var Jb="DismissableLayer",xc="dismissableLayer.update",Xb="dismissableLayer.pointerDownOutside",Zb="dismissableLayer.focusOutside",Dh,hv=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Vd=x.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=t,u=x.useContext(hv),[c,d]=x.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=x.useState({}),b=it(e,k=>d(k)),w=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=w.indexOf(v),m=c?w.indexOf(c):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,_=m>=g,S=t_(k=>{const T=k.target,C=[...u.branches].some(N=>N.contains(T));!_||C||(s==null||s(k),o==null||o(k),k.defaultPrevented||a==null||a())},f),E=n_(k=>{const T=k.target;[...u.branches].some(N=>N.contains(T))||(i==null||i(k),o==null||o(k),k.defaultPrevented||a==null||a())},f);return Yb(k=>{m===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},f),x.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Dh=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Fh(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Dh)}},[c,f,n,u]),x.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Fh())},[c,u]),x.useEffect(()=>{const k=()=>p({});return document.addEventListener(xc,k),()=>document.removeEventListener(xc,k)},[]),h.jsx(ue.div,{...l,ref:b,style:{pointerEvents:y?_?"auto":"none":void 0,...t.style},onFocusCapture:se(t.onFocusCapture,E.onFocusCapture),onBlurCapture:se(t.onBlurCapture,E.onBlurCapture),onPointerDownCapture:se(t.onPointerDownCapture,S.onPointerDownCapture)})});Vd.displayName=Jb;var e_="DismissableLayerBranch",pv=x.forwardRef((t,e)=>{const n=x.useContext(hv),r=x.useRef(null),s=it(e,r);return x.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),h.jsx(ue.div,{...t,ref:s})});pv.displayName=e_;function t_(t,e=globalThis==null?void 0:globalThis.document){const n=xn(t),r=x.useRef(!1),s=x.useRef(()=>{});return x.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){mv(Xb,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=l,e.addEventListener("click",s.current,{once:!0})):l()}else e.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",s.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function n_(t,e=globalThis==null?void 0:globalThis.document){const n=xn(t),r=x.useRef(!1);return x.useEffect(()=>{const s=i=>{i.target&&!r.current&&mv(Zb,n,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Fh(){const t=new CustomEvent(xc);document.dispatchEvent(t)}function mv(t,e,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?fv(s,i):s.dispatchEvent(i)}var r_=Vd,s_=pv,bn=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},i_="Portal",gv=x.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[s,i]=x.useState(!1);bn(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?av.createPortal(h.jsx(ue.div,{...r,ref:e}),o):null});gv.displayName=i_;function o_(t,e){return x.useReducer((n,r)=>e[n][r]??n,t)}var vo=t=>{const{present:e,children:n}=t,r=a_(e),s=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),i=it(r.ref,l_(s));return typeof n=="function"||r.isPresent?x.cloneElement(s,{ref:i}
40):null};vo.displayName="Presence";function a_(t){const[e,n]=x.useState(),r=x.useRef(null),s=x.useRef(t),i=x.useRef("none"),o=t?"mounted":"unmounted",[a,l]=o_(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=Ho(r.current);i.current=a==="mounted"?u:"none"},[a]),bn(()=>{const u=r.current,c=s.current;if(c!==t){const f=i.current,p=Ho(u);t?l("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,l]),bn(()=>{if(e){let u;const c=e.ownerDocument.defaultView??window,d=p=>{const w=Ho(r.current).includes(p.animationName);if(p.target===e&&w&&(l("ANIMATION_END"),!s.current)){const v=e.style.animationFillMode;e.style.animationFillMode="forwards",u=c.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=v)})}},f=p=>{p.target===e&&(i.current=Ho(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",d),e.addEventListener("animationend",d),()=>{c.clearTimeout(u),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",d),e.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ho(t){return(t==null?void 0:t.animationName)||"none"}function l_(t){var r,s;let e=(r=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var u_=Zc[" useInsertionEffect ".trim().toString()]||bn;function fl({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[s,i,o]=c_({defaultProp:e,onChange:n}),a=t!==void 0,l=a?t:s;{const c=x.useRef(t!==void 0);x.useEffect(()=>{const d=c.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=a},[a,r])}const u=x.useCallback(c=>{var d;if(a){const f=d_(c)?c(t):c;f!==t&&((d=o.current)==null||d.call(o,f))}else i(c)},[a,t,i,o]);return[l,u]}function c_({defaultProp:t,onChange:e}){const[n,r]=x.useState(t),s=x.useRef(n),i=x.useRef(e);return u_(()=>{i.current=e},[e]),x.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function d_(t){return typeof t=="function"}var f_=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"}),h_="VisuallyHidden",hl=x.forwardRef((t,e)=>h.jsx(ue.span,{...t,ref:e,style:{...f_,...t.style}}));hl.displayName=h_;var p_=hl,Hd="ToastProvider",[Kd,m_,g_]=dv("Toast"),[vv,SP]=pr("Toast",[g_]),[v_,pl]=vv(Hd),yv=t=>{const{__scopeToast:e,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=t,[a,l]=x.useState(null),[u,c]=x.useState(0),d=x.useRef(!1),f=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Hd}\`. Expected non-empty \`string\`.`),h.jsx(Kd.Provider,{scope:e,children:h.jsx(v_,{scope:e,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:x.useCallback(()=>c(p=>p+1),[]),onToastRemove:x.useCallback(()=>c(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:o})})};yv.displayName=Hd;var wv="ToastViewport",y_=["F8"],bc="toast.viewportPause",_c="toast.viewportResume",xv=x.forwardRef((t,e)=>{const{__scopeToast:n,hotkey:r=y_,label:s="Notifications ({hotkey})",...i}=t,o=pl(wv,n),a=m_(n),l=x.useRef(null),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),f=it(e,d,o.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=o.toastCount>0;x.useEffect(()=>{const v=g=>{var y;r.length!==0&&r.every(_=>g[_]||g.code===_)&&((y=d.current)==null||y.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),x.useEffect(()=>{const v=l.current,g=d.current;if(b&&v&&g){const m=()=>{if(!o.isClosePausedRef.current){const E=new CustomEvent(bc);g.dispatchEvent(E),o.isClosePausedRef.current=!0}},y=()=>
40{if(o.isClosePausedRef.current){const E=new CustomEvent(_c);g.dispatchEvent(E),o.isClosePausedRef.current=!1}},_=E=>{!v.contains(E.relatedTarget)&&y()},S=()=>{v.contains(document.activeElement)||y()};return v.addEventListener("focusin",m),v.addEventListener("focusout",_),v.addEventListener("pointermove",m),v.addEventListener("pointerleave",S),window.addEventListener("blur",m),window.addEventListener("focus",y),()=>{v.removeEventListener("focusin",m),v.removeEventListener("focusout",_),v.removeEventListener("pointermove",m),v.removeEventListener("pointerleave",S),window.removeEventListener("blur",m),window.removeEventListener("focus",y)}}},[b,o.isClosePausedRef]);const w=x.useCallback(({tabbingDirection:v})=>{const m=a().map(y=>{const _=y.ref.current,S=[_,...N_(_)];return v==="forwards"?S:S.reverse()});return(v==="forwards"?m.reverse():m).flat()},[a]);return x.useEffect(()=>{const v=d.current;if(v){const g=m=>{var S,E,k;const y=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!y){const T=document.activeElement,C=m.shiftKey;if(m.target===v&&C){(S=u.current)==null||S.focus();return}const L=w({tabbingDirection:C?"backwards":"forwards"}),q=L.findIndex(I=>I===T);hu(L.slice(q+1))?m.preventDefault():C?(E=u.current)==null||E.focus():(k=c.current)==null||k.focus()}};return v.addEventListener("keydown",g),()=>v.removeEventListener("keydown",g)}},[a,w]),h.jsxs(s_,{ref:l,role:"region","aria-label":s.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&h.jsx(Sc,{ref:u,onFocusFromOutsideViewport:()=>{const v=w({tabbingDirection:"forwards"});hu(v)}}),h.jsx(Kd.Slot,{scope:n,children:h.jsx(ue.ol,{tabIndex:-1,...i,ref:f})}),b&&h.jsx(Sc,{ref:c,onFocusFromOutsideViewport:()=>{const v=w({tabbingDirection:"backwards"});hu(v)}})]})});xv.displayName=wv;var bv="ToastFocusProxy",Sc=x.forwardRef((t,e)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=t,i=pl(bv,n);return h.jsx(hl,{"aria-hidden":!0,tabIndex:0,...s,ref:e,style:{position:"fixed"},onFocus:o=>{var u;const a=o.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});Sc.displayName=bv;var yo="Toast",w_="toast.swipeStart",x_="toast.swipeMove",b_="toast.swipeCancel",__="toast.swipeEnd",_v=x.forwardRef((t,e)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=t,[a,l]=fl({prop:r,defaultProp:s??!0,onChange:i,caller:yo});return h.jsx(vo,{present:n||a,children:h.jsx(k_,{open:a,...o,ref:e,onClose:()=>l(!1),onPause:xn(t.onPause),onResume:xn(t.onResume),onSwipeStart:se(t.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:se(t.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:se(t.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:se(t.onSwipeEnd,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});_v.displayName=yo;var[S_,E_]=vv(yo,{onClose(){}}),k_=x.forwardRef((t,e)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:p,...b}=t,w=pl(yo,n),[v,g]=x.useState(null),m=it(e,I=>g(I)),y=x.useRef(null),_=x.useRef(null),S=s||w.duration,E=x.useRef(0),k=x.useRef(S),T=x.useRef(0),{onToastAdd:C,onToastRemove:N}=w,D=xn(()=>{var G;(v==null?void 0:v.contains(document.activeElement))&&((G=w.viewport)==null||G.focus()),o()}),L=x.useCallback(I=>
40{!I||I===1/0||(window.clearTimeout(T.current),E.current=new Date().getTime(),T.current=window.setTimeout(D,I))},[D]);x.useEffect(()=>{const I=w.viewport;if(I){const G=()=>{L(k.current),u==null||u()},F=()=>{const V=new Date().getTime()-E.current;k.current=k.current-V,window.clearTimeout(T.current),l==null||l()};return I.addEventListener(bc,F),I.addEventListener(_c,G),()=>{I.removeEventListener(bc,F),I.removeEventListener(_c,G)}}},[w.viewport,S,l,u,L]),x.useEffect(()=>{i&&!w.isClosePausedRef.current&&L(S)},[i,S,w.isClosePausedRef,L]),x.useEffect(()=>(C(),()=>N()),[C,N]);const q=x.useMemo(()=>v?Pv(v):null,[v]);return w.viewport?h.jsxs(h.Fragment,{children:[q&&h.jsx(C_,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:q}),h.jsx(S_,{scope:n,onClose:D,children:go.createPortal(h.jsx(Kd.ItemSlot,{scope:n,children:h.jsx(r_,{asChild:!0,onEscapeKeyDown:se(a,()=>{w.isFocusedToastEscapeKeyDownRef.current||D(),w.isFocusedToastEscapeKeyDownRef.current=!1}),children:h.jsx(ue.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":w.swipeDirection,...b,ref:m,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:se(t.onKeyDown,I=>{I.key==="Escape"&&(a==null||a(I.nativeEvent),I.nativeEvent.defaultPrevented||(w.isFocusedToastEscapeKeyDownRef.current=!0,D()))}),onPointerDown:se(t.onPointerDown,I=>{I.button===0&&(y.current={x:I.clientX,y:I.clientY})}),onPointerMove:se(t.onPointerMove,I=>{if(!y.current)return;const G=I.clientX-y.current.x,F=I.clientY-y.current.y,V=!!_.current,P=["left","right"].includes(w.swipeDirection),R=["left","up"].includes(w.swipeDirection)?Math.min:Math.max,$=P?R(0,G):0,H=P?0:R(0,F),z=I.pointerType==="touch"?10:2,Y={x:$,y:H},X={originalEvent:I,delta:Y};V?(_.current=Y,Ko(x_,d,X,{discrete:!1})):zh(Y,w.swipeDirection,z)?(_.current=Y,Ko(w_,c,X,{discrete:!1}),I.target.setPointerCapture(I.pointerId)):(Math.abs(G)>z||Math.abs(F)>z)&&(y.current=null)}),onPointerUp:se(t.onPointerUp,I=>{const G=_.current,F=I.target;if(F.hasPointerCapture(I.pointerId)&&F.releasePointerCapture(I.pointerId),_.current=null,y.current=null,G){const V=I.currentTarget,P={originalEvent:I,delta:G};zh(G,w.swipeDirection,w.swipeThreshold)?Ko(__,p,P,{discrete:!0}):Ko(b_,f,P,{discrete:!0}),V.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),w.viewport)})]}):null}),C_=t=>{const{__scopeToast:e,children:n,...r}=t,s=pl(yo,e),[i,o]=x.useState(!1),[a,l]=x.useState(!1);return P_(()=>o(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:h.jsx(gv,{asChild:!0,children:h.jsx(hl,{...r,children:i&&h.jsxs(h.Fragment,{children:[s.label," ",n]})})})},T_="ToastTitle",Sv=x.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return h.jsx(ue.div,{...r,ref:e})});Sv.displayName=T_;var j_="ToastDescription",Ev=x.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return h.jsx(ue.div,{...r,ref:e})});Ev.displayName=j_;var kv="ToastAction",Cv=x.forwardRef((t,e)=>{const{altText:n,...r}=t;return n.trim()?h.jsx(jv,{altText:n,asChild:!0,children:h.jsx(qd,{...r,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${kv}\`. Expected non-empty \`string\`.`),null)});Cv.displayName=kv;var Tv="ToastClose",qd=x.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t,s=E_(Tv,n);return h.jsx(jv,{asChild:!0,children:h.jsx(ue.button,{type:"button",...r,ref:e,onClick:se(t.onClick,s.onClose)})})});qd.displayName=Tv;var jv=x.forwardRef((t,e)=>{const{__scopeToast:n,altText:r,...s}=t;return h.jsx(ue.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:e})});function Pv(t){const e=[];return Array.from(t.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&e.push(r.textContent),R_(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=r.dataset.radixToastAnnounceAlt;o&&e.push(o)}else e.push(...Pv(r))}}),e}function Ko(t,e,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?fv(s,i):s.dispatchEvent(i)}var zh=(t,e,n=0)=>{const r=Math.abs(t.x),s=Math.abs(t.y),i=r>s;return e==="left"||e==="right"?i&&r>n:!i&&s>n};function P_(t=()=>{}){const e=xn(t);bn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[e])}function R_(t){return t.nodeType===t.ELEMENT_NODE}function N_(t){const e=[],n=document.createTreeWalker(t,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();)e.push(n.currentNode);return e}function hu(t){const e=document.activeElement;return t.some(n=>n===e?!0:(n.focus(),document.activeElement!==e))}var A_=yv,Rv=xv,Nv=_v,Av=Sv,Ov=Ev,Iv=Cv,Lv=qd;function $v(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=$v(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Mv(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=$v(t))&&(r&&(r+=" "),r+=e);return r}const Uh=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Bh=Mv,ml=(t,e)=>n=>{var r;if((e==null?void 0:e.variants)==null)return Bh(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=e,o=Object.keys(s).map(u=>{const c=n==null?void 0:n[u],d=i==null?void 0:i[u];if(c===null)return null;const f=Uh(c)||Uh(d);return s[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...p}=c;return Object.entries(p).every(b=>{let[w,v]=b;return Array.isArray(v)?v.includes({...i,...a}[w]):{...i,...a}[w]===v})?[...u,d,f]:u},[]);return Bh(t,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.462.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const O_=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Dv=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();/**
46 * @license lucide-react v0.462.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var I_={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"};/**
51 * @license lucide-react v0.462.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const L_=x.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>x.createElement("svg",{ref:l,...I_,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:Dv("lucide",s),...a},[...o.map(([u,c])=>x.createElement(u,c)),...Array.isArray(i)?i:[i]]));/**
56 * @license lucide-react v0.462.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const pt=(t,e)=>{const n=x.forwardRef(({className:r,...s},i)=>x.createElement(L_,{ref:i,iconNode:e,className:Dv(`lucide-${O_(t)}`,r),...s}));return n.displayName=`${t}`,n};/**
61 * @license lucide-react v0.462.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const Ec=pt("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l
65-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
66 * @license lucide-react v0.462.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const $_=pt("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
71 * @license lucide-react v0.462.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const Ii=pt("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
76 * @license lucide-react v0.462.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const M_=pt("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
81 * @license lucide-react v0.462.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const D_=pt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
86 * @license lucide-react v0.462.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const Fv=pt("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
91 * @license lucide-react v0.462.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const kc=pt("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
96 * @license lucide-react v0.462.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const Xt=pt("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
101 * @license lucide-react v0.462.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const F_=pt("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/**
106 * @license lucide-react v0.462.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const z_=pt("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
111 * @license lucide-react v0.462.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const Pr=pt("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
116 * @license lucide-react v0.462.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const U_=pt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
121 * @license lucide-react v0.462.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const B_=pt("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Gd="-",W_=t=>{const e=H_(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:o=>{const a=o.split(Gd);return a[0]===""&&a.length!==1&&a.shift(),zv(a,e)||V_(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},zv=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),s=r?zv(t.slice(1),r):void 0;if(s)return s;if(e.validators.length===0)return;const i=t.join(Gd);return(o=e.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Wh=/^\[(.+)\]$/,V_=t=>
vendor: 5,295 bytes, line 125
125{if(Wh.test(t)){const e=Wh.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},H_=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return q_(Object.entries(t.classGroups),n).forEach(([i,o])=>{Cc(o,r,i,e)}),r},Cc=(t,e,n,r)=>{t.forEach(s=>{if(typeof s=="string"){const i=s===""?e:Vh(e,s);i.classGroupId=n;return}if(typeof s=="function"){if(K_(s)){Cc(s(r),e,n,r);return}e.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Cc(o,Vh(e,i),n,r)})})},Vh=(t,e)=>{let n=t;return e.split(Gd).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},K_=t=>t.isThemeGetter,q_=(t,e)=>e?t.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[e+o,a])):i);return[n,s]}):t,G_=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),e++,e>t&&(e=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},Uv="!",Q_=t=>{const{separator:e,experimentalParseClassName:n}=t,r=e.length===1,s=e[0],i=e.length,o=a=>{const l=[];let u=0,c=0,d;for(let v=0;v<a.length;v++){let g=a[v];if(u===0){if(g===s&&(r||a.slice(v,v+i)===e)){l.push(a.slice(c,v)),c=v+i;continue}if(g==="/"){d=v;continue}}g==="["?u++:g==="]"&&u--}const f=l.length===0?a:a.substring(c),p=f.startsWith(Uv),b=p?f.substring(1):f,w=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:w}};return n?a=>n({className:a,parseClassName:o}):o},Y_=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e},J_=t=>({cache:G_(t.cacheSize),parseClassName:Q_(t),...W_(t)}),X_=/\s+/,Z_=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=e,i=[],o=t.trim().split(X_);let a="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(u);let b=!!p,w=r(b?f.substring(0,p):f);if(!w){if(!b){a=u+(a.length>0?" "+a:a);continue}if(w=r(f),!w){a=u+(a.length>0?" "+a:a);continue}b=!1}const v=Y_(c).join(":"),g=d?v+Uv:v,m=g+w;if(i.includes(m))continue;i.push(m);const y=s(w,b);for(let _=0;_<y.length;++_){const S=y[_];i.push(g+S)}a=u+(a.length>0?" "+a:a)}return a};function e1(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=Bv(e))&&(r&&(r+=" "),r+=n);return r}const Bv=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=Bv(t[r]))&&(n&&(n+=" "),n+=e);return n};function t1(t,...e){let n,r,s,i=o;function o(l){const u=e.reduce((c,d)=>d(c),t());return n=J_(u),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=Z_(l,n);return s(l,c),c}return function(){return i(e1.apply(null,arguments))}}const ce=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},Wv=/^\[(?:([a-z-]+):)?(.+)\]$/i,n1=/^\d+\/\d+$/,r1=new Set(["px","full","screen"]),s1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,i1=/\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$/,o1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,a1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,l1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,on=t=>Ps(t)||r1.has(t)||n1.test(t),An=t=>Xs(t,"length",g1),Ps=t=>!!t&&!Number.isNaN(Number(t)),pu=t=>Xs(t,"number",Ps),mi=t=>!!t&&Number.isInteger(Number(t)),u1=t=>t.endsWith("%")&&Ps(t.slice(0,-1)),K=t=>Wv.test(t),On=t=>s1.test(t),c1=new Set(["length","size","percentage"]),d1=t=>Xs(t,c1,Vv),f1=t=>Xs(t,"position",Vv),h1=new Set(["image","url"]),p1=t=>Xs(t,h1,y1),m1=t=>Xs(t,"",v1),gi=()=>!0,Xs=(t,e,n)=>{const r=Wv.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1},g1=t=>i1.test(t)&&!o1.test(t),Vv=()=>!1,v1=t=>a1.test(t),y1=t=>l1.test(t),w1=()=>{const t=ce("colors"),e=ce("spacing"),n=ce("blur"),r=ce("brightness"),s=ce("borderColor"),i=ce("borderRadius"),o=ce("borderSpacing"),a=ce("borderWidth"),l=ce("contrast"),u=ce("grayscale"),c=ce("hueRotate"),d=ce("invert"),f=ce("gap"),p=ce("gradientColorStops"),b=ce("gradientColorStopPositions"),w=ce("inset"),v=ce("margin"),g=ce("opacity"),m=ce("padding"),y=ce("saturate"),_=ce("scale"),S=ce("sepia"),E=ce("skew"),k=ce("space"),T=ce("translate"),C=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",K,e],L=()=>[K,e],q=()=>["",on,An],I=()=>["auto",Ps,K],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],V=()=>["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"],R=()=>["","0",K],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[Ps,K];return{cacheSize:500,separator:":",theme:{colors:[gi],spacing:[on,An],blur:["none","",On,K],brightness:H(),borderColor:[t],borderRadius:["n
vendor: 4,544 bytes, line 125
125one","","full",On,K],borderSpacing:L(),borderWidth:q(),contrast:H(),grayscale:R(),hueRotate:H(),invert:R(),gap:L(),gradientColorStops:[t],gradientColorStopPositions:[u1,An],inset:D(),margin:D(),opacity:H(),padding:L(),saturate:H(),scale:H(),sepia:R(),skew:H(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",K]}],container:["container"],columns:[{columns:[On]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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:[...G(),K]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",mi,K]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",K]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",mi,K]}],"grid-cols":[{"grid-cols":[gi]}],"col-start-end":[{col:["auto",{span:["full",mi,K]},K]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[gi]}],"row-start-end":[{row:["auto",{span:[mi,K]},K]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",K]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",K]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...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:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",K,e]}],"min-w":[{"min-w":[K,e,"min","max","fit"]}],"max-w":[{"max-w":[K,e,"none","full","min","max","fit","prose",{screen:[On]},On]}],h:[{h:[K,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[K,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[K,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[K,e,"auto","min","max","fit"]}],"font-size":[{text:["base",On,An]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pu]}],"font-family":[{font:[gi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",K]}],"line-clamp":[{"line-clamp":["none",Ps,pu]}
vendor: 4,399 bytes, line 125
125],leading:[{leading:["none","tight","snug","normal","relaxed","loose",on,K]}],"list-image":[{"list-image":["none",K]}],"list-style-type":[{list:["none","disc","decimal",K]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",on,An]}],"underline-offset":[{"underline-offset":["auto",on,K]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),f1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",d1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},p1]}],"bg-color":[{bg:[t]}],"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:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...F(),"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":[g]}],"divide-style":[{divide:F()}],"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:["",...F()]}],"outline-offset":[{"outline-offset":[on,K]}],"outline-w":[{outline:[on,An]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[on,An]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",On,m1]}],"shadow-color":[{shadow:[gi]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",On,K]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[S]}],"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]}
vendor: 5,447 bytes, line 125
125],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",K]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",K]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",K]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[mi,K]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",K]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",K]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",K]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[on,An,pu]}],stroke:[{stroke:[t,"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"]}}},x1=t1(w1);function te(...t){return x1(Mv(t))}const b1=A_,Hv=x.forwardRef(({className:t,...e},n)=>h.jsx(Rv,{ref:n,className:te("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]",t),...e}));
125Hv.displayName=Rv.displayName;const _1=ml("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"}}),Kv=x.forwardRef(({className:t,variant:e,...n},r)=>h.jsx(Nv,{ref:r,className:te(_1({variant:e}),t),...n}));Kv.displayName=Nv.displayName;const S1=x.forwardRef(({className:t,...e},n)=>h.jsx(Iv,{ref:n,className:te("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",t),...e}));S1.displayName=Iv.displayName;const qv=x.forwardRef(({className:t,...e},n)=>h.jsx(Lv,{ref:n,className:te("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",t),"toast-close":"",...e,children:h.jsx(U_,{className:"h-4 w-4"})}));qv.displayName=Lv.displayName;const Gv=x.forwardRef(({className:t,...e},n)=>h.jsx(Av,{ref:n,className:te("text-sm font-semibold",t),...e}));Gv.displayName=Av.displayName;const Qv=x.forwardRef(({className:t,...e},n)=>h.jsx(Ov,{ref:n,className:te("text-sm opacity-90",t),...e}));Qv.displayName=Ov.displayName;function E1(){const{toasts:t}=dl();return h.jsxs(b1,{children:[t.map(function({id:e,title:n,description:r,action:s,...i}){return h.jsxs(Kv,{...i,children:[h.jsxs("div",{className:"grid gap-1",children:[n&&h.jsx(Gv,{children:n}),r&&h.jsx(Qv,{children:r})]}),s,h.jsx(qv,{})]},e)}),h.jsx(Hv,{})]})}var Hh=["light","dark"],k1="(prefers-color-scheme: dark)",C1=x.createContext(void 0),T1={setTheme:t=>{},themes:[]},j1=()=>{var t;return(t=x.useContext(C1))!=null?t:T1};x.memo(({forcedTheme:t,storageKey:e,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:o,attrs:a,nonce:l})=>{let u=i==="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';`,d=s?Hh.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(b,w=!1,v=!0)=>{let g=o?o[b]:b,m=w?b+"|| ''":`'${g}'`,y="";return s&&v&&!w&&Hh.includes(b)&&(y+=`d.style.colorScheme = '${b}';`),n==="class"?w||g?y+=`c.add(${m})`:y+="null":g&&(y+=`d[s](n,${m})`),y},p=t?`!function(){${c}${f(t)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${u})){var t='${k1}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}${u?"":"else{"+f(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${e}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${d}}catch(t){}}();`;return x.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})});var P1=t=>{switch(t){case"success":return A1;case"info":return I1;case"warning":return O1;case"error":return L1;default:return null}},R1=Array(12).fill(0),N1=({visible:t,className:e})=>O.createElement("div",{className:["sonner-loading-wrapper",e].filter(
125Boolean).join(" "),"data-visible":t},O.createElement("div",{className:"sonner-spinner"},R1.map((n,r)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),A1=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),O1=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),I1=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),L1=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),$1=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},O.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),O.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),M1=()=>{let[t,e]=O.useState(document.hidden);return O.useEffect(()=>{let n=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t},Tc=1,D1=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:n,...r}=t,s=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:Tc++,i=this.toasts.find(a=>a.id===s),o=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...t,id:s,title:n}),{...a,...t,id:s,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:s}),s},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(n=>n({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let n;e.loading!==void 0&&(n=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let r=t instanceof Promise?t:t(),s=n!==void 0,i,o=r.then(async l=>{if(i=["resolve",l],O.isValidElement(l))s=!1,this.create({id:n,type:"default",message:l});else if(z1(l)&&!l.ok){s=!1;let u=typeof e.error=="function"?await e.error(`HTTP error! status: ${l.status}`):e.error,c=typeof e.description=="function"?await e.description(`HTTP error! status: ${l.status}`):e.description;this.create({id:n,type:"error",message:u,description:c})}else if(e.success!==void 0){s=!1;let u=typeof e.success=="function"?await e.success(l):e.success,c=typeof e.description=="function"?await e.description(l):e.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async l=>{if(i=["reject",l],e.error!==void 0){s=!1;let u=typeof e.error=="function"?await e.error(l):e.error,c=typeof e.description=="function"?await e.description(l):e.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var l;s&&(this.dismiss(n),n=void 0),(l=e.finally)==null||l.call(e)}),a=()=>new Promise((l,u)=>o.then(()=>i[0]==="reject"?u(i[1]):l(i[1])).catch(u));
125return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(t,e)=>{let n=(e==null?void 0:e.id)||Tc++;return this.create({jsx:t(n),id:n,...e}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Je=new D1,F1=(t,e)=>{let n=(e==null?void 0:e.id)||Tc++;return Je.addToast({title:t,...e,id:n}),n},z1=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",U1=F1,B1=()=>Je.toasts,W1=()=>Je.getActiveToasts();Object.assign(U1,{success:Je.success,info:Je.info,warning:Je.warning,error:Je.error,custom:Je.custom,message:Je.message,promise:Je.promise,dismiss:Je.dismiss,loading:Je.loading},{getHistory:B1,getToasts:W1});function V1(t,{insertAt:e}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}V1(`: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;
125left: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}
125: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%);
125--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%)}
126`);function qo(t){return t.label!==void 0}var H1=3,K1="32px",q1="16px",Kh=4e3,G1=356,Q1=14,Y1=20,J1=200;function Nt(...t){return t.filter(Boolean).join(" ")}function X1(t){let[e,n]=t.split("-"),r=[];return e&&r.push(e),n&&r.push(n),r}var Z1=t=>{var e,n,r,s,i,o,a,l,u,c,d;let{invert:f,toast:p,unstyled:b,interacting:w,setHeights:v,visibleToasts:g,heights:m,index:y,toasts:_,expanded:S,removeToast:E,defaultRichColors:k,closeButton:T,style:C,cancelButtonStyle:N,actionButtonStyle:D,className:L="",descriptionClassName:q="",duration:I,position:G,gap:F,loadingIcon:V,expandByDefault:P,classNames:R,icons:$,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:z}=t,[Y,X]=O.useState(null),[_e,Le]=O.useState(null),[ne,Yr]=O.useState(!1),[kn,gr]=O.useState(!1),[Cn,Jr]=O.useState(!1),[Tn,Eo]=O.useState(!1),[Il,ko]=O.useState(!1),[Ll,ii]=O.useState(0),[Xr,xf]=O.useState(0),oi=O.useRef(p.duration||I||Kh),bf=O.useRef(null),vr=O.useRef(null),tw=y===0,nw=y+1<=g,mt=p.type,Zr=p.dismissible!==!1,rw=p.className||"",sw=p.descriptionClassName||"",Co=O.useMemo(()=>m.findIndex(U=>U.toastId===p.id)||0,[m,p.id]),iw=O.useMemo(()=>{var U;return(U=p.closeButton)!=null?U:T},[p.closeButton,T]),_f=O.useMemo(()=>p.duration||I||Kh,[p.duration,I]),$l=O.useRef(0),es=O.useRef(0),Sf=O.useRef(0),ts=O.useRef(null),[ow,aw]=G.split("-"),Ef=O.useMemo(()=>m.reduce((U,oe,he)=>he>=Co?U:U+oe.height,0),[m,Co]),kf=M1(),lw=p.invert||f,Ml=mt==="loading";es.current=O.useMemo(()=>Co*F+Ef,[Co,Ef]),O.useEffect(()=>{oi.current=_f},[_f]),O.useEffect(()=>{Yr(!0)},[]),O.useEffect(()=>{let U=vr.current;if(U){let oe=U.getBoundingClientRect().height;return xf(oe),v(he=>[{toastId:p.id,height:oe,position:p.position},...he]),()=>v(he=>he.filter(Tt=>Tt.toastId!==p.id))}},[v,p.id]),O.useLayoutEffect(()=>{if(!ne)return;let U=vr.current,oe=U.style.height;U.style.height="auto";let he=U.getBoundingClientRect().height;U.style.height=oe,xf(he),v(Tt=>Tt.find(jt=>jt.toastId===p.id)?Tt.map(jt=>jt.toastId===p.id?{...jt,height:he}:jt):[{toastId:p.id,height:he,position:p.position},...Tt])},[ne,p.title,p.description,v,p.id]);let jn=O.useCallback(()=>{gr(!0),ii(es.current),v(U=>U.filter(oe=>oe.toastId!==p.id)),setTimeout(()=>{E(p)},J1)},[p,E,v,es]);O.useEffect(()=>{if(p.promise&&mt==="loading"||p.duration===1/0||p.type==="loading")return;let U;return S||w||z&&kf?(()=>{if(Sf.current<$l.current){let oe=new Date().getTime()-$l.current;oi.current=oi.current-oe}
126Sf.current=new Date().getTime()})():oi.current!==1/0&&($l.current=new Date().getTime(),U=setTimeout(()=>{var oe;(oe=p.onAutoClose)==null||oe.call(p,p),jn()},oi.current)),()=>clearTimeout(U)},[S,w,p,mt,z,kf,jn]),O.useEffect(()=>{p.delete&&jn()},[jn,p.delete]);function uw(){var U,oe,he;return $!=null&&$.loading?O.createElement("div",{className:Nt(R==null?void 0:R.loader,(U=p==null?void 0:p.classNames)==null?void 0:U.loader,"sonner-loader"),"data-visible":mt==="loading"},$.loading):V?O.createElement("div",{className:Nt(R==null?void 0:R.loader,(oe=p==null?void 0:p.classNames)==null?void 0:oe.loader,"sonner-loader"),"data-visible":mt==="loading"},V):O.createElement(N1,{className:Nt(R==null?void 0:R.loader,(he=p==null?void 0:p.classNames)==null?void 0:he.loader),visible:mt==="loading"})}return O.createElement("li",{tabIndex:0,ref:vr,className:Nt(L,rw,R==null?void 0:R.toast,(e=p==null?void 0:p.classNames)==null?void 0:e.toast,R==null?void 0:R.default,R==null?void 0:R[mt],(n=p==null?void 0:p.classNames)==null?void 0:n[mt]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:k,"data-styled":!(p.jsx||p.unstyled||b),"data-mounted":ne,"data-promise":!!p.promise,"data-swiped":Il,"data-removed":kn,"data-visible":nw,"data-y-position":ow,"data-x-position":aw,"data-index":y,"data-front":tw,"data-swiping":Cn,"data-dismissible":Zr,"data-type":mt,"data-invert":lw,"data-swipe-out":Tn,"data-swipe-direction":_e,"data-expanded":!!(S||P&&ne),style:{"--index":y,"--toasts-before":y,"--z-index":_.length-y,"--offset":`${kn?Ll:es.current}px`,"--initial-height":P?"auto":`${Xr}px`,...C,...p.style},onDragEnd:()=>{Jr(!1),X(null),ts.current=null},onPointerDown:U=>{Ml||!Zr||(bf.current=new Date,ii(es.current),U.target.setPointerCapture(U.pointerId),U.target.tagName!=="BUTTON"&&(Jr(!0),ts.current={x:U.clientX,y:U.clientY}))},onPointerUp:()=>{var U,oe,he,Tt;if(Tn||!Zr)return;ts.current=null;let jt=Number(((U=vr.current)==null?void 0:U.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Pn=Number(((oe=vr.current)==null?void 0:oe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),yr=new Date().getTime()-((he=bf.current)==null?void 0:he.getTime()),Pt=Y==="x"?jt:Pn,Rn=Math.abs(Pt)/yr;if(Math.abs(Pt)>=Y1||Rn>.11){ii(es.current),(Tt=p.onDismiss)==null||Tt.call(p,p),Le(Y==="x"?jt>0?"right":"left":Pn>0?"down":"up"),jn(),Eo(!0),ko(!1);return}Jr(!1),X(null)},onPointerMove:U=>{var oe,he,Tt,jt;if(!ts.current||!Zr||((oe=window.getSelection())==null?void 0:oe.toString().length)>0)return;let Pn=U.clientY-ts.current.y,yr=U.clientX-ts.current.x,Pt=(he=t.swipeDirections)!=null?he:X1(G);!Y&&(Math.abs(yr)>1||Math.abs(Pn)>1)&&X(Math.abs(yr)>Math.abs(Pn)?"x":"y");let Rn={x:0,y:0};Y==="y"?(Pt.includes("top")||Pt.includes("bottom"))&&(Pt.includes("top")&&Pn<0||Pt.includes("bottom")&&Pn>0)&&(Rn.y=Pn):Y==="x"&&(Pt.includes("left")||Pt.includes("right"))&&(Pt.includes("left")&&yr<0||Pt.includes("right")&&yr>0)&&(Rn.x=yr),(Math.abs(Rn.x)>0||Math.abs(Rn.y)>0)&&ko(!0),(Tt=vr.current)==null||Tt.style.setProperty("--swipe-amount-x",`${Rn.x}px`),(jt=vr.current)==null||jt.style.setProperty("--swipe-amount-y",`${Rn.y}px`)}},iw&&!p.jsx?O.createElement("button",{"aria-label":H,"data-disabled":Ml,"data-close-button":!0,onClick:Ml||!Zr?()=>{}:()=>{var U;jn(),(U=p.onDismiss)==null||U.call(p,p)},className:Nt(R==null?void 0:R.closeButton,(s=p==null?void 0:p.classNames)==null?void 0:s.closeButton)},(i=$==null?void 0:$.close)!=null?i:$1):null,p.jsx||x.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:O.createElement(O.Fragment,null,mt||p.icon||p.promise?O.createElement("div",{"data-icon":"",className:Nt(R==null?void 0:R.icon,(o=p==null?void 0:p.classNames)==null?void 0:o.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||uw():null,p.type!=="loading"?p.icon||($==null?void 0:$[mt])||P1(mt):null):null,O.createElement("div",{"data-content":"",className:Nt(R==null?void 0:R.content,(a=p==null?void 0:p.classNames)==null?void 0:a.content)},O.createElement("div",{"data-title":"",className:Nt(R==null?void 0:R.title,(l=p==null?void 0:p.classNames)==null?void 0:l.title)},typeof p.title=="function"?p.title():p.title),p.description?O.createElement("div",{"data-description":"",className:Nt(q,sw,R==null?void 0:R.description,(u=p==null?void 0:p.classNames)==null?void 0:u.description)},typeof p.description=="function"?p.description():p.description):null),x.isValidElement(p.cancel)?p.cancel:p.cancel&&qo(p.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||N,onClick:U=>{var oe,he;qo(p.cancel)&&Zr&&((he=(oe=p.cancel).onClick)==null||he.call(oe,U),jn())},className:Nt(R==null?void 0:R.cancelButton,(c=p==null?void 0:p.classNames)==null?void 0:c.cancelButton)},p.cancel.label):null,x.isValidElement(p.action)?p.action:p.action&&qo(p.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||D,onClick:U=>{var oe,he;qo(p.action)&&((he=(oe=p.action).onClick)==null||he.call(oe,U),!U.defaultPrevented&&jn())},className:Nt(R==null?void 0:R.actionButton,(d=p==null?void 0:p.classNames)==null?void 0:d.actionButton)},p.action.label):null))};function qh(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function eS(t,e){let n={};return[t,e].forEach((r,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?q1:K1;function l(u){["top","right","bottom","left"].forEach(c=>{n[`${o}-${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[`${o}-${u}`]=a:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var tS=x.forwardRef(function(t,e){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:l,mobileOffset:u,theme:c="light",richColors:d,duration:f,style:p,visibleToasts:b=H1,toastOptions:w,dir:v=qh(),gap:g=Q1,loadingIcon:m,icons:y,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:S}=t,[E,k]=O.useState([]),T=O.useMemo(()=>Array.from(new Set([r].concat(E.filter(z=>z.position).map(z=>z.position)))),[E,r]),[C,N]=O.useState([]),[D,L]=O.useState(!1),[q,I]=O.useState(!1),[G,F]=O.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
126k":"light"),V=O.useRef(null),P=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=O.useRef(null),$=O.useRef(!1),H=O.useCallback(z=>{k(Y=>{var X;return(X=Y.find(_e=>_e.id===z.id))!=null&&X.delete||Je.dismiss(z.id),Y.filter(({id:_e})=>_e!==z.id)})},[]);return O.useEffect(()=>Je.subscribe(z=>{if(z.dismiss){k(Y=>Y.map(X=>X.id===z.id?{...X,delete:!0}:X));return}setTimeout(()=>{av.flushSync(()=>{k(Y=>{let X=Y.findIndex(_e=>_e.id===z.id);return X!==-1?[...Y.slice(0,X),{...Y[X],...z},...Y.slice(X+1)]:[z,...Y]})})})}),[]),O.useEffect(()=>{if(c!=="system"){F(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),typeof window>"u")return;let z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:Y})=>{F(Y?"dark":"light")})}catch{z.addListener(({matches:X})=>{try{F(X?"dark":"light")}catch(_e){console.error(_e)}})}},[c]),O.useEffect(()=>{E.length<=1&&L(!1)},[E]),O.useEffect(()=>{let z=Y=>{var X,_e;s.every(Le=>Y[Le]||Y.code===Le)&&(L(!0),(X=V.current)==null||X.focus()),Y.code==="Escape"&&(document.activeElement===V.current||(_e=V.current)!=null&&_e.contains(document.activeElement))&&L(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[s]),O.useEffect(()=>{if(V.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,$.current=!1)}},[V.current]),O.createElement("section",{ref:e,"aria-label":`${_} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((z,Y)=>{var X;let[_e,Le]=z.split("-");return E.length?O.createElement("ol",{key:z,dir:v==="auto"?qh():v,tabIndex:-1,ref:V,className:a,"data-sonner-toaster":!0,"data-theme":G,"data-y-position":_e,"data-lifted":D&&E.length>1&&!i,"data-x-position":Le,style:{"--front-toast-height":`${((X=C[0])==null?void 0:X.height)||0}px`,"--width":`${G1}px`,"--gap":`${g}px`,...p,...eS(l,u)},onBlur:ne=>{$.current&&!ne.currentTarget.contains(ne.relatedTarget)&&($.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:ne=>{ne.target instanceof HTMLElement&&ne.target.dataset.dismissible==="false"||$.current||($.current=!0,R.current=ne.relatedTarget)},onMouseEnter:()=>L(!0),onMouseMove:()=>L(!0),onMouseLeave:()=>{q||L(!1)},onDragEnd:()=>L(!1),onPointerDown:ne=>{ne.target instanceof HTMLElement&&ne.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},E.filter(ne=>!ne.position&&Y===0||ne.position===z).map((ne,Yr)=>{var kn,gr;return O.createElement(Z1,{key:ne.id,icons:y,index:Yr,toast:ne,defaultRichColors:d,duration:(kn=w==null?void 0:w.duration)!=null?kn:f,className:w==null?void 0:w.className,descriptionClassName:w==null?void 0:w.descriptionClassName,invert:n,visibleToasts:b,closeButton:(gr=w==null?void 0:w.closeButton)!=null?gr:o,interacting:q,position:z,style:w==null?void 0:w.style,unstyled:w==null?void 0:w.unstyled,classNames:w==null?void 0:w.classNames,cancelButtonStyle:w==null?void 0:w.cancelButtonStyle,actionButtonStyle:w==null?void 0:w.actionButtonStyle,removeToast:H,toasts:E.filter(Cn=>Cn.position==ne.position),heights:C.filter(Cn=>Cn.position==ne.position),setHeights:N,expandByDefault:i,gap:g,loadingIcon:m,expanded:D,pauseWhenPageIsHidden:S,swipeDirections:t.swipeDirections})})):null}))});const nS=({...t})=>{const{theme:e="system"}=j1();return h.jsx(tS,{theme:e,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"}},...t})};var rS=Zc[" useId ".trim().toString()]||(()=>{}),sS=0;function Yv(t){const[e,n]=x.useState(rS());return bn(()=>{t||n(r=>r??String(sS++))},[t]),t||(e?`radix-${e}`:"")}const iS=["top","right","bottom","left"],ur=Math.min,at=Math.max,za=Math.round,Go=Math.floor,nn=t=>({x:t,y:t}
vendor: 11,919 bytes, line 126
126),oS={left:"right",right:"left",bottom:"top",top:"bottom"},aS={start:"end",end:"start"};function jc(t,e,n){return at(t,ur(e,n))}function _n(t,e){return typeof t=="function"?t(e):t}function Sn(t){return t.split("-")[0]}function Zs(t){return t.split("-")[1]}function Qd(t){return t==="x"?"y":"x"}function Yd(t){return t==="y"?"height":"width"}const lS=new Set(["top","bottom"]);function Zt(t){return lS.has(Sn(t))?"y":"x"}function Jd(t){return Qd(Zt(t))}function uS(t,e,n){n===void 0&&(n=!1);const r=Zs(t),s=Jd(t),i=Yd(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=Ua(o)),[o,Ua(o)]}function cS(t){const e=Ua(t);return[Pc(t),e,Pc(e)]}function Pc(t){return t.replace(/start|end/g,e=>aS[e])}const Gh=["left","right"],Qh=["right","left"],dS=["top","bottom"],fS=["bottom","top"];function hS(t,e,n){switch(t){case"top":case"bottom":return n?e?Qh:Gh:e?Gh:Qh;case"left":case"right":return e?dS:fS;default:return[]}}function pS(t,e,n,r){const s=Zs(t);let i=hS(Sn(t),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),e&&(i=i.concat(i.map(Pc)))),i}function Ua(t){return t.replace(/left|right|bottom|top/g,e=>oS[e])}function mS(t){return{top:0,right:0,bottom:0,left:0,...t}}function Jv(t){return typeof t!="number"?mS(t):{top:t,right:t,bottom:t,left:t}}function Ba(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function Yh(t,e,n){let{reference:r,floating:s}=t;const i=Zt(e),o=Jd(e),a=Yd(o),l=Sn(e),u=i==="y",c=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,f=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:d};break;case"left":p={x:r.x-s.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Zs(e)){case"start":p[o]-=f*(n&&u?-1:1);break;case"end":p[o]+=f*(n&&u?-1:1);break}return p}const gS=async(t,e,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let u=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:c,y:d}=Yh(u,r,l),f=r,p={},b=0;for(let w=0;w<a.length;w++){const{name:v,fn:g}=a[w],{x:m,y,data:_,reset:S}=await g({x:c,y:d,initialPlacement:r,placement:f,strategy:s,middlewareData:p,rects:u,platform:o,elements:{reference:t,floating:e}});c=m??c,d=y??d,p={...p,[v]:{...p[v],..._}},S&&b<=50&&(b++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(u=S.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):S.rects),{x:c,y:d}=Yh(u,f,l)),w=-1)}return{x:c,y:d,placement:f,strategy:s,middlewareData:p}};async function to(t,e){var n;e===void 0&&(e={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=_n(e,t),b=Jv(p),v=a[f?d==="floating"?"reference":"floating":d],g=Ba(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),m=d==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),_=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},S=Ba(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:y,strategy:l}):m);return{top:(g.top-S.top+b.top)/_.y,bottom:(S.bottom-g.bottom+b.bottom)/_.y,left:(g.left-S.left+b.left)/_.x,right:(S.right-g.right+b.right)/_.x}}const vS=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=e,{element:u,padding:c=0}=_n(t,e)||{};if(u==null)return{};const d=Jv(c),f={x:n,y:r},p=Jd(s),b=Yd(p),w=await o.getDimensions(u),v=p==="y",g=v?"top":"left",m=v?"bottom":"right",y=v?"clientHeight":"clientWidth",_=i.reference[b]+i.reference[p]-f[p]-i.floating[b],S=f[p]-i.reference[p],E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let k=E?E[y]:0;(!k||!await(o.isElement==null?void 0:o.isElement(E)))&&(k=a.floating[y]||i.floating[b]);const T=_/2-S/2,C=k/2-w[b]/2-1,N=ur(d[g],C),D=ur(d[m],C),L=N,q=k-w[b]-D,I=k/2-w[b]/2+T,G=jc(L,I,q),F=!l.arrow&&Zs(s)!=null&&I!==G&&i.reference[b]/2-(I<L?N:D)-w[b]/2<0,V=F?I<L?I-L:I-q:0;return{[p]:f[p]+V,data:{[p]:G,centerOffset:I-G-V,...F&&{alignmentOffset:V}},reset:F}}}),yS=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=e,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:w=!0,...v}=_n(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=Sn(s),m=Zt(a),y=Sn(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=f||(y||!w?[Ua(a)]:cS(a)),E=b!=="none";!f&&E&&S.push(...pS(a,w,b,_));const k=[a,...S],T=await to(e,v),C=[];let N=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&C.push(T[g]),d){const I=uS(s,o,_);C.push(T[I[0]],T[I[1]])}if(N=[...N,{placement:s,overflows:C}],!C.every(I=>I<=0)){var D,L;const I=(((D=i.flip)==null?void 0:D.index)||0)+1,G=k[I];if(G&&(!(d==="alignment"?m!==Zt(G):!1)||N.every(P=>P.overflows[0]>0&&Zt(P.placement)===m)))return{data:{index:I,overflows:N},reset:{placement:G}};let F=(L=N.filter(V=>V.overflows[0]<=0).sort((V,P)=>V.overflows[1]-P.overflows[1])[0])==null?void 0:L.placement;if(!F)switch(p){case"bestFit":{var q;const V=(q=N.filter(P=>{if(E){const R=Zt(P.placement);return R===m||R==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(R=>R>0).reduce((R,$)=>R+$,0)]).sort((P,R)=>P[1]-R[1])[0])==null?void 0:q[0];V&&(F=V);break}case"initialPlacement":F=a;break}if(s!==F)return{reset:{placement:F}}}return{}}}};function Jh(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Xh(t){return iS.some(e=>t[e]>=0)}const wS=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...s}=_n(t,e);switch(r){case"referenceHidden":{const i=await to(e,{...s,elementContext:"reference"}),o=Jh(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Xh(o)}}}case"escaped":{const i=await to(e,{...s,altBoundary:!0}),o=Jh(i,n.floating);return{data:{escapedOffsets:o,escaped:Xh(o)}}}default:return{}}}}},Xv=new Set(["left","top"]);async function xS(t,e){const{placement:n,platform:r,elements:s}=t,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Sn(n),a=Zs(n),l=Zt(n)==="y",u=Xv.has(o)?-1:1,c=i&&l?-1:1,d=_n(e,t);let{mainAxis:f,crossAxis:p,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof b=="number"&&(p=a==="end"?b*-1:b),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}const bS=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=e,l=await xS(e,t);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},_S=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:v=>{let{x:g,y:m}=v;return{x:g,y:m}}},...l}=_n(t,e),u={x:n,y:r},c=await to(e,l),d=Zt(Sn(s)),f=Qd(d);let p=u[f],b=u[d];if(i){const v=f==="y"?"top":"left",g=f==="y"?"bottom":"right",m=p+c[v],y=p-c[g];p=jc(m,p,y)}if(o){const v=d==="y"?"top":"left",g=d==="y"?"bottom":"right",m=b+c[v],y=b-c[g];b=jc(m,b,y)}const w=a.fn({...e,[f]:p,[d]:b});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[f]:i,[d]:o}}}}}},SS=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=_n(t,e),c={x:n,y:r},d=Zt(s),f=Qd(d);let p=c[f],b=c[d];const w=_n(a,e),v=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(l){const y=f==="y"?"height":"width",_=i.reference[f]-i.floating[y]+v.mainAxis,S=i.reference[f]+i.reference[y]-v.mainAxis;p<_?p=_:p>S&&(p=S)}if(u){var g,m;const y=f==="y"?"width":"height",_=Xv.has(Sn(s)),S=i.reference[d]-i.floating[y]+(_&&((g=o.offset)==null?void 0:g[d])||0)+(_?0:v.crossAxis),E=i.reference[d]+i.reference[y]+(_?0:((m=o.offset)==null?void 0:m[d])||0)-(_?v.crossAxis:0);b<S?b=S:b>E&&(b=E)}return{[f]:p,[d]:b}}}},ES=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:s,rects:i,platform:o,elements:a}=e,{apply:l=()=>{},...u}=_n(t,e),c=await to(e,u),d=Sn(s),f=Zs(s),p=Zt(s)==="y",{width:b,height:w}=i.floating;let v,g;d==="top"||d==="bottom"?(v=d,g=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(g=d,v=f==="end"?"top":"bottom");const m=w-c.top-c.bottom,y=b-c.left-c.right,_=ur(w-c[v],m),S=ur(b-c[g],y),E=!e.middlewareData.shift;let k=_,T=S;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(T=y),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(k=m),E&&!f){const N=at(c.left,0),D=at(c.right,0),L=at(c.top,0),q=at(c.bottom,0);p?T=b-2*(N!==0||D!==0?N+D:at(c.left,c.right)):k=w-2*(L!==0||q!==0?L+q:at(c.top,c.bottom))}await l({...e,availableWidth:T,availableHeight:k});const C=await o.getDimensions(a.floating);return b!==C.width||w!==C.height?{reset:{rects:!0}}:{}}}};function gl(){return typeof window<"u"}function ei(t){return Zv(t)?(t.nodeName||"").toLowerCase():"#document"}function ct(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function sn(t){var e;return(e=(Zv(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Zv(t){return gl()?t instanceof Node||t instanceof ct(t).Node:!1}function Bt(t){return gl()?t instanceof Element||t instanceof ct(t).Element:!1}function rn(t){return gl()?t instanceof HTMLElement||t instanceof ct(t).HTMLElement:!1}function Zh(t){return!gl()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ct(t).ShadowRoot}const kS=new Set(["inline","contents"]);function wo(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=Wt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!kS.has(s)}const CS=new Set(["table","td","th"]);function TS(t){return CS.has(ei(t))}const jS=[":popover-open",":modal"];function vl(t){return jS.some(e=>{try{return t.matches(e)}catch{return!1}})}const PS=["transform","translate","scale","rotate","perspective"],RS=["transform","translate","scale","rotate","perspective","filter"],NS=["paint","layout","strict","content"];function Xd(t){const e=Zd(),n=Bt(t)?Wt(t):t;return PS.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||RS.some(r=>(n.willChange||"").includes(r))||NS.some(r=>(n.contain||"").includes(r))}function AS(t){let e=cr(t);for(;rn(e)&&!Ks(e);){if(Xd(e))return e;if(vl(e))return null;e=cr(e)}return null}function Zd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const OS=new Set(["html","body","#document"]);function Ks(t){return OS.has(ei(t))}function Wt(t){return ct(t).getComputedStyle(t)}function yl(t){return Bt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function cr(t){if(ei(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Zh(t)&&t.host||sn(t);return Zh(e)?e.host:e}function ey(t){const e=cr(t);return Ks(e)?t.ownerDocument?t.ownerDocument.body:t.body:rn(e)&&wo(e)?e:ey(e)}function no(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=ey(t),i=s===((r=t.ownerDocument)==null?void 0:r.body),o=ct(s);if(i){const a=Rc(o);
vendor: 4,828 bytes, line 126
126return e.concat(o,o.visualViewport||[],wo(s)?s:[],a&&n?no(a):[])}return e.concat(s,no(s,[],n))}function Rc(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ty(t){const e=Wt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=rn(t),i=s?t.offsetWidth:n,o=s?t.offsetHeight:r,a=za(n)!==i||za(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function ef(t){return Bt(t)?t:t.contextElement}function Rs(t){const e=ef(t);if(!rn(e))return nn(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:i}=ty(e);let o=(i?za(n.width):n.width)/r,a=(i?za(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const IS=nn(0);function ny(t){const e=ct(t);return!Zd()||!e.visualViewport?IS:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function LS(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==ct(t)?!1:e}function Kr(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),i=ef(t);let o=nn(1);e&&(r?Bt(r)&&(o=Rs(r)):o=Rs(t));const a=LS(i,n,r)?ny(i):nn(0);let l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,c=s.width/o.x,d=s.height/o.y;if(i){const f=ct(i),p=r&&Bt(r)?ct(r):r;let b=f,w=Rc(b);for(;w&&r&&p!==b;){const v=Rs(w),g=w.getBoundingClientRect(),m=Wt(w),y=g.left+(w.clientLeft+parseFloat(m.paddingLeft))*v.x,_=g.top+(w.clientTop+parseFloat(m.paddingTop))*v.y;l*=v.x,u*=v.y,c*=v.x,d*=v.y,l+=y,u+=_,b=ct(w),w=Rc(b)}}return Ba({width:c,height:d,x:l,y:u})}function tf(t,e){const n=yl(t).scrollLeft;return e?e.left+n:Kr(sn(t)).left+n}function ry(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=r.left+e.scrollLeft-(n?0:tf(t,r)),i=r.top+e.scrollTop;return{x:s,y:i}}function $S(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const i=s==="fixed",o=sn(r),a=e?vl(e.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=nn(1);const c=nn(0),d=rn(r);if((d||!d&&!i)&&((ei(r)!=="body"||wo(o))&&(l=yl(r)),rn(r))){const p=Kr(r);u=Rs(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}const f=o&&!d&&!i?ry(o,l,!0):nn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function MS(t){return Array.from(t.getClientRects())}function DS(t){const e=sn(t),n=yl(t),r=t.ownerDocument.body,s=at(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=at(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+tf(t);const a=-n.scrollTop;return Wt(r).direction==="rtl"&&(o+=at(e.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function FS(t,e){const n=ct(t),r=sn(t),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=Zd();(!u||u&&e==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}const zS=new Set(["absolute","fixed"]);function US(t,e){const n=Kr(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,i=rn(t)?Rs(t):nn(1),o=t.clientWidth*i.x,a=t.clientHeight*i.y,l=s*i.x,u=r*i.y;return{width:o,height:a,x:l,y:u}}function ep(t,e,n){let r;if(e==="viewport")r=FS(t,n);else if(e==="document")r=DS(sn(t));else if(Bt(e))r=US(e,n);else{const s=ny(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return Ba(r)}function sy(t,e){const n=cr(t);return n===e||!Bt(n)||Ks(n)?!1:Wt(n).position==="fixed"||sy(n,e)}function BS(t,e){const n=e.get(t);if(n)return n;let r=no(t,[],!1).filter(a=>Bt(a)&&ei(a)!=="body"),s=null;const i=Wt(t).position==="fixed";let o=i?cr(t):t;for(;Bt(o)&&!Ks(o);){const a=Wt(o),l=Xd(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&zS.has(s.position)||wo(o)&&!l&&sy(t,o))?r=r.filter(c=>c!==o):s=a,o=cr(o)}return e.set(t,r),r}function WS(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const o=[...n==="clippingAncestors"?vl(e)?[]:BS(e,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,c)=>{const d=ep(e,c,s);return u.top=at(d.top,u.top),u.right=ur(d.right,u.right),u.bottom=ur(d.bottom,u.bottom),u.left=at(d.left,u.left),u},ep(e,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function VS(t){const{width:e,height:n}=ty(t);return{width:e,height:n}}function HS(t,e,n){const r=rn(e),s=sn(e),i=n==="fixed",o=Kr(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=nn(0);function u(){l.x=tf(s)}if(r||!r&&!i)if((ei(e)!=="body"||wo(s))&&(a=yl(e)),r){const p=Kr(e,!0,i,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}else s&&u();i&&!r&&s&&u();const c=s&&!r&&!i?ry(s,a):nn(0),d=o.left+a.scrollLeft-l.x-c.x,f=o.top+a.scrollTop-l.y-c.y;return{x:d,y:f,width:o.width,height:o.height}}function mu(t){return Wt(t).position==="static"}function tp(t,e){if(!rn(t)||Wt(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return sn(t)===n&&(n=n.ownerDocument.body),n}function iy(t,e){const n=ct(t);if(vl(t))return n;if(!rn(t)){let s=cr(t);for(;s&&!Ks(s);
vendor: 8,932 bytes, line 126
126){if(Bt(s)&&!mu(s))return s;s=cr(s)}return n}let r=tp(t,e);for(;r&&TS(r)&&mu(r);)r=tp(r,e);return r&&Ks(r)&&mu(r)&&!Xd(r)?n:r||AS(t)||n}const KS=async function(t){const e=this.getOffsetParent||iy,n=this.getDimensions,r=await n(t.floating);return{reference:HS(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function qS(t){return Wt(t).direction==="rtl"}const GS={convertOffsetParentRelativeRectToViewportRelativeRect:$S,getDocumentElement:sn,getClippingRect:WS,getOffsetParent:iy,getElementRects:KS,getClientRects:MS,getDimensions:VS,getScale:Rs,isElement:Bt,isRTL:qS};function oy(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function QS(t,e){let n=null,r;const s=sn(t);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=t.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(a||e(),!f||!p)return;const b=Go(d),w=Go(s.clientWidth-(c+f)),v=Go(s.clientHeight-(d+p)),g=Go(c),y={rootMargin:-b+"px "+-w+"px "+-v+"px "+-g+"px",threshold:at(0,ur(1,l))||1};let _=!0;function S(E){const k=E[0].intersectionRatio;if(k!==l){if(!_)return o();k?o(!1,k):r=setTimeout(()=>{o(!1,1e-7)},1e3)}k===1&&!oy(u,t.getBoundingClientRect())&&o(),_=!1}try{n=new IntersectionObserver(S,{...y,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,y)}n.observe(t)}return o(!0),i}function YS(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=ef(t),c=s||i?[...u?no(u):[],...no(e)]:[];c.forEach(g=>{s&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const d=u&&a?QS(u,n):null;let f=-1,p=null;o&&(p=new ResizeObserver(g=>{let[m]=g;m&&m.target===u&&p&&(p.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=p)==null||y.observe(e)})),n()}),u&&!l&&p.observe(u),p.observe(e));let b,w=l?Kr(t):null;l&&v();function v(){const g=Kr(t);w&&!oy(w,g)&&n(),w=g,b=requestAnimationFrame(v)}return n(),()=>{var g;c.forEach(m=>{s&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),d==null||d(),(g=p)==null||g.disconnect(),p=null,l&&cancelAnimationFrame(b)}}const JS=bS,XS=_S,ZS=yS,eE=ES,tE=wS,np=vS,nE=SS,rE=(t,e,n)=>{const r=new Map,s={platform:GS,...n},i={...s.platform,_c:r};return gS(t,e,{...s,platform:i})};var sE=typeof document<"u",iE=function(){},ha=sE?x.useLayoutEffect:iE;function Wa(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Wa(t[r],e[r]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&t.$$typeof)&&!Wa(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function ay(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function rp(t,e){const n=ay(t);return Math.round(e*n)/n}function gu(t){const e=x.useRef(t);return ha(()=>{e.current=t}),e}function oE(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=t,[c,d]=x.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[f,p]=x.useState(r);Wa(f,r)||p(r);const[b,w]=x.useState(null),[v,g]=x.useState(null),m=x.useCallback(P=>{P!==E.current&&(E.current=P,w(P))},[]),y=x.useCallback(P=>{P!==k.current&&(k.current=P,g(P))},[]),_=i||b,S=o||v,E=x.useRef(null),k=x.useRef(null),T=x.useRef(c),C=l!=null,N=gu(l),D=gu(s),L=gu(u),q=x.useCallback(()=>{if(!E.current||!k.current)return;const P={placement:e,strategy:n,middleware:f};D.current&&(P.platform=D.current),rE(E.current,k.current,P).then(R=>{const $={...R,isPositioned:L.current!==!1};I.current&&!Wa(T.current,$)&&(T.current=$,go.flushSync(()=>{d($)}))})},[f,e,n,D,L]);ha(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[u]);const I=x.useRef(!1);ha(()=>(I.current=!0,()=>{I.current=!1}),[]),ha(()=>{if(_&&(E.current=_),S&&(k.current=S),_&&S){if(N.current)return N.current(_,S,q);q()}},[_,S,q,N,C]);const G=x.useMemo(()=>({reference:E,floating:k,setReference:m,setFloating:y}),[m,y]),F=x.useMemo(()=>({reference:_,floating:S}),[_,S]),V=x.useMemo(()=>{const P={position:n,left:0,top:0};if(!F.floating)return P;const R=rp(F.floating,c.x),$=rp(F.floating,c.y);return a?{...P,transform:"translate("+R+"px, "+$+"px)",...ay(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:$}},[n,a,F.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:q,refs:G,elements:F,floatingStyles:V}),[c,q,G,F,V])}const aE=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:s}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?np({element:r.current,padding:s}).fn(n):{}:r?np({element:r,padding:s}).fn(n):{}}}},lE=(t,e)=>({...JS(t),options:[t,e]}),uE=(t,e)=>({...XS(t),options:[t,e]}),cE=(t,e)=>({...nE(t),options:[t,e]}),dE=(t,e)=>({...ZS(t),options:[t,e]}),fE=(t,e)=>({...eE(t),options:[t,e]}),hE=(t,e)=>({...tE(t),options:[t,e]}),pE=(t,e)=>({...aE(t),options:[t,e]});var mE="Arrow",ly=x.forwardRef((t,e)=>{const{children:n,width:r=10,height:s=5,...i}=t;return h.jsx(ue.svg,{...i,ref:e,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});ly.displayName=mE;var gE=ly;function uy(t){const[e,n]=x.useState(void 0);return bn(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,a=u.blockSize}else o=t.offsetWidth,a=t.offsetHeight;n({width:o,height:a})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var cy="Popper",[dy,fy]=pr(cy),[EP,hy]=dy(cy),py="PopperAnchor",my=x.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...s}=t,i=hy(py,n),o=x.useRef(null),a=it(e,o);return x.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:h.jsx(ue.div,{...s,ref:a})});my.displayName=py;var nf="PopperContent",[vE,yE]=dy(nf),gy=x.forwardRef((t,e)=>{var ne,Yr,kn,gr,Cn,Jr;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:b,...w}=t,v=hy(nf,n),[g,m]=x.useState(null),y=it(e,Tn=>m(Tn)),[_,S]=x.useState(null),E=uy(_),k=(E==null?void 0:E.width)??0,T=(E==null?void 0:E.height)??0,C=r+(i!=="center"?"-"+i:""),N=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},D=Array.isArray(u)?u:[u],L=D.length>0,q={padding:N,boundary:D.filter(xE),altBoundary:L},{refs:I,floatingStyles:G,placement:F,isPositioned:V,middlewareData:P}=oE({strategy:"fixed",placement:C,whileElementsMounted:(...Tn)=>YS(...Tn,{animationFrame:p==="always"}),elements:{reference:v.anchor},middleware:[lE({mainAxis:s+T,alignmentAxis:o}),l&&uE({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?cE():void 0,...q}),l&&dE({...q}),fE({...q,apply:({elements:Tn,rects:Eo,availableWidth:Il,availableHeight:ko})=>{const{width:Ll,height:ii}=Eo.reference,Xr=Tn.floating.style;Xr.setProperty("--radix-popper-available-width",`${Il}px`),Xr.setProperty("--radix-popper-available-height",`${ko}px`),Xr.setProperty("--radix-popper-anchor-width",`${Ll}px`),Xr.setProperty("--radix-popper-anchor-height",`${ii}px`)}}),_&&pE({element:_,padding:a}),bE({arrowWidth:k,arrowHeight:T}),f&&hE({strategy:"referenceHidden",...q})]}),[R,$]=wy(F),H=xn(b);bn(()=>{V&&(H==null||H())},[V,H]);const z=(ne=P.arrow)==null?void 0:ne.x,Y=(Yr=P.arrow)==null?void 0:Yr.y,X=((kn=P.arrow)==null?void 0:kn.centerOffset)!==0,[_e,Le]=x.useState();return bn(()=>{g&&Le(window.getComputedStyle(g).zIndex)},[g]),h.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:V?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_e,"--radix-popper-transform-origin":[(gr=P.transformOrigin)==null?void 0:gr.x,(Cn=P.transformOrigin)==null?void 0:Cn.y].join(" "),...((Jr=P.hide)==null?void 0:Jr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:h.jsx(vE,{scope:n,placedSide:R,onArrowChange:S,arrowX:z,arrowY:Y,shouldHideArrow:X,children:h.jsx(ue.div,{"data-side":R,"data-align":$,...w,ref:y,style:{...w.style,animation:V?void 0:"none"}})})})});gy.displayName=nf;var vy="PopperArrow",wE={top:"bottom",right:"left",bottom:"top",left:"r
126ight"},yy=x.forwardRef(function(e,n){const{__scopePopper:r,...s}=e,i=yE(vy,r),o=wE[i.placedSide];return h.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:h.jsx(gE,{...s,ref:n,style:{...s.style,display:"block"}})})});yy.displayName=vy;function xE(t){return t!==null}var bE=t=>({name:"transformOrigin",options:t,fn(e){var v,g,m;const{placement:n,rects:r,middlewareData:s}=e,o=((v=s.arrow)==null?void 0:v.centerOffset)!==0,a=o?0:t.arrowWidth,l=o?0:t.arrowHeight,[u,c]=wy(n),d={start:"0%",center:"50%",end:"100%"}[c],f=(((g=s.arrow)==null?void 0:g.x)??0)+a/2,p=(((m=s.arrow)==null?void 0:m.y)??0)+l/2;let b="",w="";return u==="bottom"?(b=o?d:`${f}px`,w=`${-l}px`):u==="top"?(b=o?d:`${f}px`,w=`${r.floating.height+l}px`):u==="right"?(b=`${-l}px`,w=o?d:`${p}px`):u==="left"&&(b=`${r.floating.width+l}px`,w=o?d:`${p}px`),{data:{x:b,y:w}}}});function wy(t){const[e,n="center"]=t.split("-");return[e,n]}var _E=my,SE=gy,EE=yy,[wl,kP]=pr("Tooltip",[fy]),rf=fy(),xy="TooltipProvider",kE=700,sp="tooltip.open",[CE,by]=wl(xy),_y=t=>{const{__scopeTooltip:e,delayDuration:n=kE,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=t,o=x.useRef(!0),a=x.useRef(!1),l=x.useRef(0);return x.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),h.jsx(CE,{scope:e,isOpenDelayedRef:o,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:x.useCallback(u=>{a.current=u},[]),disableHoverableContent:s,children:i})};_y.displayName=xy;var Sy="Tooltip",[CP,xl]=wl(Sy),Nc="TooltipTrigger",TE=x.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,s=xl(Nc,n),i=by(Nc,n),o=rf(n),a=x.useRef(null),l=it(e,a,s.onTriggerChange),u=x.useRef(!1),c=x.useRef(!1),d=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),h.jsx(_E,{asChild:!0,...o,children:h.jsx(ue.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:se(t.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),c.current=!0)}),onPointerLeave:se(t.onPointerLeave,()=>{s.onTriggerLeave(),c.current=!1}),onPointerDown:se(t.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:se(t.onFocus,()=>{u.current||s.onOpen()}),onBlur:se(t.onBlur,s.onClose),onClick:se(t.onClick,s.onClose)})})});TE.displayName=Nc;var jE="TooltipPortal",[TP,PE]=wl(jE,{forceMount:void 0}),qs="TooltipContent",Ey=x.forwardRef((t,e)=>{const n=PE(qs,t.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=t,o=xl(qs,t.__scopeTooltip);return h.jsx(vo,{present:r||o.open,children:o.disableHoverableContent?h.jsx(ky,{side:s,...i,ref:e}):h.jsx(RE,{side:s,...i,ref:e})})}),RE=x.forwardRef((t,e)=>{const n=xl(qs,t.__scopeTooltip),r=by(qs,t.__scopeTooltip),s=x.useRef(null),i=it(e,s),[o,a]=x.useState(null),{trigger:l,onClose:u}=n,c=s.current,{onPointerInTransitChange:d}=r,f=x.useCallback(()=>{a(null),d(!1)},[d]),p=x.useCallback((b,w)=>{const v=b.currentTarget,g={x:b.clientX,y:b.clientY},m=LE(g,v.getBoundingClientRect()),y=$E(g,m),_=ME(w.getBoundingClientRect()),S=FE([...y,..._]);a(S),d(!0)},[d]);return x.useEffect(()=>()=>f(),[f]),x.useEffect(()=>{if(l&&c){const b=v=>p(v,c),w=v=>p(v,l);return l.addEventListener("pointerleave",b),c.addEventListener("pointerleave",w),()=>{l.removeEventListener("pointerleave",b),c.removeEventListener("pointerleave",w)}}},[l,c,p,f]),x.useEffect(()=>{if(o){const b=w=>{const v=w.target,g={x:w.clientX,y:w.clientY},m=(l==null?void 0:l.contains(v))||(c==null?void 0:c.contains(v)),y=!DE(g,o);m?f():y&&(f(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,c,o,u,f]),h.jsx(ky,{...t,ref:i})}),[NE,AE]=wl(Sy,{isInside:!1}),OE=Hb("TooltipContent"),ky=x.forwardRef((t,e)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=t,l=xl(qs,n),u=rf(n),{onClose:c}=l;return x.useEffect(()=>(document.addEventListener(sp,c),()=>document.removeEventListener(sp,c)),[c]),x.useEffect(()=>{if(l.trigger){const d=f=>{const p=f.target;p!=null&&p.contains(l.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,c]),h.jsx(Vd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:h.jsxs(SE,{"data-state":l.stateAttribute,...u,...a,ref:e,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:[h.jsx(OE,{children:r}),h.jsx(NE,{scope:n,isInside:!0,children:h.jsx(p_,{id:l.contentId,role:"tooltip",children:s||r})})]})})});Ey.displayName=qs;var Cy="TooltipArrow",IE=x.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,s=rf(n);return AE(Cy,n).isInside?null:h.jsx(EE,{...s,...r,ref:e})});IE.displayName=Cy;function LE(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),s=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(n,r,s,i)){case i:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function $E(t,e,n=5){const r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return r}function ME(t){const{top:e,right:n,bottom:r,left:s}=t;return[{x:s,y:e},{x:n,y:e},{x:n,y:r},{x:s,y:r}]}function DE(t,e){const{x:n,y:r}=t;let s=!1;for(let i=0,o=e.length-1;i<e.length;o=i++){const a=e[i],l=e[o],u=a.x,c=a.y,d=l.x,f=l.y;c>r!=f>r&&n<(d-u)*(r-c)/(f-c)+u&&(s=!s)}return s}function FE(t){const e=t.slice();return e.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),zE(e)}function zE(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r<t.length;r++){const s=t[r];for(;e.length>=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))e.pop();else break}e.push(s)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const s=t[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))n.pop();else break}n.push(s)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var UE=_y,Ty=Ey;const BE=UE,WE=x.forwardRef(({className:t,sideOffset:e=4,...n},r)=>h.jsx(Ty,{ref:r,sideOffset:e,className:te("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]:sli
126de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n}));WE.displayName=Ty.displayName;var bl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},_l=typeof window>"u"||"Deno"in globalThis;function Ot(){}function VE(t,e){return typeof t=="function"?t(e):t}function HE(t){return typeof t=="number"&&t>=0&&t!==1/0}function KE(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Ac(t,e){return typeof t=="function"?t(e):t}function qE(t,e){return typeof t=="function"?t(e):t}function ip(t,e){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=t;if(o){if(r){if(e.queryHash!==sf(o,e.options))return!1}else if(!so(e.queryKey,o))return!1}if(n!=="all"){const l=e.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||s&&s!==e.state.fetchStatus||i&&!i(e))}function op(t,e){const{exact:n,status:r,predicate:s,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(n){if(ro(e.options.mutationKey)!==ro(i))return!1}else if(!so(e.options.mutationKey,i))return!1}return!(r&&e.state.status!==r||s&&!s(e))}function sf(t,e){return((e==null?void 0:e.queryKeyHashFn)||ro)(t)}function ro(t){return JSON.stringify(t,(e,n)=>Oc(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function so(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>so(t[n],e[n])):!1}function jy(t,e){if(t===e)return t;const n=ap(t)&&ap(e);if(n||Oc(t)&&Oc(e)){const r=n?t:Object.keys(t),s=r.length,i=n?e:Object.keys(e),o=i.length,a=n?[]:{},l=new Set(r);let u=0;for(let c=0;c<o;c++){const d=n?c:i[c];(!n&&l.has(d)||n)&&t[d]===void 0&&e[d]===void 0?(a[d]=void 0,u++):(a[d]=jy(t[d],e[d]),a[d]===t[d]&&t[d]!==void 0&&u++)}return s===o&&u===s?t:a}return e}function ap(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Oc(t){if(!lp(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!lp(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function lp(t){return Object.prototype.toString.call(t)==="[object Object]"}function GE(t){return new Promise(e=>{setTimeout(e,t)})}function QE(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?jy(t,e):e}function YE(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function JE(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var of=Symbol();function Py(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===of?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var Ar,Vn,Ns,zp,XE=(zp=class extends bl{constructor(){super();ee(this,Ar);ee(this,Vn);ee(this,Ns);B(this,Ns,e=>{if(!_l&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){j(this,Vn)||this.setEventListener(j(this,Ns))}onUnsubscribe(){var e;this.hasListeners()||((e=j(this,Vn))==null||e.call(this),B(this,Vn,void 0))}setEventListener(e){var n;B(this,Ns,e),(n=j(this,Vn))==null||n.call(this),B(this,Vn,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){j(this,Ar)!==e&&(B(this,Ar,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof j(this,Ar)=="boolean"?j(this,Ar):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Ar=new WeakMap,Vn=new WeakMap,Ns=new WeakMap,zp),Ry=new XE,As,Hn,Os,Up,ZE=(Up=class extends bl{constructor(){super();ee(this,As,!0);ee(this,Hn);ee(this,Os);B(this,Os,e=>{if(!_l&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){j(this,Hn)||this.setEventListener(j(this,Os))}onUnsubscribe(){var e;this.hasListeners()||((e=j(this,Hn))==null||e.call(this),B(this,Hn,void 0))}setEventListener(e){var n;B(this,Os,e),(n=j(this,Hn))==null||n.call(this),B(this,Hn,e(this.setOnline.bind(this)))}setOnline(e){j(this,As)!==e&&(B(this,As,e),this.listeners.forEac
vendor: 19,398 bytes, line 126
126h(r=>{r(e)}))}isOnline(){return j(this,As)}},As=new WeakMap,Hn=new WeakMap,Os=new WeakMap,Up),Va=new ZE;function ek(){let t,e;const n=new Promise((s,i)=>{t=s,e=i});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}),t(s)},n.reject=s=>{r({status:"rejected",reason:s}),e(s)},n}function tk(t){return Math.min(1e3*2**t,3e4)}function Ny(t){return(t??"online")==="online"?Va.isOnline():!0}var Ay=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function vu(t){return t instanceof Ay}function Oy(t){let e=!1,n=0,r=!1,s;const i=ek(),o=w=>{var v;r||(f(new Ay(w)),(v=t.abort)==null||v.call(t))},a=()=>{e=!0},l=()=>{e=!1},u=()=>Ry.isFocused()&&(t.networkMode==="always"||Va.isOnline())&&t.canRun(),c=()=>Ny(t.networkMode)&&t.canRun(),d=w=>{var v;r||(r=!0,(v=t.onSuccess)==null||v.call(t,w),s==null||s(),i.resolve(w))},f=w=>{var v;r||(r=!0,(v=t.onError)==null||v.call(t,w),s==null||s(),i.reject(w))},p=()=>new Promise(w=>{var v;s=g=>{(r||u())&&w(g)},(v=t.onPause)==null||v.call(t)}).then(()=>{var w;s=void 0,r||(w=t.onContinue)==null||w.call(t)}),b=()=>{if(r)return;let w;const v=n===0?t.initialPromise:void 0;try{w=v??t.fn()}catch(g){w=Promise.reject(g)}Promise.resolve(w).then(d).catch(g=>{var E;if(r)return;const m=t.retry??(_l?0:3),y=t.retryDelay??tk,_=typeof y=="function"?y(n,g):y,S=m===!0||typeof m=="number"&&n<m||typeof m=="function"&&m(n,g);if(e||!S){f(g);return}n++,(E=t.onFail)==null||E.call(t,n,g),GE(_).then(()=>u()?void 0:p()).then(()=>{e?f(g):b()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?b():p().then(b),i)}}var nk=t=>setTimeout(t,0);function rk(){let t=[],e=0,n=a=>{a()},r=a=>{a()},s=nk;const i=a=>{e?t.push(a):s(()=>{n(a)})},o=()=>{const a=t;t=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;e++;try{l=a()}finally{e--,e||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var He=rk(),Or,Bp,Iy=(Bp=class{constructor(){ee(this,Or)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),HE(this.gcTime)&&B(this,Or,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(_l?1/0:5*60*1e3))}clearGcTimeout(){j(this,Or)&&(clearTimeout(j(this,Or)),B(this,Or,void 0))}},Or=new WeakMap,Bp),Is,Ir,vt,Lr,Fe,lo,$r,It,ln,Wp,sk=(Wp=class extends Iy{constructor(e){super();ee(this,It);ee(this,Is);ee(this,Ir);ee(this,vt);ee(this,Lr);ee(this,Fe);ee(this,lo);ee(this,$r);B(this,$r,!1),B(this,lo,e.defaultOptions),this.setOptions(e.options),this.observers=[],B(this,Lr,e.client),B(this,vt,j(this,Lr).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,B(this,Is,ok(this.options)),this.state=e.state??j(this,Is),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=j(this,Fe))==null?void 0:e.promise}setOptions(e){this.options={...j(this,lo),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&j(this,vt).remove(this)}setData(e,n){const r=QE(this.state.data,e,this.options);return $e(this,It,ln).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){$e(this,It,ln).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r,s;const n=(r=j(this,Fe))==null?void 0:r.promise;return(s=j(this,Fe))==null||s.cancel(e),n?n.then(Ot).catch(Ot):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(j(this,Is))}isActive(){return this.observers.some(e=>qE(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===of||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ac(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!KE(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=j(this,Fe))==null||n.continue()}onOnline(){var n;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=j(this,Fe))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),j(this,vt).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(j(this,Fe)&&(j(this,$r)?j(this,Fe).cancel({revert:!0}):j(this,Fe).cancelRetry()),this.scheduleGc()),j(this,vt).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$e(this,It,ln).call(this,{type:"invalidate"})}fetch(e,n){var u,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(j(this,Fe))return j(this,Fe).continueRetry(),j(this,Fe).promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(B(this,$r,!0),r.signal)})},i=()=>{const f=Py(this.options,n),b=(()=>{const w={client:j(this,Lr),queryKey:this.queryKey,meta:this.meta};return s(w),w})();return B(this,$r,!1),this.options.persister?this.options.persister(f,b,this):f(b)},a=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:j(this,Lr),state:this.state,fetchFn:i};return s(f),f})();(u=this.options.behavior)==null||u.onFetch(a,this),B(this,Ir,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&$e(this,It,ln).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=f=>{var p,b,w,v;vu(f)&&f.silent||$e(this,It,ln).call(this,{type:"error",error:f}),vu(f)||((b=(p=j(this,vt).config).onError)==null||b.call(p,f,this),(v=(w=j(this,vt).config).onSettled)==null||v.call(w,this.state.data,f,this)),this.scheduleGc()};return B(this,Fe,Oy({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,b,w,v;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(g){l(g);return}(b=(p=j(this,vt).config).onSuccess)==null||b.call(p,f,this),(v=(w=j(this,vt).config).onSettled)==null||v.call(w,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,p)=>{$e(this,It,ln).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{$e(this,It,ln).call(this,{type:"pause"})},onContinue:()=>{$e(this,It,ln).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),j(this,Fe).start()}},Is=new WeakMap,Ir=new WeakMap,vt=new WeakMap,Lr=new WeakMap,Fe=new WeakMap,lo=new WeakMap,$r=new WeakMap,It=new WeakSet,ln=function(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...ik(r.data,this.options),fetchMeta:e.meta??null};case"success":return B(this,Ir,void 0),{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=e.error;return vu(s)&&s.revert&&j(this,Ir)?{...j(this,Ir),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,...e.state}}};this.state=n(this.state),He.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),j(this,vt).notify({query:this,type:"updated",action:e})})},Wp);function ik(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ny(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function ok(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,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 Gt,Vp,ak=(Vp=class extends bl{constructor(e={}){super();ee(this,Gt);this.config=e,B(this,Gt,new Map)}build(e,n,r){const s=n.queryKey,i=n.queryHash??sf(s,n);let o=this.get(i);return o||(o=new sk({client:e,queryKey:s,queryHash:i,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(o)),o}add(e){j(this,Gt).has(e.queryHash)||(j(this,Gt).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=j(this,Gt).get(e.queryHash);n&&(e.destroy(),n===e&&j(this,Gt).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){He.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return j(this,Gt).get(e)}getAll(){return[...j(this,Gt).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>ip(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>ip(e,r)):n}notify(e){He.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){He.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){He.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Gt=new WeakMap,Vp),Qt,We,Mr,Yt,Ln,Hp,lk=(Hp=class extends Iy{constructor(e){super();ee(this,Yt);ee(this,Qt);ee(this,We);ee(this,Mr);this.mutationId=e.mutationId,B(this,We,e.mutationCache),B(this,Qt,[]),this.state=e.state||uk(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){j(this,Qt).includes(e)||(j(this,Qt).push(e),this.clearGcTimeout(),j(this,We).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){B(this,Qt,j(this,Qt).filter(n=>n!==e)),this.scheduleGc(),j(this,We).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){j(this,Qt).length||(this.state.status==="pending"?this.scheduleGc():j(this,We).remove(this))}continue(){var e;return((e=j(this,Mr))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,o,a,l,u,c,d,f,p,b,w,v,g,m,y,_,S,E,k,T;const n=()=>{$e(this,Yt,Ln).call(this,{type:"continue"})};B(this,Mr,Oy({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(C,N)=>{$e(this,Yt,Ln).call(this,{type:"failed",failureCount:C,error:N})},onPause:()=>{$e(this,Yt,Ln).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>j(this,We).canRun(this)}));const r=this.state.status==="pending",s=!j(this,Mr).canStart();try{if(r)n();else{$e(this,Yt,Ln).call(this,{type:"pending",variables:e,isPaused:s}),await((o=(i=j(this,We).config).onMutate)==null?void 0:o.call(i,e,this));const N=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,e));N!==this.state.context&&$e(this,Yt,Ln).call(this,{type:"pending",context:N,variables:e,isPaused:s})}const C=await j(this,Mr).start();return await((c=(u=j(this,We).config).onSuccess)==null?void 0:c.call(u,C,e,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,C,e,this.state.context)),await((b=(p=j(this,We).config).onSettled)==null?void 0:b.call(p,C,null,this.state.variables,this.state.context,this)),await((v=(w=this.options).onSettled)==null?void 0:v.call(w,C,null,e,this.state.context)),$e(this,Yt,Ln).call(this,{type:"success",data:C}),C}catch(C){try{throw await((m=(g=j(this,We).config).onError)==null?void 0:m.call(g,C,e,this.state.context,this)),await((_=(y=this.options).onError)==null?void 0:_.call(y,C,e,this.state.context)),await((E=(S=j(this,We).config).onSettled)==null?void 0:E.call(S,void 0,C,this.state.variables,this.state.context,this)),await((T=(k=this.options).onSettled)==null?void 0:T.call(k,void 0,C,e,this.state.context)),C}finally{$e(this,Yt,Ln).call(this,{type:"error",error:C})}}finally{j(this,We).runNext(this)}}},Qt=new WeakMap,We=new WeakMap,Mr=new WeakMap,Yt=new WeakSet,Ln=function(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),He.batch(()=>{j(this,Qt).forEach(r=>{r.onMutationUpdate(e)}),j(this,We).notify({mutation:this,type:"updated",action:e})})},Hp);function uk(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var fn,Lt,uo,Kp,ck=(Kp=class extends bl{constructor(e={}){super();ee(this,fn);ee(this,Lt);ee(this,uo);this.config=e,B(this,fn,new Set),B(this,Lt,new Map),B(this,uo,0)}build(e,n,r){const s=new lk({mutationCache:this,mutationId:++To(this,uo)._,options:e.defaultMutationOptions(n),state:r});return this.add(s),s}add(e){j(this,fn).add(e);const n=Qo(e);if(typeof n=="string"){const r=j(this,Lt).get(n);r?r.push(e):j(this,Lt).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(j(this,fn).delete(e)){const n=Qo(e);if(typeof n=="string"){const r=j(this,Lt).get(n);if(r)if(r.length>1){const s=r.indexOf(e);s!==-1&&r.splice(s,1)}else r[0]===e&&j(this,Lt).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Qo(e);if(typeof n=="string"){const r=j(this,Lt).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===e}else return!0}runNext(e){var r;const n=Qo(e);if(typeof n=="string"){const s=(r=j(this,Lt).get(n))==null?void 0:r.find(i=>i!==e&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){He.batch(()=>{j(this,fn).forEach(e=>{this.notify({type:"removed",mutation:e})}),j(this,fn).clear(),j(this,Lt).clear()})}getAll(){return Array.from(j(this,fn))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>op(n,r))}findAll(e={}){return this.getAll().filter(n=>op(e,n))}notify(e){He.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return He.batch(()=>Promise.all(e.map(n=>n.continue().catch(Ot))))}},fn=new WeakMap,Lt=new WeakMap,uo=new WeakMap,Kp);function Qo(t){var e;return(e=t.options.scope)==null?void 0:e.id}function up(t){return{onFetch:(e,n)=>{var c,d,f,p,b;const r=e.options,s=(f=(d=(c=e.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,i=((p=e.state.data)==null?void 0:p.pages)||[],o=((b=e.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let w=!1;const v=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(e.signal.aborted?w=!0:e.signal.addEventListener("abort",()=>{w=!0}),e.signal)})},g=Py(e.options,e.fetchOptions),m=async(y,_,S)=>{if(w)return Promise.reject();if(_==null&&y.pages.length)return Promise.resolve(y);const k=(()=>{const D={client:e.client,queryKey:e.queryKey,pageParam:_,direction:S?"backward":"forward",meta:e.options.meta};return v(D),D})(),T=await g(k),{maxPages:C}=e.options,N=S?JE:YE;return{pages:N(y.pages,T,C),pageParams:N(y.pageParams,_,C)}};if(s&&i.length){const y=s==="backward",_=y?dk:cp,S={pages:i,pageParams:o},E=_(r,S);a=await m(S,E,y)}else{const y=t??i.length;do{const _=l===0?o[0]??r.initialPageParam:cp(r,a);if(l>0&&_==null)break;a=await m(a,_),l++}while(l<y)}return a};e.options.persister?e.fetchFn=()=>{var w,v;return(v=(w=e.options).persister)==null?void 0:v.call(w,u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=u}}}function cp(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function dk(t,{pages:e,pageParams:n}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,n[0],n):void 0}var ye,Kn,qn,Ls,$s,Gn,Ms,Ds,qp,fk=(qp=class{constructor(t={}){ee(this,ye);ee(this,Kn);ee(this,qn);ee(this,Ls);ee(this,$s);ee(this,Gn);ee(this,Ms);ee(this,Ds);B(this,ye,t.queryCache||new ak),B(this,Kn,t.mutationCache||new ck),B(this,qn,t.defaultOptions||{}),B(this,Ls,new Map),B(this,$s,new Map),B(this,Gn,0)}mount(){To(this,Gn)._++,j(this,Gn)===1&&(B(this,Ms,Ry.subscribe(async t=>{t&&(await this.resumePausedMutations(),j(this,ye).onFocus())})),B(this,Ds,Va.subscribe(async t=>{t&&(await this.resumePausedMutations(),j(this,ye).onOnline())})))}unmount(){var t,e;To(this,Gn)._--,j(this,Gn)===0&&((t=j(this,Ms))==null||t.call(this),B(this,Ms,void 0),(e=j(this,Ds))==null||e.call(this),B(this,Ds,void 0))}isFetching(t){return j(this,ye).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return j(this,Kn).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=j(this,ye).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=j(this,ye).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Ac(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return j(this,ye).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),s=j(this,ye).get(r.queryHash),i=s==null?void 0:s.state.data,o=VE(e,i);if(o!==void 0)return j(this,ye).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(t,e,n){return He.batch(()=>j(this,ye).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=j(this,ye).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=j(this,ye);He.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=j(this,ye);return He.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=He.batch(()=>j(this,ye).findAll(t).map(s=>s.cancel(n)));return Promise.all(r).then(Ot).catch(Ot)}invalidateQueries(t,e={}){return He.batch(()=>(j(this,ye).findAll(t).forEach(n=>
126{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},r=He.batch(()=>j(this,ye).findAll(t).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(Ot)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Ot)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=j(this,ye).build(this,e);return n.isStaleByTime(Ac(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ot).catch(Ot)}fetchInfiniteQuery(t){return t.behavior=up(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ot).catch(Ot)}ensureInfiniteQueryData(t){return t.behavior=up(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Va.isOnline()?j(this,Kn).resumePausedMutations():Promise.resolve()}getQueryCache(){return j(this,ye)}getMutationCache(){return j(this,Kn)}getDefaultOptions(){return j(this,qn)}setDefaultOptions(t){B(this,qn,t)}setQueryDefaults(t,e){j(this,Ls).set(ro(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...j(this,Ls).values()],n={};return e.forEach(r=>{so(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){j(this,$s).set(ro(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...j(this,$s).values()],n={};return e.forEach(r=>{so(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...j(this,qn).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=sf(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===of&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...j(this,qn).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){j(this,ye).clear(),j(this,Kn).clear()}},ye=new WeakMap,Kn=new WeakMap,qn=new WeakMap,Ls=new WeakMap,$s=new WeakMap,Gn=new WeakMap,Ms=new WeakMap,Ds=new WeakMap,qp),hk=x.createContext(void 0),pk=({client:t,children:e})=>(x.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),h.jsx(hk.Provider,{value:t,children:e}));/**
127 * @remix-run/router v1.23.0
128 *
129 * Copyright (c) Remix Software Inc.
130 *
131 * This source code is licensed under the MIT license found in the
132 * LICENSE.md file in the root directory of this source tree.
133 *
134 * @license MIT
135 */function io(){return io=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},io.apply(this,arguments)}var Jn;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Jn||(Jn={}));const dp="popstate";function mk(t){t===void 0&&(t={});function e(r,s){let{pathname:i,search:o,hash:a}=r.location;return Ic("",{pathname:i,search:o,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:$y(s)}return vk(e,n,null,t)}function je(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Ly(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function gk(){return Math.random().toString(36).substr(2,8)}function fp(t,e){return{usr:t.state,key:t.key,idx:e}}function Ic(t,e,n,r){return n===void 0&&(n=null),io({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?ti(e):e,{state:n,key:e&&e.key||r||gk()})}function $y(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function ti(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function vk(t,e,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=Jn.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(io({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){a=Jn.Pop;let v=c(),g=v==null?null:v-u;u=v,l&&l({action:a,location:w.location,delta:g})}function f(v,g){a=Jn.Push;let m=Ic(w.location,v,g);u=c()+1;let y=fp(m,u),_=w.createHref(m);try{o.pushState(y,"",_)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(_)}i&&l&&l({action:a,location:w.location,delta:1})}function p(v,g){a=Jn.Replace;let m=Ic(w.location,v,g);u=c();let y=fp(m,u),_=w.createHref(m);o.replaceState(y,"",_),i&&l&&l({action:a,location:w.location,delta:0})}function b(v){let g=s.location.origin!=="null"?s.location.origin:s.location.href,m=typeof v=="string"?v:$y(v);return m=m.replace(/ $/,"%20"),je(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let w={get action(){return a},get location(){return t(s,o)},listen(v){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(dp,d),l=v,()=>{s.removeEventListener(dp,d),l=null}},createHref(v){return e(s,v)},createURL:b,encodeLocation(v){let g=b(v);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:p,go(v){return o.go(v)}};return w}var hp;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(hp||(hp={}));function yk(t,e,n){return n===void 0&&(n="/"),wk(t,e,n,!1)}function wk(t,e,n,r){let s=typeof e=="string"?ti(e):e,i=Fy(s.pathname||"/",n);if(i==null)return null;let o=My(t);xk(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let u=Nk(i);a=Pk(o[l],u,r)}return a}function My(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,o,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(je(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not val
135id. 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=zr([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(je(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),My(i.children,e,c,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:Tk(u,i.index),routesMeta:c})};return t.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let l of Dy(i.path))s(i,o,l)}),e}function Dy(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=Dy(r.join("/")),a=[];return a.push(...o.map(l=>l===""?i:[i,l].join("/"))),s&&a.push(...o),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function xk(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:jk(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const bk=/^:[\w-]+$/,_k=3,Sk=2,Ek=1,kk=10,Ck=-2,pp=t=>t==="*";function Tk(t,e){let n=t.split("/"),r=n.length;return n.some(pp)&&(r+=Ck),e&&(r+=Sk),n.filter(s=>!pp(s)).reduce((s,i)=>s+(bk.test(i)?_k:i===""?Ek:kk),r)}function jk(t,e){return t.length===e.length&&t.slice(0,-1).every((r,s)=>r===e[s])?t[t.length-1]-e[e.length-1]:0}function Pk(t,e,n){let{routesMeta:r}=t,s={},i="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=i==="/"?e:e.slice(i.length)||"/",d=mp({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),f=l.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=mp({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;
vendor: 14,008 bytes, lines 135-153
135Object.assign(s,d.params),o.push({params:s,pathname:zr([i,d.pathname]),pathnameBase:Mk(zr([i,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(i=zr([i,d.pathnameBase]))}return o}function mp(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=Rk(t.path,t.caseSensitive,t.end),s=e.match(n);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((u,c,d)=>{let{paramName:f,isOptional:p}=c;if(f==="*"){let w=a[d]||"";o=i.slice(0,i.length-w.length).replace(/(.)\/+$/,"$1")}const b=a[d];return p&&!b?u[f]=void 0:u[f]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:t}}function Rk(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),Ly(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,e?void 0:"i"),r]}function Nk(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Ly(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Fy(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function Ak(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:s=""}=typeof t=="string"?ti(t):t;return{pathname:n?n.startsWith("/")?n:Ok(n,e):e,search:Dk(r),hash:Fk(s)}}function Ok(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function yu(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` 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 Ik(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Lk(t,e){let n=Ik(t);return e?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function $k(t,e,n,r){r===void 0&&(r=!1);let s;typeof t=="string"?s=ti(t):(s=io({},t),je(!s.pathname||!s.pathname.includes("?"),yu("?","pathname","search",s)),je(!s.pathname||!s.pathname.includes("#"),yu("#","pathname","hash",s)),je(!s.search||!s.search.includes("#"),yu("#","search","hash",s)));let i=t===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=n;else{let d=e.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;s.pathname=f.join("/")}a=d>=0?e[d]:"/"}let l=Ak(s,a),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const zr=t=>t.join("/").replace(/\/\/+/g,"/"),Mk=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Dk=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Fk=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function zk(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const zy=["post","put","patch","delete"];new Set(zy);const Uk=["get",...zy];new Set(Uk);/**
136 * React Router v6.30.1
137 *
138 * Copyright (c) Remix Software Inc.
139 *
140 * This source code is licensed under the MIT license found in the
141 * LICENSE.md file in the root directory of this source tree.
142 *
143 * @license MIT
144 */function oo(){return oo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},oo.apply(this,arguments)}const af=x.createContext(null),Bk=x.createContext(null),Sl=x.createContext(null),El=x.createContext(null),ni=x.createContext({outlet:null,matches:[],isDataRoute:!1}),Uy=x.createContext(null);function kl(){return x.useContext(El)!=null}function lf(){return kl()||je(!1),x.useContext(El).location}function By(t){x.useContext(Sl).static||x.useLayoutEffect(t)}function Cl(){let{isDataRoute:t}=x.useContext(ni);return t?tC():Wk()}function Wk(){kl()||je(!1);let t=x.useContext(af),{basename:e,future:n,navigator:r}=x.useContext(Sl),{matches:s}=x.useContext(ni),{pathname:i}=lf(),o=JSON.stringify(Lk(s,n.v7_relativeSplatPath)),a=x.useRef(!1);return By(()=>{a.current=!0}),x.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=$k(u,JSON.parse(o),i,c.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:zr([e,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[e,r,o,i,t])}function Vk(t,e){return Hk(t,e)}function Hk(t,e,n,r){kl()||je(!1);let{navigator:s}=x.useContext(Sl),{matches:i}=x.useContext(ni),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=lf(),c;if(e){var d;let v=typeof e=="string"?ti(e):e;l==="/"||(d=v.pathname)!=null&&d.startsWith(l)||je(!1),c=v}else c=u;let f=c.pathname||"/",p=f;if(l!=="/"){let v=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(v.length).join("/")}let b=yk(t,{pathname:p}),w=Yk(b&&b.map(v=>Object.assign({},v,{params:Object.assign({},a,v.params),pathname:zr([l,s.encodeLocation?s.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:zr([l,s.encodeLocation?s.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n,r);return e&&w?x.createElement(El.Provider,{value:{location:oo({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Jn.Pop}},w):w}function Kk(){let t=eC(),e=zk(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},e),n?x.createElement("pre",{style:s},n):null,null)}const qk=x.createElement(Kk,null);class Gk extends x.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?x.createElement(ni.Provider,{value:this.props.routeContext},x.createElement(Uy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Qk(t){let{routeContext:e,match:n,children:r}=t,s=x.useContext(af);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(ni.Provider,{value:e},r)}function Yk(t,e,n,r){var s;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var i;if(!n)return null;if(n.errors)t=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let o=t,a=(s=n)==null?void 0:s.errors;if(a!=null){let c=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||je(!1),o=o.slice(0,Math.min(o.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<o.length;c++){let d=o[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:p}=n,b=d.route.loader&&f[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||b){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,d,f)=>{let p,b=!1,w=null,v=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,w=d.route.errorElement||qk,l&&(u<0&&f===0?(b=!0,v=null):u===f&&(b=!0,v=d.route.hydrateFallbackElement||null)));let g=e.concat(o.slice(0,f+1)),m=()=>{let y;return p?y=w:b?y=v:d.route.Component?y=x.createElement(d.route.Component,null):d.route.element?y=d.route.element:y=c,x.createElement(Qk,{match:d,routeContext:{outlet:c,matches:g,isDataRoute:n!=null},children:y})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?x.createElement(Gk,{location:n.location,revalidation:n.revalidation,component:w,error:p,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var Wy=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Wy||{}),Ha=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Ha||{});function Jk(t){let e=x.useContext(af);return e||je(!1),e}function Xk(t){let e=x.useContext(Bk);return e||je(!1),e}function Zk(t){let e=x.useContext(ni);return e||je(!1),e}function Vy(t){let e=Zk(),n=e.matches[e.matches.length-1];return n.route.id||je(!1),n.route.id}function eC(){var t;let e=x.useContext(Uy),n=Xk(Ha.UseRouteError),r=Vy(Ha.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function tC(){let{router:t}=Jk(Wy.UseNavigateStable),e=Vy(Ha.UseNavigateStable),n=x.useRef(!1);return By(()=>{n.current=!0}),x.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?t.navigate(s):t.navigate(s,oo({fromRouteId:e},i)))},[t,e])}function nC(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function ls(t){je(!1)}function rC(t){let{basename:e="/",children:n=null,location:r,navigationType:s=Jn.Pop,navigator:i,static:o=!1,future:a}=t;kl()&&je(!1);let l=e.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:l,navigator:i,static:o,future:oo({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof r=="string"&&(r=ti(r));let{pathname:c="/",search:d="",hash:f="",state:p=null,key:b="default"}=r,w=x.useMemo(()=>{let v=Fy(c,l);return v==null?null:{location:{pathname:v,search:d,hash:f,state:p,key:b},navigationType:s}},[l,c,d,f,p,b,s]);return w==null?null:x.createElement(Sl.Provider,{value:u},x.createElement(El.Provider,{children:n,value:w}))}function sC(t){let{children:e,location:n}=t;return Vk(Lc(e),n)}new Promise(()=>{});function Lc(t,e){e===void 0&&(e=[]);let n=[];return x.Children.forEach(t,(r,s)=>{if(!x.isValidElement(r))return;let i=[...e,s];if(r.type===x.Fragment){n.push.apply(n,Lc(r.props.children,i));return}r.type!==ls&&je(!1),!r.props.index||!r.props.children||je(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Lc(r.props.children,i)),n.push(o)}),n}/**
145 * React Router DOM v6.30.1
146 *
147 * Copyright (c) Remix Software Inc.
148 *
149 * This source code is licensed under the MIT license found in the
150 * LICENSE.md file in the root directory of this source tree.
151 *
152 * @license MIT
153 */const iC="6";try{window.__reactRouterVersion=iC}catch{}const oC="startTransition",gp=Zc[oC];function aC(t){let{basename:e,children:n,future:r,window:s}=t,i=x.useRef();i.current==null&&(i.current=mk({window:s,v5Compat:!0}));let o=i.current,[a,l]=x.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=x.useCallback(d=>{u&&gp?gp(()=>l(d)):l(d)},[l,u]);return x.useLayoutEffect(()=>o.listen(c),[o,c]),x.useEffect(()=>nC(r),[r]),x.createElement(rC,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}var vp;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(vp||(vp={}));var yp;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(yp||(yp={}));const lC=ml("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium ring-offset-background transition-all duration-300 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-hover shadow-button hover:shadow-soft transform hover:scale-105",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",wellness:"bg-gradient-primary text-primary-foreground hover:shadow-button transform hover:scale-105 font-semibold",soft:"bg-secondary/50 text-foreground border border-border/50 hover:bg-secondary hover:border-border backdrop-blur-sm"},size:{default:"h-11 px-6 py-3",sm:"h-9 rounded-md px-4",lg:"h-14 roun
153ded-lg px-10 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Re=x.forwardRef(({className:t,variant:e,size:n,asChild:r=!1,...s},i)=>{const o=r?Wb:"button";return h.jsx(o,{className:te(lC({variant:e,size:n,className:t})),ref:i,...s})});Re.displayName="Button";const tt=x.forwardRef(({className:t,...e},n)=>h.jsx("div",{ref:n,className:te("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));tt.displayName="Card";const bt=x.forwardRef(({className:t,...e},n)=>h.jsx("div",{ref:n,className:te("flex flex-col space-y-1.5 p-6",t),...e}));bt.displayName="CardHeader";const _t=x.forwardRef(({className:t,...e},n)=>h.jsx("h3",{ref:n,className:te("text-2xl font-semibold leading-none tracking-tight",t),...e}));_t.displayName="CardTitle";const Hy=x.forwardRef(({className:t,...e},n)=>h.jsx("p",{ref:n,className:te("text-sm text-muted-foreground",t),...e}));Hy.displayName="CardDescription";const Ke=x.forwardRef(({className:t,...e},n)=>h.jsx("div",{ref:n,className:te("p-6 pt-0",t),...e}));Ke.displayName="CardContent";const uC=x.forwardRef(({className:t,...e},n)=>h.jsx("div",{ref:n,className:te("flex items-center p-6 pt-0",t),...e}));uC.displayName="CardFooter";const cC="modulepreload",dC=function(t){return"/"+t},wp={},xo=function(e,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(n.map(l=>{if(l=dC(l),l in wp)return;wp[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":cC,u||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return e().catch(i)})},fC=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>xo(async()=>{const{default:r}=await Promise.resolve().then(()=>ri);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)};class uf extends Error{constructor(e,n="FunctionsError",r){super(e),this.name=n,this.context=r}}class xp extends uf{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class bp extends uf{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class _p extends uf{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var $c;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})($c||($c={}));var hC=function(t,e,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})};class pC{constructor(e,{headers:n={},customFetch:r,region:s=$c.Any}={}){this.url=e,this.headers=n,this.region=s,this.fetch=fC(r)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e,n={}){var r;return hC(this,void 0,void 0,function*(){try{const{headers:s,method:i,body:o,signal:a}=n;let l={},{region:u}=n;u||(u=this.region);const c=new URL(`${this.url}/${e}`);u&&u!=="any"&&(l["x-region"]=u,c.searchParams.set("forceFunctionRegion",u));let d;o&&(s&&!Object.prototype.hasOwnProperty.call(s,"Content-Type")||!s)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(l["Content-Type"]="application/octet-stream",d=o):typeof o=="str
153ing"?(l["Content-Type"]="text/plain",d=o):typeof FormData<"u"&&o instanceof FormData?d=o:(l["Content-Type"]="application/json",d=JSON.stringify(o)));const f=yield this.fetch(c.toString(),{method:i||"POST",headers:Object.assign(Object.assign(Object.assign({},l),this.headers),s),body:d,signal:a}).catch(v=>{throw v.name==="AbortError"?v:new xp(v)}),p=f.headers.get("x-relay-error");if(p&&p==="true")throw new bp(f);if(!f.ok)throw new _p(f);let b=((r=f.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),w;return b==="application/json"?w=yield f.json():b==="application/octet-stream"?w=yield f.blob():b==="text/event-stream"?w=f:b==="multipart/form-data"?w=yield f.formData():w=yield f.text(),{data:w,error:null,response:f}}catch(s){return s instanceof Error&&s.name==="AbortError"?{data:null,error:new xp(s)}:{data:null,error:s,response:s instanceof _p||s instanceof bp?s.context:void 0}}})}}var Ze={},cf={},Tl={},bo={},jl={},Pl={},mC=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},Gs=mC();const gC=Gs.fetch,Ky=Gs.fetch.bind(Gs),qy=Gs.Headers,vC=Gs.Request,yC=Gs.Response,ri=Object.freeze(Object.defineProperty({__proto__:null,Headers:qy,Request:vC,Response:yC,default:Ky,fetch:gC},Symbol.toStringTag,{value:"Module"})),wC=dw(ri);var Rl={};Object.defineProperty(Rl,"__esModule",{value:!0});let xC=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
153de=e.code}};Rl.default=xC;var Gy=Et&&Et.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pl,"__esModule",{value:!0});const bC=Gy(wC),_C=Gy(Rl);let SC=class{constructor(e){var n,r;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(n=e.shouldThrowOnError)!==null&&n!==void 0?n:!1,this.signal=e.signal,this.isMaybeSingle=(r=e.isMaybeSingle)!==null&&r!==void 0?r:!1,e.fetch?this.fetch=e.fetch:typeof fetch>"u"?this.fetch=bC.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,n){return this.headers=new Headers(this.headers),this.headers.set(e,n),this}then(e,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{var o,a,l,u;let c=null,d=null,f=null,p=i.status,b=i.statusText;if(i.ok){if(this.method!=="HEAD"){const m=await i.text();m===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((o=this.headers.get("Accept"))===null||o===void 0)&&o.includes("application/vnd.pgrst.plan+text"))?d=m:d=JSON.parse(m))}const v=(a=this.headers.get("Prefer"))===null||a===void 0?void 0:a.match(/count=(exact|planned|estimated)/),g=(l=i.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");v&&g&&g.length>1&&(f=parseInt(g[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(d)&&(d.length>1?(c={code:"PGRST116",details:`Results contain ${d.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},d=null,f=null,p=406,b="Not Acceptable"):d.length===1?d=d[0]:d=null)}else{const v=await i.text();try{c=JSON.parse(v),Array.isArray(c)&&i.status===404&&(d=[],c=null,p=200,b="OK")}catch{i.status===404&&v===""?(p=204,b="No Content"):c={message:v}}if(c&&this.isMaybeSingle&&(!((u=c==null?void 0:c.details)===null||u===void 0)&&u.includes("0 rows"))&&(c=null,p=200,b="OK"),c&&this.shouldThrowOnError)throw new _C.default(c)}return{error:c,data:d,count:f,status:p,statusText:b}});return this.shouldThrowOnError||(s=s.catch(i=>{var o,a,l;return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:`${(a=i==null?void 0:i.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=i==null?void 0:i.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),s.then(e,n)}returns(){return this}overrideTypes(){return this}};Pl.default=SC;var EC=Et&&Et.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(jl,"__esModule",{value:!0});const kC=EC(Pl);let CC=class extends kC.default{select(e){let n=!1;const r=(e??"*").split("").map(s=>/\s/.test(s)&&!n?"":(s==='"'&&(n=!n),s)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:n=!0,nullsFirst:r,foreignTable:s,referencedTable:i=s}={}){const o=i?`${i}.order`:"order",a=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${a?`${a},`:""}${e}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${e}`),this}range(e,n,{foreignTable:r,referencedTable:s=r}={}){const i=typeof s>"u"?"offset":`${s}.offset`,o=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(o,`${n-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
153explain({analyze:e=!1,verbose:n=!1,settings:r=!1,buffers:s=!1,wal:i=!1,format:o="text"}={}){var a;const l=[e?"analyze":null,n?"verbose":null,r?"settings":null,s?"buffers":null,i?"wal":null].filter(Boolean).join("|"),u=(a=this.headers.get("Accept"))!==null&&a!==void 0?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${o}; for="${u}"; options=${l};`),o==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};jl.default=CC;var TC=Et&&Et.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(bo,"__esModule",{value:!0});const jC=TC(jl);let PC=class extends jC.default{eq(e,n){return this.url.searchParams.append(e,`eq.${n}`),this}neq(e,n){return this.url.searchParams.append(e,`neq.${n}`),this}gt(e,n){return this.url.searchParams.append(e,`gt.${n}`),this}gte(e,n){return this.url.searchParams.append(e,`gte.${n}`),this}lt(e,n){return this.url.searchParams.append(e,`lt.${n}`),this}lte(e,n){return this.url.searchParams.append(e,`lte.${n}`),this}like(e,n){return this.url.searchParams.append(e,`like.${n}`),this}likeAllOf(e,n){return this.url.searchParams.append(e,`like(all).{${n.join(",")}}`),this}likeAnyOf(e,n){return this.url.searchParams.append(e,`like(any).{${n.join(",")}}`),this}ilike(e,n){return this.url.searchParams.append(e,`ilike.${n}`),this}ilikeAllOf(e,n){return this.url.searchParams.append(e,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(e,n){return this.url.searchParams.append(e,`ilike(any).{${n.join(",")}}`),this}is(e,n){return this.url.searchParams.append(e,`is.${n}`),this}in(e,n){const r=Array.from(new Set(n)).map(s=>typeof s=="string"&&new RegExp("[,()]").test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}contains(e,n){return typeof n=="string"?this.url.searchParams.append(e,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(e,`cs.{${n.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(n)}`),this}containedBy(e,n){return typeof n=="string"?this.url.searchParams.append(e,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(e,`cd.{${n.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(n)}`),this}rangeGt(e,n){return this.url.searchParams.append(e,`sr.${n}`),this}rangeGte(e,n){return this.url.searchParams.append(e,`nxl.${n}`),this}rangeLt(e,n){return this.url.searchParams.append(e,`sl.${n}`),this}rangeLte(e,n){return this.url.searchParams.append(e,`nxr.${n}`),this}rangeAdjacent(e,n){return this.url.searchParams.append(e,`adj.${n}`),this}overlaps(e,n){return typeof n=="string"?this.url.searchParams.append(e,`ov.${n}`):this.url.searchParams.append(e,`ov.{${n.join(",")}}`),this}textSearch(e,n,{config:r,type:s}={}){let i="";s==="plain"?i="pl":s==="phrase"?i="ph":s==="websearch"&&(i="w");const o=r===void 0?"":`(${r})`;return this.url.searchParams.append(e,`${i}fts${o}.${n}`),this}match(e){return Object.entries(e).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(e,n,r){return this.url.searchParams.append(e,`not.${n}.${r}`),this}or(e,{foreignTable:n,referencedTable:r=n}={}){const s=r?`${r}.or`:"or";return this.url.searchParams.append(s,`(${e})`),this}filter(e,n,r){return this.url.searchParams.append(e,`${n}.${r}`),this}};bo.default=PC;var RC=Et&&Et.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tl,"__esModule",{value:!0});const vi=RC(bo);let NC=class{constructor(e,{headers:n={},schema:r,fetch:s}){this.url=e,this.headers=new Headers(n),this.schema=r,this.fetch=s}select(e,{head:n=!1,count:r}={}){const s=n?"HEAD":"GET";let i=!1;const o=(e??"*").split("").map(a=>/\s/.test(a)&&!i?"":(a==='"'&&(i=!i),a)).join("");return this.url.searchParams.set("select",o),r&&this.headers.append("Prefer",`count=${r}`),new vi.default({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(e,{count:n,defaultToNull:r=!0}={}){var s;const i="POST";if(n&&this.headers.append("Prefer",`count=${n}`),r||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const o=e.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(o.length>
1530){const a=[...new Set(o)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new vi.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}upsert(e,{onConflict:n,ignoreDuplicates:r=!1,count:s,defaultToNull:i=!0}={}){var o;const a="POST";if(this.headers.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),n!==void 0&&this.url.searchParams.set("on_conflict",n),s&&this.headers.append("Prefer",`count=${s}`),i||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const l=e.reduce((u,c)=>u.concat(Object.keys(c)),[]);if(l.length>0){const u=[...new Set(l)].map(c=>`"${c}"`);this.url.searchParams.set("columns",u.join(","))}}return new vi.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}update(e,{count:n}={}){var r;const s="PATCH";return n&&this.headers.append("Prefer",`count=${n}`),new vi.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}delete({count:e}={}){var n;const r="DELETE";return e&&this.headers.append("Prefer",`count=${e}`),new vi.default({method:r,url:this.url,headers:this.headers,schema:this.schema,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}};Tl.default=NC;var Qy=Et&&Et.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(cf,"__esModule",{value:!0});const AC=Qy(Tl),OC=Qy(bo);let IC=class Yy{constructor(e,{headers:n={},schema:r,fetch:s}={}){this.url=e,this.headers=new Headers(n),this.schemaName=r,this.fetch=s}from(e){const n=new URL(`${this.url}/${e}`);return new AC.default(n,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(e){return new Yy(this.url,{headers:this.headers,schema:e,fetch:this.fetch})}rpc(e,n={},{head:r=!1,get:s=!1,count:i}={}){var o;let a;const l=new URL(`${this.url}/rpc/${e}`);let u;r||s?(a=r?"HEAD":"GET",Object.entries(n).filter(([d,f])=>f!==void 0).map(([d,f])=>[d,Array.isArray(f)?`{${f.join(",")}}`:`${f}`]).forEach(([d,f])=>{l.searchParams.append(d,f)})):(a="POST",u=n);const c=new Headers(this.headers);return i&&c.set("Prefer",`count=${i}`),new OC.default({method:a,url:l,headers:c,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}};cf.default=IC;var si=Et&&Et.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.PostgrestError=Ze.PostgrestBuilder=Ze.PostgrestTransformBuilder=Ze.PostgrestFilterBuilder=Ze.PostgrestQueryBuilder=Ze.PostgrestClient=void 0;const Jy=si(cf);Ze.PostgrestClient=Jy.default;const Xy=si(Tl);Ze.PostgrestQueryBuilder=Xy.default;const Zy=si(bo);Ze.PostgrestFilterBuilder=Zy.default;const e0=si(jl);Ze.PostgrestTransformBuilder=e0.default;const t0=si(Pl);Ze.PostgrestBuilder=t0.default;const n0=si(Rl);Ze.PostgrestError=n0.default;var LC=Ze.default={PostgrestClient:Jy.default,PostgrestQueryBuilder:Xy.default,PostgrestFilterBuilder:Zy.default,PostgrestTransformBuilder:e0.default,PostgrestBuilder:t0.default,PostgrestError:n0.default};const{PostgrestClient:$C,PostgrestQueryBuilder:OP,PostgrestFilterBuilder:IP,PostgrestTransformBuilder:LP,PostgrestBuilder:$P,PostgrestError:MP}=LC;class MC{static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"){const n=process.versions;if(n&&n.node){const r=n.node,s=parseInt(r.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
154import ws from "ws"
155new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.constructor)return e.constructor;let n=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(n+=`
156
157Suggested solution: ${e.workaround}`),new Error(n)}static createWebSocket(e,n){const r=this.getWebSocketConstructor();return new r(e,n)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const DC="2.15.5",FC=`realtime-js/${DC}`,zC="1.0.0",Mc=1e4,UC=1e3,BC=100;var Li;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(Li||(Li={}));var ke;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(ke||(ke={}));var Mt;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(Mt||(Mt={}));var Dc;(function(t){t.websocket="websocket"})(Dc||(Dc={}));var kr;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(kr||(kr={}));class WC{constructor(){this.HEADER_LENGTH=1}decode(e,n){return e.constructor===ArrayBuffer?n(this._binaryDecode(e)):n(typeof e=="string"?JSON.parse(e):{})}_binaryDecode(e){const n=new DataView(e),r=new TextDecoder;return this._decodeBroadcast(e,n,r)}_decodeBroadcast(e,n,r){const s=n.getUint8(1),i=n.getUint8(2);let o=this.HEADER_LENGTH+2;const a=r.decode(e.slice(o,o+s));o=o+s;const l=r.decode(e.slice(o,o+i));o=o+i;const u=JSON.parse(r.decode(e.slice(o,e.byteLength)));return{ref:null,topic:a,event:l,payload:u}}}class r0{constructor(e,n){this.callback=e,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var ae;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.t
vendor: 5,741 bytes, line 157
157srange="tsrange",t.tstzrange="tstzrange"})(ae||(ae={}));const Sp=(t,e,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(e).reduce((i,o)=>(i[o]=VC(o,t,e,s),i),{})},VC=(t,e,n,r)=>{const s=e.find(a=>a.name===t),i=s==null?void 0:s.type,o=n[t];return i&&!r.includes(i)?s0(i,o):Fc(o)},s0=(t,e)=>{if(t.charAt(0)==="_"){const n=t.slice(1,t.length);return GC(e,n)}switch(t){case ae.bool:return HC(e);case ae.float4:case ae.float8:case ae.int2:case ae.int4:case ae.int8:case ae.numeric:case ae.oid:return KC(e);case ae.json:case ae.jsonb:return qC(e);case ae.timestamp:return QC(e);case ae.abstime:case ae.date:case ae.daterange:case ae.int4range:case ae.int8range:case ae.money:case ae.reltime:case ae.text:case ae.time:case ae.timestamptz:case ae.timetz:case ae.tsrange:case ae.tstzrange:return Fc(e);default:return Fc(e)}},Fc=t=>t,HC=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},KC=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},qC=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch(e){return console.log(`JSON parse error: ${e}`),t}return t},GC=(t,e)=>{if(typeof t!="string")return t;const n=t.length-1,r=t[n];if(t[0]==="{"&&r==="}"){let i;const o=t.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>s0(e,a))}return t},QC=t=>typeof t=="string"?t.replace(" ","T"):t,i0=t=>{let e=t;return e=e.replace(/^ws/i,"http"),e=e.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),e.replace(/\/+$/,"")+"/api/broadcast"};class wu{constructor(e,n,r={},s=Mc){this.channel=e,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,n){var r;return this._hasReceived(e)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:e,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(n))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var Ep;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(Ep||(Ep={}));class $i{constructor(e,n){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=$i.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=$i.syncDiff(this.state,l,i,o)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=$i.syncDiff(this.state,s,i,o),a())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,n,r,s){const i=this.cloneDeep(e),o=this.transformState(n),a={},l={};return this.map(i,(u,c)=>{o[u]||(l[u]=c)}),this.map(o,(u,c)=>{const d=i[u];if(d){const f=c.map(v=>v.presence_ref),p=d.map(v=>v.presence_ref),b=c.filter(v=>p.indexOf(v.presence_ref)<0),w=d.filter(v=>f.indexOf(v.presence_ref)<0);b.length>0&&(a[u]=b),w.length>0&&(l[u]=w)}else a[u]=c}),this.syncDiff(i,{joins:a,leaves:l},r,s)}static syncDiff(e,n,r,s){const{joins:i,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(i,(a,l)=>{var u;const c=(u=e[a])!==null&&u!==void 0?u:[];if(e[a]=this.cloneDeep(l),c.length>0){const d=e[a].map(p=>p.presence_ref),f=c.filter(p=>d.indexOf(p.presence_ref)<0);e[a].unshift(...f)}r(a,c,l)}),this.map(o,(a,l)=>{let u=e[a];if(!u)return;const c=l.map(d=>d.presence_ref);u=u.filter(d=>c.indexOf(d.presence_ref)<0),e[a]=u,s(a,u,l),u.length===0&&delete e[a]}),e}static map(e,n){return Object.getOwnPropertyNames(e).map(r=>n(r,e[r]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((n,r)=>{const s=e[r];return"metas"in s?n[r]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):n[r]=s,n},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var kp;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELET
157E="DELETE"})(kp||(kp={}));var Mi;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(Mi||(Mi={}));var cn;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(cn||(cn={}));class df{constructor(e,n={config:{}},r){this.topic=e,this.params=n,this.socket=r,this.bindings={},this.state=ke.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new wu(this,Mt.join,this.params,this.timeout),this.rejoinTimer=new r0(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=ke.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=ke.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=ke.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=ke.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=ke.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Mt.reply,{},(s,i)=>{this._trigger(this._replyEventName(i),s)}),this.presence=new $i(this),this.broadcastEndpointURL=i0(this.socket.endPoint),this.private=this.params.config.private||!1}subscribe(e,n=this.timeout){var r,s,i;if(this.socket.isConnected()||this.socket.connect(),this.state==ke.closed){const{config:{broadcast:o,presence:a,private:l}}=this.params,u=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(p=>p.filter))!==null&&s!==void 0?s:[],c=!!this.bindings[Mi.PRESENCE]&&this.bindings[Mi.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,d={},f={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:c}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(p=>e==null?void 0:e(cn.CHANNEL_ERROR,p)),this._onClose(()=>e==null?void 0:e(cn.CLOSED)),this.updateJoinPayload(Object.assign({config:f},d)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:p})=>{var b;if(this.socket.setAuth(),p===void 0){e==null||e(cn.SUBSCRIBED);return}else{const w=this.bindings.postgres_changes,v=(b=w==null?void 0:w.length)!==null&&b!==void 0?b:0,g=[];for(let m=0;m<v;m++){const y=w[m],{filter:{event:_,schema:S,table:E,filter:k}}=y,T=p&&p[m];if(T&&T.event===_&&T.schema===S&&T.table===E&&T.filter===k)g.push(Object.assign(Object.assign({},y),{id:T.id}));else{this.unsubscribe(),this.state=ke.errored,e==null||e(cn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=g,e&&e(cn.SUBSCRIBED);return}}).receive("error",p=>{this.state=ke.errored,e==null||e(cn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(p).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(cn.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,n={}){return await this.send({type:"presence",event:"track",payload:e},n.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,n,r){return this.state===ke.joined&&e===Mi.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(e,n,r)}async send(e,n={}){var r,s;if(!this._canPush()&&e.type==="broadcast"){const{event:i,payload:o}=e,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const u=this._push(e.type,e,n.timeout||this.timeout);e.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=ke.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Mt.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new wu(this,Mt.leave,{},e),r.receive("ok",()=>{n(),s("ok")}).receive("timeout",()=>{n(),s("timed out")}).receive("error",()=>{s("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}
157teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=ke.closed,this.bindings={}}async _fetchWithTimeout(e,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),o=await this.socket.fetch(e,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),o}_push(e,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new wu(this,e,n,r);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(e){if(e.startTimeout(),this.pushBuffer.push(e),this.pushBuffer.length>BC){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(e,n,r){return n}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,n,r){var s,i;const o=e.toLocaleLowerCase(),{close:a,error:l,leave:u,join:c}=Mt;if(r&&[a,l,u,c].indexOf(o)>=0&&r!==this._joinRef())return;let f=this._onMessage(o,n,r);if(n&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(p=>{var b,w,v;return((b=p.filter)===null||b===void 0?void 0:b.event)==="*"||((v=(w=p.filter)===null||w===void 0?void 0:w.event)===null||v===void 0?void 0:v.toLocaleLowerCase())===o}).map(p=>p.callback(f,r)):(i=this.bindings[o])===null||i===void 0||i.filter(p=>{var b,w,v,g,m,y;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in p){const _=p.id,S=(b=p.filter)===null||b===void 0?void 0:b.event;return _&&((w=n.ids)===null||w===void 0?void 0:w.includes(_))&&(S==="*"||(S==null?void 0:S.toLocaleLowerCase())===((v=n.data)===null||v===void 0?void 0:v.type.toLocaleLowerCase()))}else{const _=(m=(g=p==null?void 0:p.filter)===null||g===void 0?void 0:g.event)===null||m===void 0?void 0:m.toLocaleLowerCase();return _==="*"||_===((y=n==null?void 0:n.event)===null||y===void 0?void 0:y.toLocaleLowerCase())}else return p.type.toLocaleLowerCase()===o}).map(p=>{if(typeof f=="object"&&"ids"in f){const b=f.data,{schema:w,table:v,commit_timestamp:g,type:m,errors:y}=b;f=Object.assign(Object.assign({},{schema:w,table:v,commit_timestamp:g,eventType:m,new:{},old:{},errors:y}),this._getPayloadRecords(b))}p.callback(f,r)})}_isClosed(){return this.state===ke.closed}_isJoined(){return this.state===ke.joined}_isJoining(){return this.state===ke.joining}_isLeaving(){return this.state===ke.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,n,r){const s=e.toLocaleLowerCase(),i={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(e,n){const r=e.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===r&&df.isEqual(s.filter,n))})),this}static isEqual(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e)if(e[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(Mt.close,{},e)}_onError(e){this._on(Mt.error,{},n=>e(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=ke.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const n={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(n.new=Sp(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(n.old=Sp(e.columns,e.old_record)),n}}const xu=()=>{},Yo={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},YC=[1e3,2e3,5e3,1e4],JC=1e4,XC=`
158  addEventListener("message", (e) => {
159    if (e.data.event === "start") {
160      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
161    }
162  });`;class ZC{constructor(e,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Mc,this.transport=null,this.heartbeatIntervalMs=Yo.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=xu,this.ref=0,this.reconnectTimer=null,this.logger=xu,this.conn=null,this.sendBuffer=[],this.serializer
162=new WC,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=s=>{let i;return s?i=s:typeof fetch>"u"?i=(...o)=>xo(async()=>{const{default:a}=await Promise.resolve().then(()=>ri);return{default:a}},void 0).then(({default:a})=>a(...o)).catch(a=>{throw new Error(`Failed to load @supabase/node-fetch: ${a.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):i=fetch,(...o)=>i(...o)},!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${e}/${Dc.websocket}`,this.httpEndpoint=i0(e),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=MC.createWebSocket(this.endpointURL())}catch(e){this._setConnectionState("disconnected");const n=e.message;throw n.includes("Node.js")?new Error(`${n}
163
164To use Realtime in Node.js, you need to provide a WebSocket implementation:
165
166Option 1: Use Node.js 22+ which has native WebSocket support
167Option 2: Install and provide the "ws" package:
168
169  npm install ws
170
171  import ws from "ws"
172  const client = new RealtimeClient(url, {
173    ...options,
174    transport: ws
175  })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:zC}))}disconnect(e,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},e?this.conn.close(e,n??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(e){const n=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const e=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,n,r){this.logger(e,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case Li.connecting:return kr.Connecting;case Li.open:return kr.Open;case Li.closing:return kr.Closing;default:return kr.Closed}}isConnected(){return this.connectionState()===kr.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(e,n={config:{}}){const r=`realtime:${e}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new df(`realtime:${e}`,n,this);return this.channels.push(i),i}}push(e){const{topic:n,event:r,payload:s,ref:i}=e,o=()=>{this.encode(e,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var e;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(e=this.conn)===null||e===void 0||e.close(UC,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Yo.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>
1750&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let n=this.channels.find(r=>r.topic===e&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${e}"`),n.unsubscribe())}_remove(e){this.channels=this.channels.filter(n=>n.topic!==e.topic)}_onConnMessage(e){this.decode(e.data,n=>{if(n.topic==="phoenix"&&n.event==="phx_reply")try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error")}catch(u){this.log("error","error in heartbeat callback",u)}n.ref&&n.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:r,event:s,payload:i,ref:o}=n,a=o?`(${o})`:"",l=i.status||"";this.log("receive",`${l} ${r} ${s} ${a}`.trim(),i),this.channels.filter(u=>u._isMember(r)).forEach(u=>u._trigger(s,i,o)),this._triggerStateCallbacks("message",n)})}_clearTimer(e){var n;e==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):e==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(e=>e.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(e){var n;this._setConnectionState("disconnected"),this.log("transport","close",e),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",e)}_onConnError(e){this._setConnectionState("disconnected"),this.log("transport",`${e}`),this._triggerChanError(),this._triggerStateCallbacks("error",e)}_triggerChanError(){this.channels.forEach(e=>e._trigger(Mt.error))}_appendParams(e,n){if(Object.keys(n).length===0)return e;const r=e.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${e}${r}${s}`}_workerObjectUrl(e){let n;if(e)n=e;else{const r=new Blob([XC],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(e,n=!1){this._connectionState=e,e==="connecting"?this._wasManualDisconnect=!1:e==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(e=null){let n;e?n=e:this.accessToken?n=await this.accessToken():n=this.accessTokenValue,this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(r=>{const s={access_token:n,version:FC};n&&r.updateJoinPayload(s),r.joinedOnce&&r._isJoined()&&r._push(Mt.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this.setAuth().catch(n=>{this.log("error",`error setting auth in ${e}`,n)})}_triggerStateCallbacks(e,n){try{this.stateChangeCallbacks[e].forEach(r=>{try{r(n)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(r){this.log("error",`error triggering ${e} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new r0(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Yo.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(e){var n,r,s,i,o,a,l,u,c;if(this.transport=(n=e==null?void 0:e.transport)!==null&&n!==void 0?n:null,this.timeout=(r=e==null?void 0:e.timeout)!==null&&r!==void 0?r:Mc,this.heartbeatIntervalMs=(s=e==null?void 0:e.heartbeatIntervalMs)!==null&&s!==void 0?s:Yo.HEARTBEAT_INTERVAL,this.worker=(i=e==null?void 0:e.worker)!==null&&i!==void 0?i:!1,this.accessToken=(o=e==null?void 0:e.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(a=e==null?void 0:e.heartbeatCallback)!==null&&a!==void 0?a:xu,e!=null&&e.params&&(this.params=e.params),e!=null&&e.logger&&(this.logger=e.logger),(e!=null&&e.logLevel||e!=null&&e.log_level)&&(this.logLevel=e.logLevel||e.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(l=e==null?void 0:e.reconnectAfterMs)!==null&&l!==void 0?l:d=>YC[d-1]||JC,this.encode=(u=e==null?void 0:e.encode)!==null&&u!==void 0?u:(d,f)=>f(JSON.stringify(d)),this.decode=(c=e==null?void 0:e.decode)!==null&&c!==void 0?c:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e==null?void 0:e.workerUrl}}}
175class ff extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function Se(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}class eT extends ff{constructor(e,n,r){super(e),this.name="StorageApiError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class zc extends ff{constructor(e,n){super(e),this.name="StorageUnknownError",this.originalError=n}}var tT=function(t,e,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})};const o0=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>xo(async()=>{const{default:r}=await Promise.resolve().then(()=>ri);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)},nT=()=>tT(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield xo(()=>Promise.resolve().then(()=>ri),void 0)).Response:Response}),Uc=t=>{if(Array.isArray(t))return t.map(n=>Uc(n));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));e[s]=Uc(r)}),e},rT=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)};var Qr=function(t,e,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})};const bu=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),sT=(t,e,n)=>Qr(void 0,void 0,void 0,function*(){const r=yield nT();t instanceof r&&!(n!=null&&n.noResolveJson)?t.json().then(s=>{const i=t.status||500,o=(s==null?void 0:s.statusCode)||i+"";e(new eT(bu(s),i,o))}).catch(s=>{e(new zc(bu(s),s))}):e(new zc(bu(t),t))}),iT=(t,e,n,r)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"||!r?s:(rT(r)?(s.headers=Object.assign({"Content-Type":"application/json"},e==null?void 0:e.headers),s.body=JSON.stringify(r)):s.body=r,e!=null&&e.duplex&&(s.duplex=e.duplex),Object.assign(Object.assign({},s),n))};function _o(t,e,n,r,s,i){return Qr(this,void 0,void 0,function*(){return new Promise((o,a)=>{t(n,iT(e,r,s,i)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>sT(l,a,r))})})}function Ka(t,e,n,r){return Qr(this,void 0,void 0,function*(){return _o(t,"GET",e,n,r)})}function qt(t,e,n,r,s){return Qr(this,void 0,void 0,function*(){return _o(t,"POST",e,r,s,n)})}function Bc(t,e,n,r,s){return Qr(this,void 0,void 0,function*(){return _o(t,"PUT",e,r,s,n)})}function oT(t,e,n,r){return Qr(this,void 0,void 0,function*(){return _o(t,"HEAD",e,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function a0(t,e,n,r,s){return Qr(this,void 0,void 0,function*(){return _o(t,"DELETE",e,r,s,n)})}var aT=function(t,e,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})};class lT{constructor(e,n){this.downloadFn=e,this.shouldThrowOnError=n}then(e,n){return this.execute().then(e,n)}execute(){return aT(this,void 0,void 0,function*(){try{return{data:(yield this.downloadFn()).body,error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(Se(e))return{data:null,error:e};throw e}})}}var uT=function(t,e,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})};class cT{constructor(e,n){this.downloadFn=e,this.shouldThrowOnError=n}asStream(){return new lT(this.downloadFn,this.shouldThrowOnError)}then(e,n){return this.execute().then(e,n)}execute(){return uT(this,void 0,void 0,function*(){try{return{data:yield(yield this.downloadFn()).blob(),error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(Se(e))return{data:null,error:e};throw e}})}}var Ye=function(t,e,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}
175return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})};const dT={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Cp={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class fT{constructor(e,n={},r,s){this.shouldThrowOnError=!1,this.url=e,this.headers=n,this.bucketId=r,this.fetch=o0(s)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(e,n,r,s){return Ye(this,void 0,void 0,function*(){try{let i;const o=Object.assign(Object.assign({},Cp),s);let a=Object.assign(Object.assign({},this.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&r instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",this.encodeMetadata(l)),i.append("",r)):typeof FormData<"u"&&r instanceof FormData?(i=r,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",this.encodeMetadata(l))):(i=r,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l)))),s!=null&&s.headers&&(a=Object.assign(Object.assign({},a),s.headers));const u=this._removeEmptyFolders(n),c=this._getFinalPath(u),d=yield(e=="PUT"?Bc:qt)(this.fetch,`${this.url}/object/${c}`,i,Object.assign({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:u,id:d.Id,fullPath:d.Key},error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Se(i))return{data:null,error:i};throw i}})}upload(e,n,r){return Ye(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,n,r)})}uploadToSignedUrl(e,n,r,s){return Ye(this,void 0,void 0,function*(){const i=this._removeEmptyFolders(e),o=this._getFinalPath(i),a=new URL(this.url+`/object/upload/sign/${o}`);a.searchParams.set("token",n);try{let l;const u=Object.assign({upsert:Cp.upsert},s),c=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",u.cacheControl)):(l=r,c["cache-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType);const d=yield Bc(this.fetch,a.toString(),l,{headers:c});return{data:{path:i,fullPath:d.Key},error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(Se(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(e,n){return Ye(this,void 0,void 0,function*(){try{let r=this._getFinalPath(e);const s=Object.assign({},this.headers);n!=null&&n.upsert&&(s["x-upsert"]="true");const i=yield qt(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:s}),o=new URL(this.url+i.url),a=o.searchParams.get("token");if(!a)throw new ff("No token returned by API");return{data:{signedUrl:o.toString(),path:e,token:a},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Se(r))return{data:null,error:r};throw r}})}update(e,n,r){return Ye(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,n,r)})}move(e,n,r){return Ye(this,void 0,void 0,function*(){try{return{data:yield qt(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Se(s))return{data:null,error:s};throw s}})}copy(e,n,r){return Ye(this,void 0,void 0,function*(){try{return{data:{path:(yield qt(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Se(s))return{data:null,error:s};throw s}})}createSignedUrl(e,n,r){return Ye(this,void 0,void 0,function*(){try{let s=this._getFinalPath(e),i=yield qt(this.fetch,`${this.url}/object/sign/${s}`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return i={signedUrl:encodeURI(`${this.url}${i.signedURL}${o}`)},{data:i,error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Se(s))return{data:null,error:s};throw s}})}createSignedUrls(e,n,r){return Ye(this,void 0,void 0,function*(){try{const s=yield qt(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:e},{headers:this.headers}),i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:s.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${i}`):null})),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Se(s))return{data:null,error:s};throw s}})}download(e,n){const s=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),o=i?`?${i}`:"",a=this._getFinalPath(e),l=()=>Ka(this.fetch,`${this.url}/${s}/${a}${o}`,{headers:this.headers,noResolveJson:!0});return new cT(l,this.shouldThrowOnError)}info(e){return Ye(this,void 0,void 0,function*(){const n=this._getFinalPath(e);try{const r=yield Ka(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:Uc(r),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Se(r))return{data:null,error:r};throw r}})}exists(e){return Ye(this,void 0,void 0,function*(){const n=this._getFinalPath(e);try{return yield oT(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Se(r)&&r instanceof zc){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}})}getPublicUrl(e,n){const r=this._getFinalPath(e),s=[],i=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";i!==""&&s.push(i);const a=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});l!==""&&s.push(l);let u=s.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${u}`)}}}remove(e){return Ye(this,void 0,void 0,function*(){try{return{data:yield a0(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Se(n))return{data:null,error:n};throw n}})}list(e,n,r){return Ye(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},dT),n),{prefix:e||""});return{data:yield qt(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},r),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Se(s))return{data:null,error:s};throw s}})}listV2(e,n){return Ye(this,void 0,void 0,function*(){try{const r=Object.assign({},e);return{data:yield qt(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,r,{headers:this.headers},n),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Se(r))return{data:null,error:r};throw r}})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const n=[];return e.width&&n.push(`width=${e.width}`),e.height&&n.push(`height=${e.height}`),e.resize&&n.push(`resize=${e.resize}`),e.format&&n.push(`format=${e.format}`),e.quality&&n.push(`quality=${e.quality}`),n.join("&")}}const hT="2.12.2",pT={"X-Client-Info":`storage-js/${hT}`};var rs=function(t,e,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}
175return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})};class mT{constructor(e,n={},r,s){this.shouldThrowOnError=!1;const i=new URL(e);s!=null&&s.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase.")),this.url=i.href,this.headers=Object.assign(Object.assign({},pT),n),this.fetch=o0(r)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(){return rs(this,void 0,void 0,function*(){try{return{data:yield Ka(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(Se(e))return{data:null,error:e};throw e}})}getBucket(e){return rs(this,void 0,void 0,function*(){try{return{data:yield Ka(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Se(n))return{data:null,error:n};throw n}})}createBucket(e,n={public:!1}){return rs(this,void 0,void 0,function*(){try{return{data:yield qt(this.fetch,`${this.url}/bucket`,{id:e,name:e,type:n.type,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Se(r))return{data:null,error:r};throw r}})}updateBucket(e,n){return rs(this,void 0,void 0,function*(){try{return{data:yield Bc(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Se(r))return{data:null,error:r};throw r}})}emptyBucket(e){return rs(this,void 0,void 0,function*(){try{return{data:yield qt(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Se(n))return{data:null,error:n};throw n}})}deleteBucket(e){return rs(this,void 0,void 0,function*(){try{return{data:yield a0(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Se(n))return{data:null,error:n};throw n}})}}class gT extends mT{constructor(e,n={},r,s){super(e,n,r,s)}from(e){return new fT(this.url,this.headers,e,this.fetch)}}const vT="2.58.0";let Si="";typeof Deno<"u"?Si="deno":typeof document<"u"?Si="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Si="react-native":Si="node";const yT={"X-Client-Info":`supabase-js-${Si}/${vT}`},wT={headers:yT},xT={schema:"public"},bT={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},_T={};var ST=function(t,e,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})};const ET=t=>{let e;return t?e=t:typeof fetch>"u"?e=Ky:e=fetch,(...n)=>e(...n)},kT=()=>typeof Headers>"u"?qy:Headers,CT=(t,e,n)=>{const r=ET(n),s=kT();return(i,o)=>ST(void 0,void 0,void 0,function*(){var a;const l=(a=yield e())!==null&&a!==void 0?a:t;let u=new s(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",t),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(i,Object.assign(Object.assign({},o),{headers:u}))})};var TT=function(t,e,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})};function jT(t){return t.endsWith("/")?t:t+"/"}function PT(t,e){var n,r;const{db:s,auth:i,realtime:o,global:a}=t,{db:l,auth:u,realtime:c,global:d}=e,f={db:Object.assign(Object.assign({},l),s),auth:Object.assign(Object.assign({},u),i),realtime:Object.assign(Object.assign({},c),o),storage:{},global:Object.assign(Object.assign(Object.assign({},d),a),{headers:Object.assign(Object.assign({},(n=d==null?void 0:d.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:()=>TT(this,void 0,void 0,function*(){return""})};return t.accessToken?f.accessToken=t.accessToken:delete f.accessToken,f}function RT(t){const e=t==null?void 0:t.trim();if(!e)throw new Error("supabaseUrl is required.");
175if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(jT(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const l0="2.72.0",us=30*1e3,Wc=3,_u=Wc*us,NT="http://localhost:9999",AT="supabase.auth.token",OT={"X-Client-Info":`gotrue-js/${l0}`},Vc="X-Supabase-Api-Version",u0={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},IT=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,LT=10*60*1e3;class hf extends Error{constructor(e,n,r){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function W(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class $T extends hf{constructor(e,n,r){super(e,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function MT(t){return W(t)&&t.name==="AuthApiError"}class c0 extends hf{constructor(e,n){super(e),this.name="AuthUnknownError",this.originalError=n}}class mr extends hf{constructor(e,n,r,s){super(e,r,s),this.name=n,this.status=r}}class $n extends mr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function DT(t){return W(t)&&t.name==="AuthSessionMissingError"}class yi extends mr{constructor(){super("Auth session or user missing","AuthInvalidToken
175ResponseError",500,void 0)}}class Jo extends mr{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class Xo extends mr{constructor(e,n=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function FT(t){return W(t)&&t.name==="AuthImplicitGrantRedirectError"}class Tp extends mr{constructor(e,n=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Hc extends mr{constructor(e,n){super(e,"AuthRetryableFetchError",n,void 0)}}function Su(t){return W(t)&&t.name==="AuthRetryableFetchError"}class jp extends mr{constructor(e,n,r){super(e,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class Kc extends mr{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const qa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Pp=` 	
176\r=`.split(""),zT=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<Pp.length;e+=1)t[Pp[e].charCodeAt(0)]=-2;for(let e=0;e<qa.length;e+=1)t[qa[e].charCodeAt(0)]=e;return t})();function Rp(t,e,n){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(qa[r]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(qa[r]),e.queuedBits-=6}}function d0(t,e,n){const r=zT[t];if(r>-1)for(e.queue=e.queue<<6|r,e.queuedBits+=6;e.queuedBits>=8;)n(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function Np(t){const e=[],n=o=>{e.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{WT(o,r,n)};for(let o=0;o<t.length;o+=1)d0(t.charCodeAt(o),s,i);return e.join("")}function UT(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function BT(t,e){for(let n=0;n<t.length;n+=1){let r=t.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(t.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}UT(r,e)}}function WT(t,e,n){if(e.utf8seq===0){if(t<=127){n(t);return}for(let r=1;r<6;r+=1)if(!(t>>7-r&1)){e.utf8seq=r;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&n(e.codepoint)}}function VT(t){const e=[],n={queue:0,queuedBits:0},r=s=>{e.push(s)};for(let s=0;s<t.length;s+=1)d0(t.charCodeAt(s),n,r);return new Uint8Array(e)}function HT(t){const e=[];return BT(t,n=>e.push(n)),new Uint8Array(e)}function KT(t){const e=[],n={queue:0,queuedBits:0},r=s=>{e.push(s)};return t.forEach(s=>Rp(s,n,r)),Rp(null,n,r),e.join("")}function qT(t){return Math.round(Date.now()/1e3)+t}function GT(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}const gt=()=>typeof window<"u"&&typeof document<"u",wr={tested:!1,writable:!1},f0=()=>{if(!gt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(wr.tested)return wr.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),wr.tested=!0,wr.writable=!0}catch{wr.tested=!0,wr.writable=!1}return wr.writable};function QT(t){const e={},n=new URL(t);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,i)=>{e[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{e[s]=r}),e}const h0=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>xo(async()=>{const{default:r}=await Promise.resolve().then(()=>ri);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)},YT=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",cs=async(t,e,n)=>{await t.setItem(e,JSON.stringify(n))},xr=async(t,e)=>{const n=await t.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch{return n}},In=async(t,e)=>{await t.removeItem(e)};class Nl{constructor(){this.promise=new Nl.promiseConstructor((e,n)=>{this.resolve=e,this.reject=n})}}Nl.promiseConstructor=Promise;function Eu(t){const e=t.split(".");if(e.length!==3)throw new Kc("Invalid JWT structure");for(let r=0;r<e.length;r++)if(!IT.test(e[r]))throw new Kc("JWT not in base64url format");return{header:JSON.parse(Np(e[0])),payload:JSON.parse(Np(e[1])),signature:VT(e[2]),raw:{header:e[0],payload:e[1]}}}async function JT(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function XT(t,e){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await t(i);if(!e(i,null,o)){r(o);return}}catch(o){if(!e(i,o)){s(o);return}}})()})}function ZT(t){return("0"+t.toString(16)).substr(-2)}function ej(){const e=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(e),Array.from(e,ZT).join("")}async function tj(t){const n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",
176n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function nj(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),t;const n=await tj(t);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function ss(t,e,n=!1){const r=ej();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await cs(t,`${e}-code-verifier`,s);const i=await nj(r);return[i,r===i?"plain":"s256"]}const rj=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function sj(t){const e=t.headers.get(Vc);if(!e||!e.match(rj))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function ij(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function oj(t){switch(t){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const aj=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function is(t){if(!aj.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function ku(){const t={};return new Proxy(t,{get:(e,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function Ap(t){return JSON.parse(JSON.stringify(t))}var lj=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n};const Sr=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),uj=[502,503,504];async function Op(t){var e;if(!YT(t))throw new Hc(Sr(t),0);if(uj.includes(t.status))throw new Hc(Sr(t),t.status);let n;try{n=await t.json()}catch(i){throw new c0(Sr(i),i)}let r;const s=sj(t);if(s&&s.getTime()>=u0["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new jp(Sr(n),t.status,((e=n.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(r==="session_not_found")throw new $n}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new jp(Sr(n),t.status,n.weak_password.reasons);throw new $T(Sr(n),t.status||500,r)}const cj=(t,e,n,r)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function Q(t,e,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[Vc]||(i[Vc]=u0["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const o=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await dj(t,e,n+a,{headers:i,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function dj(t,e,n,r,s,i){const o=cj(e,r,s,i);let a;try{a=await t(n,Object.assign({},o))}catch(l){throw console.error(l),new Hc(Sr(l),0)}if(a.ok||await Op(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await Op(l)}}function Ht(t){var e;let n=null;mj(t)&&(n=Object.assign({},t),t.expires_at||(n.expires_at=qT(t.expires_in)));const r=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:n,user:r},error:null}}function Ip(t){const e=Ht(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(e.data.weak_password=t.weak_password),e}function Wn(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function fj(t){return{data:t,error:null}}function hj(t){const{action_link:e,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}
176=t,o=lj(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:e,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function pj(t){return t}function mj(t){return t.access_token&&t.refresh_token&&t.expires_in}const Cu=["global","local","others"];var gj=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n};class vj{constructor({url:e="",headers:n={},fetch:r}){this.url=e,this.headers=n,this.fetch=h0(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(e,n=Cu[0]){if(Cu.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Cu.join(", ")}`);try{return await Q(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(r){if(W(r))return{data:null,error:r};throw r}}async inviteUserByEmail(e,n={}){try{return await Q(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Wn})}catch(r){if(W(r))return{data:{user:null},error:r};throw r}}async generateLink(e){try{const{options:n}=e,r=gj(e,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await Q(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:hj,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(W(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(e){try{return await Q(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:Wn})}catch(n){if(W(n))return{data:{user:null},error:n};throw n}}async listUsers(e){var n,r,s,i,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await Q(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=e==null?void 0:e.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=e==null?void 0:e.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:pj});if(c.error)throw c.error;const d=await c.json(),f=(o=c.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return p.length>0&&(p.forEach(b=>{const w=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),v=JSON.parse(b.split(";")[1].split("=")[1]);u[`${v}Page`]=w}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(W(u))return{data:{users:[]},error:u};throw u}}async getUserById(e){is(e);try{return await Q(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:Wn})}catch(n){if(W(n))return{data:{user:null},error:n};throw n}}async updateUserById(e,n){is(e);try{return await Q(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:n,headers:this.headers,xform:Wn})}catch(r){if(W(r))return{data:{user:null},error:r};throw r}}async deleteUser(e,n=!1){is(e);try{return await Q(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:n},xform:Wn})}catch(r){if(W(r))return{data:{user:null},error:r};throw r}}async _listFactors(e){is(e.userId);try{const{data:n,error:r}=await Q(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(W(n))return{data:null,error:n};throw n}}async _deleteFactor(e){is(e.userId),is(e.id);try{return{data:await Q(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(n){if(W(n))return{data:null,error:n};throw n}}}function Lp(t={}){return{getItem:e=>t[e]||null,setItem:(e,n)=>{t[e]=n},removeItem:e=>{delete t[e]}}}function yj(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const os={debug:!!(globalThis&&f0()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};
176class p0 extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class wj extends p0{}async function xj(t,e,n){os.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const r=new globalThis.AbortController;return e>0&&setTimeout(()=>{r.abort(),os.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){os.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,s.name);try{return await n()}finally{os.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,s.name)}}else{if(e===0)throw os.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new wj(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(os.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null,"  "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}function m0(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}" is invalid.`);return t.toLowerCase()}function bj(t){return parseInt(t,16)}function _j(t){const e=new TextEncoder().encode(t);return"0x"+Array.from(e,r=>r.toString(16).padStart(2,"0")).join("")}function Sj(t){var e;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:a,requestId:l,resources:u,scheme:c,uri:d,version:f}=t;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(f!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(!((e=t.statement)===null||e===void 0)&&e.includes(`
177`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const p=m0(t.address),b=c?`${c}://${r}`:r,w=t.statement?`${t.statement}
178`:"",v=`${b} wants you to sign in with your Ethereum account:
179${p}
180
181${w}`;let g=`URI: ${d}
182Version: ${f}
183Chain ID: ${n}${o?`
184Nonce: ${o}`:""}
185Issued At: ${i.toISOString()}`;if(s&&(g+=`
186Expiration Time: ${s.toISOString()}`),a&&(g+=`
187Not Before: ${a.toISOString()}`),l&&(g+=`
188Request ID: ${l}`),u){let m=`
189Resources:`;for(const y of u){if(!y||typeof y!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${y}`);m+=`
190- ${y}`}g+=m}return`${v}
191${g}`}yj();const Ej={url:NT,storageKey:AT,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:OT,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function $p(t,e,n){return await n()}const as={};class ao{constructor(e){var n,r;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=ao.nextInstanceID,ao.nextInstanceID+=1,this.instanceID>0&&gt()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const s=Object.assign(Object.assign({},Ej),e);if(this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.persistSession=s.persistSession,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.admin=new vj({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=h0(s.fetch),this.lock=s.lock||$p,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:gt()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=xj:this.lock=$p,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:f0()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Lp(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=Lp(this.memoryStorage)),gt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}get jwks(){var e,n;return(n=(e=as[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(e){as[this.storageKey]=Object.assign(Object.assign({},as[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,n;return(n=(e=as[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){as[this.storageKey]=Object.assign(Object.assign({},as[this.storageKey]),{cachedAt:e})}_debug(...e){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${l0}) ${new Date().toISOString()}`,...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{const n=QT(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),gt()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),FT(i)){const l=(e=i.details)===null||e===void 0?void 0:e.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:i}}return await this._removeSession(),{error:i}}const{session:o,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return W(n)?{error:n}:{error:new c0("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var n,r,s;try{const i=await Q(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=e==null?void 0:e.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=e==null?void 0:e.options)===null||s===void 0?void 0:s.captchaToken}},xform:Ht}),{data:o,error:a}=i;if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(i){if(W(i))return{data:{user:null,session:null},error:i};throw i}}async signUp(e){var n,r,s;try{let i;if("email"in e){const{email:c,password:d,options:f}=e;let p=null,b=null;this.flowType==="pkce"&&([p,b]=await ss(this.storage,this.storageKey)),i=await Q(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:c,password:d,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:p,code_challenge_method:b},xform:Ht})}else if("phone"in e){const{phone:c,password:d,options:f}=e;i=await Q(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:d,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(s=f==null?void 0:f.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:Ht})}else throw new Jo("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(i){if(W(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithPassword(e){try{let n;if("email"in e){const{email:i,password:o,options:a}=e;n=await Q(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Ip})}else if("phone"in e){const{phone:i,password:o,options:a}=e;n=await Q(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Ip})}else throw new Jo("You must provide either an email or phone number and a password");const{data:r,error:s}=n;return s?{data:{user:null,session:null},error:s}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new yi}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(W(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(e){var n,r,s,i;return await this._handleProviderSignIn(e.provider,{redirectTo:(n=e.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=e.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=e.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=e.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:n}=e;switch(n){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(e){var n,r,s,i,o,a,l,u,c,d,f;let p,b;if("message"in e)p=e.message,b=e.signature;else{const{chain:w,wallet:v,statement:g,options:m}=e;let y;if(gt())if(typeof v=="object")y=v;else{const C=window;if("ethereum"in C&&typeof C.ethereum=="object"&&"request"in C.ethereum&&typeof C.ethereum.request=="function")y=C.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof v!="object"||!(m!=null&&m.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");y=v}const _=new URL((n=m==null?void 0:m.url)!==null&&n!==void 0?n:window.location.href),S=await y.request({method:"eth_requestAccounts"}).then(C=>C).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!S||S.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const E=m0(S[0]);let k=(r=m==null?void 0:m.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!k){const C=await y.request({method:"eth_chainId"});k=bj(C)}const T={domain:_.host,address:E,statement:g,uri:_.href,version:"1",chainId:k,nonce:(s=m==null?void 0:m.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=m==null?void 0:m.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=m==null?void 0:m.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=m==null?void 0:m.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(u=m==null?void 0:m.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(c=m==null?void 0:m.signInWithEthereum)===null||c===void 0?void 0:c.resources};p=Sj(T),b=await y.request({method:"personal_sign",params:[_j(p),E]})}try{const{data:w,error:v}=await Q(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:p,signature:b},!((d=e.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(f=e.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Ht});if(v)throw v;return!w||!w.session||!w.user?{data:{user:null,session:null},error:new yi}:(w.session&&(await this._saveSession(w.session),await this._notifyAllSubscribers("SIGNED_IN",w.session)),{data:Object.assign({},w),error:v})}catch(w){if(W(w))return{data:{user:null,session:null},error:w};throw w}}async signInWithSolana(e){var n,r,s,i,o,a,l,u,c,d,f,p;let b,w;if("message"in e)b=e.message,w=e.signature;else{const{chain:v,wallet:g,statement:m,options:y}=e;let _;if(gt())if(typeof g=="object")_=g;else{const E=window;if("solana"in E&&typeof E.solana=="object"&&("signIn"in E.solana&&typeof E.solana.signIn=="function"||"signMessage"in E.solana&&typeof E.solana.signMessage=="function"))_=E.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof g!="object"||!(y!=null&&y.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=g}const S=new URL((n=y==null?void 0:y.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in _&&_.signIn){const E=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},y==null?void 0:y.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),m?{statement:m}:null));let k;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")k=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)k=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in k&&"signature"in k&&(typeof k.signedMessage=="string"||k.signedMessage instanceof Uint8Array)&&k.signature instanceof Uint8Array)b=typeof k.signedMessage=="string"?k.signedMessage:new TextDecoder().decode(k.signedMessage),w=k.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in _)||typeof _.signMessage!="function"||!("publicKey"in _)||typeof _!="object"||!_.publicKey||!("toBase58"in _.publicKey)||typeof _.publicKey.toBase58!=
191"function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");b=[`${S.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...m?["",m,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(s=(r=y==null?void 0:y.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=y==null?void 0:y.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${y.signInWithSolana.notBefore}`]:[],...!((o=y==null?void 0:y.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${y.signInWithSolana.expirationTime}`]:[],...!((a=y==null?void 0:y.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${y.signInWithSolana.chainId}`]:[],...!((l=y==null?void 0:y.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${y.signInWithSolana.nonce}`]:[],...!((u=y==null?void 0:y.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${y.signInWithSolana.requestId}`]:[],...!((d=(c=y==null?void 0:y.signInWithSolana)===null||c===void 0?void 0:c.resources)===null||d===void 0)&&d.length?["Resources",...y.signInWithSolana.resources.map(k=>`- ${k}`)]:[]].join(`
192`);const E=await _.signMessage(new TextEncoder().encode(b),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");w=E}}try{const{data:v,error:g}=await Q(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:b,signature:KT(w)},!((f=e.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(p=e.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:Ht});if(g)throw g;return!v||!v.session||!v.user?{data:{user:null,session:null},error:new yi}:(v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("SIGNED_IN",v.session)),{data:Object.assign({},v),error:g})}catch(v){if(W(v))return{data:{user:null,session:null},error:v};throw v}}async _exchangeCodeForSession(e){const n=await xr(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{const{data:i,error:o}=await Q(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:r},xform:Ht});if(await In(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!i||!i.session||!i.user?{data:{user:null,session:null,redirectType:null},error:new yi}:(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),{data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(W(i))return{data:{user:null,session:null,redirectType:null},error:i};throw i}}async signInWithIdToken(e){try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=e,a=await Q(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Ht}),{data:l,error:u}=a;return u?{data:{user:null,session:null},error:u}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new yi}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:u})}catch(n){if(W(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(e){var n,r,s,i,o;try{if("email"in e){const{email:a,options:l}=e;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await ss(this.storage,this.storageKey));const{error:d}=await Q(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:c},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:d}}if("phone"in e){const{phone:a,options:l}=e,{data:u,error:c}=await Q(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c}}throw new Jo("You must provide either an email or phone number.")}catch(a){if(W(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(e){var n,r;try{let s,i;"options"in e&&(s=(n=e.options)===null||n===void 0?void 0:n.redirectTo,i=(r=e.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await Q(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:Ht});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,u=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(s){if(W(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithSSO(e){var n,r,s;try{let i=null,o=null;return this.flowType==="pkce"&&([i,o]=await ss(this.storage,this.storageKey)),await Q(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(r=(n=e.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=e==null?void 0:e.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:i,code_challenge_method:o}),headers:this.headers,xform:fj})}catch(i){if(W(i))return{data:null,error:i};throw i}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:n},error:r}=e;if(r)throw r;if(!n)throw new $n;const{error:s}=await Q(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:s}})}catch(e){if(W(e))return{data:{user:null,session:null},error:e};throw e}}async resend(e){try{const n=`${this.url}/resend`;if("email"in e){const{email:r,type:s,options:i}=e,{error:o}=await Q(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in e){const{phone:r,type:s,options:i}=e,{data:o,error:a}=await Q(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a}}throw new Jo("You must provide either an email or phone number and a type")}catch(n){if(W(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(e,n){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await e(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const n=await xr(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?e=n:(this._debug("#getSession()","session from storage is not val
192id"),await this._removeSession())),!e)return{data:{session:null},error:null};const r=e.expires_at?e.expires_at*1e3-Date.now()<_u:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",e.expires_at),!r){if(this.userStorage){const o=await xr(this.userStorage,this.storageKey+"-user");o!=null&&o.user?e.user=o.user:e.user=ku()}if(this.storage.isServer&&e.user){let o=this.suppressGetSessionWarning;e=new Proxy(e,{get:(l,u,c)=>(!o&&u==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),o=!0,this.suppressGetSessionWarning=!0),Reflect.get(l,u,c))})}return{data:{session:e},error:null}}const{session:s,error:i}=await this._callRefreshToken(e.refresh_token);return i?{data:{session:null},error:i}:{data:{session:s},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(e){return e?await this._getUser(e):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(e){try{return e?await Q(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:Wn}):await this._useSession(async n=>{var r,s,i;const{data:o,error:a}=n;if(a)throw a;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new $n}:await Q(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:Wn})})}catch(n){if(W(n))return DT(n)&&(await this._removeSession(),await In(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(e,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,n))}async _updateUser(e,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new $n;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&e.email!=null&&([a,l]=await ss(this.storage,this.storageKey));const{data:u,error:c}=await Q(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:Wn});if(c)throw c;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(r){if(W(r))return{data:{user:null},error:r};throw r}}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new $n;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=Eu(e.access_token);if(o.exp&&(r=o.exp,s=r<=n),s){const{session:a,error:l}=await this._callRefreshToken(e.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:l}=await this._getUser(e.access_token);if(l)throw l;i={access_token:e.access_token,refresh_token:e.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return{data:{user:i.user,session:i},error:null}}catch(n){if(W(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async n=>{var r;if(!e){const{data:o,error:a}=n;if(a)throw a;e=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(e!=null&&e.refresh_token))throw new $n;const{session:s,error:i}=await this._callRefreshToken(e.refresh_token);return i?{data:{user:null,session:null},error:i}:s?{data:{user:s.user,session:s},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(W(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(e,n){try{if(!gt())throw new Xo("No browser detected.");
192if(e.error||e.error_description||e.error_code)throw new Xo(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Tp("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Xo("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new Tp("No code detected.");const{data:m,error:y}=await this._exchangeCodeForSession(e.code);if(y)throw y;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:m.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:a,expires_at:l,token_type:u}=e;if(!i||!a||!o||!u)throw new Xo("No session defined in URL");const c=Math.round(Date.now()/1e3),d=parseInt(a);let f=c+d;l&&(f=parseInt(l));const p=f-c;p*1e3<=us&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${p}s, should have been closer to ${d}s`);const b=f-d;c-b>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",b,f,c):c-b<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",b,f,c);const{data:w,error:v}=await this._getUser(i);if(v)throw v;const g={provider_token:r,provider_refresh_token:s,access_token:i,expires_in:d,expires_at:f,refresh_token:o,token_type:u,user:w.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:g,redirectType:e.type},error:null}}catch(r){if(W(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(e){return!!(e.access_token||e.error_description)}async _isPKCECallback(e){const n=await xr(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&n)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return{error:i};const o=(r=s.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,e);if(a&&!(MT(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return e!=="others"&&(await this._removeSession(),await In(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(e){const n=GT(),r={id:n,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(e){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(e))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",e,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(e))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",i),console.error(i)}})}async resetPasswordForEmail(e,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await ss(this.storage,this.storageKey,!0));try{return await Q(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(W(i))return{data:null,error:i};throw i}}async getUserIdentities(){var e;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(e=n.user.identities)!==null&&e!==void 0?e:[]},error:null}}catch(n){if(W(n))return{data:null,error:n};throw n}}async linkIdentity(e){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var o,a,l,u,c;const{data:d,error:f}=i;if(f)throw f;const p=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(o=e.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=e.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=e.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await Q(this.fetch,"GET",p,{headers:this.headers,jwt:(c=(u=d.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(s)throw s;return gt()&&!(!((n=e.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:e.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(W(r))return{data:{provider:e.provider,url:null},error:r};throw r}}async unlinkIdentity(e){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;
192if(o)throw o;return await Q(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(W(n))return{data:null,error:n};throw n}}async _refreshAccessToken(e){const n=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await XT(async s=>(s>0&&await JT(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await Q(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:Ht})),(s,i)=>{const o=200*Math.pow(2,s);return i&&Su(i)&&Date.now()+o-r<us})}catch(r){if(this._debug(n,"error",r),W(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",n,"url",r),gt()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:e,url:r},error:null}}async _recoverAndRefresh(){var e,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await xr(this.storage,this.storageKey);if(s&&this.userStorage){let o=await xr(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await cs(this.userStorage,this.storageKey+"-user",o)),s.user=(e=o==null?void 0:o.user)!==null&&e!==void 0?e:ku()}else if(s&&!s.user&&!s.user){const o=await xr(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await In(this.storage,this.storageKey+"-user"),await cs(this.storage,this.storageKey,s)):s.user=ku()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const i=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<_u;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${_u}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),Su(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(s.access_token);!a&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(e){var n,r;if(!e)throw new $n;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new Nl;const{data:i,error:o}=await this._refreshAccessToken(e);if(o)throw o;if(!i.session)throw new $n;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const a={session:i.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(i){if(this._debug(s,"error",i),W(i)){const o={session:null,error:i};return Su(i)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(e,n,r=!0){const s=`#_notifyAllSubscribers(${e})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:e,session:n});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(e,n)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;a<i.length;a+=1)console.error(i[a]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0;const n=Object.assign({},e),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await cs(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=Ap(s);await cs(this.storage,this.storageKey,i)}else{const s=Ap(n);await cs(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),await In(this.storage,this.storageKey),await In(this.storage,this.storageKey+"-code-verifier"),await In(this.storage,this.storageKey+"-user"),this.userStorage&&await In(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&gt()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}
192catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),us);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-e)/us);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${us}ms, refresh threshold is ${Wc} ticks`),s<=Wc&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof p0)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!gt()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const n=`#_onVisibilityChanged(${e})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,o]=await ss(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${e}?${s.join("&")}`}async _unenroll(e){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?{data:null,error:i}:await Q(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(W(n))return{data:null,error:n};throw n}}async _enroll(e){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)return{data:null,error:o};const a=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:{issuer:e.issuer}),{data:l,error:u}=await Q(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return u?{data:null,error:u}:(e.factorType==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),{data:l,error:null})})}catch(n){if(W(n))return{data:null,error:n};throw n}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return{data:null,error:i};const{data:o,error:a}=await Q(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:{code:e.code,challenge_id:e.challengeId},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:a})})}catch(n){if(W(n))return{data:null,error:n};throw n}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?{data:null,error:i}:await Q(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:{channel:e.channel},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(W(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(e){const{data:n,error:r}=await this._challenge({factorId:e.factorId});return r?{data:null,error:r}:await this._verify({factorId:e.factorId,challengeId:n.id,code:e.code})}async _listFactors(){const{data:{user:e},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(e==null?void 0:e.factors)||[],s=r.filter(o=>o.factor_type==="totp"&&o.status==="verified"),i=r.filter(o=>o.factor_type==="phone"&&o.status==="verified");return{data:{all:r,totp:s,phone:i},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async e=>{var n,r;const{data:{session:s},error:i}=e;if(i)return{data:null,error:i};if(!s)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=Eu(s.access_token);let a=null;o.aal&&(a=o.aal);let l=a;((r=(n=s.user.factors)===null||n===void 0?void 0:n.filter(d=>d.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(l="aal2");const c=o.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:c},error:null}}))}async fetchJwk(e,n={keys:[]}){let r=n.keys.find(a=>a.kid===e);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(a=>a.kid===e),r&&this.jwks_cached_at+LT>s)return r;const{data:i,error:o}=await Q(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,r=i.keys.find(a=>a.kid===e),!r)?null:r}async getClaims(e,n={}){try{let r=e;if(!r){const{data:p,error:b}
192=await this.getSession();if(b||!p.session)return{data:null,error:b};r=p.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=Eu(r);n!=null&&n.allowExpired||ij(i.exp);const u=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:p}=await this.getUser(r);if(p)throw p;return{data:{claims:i,header:s,signature:o},error:null}}const c=oj(s.alg),d=await crypto.subtle.importKey("jwk",u,c,!0,["verify"]);if(!await crypto.subtle.verify(c,d,o,HT(`${a}.${l}`)))throw new Kc("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if(W(r))return{data:null,error:r};throw r}}}ao.nextInstanceID=0;const kj=ao;class Cj extends kj{constructor(e){super(e)}}var Tj=function(t,e,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})};class jj{constructor(e,n,r){var s,i,o;this.supabaseUrl=e,this.supabaseKey=n;const a=RT(e);if(!n)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",a),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",a),this.storageUrl=new URL("storage/v1",a),this.functionsUrl=new URL("functions/v1",a);const l=`sb-${a.hostname.split(".")[0]}-auth-token`,u={db:xT,realtime:_T,auth:Object.assign(Object.assign({},bT),{storageKey:l}),global:wT},c=PT(r??{},u);this.storageKey=(s=c.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(i=c.global.headers)!==null&&i!==void 0?i:{},c.accessToken?(this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(d,f)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(f)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=c.auth)!==null&&o!==void 0?o:{},this.headers,c.global.fetch),this.fetch=CT(n,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},c.realtime)),this.rest=new $C(new URL("rest/v1",a).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch}),this.storage=new gT(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new pC(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,n={},r={}){return this.rest.rpc(e,n,r)}channel(e,n={config:{}}){return this.realtime.channel(e,n)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var e,n;return Tj(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:r}=yield this.auth.getSession();return(n=(e=r.session)===null||e===void 0?void 0:e.access_token)!==null&&n!==void 0?n:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:n,detectSessionInUrl:r,storage:s,userStorage:i,storageKey:o,flowType:a,lock:l,debug:u},c,d){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new Cj({url:this.authUrl.href,headers:Object.assign(Object.assign({},f),c),storageKey:o,autoRefreshToken:e,persistSession:n,detectSessionInUrl:r,storage:s,userStorage:i,flowType:a,lock:l,debug:u,fetch:d,hasCustomAuthorizationHeader:Object.keys(this.headers).some(p=>p.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new ZC(this.realtimeUrl.href,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(e,n,r){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const Pj=(t,e,n)=>new jj(t,e,n);function Rj(){if(typeof window<"u"||typeof process>"u")return!1;const t=process.version;if(t==null)return!1;const e=t.match(/^v(\d+)\./);return e?parseInt(e[1],10)<=18:!1}
192Rj()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const Nj="https://xddohhqphbbhriokbdtj.supabase.co",Aj="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InhkZG9oaHFwaGJiaHJpb2tiZHRqIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTkxNzM3MjcsImV4cCI6MjA3NDc0OTcyN30.xDKYqA67Y24FSr0Tq_TrgEMpT57EYD1qfS02v_bFVnU",Ue=Pj(Nj,Aj,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),Oj=()=>{const t=Cl(),[e,n]=x.useState({text:"© 2025 Daniela Dworzak - Expertin für Frauenfitness",buttonText:"Admin Login"});return x.useEffect(()=>{(async()=>{const{data:s}=await Ue.from("landing_page_content").select("*").eq("section","footer").single();s&&n({text:s.footer_text||e.text,buttonText:s.button_text||e.buttonText})})()},[]),h.jsx("footer",{className:"bg-card border-t border-border py-6 px-4",children:h.jsxs("div",{className:"max-w-7xl mx-auto flex flex-col sm:flex-row items-center justify-between gap-4",children:[h.jsx("div",{className:"text-sm text-muted-foreground text-center sm:text-left",children:h.jsx("p",{children:e.text})}),h.jsxs(Re,{variant:"ghost",size:"sm",onClick:()=>t("/auth"),className:"text-muted-foreground hover:text-foreground",children:[h.jsx(F_,{className:"w-4 h-4 mr-2"}),e.buttonText]})]})})},Ij=({onStartAssessment:t})=>{const[e,n]=x.useState({badge_text:"Speziell für Frauen ab 40",title:"Wechseljahre oder nur Stress?",description:"Mach jetzt den kostenlosen Selbstcheck und erhalte eine erste Einschätzung zu deinen Symptomen – wissenschaftlich fundiert und vertraulich.",button_text:"Kostenloser Wechseljahre-Check",benefit_1_title:"Schnell & Einfach",benefit_1_description:"Nur 5 Minuten für wichtige Erkenntnisse über deinen Körper",benefit_2_title:"Wissenschaftlich fundiert",benefit_2_description:"Basierend auf medizinischen Erkenntnissen zu Wechseljahren",benefit_3_title:"Individuelle Auswertung",benefit_3_description:"Persönliche Empfehlungen für deine Gesundheit"});return x.useEffect(()=>{(async()=>{const{data:s,error:i}=await Ue.from("landing_page_content").select("*").eq("section","landing_page").single();s&&!i&&n({badge_text:s.title||e.badge_text,title:s.subtitle||e.title,description:s.description||e.description,button_text:s.button_text||e.button_text,benefit_1_title:s.benefit_1_title||e.benefit_1_title,benefit_1_description:s.benefit_1_description||e.benefit_1_description,benefit_2_title:s.benefit_2_title||e.benefit_2_title,benefit_2_description:s.benefit_2_description||e.benefit_2_description,benefit_3_title:s.benefit_3_title||e.benefit_3_title,benefit_3_description:s.benefit_3_description||e.benefit_3_description})})()},[]),h.jsxs("div",{className:"min-h-screen bg-gradient-hero flex flex-col",children:[h.jsx("div",{className:"flex-1 flex items-center justify-center p-4",children:h.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[h.jsxs("div",{className:"animate-fade-in-up",children:[h.jsxs("div",{className:"inline-flex items-center gap-2 bg-primary/10 text-primary px-4 py-2 rounded-full text-sm font-medium mb-6",children:[h.jsx(kc,{className:"w-4 h-4"}),e.badge_text]}),h.jsx("h1",{className:"heading-xl mb-6 text-balance",children:e.title}),h.jsx("p",{className:"text-xl text-muted-foreground mb-8 text-balance max-w-2xl mx-auto leading-relaxed",children:e.description}),h.jsxs(Re,{variant:"wellness",size:"lg",onClick:t,className:"mb-12",children:[e.button_text,h.jsx(Ii,{className:"ml-2 h-5 w-5"})]})]}),h.jsx("div",{className:"grid md:grid-cols-3 gap-6 max-w-3xl mx-auto",children:[{icon:Fv,title:e.benefit_1_title,description:e.benefit_1_description},{icon:kc,title:e.benefit_2_title,description:e.benefit_2_description}
192,{icon:Ii,title:e.benefit_3_title,description:e.benefit_3_description}].map((r,s)=>h.jsx(tt,{className:"shadow-soft hover:shadow-card transition-all duration-300 transform hover:-translate-y-1",children:h.jsxs(Ke,{className:"p-6 text-center",children:[h.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg mx-auto mb-4 flex items-center justify-center",children:h.jsx(r.icon,{className:"w-6 h-6 text-primary"})}),h.jsx("h3",{className:"font-semibold mb-2",children:r.title}),h.jsx("p",{className:"text-sm text-muted-foreground text-balance",children:r.description})]})},s))})]})}),h.jsx(Oj,{})]})},we=x.forwardRef(({className:t,type:e,...n},r)=>h.jsx("input",{type:e,className:te("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",t),ref:r,...n}));we.displayName="Input";var Lj="Label",g0=x.forwardRef((t,e)=>h.jsx(ue.label,{...t,ref:e,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=t.onMouseDown)==null||s.call(t,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));g0.displayName=Lj;var v0=g0;const $j=ml("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),re=x.forwardRef(({className:t,...e},n)=>h.jsx(v0,{ref:n,className:te($j(),t),...e}));re.displayName=v0.displayName;function Mj(t){const e=x.useRef({value:t,previous:t});return x.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var Al="Checkbox",[Dj,DP]=pr(Al),[Fj,pf]=Dj(Al);function zj(t){const{__scopeCheckbox:e,checked:n,children:r,defaultChecked:s,disabled:i,form:o,name:a,onCheckedChange:l,required:u,value:c="on",internal_do_not_use_render:d}=t,[f,p]=fl({prop:n,defaultProp:s??!1,onChange:l,caller:Al}),[b,w]=x.useState(null),[v,g]=x.useState(null),m=x.useRef(!1),y=b?!!o||!!b.closest("form"):!0,_={checked:f,disabled:i,setChecked:p,control:b,setControl:w,name:a,form:o,value:c,hasConsumerStoppedPropagationRef:m,required:u,defaultChecked:or(s)?!1:s,isFormControl:y,bubbleInput:v,setBubbleInput:g};return h.jsx(Fj,{scope:e,..._,children:Uj(d)?d(_):r})}var y0="CheckboxTrigger",w0=x.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:n,...r},s)=>{const{control:i,value:o,disabled:a,checked:l,required:u,setControl:c,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:b}=pf(y0,t),w=it(s,c),v=x.useRef(l);return x.useEffect(()=>{const g=i==null?void 0:i.form;if(g){const m=()=>d(v.current);return g.addEventListener("reset",m),()=>g.removeEventListener("reset",m)}},[i,d]),h.jsx(ue.button,{type:"button",role:"checkbox","aria-checked":or(l)?"mixed":l,"aria-required":u,"data-state":E0(l),"data-disabled":a?"":void 0,disabled:a,value:o,...r,ref:w,onKeyDown:se(e,g=>{g.key==="Enter"&&g.preventDefault()}),onClick:se(n,g=>{d(m=>or(m)?!0:!m),b&&p&&(f.current=g.isPropagationStopped(),f.current||g.stopPropagation())})})});w0.displayName=y0;var mf=x.forwardRef((t,e)=>{const{__scopeCheckbox:n,name:r,checked:s,defaultChecked:i,required:o,disabled:a,value:l,onCheckedChange:u,form:c,...d}=t;return h.jsx(zj,{__scopeCheckbox:n,checked:s,defaultChecked:i,disabled:a,required:o,onCheckedChange:u,name:r,form:c,value:l,internal_do_not_use_render:({isFormControl:f})=>h.jsxs(h.Fragment,{children:[h.jsx(w0,{...d,ref:e,__scopeCheckbox:n}),f&&h.jsx(S0,{__scopeCheckbox:n})]})})});mf.displayName=Al;var x0="CheckboxIndicator",b0=x.forwardRef((t,e)=>{const{__scopeCheckbox:n,forceMount:r,...s}=t,i=pf(x0,n);return h.jsx(vo,{present:r||or(i.checked)||i.checked===!0,children:h.jsx(ue.span,{"data-state":E0(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:e,style:{pointerEvents:"none",...t.style}})})});b0.displayName=x0;var _0="CheckboxBubbleInput",S0=x.forwardRef(({__scopeCheckbox:t,...e},n)=>{const{control:r,hasConsumerStoppedPropagationRef:s,checked:i,defaultChecked:o,required:a,disabled:l,name:u,value:c,form:d,bubbleInput:f,setBubbleInput:p}=pf(_0,t),b=it(n,p),w=Mj(i),v=uy(r);x.useEffect(()=>{const m=f;if(!m)return;const y=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(y,"checked").set,E=!s.current;if(w!==i&&S){const k=new Event("click",{bubbles:E});m.indeterminate=or(i),S.call(m,or(i)?!1:i),m.dispatchEvent(k)}},[f,w,i,s]);const g=x.useRef(or(i)?!1:i);return h.jsx(ue.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??g.current,required:a,disabled:l,name:u,value:c,form:d,...e,tabIndex:-1,ref:b,style:{...e.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});S0.displayName=_0;function Uj(t){return typeof t=="function"}function or(t){return t==="indeterminate"}function E0(t){return or(t)?"indeterminate":t?"checked":"unchecked"}const k0=x.forwardRef(({className:t,...e},n)=>h.jsx(mf,{ref:n,className:te("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-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",t),...e,children:h.jsx(b0,{className:te("flex items-center justify-center text-current"),children:h.jsx(D_,{className:"h-4 w-4"})})}));k0.displayName=mf.displayName;var gf="Progress",vf=100,[Bj,FP]=pr(gf),[Wj,Vj]=Bj(gf),C0=x.forwardRef((t,e)=>{const{__scopeProgress:n,value:r=null,max:s,getValueLabel:i=Hj,...o}=t;(s||s===0)&&!Mp(s)&&console.error(Kj(`${s}`,"Progress"));const a=Mp(s)?s:vf;r!==null&&!Dp(r,a)&&console.error(qj(`${r}`,"Progress"));const l=Dp(r,a)?r:null,u=Ga(l)?i(l,a):void 0;return h.jsx(Wj,{scope:n,value:l,max:a,children:h.jsx(ue.div,{"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":Ga(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":P0(l,a),"data-value":l??void 0,"data-max":a,...o,ref:e})})});C0.displayName=gf;var T0="ProgressIndicator",j0=x.forwardRef((t,e)=>{const{__scopeProgress:n,...r}=t,s=Vj(T0,n);return h.jsx(ue.div,{"data-state":P0(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...r,ref:e})});j0.displayName=T0;function Hj(t,e){return`${Math.round(t/e*100)}%`}function P0(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}function Ga(t){return typeof t=="number"}function Mp(t){return Ga(t)&&!isNaN(t)&&t>0}function Dp(t,e){return Ga(t)&&!isNaN(t)&&t<=e&&t>=0}function Kj(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${vf}\`.`}function qj(t,e){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${e}\`. The \`value\` prop must be:
193  - a positive number
194  - less than the value passed to \`max\` (or ${vf} if no \`max\` prop is set)
195  - \`null\` or \`undefined\` if the progress is indeterminate.
196
197Defaulting to \`null\`.`}var R0=C0,Gj=j0;const qc=x.forwardRef(({className:t,value:e,...n},r)=>h.jsx(R0,{ref:r,className:te("relative h-4 w-full overflow-hidden rounded-full bg-secondary",t),...n,children:h.jsx(Gj,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(e||0)}%)`}})}));qc.displayName=R0.displayName;const an=[{id:"reproductive",title:"Fortpflanzungssystem",icon:kc,symptoms:["Unregelmäßige oder ausbleibende Periode","Brustveränderungen (Empfindlichkeit, Form)","Vaginale Trockenheit","Beckenbodenschwäche/Urinverlust","Verminderte Libido"]},{id:"nervous",title:"Nervensystem & Psyche",icon:M_,symptoms:["Gedächtnisprobleme, Konzentrationsschwäche","Schlafstörungen, Nachtschweiß","Stimmungsschwankungen, Reizbarkeit","Hitzewallungen","Kopfschmerzen/Migräne"]},{id:"cardiovascular",title:"Herz-Kreislauf & Atmung",icon:Ec,symptoms:["Höherer Blutdruck","Kurzatmigkeit","Häufige Atemwegsinfekte","Kreislaufprobleme"]},{id:"musculoskeletal",title:"Bewegungsapparat",icon:B_,symptoms:["Muskelmasse- und Kraftverlust","Gelenkschmerzen","Rückenschmerzen","Steifheit am Morgen","Langsamere Heilung"]},{id:"metabolism",title:"Stoffwechsel & Verdauung",icon:Ec,symptoms:["Gewichtszunahme, besonders am Bauch","Verdauungsprobleme","Sodbrennen","Neue Nahrungsmittelunverträglichkeiten","Verstopfung"]}],Qj=()=>
197{const[t,e]=x.useState(0),[n,r]=x.useState([]),[s,i]=x.useState({name:"",email:""}),[o,a]=x.useState(!1),[l,u]=x.useState(!1),[c,d]=x.useState({assessment_description:"Welche der folgenden Beschwerden treffen auf dich zu? Du kannst mehrere auswählen.",results_title:"Deine Auswertung",cta_title:"Was kannst du jetzt tun?",cta_description:"Erfahre in einem kostenlosen Informationsgespräch, wie du mit frauenspezifischem Training, optimaler Ernährung und gezieltem Stressmanagement dein Wohlbefinden deutlich steigern kannst.",cta_button:"Kostenloses Informationsgespräch buchen"});x.useEffect(()=>{(async()=>{const[m,y]=await Promise.all([Ue.from("landing_page_content").select("*").eq("section","assessment_page").single(),Ue.from("landing_page_content").select("*").eq("section","results_page").single()]);m.data&&y.data&&d({assessment_description:m.data.description||c.assessment_description,results_title:y.data.title||c.results_title,cta_title:y.data.subtitle||c.cta_title,cta_description:y.data.description||c.cta_description,cta_button:y.data.button_text||c.cta_button})})()},[]);const f=g=>{r(m=>m.includes(g)?m.filter(y=>y!==g):[...m,g])},p=async()=>{if(!(!s.name||!s.email)){a(!0);try{const g=an.filter(y=>y.symptoms.some(_=>n.includes(_))).map(y=>y.title),{error:m}=await Ue.from("assessment_submissions").insert({name:s.name,email:s.email,selected_symptoms:n,affected_areas:g,affected_areas_count:g.length,symptoms_count:n.length});if(m)throw m;await new Promise(y=>setTimeout(y,1500)),u(!0)}catch(g){console.error("Error saving submission:",g)}finally{a(!1)}}},b=()=>{const g=an.filter(m=>m.symptoms.some(y=>n.includes(y)));return g.length===0?"Großartig! Deine Symptome weisen aktuell nicht auf Wechseljahre hin.":g.length<=2?`Basierend auf deinen Angaben könntest du in einer frühen Phase der Wechseljahre sein. Betroffene Bereiche: ${g.map(m=>m.title).join(", ")}`:`Deine Symptome deuten darauf hin, dass du bereits in den Wechseljahren sein könntest. Betroffene Bereiche: ${g.map(m=>m.title).join(", ")}`};if(o)return h.jsx("div",{className:"min-h-screen bg-gradient-hero flex items-center justify-center p-4",children:h.jsx(tt,{className:"w-full max-w-md 
197shadow-card",children:h.jsxs(Ke,{className:"p-8 text-center",children:[h.jsx("div",{className:"animate-pulse-glow w-16 h-16 bg-primary rounded-full mx-auto mb-6 flex items-center justify-center",children:h.jsx(Ec,{className:"w-8 h-8 text-primary-foreground"})}),h.jsx("h3",{className:"heading-md mb-4",children:"Auswertung läuft..."}),h.jsx(qc,{value:66,className:"mb-4"}),h.jsx("p",{className:"text-muted-foreground",children:"Deine Antworten werden analysiert"})]})})});if(l){const g=an.filter(m=>m.symptoms.some(y=>n.includes(y))).length;return h.jsx("div",{className:"min-h-screen bg-gradient-hero flex items-center justify-center p-4",children:h.jsx(tt,{className:"w-full max-w-2xl shadow-card animate-fade-in-up",children:h.jsxs(Ke,{className:"p-8 text-center",children:[h.jsx("div",{className:"w-20 h-20 bg-primary/10 rounded-full mx-auto mb-6 flex items-center justify-center",children:h.jsx(Fv,{className:"w-10 h-10 text-primary"})}),h.jsxs("h2",{className:"heading-lg mb-6",children:[c.results_title,", ",s.name]}),h.jsxs("div",{className:"bg-accent/30 rounded-lg p-6 mb-8",children:[h.jsx("p",{className:"text-lg text-balance leading-relaxed",children:b()}),n.length>0&&h.jsxs("div",{className:"mt-6 text-sm text-muted-foreground",children:[h.jsxs("p",{children:[h.jsx("strong",{children:n.length})," Symptome ausgewählt"]}),h.jsxs("p",{children:[h.jsx("strong",{children:g})," von 5 Bereichen betroffen"]})]})]}),h.jsxs("div",{className:"space-y-4",children:[h.jsx("h3",{className:"text-xl font-semibold",children:c.cta_title}),h.jsx("p",{className:"text-muted-foreground text-balance",children:c.cta_description}),h.jsx(Re,{variant:"wellness",size:"lg",className:"w-full sm:w-auto",asChild:!0,children:h.jsxs("a",{href:"https://cal.meetergo.com/daniela-dworzak/30-min-meeting-or-daniela-dworzak",target:"_blank",rel:"noopener noreferrer",children:[c.cta_button,h.jsx(Ii,{className:"ml-2 h-5 w-5"})]})})]})]})})})}const w=t===an.length,v=(t+1)/(an.length+1)*100;return h.jsx("div",{className:"min-h-screen bg-gradient-hero p-4",children:h.jsxs("div",{className:"max-w-4xl mx-auto",children:[h.jsxs("div",{className:"mb-8",children:[h.jsxs("div",{className:"flex justify-between items-center mb-2",children:[h.jsxs("span",{className:"text-sm text-muted-foreground",children:["Schritt ",t+1," von ",an.length+1]}),h.jsxs("span",{className:"text-sm text-muted-foreground",children:[Math.round(v),"% abgeschlossen"]})]}),h.jsx(qc,{value:v,className:"h-2"})]}),h.jsx(tt,{className:"shadow-card animate-fade-in-up",children:w?h.jsxs(h.Fragment,{children:[h.jsxs(bt,{children:[h.jsx(_t,{className:"heading-md",children:"Fast geschafft!"}),h.jsx("p",{className:"text-muted-foreground",children:"Gib deine Kontaktdaten ein, um deine persönliche Auswertung zu erhalten."})]}),h.jsxs(Ke,{className:"space-y-6",children:[h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{children:[h.jsx(re,{htmlFor:"name",children:"Vorname"}),h.jsx(we,{id:"name",value:s.name,onChange:g=>i(m=>({...m,name:g.target.value})),placeholder:"Dein Vorname",className:"mt-1"})]}),h.jsxs("div",{children:[h.jsx(re,{htmlFor:"email",children:"E-Mail-Adresse"}),h.jsx(we,{id:"email",type:"email",value:s.email,onChange:g=>i(m=>({...m,email:g.target.value})),placeholder:"[email protected]",className:"mt-1"})]})]}),h.jsxs("div",{className:"pt-4 flex justify-between",children:[h.jsx(Re,{variant:"soft",onClick:()=>e(g=>g-1),children:"Zurück"}),h.jsxs(Re,{variant:"wellness",onClick:p,disabled:!s.name||!s.email,children:["Auswertung erhalten",h.jsx(Ii,{className:"ml-2 h-4 w-4"})]})]})]})]}):h.jsxs(h.Fragment,{children:[h.jsxs(bt,{className:"pb-4",children:[h.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[O.createElement(an[t].icon,{className:"w-8 h-8 text-primary"}),h.jsx(_t,{className:"heading-md",children:an[t].title})]}),h.jsx("p",{className:"text-muted-foreground",children:c.assessment_description})]}),h.jsxs(Ke,{className:"space-y-4",children:[an[t].symptoms.map(g=>h.jsxs("div",{className:"flex items-center space-x-3 p-3 rounded-lg hover:bg-accent/50 transition-colors",children:[h.jsx(k0,{id:g,checked:n.includes(g),onCheckedChange:()=>f(g),className:"data-[state=checked]:bg-primary data-[state=checked]:border-primary"}),h.jsx(re,{htmlFor:g,className:"flex-1 cursor-pointer text-sm leading-relaxed",children:g})]},g)),h.jsxs("div",{className:"pt-6 flex justify-between",children:[h.jsx(Re,{variant:"soft",onClick:()=>e(g=>Math.max(0,g-1)),disabled:t===0,children:"Zurück"}),h.jsxs(Re,{variant:"wellness",onClick:()=>e(g=>g+1),children:["Weiter",h.jsx(Ii,{className:"ml-2 h-4 w-4"})]})]})]})]})})]})})},Yj=()=>{const[t,e]=x.useState(!1);return t?h.jsx(Qj,{}):h.jsx(Ij,{onStartAssessment:()=>e(!0)})},Jj=()=>
197{const[t,e]=x.useState(!0),[n,r]=x.useState(""),[s,i]=x.useState(""),[o,a]=x.useState(!1),l=Cl(),{toast:u}=dl();x.useEffect(()=>{Ue.auth.getSession().then(({data:{session:d}})=>{d&&l("/crm")})},[l]);const c=async d=>{d.preventDefault(),a(!0);try{if(t){const{error:f}=await Ue.auth.signInWithPassword({email:n,password:s});if(f)throw f;u({title:"Erfolgreich angemeldet",description:"Willkommen zurück!"}),l("/crm")}else{const{error:f}=await Ue.auth.signUp({email:n,password:s,options:{emailRedirectTo:`${window.location.origin}/crm`}});if(f)throw f;u({title:"Erfolgreich registriert",description:"Du kannst dich jetzt anmelden."}),e(!0)}}catch(f){u({title:"Fehler",description:f.message,variant:"destructive"})}finally{a(!1)}};return h.jsx("div",{className:"min-h-screen bg-gradient-hero flex items-center justify-center p-4",children:h.jsxs(tt,{className:"w-full max-w-md shadow-card",children:[h.jsxs(bt,{children:[h.jsx(_t,{className:"heading-md",children:t?"Anmelden":"Registrieren"}),h.jsx(Hy,{children:t?"Melde dich an, um auf das CRM zuzugreifen":"Erstelle ein Konto für den CRM-Zugriff"})]}),h.jsxs(Ke,{children:[h.jsxs("form",{onSubmit:c,className:"space-y-4",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(re,{htmlFor:"email",children:"E-Mail-Adresse"}),h.jsx(we,{id:"email",type:"email",placeholder:"[email protected]",value:n,onChange:d=>r(d.target.value),required:!0})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(re,{htmlFor:"password",children:"Passwort"}),h.jsx(we,{id:"password",type:"password",placeholder:"••••••••",value:s,onChange:d=>i(d.target.value),required:!0,minLength:6})]}),h.jsxs(Re,{type:"submit",variant:"wellness",className:"w-full",disabled:o,children:[o&&h.jsx(Xt,{className:"mr-2 h-4 w-4 animate-spin"}),t?"Anmelden":"Registrieren"]})]}),h.jsx("div",{className:"mt-4 text-center",children:h.jsx("button",{type:"button",onClick:()=>e(!t),className:"text-sm text-primary hover:underline",children:t?"Noch kein Konto? Jetzt registrieren":"Schon ein Konto? Anmelden"})})]})]})})},N0=x.forwardRef(({className:t,...e},n)=>h.jsx("div",{className:"relative w-full overflow-auto",children:h.jsx("table",{ref:n,className:te("w-full caption-bottom text-sm",t),...e})}));N0.displayName="Table";const A0=x.forwardRef(({className:t,...e},n)=>h.jsx("thead",{ref:n,className:te("[&_tr]:border-b",t),...e}));A0.displayName="TableHeader";const O0=x.forwardRef(({className:t,...e},n)=>h.jsx("tbody",{ref:n,className:te("[&_tr:last-child]:border-0",t),...e}));O0.displayName="TableBody";const Xj=x.forwardRef(({className:t,...e},n)=>h.jsx("tfoot",{ref:n,className:te("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...e}));Xj.displayName="TableFooter";const pa=x.forwardRef(({className:t,...e},n)=>h.jsx("tr",{ref:n,className:te("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",t),...e}));pa.displayName="TableRow";const Er=x.forwardRef(({className:t,...e},n)=>h.jsx("th",{ref:n,className:te("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...e}));Er.displayName="TableHead";const Mn=x.forwardRef(({className:t,...e},n)=>h.jsx("td",{ref:n,className:te("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...e}));Mn.displayName="TableCell";const Zj=x.forwardRef(({className:t,...e},n)=>h.jsx("caption",{ref:n,className:te("mt-4 text-sm text-muted-foreground",t),...e}));Zj.displayName="TableCaption";const eP=ml("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 Fp({className:t,variant:e,...n}){return h.jsx("div",{className:te(eP({variant:e}),t),...n})}const zn=x.forwardRef(({className:t,...e},n)=>h.jsx("textarea",{className:te("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
197ing-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",t),ref:n,...e}));zn.displayName="Textarea";var tP=x.createContext(void 0);function I0(t){const e=x.useContext(tP);return t||e||"ltr"}var Tu="rovingFocusGroup.onEntryFocus",nP={bubbles:!1,cancelable:!0},So="RovingFocusGroup",[Gc,L0,rP]=dv(So),[sP,$0]=pr(So,[rP]),[iP,oP]=sP(So),M0=x.forwardRef((t,e)=>h.jsx(Gc.Provider,{scope:t.__scopeRovingFocusGroup,children:h.jsx(Gc.Slot,{scope:t.__scopeRovingFocusGroup,children:h.jsx(aP,{...t,ref:e})})}));M0.displayName=So;var aP=x.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:s=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...d}=t,f=x.useRef(null),p=it(e,f),b=I0(i),[w,v]=fl({prop:o,defaultProp:a??null,onChange:l,caller:So}),[g,m]=x.useState(!1),y=xn(u),_=L0(n),S=x.useRef(!1),[E,k]=x.useState(0);return x.useEffect(()=>{const T=f.current;if(T)return T.addEventListener(Tu,y),()=>T.removeEventListener(Tu,y)},[y]),h.jsx(iP,{scope:n,orientation:r,dir:b,loop:s,currentTabStopId:w,onItemFocus:x.useCallback(T=>v(T),[v]),onItemShiftTab:x.useCallback(()=>m(!0),[]),onFocusableItemAdd:x.useCallback(()=>k(T=>T+1),[]),onFocusableItemRemove:x.useCallback(()=>k(T=>T-1),[]),children:h.jsx(ue.div,{tabIndex:g||E===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:"none",...t.style},onMouseDown:se(t.onMouseDown,()=>{S.current=!0}),onFocus:se(t.onFocus,T=>{const C=!S.current;if(T.target===T.currentTarget&&C&&!g){const N=new CustomEvent(Tu,nP);if(T.currentTarget.dispatchEvent(N),!N.defaultPrevented){const D=_().filter(F=>F.focusable),L=D.find(F=>F.active),q=D.find(F=>F.id===w),G=[L,q,...D].filter(Boolean).map(F=>F.ref.current);z0(G,c)}}S.current=!1}),onBlur:se(t.onBlur,()=>m(!1))})})}),D0="RovingFocusGroupItem",F0=x.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:s=!1,tabStopId:i,children:o,...a}=t,l=Yv(),u=i||l,c=oP(D0,n),d=c.currentTabStopId===u,f=L0(n),{onFocusableItemAdd:p,onFocusableItemRemove:b,currentTabStopId:w}=c;return x.useEffect(()=>{if(r)return p(),()=>b()}
vendor: 4,581 bytes, line 197
197,[r,p,b]),h.jsx(Gc.ItemSlot,{scope:n,id:u,focusable:r,active:s,children:h.jsx(ue.span,{tabIndex:d?0:-1,"data-orientation":c.orientation,...a,ref:e,onMouseDown:se(t.onMouseDown,v=>{r?c.onItemFocus(u):v.preventDefault()}),onFocus:se(t.onFocus,()=>c.onItemFocus(u)),onKeyDown:se(t.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){c.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const g=cP(v,c.orientation,c.dir);if(g!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let y=f().filter(_=>_.focusable).map(_=>_.ref.current);if(g==="last")y.reverse();else if(g==="prev"||g==="next"){g==="prev"&&y.reverse();const _=y.indexOf(v.currentTarget);y=c.loop?dP(y,_+1):y.slice(_+1)}setTimeout(()=>z0(y))}}),children:typeof o=="function"?o({isCurrentTabStop:d,hasTabStop:w!=null}):o})})});F0.displayName=D0;var lP={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function uP(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function cP(t,e,n){const r=uP(t.key,n);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return lP[r]}function z0(t,e=!1){const n=document.activeElement;for(const r of t)if(r===n||(r.focus({preventScroll:e}),document.activeElement!==n))return}function dP(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var fP=M0,hP=F0,Ol="Tabs",[pP,zP]=pr(Ol,[$0]),U0=$0(),[mP,yf]=pP(Ol),B0=x.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,onValueChange:s,defaultValue:i,orientation:o="horizontal",dir:a,activationMode:l="automatic",...u}=t,c=I0(a),[d,f]=fl({prop:r,onChange:s,defaultProp:i??"",caller:Ol});return h.jsx(mP,{scope:n,baseId:Yv(),value:d,onValueChange:f,orientation:o,dir:c,activationMode:l,children:h.jsx(ue.div,{dir:c,"data-orientation":o,...u,ref:e})})});B0.displayName=Ol;var W0="TabsList",V0=x.forwardRef((t,e)=>{const{__scopeTabs:n,loop:r=!0,...s}=t,i=yf(W0,n),o=U0(n);return h.jsx(fP,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:r,children:h.jsx(ue.div,{role:"tablist","aria-orientation":i.orientation,...s,ref:e})})});V0.displayName=W0;var H0="TabsTrigger",K0=x.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,disabled:s=!1,...i}=t,o=yf(H0,n),a=U0(n),l=Q0(o.baseId,r),u=Y0(o.baseId,r),c=r===o.value;return h.jsx(hP,{asChild:!0,...a,focusable:!s,active:c,children:h.jsx(ue.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:l,...i,ref:e,onMouseDown:se(t.onMouseDown,d=>{!s&&d.button===0&&d.ctrlKey===!1?o.onValueChange(r):d.preventDefault()}),onKeyDown:se(t.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&o.onValueChange(r)}),onFocus:se(t.onFocus,()=>{const d=o.activationMode!=="manual";!c&&!s&&d&&o.onValueChange(r)})})})});K0.displayName=H0;var q0="TabsContent",G0=x.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,forceMount:s,children:i,...o}=t,a=yf(q0,n),l=Q0(a.baseId,r),u=Y0(a.baseId,r),c=r===a.value,d=x.useRef(c);return x.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),h.jsx(vo,{present:s||c,children:({present:f})=>h.jsx(ue.div,{"data-state":c?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!f,id:u,tabIndex:0,...o,ref:e,style:{...t.style,animationDuration:d.current?"0s":void 0},children:f&&i})})});G0.displayName=q0;function Q0(t,e){return`${t}-trigger-${e}`}function Y0(t,e){return`${t}-content-${e}`}var gP=B0,J0=V0,X0=K0,Z0=G0;const ew=gP,wf=x.forwardRef(({className:t,...e},n)=>h.jsx(J0,{ref:n,className:te("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",t),...e}));wf.displayName=J0.displayName;const Rr=x.forwardRef(({className:t,...e},n)=>h.jsx(X0,{ref:n,className:te("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",t),...e}));Rr.displayName=X0.displayName;const Nr=x.forwardRef(({className:t,...e},n)=>h.jsx(Z0,{ref:n,className:te("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...e}));Nr.displayName=Z0.displayName;const vP=()=>{var m,y,_,S,E,k,T;
197const[t,e]=x.useState([]),[n,r]=x.useState(!0),[s,i]=x.useState([]),[o,a]=x.useState({}),[l,u]=x.useState(!1),c=Cl(),{toast:d}=dl();x.useEffect(()=>{f(),p(),b()},[]);const f=async()=>{const{data:{session:C}}=await Ue.auth.getSession();C||c("/auth")},p=async()=>{try{const{data:C,error:N}=await Ue.from("assessment_submissions").select("*").order("created_at",{ascending:!1});if(N)throw N;e(C||[])}catch{d({title:"Fehler",description:"Einreichungen konnten nicht geladen werden",variant:"destructive"})}finally{r(!1)}},b=async()=>{try{const{data:C,error:N}=await Ue.from("landing_page_content").select("*");if(N)throw N;i(C||[]);const D={};C==null||C.forEach(L=>{D[L.section]=L}),a(D)}catch{d({title:"Fehler",description:"Inhalte konnten nicht geladen werden",variant:"destructive"})}},w=(C,N,D)=>{a(L=>({...L,[C]:{...L[C],[N]:D}}))},v=async C=>{u(!0);try{const N=o[C],{error:D}=await Ue.from("landing_page_content").update({title:N.title,subtitle:N.subtitle,description:N.description,button_text:N.button_text,image_url:N.image_url}).eq("section",C);if(D)throw D;d({title:"Gespeichert",description:"Inhalte wurden erfolgreich aktualisiert"}),await b()}catch{d({title:"Fehler",description:"Inhalte konnten nicht gespeichert werden",variant:"destructive"})}finally{u(!1)}},g=async()=>{await Ue.auth.signOut(),c("/")};return n?h.jsx("div",{className:"min-h-screen bg-gradient-hero flex items-center justify-center",children:h.jsx(Xt,{className:"w-8 h-8 animate-spin text-primary"})}):h.jsx("div",{className:"min-h-screen bg-gradient-hero p-4 md:p-8",children:h.jsxs("div",{className:"max-w-7xl mx-auto",children:[h.jsxs("div",{className:"flex justify-between items-center mb-8",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"heading-lg mb-2",children:"Assessment CRM"}),h.jsx("p",{className:"text-muted-foreground",children:"Verwalte Einreichungen und Inhalte"})]}),h.jsxs(Re,{variant:"soft",onClick:g,children:[h.jsx(z_,{className:"w-4 h-4 mr-2"}),"Abmelden"]})]}),h.jsxs(ew,{defaultValue:"submissions",className:"space-y-6",children:[h.jsxs(wf,{className:"grid w-full max-w-md grid-cols-2",children:[h.jsx(Rr,{value:"submissions",children:"Einreichungen"}),h.jsx(Rr,{value:"content",children:"Inhalte bearbeiten"})]}),h.jsx(Nr,{value:"submissions",children:h.jsxs(tt,{className:"shadow-card",children:[h.jsx(bt,{children:h.jsxs(_t,{children:["Einreichungen (",t.length,")"]})}),h.jsx(Ke,{children:h.jsx("div",{className:"overflow-x-auto",children:h.jsxs(N0,{children:[h.jsx(A0,{children:h.jsxs(pa,{children:[h.jsx(Er,{children:"Datum"}),h.jsx(Er,{children:"Name"}),h.jsx(Er,{children:"E-Mail"}),h.jsx(Er,{children:"Symptome"}),h.jsx(Er,{children:"Betroffene Bereiche"}),h.jsx(Er,{children:"Details"})]})}),h.jsx(O0,{children:t.length===0?h.jsx(pa,{children:h.jsx(Mn,{colSpan:6,className:"text-center py-8 text-muted-foreground",children:"Keine Einreichungen vorhanden"})}):t.map(C=>h.jsxs(pa,{children:[h.jsx(Mn,{children:new Date(C.created_at).toLocaleDateString("de-DE")}),h.jsx(Mn,{className:"font-medium",children:C.name}),h.jsx(Mn,{children:C.email}),h.jsx(Mn,{children:h.jsx(Fp,{variant:"secondary",children:C.symptoms_count})}),h.jsx(Mn,{children:h.jsxs(Fp,{variant:"default",children:[C.affected_areas_count," von 5"]})}),h.jsx(Mn,{children:h.jsx("div",{className:"text-xs text-muted-foreground max-w-md",children:C.affected_areas.join(", ")})})]},C.id))})]})})})]})}),h.jsx(Nr,{value:"content",children:h.jsxs("div",{className:"space-y-6",children:[h.jsxs(tt,{className:"shadow-card",children:[h.jsx(bt,{children:h.jsxs(_t,{className:"flex items-center justify-between",children:[h.jsx("span",{children:"Hero-Bereich"}),h.jsxs(Re,{onClick:()=>v("hero"),disabled:l,size:"sm",children:[l?h.jsx(Xt,{className:"w-4 h-4 animate-spin"}):h.jsx(Pr,{className:"w-4 h-4 mr-2"}),"Speichern"]})]})}),h.jsxs(Ke,{className:"space-y-4",children:[h.jsxs("div",{children:[h.jsx(re,{htmlFor:"hero-title",children:"Haupttitel"}),h.jsx(we,{id:"hero-title",value:((m=o.hero)==null?void 0:m.title)||"",onChange:C=>w("hero","title",C.target.value),placeholder:"Haupttitel"})]}),h.jsxs("div",{children:[h.jsx(re,{htmlFor:"hero-subtitle",children:"Untertitel"}),h.jsx(we,{id:"hero-subtitle",value:((y=o.hero)==null?void 0:y.subtitle)||"",onChange:C=>w("hero","subtitle",C.target.value),placeholder:"Untertitel"})]}),h.jsxs("div",{children:[h.jsx(re,{htmlFor:"hero-description",children:"Beschreibung"}),h.jsx(zn,{id:"hero-description",value:((_=o.hero)==null?void 0:_.description)||"",onChange:C=>w("hero","description",C.target.value),placeholder:"Beschreibung",rows:3})]}),h.jsxs("div",{children:[h.jsx(re,{htmlFor:"hero-button",children:"Button-Text"}),h.jsx(we,{id:"hero-button",value:((S=o.hero)==null?void 0:S.button_text)||"",onChange:C=>w("hero","button_text",C.target.value),placeholder:"Button-Text"})]})]})]}),h.jsxs(tt,{className:"shadow-card",children:[h.jsx(bt,{children:h.jsxs(_t,{className:"flex items-center justify-between",children:[h.jsx("span",{children:"Badge-Text"}),h.jsxs(Re,{onClick:()=>v("badge"),disabled:l,size:"sm",children:[l?h.jsx(Xt,{className:"w-4 h-4 animate-spin"}):h.jsx(Pr,{className:"w-4 h-4 mr-2"}),"Speichern"]})]})}),h.jsx(Ke,{children:h.jsxs("div",{children:[h.jsx(re,{htmlFor:"badge-title",children:"Badge-Text"}),h.jsx(we,{id:"badge-title",value:((E=o.badge)==null?void 0:E.title)||"",onChange:C=>w("badge","title",C.target.value),placeholder:"Badge-Text"})]})})]}),h.jsxs(tt,{className:"shadow-card",children:[h.jsx(bt,{children:h.jsxs(_t,{className:"flex items-center justify-between",children:[h.jsx("span",{children:"Vertrauensbereich"}),h.jsxs(Re,{onClick:()=>v("trust"),disabled:l,size:"sm",children:[l?h.jsx(Xt,{className:"w-4 h-4 animate-spin"}):h.jsx(Pr,{className:"w-4 h-4 mr-2"}),"Speichern"]})]})}),h.jsxs(Ke,{className:"space-y-4",children:[h.jsxs("div",{children:[h.jsx(re,{htmlFor:"trust-title",children:"Haupttext"}),h.jsx(we,{id:"trust-title",value:((k=o.trust)==null?void 0:k.title)||"",onChange:C=>w("trust","title",C.target.value),placeholder:"Haupttext"})]}),h.jsxs("div",{children:[h.jsx(re,{htmlFor:"trust-subtitle",children:"Zusatztext"}),h.jsx(we,{id:"trust-subtitle",value:((T=o.trust)==null?void 0:T.subtitle)||"",onChange:C=>w("trust","subtitle",C.target.value),placeholder:"Zusatztext"})]})]})]})]})})]})]})})},yP=()=>
197{const[t,e]=x.useState([]),[n,r]=x.useState(!0),[s,i]=x.useState(!1),o=Cl(),{toast:a}=dl();x.useEffect(()=>{l(),u()},[]);const l=async()=>{const{data:{session:v}}=await Ue.auth.getSession();v||o("/auth")},u=async()=>{try{const{data:v,error:g}=await Ue.from("landing_page_content").select("*").order("section");if(g)throw g;e(v||[])}catch{a({title:"Fehler",description:"Inhalte konnten nicht geladen werden",variant:"destructive"})}finally{r(!1)}},c=async v=>{i(!0);try{const{error:g}=await Ue.from("landing_page_content").update({title:v.title,subtitle:v.subtitle,description:v.description,button_text:v.button_text,image_url:v.image_url,benefit_1_title:v.benefit_1_title,benefit_1_description:v.benefit_1_description,benefit_2_title:v.benefit_2_title,benefit_2_description:v.benefit_2_description,benefit_3_title:v.benefit_3_title,benefit_3_description:v.benefit_3_description,assessment_title:v.assessment_title,assessment_description:v.assessment_description,results_title:v.results_title,results_description:v.results_description,cta_title:v.cta_title,cta_description:v.cta_description,cta_button_text:v.cta_button_text,footer_text:v.footer_text}).eq("id",v.id);if(g)throw g;a({title:"Erfolgreich gespeichert",description:"Die Änderungen wurden gespeichert"})}catch{a({title:"Fehler",description:"Änderungen konnten nicht gespeichert werden",variant:"destructive"})}finally{i(!1)}},d=(v,g,m)=>{e(t.map(y=>y.id===v?{...y,[g]:m}:y))};if(n)return h.jsx("div",{className:"min-h-screen bg-gradient-hero flex items-center justify-center",children:h.jsx(Xt,{className:"w-8 h-8 animate-spin text-primary"})});const f=t.find(v=>v.section==="landing_page"),p=t.find(v=>v.section==="assessment_page"),b=t.find(v=>v.section==="results_page"),w=t.find(v=>v.section==="footer");return h.jsx("div",{className:"min-h-screen bg-gradient-hero p-4 md:p-8",children:h.jsxs("div",{className:"max-w-5xl mx-auto",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[h.jsxs(Re,{variant:"ghost",onClick:()=>o("/crm"),children:[h.jsx($_,{className:"w-4 h-4 mr-2"}),"Zurück zum CRM"]}),h.jsxs("div",{className:"flex-1",children:[h.jsx("h1",{className:"heading-lg",children:"Inhalte verwalten"}),h.jsx("p",{className:"text-muted-foreground",children:"Bearbeite alle Texte deiner Website"})]})]}),h.jsxs(ew,{defaultValue:"landing",className:"space-y-6",children:[h.jsxs(wf,{className:"grid w-full grid-cols-4",children:[h.jsx(Rr,{value:"landing",children:"Startseite"}),h.jsx(Rr,{value:"assessment",children:"Assessment"}),h.jsx(Rr,{value:"results",children:"Ergebnisse"}),h.jsx(Rr,{value:"footer",children:"Footer"})]}),h.jsx(Nr,{value:"landing",children:f&&h.jsxs(tt,{className:"shadow-card",children:[h.jsx(bt,{children:h.jsx(_t,{children:"Startseite - Hero Bereich"})}),h.jsxs(Ke,{className:"space-y-4",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(re,{children:"Badge Text"}),h.jsx(we,{value:f.title||"",onChange:v=>d(f.id,"title",v.target.value),placeholder:"z.B. Speziell für Frauen ab 40"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(re,{children:"Hauptüberschrift"}),h.jsx(we,{value:f.subtitle||"",onChange:v=>d(f.id,"subtitle",v.target.value),placeholder:"z.B. Wechseljahre oder nur Stress?"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(re,{children:"Unterüberschrift"}),h.jsx(zn,{value:f.description||"",onChange:v=>d(f.id,"description",v.target.value),placeholder:"Beschreibung eingeben...",rows:3})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(re,{children:"Button Text"}),h.jsx(we,{value:f.button_text||"",onChange:v=>d(f.id,"button_text",v.target.value),placeholder:"z.B. Kostenloser Wechseljahre-Check"})]}),h.jsxs("div",{className:"border-t pt-4 mt-6",children:[h.jsx("h3",{className:"font-semibold mb-4",children:"Benefits Bereich"}),h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(re,{children:"Benefit 1 - Titel"}),h.jsx(we,{value:f.benefit_1_title||"",onChange:v=>d(f.id,"benefit_1_title",v.target.value),placeholder:"z.B. Schnell & Einfach"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(re,{children:"Benefit 1 - Beschreibung"}),h.jsx(zn,{value:f.benefit_1_description||"",onChange:v=>d(f.id,"benefit_1_description",v.target.value),rows:2})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(re,{children:"Benefit 2 - Titel"}),h.jsx(we,{value:f.benefit_2_title||"",onChange:v=>d(f.id,"benefit_2_title",v.target.value),placeholder:"z.B. Wissenschaftlich fundiert"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(re,{children:"Benefit 2 - Beschreibung"}),h.jsx(zn,{value:f.benefit_2_description||"",onChange:v=>d(f.id,"benefit_2_description",v.target.value),rows:2})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(re,{children:"Benefit 3 - Titel"}),h.jsx(we,{value:f.benefit_3_title||"",onChange:v=>d(f.id,"benefit_3_title",v.target.value),placeholder:"z.B. Individuelle Auswertung"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(re,{children:"Benefit 3 - Beschreibung"}),h.jsx(zn,{value:f.benefit_3_description||"",onChange:v=>d(f.id,"benefit_3_description",v.target.value),rows:2})]})]})]}),h.jsx("div",{className:"flex justify-end pt-4",children:h.jsxs(Re,{onClick:()=>c(f),disabled:s,variant:"wellness",children:[s?h.jsx(Xt,{className:"w-4 h-4 mr-2 animate-spin"}):h.jsx(Pr,{className:"w-4 h-4 mr-2"}),"Speichern"]})})]})]})}),h.jsx(Nr,{value:"assessment",children:p&&h.jsxs(tt,{className:"shadow-card",children:[h.jsx(bt,{children:h.jsx(_t,{children:"Assessment Seite"})}),h.jsxs(Ke,{className:"space-y-4",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(re,{children:"Anleitung Text"}),h.jsx(zn,{value:p.description||"",onChange:v=>d(p.id,"description",v.target.value),placeholder:"z.B. Welche der folgenden Beschwerden treffen auf dich zu?",rows:3})]}),h.jsx("div",{className:"flex justify-end pt-4",children:h.jsxs(Re,{onClick:()=>c(p),disabled:s,variant:"wellness",children:[s?h.jsx(Xt,{className:"w-4 h-4 mr-2 animate-spin"}):h.jsx(Pr,{className:"w-4 h-4 mr-2"}),"Speichern"]})})]})]})}),h.jsx(Nr,{value:"results",children:b&&h.jsxs(tt,{className:"shadow-card",children:[h.jsx(bt,{children:h.jsx(_t,{children:"Ergebnis Seite"})}),h.jsxs(Ke,{className:"space-y-4",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(re,{children:"Überschrift"}),h.jsx(we,{value:b.title||"",onChange:v=>d(b.id,"title",v.target.value),placeholder:"z.B. Deine Auswertung"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(re,{children:"CTA Überschrift"}),h.jsx(we,{value:b.subtitle||"",onChange:v=>
197d(b.id,"subtitle",v.target.value),placeholder:"z.B. Was kannst du jetzt tun?"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(re,{children:"CTA Beschreibung"}),h.jsx(zn,{value:b.description||"",onChange:v=>d(b.id,"description",v.target.value),placeholder:"Beschreibung für den Call-to-Action",rows:4})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(re,{children:"Button Text"}),h.jsx(we,{value:b.button_text||"",onChange:v=>d(b.id,"button_text",v.target.value),placeholder:"z.B. Kostenloses Informationsgespräch buchen"})]}),h.jsx("div",{className:"flex justify-end pt-4",children:h.jsxs(Re,{onClick:()=>c(b),disabled:s,variant:"wellness",children:[s?h.jsx(Xt,{className:"w-4 h-4 mr-2 animate-spin"}):h.jsx(Pr,{className:"w-4 h-4 mr-2"}),"Speichern"]})})]})]})}),h.jsx(Nr,{value:"footer",children:w&&h.jsxs(tt,{className:"shadow-card",children:[h.jsx(bt,{children:h.jsx(_t,{children:"Footer Bereich"})}),h.jsxs(Ke,{className:"space-y-4",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(re,{children:"Copyright Text"}),h.jsx(we,{value:w.footer_text||"",onChange:v=>d(w.id,"footer_text",v.target.value),placeholder:"z.B. © 2025 Daniela Dworzak"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(re,{children:"Admin Login Button Text"}),h.jsx(we,{value:w.button_text||"",onChange:v=>d(w.id,"button_text",v.target.value),placeholder:"z.B. Admin Login"})]}),h.jsx("div",{className:"flex justify-end pt-4",children:h.jsxs(Re,{onClick:()=>c(w),disabled:s,variant:"wellness",children:[s?h.jsx(Xt,{className:"w-4 h-4 mr-2 animate-spin"}):h.jsx(Pr,{className:"w-4 h-4 mr-2"}),"Speichern"]})})]})]})})]})]})})},wP=()=>{const t=lf();return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",t.pathname)},[t.pathname]),h.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-100",children:h.jsxs("div",{className:"text-center",children:[h.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),h.jsx("p",{className:"mb-4 text-xl text-gray-600",children:"Oops! Page not found"}),h.jsx("a",{href:"/",className:"text-blue-500 underline hover:text-blue-700",children:"Return to Home"})]})})},xP=new fk,bP=()=>h.jsx(pk,{client:xP,children:h.jsxs(BE,{children:[h.jsx(E1,{}),h.jsx(nS,{}),h.jsx(aC,{children:h.jsxs(sC,{children:[h.jsx(ls,{path:"/",element:h.jsx(Yj,{})}),h.jsx(ls,{path:"/auth",element:h.jsx(Jj,{})}),h.jsx(ls,{path:"/crm",element:h.jsx(vP,{})}),h.jsx(ls,{path:"/content-manager",element:h.jsx(yP,{})}),h.jsx(ls,{path:"*",element:h.jsx(wP,{})})]})})]})});lv(document.getElementById("root")).render(h.jsx(bP,{}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.